]> git.proxmox.com Git - mirror_zfs-debian.git/blame - configure
New upstream version 0.7.6
[mirror_zfs-debian.git] / configure
CommitLineData
ea04106b
AX
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
047218e2 3# Generated by GNU Autoconf 2.63 for zfs 0.7.6.
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'
047218e2
AX
746PACKAGE_VERSION='0.7.6'
747PACKAGE_STRING='zfs 0.7.6'
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
ea04106b
AX
790DEBUG_ZFS
791DEBUG_STACKFLAGS
792DEBUG_CFLAGS
cae5b340
AX
793CONFIG_QAT_FALSE
794CONFIG_QAT_TRUE
795WANT_DEVNAME2DEVID_FALSE
796WANT_DEVNAME2DEVID_TRUE
ea04106b
AX
797CONFIG_KERNEL_FALSE
798CONFIG_KERNEL_TRUE
799CONFIG_USER_FALSE
800CONFIG_USER_TRUE
cae5b340
AX
801RM
802ZONENAME
803NO_FORMAT_TRUNCATION
22929307 804runstatedir
ea04106b 805FRAME_LARGER_THAN
cae5b340
AX
806LIBUDEV
807LIBATTR
ea04106b 808LIBBLKID
cae5b340
AX
809LIBTIRPC_CFLAGS
810LIBTIRPC
ea04106b
AX
811LIBUUID
812ZLIB
813dracutdir
814ZFS_INIT_SYSV
815modulesloaddir
816systemdpresetdir
817systemdunitdir
818ZFS_MODULE_LOAD
819ZFS_INIT_SYSTEMD
820udevruledir
821udevdir
822mounthelperdir
823KERNELCPPFLAGS
824KERNELMAKE_PARAMS
cae5b340
AX
825QAT_SYMBOLS
826QAT_OBJ
827QAT_SRC
ea04106b
AX
828SPL_SYMBOLS
829SPL_VERSION
830SPL_OBJ
831SPL
832LINUX_SYMBOLS
833LINUX_VERSION
834LINUX_OBJ
835LINUX
cae5b340
AX
836TARGET_ASM_GENERIC_FALSE
837TARGET_ASM_GENERIC_TRUE
838TARGET_ASM_I386_FALSE
839TARGET_ASM_I386_TRUE
840TARGET_ASM_X86_64_FALSE
841TARGET_ASM_X86_64_TRUE
842TARGET_ASM_DIR
e10b0808 843NO_BOOL_COMPARE
ea04106b
AX
844NO_UNUSED_BUT_SET_VARIABLE
845ZFS_CONFIG
ea04106b
AX
846ALIEN_VERSION
847ALIEN
848HAVE_ALIEN
849DPKGBUILD_VERSION
850DPKGBUILD
851HAVE_DPKGBUILD
852DPKG_VERSION
853DPKG
854HAVE_DPKG
855SRPM_DEFINE_COMMON
856SRPM_DEFINE_DKMS
857SRPM_DEFINE_KMOD
858SRPM_DEFINE_UTIL
859RPM_DEFINE_COMMON
860RPM_DEFINE_DKMS
861RPM_DEFINE_KMOD
862RPM_DEFINE_UTIL
863RPM_SPEC_DIR
864RPMBUILD_VERSION
865RPMBUILD
866HAVE_RPMBUILD
867RPM_VERSION
868RPM
869HAVE_RPM
e10b0808
AX
870DEFINE_INITRAMFS
871DEFAULT_INITCONF_DIR
ea04106b
AX
872DEFAULT_INIT_SCRIPT
873DEFAULT_INIT_DIR
874DEFAULT_PACKAGE
875VENDOR
876am__fastdepCCAS_FALSE
877am__fastdepCCAS_TRUE
878CCASDEPMODE
879CCASFLAGS
880CCAS
881CPP
882OTOOL64
883OTOOL
884LIPO
885NMEDIT
886DSYMUTIL
cae5b340 887lt_ECHO
ea04106b 888RANLIB
ea04106b 889AR
ea04106b
AX
890OBJDUMP
891LN_S
892NM
893ac_ct_DUMPBIN
894DUMPBIN
895LD
896FGREP
897EGREP
898GREP
899SED
900LIBTOOL
901am__fastdepCC_FALSE
902am__fastdepCC_TRUE
903CCDEPMODE
ea04106b
AX
904AMDEPBACKSLASH
905AMDEP_FALSE
906AMDEP_TRUE
907am__quote
908am__include
909DEPDIR
910OBJEXT
911EXEEXT
912ac_ct_CC
913CPPFLAGS
914LDFLAGS
915CFLAGS
916CC
917am__untar
918am__tar
919AMTAR
920am__leading_dot
921SET_MAKE
922mkdir_p
923MKDIR_P
924INSTALL_STRIP_PROGRAM
925STRIP
926install_sh
927MAKEINFO
928AUTOHEADER
929AUTOMAKE
930AUTOCONF
931ACLOCAL
932VERSION
933PACKAGE
934CYGPATH_W
935am__isrc
936INSTALL_DATA
937INSTALL_SCRIPT
938INSTALL_PROGRAM
939AM_BACKSLASH
940AM_DEFAULT_VERBOSITY
ea04106b
AX
941MAINT
942MAINTAINER_MODE_FALSE
943MAINTAINER_MODE_TRUE
944target_os
945target_vendor
946target_cpu
947target
948host_os
949host_vendor
950host_cpu
951host
952build_os
953build_vendor
954build_cpu
955build
956ZFS_META_LT_AGE
957ZFS_META_LT_REVISION
958ZFS_META_LT_CURRENT
959ZFS_META_AUTHOR
960ZFS_META_DATA
961ZFS_META_ALIAS
962ZFS_META_LICENSE
963RELEASE
964ZFS_META_RELEASE
965ZFS_META_VERSION
966ZFS_META_NAME
967AWK
968target_alias
969host_alias
970build_alias
971LIBS
972ECHO_T
973ECHO_N
974ECHO_C
975DEFS
976mandir
977localedir
978libdir
979psdir
980pdfdir
981dvidir
982htmldir
983infodir
984docdir
985oldincludedir
986includedir
987localstatedir
988sharedstatedir
989sysconfdir
990datadir
991datarootdir
992libexecdir
993sbindir
994bindir
995program_transform_name
996prefix
997exec_prefix
ea04106b
AX
998PACKAGE_BUGREPORT
999PACKAGE_STRING
1000PACKAGE_VERSION
1001PACKAGE_TARNAME
1002PACKAGE_NAME
1003PATH_SEPARATOR
1004SHELL'
1005ac_subst_files=''
1006ac_user_opts='
1007enable_option_checking
1008enable_maintainer_mode
1009enable_silent_rules
1010enable_dependency_tracking
1011enable_shared
1012enable_static
1013with_pic
1014enable_fast_install
1015with_gnu_ld
ea04106b
AX
1016enable_libtool_lock
1017with_spec
1018with_config
1019enable_linux_builtin
1020with_linux
1021with_linux_obj
1022with_spl
1023with_spl_obj
1024with_spl_timeout
cae5b340
AX
1025with_qat
1026with_qat_obj
ea04106b
AX
1027with_mounthelperdir
1028with_udevdir
1029with_udevruledir
1030enable_systemd
1031with_systemdunitdir
1032with_systemdpresetdir
1033with_systemdmodulesloaddir
1034enable_sysvinit
1035with_dracutdir
cae5b340 1036with_tirpc
ea04106b 1037enable_debug
ea04106b
AX
1038'
1039 ac_precious_vars='build_alias
1040host_alias
1041target_alias
1042CC
1043CFLAGS
1044LDFLAGS
1045LIBS
1046CPPFLAGS
1047CPP
1048CCAS
1049CCASFLAGS'
1050
1051
1052# Initialize some variables set by options.
1053ac_init_help=
1054ac_init_version=false
1055ac_unrecognized_opts=
1056ac_unrecognized_sep=
1057# The variables have the same names as the options, with
1058# dashes changed to underlines.
1059cache_file=/dev/null
1060exec_prefix=NONE
1061no_create=
1062no_recursion=
1063prefix=NONE
1064program_prefix=NONE
1065program_suffix=NONE
1066program_transform_name=s,x,x,
1067silent=
1068site=
1069srcdir=
1070verbose=
1071x_includes=NONE
1072x_libraries=NONE
1073
1074# Installation directory options.
1075# These are left unexpanded so users can "make install exec_prefix=/foo"
1076# and all the variables that are supposed to be based on exec_prefix
1077# by default will actually change.
1078# Use braces instead of parens because sh, perl, etc. also accept them.
1079# (The list follows the same order as the GNU Coding Standards.)
1080bindir='${exec_prefix}/bin'
1081sbindir='${exec_prefix}/sbin'
1082libexecdir='${exec_prefix}/libexec'
1083datarootdir='${prefix}/share'
1084datadir='${datarootdir}'
1085sysconfdir='${prefix}/etc'
1086sharedstatedir='${prefix}/com'
1087localstatedir='${prefix}/var'
1088includedir='${prefix}/include'
1089oldincludedir='/usr/include'
1090docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1091infodir='${datarootdir}/info'
1092htmldir='${docdir}'
1093dvidir='${docdir}'
1094pdfdir='${docdir}'
1095psdir='${docdir}'
1096libdir='${exec_prefix}/lib'
1097localedir='${datarootdir}/locale'
1098mandir='${datarootdir}/man'
1099
1100ac_prev=
1101ac_dashdash=
1102for ac_option
1103do
1104 # If the previous option needs an argument, assign it.
1105 if test -n "$ac_prev"; then
1106 eval $ac_prev=\$ac_option
1107 ac_prev=
1108 continue
1109 fi
1110
1111 case $ac_option in
cae5b340
AX
1112 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1113 *) ac_optarg=yes ;;
ea04106b
AX
1114 esac
1115
1116 # Accept the important Cygnus configure options, so we can diagnose typos.
1117
1118 case $ac_dashdash$ac_option in
1119 --)
1120 ac_dashdash=yes ;;
1121
1122 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1123 ac_prev=bindir ;;
1124 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1125 bindir=$ac_optarg ;;
1126
1127 -build | --build | --buil | --bui | --bu)
1128 ac_prev=build_alias ;;
1129 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1130 build_alias=$ac_optarg ;;
1131
1132 -cache-file | --cache-file | --cache-fil | --cache-fi \
1133 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1134 ac_prev=cache_file ;;
1135 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1136 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1137 cache_file=$ac_optarg ;;
1138
1139 --config-cache | -C)
1140 cache_file=config.cache ;;
1141
1142 -datadir | --datadir | --datadi | --datad)
1143 ac_prev=datadir ;;
1144 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1145 datadir=$ac_optarg ;;
1146
1147 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1148 | --dataroo | --dataro | --datar)
1149 ac_prev=datarootdir ;;
1150 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1151 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1152 datarootdir=$ac_optarg ;;
1153
1154 -disable-* | --disable-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cae5b340
AX
1158 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1159 { (exit 1); exit 1; }; }
ea04106b
AX
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164"enable_$ac_useropt"
1165"*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval enable_$ac_useropt=no ;;
1170
1171 -docdir | --docdir | --docdi | --doc | --do)
1172 ac_prev=docdir ;;
1173 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1174 docdir=$ac_optarg ;;
1175
1176 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1177 ac_prev=dvidir ;;
1178 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1179 dvidir=$ac_optarg ;;
1180
1181 -enable-* | --enable-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cae5b340
AX
1185 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1186 { (exit 1); exit 1; }; }
ea04106b
AX
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191"enable_$ac_useropt"
1192"*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval enable_$ac_useropt=\$ac_optarg ;;
1197
1198 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1199 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1200 | --exec | --exe | --ex)
1201 ac_prev=exec_prefix ;;
1202 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1203 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1204 | --exec=* | --exe=* | --ex=*)
1205 exec_prefix=$ac_optarg ;;
1206
1207 -gas | --gas | --ga | --g)
1208 # Obsolete; use --with-gas.
1209 with_gas=yes ;;
1210
1211 -help | --help | --hel | --he | -h)
1212 ac_init_help=long ;;
1213 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1214 ac_init_help=recursive ;;
1215 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1216 ac_init_help=short ;;
1217
1218 -host | --host | --hos | --ho)
1219 ac_prev=host_alias ;;
1220 -host=* | --host=* | --hos=* | --ho=*)
1221 host_alias=$ac_optarg ;;
1222
1223 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1224 ac_prev=htmldir ;;
1225 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1226 | --ht=*)
1227 htmldir=$ac_optarg ;;
1228
1229 -includedir | --includedir | --includedi | --included | --include \
1230 | --includ | --inclu | --incl | --inc)
1231 ac_prev=includedir ;;
1232 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1233 | --includ=* | --inclu=* | --incl=* | --inc=*)
1234 includedir=$ac_optarg ;;
1235
1236 -infodir | --infodir | --infodi | --infod | --info | --inf)
1237 ac_prev=infodir ;;
1238 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1239 infodir=$ac_optarg ;;
1240
1241 -libdir | --libdir | --libdi | --libd)
1242 ac_prev=libdir ;;
1243 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1244 libdir=$ac_optarg ;;
1245
1246 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1247 | --libexe | --libex | --libe)
1248 ac_prev=libexecdir ;;
1249 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1250 | --libexe=* | --libex=* | --libe=*)
1251 libexecdir=$ac_optarg ;;
1252
1253 -localedir | --localedir | --localedi | --localed | --locale)
1254 ac_prev=localedir ;;
1255 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1256 localedir=$ac_optarg ;;
1257
1258 -localstatedir | --localstatedir | --localstatedi | --localstated \
1259 | --localstate | --localstat | --localsta | --localst | --locals)
1260 ac_prev=localstatedir ;;
1261 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1262 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1263 localstatedir=$ac_optarg ;;
1264
1265 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1266 ac_prev=mandir ;;
1267 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1268 mandir=$ac_optarg ;;
1269
1270 -nfp | --nfp | --nf)
1271 # Obsolete; use --without-fp.
1272 with_fp=no ;;
1273
1274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1275 | --no-cr | --no-c | -n)
1276 no_create=yes ;;
1277
1278 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1279 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1280 no_recursion=yes ;;
1281
1282 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1283 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1284 | --oldin | --oldi | --old | --ol | --o)
1285 ac_prev=oldincludedir ;;
1286 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1287 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1288 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1289 oldincludedir=$ac_optarg ;;
1290
1291 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1292 ac_prev=prefix ;;
1293 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1294 prefix=$ac_optarg ;;
1295
1296 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1297 | --program-pre | --program-pr | --program-p)
1298 ac_prev=program_prefix ;;
1299 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1300 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1301 program_prefix=$ac_optarg ;;
1302
1303 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1304 | --program-suf | --program-su | --program-s)
1305 ac_prev=program_suffix ;;
1306 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1307 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1308 program_suffix=$ac_optarg ;;
1309
1310 -program-transform-name | --program-transform-name \
1311 | --program-transform-nam | --program-transform-na \
1312 | --program-transform-n | --program-transform- \
1313 | --program-transform | --program-transfor \
1314 | --program-transfo | --program-transf \
1315 | --program-trans | --program-tran \
1316 | --progr-tra | --program-tr | --program-t)
1317 ac_prev=program_transform_name ;;
1318 -program-transform-name=* | --program-transform-name=* \
1319 | --program-transform-nam=* | --program-transform-na=* \
1320 | --program-transform-n=* | --program-transform-=* \
1321 | --program-transform=* | --program-transfor=* \
1322 | --program-transfo=* | --program-transf=* \
1323 | --program-trans=* | --program-tran=* \
1324 | --progr-tra=* | --program-tr=* | --program-t=*)
1325 program_transform_name=$ac_optarg ;;
1326
1327 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1328 ac_prev=pdfdir ;;
1329 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1330 pdfdir=$ac_optarg ;;
1331
1332 -psdir | --psdir | --psdi | --psd | --ps)
1333 ac_prev=psdir ;;
1334 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1335 psdir=$ac_optarg ;;
1336
1337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1338 | -silent | --silent | --silen | --sile | --sil)
1339 silent=yes ;;
1340
1341 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1342 ac_prev=sbindir ;;
1343 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1344 | --sbi=* | --sb=*)
1345 sbindir=$ac_optarg ;;
1346
1347 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1348 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1349 | --sharedst | --shareds | --shared | --share | --shar \
1350 | --sha | --sh)
1351 ac_prev=sharedstatedir ;;
1352 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1353 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1354 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1355 | --sha=* | --sh=*)
1356 sharedstatedir=$ac_optarg ;;
1357
1358 -site | --site | --sit)
1359 ac_prev=site ;;
1360 -site=* | --site=* | --sit=*)
1361 site=$ac_optarg ;;
1362
1363 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1364 ac_prev=srcdir ;;
1365 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1366 srcdir=$ac_optarg ;;
1367
1368 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1369 | --syscon | --sysco | --sysc | --sys | --sy)
1370 ac_prev=sysconfdir ;;
1371 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1372 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1373 sysconfdir=$ac_optarg ;;
1374
1375 -target | --target | --targe | --targ | --tar | --ta | --t)
1376 ac_prev=target_alias ;;
1377 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1378 target_alias=$ac_optarg ;;
1379
1380 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1381 verbose=yes ;;
1382
1383 -version | --version | --versio | --versi | --vers | -V)
1384 ac_init_version=: ;;
1385
1386 -with-* | --with-*)
1387 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1388 # Reject names that are not valid shell variable names.
1389 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cae5b340
AX
1390 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1391 { (exit 1); exit 1; }; }
ea04106b
AX
1392 ac_useropt_orig=$ac_useropt
1393 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1394 case $ac_user_opts in
1395 *"
1396"with_$ac_useropt"
1397"*) ;;
1398 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1399 ac_unrecognized_sep=', ';;
1400 esac
1401 eval with_$ac_useropt=\$ac_optarg ;;
1402
1403 -without-* | --without-*)
1404 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1405 # Reject names that are not valid shell variable names.
1406 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cae5b340
AX
1407 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1408 { (exit 1); exit 1; }; }
ea04106b
AX
1409 ac_useropt_orig=$ac_useropt
1410 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411 case $ac_user_opts in
1412 *"
1413"with_$ac_useropt"
1414"*) ;;
1415 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1416 ac_unrecognized_sep=', ';;
1417 esac
1418 eval with_$ac_useropt=no ;;
1419
1420 --x)
1421 # Obsolete; use --with-x.
1422 with_x=yes ;;
1423
1424 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1425 | --x-incl | --x-inc | --x-in | --x-i)
1426 ac_prev=x_includes ;;
1427 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1428 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1429 x_includes=$ac_optarg ;;
1430
1431 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1432 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1433 ac_prev=x_libraries ;;
1434 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1435 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1436 x_libraries=$ac_optarg ;;
1437
cae5b340
AX
1438 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1439Try \`$0 --help' for more information." >&2
1440 { (exit 1); exit 1; }; }
ea04106b
AX
1441 ;;
1442
1443 *=*)
1444 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1445 # Reject names that are not valid shell variable names.
cae5b340
AX
1446 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1447 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1448 { (exit 1); exit 1; }; }
ea04106b
AX
1449 eval $ac_envvar=\$ac_optarg
1450 export $ac_envvar ;;
1451
1452 *)
1453 # FIXME: should be removed in autoconf 3.0.
1454 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1455 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1456 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cae5b340 1457 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
ea04106b
AX
1458 ;;
1459
1460 esac
1461done
1462
1463if test -n "$ac_prev"; then
1464 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cae5b340
AX
1465 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1466 { (exit 1); exit 1; }; }
ea04106b
AX
1467fi
1468
1469if test -n "$ac_unrecognized_opts"; then
1470 case $enable_option_checking in
1471 no) ;;
cae5b340
AX
1472 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1473 { (exit 1); exit 1; }; } ;;
ea04106b
AX
1474 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1475 esac
1476fi
1477
1478# Check all directory arguments for consistency.
1479for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1480 datadir sysconfdir sharedstatedir localstatedir includedir \
1481 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
22929307 1482 libdir localedir mandir
ea04106b
AX
1483do
1484 eval ac_val=\$$ac_var
1485 # Remove trailing slashes.
1486 case $ac_val in
1487 */ )
1488 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1489 eval $ac_var=\$ac_val;;
1490 esac
1491 # Be sure to have absolute directory names.
1492 case $ac_val in
1493 [\\/$]* | ?:[\\/]* ) continue;;
1494 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1495 esac
cae5b340
AX
1496 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1497 { (exit 1); exit 1; }; }
ea04106b
AX
1498done
1499
1500# There might be people who depend on the old broken behavior: `$host'
1501# used to hold the argument of --host etc.
1502# FIXME: To remove some day.
1503build=$build_alias
1504host=$host_alias
1505target=$target_alias
1506
1507# FIXME: To remove some day.
1508if test "x$host_alias" != x; then
1509 if test "x$build_alias" = x; then
1510 cross_compiling=maybe
cae5b340
AX
1511 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1512 If a cross compiler is detected then cross compile mode will be used." >&2
ea04106b
AX
1513 elif test "x$build_alias" != "x$host_alias"; then
1514 cross_compiling=yes
1515 fi
1516fi
1517
1518ac_tool_prefix=
1519test -n "$host_alias" && ac_tool_prefix=$host_alias-
1520
1521test "$silent" = yes && exec 6>/dev/null
1522
1523
1524ac_pwd=`pwd` && test -n "$ac_pwd" &&
1525ac_ls_di=`ls -di .` &&
1526ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cae5b340
AX
1527 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1528 { (exit 1); exit 1; }; }
ea04106b 1529test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cae5b340
AX
1530 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1531 { (exit 1); exit 1; }; }
ea04106b
AX
1532
1533
1534# Find the source files, if location was not specified.
1535if test -z "$srcdir"; then
1536 ac_srcdir_defaulted=yes
1537 # Try the directory containing this script, then the parent directory.
1538 ac_confdir=`$as_dirname -- "$as_myself" ||
1539$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1540 X"$as_myself" : 'X\(//\)[^/]' \| \
1541 X"$as_myself" : 'X\(//\)$' \| \
1542 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1543$as_echo X"$as_myself" |
1544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1545 s//\1/
1546 q
1547 }
1548 /^X\(\/\/\)[^/].*/{
1549 s//\1/
1550 q
1551 }
1552 /^X\(\/\/\)$/{
1553 s//\1/
1554 q
1555 }
1556 /^X\(\/\).*/{
1557 s//\1/
1558 q
1559 }
1560 s/.*/./; q'`
1561 srcdir=$ac_confdir
1562 if test ! -r "$srcdir/$ac_unique_file"; then
1563 srcdir=..
1564 fi
1565else
1566 ac_srcdir_defaulted=no
1567fi
1568if test ! -r "$srcdir/$ac_unique_file"; then
1569 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cae5b340
AX
1570 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1571 { (exit 1); exit 1; }; }
ea04106b
AX
1572fi
1573ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1574ac_abs_confdir=`(
cae5b340
AX
1575 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1576 { (exit 1); exit 1; }; }
ea04106b
AX
1577 pwd)`
1578# When building in place, set srcdir=.
1579if test "$ac_abs_confdir" = "$ac_pwd"; then
1580 srcdir=.
1581fi
1582# Remove unnecessary trailing slashes from srcdir.
1583# Double slashes in file names in object file debugging info
1584# mess up M-x gdb in Emacs.
1585case $srcdir in
1586*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1587esac
1588for ac_var in $ac_precious_vars; do
1589 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1590 eval ac_env_${ac_var}_value=\$${ac_var}
1591 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1592 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1593done
1594
1595#
1596# Report the --help message.
1597#
1598if test "$ac_init_help" = "long"; then
1599 # Omit some internal or obsolete options to make the list less imposing.
1600 # This message is too long to be a string in the A/UX 3.1 sh.
1601 cat <<_ACEOF
047218e2 1602\`configure' configures zfs 0.7.6 to adapt to many kinds of systems.
ea04106b
AX
1603
1604Usage: $0 [OPTION]... [VAR=VALUE]...
1605
1606To assign environment variables (e.g., CC, CFLAGS...), specify them as
1607VAR=VALUE. See below for descriptions of some of the useful variables.
1608
1609Defaults for the options are specified in brackets.
1610
1611Configuration:
1612 -h, --help display this help and exit
1613 --help=short display options specific to this package
1614 --help=recursive display the short help of all the included packages
1615 -V, --version display version information and exit
cae5b340 1616 -q, --quiet, --silent do not print \`checking...' messages
ea04106b
AX
1617 --cache-file=FILE cache test results in FILE [disabled]
1618 -C, --config-cache alias for \`--cache-file=config.cache'
1619 -n, --no-create do not create output files
1620 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1621
1622Installation directories:
1623 --prefix=PREFIX install architecture-independent files in PREFIX
1624 [$ac_default_prefix]
1625 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1626 [PREFIX]
1627
1628By default, \`make install' will install all the files in
1629\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1630an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1631for instance \`--prefix=\$HOME'.
1632
1633For better control, use the options below.
1634
1635Fine tuning of the installation directories:
1636 --bindir=DIR user executables [EPREFIX/bin]
1637 --sbindir=DIR system admin executables [EPREFIX/sbin]
1638 --libexecdir=DIR program executables [EPREFIX/libexec]
1639 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1640 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1641 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1642 --libdir=DIR object code libraries [EPREFIX/lib]
1643 --includedir=DIR C header files [PREFIX/include]
1644 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1645 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1646 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1647 --infodir=DIR info documentation [DATAROOTDIR/info]
1648 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1649 --mandir=DIR man documentation [DATAROOTDIR/man]
1650 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1651 --htmldir=DIR html documentation [DOCDIR]
1652 --dvidir=DIR dvi documentation [DOCDIR]
1653 --pdfdir=DIR pdf documentation [DOCDIR]
1654 --psdir=DIR ps documentation [DOCDIR]
1655_ACEOF
1656
1657 cat <<\_ACEOF
1658
1659Program names:
1660 --program-prefix=PREFIX prepend PREFIX to installed program names
1661 --program-suffix=SUFFIX append SUFFIX to installed program names
1662 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1663
1664System types:
1665 --build=BUILD configure for building on BUILD [guessed]
1666 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1667 --target=TARGET configure for building compilers for TARGET [HOST]
1668_ACEOF
1669fi
1670
1671if test -n "$ac_init_help"; then
1672 case $ac_init_help in
047218e2 1673 short | recursive ) echo "Configuration of zfs 0.7.6:";;
ea04106b
AX
1674 esac
1675 cat <<\_ACEOF
1676
1677Optional Features:
1678 --disable-option-checking ignore unrecognized --enable/--with options
1679 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1680 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cae5b340
AX
1681 --enable-maintainer-mode enable make rules and dependencies not useful
1682 (and sometimes confusing) to the casual installer
1683 --enable-silent-rules less verbose build output (undo: `make V=1')
1684 --disable-silent-rules verbose build output (undo: `make V=0')
1685 --disable-dependency-tracking speeds up one-time build
1686 --enable-dependency-tracking do not reject slow dependency extractors
ea04106b
AX
1687 --enable-shared[=PKGS] build shared libraries [default=yes]
1688 --enable-static[=PKGS] build static libraries [default=yes]
1689 --enable-fast-install[=PKGS]
1690 optimize for fast installation [default=yes]
1691 --disable-libtool-lock avoid locking (might break parallel builds)
1692 --enable-linux-builtin Configure for builtin in-tree kernel modules
1693 [default=no]
cae5b340
AX
1694 --enable-systemd install systemd unit/preset files
1695 [default:], [yes]
1696 --enable-sysvinit install SysV init scripts default:, yes
ea04106b 1697 --enable-debug Enable generic debug support [default=no]
ea04106b
AX
1698
1699Optional Packages:
1700 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1701 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cae5b340 1702 --with-pic try to use only PIC/non-PIC objects [default=use
ea04106b
AX
1703 both]
1704 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
ea04106b
AX
1705 --with-spec=SPEC Spec files 'generic|redhat'
1706 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1707 --with-linux=PATH Path to kernel source
1708 --with-linux-obj=PATH Path to kernel build objects
1709 --with-spl=PATH Path to spl source
1710 --with-spl-obj=PATH Path to spl build objects
1711 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
cae5b340
AX
1712 --with-qat=PATH Path to qat source
1713 --with-qat-obj=PATH Path to qat build objects
ea04106b 1714 --with-mounthelperdir=DIR
cae5b340 1715 install mount.zfs in dir [/sbin]
ea04106b 1716 --with-udevdir=DIR install udev helpers [default=check]
cae5b340 1717 --with-udevruledir=DIR install udev rules [UDEVDIR/rules.d]
ea04106b
AX
1718 --with-systemdunitdir=DIR
1719 install systemd unit files in dir
cae5b340 1720 [/usr/lib/systemd/system]
ea04106b
AX
1721 --with-systemdpresetdir=DIR
1722 install systemd preset files in dir
cae5b340 1723 [/usr/lib/systemd/system-preset]
ea04106b
AX
1724 --with-systemdmodulesloaddir=DIR
1725 install systemd module load files into dir
cae5b340 1726 [/usr/lib/modules-load.d]
ea04106b 1727 --with-dracutdir=DIR install dracut helpers [default=check]
cae5b340 1728 --with-tirpc use tirpc for xdr encoding [default=check]
ea04106b
AX
1729
1730Some influential environment variables:
1731 CC C compiler command
1732 CFLAGS C compiler flags
1733 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1734 nonstandard directory <lib dir>
1735 LIBS libraries to pass to the linker, e.g. -l<library>
cae5b340 1736 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
ea04106b
AX
1737 you have headers in a nonstandard directory <include dir>
1738 CPP C preprocessor
1739 CCAS assembler compiler command (defaults to CC)
1740 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1741
1742Use these variables to override the choices made by `configure' or to help
1743it to find libraries and programs with nonstandard names/locations.
1744
ea04106b
AX
1745_ACEOF
1746ac_status=$?
1747fi
1748
1749if test "$ac_init_help" = "recursive"; then
1750 # If there are subdirs, report their specific --help.
1751 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1752 test -d "$ac_dir" ||
1753 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1754 continue
1755 ac_builddir=.
1756
1757case "$ac_dir" in
1758.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1759*)
1760 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1761 # A ".." for each directory in $ac_dir_suffix.
1762 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1763 case $ac_top_builddir_sub in
1764 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1765 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1766 esac ;;
1767esac
1768ac_abs_top_builddir=$ac_pwd
1769ac_abs_builddir=$ac_pwd$ac_dir_suffix
1770# for backward compatibility:
1771ac_top_builddir=$ac_top_build_prefix
1772
1773case $srcdir in
1774 .) # We are building in place.
1775 ac_srcdir=.
1776 ac_top_srcdir=$ac_top_builddir_sub
1777 ac_abs_top_srcdir=$ac_pwd ;;
1778 [\\/]* | ?:[\\/]* ) # Absolute name.
1779 ac_srcdir=$srcdir$ac_dir_suffix;
1780 ac_top_srcdir=$srcdir
1781 ac_abs_top_srcdir=$srcdir ;;
1782 *) # Relative name.
1783 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1784 ac_top_srcdir=$ac_top_build_prefix$srcdir
1785 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1786esac
1787ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1788
1789 cd "$ac_dir" || { ac_status=$?; continue; }
1790 # Check for guested configure.
1791 if test -f "$ac_srcdir/configure.gnu"; then
1792 echo &&
1793 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1794 elif test -f "$ac_srcdir/configure"; then
1795 echo &&
1796 $SHELL "$ac_srcdir/configure" --help=recursive
1797 else
1798 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1799 fi || ac_status=$?
1800 cd "$ac_pwd" || { ac_status=$?; break; }
1801 done
1802fi
1803
1804test -n "$ac_init_help" && exit $ac_status
1805if $ac_init_version; then
1806 cat <<\_ACEOF
047218e2 1807zfs configure 0.7.6
cae5b340 1808generated by GNU Autoconf 2.63
ea04106b 1809
cae5b340
AX
1810Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
18112002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ea04106b
AX
1812This configure script is free software; the Free Software Foundation
1813gives unlimited permission to copy, distribute and modify it.
1814_ACEOF
1815 exit
1816fi
ea04106b
AX
1817cat >config.log <<_ACEOF
1818This file contains any messages produced by compilers while
1819running configure, to aid debugging if configure makes a mistake.
1820
047218e2 1821It was created by zfs $as_me 0.7.6, which was
cae5b340 1822generated by GNU Autoconf 2.63. Invocation command line was
ea04106b
AX
1823
1824 $ $0 $@
1825
1826_ACEOF
1827exec 5>>config.log
1828{
1829cat <<_ASUNAME
1830## --------- ##
1831## Platform. ##
1832## --------- ##
1833
1834hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1835uname -m = `(uname -m) 2>/dev/null || echo unknown`
1836uname -r = `(uname -r) 2>/dev/null || echo unknown`
1837uname -s = `(uname -s) 2>/dev/null || echo unknown`
1838uname -v = `(uname -v) 2>/dev/null || echo unknown`
1839
1840/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1841/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1842
1843/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1844/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1845/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1846/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1847/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1848/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1849/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1850
1851_ASUNAME
1852
1853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854for as_dir in $PATH
1855do
1856 IFS=$as_save_IFS
1857 test -z "$as_dir" && as_dir=.
cae5b340
AX
1858 $as_echo "PATH: $as_dir"
1859done
ea04106b
AX
1860IFS=$as_save_IFS
1861
1862} >&5
1863
1864cat >&5 <<_ACEOF
1865
1866
1867## ----------- ##
1868## Core tests. ##
1869## ----------- ##
1870
1871_ACEOF
1872
1873
1874# Keep a trace of the command line.
1875# Strip out --no-create and --no-recursion so they do not pile up.
1876# Strip out --silent because we don't want to record it for future runs.
1877# Also quote any args containing shell meta-characters.
1878# Make two passes to allow for proper duplicate-argument suppression.
1879ac_configure_args=
1880ac_configure_args0=
1881ac_configure_args1=
1882ac_must_keep_next=false
1883for ac_pass in 1 2
1884do
1885 for ac_arg
1886 do
1887 case $ac_arg in
1888 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1890 | -silent | --silent | --silen | --sile | --sil)
1891 continue ;;
1892 *\'*)
1893 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1894 esac
1895 case $ac_pass in
cae5b340 1896 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
ea04106b 1897 2)
cae5b340 1898 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
ea04106b
AX
1899 if test $ac_must_keep_next = true; then
1900 ac_must_keep_next=false # Got value, back to normal.
1901 else
1902 case $ac_arg in
1903 *=* | --config-cache | -C | -disable-* | --disable-* \
1904 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1905 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1906 | -with-* | --with-* | -without-* | --without-* | --x)
1907 case "$ac_configure_args0 " in
1908 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1909 esac
1910 ;;
1911 -* ) ac_must_keep_next=true ;;
1912 esac
1913 fi
cae5b340 1914 ac_configure_args="$ac_configure_args '$ac_arg'"
ea04106b
AX
1915 ;;
1916 esac
1917 done
1918done
cae5b340
AX
1919$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1920$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
ea04106b
AX
1921
1922# When interrupted or exit'd, cleanup temporary files, and complete
1923# config.log. We remove comments because anyway the quotes in there
1924# would cause problems or look ugly.
1925# WARNING: Use '\'' to represent an apostrophe within the trap.
1926# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1927trap 'exit_status=$?
1928 # Save into config.log some information that might help in debugging.
1929 {
1930 echo
1931
cae5b340
AX
1932 cat <<\_ASBOX
1933## ---------------- ##
ea04106b 1934## Cache variables. ##
cae5b340
AX
1935## ---------------- ##
1936_ASBOX
ea04106b
AX
1937 echo
1938 # The following way of writing the cache mishandles newlines in values,
1939(
1940 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1941 eval ac_val=\$$ac_var
1942 case $ac_val in #(
1943 *${as_nl}*)
1944 case $ac_var in #(
cae5b340 1945 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
ea04106b
AX
1946$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1947 esac
1948 case $ac_var in #(
1949 _ | IFS | as_nl) ;; #(
1950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cae5b340 1951 *) $as_unset $ac_var ;;
ea04106b
AX
1952 esac ;;
1953 esac
1954 done
1955 (set) 2>&1 |
1956 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1957 *${as_nl}ac_space=\ *)
1958 sed -n \
1959 "s/'\''/'\''\\\\'\'''\''/g;
1960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1961 ;; #(
1962 *)
1963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1964 ;;
1965 esac |
1966 sort
1967)
1968 echo
1969
cae5b340
AX
1970 cat <<\_ASBOX
1971## ----------------- ##
ea04106b 1972## Output variables. ##
cae5b340
AX
1973## ----------------- ##
1974_ASBOX
ea04106b
AX
1975 echo
1976 for ac_var in $ac_subst_vars
1977 do
1978 eval ac_val=\$$ac_var
1979 case $ac_val in
1980 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1981 esac
1982 $as_echo "$ac_var='\''$ac_val'\''"
1983 done | sort
1984 echo
1985
1986 if test -n "$ac_subst_files"; then
cae5b340
AX
1987 cat <<\_ASBOX
1988## ------------------- ##
ea04106b 1989## File substitutions. ##
cae5b340
AX
1990## ------------------- ##
1991_ASBOX
ea04106b
AX
1992 echo
1993 for ac_var in $ac_subst_files
1994 do
1995 eval ac_val=\$$ac_var
1996 case $ac_val in
1997 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1998 esac
1999 $as_echo "$ac_var='\''$ac_val'\''"
2000 done | sort
2001 echo
2002 fi
2003
2004 if test -s confdefs.h; then
cae5b340
AX
2005 cat <<\_ASBOX
2006## ----------- ##
ea04106b 2007## confdefs.h. ##
cae5b340
AX
2008## ----------- ##
2009_ASBOX
ea04106b
AX
2010 echo
2011 cat confdefs.h
2012 echo
2013 fi
2014 test "$ac_signal" != 0 &&
2015 $as_echo "$as_me: caught signal $ac_signal"
2016 $as_echo "$as_me: exit $exit_status"
2017 } >&5
2018 rm -f core *.core core.conftest.* &&
2019 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2020 exit $exit_status
2021' 0
2022for ac_signal in 1 2 13 15; do
cae5b340 2023 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
ea04106b
AX
2024done
2025ac_signal=0
2026
2027# confdefs.h avoids OS command line length limits that DEFS can exceed.
2028rm -f -r conftest* confdefs.h
2029
ea04106b
AX
2030# Predefined preprocessor variables.
2031
2032cat >>confdefs.h <<_ACEOF
2033#define PACKAGE_NAME "$PACKAGE_NAME"
2034_ACEOF
2035
cae5b340 2036
ea04106b
AX
2037cat >>confdefs.h <<_ACEOF
2038#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2039_ACEOF
2040
cae5b340 2041
ea04106b
AX
2042cat >>confdefs.h <<_ACEOF
2043#define PACKAGE_VERSION "$PACKAGE_VERSION"
2044_ACEOF
2045
cae5b340 2046
ea04106b
AX
2047cat >>confdefs.h <<_ACEOF
2048#define PACKAGE_STRING "$PACKAGE_STRING"
2049_ACEOF
2050
ea04106b
AX
2051
2052cat >>confdefs.h <<_ACEOF
cae5b340 2053#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
ea04106b
AX
2054_ACEOF
2055
2056
2057# Let the site file select an alternate cache file if it wants to.
2058# Prefer an explicitly selected file to automatically selected ones.
2059ac_site_file1=NONE
2060ac_site_file2=NONE
2061if test -n "$CONFIG_SITE"; then
cae5b340 2062 ac_site_file1=$CONFIG_SITE
ea04106b
AX
2063elif test "x$prefix" != xNONE; then
2064 ac_site_file1=$prefix/share/config.site
2065 ac_site_file2=$prefix/etc/config.site
2066else
2067 ac_site_file1=$ac_default_prefix/share/config.site
2068 ac_site_file2=$ac_default_prefix/etc/config.site
2069fi
2070for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2071do
2072 test "x$ac_site_file" = xNONE && continue
cae5b340
AX
2073 if test -r "$ac_site_file"; then
2074 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
ea04106b
AX
2075$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2076 sed 's/^/| /' "$ac_site_file" >&5
cae5b340 2077 . "$ac_site_file"
ea04106b
AX
2078 fi
2079done
2080
2081if test -r "$cache_file"; then
cae5b340
AX
2082 # Some versions of bash will fail to source /dev/null (special
2083 # files actually), so we avoid doing that.
2084 if test -f "$cache_file"; then
2085 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
ea04106b
AX
2086$as_echo "$as_me: loading cache $cache_file" >&6;}
2087 case $cache_file in
2088 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2089 *) . "./$cache_file";;
2090 esac
2091 fi
2092else
cae5b340 2093 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
ea04106b
AX
2094$as_echo "$as_me: creating cache $cache_file" >&6;}
2095 >$cache_file
2096fi
2097
2098# Check that the precious variables saved in the cache have kept the same
2099# value.
2100ac_cache_corrupted=false
2101for ac_var in $ac_precious_vars; do
2102 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2103 eval ac_new_set=\$ac_env_${ac_var}_set
2104 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2105 eval ac_new_val=\$ac_env_${ac_var}_value
2106 case $ac_old_set,$ac_new_set in
2107 set,)
cae5b340 2108 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
ea04106b
AX
2109$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2110 ac_cache_corrupted=: ;;
2111 ,set)
cae5b340 2112 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
ea04106b
AX
2113$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2114 ac_cache_corrupted=: ;;
2115 ,);;
2116 *)
2117 if test "x$ac_old_val" != "x$ac_new_val"; then
2118 # differences in whitespace do not lead to failure.
2119 ac_old_val_w=`echo x $ac_old_val`
2120 ac_new_val_w=`echo x $ac_new_val`
2121 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cae5b340 2122 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
ea04106b
AX
2123$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2124 ac_cache_corrupted=:
2125 else
cae5b340 2126 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
ea04106b
AX
2127$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2128 eval $ac_var=\$ac_old_val
2129 fi
cae5b340 2130 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
ea04106b 2131$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cae5b340 2132 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
ea04106b
AX
2133$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2134 fi;;
2135 esac
2136 # Pass precious variables to config.status.
2137 if test "$ac_new_set" = set; then
2138 case $ac_new_val in
2139 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2140 *) ac_arg=$ac_var=$ac_new_val ;;
2141 esac
2142 case " $ac_configure_args " in
2143 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cae5b340 2144 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
ea04106b
AX
2145 esac
2146 fi
2147done
2148if $ac_cache_corrupted; then
cae5b340 2149 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
ea04106b 2150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cae5b340 2151 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
ea04106b 2152$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cae5b340
AX
2153 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2154$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2155 { (exit 1); exit 1; }; }
ea04106b 2156fi
cae5b340
AX
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
ea04106b
AX
2181
2182ac_ext=c
2183ac_cpp='$CPP $CPPFLAGS'
2184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2186ac_compiler_gnu=$ac_cv_c_compiler_gnu
2187
2188
2189ac_ext=c
2190ac_cpp='$CPP $CPPFLAGS'
2191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2193ac_compiler_gnu=$ac_cv_c_compiler_gnu
2194
2195
2196
2197
2198
cae5b340 2199
ea04106b
AX
2200 for ac_prog in gawk mawk nawk awk
2201do
2202 # Extract the first word of "$ac_prog", so it can be a program name with args.
2203set dummy $ac_prog; ac_word=$2
cae5b340 2204{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 2205$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 2206if test "${ac_cv_prog_AWK+set}" = set; then
ea04106b
AX
2207 $as_echo_n "(cached) " >&6
2208else
2209 if test -n "$AWK"; then
2210 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2211else
2212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213for as_dir in $PATH
2214do
2215 IFS=$as_save_IFS
2216 test -z "$as_dir" && as_dir=.
cae5b340
AX
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 2219 ac_cv_prog_AWK="$ac_prog"
cae5b340 2220 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
2221 break 2
2222 fi
2223done
cae5b340 2224done
ea04106b
AX
2225IFS=$as_save_IFS
2226
2227fi
2228fi
2229AWK=$ac_cv_prog_AWK
2230if test -n "$AWK"; then
cae5b340 2231 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
ea04106b
AX
2232$as_echo "$AWK" >&6; }
2233else
cae5b340 2234 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
2235$as_echo "no" >&6; }
2236fi
2237
2238
2239 test -n "$AWK" && break
2240done
2241
cae5b340 2242 { $as_echo "$as_me:$LINENO: checking metadata" >&5
ea04106b
AX
2243$as_echo_n "checking metadata... " >&6; }
2244
2245 META="$srcdir/META"
2246 _zfs_ac_meta_type="none"
2247 if test -f "$META"; then
2248 _zfs_ac_meta_type="META file"
2249
2250 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2251 if test -n "$ZFS_META_NAME"; then
2252
2253cat >>confdefs.h <<_ACEOF
2254#define ZFS_META_NAME "$ZFS_META_NAME"
2255_ACEOF
2256
2257
2258 fi
2259
2260 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2261 if test -n "$ZFS_META_VERSION"; then
2262
2263cat >>confdefs.h <<_ACEOF
2264#define ZFS_META_VERSION "$ZFS_META_VERSION"
2265_ACEOF
2266
2267
2268 fi
2269
2270 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2271 if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2272 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2273 _alias=$(git describe --match=${_match} 2>/dev/null)
2274 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2275 if test -n "${_release}"; then
2276 ZFS_META_RELEASE=${_release}
2277 _zfs_ac_meta_type="git describe"
cae5b340
AX
2278 else
2279 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}-${ZFS_META_RELEASE}"
2280 _alias=$(git describe --match=${_match} 2>/dev/null)
2281 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2282 if test -n "${_release}"; then
2283 ZFS_META_RELEASE=${_release}
2284 _zfs_ac_meta_type="git describe"
2285 fi
ea04106b
AX
2286 fi
2287 fi
2288
2289 if test -n "$ZFS_META_RELEASE"; then
2290
2291cat >>confdefs.h <<_ACEOF
2292#define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2293_ACEOF
2294
2295
2296
2297 RELEASE="$ZFS_META_RELEASE"
2298
2299 fi
2300
2301 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2302 if test -n "$ZFS_META_LICENSE"; then
2303
2304cat >>confdefs.h <<_ACEOF
2305#define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2306_ACEOF
2307
2308
2309 fi
2310
2311 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2312 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2313 test -n "$ZFS_META_RELEASE" &&
2314 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2315
2316cat >>confdefs.h <<_ACEOF
2317#define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2318_ACEOF
2319
2320
2321 fi
2322
2323 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2324 if test -n "$ZFS_META_DATA"; then
2325
2326cat >>confdefs.h <<_ACEOF
2327#define ZFS_META_DATA "$ZFS_META_DATA"
2328_ACEOF
2329
2330
2331 fi
2332
2333 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2334 if test -n "$ZFS_META_AUTHOR"; then
2335
2336cat >>confdefs.h <<_ACEOF
2337#define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2338_ACEOF
2339
2340
2341 fi
2342
2343
2344 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2345 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2346 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2347 if test -n "$ZFS_META_LT_CURRENT" \
2348 -o -n "$ZFS_META_LT_REVISION" \
2349 -o -n "$ZFS_META_LT_AGE"; then
2350 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2351 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2352 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2353
2354cat >>confdefs.h <<_ACEOF
2355#define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2356_ACEOF
2357
2358
2359cat >>confdefs.h <<_ACEOF
2360#define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2361_ACEOF
2362
2363
2364cat >>confdefs.h <<_ACEOF
2365#define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2366_ACEOF
2367
2368
2369
2370
2371 fi
2372 fi
2373
cae5b340 2374 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_type" >&5
ea04106b
AX
2375$as_echo "$_zfs_ac_meta_type" >&6; }
2376
2377
2378ac_aux_dir=
2379for ac_dir in config "$srcdir"/config; do
2380 if test -f "$ac_dir/install-sh"; then
2381 ac_aux_dir=$ac_dir
2382 ac_install_sh="$ac_aux_dir/install-sh -c"
2383 break
2384 elif test -f "$ac_dir/install.sh"; then
2385 ac_aux_dir=$ac_dir
2386 ac_install_sh="$ac_aux_dir/install.sh -c"
2387 break
2388 elif test -f "$ac_dir/shtool"; then
2389 ac_aux_dir=$ac_dir
2390 ac_install_sh="$ac_aux_dir/shtool install -c"
2391 break
2392 fi
2393done
2394if test -z "$ac_aux_dir"; then
cae5b340
AX
2395 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2396$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2397 { (exit 1); exit 1; }; }
ea04106b
AX
2398fi
2399
2400# These three variables are undocumented and unsupported,
2401# and are intended to be withdrawn in a future Autoconf release.
2402# They can cause serious problems if a builder's source tree is in a directory
2403# whose full name contains unusual characters.
2404ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2405ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2406ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2407
2408
2409
2410# Make sure we can run config.sub.
2411$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cae5b340
AX
2412 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2413$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2414 { (exit 1); exit 1; }; }
ea04106b 2415
cae5b340 2416{ $as_echo "$as_me:$LINENO: checking build system type" >&5
ea04106b 2417$as_echo_n "checking build system type... " >&6; }
cae5b340 2418if test "${ac_cv_build+set}" = set; then
ea04106b
AX
2419 $as_echo_n "(cached) " >&6
2420else
2421 ac_build_alias=$build_alias
2422test "x$ac_build_alias" = x &&
2423 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2424test "x$ac_build_alias" = x &&
cae5b340
AX
2425 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2426$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2427 { (exit 1); exit 1; }; }
ea04106b 2428ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cae5b340
AX
2429 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2430$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2431 { (exit 1); exit 1; }; }
ea04106b
AX
2432
2433fi
cae5b340 2434{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
ea04106b
AX
2435$as_echo "$ac_cv_build" >&6; }
2436case $ac_cv_build in
2437*-*-*) ;;
cae5b340
AX
2438*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2439$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2440 { (exit 1); exit 1; }; };;
ea04106b
AX
2441esac
2442build=$ac_cv_build
2443ac_save_IFS=$IFS; IFS='-'
2444set x $ac_cv_build
2445shift
2446build_cpu=$1
2447build_vendor=$2
2448shift; shift
2449# Remember, the first character of IFS is used to create $*,
2450# except with old shells:
2451build_os=$*
2452IFS=$ac_save_IFS
2453case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2454
2455
cae5b340 2456{ $as_echo "$as_me:$LINENO: checking host system type" >&5
ea04106b 2457$as_echo_n "checking host system type... " >&6; }
cae5b340 2458if test "${ac_cv_host+set}" = set; then
ea04106b
AX
2459 $as_echo_n "(cached) " >&6
2460else
2461 if test "x$host_alias" = x; then
2462 ac_cv_host=$ac_cv_build
2463else
2464 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cae5b340
AX
2465 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2466$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2467 { (exit 1); exit 1; }; }
ea04106b
AX
2468fi
2469
2470fi
cae5b340 2471{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
ea04106b
AX
2472$as_echo "$ac_cv_host" >&6; }
2473case $ac_cv_host in
2474*-*-*) ;;
cae5b340
AX
2475*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2476$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2477 { (exit 1); exit 1; }; };;
ea04106b
AX
2478esac
2479host=$ac_cv_host
2480ac_save_IFS=$IFS; IFS='-'
2481set x $ac_cv_host
2482shift
2483host_cpu=$1
2484host_vendor=$2
2485shift; shift
2486# Remember, the first character of IFS is used to create $*,
2487# except with old shells:
2488host_os=$*
2489IFS=$ac_save_IFS
2490case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2491
2492
cae5b340 2493{ $as_echo "$as_me:$LINENO: checking target system type" >&5
ea04106b 2494$as_echo_n "checking target system type... " >&6; }
cae5b340 2495if test "${ac_cv_target+set}" = set; then
ea04106b
AX
2496 $as_echo_n "(cached) " >&6
2497else
2498 if test "x$target_alias" = x; then
2499 ac_cv_target=$ac_cv_host
2500else
2501 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cae5b340
AX
2502 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2503$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2504 { (exit 1); exit 1; }; }
ea04106b
AX
2505fi
2506
2507fi
cae5b340 2508{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
ea04106b
AX
2509$as_echo "$ac_cv_target" >&6; }
2510case $ac_cv_target in
2511*-*-*) ;;
cae5b340
AX
2512*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2513$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2514 { (exit 1); exit 1; }; };;
ea04106b
AX
2515esac
2516target=$ac_cv_target
2517ac_save_IFS=$IFS; IFS='-'
2518set x $ac_cv_target
2519shift
2520target_cpu=$1
2521target_vendor=$2
2522shift; shift
2523# Remember, the first character of IFS is used to create $*,
2524# except with old shells:
2525target_os=$*
2526IFS=$ac_save_IFS
2527case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2528
2529
2530# The aliases save the names the user supplied, while $host etc.
2531# will get canonicalized.
2532test -n "$target_alias" &&
2533 test "$program_prefix$program_suffix$program_transform_name" = \
2534 NONENONEs,x,x, &&
2535 program_prefix=${target_alias}-
2536
cae5b340 2537{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
ea04106b
AX
2538$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2539 # Check whether --enable-maintainer-mode was given.
cae5b340 2540if test "${enable_maintainer_mode+set}" = set; then
ea04106b
AX
2541 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2542else
2543 USE_MAINTAINER_MODE=no
2544fi
2545
cae5b340 2546 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
ea04106b
AX
2547$as_echo "$USE_MAINTAINER_MODE" >&6; }
2548 if test $USE_MAINTAINER_MODE = yes; then
2549 MAINTAINER_MODE_TRUE=
2550 MAINTAINER_MODE_FALSE='#'
2551else
2552 MAINTAINER_MODE_TRUE='#'
2553 MAINTAINER_MODE_FALSE=
2554fi
2555
2556 MAINT=$MAINTAINER_MODE_TRUE
2557
2558
2559# Check whether --enable-silent-rules was given.
cae5b340 2560if test "${enable_silent_rules+set}" = set; then
ea04106b
AX
2561 enableval=$enable_silent_rules;
2562fi
2563
cae5b340
AX
2564case $enable_silent_rules in
2565yes) AM_DEFAULT_VERBOSITY=0;;
2566no) AM_DEFAULT_VERBOSITY=1;;
2567*) AM_DEFAULT_VERBOSITY=0;;
ea04106b 2568esac
ea04106b
AX
2569AM_BACKSLASH='\'
2570
cae5b340 2571am__api_version='1.11'
ea04106b
AX
2572
2573# Find a good install program. We prefer a C program (faster),
2574# so one script is as good as another. But avoid the broken or
2575# incompatible versions:
2576# SysV /etc/install, /usr/sbin/install
2577# SunOS /usr/etc/install
2578# IRIX /sbin/install
2579# AIX /bin/install
2580# AmigaOS /C/install, which installs bootblocks on floppy discs
2581# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2582# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2583# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2584# OS/2's system install, which has a completely different semantic
2585# ./install, which can be erroneously created by make from ./install.sh.
2586# Reject install programs that cannot install multiple files.
cae5b340 2587{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
ea04106b
AX
2588$as_echo_n "checking for a BSD-compatible install... " >&6; }
2589if test -z "$INSTALL"; then
cae5b340 2590if test "${ac_cv_path_install+set}" = set; then
ea04106b
AX
2591 $as_echo_n "(cached) " >&6
2592else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594for as_dir in $PATH
2595do
2596 IFS=$as_save_IFS
2597 test -z "$as_dir" && as_dir=.
cae5b340
AX
2598 # Account for people who put trailing slashes in PATH elements.
2599case $as_dir/ in
2600 ./ | .// | /cC/* | \
ea04106b 2601 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cae5b340 2602 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
ea04106b
AX
2603 /usr/ucb/* ) ;;
2604 *)
2605 # OSF1 and SCO ODT 3.0 have their own names for install.
2606 # Don't use installbsd from OSF since it installs stuff as root
2607 # by default.
2608 for ac_prog in ginstall scoinst install; do
2609 for ac_exec_ext in '' $ac_executable_extensions; do
cae5b340 2610 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
ea04106b
AX
2611 if test $ac_prog = install &&
2612 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2613 # AIX install. It has an incompatible calling convention.
2614 :
2615 elif test $ac_prog = install &&
2616 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2617 # program-specific install script used by HP pwplus--don't use.
2618 :
2619 else
2620 rm -rf conftest.one conftest.two conftest.dir
2621 echo one > conftest.one
2622 echo two > conftest.two
2623 mkdir conftest.dir
2624 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2625 test -s conftest.one && test -s conftest.two &&
2626 test -s conftest.dir/conftest.one &&
2627 test -s conftest.dir/conftest.two
2628 then
2629 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2630 break 3
2631 fi
2632 fi
2633 fi
2634 done
2635 done
2636 ;;
2637esac
2638
cae5b340 2639done
ea04106b
AX
2640IFS=$as_save_IFS
2641
2642rm -rf conftest.one conftest.two conftest.dir
2643
2644fi
2645 if test "${ac_cv_path_install+set}" = set; then
2646 INSTALL=$ac_cv_path_install
2647 else
2648 # As a last resort, use the slow shell script. Don't cache a
2649 # value for INSTALL within a source directory, because that will
2650 # break other packages using the cache if that directory is
2651 # removed, or if the value is a relative name.
2652 INSTALL=$ac_install_sh
2653 fi
2654fi
cae5b340 2655{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
ea04106b
AX
2656$as_echo "$INSTALL" >&6; }
2657
2658# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2659# It thinks the first close brace ends the variable substitution.
2660test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2661
2662test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2663
2664test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2665
cae5b340 2666{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
ea04106b 2667$as_echo_n "checking whether build environment is sane... " >&6; }
cae5b340
AX
2668# Just in case
2669sleep 1
2670echo timestamp > conftest.file
ea04106b
AX
2671# Reject unsafe characters in $srcdir or the absolute working directory
2672# name. Accept space and tab only in the latter.
2673am_lf='
2674'
2675case `pwd` in
2676 *[\\\"\#\$\&\'\`$am_lf]*)
cae5b340
AX
2677 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2678$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2679 { (exit 1); exit 1; }; };;
ea04106b
AX
2680esac
2681case $srcdir in
2682 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cae5b340
AX
2683 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2684$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2685 { (exit 1); exit 1; }; };;
ea04106b
AX
2686esac
2687
cae5b340 2688# Do `set' in a subshell so we don't clobber the current shell's
ea04106b
AX
2689# arguments. Must try -L first in case configure is actually a
2690# symlink; some systems play weird games with the mod time of symlinks
2691# (eg FreeBSD returns the mod time of the symlink's containing
2692# directory).
2693if (
cae5b340
AX
2694 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2695 if test "$*" = "X"; then
2696 # -L didn't work.
2697 set X `ls -t "$srcdir/configure" conftest.file`
2698 fi
2699 rm -f conftest.file
2700 if test "$*" != "X $srcdir/configure conftest.file" \
2701 && test "$*" != "X conftest.file $srcdir/configure"; then
2702
2703 # If neither matched, then we have a broken ls. This can happen
2704 # if, for instance, CONFIG_SHELL is bash and it inherits a
2705 # broken ls alias from the environment. This has actually
2706 # happened. Such a system could not be considered "sane".
2707 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2708alias in your environment" >&5
2709$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2710alias in your environment" >&2;}
2711 { (exit 1); exit 1; }; }
2712 fi
2713
ea04106b
AX
2714 test "$2" = conftest.file
2715 )
2716then
2717 # Ok.
2718 :
2719else
cae5b340
AX
2720 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2721Check your system clock" >&5
2722$as_echo "$as_me: error: newly created file is older than distributed files!
2723Check your system clock" >&2;}
2724 { (exit 1); exit 1; }; }
ea04106b 2725fi
cae5b340 2726{ $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
2727$as_echo "yes" >&6; }
2728test "$program_prefix" != NONE &&
2729 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2730# Use a double $ so make ignores it.
2731test "$program_suffix" != NONE &&
2732 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2733# Double any \ or $.
2734# By default was `s,x,x', remove it if useless.
2735ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2736program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2737
cae5b340
AX
2738# expand $ac_aux_dir to an absolute path
2739am_aux_dir=`cd $ac_aux_dir && pwd`
ea04106b
AX
2740
2741if test x"${MISSING+set}" != xset; then
2742 case $am_aux_dir in
2743 *\ * | *\ *)
2744 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2745 *)
2746 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2747 esac
2748fi
2749# Use eval to expand $SHELL
cae5b340
AX
2750if eval "$MISSING --run true"; then
2751 am_missing_run="$MISSING --run "
ea04106b
AX
2752else
2753 am_missing_run=
cae5b340
AX
2754 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2755$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
ea04106b
AX
2756fi
2757
cae5b340 2758if test x"${install_sh}" != xset; then
ea04106b
AX
2759 case $am_aux_dir in
2760 *\ * | *\ *)
2761 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2762 *)
2763 install_sh="\${SHELL} $am_aux_dir/install-sh"
2764 esac
2765fi
2766
cae5b340
AX
2767# Installed binaries are usually stripped using `strip' when the user
2768# run `make install-strip'. However `strip' might not be the right
ea04106b 2769# tool to use in cross-compilation environments, therefore Automake
cae5b340 2770# will honor the `STRIP' environment variable to overrule this program.
ea04106b
AX
2771if test "$cross_compiling" != no; then
2772 if test -n "$ac_tool_prefix"; then
2773 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2774set dummy ${ac_tool_prefix}strip; ac_word=$2
cae5b340 2775{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 2776$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 2777if test "${ac_cv_prog_STRIP+set}" = set; then
ea04106b
AX
2778 $as_echo_n "(cached) " >&6
2779else
2780 if test -n "$STRIP"; then
2781 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2782else
2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784for as_dir in $PATH
2785do
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
cae5b340
AX
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 2790 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cae5b340 2791 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
2792 break 2
2793 fi
2794done
cae5b340 2795done
ea04106b
AX
2796IFS=$as_save_IFS
2797
2798fi
2799fi
2800STRIP=$ac_cv_prog_STRIP
2801if test -n "$STRIP"; then
cae5b340 2802 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
ea04106b
AX
2803$as_echo "$STRIP" >&6; }
2804else
cae5b340 2805 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
2806$as_echo "no" >&6; }
2807fi
2808
2809
2810fi
2811if test -z "$ac_cv_prog_STRIP"; then
2812 ac_ct_STRIP=$STRIP
2813 # Extract the first word of "strip", so it can be a program name with args.
2814set dummy strip; ac_word=$2
cae5b340 2815{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 2816$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 2817if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
ea04106b
AX
2818 $as_echo_n "(cached) " >&6
2819else
2820 if test -n "$ac_ct_STRIP"; then
2821 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2822else
2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824for as_dir in $PATH
2825do
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
cae5b340
AX
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 2830 ac_cv_prog_ac_ct_STRIP="strip"
cae5b340 2831 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
2832 break 2
2833 fi
2834done
cae5b340 2835done
ea04106b
AX
2836IFS=$as_save_IFS
2837
2838fi
2839fi
2840ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2841if test -n "$ac_ct_STRIP"; then
cae5b340 2842 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
ea04106b
AX
2843$as_echo "$ac_ct_STRIP" >&6; }
2844else
cae5b340 2845 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
2846$as_echo "no" >&6; }
2847fi
2848
2849 if test "x$ac_ct_STRIP" = x; then
2850 STRIP=":"
2851 else
2852 case $cross_compiling:$ac_tool_warned in
2853yes:)
cae5b340 2854{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
2855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2856ac_tool_warned=yes ;;
2857esac
2858 STRIP=$ac_ct_STRIP
2859 fi
2860else
2861 STRIP="$ac_cv_prog_STRIP"
2862fi
2863
2864fi
2865INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2866
cae5b340 2867{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
ea04106b
AX
2868$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2869if test -z "$MKDIR_P"; then
cae5b340 2870 if test "${ac_cv_path_mkdir+set}" = set; then
ea04106b
AX
2871 $as_echo_n "(cached) " >&6
2872else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2875do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
cae5b340 2878 for ac_prog in mkdir gmkdir; do
ea04106b 2879 for ac_exec_ext in '' $ac_executable_extensions; do
cae5b340 2880 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
ea04106b
AX
2881 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2882 'mkdir (GNU coreutils) '* | \
2883 'mkdir (coreutils) '* | \
2884 'mkdir (fileutils) '4.1*)
2885 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2886 break 3;;
2887 esac
2888 done
2889 done
cae5b340 2890done
ea04106b
AX
2891IFS=$as_save_IFS
2892
2893fi
2894
ea04106b
AX
2895 if test "${ac_cv_path_mkdir+set}" = set; then
2896 MKDIR_P="$ac_cv_path_mkdir -p"
2897 else
2898 # As a last resort, use the slow shell script. Don't cache a
2899 # value for MKDIR_P within a source directory, because that will
2900 # break other packages using the cache if that directory is
2901 # removed, or if the value is a relative name.
cae5b340 2902 test -d ./--version && rmdir ./--version
ea04106b
AX
2903 MKDIR_P="$ac_install_sh -d"
2904 fi
2905fi
cae5b340 2906{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
ea04106b
AX
2907$as_echo "$MKDIR_P" >&6; }
2908
cae5b340
AX
2909mkdir_p="$MKDIR_P"
2910case $mkdir_p in
2911 [\\/$]* | ?:[\\/]*) ;;
2912 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2913esac
2914
2915{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
ea04106b
AX
2916$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2917set x ${MAKE-make}
2918ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cae5b340 2919if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ea04106b
AX
2920 $as_echo_n "(cached) " >&6
2921else
2922 cat >conftest.make <<\_ACEOF
2923SHELL = /bin/sh
2924all:
2925 @echo '@@@%%%=$(MAKE)=@@@%%%'
2926_ACEOF
cae5b340 2927# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
ea04106b
AX
2928case `${MAKE-make} -f conftest.make 2>/dev/null` in
2929 *@@@%%%=?*=@@@%%%*)
2930 eval ac_cv_prog_make_${ac_make}_set=yes;;
2931 *)
2932 eval ac_cv_prog_make_${ac_make}_set=no;;
2933esac
2934rm -f conftest.make
2935fi
2936if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cae5b340 2937 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
2938$as_echo "yes" >&6; }
2939 SET_MAKE=
2940else
cae5b340 2941 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
2942$as_echo "no" >&6; }
2943 SET_MAKE="MAKE=${MAKE-make}"
2944fi
2945
2946rm -rf .tst 2>/dev/null
2947mkdir .tst 2>/dev/null
2948if test -d .tst; then
2949 am__leading_dot=.
2950else
2951 am__leading_dot=_
2952fi
2953rmdir .tst 2>/dev/null
2954
2955if test "`cd $srcdir && pwd`" != "`pwd`"; then
2956 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2957 # is not polluted with repeated "-I."
2958 am__isrc=' -I$(srcdir)'
2959 # test to see if srcdir already configured
2960 if test -f $srcdir/config.status; then
cae5b340
AX
2961 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2962$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2963 { (exit 1); exit 1; }; }
ea04106b
AX
2964 fi
2965fi
2966
2967# test whether we have cygpath
2968if test -z "$CYGPATH_W"; then
2969 if (cygpath --version) >/dev/null 2>/dev/null; then
2970 CYGPATH_W='cygpath -w'
2971 else
2972 CYGPATH_W=echo
2973 fi
2974fi
2975
2976
2977# Define the identity of the package.
2978 PACKAGE='zfs'
047218e2 2979 VERSION='0.7.6'
ea04106b
AX
2980
2981
2982cat >>confdefs.h <<_ACEOF
2983#define PACKAGE "$PACKAGE"
2984_ACEOF
2985
2986
2987cat >>confdefs.h <<_ACEOF
2988#define VERSION "$VERSION"
2989_ACEOF
2990
2991# Some tools Automake needs.
2992
2993ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2994
2995
2996AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2997
2998
2999AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3000
3001
3002AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3003
3004
3005MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3006
cae5b340
AX
3007# We need awk for the "check" target. The system "awk" is bad on
3008# some platforms.
3009# Always define AMTAR for backward compatibility.
ea04106b 3010
cae5b340 3011AMTAR=${AMTAR-"${am_missing_run}tar"}
68d83c55 3012
cae5b340 3013am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
68d83c55 3014
ea04106b
AX
3015
3016
3017
3018
cae5b340 3019ac_config_headers="$ac_config_headers zfs_config.h"
ea04106b 3020
68d83c55 3021
cae5b340
AX
3022# Find a good install program. We prefer a C program (faster),
3023# so one script is as good as another. But avoid the broken or
3024# incompatible versions:
3025# SysV /etc/install, /usr/sbin/install
3026# SunOS /usr/etc/install
3027# IRIX /sbin/install
3028# AIX /bin/install
3029# AmigaOS /C/install, which installs bootblocks on floppy discs
3030# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3031# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3032# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3033# OS/2's system install, which has a completely different semantic
3034# ./install, which can be erroneously created by make from ./install.sh.
3035# Reject install programs that cannot install multiple files.
3036{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3037$as_echo_n "checking for a BSD-compatible install... " >&6; }
3038if test -z "$INSTALL"; then
3039if test "${ac_cv_path_install+set}" = set; then
3040 $as_echo_n "(cached) " >&6
3041else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 # Account for people who put trailing slashes in PATH elements.
3048case $as_dir/ in
3049 ./ | .// | /cC/* | \
3050 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3051 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3052 /usr/ucb/* ) ;;
3053 *)
3054 # OSF1 and SCO ODT 3.0 have their own names for install.
3055 # Don't use installbsd from OSF since it installs stuff as root
3056 # by default.
3057 for ac_prog in ginstall scoinst install; do
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3060 if test $ac_prog = install &&
3061 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3062 # AIX install. It has an incompatible calling convention.
3063 :
3064 elif test $ac_prog = install &&
3065 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3066 # program-specific install script used by HP pwplus--don't use.
3067 :
3068 else
3069 rm -rf conftest.one conftest.two conftest.dir
3070 echo one > conftest.one
3071 echo two > conftest.two
3072 mkdir conftest.dir
3073 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3074 test -s conftest.one && test -s conftest.two &&
3075 test -s conftest.dir/conftest.one &&
3076 test -s conftest.dir/conftest.two
3077 then
3078 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3079 break 3
3080 fi
3081 fi
3082 fi
3083 done
3084 done
3085 ;;
3086esac
68d83c55 3087
cae5b340
AX
3088done
3089IFS=$as_save_IFS
68d83c55 3090
cae5b340 3091rm -rf conftest.one conftest.two conftest.dir
68d83c55 3092
cae5b340
AX
3093fi
3094 if test "${ac_cv_path_install+set}" = set; then
3095 INSTALL=$ac_cv_path_install
68d83c55 3096 else
cae5b340
AX
3097 # As a last resort, use the slow shell script. Don't cache a
3098 # value for INSTALL within a source directory, because that will
3099 # break other packages using the cache if that directory is
3100 # removed, or if the value is a relative name.
3101 INSTALL=$ac_install_sh
68d83c55
AX
3102 fi
3103fi
cae5b340
AX
3104{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3105$as_echo "$INSTALL" >&6; }
68d83c55 3106
cae5b340
AX
3107# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3108# It thinks the first close brace ends the variable substitution.
3109test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ea04106b 3110
cae5b340 3111test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
ea04106b 3112
cae5b340 3113test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
ea04106b
AX
3114
3115ac_ext=c
3116ac_cpp='$CPP $CPPFLAGS'
3117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120if test -n "$ac_tool_prefix"; then
3121 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3122set dummy ${ac_tool_prefix}gcc; ac_word=$2
cae5b340 3123{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 3124$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 3125if test "${ac_cv_prog_CC+set}" = set; then
ea04106b
AX
3126 $as_echo_n "(cached) " >&6
3127else
3128 if test -n "$CC"; then
3129 ac_cv_prog_CC="$CC" # Let the user override the test.
3130else
3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
cae5b340
AX
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 3138 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cae5b340 3139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
3140 break 2
3141 fi
3142done
cae5b340 3143done
ea04106b
AX
3144IFS=$as_save_IFS
3145
3146fi
3147fi
3148CC=$ac_cv_prog_CC
3149if test -n "$CC"; then
cae5b340 3150 { $as_echo "$as_me:$LINENO: result: $CC" >&5
ea04106b
AX
3151$as_echo "$CC" >&6; }
3152else
cae5b340 3153 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
3154$as_echo "no" >&6; }
3155fi
3156
3157
3158fi
3159if test -z "$ac_cv_prog_CC"; then
3160 ac_ct_CC=$CC
3161 # Extract the first word of "gcc", so it can be a program name with args.
3162set dummy gcc; ac_word=$2
cae5b340 3163{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 3164$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 3165if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ea04106b
AX
3166 $as_echo_n "(cached) " >&6
3167else
3168 if test -n "$ac_ct_CC"; then
3169 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3170else
3171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172for as_dir in $PATH
3173do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
cae5b340
AX
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 3178 ac_cv_prog_ac_ct_CC="gcc"
cae5b340 3179 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
3180 break 2
3181 fi
3182done
cae5b340 3183done
ea04106b
AX
3184IFS=$as_save_IFS
3185
3186fi
3187fi
3188ac_ct_CC=$ac_cv_prog_ac_ct_CC
3189if test -n "$ac_ct_CC"; then
cae5b340 3190 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
ea04106b
AX
3191$as_echo "$ac_ct_CC" >&6; }
3192else
cae5b340 3193 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
3194$as_echo "no" >&6; }
3195fi
3196
3197 if test "x$ac_ct_CC" = x; then
3198 CC=""
3199 else
3200 case $cross_compiling:$ac_tool_warned in
3201yes:)
cae5b340 3202{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
3203$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3204ac_tool_warned=yes ;;
3205esac
3206 CC=$ac_ct_CC
3207 fi
3208else
3209 CC="$ac_cv_prog_CC"
3210fi
3211
3212if test -z "$CC"; then
3213 if test -n "$ac_tool_prefix"; then
3214 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3215set dummy ${ac_tool_prefix}cc; ac_word=$2
cae5b340 3216{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 3217$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 3218if test "${ac_cv_prog_CC+set}" = set; then
ea04106b
AX
3219 $as_echo_n "(cached) " >&6
3220else
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC="$CC" # Let the user override the test.
3223else
3224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225for as_dir in $PATH
3226do
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
cae5b340
AX
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 3231 ac_cv_prog_CC="${ac_tool_prefix}cc"
cae5b340 3232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
3233 break 2
3234 fi
3235done
cae5b340 3236done
ea04106b
AX
3237IFS=$as_save_IFS
3238
3239fi
3240fi
3241CC=$ac_cv_prog_CC
3242if test -n "$CC"; then
cae5b340 3243 { $as_echo "$as_me:$LINENO: result: $CC" >&5
ea04106b
AX
3244$as_echo "$CC" >&6; }
3245else
cae5b340 3246 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
3247$as_echo "no" >&6; }
3248fi
3249
3250
3251 fi
3252fi
3253if test -z "$CC"; then
3254 # Extract the first word of "cc", so it can be a program name with args.
3255set dummy cc; ac_word=$2
cae5b340 3256{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 3257$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 3258if test "${ac_cv_prog_CC+set}" = set; then
ea04106b
AX
3259 $as_echo_n "(cached) " >&6
3260else
3261 if test -n "$CC"; then
3262 ac_cv_prog_CC="$CC" # Let the user override the test.
3263else
3264 ac_prog_rejected=no
3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266for as_dir in $PATH
3267do
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
cae5b340
AX
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b
AX
3272 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3273 ac_prog_rejected=yes
3274 continue
3275 fi
3276 ac_cv_prog_CC="cc"
cae5b340 3277 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
3278 break 2
3279 fi
3280done
cae5b340 3281done
ea04106b
AX
3282IFS=$as_save_IFS
3283
3284if test $ac_prog_rejected = yes; then
3285 # We found a bogon in the path, so make sure we never use it.
3286 set dummy $ac_cv_prog_CC
3287 shift
3288 if test $# != 0; then
3289 # We chose a different compiler from the bogus one.
3290 # However, it has the same basename, so the bogon will be chosen
3291 # first if we set CC to just the basename; use the full file name.
3292 shift
3293 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3294 fi
3295fi
3296fi
3297fi
3298CC=$ac_cv_prog_CC
3299if test -n "$CC"; then
cae5b340 3300 { $as_echo "$as_me:$LINENO: result: $CC" >&5
ea04106b
AX
3301$as_echo "$CC" >&6; }
3302else
cae5b340 3303 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
3304$as_echo "no" >&6; }
3305fi
3306
3307
3308fi
3309if test -z "$CC"; then
3310 if test -n "$ac_tool_prefix"; then
3311 for ac_prog in cl.exe
3312 do
3313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3314set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cae5b340 3315{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 3316$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 3317if test "${ac_cv_prog_CC+set}" = set; then
ea04106b
AX
3318 $as_echo_n "(cached) " >&6
3319else
3320 if test -n "$CC"; then
3321 ac_cv_prog_CC="$CC" # Let the user override the test.
3322else
3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324for as_dir in $PATH
3325do
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
cae5b340
AX
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 3330 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cae5b340 3331 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
3332 break 2
3333 fi
3334done
cae5b340 3335done
ea04106b
AX
3336IFS=$as_save_IFS
3337
3338fi
3339fi
3340CC=$ac_cv_prog_CC
3341if test -n "$CC"; then
cae5b340 3342 { $as_echo "$as_me:$LINENO: result: $CC" >&5
ea04106b
AX
3343$as_echo "$CC" >&6; }
3344else
cae5b340 3345 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
3346$as_echo "no" >&6; }
3347fi
3348
3349
3350 test -n "$CC" && break
3351 done
3352fi
3353if test -z "$CC"; then
3354 ac_ct_CC=$CC
3355 for ac_prog in cl.exe
3356do
3357 # Extract the first word of "$ac_prog", so it can be a program name with args.
3358set dummy $ac_prog; ac_word=$2
cae5b340 3359{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 3360$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 3361if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ea04106b
AX
3362 $as_echo_n "(cached) " >&6
3363else
3364 if test -n "$ac_ct_CC"; then
3365 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3366else
3367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368for as_dir in $PATH
3369do
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
cae5b340
AX
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 3374 ac_cv_prog_ac_ct_CC="$ac_prog"
cae5b340 3375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
3376 break 2
3377 fi
3378done
cae5b340 3379done
ea04106b
AX
3380IFS=$as_save_IFS
3381
3382fi
3383fi
3384ac_ct_CC=$ac_cv_prog_ac_ct_CC
3385if test -n "$ac_ct_CC"; then
cae5b340 3386 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
ea04106b
AX
3387$as_echo "$ac_ct_CC" >&6; }
3388else
cae5b340 3389 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
3390$as_echo "no" >&6; }
3391fi
3392
3393
3394 test -n "$ac_ct_CC" && break
3395done
3396
3397 if test "x$ac_ct_CC" = x; then
3398 CC=""
3399 else
3400 case $cross_compiling:$ac_tool_warned in
3401yes:)
cae5b340 3402{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
3403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3404ac_tool_warned=yes ;;
3405esac
3406 CC=$ac_ct_CC
3407 fi
3408fi
3409
3410fi
3411
3412
cae5b340 3413test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
ea04106b 3414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cae5b340
AX
3415{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3416See \`config.log' for more details." >&5
3417$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3418See \`config.log' for more details." >&2;}
3419 { (exit 1); exit 1; }; }; }
ea04106b
AX
3420
3421# Provide some information about the compiler.
cae5b340 3422$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
ea04106b
AX
3423set X $ac_compile
3424ac_compiler=$2
cae5b340 3425{ (ac_try="$ac_compiler --version >&5"
ea04106b
AX
3426case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429esac
cae5b340
AX
3430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3431$as_echo "$ac_try_echo") >&5
3432 (eval "$ac_compiler --version >&5") 2>&5
3433 ac_status=$?
3434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }
3436{ (ac_try="$ac_compiler -v >&5"
3437case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440esac
3441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3442$as_echo "$ac_try_echo") >&5
3443 (eval "$ac_compiler -v >&5") 2>&5
3444 ac_status=$?
3445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }
3447{ (ac_try="$ac_compiler -V >&5"
3448case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451esac
3452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3453$as_echo "$ac_try_echo") >&5
3454 (eval "$ac_compiler -V >&5") 2>&5
3455 ac_status=$?
3456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }
ea04106b 3458
cae5b340
AX
3459cat >conftest.$ac_ext <<_ACEOF
3460/* confdefs.h. */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
3464/* end confdefs.h. */
3465
3466int
3467main ()
3468{
3469
3470 ;
3471 return 0;
3472}
3473_ACEOF
3474ac_clean_files_save=$ac_clean_files
3475ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3476# Try to create an executable without -o first, disregard a.out.
3477# It will help us diagnose broken compilers, and finding out an intuition
3478# of exeext.
cae5b340
AX
3479{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3480$as_echo_n "checking for C compiler default output file name... " >&6; }
ea04106b
AX
3481ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3482
3483# The possible output files:
3484ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3485
3486ac_rmfiles=
3487for ac_file in $ac_files
3488do
3489 case $ac_file in
3490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3491 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3492 esac
3493done
3494rm -f $ac_rmfiles
3495
cae5b340 3496if { (ac_try="$ac_link_default"
ea04106b
AX
3497case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500esac
cae5b340
AX
3501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3502$as_echo "$ac_try_echo") >&5
ea04106b
AX
3503 (eval "$ac_link_default") 2>&5
3504 ac_status=$?
cae5b340
AX
3505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; then
ea04106b
AX
3507 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3508# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3509# in a Makefile. We should not override ac_cv_exeext if it was cached,
3510# so that the user can short-circuit this test for compilers unknown to
3511# Autoconf.
3512for ac_file in $ac_files ''
3513do
3514 test -f "$ac_file" || continue
3515 case $ac_file in
3516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3517 ;;
3518 [ab].out )
3519 # We found the default executable, but exeext='' is most
3520 # certainly right.
3521 break;;
3522 *.* )
cae5b340 3523 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
ea04106b
AX
3524 then :; else
3525 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3526 fi
3527 # We set ac_cv_exeext here because the later test for it is not
3528 # safe: cross compilers may not add the suffix if given an `-o'
3529 # argument, so we may need to know it at that point already.
3530 # Even if this section looks crufty: it has the advantage of
3531 # actually working.
3532 break;;
3533 * )
3534 break;;
3535 esac
3536done
3537test "$ac_cv_exeext" = no && ac_cv_exeext=
3538
3539else
3540 ac_file=''
3541fi
cae5b340
AX
3542
3543{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3544$as_echo "$ac_file" >&6; }
3545if test -z "$ac_file"; then
3546 $as_echo "$as_me: failed program was:" >&5
ea04106b
AX
3547sed 's/^/| /' conftest.$ac_ext >&5
3548
cae5b340 3549{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
ea04106b 3550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cae5b340
AX
3551{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3552See \`config.log' for more details." >&5
3553$as_echo "$as_me: error: C compiler cannot create executables
3554See \`config.log' for more details." >&2;}
3555 { (exit 77); exit 77; }; }; }
ea04106b 3556fi
cae5b340 3557
ea04106b
AX
3558ac_exeext=$ac_cv_exeext
3559
cae5b340
AX
3560# Check that the compiler produces executables we can run. If not, either
3561# the compiler is broken, or we cross compile.
3562{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3563$as_echo_n "checking whether the C compiler works... " >&6; }
3564# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3565# If not cross compiling, check that we can run a simple program.
3566if test "$cross_compiling" != yes; then
3567 if { ac_try='./$ac_file'
3568 { (case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571esac
3572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3573$as_echo "$ac_try_echo") >&5
3574 (eval "$ac_try") 2>&5
3575 ac_status=$?
3576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3578 cross_compiling=no
3579 else
3580 if test "$cross_compiling" = maybe; then
3581 cross_compiling=yes
3582 else
3583 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3586If you meant to cross compile, use \`--host'.
3587See \`config.log' for more details." >&5
3588$as_echo "$as_me: error: cannot run C compiled programs.
3589If you meant to cross compile, use \`--host'.
3590See \`config.log' for more details." >&2;}
3591 { (exit 1); exit 1; }; }; }
3592 fi
3593 fi
3594fi
3595{ $as_echo "$as_me:$LINENO: result: yes" >&5
3596$as_echo "yes" >&6; }
3597
ea04106b
AX
3598rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3599ac_clean_files=$ac_clean_files_save
cae5b340
AX
3600# Check that the compiler produces executables we can run. If not, either
3601# the compiler is broken, or we cross compile.
3602{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3603$as_echo_n "checking whether we are cross compiling... " >&6; }
3604{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3605$as_echo "$cross_compiling" >&6; }
3606
3607{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
ea04106b 3608$as_echo_n "checking for suffix of executables... " >&6; }
cae5b340 3609if { (ac_try="$ac_link"
ea04106b
AX
3610case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613esac
cae5b340
AX
3614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3615$as_echo "$ac_try_echo") >&5
ea04106b
AX
3616 (eval "$ac_link") 2>&5
3617 ac_status=$?
cae5b340
AX
3618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; then
ea04106b
AX
3620 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3621# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3622# work properly (i.e., refer to `conftest.exe'), while it won't with
3623# `rm'.
3624for ac_file in conftest.exe conftest conftest.*; do
3625 test -f "$ac_file" || continue
3626 case $ac_file in
3627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3628 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3629 break;;
3630 * ) break;;
3631 esac
3632done
3633else
cae5b340 3634 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
ea04106b 3635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cae5b340
AX
3636{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3637See \`config.log' for more details." >&5
3638$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3639See \`config.log' for more details." >&2;}
3640 { (exit 1); exit 1; }; }; }
ea04106b 3641fi
cae5b340
AX
3642
3643rm -f conftest$ac_cv_exeext
3644{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
ea04106b
AX
3645$as_echo "$ac_cv_exeext" >&6; }
3646
3647rm -f conftest.$ac_ext
3648EXEEXT=$ac_cv_exeext
3649ac_exeext=$EXEEXT
cae5b340 3650{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
ea04106b 3651$as_echo_n "checking for suffix of object files... " >&6; }
cae5b340 3652if test "${ac_cv_objext+set}" = set; then
ea04106b
AX
3653 $as_echo_n "(cached) " >&6
3654else
cae5b340
AX
3655 cat >conftest.$ac_ext <<_ACEOF
3656/* confdefs.h. */
3657_ACEOF
3658cat confdefs.h >>conftest.$ac_ext
3659cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
3660/* end confdefs.h. */
3661
3662int
3663main ()
3664{
3665
3666 ;
3667 return 0;
3668}
3669_ACEOF
3670rm -f conftest.o conftest.obj
cae5b340 3671if { (ac_try="$ac_compile"
ea04106b
AX
3672case "(($ac_try" in
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3675esac
cae5b340
AX
3676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3677$as_echo "$ac_try_echo") >&5
ea04106b
AX
3678 (eval "$ac_compile") 2>&5
3679 ac_status=$?
cae5b340
AX
3680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; then
ea04106b
AX
3682 for ac_file in conftest.o conftest.obj conftest.*; do
3683 test -f "$ac_file" || continue;
3684 case $ac_file in
3685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3686 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3687 break;;
3688 esac
3689done
3690else
3691 $as_echo "$as_me: failed program was:" >&5
3692sed 's/^/| /' conftest.$ac_ext >&5
3693
cae5b340 3694{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
ea04106b 3695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cae5b340
AX
3696{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3697See \`config.log' for more details." >&5
3698$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3699See \`config.log' for more details." >&2;}
3700 { (exit 1); exit 1; }; }; }
ea04106b 3701fi
cae5b340 3702
ea04106b
AX
3703rm -f conftest.$ac_cv_objext conftest.$ac_ext
3704fi
cae5b340 3705{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
ea04106b
AX
3706$as_echo "$ac_cv_objext" >&6; }
3707OBJEXT=$ac_cv_objext
3708ac_objext=$OBJEXT
cae5b340 3709{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
ea04106b 3710$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cae5b340 3711if test "${ac_cv_c_compiler_gnu+set}" = set; then
ea04106b
AX
3712 $as_echo_n "(cached) " >&6
3713else
cae5b340
AX
3714 cat >conftest.$ac_ext <<_ACEOF
3715/* confdefs.h. */
3716_ACEOF
3717cat confdefs.h >>conftest.$ac_ext
3718cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
3719/* end confdefs.h. */
3720
3721int
3722main ()
3723{
3724#ifndef __GNUC__
3725 choke me
3726#endif
3727
3728 ;
3729 return 0;
3730}
3731_ACEOF
cae5b340
AX
3732rm -f conftest.$ac_objext
3733if { (ac_try="$ac_compile"
3734case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3737esac
3738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3739$as_echo "$ac_try_echo") >&5
3740 (eval "$ac_compile") 2>conftest.er1
3741 ac_status=$?
3742 grep -v '^ *+' conftest.er1 >conftest.err
3743 rm -f conftest.er1
3744 cat conftest.err >&5
3745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } && {
3747 test -z "$ac_c_werror_flag" ||
3748 test ! -s conftest.err
3749 } && test -s conftest.$ac_objext; then
ea04106b
AX
3750 ac_compiler_gnu=yes
3751else
cae5b340
AX
3752 $as_echo "$as_me: failed program was:" >&5
3753sed 's/^/| /' conftest.$ac_ext >&5
3754
3755 ac_compiler_gnu=no
ea04106b 3756fi
cae5b340 3757
ea04106b
AX
3758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759ac_cv_c_compiler_gnu=$ac_compiler_gnu
3760
3761fi
cae5b340 3762{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
ea04106b
AX
3763$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3764if test $ac_compiler_gnu = yes; then
3765 GCC=yes
3766else
3767 GCC=
3768fi
3769ac_test_CFLAGS=${CFLAGS+set}
3770ac_save_CFLAGS=$CFLAGS
cae5b340 3771{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
ea04106b 3772$as_echo_n "checking whether $CC accepts -g... " >&6; }
cae5b340 3773if test "${ac_cv_prog_cc_g+set}" = set; then
ea04106b
AX
3774 $as_echo_n "(cached) " >&6
3775else
3776 ac_save_c_werror_flag=$ac_c_werror_flag
3777 ac_c_werror_flag=yes
3778 ac_cv_prog_cc_g=no
3779 CFLAGS="-g"
cae5b340
AX
3780 cat >conftest.$ac_ext <<_ACEOF
3781/* confdefs.h. */
3782_ACEOF
3783cat confdefs.h >>conftest.$ac_ext
3784cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
3785/* end confdefs.h. */
3786
3787int
3788main ()
3789{
3790
3791 ;
3792 return 0;
3793}
3794_ACEOF
cae5b340
AX
3795rm -f conftest.$ac_objext
3796if { (ac_try="$ac_compile"
3797case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800esac
3801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3802$as_echo "$ac_try_echo") >&5
3803 (eval "$ac_compile") 2>conftest.er1
3804 ac_status=$?
3805 grep -v '^ *+' conftest.er1 >conftest.err
3806 rm -f conftest.er1
3807 cat conftest.err >&5
3808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } && {
3810 test -z "$ac_c_werror_flag" ||
3811 test ! -s conftest.err
3812 } && test -s conftest.$ac_objext; then
ea04106b
AX
3813 ac_cv_prog_cc_g=yes
3814else
cae5b340
AX
3815 $as_echo "$as_me: failed program was:" >&5
3816sed 's/^/| /' conftest.$ac_ext >&5
3817
3818 CFLAGS=""
3819 cat >conftest.$ac_ext <<_ACEOF
3820/* confdefs.h. */
3821_ACEOF
3822cat confdefs.h >>conftest.$ac_ext
3823cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
3824/* end confdefs.h. */
3825
3826int
3827main ()
3828{
3829
3830 ;
3831 return 0;
3832}
3833_ACEOF
cae5b340
AX
3834rm -f conftest.$ac_objext
3835if { (ac_try="$ac_compile"
3836case "(($ac_try" in
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3839esac
3840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3841$as_echo "$ac_try_echo") >&5
3842 (eval "$ac_compile") 2>conftest.er1
3843 ac_status=$?
3844 grep -v '^ *+' conftest.er1 >conftest.err
3845 rm -f conftest.er1
3846 cat conftest.err >&5
3847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } && {
3849 test -z "$ac_c_werror_flag" ||
3850 test ! -s conftest.err
3851 } && test -s conftest.$ac_objext; then
3852 :
ea04106b 3853else
cae5b340
AX
3854 $as_echo "$as_me: failed program was:" >&5
3855sed 's/^/| /' conftest.$ac_ext >&5
3856
3857 ac_c_werror_flag=$ac_save_c_werror_flag
ea04106b 3858 CFLAGS="-g"
cae5b340
AX
3859 cat >conftest.$ac_ext <<_ACEOF
3860/* confdefs.h. */
3861_ACEOF
3862cat confdefs.h >>conftest.$ac_ext
3863cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
3864/* end confdefs.h. */
3865
3866int
3867main ()
3868{
3869
3870 ;
3871 return 0;
3872}
3873_ACEOF
cae5b340
AX
3874rm -f conftest.$ac_objext
3875if { (ac_try="$ac_compile"
3876case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3879esac
3880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3881$as_echo "$ac_try_echo") >&5
3882 (eval "$ac_compile") 2>conftest.er1
3883 ac_status=$?
3884 grep -v '^ *+' conftest.er1 >conftest.err
3885 rm -f conftest.er1
3886 cat conftest.err >&5
3887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } && {
3889 test -z "$ac_c_werror_flag" ||
3890 test ! -s conftest.err
3891 } && test -s conftest.$ac_objext; then
ea04106b 3892 ac_cv_prog_cc_g=yes
cae5b340
AX
3893else
3894 $as_echo "$as_me: failed program was:" >&5
3895sed 's/^/| /' conftest.$ac_ext >&5
3896
3897
ea04106b 3898fi
cae5b340 3899
ea04106b
AX
3900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901fi
cae5b340 3902
ea04106b
AX
3903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904fi
cae5b340 3905
ea04106b
AX
3906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907 ac_c_werror_flag=$ac_save_c_werror_flag
3908fi
cae5b340 3909{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
ea04106b
AX
3910$as_echo "$ac_cv_prog_cc_g" >&6; }
3911if test "$ac_test_CFLAGS" = set; then
3912 CFLAGS=$ac_save_CFLAGS
3913elif test $ac_cv_prog_cc_g = yes; then
3914 if test "$GCC" = yes; then
3915 CFLAGS="-g -O2"
3916 else
3917 CFLAGS="-g"
3918 fi
3919else
3920 if test "$GCC" = yes; then
3921 CFLAGS="-O2"
3922 else
3923 CFLAGS=
3924 fi
3925fi
cae5b340 3926{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
ea04106b 3927$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cae5b340 3928if test "${ac_cv_prog_cc_c89+set}" = set; then
ea04106b
AX
3929 $as_echo_n "(cached) " >&6
3930else
3931 ac_cv_prog_cc_c89=no
3932ac_save_CC=$CC
cae5b340
AX
3933cat >conftest.$ac_ext <<_ACEOF
3934/* confdefs.h. */
3935_ACEOF
3936cat confdefs.h >>conftest.$ac_ext
3937cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
3938/* end confdefs.h. */
3939#include <stdarg.h>
3940#include <stdio.h>
cae5b340
AX
3941#include <sys/types.h>
3942#include <sys/stat.h>
ea04106b
AX
3943/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3944struct buf { int x; };
3945FILE * (*rcsopen) (struct buf *, struct stat *, int);
3946static char *e (p, i)
3947 char **p;
3948 int i;
3949{
3950 return p[i];
3951}
3952static char *f (char * (*g) (char **, int), char **p, ...)
3953{
3954 char *s;
3955 va_list v;
3956 va_start (v,p);
3957 s = g (p, va_arg (v,int));
3958 va_end (v);
3959 return s;
3960}
3961
3962/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3963 function prototypes and stuff, but not '\xHH' hex character constants.
3964 These don't provoke an error unfortunately, instead are silently treated
3965 as 'x'. The following induces an error, until -std is added to get
3966 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3967 array size at least. It's necessary to write '\x00'==0 to get something
3968 that's true only with -std. */
3969int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3970
3971/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3972 inside strings and character constants. */
3973#define FOO(x) 'x'
3974int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3975
3976int test (int i, double x);
3977struct s1 {int (*f) (int a);};
3978struct s2 {int (*f) (double a);};
3979int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3980int argc;
3981char **argv;
3982int
3983main ()
3984{
3985return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3986 ;
3987 return 0;
3988}
3989_ACEOF
3990for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3991 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3992do
3993 CC="$ac_save_CC $ac_arg"
cae5b340
AX
3994 rm -f conftest.$ac_objext
3995if { (ac_try="$ac_compile"
3996case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999esac
4000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4001$as_echo "$ac_try_echo") >&5
4002 (eval "$ac_compile") 2>conftest.er1
4003 ac_status=$?
4004 grep -v '^ *+' conftest.er1 >conftest.err
4005 rm -f conftest.er1
4006 cat conftest.err >&5
4007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && {
4009 test -z "$ac_c_werror_flag" ||
4010 test ! -s conftest.err
4011 } && test -s conftest.$ac_objext; then
ea04106b 4012 ac_cv_prog_cc_c89=$ac_arg
cae5b340
AX
4013else
4014 $as_echo "$as_me: failed program was:" >&5
4015sed 's/^/| /' conftest.$ac_ext >&5
4016
4017
ea04106b 4018fi
cae5b340 4019
ea04106b
AX
4020rm -f core conftest.err conftest.$ac_objext
4021 test "x$ac_cv_prog_cc_c89" != "xno" && break
4022done
4023rm -f conftest.$ac_ext
4024CC=$ac_save_CC
4025
4026fi
4027# AC_CACHE_VAL
4028case "x$ac_cv_prog_cc_c89" in
4029 x)
cae5b340 4030 { $as_echo "$as_me:$LINENO: result: none needed" >&5
ea04106b
AX
4031$as_echo "none needed" >&6; } ;;
4032 xno)
cae5b340 4033 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
ea04106b
AX
4034$as_echo "unsupported" >&6; } ;;
4035 *)
4036 CC="$CC $ac_cv_prog_cc_c89"
cae5b340 4037 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
ea04106b
AX
4038$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4039esac
68d83c55 4040
68d83c55 4041
68d83c55
AX
4042ac_ext=c
4043ac_cpp='$CPP $CPPFLAGS'
4044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046ac_compiler_gnu=$ac_cv_c_compiler_gnu
ea04106b
AX
4047DEPDIR="${am__leading_dot}deps"
4048
4049ac_config_commands="$ac_config_commands depfiles"
4050
4051
4052am_make=${MAKE-make}
4053cat > confinc << 'END'
4054am__doit:
4055 @echo this is the am__doit target
4056.PHONY: am__doit
4057END
4058# If we don't find an include directive, just comment out the code.
cae5b340 4059{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
ea04106b
AX
4060$as_echo_n "checking for style of include used by $am_make... " >&6; }
4061am__include="#"
4062am__quote=
4063_am_result=none
4064# First try GNU make style include.
4065echo "include confinc" > confmf
cae5b340 4066# Ignore all kinds of additional output from `make'.
ea04106b
AX
4067case `$am_make -s -f confmf 2> /dev/null` in #(
4068*the\ am__doit\ target*)
4069 am__include=include
4070 am__quote=
4071 _am_result=GNU
4072 ;;
4073esac
4074# Now try BSD make style include.
4075if test "$am__include" = "#"; then
4076 echo '.include "confinc"' > confmf
4077 case `$am_make -s -f confmf 2> /dev/null` in #(
4078 *the\ am__doit\ target*)
4079 am__include=.include
4080 am__quote="\""
4081 _am_result=BSD
4082 ;;
4083 esac
4084fi
4085
4086
cae5b340 4087{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
ea04106b
AX
4088$as_echo "$_am_result" >&6; }
4089rm -f confinc confmf
4090
4091# Check whether --enable-dependency-tracking was given.
cae5b340 4092if test "${enable_dependency_tracking+set}" = set; then
ea04106b
AX
4093 enableval=$enable_dependency_tracking;
4094fi
4095
4096if test "x$enable_dependency_tracking" != xno; then
4097 am_depcomp="$ac_aux_dir/depcomp"
4098 AMDEPBACKSLASH='\'
ea04106b
AX
4099fi
4100 if test "x$enable_dependency_tracking" != xno; then
4101 AMDEP_TRUE=
4102 AMDEP_FALSE='#'
4103else
4104 AMDEP_TRUE='#'
4105 AMDEP_FALSE=
4106fi
4107
4108
4109
4110depcc="$CC" am_compiler_list=
4111
cae5b340 4112{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
ea04106b 4113$as_echo_n "checking dependency style of $depcc... " >&6; }
cae5b340 4114if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
ea04106b
AX
4115 $as_echo_n "(cached) " >&6
4116else
4117 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4118 # We make a subdir and do the tests there. Otherwise we can end up
4119 # making bogus files that we don't know about and never remove. For
4120 # instance it was reported that on HP-UX the gcc test will end up
cae5b340
AX
4121 # making a dummy file named `D' -- because `-MD' means `put the output
4122 # in D'.
ea04106b
AX
4123 mkdir conftest.dir
4124 # Copy depcomp to subdir because otherwise we won't find it if we're
4125 # using a relative directory.
4126 cp "$am_depcomp" conftest.dir
4127 cd conftest.dir
4128 # We will build objects and dependencies in a subdirectory because
4129 # it helps to detect inapplicable dependency modes. For instance
4130 # both Tru64's cc and ICC support -MD to output dependencies as a
4131 # side effect of compilation, but ICC will put the dependencies in
4132 # the current directory while Tru64 will put them in the object
4133 # directory.
4134 mkdir sub
4135
4136 am_cv_CC_dependencies_compiler_type=none
4137 if test "$am_compiler_list" = ""; then
4138 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4139 fi
4140 am__universal=false
4141 case " $depcc " in #(
4142 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4143 esac
4144
4145 for depmode in $am_compiler_list; do
4146 # Setup a source with many dependencies, because some compilers
4147 # like to wrap large dependency lists on column 80 (with \), and
4148 # we should not choose a depcomp mode which is confused by this.
4149 #
4150 # We need to recreate these files for each test, as the compiler may
4151 # overwrite some of them when testing with obscure command lines.
4152 # This happens at least with the AIX C compiler.
4153 : > sub/conftest.c
4154 for i in 1 2 3 4 5 6; do
4155 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cae5b340
AX
4156 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4157 # Solaris 8's {/usr,}/bin/sh.
4158 touch sub/conftst$i.h
ea04106b
AX
4159 done
4160 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4161
cae5b340 4162 # We check with `-c' and `-o' for the sake of the "dashmstdout"
ea04106b 4163 # mode. It turns out that the SunPro C++ compiler does not properly
cae5b340
AX
4164 # handle `-M -o', and we need to detect this. Also, some Intel
4165 # versions had trouble with output in subdirs
ea04106b
AX
4166 am__obj=sub/conftest.${OBJEXT-o}
4167 am__minus_obj="-o $am__obj"
4168 case $depmode in
4169 gcc)
4170 # This depmode causes a compiler race in universal mode.
4171 test "$am__universal" = false || continue
4172 ;;
4173 nosideeffect)
cae5b340
AX
4174 # after this tag, mechanisms are not by side-effect, so they'll
4175 # only be used when explicitly requested
ea04106b
AX
4176 if test "x$enable_dependency_tracking" = xyes; then
4177 continue
4178 else
4179 break
4180 fi
4181 ;;
cae5b340
AX
4182 msvisualcpp | msvcmsys)
4183 # This compiler won't grok `-c -o', but also, the minuso test has
ea04106b
AX
4184 # not run yet. These depmodes are late enough in the game, and
4185 # so weak that their functioning should not be impacted.
4186 am__obj=conftest.${OBJEXT-o}
4187 am__minus_obj=
4188 ;;
4189 none) break ;;
4190 esac
4191 if depmode=$depmode \
4192 source=sub/conftest.c object=$am__obj \
4193 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4194 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4195 >/dev/null 2>conftest.err &&
4196 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4197 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4198 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4199 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4200 # icc doesn't choke on unknown options, it will just issue warnings
4201 # or remarks (even with -Werror). So we grep stderr for any message
4202 # that says an option was ignored or not supported.
4203 # When given -MP, icc 7.0 and 7.1 complain thusly:
4204 # icc: Command line warning: ignoring option '-M'; no argument required
4205 # The diagnosis changed in icc 8.0:
4206 # icc: Command line remark: option '-MP' not supported
4207 if (grep 'ignoring option' conftest.err ||
4208 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4209 am_cv_CC_dependencies_compiler_type=$depmode
4210 break
4211 fi
4212 fi
4213 done
4214
4215 cd ..
4216 rm -rf conftest.dir
4217else
4218 am_cv_CC_dependencies_compiler_type=none
4219fi
4220
4221fi
cae5b340 4222{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
ea04106b
AX
4223$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4224CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4225
4226 if
4227 test "x$enable_dependency_tracking" != xno \
4228 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4229 am__fastdepCC_TRUE=
4230 am__fastdepCC_FALSE='#'
4231else
4232 am__fastdepCC_TRUE='#'
4233 am__fastdepCC_FALSE=
4234fi
4235
4236
4237case `pwd` in
4238 *\ * | *\ *)
cae5b340 4239 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
ea04106b
AX
4240$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4241esac
4242
4243
4244
cae5b340
AX
4245macro_version='2.2.6b'
4246macro_revision='1.3017'
ea04106b
AX
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
cae5b340 4260ltmain="$ac_aux_dir/ltmain.sh"
ea04106b 4261
cae5b340 4262{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
ea04106b 4263$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cae5b340 4264if test "${ac_cv_path_SED+set}" = set; then
ea04106b
AX
4265 $as_echo_n "(cached) " >&6
4266else
4267 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4268 for ac_i in 1 2 3 4 5 6 7; do
4269 ac_script="$ac_script$as_nl$ac_script"
4270 done
4271 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cae5b340 4272 $as_unset ac_script || ac_script=
ea04106b
AX
4273 if test -z "$SED"; then
4274 ac_path_SED_found=false
4275 # Loop through the user's path and test for each of PROGNAME-LIST
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277for as_dir in $PATH
4278do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
cae5b340 4281 for ac_prog in sed gsed; do
ea04106b
AX
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cae5b340 4284 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
ea04106b
AX
4285# Check for GNU ac_path_SED and select it if it is found.
4286 # Check for GNU $ac_path_SED
4287case `"$ac_path_SED" --version 2>&1` in
4288*GNU*)
4289 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4290*)
4291 ac_count=0
4292 $as_echo_n 0123456789 >"conftest.in"
4293 while :
4294 do
4295 cat "conftest.in" "conftest.in" >"conftest.tmp"
4296 mv "conftest.tmp" "conftest.in"
4297 cp "conftest.in" "conftest.nl"
4298 $as_echo '' >> "conftest.nl"
4299 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4300 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cae5b340 4301 ac_count=`expr $ac_count + 1`
ea04106b
AX
4302 if test $ac_count -gt ${ac_path_SED_max-0}; then
4303 # Best one so far, save it but keep looking for a better one
4304 ac_cv_path_SED="$ac_path_SED"
4305 ac_path_SED_max=$ac_count
4306 fi
4307 # 10*(2^10) chars as input seems more than enough
4308 test $ac_count -gt 10 && break
4309 done
4310 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4311esac
4312
4313 $ac_path_SED_found && break 3
4314 done
4315 done
cae5b340 4316done
ea04106b
AX
4317IFS=$as_save_IFS
4318 if test -z "$ac_cv_path_SED"; then
cae5b340
AX
4319 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4320$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4321 { (exit 1); exit 1; }; }
ea04106b
AX
4322 fi
4323else
4324 ac_cv_path_SED=$SED
4325fi
4326
4327fi
cae5b340 4328{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
ea04106b
AX
4329$as_echo "$ac_cv_path_SED" >&6; }
4330 SED="$ac_cv_path_SED"
4331 rm -f conftest.sed
4332
4333test -z "$SED" && SED=sed
4334Xsed="$SED -e 1s/^X//"
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
cae5b340 4346{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
ea04106b 4347$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cae5b340 4348if test "${ac_cv_path_GREP+set}" = set; then
ea04106b
AX
4349 $as_echo_n "(cached) " >&6
4350else
4351 if test -z "$GREP"; then
4352 ac_path_GREP_found=false
4353 # Loop through the user's path and test for each of PROGNAME-LIST
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4356do
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
cae5b340 4359 for ac_prog in grep ggrep; do
ea04106b
AX
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cae5b340 4362 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
ea04106b
AX
4363# Check for GNU ac_path_GREP and select it if it is found.
4364 # Check for GNU $ac_path_GREP
4365case `"$ac_path_GREP" --version 2>&1` in
4366*GNU*)
4367 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4368*)
4369 ac_count=0
4370 $as_echo_n 0123456789 >"conftest.in"
4371 while :
4372 do
4373 cat "conftest.in" "conftest.in" >"conftest.tmp"
4374 mv "conftest.tmp" "conftest.in"
4375 cp "conftest.in" "conftest.nl"
4376 $as_echo 'GREP' >> "conftest.nl"
4377 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cae5b340 4379 ac_count=`expr $ac_count + 1`
ea04106b
AX
4380 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4381 # Best one so far, save it but keep looking for a better one
4382 ac_cv_path_GREP="$ac_path_GREP"
4383 ac_path_GREP_max=$ac_count
4384 fi
4385 # 10*(2^10) chars as input seems more than enough
4386 test $ac_count -gt 10 && break
4387 done
4388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4389esac
4390
4391 $ac_path_GREP_found && break 3
4392 done
4393 done
cae5b340 4394done
ea04106b
AX
4395IFS=$as_save_IFS
4396 if test -z "$ac_cv_path_GREP"; then
cae5b340
AX
4397 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4398$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4399 { (exit 1); exit 1; }; }
ea04106b
AX
4400 fi
4401else
4402 ac_cv_path_GREP=$GREP
4403fi
4404
4405fi
cae5b340 4406{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
ea04106b
AX
4407$as_echo "$ac_cv_path_GREP" >&6; }
4408 GREP="$ac_cv_path_GREP"
4409
4410
cae5b340 4411{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
ea04106b 4412$as_echo_n "checking for egrep... " >&6; }
cae5b340 4413if test "${ac_cv_path_EGREP+set}" = set; then
ea04106b
AX
4414 $as_echo_n "(cached) " >&6
4415else
4416 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4417 then ac_cv_path_EGREP="$GREP -E"
4418 else
4419 if test -z "$EGREP"; then
4420 ac_path_EGREP_found=false
4421 # Loop through the user's path and test for each of PROGNAME-LIST
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4424do
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
cae5b340 4427 for ac_prog in egrep; do
ea04106b
AX
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cae5b340 4430 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
ea04106b
AX
4431# Check for GNU ac_path_EGREP and select it if it is found.
4432 # Check for GNU $ac_path_EGREP
4433case `"$ac_path_EGREP" --version 2>&1` in
4434*GNU*)
4435 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4436*)
4437 ac_count=0
4438 $as_echo_n 0123456789 >"conftest.in"
4439 while :
4440 do
4441 cat "conftest.in" "conftest.in" >"conftest.tmp"
4442 mv "conftest.tmp" "conftest.in"
4443 cp "conftest.in" "conftest.nl"
4444 $as_echo 'EGREP' >> "conftest.nl"
4445 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cae5b340 4447 ac_count=`expr $ac_count + 1`
ea04106b
AX
4448 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4449 # Best one so far, save it but keep looking for a better one
4450 ac_cv_path_EGREP="$ac_path_EGREP"
4451 ac_path_EGREP_max=$ac_count
4452 fi
4453 # 10*(2^10) chars as input seems more than enough
4454 test $ac_count -gt 10 && break
4455 done
4456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4457esac
4458
4459 $ac_path_EGREP_found && break 3
4460 done
4461 done
cae5b340 4462done
ea04106b
AX
4463IFS=$as_save_IFS
4464 if test -z "$ac_cv_path_EGREP"; then
cae5b340
AX
4465 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4466$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4467 { (exit 1); exit 1; }; }
ea04106b
AX
4468 fi
4469else
4470 ac_cv_path_EGREP=$EGREP
4471fi
4472
4473 fi
4474fi
cae5b340 4475{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
ea04106b
AX
4476$as_echo "$ac_cv_path_EGREP" >&6; }
4477 EGREP="$ac_cv_path_EGREP"
4478
4479
cae5b340 4480{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
ea04106b 4481$as_echo_n "checking for fgrep... " >&6; }
cae5b340 4482if test "${ac_cv_path_FGREP+set}" = set; then
ea04106b
AX
4483 $as_echo_n "(cached) " >&6
4484else
4485 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4486 then ac_cv_path_FGREP="$GREP -F"
4487 else
4488 if test -z "$FGREP"; then
4489 ac_path_FGREP_found=false
4490 # Loop through the user's path and test for each of PROGNAME-LIST
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4493do
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
cae5b340 4496 for ac_prog in fgrep; do
ea04106b
AX
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cae5b340 4499 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
ea04106b
AX
4500# Check for GNU ac_path_FGREP and select it if it is found.
4501 # Check for GNU $ac_path_FGREP
4502case `"$ac_path_FGREP" --version 2>&1` in
4503*GNU*)
4504 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4505*)
4506 ac_count=0
4507 $as_echo_n 0123456789 >"conftest.in"
4508 while :
4509 do
4510 cat "conftest.in" "conftest.in" >"conftest.tmp"
4511 mv "conftest.tmp" "conftest.in"
4512 cp "conftest.in" "conftest.nl"
4513 $as_echo 'FGREP' >> "conftest.nl"
4514 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cae5b340 4516 ac_count=`expr $ac_count + 1`
ea04106b
AX
4517 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4518 # Best one so far, save it but keep looking for a better one
4519 ac_cv_path_FGREP="$ac_path_FGREP"
4520 ac_path_FGREP_max=$ac_count
4521 fi
4522 # 10*(2^10) chars as input seems more than enough
4523 test $ac_count -gt 10 && break
4524 done
4525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4526esac
4527
4528 $ac_path_FGREP_found && break 3
4529 done
4530 done
cae5b340 4531done
ea04106b
AX
4532IFS=$as_save_IFS
4533 if test -z "$ac_cv_path_FGREP"; then
cae5b340
AX
4534 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4535$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4536 { (exit 1); exit 1; }; }
ea04106b
AX
4537 fi
4538else
4539 ac_cv_path_FGREP=$FGREP
4540fi
4541
4542 fi
4543fi
cae5b340 4544{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
ea04106b
AX
4545$as_echo "$ac_cv_path_FGREP" >&6; }
4546 FGREP="$ac_cv_path_FGREP"
4547
4548
4549test -z "$GREP" && GREP=grep
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569# Check whether --with-gnu-ld was given.
cae5b340
AX
4570if test "${with_gnu_ld+set}" = set; then
4571 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
ea04106b
AX
4572else
4573 with_gnu_ld=no
4574fi
4575
4576ac_prog=ld
cae5b340 4577if test "$GCC" = yes; then
ea04106b 4578 # Check if gcc -print-prog-name=ld gives a path.
cae5b340 4579 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
ea04106b
AX
4580$as_echo_n "checking for ld used by $CC... " >&6; }
4581 case $host in
4582 *-*-mingw*)
cae5b340 4583 # gcc leaves a trailing carriage return which upsets mingw
ea04106b
AX
4584 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4585 *)
4586 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4587 esac
4588 case $ac_prog in
4589 # Accept absolute paths.
4590 [\\/]* | ?:[\\/]*)
4591 re_direlt='/[^/][^/]*/\.\./'
4592 # Canonicalize the pathname of ld
4593 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4594 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4595 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4596 done
cae5b340 4597 test -z "$LD" && LD="$ac_prog"
ea04106b
AX
4598 ;;
4599 "")
4600 # If it fails, then pretend we aren't using GCC.
4601 ac_prog=ld
4602 ;;
4603 *)
4604 # If it is relative, then search for the first ld in PATH.
4605 with_gnu_ld=unknown
4606 ;;
4607 esac
cae5b340
AX
4608elif test "$with_gnu_ld" = yes; then
4609 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
ea04106b
AX
4610$as_echo_n "checking for GNU ld... " >&6; }
4611else
cae5b340 4612 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
ea04106b
AX
4613$as_echo_n "checking for non-GNU ld... " >&6; }
4614fi
cae5b340 4615if test "${lt_cv_path_LD+set}" = set; then
ea04106b
AX
4616 $as_echo_n "(cached) " >&6
4617else
4618 if test -z "$LD"; then
cae5b340 4619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
ea04106b 4620 for ac_dir in $PATH; do
cae5b340 4621 IFS="$lt_save_ifs"
ea04106b
AX
4622 test -z "$ac_dir" && ac_dir=.
4623 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
cae5b340 4624 lt_cv_path_LD="$ac_dir/$ac_prog"
ea04106b
AX
4625 # Check to see if the program is GNU ld. I'd rather use --version,
4626 # but apparently some variants of GNU ld only accept -v.
4627 # Break only if it was the GNU/non-GNU ld that we prefer.
4628 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4629 *GNU* | *'with BFD'*)
cae5b340 4630 test "$with_gnu_ld" != no && break
ea04106b
AX
4631 ;;
4632 *)
cae5b340 4633 test "$with_gnu_ld" != yes && break
ea04106b
AX
4634 ;;
4635 esac
4636 fi
4637 done
cae5b340 4638 IFS="$lt_save_ifs"
ea04106b 4639else
cae5b340 4640 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ea04106b
AX
4641fi
4642fi
4643
cae5b340 4644LD="$lt_cv_path_LD"
ea04106b 4645if test -n "$LD"; then
cae5b340 4646 { $as_echo "$as_me:$LINENO: result: $LD" >&5
ea04106b
AX
4647$as_echo "$LD" >&6; }
4648else
cae5b340 4649 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
4650$as_echo "no" >&6; }
4651fi
cae5b340
AX
4652test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4653$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4654 { (exit 1); exit 1; }; }
4655{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
ea04106b 4656$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cae5b340 4657if test "${lt_cv_prog_gnu_ld+set}" = set; then
ea04106b
AX
4658 $as_echo_n "(cached) " >&6
4659else
4660 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4661case `$LD -v 2>&1 </dev/null` in
4662*GNU* | *'with BFD'*)
4663 lt_cv_prog_gnu_ld=yes
4664 ;;
4665*)
4666 lt_cv_prog_gnu_ld=no
4667 ;;
4668esac
4669fi
cae5b340 4670{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
ea04106b
AX
4671$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4672with_gnu_ld=$lt_cv_prog_gnu_ld
4673
4674
4675
4676
4677
4678
4679
4680
4681
cae5b340 4682{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
ea04106b 4683$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cae5b340 4684if test "${lt_cv_path_NM+set}" = set; then
ea04106b
AX
4685 $as_echo_n "(cached) " >&6
4686else
4687 if test -n "$NM"; then
4688 # Let the user override the test.
cae5b340 4689 lt_cv_path_NM="$NM"
ea04106b 4690else
cae5b340 4691 lt_nm_to_check="${ac_tool_prefix}nm"
ea04106b
AX
4692 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4693 lt_nm_to_check="$lt_nm_to_check nm"
4694 fi
4695 for lt_tmp_nm in $lt_nm_to_check; do
cae5b340 4696 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
ea04106b 4697 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
cae5b340 4698 IFS="$lt_save_ifs"
ea04106b 4699 test -z "$ac_dir" && ac_dir=.
cae5b340
AX
4700 tmp_nm="$ac_dir/$lt_tmp_nm"
4701 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
ea04106b 4702 # Check to see if the nm accepts a BSD-compat flag.
cae5b340 4703 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
ea04106b
AX
4704 # nm: unknown option "B" ignored
4705 # Tru64's nm complains that /dev/null is an invalid object file
cae5b340
AX
4706 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4707 */dev/null* | *'Invalid file or object type'*)
ea04106b 4708 lt_cv_path_NM="$tmp_nm -B"
cae5b340 4709 break
ea04106b
AX
4710 ;;
4711 *)
4712 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4713 */dev/null*)
4714 lt_cv_path_NM="$tmp_nm -p"
cae5b340 4715 break
ea04106b
AX
4716 ;;
4717 *)
4718 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4719 continue # so that we can try to find one that supports BSD flags
4720 ;;
4721 esac
4722 ;;
4723 esac
4724 fi
4725 done
cae5b340 4726 IFS="$lt_save_ifs"
ea04106b
AX
4727 done
4728 : ${lt_cv_path_NM=no}
4729fi
4730fi
cae5b340 4731{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
ea04106b 4732$as_echo "$lt_cv_path_NM" >&6; }
cae5b340
AX
4733if test "$lt_cv_path_NM" != "no"; then
4734 NM="$lt_cv_path_NM"
ea04106b
AX
4735else
4736 # Didn't find any BSD compatible name lister, look for dumpbin.
cae5b340
AX
4737 if test -n "$ac_tool_prefix"; then
4738 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
ea04106b
AX
4739 do
4740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4741set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cae5b340 4742{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 4743$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 4744if test "${ac_cv_prog_DUMPBIN+set}" = set; then
ea04106b
AX
4745 $as_echo_n "(cached) " >&6
4746else
4747 if test -n "$DUMPBIN"; then
4748 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4749else
4750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751for as_dir in $PATH
4752do
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
cae5b340
AX
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 4757 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cae5b340 4758 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
4759 break 2
4760 fi
4761done
cae5b340 4762done
ea04106b
AX
4763IFS=$as_save_IFS
4764
4765fi
4766fi
4767DUMPBIN=$ac_cv_prog_DUMPBIN
4768if test -n "$DUMPBIN"; then
cae5b340 4769 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
ea04106b
AX
4770$as_echo "$DUMPBIN" >&6; }
4771else
cae5b340 4772 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
4773$as_echo "no" >&6; }
4774fi
4775
4776
4777 test -n "$DUMPBIN" && break
4778 done
4779fi
4780if test -z "$DUMPBIN"; then
4781 ac_ct_DUMPBIN=$DUMPBIN
cae5b340 4782 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
ea04106b
AX
4783do
4784 # Extract the first word of "$ac_prog", so it can be a program name with args.
4785set dummy $ac_prog; ac_word=$2
cae5b340 4786{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 4787$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 4788if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
ea04106b
AX
4789 $as_echo_n "(cached) " >&6
4790else
4791 if test -n "$ac_ct_DUMPBIN"; then
4792 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4793else
4794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795for as_dir in $PATH
4796do
4797 IFS=$as_save_IFS
4798 test -z "$as_dir" && as_dir=.
cae5b340
AX
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 4801 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cae5b340 4802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
4803 break 2
4804 fi
4805done
cae5b340 4806done
ea04106b
AX
4807IFS=$as_save_IFS
4808
4809fi
4810fi
4811ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4812if test -n "$ac_ct_DUMPBIN"; then
cae5b340 4813 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
ea04106b
AX
4814$as_echo "$ac_ct_DUMPBIN" >&6; }
4815else
cae5b340 4816 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
4817$as_echo "no" >&6; }
4818fi
4819
4820
4821 test -n "$ac_ct_DUMPBIN" && break
4822done
4823
4824 if test "x$ac_ct_DUMPBIN" = x; then
4825 DUMPBIN=":"
4826 else
4827 case $cross_compiling:$ac_tool_warned in
4828yes:)
cae5b340 4829{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
4830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4831ac_tool_warned=yes ;;
4832esac
4833 DUMPBIN=$ac_ct_DUMPBIN
4834 fi
4835fi
4836
ea04106b 4837
cae5b340
AX
4838 if test "$DUMPBIN" != ":"; then
4839 NM="$DUMPBIN"
ea04106b
AX
4840 fi
4841fi
4842test -z "$NM" && NM=nm
4843
4844
4845
4846
4847
4848
cae5b340 4849{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
ea04106b 4850$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cae5b340 4851if test "${lt_cv_nm_interface+set}" = set; then
ea04106b
AX
4852 $as_echo_n "(cached) " >&6
4853else
4854 lt_cv_nm_interface="BSD nm"
4855 echo "int some_variable = 0;" > conftest.$ac_ext
cae5b340 4856 (eval echo "\"\$as_me:4856: $ac_compile\"" >&5)
ea04106b
AX
4857 (eval "$ac_compile" 2>conftest.err)
4858 cat conftest.err >&5
cae5b340 4859 (eval echo "\"\$as_me:4859: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ea04106b
AX
4860 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4861 cat conftest.err >&5
cae5b340 4862 (eval echo "\"\$as_me:4862: output\"" >&5)
ea04106b
AX
4863 cat conftest.out >&5
4864 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4865 lt_cv_nm_interface="MS dumpbin"
4866 fi
4867 rm -f conftest*
4868fi
cae5b340 4869{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
ea04106b
AX
4870$as_echo "$lt_cv_nm_interface" >&6; }
4871
cae5b340 4872{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
ea04106b
AX
4873$as_echo_n "checking whether ln -s works... " >&6; }
4874LN_S=$as_ln_s
4875if test "$LN_S" = "ln -s"; then
cae5b340 4876 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
4877$as_echo "yes" >&6; }
4878else
cae5b340 4879 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
ea04106b
AX
4880$as_echo "no, using $LN_S" >&6; }
4881fi
4882
4883# find the maximum length of command line arguments
cae5b340 4884{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
ea04106b 4885$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cae5b340 4886if test "${lt_cv_sys_max_cmd_len+set}" = set; then
ea04106b
AX
4887 $as_echo_n "(cached) " >&6
4888else
4889 i=0
cae5b340 4890 teststring="ABCD"
ea04106b
AX
4891
4892 case $build_os in
4893 msdosdjgpp*)
4894 # On DJGPP, this test can blow up pretty badly due to problems in libc
4895 # (any single argument exceeding 2000 bytes causes a buffer overrun
4896 # during glob expansion). Even if it were fixed, the result of this
4897 # check would be larger than it should be.
4898 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4899 ;;
4900
4901 gnu*)
4902 # Under GNU Hurd, this test is not required because there is
4903 # no limit to the length of command line arguments.
4904 # Libtool will interpret -1 as no limit whatsoever
4905 lt_cv_sys_max_cmd_len=-1;
4906 ;;
4907
4908 cygwin* | mingw* | cegcc*)
4909 # On Win9x/ME, this test blows up -- it succeeds, but takes
4910 # about 5 minutes as the teststring grows exponentially.
4911 # Worse, since 9x/ME are not pre-emptively multitasking,
4912 # you end up with a "frozen" computer, even though with patience
4913 # the test eventually succeeds (with a max line length of 256k).
4914 # Instead, let's just punt: use the minimum linelength reported by
4915 # all of the supported platforms: 8192 (on NT/2K/XP).
4916 lt_cv_sys_max_cmd_len=8192;
4917 ;;
4918
ea04106b
AX
4919 amigaos*)
4920 # On AmigaOS with pdksh, this test takes hours, literally.
4921 # So we just punt and use a minimum line length of 8192.
4922 lt_cv_sys_max_cmd_len=8192;
4923 ;;
4924
cae5b340 4925 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
ea04106b
AX
4926 # This has been around since 386BSD, at least. Likely further.
4927 if test -x /sbin/sysctl; then
4928 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4929 elif test -x /usr/sbin/sysctl; then
4930 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4931 else
4932 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4933 fi
4934 # And add a safety zone
4935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4936 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4937 ;;
4938
4939 interix*)
4940 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4941 lt_cv_sys_max_cmd_len=196608
4942 ;;
4943
ea04106b
AX
4944 osf*)
4945 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4946 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4947 # nice to cause kernel panics so lets avoid the loop below.
4948 # First set a reasonable default.
4949 lt_cv_sys_max_cmd_len=16384
4950 #
4951 if test -x /sbin/sysconfig; then
4952 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4953 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4954 esac
4955 fi
4956 ;;
4957 sco3.2v5*)
4958 lt_cv_sys_max_cmd_len=102400
4959 ;;
4960 sysv5* | sco5v6* | sysv4.2uw2*)
4961 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4962 if test -n "$kargmax"; then
4963 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4964 else
4965 lt_cv_sys_max_cmd_len=32768
4966 fi
4967 ;;
4968 *)
4969 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
cae5b340 4970 if test -n "$lt_cv_sys_max_cmd_len"; then
ea04106b
AX
4971 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4972 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4973 else
4974 # Make teststring a little bigger before we do anything with it.
4975 # a 1K string should be a reasonable start.
cae5b340 4976 for i in 1 2 3 4 5 6 7 8 ; do
ea04106b
AX
4977 teststring=$teststring$teststring
4978 done
4979 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4980 # If test is not a shell built-in, we'll probably end up computing a
4981 # maximum length that is only half of the actual maximum length, but
4982 # we can't tell.
cae5b340
AX
4983 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4984 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4985 test $i != 17 # 1/2 MB should be enough
ea04106b
AX
4986 do
4987 i=`expr $i + 1`
4988 teststring=$teststring$teststring
4989 done
4990 # Only check the string length outside the loop.
4991 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4992 teststring=
4993 # Add a significant safety factor because C++ compilers can tack on
4994 # massive amounts of additional arguments before passing them to the
4995 # linker. It appears as though 1/2 is a usable value.
4996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4997 fi
4998 ;;
4999 esac
5000
5001fi
5002
cae5b340
AX
5003if test -n $lt_cv_sys_max_cmd_len ; then
5004 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
ea04106b
AX
5005$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5006else
cae5b340 5007 { $as_echo "$as_me:$LINENO: result: none" >&5
ea04106b
AX
5008$as_echo "none" >&6; }
5009fi
5010max_cmd_len=$lt_cv_sys_max_cmd_len
5011
5012
5013
5014
5015
5016
5017: ${CP="cp -f"}
5018: ${MV="mv -f"}
5019: ${RM="rm -f"}
5020
cae5b340
AX
5021{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5022$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5023# Try some XSI features
5024xsi_shell=no
5025( _lt_dummy="a/b/c"
5026 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5027 = c,a/b,, \
5028 && eval 'test $(( 1 + 1 )) -eq 2 \
5029 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5030 && xsi_shell=yes
5031{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5032$as_echo "$xsi_shell" >&6; }
5033
5034
5035{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5036$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5037lt_shell_append=no
5038( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5039 >/dev/null 2>&1 \
5040 && lt_shell_append=yes
5041{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5042$as_echo "$lt_shell_append" >&6; }
5043
5044
ea04106b
AX
5045if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5046 lt_unset=unset
5047else
5048 lt_unset=false
5049fi
5050
5051
5052
5053
5054
5055# test EBCDIC or ASCII
5056case `echo X|tr X '\101'` in
5057 A) # ASCII based system
5058 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5059 lt_SP2NL='tr \040 \012'
5060 lt_NL2SP='tr \015\012 \040\040'
5061 ;;
5062 *) # EBCDIC based system
5063 lt_SP2NL='tr \100 \n'
5064 lt_NL2SP='tr \r\n \100\100'
5065 ;;
5066esac
5067
5068
5069
5070
5071
5072
5073
5074
5075
cae5b340 5076{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
ea04106b 5077$as_echo_n "checking for $LD option to reload object files... " >&6; }
cae5b340 5078if test "${lt_cv_ld_reload_flag+set}" = set; then
ea04106b
AX
5079 $as_echo_n "(cached) " >&6
5080else
5081 lt_cv_ld_reload_flag='-r'
5082fi
cae5b340 5083{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
ea04106b
AX
5084$as_echo "$lt_cv_ld_reload_flag" >&6; }
5085reload_flag=$lt_cv_ld_reload_flag
5086case $reload_flag in
5087"" | " "*) ;;
5088*) reload_flag=" $reload_flag" ;;
5089esac
5090reload_cmds='$LD$reload_flag -o $output$reload_objs'
5091case $host_os in
ea04106b 5092 darwin*)
cae5b340
AX
5093 if test "$GCC" = yes; then
5094 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
ea04106b
AX
5095 else
5096 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5097 fi
5098 ;;
5099esac
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109if test -n "$ac_tool_prefix"; then
5110 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5111set dummy ${ac_tool_prefix}objdump; ac_word=$2
cae5b340 5112{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5113$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5114if test "${ac_cv_prog_OBJDUMP+set}" = set; then
ea04106b
AX
5115 $as_echo_n "(cached) " >&6
5116else
5117 if test -n "$OBJDUMP"; then
5118 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5119else
5120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121for as_dir in $PATH
5122do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
cae5b340
AX
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 5127 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cae5b340 5128 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5129 break 2
5130 fi
5131done
cae5b340 5132done
ea04106b
AX
5133IFS=$as_save_IFS
5134
5135fi
5136fi
5137OBJDUMP=$ac_cv_prog_OBJDUMP
5138if test -n "$OBJDUMP"; then
cae5b340 5139 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
ea04106b
AX
5140$as_echo "$OBJDUMP" >&6; }
5141else
cae5b340 5142 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5143$as_echo "no" >&6; }
5144fi
5145
5146
5147fi
5148if test -z "$ac_cv_prog_OBJDUMP"; then
5149 ac_ct_OBJDUMP=$OBJDUMP
5150 # Extract the first word of "objdump", so it can be a program name with args.
5151set dummy objdump; ac_word=$2
cae5b340 5152{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5153$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5154if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
ea04106b
AX
5155 $as_echo_n "(cached) " >&6
5156else
5157 if test -n "$ac_ct_OBJDUMP"; then
5158 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5159else
5160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161for as_dir in $PATH
5162do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
cae5b340
AX
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 5167 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cae5b340 5168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5169 break 2
5170 fi
5171done
cae5b340 5172done
ea04106b
AX
5173IFS=$as_save_IFS
5174
5175fi
5176fi
5177ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5178if test -n "$ac_ct_OBJDUMP"; then
cae5b340 5179 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
ea04106b
AX
5180$as_echo "$ac_ct_OBJDUMP" >&6; }
5181else
cae5b340 5182 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5183$as_echo "no" >&6; }
5184fi
5185
5186 if test "x$ac_ct_OBJDUMP" = x; then
5187 OBJDUMP="false"
5188 else
5189 case $cross_compiling:$ac_tool_warned in
5190yes:)
cae5b340 5191{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
5192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5193ac_tool_warned=yes ;;
5194esac
5195 OBJDUMP=$ac_ct_OBJDUMP
5196 fi
5197else
5198 OBJDUMP="$ac_cv_prog_OBJDUMP"
5199fi
5200
5201test -z "$OBJDUMP" && OBJDUMP=objdump
5202
5203
5204
5205
5206
5207
5208
5209
5210
cae5b340 5211{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
ea04106b 5212$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cae5b340 5213if test "${lt_cv_deplibs_check_method+set}" = set; then
ea04106b
AX
5214 $as_echo_n "(cached) " >&6
5215else
5216 lt_cv_file_magic_cmd='$MAGIC_CMD'
5217lt_cv_file_magic_test_file=
5218lt_cv_deplibs_check_method='unknown'
5219# Need to set the preceding variable on all platforms that support
5220# interlibrary dependencies.
5221# 'none' -- dependencies not supported.
cae5b340 5222# `unknown' -- same as none, but documents that we really don't know.
ea04106b
AX
5223# 'pass_all' -- all dependencies passed with no checks.
5224# 'test_compile' -- check by making test program.
5225# 'file_magic [[regex]]' -- check by looking for files in library path
cae5b340
AX
5226# which responds to the $file_magic_cmd with a given extended regex.
5227# If you have `file' or equivalent on your system and you're not sure
5228# whether `pass_all' will *always* work, you probably want this one.
ea04106b
AX
5229
5230case $host_os in
5231aix[4-9]*)
5232 lt_cv_deplibs_check_method=pass_all
5233 ;;
5234
5235beos*)
5236 lt_cv_deplibs_check_method=pass_all
5237 ;;
5238
5239bsdi[45]*)
5240 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5241 lt_cv_file_magic_cmd='/usr/bin/file -L'
5242 lt_cv_file_magic_test_file=/shlib/libc.so
5243 ;;
5244
5245cygwin*)
5246 # func_win32_libid is a shell function defined in ltmain.sh
5247 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5248 lt_cv_file_magic_cmd='func_win32_libid'
5249 ;;
5250
5251mingw* | pw32*)
5252 # Base MSYS/MinGW do not provide the 'file' command needed by
5253 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5254 # unless we find 'file', for example because we are cross-compiling.
68d83c55 5255 if ( file / ) >/dev/null 2>&1; then
ea04106b
AX
5256 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5257 lt_cv_file_magic_cmd='func_win32_libid'
5258 else
cae5b340 5259 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
ea04106b
AX
5260 lt_cv_file_magic_cmd='$OBJDUMP -f'
5261 fi
5262 ;;
5263
cae5b340 5264cegcc)
ea04106b
AX
5265 # use the weaker test based on 'objdump'. See mingw*.
5266 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5267 lt_cv_file_magic_cmd='$OBJDUMP -f'
5268 ;;
5269
5270darwin* | rhapsody*)
5271 lt_cv_deplibs_check_method=pass_all
5272 ;;
5273
5274freebsd* | dragonfly*)
5275 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5276 case $host_cpu in
5277 i*86 )
5278 # Not sure whether the presence of OpenBSD here was a mistake.
5279 # Let's accept both of them until this is cleared up.
5280 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5281 lt_cv_file_magic_cmd=/usr/bin/file
5282 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5283 ;;
5284 esac
5285 else
5286 lt_cv_deplibs_check_method=pass_all
5287 fi
5288 ;;
5289
cae5b340 5290gnu*)
ea04106b
AX
5291 lt_cv_deplibs_check_method=pass_all
5292 ;;
5293
5294hpux10.20* | hpux11*)
5295 lt_cv_file_magic_cmd=/usr/bin/file
5296 case $host_cpu in
5297 ia64*)
5298 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5299 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5300 ;;
5301 hppa*64*)
cae5b340 5302 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
5303 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5304 ;;
5305 *)
cae5b340 5306 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
ea04106b
AX
5307 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5308 ;;
5309 esac
5310 ;;
5311
5312interix[3-9]*)
5313 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5315 ;;
5316
5317irix5* | irix6* | nonstopux*)
5318 case $LD in
5319 *-32|*"-32 ") libmagic=32-bit;;
5320 *-n32|*"-n32 ") libmagic=N32;;
5321 *-64|*"-64 ") libmagic=64-bit;;
5322 *) libmagic=never-match;;
5323 esac
5324 lt_cv_deplibs_check_method=pass_all
5325 ;;
5326
cae5b340
AX
5327# This must be Linux ELF.
5328linux* | k*bsd*-gnu)
ea04106b
AX
5329 lt_cv_deplibs_check_method=pass_all
5330 ;;
5331
22929307 5332netbsd*)
ea04106b
AX
5333 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5334 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5335 else
5336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5337 fi
5338 ;;
5339
5340newos6*)
5341 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5342 lt_cv_file_magic_cmd=/usr/bin/file
5343 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5344 ;;
5345
5346*nto* | *qnx*)
5347 lt_cv_deplibs_check_method=pass_all
5348 ;;
5349
cae5b340
AX
5350openbsd*)
5351 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ea04106b
AX
5352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5353 else
5354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5355 fi
5356 ;;
5357
5358osf3* | osf4* | osf5*)
5359 lt_cv_deplibs_check_method=pass_all
5360 ;;
5361
5362rdos*)
5363 lt_cv_deplibs_check_method=pass_all
5364 ;;
5365
5366solaris*)
5367 lt_cv_deplibs_check_method=pass_all
5368 ;;
5369
5370sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5371 lt_cv_deplibs_check_method=pass_all
5372 ;;
5373
5374sysv4 | sysv4.3*)
5375 case $host_vendor in
5376 motorola)
5377 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]'
5378 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5379 ;;
5380 ncr)
5381 lt_cv_deplibs_check_method=pass_all
5382 ;;
5383 sequent)
5384 lt_cv_file_magic_cmd='/bin/file'
5385 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5386 ;;
5387 sni)
5388 lt_cv_file_magic_cmd='/bin/file'
5389 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5390 lt_cv_file_magic_test_file=/lib/libc.so
5391 ;;
5392 siemens)
5393 lt_cv_deplibs_check_method=pass_all
5394 ;;
5395 pc)
5396 lt_cv_deplibs_check_method=pass_all
5397 ;;
5398 esac
5399 ;;
5400
5401tpf*)
5402 lt_cv_deplibs_check_method=pass_all
5403 ;;
5404esac
5405
5406fi
cae5b340 5407{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
ea04106b 5408$as_echo "$lt_cv_deplibs_check_method" >&6; }
ea04106b
AX
5409file_magic_cmd=$lt_cv_file_magic_cmd
5410deplibs_check_method=$lt_cv_deplibs_check_method
5411test -z "$deplibs_check_method" && deplibs_check_method=unknown
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
ea04106b
AX
5422
5423
5424if test -n "$ac_tool_prefix"; then
cae5b340
AX
5425 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5426set dummy ${ac_tool_prefix}ar; ac_word=$2
5427{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5428$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5429if test "${ac_cv_prog_AR+set}" = set; then
ea04106b
AX
5430 $as_echo_n "(cached) " >&6
5431else
5432 if test -n "$AR"; then
5433 ac_cv_prog_AR="$AR" # Let the user override the test.
5434else
5435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436for as_dir in $PATH
5437do
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
cae5b340
AX
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5442 ac_cv_prog_AR="${ac_tool_prefix}ar"
5443 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5444 break 2
5445 fi
5446done
cae5b340 5447done
ea04106b
AX
5448IFS=$as_save_IFS
5449
5450fi
5451fi
5452AR=$ac_cv_prog_AR
5453if test -n "$AR"; then
cae5b340 5454 { $as_echo "$as_me:$LINENO: result: $AR" >&5
ea04106b
AX
5455$as_echo "$AR" >&6; }
5456else
cae5b340 5457 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5458$as_echo "no" >&6; }
5459fi
5460
5461
ea04106b 5462fi
cae5b340 5463if test -z "$ac_cv_prog_AR"; then
ea04106b 5464 ac_ct_AR=$AR
cae5b340
AX
5465 # Extract the first word of "ar", so it can be a program name with args.
5466set dummy ar; ac_word=$2
5467{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5468$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5469if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
ea04106b
AX
5470 $as_echo_n "(cached) " >&6
5471else
5472 if test -n "$ac_ct_AR"; then
5473 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5474else
5475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476for as_dir in $PATH
5477do
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
cae5b340
AX
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5482 ac_cv_prog_ac_ct_AR="ar"
5483 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5484 break 2
5485 fi
5486done
cae5b340 5487done
ea04106b
AX
5488IFS=$as_save_IFS
5489
5490fi
5491fi
5492ac_ct_AR=$ac_cv_prog_ac_ct_AR
5493if test -n "$ac_ct_AR"; then
cae5b340 5494 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
ea04106b
AX
5495$as_echo "$ac_ct_AR" >&6; }
5496else
cae5b340 5497 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5498$as_echo "no" >&6; }
5499fi
5500
ea04106b
AX
5501 if test "x$ac_ct_AR" = x; then
5502 AR="false"
5503 else
5504 case $cross_compiling:$ac_tool_warned in
5505yes:)
cae5b340 5506{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
5507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5508ac_tool_warned=yes ;;
5509esac
5510 AR=$ac_ct_AR
5511 fi
ea04106b 5512else
cae5b340
AX
5513 AR="$ac_cv_prog_AR"
5514fi
ea04106b 5515
cae5b340
AX
5516test -z "$AR" && AR=ar
5517test -z "$AR_FLAGS" && AR_FLAGS=cru
ea04106b 5518
ea04106b 5519
ea04106b 5520
ea04106b 5521
ea04106b
AX
5522
5523
5524
5525
5526
5527
5528
5529if test -n "$ac_tool_prefix"; then
5530 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5531set dummy ${ac_tool_prefix}strip; ac_word=$2
cae5b340 5532{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5533$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5534if test "${ac_cv_prog_STRIP+set}" = set; then
ea04106b
AX
5535 $as_echo_n "(cached) " >&6
5536else
5537 if test -n "$STRIP"; then
5538 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5539else
5540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541for as_dir in $PATH
5542do
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
cae5b340
AX
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 5547 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cae5b340 5548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5549 break 2
5550 fi
5551done
cae5b340 5552done
ea04106b
AX
5553IFS=$as_save_IFS
5554
5555fi
5556fi
5557STRIP=$ac_cv_prog_STRIP
5558if test -n "$STRIP"; then
cae5b340 5559 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
ea04106b
AX
5560$as_echo "$STRIP" >&6; }
5561else
cae5b340 5562 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5563$as_echo "no" >&6; }
5564fi
5565
5566
5567fi
5568if test -z "$ac_cv_prog_STRIP"; then
5569 ac_ct_STRIP=$STRIP
5570 # Extract the first word of "strip", so it can be a program name with args.
5571set dummy strip; ac_word=$2
cae5b340 5572{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5573$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5574if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
ea04106b
AX
5575 $as_echo_n "(cached) " >&6
5576else
5577 if test -n "$ac_ct_STRIP"; then
5578 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5579else
5580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581for as_dir in $PATH
5582do
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
cae5b340
AX
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 5587 ac_cv_prog_ac_ct_STRIP="strip"
cae5b340 5588 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5589 break 2
5590 fi
5591done
cae5b340 5592done
ea04106b
AX
5593IFS=$as_save_IFS
5594
5595fi
5596fi
5597ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5598if test -n "$ac_ct_STRIP"; then
cae5b340 5599 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
ea04106b
AX
5600$as_echo "$ac_ct_STRIP" >&6; }
5601else
cae5b340 5602 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5603$as_echo "no" >&6; }
5604fi
5605
5606 if test "x$ac_ct_STRIP" = x; then
5607 STRIP=":"
5608 else
5609 case $cross_compiling:$ac_tool_warned in
5610yes:)
cae5b340 5611{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
5612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5613ac_tool_warned=yes ;;
5614esac
5615 STRIP=$ac_ct_STRIP
5616 fi
5617else
5618 STRIP="$ac_cv_prog_STRIP"
5619fi
5620
5621test -z "$STRIP" && STRIP=:
5622
5623
5624
5625
5626
5627
5628if test -n "$ac_tool_prefix"; then
5629 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5630set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cae5b340 5631{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5632$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5633if test "${ac_cv_prog_RANLIB+set}" = set; then
ea04106b
AX
5634 $as_echo_n "(cached) " >&6
5635else
5636 if test -n "$RANLIB"; then
5637 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5638else
5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
cae5b340
AX
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 5646 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cae5b340 5647 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5648 break 2
5649 fi
5650done
cae5b340 5651done
ea04106b
AX
5652IFS=$as_save_IFS
5653
5654fi
5655fi
5656RANLIB=$ac_cv_prog_RANLIB
5657if test -n "$RANLIB"; then
cae5b340 5658 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
ea04106b
AX
5659$as_echo "$RANLIB" >&6; }
5660else
cae5b340 5661 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5662$as_echo "no" >&6; }
5663fi
5664
5665
5666fi
5667if test -z "$ac_cv_prog_RANLIB"; then
5668 ac_ct_RANLIB=$RANLIB
5669 # Extract the first word of "ranlib", so it can be a program name with args.
5670set dummy ranlib; ac_word=$2
cae5b340 5671{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5672$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5673if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ea04106b
AX
5674 $as_echo_n "(cached) " >&6
5675else
5676 if test -n "$ac_ct_RANLIB"; then
5677 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5678else
5679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680for as_dir in $PATH
5681do
5682 IFS=$as_save_IFS
5683 test -z "$as_dir" && as_dir=.
cae5b340
AX
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 5686 ac_cv_prog_ac_ct_RANLIB="ranlib"
cae5b340 5687 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5688 break 2
5689 fi
5690done
cae5b340 5691done
ea04106b
AX
5692IFS=$as_save_IFS
5693
5694fi
5695fi
5696ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5697if test -n "$ac_ct_RANLIB"; then
cae5b340 5698 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
ea04106b
AX
5699$as_echo "$ac_ct_RANLIB" >&6; }
5700else
cae5b340 5701 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5702$as_echo "no" >&6; }
5703fi
5704
5705 if test "x$ac_ct_RANLIB" = x; then
5706 RANLIB=":"
5707 else
5708 case $cross_compiling:$ac_tool_warned in
5709yes:)
cae5b340 5710{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
5711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5712ac_tool_warned=yes ;;
5713esac
5714 RANLIB=$ac_ct_RANLIB
5715 fi
5716else
5717 RANLIB="$ac_cv_prog_RANLIB"
5718fi
5719
5720test -z "$RANLIB" && RANLIB=:
5721
5722
5723
5724
5725
5726
5727# Determine commands to create old-style static archives.
5728old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5729old_postinstall_cmds='chmod 644 $oldlib'
5730old_postuninstall_cmds=
5731
5732if test -n "$RANLIB"; then
5733 case $host_os in
cae5b340
AX
5734 openbsd*)
5735 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
ea04106b
AX
5736 ;;
5737 *)
cae5b340 5738 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
ea04106b
AX
5739 ;;
5740 esac
cae5b340 5741 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ea04106b
AX
5742fi
5743
ea04106b
AX
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777# If no C compiler was specified, use CC.
5778LTCC=${LTCC-"$CC"}
5779
5780# If no C compiler flags were specified, use CFLAGS.
5781LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5782
5783# Allow CC to be a program name with arguments.
5784compiler=$CC
5785
5786
5787# Check for command to grab the raw symbol name followed by C symbol from nm.
cae5b340 5788{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
ea04106b 5789$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cae5b340 5790if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
ea04106b
AX
5791 $as_echo_n "(cached) " >&6
5792else
5793
5794# These are sane defaults that work on at least a few old systems.
5795# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5796
5797# Character class describing NM global symbol codes.
5798symcode='[BCDEGRST]'
5799
5800# Regexp to match symbols that can be accessed directly from C.
5801sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5802
5803# Define system-specific variables.
5804case $host_os in
5805aix*)
5806 symcode='[BCDT]'
5807 ;;
5808cygwin* | mingw* | pw32* | cegcc*)
5809 symcode='[ABCDGISTW]'
5810 ;;
5811hpux*)
cae5b340 5812 if test "$host_cpu" = ia64; then
ea04106b
AX
5813 symcode='[ABCDEGRST]'
5814 fi
5815 ;;
5816irix* | nonstopux*)
5817 symcode='[BCDEGRST]'
5818 ;;
5819osf*)
5820 symcode='[BCDEGQRST]'
5821 ;;
5822solaris*)
5823 symcode='[BDRT]'
5824 ;;
5825sco3.2v5*)
5826 symcode='[DT]'
5827 ;;
5828sysv4.2uw2*)
5829 symcode='[DT]'
5830 ;;
5831sysv5* | sco5v6* | unixware* | OpenUNIX*)
5832 symcode='[ABDT]'
5833 ;;
5834sysv4)
5835 symcode='[DFNSTU]'
5836 ;;
5837esac
5838
5839# If we're using GNU nm, then use its standard symbol codes.
5840case `$NM -V 2>&1` in
5841*GNU* | *'with BFD'*)
5842 symcode='[ABCDGIRSTW]' ;;
5843esac
5844
5845# Transform an extracted symbol line into a proper C declaration.
5846# Some systems (esp. on ia64) link data and code symbols differently,
5847# so use this general approach.
cae5b340 5848lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
ea04106b
AX
5849
5850# Transform an extracted symbol line into symbol name and symbol address
cae5b340
AX
5851lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5852lt_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
5853
5854# Handle CRLF in mingw tool chain
5855opt_cr=
5856case $build_os in
5857mingw*)
5858 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5859 ;;
5860esac
5861
5862# Try without a prefix underscore, then with it.
5863for ac_symprfx in "" "_"; do
5864
5865 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5866 symxfrm="\\1 $ac_symprfx\\2 \\2"
5867
5868 # Write the raw and C identifiers.
5869 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
cae5b340
AX
5870 # Fake it for dumpbin and say T for any non-static function
5871 # and D for any global variable.
ea04106b
AX
5872 # Also find C++ and __fastcall symbols from MSVC++,
5873 # which start with @ or ?.
5874 lt_cv_sys_global_symbol_pipe="$AWK '"\
5875" {last_section=section; section=\$ 3};"\
ea04106b
AX
5876" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5877" \$ 0!~/External *\|/{next};"\
5878" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5879" {if(hide[section]) next};"\
cae5b340
AX
5880" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5881" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5882" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5883" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
ea04106b
AX
5884" ' prfx=^$ac_symprfx"
5885 else
5886 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5887 fi
ea04106b
AX
5888
5889 # Check to see that the pipe works correctly.
5890 pipe_works=no
5891
5892 rm -f conftest*
5893 cat > conftest.$ac_ext <<_LT_EOF
5894#ifdef __cplusplus
5895extern "C" {
5896#endif
5897char nm_test_var;
5898void nm_test_func(void);
5899void nm_test_func(void){}
5900#ifdef __cplusplus
5901}
5902#endif
5903int main(){nm_test_var='a';nm_test_func();return(0);}
5904_LT_EOF
5905
cae5b340 5906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ea04106b
AX
5907 (eval $ac_compile) 2>&5
5908 ac_status=$?
cae5b340
AX
5909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; then
ea04106b
AX
5911 # Now try to grab the symbols.
5912 nlist=conftest.nm
cae5b340
AX
5913 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5914 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
ea04106b 5915 ac_status=$?
cae5b340
AX
5916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } && test -s "$nlist"; then
ea04106b
AX
5918 # Try sorting and uniquifying the output.
5919 if sort "$nlist" | uniq > "$nlist"T; then
5920 mv -f "$nlist"T "$nlist"
5921 else
5922 rm -f "$nlist"T
5923 fi
5924
5925 # Make sure that we snagged all the symbols we need.
5926 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5927 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5928 cat <<_LT_EOF > conftest.$ac_ext
ea04106b
AX
5929#ifdef __cplusplus
5930extern "C" {
5931#endif
5932
5933_LT_EOF
5934 # Now generate the symbol file.
5935 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5936
5937 cat <<_LT_EOF >> conftest.$ac_ext
5938
5939/* The mapping between symbol names and symbols. */
cae5b340 5940const struct {
ea04106b
AX
5941 const char *name;
5942 void *address;
5943}
5944lt__PROGRAM__LTX_preloaded_symbols[] =
5945{
5946 { "@PROGRAM@", (void *) 0 },
5947_LT_EOF
cae5b340 5948 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
ea04106b
AX
5949 cat <<\_LT_EOF >> conftest.$ac_ext
5950 {0, (void *) 0}
5951};
5952
5953/* This works around a problem in FreeBSD linker */
5954#ifdef FREEBSD_WORKAROUND
5955static const void *lt_preloaded_setup() {
5956 return lt__PROGRAM__LTX_preloaded_symbols;
5957}
5958#endif
5959
5960#ifdef __cplusplus
5961}
5962#endif
5963_LT_EOF
5964 # Now try linking the two files.
5965 mv conftest.$ac_objext conftstm.$ac_objext
cae5b340
AX
5966 lt_save_LIBS="$LIBS"
5967 lt_save_CFLAGS="$CFLAGS"
5968 LIBS="conftstm.$ac_objext"
ea04106b 5969 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cae5b340 5970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ea04106b
AX
5971 (eval $ac_link) 2>&5
5972 ac_status=$?
cae5b340
AX
5973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && test -s conftest${ac_exeext}; then
ea04106b
AX
5975 pipe_works=yes
5976 fi
cae5b340
AX
5977 LIBS="$lt_save_LIBS"
5978 CFLAGS="$lt_save_CFLAGS"
ea04106b
AX
5979 else
5980 echo "cannot find nm_test_func in $nlist" >&5
5981 fi
5982 else
5983 echo "cannot find nm_test_var in $nlist" >&5
5984 fi
5985 else
5986 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5987 fi
5988 else
5989 echo "$progname: failed program was:" >&5
5990 cat conftest.$ac_ext >&5
5991 fi
5992 rm -rf conftest* conftst*
5993
5994 # Do not use the global_symbol_pipe unless it works.
cae5b340 5995 if test "$pipe_works" = yes; then
ea04106b
AX
5996 break
5997 else
5998 lt_cv_sys_global_symbol_pipe=
5999 fi
6000done
6001
6002fi
6003
6004if test -z "$lt_cv_sys_global_symbol_pipe"; then
6005 lt_cv_sys_global_symbol_to_cdecl=
6006fi
6007if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cae5b340 6008 { $as_echo "$as_me:$LINENO: result: failed" >&5
ea04106b
AX
6009$as_echo "failed" >&6; }
6010else
cae5b340 6011 { $as_echo "$as_me:$LINENO: result: ok" >&5
ea04106b
AX
6012$as_echo "ok" >&6; }
6013fi
6014
ea04106b
AX
6015
6016
6017
6018
6019
68d83c55
AX
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
ea04106b
AX
6030
6031
6032
6033
6034
6035
68d83c55 6036
ea04106b 6037# Check whether --enable-libtool-lock was given.
cae5b340 6038if test "${enable_libtool_lock+set}" = set; then
ea04106b
AX
6039 enableval=$enable_libtool_lock;
6040fi
6041
cae5b340 6042test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
ea04106b
AX
6043
6044# Some flags need to be propagated to the compiler or linker for good
6045# libtool support.
6046case $host in
6047ia64-*-hpux*)
cae5b340 6048 # Find out which ABI we are using.
ea04106b 6049 echo 'int i;' > conftest.$ac_ext
cae5b340 6050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ea04106b
AX
6051 (eval $ac_compile) 2>&5
6052 ac_status=$?
cae5b340
AX
6053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; then
ea04106b
AX
6055 case `/usr/bin/file conftest.$ac_objext` in
6056 *ELF-32*)
cae5b340 6057 HPUX_IA64_MODE="32"
ea04106b
AX
6058 ;;
6059 *ELF-64*)
cae5b340 6060 HPUX_IA64_MODE="64"
ea04106b
AX
6061 ;;
6062 esac
6063 fi
6064 rm -rf conftest*
6065 ;;
6066*-*-irix6*)
cae5b340
AX
6067 # Find out which ABI we are using.
6068 echo '#line 6068 "configure"' > conftest.$ac_ext
6069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ea04106b
AX
6070 (eval $ac_compile) 2>&5
6071 ac_status=$?
cae5b340
AX
6072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; then
6074 if test "$lt_cv_prog_gnu_ld" = yes; then
ea04106b
AX
6075 case `/usr/bin/file conftest.$ac_objext` in
6076 *32-bit*)
6077 LD="${LD-ld} -melf32bsmip"
6078 ;;
6079 *N32*)
6080 LD="${LD-ld} -melf32bmipn32"
6081 ;;
6082 *64-bit*)
6083 LD="${LD-ld} -melf64bmip"
6084 ;;
6085 esac
6086 else
6087 case `/usr/bin/file conftest.$ac_objext` in
6088 *32-bit*)
6089 LD="${LD-ld} -32"
6090 ;;
6091 *N32*)
6092 LD="${LD-ld} -n32"
6093 ;;
6094 *64-bit*)
6095 LD="${LD-ld} -64"
6096 ;;
6097 esac
6098 fi
6099 fi
6100 rm -rf conftest*
6101 ;;
6102
cae5b340 6103x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
ea04106b 6104s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
cae5b340 6105 # Find out which ABI we are using.
ea04106b 6106 echo 'int i;' > conftest.$ac_ext
cae5b340 6107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ea04106b
AX
6108 (eval $ac_compile) 2>&5
6109 ac_status=$?
cae5b340
AX
6110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; then
ea04106b
AX
6112 case `/usr/bin/file conftest.o` in
6113 *32-bit*)
6114 case $host in
6115 x86_64-*kfreebsd*-gnu)
6116 LD="${LD-ld} -m elf_i386_fbsd"
6117 ;;
6118 x86_64-*linux*)
cae5b340 6119 LD="${LD-ld} -m elf_i386"
68d83c55 6120 ;;
cae5b340 6121 ppc64-*linux*|powerpc64-*linux*)
ea04106b
AX
6122 LD="${LD-ld} -m elf32ppclinux"
6123 ;;
6124 s390x-*linux*)
6125 LD="${LD-ld} -m elf_s390"
6126 ;;
6127 sparc64-*linux*)
6128 LD="${LD-ld} -m elf32_sparc"
6129 ;;
6130 esac
6131 ;;
6132 *64-bit*)
6133 case $host in
6134 x86_64-*kfreebsd*-gnu)
6135 LD="${LD-ld} -m elf_x86_64_fbsd"
6136 ;;
6137 x86_64-*linux*)
6138 LD="${LD-ld} -m elf_x86_64"
6139 ;;
cae5b340 6140 ppc*-*linux*|powerpc*-*linux*)
ea04106b
AX
6141 LD="${LD-ld} -m elf64ppc"
6142 ;;
6143 s390*-*linux*|s390*-*tpf*)
6144 LD="${LD-ld} -m elf64_s390"
6145 ;;
6146 sparc*-*linux*)
6147 LD="${LD-ld} -m elf64_sparc"
6148 ;;
6149 esac
6150 ;;
6151 esac
6152 fi
6153 rm -rf conftest*
6154 ;;
6155
6156*-*-sco3.2v5*)
6157 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
cae5b340 6158 SAVE_CFLAGS="$CFLAGS"
ea04106b 6159 CFLAGS="$CFLAGS -belf"
cae5b340 6160 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
ea04106b 6161$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cae5b340 6162if test "${lt_cv_cc_needs_belf+set}" = set; then
ea04106b
AX
6163 $as_echo_n "(cached) " >&6
6164else
6165 ac_ext=c
6166ac_cpp='$CPP $CPPFLAGS'
6167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169ac_compiler_gnu=$ac_cv_c_compiler_gnu
6170
cae5b340
AX
6171 cat >conftest.$ac_ext <<_ACEOF
6172/* confdefs.h. */
6173_ACEOF
6174cat confdefs.h >>conftest.$ac_ext
6175cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
6176/* end confdefs.h. */
6177
6178int
6179main ()
6180{
6181
6182 ;
6183 return 0;
6184}
6185_ACEOF
cae5b340
AX
6186rm -f conftest.$ac_objext conftest$ac_exeext
6187if { (ac_try="$ac_link"
6188case "(($ac_try" in
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6191esac
6192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6193$as_echo "$ac_try_echo") >&5
6194 (eval "$ac_link") 2>conftest.er1
6195 ac_status=$?
6196 grep -v '^ *+' conftest.er1 >conftest.err
6197 rm -f conftest.er1
6198 cat conftest.err >&5
6199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); } && {
6201 test -z "$ac_c_werror_flag" ||
6202 test ! -s conftest.err
6203 } && test -s conftest$ac_exeext && {
6204 test "$cross_compiling" = yes ||
6205 $as_test_x conftest$ac_exeext
6206 }; then
ea04106b
AX
6207 lt_cv_cc_needs_belf=yes
6208else
cae5b340
AX
6209 $as_echo "$as_me: failed program was:" >&5
6210sed 's/^/| /' conftest.$ac_ext >&5
6211
6212 lt_cv_cc_needs_belf=no
ea04106b 6213fi
cae5b340
AX
6214
6215rm -rf conftest.dSYM
6216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6217 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
6218 ac_ext=c
6219ac_cpp='$CPP $CPPFLAGS'
6220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6222ac_compiler_gnu=$ac_cv_c_compiler_gnu
6223
6224fi
cae5b340 6225{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
ea04106b 6226$as_echo "$lt_cv_cc_needs_belf" >&6; }
cae5b340 6227 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
ea04106b 6228 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
cae5b340 6229 CFLAGS="$SAVE_CFLAGS"
ea04106b
AX
6230 fi
6231 ;;
cae5b340
AX
6232sparc*-*solaris*)
6233 # Find out which ABI we are using.
ea04106b 6234 echo 'int i;' > conftest.$ac_ext
cae5b340 6235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ea04106b
AX
6236 (eval $ac_compile) 2>&5
6237 ac_status=$?
cae5b340
AX
6238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); }; then
ea04106b
AX
6240 case `/usr/bin/file conftest.o` in
6241 *64-bit*)
6242 case $lt_cv_prog_gnu_ld in
cae5b340 6243 yes*) LD="${LD-ld} -m elf64_sparc" ;;
ea04106b
AX
6244 *)
6245 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6246 LD="${LD-ld} -64"
6247 fi
6248 ;;
6249 esac
6250 ;;
6251 esac
6252 fi
6253 rm -rf conftest*
6254 ;;
6255esac
6256
cae5b340 6257need_locks="$enable_libtool_lock"
ea04106b
AX
6258
6259
6260 case $host_os in
6261 rhapsody* | darwin*)
6262 if test -n "$ac_tool_prefix"; then
6263 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6264set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cae5b340 6265{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6266$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6267if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
ea04106b
AX
6268 $as_echo_n "(cached) " >&6
6269else
6270 if test -n "$DSYMUTIL"; then
6271 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6272else
6273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274for as_dir in $PATH
6275do
6276 IFS=$as_save_IFS
6277 test -z "$as_dir" && as_dir=.
cae5b340
AX
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 6280 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cae5b340 6281 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6282 break 2
6283 fi
6284done
cae5b340 6285done
ea04106b
AX
6286IFS=$as_save_IFS
6287
6288fi
6289fi
6290DSYMUTIL=$ac_cv_prog_DSYMUTIL
6291if test -n "$DSYMUTIL"; then
cae5b340 6292 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
ea04106b
AX
6293$as_echo "$DSYMUTIL" >&6; }
6294else
cae5b340 6295 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6296$as_echo "no" >&6; }
6297fi
6298
6299
6300fi
6301if test -z "$ac_cv_prog_DSYMUTIL"; then
6302 ac_ct_DSYMUTIL=$DSYMUTIL
6303 # Extract the first word of "dsymutil", so it can be a program name with args.
6304set dummy dsymutil; ac_word=$2
cae5b340 6305{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6306$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6307if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
ea04106b
AX
6308 $as_echo_n "(cached) " >&6
6309else
6310 if test -n "$ac_ct_DSYMUTIL"; then
6311 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6312else
6313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314for as_dir in $PATH
6315do
6316 IFS=$as_save_IFS
6317 test -z "$as_dir" && as_dir=.
cae5b340
AX
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 6320 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cae5b340 6321 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6322 break 2
6323 fi
6324done
cae5b340 6325done
ea04106b
AX
6326IFS=$as_save_IFS
6327
6328fi
6329fi
6330ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6331if test -n "$ac_ct_DSYMUTIL"; then
cae5b340 6332 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
ea04106b
AX
6333$as_echo "$ac_ct_DSYMUTIL" >&6; }
6334else
cae5b340 6335 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6336$as_echo "no" >&6; }
6337fi
6338
6339 if test "x$ac_ct_DSYMUTIL" = x; then
6340 DSYMUTIL=":"
6341 else
6342 case $cross_compiling:$ac_tool_warned in
6343yes:)
cae5b340 6344{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
6345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6346ac_tool_warned=yes ;;
6347esac
6348 DSYMUTIL=$ac_ct_DSYMUTIL
6349 fi
6350else
6351 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6352fi
6353
6354 if test -n "$ac_tool_prefix"; then
6355 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6356set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cae5b340 6357{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6358$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6359if test "${ac_cv_prog_NMEDIT+set}" = set; then
ea04106b
AX
6360 $as_echo_n "(cached) " >&6
6361else
6362 if test -n "$NMEDIT"; then
6363 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6364else
6365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366for as_dir in $PATH
6367do
6368 IFS=$as_save_IFS
6369 test -z "$as_dir" && as_dir=.
cae5b340
AX
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 6372 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cae5b340 6373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6374 break 2
6375 fi
6376done
cae5b340 6377done
ea04106b
AX
6378IFS=$as_save_IFS
6379
6380fi
6381fi
6382NMEDIT=$ac_cv_prog_NMEDIT
6383if test -n "$NMEDIT"; then
cae5b340 6384 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
ea04106b
AX
6385$as_echo "$NMEDIT" >&6; }
6386else
cae5b340 6387 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6388$as_echo "no" >&6; }
6389fi
6390
6391
6392fi
6393if test -z "$ac_cv_prog_NMEDIT"; then
6394 ac_ct_NMEDIT=$NMEDIT
6395 # Extract the first word of "nmedit", so it can be a program name with args.
6396set dummy nmedit; ac_word=$2
cae5b340 6397{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6398$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6399if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
ea04106b
AX
6400 $as_echo_n "(cached) " >&6
6401else
6402 if test -n "$ac_ct_NMEDIT"; then
6403 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6404else
6405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406for as_dir in $PATH
6407do
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
cae5b340
AX
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 6412 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cae5b340 6413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6414 break 2
6415 fi
6416done
cae5b340 6417done
ea04106b
AX
6418IFS=$as_save_IFS
6419
6420fi
6421fi
6422ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6423if test -n "$ac_ct_NMEDIT"; then
cae5b340 6424 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
ea04106b
AX
6425$as_echo "$ac_ct_NMEDIT" >&6; }
6426else
cae5b340 6427 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6428$as_echo "no" >&6; }
6429fi
6430
6431 if test "x$ac_ct_NMEDIT" = x; then
6432 NMEDIT=":"
6433 else
6434 case $cross_compiling:$ac_tool_warned in
6435yes:)
cae5b340 6436{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
6437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6438ac_tool_warned=yes ;;
6439esac
6440 NMEDIT=$ac_ct_NMEDIT
6441 fi
6442else
6443 NMEDIT="$ac_cv_prog_NMEDIT"
6444fi
6445
6446 if test -n "$ac_tool_prefix"; then
6447 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6448set dummy ${ac_tool_prefix}lipo; ac_word=$2
cae5b340 6449{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6450$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6451if test "${ac_cv_prog_LIPO+set}" = set; then
ea04106b
AX
6452 $as_echo_n "(cached) " >&6
6453else
6454 if test -n "$LIPO"; then
6455 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6456else
6457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458for as_dir in $PATH
6459do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
cae5b340
AX
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 6464 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cae5b340 6465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6466 break 2
6467 fi
6468done
cae5b340 6469done
ea04106b
AX
6470IFS=$as_save_IFS
6471
6472fi
6473fi
6474LIPO=$ac_cv_prog_LIPO
6475if test -n "$LIPO"; then
cae5b340 6476 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
ea04106b
AX
6477$as_echo "$LIPO" >&6; }
6478else
cae5b340 6479 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6480$as_echo "no" >&6; }
6481fi
6482
6483
6484fi
6485if test -z "$ac_cv_prog_LIPO"; then
6486 ac_ct_LIPO=$LIPO
6487 # Extract the first word of "lipo", so it can be a program name with args.
6488set dummy lipo; ac_word=$2
cae5b340 6489{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6490$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6491if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
ea04106b
AX
6492 $as_echo_n "(cached) " >&6
6493else
6494 if test -n "$ac_ct_LIPO"; then
6495 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6496else
6497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498for as_dir in $PATH
6499do
6500 IFS=$as_save_IFS
6501 test -z "$as_dir" && as_dir=.
cae5b340
AX
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 6504 ac_cv_prog_ac_ct_LIPO="lipo"
cae5b340 6505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6506 break 2
6507 fi
6508done
cae5b340 6509done
ea04106b
AX
6510IFS=$as_save_IFS
6511
6512fi
6513fi
6514ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6515if test -n "$ac_ct_LIPO"; then
cae5b340 6516 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
ea04106b
AX
6517$as_echo "$ac_ct_LIPO" >&6; }
6518else
cae5b340 6519 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6520$as_echo "no" >&6; }
6521fi
6522
6523 if test "x$ac_ct_LIPO" = x; then
6524 LIPO=":"
6525 else
6526 case $cross_compiling:$ac_tool_warned in
6527yes:)
cae5b340 6528{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
6529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6530ac_tool_warned=yes ;;
6531esac
6532 LIPO=$ac_ct_LIPO
6533 fi
6534else
6535 LIPO="$ac_cv_prog_LIPO"
6536fi
6537
6538 if test -n "$ac_tool_prefix"; then
6539 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6540set dummy ${ac_tool_prefix}otool; ac_word=$2
cae5b340 6541{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6542$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6543if test "${ac_cv_prog_OTOOL+set}" = set; then
ea04106b
AX
6544 $as_echo_n "(cached) " >&6
6545else
6546 if test -n "$OTOOL"; then
6547 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6548else
6549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550for as_dir in $PATH
6551do
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
cae5b340
AX
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 6556 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cae5b340 6557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6558 break 2
6559 fi
6560done
cae5b340 6561done
ea04106b
AX
6562IFS=$as_save_IFS
6563
6564fi
6565fi
6566OTOOL=$ac_cv_prog_OTOOL
6567if test -n "$OTOOL"; then
cae5b340 6568 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
ea04106b
AX
6569$as_echo "$OTOOL" >&6; }
6570else
cae5b340 6571 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6572$as_echo "no" >&6; }
6573fi
6574
6575
6576fi
6577if test -z "$ac_cv_prog_OTOOL"; then
6578 ac_ct_OTOOL=$OTOOL
6579 # Extract the first word of "otool", so it can be a program name with args.
6580set dummy otool; ac_word=$2
cae5b340 6581{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6582$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6583if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
ea04106b
AX
6584 $as_echo_n "(cached) " >&6
6585else
6586 if test -n "$ac_ct_OTOOL"; then
6587 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6588else
6589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590for as_dir in $PATH
6591do
6592 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
cae5b340
AX
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 6596 ac_cv_prog_ac_ct_OTOOL="otool"
cae5b340 6597 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6598 break 2
6599 fi
6600done
cae5b340 6601done
ea04106b
AX
6602IFS=$as_save_IFS
6603
6604fi
6605fi
6606ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6607if test -n "$ac_ct_OTOOL"; then
cae5b340 6608 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
ea04106b
AX
6609$as_echo "$ac_ct_OTOOL" >&6; }
6610else
cae5b340 6611 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6612$as_echo "no" >&6; }
6613fi
6614
6615 if test "x$ac_ct_OTOOL" = x; then
6616 OTOOL=":"
6617 else
6618 case $cross_compiling:$ac_tool_warned in
6619yes:)
cae5b340 6620{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
6621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6622ac_tool_warned=yes ;;
6623esac
6624 OTOOL=$ac_ct_OTOOL
6625 fi
6626else
6627 OTOOL="$ac_cv_prog_OTOOL"
6628fi
6629
6630 if test -n "$ac_tool_prefix"; then
6631 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6632set dummy ${ac_tool_prefix}otool64; ac_word=$2
cae5b340 6633{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6634$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6635if test "${ac_cv_prog_OTOOL64+set}" = set; then
ea04106b
AX
6636 $as_echo_n "(cached) " >&6
6637else
6638 if test -n "$OTOOL64"; then
6639 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6640else
6641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642for as_dir in $PATH
6643do
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
cae5b340
AX
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 6648 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cae5b340 6649 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6650 break 2
6651 fi
6652done
cae5b340 6653done
ea04106b
AX
6654IFS=$as_save_IFS
6655
6656fi
6657fi
6658OTOOL64=$ac_cv_prog_OTOOL64
6659if test -n "$OTOOL64"; then
cae5b340 6660 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
ea04106b
AX
6661$as_echo "$OTOOL64" >&6; }
6662else
cae5b340 6663 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6664$as_echo "no" >&6; }
6665fi
6666
6667
6668fi
6669if test -z "$ac_cv_prog_OTOOL64"; then
6670 ac_ct_OTOOL64=$OTOOL64
6671 # Extract the first word of "otool64", so it can be a program name with args.
6672set dummy otool64; ac_word=$2
cae5b340 6673{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6674$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6675if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
ea04106b
AX
6676 $as_echo_n "(cached) " >&6
6677else
6678 if test -n "$ac_ct_OTOOL64"; then
6679 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6680else
6681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682for as_dir in $PATH
6683do
6684 IFS=$as_save_IFS
6685 test -z "$as_dir" && as_dir=.
cae5b340
AX
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 6688 ac_cv_prog_ac_ct_OTOOL64="otool64"
cae5b340 6689 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6690 break 2
6691 fi
6692done
cae5b340 6693done
ea04106b
AX
6694IFS=$as_save_IFS
6695
6696fi
6697fi
6698ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6699if test -n "$ac_ct_OTOOL64"; then
cae5b340 6700 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
ea04106b
AX
6701$as_echo "$ac_ct_OTOOL64" >&6; }
6702else
cae5b340 6703 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6704$as_echo "no" >&6; }
6705fi
6706
6707 if test "x$ac_ct_OTOOL64" = x; then
6708 OTOOL64=":"
6709 else
6710 case $cross_compiling:$ac_tool_warned in
6711yes:)
cae5b340 6712{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
6713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6714ac_tool_warned=yes ;;
6715esac
6716 OTOOL64=$ac_ct_OTOOL64
6717 fi
6718else
6719 OTOOL64="$ac_cv_prog_OTOOL64"
6720fi
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
cae5b340 6748 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
ea04106b 6749$as_echo_n "checking for -single_module linker flag... " >&6; }
cae5b340 6750if test "${lt_cv_apple_cc_single_mod+set}" = set; then
ea04106b
AX
6751 $as_echo_n "(cached) " >&6
6752else
6753 lt_cv_apple_cc_single_mod=no
cae5b340 6754 if test -z "${LT_MULTI_MODULE}"; then
ea04106b
AX
6755 # By default we will add the -single_module flag. You can override
6756 # by either setting the environment variable LT_MULTI_MODULE
6757 # non-empty at configure time, or by adding -multi_module to the
6758 # link flags.
6759 rm -rf libconftest.dylib*
6760 echo "int foo(void){return 1;}" > conftest.c
6761 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6762-dynamiclib -Wl,-single_module conftest.c" >&5
6763 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6764 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6765 _lt_result=$?
cae5b340 6766 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
ea04106b
AX
6767 lt_cv_apple_cc_single_mod=yes
6768 else
6769 cat conftest.err >&5
6770 fi
6771 rm -rf libconftest.dylib*
6772 rm -f conftest.*
6773 fi
6774fi
cae5b340 6775{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
ea04106b 6776$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cae5b340 6777 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
ea04106b 6778$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cae5b340 6779if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
ea04106b
AX
6780 $as_echo_n "(cached) " >&6
6781else
6782 lt_cv_ld_exported_symbols_list=no
6783 save_LDFLAGS=$LDFLAGS
6784 echo "_main" > conftest.sym
6785 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cae5b340
AX
6786 cat >conftest.$ac_ext <<_ACEOF
6787/* confdefs.h. */
6788_ACEOF
6789cat confdefs.h >>conftest.$ac_ext
6790cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
6791/* end confdefs.h. */
6792
6793int
6794main ()
6795{
6796
6797 ;
6798 return 0;
6799}
6800_ACEOF
cae5b340
AX
6801rm -f conftest.$ac_objext conftest$ac_exeext
6802if { (ac_try="$ac_link"
6803case "(($ac_try" in
6804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6805 *) ac_try_echo=$ac_try;;
6806esac
6807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6808$as_echo "$ac_try_echo") >&5
6809 (eval "$ac_link") 2>conftest.er1
6810 ac_status=$?
6811 grep -v '^ *+' conftest.er1 >conftest.err
6812 rm -f conftest.er1
6813 cat conftest.err >&5
6814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } && {
6816 test -z "$ac_c_werror_flag" ||
6817 test ! -s conftest.err
6818 } && test -s conftest$ac_exeext && {
6819 test "$cross_compiling" = yes ||
6820 $as_test_x conftest$ac_exeext
6821 }; then
ea04106b
AX
6822 lt_cv_ld_exported_symbols_list=yes
6823else
cae5b340
AX
6824 $as_echo "$as_me: failed program was:" >&5
6825sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 6826
cae5b340 6827 lt_cv_ld_exported_symbols_list=no
ea04106b 6828fi
ea04106b 6829
cae5b340
AX
6830rm -rf conftest.dSYM
6831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6832 conftest$ac_exeext conftest.$ac_ext
6833 LDFLAGS="$save_LDFLAGS"
ea04106b
AX
6834
6835fi
cae5b340
AX
6836{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6837$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
ea04106b
AX
6838 case $host_os in
6839 rhapsody* | darwin1.[012])
cae5b340 6840 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
ea04106b 6841 darwin1.*)
cae5b340 6842 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
ea04106b
AX
6843 darwin*) # darwin 5.x on
6844 # if running on 10.5 or later, the deployment target defaults
6845 # to the OS version, if on x86, and 10.4, the deployment
6846 # target defaults to 10.4. Don't you love it?
6847 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6848 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
cae5b340
AX
6849 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6850 10.[012]*)
6851 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
ea04106b 6852 10.*)
cae5b340 6853 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ea04106b
AX
6854 esac
6855 ;;
6856 esac
cae5b340 6857 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
ea04106b
AX
6858 _lt_dar_single_mod='$single_module'
6859 fi
cae5b340
AX
6860 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6861 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
ea04106b 6862 else
cae5b340 6863 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
ea04106b 6864 fi
cae5b340 6865 if test "$DSYMUTIL" != ":"; then
ea04106b
AX
6866 _lt_dsymutil='~$DSYMUTIL $lib || :'
6867 else
6868 _lt_dsymutil=
6869 fi
6870 ;;
6871 esac
6872
6873ac_ext=c
6874ac_cpp='$CPP $CPPFLAGS'
6875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6877ac_compiler_gnu=$ac_cv_c_compiler_gnu
cae5b340 6878{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
ea04106b
AX
6879$as_echo_n "checking how to run the C preprocessor... " >&6; }
6880# On Suns, sometimes $CPP names a directory.
6881if test -n "$CPP" && test -d "$CPP"; then
6882 CPP=
6883fi
6884if test -z "$CPP"; then
cae5b340 6885 if test "${ac_cv_prog_CPP+set}" = set; then
ea04106b
AX
6886 $as_echo_n "(cached) " >&6
6887else
6888 # Double quotes because CPP needs to be expanded
6889 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6890 do
6891 ac_preproc_ok=false
6892for ac_c_preproc_warn_flag in '' yes
6893do
6894 # Use a header file that comes with gcc, so configuring glibc
6895 # with a fresh cross-compiler works.
6896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6897 # <limits.h> exists even on freestanding compilers.
6898 # On the NeXT, cc -E runs the code through the compiler's parser,
6899 # not just through cpp. "Syntax error" is here to catch this case.
cae5b340
AX
6900 cat >conftest.$ac_ext <<_ACEOF
6901/* confdefs.h. */
6902_ACEOF
6903cat confdefs.h >>conftest.$ac_ext
6904cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
6905/* end confdefs.h. */
6906#ifdef __STDC__
6907# include <limits.h>
6908#else
6909# include <assert.h>
6910#endif
6911 Syntax error
6912_ACEOF
cae5b340
AX
6913if { (ac_try="$ac_cpp conftest.$ac_ext"
6914case "(($ac_try" in
6915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916 *) ac_try_echo=$ac_try;;
6917esac
6918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6919$as_echo "$ac_try_echo") >&5
6920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6921 ac_status=$?
6922 grep -v '^ *+' conftest.er1 >conftest.err
6923 rm -f conftest.er1
6924 cat conftest.err >&5
6925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } >/dev/null && {
6927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6928 test ! -s conftest.err
6929 }; then
6930 :
ea04106b 6931else
cae5b340
AX
6932 $as_echo "$as_me: failed program was:" >&5
6933sed 's/^/| /' conftest.$ac_ext >&5
6934
ea04106b
AX
6935 # Broken: fails on valid input.
6936continue
6937fi
cae5b340
AX
6938
6939rm -f conftest.err conftest.$ac_ext
ea04106b
AX
6940
6941 # OK, works on sane cases. Now check whether nonexistent headers
6942 # can be detected and how.
cae5b340
AX
6943 cat >conftest.$ac_ext <<_ACEOF
6944/* confdefs.h. */
6945_ACEOF
6946cat confdefs.h >>conftest.$ac_ext
6947cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
6948/* end confdefs.h. */
6949#include <ac_nonexistent.h>
6950_ACEOF
cae5b340
AX
6951if { (ac_try="$ac_cpp conftest.$ac_ext"
6952case "(($ac_try" in
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6955esac
6956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6957$as_echo "$ac_try_echo") >&5
6958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6959 ac_status=$?
6960 grep -v '^ *+' conftest.er1 >conftest.err
6961 rm -f conftest.er1
6962 cat conftest.err >&5
6963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } >/dev/null && {
6965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6966 test ! -s conftest.err
6967 }; then
ea04106b
AX
6968 # Broken: success on invalid input.
6969continue
6970else
cae5b340
AX
6971 $as_echo "$as_me: failed program was:" >&5
6972sed 's/^/| /' conftest.$ac_ext >&5
6973
ea04106b
AX
6974 # Passes both tests.
6975ac_preproc_ok=:
6976break
6977fi
cae5b340
AX
6978
6979rm -f conftest.err conftest.$ac_ext
ea04106b
AX
6980
6981done
6982# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cae5b340
AX
6983rm -f conftest.err conftest.$ac_ext
6984if $ac_preproc_ok; then
ea04106b
AX
6985 break
6986fi
6987
6988 done
6989 ac_cv_prog_CPP=$CPP
6990
6991fi
6992 CPP=$ac_cv_prog_CPP
6993else
6994 ac_cv_prog_CPP=$CPP
6995fi
cae5b340 6996{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
ea04106b
AX
6997$as_echo "$CPP" >&6; }
6998ac_preproc_ok=false
6999for ac_c_preproc_warn_flag in '' yes
7000do
7001 # Use a header file that comes with gcc, so configuring glibc
7002 # with a fresh cross-compiler works.
7003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7004 # <limits.h> exists even on freestanding compilers.
7005 # On the NeXT, cc -E runs the code through the compiler's parser,
7006 # not just through cpp. "Syntax error" is here to catch this case.
cae5b340
AX
7007 cat >conftest.$ac_ext <<_ACEOF
7008/* confdefs.h. */
7009_ACEOF
7010cat confdefs.h >>conftest.$ac_ext
7011cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
7012/* end confdefs.h. */
7013#ifdef __STDC__
7014# include <limits.h>
7015#else
7016# include <assert.h>
7017#endif
7018 Syntax error
7019_ACEOF
cae5b340
AX
7020if { (ac_try="$ac_cpp conftest.$ac_ext"
7021case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7024esac
7025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7026$as_echo "$ac_try_echo") >&5
7027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7028 ac_status=$?
7029 grep -v '^ *+' conftest.er1 >conftest.err
7030 rm -f conftest.er1
7031 cat conftest.err >&5
7032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } >/dev/null && {
7034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7035 test ! -s conftest.err
7036 }; then
7037 :
ea04106b 7038else
cae5b340
AX
7039 $as_echo "$as_me: failed program was:" >&5
7040sed 's/^/| /' conftest.$ac_ext >&5
7041
ea04106b
AX
7042 # Broken: fails on valid input.
7043continue
7044fi
cae5b340
AX
7045
7046rm -f conftest.err conftest.$ac_ext
ea04106b
AX
7047
7048 # OK, works on sane cases. Now check whether nonexistent headers
7049 # can be detected and how.
cae5b340
AX
7050 cat >conftest.$ac_ext <<_ACEOF
7051/* confdefs.h. */
7052_ACEOF
7053cat confdefs.h >>conftest.$ac_ext
7054cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
7055/* end confdefs.h. */
7056#include <ac_nonexistent.h>
7057_ACEOF
cae5b340
AX
7058if { (ac_try="$ac_cpp conftest.$ac_ext"
7059case "(($ac_try" in
7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7062esac
7063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7064$as_echo "$ac_try_echo") >&5
7065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7066 ac_status=$?
7067 grep -v '^ *+' conftest.er1 >conftest.err
7068 rm -f conftest.er1
7069 cat conftest.err >&5
7070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } >/dev/null && {
7072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7073 test ! -s conftest.err
7074 }; then
ea04106b
AX
7075 # Broken: success on invalid input.
7076continue
7077else
cae5b340
AX
7078 $as_echo "$as_me: failed program was:" >&5
7079sed 's/^/| /' conftest.$ac_ext >&5
7080
ea04106b
AX
7081 # Passes both tests.
7082ac_preproc_ok=:
7083break
7084fi
cae5b340
AX
7085
7086rm -f conftest.err conftest.$ac_ext
ea04106b
AX
7087
7088done
7089# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cae5b340
AX
7090rm -f conftest.err conftest.$ac_ext
7091if $ac_preproc_ok; then
7092 :
ea04106b 7093else
cae5b340 7094 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
ea04106b 7095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cae5b340
AX
7096{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7097See \`config.log' for more details." >&5
7098$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7099See \`config.log' for more details." >&2;}
7100 { (exit 1); exit 1; }; }; }
ea04106b
AX
7101fi
7102
7103ac_ext=c
7104ac_cpp='$CPP $CPPFLAGS'
7105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7107ac_compiler_gnu=$ac_cv_c_compiler_gnu
7108
7109
cae5b340 7110{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
ea04106b 7111$as_echo_n "checking for ANSI C header files... " >&6; }
cae5b340 7112if test "${ac_cv_header_stdc+set}" = set; then
ea04106b
AX
7113 $as_echo_n "(cached) " >&6
7114else
cae5b340
AX
7115 cat >conftest.$ac_ext <<_ACEOF
7116/* confdefs.h. */
7117_ACEOF
7118cat confdefs.h >>conftest.$ac_ext
7119cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
7120/* end confdefs.h. */
7121#include <stdlib.h>
7122#include <stdarg.h>
7123#include <string.h>
7124#include <float.h>
7125
7126int
7127main ()
7128{
7129
7130 ;
7131 return 0;
7132}
7133_ACEOF
cae5b340
AX
7134rm -f conftest.$ac_objext
7135if { (ac_try="$ac_compile"
7136case "(($ac_try" in
7137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7138 *) ac_try_echo=$ac_try;;
7139esac
7140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7141$as_echo "$ac_try_echo") >&5
7142 (eval "$ac_compile") 2>conftest.er1
7143 ac_status=$?
7144 grep -v '^ *+' conftest.er1 >conftest.err
7145 rm -f conftest.er1
7146 cat conftest.err >&5
7147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } && {
7149 test -z "$ac_c_werror_flag" ||
7150 test ! -s conftest.err
7151 } && test -s conftest.$ac_objext; then
ea04106b
AX
7152 ac_cv_header_stdc=yes
7153else
cae5b340
AX
7154 $as_echo "$as_me: failed program was:" >&5
7155sed 's/^/| /' conftest.$ac_ext >&5
7156
7157 ac_cv_header_stdc=no
ea04106b 7158fi
cae5b340 7159
ea04106b
AX
7160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7161
7162if test $ac_cv_header_stdc = yes; then
7163 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cae5b340
AX
7164 cat >conftest.$ac_ext <<_ACEOF
7165/* confdefs.h. */
7166_ACEOF
7167cat confdefs.h >>conftest.$ac_ext
7168cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
7169/* end confdefs.h. */
7170#include <string.h>
7171
7172_ACEOF
7173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cae5b340
AX
7174 $EGREP "memchr" >/dev/null 2>&1; then
7175 :
ea04106b
AX
7176else
7177 ac_cv_header_stdc=no
7178fi
7179rm -f conftest*
7180
7181fi
7182
7183if test $ac_cv_header_stdc = yes; then
7184 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cae5b340
AX
7185 cat >conftest.$ac_ext <<_ACEOF
7186/* confdefs.h. */
7187_ACEOF
7188cat confdefs.h >>conftest.$ac_ext
7189cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
7190/* end confdefs.h. */
7191#include <stdlib.h>
7192
7193_ACEOF
7194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cae5b340
AX
7195 $EGREP "free" >/dev/null 2>&1; then
7196 :
ea04106b
AX
7197else
7198 ac_cv_header_stdc=no
7199fi
7200rm -f conftest*
7201
7202fi
7203
7204if test $ac_cv_header_stdc = yes; then
7205 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cae5b340 7206 if test "$cross_compiling" = yes; then
ea04106b
AX
7207 :
7208else
cae5b340
AX
7209 cat >conftest.$ac_ext <<_ACEOF
7210/* confdefs.h. */
7211_ACEOF
7212cat confdefs.h >>conftest.$ac_ext
7213cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
7214/* end confdefs.h. */
7215#include <ctype.h>
7216#include <stdlib.h>
7217#if ((' ' & 0x0FF) == 0x020)
7218# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7219# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7220#else
7221# define ISLOWER(c) \
7222 (('a' <= (c) && (c) <= 'i') \
7223 || ('j' <= (c) && (c) <= 'r') \
7224 || ('s' <= (c) && (c) <= 'z'))
7225# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7226#endif
7227
7228#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7229int
7230main ()
7231{
7232 int i;
7233 for (i = 0; i < 256; i++)
7234 if (XOR (islower (i), ISLOWER (i))
7235 || toupper (i) != TOUPPER (i))
7236 return 2;
7237 return 0;
7238}
7239_ACEOF
cae5b340
AX
7240rm -f conftest$ac_exeext
7241if { (ac_try="$ac_link"
7242case "(($ac_try" in
7243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7244 *) ac_try_echo=$ac_try;;
7245esac
7246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7247$as_echo "$ac_try_echo") >&5
7248 (eval "$ac_link") 2>&5
7249 ac_status=$?
7250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7252 { (case "(($ac_try" in
7253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7254 *) ac_try_echo=$ac_try;;
7255esac
7256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7257$as_echo "$ac_try_echo") >&5
7258 (eval "$ac_try") 2>&5
7259 ac_status=$?
7260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; }; then
7262 :
ea04106b 7263else
cae5b340
AX
7264 $as_echo "$as_me: program exited with status $ac_status" >&5
7265$as_echo "$as_me: failed program was:" >&5
7266sed 's/^/| /' conftest.$ac_ext >&5
7267
7268( exit $ac_status )
7269ac_cv_header_stdc=no
ea04106b 7270fi
cae5b340
AX
7271rm -rf conftest.dSYM
7272rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ea04106b
AX
7273fi
7274
cae5b340 7275
ea04106b
AX
7276fi
7277fi
cae5b340 7278{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
ea04106b
AX
7279$as_echo "$ac_cv_header_stdc" >&6; }
7280if test $ac_cv_header_stdc = yes; then
7281
cae5b340
AX
7282cat >>confdefs.h <<\_ACEOF
7283#define STDC_HEADERS 1
7284_ACEOF
ea04106b
AX
7285
7286fi
7287
7288# On IRIX 5.3, sys/types and inttypes.h are conflicting.
cae5b340
AX
7289
7290
7291
7292
7293
7294
7295
7296
7297
ea04106b
AX
7298for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7299 inttypes.h stdint.h unistd.h
cae5b340
AX
7300do
7301as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7302{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7303$as_echo_n "checking for $ac_header... " >&6; }
7304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7305 $as_echo_n "(cached) " >&6
7306else
7307 cat >conftest.$ac_ext <<_ACEOF
7308/* confdefs.h. */
7309_ACEOF
7310cat confdefs.h >>conftest.$ac_ext
7311cat >>conftest.$ac_ext <<_ACEOF
7312/* end confdefs.h. */
7313$ac_includes_default
7314
7315#include <$ac_header>
7316_ACEOF
7317rm -f conftest.$ac_objext
7318if { (ac_try="$ac_compile"
7319case "(($ac_try" in
7320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321 *) ac_try_echo=$ac_try;;
7322esac
7323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7324$as_echo "$ac_try_echo") >&5
7325 (eval "$ac_compile") 2>conftest.er1
7326 ac_status=$?
7327 grep -v '^ *+' conftest.er1 >conftest.err
7328 rm -f conftest.er1
7329 cat conftest.err >&5
7330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } && {
7332 test -z "$ac_c_werror_flag" ||
7333 test ! -s conftest.err
7334 } && test -s conftest.$ac_objext; then
7335 eval "$as_ac_Header=yes"
7336else
7337 $as_echo "$as_me: failed program was:" >&5
7338sed 's/^/| /' conftest.$ac_ext >&5
7339
7340 eval "$as_ac_Header=no"
7341fi
7342
7343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344fi
7345ac_res=`eval 'as_val=${'$as_ac_Header'}
7346 $as_echo "$as_val"'`
7347 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7348$as_echo "$ac_res" >&6; }
7349as_val=`eval 'as_val=${'$as_ac_Header'}
7350 $as_echo "$as_val"'`
7351 if test "x$as_val" = x""yes; then
ea04106b
AX
7352 cat >>confdefs.h <<_ACEOF
7353#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7354_ACEOF
7355
7356fi
7357
7358done
7359
7360
cae5b340 7361
ea04106b 7362for ac_header in dlfcn.h
cae5b340
AX
7363do
7364as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7365{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7366$as_echo_n "checking for $ac_header... " >&6; }
7367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7368 $as_echo_n "(cached) " >&6
7369else
7370 cat >conftest.$ac_ext <<_ACEOF
7371/* confdefs.h. */
7372_ACEOF
7373cat confdefs.h >>conftest.$ac_ext
7374cat >>conftest.$ac_ext <<_ACEOF
7375/* end confdefs.h. */
7376$ac_includes_default
7377
7378#include <$ac_header>
ea04106b 7379_ACEOF
cae5b340
AX
7380rm -f conftest.$ac_objext
7381if { (ac_try="$ac_compile"
7382case "(($ac_try" in
7383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7384 *) ac_try_echo=$ac_try;;
7385esac
7386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7387$as_echo "$ac_try_echo") >&5
7388 (eval "$ac_compile") 2>conftest.er1
7389 ac_status=$?
7390 grep -v '^ *+' conftest.er1 >conftest.err
7391 rm -f conftest.er1
7392 cat conftest.err >&5
7393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.$ac_objext; then
7398 eval "$as_ac_Header=yes"
7399else
7400 $as_echo "$as_me: failed program was:" >&5
7401sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 7402
cae5b340 7403 eval "$as_ac_Header=no"
ea04106b
AX
7404fi
7405
cae5b340
AX
7406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407fi
7408ac_res=`eval 'as_val=${'$as_ac_Header'}
7409 $as_echo "$as_val"'`
7410 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7411$as_echo "$ac_res" >&6; }
7412as_val=`eval 'as_val=${'$as_ac_Header'}
7413 $as_echo "$as_val"'`
7414 if test "x$as_val" = x""yes; then
7415 cat >>confdefs.h <<_ACEOF
7416#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7417_ACEOF
ea04106b 7418
cae5b340 7419fi
ea04106b 7420
cae5b340 7421done
ea04106b
AX
7422
7423
7424
7425# Set options
7426
7427
7428
7429 enable_dlopen=no
7430
7431
7432 enable_win32_dll=no
7433
7434
7435 # Check whether --enable-shared was given.
cae5b340 7436if test "${enable_shared+set}" = set; then
ea04106b
AX
7437 enableval=$enable_shared; p=${PACKAGE-default}
7438 case $enableval in
7439 yes) enable_shared=yes ;;
7440 no) enable_shared=no ;;
7441 *)
7442 enable_shared=no
7443 # Look at the argument we got. We use all the common list separators.
cae5b340 7444 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
ea04106b 7445 for pkg in $enableval; do
cae5b340 7446 IFS="$lt_save_ifs"
ea04106b
AX
7447 if test "X$pkg" = "X$p"; then
7448 enable_shared=yes
7449 fi
7450 done
cae5b340 7451 IFS="$lt_save_ifs"
ea04106b
AX
7452 ;;
7453 esac
7454else
7455 enable_shared=yes
7456fi
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466 # Check whether --enable-static was given.
cae5b340 7467if test "${enable_static+set}" = set; then
ea04106b
AX
7468 enableval=$enable_static; p=${PACKAGE-default}
7469 case $enableval in
7470 yes) enable_static=yes ;;
7471 no) enable_static=no ;;
7472 *)
7473 enable_static=no
7474 # Look at the argument we got. We use all the common list separators.
cae5b340 7475 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
ea04106b 7476 for pkg in $enableval; do
cae5b340 7477 IFS="$lt_save_ifs"
ea04106b
AX
7478 if test "X$pkg" = "X$p"; then
7479 enable_static=yes
7480 fi
7481 done
cae5b340 7482 IFS="$lt_save_ifs"
ea04106b
AX
7483 ;;
7484 esac
7485else
7486 enable_static=yes
7487fi
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498# Check whether --with-pic was given.
cae5b340
AX
7499if test "${with_pic+set}" = set; then
7500 withval=$with_pic; pic_mode="$withval"
ea04106b
AX
7501else
7502 pic_mode=default
7503fi
7504
7505
cae5b340
AX
7506test -z "$pic_mode" && pic_mode=default
7507
ea04106b
AX
7508
7509
7510
7511
7512
7513
7514 # Check whether --enable-fast-install was given.
cae5b340 7515if test "${enable_fast_install+set}" = set; then
ea04106b
AX
7516 enableval=$enable_fast_install; p=${PACKAGE-default}
7517 case $enableval in
7518 yes) enable_fast_install=yes ;;
7519 no) enable_fast_install=no ;;
7520 *)
7521 enable_fast_install=no
7522 # Look at the argument we got. We use all the common list separators.
cae5b340 7523 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
ea04106b 7524 for pkg in $enableval; do
cae5b340 7525 IFS="$lt_save_ifs"
ea04106b
AX
7526 if test "X$pkg" = "X$p"; then
7527 enable_fast_install=yes
7528 fi
7529 done
cae5b340 7530 IFS="$lt_save_ifs"
ea04106b
AX
7531 ;;
7532 esac
7533else
7534 enable_fast_install=yes
7535fi
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547# This can be used to rebuild libtool when needed
cae5b340 7548LIBTOOL_DEPS="$ltmain"
ea04106b
AX
7549
7550# Always use our own libtool.
7551LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
ea04106b
AX
7571
7572
7573
7574
7575
7576
7577test -z "$LN_S" && LN_S="ln -s"
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
cae5b340 7592if test -n "${ZSH_VERSION+set}" ; then
ea04106b
AX
7593 setopt NO_GLOB_SUBST
7594fi
7595
cae5b340 7596{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
ea04106b 7597$as_echo_n "checking for objdir... " >&6; }
cae5b340 7598if test "${lt_cv_objdir+set}" = set; then
ea04106b
AX
7599 $as_echo_n "(cached) " >&6
7600else
7601 rm -f .libs 2>/dev/null
7602mkdir .libs 2>/dev/null
7603if test -d .libs; then
7604 lt_cv_objdir=.libs
7605else
7606 # MS-DOS does not allow filenames that begin with a dot.
7607 lt_cv_objdir=_libs
7608fi
7609rmdir .libs 2>/dev/null
7610fi
cae5b340 7611{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
ea04106b
AX
7612$as_echo "$lt_cv_objdir" >&6; }
7613objdir=$lt_cv_objdir
7614
7615
7616
7617
7618
7619cat >>confdefs.h <<_ACEOF
7620#define LT_OBJDIR "$lt_cv_objdir/"
7621_ACEOF
7622
7623
7624
7625
cae5b340
AX
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
ea04106b
AX
7639case $host_os in
7640aix3*)
7641 # AIX sometimes has problems with the GCC collect2 program. For some
7642 # reason, if we set the COLLECT_NAMES environment variable, the problems
7643 # vanish in a puff of smoke.
cae5b340 7644 if test "X${COLLECT_NAMES+set}" != Xset; then
ea04106b
AX
7645 COLLECT_NAMES=
7646 export COLLECT_NAMES
7647 fi
7648 ;;
7649esac
7650
cae5b340
AX
7651# Sed substitution that helps us do robust quoting. It backslashifies
7652# metacharacters that are still active within double-quoted strings.
7653sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7654
7655# Same as above, but do not quote variable references.
7656double_quote_subst='s/\(["`\\]\)/\\\1/g'
7657
7658# Sed substitution to delay expansion of an escaped shell variable in a
7659# double_quote_subst'ed string.
7660delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7661
7662# Sed substitution to delay expansion of an escaped single quote.
7663delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7664
7665# Sed substitution to avoid accidental globbing in evaled expressions
7666no_glob_subst='s/\*/\\\*/g'
7667
ea04106b
AX
7668# Global variables:
7669ofile=libtool
7670can_build_shared=yes
7671
cae5b340 7672# All known linkers require a `.a' archive for static linking (except MSVC,
ea04106b
AX
7673# which needs '.lib').
7674libext=a
7675
cae5b340 7676with_gnu_ld="$lt_cv_prog_gnu_ld"
ea04106b 7677
cae5b340
AX
7678old_CC="$CC"
7679old_CFLAGS="$CFLAGS"
ea04106b
AX
7680
7681# Set sane defaults for various variables
7682test -z "$CC" && CC=cc
7683test -z "$LTCC" && LTCC=$CC
7684test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7685test -z "$LD" && LD=ld
7686test -z "$ac_objext" && ac_objext=o
7687
cae5b340
AX
7688for cc_temp in $compiler""; do
7689 case $cc_temp in
7690 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7691 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7692 \-*) ;;
7693 *) break;;
7694 esac
7695done
7696cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
ea04106b
AX
7697
7698
7699# Only perform the check for file, if the check method requires it
7700test -z "$MAGIC_CMD" && MAGIC_CMD=file
7701case $deplibs_check_method in
7702file_magic*)
7703 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cae5b340 7704 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
ea04106b 7705$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cae5b340 7706if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
ea04106b
AX
7707 $as_echo_n "(cached) " >&6
7708else
7709 case $MAGIC_CMD in
7710[\\/*] | ?:[\\/]*)
cae5b340 7711 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ea04106b
AX
7712 ;;
7713*)
cae5b340
AX
7714 lt_save_MAGIC_CMD="$MAGIC_CMD"
7715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
ea04106b
AX
7716 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7717 for ac_dir in $ac_dummy; do
cae5b340 7718 IFS="$lt_save_ifs"
ea04106b 7719 test -z "$ac_dir" && ac_dir=.
cae5b340
AX
7720 if test -f $ac_dir/${ac_tool_prefix}file; then
7721 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ea04106b
AX
7722 if test -n "$file_magic_test_file"; then
7723 case $deplibs_check_method in
7724 "file_magic "*)
7725 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
cae5b340 7726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ea04106b
AX
7727 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7728 $EGREP "$file_magic_regex" > /dev/null; then
7729 :
7730 else
7731 cat <<_LT_EOF 1>&2
7732
7733*** Warning: the command libtool uses to detect shared libraries,
7734*** $file_magic_cmd, produces output that libtool cannot recognize.
7735*** The result is that libtool may fail to recognize shared libraries
7736*** as such. This will affect the creation of libtool libraries that
7737*** depend on shared libraries, but programs linked with such libtool
7738*** libraries will work regardless of this problem. Nevertheless, you
7739*** may want to report the problem to your system manager and/or to
7740*** bug-libtool@gnu.org
7741
7742_LT_EOF
7743 fi ;;
7744 esac
7745 fi
7746 break
7747 fi
7748 done
cae5b340
AX
7749 IFS="$lt_save_ifs"
7750 MAGIC_CMD="$lt_save_MAGIC_CMD"
ea04106b
AX
7751 ;;
7752esac
7753fi
7754
cae5b340 7755MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ea04106b 7756if test -n "$MAGIC_CMD"; then
cae5b340 7757 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
ea04106b
AX
7758$as_echo "$MAGIC_CMD" >&6; }
7759else
cae5b340 7760 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
7761$as_echo "no" >&6; }
7762fi
7763
7764
7765
7766
7767
7768if test -z "$lt_cv_path_MAGIC_CMD"; then
7769 if test -n "$ac_tool_prefix"; then
cae5b340 7770 { $as_echo "$as_me:$LINENO: checking for file" >&5
ea04106b 7771$as_echo_n "checking for file... " >&6; }
cae5b340 7772if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
ea04106b
AX
7773 $as_echo_n "(cached) " >&6
7774else
7775 case $MAGIC_CMD in
7776[\\/*] | ?:[\\/]*)
cae5b340 7777 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ea04106b
AX
7778 ;;
7779*)
cae5b340
AX
7780 lt_save_MAGIC_CMD="$MAGIC_CMD"
7781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
ea04106b
AX
7782 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7783 for ac_dir in $ac_dummy; do
cae5b340 7784 IFS="$lt_save_ifs"
ea04106b 7785 test -z "$ac_dir" && ac_dir=.
cae5b340
AX
7786 if test -f $ac_dir/file; then
7787 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ea04106b
AX
7788 if test -n "$file_magic_test_file"; then
7789 case $deplibs_check_method in
7790 "file_magic "*)
7791 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
cae5b340 7792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ea04106b
AX
7793 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7794 $EGREP "$file_magic_regex" > /dev/null; then
7795 :
7796 else
7797 cat <<_LT_EOF 1>&2
7798
7799*** Warning: the command libtool uses to detect shared libraries,
7800*** $file_magic_cmd, produces output that libtool cannot recognize.
7801*** The result is that libtool may fail to recognize shared libraries
7802*** as such. This will affect the creation of libtool libraries that
7803*** depend on shared libraries, but programs linked with such libtool
7804*** libraries will work regardless of this problem. Nevertheless, you
7805*** may want to report the problem to your system manager and/or to
7806*** bug-libtool@gnu.org
7807
7808_LT_EOF
7809 fi ;;
7810 esac
7811 fi
7812 break
7813 fi
7814 done
cae5b340
AX
7815 IFS="$lt_save_ifs"
7816 MAGIC_CMD="$lt_save_MAGIC_CMD"
ea04106b
AX
7817 ;;
7818esac
7819fi
7820
cae5b340 7821MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ea04106b 7822if test -n "$MAGIC_CMD"; then
cae5b340 7823 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
ea04106b
AX
7824$as_echo "$MAGIC_CMD" >&6; }
7825else
cae5b340 7826 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
7827$as_echo "no" >&6; }
7828fi
7829
7830
7831 else
7832 MAGIC_CMD=:
7833 fi
7834fi
7835
7836 fi
7837 ;;
7838esac
7839
7840# Use C for the default configuration in the libtool script
7841
cae5b340 7842lt_save_CC="$CC"
ea04106b
AX
7843ac_ext=c
7844ac_cpp='$CPP $CPPFLAGS'
7845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7847ac_compiler_gnu=$ac_cv_c_compiler_gnu
7848
7849
7850# Source file extension for C test sources.
7851ac_ext=c
7852
7853# Object file extension for compiled C test sources.
7854objext=o
7855objext=$objext
7856
7857# Code to be used in simple compile tests
7858lt_simple_compile_test_code="int some_variable = 0;"
7859
7860# Code to be used in simple link tests
7861lt_simple_link_test_code='int main(){return(0);}'
7862
7863
7864
7865
7866
7867
7868
7869# If no C compiler was specified, use CC.
7870LTCC=${LTCC-"$CC"}
7871
7872# If no C compiler flags were specified, use CFLAGS.
7873LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7874
7875# Allow CC to be a program name with arguments.
7876compiler=$CC
7877
7878# Save the default compiler, since it gets overwritten when the other
7879# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7880compiler_DEFAULT=$CC
7881
7882# save warnings/boilerplate of simple test code
7883ac_outfile=conftest.$ac_objext
7884echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7885eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7886_lt_compiler_boilerplate=`cat conftest.err`
7887$RM conftest*
7888
7889ac_outfile=conftest.$ac_objext
7890echo "$lt_simple_link_test_code" >conftest.$ac_ext
7891eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7892_lt_linker_boilerplate=`cat conftest.err`
7893$RM -r conftest*
7894
7895
7896## CAVEAT EMPTOR:
7897## There is no encapsulation within the following macros, do not change
7898## the running order or otherwise move them around unless you know exactly
7899## what you are doing...
7900if test -n "$compiler"; then
7901
7902lt_prog_compiler_no_builtin_flag=
7903
cae5b340
AX
7904if test "$GCC" = yes; then
7905 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
ea04106b 7906
cae5b340 7907 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
ea04106b 7908$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cae5b340 7909if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
ea04106b
AX
7910 $as_echo_n "(cached) " >&6
7911else
7912 lt_cv_prog_compiler_rtti_exceptions=no
7913 ac_outfile=conftest.$ac_objext
7914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cae5b340 7915 lt_compiler_flag="-fno-rtti -fno-exceptions"
ea04106b
AX
7916 # Insert the option either (1) after the last *FLAGS variable, or
7917 # (2) before a word containing "conftest.", or (3) at the end.
7918 # Note that $ac_compile itself does not contain backslashes and begins
7919 # with a dollar sign (not a hyphen), so the echo should work correctly.
7920 # The option is referenced via a variable to avoid confusing sed.
7921 lt_compile=`echo "$ac_compile" | $SED \
7922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7924 -e 's:$: $lt_compiler_flag:'`
cae5b340 7925 (eval echo "\"\$as_me:7925: $lt_compile\"" >&5)
ea04106b
AX
7926 (eval "$lt_compile" 2>conftest.err)
7927 ac_status=$?
7928 cat conftest.err >&5
cae5b340 7929 echo "$as_me:7929: \$? = $ac_status" >&5
ea04106b
AX
7930 if (exit $ac_status) && test -s "$ac_outfile"; then
7931 # The compiler can only warn and ignore the option if not recognized
7932 # So say no if there are warnings other than the usual output.
cae5b340 7933 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
ea04106b
AX
7934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7935 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7936 lt_cv_prog_compiler_rtti_exceptions=yes
7937 fi
7938 fi
7939 $RM conftest*
7940
7941fi
cae5b340 7942{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
ea04106b
AX
7943$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7944
cae5b340 7945if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
ea04106b
AX
7946 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7947else
7948 :
7949fi
7950
7951fi
7952
7953
7954
7955
7956
7957
7958 lt_prog_compiler_wl=
7959lt_prog_compiler_pic=
7960lt_prog_compiler_static=
7961
cae5b340
AX
7962{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7963$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
ea04106b 7964
cae5b340 7965 if test "$GCC" = yes; then
ea04106b
AX
7966 lt_prog_compiler_wl='-Wl,'
7967 lt_prog_compiler_static='-static'
7968
7969 case $host_os in
7970 aix*)
7971 # All AIX code is PIC.
cae5b340 7972 if test "$host_cpu" = ia64; then
ea04106b
AX
7973 # AIX 5 now supports IA64 processor
7974 lt_prog_compiler_static='-Bstatic'
7975 fi
7976 ;;
7977
7978 amigaos*)
7979 case $host_cpu in
7980 powerpc)
7981 # see comment about AmigaOS4 .so support
7982 lt_prog_compiler_pic='-fPIC'
7983 ;;
7984 m68k)
7985 # FIXME: we need at least 68020 code to build shared libraries, but
cae5b340
AX
7986 # adding the `-m68020' flag to GCC prevents building anything better,
7987 # like `-m68040'.
ea04106b
AX
7988 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7989 ;;
7990 esac
7991 ;;
7992
7993 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7994 # PIC is the default for these OSes.
7995 ;;
7996
7997 mingw* | cygwin* | pw32* | os2* | cegcc*)
7998 # This hack is so that the source file can tell whether it is being
7999 # built for inclusion in a dll (and should export symbols for example).
8000 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8001 # (--disable-auto-import) libraries
8002 lt_prog_compiler_pic='-DDLL_EXPORT'
8003 ;;
8004
8005 darwin* | rhapsody*)
8006 # PIC is the default on this platform
8007 # Common symbols not allowed in MH_DYLIB files
8008 lt_prog_compiler_pic='-fno-common'
8009 ;;
8010
ea04106b
AX
8011 hpux*)
8012 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8013 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8014 # sets the default TLS model and affects inlining.
8015 case $host_cpu in
8016 hppa*64*)
8017 # +Z the default
8018 ;;
8019 *)
8020 lt_prog_compiler_pic='-fPIC'
8021 ;;
8022 esac
8023 ;;
8024
8025 interix[3-9]*)
8026 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8027 # Instead, we relocate shared libraries at runtime.
8028 ;;
8029
8030 msdosdjgpp*)
8031 # Just because we use GCC doesn't mean we suddenly get shared libraries
8032 # on systems that don't support them.
8033 lt_prog_compiler_can_build_shared=no
8034 enable_shared=no
8035 ;;
8036
8037 *nto* | *qnx*)
8038 # QNX uses GNU C++, but need to define -shared option too, otherwise
8039 # it will coredump.
8040 lt_prog_compiler_pic='-fPIC -shared'
8041 ;;
8042
8043 sysv4*MP*)
8044 if test -d /usr/nec; then
8045 lt_prog_compiler_pic=-Kconform_pic
8046 fi
8047 ;;
8048
8049 *)
8050 lt_prog_compiler_pic='-fPIC'
8051 ;;
8052 esac
ea04106b
AX
8053 else
8054 # PORTME Check for flag to pass linker flags through the system compiler.
8055 case $host_os in
8056 aix*)
8057 lt_prog_compiler_wl='-Wl,'
cae5b340 8058 if test "$host_cpu" = ia64; then
ea04106b
AX
8059 # AIX 5 now supports IA64 processor
8060 lt_prog_compiler_static='-Bstatic'
8061 else
8062 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8063 fi
8064 ;;
8065
8066 mingw* | cygwin* | pw32* | os2* | cegcc*)
8067 # This hack is so that the source file can tell whether it is being
8068 # built for inclusion in a dll (and should export symbols for example).
8069 lt_prog_compiler_pic='-DDLL_EXPORT'
8070 ;;
8071
8072 hpux9* | hpux10* | hpux11*)
8073 lt_prog_compiler_wl='-Wl,'
8074 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8075 # not for PA HP-UX.
8076 case $host_cpu in
8077 hppa*64*|ia64*)
8078 # +Z the default
8079 ;;
8080 *)
8081 lt_prog_compiler_pic='+Z'
8082 ;;
8083 esac
8084 # Is there a better lt_prog_compiler_static that works with the bundled CC?
cae5b340 8085 lt_prog_compiler_static='${wl}-a ${wl}archive'
ea04106b
AX
8086 ;;
8087
8088 irix5* | irix6* | nonstopux*)
8089 lt_prog_compiler_wl='-Wl,'
8090 # PIC (with -KPIC) is the default.
8091 lt_prog_compiler_static='-non_shared'
8092 ;;
8093
cae5b340 8094 linux* | k*bsd*-gnu)
ea04106b 8095 case $cc_basename in
cae5b340 8096 # old Intel for x86_64 which still supported -KPIC.
ea04106b
AX
8097 ecc*)
8098 lt_prog_compiler_wl='-Wl,'
8099 lt_prog_compiler_pic='-KPIC'
8100 lt_prog_compiler_static='-static'
8101 ;;
8102 # icc used to be incompatible with GCC.
8103 # ICC 10 doesn't accept -KPIC any more.
8104 icc* | ifort*)
8105 lt_prog_compiler_wl='-Wl,'
8106 lt_prog_compiler_pic='-fPIC'
8107 lt_prog_compiler_static='-static'
8108 ;;
8109 # Lahey Fortran 8.1.
8110 lf95*)
8111 lt_prog_compiler_wl='-Wl,'
8112 lt_prog_compiler_pic='--shared'
8113 lt_prog_compiler_static='--static'
8114 ;;
cae5b340 8115 pgcc* | pgf77* | pgf90* | pgf95*)
ea04106b
AX
8116 # Portland Group compilers (*not* the Pentium gcc compiler,
8117 # which looks to be a dead project)
8118 lt_prog_compiler_wl='-Wl,'
8119 lt_prog_compiler_pic='-fpic'
8120 lt_prog_compiler_static='-Bstatic'
8121 ;;
8122 ccc*)
8123 lt_prog_compiler_wl='-Wl,'
8124 # All Alpha code is PIC.
8125 lt_prog_compiler_static='-non_shared'
8126 ;;
cae5b340
AX
8127 xl*)
8128 # IBM XL C 8.0/Fortran 10.1 on PPC
ea04106b
AX
8129 lt_prog_compiler_wl='-Wl,'
8130 lt_prog_compiler_pic='-qpic'
8131 lt_prog_compiler_static='-qstaticlink'
8132 ;;
8133 *)
8134 case `$CC -V 2>&1 | sed 5q` in
ea04106b
AX
8135 *Sun\ C*)
8136 # Sun C 5.9
8137 lt_prog_compiler_pic='-KPIC'
8138 lt_prog_compiler_static='-Bstatic'
8139 lt_prog_compiler_wl='-Wl,'
8140 ;;
cae5b340
AX
8141 *Sun\ F*)
8142 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8143 lt_prog_compiler_pic='-KPIC'
ea04106b 8144 lt_prog_compiler_static='-Bstatic'
cae5b340 8145 lt_prog_compiler_wl=''
ea04106b
AX
8146 ;;
8147 esac
8148 ;;
8149 esac
8150 ;;
8151
8152 newsos6)
8153 lt_prog_compiler_pic='-KPIC'
8154 lt_prog_compiler_static='-Bstatic'
8155 ;;
8156
8157 *nto* | *qnx*)
8158 # QNX uses GNU C++, but need to define -shared option too, otherwise
8159 # it will coredump.
8160 lt_prog_compiler_pic='-fPIC -shared'
8161 ;;
8162
8163 osf3* | osf4* | osf5*)
8164 lt_prog_compiler_wl='-Wl,'
8165 # All OSF/1 code is PIC.
8166 lt_prog_compiler_static='-non_shared'
8167 ;;
8168
8169 rdos*)
8170 lt_prog_compiler_static='-non_shared'
8171 ;;
8172
8173 solaris*)
8174 lt_prog_compiler_pic='-KPIC'
8175 lt_prog_compiler_static='-Bstatic'
8176 case $cc_basename in
cae5b340 8177 f77* | f90* | f95*)
ea04106b
AX
8178 lt_prog_compiler_wl='-Qoption ld ';;
8179 *)
8180 lt_prog_compiler_wl='-Wl,';;
8181 esac
8182 ;;
8183
8184 sunos4*)
8185 lt_prog_compiler_wl='-Qoption ld '
8186 lt_prog_compiler_pic='-PIC'
8187 lt_prog_compiler_static='-Bstatic'
8188 ;;
8189
8190 sysv4 | sysv4.2uw2* | sysv4.3*)
8191 lt_prog_compiler_wl='-Wl,'
8192 lt_prog_compiler_pic='-KPIC'
8193 lt_prog_compiler_static='-Bstatic'
8194 ;;
8195
8196 sysv4*MP*)
cae5b340 8197 if test -d /usr/nec ;then
ea04106b
AX
8198 lt_prog_compiler_pic='-Kconform_pic'
8199 lt_prog_compiler_static='-Bstatic'
8200 fi
8201 ;;
8202
8203 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8204 lt_prog_compiler_wl='-Wl,'
8205 lt_prog_compiler_pic='-KPIC'
8206 lt_prog_compiler_static='-Bstatic'
8207 ;;
8208
8209 unicos*)
8210 lt_prog_compiler_wl='-Wl,'
8211 lt_prog_compiler_can_build_shared=no
8212 ;;
8213
8214 uts4*)
8215 lt_prog_compiler_pic='-pic'
8216 lt_prog_compiler_static='-Bstatic'
8217 ;;
8218
8219 *)
8220 lt_prog_compiler_can_build_shared=no
8221 ;;
8222 esac
8223 fi
8224
8225case $host_os in
cae5b340 8226 # For platforms which do not support PIC, -DPIC is meaningless:
ea04106b
AX
8227 *djgpp*)
8228 lt_prog_compiler_pic=
8229 ;;
8230 *)
8231 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8232 ;;
8233esac
cae5b340
AX
8234{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8235$as_echo "$lt_prog_compiler_pic" >&6; }
8236
8237
8238
8239
ea04106b 8240
ea04106b
AX
8241
8242#
8243# Check to make sure the PIC flag actually works.
8244#
8245if test -n "$lt_prog_compiler_pic"; then
cae5b340 8246 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
ea04106b 8247$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cae5b340 8248if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
ea04106b
AX
8249 $as_echo_n "(cached) " >&6
8250else
8251 lt_cv_prog_compiler_pic_works=no
8252 ac_outfile=conftest.$ac_objext
8253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cae5b340 8254 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
ea04106b
AX
8255 # Insert the option either (1) after the last *FLAGS variable, or
8256 # (2) before a word containing "conftest.", or (3) at the end.
8257 # Note that $ac_compile itself does not contain backslashes and begins
8258 # with a dollar sign (not a hyphen), so the echo should work correctly.
8259 # The option is referenced via a variable to avoid confusing sed.
8260 lt_compile=`echo "$ac_compile" | $SED \
8261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8263 -e 's:$: $lt_compiler_flag:'`
cae5b340 8264 (eval echo "\"\$as_me:8264: $lt_compile\"" >&5)
ea04106b
AX
8265 (eval "$lt_compile" 2>conftest.err)
8266 ac_status=$?
8267 cat conftest.err >&5
cae5b340 8268 echo "$as_me:8268: \$? = $ac_status" >&5
ea04106b
AX
8269 if (exit $ac_status) && test -s "$ac_outfile"; then
8270 # The compiler can only warn and ignore the option if not recognized
8271 # So say no if there are warnings other than the usual output.
cae5b340 8272 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
ea04106b
AX
8273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8274 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8275 lt_cv_prog_compiler_pic_works=yes
8276 fi
8277 fi
8278 $RM conftest*
8279
8280fi
cae5b340 8281{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
ea04106b
AX
8282$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8283
cae5b340 8284if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ea04106b
AX
8285 case $lt_prog_compiler_pic in
8286 "" | " "*) ;;
8287 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8288 esac
8289else
8290 lt_prog_compiler_pic=
8291 lt_prog_compiler_can_build_shared=no
8292fi
8293
8294fi
8295
8296
8297
8298
8299
8300
ea04106b
AX
8301#
8302# Check to make sure the static flag actually works.
8303#
8304wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cae5b340 8305{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
ea04106b 8306$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cae5b340 8307if test "${lt_cv_prog_compiler_static_works+set}" = set; then
ea04106b
AX
8308 $as_echo_n "(cached) " >&6
8309else
8310 lt_cv_prog_compiler_static_works=no
cae5b340 8311 save_LDFLAGS="$LDFLAGS"
ea04106b
AX
8312 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8313 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8314 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8315 # The linker can only warn and ignore the option if not recognized
8316 # So say no if there are warnings
8317 if test -s conftest.err; then
8318 # Append any errors to the config.log.
8319 cat conftest.err 1>&5
cae5b340 8320 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
ea04106b
AX
8321 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8322 if diff conftest.exp conftest.er2 >/dev/null; then
8323 lt_cv_prog_compiler_static_works=yes
8324 fi
8325 else
8326 lt_cv_prog_compiler_static_works=yes
8327 fi
8328 fi
8329 $RM -r conftest*
cae5b340 8330 LDFLAGS="$save_LDFLAGS"
ea04106b
AX
8331
8332fi
cae5b340 8333{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
ea04106b
AX
8334$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8335
cae5b340 8336if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ea04106b
AX
8337 :
8338else
8339 lt_prog_compiler_static=
8340fi
8341
8342
8343
8344
8345
8346
8347
cae5b340 8348 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
ea04106b 8349$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cae5b340 8350if test "${lt_cv_prog_compiler_c_o+set}" = set; then
ea04106b
AX
8351 $as_echo_n "(cached) " >&6
8352else
8353 lt_cv_prog_compiler_c_o=no
8354 $RM -r conftest 2>/dev/null
8355 mkdir conftest
8356 cd conftest
8357 mkdir out
8358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8359
8360 lt_compiler_flag="-o out/conftest2.$ac_objext"
8361 # Insert the option either (1) after the last *FLAGS variable, or
8362 # (2) before a word containing "conftest.", or (3) at the end.
8363 # Note that $ac_compile itself does not contain backslashes and begins
8364 # with a dollar sign (not a hyphen), so the echo should work correctly.
8365 lt_compile=`echo "$ac_compile" | $SED \
8366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8368 -e 's:$: $lt_compiler_flag:'`
cae5b340 8369 (eval echo "\"\$as_me:8369: $lt_compile\"" >&5)
ea04106b
AX
8370 (eval "$lt_compile" 2>out/conftest.err)
8371 ac_status=$?
8372 cat out/conftest.err >&5
cae5b340 8373 echo "$as_me:8373: \$? = $ac_status" >&5
ea04106b
AX
8374 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8375 then
8376 # The compiler can only warn and ignore the option if not recognized
8377 # So say no if there are warnings
cae5b340 8378 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
ea04106b
AX
8379 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8380 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8381 lt_cv_prog_compiler_c_o=yes
8382 fi
8383 fi
8384 chmod u+w . 2>&5
8385 $RM conftest*
8386 # SGI C++ compiler will create directory out/ii_files/ for
8387 # template instantiation
8388 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8389 $RM out/* && rmdir out
8390 cd ..
8391 $RM -r conftest
8392 $RM conftest*
8393
8394fi
cae5b340 8395{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
ea04106b
AX
8396$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8397
8398
8399
8400
8401
8402
cae5b340 8403 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
ea04106b 8404$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cae5b340 8405if test "${lt_cv_prog_compiler_c_o+set}" = set; then
ea04106b
AX
8406 $as_echo_n "(cached) " >&6
8407else
8408 lt_cv_prog_compiler_c_o=no
8409 $RM -r conftest 2>/dev/null
8410 mkdir conftest
8411 cd conftest
8412 mkdir out
8413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8414
8415 lt_compiler_flag="-o out/conftest2.$ac_objext"
8416 # Insert the option either (1) after the last *FLAGS variable, or
8417 # (2) before a word containing "conftest.", or (3) at the end.
8418 # Note that $ac_compile itself does not contain backslashes and begins
8419 # with a dollar sign (not a hyphen), so the echo should work correctly.
8420 lt_compile=`echo "$ac_compile" | $SED \
8421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8423 -e 's:$: $lt_compiler_flag:'`
cae5b340 8424 (eval echo "\"\$as_me:8424: $lt_compile\"" >&5)
ea04106b
AX
8425 (eval "$lt_compile" 2>out/conftest.err)
8426 ac_status=$?
8427 cat out/conftest.err >&5
cae5b340 8428 echo "$as_me:8428: \$? = $ac_status" >&5
ea04106b
AX
8429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8430 then
8431 # The compiler can only warn and ignore the option if not recognized
8432 # So say no if there are warnings
cae5b340 8433 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
ea04106b
AX
8434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8436 lt_cv_prog_compiler_c_o=yes
8437 fi
8438 fi
8439 chmod u+w . 2>&5
8440 $RM conftest*
8441 # SGI C++ compiler will create directory out/ii_files/ for
8442 # template instantiation
8443 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8444 $RM out/* && rmdir out
8445 cd ..
8446 $RM -r conftest
8447 $RM conftest*
8448
8449fi
cae5b340 8450{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
ea04106b
AX
8451$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8452
8453
8454
8455
cae5b340
AX
8456hard_links="nottested"
8457if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
ea04106b 8458 # do not overwrite the value of need_locks provided by the user
cae5b340 8459 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
ea04106b
AX
8460$as_echo_n "checking if we can lock with hard links... " >&6; }
8461 hard_links=yes
8462 $RM conftest*
8463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8464 touch conftest.a
8465 ln conftest.a conftest.b 2>&5 || hard_links=no
8466 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cae5b340 8467 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
ea04106b 8468$as_echo "$hard_links" >&6; }
cae5b340
AX
8469 if test "$hard_links" = no; then
8470 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8471$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ea04106b
AX
8472 need_locks=warn
8473 fi
8474else
8475 need_locks=no
8476fi
8477
8478
8479
8480
8481
8482
cae5b340 8483 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
ea04106b
AX
8484$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8485
8486 runpath_var=
8487 allow_undefined_flag=
8488 always_export_symbols=no
8489 archive_cmds=
8490 archive_expsym_cmds=
8491 compiler_needs_object=no
8492 enable_shared_with_static_runtimes=no
8493 export_dynamic_flag_spec=
8494 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8495 hardcode_automatic=no
8496 hardcode_direct=no
8497 hardcode_direct_absolute=no
8498 hardcode_libdir_flag_spec=
cae5b340 8499 hardcode_libdir_flag_spec_ld=
ea04106b
AX
8500 hardcode_libdir_separator=
8501 hardcode_minus_L=no
8502 hardcode_shlibpath_var=unsupported
8503 inherit_rpath=no
8504 link_all_deplibs=unknown
8505 module_cmds=
8506 module_expsym_cmds=
8507 old_archive_from_new_cmds=
8508 old_archive_from_expsyms_cmds=
8509 thread_safe_flag_spec=
8510 whole_archive_flag_spec=
8511 # include_expsyms should be a list of space-separated symbols to be *always*
8512 # included in the symbol list
8513 include_expsyms=
8514 # exclude_expsyms can be an extended regexp of symbols to exclude
cae5b340
AX
8515 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8516 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8517 # as well as any symbol that contains `d'.
ea04106b
AX
8518 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8519 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8520 # platforms (ab)use it in PIC code, but their linkers get confused if
8521 # the symbol is explicitly referenced. Since portable code cannot
8522 # rely on this symbol name, it's probably fine to never include it in
8523 # preloaded symbol tables.
8524 # Exclude shared library initialization/finalization symbols.
8525 extract_expsyms_cmds=
8526
8527 case $host_os in
8528 cygwin* | mingw* | pw32* | cegcc*)
8529 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8530 # When not using gcc, we currently assume that we are using
8531 # Microsoft Visual C++.
cae5b340 8532 if test "$GCC" != yes; then
ea04106b
AX
8533 with_gnu_ld=no
8534 fi
8535 ;;
8536 interix*)
8537 # we just hope/assume this is gcc and not c89 (= MSVC++)
8538 with_gnu_ld=yes
8539 ;;
cae5b340 8540 openbsd*)
ea04106b
AX
8541 with_gnu_ld=no
8542 ;;
ea04106b
AX
8543 esac
8544
8545 ld_shlibs=yes
cae5b340 8546 if test "$with_gnu_ld" = yes; then
ea04106b 8547 # If archive_cmds runs LD, not CC, wlarc should be empty
cae5b340 8548 wlarc='${wl}'
ea04106b
AX
8549
8550 # Set some defaults for GNU ld with shared library support. These
8551 # are reset later if shared libraries are not supported. Putting them
8552 # here allows them to be overridden if necessary.
8553 runpath_var=LD_RUN_PATH
cae5b340
AX
8554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8555 export_dynamic_flag_spec='${wl}--export-dynamic'
ea04106b
AX
8556 # ancient GNU ld didn't support --whole-archive et. al.
8557 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
cae5b340 8558 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
ea04106b
AX
8559 else
8560 whole_archive_flag_spec=
8561 fi
8562 supports_anon_versioning=no
cae5b340 8563 case `$LD -v 2>&1` in
ea04106b
AX
8564 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8565 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8566 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8567 *\ 2.11.*) ;; # other 2.11 versions
8568 *) supports_anon_versioning=yes ;;
8569 esac
8570
8571 # See if GNU ld supports shared libraries.
8572 case $host_os in
8573 aix[3-9]*)
8574 # On AIX/PPC, the GNU linker is very broken
cae5b340 8575 if test "$host_cpu" != ia64; then
ea04106b
AX
8576 ld_shlibs=no
8577 cat <<_LT_EOF 1>&2
8578
cae5b340 8579*** Warning: the GNU linker, at least up to release 2.9.1, is reported
ea04106b
AX
8580*** to be unable to reliably create shared libraries on AIX.
8581*** Therefore, libtool is disabling shared libraries support. If you
cae5b340
AX
8582*** really care for shared libraries, you may want to modify your PATH
8583*** so that a non-GNU linker is found, and then restart.
ea04106b
AX
8584
8585_LT_EOF
8586 fi
8587 ;;
8588
8589 amigaos*)
8590 case $host_cpu in
8591 powerpc)
8592 # see comment about AmigaOS4 .so support
cae5b340 8593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
ea04106b
AX
8594 archive_expsym_cmds=''
8595 ;;
8596 m68k)
8597 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)'
8598 hardcode_libdir_flag_spec='-L$libdir'
8599 hardcode_minus_L=yes
8600 ;;
8601 esac
8602 ;;
8603
8604 beos*)
8605 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8606 allow_undefined_flag=unsupported
8607 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8608 # support --undefined. This deserves some investigation. FIXME
cae5b340 8609 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
ea04106b
AX
8610 else
8611 ld_shlibs=no
8612 fi
8613 ;;
8614
8615 cygwin* | mingw* | pw32* | cegcc*)
8616 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8617 # as there is no search path for DLLs.
8618 hardcode_libdir_flag_spec='-L$libdir'
ea04106b
AX
8619 allow_undefined_flag=unsupported
8620 always_export_symbols=no
8621 enable_shared_with_static_runtimes=yes
cae5b340 8622 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
8623
8624 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
cae5b340
AX
8625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8626 # If the export-symbols file already is a .def file (1st line
8627 # is EXPORTS), use it as is; otherwise, prepend...
8628 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8629 cp $export_symbols $output_objdir/$soname.def;
8630 else
8631 echo EXPORTS > $output_objdir/$soname.def;
8632 cat $export_symbols >> $output_objdir/$soname.def;
8633 fi~
8634 $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
8635 else
8636 ld_shlibs=no
8637 fi
8638 ;;
8639
ea04106b
AX
8640 interix[3-9]*)
8641 hardcode_direct=no
8642 hardcode_shlibpath_var=no
cae5b340
AX
8643 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8644 export_dynamic_flag_spec='${wl}-E'
ea04106b
AX
8645 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8646 # Instead, shared libraries are loaded at an image base (0x10000000 by
8647 # default) and relocated if they conflict, which is a slow very memory
8648 # consuming and fragmenting process. To avoid this, we pick a random,
8649 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8650 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
cae5b340
AX
8651 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8652 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
8653 ;;
8654
cae5b340 8655 gnu* | linux* | tpf* | k*bsd*-gnu)
ea04106b 8656 tmp_diet=no
cae5b340 8657 if test "$host_os" = linux-dietlibc; then
ea04106b
AX
8658 case $cc_basename in
8659 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8660 esac
8661 fi
8662 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
cae5b340 8663 && test "$tmp_diet" = no
ea04106b 8664 then
cae5b340 8665 tmp_addflag=
ea04106b
AX
8666 tmp_sharedflag='-shared'
8667 case $cc_basename,$host_cpu in
8668 pgcc*) # Portland Group C compiler
cae5b340 8669 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
8670 tmp_addflag=' $pic_flag'
8671 ;;
cae5b340
AX
8672 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8673 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
8674 tmp_addflag=' $pic_flag -Mnomain' ;;
8675 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8676 tmp_addflag=' -i_dynamic' ;;
8677 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8678 tmp_addflag=' -i_dynamic -nofor_main' ;;
8679 ifc* | ifort*) # Intel Fortran compiler
8680 tmp_addflag=' -nofor_main' ;;
8681 lf95*) # Lahey Fortran 8.1
8682 whole_archive_flag_spec=
8683 tmp_sharedflag='--shared' ;;
cae5b340 8684 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
ea04106b
AX
8685 tmp_sharedflag='-qmkshrobj'
8686 tmp_addflag= ;;
ea04106b
AX
8687 esac
8688 case `$CC -V 2>&1 | sed 5q` in
8689 *Sun\ C*) # Sun C 5.9
cae5b340 8690 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
8691 compiler_needs_object=yes
8692 tmp_sharedflag='-G' ;;
8693 *Sun\ F*) # Sun Fortran 8.3
8694 tmp_sharedflag='-G' ;;
8695 esac
cae5b340 8696 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
ea04106b 8697
cae5b340 8698 if test "x$supports_anon_versioning" = xyes; then
ea04106b 8699 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cae5b340
AX
8700 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8701 echo "local: *; };" >> $output_objdir/$libname.ver~
8702 $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
8703 fi
8704
8705 case $cc_basename in
cae5b340 8706 xlf*)
ea04106b
AX
8707 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8708 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cae5b340
AX
8709 hardcode_libdir_flag_spec=
8710 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8711 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8712 if test "x$supports_anon_versioning" = xyes; then
ea04106b 8713 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cae5b340
AX
8714 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8715 echo "local: *; };" >> $output_objdir/$libname.ver~
8716 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
ea04106b
AX
8717 fi
8718 ;;
8719 esac
8720 else
8721 ld_shlibs=no
8722 fi
8723 ;;
8724
22929307 8725 netbsd*)
ea04106b
AX
8726 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8727 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8728 wlarc=
8729 else
cae5b340
AX
8730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8731 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ea04106b
AX
8732 fi
8733 ;;
8734
8735 solaris*)
8736 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8737 ld_shlibs=no
8738 cat <<_LT_EOF 1>&2
8739
8740*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8741*** create shared libraries on Solaris systems. Therefore, libtool
8742*** is disabling shared libraries support. We urge you to upgrade GNU
8743*** binutils to release 2.9.1 or newer. Another option is to modify
8744*** your PATH or compiler configuration so that the native linker is
8745*** used, and then restart.
8746
8747_LT_EOF
8748 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cae5b340
AX
8749 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8750 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ea04106b
AX
8751 else
8752 ld_shlibs=no
8753 fi
8754 ;;
8755
8756 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8757 case `$LD -v 2>&1` in
8758 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8759 ld_shlibs=no
8760 cat <<_LT_EOF 1>&2
8761
cae5b340 8762*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
ea04106b
AX
8763*** reliably create shared libraries on SCO systems. Therefore, libtool
8764*** is disabling shared libraries support. We urge you to upgrade GNU
8765*** binutils to release 2.16.91.0.3 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 ;;
8771 *)
8772 # For security reasons, it is highly recommended that you always
8773 # use absolute paths for naming shared libraries, and exclude the
8774 # DT_RUNPATH tag from executables and libraries. But doing so
8775 # requires that you compile everything twice, which is a pain.
8776 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cae5b340
AX
8777 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8779 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ea04106b
AX
8780 else
8781 ld_shlibs=no
8782 fi
8783 ;;
8784 esac
8785 ;;
8786
8787 sunos4*)
8788 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8789 wlarc=
8790 hardcode_direct=yes
8791 hardcode_shlibpath_var=no
8792 ;;
8793
8794 *)
8795 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cae5b340
AX
8796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8797 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ea04106b
AX
8798 else
8799 ld_shlibs=no
8800 fi
8801 ;;
8802 esac
8803
cae5b340 8804 if test "$ld_shlibs" = no; then
ea04106b
AX
8805 runpath_var=
8806 hardcode_libdir_flag_spec=
8807 export_dynamic_flag_spec=
8808 whole_archive_flag_spec=
8809 fi
8810 else
8811 # PORTME fill in a description of your system's linker (not GNU ld)
8812 case $host_os in
8813 aix3*)
8814 allow_undefined_flag=unsupported
8815 always_export_symbols=yes
8816 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'
8817 # Note: this linker hardcodes the directories in LIBPATH if there
8818 # are no directories specified by -L.
8819 hardcode_minus_L=yes
cae5b340 8820 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
ea04106b
AX
8821 # Neither direct hardcoding nor static linking is supported with a
8822 # broken collect2.
8823 hardcode_direct=unsupported
8824 fi
8825 ;;
8826
8827 aix[4-9]*)
cae5b340 8828 if test "$host_cpu" = ia64; then
ea04106b
AX
8829 # On IA64, the linker does run time linking by default, so we don't
8830 # have to do anything special.
8831 aix_use_runtimelinking=no
8832 exp_sym_flag='-Bexport'
cae5b340 8833 no_entry_flag=""
ea04106b
AX
8834 else
8835 # If we're using GNU nm, then we don't want the "-C" option.
cae5b340 8836 # -C means demangle to AIX nm, but means don't demangle with GNU nm
ea04106b 8837 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cae5b340 8838 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 8839 else
cae5b340 8840 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
8841 fi
8842 aix_use_runtimelinking=no
8843
8844 # Test if we are trying to use run time linking or normal
8845 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cae5b340 8846 # need to do runtime linking.
ea04106b
AX
8847 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8848 for ld_flag in $LDFLAGS; do
cae5b340 8849 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
ea04106b
AX
8850 aix_use_runtimelinking=yes
8851 break
8852 fi
8853 done
8854 ;;
8855 esac
8856
8857 exp_sym_flag='-bexport'
8858 no_entry_flag='-bnoentry'
8859 fi
8860
8861 # When large executables or shared objects are built, AIX ld can
8862 # have problems creating the table of contents. If linking a library
8863 # or program results in "error TOC overflow" add -mminimal-toc to
8864 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8865 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8866
8867 archive_cmds=''
8868 hardcode_direct=yes
8869 hardcode_direct_absolute=yes
8870 hardcode_libdir_separator=':'
8871 link_all_deplibs=yes
cae5b340 8872 file_list_spec='${wl}-f,'
ea04106b 8873
cae5b340 8874 if test "$GCC" = yes; then
ea04106b
AX
8875 case $host_os in aix4.[012]|aix4.[012].*)
8876 # We only want to do this on AIX 4.2 and lower, the check
8877 # below for broken collect2 doesn't work under 4.3+
cae5b340 8878 collect2name=`${CC} -print-prog-name=collect2`
ea04106b
AX
8879 if test -f "$collect2name" &&
8880 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8881 then
8882 # We have reworked collect2
8883 :
8884 else
8885 # We have old collect2
8886 hardcode_direct=unsupported
8887 # It fails to find uninstalled libraries when the uninstalled
8888 # path is not listed in the libpath. Setting hardcode_minus_L
8889 # to unsupported forces relinking
8890 hardcode_minus_L=yes
8891 hardcode_libdir_flag_spec='-L$libdir'
8892 hardcode_libdir_separator=
8893 fi
8894 ;;
8895 esac
8896 shared_flag='-shared'
cae5b340
AX
8897 if test "$aix_use_runtimelinking" = yes; then
8898 shared_flag="$shared_flag "'${wl}-G'
ea04106b 8899 fi
ea04106b
AX
8900 else
8901 # not using gcc
cae5b340 8902 if test "$host_cpu" = ia64; then
ea04106b
AX
8903 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8904 # chokes on -Wl,-G. The following line is correct:
8905 shared_flag='-G'
8906 else
cae5b340
AX
8907 if test "$aix_use_runtimelinking" = yes; then
8908 shared_flag='${wl}-G'
ea04106b 8909 else
cae5b340 8910 shared_flag='${wl}-bM:SRE'
ea04106b
AX
8911 fi
8912 fi
8913 fi
8914
cae5b340 8915 export_dynamic_flag_spec='${wl}-bexpall'
ea04106b
AX
8916 # It seems that -bexpall does not export symbols beginning with
8917 # underscore (_), so it is better to generate a list of symbols to export.
8918 always_export_symbols=yes
cae5b340 8919 if test "$aix_use_runtimelinking" = yes; then
ea04106b
AX
8920 # Warning - without using the other runtime loading flags (-brtl),
8921 # -berok will link without error, but may produce a broken library.
8922 allow_undefined_flag='-berok'
8923 # Determine the default libpath from the value encoded in an
8924 # empty executable.
cae5b340
AX
8925 cat >conftest.$ac_ext <<_ACEOF
8926/* confdefs.h. */
8927_ACEOF
8928cat confdefs.h >>conftest.$ac_ext
8929cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
8930/* end confdefs.h. */
8931
8932int
8933main ()
8934{
8935
8936 ;
8937 return 0;
8938}
8939_ACEOF
cae5b340
AX
8940rm -f conftest.$ac_objext conftest$ac_exeext
8941if { (ac_try="$ac_link"
8942case "(($ac_try" in
8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944 *) ac_try_echo=$ac_try;;
8945esac
8946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8947$as_echo "$ac_try_echo") >&5
8948 (eval "$ac_link") 2>conftest.er1
8949 ac_status=$?
8950 grep -v '^ *+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
8953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } && {
8955 test -z "$ac_c_werror_flag" ||
8956 test ! -s conftest.err
8957 } && test -s conftest$ac_exeext && {
8958 test "$cross_compiling" = yes ||
8959 $as_test_x conftest$ac_exeext
8960 }; then
8961
8962lt_aix_libpath_sed='
8963 /Import File Strings/,/^$/ {
8964 /^0/ {
8965 s/^0 *\(.*\)$/\1/
8966 p
8967 }
8968 }'
8969aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8970# Check for a 64-bit object if we didn't find anything.
8971if test -z "$aix_libpath"; then
8972 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
ea04106b 8973fi
cae5b340
AX
8974else
8975 $as_echo "$as_me: failed program was:" >&5
8976sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 8977
ea04106b 8978
ea04106b
AX
8979fi
8980
cae5b340
AX
8981rm -rf conftest.dSYM
8982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8983 conftest$ac_exeext conftest.$ac_ext
8984if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8985
8986 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8987 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 8988 else
cae5b340
AX
8989 if test "$host_cpu" = ia64; then
8990 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
ea04106b 8991 allow_undefined_flag="-z nodefs"
cae5b340 8992 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
8993 else
8994 # Determine the default libpath from the value encoded in an
8995 # empty executable.
cae5b340
AX
8996 cat >conftest.$ac_ext <<_ACEOF
8997/* confdefs.h. */
8998_ACEOF
8999cat confdefs.h >>conftest.$ac_ext
9000cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
9001/* end confdefs.h. */
9002
9003int
9004main ()
9005{
9006
9007 ;
9008 return 0;
9009}
9010_ACEOF
cae5b340
AX
9011rm -f conftest.$ac_objext conftest$ac_exeext
9012if { (ac_try="$ac_link"
9013case "(($ac_try" in
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9016esac
9017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9018$as_echo "$ac_try_echo") >&5
9019 (eval "$ac_link") 2>conftest.er1
9020 ac_status=$?
9021 grep -v '^ *+' conftest.er1 >conftest.err
9022 rm -f conftest.er1
9023 cat conftest.err >&5
9024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } && {
9026 test -z "$ac_c_werror_flag" ||
9027 test ! -s conftest.err
9028 } && test -s conftest$ac_exeext && {
9029 test "$cross_compiling" = yes ||
9030 $as_test_x conftest$ac_exeext
9031 }; then
9032
9033lt_aix_libpath_sed='
9034 /Import File Strings/,/^$/ {
9035 /^0/ {
9036 s/^0 *\(.*\)$/\1/
9037 p
9038 }
9039 }'
9040aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9041# Check for a 64-bit object if we didn't find anything.
9042if test -z "$aix_libpath"; then
9043 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
ea04106b 9044fi
cae5b340
AX
9045else
9046 $as_echo "$as_me: failed program was:" >&5
9047sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 9048
ea04106b 9049
ea04106b
AX
9050fi
9051
cae5b340
AX
9052rm -rf conftest.dSYM
9053rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9054 conftest$ac_exeext conftest.$ac_ext
9055if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9056
9057 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
ea04106b
AX
9058 # Warning - without using the other run time loading flags,
9059 # -berok will link without error, but may produce a broken library.
cae5b340
AX
9060 no_undefined_flag=' ${wl}-bernotok'
9061 allow_undefined_flag=' ${wl}-berok'
9062 # Exported symbols can be pulled into shared objects from archives
9063 whole_archive_flag_spec='$convenience'
ea04106b 9064 archive_cmds_need_lc=yes
cae5b340
AX
9065 # This is similar to how AIX traditionally builds its shared libraries.
9066 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
9067 fi
9068 fi
9069 ;;
9070
9071 amigaos*)
9072 case $host_cpu in
9073 powerpc)
9074 # see comment about AmigaOS4 .so support
cae5b340 9075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
ea04106b
AX
9076 archive_expsym_cmds=''
9077 ;;
9078 m68k)
9079 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)'
9080 hardcode_libdir_flag_spec='-L$libdir'
9081 hardcode_minus_L=yes
9082 ;;
9083 esac
9084 ;;
9085
9086 bsdi[45]*)
9087 export_dynamic_flag_spec=-rdynamic
9088 ;;
9089
9090 cygwin* | mingw* | pw32* | cegcc*)
9091 # When not using gcc, we currently assume that we are using
9092 # Microsoft Visual C++.
9093 # hardcode_libdir_flag_spec is actually meaningless, as there is
9094 # no search path for DLLs.
cae5b340
AX
9095 hardcode_libdir_flag_spec=' '
9096 allow_undefined_flag=unsupported
9097 # Tell ltmain to make .lib files, not .a files.
9098 libext=lib
9099 # Tell ltmain to make .dll files, not .so files.
9100 shrext_cmds=".dll"
9101 # FIXME: Setting linknames here is a bad hack.
9102 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9103 # The linker will automatically build a .lib file if we build a DLL.
9104 old_archive_from_new_cmds='true'
9105 # FIXME: Should let the user specify the lib program.
9106 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9107 fix_srcfile_path='`cygpath -w "$srcfile"`'
9108 enable_shared_with_static_runtimes=yes
ea04106b
AX
9109 ;;
9110
9111 darwin* | rhapsody*)
9112
9113
9114 archive_cmds_need_lc=no
9115 hardcode_direct=no
9116 hardcode_automatic=yes
9117 hardcode_shlibpath_var=unsupported
cae5b340 9118 whole_archive_flag_spec=''
ea04106b 9119 link_all_deplibs=yes
cae5b340 9120 allow_undefined_flag="$_lt_dar_allow_undefined"
ea04106b 9121 case $cc_basename in
cae5b340 9122 ifort*) _lt_dar_can_shared=yes ;;
ea04106b
AX
9123 *) _lt_dar_can_shared=$GCC ;;
9124 esac
cae5b340
AX
9125 if test "$_lt_dar_can_shared" = "yes"; then
9126 output_verbose_link_cmd=echo
9127 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9128 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9129 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}"
9130 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
9131
9132 else
9133 ld_shlibs=no
9134 fi
9135
9136 ;;
9137
9138 dgux*)
9139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9140 hardcode_libdir_flag_spec='-L$libdir'
9141 hardcode_shlibpath_var=no
9142 ;;
9143
cae5b340
AX
9144 freebsd1*)
9145 ld_shlibs=no
9146 ;;
9147
ea04106b
AX
9148 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9149 # support. Future versions do this automatically, but an explicit c++rt0.o
9150 # does not break anything, and helps significantly (at the cost of a little
9151 # extra space).
9152 freebsd2.2*)
9153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9154 hardcode_libdir_flag_spec='-R$libdir'
9155 hardcode_direct=yes
9156 hardcode_shlibpath_var=no
9157 ;;
9158
9159 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cae5b340 9160 freebsd2*)
ea04106b
AX
9161 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9162 hardcode_direct=yes
9163 hardcode_minus_L=yes
9164 hardcode_shlibpath_var=no
9165 ;;
9166
9167 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9168 freebsd* | dragonfly*)
cae5b340 9169 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9170 hardcode_libdir_flag_spec='-R$libdir'
9171 hardcode_direct=yes
9172 hardcode_shlibpath_var=no
9173 ;;
9174
9175 hpux9*)
cae5b340
AX
9176 if test "$GCC" = yes; then
9177 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 9178 else
cae5b340 9179 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 9180 fi
cae5b340 9181 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
ea04106b
AX
9182 hardcode_libdir_separator=:
9183 hardcode_direct=yes
9184
9185 # hardcode_minus_L: Not really in the search PATH,
9186 # but as the default location of the library.
9187 hardcode_minus_L=yes
cae5b340 9188 export_dynamic_flag_spec='${wl}-E'
ea04106b
AX
9189 ;;
9190
9191 hpux10*)
cae5b340
AX
9192 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9193 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9194 else
9195 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9196 fi
cae5b340
AX
9197 if test "$with_gnu_ld" = no; then
9198 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9199 hardcode_libdir_flag_spec_ld='+b $libdir'
ea04106b
AX
9200 hardcode_libdir_separator=:
9201 hardcode_direct=yes
9202 hardcode_direct_absolute=yes
cae5b340 9203 export_dynamic_flag_spec='${wl}-E'
ea04106b
AX
9204 # hardcode_minus_L: Not really in the search PATH,
9205 # but as the default location of the library.
9206 hardcode_minus_L=yes
9207 fi
9208 ;;
9209
9210 hpux11*)
cae5b340 9211 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
ea04106b
AX
9212 case $host_cpu in
9213 hppa*64*)
cae5b340 9214 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9215 ;;
9216 ia64*)
cae5b340 9217 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9218 ;;
9219 *)
cae5b340 9220 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9221 ;;
9222 esac
9223 else
9224 case $host_cpu in
9225 hppa*64*)
cae5b340 9226 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9227 ;;
9228 ia64*)
cae5b340 9229 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9230 ;;
9231 *)
cae5b340 9232 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9233 ;;
9234 esac
9235 fi
cae5b340
AX
9236 if test "$with_gnu_ld" = no; then
9237 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
ea04106b
AX
9238 hardcode_libdir_separator=:
9239
9240 case $host_cpu in
9241 hppa*64*|ia64*)
9242 hardcode_direct=no
9243 hardcode_shlibpath_var=no
9244 ;;
9245 *)
9246 hardcode_direct=yes
9247 hardcode_direct_absolute=yes
cae5b340 9248 export_dynamic_flag_spec='${wl}-E'
ea04106b
AX
9249
9250 # hardcode_minus_L: Not really in the search PATH,
9251 # but as the default location of the library.
9252 hardcode_minus_L=yes
9253 ;;
9254 esac
9255 fi
9256 ;;
9257
9258 irix5* | irix6* | nonstopux*)
cae5b340
AX
9259 if test "$GCC" = yes; then
9260 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
9261 # Try to use the -exported_symbol ld option, if it does not
9262 # work, assume that -exports_file does not work either and
9263 # implicitly export all symbols.
cae5b340
AX
9264 save_LDFLAGS="$LDFLAGS"
9265 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9266 cat >conftest.$ac_ext <<_ACEOF
9267int foo(void) {}
ea04106b 9268_ACEOF
cae5b340
AX
9269rm -f conftest.$ac_objext conftest$ac_exeext
9270if { (ac_try="$ac_link"
9271case "(($ac_try" in
9272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9274esac
9275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9276$as_echo "$ac_try_echo") >&5
9277 (eval "$ac_link") 2>conftest.er1
9278 ac_status=$?
9279 grep -v '^ *+' conftest.er1 >conftest.err
9280 rm -f conftest.er1
9281 cat conftest.err >&5
9282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } && {
9284 test -z "$ac_c_werror_flag" ||
9285 test ! -s conftest.err
9286 } && test -s conftest$ac_exeext && {
9287 test "$cross_compiling" = yes ||
9288 $as_test_x conftest$ac_exeext
9289 }; then
9290 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'
9291
ea04106b 9292else
cae5b340
AX
9293 $as_echo "$as_me: failed program was:" >&5
9294sed 's/^/| /' conftest.$ac_ext >&5
9295
9296
ea04106b 9297fi
cae5b340
AX
9298
9299rm -rf conftest.dSYM
9300rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9301 conftest$ac_exeext conftest.$ac_ext
9302 LDFLAGS="$save_LDFLAGS"
ea04106b 9303 else
cae5b340
AX
9304 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'
9305 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
9306 fi
9307 archive_cmds_need_lc='no'
cae5b340 9308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
ea04106b
AX
9309 hardcode_libdir_separator=:
9310 inherit_rpath=yes
9311 link_all_deplibs=yes
9312 ;;
9313
22929307 9314 netbsd*)
ea04106b
AX
9315 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9317 else
9318 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9319 fi
9320 hardcode_libdir_flag_spec='-R$libdir'
9321 hardcode_direct=yes
9322 hardcode_shlibpath_var=no
9323 ;;
9324
9325 newsos6)
9326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9327 hardcode_direct=yes
cae5b340 9328 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
ea04106b
AX
9329 hardcode_libdir_separator=:
9330 hardcode_shlibpath_var=no
9331 ;;
9332
9333 *nto* | *qnx*)
9334 ;;
9335
cae5b340 9336 openbsd*)
ea04106b
AX
9337 if test -f /usr/libexec/ld.so; then
9338 hardcode_direct=yes
9339 hardcode_shlibpath_var=no
9340 hardcode_direct_absolute=yes
cae5b340 9341 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ea04106b 9342 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cae5b340
AX
9343 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9344 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9345 export_dynamic_flag_spec='${wl}-E'
ea04106b 9346 else
cae5b340
AX
9347 case $host_os in
9348 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9350 hardcode_libdir_flag_spec='-R$libdir'
9351 ;;
9352 *)
9353 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9354 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9355 ;;
9356 esac
ea04106b
AX
9357 fi
9358 else
9359 ld_shlibs=no
9360 fi
9361 ;;
9362
9363 os2*)
9364 hardcode_libdir_flag_spec='-L$libdir'
9365 hardcode_minus_L=yes
9366 allow_undefined_flag=unsupported
cae5b340
AX
9367 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'
9368 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
ea04106b
AX
9369 ;;
9370
9371 osf3*)
cae5b340
AX
9372 if test "$GCC" = yes; then
9373 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9374 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
9375 else
9376 allow_undefined_flag=' -expect_unresolved \*'
cae5b340 9377 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
9378 fi
9379 archive_cmds_need_lc='no'
cae5b340 9380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
ea04106b
AX
9381 hardcode_libdir_separator=:
9382 ;;
9383
9384 osf4* | osf5*) # as osf3* with the addition of -msym flag
cae5b340
AX
9385 if test "$GCC" = yes; then
9386 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9387 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'
9388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
ea04106b
AX
9389 else
9390 allow_undefined_flag=' -expect_unresolved \*'
cae5b340 9391 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 9392 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 9393 $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
9394
9395 # Both c and cxx compiler support -rpath directly
9396 hardcode_libdir_flag_spec='-rpath $libdir'
9397 fi
9398 archive_cmds_need_lc='no'
9399 hardcode_libdir_separator=:
9400 ;;
9401
9402 solaris*)
9403 no_undefined_flag=' -z defs'
cae5b340
AX
9404 if test "$GCC" = yes; then
9405 wlarc='${wl}'
9406 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b 9407 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cae5b340 9408 $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
9409 else
9410 case `$CC -V 2>&1` in
9411 *"Compilers 5.0"*)
9412 wlarc=''
cae5b340 9413 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
ea04106b 9414 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cae5b340 9415 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
ea04106b
AX
9416 ;;
9417 *)
cae5b340
AX
9418 wlarc='${wl}'
9419 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b 9420 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cae5b340 9421 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
ea04106b
AX
9422 ;;
9423 esac
9424 fi
9425 hardcode_libdir_flag_spec='-R$libdir'
9426 hardcode_shlibpath_var=no
9427 case $host_os in
9428 solaris2.[0-5] | solaris2.[0-5].*) ;;
9429 *)
9430 # The compiler driver will combine and reorder linker options,
cae5b340 9431 # but understands `-z linker_flag'. GCC discards it without `$wl',
ea04106b
AX
9432 # but is careful enough not to reorder.
9433 # Supported since Solaris 2.6 (maybe 2.5.1?)
cae5b340
AX
9434 if test "$GCC" = yes; then
9435 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
ea04106b
AX
9436 else
9437 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9438 fi
9439 ;;
9440 esac
9441 link_all_deplibs=yes
9442 ;;
9443
9444 sunos4*)
cae5b340 9445 if test "x$host_vendor" = xsequent; then
ea04106b
AX
9446 # Use $CC to link under sequent, because it throws in some extra .o
9447 # files that make .init and .fini sections work.
cae5b340 9448 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9449 else
9450 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9451 fi
9452 hardcode_libdir_flag_spec='-L$libdir'
9453 hardcode_direct=yes
9454 hardcode_minus_L=yes
9455 hardcode_shlibpath_var=no
9456 ;;
9457
9458 sysv4)
9459 case $host_vendor in
9460 sni)
9461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9462 hardcode_direct=yes # is this really true???
9463 ;;
9464 siemens)
9465 ## LD is ld it makes a PLAMLIB
9466 ## CC just makes a GrossModule.
9467 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9468 reload_cmds='$CC -r -o $output$reload_objs'
9469 hardcode_direct=no
9470 ;;
9471 motorola)
9472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9474 ;;
9475 esac
9476 runpath_var='LD_RUN_PATH'
9477 hardcode_shlibpath_var=no
9478 ;;
9479
9480 sysv4.3*)
9481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9482 hardcode_shlibpath_var=no
9483 export_dynamic_flag_spec='-Bexport'
9484 ;;
9485
9486 sysv4*MP*)
9487 if test -d /usr/nec; then
9488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9489 hardcode_shlibpath_var=no
9490 runpath_var=LD_RUN_PATH
9491 hardcode_runpath_var=yes
9492 ld_shlibs=yes
9493 fi
9494 ;;
9495
9496 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
cae5b340 9497 no_undefined_flag='${wl}-z,text'
ea04106b
AX
9498 archive_cmds_need_lc=no
9499 hardcode_shlibpath_var=no
9500 runpath_var='LD_RUN_PATH'
9501
cae5b340
AX
9502 if test "$GCC" = yes; then
9503 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9504 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b 9505 else
cae5b340
AX
9506 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9507 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9508 fi
9509 ;;
9510
9511 sysv5* | sco3.2v5* | sco5v6*)
cae5b340 9512 # Note: We can NOT use -z defs as we might desire, because we do not
ea04106b
AX
9513 # link with -lc, and that would cause any symbols used from libc to
9514 # always be unresolved, which means just about no library would
9515 # ever link correctly. If we're not using GNU ld we use -z text
9516 # though, which does catch some bad symbols but isn't as heavy-handed
9517 # as -z defs.
cae5b340
AX
9518 no_undefined_flag='${wl}-z,text'
9519 allow_undefined_flag='${wl}-z,nodefs'
ea04106b
AX
9520 archive_cmds_need_lc=no
9521 hardcode_shlibpath_var=no
cae5b340 9522 hardcode_libdir_flag_spec='${wl}-R,$libdir'
ea04106b
AX
9523 hardcode_libdir_separator=':'
9524 link_all_deplibs=yes
cae5b340 9525 export_dynamic_flag_spec='${wl}-Bexport'
ea04106b
AX
9526 runpath_var='LD_RUN_PATH'
9527
cae5b340
AX
9528 if test "$GCC" = yes; then
9529 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9530 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b 9531 else
cae5b340
AX
9532 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9533 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9534 fi
9535 ;;
9536
9537 uts4*)
9538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9539 hardcode_libdir_flag_spec='-L$libdir'
9540 hardcode_shlibpath_var=no
9541 ;;
9542
9543 *)
9544 ld_shlibs=no
9545 ;;
9546 esac
9547
cae5b340 9548 if test x$host_vendor = xsni; then
ea04106b
AX
9549 case $host in
9550 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cae5b340 9551 export_dynamic_flag_spec='${wl}-Blargedynsym'
ea04106b
AX
9552 ;;
9553 esac
9554 fi
9555 fi
9556
cae5b340 9557{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
ea04106b 9558$as_echo "$ld_shlibs" >&6; }
cae5b340 9559test "$ld_shlibs" = no && can_build_shared=no
ea04106b
AX
9560
9561with_gnu_ld=$with_gnu_ld
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577#
9578# Do we need to explicitly link libc?
9579#
9580case "x$archive_cmds_need_lc" in
9581x|xyes)
9582 # Assume -lc should be added
9583 archive_cmds_need_lc=yes
9584
cae5b340 9585 if test "$enable_shared" = yes && test "$GCC" = yes; then
ea04106b
AX
9586 case $archive_cmds in
9587 *'~'*)
9588 # FIXME: we may have to deal with multi-command sequences.
9589 ;;
9590 '$CC '*)
9591 # Test whether the compiler implicitly links with -lc since on some
9592 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9593 # to ld, don't add -lc before -lgcc.
cae5b340 9594 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
ea04106b 9595$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cae5b340
AX
9596 $RM conftest*
9597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
ea04106b 9598
cae5b340 9599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ea04106b
AX
9600 (eval $ac_compile) 2>&5
9601 ac_status=$?
cae5b340
AX
9602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } 2>conftest.err; then
9604 soname=conftest
9605 lib=conftest
9606 libobjs=conftest.$ac_objext
9607 deplibs=
9608 wl=$lt_prog_compiler_wl
9609 pic_flag=$lt_prog_compiler_pic
9610 compiler_flags=-v
9611 linker_flags=-v
9612 verstring=
9613 output_objdir=.
9614 libname=conftest
9615 lt_save_allow_undefined_flag=$allow_undefined_flag
9616 allow_undefined_flag=
9617 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
ea04106b
AX
9618 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9619 ac_status=$?
cae5b340
AX
9620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }
9622 then
9623 archive_cmds_need_lc=no
9624 else
9625 archive_cmds_need_lc=yes
9626 fi
9627 allow_undefined_flag=$lt_save_allow_undefined_flag
9628 else
9629 cat conftest.err 1>&5
9630 fi
9631 $RM conftest*
9632 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9633$as_echo "$archive_cmds_need_lc" >&6; }
ea04106b
AX
9634 ;;
9635 esac
9636 fi
9637 ;;
9638esac
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
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
cae5b340
AX
9791
9792
9793
9794
9795
9796 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
ea04106b
AX
9797$as_echo_n "checking dynamic linker characteristics... " >&6; }
9798
cae5b340 9799if test "$GCC" = yes; then
ea04106b 9800 case $host_os in
cae5b340
AX
9801 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9802 *) lt_awk_arg="/^libraries:/" ;;
ea04106b 9803 esac
cae5b340
AX
9804 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9805 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
ea04106b
AX
9806 # if the path contains ";" then we assume it to be the separator
9807 # otherwise default to the standard path separator (i.e. ":") - it is
9808 # assumed that no part of a normal pathname contains ";" but that should
9809 # okay in the real world where ";" in dirpaths is itself problematic.
cae5b340
AX
9810 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9811 else
9812 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9813 fi
ea04106b 9814 # Ok, now we have the path, separated by spaces, we can step through it
cae5b340 9815 # and add multilib dir if necessary.
ea04106b 9816 lt_tmp_lt_search_path_spec=
cae5b340 9817 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
ea04106b 9818 for lt_sys_path in $lt_search_path_spec; do
cae5b340
AX
9819 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9820 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9821 else
ea04106b
AX
9822 test -d "$lt_sys_path" && \
9823 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9824 fi
9825 done
cae5b340
AX
9826 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9827BEGIN {RS=" "; FS="/|\n";} {
9828 lt_foo="";
9829 lt_count=0;
ea04106b
AX
9830 for (lt_i = NF; lt_i > 0; lt_i--) {
9831 if ($lt_i != "" && $lt_i != ".") {
9832 if ($lt_i == "..") {
9833 lt_count++;
9834 } else {
9835 if (lt_count == 0) {
cae5b340 9836 lt_foo="/" $lt_i lt_foo;
ea04106b
AX
9837 } else {
9838 lt_count--;
9839 }
9840 }
9841 }
9842 }
9843 if (lt_foo != "") { lt_freq[lt_foo]++; }
9844 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9845}'`
cae5b340 9846 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
ea04106b
AX
9847else
9848 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9849fi
9850library_names_spec=
9851libname_spec='lib$name'
9852soname_spec=
cae5b340 9853shrext_cmds=".so"
ea04106b
AX
9854postinstall_cmds=
9855postuninstall_cmds=
9856finish_cmds=
9857finish_eval=
9858shlibpath_var=
9859shlibpath_overrides_runpath=unknown
9860version_type=none
9861dynamic_linker="$host_os ld.so"
9862sys_lib_dlsearch_path_spec="/lib /usr/lib"
9863need_lib_prefix=unknown
9864hardcode_into_libs=no
9865
9866# when you set need_version to no, make sure it does not cause -set_version
9867# flags to be left without arguments
9868need_version=unknown
9869
9870case $host_os in
9871aix3*)
cae5b340
AX
9872 version_type=linux
9873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
ea04106b
AX
9874 shlibpath_var=LIBPATH
9875
9876 # AIX 3 has no versioning support, so we append a major version to the name.
cae5b340 9877 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
9878 ;;
9879
9880aix[4-9]*)
cae5b340 9881 version_type=linux
ea04106b
AX
9882 need_lib_prefix=no
9883 need_version=no
9884 hardcode_into_libs=yes
cae5b340 9885 if test "$host_cpu" = ia64; then
ea04106b 9886 # AIX 5 supports IA64
cae5b340 9887 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
ea04106b
AX
9888 shlibpath_var=LD_LIBRARY_PATH
9889 else
9890 # With GCC up to 2.95.x, collect2 would create an import file
9891 # for dependence libraries. The import file would start with
cae5b340
AX
9892 # the line `#! .'. This would cause the generated library to
9893 # depend on `.', always an invalid library. This was fixed in
ea04106b
AX
9894 # development snapshots of GCC prior to 3.0.
9895 case $host_os in
9896 aix4 | aix4.[01] | aix4.[01].*)
9897 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9898 echo ' yes '
cae5b340 9899 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
ea04106b
AX
9900 :
9901 else
9902 can_build_shared=no
9903 fi
9904 ;;
9905 esac
cae5b340 9906 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
ea04106b
AX
9907 # soname into executable. Probably we can add versioning support to
9908 # collect2, so additional links can be useful in future.
cae5b340 9909 if test "$aix_use_runtimelinking" = yes; then
ea04106b
AX
9910 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9911 # instead of lib<name>.a to let people know that these are not
9912 # typical AIX shared libraries.
cae5b340
AX
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914 else
ea04106b
AX
9915 # We preserve .a as extension for shared libraries through AIX4.2
9916 # and later when we are not doing run time linking.
cae5b340
AX
9917 library_names_spec='${libname}${release}.a $libname.a'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 fi
ea04106b
AX
9920 shlibpath_var=LIBPATH
9921 fi
9922 ;;
9923
9924amigaos*)
9925 case $host_cpu in
9926 powerpc)
9927 # Since July 2007 AmigaOS4 officially supports .so libraries.
9928 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
cae5b340 9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ea04106b
AX
9930 ;;
9931 m68k)
9932 library_names_spec='$libname.ixlibrary $libname.a'
9933 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cae5b340 9934 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
9935 ;;
9936 esac
9937 ;;
9938
9939beos*)
cae5b340 9940 library_names_spec='${libname}${shared_ext}'
ea04106b
AX
9941 dynamic_linker="$host_os ld.so"
9942 shlibpath_var=LIBRARY_PATH
9943 ;;
9944
9945bsdi[45]*)
cae5b340 9946 version_type=linux
ea04106b 9947 need_version=no
cae5b340
AX
9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9949 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
9950 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9951 shlibpath_var=LD_LIBRARY_PATH
9952 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9953 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9954 # the default ld.so.conf also contains /usr/contrib/lib and
9955 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9956 # libtool to hard-code these into programs
9957 ;;
9958
9959cygwin* | mingw* | pw32* | cegcc*)
9960 version_type=windows
cae5b340 9961 shrext_cmds=".dll"
ea04106b
AX
9962 need_version=no
9963 need_lib_prefix=no
9964
cae5b340
AX
9965 case $GCC,$host_os in
9966 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ea04106b
AX
9967 library_names_spec='$libname.dll.a'
9968 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cae5b340
AX
9969 postinstall_cmds='base_file=`basename \${file}`~
9970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
ea04106b
AX
9971 dldir=$destdir/`dirname \$dlpath`~
9972 test -d \$dldir || mkdir -p \$dldir~
9973 $install_prog $dir/$dlname \$dldir/$dlname~
9974 chmod a+x \$dldir/$dlname~
9975 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9976 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9977 fi'
9978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9979 dlpath=$dir/\$dldll~
9980 $RM \$dlpath'
9981 shlibpath_overrides_runpath=yes
9982
9983 case $host_os in
9984 cygwin*)
9985 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cae5b340
AX
9986 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9987 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
ea04106b
AX
9988 ;;
9989 mingw* | cegcc*)
9990 # MinGW DLLs use traditional 'lib' prefix
cae5b340
AX
9991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9992 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
ea04106b 9993 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
cae5b340
AX
9994 # It is most probably a Windows format PATH printed by
9995 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9996 # path with ; separators, and with drive letters. We can handle the
9997 # drive letters (cygwin fileutils understands them), so leave them,
9998 # especially as we might pass files found there to a mingw objdump,
9999 # which wouldn't understand a cygwinified path. Ahh.
ea04106b
AX
10000 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10001 else
cae5b340 10002 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
ea04106b 10003 fi
cae5b340
AX
10004 ;;
10005 pw32*)
10006 # pw32 DLLs use 'pw' prefix rather than 'lib'
10007 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ea04106b
AX
10008 ;;
10009 esac
ea04106b
AX
10010 ;;
10011
10012 *)
cae5b340 10013 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
ea04106b
AX
10014 ;;
10015 esac
cae5b340 10016 dynamic_linker='Win32 ld.exe'
ea04106b
AX
10017 # FIXME: first we should search . and the directory the executable is in
10018 shlibpath_var=PATH
10019 ;;
10020
10021darwin* | rhapsody*)
10022 dynamic_linker="$host_os dyld"
10023 version_type=darwin
10024 need_lib_prefix=no
10025 need_version=no
cae5b340
AX
10026 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10027 soname_spec='${libname}${release}${major}$shared_ext'
ea04106b
AX
10028 shlibpath_overrides_runpath=yes
10029 shlibpath_var=DYLD_LIBRARY_PATH
10030 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10031
10032 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10033 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10034 ;;
10035
10036dgux*)
cae5b340 10037 version_type=linux
ea04106b
AX
10038 need_lib_prefix=no
10039 need_version=no
cae5b340
AX
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10041 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10042 shlibpath_var=LD_LIBRARY_PATH
10043 ;;
10044
cae5b340
AX
10045freebsd1*)
10046 dynamic_linker=no
10047 ;;
10048
ea04106b
AX
10049freebsd* | dragonfly*)
10050 # DragonFly does not have aout. When/if they implement a new
10051 # versioning mechanism, adjust this.
10052 if test -x /usr/bin/objformat; then
10053 objformat=`/usr/bin/objformat`
10054 else
10055 case $host_os in
cae5b340 10056 freebsd[123]*) objformat=aout ;;
ea04106b
AX
10057 *) objformat=elf ;;
10058 esac
10059 fi
10060 version_type=freebsd-$objformat
10061 case $version_type in
10062 freebsd-elf*)
cae5b340 10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
ea04106b
AX
10064 need_version=no
10065 need_lib_prefix=no
10066 ;;
10067 freebsd-*)
cae5b340 10068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
ea04106b
AX
10069 need_version=yes
10070 ;;
10071 esac
10072 shlibpath_var=LD_LIBRARY_PATH
10073 case $host_os in
cae5b340 10074 freebsd2*)
ea04106b
AX
10075 shlibpath_overrides_runpath=yes
10076 ;;
10077 freebsd3.[01]* | freebsdelf3.[01]*)
10078 shlibpath_overrides_runpath=yes
10079 hardcode_into_libs=yes
10080 ;;
10081 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10082 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10083 shlibpath_overrides_runpath=no
10084 hardcode_into_libs=yes
10085 ;;
10086 *) # from 4.6 on, and DragonFly
10087 shlibpath_overrides_runpath=yes
10088 hardcode_into_libs=yes
10089 ;;
10090 esac
10091 ;;
10092
cae5b340
AX
10093gnu*)
10094 version_type=linux
ea04106b
AX
10095 need_lib_prefix=no
10096 need_version=no
cae5b340
AX
10097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10098 soname_spec='${libname}${release}${shared_ext}$major'
10099 shlibpath_var=LD_LIBRARY_PATH
ea04106b
AX
10100 hardcode_into_libs=yes
10101 ;;
10102
10103hpux9* | hpux10* | hpux11*)
10104 # Give a soname corresponding to the major version so that dld.sl refuses to
10105 # link against other versions.
10106 version_type=sunos
10107 need_lib_prefix=no
10108 need_version=no
10109 case $host_cpu in
10110 ia64*)
10111 shrext_cmds='.so'
10112 hardcode_into_libs=yes
10113 dynamic_linker="$host_os dld.so"
10114 shlibpath_var=LD_LIBRARY_PATH
10115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cae5b340
AX
10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117 soname_spec='${libname}${release}${shared_ext}$major'
10118 if test "X$HPUX_IA64_MODE" = X32; then
ea04106b
AX
10119 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10120 else
10121 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10122 fi
cae5b340 10123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
ea04106b
AX
10124 ;;
10125 hppa*64*)
10126 shrext_cmds='.sl'
10127 hardcode_into_libs=yes
10128 dynamic_linker="$host_os dld.sl"
10129 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10130 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cae5b340
AX
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10133 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10135 ;;
10136 *)
10137 shrext_cmds='.sl'
10138 dynamic_linker="$host_os dld.sl"
10139 shlibpath_var=SHLIB_PATH
10140 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cae5b340
AX
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10143 ;;
10144 esac
cae5b340 10145 # HP-UX runs *really* slowly unless shared libraries are mode 555.
ea04106b 10146 postinstall_cmds='chmod 555 $lib'
ea04106b
AX
10147 ;;
10148
10149interix[3-9]*)
cae5b340 10150 version_type=linux
ea04106b
AX
10151 need_lib_prefix=no
10152 need_version=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10156 shlibpath_var=LD_LIBRARY_PATH
10157 shlibpath_overrides_runpath=no
10158 hardcode_into_libs=yes
10159 ;;
10160
10161irix5* | irix6* | nonstopux*)
10162 case $host_os in
10163 nonstopux*) version_type=nonstopux ;;
10164 *)
cae5b340
AX
10165 if test "$lt_cv_prog_gnu_ld" = yes; then
10166 version_type=linux
ea04106b
AX
10167 else
10168 version_type=irix
10169 fi ;;
10170 esac
10171 need_lib_prefix=no
10172 need_version=no
cae5b340
AX
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
ea04106b
AX
10175 case $host_os in
10176 irix5* | nonstopux*)
10177 libsuff= shlibsuff=
10178 ;;
10179 *)
10180 case $LD in # libtool.m4 will add one of these switches to LD
10181 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10182 libsuff= shlibsuff= libmagic=32-bit;;
10183 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10184 libsuff=32 shlibsuff=N32 libmagic=N32;;
10185 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10186 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10187 *) libsuff= shlibsuff= libmagic=never-match;;
10188 esac
10189 ;;
10190 esac
10191 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10192 shlibpath_overrides_runpath=no
cae5b340
AX
10193 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10194 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
ea04106b
AX
10195 hardcode_into_libs=yes
10196 ;;
10197
10198# No shared lib support for Linux oldld, aout, or coff.
10199linux*oldld* | linux*aout* | linux*coff*)
10200 dynamic_linker=no
10201 ;;
10202
cae5b340
AX
10203# This must be Linux ELF.
10204linux* | k*bsd*-gnu)
10205 version_type=linux
68d83c55
AX
10206 need_lib_prefix=no
10207 need_version=no
cae5b340
AX
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10211 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=no
ea04106b 10213 # Some binutils ld are patched to set DT_RUNPATH
cae5b340
AX
10214 save_LDFLAGS=$LDFLAGS
10215 save_libdir=$libdir
10216 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10217 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10218 cat >conftest.$ac_ext <<_ACEOF
10219/* confdefs.h. */
10220_ACEOF
10221cat confdefs.h >>conftest.$ac_ext
10222cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
10223/* end confdefs.h. */
10224
10225int
10226main ()
10227{
10228
10229 ;
10230 return 0;
10231}
10232_ACEOF
cae5b340
AX
10233rm -f conftest.$ac_objext conftest$ac_exeext
10234if { (ac_try="$ac_link"
10235case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10238esac
10239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10240$as_echo "$ac_try_echo") >&5
10241 (eval "$ac_link") 2>conftest.er1
10242 ac_status=$?
10243 grep -v '^ *+' conftest.er1 >conftest.err
10244 rm -f conftest.er1
10245 cat conftest.err >&5
10246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); } && {
10248 test -z "$ac_c_werror_flag" ||
10249 test ! -s conftest.err
10250 } && test -s conftest$ac_exeext && {
10251 test "$cross_compiling" = yes ||
10252 $as_test_x conftest$ac_exeext
10253 }; then
10254 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10255 shlibpath_overrides_runpath=yes
ea04106b 10256fi
cae5b340
AX
10257
10258else
10259 $as_echo "$as_me: failed program was:" >&5
10260sed 's/^/| /' conftest.$ac_ext >&5
10261
ea04106b
AX
10262
10263fi
10264
cae5b340
AX
10265rm -rf conftest.dSYM
10266rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10267 conftest$ac_exeext conftest.$ac_ext
10268 LDFLAGS=$save_LDFLAGS
10269 libdir=$save_libdir
ea04106b
AX
10270
10271 # This implies no fast_install, which is unacceptable.
10272 # Some rework will be needed to allow for fast_install
10273 # before this can be enabled.
10274 hardcode_into_libs=yes
10275
22929307
AX
10276 # Add ABI-specific directories to the system library path.
10277 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10278
cae5b340 10279 # Append ld.so.conf contents to the search path
ea04106b 10280 if test -f /etc/ld.so.conf; then
cae5b340 10281 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 10282 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
ea04106b
AX
10283 fi
10284
10285 # We used to test for /lib/ld.so.1 and disable shared libraries on
10286 # powerpc, because MkLinux only supported shared libraries with the
10287 # GNU dynamic linker. Since this was broken with cross compilers,
10288 # most powerpc-linux boxes support dynamic linking these days and
10289 # people can always --disable-shared, the test was removed, and we
10290 # assume the GNU/Linux dynamic linker is in use.
10291 dynamic_linker='GNU/Linux ld.so'
10292 ;;
10293
ea04106b
AX
10294netbsd*)
10295 version_type=sunos
10296 need_lib_prefix=no
10297 need_version=no
10298 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cae5b340 10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
ea04106b
AX
10300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10301 dynamic_linker='NetBSD (a.out) ld.so'
10302 else
cae5b340
AX
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10305 dynamic_linker='NetBSD ld.elf_so'
10306 fi
10307 shlibpath_var=LD_LIBRARY_PATH
10308 shlibpath_overrides_runpath=yes
10309 hardcode_into_libs=yes
10310 ;;
10311
10312newsos6)
cae5b340
AX
10313 version_type=linux
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ea04106b
AX
10315 shlibpath_var=LD_LIBRARY_PATH
10316 shlibpath_overrides_runpath=yes
10317 ;;
10318
10319*nto* | *qnx*)
10320 version_type=qnx
10321 need_lib_prefix=no
10322 need_version=no
cae5b340
AX
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10325 shlibpath_var=LD_LIBRARY_PATH
10326 shlibpath_overrides_runpath=no
10327 hardcode_into_libs=yes
10328 dynamic_linker='ldqnx.so'
10329 ;;
10330
cae5b340 10331openbsd*)
ea04106b 10332 version_type=sunos
cae5b340 10333 sys_lib_dlsearch_path_spec="/usr/lib"
ea04106b 10334 need_lib_prefix=no
cae5b340
AX
10335 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10336 case $host_os in
10337 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10338 *) need_version=no ;;
10339 esac
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
68d83c55
AX
10341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10342 shlibpath_var=LD_LIBRARY_PATH
cae5b340
AX
10343 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10344 case $host_os in
10345 openbsd2.[89] | openbsd2.[89].*)
10346 shlibpath_overrides_runpath=no
10347 ;;
10348 *)
10349 shlibpath_overrides_runpath=yes
10350 ;;
10351 esac
10352 else
10353 shlibpath_overrides_runpath=yes
10354 fi
ea04106b
AX
10355 ;;
10356
10357os2*)
10358 libname_spec='$name'
cae5b340 10359 shrext_cmds=".dll"
ea04106b 10360 need_lib_prefix=no
cae5b340 10361 library_names_spec='$libname${shared_ext} $libname.a'
ea04106b 10362 dynamic_linker='OS/2 ld.exe'
cae5b340 10363 shlibpath_var=LIBPATH
ea04106b
AX
10364 ;;
10365
10366osf3* | osf4* | osf5*)
10367 version_type=osf
10368 need_lib_prefix=no
10369 need_version=no
cae5b340
AX
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ea04106b
AX
10372 shlibpath_var=LD_LIBRARY_PATH
10373 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cae5b340 10374 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
ea04106b
AX
10375 ;;
10376
10377rdos*)
10378 dynamic_linker=no
10379 ;;
10380
10381solaris*)
cae5b340 10382 version_type=linux
ea04106b
AX
10383 need_lib_prefix=no
10384 need_version=no
cae5b340
AX
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10387 shlibpath_var=LD_LIBRARY_PATH
10388 shlibpath_overrides_runpath=yes
10389 hardcode_into_libs=yes
10390 # ldd complains unless libraries are executable
10391 postinstall_cmds='chmod +x $lib'
10392 ;;
10393
10394sunos4*)
10395 version_type=sunos
cae5b340 10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
ea04106b
AX
10397 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10398 shlibpath_var=LD_LIBRARY_PATH
10399 shlibpath_overrides_runpath=yes
cae5b340 10400 if test "$with_gnu_ld" = yes; then
ea04106b
AX
10401 need_lib_prefix=no
10402 fi
10403 need_version=yes
10404 ;;
10405
10406sysv4 | sysv4.3*)
cae5b340
AX
10407 version_type=linux
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10409 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10410 shlibpath_var=LD_LIBRARY_PATH
10411 case $host_vendor in
10412 sni)
10413 shlibpath_overrides_runpath=no
10414 need_lib_prefix=no
10415 runpath_var=LD_RUN_PATH
10416 ;;
10417 siemens)
10418 need_lib_prefix=no
10419 ;;
10420 motorola)
10421 need_lib_prefix=no
10422 need_version=no
10423 shlibpath_overrides_runpath=no
10424 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10425 ;;
10426 esac
10427 ;;
10428
10429sysv4*MP*)
cae5b340
AX
10430 if test -d /usr/nec ;then
10431 version_type=linux
10432 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10433 soname_spec='$libname${shared_ext}.$major'
ea04106b
AX
10434 shlibpath_var=LD_LIBRARY_PATH
10435 fi
10436 ;;
10437
10438sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cae5b340 10439 version_type=freebsd-elf
ea04106b
AX
10440 need_lib_prefix=no
10441 need_version=no
cae5b340
AX
10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10443 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10444 shlibpath_var=LD_LIBRARY_PATH
10445 shlibpath_overrides_runpath=yes
10446 hardcode_into_libs=yes
cae5b340 10447 if test "$with_gnu_ld" = yes; then
ea04106b
AX
10448 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10449 else
10450 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10451 case $host_os in
10452 sco3.2v5*)
10453 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10454 ;;
10455 esac
10456 fi
10457 sys_lib_dlsearch_path_spec='/usr/lib'
10458 ;;
10459
10460tpf*)
10461 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cae5b340 10462 version_type=linux
ea04106b
AX
10463 need_lib_prefix=no
10464 need_version=no
cae5b340 10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ea04106b
AX
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=no
10468 hardcode_into_libs=yes
10469 ;;
10470
10471uts4*)
cae5b340
AX
10472 version_type=linux
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10475 shlibpath_var=LD_LIBRARY_PATH
10476 ;;
10477
10478*)
10479 dynamic_linker=no
10480 ;;
10481esac
cae5b340 10482{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
ea04106b 10483$as_echo "$dynamic_linker" >&6; }
cae5b340 10484test "$dynamic_linker" = no && can_build_shared=no
ea04106b
AX
10485
10486variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cae5b340 10487if test "$GCC" = yes; then
ea04106b
AX
10488 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10489fi
10490
cae5b340
AX
10491if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10492 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
ea04106b 10493fi
cae5b340
AX
10494if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10495 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
ea04106b
AX
10496fi
10497
68d83c55 10498
68d83c55
AX
10499
10500
10501
10502
10503
10504
ea04106b
AX
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
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
cae5b340 10584 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
ea04106b
AX
10585$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10586hardcode_action=
10587if test -n "$hardcode_libdir_flag_spec" ||
10588 test -n "$runpath_var" ||
cae5b340 10589 test "X$hardcode_automatic" = "Xyes" ; then
ea04106b
AX
10590
10591 # We can hardcode non-existent directories.
cae5b340 10592 if test "$hardcode_direct" != no &&
ea04106b
AX
10593 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10594 # have to relink, otherwise we might link with an installed library
10595 # when we should be linking with a yet-to-be-installed one
cae5b340
AX
10596 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10597 test "$hardcode_minus_L" != no; then
ea04106b
AX
10598 # Linking always hardcodes the temporary library directory.
10599 hardcode_action=relink
10600 else
10601 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10602 hardcode_action=immediate
10603 fi
10604else
10605 # We cannot hardcode anything, or else we can only hardcode existing
10606 # directories.
10607 hardcode_action=unsupported
10608fi
cae5b340 10609{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
ea04106b
AX
10610$as_echo "$hardcode_action" >&6; }
10611
cae5b340
AX
10612if test "$hardcode_action" = relink ||
10613 test "$inherit_rpath" = yes; then
ea04106b
AX
10614 # Fast installation is not supported
10615 enable_fast_install=no
cae5b340
AX
10616elif test "$shlibpath_overrides_runpath" = yes ||
10617 test "$enable_shared" = no; then
ea04106b
AX
10618 # Fast installation is not necessary
10619 enable_fast_install=needless
10620fi
10621
10622
10623
10624
10625
10626
cae5b340 10627 if test "x$enable_dlopen" != xyes; then
ea04106b
AX
10628 enable_dlopen=unknown
10629 enable_dlopen_self=unknown
10630 enable_dlopen_self_static=unknown
10631else
10632 lt_cv_dlopen=no
10633 lt_cv_dlopen_libs=
10634
10635 case $host_os in
10636 beos*)
cae5b340 10637 lt_cv_dlopen="load_add_on"
ea04106b
AX
10638 lt_cv_dlopen_libs=
10639 lt_cv_dlopen_self=yes
10640 ;;
10641
10642 mingw* | pw32* | cegcc*)
cae5b340 10643 lt_cv_dlopen="LoadLibrary"
ea04106b
AX
10644 lt_cv_dlopen_libs=
10645 ;;
10646
10647 cygwin*)
cae5b340 10648 lt_cv_dlopen="dlopen"
ea04106b
AX
10649 lt_cv_dlopen_libs=
10650 ;;
10651
10652 darwin*)
cae5b340
AX
10653 # if libdl is installed we need to link against it
10654 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
ea04106b 10655$as_echo_n "checking for dlopen in -ldl... " >&6; }
cae5b340 10656if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ea04106b
AX
10657 $as_echo_n "(cached) " >&6
10658else
10659 ac_check_lib_save_LIBS=$LIBS
10660LIBS="-ldl $LIBS"
cae5b340
AX
10661cat >conftest.$ac_ext <<_ACEOF
10662/* confdefs.h. */
10663_ACEOF
10664cat confdefs.h >>conftest.$ac_ext
10665cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
10666/* end confdefs.h. */
10667
10668/* Override any GCC internal prototype to avoid an error.
10669 Use char because int might match the return type of a GCC
10670 builtin and then its argument prototype would still apply. */
10671#ifdef __cplusplus
10672extern "C"
10673#endif
10674char dlopen ();
10675int
10676main ()
10677{
10678return dlopen ();
10679 ;
10680 return 0;
10681}
10682_ACEOF
cae5b340
AX
10683rm -f conftest.$ac_objext conftest$ac_exeext
10684if { (ac_try="$ac_link"
10685case "(($ac_try" in
10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10688esac
10689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10690$as_echo "$ac_try_echo") >&5
10691 (eval "$ac_link") 2>conftest.er1
10692 ac_status=$?
10693 grep -v '^ *+' conftest.er1 >conftest.err
10694 rm -f conftest.er1
10695 cat conftest.err >&5
10696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } && {
10698 test -z "$ac_c_werror_flag" ||
10699 test ! -s conftest.err
10700 } && test -s conftest$ac_exeext && {
10701 test "$cross_compiling" = yes ||
10702 $as_test_x conftest$ac_exeext
10703 }; then
ea04106b
AX
10704 ac_cv_lib_dl_dlopen=yes
10705else
cae5b340
AX
10706 $as_echo "$as_me: failed program was:" >&5
10707sed 's/^/| /' conftest.$ac_ext >&5
10708
10709 ac_cv_lib_dl_dlopen=no
ea04106b 10710fi
cae5b340
AX
10711
10712rm -rf conftest.dSYM
10713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10714 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
10715LIBS=$ac_check_lib_save_LIBS
10716fi
cae5b340 10717{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
ea04106b 10718$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cae5b340
AX
10719if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10720 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
ea04106b
AX
10721else
10722
cae5b340 10723 lt_cv_dlopen="dyld"
ea04106b
AX
10724 lt_cv_dlopen_libs=
10725 lt_cv_dlopen_self=yes
10726
10727fi
10728
10729 ;;
10730
10731 *)
cae5b340
AX
10732 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10733$as_echo_n "checking for shl_load... " >&6; }
10734if test "${ac_cv_func_shl_load+set}" = set; then
10735 $as_echo_n "(cached) " >&6
10736else
10737 cat >conftest.$ac_ext <<_ACEOF
10738/* confdefs.h. */
10739_ACEOF
10740cat confdefs.h >>conftest.$ac_ext
10741cat >>conftest.$ac_ext <<_ACEOF
10742/* end confdefs.h. */
10743/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10745#define shl_load innocuous_shl_load
10746
10747/* System header to define __stub macros and hopefully few prototypes,
10748 which can conflict with char shl_load (); below.
10749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10750 <limits.h> exists even on freestanding compilers. */
10751
10752#ifdef __STDC__
10753# include <limits.h>
10754#else
10755# include <assert.h>
10756#endif
10757
10758#undef shl_load
10759
10760/* Override any GCC internal prototype to avoid an error.
10761 Use char because int might match the return type of a GCC
10762 builtin and then its argument prototype would still apply. */
10763#ifdef __cplusplus
10764extern "C"
10765#endif
10766char shl_load ();
10767/* The GNU C library defines this for functions which it implements
10768 to always fail with ENOSYS. Some functions are actually named
10769 something starting with __ and the normal name is an alias. */
10770#if defined __stub_shl_load || defined __stub___shl_load
10771choke me
10772#endif
10773
10774int
10775main ()
10776{
10777return shl_load ();
10778 ;
10779 return 0;
10780}
10781_ACEOF
10782rm -f conftest.$ac_objext conftest$ac_exeext
10783if { (ac_try="$ac_link"
10784case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10787esac
10788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10789$as_echo "$ac_try_echo") >&5
10790 (eval "$ac_link") 2>conftest.er1
10791 ac_status=$?
10792 grep -v '^ *+' conftest.er1 >conftest.err
10793 rm -f conftest.er1
10794 cat conftest.err >&5
10795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } && {
10797 test -z "$ac_c_werror_flag" ||
10798 test ! -s conftest.err
10799 } && test -s conftest$ac_exeext && {
10800 test "$cross_compiling" = yes ||
10801 $as_test_x conftest$ac_exeext
10802 }; then
10803 ac_cv_func_shl_load=yes
10804else
10805 $as_echo "$as_me: failed program was:" >&5
10806sed 's/^/| /' conftest.$ac_ext >&5
10807
10808 ac_cv_func_shl_load=no
10809fi
10810
10811rm -rf conftest.dSYM
10812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10813 conftest$ac_exeext conftest.$ac_ext
10814fi
10815{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10816$as_echo "$ac_cv_func_shl_load" >&6; }
10817if test "x$ac_cv_func_shl_load" = x""yes; then
10818 lt_cv_dlopen="shl_load"
ea04106b 10819else
cae5b340 10820 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
ea04106b 10821$as_echo_n "checking for shl_load in -ldld... " >&6; }
cae5b340 10822if test "${ac_cv_lib_dld_shl_load+set}" = set; then
ea04106b
AX
10823 $as_echo_n "(cached) " >&6
10824else
10825 ac_check_lib_save_LIBS=$LIBS
10826LIBS="-ldld $LIBS"
cae5b340
AX
10827cat >conftest.$ac_ext <<_ACEOF
10828/* confdefs.h. */
10829_ACEOF
10830cat confdefs.h >>conftest.$ac_ext
10831cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
10832/* end confdefs.h. */
10833
10834/* Override any GCC internal prototype to avoid an error.
10835 Use char because int might match the return type of a GCC
10836 builtin and then its argument prototype would still apply. */
10837#ifdef __cplusplus
10838extern "C"
10839#endif
10840char shl_load ();
10841int
10842main ()
10843{
10844return shl_load ();
10845 ;
10846 return 0;
10847}
10848_ACEOF
cae5b340
AX
10849rm -f conftest.$ac_objext conftest$ac_exeext
10850if { (ac_try="$ac_link"
10851case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10854esac
10855eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10856$as_echo "$ac_try_echo") >&5
10857 (eval "$ac_link") 2>conftest.er1
10858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } && {
10864 test -z "$ac_c_werror_flag" ||
10865 test ! -s conftest.err
10866 } && test -s conftest$ac_exeext && {
10867 test "$cross_compiling" = yes ||
10868 $as_test_x conftest$ac_exeext
10869 }; then
ea04106b
AX
10870 ac_cv_lib_dld_shl_load=yes
10871else
cae5b340
AX
10872 $as_echo "$as_me: failed program was:" >&5
10873sed 's/^/| /' conftest.$ac_ext >&5
10874
10875 ac_cv_lib_dld_shl_load=no
ea04106b 10876fi
cae5b340
AX
10877
10878rm -rf conftest.dSYM
10879rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10880 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
10881LIBS=$ac_check_lib_save_LIBS
10882fi
cae5b340 10883{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
ea04106b 10884$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cae5b340
AX
10885if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10886 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10887else
10888 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10889$as_echo_n "checking for dlopen... " >&6; }
10890if test "${ac_cv_func_dlopen+set}" = set; then
10891 $as_echo_n "(cached) " >&6
10892else
10893 cat >conftest.$ac_ext <<_ACEOF
10894/* confdefs.h. */
10895_ACEOF
10896cat confdefs.h >>conftest.$ac_ext
10897cat >>conftest.$ac_ext <<_ACEOF
10898/* end confdefs.h. */
10899/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10901#define dlopen innocuous_dlopen
10902
10903/* System header to define __stub macros and hopefully few prototypes,
10904 which can conflict with char dlopen (); below.
10905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10906 <limits.h> exists even on freestanding compilers. */
10907
10908#ifdef __STDC__
10909# include <limits.h>
10910#else
10911# include <assert.h>
10912#endif
10913
10914#undef dlopen
10915
10916/* Override any GCC internal prototype to avoid an error.
10917 Use char because int might match the return type of a GCC
10918 builtin and then its argument prototype would still apply. */
10919#ifdef __cplusplus
10920extern "C"
10921#endif
10922char dlopen ();
10923/* The GNU C library defines this for functions which it implements
10924 to always fail with ENOSYS. Some functions are actually named
10925 something starting with __ and the normal name is an alias. */
10926#if defined __stub_dlopen || defined __stub___dlopen
10927choke me
10928#endif
10929
10930int
10931main ()
10932{
10933return dlopen ();
10934 ;
10935 return 0;
10936}
10937_ACEOF
10938rm -f conftest.$ac_objext conftest$ac_exeext
10939if { (ac_try="$ac_link"
10940case "(($ac_try" in
10941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942 *) ac_try_echo=$ac_try;;
10943esac
10944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10945$as_echo "$ac_try_echo") >&5
10946 (eval "$ac_link") 2>conftest.er1
10947 ac_status=$?
10948 grep -v '^ *+' conftest.er1 >conftest.err
10949 rm -f conftest.er1
10950 cat conftest.err >&5
10951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } && {
10953 test -z "$ac_c_werror_flag" ||
10954 test ! -s conftest.err
10955 } && test -s conftest$ac_exeext && {
10956 test "$cross_compiling" = yes ||
10957 $as_test_x conftest$ac_exeext
10958 }; then
10959 ac_cv_func_dlopen=yes
ea04106b 10960else
cae5b340
AX
10961 $as_echo "$as_me: failed program was:" >&5
10962sed 's/^/| /' conftest.$ac_ext >&5
10963
10964 ac_cv_func_dlopen=no
10965fi
10966
10967rm -rf conftest.dSYM
10968rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10969 conftest$ac_exeext conftest.$ac_ext
10970fi
10971{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10972$as_echo "$ac_cv_func_dlopen" >&6; }
10973if test "x$ac_cv_func_dlopen" = x""yes; then
10974 lt_cv_dlopen="dlopen"
ea04106b 10975else
cae5b340 10976 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
ea04106b 10977$as_echo_n "checking for dlopen in -ldl... " >&6; }
cae5b340 10978if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ea04106b
AX
10979 $as_echo_n "(cached) " >&6
10980else
10981 ac_check_lib_save_LIBS=$LIBS
10982LIBS="-ldl $LIBS"
cae5b340
AX
10983cat >conftest.$ac_ext <<_ACEOF
10984/* confdefs.h. */
10985_ACEOF
10986cat confdefs.h >>conftest.$ac_ext
10987cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
10988/* end confdefs.h. */
10989
10990/* Override any GCC internal prototype to avoid an error.
10991 Use char because int might match the return type of a GCC
10992 builtin and then its argument prototype would still apply. */
10993#ifdef __cplusplus
10994extern "C"
10995#endif
10996char dlopen ();
10997int
10998main ()
10999{
11000return dlopen ();
11001 ;
11002 return 0;
11003}
11004_ACEOF
cae5b340
AX
11005rm -f conftest.$ac_objext conftest$ac_exeext
11006if { (ac_try="$ac_link"
11007case "(($ac_try" in
11008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009 *) ac_try_echo=$ac_try;;
11010esac
11011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11012$as_echo "$ac_try_echo") >&5
11013 (eval "$ac_link") 2>conftest.er1
11014 ac_status=$?
11015 grep -v '^ *+' conftest.er1 >conftest.err
11016 rm -f conftest.er1
11017 cat conftest.err >&5
11018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } && {
11020 test -z "$ac_c_werror_flag" ||
11021 test ! -s conftest.err
11022 } && test -s conftest$ac_exeext && {
11023 test "$cross_compiling" = yes ||
11024 $as_test_x conftest$ac_exeext
11025 }; then
ea04106b
AX
11026 ac_cv_lib_dl_dlopen=yes
11027else
cae5b340
AX
11028 $as_echo "$as_me: failed program was:" >&5
11029sed 's/^/| /' conftest.$ac_ext >&5
11030
11031 ac_cv_lib_dl_dlopen=no
ea04106b 11032fi
cae5b340
AX
11033
11034rm -rf conftest.dSYM
11035rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11036 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
11037LIBS=$ac_check_lib_save_LIBS
11038fi
cae5b340 11039{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
ea04106b 11040$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cae5b340
AX
11041if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11042 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
ea04106b 11043else
cae5b340 11044 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
ea04106b 11045$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cae5b340 11046if test "${ac_cv_lib_svld_dlopen+set}" = set; then
ea04106b
AX
11047 $as_echo_n "(cached) " >&6
11048else
11049 ac_check_lib_save_LIBS=$LIBS
11050LIBS="-lsvld $LIBS"
cae5b340
AX
11051cat >conftest.$ac_ext <<_ACEOF
11052/* confdefs.h. */
11053_ACEOF
11054cat confdefs.h >>conftest.$ac_ext
11055cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
11056/* end confdefs.h. */
11057
11058/* Override any GCC internal prototype to avoid an error.
11059 Use char because int might match the return type of a GCC
11060 builtin and then its argument prototype would still apply. */
11061#ifdef __cplusplus
11062extern "C"
11063#endif
11064char dlopen ();
11065int
11066main ()
11067{
11068return dlopen ();
11069 ;
11070 return 0;
11071}
11072_ACEOF
cae5b340
AX
11073rm -f conftest.$ac_objext conftest$ac_exeext
11074if { (ac_try="$ac_link"
11075case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11078esac
11079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11080$as_echo "$ac_try_echo") >&5
11081 (eval "$ac_link") 2>conftest.er1
11082 ac_status=$?
11083 grep -v '^ *+' conftest.er1 >conftest.err
11084 rm -f conftest.er1
11085 cat conftest.err >&5
11086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } && {
11088 test -z "$ac_c_werror_flag" ||
11089 test ! -s conftest.err
11090 } && test -s conftest$ac_exeext && {
11091 test "$cross_compiling" = yes ||
11092 $as_test_x conftest$ac_exeext
11093 }; then
ea04106b
AX
11094 ac_cv_lib_svld_dlopen=yes
11095else
cae5b340
AX
11096 $as_echo "$as_me: failed program was:" >&5
11097sed 's/^/| /' conftest.$ac_ext >&5
11098
11099 ac_cv_lib_svld_dlopen=no
ea04106b 11100fi
cae5b340
AX
11101
11102rm -rf conftest.dSYM
11103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11104 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
11105LIBS=$ac_check_lib_save_LIBS
11106fi
cae5b340 11107{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
ea04106b 11108$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cae5b340
AX
11109if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11110 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
ea04106b 11111else
cae5b340 11112 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
ea04106b 11113$as_echo_n "checking for dld_link in -ldld... " >&6; }
cae5b340 11114if test "${ac_cv_lib_dld_dld_link+set}" = set; then
ea04106b
AX
11115 $as_echo_n "(cached) " >&6
11116else
11117 ac_check_lib_save_LIBS=$LIBS
11118LIBS="-ldld $LIBS"
cae5b340
AX
11119cat >conftest.$ac_ext <<_ACEOF
11120/* confdefs.h. */
11121_ACEOF
11122cat confdefs.h >>conftest.$ac_ext
11123cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
11124/* end confdefs.h. */
11125
11126/* Override any GCC internal prototype to avoid an error.
11127 Use char because int might match the return type of a GCC
11128 builtin and then its argument prototype would still apply. */
11129#ifdef __cplusplus
11130extern "C"
11131#endif
11132char dld_link ();
11133int
11134main ()
11135{
11136return dld_link ();
11137 ;
11138 return 0;
11139}
11140_ACEOF
cae5b340
AX
11141rm -f conftest.$ac_objext conftest$ac_exeext
11142if { (ac_try="$ac_link"
11143case "(($ac_try" in
11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145 *) ac_try_echo=$ac_try;;
11146esac
11147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11148$as_echo "$ac_try_echo") >&5
11149 (eval "$ac_link") 2>conftest.er1
11150 ac_status=$?
11151 grep -v '^ *+' conftest.er1 >conftest.err
11152 rm -f conftest.er1
11153 cat conftest.err >&5
11154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } && {
11156 test -z "$ac_c_werror_flag" ||
11157 test ! -s conftest.err
11158 } && test -s conftest$ac_exeext && {
11159 test "$cross_compiling" = yes ||
11160 $as_test_x conftest$ac_exeext
11161 }; then
ea04106b
AX
11162 ac_cv_lib_dld_dld_link=yes
11163else
cae5b340
AX
11164 $as_echo "$as_me: failed program was:" >&5
11165sed 's/^/| /' conftest.$ac_ext >&5
11166
11167 ac_cv_lib_dld_dld_link=no
ea04106b 11168fi
cae5b340
AX
11169
11170rm -rf conftest.dSYM
11171rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11172 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
11173LIBS=$ac_check_lib_save_LIBS
11174fi
cae5b340 11175{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
ea04106b 11176$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cae5b340
AX
11177if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11178 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ea04106b
AX
11179fi
11180
11181
11182fi
11183
11184
11185fi
11186
11187
11188fi
11189
11190
11191fi
11192
11193
11194fi
11195
11196 ;;
11197 esac
11198
cae5b340 11199 if test "x$lt_cv_dlopen" != xno; then
68d83c55 11200 enable_dlopen=yes
cae5b340
AX
11201 else
11202 enable_dlopen=no
ea04106b
AX
11203 fi
11204
11205 case $lt_cv_dlopen in
11206 dlopen)
cae5b340
AX
11207 save_CPPFLAGS="$CPPFLAGS"
11208 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
ea04106b 11209
cae5b340 11210 save_LDFLAGS="$LDFLAGS"
ea04106b
AX
11211 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11212
cae5b340 11213 save_LIBS="$LIBS"
ea04106b
AX
11214 LIBS="$lt_cv_dlopen_libs $LIBS"
11215
cae5b340 11216 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
ea04106b 11217$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cae5b340 11218if test "${lt_cv_dlopen_self+set}" = set; then
ea04106b
AX
11219 $as_echo_n "(cached) " >&6
11220else
cae5b340 11221 if test "$cross_compiling" = yes; then :
ea04106b
AX
11222 lt_cv_dlopen_self=cross
11223else
11224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11225 lt_status=$lt_dlunknown
11226 cat > conftest.$ac_ext <<_LT_EOF
cae5b340 11227#line 11227 "configure"
ea04106b
AX
11228#include "confdefs.h"
11229
11230#if HAVE_DLFCN_H
11231#include <dlfcn.h>
11232#endif
11233
11234#include <stdio.h>
11235
11236#ifdef RTLD_GLOBAL
11237# define LT_DLGLOBAL RTLD_GLOBAL
11238#else
11239# ifdef DL_GLOBAL
11240# define LT_DLGLOBAL DL_GLOBAL
11241# else
11242# define LT_DLGLOBAL 0
11243# endif
11244#endif
11245
11246/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11247 find out it does not work in some platform. */
11248#ifndef LT_DLLAZY_OR_NOW
11249# ifdef RTLD_LAZY
11250# define LT_DLLAZY_OR_NOW RTLD_LAZY
11251# else
11252# ifdef DL_LAZY
11253# define LT_DLLAZY_OR_NOW DL_LAZY
11254# else
11255# ifdef RTLD_NOW
11256# define LT_DLLAZY_OR_NOW RTLD_NOW
11257# else
11258# ifdef DL_NOW
11259# define LT_DLLAZY_OR_NOW DL_NOW
11260# else
11261# define LT_DLLAZY_OR_NOW 0
11262# endif
11263# endif
11264# endif
11265# endif
11266#endif
11267
cae5b340 11268void fnord() { int i=42;}
ea04106b
AX
11269int main ()
11270{
11271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11272 int status = $lt_dlunknown;
11273
11274 if (self)
11275 {
11276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cae5b340 11277 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
ea04106b
AX
11278 /* dlclose (self); */
11279 }
11280 else
11281 puts (dlerror ());
11282
11283 return status;
11284}
11285_LT_EOF
cae5b340 11286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ea04106b
AX
11287 (eval $ac_link) 2>&5
11288 ac_status=$?
cae5b340
AX
11289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
ea04106b
AX
11291 (./conftest; exit; ) >&5 2>/dev/null
11292 lt_status=$?
11293 case x$lt_status in
11294 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11295 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11296 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11297 esac
11298 else :
11299 # compilation failed
11300 lt_cv_dlopen_self=no
11301 fi
11302fi
11303rm -fr conftest*
11304
11305
11306fi
cae5b340 11307{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
ea04106b
AX
11308$as_echo "$lt_cv_dlopen_self" >&6; }
11309
cae5b340 11310 if test "x$lt_cv_dlopen_self" = xyes; then
ea04106b 11311 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cae5b340 11312 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
ea04106b 11313$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cae5b340 11314if test "${lt_cv_dlopen_self_static+set}" = set; then
ea04106b
AX
11315 $as_echo_n "(cached) " >&6
11316else
cae5b340 11317 if test "$cross_compiling" = yes; then :
ea04106b
AX
11318 lt_cv_dlopen_self_static=cross
11319else
11320 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11321 lt_status=$lt_dlunknown
11322 cat > conftest.$ac_ext <<_LT_EOF
cae5b340 11323#line 11323 "configure"
ea04106b
AX
11324#include "confdefs.h"
11325
11326#if HAVE_DLFCN_H
11327#include <dlfcn.h>
11328#endif
11329
11330#include <stdio.h>
11331
11332#ifdef RTLD_GLOBAL
11333# define LT_DLGLOBAL RTLD_GLOBAL
11334#else
11335# ifdef DL_GLOBAL
11336# define LT_DLGLOBAL DL_GLOBAL
11337# else
11338# define LT_DLGLOBAL 0
11339# endif
11340#endif
11341
11342/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11343 find out it does not work in some platform. */
11344#ifndef LT_DLLAZY_OR_NOW
11345# ifdef RTLD_LAZY
11346# define LT_DLLAZY_OR_NOW RTLD_LAZY
11347# else
11348# ifdef DL_LAZY
11349# define LT_DLLAZY_OR_NOW DL_LAZY
11350# else
11351# ifdef RTLD_NOW
11352# define LT_DLLAZY_OR_NOW RTLD_NOW
11353# else
11354# ifdef DL_NOW
11355# define LT_DLLAZY_OR_NOW DL_NOW
11356# else
11357# define LT_DLLAZY_OR_NOW 0
11358# endif
11359# endif
11360# endif
11361# endif
11362#endif
11363
cae5b340 11364void fnord() { int i=42;}
ea04106b
AX
11365int main ()
11366{
11367 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11368 int status = $lt_dlunknown;
11369
11370 if (self)
11371 {
11372 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cae5b340 11373 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
ea04106b
AX
11374 /* dlclose (self); */
11375 }
11376 else
11377 puts (dlerror ());
11378
11379 return status;
11380}
11381_LT_EOF
cae5b340 11382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ea04106b
AX
11383 (eval $ac_link) 2>&5
11384 ac_status=$?
cae5b340
AX
11385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
ea04106b
AX
11387 (./conftest; exit; ) >&5 2>/dev/null
11388 lt_status=$?
11389 case x$lt_status in
11390 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11391 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11392 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11393 esac
11394 else :
11395 # compilation failed
11396 lt_cv_dlopen_self_static=no
11397 fi
11398fi
11399rm -fr conftest*
11400
11401
11402fi
cae5b340 11403{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
ea04106b
AX
11404$as_echo "$lt_cv_dlopen_self_static" >&6; }
11405 fi
11406
cae5b340
AX
11407 CPPFLAGS="$save_CPPFLAGS"
11408 LDFLAGS="$save_LDFLAGS"
11409 LIBS="$save_LIBS"
ea04106b
AX
11410 ;;
11411 esac
11412
11413 case $lt_cv_dlopen_self in
11414 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11415 *) enable_dlopen_self=unknown ;;
11416 esac
11417
11418 case $lt_cv_dlopen_self_static in
11419 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11420 *) enable_dlopen_self_static=unknown ;;
11421 esac
11422fi
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440striplib=
11441old_striplib=
cae5b340 11442{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
ea04106b
AX
11443$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11444if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11445 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11446 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cae5b340 11447 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
11448$as_echo "yes" >&6; }
11449else
11450# FIXME - insert some real tests, host_os isn't really good enough
11451 case $host_os in
11452 darwin*)
cae5b340 11453 if test -n "$STRIP" ; then
ea04106b
AX
11454 striplib="$STRIP -x"
11455 old_striplib="$STRIP -S"
cae5b340 11456 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
11457$as_echo "yes" >&6; }
11458 else
cae5b340 11459 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
11460$as_echo "no" >&6; }
11461 fi
11462 ;;
11463 *)
cae5b340 11464 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
11465$as_echo "no" >&6; }
11466 ;;
11467 esac
11468fi
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
cae5b340
AX
11481 # Report which library types will actually be built
11482 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
ea04106b 11483$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cae5b340 11484 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
ea04106b
AX
11485$as_echo "$can_build_shared" >&6; }
11486
cae5b340 11487 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
ea04106b 11488$as_echo_n "checking whether to build shared libraries... " >&6; }
cae5b340 11489 test "$can_build_shared" = "no" && enable_shared=no
ea04106b
AX
11490
11491 # On AIX, shared libraries and static libraries use the same namespace, and
11492 # are all built from PIC.
11493 case $host_os in
11494 aix3*)
cae5b340 11495 test "$enable_shared" = yes && enable_static=no
ea04106b
AX
11496 if test -n "$RANLIB"; then
11497 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11498 postinstall_cmds='$RANLIB $lib'
11499 fi
11500 ;;
11501
11502 aix[4-9]*)
cae5b340
AX
11503 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11504 test "$enable_shared" = yes && enable_static=no
ea04106b
AX
11505 fi
11506 ;;
11507 esac
cae5b340 11508 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
ea04106b
AX
11509$as_echo "$enable_shared" >&6; }
11510
cae5b340 11511 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
ea04106b
AX
11512$as_echo_n "checking whether to build static libraries... " >&6; }
11513 # Make sure either enable_shared or enable_static is yes.
cae5b340
AX
11514 test "$enable_shared" = yes || enable_static=yes
11515 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
ea04106b
AX
11516$as_echo "$enable_static" >&6; }
11517
11518
11519
11520
11521fi
11522ac_ext=c
11523ac_cpp='$CPP $CPPFLAGS'
11524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11526ac_compiler_gnu=$ac_cv_c_compiler_gnu
11527
cae5b340 11528CC="$lt_save_CC"
ea04106b
AX
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542 ac_config_commands="$ac_config_commands libtool"
11543
11544
11545
11546
11547# Only expand once:
11548
11549
11550# By default we simply use the C compiler to build assembly code.
11551
11552test "${CCAS+set}" = set || CCAS=$CC
11553test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11554
11555
11556
11557depcc="$CCAS" am_compiler_list=
11558
cae5b340 11559{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
ea04106b 11560$as_echo_n "checking dependency style of $depcc... " >&6; }
cae5b340 11561if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
ea04106b
AX
11562 $as_echo_n "(cached) " >&6
11563else
11564 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11565 # We make a subdir and do the tests there. Otherwise we can end up
11566 # making bogus files that we don't know about and never remove. For
11567 # instance it was reported that on HP-UX the gcc test will end up
cae5b340
AX
11568 # making a dummy file named `D' -- because `-MD' means `put the output
11569 # in D'.
ea04106b
AX
11570 mkdir conftest.dir
11571 # Copy depcomp to subdir because otherwise we won't find it if we're
11572 # using a relative directory.
11573 cp "$am_depcomp" conftest.dir
11574 cd conftest.dir
11575 # We will build objects and dependencies in a subdirectory because
11576 # it helps to detect inapplicable dependency modes. For instance
11577 # both Tru64's cc and ICC support -MD to output dependencies as a
11578 # side effect of compilation, but ICC will put the dependencies in
11579 # the current directory while Tru64 will put them in the object
11580 # directory.
11581 mkdir sub
11582
11583 am_cv_CCAS_dependencies_compiler_type=none
11584 if test "$am_compiler_list" = ""; then
11585 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11586 fi
11587 am__universal=false
11588
11589
11590 for depmode in $am_compiler_list; do
11591 # Setup a source with many dependencies, because some compilers
11592 # like to wrap large dependency lists on column 80 (with \), and
11593 # we should not choose a depcomp mode which is confused by this.
11594 #
11595 # We need to recreate these files for each test, as the compiler may
11596 # overwrite some of them when testing with obscure command lines.
11597 # This happens at least with the AIX C compiler.
11598 : > sub/conftest.c
11599 for i in 1 2 3 4 5 6; do
11600 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cae5b340
AX
11601 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11602 # Solaris 8's {/usr,}/bin/sh.
11603 touch sub/conftst$i.h
ea04106b
AX
11604 done
11605 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11606
cae5b340 11607 # We check with `-c' and `-o' for the sake of the "dashmstdout"
ea04106b 11608 # mode. It turns out that the SunPro C++ compiler does not properly
cae5b340
AX
11609 # handle `-M -o', and we need to detect this. Also, some Intel
11610 # versions had trouble with output in subdirs
ea04106b
AX
11611 am__obj=sub/conftest.${OBJEXT-o}
11612 am__minus_obj="-o $am__obj"
11613 case $depmode in
11614 gcc)
11615 # This depmode causes a compiler race in universal mode.
11616 test "$am__universal" = false || continue
11617 ;;
11618 nosideeffect)
cae5b340
AX
11619 # after this tag, mechanisms are not by side-effect, so they'll
11620 # only be used when explicitly requested
ea04106b
AX
11621 if test "x$enable_dependency_tracking" = xyes; then
11622 continue
11623 else
11624 break
11625 fi
11626 ;;
cae5b340
AX
11627 msvisualcpp | msvcmsys)
11628 # This compiler won't grok `-c -o', but also, the minuso test has
ea04106b
AX
11629 # not run yet. These depmodes are late enough in the game, and
11630 # so weak that their functioning should not be impacted.
11631 am__obj=conftest.${OBJEXT-o}
11632 am__minus_obj=
11633 ;;
11634 none) break ;;
11635 esac
11636 if depmode=$depmode \
11637 source=sub/conftest.c object=$am__obj \
11638 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11639 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11640 >/dev/null 2>conftest.err &&
11641 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11642 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11643 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11644 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11645 # icc doesn't choke on unknown options, it will just issue warnings
11646 # or remarks (even with -Werror). So we grep stderr for any message
11647 # that says an option was ignored or not supported.
11648 # When given -MP, icc 7.0 and 7.1 complain thusly:
11649 # icc: Command line warning: ignoring option '-M'; no argument required
11650 # The diagnosis changed in icc 8.0:
11651 # icc: Command line remark: option '-MP' not supported
11652 if (grep 'ignoring option' conftest.err ||
11653 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11654 am_cv_CCAS_dependencies_compiler_type=$depmode
11655 break
11656 fi
11657 fi
11658 done
11659
11660 cd ..
11661 rm -rf conftest.dir
11662else
11663 am_cv_CCAS_dependencies_compiler_type=none
11664fi
11665
11666fi
cae5b340 11667{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
ea04106b
AX
11668$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11669CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11670
11671 if
11672 test "x$enable_dependency_tracking" != xno \
11673 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11674 am__fastdepCCAS_TRUE=
11675 am__fastdepCCAS_FALSE='#'
11676else
11677 am__fastdepCCAS_TRUE='#'
11678 am__fastdepCCAS_FALSE=
11679fi
11680
11681
cae5b340
AX
11682if test "x$CC" != xcc; then
11683 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
11684$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11685else
11686 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
11687$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11688fi
11689set dummy $CC; ac_cc=`$as_echo "$2" |
11690 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11691if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
11692 $as_echo_n "(cached) " >&6
11693else
11694 cat >conftest.$ac_ext <<_ACEOF
11695/* confdefs.h. */
11696_ACEOF
11697cat confdefs.h >>conftest.$ac_ext
11698cat >>conftest.$ac_ext <<_ACEOF
11699/* end confdefs.h. */
11700
11701int
11702main ()
11703{
11704
11705 ;
11706 return 0;
11707}
11708_ACEOF
11709# Make sure it works both with $CC and with simple cc.
11710# We do the test twice because some compilers refuse to overwrite an
11711# existing .o file with -o, though they will create one.
11712ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11713rm -f conftest2.*
11714if { (case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11717esac
11718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11719$as_echo "$ac_try_echo") >&5
11720 (eval "$ac_try") 2>&5
11721 ac_status=$?
11722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } &&
11724 test -f conftest2.$ac_objext && { (case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11727esac
11728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11729$as_echo "$ac_try_echo") >&5
11730 (eval "$ac_try") 2>&5
11731 ac_status=$?
11732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); };
11734then
11735 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11736 if test "x$CC" != xcc; then
11737 # Test first that cc exists at all.
11738 if { ac_try='cc -c conftest.$ac_ext >&5'
11739 { (case "(($ac_try" in
11740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11742esac
11743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11744$as_echo "$ac_try_echo") >&5
11745 (eval "$ac_try") 2>&5
11746 ac_status=$?
11747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; }; then
11749 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11750 rm -f conftest2.*
11751 if { (case "(($ac_try" in
11752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753 *) ac_try_echo=$ac_try;;
11754esac
11755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11756$as_echo "$ac_try_echo") >&5
11757 (eval "$ac_try") 2>&5
11758 ac_status=$?
11759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 test -f conftest2.$ac_objext && { (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); };
11771 then
11772 # cc works too.
11773 :
11774 else
11775 # cc exists but doesn't like -o.
11776 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11777 fi
11778 fi
11779 fi
11780else
11781 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11782fi
11783rm -f core conftest*
11784
11785fi
11786if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11787 { $as_echo "$as_me:$LINENO: result: yes" >&5
11788$as_echo "yes" >&6; }
11789else
11790 { $as_echo "$as_me:$LINENO: result: no" >&5
11791$as_echo "no" >&6; }
11792
11793cat >>confdefs.h <<\_ACEOF
11794#define NO_MINUS_C_MINUS_O 1
11795_ACEOF
11796
11797fi
11798
11799# FIXME: we rely on the cache variable name because
11800# there is no other way.
11801set dummy $CC
11802am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11803eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11804if test "$am_t" != yes; then
11805 # Losing compiler, so override with the script.
11806 # FIXME: It is wrong to rewrite CC.
11807 # But if we don't then we get into trouble of one sort or another.
11808 # A longer-term fix would be to have automake use am__CC in this case,
11809 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11810 CC="$am_aux_dir/compile $CC"
11811fi
11812
11813
ea04106b
AX
11814
11815
cae5b340 11816 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
ea04106b 11817$as_echo_n "checking zfs author... " >&6; }
cae5b340 11818 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
ea04106b
AX
11819$as_echo "$ZFS_META_AUTHOR" >&6; }
11820
cae5b340 11821 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
ea04106b 11822$as_echo_n "checking zfs license... " >&6; }
cae5b340 11823 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
ea04106b
AX
11824$as_echo "$ZFS_META_LICENSE" >&6; }
11825
11826
11827
cae5b340 11828 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
ea04106b
AX
11829$as_echo_n "checking linux distribution... " >&6; }
11830 if test -f /etc/toss-release ; then
11831 VENDOR=toss ;
11832 elif test -f /etc/fedora-release ; then
11833 VENDOR=fedora ;
11834 elif test -f /etc/redhat-release ; then
11835 VENDOR=redhat ;
11836 elif test -f /etc/gentoo-release ; then
11837 VENDOR=gentoo ;
11838 elif test -f /etc/arch-release ; then
11839 VENDOR=arch ;
11840 elif test -f /etc/SuSE-release ; then
11841 VENDOR=sles ;
11842 elif test -f /etc/slackware-version ; then
11843 VENDOR=slackware ;
11844 elif test -f /etc/lunar.release ; then
11845 VENDOR=lunar ;
11846 elif test -f /etc/lsb-release ; then
11847 VENDOR=ubuntu ;
11848 elif test -f /etc/debian_version ; then
11849 VENDOR=debian ;
cae5b340
AX
11850 elif test -f /etc/alpine-release ; then
11851 VENDOR=alpine ;
ea04106b
AX
11852 else
11853 VENDOR= ;
11854 fi
cae5b340 11855 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
ea04106b
AX
11856$as_echo "$VENDOR" >&6; }
11857
11858
cae5b340 11859 { $as_echo "$as_me:$LINENO: checking default package type" >&5
ea04106b
AX
11860$as_echo_n "checking default package type... " >&6; }
11861 case "$VENDOR" in
11862 toss) DEFAULT_PACKAGE=rpm ;;
11863 redhat) DEFAULT_PACKAGE=rpm ;;
11864 fedora) DEFAULT_PACKAGE=rpm ;;
11865 gentoo) DEFAULT_PACKAGE=tgz ;;
cae5b340 11866 alpine) DEFAULT_PACKAGE=tgz ;;
ea04106b
AX
11867 arch) DEFAULT_PACKAGE=tgz ;;
11868 sles) DEFAULT_PACKAGE=rpm ;;
11869 slackware) DEFAULT_PACKAGE=tgz ;;
11870 lunar) DEFAULT_PACKAGE=tgz ;;
11871 ubuntu) DEFAULT_PACKAGE=deb ;;
11872 debian) DEFAULT_PACKAGE=deb ;;
11873 *) DEFAULT_PACKAGE=rpm ;;
11874 esac
cae5b340 11875 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
ea04106b
AX
11876$as_echo "$DEFAULT_PACKAGE" >&6; }
11877
11878
11879 DEFAULT_INIT_DIR=$sysconfdir/init.d
cae5b340 11880 { $as_echo "$as_me:$LINENO: checking default init directory" >&5
ea04106b 11881$as_echo_n "checking default init directory... " >&6; }
cae5b340 11882 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
ea04106b
AX
11883$as_echo "$DEFAULT_INIT_DIR" >&6; }
11884
11885
cae5b340 11886 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
ea04106b
AX
11887$as_echo_n "checking default init script type... " >&6; }
11888 case "$VENDOR" in
11889 toss) DEFAULT_INIT_SCRIPT=redhat ;;
11890 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
11891 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
cae5b340
AX
11892 gentoo) DEFAULT_INIT_SCRIPT=openrc ;;
11893 alpine) DEFAULT_INIT_SCRIPT=openrc ;;
ea04106b
AX
11894 arch) DEFAULT_INIT_SCRIPT=lsb ;;
11895 sles) DEFAULT_INIT_SCRIPT=lsb ;;
11896 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
11897 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
11898 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
11899 debian) DEFAULT_INIT_SCRIPT=lsb ;;
11900 *) DEFAULT_INIT_SCRIPT=lsb ;;
11901 esac
cae5b340 11902 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
ea04106b
AX
11903$as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11904
11905
cae5b340 11906 { $as_echo "$as_me:$LINENO: checking default init config direectory" >&5
e10b0808
AX
11907$as_echo_n "checking default init config direectory... " >&6; }
11908 case "$VENDOR" in
cae5b340 11909 alpine) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
e10b0808
AX
11910 gentoo) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
11911 toss) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
11912 redhat) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
11913 fedora) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
11914 sles) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
11915 ubuntu) DEFAULT_INITCONF_DIR=/etc/default ;;
11916 debian) DEFAULT_INITCONF_DIR=/etc/default ;;
11917 *) DEFAULT_INITCONF_DIR=/etc/default ;;
11918 esac
cae5b340 11919 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INITCONF_DIR" >&5
e10b0808
AX
11920$as_echo "$DEFAULT_INITCONF_DIR" >&6; }
11921
11922
cae5b340 11923 { $as_echo "$as_me:$LINENO: checking whether initramfs-tools is available" >&5
e10b0808
AX
11924$as_echo_n "checking whether initramfs-tools is available... " >&6; }
11925 if test -d /usr/share/initramfs-tools ; then
11926 DEFINE_INITRAMFS='--define "_initramfs 1"'
cae5b340 11927 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
11928$as_echo "yes" >&6; }
11929 else
11930 DEFINE_INITRAMFS=''
cae5b340 11931 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
11932$as_echo "no" >&6; }
11933 fi
11934
11935
ea04106b
AX
11936
11937 RPM=rpm
11938 RPMBUILD=rpmbuild
11939
cae5b340 11940 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
ea04106b 11941$as_echo_n "checking whether $RPM is available... " >&6; }
cae5b340 11942 if tmp=$($RPM --version 2>/dev/null); then
ea04106b
AX
11943
11944 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11945 HAVE_RPM=yes
cae5b340 11946 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
ea04106b
AX
11947$as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11948
11949else
11950
11951 HAVE_RPM=no
cae5b340 11952 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
ea04106b
AX
11953$as_echo "$HAVE_RPM" >&6; }
11954
11955fi
11956
cae5b340
AX
11957
11958 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
ea04106b 11959$as_echo_n "checking whether $RPMBUILD is available... " >&6; }
cae5b340 11960 if tmp=$($RPMBUILD --version 2>/dev/null); then
ea04106b
AX
11961
11962 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11963 HAVE_RPMBUILD=yes
cae5b340 11964 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
ea04106b
AX
11965$as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11966
11967else
11968
11969 HAVE_RPMBUILD=no
cae5b340 11970 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
ea04106b
AX
11971$as_echo "$HAVE_RPMBUILD" >&6; }
11972
11973fi
11974
cae5b340
AX
11975
11976 RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1"'
e10b0808 11977 RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
ea04106b
AX
11978 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
11979 RPM_DEFINE_DKMS=
11980
11981 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
11982 SRPM_DEFINE_UTIL=
11983 SRPM_DEFINE_KMOD=
11984 SRPM_DEFINE_DKMS=
11985
11986 RPM_SPEC_DIR="rpm/generic"
11987
11988# Check whether --with-spec was given.
cae5b340 11989if test "${with_spec+set}" = set; then
ea04106b
AX
11990 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
11991fi
11992
11993
cae5b340 11994 { $as_echo "$as_me:$LINENO: checking whether spec files are available" >&5
ea04106b 11995$as_echo_n "checking whether spec files are available... " >&6; }
cae5b340 11996 { $as_echo "$as_me:$LINENO: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
ea04106b
AX
11997$as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018 DPKG=dpkg
12019 DPKGBUILD=dpkg-buildpackage
12020
cae5b340 12021 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
ea04106b 12022$as_echo_n "checking whether $DPKG is available... " >&6; }
cae5b340 12023 if tmp=$($DPKG --version 2>/dev/null); then
ea04106b
AX
12024
12025 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
12026 HAVE_DPKG=yes
cae5b340 12027 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
ea04106b
AX
12028$as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12029
12030else
12031
12032 HAVE_DPKG=no
cae5b340 12033 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
ea04106b
AX
12034$as_echo "$HAVE_DPKG" >&6; }
12035
12036fi
12037
cae5b340
AX
12038
12039 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
ea04106b 12040$as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
cae5b340 12041 if tmp=$($DPKGBUILD --version 2>/dev/null); then
ea04106b
AX
12042
12043 DPKGBUILD_VERSION=$(echo $tmp | \
12044 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
12045 HAVE_DPKGBUILD=yes
cae5b340 12046 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
ea04106b
AX
12047$as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12048
12049else
12050
12051 HAVE_DPKGBUILD=no
cae5b340 12052 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
ea04106b
AX
12053$as_echo "$HAVE_DPKGBUILD" >&6; }
12054
12055fi
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
cae5b340 12066
ea04106b
AX
12067 ALIEN=alien
12068
cae5b340 12069 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
ea04106b 12070$as_echo_n "checking whether $ALIEN is available... " >&6; }
cae5b340 12071 if tmp=$($ALIEN --version 2>/dev/null); then
ea04106b
AX
12072
12073 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
12074 HAVE_ALIEN=yes
cae5b340 12075 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
ea04106b
AX
12076$as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12077
12078else
12079
12080 HAVE_ALIEN=no
cae5b340 12081 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
ea04106b
AX
12082$as_echo "$HAVE_ALIEN" >&6; }
12083
12084fi
12085
12086
12087
12088
12089
12090
12091
ea04106b
AX
12092
12093 ZFS_CONFIG=all
12094
12095# Check whether --with-config was given.
cae5b340 12096if test "${with_config+set}" = set; then
ea04106b
AX
12097 withval=$with_config; ZFS_CONFIG="$withval"
12098fi
12099
12100 # Check whether --enable-linux-builtin was given.
cae5b340 12101if test "${enable_linux_builtin+set}" = set; then
ea04106b
AX
12102 enableval=$enable_linux_builtin;
12103else
12104 enable_linux_builtin=no
12105fi
12106
12107
cae5b340 12108 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
ea04106b 12109$as_echo_n "checking zfs config... " >&6; }
cae5b340 12110 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
ea04106b
AX
12111$as_echo "$ZFS_CONFIG" >&6; };
12112
12113
12114
12115
cae5b340 12116 { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
ea04106b
AX
12117$as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12118
12119 saved_flags="$CFLAGS"
12120 CFLAGS="$CFLAGS -Wunused-but-set-variable"
12121
cae5b340
AX
12122 cat >conftest.$ac_ext <<_ACEOF
12123/* confdefs.h. */
12124_ACEOF
12125cat confdefs.h >>conftest.$ac_ext
12126cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
12127/* end confdefs.h. */
12128
12129int
12130main ()
12131{
12132
12133 ;
12134 return 0;
12135}
12136_ACEOF
cae5b340
AX
12137rm -f conftest.$ac_objext
12138if { (ac_try="$ac_compile"
12139case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142esac
12143eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12144$as_echo "$ac_try_echo") >&5
12145 (eval "$ac_compile") 2>conftest.er1
12146 ac_status=$?
12147 grep -v '^ *+' conftest.er1 >conftest.err
12148 rm -f conftest.er1
12149 cat conftest.err >&5
12150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } && {
12152 test -z "$ac_c_werror_flag" ||
12153 test ! -s conftest.err
12154 } && test -s conftest.$ac_objext; then
ea04106b
AX
12155
12156 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
cae5b340 12157 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
12158$as_echo "yes" >&6; }
12159
12160else
cae5b340
AX
12161 $as_echo "$as_me: failed program was:" >&5
12162sed 's/^/| /' conftest.$ac_ext >&5
12163
ea04106b
AX
12164
12165 NO_UNUSED_BUT_SET_VARIABLE=
cae5b340 12166 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
12167$as_echo "no" >&6; }
12168
12169fi
cae5b340 12170
ea04106b
AX
12171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12172
12173 CFLAGS="$saved_flags"
12174
12175
12176
cae5b340 12177 { $as_echo "$as_me:$LINENO: checking for -Wno-bool-compare support" >&5
e10b0808
AX
12178$as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12179
12180 saved_flags="$CFLAGS"
12181 CFLAGS="$CFLAGS -Wbool-compare"
12182
cae5b340
AX
12183 cat >conftest.$ac_ext <<_ACEOF
12184/* confdefs.h. */
12185_ACEOF
12186cat confdefs.h >>conftest.$ac_ext
12187cat >>conftest.$ac_ext <<_ACEOF
e10b0808
AX
12188/* end confdefs.h. */
12189
12190int
12191main ()
12192{
12193
12194 ;
12195 return 0;
12196}
12197_ACEOF
cae5b340
AX
12198rm -f conftest.$ac_objext
12199if { (ac_try="$ac_compile"
12200case "(($ac_try" in
12201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12203esac
12204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12205$as_echo "$ac_try_echo") >&5
12206 (eval "$ac_compile") 2>conftest.er1
12207 ac_status=$?
12208 grep -v '^ *+' conftest.er1 >conftest.err
12209 rm -f conftest.er1
12210 cat conftest.err >&5
12211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } && {
12213 test -z "$ac_c_werror_flag" ||
12214 test ! -s conftest.err
12215 } && test -s conftest.$ac_objext; then
e10b0808
AX
12216
12217 NO_BOOL_COMPARE=-Wno-bool-compare
cae5b340 12218 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
12219$as_echo "yes" >&6; }
12220
12221else
cae5b340
AX
12222 $as_echo "$as_me: failed program was:" >&5
12223sed 's/^/| /' conftest.$ac_ext >&5
12224
e10b0808
AX
12225
12226 NO_BOOL_COMPARE=
cae5b340 12227 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
12228$as_echo "no" >&6; }
12229
12230fi
cae5b340 12231
e10b0808
AX
12232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233
12234 CFLAGS="$saved_flags"
12235
12236
12237
cae5b340
AX
12238 case "$host_cpu" in
12239 x86_64 | x86 | i686)
ea04106b 12240
cae5b340
AX
12241 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE" >&5
12242$as_echo_n "checking whether host toolchain supports SSE... " >&6; }
ea04106b 12243
cae5b340
AX
12244 cat >conftest.$ac_ext <<_ACEOF
12245/* confdefs.h. */
12246_ACEOF
12247cat confdefs.h >>conftest.$ac_ext
12248cat >>conftest.$ac_ext <<_ACEOF
12249/* end confdefs.h. */
ea04106b 12250
cae5b340
AX
12251 void main()
12252 {
12253 __asm__ __volatile__("xorps %xmm0, %xmm1");
12254 }
ea04106b 12255
cae5b340
AX
12256_ACEOF
12257rm -f conftest.$ac_objext conftest$ac_exeext
12258if { (ac_try="$ac_link"
12259case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12262esac
12263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12264$as_echo "$ac_try_echo") >&5
12265 (eval "$ac_link") 2>conftest.er1
12266 ac_status=$?
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
12270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } && {
12272 test -z "$ac_c_werror_flag" ||
12273 test ! -s conftest.err
12274 } && test -s conftest$ac_exeext && {
12275 test "$cross_compiling" = yes ||
12276 $as_test_x conftest$ac_exeext
12277 }; then
ea04106b 12278
ea04106b 12279
cae5b340
AX
12280cat >>confdefs.h <<\_ACEOF
12281#define HAVE_SSE 1
12282_ACEOF
ea04106b 12283
cae5b340
AX
12284 { $as_echo "$as_me:$LINENO: result: yes" >&5
12285$as_echo "yes" >&6; }
ea04106b
AX
12286
12287else
cae5b340
AX
12288 $as_echo "$as_me: failed program was:" >&5
12289sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 12290
cae5b340
AX
12291
12292 { $as_echo "$as_me:$LINENO: result: no" >&5
12293$as_echo "no" >&6; }
ea04106b
AX
12294
12295fi
12296
cae5b340
AX
12297rm -rf conftest.dSYM
12298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12299 conftest$ac_exeext conftest.$ac_ext
ea04106b 12300
ea04106b 12301
cae5b340
AX
12302 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE2" >&5
12303$as_echo_n "checking whether host toolchain supports SSE2... " >&6; }
ea04106b 12304
cae5b340
AX
12305 cat >conftest.$ac_ext <<_ACEOF
12306/* confdefs.h. */
12307_ACEOF
12308cat confdefs.h >>conftest.$ac_ext
12309cat >>conftest.$ac_ext <<_ACEOF
12310/* end confdefs.h. */
ea04106b 12311
cae5b340
AX
12312 void main()
12313 {
12314 __asm__ __volatile__("pxor %xmm0, %xmm1");
12315 }
ea04106b 12316
cae5b340
AX
12317_ACEOF
12318rm -f conftest.$ac_objext conftest$ac_exeext
12319if { (ac_try="$ac_link"
12320case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12323esac
12324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12325$as_echo "$ac_try_echo") >&5
12326 (eval "$ac_link") 2>conftest.er1
12327 ac_status=$?
12328 grep -v '^ *+' conftest.er1 >conftest.err
12329 rm -f conftest.er1
12330 cat conftest.err >&5
12331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } && {
12333 test -z "$ac_c_werror_flag" ||
12334 test ! -s conftest.err
12335 } && test -s conftest$ac_exeext && {
12336 test "$cross_compiling" = yes ||
12337 $as_test_x conftest$ac_exeext
12338 }; then
ea04106b 12339
ea04106b 12340
cae5b340
AX
12341cat >>confdefs.h <<\_ACEOF
12342#define HAVE_SSE2 1
12343_ACEOF
ea04106b 12344
cae5b340
AX
12345 { $as_echo "$as_me:$LINENO: result: yes" >&5
12346$as_echo "yes" >&6; }
ea04106b 12347
cae5b340
AX
12348else
12349 $as_echo "$as_me: failed program was:" >&5
12350sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 12351
ea04106b 12352
cae5b340
AX
12353 { $as_echo "$as_me:$LINENO: result: no" >&5
12354$as_echo "no" >&6; }
ea04106b
AX
12355
12356fi
12357
cae5b340
AX
12358rm -rf conftest.dSYM
12359rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12360 conftest$ac_exeext conftest.$ac_ext
ea04106b 12361
ea04106b 12362
cae5b340
AX
12363 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE3" >&5
12364$as_echo_n "checking whether host toolchain supports SSE3... " >&6; }
ea04106b 12365
cae5b340
AX
12366 cat >conftest.$ac_ext <<_ACEOF
12367/* confdefs.h. */
12368_ACEOF
12369cat confdefs.h >>conftest.$ac_ext
12370cat >>conftest.$ac_ext <<_ACEOF
12371/* end confdefs.h. */
ea04106b 12372
cae5b340
AX
12373 void main()
12374 {
12375 char v[16];
12376 __asm__ __volatile__("lddqu %0,%%xmm0" :: "m"(v[0]));
12377 }
ea04106b 12378
cae5b340
AX
12379_ACEOF
12380rm -f conftest.$ac_objext conftest$ac_exeext
12381if { (ac_try="$ac_link"
12382case "(($ac_try" in
12383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384 *) ac_try_echo=$ac_try;;
12385esac
12386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12387$as_echo "$ac_try_echo") >&5
12388 (eval "$ac_link") 2>conftest.er1
12389 ac_status=$?
12390 grep -v '^ *+' conftest.er1 >conftest.err
12391 rm -f conftest.er1
12392 cat conftest.err >&5
12393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } && {
12395 test -z "$ac_c_werror_flag" ||
12396 test ! -s conftest.err
12397 } && test -s conftest$ac_exeext && {
12398 test "$cross_compiling" = yes ||
12399 $as_test_x conftest$ac_exeext
12400 }; then
ea04106b 12401
ea04106b 12402
cae5b340
AX
12403cat >>confdefs.h <<\_ACEOF
12404#define HAVE_SSE3 1
12405_ACEOF
ea04106b 12406
cae5b340
AX
12407 { $as_echo "$as_me:$LINENO: result: yes" >&5
12408$as_echo "yes" >&6; }
ea04106b
AX
12409
12410else
cae5b340
AX
12411 $as_echo "$as_me: failed program was:" >&5
12412sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 12413
ea04106b 12414
cae5b340
AX
12415 { $as_echo "$as_me:$LINENO: result: no" >&5
12416$as_echo "no" >&6; }
ea04106b
AX
12417
12418fi
ea04106b 12419
cae5b340
AX
12420rm -rf conftest.dSYM
12421rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12422 conftest$ac_exeext conftest.$ac_ext
ea04106b 12423
ea04106b 12424
cae5b340
AX
12425 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSSE3" >&5
12426$as_echo_n "checking whether host toolchain supports SSSE3... " >&6; }
ea04106b 12427
cae5b340
AX
12428 cat >conftest.$ac_ext <<_ACEOF
12429/* confdefs.h. */
12430_ACEOF
12431cat confdefs.h >>conftest.$ac_ext
12432cat >>conftest.$ac_ext <<_ACEOF
12433/* end confdefs.h. */
ea04106b 12434
cae5b340
AX
12435 void main()
12436 {
12437 __asm__ __volatile__("pshufb %xmm0,%xmm1");
12438 }
ea04106b 12439
cae5b340
AX
12440_ACEOF
12441rm -f conftest.$ac_objext conftest$ac_exeext
12442if { (ac_try="$ac_link"
12443case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12446esac
12447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12448$as_echo "$ac_try_echo") >&5
12449 (eval "$ac_link") 2>conftest.er1
12450 ac_status=$?
12451 grep -v '^ *+' conftest.er1 >conftest.err
12452 rm -f conftest.er1
12453 cat conftest.err >&5
12454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } && {
12456 test -z "$ac_c_werror_flag" ||
12457 test ! -s conftest.err
12458 } && test -s conftest$ac_exeext && {
12459 test "$cross_compiling" = yes ||
12460 $as_test_x conftest$ac_exeext
12461 }; then
ea04106b 12462
ea04106b 12463
cae5b340
AX
12464cat >>confdefs.h <<\_ACEOF
12465#define HAVE_SSSE3 1
12466_ACEOF
ea04106b 12467
cae5b340
AX
12468 { $as_echo "$as_me:$LINENO: result: yes" >&5
12469$as_echo "yes" >&6; }
ea04106b
AX
12470
12471else
cae5b340
AX
12472 $as_echo "$as_me: failed program was:" >&5
12473sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 12474
ea04106b 12475
cae5b340
AX
12476 { $as_echo "$as_me:$LINENO: result: no" >&5
12477$as_echo "no" >&6; }
ea04106b 12478
cae5b340 12479fi
ea04106b 12480
cae5b340
AX
12481rm -rf conftest.dSYM
12482rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12483 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
12484
12485
cae5b340
AX
12486 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE4.1" >&5
12487$as_echo_n "checking whether host toolchain supports SSE4.1... " >&6; }
ea04106b 12488
cae5b340
AX
12489 cat >conftest.$ac_ext <<_ACEOF
12490/* confdefs.h. */
12491_ACEOF
12492cat confdefs.h >>conftest.$ac_ext
12493cat >>conftest.$ac_ext <<_ACEOF
12494/* end confdefs.h. */
ea04106b 12495
cae5b340
AX
12496 void main()
12497 {
12498 __asm__ __volatile__("pmaxsb %xmm0,%xmm1");
12499 }
ea04106b 12500
cae5b340
AX
12501_ACEOF
12502rm -f conftest.$ac_objext conftest$ac_exeext
12503if { (ac_try="$ac_link"
12504case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12507esac
12508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12509$as_echo "$ac_try_echo") >&5
12510 (eval "$ac_link") 2>conftest.er1
12511 ac_status=$?
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
12515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } && {
12517 test -z "$ac_c_werror_flag" ||
12518 test ! -s conftest.err
12519 } && test -s conftest$ac_exeext && {
12520 test "$cross_compiling" = yes ||
12521 $as_test_x conftest$ac_exeext
12522 }; then
ea04106b 12523
ea04106b 12524
cae5b340
AX
12525cat >>confdefs.h <<\_ACEOF
12526#define HAVE_SSE4_1 1
12527_ACEOF
ea04106b 12528
cae5b340
AX
12529 { $as_echo "$as_me:$LINENO: result: yes" >&5
12530$as_echo "yes" >&6; }
ea04106b
AX
12531
12532else
cae5b340
AX
12533 $as_echo "$as_me: failed program was:" >&5
12534sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 12535
ea04106b 12536
cae5b340
AX
12537 { $as_echo "$as_me:$LINENO: result: no" >&5
12538$as_echo "no" >&6; }
ea04106b 12539
cae5b340 12540fi
ea04106b 12541
cae5b340
AX
12542rm -rf conftest.dSYM
12543rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12544 conftest$ac_exeext conftest.$ac_ext
ea04106b 12545
ea04106b 12546
cae5b340
AX
12547 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE4.2" >&5
12548$as_echo_n "checking whether host toolchain supports SSE4.2... " >&6; }
ea04106b 12549
cae5b340
AX
12550 cat >conftest.$ac_ext <<_ACEOF
12551/* confdefs.h. */
12552_ACEOF
12553cat confdefs.h >>conftest.$ac_ext
12554cat >>conftest.$ac_ext <<_ACEOF
12555/* end confdefs.h. */
ea04106b 12556
cae5b340
AX
12557 void main()
12558 {
12559 __asm__ __volatile__("pcmpgtq %xmm0, %xmm1");
12560 }
ea04106b 12561
cae5b340
AX
12562_ACEOF
12563rm -f conftest.$ac_objext conftest$ac_exeext
12564if { (ac_try="$ac_link"
12565case "(($ac_try" in
12566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12568esac
12569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12570$as_echo "$ac_try_echo") >&5
12571 (eval "$ac_link") 2>conftest.er1
12572 ac_status=$?
12573 grep -v '^ *+' conftest.er1 >conftest.err
12574 rm -f conftest.er1
12575 cat conftest.err >&5
12576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } && {
12578 test -z "$ac_c_werror_flag" ||
12579 test ! -s conftest.err
12580 } && test -s conftest$ac_exeext && {
12581 test "$cross_compiling" = yes ||
12582 $as_test_x conftest$ac_exeext
12583 }; then
ea04106b
AX
12584
12585
cae5b340
AX
12586cat >>confdefs.h <<\_ACEOF
12587#define HAVE_SSE4_2 1
12588_ACEOF
ea04106b 12589
cae5b340
AX
12590 { $as_echo "$as_me:$LINENO: result: yes" >&5
12591$as_echo "yes" >&6; }
ea04106b 12592
cae5b340
AX
12593else
12594 $as_echo "$as_me: failed program was:" >&5
12595sed 's/^/| /' conftest.$ac_ext >&5
ea04106b
AX
12596
12597
cae5b340
AX
12598 { $as_echo "$as_me:$LINENO: result: no" >&5
12599$as_echo "no" >&6; }
ea04106b 12600
ea04106b
AX
12601fi
12602
cae5b340
AX
12603rm -rf conftest.dSYM
12604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12605 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
12606
12607
cae5b340
AX
12608 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX" >&5
12609$as_echo_n "checking whether host toolchain supports AVX... " >&6; }
ea04106b 12610
cae5b340
AX
12611 cat >conftest.$ac_ext <<_ACEOF
12612/* confdefs.h. */
12613_ACEOF
12614cat confdefs.h >>conftest.$ac_ext
12615cat >>conftest.$ac_ext <<_ACEOF
12616/* end confdefs.h. */
ea04106b 12617
cae5b340
AX
12618 void main()
12619 {
12620 char v[32];
12621 __asm__ __volatile__("vmovdqa %0,%%ymm0" :: "m"(v[0]));
12622 }
ea04106b 12623
cae5b340
AX
12624_ACEOF
12625rm -f conftest.$ac_objext conftest$ac_exeext
12626if { (ac_try="$ac_link"
12627case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12630esac
12631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12632$as_echo "$ac_try_echo") >&5
12633 (eval "$ac_link") 2>conftest.er1
12634 ac_status=$?
12635 grep -v '^ *+' conftest.er1 >conftest.err
12636 rm -f conftest.er1
12637 cat conftest.err >&5
12638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } && {
12640 test -z "$ac_c_werror_flag" ||
12641 test ! -s conftest.err
12642 } && test -s conftest$ac_exeext && {
12643 test "$cross_compiling" = yes ||
12644 $as_test_x conftest$ac_exeext
12645 }; then
ea04106b 12646
cae5b340
AX
12647 { $as_echo "$as_me:$LINENO: result: yes" >&5
12648$as_echo "yes" >&6; }
ea04106b 12649
cae5b340
AX
12650cat >>confdefs.h <<\_ACEOF
12651#define HAVE_AVX 1
12652_ACEOF
ea04106b 12653
ea04106b 12654
cae5b340
AX
12655else
12656 $as_echo "$as_me: failed program was:" >&5
12657sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 12658
ea04106b 12659
cae5b340
AX
12660 { $as_echo "$as_me:$LINENO: result: no" >&5
12661$as_echo "no" >&6; }
ea04106b 12662
cae5b340 12663fi
ea04106b 12664
cae5b340
AX
12665rm -rf conftest.dSYM
12666rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12667 conftest$ac_exeext conftest.$ac_ext
ea04106b 12668
ea04106b 12669
cae5b340
AX
12670 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX2" >&5
12671$as_echo_n "checking whether host toolchain supports AVX2... " >&6; }
ea04106b 12672
cae5b340
AX
12673 cat >conftest.$ac_ext <<_ACEOF
12674/* confdefs.h. */
12675_ACEOF
12676cat confdefs.h >>conftest.$ac_ext
12677cat >>conftest.$ac_ext <<_ACEOF
12678/* end confdefs.h. */
ea04106b 12679
ea04106b 12680
cae5b340
AX
12681 void main()
12682 {
12683 __asm__ __volatile__("vpshufb %ymm0,%ymm1,%ymm2");
12684 }
ea04106b 12685
cae5b340
AX
12686_ACEOF
12687rm -f conftest.$ac_objext conftest$ac_exeext
12688if { (ac_try="$ac_link"
12689case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12692esac
12693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12694$as_echo "$ac_try_echo") >&5
12695 (eval "$ac_link") 2>conftest.er1
12696 ac_status=$?
12697 grep -v '^ *+' conftest.er1 >conftest.err
12698 rm -f conftest.er1
12699 cat conftest.err >&5
12700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } && {
12702 test -z "$ac_c_werror_flag" ||
12703 test ! -s conftest.err
12704 } && test -s conftest$ac_exeext && {
12705 test "$cross_compiling" = yes ||
12706 $as_test_x conftest$ac_exeext
12707 }; then
ea04106b 12708
cae5b340
AX
12709 { $as_echo "$as_me:$LINENO: result: yes" >&5
12710$as_echo "yes" >&6; }
ea04106b 12711
cae5b340
AX
12712cat >>confdefs.h <<\_ACEOF
12713#define HAVE_AVX2 1
12714_ACEOF
ea04106b 12715
ea04106b
AX
12716
12717else
cae5b340
AX
12718 $as_echo "$as_me: failed program was:" >&5
12719sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 12720
ea04106b 12721
cae5b340
AX
12722 { $as_echo "$as_me:$LINENO: result: no" >&5
12723$as_echo "no" >&6; }
ea04106b
AX
12724
12725fi
12726
cae5b340
AX
12727rm -rf conftest.dSYM
12728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12729 conftest$ac_exeext conftest.$ac_ext
ea04106b 12730
ea04106b 12731
cae5b340
AX
12732 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512F" >&5
12733$as_echo_n "checking whether host toolchain supports AVX512F... " >&6; }
ea04106b 12734
cae5b340
AX
12735 cat >conftest.$ac_ext <<_ACEOF
12736/* confdefs.h. */
12737_ACEOF
12738cat confdefs.h >>conftest.$ac_ext
12739cat >>conftest.$ac_ext <<_ACEOF
12740/* end confdefs.h. */
ea04106b 12741
ea04106b 12742
cae5b340
AX
12743 void main()
12744 {
12745 __asm__ __volatile__("vpandd %zmm0,%zmm1,%zmm2");
12746 }
ea04106b 12747
cae5b340
AX
12748_ACEOF
12749rm -f conftest.$ac_objext conftest$ac_exeext
12750if { (ac_try="$ac_link"
12751case "(($ac_try" in
12752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753 *) ac_try_echo=$ac_try;;
12754esac
12755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12756$as_echo "$ac_try_echo") >&5
12757 (eval "$ac_link") 2>conftest.er1
12758 ac_status=$?
12759 grep -v '^ *+' conftest.er1 >conftest.err
12760 rm -f conftest.er1
12761 cat conftest.err >&5
12762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } && {
12764 test -z "$ac_c_werror_flag" ||
12765 test ! -s conftest.err
12766 } && test -s conftest$ac_exeext && {
12767 test "$cross_compiling" = yes ||
12768 $as_test_x conftest$ac_exeext
12769 }; then
ea04106b 12770
cae5b340
AX
12771 { $as_echo "$as_me:$LINENO: result: yes" >&5
12772$as_echo "yes" >&6; }
ea04106b 12773
cae5b340
AX
12774cat >>confdefs.h <<\_ACEOF
12775#define HAVE_AVX512F 1
12776_ACEOF
e10b0808 12777
e10b0808 12778
ea04106b 12779else
cae5b340
AX
12780 $as_echo "$as_me: failed program was:" >&5
12781sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 12782
ea04106b 12783
cae5b340
AX
12784 { $as_echo "$as_me:$LINENO: result: no" >&5
12785$as_echo "no" >&6; }
ea04106b
AX
12786
12787fi
ea04106b 12788
cae5b340
AX
12789rm -rf conftest.dSYM
12790rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12791 conftest$ac_exeext conftest.$ac_ext
ea04106b 12792
ea04106b 12793
cae5b340
AX
12794 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512CD" >&5
12795$as_echo_n "checking whether host toolchain supports AVX512CD... " >&6; }
ea04106b 12796
cae5b340
AX
12797 cat >conftest.$ac_ext <<_ACEOF
12798/* confdefs.h. */
12799_ACEOF
12800cat confdefs.h >>conftest.$ac_ext
12801cat >>conftest.$ac_ext <<_ACEOF
12802/* end confdefs.h. */
ea04106b 12803
ea04106b 12804
cae5b340
AX
12805 void main()
12806 {
12807 __asm__ __volatile__("vplzcntd %zmm0,%zmm1");
12808 }
ea04106b 12809
cae5b340
AX
12810_ACEOF
12811rm -f conftest.$ac_objext conftest$ac_exeext
12812if { (ac_try="$ac_link"
12813case "(($ac_try" in
12814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12816esac
12817eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12818$as_echo "$ac_try_echo") >&5
12819 (eval "$ac_link") 2>conftest.er1
12820 ac_status=$?
12821 grep -v '^ *+' conftest.er1 >conftest.err
12822 rm -f conftest.er1
12823 cat conftest.err >&5
12824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } && {
12826 test -z "$ac_c_werror_flag" ||
12827 test ! -s conftest.err
12828 } && test -s conftest$ac_exeext && {
12829 test "$cross_compiling" = yes ||
12830 $as_test_x conftest$ac_exeext
12831 }; then
ea04106b 12832
cae5b340
AX
12833 { $as_echo "$as_me:$LINENO: result: yes" >&5
12834$as_echo "yes" >&6; }
ea04106b 12835
cae5b340
AX
12836cat >>confdefs.h <<\_ACEOF
12837#define HAVE_AVX512CD 1
12838_ACEOF
ea04106b 12839
ea04106b 12840
cae5b340
AX
12841else
12842 $as_echo "$as_me: failed program was:" >&5
12843sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 12844
ea04106b 12845
cae5b340
AX
12846 { $as_echo "$as_me:$LINENO: result: no" >&5
12847$as_echo "no" >&6; }
ea04106b
AX
12848
12849fi
12850
cae5b340
AX
12851rm -rf conftest.dSYM
12852rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12853 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
12854
12855
cae5b340
AX
12856 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512DQ" >&5
12857$as_echo_n "checking whether host toolchain supports AVX512DQ... " >&6; }
ea04106b 12858
cae5b340
AX
12859 cat >conftest.$ac_ext <<_ACEOF
12860/* confdefs.h. */
12861_ACEOF
12862cat confdefs.h >>conftest.$ac_ext
12863cat >>conftest.$ac_ext <<_ACEOF
12864/* end confdefs.h. */
ea04106b 12865
ea04106b 12866
cae5b340
AX
12867 void main()
12868 {
12869 __asm__ __volatile__("vandpd %zmm0,%zmm1,%zmm2");
12870 }
ea04106b 12871
cae5b340
AX
12872_ACEOF
12873rm -f conftest.$ac_objext conftest$ac_exeext
12874if { (ac_try="$ac_link"
12875case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12878esac
12879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12880$as_echo "$ac_try_echo") >&5
12881 (eval "$ac_link") 2>conftest.er1
12882 ac_status=$?
12883 grep -v '^ *+' conftest.er1 >conftest.err
12884 rm -f conftest.er1
12885 cat conftest.err >&5
12886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } && {
12888 test -z "$ac_c_werror_flag" ||
12889 test ! -s conftest.err
12890 } && test -s conftest$ac_exeext && {
12891 test "$cross_compiling" = yes ||
12892 $as_test_x conftest$ac_exeext
12893 }; then
ea04106b 12894
cae5b340
AX
12895 { $as_echo "$as_me:$LINENO: result: yes" >&5
12896$as_echo "yes" >&6; }
ea04106b 12897
cae5b340
AX
12898cat >>confdefs.h <<\_ACEOF
12899#define HAVE_AVX512DQ 1
12900_ACEOF
ea04106b 12901
ea04106b 12902
cae5b340
AX
12903else
12904 $as_echo "$as_me: failed program was:" >&5
12905sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 12906
ea04106b 12907
cae5b340
AX
12908 { $as_echo "$as_me:$LINENO: result: no" >&5
12909$as_echo "no" >&6; }
ea04106b
AX
12910
12911fi
12912
cae5b340
AX
12913rm -rf conftest.dSYM
12914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12915 conftest$ac_exeext conftest.$ac_ext
ea04106b 12916
ea04106b 12917
cae5b340
AX
12918 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512BW" >&5
12919$as_echo_n "checking whether host toolchain supports AVX512BW... " >&6; }
ea04106b 12920
cae5b340
AX
12921 cat >conftest.$ac_ext <<_ACEOF
12922/* confdefs.h. */
12923_ACEOF
12924cat confdefs.h >>conftest.$ac_ext
12925cat >>conftest.$ac_ext <<_ACEOF
12926/* end confdefs.h. */
ea04106b 12927
ea04106b 12928
cae5b340
AX
12929 void main()
12930 {
12931 __asm__ __volatile__("vpshufb %zmm0,%zmm1,%zmm2");
12932 }
ea04106b 12933
cae5b340
AX
12934_ACEOF
12935rm -f conftest.$ac_objext conftest$ac_exeext
12936if { (ac_try="$ac_link"
12937case "(($ac_try" in
12938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12939 *) ac_try_echo=$ac_try;;
12940esac
12941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12942$as_echo "$ac_try_echo") >&5
12943 (eval "$ac_link") 2>conftest.er1
12944 ac_status=$?
12945 grep -v '^ *+' conftest.er1 >conftest.err
12946 rm -f conftest.er1
12947 cat conftest.err >&5
12948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } && {
12950 test -z "$ac_c_werror_flag" ||
12951 test ! -s conftest.err
12952 } && test -s conftest$ac_exeext && {
12953 test "$cross_compiling" = yes ||
12954 $as_test_x conftest$ac_exeext
12955 }; then
ea04106b 12956
cae5b340
AX
12957 { $as_echo "$as_me:$LINENO: result: yes" >&5
12958$as_echo "yes" >&6; }
ea04106b 12959
cae5b340
AX
12960cat >>confdefs.h <<\_ACEOF
12961#define HAVE_AVX512BW 1
12962_ACEOF
ea04106b
AX
12963
12964
cae5b340
AX
12965else
12966 $as_echo "$as_me: failed program was:" >&5
12967sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 12968
ea04106b 12969
cae5b340
AX
12970 { $as_echo "$as_me:$LINENO: result: no" >&5
12971$as_echo "no" >&6; }
ea04106b 12972
cae5b340 12973fi
ea04106b 12974
cae5b340
AX
12975rm -rf conftest.dSYM
12976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12977 conftest$ac_exeext conftest.$ac_ext
ea04106b 12978
ea04106b 12979
cae5b340
AX
12980 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512IFMA" >&5
12981$as_echo_n "checking whether host toolchain supports AVX512IFMA... " >&6; }
ea04106b 12982
cae5b340
AX
12983 cat >conftest.$ac_ext <<_ACEOF
12984/* confdefs.h. */
ea04106b 12985_ACEOF
cae5b340
AX
12986cat confdefs.h >>conftest.$ac_ext
12987cat >>conftest.$ac_ext <<_ACEOF
12988/* end confdefs.h. */
ea04106b
AX
12989
12990
cae5b340
AX
12991 void main()
12992 {
12993 __asm__ __volatile__("vpmadd52luq %zmm0,%zmm1,%zmm2");
12994 }
ea04106b
AX
12995
12996_ACEOF
cae5b340
AX
12997rm -f conftest.$ac_objext conftest$ac_exeext
12998if { (ac_try="$ac_link"
12999case "(($ac_try" in
13000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001 *) ac_try_echo=$ac_try;;
13002esac
13003eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13004$as_echo "$ac_try_echo") >&5
13005 (eval "$ac_link") 2>conftest.er1
ea04106b 13006 ac_status=$?
cae5b340
AX
13007 grep -v '^ *+' conftest.er1 >conftest.err
13008 rm -f conftest.er1
13009 cat conftest.err >&5
13010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); } && {
13012 test -z "$ac_c_werror_flag" ||
13013 test ! -s conftest.err
13014 } && test -s conftest$ac_exeext && {
13015 test "$cross_compiling" = yes ||
13016 $as_test_x conftest$ac_exeext
13017 }; then
ea04106b 13018
cae5b340 13019 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
13020$as_echo "yes" >&6; }
13021
cae5b340
AX
13022cat >>confdefs.h <<\_ACEOF
13023#define HAVE_AVX512IFMA 1
13024_ACEOF
13025
13026
ea04106b
AX
13027else
13028 $as_echo "$as_me: failed program was:" >&5
13029sed 's/^/| /' conftest.$ac_ext >&5
13030
ea04106b 13031
cae5b340
AX
13032 { $as_echo "$as_me:$LINENO: result: no" >&5
13033$as_echo "no" >&6; }
ea04106b
AX
13034
13035fi
ea04106b 13036
cae5b340
AX
13037rm -rf conftest.dSYM
13038rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13039 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
13040
13041
cae5b340
AX
13042 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512VBMI" >&5
13043$as_echo_n "checking whether host toolchain supports AVX512VBMI... " >&6; }
94a40997 13044
cae5b340
AX
13045 cat >conftest.$ac_ext <<_ACEOF
13046/* confdefs.h. */
13047_ACEOF
13048cat confdefs.h >>conftest.$ac_ext
13049cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
13050/* end confdefs.h. */
13051
13052
cae5b340
AX
13053 void main()
13054 {
13055 __asm__ __volatile__("vpermb %zmm0,%zmm1,%zmm2");
13056 }
ea04106b 13057
cae5b340
AX
13058_ACEOF
13059rm -f conftest.$ac_objext conftest$ac_exeext
13060if { (ac_try="$ac_link"
13061case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13064esac
13065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13066$as_echo "$ac_try_echo") >&5
13067 (eval "$ac_link") 2>conftest.er1
13068 ac_status=$?
13069 grep -v '^ *+' conftest.er1 >conftest.err
13070 rm -f conftest.er1
13071 cat conftest.err >&5
13072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } && {
13074 test -z "$ac_c_werror_flag" ||
13075 test ! -s conftest.err
13076 } && test -s conftest$ac_exeext && {
13077 test "$cross_compiling" = yes ||
13078 $as_test_x conftest$ac_exeext
13079 }; then
ea04106b 13080
cae5b340
AX
13081 { $as_echo "$as_me:$LINENO: result: yes" >&5
13082$as_echo "yes" >&6; }
ea04106b 13083
cae5b340
AX
13084cat >>confdefs.h <<\_ACEOF
13085#define HAVE_AVX512VBMI 1
ea04106b 13086_ACEOF
ea04106b
AX
13087
13088
cae5b340
AX
13089else
13090 $as_echo "$as_me: failed program was:" >&5
13091sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 13092
ea04106b 13093
cae5b340
AX
13094 { $as_echo "$as_me:$LINENO: result: no" >&5
13095$as_echo "no" >&6; }
ea04106b 13096
94a40997
AX
13097fi
13098
cae5b340
AX
13099rm -rf conftest.dSYM
13100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13101 conftest$ac_exeext conftest.$ac_ext
ea04106b 13102
68d83c55 13103
cae5b340
AX
13104 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512PF" >&5
13105$as_echo_n "checking whether host toolchain supports AVX512PF... " >&6; }
68d83c55 13106
cae5b340
AX
13107 cat >conftest.$ac_ext <<_ACEOF
13108/* confdefs.h. */
68d83c55 13109_ACEOF
cae5b340
AX
13110cat confdefs.h >>conftest.$ac_ext
13111cat >>conftest.$ac_ext <<_ACEOF
13112/* end confdefs.h. */
68d83c55
AX
13113
13114
cae5b340
AX
13115 void main()
13116 {
13117 __asm__ __volatile__("vgatherpf0dps (%rsi,%zmm0,4){%k1}");
13118 }
68d83c55
AX
13119
13120_ACEOF
cae5b340
AX
13121rm -f conftest.$ac_objext conftest$ac_exeext
13122if { (ac_try="$ac_link"
13123case "(($ac_try" in
13124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125 *) ac_try_echo=$ac_try;;
13126esac
13127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13128$as_echo "$ac_try_echo") >&5
13129 (eval "$ac_link") 2>conftest.er1
68d83c55 13130 ac_status=$?
cae5b340
AX
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } && {
13136 test -z "$ac_c_werror_flag" ||
13137 test ! -s conftest.err
13138 } && test -s conftest$ac_exeext && {
13139 test "$cross_compiling" = yes ||
13140 $as_test_x conftest$ac_exeext
13141 }; then
68d83c55 13142
cae5b340 13143 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
13144$as_echo "yes" >&6; }
13145
cae5b340
AX
13146cat >>confdefs.h <<\_ACEOF
13147#define HAVE_AVX512PF 1
13148_ACEOF
68d83c55
AX
13149
13150
13151else
13152 $as_echo "$as_me: failed program was:" >&5
13153sed 's/^/| /' conftest.$ac_ext >&5
13154
68d83c55 13155
cae5b340
AX
13156 { $as_echo "$as_me:$LINENO: result: no" >&5
13157$as_echo "no" >&6; }
68d83c55
AX
13158
13159fi
ea04106b 13160
cae5b340
AX
13161rm -rf conftest.dSYM
13162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13163 conftest$ac_exeext conftest.$ac_ext
68d83c55
AX
13164
13165
cae5b340
AX
13166 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512ER" >&5
13167$as_echo_n "checking whether host toolchain supports AVX512ER... " >&6; }
68d83c55 13168
cae5b340
AX
13169 cat >conftest.$ac_ext <<_ACEOF
13170/* confdefs.h. */
13171_ACEOF
13172cat confdefs.h >>conftest.$ac_ext
13173cat >>conftest.$ac_ext <<_ACEOF
13174/* end confdefs.h. */
68d83c55 13175
ea04106b 13176
cae5b340
AX
13177 void main()
13178 {
13179 __asm__ __volatile__("vexp2pd %zmm0,%zmm1");
13180 }
ea04106b 13181
cae5b340
AX
13182_ACEOF
13183rm -f conftest.$ac_objext conftest$ac_exeext
13184if { (ac_try="$ac_link"
13185case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13188esac
13189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13190$as_echo "$ac_try_echo") >&5
13191 (eval "$ac_link") 2>conftest.er1
13192 ac_status=$?
13193 grep -v '^ *+' conftest.er1 >conftest.err
13194 rm -f conftest.er1
13195 cat conftest.err >&5
13196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } && {
13198 test -z "$ac_c_werror_flag" ||
13199 test ! -s conftest.err
13200 } && test -s conftest$ac_exeext && {
13201 test "$cross_compiling" = yes ||
13202 $as_test_x conftest$ac_exeext
13203 }; then
ea04106b 13204
cae5b340
AX
13205 { $as_echo "$as_me:$LINENO: result: yes" >&5
13206$as_echo "yes" >&6; }
ea04106b 13207
cae5b340
AX
13208cat >>confdefs.h <<\_ACEOF
13209#define HAVE_AVX512ER 1
13210_ACEOF
ea04106b 13211
ea04106b 13212
cae5b340
AX
13213else
13214 $as_echo "$as_me: failed program was:" >&5
13215sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 13216
ea04106b 13217
cae5b340
AX
13218 { $as_echo "$as_me:$LINENO: result: no" >&5
13219$as_echo "no" >&6; }
ea04106b 13220
cae5b340 13221fi
ea04106b 13222
cae5b340
AX
13223rm -rf conftest.dSYM
13224rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13225 conftest$ac_exeext conftest.$ac_ext
ea04106b 13226
ea04106b 13227
cae5b340
AX
13228 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512VL" >&5
13229$as_echo_n "checking whether host toolchain supports AVX512VL... " >&6; }
13230
13231 cat >conftest.$ac_ext <<_ACEOF
13232/* confdefs.h. */
ea04106b 13233_ACEOF
cae5b340
AX
13234cat confdefs.h >>conftest.$ac_ext
13235cat >>conftest.$ac_ext <<_ACEOF
13236/* end confdefs.h. */
ea04106b
AX
13237
13238
cae5b340
AX
13239 void main()
13240 {
13241 __asm__ __volatile__("vpabsq %zmm0,%zmm1");
13242 }
13243
13244_ACEOF
13245rm -f conftest.$ac_objext conftest$ac_exeext
13246if { (ac_try="$ac_link"
13247case "(($ac_try" in
13248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249 *) ac_try_echo=$ac_try;;
13250esac
13251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13252$as_echo "$ac_try_echo") >&5
13253 (eval "$ac_link") 2>conftest.er1
ea04106b 13254 ac_status=$?
cae5b340
AX
13255 grep -v '^ *+' conftest.er1 >conftest.err
13256 rm -f conftest.er1
13257 cat conftest.err >&5
13258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); } && {
13260 test -z "$ac_c_werror_flag" ||
13261 test ! -s conftest.err
13262 } && test -s conftest$ac_exeext && {
13263 test "$cross_compiling" = yes ||
13264 $as_test_x conftest$ac_exeext
13265 }; then
ea04106b 13266
cae5b340 13267 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
13268$as_echo "yes" >&6; }
13269
cae5b340
AX
13270cat >>confdefs.h <<\_ACEOF
13271#define HAVE_AVX512VL 1
13272_ACEOF
ea04106b
AX
13273
13274
cae5b340
AX
13275else
13276 $as_echo "$as_me: failed program was:" >&5
13277sed 's/^/| /' conftest.$ac_ext >&5
ea04106b
AX
13278
13279
cae5b340
AX
13280 { $as_echo "$as_me:$LINENO: result: no" >&5
13281$as_echo "no" >&6; }
ea04106b 13282
cae5b340 13283fi
ea04106b 13284
cae5b340
AX
13285rm -rf conftest.dSYM
13286rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13287 conftest$ac_exeext conftest.$ac_ext
ea04106b 13288
cae5b340
AX
13289 ;;
13290 esac
ea04106b 13291
ea04106b 13292
cae5b340
AX
13293 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
13294$as_echo_n "checking for target asm dir... " >&6; }
13295 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
13296
13297 case $TARGET_ARCH in
13298 i386|x86_64)
13299 TARGET_ASM_DIR=asm-${TARGET_ARCH}
13300 ;;
13301 *)
13302 TARGET_ASM_DIR=asm-generic
13303 ;;
13304 esac
ea04106b 13305
ea04106b 13306
cae5b340
AX
13307 if test $TARGET_ASM_DIR = asm-x86_64; then
13308 TARGET_ASM_X86_64_TRUE=
13309 TARGET_ASM_X86_64_FALSE='#'
13310else
13311 TARGET_ASM_X86_64_TRUE='#'
13312 TARGET_ASM_X86_64_FALSE=
13313fi
ea04106b 13314
cae5b340
AX
13315 if test $TARGET_ASM_DIR = asm-i386; then
13316 TARGET_ASM_I386_TRUE=
13317 TARGET_ASM_I386_FALSE='#'
13318else
13319 TARGET_ASM_I386_TRUE='#'
13320 TARGET_ASM_I386_FALSE=
13321fi
ea04106b 13322
cae5b340
AX
13323 if test $TARGET_ASM_DIR = asm-generic; then
13324 TARGET_ASM_GENERIC_TRUE=
13325 TARGET_ASM_GENERIC_FALSE='#'
13326else
13327 TARGET_ASM_GENERIC_TRUE='#'
13328 TARGET_ASM_GENERIC_FALSE=
13329fi
ea04106b 13330
cae5b340
AX
13331 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
13332$as_echo "$TARGET_ASM_DIR" >&6; }
ea04106b
AX
13333
13334
ea04106b 13335
cae5b340
AX
13336 case "$ZFS_CONFIG" in
13337 kernel)
ea04106b 13338
ea04106b 13339
cae5b340
AX
13340# Check whether --with-linux was given.
13341if test "${with_linux+set}" = set; then
13342 withval=$with_linux; kernelsrc="$withval"
13343fi
ea04106b
AX
13344
13345
13346
cae5b340
AX
13347# Check whether --with-linux-obj was given.
13348if test "${with_linux_obj+set}" = set; then
13349 withval=$with_linux_obj; kernelbuild="$withval"
ea04106b 13350fi
ea04106b
AX
13351
13352
cae5b340
AX
13353 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
13354$as_echo_n "checking kernel source directory... " >&6; }
13355 if test -z "$kernelsrc"; then
ea04106b 13356
cae5b340 13357 if test -e "/lib/modules/$(uname -r)/source"; then
ea04106b 13358
cae5b340
AX
13359 headersdir="/lib/modules/$(uname -r)/source"
13360 sourcelink=$(readlink -f "$headersdir")
ea04106b 13361
cae5b340 13362elif test -e "/lib/modules/$(uname -r)/build"; then
ea04106b 13363
cae5b340
AX
13364 headersdir="/lib/modules/$(uname -r)/build"
13365 sourcelink=$(readlink -f "$headersdir")
ea04106b 13366
cae5b340 13367else
ea04106b 13368
cae5b340
AX
13369 sourcelink=$(ls -1d /usr/src/kernels/* \
13370 /usr/src/linux-* \
13371 2>/dev/null | grep -v obj | tail -1)
ea04106b
AX
13372
13373fi
ea04106b
AX
13374
13375
cae5b340 13376 if test -n "$sourcelink" && test -e ${sourcelink}; then
ea04106b 13377
cae5b340 13378 kernelsrc=`readlink -f ${sourcelink}`
ea04106b 13379
cae5b340 13380else
ea04106b 13381
cae5b340 13382 kernelsrc="Not found"
ea04106b 13383
cae5b340 13384fi
ea04106b 13385
ea04106b 13386
cae5b340 13387else
ea04106b 13388
cae5b340 13389 if test "$kernelsrc" = "NONE"; then
ea04106b 13390
cae5b340 13391 kernsrcver=NONE
ea04106b 13392
cae5b340 13393fi
ea04106b 13394
cae5b340 13395 withlinux=yes
ea04106b 13396
cae5b340 13397fi
ea04106b 13398
ea04106b 13399
cae5b340
AX
13400 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
13401$as_echo "$kernelsrc" >&6; }
13402 if test ! -d "$kernelsrc"; then
ea04106b 13403
cae5b340
AX
13404 { { $as_echo "$as_me:$LINENO: error:
13405 *** Please make sure the kernel devel package for your distribution
13406 *** is installed and then try again. If that fails, you can specify the
13407 *** location of the kernel source with the '--with-linux=PATH' option." >&5
13408$as_echo "$as_me: error:
13409 *** Please make sure the kernel devel package for your distribution
13410 *** is installed and then try again. If that fails, you can specify the
13411 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
13412 { (exit 1); exit 1; }; }
ea04106b 13413
cae5b340 13414fi
ea04106b
AX
13415
13416
cae5b340
AX
13417 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
13418$as_echo_n "checking kernel build directory... " >&6; }
13419 if test -z "$kernelbuild"; then
ea04106b 13420
cae5b340 13421 if test x$withlinux != xyes -a -e "/lib/modules/$(uname -r)/build"; then
ea04106b 13422
cae5b340 13423 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
ea04106b 13424
cae5b340 13425elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
ea04106b 13426
cae5b340 13427 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
ea04106b 13428
cae5b340 13429elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
ea04106b 13430
cae5b340 13431 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
ea04106b 13432
cae5b340 13433elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
ea04106b 13434
cae5b340 13435 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
ea04106b 13436
cae5b340 13437else
ea04106b 13438
cae5b340 13439 kernelbuild=${kernelsrc}
ea04106b 13440
cae5b340 13441fi
ea04106b
AX
13442
13443
cae5b340 13444fi
ea04106b 13445
cae5b340
AX
13446 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
13447$as_echo "$kernelbuild" >&6; }
13448
13449 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
13450$as_echo_n "checking kernel source version... " >&6; }
13451 utsrelease1=$kernelbuild/include/linux/version.h
13452 utsrelease2=$kernelbuild/include/linux/utsrelease.h
13453 utsrelease3=$kernelbuild/include/generated/utsrelease.h
13454 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
ea04106b 13455
cae5b340 13456 utsrelease=linux/version.h
ea04106b 13457
cae5b340 13458elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
ea04106b 13459
cae5b340 13460 utsrelease=linux/utsrelease.h
ea04106b 13461
cae5b340 13462elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
ea04106b 13463
cae5b340 13464 utsrelease=generated/utsrelease.h
ea04106b 13465
cae5b340 13466fi
ea04106b 13467
e10b0808 13468
cae5b340 13469 if test "$utsrelease"; then
e10b0808 13470
cae5b340
AX
13471 kernsrcver=`(echo "#include <$utsrelease>";
13472 echo "kernsrcver=UTS_RELEASE") |
13473 cpp -I $kernelbuild/include |
13474 grep "^kernsrcver=" | cut -d \" -f 2`
e10b0808 13475
cae5b340 13476 if test -z "$kernsrcver"; then
e10b0808 13477
cae5b340
AX
13478 { $as_echo "$as_me:$LINENO: result: Not found" >&5
13479$as_echo "Not found" >&6; }
13480 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
13481$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
13482 { (exit 1); exit 1; }; }
e10b0808 13483
cae5b340 13484fi
e10b0808 13485
e10b0808 13486
cae5b340 13487else
e10b0808 13488
cae5b340
AX
13489 { $as_echo "$as_me:$LINENO: result: Not found" >&5
13490$as_echo "Not found" >&6; }
13491 if test "x$enable_linux_builtin" != xyes; then
13492 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
13493$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
13494 { (exit 1); exit 1; }; }
13495 else
13496 { { $as_echo "$as_me:$LINENO: error:
13497 *** Cannot find UTS_RELEASE definition.
13498 *** Please run 'make prepare' inside the kernel source tree." >&5
13499$as_echo "$as_me: error:
13500 *** Cannot find UTS_RELEASE definition.
13501 *** Please run 'make prepare' inside the kernel source tree." >&2;}
13502 { (exit 1); exit 1; }; }
13503 fi
e10b0808 13504
cae5b340 13505fi
e10b0808
AX
13506
13507
cae5b340
AX
13508 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
13509$as_echo "$kernsrcver" >&6; }
e10b0808 13510
cae5b340
AX
13511 LINUX=${kernelsrc}
13512 LINUX_OBJ=${kernelbuild}
13513 LINUX_VERSION=${kernsrcver}
e10b0808
AX
13514
13515
e10b0808 13516
e10b0808 13517
e10b0808
AX
13518
13519
cae5b340
AX
13520 modpost=$LINUX/scripts/Makefile.modpost
13521 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
13522$as_echo_n "checking kernel file name for module symbols... " >&6; }
13523 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
e10b0808 13524
cae5b340 13525 if grep -q Modules.symvers $modpost; then
e10b0808 13526
cae5b340 13527 LINUX_SYMBOLS=Modules.symvers
e10b0808 13528
cae5b340 13529else
e10b0808 13530
cae5b340 13531 LINUX_SYMBOLS=Module.symvers
e10b0808 13532
cae5b340 13533fi
e10b0808 13534
e10b0808 13535
cae5b340 13536 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
e10b0808 13537
cae5b340
AX
13538 { { $as_echo "$as_me:$LINENO: error:
13539 *** Please make sure the kernel devel package for your distribution
13540 *** is installed. If you are building with a custom kernel, make sure the
13541 *** kernel is configured, built, and the '--with-linux=PATH' configure
13542 *** option refers to the location of the kernel source." >&5
13543$as_echo "$as_me: error:
13544 *** Please make sure the kernel devel package for your distribution
13545 *** is installed. If you are building with a custom kernel, make sure the
13546 *** kernel is configured, built, and the '--with-linux=PATH' configure
13547 *** option refers to the location of the kernel source." >&2;}
13548 { (exit 1); exit 1; }; }
e10b0808 13549
cae5b340 13550fi
e10b0808
AX
13551
13552
cae5b340 13553else
e10b0808 13554
cae5b340 13555 LINUX_SYMBOLS=NONE
e10b0808 13556
cae5b340 13557fi
e10b0808 13558
cae5b340
AX
13559 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
13560$as_echo "$LINUX_SYMBOLS" >&6; }
e10b0808 13561
e10b0808 13562
e10b0808 13563
e10b0808
AX
13564
13565
cae5b340
AX
13566# Check whether --with-spl was given.
13567if test "${with_spl+set}" = set; then
13568 withval=$with_spl; if test "$withval" = "yes"; then
13569 { { $as_echo "$as_me:$LINENO: error: --with-spl=PATH requires a PATH" >&5
13570$as_echo "$as_me: error: --with-spl=PATH requires a PATH" >&2;}
13571 { (exit 1); exit 1; }; }
e10b0808 13572else
cae5b340
AX
13573 splsrc="$withval"
13574fi
e10b0808 13575
cae5b340 13576fi
e10b0808
AX
13577
13578
13579
cae5b340
AX
13580# Check whether --with-spl-obj was given.
13581if test "${with_spl_obj+set}" = set; then
13582 withval=$with_spl_obj; splbuild="$withval"
e10b0808 13583fi
e10b0808
AX
13584
13585
13586
cae5b340
AX
13587# Check whether --with-spl-timeout was given.
13588if test "${with_spl_timeout+set}" = set; then
13589 withval=$with_spl_timeout; timeout="$withval"
13590else
13591 timeout=0
87dac73d 13592fi
87dac73d
AX
13593
13594
cae5b340
AX
13595 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
13596 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
13597 splsrc2="/usr/local/src/spl-${VERSION}"
13598 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
13599 splsrc4="/usr/src/spl-${VERSION}"
13600 splsrc5="../spl/"
13601 splsrc6="$LINUX"
87dac73d 13602
cae5b340
AX
13603 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
13604$as_echo_n "checking spl source directory... " >&6; }
13605 if test -z "${splsrc}"; then
13606
13607 all_spl_sources="
13608 ${splsrc0}
13609 ${splsrc1}
13610 ${splsrc2}
13611 ${splsrc3}
13612 ${splsrc4}
13613 ${splsrc5}
13614 ${splsrc6}",
13615 if test -e "${splsrc0}/spl.release.in"; then
87dac73d 13616
cae5b340 13617 splsrc=${splsrc0}
87dac73d 13618
cae5b340 13619elif test -e "${splsrc1}/spl.release.in"; then
87dac73d 13620
cae5b340 13621 splsrc=${splsrc1}
87dac73d 13622
cae5b340 13623elif test -e "${splsrc2}/spl.release.in"; then
87dac73d 13624
cae5b340 13625 splsrc=${splsrc2}
87dac73d 13626
cae5b340 13627elif test -e "${splsrc3}/spl.release.in"; then
87dac73d 13628
cae5b340 13629 splsrc=$(readlink -f "${splsrc3}")
87dac73d 13630
cae5b340 13631elif test -e "${splsrc4}/spl.release.in" ; then
87dac73d 13632
cae5b340 13633 splsrc=${splsrc4}
87dac73d 13634
cae5b340 13635elif test -e "${splsrc5}/spl.release.in"; then
87dac73d 13636
cae5b340 13637 splsrc=$(readlink -f "${splsrc5}")
87dac73d 13638
cae5b340 13639elif test -e "${splsrc6}/spl.release.in" ; then
87dac73d 13640
cae5b340 13641 splsrc=${splsrc6}
87dac73d 13642
cae5b340 13643else
87dac73d 13644
cae5b340 13645 splsrc="Not found"
87dac73d 13646
cae5b340 13647fi
87dac73d
AX
13648
13649
13650else
87dac73d 13651
cae5b340
AX
13652 all_spl_sources="$withval",
13653 if test "$splsrc" = "NONE"; then
87dac73d 13654
cae5b340
AX
13655 splbuild=NONE
13656 splsrcver=NONE
87dac73d 13657
e10b0808 13658fi
e10b0808
AX
13659
13660
cae5b340 13661fi
e10b0808
AX
13662
13663
cae5b340
AX
13664 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
13665$as_echo "$splsrc" >&6; }
13666 if test ! -e "$splsrc/spl.release.in"; then
ea04106b 13667
cae5b340
AX
13668 { { $as_echo "$as_me:$LINENO: error:
13669 *** Please make sure the kmod spl devel package for your distribution
13670 *** is installed then try again. If that fails you can specify the
13671 *** location of the spl source with the '--with-spl=PATH' option.
13672 *** The spl version must match the version of ZFS you are building,
13673 *** ${VERSION}. Failed to find spl.release.in in the following:
13674 $all_spl_sources" >&5
13675$as_echo "$as_me: error:
13676 *** Please make sure the kmod spl devel package for your distribution
13677 *** is installed then try again. If that fails you can specify the
13678 *** location of the spl source with the '--with-spl=PATH' option.
13679 *** The spl version must match the version of ZFS you are building,
13680 *** ${VERSION}. Failed to find spl.release.in in the following:
13681 $all_spl_sources" >&2;}
13682 { (exit 1); exit 1; }; }
ea04106b 13683
cae5b340 13684fi
ea04106b
AX
13685
13686
cae5b340
AX
13687 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
13688$as_echo_n "checking spl build directory... " >&6; }
ea04106b 13689
cae5b340
AX
13690 all_spl_config_locs="${splsrc}/${LINUX_VERSION}
13691 ${splsrc}"
ea04106b 13692
cae5b340
AX
13693 while true; do
13694 if test -z "$splbuild"; then
ea04106b 13695
cae5b340 13696 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then
ea04106b 13697
cae5b340 13698 splbuild="${splsrc}/${LINUX_VERSION}"
ea04106b 13699
cae5b340 13700elif test -e "${splsrc}/spl_config.h" ; then
ea04106b 13701
cae5b340 13702 splbuild="${splsrc}"
ea04106b 13703
cae5b340 13704elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then
ea04106b 13705
cae5b340 13706 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
ea04106b 13707
cae5b340 13708else
ea04106b 13709
cae5b340 13710 splbuild="Not found"
ea04106b 13711
cae5b340 13712fi
ea04106b 13713
ea04106b 13714
cae5b340 13715fi
ea04106b 13716
cae5b340 13717 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then
ea04106b 13718
cae5b340 13719 break;
ea04106b
AX
13720
13721else
ea04106b 13722
cae5b340
AX
13723 sleep 1
13724 timeout=$((timeout-1))
ea04106b
AX
13725
13726fi
ea04106b 13727
cae5b340 13728 done
ea04106b 13729
cae5b340
AX
13730 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
13731$as_echo "$splbuild" >&6; }
13732 if ! test -e "$splbuild/spl_config.h"; then
ea04106b 13733
cae5b340
AX
13734 { { $as_echo "$as_me:$LINENO: error:
13735 *** Please make sure the kmod spl devel <kernel> package for your
13736 *** distribution is installed then try again. If that fails you
13737 *** can specify the location of the spl objects with the
13738 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
13739 *** any of the following:
13740 $all_spl_config_locs" >&5
13741$as_echo "$as_me: error:
13742 *** Please make sure the kmod spl devel <kernel> package for your
13743 *** distribution is installed then try again. If that fails you
13744 *** can specify the location of the spl objects with the
13745 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
13746 *** any of the following:
13747 $all_spl_config_locs" >&2;}
13748 { (exit 1); exit 1; }; }
ea04106b 13749
cae5b340 13750fi
ea04106b
AX
13751
13752
cae5b340
AX
13753 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
13754$as_echo_n "checking spl source version... " >&6; }
13755 if test -r $splbuild/spl_config.h &&
13756 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
ea04106b
AX
13757
13758
cae5b340
AX
13759 splsrcver=`(echo "#include <spl_config.h>";
13760 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
13761 cpp -I $splbuild |
13762 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
ea04106b 13763
cae5b340
AX
13764fi
13765
13766
13767 if test -z "$splsrcver"; then
13768
13769 { $as_echo "$as_me:$LINENO: result: Not found" >&5
13770$as_echo "Not found" >&6; }
13771 { { $as_echo "$as_me:$LINENO: error:
13772 *** Cannot determine the version of the spl source.
13773 *** Please prepare the spl source before running this script" >&5
13774$as_echo "$as_me: error:
13775 *** Cannot determine the version of the spl source.
13776 *** Please prepare the spl source before running this script" >&2;}
13777 { (exit 1); exit 1; }; }
13778
13779fi
13780
13781
13782 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
13783$as_echo "$splsrcver" >&6; }
13784
13785 SPL=${splsrc}
13786 SPL_OBJ=${splbuild}
13787 SPL_VERSION=${splsrcver}
13788
13789
13790
13791
13792
13793 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
13794$as_echo_n "checking spl file name for module symbols... " >&6; }
13795 SPL_SYMBOLS=NONE
13796
13797 while true; do
13798 if test -r $SPL_OBJ/Module.symvers; then
13799
13800 SPL_SYMBOLS=Module.symvers
13801
13802elif test -r $SPL_OBJ/Modules.symvers; then
13803
13804 SPL_SYMBOLS=Modules.symvers
13805
13806elif test -r $SPL_OBJ/module/Module.symvers; then
13807
13808 SPL_SYMBOLS=Module.symvers
13809
13810elif test -r $SPL_OBJ/module/Modules.symvers; then
13811
13812 SPL_SYMBOLS=Modules.symvers
13813
13814fi
13815
13816
13817 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then
13818
13819 break;
13820
13821else
13822
13823 sleep 1
13824 timeout=$((timeout-1))
13825
13826fi
13827
13828 done
13829
13830 if test "$SPL_SYMBOLS" = NONE; then
13831
13832 SPL_SYMBOLS=$LINUX_SYMBOLS
13833
13834fi
13835
13836
13837 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
13838$as_echo "$SPL_SYMBOLS" >&6; }
13839
13840
13841
13842
13843# Check whether --with-qat was given.
13844if test "${with_qat+set}" = set; then
13845 withval=$with_qat; if test "$withval" = "yes"; then
13846 { { $as_echo "$as_me:$LINENO: error: --with-qat=PATH requires a PATH" >&5
13847$as_echo "$as_me: error: --with-qat=PATH requires a PATH" >&2;}
13848 { (exit 1); exit 1; }; }
13849else
13850 qatsrc="$withval"
13851fi
13852
13853fi
13854
13855
13856
13857# Check whether --with-qat-obj was given.
13858if test "${with_qat_obj+set}" = set; then
13859 withval=$with_qat_obj; qatbuild="$withval"
13860fi
13861
13862
13863 if test ! -z "${qatsrc}"; then
13864
13865 { $as_echo "$as_me:$LINENO: checking qat source directory" >&5
13866$as_echo_n "checking qat source directory... " >&6; }
13867 { $as_echo "$as_me:$LINENO: result: $qatsrc" >&5
13868$as_echo "$qatsrc" >&6; }
13869 QAT_SRC="${qatsrc}/quickassist"
13870 if test ! -e "$QAT_SRC/include/cpa.h"; then
13871
13872 { { $as_echo "$as_me:$LINENO: error:
13873 *** Please make sure the qat driver package is installed
13874 *** and specify the location of the qat source with the
13875 *** '--with-qat=PATH' option then try again. Failed to
13876 *** find cpa.h in:
13877 ${QAT_SRC}/include" >&5
13878$as_echo "$as_me: error:
13879 *** Please make sure the qat driver package is installed
13880 *** and specify the location of the qat source with the
13881 *** '--with-qat=PATH' option then try again. Failed to
13882 *** find cpa.h in:
13883 ${QAT_SRC}/include" >&2;}
13884 { (exit 1); exit 1; }; }
13885
13886fi
13887
13888
13889fi
13890
13891
13892 if test ! -z "${qatsrc}"; then
13893
13894 { $as_echo "$as_me:$LINENO: checking qat build directory" >&5
13895$as_echo_n "checking qat build directory... " >&6; }
13896 if test -z "$qatbuild"; then
13897
13898 qatbuild="${qatsrc}/build"
13899
13900fi
13901
13902
13903 { $as_echo "$as_me:$LINENO: result: $qatbuild" >&5
13904$as_echo "$qatbuild" >&6; }
13905 QAT_OBJ=${qatbuild}
41d74433 13906 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then
cae5b340
AX
13907
13908 { { $as_echo "$as_me:$LINENO: error:
13909 *** Please make sure the qat driver is installed then try again.
41d74433 13910 *** Failed to find icp_qa_al.ko or qat_api.ko in:
cae5b340
AX
13911 $QAT_OBJ" >&5
13912$as_echo "$as_me: error:
13913 *** Please make sure the qat driver is installed then try again.
41d74433 13914 *** Failed to find icp_qa_al.ko or qat_api.ko in:
cae5b340
AX
13915 $QAT_OBJ" >&2;}
13916 { (exit 1); exit 1; }; }
13917
13918fi
13919
13920
13921
13922
13923
13924
13925cat >>confdefs.h <<\_ACEOF
13926#define HAVE_QAT 1
13927_ACEOF
13928
13929
13930fi
13931
13932
13933 if test ! -z "${qatsrc}"; then
13934
13935 { $as_echo "$as_me:$LINENO: checking qat file for module symbols" >&5
13936$as_echo_n "checking qat file for module symbols... " >&6; }
13937 QAT_SYMBOLS=$QAT_SRC/lookaside/access_layer/src/Module.symvers
13938
13939 if test -r $QAT_SYMBOLS; then
13940
13941 { $as_echo "$as_me:$LINENO: result: $QAT_SYMBOLS" >&5
13942$as_echo "$QAT_SYMBOLS" >&6; }
13943
13944
13945else
13946
13947 { { $as_echo "$as_me:$LINENO: error:
13948 *** Please make sure the qat driver is installed then try again.
13949 *** Failed to find Module.symvers in:
13950 $QAT_SYMBOLS" >&5
13951$as_echo "$as_me: error:
13952 *** Please make sure the qat driver is installed then try again.
13953 *** Failed to find Module.symvers in:
13954 $QAT_SYMBOLS" >&2;}
13955 { (exit 1); exit 1; }; }
13956
13957fi
13958
13959
13960fi
13961
13962
13963
13964 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
13965$as_echo_n "checking whether modules can be built... " >&6; }
13966
13967
13968cat confdefs.h - <<_ACEOF >conftest.c
13969/* confdefs.h. */
13970_ACEOF
13971cat confdefs.h >>conftest.$ac_ext
13972cat >>conftest.$ac_ext <<_ACEOF
13973/* end confdefs.h. */
ea04106b 13974
ea04106b
AX
13975
13976int
13977main (void)
13978{
13979
ea04106b
AX
13980 ;
13981 return 0;
13982}
13983
13984_ACEOF
13985
13986
13987
13988cat - <<_ACEOF >conftest.h
13989
13990_ACEOF
13991
13992
13993 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13994 echo "obj-m := conftest.o" >build/Makefile
13995 modpost_flag=''
13996 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13997 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
13999 (eval $ac_try) 2>&5
14000 ac_status=$?
cae5b340
AX
14001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14004 (eval $ac_try) 2>&5
14005 ac_status=$?
cae5b340
AX
14006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; }; then
ea04106b 14008
cae5b340
AX
14009 { $as_echo "$as_me:$LINENO: result: yes" >&5
14010$as_echo "yes" >&6; }
ea04106b
AX
14011
14012else
14013 $as_echo "$as_me: failed program was:" >&5
14014sed 's/^/| /' conftest.$ac_ext >&5
14015
cae5b340
AX
14016 { $as_echo "$as_me:$LINENO: result: no" >&5
14017$as_echo "no" >&6; }
14018 if test "x$enable_linux_builtin" != xyes; then
14019 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
14020$as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
14021 { (exit 1); exit 1; }; }
14022 else
14023 { { $as_echo "$as_me:$LINENO: error:
14024 *** Unable to build an empty module.
14025 *** Please run 'make scripts' inside the kernel source tree." >&5
14026$as_echo "$as_me: error:
14027 *** Unable to build an empty module.
14028 *** Please run 'make scripts' inside the kernel source tree." >&2;}
14029 { (exit 1); exit 1; }; }
14030 fi
ea04106b
AX
14031
14032
14033
14034fi
cae5b340 14035
ea04106b
AX
14036 rm -Rf build
14037
14038
ea04106b 14039
cae5b340
AX
14040
14041 { $as_echo "$as_me:$LINENO: checking for compile-time stack validation (objtool)" >&5
14042$as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
ea04106b
AX
14043
14044
14045cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14046/* confdefs.h. */
14047_ACEOF
14048cat confdefs.h >>conftest.$ac_ext
14049cat >>conftest.$ac_ext <<_ACEOF
14050/* end confdefs.h. */
ea04106b
AX
14051
14052
cae5b340
AX
14053 #undef __ASSEMBLY__
14054 #include <asm/frame.h>
ea04106b
AX
14055
14056int
14057main (void)
14058{
14059
cae5b340
AX
14060 #if !defined(FRAME_BEGIN)
14061 CTASSERT(1);
14062 #endif
ea04106b
AX
14063
14064 ;
14065 return 0;
14066}
14067
14068_ACEOF
14069
14070
14071
14072cat - <<_ACEOF >conftest.h
14073
14074_ACEOF
14075
14076
14077 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14078 echo "obj-m := conftest.o" >build/Makefile
14079 modpost_flag=''
14080 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14081 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 14082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14083 (eval $ac_try) 2>&5
14084 ac_status=$?
cae5b340
AX
14085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14088 (eval $ac_try) 2>&5
14089 ac_status=$?
cae5b340
AX
14090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
ea04106b 14092
cae5b340 14093 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
14094$as_echo "yes" >&6; }
14095
cae5b340
AX
14096cat >>confdefs.h <<\_ACEOF
14097#define HAVE_KERNEL_OBJTOOL 1
14098_ACEOF
ea04106b
AX
14099
14100
14101else
14102 $as_echo "$as_me: failed program was:" >&5
14103sed 's/^/| /' conftest.$ac_ext >&5
14104
cae5b340 14105 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
14106$as_echo "no" >&6; }
14107
14108
14109
14110fi
cae5b340 14111
ea04106b
AX
14112 rm -Rf build
14113
14114
14115
14116
cae5b340
AX
14117 if test "x$cross_compiling" != xyes; then
14118
14119 if test "$cross_compiling" = yes; then
14120 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14122{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14123See \`config.log' for more details." >&5
14124$as_echo "$as_me: error: cannot run test program while cross compiling
14125See \`config.log' for more details." >&2;}
14126 { (exit 1); exit 1; }; }; }
14127else
14128 cat >conftest.$ac_ext <<_ACEOF
14129
14130 /* confdefs.h. */
14131_ACEOF
14132cat confdefs.h >>conftest.$ac_ext
14133cat >>conftest.$ac_ext <<_ACEOF
14134/* end confdefs.h. */
14135
14136 #include "$LINUX/include/linux/license.h"
14137
14138int
14139main ()
14140{
14141
14142 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
14143
14144 ;
14145 return 0;
14146}
14147
14148_ACEOF
14149rm -f conftest$ac_exeext
14150if { (ac_try="$ac_link"
14151case "(($ac_try" in
14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14154esac
14155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14156$as_echo "$ac_try_echo") >&5
14157 (eval "$ac_link") 2>&5
14158 ac_status=$?
14159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14161 { (case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14164esac
14165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14166$as_echo "$ac_try_echo") >&5
14167 (eval "$ac_try") 2>&5
14168 ac_status=$?
14169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; }; then
14171
14172
14173cat >>confdefs.h <<\_ACEOF
14174#define ZFS_IS_GPL_COMPATIBLE 1
14175_ACEOF
14176
14177
14178else
14179 $as_echo "$as_me: program exited with status $ac_status" >&5
14180$as_echo "$as_me: failed program was:" >&5
14181sed 's/^/| /' conftest.$ac_ext >&5
14182
14183( exit $ac_status )
14184
14185
14186fi
14187rm -rf conftest.dSYM
14188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14189fi
14190
14191
14192
14193fi
14194
14195
14196
14197 { $as_echo "$as_me:$LINENO: checking whether kernel was built with 16K or larger stacks" >&5
14198$as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
ea04106b
AX
14199
14200
14201cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14202/* confdefs.h. */
14203_ACEOF
14204cat confdefs.h >>conftest.$ac_ext
14205cat >>conftest.$ac_ext <<_ACEOF
14206/* end confdefs.h. */
ea04106b
AX
14207
14208
cae5b340 14209 #include <linux/module.h>
ea04106b
AX
14210
14211int
14212main (void)
14213{
14214
cae5b340
AX
14215 #if (THREAD_SIZE < 16384)
14216 #error "THREAD_SIZE is less than 16K"
14217 #endif
ea04106b
AX
14218
14219 ;
14220 return 0;
14221}
14222
14223_ACEOF
14224
14225
14226
14227cat - <<_ACEOF >conftest.h
14228
14229_ACEOF
14230
14231
14232 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14233 echo "obj-m := conftest.o" >build/Makefile
14234 modpost_flag=''
14235 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14236 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14238 (eval $ac_try) 2>&5
14239 ac_status=$?
cae5b340
AX
14240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
cae5b340
AX
14245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }; then
ea04106b 14247
cae5b340 14248 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
14249$as_echo "yes" >&6; }
14250
cae5b340
AX
14251cat >>confdefs.h <<\_ACEOF
14252#define HAVE_LARGE_STACKS 1
14253_ACEOF
ea04106b
AX
14254
14255
14256else
14257 $as_echo "$as_me: failed program was:" >&5
14258sed 's/^/| /' conftest.$ac_ext >&5
14259
cae5b340 14260 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
14261$as_echo "no" >&6; }
14262
14263
14264
14265fi
cae5b340 14266
ea04106b
AX
14267 rm -Rf build
14268
14269
14270
14271
cae5b340
AX
14272
14273 { $as_echo "$as_me:$LINENO: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
14274$as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
ea04106b
AX
14275
14276
14277cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14278/* confdefs.h. */
14279_ACEOF
14280cat confdefs.h >>conftest.$ac_ext
14281cat >>conftest.$ac_ext <<_ACEOF
14282/* end confdefs.h. */
ea04106b
AX
14283
14284
cae5b340 14285 #include <linux/module.h>
ea04106b
AX
14286
14287int
14288main (void)
14289{
14290
cae5b340
AX
14291 #ifndef CONFIG_DEBUG_LOCK_ALLOC
14292 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
14293 #endif
ea04106b
AX
14294
14295 ;
14296 return 0;
14297}
14298
14299_ACEOF
14300
14301
14302
14303cat - <<_ACEOF >conftest.h
14304
14305_ACEOF
14306
14307
14308 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14309 echo "obj-m := conftest.o" >build/Makefile
14310 modpost_flag=''
14311 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14312 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14314 (eval $ac_try) 2>&5
14315 ac_status=$?
cae5b340
AX
14316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14319 (eval $ac_try) 2>&5
14320 ac_status=$?
cae5b340
AX
14321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }; then
ea04106b 14323
cae5b340 14324 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
14325$as_echo "yes" >&6; }
14326
cae5b340
AX
14327 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
14328$as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
14329 tmp_flags="$EXTRA_KCFLAGS"
ea04106b
AX
14330
14331
14332cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14333/* confdefs.h. */
14334_ACEOF
14335cat confdefs.h >>conftest.$ac_ext
14336cat >>conftest.$ac_ext <<_ACEOF
14337/* end confdefs.h. */
ea04106b
AX
14338
14339
cae5b340
AX
14340 #include <linux/module.h>
14341 #include <linux/mutex.h>
14342
14343 MODULE_LICENSE("$ZFS_META_LICENSE");
ea04106b
AX
14344
14345int
14346main (void)
14347{
14348
cae5b340
AX
14349 struct mutex lock;
14350
14351 mutex_init(&lock);
14352 mutex_lock(&lock);
14353 mutex_unlock(&lock);
ea04106b
AX
14354
14355 ;
14356 return 0;
14357}
14358
14359_ACEOF
14360
14361
14362
14363cat - <<_ACEOF >conftest.h
14364
14365_ACEOF
14366
14367
14368 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14369 echo "obj-m := conftest.o" >build/Makefile
14370 modpost_flag=''
14371 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14372 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14374 (eval $ac_try) 2>&5
14375 ac_status=$?
cae5b340
AX
14376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14379 (eval $ac_try) 2>&5
14380 ac_status=$?
cae5b340
AX
14381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; }; then
14383
14384 { $as_echo "$as_me:$LINENO: result: no" >&5
14385$as_echo "no" >&6; }
14386
ea04106b
AX
14387else
14388 $as_echo "$as_me: failed program was:" >&5
14389sed 's/^/| /' conftest.$ac_ext >&5
cae5b340
AX
14390
14391 { $as_echo "$as_me:$LINENO: result: yes" >&5
14392$as_echo "yes" >&6; }
14393 { { $as_echo "$as_me:$LINENO: error:
14394 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14395 *** with the CDDL license and will prevent the module linking stage
14396 *** from succeeding. You must rebuild your kernel without this
14397 *** option enabled." >&5
14398$as_echo "$as_me: error:
14399 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14400 *** with the CDDL license and will prevent the module linking stage
14401 *** from succeeding. You must rebuild your kernel without this
14402 *** option enabled." >&2;}
14403 { (exit 1); exit 1; }; }
14404
ea04106b
AX
14405
14406
14407fi
cae5b340 14408
ea04106b
AX
14409 rm -Rf build
14410
14411
cae5b340 14412 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 14413
cae5b340
AX
14414
14415else
14416 $as_echo "$as_me: failed program was:" >&5
14417sed 's/^/| /' conftest.$ac_ext >&5
14418
14419 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
14420$as_echo "no" >&6; }
14421
ea04106b 14422
ea04106b 14423
ea04106b 14424
cae5b340 14425fi
ea04106b 14426
cae5b340 14427 rm -Rf build
ea04106b 14428
ea04106b 14429
ea04106b
AX
14430
14431
ea04106b
AX
14432
14433
cae5b340
AX
14434 tmp_flags="$EXTRA_KCFLAGS"
14435 EXTRA_KCFLAGS="-I\$(src)"
ea04106b 14436
cae5b340
AX
14437 { $as_echo "$as_me:$LINENO: checking whether DECLARE_EVENT_CLASS() is available" >&5
14438$as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
ea04106b
AX
14439
14440
14441cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14442/* confdefs.h. */
14443_ACEOF
14444cat confdefs.h >>conftest.$ac_ext
14445cat >>conftest.$ac_ext <<_ACEOF
14446/* end confdefs.h. */
ea04106b
AX
14447
14448
cae5b340
AX
14449 #include <linux/module.h>
14450 MODULE_LICENSE(ZFS_META_LICENSE);
14451
14452 #define CREATE_TRACE_POINTS
14453 #include "conftest.h"
ea04106b
AX
14454
14455int
14456main (void)
14457{
14458
cae5b340
AX
14459 trace_zfs_autoconf_event_one(1UL);
14460 trace_zfs_autoconf_event_two(2UL);
ea04106b
AX
14461
14462 ;
14463 return 0;
14464}
14465
14466_ACEOF
14467
14468
14469
14470cat - <<_ACEOF >conftest.h
14471
cae5b340
AX
14472 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
14473 #define _CONFTEST_H
14474
14475 #undef TRACE_SYSTEM
14476 #define TRACE_SYSTEM zfs
14477 #include <linux/tracepoint.h>
14478
14479 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
14480 TP_PROTO(unsigned long i),
14481 TP_ARGS(i),
14482 TP_STRUCT__entry(
14483 __field(unsigned long, i)
14484 ),
14485 TP_fast_assign(
14486 __entry->i = i;
14487 ),
14488 TP_printk("i = %lu", __entry->i)
14489 );
14490
14491 #define DEFINE_AUTOCONF_EVENT(name) \
14492 DEFINE_EVENT(zfs_autoconf_event_class, name, \
14493 TP_PROTO(unsigned long i), \
14494 TP_ARGS(i))
14495 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
14496 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
14497
14498 #endif /* _CONFTEST_H */
14499
14500 #undef TRACE_INCLUDE_PATH
14501 #define TRACE_INCLUDE_PATH .
14502 #define TRACE_INCLUDE_FILE conftest
14503 #include <trace/define_trace.h>
14504
ea04106b
AX
14505_ACEOF
14506
14507
14508 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14509 echo "obj-m := conftest.o" >build/Makefile
14510 modpost_flag=''
14511 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14512 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14514 (eval $ac_try) 2>&5
14515 ac_status=$?
cae5b340
AX
14516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14519 (eval $ac_try) 2>&5
14520 ac_status=$?
cae5b340
AX
14521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; }; then
ea04106b 14523
cae5b340
AX
14524 { $as_echo "$as_me:$LINENO: result: yes" >&5
14525$as_echo "yes" >&6; }
ea04106b 14526
cae5b340
AX
14527cat >>confdefs.h <<\_ACEOF
14528#define HAVE_DECLARE_EVENT_CLASS 1
14529_ACEOF
ea04106b 14530
ea04106b 14531
cae5b340
AX
14532else
14533 $as_echo "$as_me: failed program was:" >&5
14534sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 14535
cae5b340 14536 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
14537$as_echo "no" >&6; }
14538
ea04106b 14539
ea04106b 14540
cae5b340 14541fi
ea04106b 14542
cae5b340 14543 rm -Rf build
ea04106b 14544
ea04106b 14545
cae5b340 14546 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 14547
ea04106b 14548
cae5b340
AX
14549 { $as_echo "$as_me:$LINENO: checking whether current->bio_tail exists" >&5
14550$as_echo_n "checking whether current->bio_tail exists... " >&6; }
ea04106b
AX
14551
14552
14553cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14554/* confdefs.h. */
14555_ACEOF
14556cat confdefs.h >>conftest.$ac_ext
14557cat >>conftest.$ac_ext <<_ACEOF
14558/* end confdefs.h. */
ea04106b
AX
14559
14560
cae5b340 14561 #include <linux/sched.h>
ea04106b
AX
14562
14563int
14564main (void)
14565{
14566
cae5b340 14567 current->bio_tail = (struct bio **) NULL;
ea04106b
AX
14568
14569 ;
14570 return 0;
14571}
14572
14573_ACEOF
14574
14575
14576
14577cat - <<_ACEOF >conftest.h
14578
14579_ACEOF
14580
14581
14582 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14583 echo "obj-m := conftest.o" >build/Makefile
14584 modpost_flag=''
14585 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14586 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14588 (eval $ac_try) 2>&5
14589 ac_status=$?
cae5b340
AX
14590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14593 (eval $ac_try) 2>&5
14594 ac_status=$?
cae5b340
AX
14595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; }; then
ea04106b 14597
cae5b340
AX
14598 { $as_echo "$as_me:$LINENO: result: yes" >&5
14599$as_echo "yes" >&6; }
ea04106b 14600
cae5b340
AX
14601cat >>confdefs.h <<\_ACEOF
14602#define HAVE_CURRENT_BIO_TAIL 1
14603_ACEOF
ea04106b
AX
14604
14605
cae5b340
AX
14606else
14607 $as_echo "$as_me: failed program was:" >&5
14608sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 14609
cae5b340 14610 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 14611$as_echo "no" >&6; }
cae5b340
AX
14612 { $as_echo "$as_me:$LINENO: checking whether current->bio_list exists" >&5
14613$as_echo_n "checking whether current->bio_list exists... " >&6; }
ea04106b
AX
14614
14615
14616cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14617/* confdefs.h. */
14618_ACEOF
14619cat confdefs.h >>conftest.$ac_ext
14620cat >>conftest.$ac_ext <<_ACEOF
14621/* end confdefs.h. */
ea04106b
AX
14622
14623
cae5b340 14624 #include <linux/sched.h>
ea04106b
AX
14625
14626int
14627main (void)
14628{
14629
cae5b340 14630 current->bio_list = (struct bio_list *) NULL;
ea04106b
AX
14631
14632 ;
14633 return 0;
14634}
14635
14636_ACEOF
14637
14638
14639
14640cat - <<_ACEOF >conftest.h
14641
14642_ACEOF
14643
14644
14645 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14646 echo "obj-m := conftest.o" >build/Makefile
14647 modpost_flag=''
14648 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14649 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14651 (eval $ac_try) 2>&5
14652 ac_status=$?
cae5b340
AX
14653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14656 (eval $ac_try) 2>&5
14657 ac_status=$?
cae5b340
AX
14658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14660
14661 { $as_echo "$as_me:$LINENO: result: yes" >&5
14662$as_echo "yes" >&6; }
14663
14664cat >>confdefs.h <<\_ACEOF
14665#define HAVE_CURRENT_BIO_LIST 1
14666_ACEOF
14667
14668
68d83c55
AX
14669else
14670 $as_echo "$as_me: failed program was:" >&5
14671sed 's/^/| /' conftest.$ac_ext >&5
cae5b340
AX
14672
14673 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
14674 https://github.com/zfsonlinux/zfs/issues/new" >&5
14675$as_echo "$as_me: error: no - Please file a bug report at
14676 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
14677 { (exit 1); exit 1; }; }
14678
ea04106b 14679
ea04106b 14680
68d83c55 14681fi
cae5b340 14682
68d83c55 14683 rm -Rf build
ea04106b
AX
14684
14685
ea04106b 14686
ea04106b
AX
14687
14688
cae5b340 14689fi
ea04106b 14690
cae5b340 14691 rm -Rf build
68d83c55 14692
68d83c55 14693
ea04106b
AX
14694
14695
cae5b340
AX
14696 { $as_echo "$as_me:$LINENO: checking whether super_block->s_user_ns exists" >&5
14697$as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
ea04106b
AX
14698
14699
cae5b340
AX
14700cat confdefs.h - <<_ACEOF >conftest.c
14701/* confdefs.h. */
14702_ACEOF
14703cat confdefs.h >>conftest.$ac_ext
14704cat >>conftest.$ac_ext <<_ACEOF
14705/* end confdefs.h. */
68d83c55
AX
14706
14707
cae5b340
AX
14708 #include <linux/fs.h>
14709 #include <linux/user_namespace.h>
ea04106b
AX
14710
14711int
14712main (void)
14713{
14714
cae5b340
AX
14715 struct super_block super;
14716 super.s_user_ns = (struct user_namespace *)NULL;
ea04106b
AX
14717
14718 ;
14719 return 0;
14720}
14721
14722_ACEOF
14723
14724
14725
14726cat - <<_ACEOF >conftest.h
14727
14728_ACEOF
14729
14730
14731 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14732 echo "obj-m := conftest.o" >build/Makefile
14733 modpost_flag=''
14734 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14735 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14737 (eval $ac_try) 2>&5
14738 ac_status=$?
cae5b340
AX
14739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14742 (eval $ac_try) 2>&5
14743 ac_status=$?
cae5b340
AX
14744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; }; then
ea04106b 14746
cae5b340 14747 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 14748$as_echo "yes" >&6; }
ea04106b 14749
cae5b340
AX
14750cat >>confdefs.h <<\_ACEOF
14751#define HAVE_SUPER_USER_NS 1
14752_ACEOF
ea04106b 14753
ea04106b 14754
cae5b340
AX
14755else
14756 $as_echo "$as_me: failed program was:" >&5
14757sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 14758
cae5b340
AX
14759 { $as_echo "$as_me:$LINENO: result: no" >&5
14760$as_echo "no" >&6; }
ea04106b 14761
ea04106b 14762
ea04106b 14763
cae5b340 14764fi
ea04106b 14765
cae5b340 14766 rm -Rf build
ea04106b 14767
ea04106b
AX
14768
14769
14770
cae5b340
AX
14771 { $as_echo "$as_me:$LINENO: checking whether submit_bio() wants 1 arg" >&5
14772$as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
ea04106b
AX
14773
14774
14775cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14776/* confdefs.h. */
14777_ACEOF
14778cat confdefs.h >>conftest.$ac_ext
14779cat >>conftest.$ac_ext <<_ACEOF
14780/* end confdefs.h. */
ea04106b
AX
14781
14782
cae5b340 14783 #include <linux/bio.h>
ea04106b
AX
14784
14785int
14786main (void)
14787{
14788
cae5b340
AX
14789 blk_qc_t blk_qc;
14790 struct bio *bio = NULL;
14791 blk_qc = submit_bio(bio);
ea04106b
AX
14792
14793 ;
14794 return 0;
14795}
14796
14797_ACEOF
14798
14799
14800
14801cat - <<_ACEOF >conftest.h
14802
14803_ACEOF
14804
14805
14806 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14807 echo "obj-m := conftest.o" >build/Makefile
14808 modpost_flag=''
14809 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14810 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14812 (eval $ac_try) 2>&5
14813 ac_status=$?
cae5b340
AX
14814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14817 (eval $ac_try) 2>&5
14818 ac_status=$?
cae5b340
AX
14819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
ea04106b 14821
cae5b340 14822 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
14823$as_echo "yes" >&6; }
14824
cae5b340
AX
14825cat >>confdefs.h <<\_ACEOF
14826#define HAVE_1ARG_SUBMIT_BIO 1
14827_ACEOF
ea04106b
AX
14828
14829
14830else
14831 $as_echo "$as_me: failed program was:" >&5
14832sed 's/^/| /' conftest.$ac_ext >&5
14833
cae5b340 14834 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
14835$as_echo "no" >&6; }
14836
14837
14838
14839fi
cae5b340 14840
ea04106b
AX
14841 rm -Rf build
14842
14843
14844
14845
cae5b340
AX
14846 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
14847$as_echo_n "checking block device operation prototypes... " >&6; }
68d83c55
AX
14848 tmp_flags="$EXTRA_KCFLAGS"
14849 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
14850
14851
14852cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14853/* confdefs.h. */
14854_ACEOF
14855cat confdefs.h >>conftest.$ac_ext
14856cat >>conftest.$ac_ext <<_ACEOF
14857/* end confdefs.h. */
ea04106b
AX
14858
14859
68d83c55 14860 #include <linux/blkdev.h>
ea04106b 14861
cae5b340
AX
14862 int blk_open(struct block_device *bdev, fmode_t mode)
14863 { return 0; }
14864 int blk_ioctl(struct block_device *bdev, fmode_t mode,
14865 unsigned x, unsigned long y) { return 0; }
14866 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
14867 unsigned x, unsigned long y) { return 0; }
14868
14869 static const struct block_device_operations
14870 bops __attribute__ ((unused)) = {
14871 .open = blk_open,
14872 .release = NULL,
14873 .ioctl = blk_ioctl,
14874 .compat_ioctl = blk_compat_ioctl,
14875 };
14876
ea04106b
AX
14877int
14878main (void)
14879{
14880
ea04106b
AX
14881
14882 ;
14883 return 0;
14884}
14885
14886_ACEOF
14887
14888
14889
14890cat - <<_ACEOF >conftest.h
14891
14892_ACEOF
14893
14894
14895 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14896 echo "obj-m := conftest.o" >build/Makefile
14897 modpost_flag=''
14898 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14899 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14901 (eval $ac_try) 2>&5
14902 ac_status=$?
cae5b340
AX
14903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14906 (eval $ac_try) 2>&5
14907 ac_status=$?
cae5b340
AX
14908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); }; }; then
ea04106b 14910
cae5b340
AX
14911 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
14912$as_echo "struct block_device" >&6; }
ea04106b 14913
cae5b340
AX
14914cat >>confdefs.h <<\_ACEOF
14915#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
14916_ACEOF
ea04106b
AX
14917
14918
14919else
14920 $as_echo "$as_me: failed program was:" >&5
14921sed 's/^/| /' conftest.$ac_ext >&5
14922
cae5b340
AX
14923 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
14924$as_echo "struct inode" >&6; }
ea04106b
AX
14925
14926
14927
14928fi
cae5b340 14929
ea04106b
AX
14930 rm -Rf build
14931
14932
68d83c55 14933 EXTRA_KCFLAGS="$tmp_flags"
ea04106b
AX
14934
14935
cae5b340
AX
14936 { $as_echo "$as_me:$LINENO: checking whether block_device_operations.release is void" >&5
14937$as_echo_n "checking whether block_device_operations.release is void... " >&6; }
68d83c55
AX
14938 tmp_flags="$EXTRA_KCFLAGS"
14939 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
14940
14941
14942cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14943/* confdefs.h. */
14944_ACEOF
14945cat confdefs.h >>conftest.$ac_ext
14946cat >>conftest.$ac_ext <<_ACEOF
14947/* end confdefs.h. */
ea04106b
AX
14948
14949
68d83c55 14950 #include <linux/blkdev.h>
e10b0808 14951
cae5b340
AX
14952 void blk_release(struct gendisk *g, fmode_t mode) { return; }
14953
14954 static const struct block_device_operations
14955 bops __attribute__ ((unused)) = {
14956 .open = NULL,
14957 .release = blk_release,
14958 .ioctl = NULL,
14959 .compat_ioctl = NULL,
14960 };
14961
ea04106b
AX
14962int
14963main (void)
14964{
14965
ea04106b
AX
14966
14967 ;
14968 return 0;
14969}
14970
14971_ACEOF
14972
14973
14974
14975cat - <<_ACEOF >conftest.h
14976
14977_ACEOF
14978
14979
14980 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14981 echo "obj-m := conftest.o" >build/Makefile
14982 modpost_flag=''
14983 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14984 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 14985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14986 (eval $ac_try) 2>&5
14987 ac_status=$?
cae5b340
AX
14988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14991 (eval $ac_try) 2>&5
14992 ac_status=$?
cae5b340
AX
14993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }; then
ea04106b 14995
cae5b340
AX
14996 { $as_echo "$as_me:$LINENO: result: void" >&5
14997$as_echo "void" >&6; }
ea04106b 14998
cae5b340
AX
14999cat >>confdefs.h <<\_ACEOF
15000#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1
15001_ACEOF
ea04106b
AX
15002
15003
15004else
15005 $as_echo "$as_me: failed program was:" >&5
15006sed 's/^/| /' conftest.$ac_ext >&5
15007
cae5b340
AX
15008 { $as_echo "$as_me:$LINENO: result: int" >&5
15009$as_echo "int" >&6; }
ea04106b
AX
15010
15011
15012
15013fi
cae5b340 15014
ea04106b
AX
15015 rm -Rf build
15016
15017
68d83c55 15018 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 15019
cae5b340
AX
15020 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
15021$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
ea04106b
AX
15022
15023
15024cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15025/* confdefs.h. */
15026_ACEOF
15027cat confdefs.h >>conftest.$ac_ext
15028cat >>conftest.$ac_ext <<_ACEOF
15029/* end confdefs.h. */
ea04106b
AX
15030
15031
cae5b340 15032 #include <linux/types.h>
ea04106b 15033
ea04106b
AX
15034int
15035main (void)
15036{
15037
cae5b340 15038 fmode_t *ptr __attribute__ ((unused));
ea04106b
AX
15039
15040 ;
15041 return 0;
15042}
15043
15044_ACEOF
15045
15046
15047
15048cat - <<_ACEOF >conftest.h
15049
15050_ACEOF
15051
15052
15053 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15054 echo "obj-m := conftest.o" >build/Makefile
15055 modpost_flag=''
15056 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15057 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15059 (eval $ac_try) 2>&5
15060 ac_status=$?
cae5b340
AX
15061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15064 (eval $ac_try) 2>&5
15065 ac_status=$?
cae5b340
AX
15066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
ea04106b 15068
cae5b340 15069 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
15070$as_echo "yes" >&6; }
15071
cae5b340
AX
15072cat >>confdefs.h <<\_ACEOF
15073#define HAVE_FMODE_T 1
15074_ACEOF
ea04106b
AX
15075
15076
15077else
15078 $as_echo "$as_me: failed program was:" >&5
15079sed 's/^/| /' conftest.$ac_ext >&5
15080
cae5b340 15081 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
15082$as_echo "no" >&6; }
15083
15084
15085
15086fi
cae5b340 15087
ea04106b
AX
15088 rm -Rf build
15089
15090
15091
15092
cae5b340
AX
15093 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
15094$as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
ea04106b
AX
15095
15096
15097cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15098/* confdefs.h. */
15099_ACEOF
15100cat confdefs.h >>conftest.$ac_ext
15101cat >>conftest.$ac_ext <<_ACEOF
15102/* end confdefs.h. */
ea04106b
AX
15103
15104
cae5b340 15105 #include <linux/fs.h>
ea04106b
AX
15106
15107int
15108main (void)
15109{
15110
cae5b340
AX
15111 struct block_device *bdev = NULL;
15112 (void) blkdev_get(bdev, 0, NULL);
ea04106b
AX
15113
15114 ;
15115 return 0;
15116}
15117
15118_ACEOF
15119
15120
15121
15122cat - <<_ACEOF >conftest.h
15123
15124_ACEOF
15125
15126
15127 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15128 echo "obj-m := conftest.o" >build/Makefile
15129 modpost_flag=''
15130 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15131 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15133 (eval $ac_try) 2>&5
15134 ac_status=$?
cae5b340
AX
15135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15138 (eval $ac_try) 2>&5
15139 ac_status=$?
cae5b340
AX
15140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; }; then
ea04106b 15142
cae5b340 15143 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
15144$as_echo "yes" >&6; }
15145
cae5b340
AX
15146cat >>confdefs.h <<\_ACEOF
15147#define HAVE_3ARG_BLKDEV_GET 1
15148_ACEOF
ea04106b
AX
15149
15150
15151else
15152 $as_echo "$as_me: failed program was:" >&5
15153sed 's/^/| /' conftest.$ac_ext >&5
15154
cae5b340 15155 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
15156$as_echo "no" >&6; }
15157
15158
15159
15160fi
cae5b340 15161
ea04106b
AX
15162 rm -Rf build
15163
15164
15165
cae5b340
AX
15166 { $as_echo "$as_me:$LINENO: checking whether blkdev_get_by_path() is available" >&5
15167$as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
ea04106b 15168
ea04106b
AX
15169
15170
15171cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15172/* confdefs.h. */
15173_ACEOF
15174cat confdefs.h >>conftest.$ac_ext
15175cat >>conftest.$ac_ext <<_ACEOF
15176/* end confdefs.h. */
ea04106b
AX
15177
15178
cae5b340 15179 #include <linux/fs.h>
ea04106b
AX
15180
15181int
15182main (void)
15183{
15184
cae5b340 15185 blkdev_get_by_path(NULL, 0, NULL);
ea04106b
AX
15186
15187 ;
15188 return 0;
15189}
15190
15191_ACEOF
15192
15193
15194
15195cat - <<_ACEOF >conftest.h
15196
15197_ACEOF
15198
15199
15200 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15201 echo "obj-m := conftest.o" >build/Makefile
15202 modpost_flag=''
15203 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15204 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15206 (eval $ac_try) 2>&5
15207 ac_status=$?
cae5b340
AX
15208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15211 (eval $ac_try) 2>&5
15212 ac_status=$?
cae5b340
AX
15213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then
15215 rc=0
15216else
15217 $as_echo "$as_me: failed program was:" >&5
15218sed 's/^/| /' conftest.$ac_ext >&5
15219 rc=1
ea04106b 15220
ea04106b 15221
cae5b340 15222fi
ea04106b 15223
cae5b340 15224 rm -Rf build
ea04106b 15225
ea04106b 15226
cae5b340
AX
15227 if test $rc -ne 0; then :
15228
15229 { $as_echo "$as_me:$LINENO: result: no" >&5
15230$as_echo "no" >&6; }
15231
15232 else
15233 if test "x$enable_linux_builtin" != xyes; then
15234
15235 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
15236 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15237 rc=$?
15238 if test $rc -ne 0; then
15239 export=0
15240 for file in fs/block_dev.c; do
15241 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
15242 "$LINUX/$file" 2>/dev/null
15243 rc=$?
15244 if test $rc -eq 0; then
15245 export=1
15246 break;
15247 fi
15248 done
15249 if test $export -eq 0; then :
15250 rc=1
15251 else :
15252 rc=0
15253 fi
15254 else :
15255 rc=0
15256 fi
15257
15258 fi
15259 if test $rc -ne 0; then :
15260
15261 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
15262$as_echo "no" >&6; }
15263
cae5b340 15264 else :
ea04106b 15265
cae5b340
AX
15266 { $as_echo "$as_me:$LINENO: result: yes" >&5
15267$as_echo "yes" >&6; }
ea04106b 15268
cae5b340
AX
15269cat >>confdefs.h <<\_ACEOF
15270#define HAVE_BLKDEV_GET_BY_PATH 1
15271_ACEOF
ea04106b
AX
15272
15273
cae5b340
AX
15274 fi
15275 fi
15276
ea04106b 15277
cae5b340
AX
15278 { $as_echo "$as_me:$LINENO: checking whether open_bdev_exclusive() is available" >&5
15279$as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
ea04106b 15280
ea04106b
AX
15281
15282
15283cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15284/* confdefs.h. */
15285_ACEOF
15286cat confdefs.h >>conftest.$ac_ext
15287cat >>conftest.$ac_ext <<_ACEOF
15288/* end confdefs.h. */
ea04106b
AX
15289
15290
cae5b340 15291 #include <linux/fs.h>
ea04106b 15292
ea04106b
AX
15293int
15294main (void)
15295{
15296
cae5b340 15297 open_bdev_exclusive(NULL, 0, NULL);
ea04106b
AX
15298
15299 ;
15300 return 0;
15301}
15302
15303_ACEOF
15304
15305
15306
15307cat - <<_ACEOF >conftest.h
15308
15309_ACEOF
15310
15311
15312 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15313 echo "obj-m := conftest.o" >build/Makefile
15314 modpost_flag=''
15315 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15316 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15318 (eval $ac_try) 2>&5
15319 ac_status=$?
cae5b340
AX
15320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15323 (eval $ac_try) 2>&5
15324 ac_status=$?
cae5b340
AX
15325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15327 rc=0
15328else
15329 $as_echo "$as_me: failed program was:" >&5
15330sed 's/^/| /' conftest.$ac_ext >&5
15331 rc=1
ea04106b 15332
e10b0808 15333
cae5b340
AX
15334fi
15335
15336 rm -Rf build
e10b0808 15337
ea04106b 15338
cae5b340
AX
15339 if test $rc -ne 0; then :
15340
15341 { $as_echo "$as_me:$LINENO: result: no" >&5
15342$as_echo "no" >&6; }
15343
15344 else
15345 if test "x$enable_linux_builtin" != xyes; then
15346
15347 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
15348 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15349 rc=$?
15350 if test $rc -ne 0; then
15351 export=0
15352 for file in fs/block_dev.c; do
15353 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
15354 "$LINUX/$file" 2>/dev/null
15355 rc=$?
15356 if test $rc -eq 0; then
15357 export=1
15358 break;
15359 fi
15360 done
15361 if test $export -eq 0; then :
15362 rc=1
15363 else :
15364 rc=0
15365 fi
15366 else :
15367 rc=0
15368 fi
15369
15370 fi
15371 if test $rc -ne 0; then :
ea04106b 15372
cae5b340 15373 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 15374$as_echo "no" >&6; }
ea04106b 15375
cae5b340 15376 else :
ea04106b 15377
cae5b340
AX
15378 { $as_echo "$as_me:$LINENO: result: yes" >&5
15379$as_echo "yes" >&6; }
ea04106b 15380
cae5b340
AX
15381cat >>confdefs.h <<\_ACEOF
15382#define HAVE_OPEN_BDEV_EXCLUSIVE 1
15383_ACEOF
ea04106b
AX
15384
15385
cae5b340
AX
15386 fi
15387 fi
15388
ea04106b 15389
cae5b340
AX
15390 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 1 arg" >&5
15391$as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
ea04106b 15392
ea04106b
AX
15393
15394
15395cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15396/* confdefs.h. */
15397_ACEOF
15398cat confdefs.h >>conftest.$ac_ext
15399cat >>conftest.$ac_ext <<_ACEOF
15400/* end confdefs.h. */
ea04106b
AX
15401
15402
cae5b340 15403 #include <linux/fs.h>
ea04106b
AX
15404
15405int
15406main (void)
15407{
15408
cae5b340 15409 lookup_bdev(NULL);
ea04106b
AX
15410
15411 ;
15412 return 0;
15413}
15414
15415_ACEOF
15416
15417
15418
15419cat - <<_ACEOF >conftest.h
15420
15421_ACEOF
15422
15423
15424 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15425 echo "obj-m := conftest.o" >build/Makefile
15426 modpost_flag=''
15427 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15428 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15430 (eval $ac_try) 2>&5
15431 ac_status=$?
cae5b340
AX
15432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15435 (eval $ac_try) 2>&5
15436 ac_status=$?
cae5b340
AX
15437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }; then
15439 rc=0
ea04106b
AX
15440else
15441 $as_echo "$as_me: failed program was:" >&5
15442sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 15443 rc=1
ea04106b
AX
15444
15445
15446fi
cae5b340 15447
ea04106b
AX
15448 rm -Rf build
15449
15450
cae5b340 15451 if test $rc -ne 0; then :
ea04106b 15452
cae5b340
AX
15453 { $as_echo "$as_me:$LINENO: result: no" >&5
15454$as_echo "no" >&6; }
15455 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
15456$as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
ea04106b
AX
15457
15458
ea04106b 15459
e10b0808 15460cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15461/* confdefs.h. */
15462_ACEOF
15463cat confdefs.h >>conftest.$ac_ext
15464cat >>conftest.$ac_ext <<_ACEOF
15465/* end confdefs.h. */
ea04106b 15466
ea04106b 15467
cae5b340 15468 #include <linux/fs.h>
ea04106b
AX
15469
15470int
15471main (void)
15472{
15473
cae5b340 15474 lookup_bdev(NULL, FMODE_READ);
87dac73d
AX
15475
15476 ;
15477 return 0;
15478}
15479
15480_ACEOF
15481
15482
15483
15484cat - <<_ACEOF >conftest.h
15485
15486_ACEOF
15487
15488
15489 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15490 echo "obj-m := conftest.o" >build/Makefile
15491 modpost_flag=''
15492 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15493 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
15495 (eval $ac_try) 2>&5
15496 ac_status=$?
cae5b340
AX
15497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
15500 (eval $ac_try) 2>&5
15501 ac_status=$?
cae5b340
AX
15502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15504 rc=0
15505else
15506 $as_echo "$as_me: failed program was:" >&5
15507sed 's/^/| /' conftest.$ac_ext >&5
15508 rc=1
87dac73d 15509
87dac73d 15510
cae5b340 15511fi
87dac73d 15512
cae5b340 15513 rm -Rf build
87dac73d 15514
87dac73d 15515
cae5b340
AX
15516 if test $rc -ne 0; then :
15517
15518 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
15519$as_echo "no" >&6; }
15520
cae5b340
AX
15521 else
15522 if test "x$enable_linux_builtin" != xyes; then
87dac73d 15523
cae5b340
AX
15524 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15525 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15526 rc=$?
15527 if test $rc -ne 0; then
15528 export=0
15529 for file in fs/block_dev.c; do
15530 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15531 "$LINUX/$file" 2>/dev/null
15532 rc=$?
15533 if test $rc -eq 0; then
15534 export=1
15535 break;
15536 fi
15537 done
15538 if test $export -eq 0; then :
15539 rc=1
15540 else :
15541 rc=0
15542 fi
15543 else :
15544 rc=0
15545 fi
87dac73d 15546
cae5b340
AX
15547 fi
15548 if test $rc -ne 0; then :
87dac73d 15549
cae5b340
AX
15550 { $as_echo "$as_me:$LINENO: result: no" >&5
15551$as_echo "no" >&6; }
87dac73d 15552
cae5b340 15553 else :
87dac73d 15554
cae5b340
AX
15555 { $as_echo "$as_me:$LINENO: result: yes" >&5
15556$as_echo "yes" >&6; }
15557
15558cat >>confdefs.h <<\_ACEOF
15559#define HAVE_2ARGS_LOOKUP_BDEV 1
15560_ACEOF
15561
15562
15563 fi
15564 fi
15565
15566
15567 else
15568 if test "x$enable_linux_builtin" != xyes; then
15569
15570 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15571 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15572 rc=$?
15573 if test $rc -ne 0; then
15574 export=0
15575 for file in fs/block_dev.c; do
15576 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15577 "$LINUX/$file" 2>/dev/null
15578 rc=$?
15579 if test $rc -eq 0; then
15580 export=1
15581 break;
15582 fi
15583 done
15584 if test $export -eq 0; then :
15585 rc=1
15586 else :
15587 rc=0
15588 fi
15589 else :
15590 rc=0
15591 fi
15592
15593 fi
15594 if test $rc -ne 0; then :
15595
15596 { $as_echo "$as_me:$LINENO: result: no" >&5
15597$as_echo "no" >&6; }
15598 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
15599$as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
87dac73d 15600
87dac73d
AX
15601
15602
15603cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15604/* confdefs.h. */
15605_ACEOF
15606cat confdefs.h >>conftest.$ac_ext
15607cat >>conftest.$ac_ext <<_ACEOF
15608/* end confdefs.h. */
87dac73d
AX
15609
15610
cae5b340 15611 #include <linux/fs.h>
87dac73d
AX
15612
15613int
15614main (void)
15615{
15616
cae5b340 15617 lookup_bdev(NULL, FMODE_READ);
87dac73d
AX
15618
15619 ;
15620 return 0;
15621}
15622
15623_ACEOF
15624
15625
15626
15627cat - <<_ACEOF >conftest.h
15628
15629_ACEOF
15630
15631
15632 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15633 echo "obj-m := conftest.o" >build/Makefile
15634 modpost_flag=''
15635 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15636 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
15638 (eval $ac_try) 2>&5
15639 ac_status=$?
cae5b340
AX
15640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
15643 (eval $ac_try) 2>&5
15644 ac_status=$?
cae5b340
AX
15645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; }; then
15647 rc=0
15648else
15649 $as_echo "$as_me: failed program was:" >&5
15650sed 's/^/| /' conftest.$ac_ext >&5
15651 rc=1
87dac73d 15652
87dac73d 15653
cae5b340 15654fi
87dac73d 15655
cae5b340 15656 rm -Rf build
87dac73d 15657
68d83c55 15658
cae5b340
AX
15659 if test $rc -ne 0; then :
15660
15661 { $as_echo "$as_me:$LINENO: result: no" >&5
15662$as_echo "no" >&6; }
15663
15664 else
15665 if test "x$enable_linux_builtin" != xyes; then
15666
15667 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15668 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15669 rc=$?
15670 if test $rc -ne 0; then
15671 export=0
15672 for file in fs/block_dev.c; do
15673 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15674 "$LINUX/$file" 2>/dev/null
15675 rc=$?
15676 if test $rc -eq 0; then
15677 export=1
15678 break;
15679 fi
15680 done
15681 if test $export -eq 0; then :
15682 rc=1
15683 else :
15684 rc=0
15685 fi
15686 else :
15687 rc=0
15688 fi
15689
15690 fi
15691 if test $rc -ne 0; then :
15692
15693 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
15694$as_echo "no" >&6; }
15695
cae5b340 15696 else :
68d83c55 15697
cae5b340
AX
15698 { $as_echo "$as_me:$LINENO: result: yes" >&5
15699$as_echo "yes" >&6; }
68d83c55 15700
cae5b340
AX
15701cat >>confdefs.h <<\_ACEOF
15702#define HAVE_2ARGS_LOOKUP_BDEV 1
15703_ACEOF
15704
15705
15706 fi
15707 fi
68d83c55
AX
15708
15709
cae5b340 15710 else :
68d83c55 15711
cae5b340
AX
15712 { $as_echo "$as_me:$LINENO: result: yes" >&5
15713$as_echo "yes" >&6; }
68d83c55 15714
cae5b340
AX
15715cat >>confdefs.h <<\_ACEOF
15716#define HAVE_1ARG_LOOKUP_BDEV 1
15717_ACEOF
87dac73d
AX
15718
15719
cae5b340
AX
15720 fi
15721 fi
87dac73d
AX
15722
15723
87dac73d 15724
cae5b340
AX
15725 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
15726$as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
68d83c55 15727
cae5b340
AX
15728
15729cat confdefs.h - <<_ACEOF >conftest.c
15730/* confdefs.h. */
15731_ACEOF
15732cat confdefs.h >>conftest.$ac_ext
15733cat >>conftest.$ac_ext <<_ACEOF
15734/* end confdefs.h. */
15735
15736
15737 #include <linux/buffer_head.h>
87dac73d
AX
15738
15739int
15740main (void)
15741{
15742
cae5b340
AX
15743 struct block_device *bdev = NULL;
15744 invalidate_bdev(bdev);
87dac73d
AX
15745
15746 ;
15747 return 0;
15748}
15749
15750_ACEOF
15751
15752
15753
15754cat - <<_ACEOF >conftest.h
15755
15756_ACEOF
15757
15758
15759 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15760 echo "obj-m := conftest.o" >build/Makefile
15761 modpost_flag=''
15762 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15763 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
15765 (eval $ac_try) 2>&5
15766 ac_status=$?
cae5b340
AX
15767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
15770 (eval $ac_try) 2>&5
15771 ac_status=$?
cae5b340
AX
15772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; }; then
87dac73d 15774
cae5b340 15775 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
15776$as_echo "yes" >&6; }
15777
cae5b340
AX
15778cat >>confdefs.h <<\_ACEOF
15779#define HAVE_1ARG_INVALIDATE_BDEV 1
15780_ACEOF
87dac73d
AX
15781
15782
15783else
15784 $as_echo "$as_me: failed program was:" >&5
15785sed 's/^/| /' conftest.$ac_ext >&5
15786
cae5b340 15787 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
15788$as_echo "no" >&6; }
15789
15790
15791
15792fi
cae5b340 15793
87dac73d
AX
15794 rm -Rf build
15795
15796
15797
87dac73d 15798
cae5b340
AX
15799 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
15800$as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
15801 tmp_flags="$EXTRA_KCFLAGS"
15802 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
87dac73d 15803
87dac73d 15804
68d83c55 15805cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15806/* confdefs.h. */
15807_ACEOF
15808cat confdefs.h >>conftest.$ac_ext
15809cat >>conftest.$ac_ext <<_ACEOF
15810/* end confdefs.h. */
87dac73d 15811
87dac73d 15812
cae5b340 15813 #include <linux/blkdev.h>
87dac73d
AX
15814
15815int
15816main (void)
15817{
15818
cae5b340
AX
15819 struct block_device *bdev = NULL;
15820 bdev_logical_block_size(bdev);
87dac73d
AX
15821
15822 ;
15823 return 0;
15824}
15825
15826_ACEOF
15827
15828
15829
15830cat - <<_ACEOF >conftest.h
15831
15832_ACEOF
15833
15834
15835 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15836 echo "obj-m := conftest.o" >build/Makefile
15837 modpost_flag=''
15838 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15839 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
15841 (eval $ac_try) 2>&5
15842 ac_status=$?
cae5b340
AX
15843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
15846 (eval $ac_try) 2>&5
15847 ac_status=$?
cae5b340
AX
15848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }; }; then
87dac73d 15850
cae5b340 15851 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
15852$as_echo "yes" >&6; }
15853
cae5b340
AX
15854cat >>confdefs.h <<\_ACEOF
15855#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
15856_ACEOF
87dac73d
AX
15857
15858
68d83c55
AX
15859else
15860 $as_echo "$as_me: failed program was:" >&5
15861sed 's/^/| /' conftest.$ac_ext >&5
87dac73d 15862
cae5b340 15863 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 15864$as_echo "no" >&6; }
87dac73d 15865
87dac73d
AX
15866
15867
68d83c55 15868fi
cae5b340 15869
68d83c55 15870 rm -Rf build
87dac73d 15871
68d83c55 15872
cae5b340 15873 EXTRA_KCFLAGS="$tmp_flags"
68d83c55
AX
15874
15875
cae5b340
AX
15876 { $as_echo "$as_me:$LINENO: checking whether bdev_physical_block_size() is available" >&5
15877$as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
15878 tmp_flags="$EXTRA_KCFLAGS"
15879 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
68d83c55
AX
15880
15881
15882cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15883/* confdefs.h. */
15884_ACEOF
15885cat confdefs.h >>conftest.$ac_ext
15886cat >>conftest.$ac_ext <<_ACEOF
15887/* end confdefs.h. */
68d83c55
AX
15888
15889
cae5b340 15890 #include <linux/blkdev.h>
87dac73d
AX
15891
15892int
15893main (void)
15894{
15895
cae5b340
AX
15896 struct block_device *bdev = NULL;
15897 bdev_physical_block_size(bdev);
87dac73d
AX
15898
15899 ;
15900 return 0;
15901}
15902
15903_ACEOF
15904
15905
15906
15907cat - <<_ACEOF >conftest.h
15908
15909_ACEOF
15910
15911
15912 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15913 echo "obj-m := conftest.o" >build/Makefile
15914 modpost_flag=''
15915 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15916 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
15918 (eval $ac_try) 2>&5
15919 ac_status=$?
cae5b340
AX
15920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
15923 (eval $ac_try) 2>&5
15924 ac_status=$?
cae5b340
AX
15925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
87dac73d 15927
cae5b340 15928 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
15929$as_echo "yes" >&6; }
15930
cae5b340
AX
15931cat >>confdefs.h <<\_ACEOF
15932#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1
15933_ACEOF
87dac73d
AX
15934
15935
15936else
15937 $as_echo "$as_me: failed program was:" >&5
15938sed 's/^/| /' conftest.$ac_ext >&5
15939
cae5b340 15940 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
15941$as_echo "no" >&6; }
15942
15943
15944
15945fi
cae5b340 15946
87dac73d
AX
15947 rm -Rf build
15948
15949
cae5b340 15950 EXTRA_KCFLAGS="$tmp_flags"
87dac73d 15951
87dac73d 15952
cae5b340
AX
15953 { $as_echo "$as_me:$LINENO: checking whether bio has bi_iter" >&5
15954$as_echo_n "checking whether bio has bi_iter... " >&6; }
87dac73d
AX
15955
15956
15957cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15958/* confdefs.h. */
15959_ACEOF
15960cat confdefs.h >>conftest.$ac_ext
15961cat >>conftest.$ac_ext <<_ACEOF
15962/* end confdefs.h. */
87dac73d
AX
15963
15964
cae5b340 15965 #include <linux/bio.h>
87dac73d
AX
15966
15967int
15968main (void)
15969{
15970
cae5b340
AX
15971 struct bio bio;
15972 bio.bi_iter.bi_sector = 0;
87dac73d
AX
15973
15974 ;
15975 return 0;
15976}
15977
15978_ACEOF
15979
15980
15981
15982cat - <<_ACEOF >conftest.h
15983
15984_ACEOF
15985
15986
15987 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15988 echo "obj-m := conftest.o" >build/Makefile
15989 modpost_flag=''
15990 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15991 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
15993 (eval $ac_try) 2>&5
15994 ac_status=$?
cae5b340
AX
15995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
15998 (eval $ac_try) 2>&5
15999 ac_status=$?
cae5b340
AX
16000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); }; }; then
87dac73d 16002
cae5b340 16003 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
16004$as_echo "yes" >&6; }
16005
cae5b340
AX
16006cat >>confdefs.h <<\_ACEOF
16007#define HAVE_BIO_BVEC_ITER 1
16008_ACEOF
68d83c55
AX
16009
16010
cae5b340
AX
16011else
16012 $as_echo "$as_me: failed program was:" >&5
16013sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 16014
cae5b340
AX
16015 { $as_echo "$as_me:$LINENO: result: no" >&5
16016$as_echo "no" >&6; }
68d83c55 16017
68d83c55
AX
16018
16019
cae5b340 16020fi
68d83c55 16021
cae5b340
AX
16022 rm -Rf build
16023
16024
16025
16026
16027 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
16028$as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
16029
16030
16031cat confdefs.h - <<_ACEOF >conftest.c
16032/* confdefs.h. */
16033_ACEOF
16034cat confdefs.h >>conftest.$ac_ext
16035cat >>conftest.$ac_ext <<_ACEOF
16036/* end confdefs.h. */
16037
16038
16039 #include <linux/bio.h>
68d83c55
AX
16040
16041int
16042main (void)
16043{
16044
cae5b340
AX
16045 int flags __attribute__ ((unused));
16046 flags = ((1 << BIO_RW_FAILFAST_DEV) |
16047 (1 << BIO_RW_FAILFAST_TRANSPORT) |
16048 (1 << BIO_RW_FAILFAST_DRIVER));
68d83c55
AX
16049
16050 ;
16051 return 0;
16052}
16053
16054_ACEOF
16055
16056
16057
16058cat - <<_ACEOF >conftest.h
16059
16060_ACEOF
16061
16062
16063 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16064 echo "obj-m := conftest.o" >build/Makefile
16065 modpost_flag=''
16066 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16067 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
16069 (eval $ac_try) 2>&5
16070 ac_status=$?
cae5b340
AX
16071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
16074 (eval $ac_try) 2>&5
16075 ac_status=$?
cae5b340
AX
16076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; }; then
68d83c55 16078
cae5b340 16079 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
16080$as_echo "yes" >&6; }
16081
cae5b340
AX
16082cat >>confdefs.h <<\_ACEOF
16083#define HAVE_BIO_RW_FAILFAST_DTD 1
16084_ACEOF
87dac73d
AX
16085
16086
16087else
16088 $as_echo "$as_me: failed program was:" >&5
16089sed 's/^/| /' conftest.$ac_ext >&5
16090
cae5b340 16091 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
16092$as_echo "no" >&6; }
16093
16094
16095
16096fi
cae5b340 16097
87dac73d
AX
16098 rm -Rf build
16099
16100
87dac73d 16101
87dac73d 16102
cae5b340
AX
16103 { $as_echo "$as_me:$LINENO: checking whether bio_set_dev() exists" >&5
16104$as_echo_n "checking whether bio_set_dev() exists... " >&6; }
87dac73d 16105
87dac73d 16106
cae5b340
AX
16107cat confdefs.h - <<_ACEOF >conftest.c
16108/* confdefs.h. */
16109_ACEOF
16110cat confdefs.h >>conftest.$ac_ext
16111cat >>conftest.$ac_ext <<_ACEOF
16112/* end confdefs.h. */
87dac73d 16113
87dac73d 16114
cae5b340
AX
16115 #include <linux/bio.h>
16116 #include <linux/fs.h>
68d83c55 16117
87dac73d
AX
16118int
16119main (void)
16120{
16121
cae5b340
AX
16122 struct block_device *bdev = NULL;
16123 struct bio *bio = NULL;
16124 bio_set_dev(bio, bdev);
87dac73d
AX
16125
16126 ;
16127 return 0;
16128}
16129
16130_ACEOF
16131
16132
16133
16134cat - <<_ACEOF >conftest.h
16135
16136_ACEOF
16137
16138
16139 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16140 echo "obj-m := conftest.o" >build/Makefile
16141 modpost_flag=''
16142 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16143 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16145 (eval $ac_try) 2>&5
16146 ac_status=$?
cae5b340
AX
16147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16150 (eval $ac_try) 2>&5
16151 ac_status=$?
cae5b340
AX
16152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
87dac73d 16154
cae5b340 16155 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
16156$as_echo "yes" >&6; }
16157
cae5b340
AX
16158cat >>confdefs.h <<\_ACEOF
16159#define HAVE_BIO_SET_DEV 1
16160_ACEOF
87dac73d
AX
16161
16162
cae5b340
AX
16163else
16164 $as_echo "$as_me: failed program was:" >&5
16165sed 's/^/| /' conftest.$ac_ext >&5
87dac73d 16166
cae5b340
AX
16167 { $as_echo "$as_me:$LINENO: result: no" >&5
16168$as_echo "no" >&6; }
87dac73d 16169
87dac73d
AX
16170
16171
cae5b340 16172fi
68d83c55 16173
cae5b340
AX
16174 rm -Rf build
16175
16176
16177
16178
16179 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
16180$as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
16181
16182
16183cat confdefs.h - <<_ACEOF >conftest.c
16184/* confdefs.h. */
16185_ACEOF
16186cat confdefs.h >>conftest.$ac_ext
16187cat >>conftest.$ac_ext <<_ACEOF
16188/* end confdefs.h. */
16189
16190
16191 #include <linux/bio.h>
87dac73d
AX
16192
16193int
16194main (void)
16195{
16196
cae5b340
AX
16197 int flags __attribute__ ((unused));
16198 flags = REQ_FAILFAST_MASK;
87dac73d
AX
16199
16200 ;
16201 return 0;
16202}
16203
16204_ACEOF
16205
16206
16207
16208cat - <<_ACEOF >conftest.h
16209
16210_ACEOF
16211
16212
16213 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16214 echo "obj-m := conftest.o" >build/Makefile
16215 modpost_flag=''
16216 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16217 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16219 (eval $ac_try) 2>&5
16220 ac_status=$?
cae5b340
AX
16221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16224 (eval $ac_try) 2>&5
16225 ac_status=$?
cae5b340
AX
16226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; }; then
16228
16229 { $as_echo "$as_me:$LINENO: result: yes" >&5
16230$as_echo "yes" >&6; }
16231
16232cat >>confdefs.h <<\_ACEOF
16233#define HAVE_REQ_FAILFAST_MASK 1
16234_ACEOF
87dac73d 16235
68d83c55
AX
16236
16237else
16238 $as_echo "$as_me: failed program was:" >&5
16239sed 's/^/| /' conftest.$ac_ext >&5
16240
cae5b340
AX
16241 { $as_echo "$as_me:$LINENO: result: no" >&5
16242$as_echo "no" >&6; }
68d83c55
AX
16243
16244
16245
16246fi
cae5b340 16247
68d83c55
AX
16248 rm -Rf build
16249
87dac73d
AX
16250
16251
cae5b340
AX
16252
16253 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_DISCARD is defined" >&5
16254$as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
16255
16256
16257cat confdefs.h - <<_ACEOF >conftest.c
16258/* confdefs.h. */
16259_ACEOF
16260cat confdefs.h >>conftest.$ac_ext
16261cat >>conftest.$ac_ext <<_ACEOF
16262/* end confdefs.h. */
16263
16264
16265 #include <linux/blk_types.h>
16266
16267int
16268main (void)
16269{
16270
16271 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
16272
16273 ;
16274 return 0;
16275}
16276
16277_ACEOF
16278
16279
16280
16281cat - <<_ACEOF >conftest.h
16282
16283_ACEOF
16284
16285
16286 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16287 echo "obj-m := conftest.o" >build/Makefile
16288 modpost_flag=''
16289 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16290 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16293 ac_status=$?
16294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297 (eval $ac_try) 2>&5
16298 ac_status=$?
16299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; }; then
16301
16302 { $as_echo "$as_me:$LINENO: result: yes" >&5
16303$as_echo "yes" >&6; }
16304
16305cat >>confdefs.h <<\_ACEOF
16306#define HAVE_REQ_OP_DISCARD 1
16307_ACEOF
16308
16309
87dac73d
AX
16310else
16311 $as_echo "$as_me: failed program was:" >&5
16312sed 's/^/| /' conftest.$ac_ext >&5
16313
cae5b340 16314 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
16315$as_echo "no" >&6; }
16316
16317
16318
16319fi
87dac73d 16320
cae5b340 16321 rm -Rf build
87dac73d 16322
68d83c55 16323
87dac73d 16324
87dac73d 16325
cae5b340
AX
16326 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_SECURE_ERASE is defined" >&5
16327$as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
87dac73d
AX
16328
16329
16330cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16331/* confdefs.h. */
16332_ACEOF
16333cat confdefs.h >>conftest.$ac_ext
16334cat >>conftest.$ac_ext <<_ACEOF
16335/* end confdefs.h. */
87dac73d
AX
16336
16337
cae5b340 16338 #include <linux/blk_types.h>
87dac73d
AX
16339
16340int
16341main (void)
16342{
16343
cae5b340 16344 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
ea04106b
AX
16345
16346 ;
16347 return 0;
16348}
16349
16350_ACEOF
16351
16352
16353
16354cat - <<_ACEOF >conftest.h
16355
16356_ACEOF
16357
16358
16359 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16360 echo "obj-m := conftest.o" >build/Makefile
16361 modpost_flag=''
16362 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16363 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
16365 (eval $ac_try) 2>&5
16366 ac_status=$?
cae5b340
AX
16367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
16370 (eval $ac_try) 2>&5
16371 ac_status=$?
cae5b340
AX
16372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; }; then
e10b0808 16374
cae5b340 16375 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 16376$as_echo "yes" >&6; }
ea04106b 16377
cae5b340
AX
16378cat >>confdefs.h <<\_ACEOF
16379#define HAVE_REQ_OP_SECURE_ERASE 1
16380_ACEOF
ea04106b 16381
ea04106b 16382
68d83c55
AX
16383else
16384 $as_echo "$as_me: failed program was:" >&5
16385sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 16386
cae5b340 16387 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 16388$as_echo "no" >&6; }
ea04106b
AX
16389
16390
ea04106b 16391
68d83c55 16392fi
cae5b340 16393
68d83c55 16394 rm -Rf build
ea04106b 16395
ea04106b
AX
16396
16397
e10b0808 16398
cae5b340
AX
16399 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_FLUSH is defined" >&5
16400$as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
ea04106b
AX
16401
16402
16403cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16404/* confdefs.h. */
16405_ACEOF
16406cat confdefs.h >>conftest.$ac_ext
16407cat >>conftest.$ac_ext <<_ACEOF
16408/* end confdefs.h. */
ea04106b
AX
16409
16410
cae5b340 16411 #include <linux/blk_types.h>
ea04106b
AX
16412
16413int
16414main (void)
16415{
16416
cae5b340 16417 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
ea04106b
AX
16418
16419 ;
16420 return 0;
16421}
16422
16423_ACEOF
16424
16425
16426
16427cat - <<_ACEOF >conftest.h
16428
16429_ACEOF
16430
16431
16432 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16433 echo "obj-m := conftest.o" >build/Makefile
16434 modpost_flag=''
16435 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16436 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
16438 (eval $ac_try) 2>&5
16439 ac_status=$?
cae5b340
AX
16440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
16443 (eval $ac_try) 2>&5
16444 ac_status=$?
cae5b340
AX
16445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; }; then
ea04106b 16447
cae5b340 16448 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
16449$as_echo "yes" >&6; }
16450
cae5b340
AX
16451cat >>confdefs.h <<\_ACEOF
16452#define HAVE_REQ_OP_FLUSH 1
16453_ACEOF
ea04106b
AX
16454
16455
16456else
16457 $as_echo "$as_me: failed program was:" >&5
16458sed 's/^/| /' conftest.$ac_ext >&5
16459
cae5b340 16460 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
16461$as_echo "no" >&6; }
16462
16463
16464
16465fi
cae5b340 16466
ea04106b
AX
16467 rm -Rf build
16468
16469
ea04106b 16470
4d815aed 16471
cae5b340
AX
16472 { $as_echo "$as_me:$LINENO: checking whether bio->bi_opf is defined" >&5
16473$as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
ea04106b
AX
16474
16475
16476cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16477/* confdefs.h. */
16478_ACEOF
16479cat confdefs.h >>conftest.$ac_ext
16480cat >>conftest.$ac_ext <<_ACEOF
16481/* end confdefs.h. */
ea04106b
AX
16482
16483
cae5b340 16484 #include <linux/bio.h>
ea04106b
AX
16485
16486int
16487main (void)
16488{
16489
cae5b340
AX
16490 struct bio bio __attribute__ ((unused));
16491 bio.bi_opf = 0;
ea04106b
AX
16492
16493 ;
16494 return 0;
16495}
16496
16497_ACEOF
16498
16499
16500
16501cat - <<_ACEOF >conftest.h
16502
16503_ACEOF
16504
16505
16506 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16507 echo "obj-m := conftest.o" >build/Makefile
16508 modpost_flag=''
16509 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16510 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
16512 (eval $ac_try) 2>&5
16513 ac_status=$?
cae5b340
AX
16514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
16517 (eval $ac_try) 2>&5
16518 ac_status=$?
cae5b340
AX
16519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; }; then
ea04106b 16521
cae5b340 16522 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
16523$as_echo "yes" >&6; }
16524
cae5b340
AX
16525cat >>confdefs.h <<\_ACEOF
16526#define HAVE_BIO_BI_OPF 1
16527_ACEOF
ea04106b
AX
16528
16529
16530else
16531 $as_echo "$as_me: failed program was:" >&5
16532sed 's/^/| /' conftest.$ac_ext >&5
16533
cae5b340 16534 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
16535$as_echo "no" >&6; }
16536
16537
16538
5eacc075 16539fi
cae5b340 16540
5eacc075
AX
16541 rm -Rf build
16542
16543
16544
16545
cae5b340
AX
16546 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 1 arg" >&5
16547$as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
5eacc075
AX
16548
16549
16550cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16551/* confdefs.h. */
16552_ACEOF
16553cat confdefs.h >>conftest.$ac_ext
16554cat >>conftest.$ac_ext <<_ACEOF
16555/* end confdefs.h. */
5eacc075
AX
16556
16557
cae5b340
AX
16558 #include <linux/bio.h>
16559
16560 void wanted_end_io(struct bio *bio) { return; }
16561
16562 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
5eacc075
AX
16563
16564int
16565main (void)
16566{
16567
16568
16569 ;
16570 return 0;
16571}
16572
16573_ACEOF
16574
16575
16576
16577cat - <<_ACEOF >conftest.h
16578
16579_ACEOF
16580
16581
16582 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16583 echo "obj-m := conftest.o" >build/Makefile
16584 modpost_flag=''
16585 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16586 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5eacc075
AX
16588 (eval $ac_try) 2>&5
16589 ac_status=$?
cae5b340
AX
16590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5eacc075
AX
16593 (eval $ac_try) 2>&5
16594 ac_status=$?
cae5b340
AX
16595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; }; then
5eacc075 16597
cae5b340 16598 { $as_echo "$as_me:$LINENO: result: yes" >&5
5eacc075
AX
16599$as_echo "yes" >&6; }
16600
cae5b340
AX
16601cat >>confdefs.h <<\_ACEOF
16602#define HAVE_1ARG_BIO_END_IO_T 1
16603_ACEOF
5eacc075
AX
16604
16605
16606else
16607 $as_echo "$as_me: failed program was:" >&5
16608sed 's/^/| /' conftest.$ac_ext >&5
16609
cae5b340 16610 { $as_echo "$as_me:$LINENO: result: no" >&5
5eacc075
AX
16611$as_echo "no" >&6; }
16612
16613
16614
ea04106b 16615fi
cae5b340 16616
ea04106b
AX
16617 rm -Rf build
16618
16619
ea04106b
AX
16620
16621
cae5b340
AX
16622 { $as_echo "$as_me:$LINENO: checking whether bio->bi_status exists" >&5
16623$as_echo_n "checking whether bio->bi_status exists... " >&6; }
ea04106b
AX
16624
16625
16626cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16627/* confdefs.h. */
16628_ACEOF
16629cat confdefs.h >>conftest.$ac_ext
16630cat >>conftest.$ac_ext <<_ACEOF
16631/* end confdefs.h. */
ea04106b
AX
16632
16633
cae5b340 16634 #include <linux/bio.h>
ea04106b
AX
16635
16636int
16637main (void)
16638{
16639
cae5b340
AX
16640 struct bio bio __attribute__ ((unused));
16641 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
16642
16643 bio.bi_status = status;
ea04106b
AX
16644
16645 ;
16646 return 0;
16647}
16648
16649_ACEOF
16650
16651
16652
16653cat - <<_ACEOF >conftest.h
16654
16655_ACEOF
16656
16657
16658 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16659 echo "obj-m := conftest.o" >build/Makefile
16660 modpost_flag=''
16661 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16662 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
16664 (eval $ac_try) 2>&5
16665 ac_status=$?
cae5b340
AX
16666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
16669 (eval $ac_try) 2>&5
16670 ac_status=$?
cae5b340
AX
16671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }; then
ea04106b 16673
cae5b340 16674 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
16675$as_echo "yes" >&6; }
16676
cae5b340
AX
16677cat >>confdefs.h <<\_ACEOF
16678#define HAVE_BIO_BI_STATUS 1
16679_ACEOF
ea04106b
AX
16680
16681
16682else
16683 $as_echo "$as_me: failed program was:" >&5
16684sed 's/^/| /' conftest.$ac_ext >&5
16685
cae5b340 16686 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 16687$as_echo "no" >&6; }
94a40997
AX
16688
16689
94a40997 16690
68d83c55 16691fi
cae5b340 16692
68d83c55
AX
16693 rm -Rf build
16694
16695
68d83c55 16696
94a40997 16697
cae5b340
AX
16698 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_BARRIER is defined" >&5
16699$as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
94a40997 16700
68d83c55
AX
16701
16702cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16703/* confdefs.h. */
16704_ACEOF
16705cat confdefs.h >>conftest.$ac_ext
16706cat >>conftest.$ac_ext <<_ACEOF
16707/* end confdefs.h. */
68d83c55
AX
16708
16709
cae5b340 16710 #include <linux/bio.h>
94a40997
AX
16711
16712int
16713main (void)
16714{
16715
cae5b340
AX
16716 int flags __attribute__ ((unused));
16717 flags = BIO_RW_BARRIER;
94a40997
AX
16718
16719 ;
16720 return 0;
16721}
16722
16723_ACEOF
16724
16725
16726
16727cat - <<_ACEOF >conftest.h
16728
16729_ACEOF
16730
16731
16732 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16733 echo "obj-m := conftest.o" >build/Makefile
16734 modpost_flag=''
16735 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16736 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
16738 (eval $ac_try) 2>&5
16739 ac_status=$?
cae5b340
AX
16740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
16743 (eval $ac_try) 2>&5
16744 ac_status=$?
cae5b340
AX
16745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
87dac73d 16747
cae5b340
AX
16748 { $as_echo "$as_me:$LINENO: result: yes" >&5
16749$as_echo "yes" >&6; }
87dac73d 16750
cae5b340
AX
16751cat >>confdefs.h <<\_ACEOF
16752#define HAVE_BIO_RW_BARRIER 1
16753_ACEOF
87dac73d 16754
87dac73d 16755
cae5b340
AX
16756else
16757 $as_echo "$as_me: failed program was:" >&5
16758sed 's/^/| /' conftest.$ac_ext >&5
87dac73d 16759
cae5b340 16760 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
16761$as_echo "no" >&6; }
16762
68d83c55 16763
68d83c55 16764
cae5b340 16765fi
68d83c55 16766
cae5b340 16767 rm -Rf build
68d83c55 16768
87dac73d 16769
68d83c55
AX
16770
16771
cae5b340
AX
16772 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_DISCARD is defined" >&5
16773$as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
68d83c55
AX
16774
16775
16776cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16777/* confdefs.h. */
16778_ACEOF
16779cat confdefs.h >>conftest.$ac_ext
16780cat >>conftest.$ac_ext <<_ACEOF
16781/* end confdefs.h. */
68d83c55
AX
16782
16783
cae5b340 16784 #include <linux/bio.h>
87dac73d
AX
16785
16786int
16787main (void)
16788{
16789
cae5b340
AX
16790 int flags __attribute__ ((unused));
16791 flags = BIO_RW_DISCARD;
87dac73d
AX
16792
16793 ;
16794 return 0;
16795}
16796
16797_ACEOF
16798
16799
16800
16801cat - <<_ACEOF >conftest.h
16802
16803_ACEOF
16804
16805
16806 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16807 echo "obj-m := conftest.o" >build/Makefile
16808 modpost_flag=''
16809 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16810 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16812 (eval $ac_try) 2>&5
16813 ac_status=$?
cae5b340
AX
16814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16817 (eval $ac_try) 2>&5
16818 ac_status=$?
cae5b340
AX
16819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; }; then
87dac73d 16821
cae5b340 16822 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
16823$as_echo "yes" >&6; }
16824
cae5b340
AX
16825cat >>confdefs.h <<\_ACEOF
16826#define HAVE_BIO_RW_DISCARD 1
16827_ACEOF
87dac73d
AX
16828
16829
16830else
16831 $as_echo "$as_me: failed program was:" >&5
16832sed 's/^/| /' conftest.$ac_ext >&5
16833
cae5b340 16834 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d 16835$as_echo "no" >&6; }
87dac73d
AX
16836
16837
68d83c55
AX
16838
16839fi
cae5b340 16840
68d83c55 16841 rm -Rf build
87dac73d
AX
16842
16843
87dac73d 16844
68d83c55 16845
cae5b340
AX
16846 { $as_echo "$as_me:$LINENO: checking whether blk_queue bdi is dynamic" >&5
16847$as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
68d83c55
AX
16848
16849
16850cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16851/* confdefs.h. */
16852_ACEOF
16853cat confdefs.h >>conftest.$ac_ext
16854cat >>conftest.$ac_ext <<_ACEOF
16855/* end confdefs.h. */
68d83c55
AX
16856
16857
cae5b340 16858 #include <linux/blkdev.h>
87dac73d
AX
16859
16860int
16861main (void)
16862{
16863
cae5b340
AX
16864 struct request_queue q;
16865 struct backing_dev_info bdi;
16866 q.backing_dev_info = &bdi;
87dac73d
AX
16867
16868 ;
16869 return 0;
16870}
16871
16872_ACEOF
16873
16874
16875
16876cat - <<_ACEOF >conftest.h
16877
16878_ACEOF
16879
16880
16881 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16882 echo "obj-m := conftest.o" >build/Makefile
16883 modpost_flag=''
16884 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16885 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16887 (eval $ac_try) 2>&5
16888 ac_status=$?
cae5b340
AX
16889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16892 (eval $ac_try) 2>&5
16893 ac_status=$?
cae5b340
AX
16894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; }; then
87dac73d 16896
cae5b340 16897 { $as_echo "$as_me:$LINENO: result: yes" >&5
94a40997
AX
16898$as_echo "yes" >&6; }
16899
cae5b340
AX
16900cat >>confdefs.h <<\_ACEOF
16901#define HAVE_BLK_QUEUE_BDI_DYNAMIC 1
16902_ACEOF
94a40997
AX
16903
16904
16905else
16906 $as_echo "$as_me: failed program was:" >&5
16907sed 's/^/| /' conftest.$ac_ext >&5
16908
cae5b340 16909 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 16910$as_echo "no" >&6; }
87dac73d
AX
16911
16912
16913
16914fi
cae5b340 16915
87dac73d
AX
16916 rm -Rf build
16917
16918
16919
16920
cae5b340
AX
16921 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
16922$as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
16923 tmp_flags="$EXTRA_KCFLAGS"
16924 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
4d815aed
AX
16925
16926
16927cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16928/* confdefs.h. */
16929_ACEOF
16930cat confdefs.h >>conftest.$ac_ext
16931cat >>conftest.$ac_ext <<_ACEOF
16932/* end confdefs.h. */
4d815aed
AX
16933
16934
68d83c55 16935 #include <linux/blkdev.h>
4d815aed
AX
16936
16937int
16938main (void)
16939{
16940
cae5b340
AX
16941 struct request_queue *q = NULL;
16942 (void) blk_queue_flush(q, REQ_FLUSH);
4d815aed
AX
16943
16944 ;
16945 return 0;
16946}
16947
16948_ACEOF
16949
16950
16951
16952cat - <<_ACEOF >conftest.h
16953
16954_ACEOF
16955
16956
16957 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16958 echo "obj-m := conftest.o" >build/Makefile
16959 modpost_flag=''
16960 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16961 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
16963 (eval $ac_try) 2>&5
16964 ac_status=$?
cae5b340
AX
16965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
16968 (eval $ac_try) 2>&5
16969 ac_status=$?
cae5b340
AX
16970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); }; }; then
4d815aed 16972
cae5b340 16973 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
16974$as_echo "yes" >&6; }
16975
cae5b340
AX
16976cat >>confdefs.h <<\_ACEOF
16977#define HAVE_BLK_QUEUE_FLUSH 1
16978_ACEOF
ea04106b 16979
ea04106b 16980
cae5b340
AX
16981 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
16982$as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
ea04106b 16983
ea04106b 16984
68d83c55 16985cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16986/* confdefs.h. */
16987_ACEOF
16988cat confdefs.h >>conftest.$ac_ext
16989cat >>conftest.$ac_ext <<_ACEOF
16990/* end confdefs.h. */
94a40997
AX
16991
16992
cae5b340
AX
16993 #include <linux/module.h>
16994 #include <linux/blkdev.h>
94a40997 16995
cae5b340 16996 MODULE_LICENSE("$ZFS_META_LICENSE");
94a40997
AX
16997
16998int
16999main (void)
17000{
17001
cae5b340
AX
17002 struct request_queue *q = NULL;
17003 (void) blk_queue_flush(q, REQ_FLUSH);
94a40997
AX
17004
17005 ;
17006 return 0;
17007}
17008
17009_ACEOF
17010
17011
17012
17013cat - <<_ACEOF >conftest.h
17014
17015_ACEOF
17016
17017
17018 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17019 echo "obj-m := conftest.o" >build/Makefile
17020 modpost_flag=''
17021 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17022 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
17024 (eval $ac_try) 2>&5
17025 ac_status=$?
cae5b340
AX
17026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
17029 (eval $ac_try) 2>&5
17030 ac_status=$?
cae5b340
AX
17031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033
17034 { $as_echo "$as_me:$LINENO: result: no" >&5
17035$as_echo "no" >&6; }
17036
17037else
17038 $as_echo "$as_me: failed program was:" >&5
17039sed 's/^/| /' conftest.$ac_ext >&5
94a40997 17040
cae5b340 17041 { $as_echo "$as_me:$LINENO: result: yes" >&5
94a40997
AX
17042$as_echo "yes" >&6; }
17043
cae5b340
AX
17044cat >>confdefs.h <<\_ACEOF
17045#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
17046_ACEOF
17047
17048
17049
17050
17051fi
17052
17053 rm -Rf build
17054
94a40997
AX
17055
17056
17057else
17058 $as_echo "$as_me: failed program was:" >&5
17059sed 's/^/| /' conftest.$ac_ext >&5
17060
cae5b340 17061 { $as_echo "$as_me:$LINENO: result: no" >&5
94a40997 17062$as_echo "no" >&6; }
68d83c55
AX
17063
17064
17065
17066fi
68d83c55 17067
cae5b340 17068 rm -Rf build
68d83c55
AX
17069
17070
17071
cae5b340
AX
17072 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() exists" >&5
17073$as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
4d815aed
AX
17074
17075
17076cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
17077/* confdefs.h. */
17078_ACEOF
17079cat confdefs.h >>conftest.$ac_ext
17080cat >>conftest.$ac_ext <<_ACEOF
17081/* end confdefs.h. */
4d815aed
AX
17082
17083
cae5b340
AX
17084 #include <linux/kernel.h>
17085 #include <linux/blkdev.h>
4d815aed 17086
4d815aed
AX
17087
17088int
17089main (void)
17090{
17091
cae5b340
AX
17092 struct request_queue *q = NULL;
17093 blk_queue_write_cache(q, true, true);
4d815aed
AX
17094
17095 ;
17096 return 0;
17097}
17098
17099_ACEOF
17100
17101
17102
17103cat - <<_ACEOF >conftest.h
17104
17105_ACEOF
17106
17107
17108 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17109 echo "obj-m := conftest.o" >build/Makefile
17110 modpost_flag=''
17111 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17112 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
17114 (eval $ac_try) 2>&5
17115 ac_status=$?
cae5b340
AX
17116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
17119 (eval $ac_try) 2>&5
17120 ac_status=$?
cae5b340
AX
17121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; }; then
4d815aed 17123
cae5b340 17124 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
17125$as_echo "yes" >&6; }
17126
cae5b340
AX
17127cat >>confdefs.h <<\_ACEOF
17128#define HAVE_BLK_QUEUE_WRITE_CACHE 1
17129_ACEOF
4d815aed
AX
17130
17131
cae5b340
AX
17132 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() is GPL-only" >&5
17133$as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
ea04106b
AX
17134
17135
17136cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
17137/* confdefs.h. */
17138_ACEOF
17139cat confdefs.h >>conftest.$ac_ext
17140cat >>conftest.$ac_ext <<_ACEOF
17141/* end confdefs.h. */
ea04106b
AX
17142
17143
cae5b340
AX
17144 #include <linux/kernel.h>
17145 #include <linux/module.h>
17146 #include <linux/blkdev.h>
e10b0808 17147
cae5b340 17148 MODULE_LICENSE("$ZFS_META_LICENSE");
ea04106b
AX
17149
17150int
17151main (void)
17152{
17153
cae5b340
AX
17154 struct request_queue *q = NULL;
17155 blk_queue_write_cache(q, true, true);
ea04106b
AX
17156
17157 ;
17158 return 0;
17159}
17160
17161_ACEOF
17162
17163
17164
17165cat - <<_ACEOF >conftest.h
17166
17167_ACEOF
17168
17169
17170 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17171 echo "obj-m := conftest.o" >build/Makefile
17172 modpost_flag=''
17173 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17174 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
17181 (eval $ac_try) 2>&5
17182 ac_status=$?
cae5b340
AX
17183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; }; then
17185
17186 { $as_echo "$as_me:$LINENO: result: no" >&5
17187$as_echo "no" >&6; }
17188
17189else
17190 $as_echo "$as_me: failed program was:" >&5
17191sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 17192
cae5b340 17193 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
17194$as_echo "yes" >&6; }
17195
cae5b340
AX
17196cat >>confdefs.h <<\_ACEOF
17197#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1
17198_ACEOF
17199
17200
17201
17202
17203fi
17204
17205 rm -Rf build
17206
ea04106b
AX
17207
17208
17209else
17210 $as_echo "$as_me: failed program was:" >&5
17211sed 's/^/| /' conftest.$ac_ext >&5
17212
cae5b340
AX
17213 { $as_echo "$as_me:$LINENO: result: no" >&5
17214$as_echo "no" >&6; }
94a40997
AX
17215
17216
94a40997 17217
cae5b340 17218fi
94a40997 17219
cae5b340
AX
17220 rm -Rf build
17221
17222
17223
17224 EXTRA_KCFLAGS="$tmp_flags"
17225
17226
17227 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
17228$as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
17229 tmp_flags="$EXTRA_KCFLAGS"
17230 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17231
17232
17233cat confdefs.h - <<_ACEOF >conftest.c
17234/* confdefs.h. */
17235_ACEOF
17236cat confdefs.h >>conftest.$ac_ext
17237cat >>conftest.$ac_ext <<_ACEOF
17238/* end confdefs.h. */
94a40997 17239
cae5b340
AX
17240
17241 #include <linux/blkdev.h>
94a40997
AX
17242
17243int
17244main (void)
17245{
17246
cae5b340
AX
17247 struct request_queue *q = NULL;
17248 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
94a40997
AX
17249
17250 ;
17251 return 0;
17252}
17253
17254_ACEOF
17255
17256
17257
17258cat - <<_ACEOF >conftest.h
17259
17260_ACEOF
17261
17262
17263 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17264 echo "obj-m := conftest.o" >build/Makefile
17265 modpost_flag=''
17266 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17267 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
17269 (eval $ac_try) 2>&5
17270 ac_status=$?
cae5b340
AX
17271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
17274 (eval $ac_try) 2>&5
17275 ac_status=$?
cae5b340
AX
17276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; }; then
94a40997 17278
cae5b340 17279 { $as_echo "$as_me:$LINENO: result: yes" >&5
94a40997
AX
17280$as_echo "yes" >&6; }
17281
cae5b340
AX
17282cat >>confdefs.h <<\_ACEOF
17283#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
17284_ACEOF
94a40997
AX
17285
17286
17287else
17288 $as_echo "$as_me: failed program was:" >&5
17289sed 's/^/| /' conftest.$ac_ext >&5
17290
cae5b340 17291 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 17292$as_echo "no" >&6; }
4d815aed
AX
17293
17294
4d815aed 17295
cae5b340 17296fi
4d815aed 17297
cae5b340 17298 rm -Rf build
4d815aed 17299
cae5b340
AX
17300
17301 EXTRA_KCFLAGS="$tmp_flags"
17302
17303
17304 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
17305$as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
17306 tmp_flags="$EXTRA_KCFLAGS"
17307 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17308
17309
17310cat confdefs.h - <<_ACEOF >conftest.c
17311/* confdefs.h. */
17312_ACEOF
17313cat confdefs.h >>conftest.$ac_ext
17314cat >>conftest.$ac_ext <<_ACEOF
17315/* end confdefs.h. */
17316
17317
17318 #include <linux/blkdev.h>
4d815aed
AX
17319
17320int
17321main (void)
17322{
17323
cae5b340
AX
17324 struct request_queue *q = NULL;
17325 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
4d815aed
AX
17326
17327 ;
17328 return 0;
17329}
17330
17331_ACEOF
17332
17333
17334
17335cat - <<_ACEOF >conftest.h
17336
17337_ACEOF
17338
17339
17340 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17341 echo "obj-m := conftest.o" >build/Makefile
17342 modpost_flag=''
17343 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17344 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
17346 (eval $ac_try) 2>&5
17347 ac_status=$?
cae5b340
AX
17348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
17351 (eval $ac_try) 2>&5
17352 ac_status=$?
cae5b340
AX
17353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
4d815aed 17355
cae5b340 17356 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
17357$as_echo "yes" >&6; }
17358
cae5b340
AX
17359cat >>confdefs.h <<\_ACEOF
17360#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
17361_ACEOF
4d815aed
AX
17362
17363
17364else
17365 $as_echo "$as_me: failed program was:" >&5
17366sed 's/^/| /' conftest.$ac_ext >&5
17367
cae5b340 17368 { $as_echo "$as_me:$LINENO: result: no" >&5
94a40997 17369$as_echo "no" >&6; }
4d815aed
AX
17370
17371
4d815aed 17372
cae5b340 17373fi
4d815aed 17374
cae5b340 17375 rm -Rf build
4d815aed 17376
cae5b340
AX
17377
17378 EXTRA_KCFLAGS="$tmp_flags"
17379
17380
17381 { $as_echo "$as_me:$LINENO: checking whether the BIO_RW_UNPLUG enum is available" >&5
17382$as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
17383 tmp_flags="$EXTRA_KCFLAGS"
17384 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17385
17386
17387cat confdefs.h - <<_ACEOF >conftest.c
17388/* confdefs.h. */
17389_ACEOF
17390cat confdefs.h >>conftest.$ac_ext
17391cat >>conftest.$ac_ext <<_ACEOF
17392/* end confdefs.h. */
17393
17394
17395 #include <linux/blkdev.h>
4d815aed
AX
17396
17397int
17398main (void)
17399{
17400
cae5b340
AX
17401 extern enum bio_rw_flags rw;
17402
17403 rw = BIO_RW_UNPLUG;
4d815aed
AX
17404
17405 ;
17406 return 0;
17407}
17408
17409_ACEOF
17410
17411
17412
17413cat - <<_ACEOF >conftest.h
17414
17415_ACEOF
17416
17417
17418 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17419 echo "obj-m := conftest.o" >build/Makefile
17420 modpost_flag=''
17421 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17422 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
17424 (eval $ac_try) 2>&5
17425 ac_status=$?
cae5b340
AX
17426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
17429 (eval $ac_try) 2>&5
17430 ac_status=$?
cae5b340
AX
17431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; }; then
4d815aed 17433
cae5b340 17434 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
17435$as_echo "yes" >&6; }
17436
cae5b340
AX
17437cat >>confdefs.h <<\_ACEOF
17438#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1
17439_ACEOF
4d815aed
AX
17440
17441
17442else
17443 $as_echo "$as_me: failed program was:" >&5
17444sed 's/^/| /' conftest.$ac_ext >&5
17445
cae5b340
AX
17446 { $as_echo "$as_me:$LINENO: result: no" >&5
17447$as_echo "no" >&6; }
94a40997
AX
17448
17449
17450
17451fi
ea04106b 17452
ea04106b
AX
17453 rm -Rf build
17454
17455
cae5b340 17456 EXTRA_KCFLAGS="$tmp_flags"
ea04106b
AX
17457
17458
cae5b340
AX
17459 { $as_echo "$as_me:$LINENO: checking whether struct blk_plug is available" >&5
17460$as_echo_n "checking whether struct blk_plug is available... " >&6; }
17461 tmp_flags="$EXTRA_KCFLAGS"
17462 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
17463
17464
17465cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
17466/* confdefs.h. */
17467_ACEOF
17468cat confdefs.h >>conftest.$ac_ext
17469cat >>conftest.$ac_ext <<_ACEOF
17470/* end confdefs.h. */
ea04106b
AX
17471
17472
cae5b340 17473 #include <linux/blkdev.h>
ea04106b
AX
17474
17475int
17476main (void)
17477{
17478
cae5b340
AX
17479 struct blk_plug plug;
17480
17481 blk_start_plug(&plug);
17482 blk_finish_plug(&plug);
ea04106b
AX
17483
17484 ;
17485 return 0;
17486}
17487
17488_ACEOF
17489
17490
17491
17492cat - <<_ACEOF >conftest.h
17493
17494_ACEOF
17495
17496
17497 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17498 echo "obj-m := conftest.o" >build/Makefile
17499 modpost_flag=''
17500 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17501 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
17503 (eval $ac_try) 2>&5
17504 ac_status=$?
cae5b340
AX
17505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
17508 (eval $ac_try) 2>&5
17509 ac_status=$?
cae5b340
AX
17510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; }; then
ea04106b 17512
cae5b340 17513 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
17514$as_echo "yes" >&6; }
17515
cae5b340
AX
17516cat >>confdefs.h <<\_ACEOF
17517#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1
17518_ACEOF
ea04106b
AX
17519
17520
17521else
17522 $as_echo "$as_me: failed program was:" >&5
17523sed 's/^/| /' conftest.$ac_ext >&5
17524
cae5b340
AX
17525 { $as_echo "$as_me:$LINENO: result: no" >&5
17526$as_echo "no" >&6; }
ea04106b
AX
17527
17528
ea04106b 17529
cae5b340 17530fi
ea04106b 17531
cae5b340 17532 rm -Rf build
68d83c55 17533
cae5b340
AX
17534
17535 EXTRA_KCFLAGS="$tmp_flags"
17536
17537
17538 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
17539$as_echo_n "checking whether get_disk_ro() is available... " >&6; }
17540 tmp_flags="$EXTRA_KCFLAGS"
17541 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17542
17543
17544cat confdefs.h - <<_ACEOF >conftest.c
17545/* confdefs.h. */
17546_ACEOF
17547cat confdefs.h >>conftest.$ac_ext
17548cat >>conftest.$ac_ext <<_ACEOF
17549/* end confdefs.h. */
17550
17551
17552 #include <linux/blkdev.h>
ea04106b
AX
17553
17554int
17555main (void)
17556{
17557
cae5b340
AX
17558 struct gendisk *disk = NULL;
17559 (void) get_disk_ro(disk);
ea04106b
AX
17560
17561 ;
17562 return 0;
17563}
17564
17565_ACEOF
17566
17567
17568
17569cat - <<_ACEOF >conftest.h
17570
17571_ACEOF
17572
17573
17574 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17575 echo "obj-m := conftest.o" >build/Makefile
17576 modpost_flag=''
17577 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17578 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
17580 (eval $ac_try) 2>&5
17581 ac_status=$?
cae5b340
AX
17582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
17585 (eval $ac_try) 2>&5
17586 ac_status=$?
cae5b340
AX
17587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; }; then
ea04106b 17589
cae5b340 17590 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
17591$as_echo "yes" >&6; }
17592
cae5b340
AX
17593cat >>confdefs.h <<\_ACEOF
17594#define HAVE_GET_DISK_RO 1
17595_ACEOF
ea04106b
AX
17596
17597
17598else
17599 $as_echo "$as_me: failed program was:" >&5
17600sed 's/^/| /' conftest.$ac_ext >&5
17601
cae5b340 17602 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 17603$as_echo "no" >&6; }
ea04106b
AX
17604
17605
ea04106b 17606
cae5b340 17607fi
ea04106b 17608
cae5b340 17609 rm -Rf build
68d83c55 17610
cae5b340
AX
17611
17612 EXTRA_KCFLAGS="$tmp_flags"
17613
17614 { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
17615$as_echo_n "checking whether get_gendisk() is available... " >&6; }
17616
17617
17618
17619cat confdefs.h - <<_ACEOF >conftest.c
17620/* confdefs.h. */
17621_ACEOF
17622cat confdefs.h >>conftest.$ac_ext
17623cat >>conftest.$ac_ext <<_ACEOF
17624/* end confdefs.h. */
17625
17626
17627 #include <linux/genhd.h>
ea04106b
AX
17628
17629int
17630main (void)
17631{
17632
cae5b340 17633 get_gendisk(0, NULL);
ea04106b
AX
17634
17635 ;
17636 return 0;
17637}
17638
17639_ACEOF
17640
17641
17642
17643cat - <<_ACEOF >conftest.h
17644
17645_ACEOF
17646
17647
17648 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17649 echo "obj-m := conftest.o" >build/Makefile
17650 modpost_flag=''
17651 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17652 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
17654 (eval $ac_try) 2>&5
17655 ac_status=$?
cae5b340
AX
17656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
17659 (eval $ac_try) 2>&5
17660 ac_status=$?
cae5b340
AX
17661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
17663 rc=0
17664else
17665 $as_echo "$as_me: failed program was:" >&5
17666sed 's/^/| /' conftest.$ac_ext >&5
17667 rc=1
ea04106b 17668
ea04106b 17669
cae5b340
AX
17670fi
17671
17672 rm -Rf build
ea04106b
AX
17673
17674
cae5b340 17675 if test $rc -ne 0; then :
ea04106b 17676
cae5b340 17677 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 17678$as_echo "no" >&6; }
ea04106b 17679
cae5b340
AX
17680 else
17681 if test "x$enable_linux_builtin" != xyes; then
ea04106b 17682
cae5b340
AX
17683 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
17684 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17685 rc=$?
17686 if test $rc -ne 0; then
17687 export=0
17688 for file in block/genhd.c; do
17689 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
17690 "$LINUX/$file" 2>/dev/null
17691 rc=$?
17692 if test $rc -eq 0; then
17693 export=1
17694 break;
17695 fi
17696 done
17697 if test $export -eq 0; then :
17698 rc=1
17699 else :
17700 rc=0
17701 fi
17702 else :
17703 rc=0
17704 fi
ea04106b 17705
cae5b340
AX
17706 fi
17707 if test $rc -ne 0; then :
ea04106b 17708
cae5b340
AX
17709 { $as_echo "$as_me:$LINENO: result: no" >&5
17710$as_echo "no" >&6; }
68d83c55 17711
cae5b340
AX
17712 else :
17713
17714 { $as_echo "$as_me:$LINENO: result: yes" >&5
17715$as_echo "yes" >&6; }
17716
17717cat >>confdefs.h <<\_ACEOF
17718#define HAVE_GET_GENDISK 1
17719_ACEOF
17720
17721
17722 fi
17723 fi
17724
17725
17726
17727 { $as_echo "$as_me:$LINENO: checking whether bio_set_op_attrs is available" >&5
17728$as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
17729
17730
17731cat confdefs.h - <<_ACEOF >conftest.c
17732/* confdefs.h. */
17733_ACEOF
17734cat confdefs.h >>conftest.$ac_ext
17735cat >>conftest.$ac_ext <<_ACEOF
17736/* end confdefs.h. */
17737
17738
17739 #include <linux/bio.h>
ea04106b
AX
17740
17741int
17742main (void)
17743{
17744
cae5b340
AX
17745 struct bio *bio __attribute__ ((unused)) = NULL;
17746
17747 bio_set_op_attrs(bio, 0, 0);
ea04106b
AX
17748
17749 ;
17750 return 0;
17751}
17752
17753_ACEOF
17754
17755
17756
17757cat - <<_ACEOF >conftest.h
17758
17759_ACEOF
17760
17761
17762 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17763 echo "obj-m := conftest.o" >build/Makefile
17764 modpost_flag=''
17765 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17766 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
17768 (eval $ac_try) 2>&5
17769 ac_status=$?
cae5b340
AX
17770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
17773 (eval $ac_try) 2>&5
17774 ac_status=$?
cae5b340
AX
17775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; }; then
ea04106b 17777
cae5b340 17778 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
17779$as_echo "yes" >&6; }
17780
cae5b340
AX
17781cat >>confdefs.h <<\_ACEOF
17782#define HAVE_BIO_SET_OP_ATTRS 1
17783_ACEOF
ea04106b
AX
17784
17785
17786else
17787 $as_echo "$as_me: failed program was:" >&5
17788sed 's/^/| /' conftest.$ac_ext >&5
17789
cae5b340
AX
17790 { $as_echo "$as_me:$LINENO: result: no" >&5
17791$as_echo "no" >&6; }
68d83c55
AX
17792
17793
17794
17795fi
68d83c55 17796
68d83c55
AX
17797 rm -Rf build
17798
17799
17800
17801
cae5b340
AX
17802 { $as_echo "$as_me:$LINENO: checking whether generic_readlink is global" >&5
17803$as_echo_n "checking whether generic_readlink is global... " >&6; }
ea04106b
AX
17804
17805
17806cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
17807/* confdefs.h. */
17808_ACEOF
17809cat confdefs.h >>conftest.$ac_ext
17810cat >>conftest.$ac_ext <<_ACEOF
17811/* end confdefs.h. */
ea04106b
AX
17812
17813
cae5b340 17814 #include <linux/fs.h>
ea04106b
AX
17815
17816int
17817main (void)
17818{
17819
cae5b340
AX
17820 int i __attribute__ ((unused));
17821
17822 i = generic_readlink(NULL, NULL, 0);
ea04106b
AX
17823
17824 ;
17825 return 0;
17826}
17827
17828_ACEOF
17829
17830
17831
17832cat - <<_ACEOF >conftest.h
17833
17834_ACEOF
17835
17836
17837 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17838 echo "obj-m := conftest.o" >build/Makefile
17839 modpost_flag=''
17840 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17841 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
17843 (eval $ac_try) 2>&5
17844 ac_status=$?
cae5b340
AX
17845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
17848 (eval $ac_try) 2>&5
17849 ac_status=$?
cae5b340
AX
17850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; }; then
ea04106b 17852
cae5b340 17853 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
17854$as_echo "yes" >&6; }
17855
cae5b340
AX
17856cat >>confdefs.h <<\_ACEOF
17857#define HAVE_GENERIC_READLINK 1
17858_ACEOF
ea04106b 17859
ea04106b 17860
68d83c55
AX
17861else
17862 $as_echo "$as_me: failed program was:" >&5
17863sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 17864
cae5b340 17865 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 17866$as_echo "no" >&6; }
ea04106b
AX
17867
17868
ea04106b 17869
cae5b340 17870fi
ea04106b 17871
cae5b340 17872 rm -Rf build
68d83c55 17873
cae5b340
AX
17874
17875
17876
17877 { $as_echo "$as_me:$LINENO: checking whether ql->discard_granularity is available" >&5
17878$as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
17879
17880
17881cat confdefs.h - <<_ACEOF >conftest.c
17882/* confdefs.h. */
17883_ACEOF
17884cat confdefs.h >>conftest.$ac_ext
17885cat >>conftest.$ac_ext <<_ACEOF
17886/* end confdefs.h. */
17887
17888
17889 #include <linux/blkdev.h>
ea04106b
AX
17890
17891int
17892main (void)
17893{
17894
cae5b340
AX
17895 struct queue_limits ql __attribute__ ((unused));
17896
17897 ql.discard_granularity = 0;
ea04106b
AX
17898
17899 ;
17900 return 0;
17901}
17902
17903_ACEOF
17904
17905
17906
17907cat - <<_ACEOF >conftest.h
17908
17909_ACEOF
17910
17911
17912 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17913 echo "obj-m := conftest.o" >build/Makefile
17914 modpost_flag=''
17915 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17916 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
17918 (eval $ac_try) 2>&5
17919 ac_status=$?
cae5b340
AX
17920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
17923 (eval $ac_try) 2>&5
17924 ac_status=$?
cae5b340
AX
17925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; }; then
ea04106b 17927
cae5b340 17928 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
17929$as_echo "yes" >&6; }
17930
cae5b340
AX
17931cat >>confdefs.h <<\_ACEOF
17932#define HAVE_DISCARD_GRANULARITY 1
17933_ACEOF
ea04106b
AX
17934
17935
17936else
17937 $as_echo "$as_me: failed program was:" >&5
17938sed 's/^/| /' conftest.$ac_ext >&5
17939
cae5b340 17940 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 17941$as_echo "no" >&6; }
cae5b340
AX
17942
17943
17944
17945fi
17946
17947 rm -Rf build
17948
17949
17950
17951
17952 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_handler" >&5
17953$as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
ea04106b
AX
17954
17955
17956cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
17957/* confdefs.h. */
17958_ACEOF
17959cat confdefs.h >>conftest.$ac_ext
17960cat >>conftest.$ac_ext <<_ACEOF
17961/* end confdefs.h. */
ea04106b
AX
17962
17963
cae5b340
AX
17964 #include <linux/fs.h>
17965 #include <linux/xattr.h>
68d83c55 17966
cae5b340
AX
17967 const struct xattr_handler xattr_test_handler = {
17968 .prefix = "test",
17969 .get = NULL,
17970 .set = NULL,
17971 };
17972
17973 const struct xattr_handler *xattr_handlers[] = {
17974 &xattr_test_handler,
17975 };
17976
17977 const struct super_block sb __attribute__ ((unused)) = {
17978 .s_xattr = xattr_handlers,
17979 };
ea04106b
AX
17980
17981int
17982main (void)
17983{
17984
ea04106b
AX
17985
17986 ;
17987 return 0;
17988}
17989
17990_ACEOF
17991
17992
17993
17994cat - <<_ACEOF >conftest.h
17995
17996_ACEOF
17997
17998
17999 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18000 echo "obj-m := conftest.o" >build/Makefile
18001 modpost_flag=''
18002 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18003 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18005 (eval $ac_try) 2>&5
18006 ac_status=$?
cae5b340
AX
18007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18010 (eval $ac_try) 2>&5
18011 ac_status=$?
cae5b340
AX
18012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; }; then
ea04106b 18014
cae5b340 18015 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18016$as_echo "yes" >&6; }
18017
cae5b340
AX
18018cat >>confdefs.h <<\_ACEOF
18019#define HAVE_CONST_XATTR_HANDLER 1
18020_ACEOF
ea04106b
AX
18021
18022
18023else
18024 $as_echo "$as_me: failed program was:" >&5
18025sed 's/^/| /' conftest.$ac_ext >&5
18026
cae5b340 18027 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 18028$as_echo "no" >&6; }
cae5b340
AX
18029
18030
18031
18032fi
18033
18034 rm -Rf build
18035
18036
18037
18038
18039 { $as_echo "$as_me:$LINENO: checking whether xattr_handler has name" >&5
18040$as_echo_n "checking whether xattr_handler has name... " >&6; }
ea04106b
AX
18041
18042
18043cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18044/* confdefs.h. */
18045_ACEOF
18046cat confdefs.h >>conftest.$ac_ext
18047cat >>conftest.$ac_ext <<_ACEOF
18048/* end confdefs.h. */
ea04106b
AX
18049
18050
cae5b340 18051 #include <linux/xattr.h>
68d83c55 18052
cae5b340
AX
18053 static const struct xattr_handler
18054 xops __attribute__ ((unused)) = {
18055 .name = XATTR_NAME_POSIX_ACL_ACCESS,
18056 };
ea04106b
AX
18057
18058int
18059main (void)
18060{
18061
ea04106b
AX
18062
18063 ;
18064 return 0;
18065}
18066
18067_ACEOF
18068
18069
18070
18071cat - <<_ACEOF >conftest.h
18072
18073_ACEOF
18074
18075
18076 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18077 echo "obj-m := conftest.o" >build/Makefile
18078 modpost_flag=''
18079 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18080 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18082 (eval $ac_try) 2>&5
18083 ac_status=$?
cae5b340
AX
18084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
ea04106b 18091
cae5b340 18092 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18093$as_echo "yes" >&6; }
18094
cae5b340
AX
18095cat >>confdefs.h <<\_ACEOF
18096#define HAVE_XATTR_HANDLER_NAME 1
18097_ACEOF
ea04106b
AX
18098
18099
18100else
18101 $as_echo "$as_me: failed program was:" >&5
18102sed 's/^/| /' conftest.$ac_ext >&5
18103
cae5b340
AX
18104 { $as_echo "$as_me:$LINENO: result: no" >&5
18105$as_echo "no" >&6; }
68d83c55
AX
18106
18107
18108
18109fi
68d83c55 18110
68d83c55
AX
18111 rm -Rf build
18112
18113
18114
18115
cae5b340
AX
18116 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants both dentry and inode" >&5
18117$as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
ea04106b
AX
18118
18119
18120cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18121/* confdefs.h. */
18122_ACEOF
18123cat confdefs.h >>conftest.$ac_ext
18124cat >>conftest.$ac_ext <<_ACEOF
18125/* end confdefs.h. */
ea04106b
AX
18126
18127
cae5b340
AX
18128 #include <linux/xattr.h>
18129
18130 int get(const struct xattr_handler *handler,
18131 struct dentry *dentry, struct inode *inode,
18132 const char *name, void *buffer, size_t size) { return 0; }
18133 static const struct xattr_handler
18134 xops __attribute__ ((unused)) = {
18135 .get = get,
18136 };
ea04106b
AX
18137
18138int
18139main (void)
18140{
18141
ea04106b
AX
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 $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18162 (eval $ac_try) 2>&5
18163 ac_status=$?
cae5b340
AX
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
ea04106b
AX
18167 (eval $ac_try) 2>&5
18168 ac_status=$?
cae5b340
AX
18169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; }; then
ea04106b 18171
cae5b340 18172 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 18173$as_echo "yes" >&6; }
ea04106b 18174
cae5b340
AX
18175cat >>confdefs.h <<\_ACEOF
18176#define HAVE_XATTR_GET_DENTRY_INODE 1
18177_ACEOF
ea04106b
AX
18178
18179
e10b0808
AX
18180else
18181 $as_echo "$as_me: failed program was:" >&5
18182sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 18183
cae5b340 18184 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 18185$as_echo "no" >&6; }
cae5b340
AX
18186 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants xattr_handler" >&5
18187$as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
ea04106b
AX
18188
18189
e10b0808 18190cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18191/* confdefs.h. */
18192_ACEOF
18193cat confdefs.h >>conftest.$ac_ext
18194cat >>conftest.$ac_ext <<_ACEOF
18195/* end confdefs.h. */
ea04106b
AX
18196
18197
cae5b340
AX
18198 #include <linux/xattr.h>
18199
18200 int get(const struct xattr_handler *handler,
18201 struct dentry *dentry, const char *name,
18202 void *buffer, size_t size) { return 0; }
18203 static const struct xattr_handler
18204 xops __attribute__ ((unused)) = {
18205 .get = get,
18206 };
ea04106b
AX
18207
18208int
18209main (void)
18210{
18211
ea04106b
AX
18212
18213 ;
18214 return 0;
18215}
18216
18217_ACEOF
18218
18219
18220
18221cat - <<_ACEOF >conftest.h
18222
18223_ACEOF
18224
18225
18226 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18227 echo "obj-m := conftest.o" >build/Makefile
18228 modpost_flag=''
18229 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18230 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18232 (eval $ac_try) 2>&5
18233 ac_status=$?
cae5b340
AX
18234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18237 (eval $ac_try) 2>&5
18238 ac_status=$?
cae5b340
AX
18239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; }; then
ea04106b 18241
cae5b340 18242 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18243$as_echo "yes" >&6; }
18244
cae5b340
AX
18245cat >>confdefs.h <<\_ACEOF
18246#define HAVE_XATTR_GET_HANDLER 1
18247_ACEOF
ea04106b
AX
18248
18249
18250else
18251 $as_echo "$as_me: failed program was:" >&5
18252sed 's/^/| /' conftest.$ac_ext >&5
18253
cae5b340
AX
18254 { $as_echo "$as_me:$LINENO: result: no" >&5
18255$as_echo "no" >&6; }
18256 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
18257$as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
68d83c55
AX
18258
18259
18260cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18261/* confdefs.h. */
18262_ACEOF
18263cat confdefs.h >>conftest.$ac_ext
18264cat >>conftest.$ac_ext <<_ACEOF
18265/* end confdefs.h. */
e10b0808 18266
68d83c55 18267
cae5b340
AX
18268 #include <linux/xattr.h>
18269
18270 int get(struct dentry *dentry, const char *name,
18271 void *buffer, size_t size, int handler_flags)
18272 { return 0; }
18273 static const struct xattr_handler
18274 xops __attribute__ ((unused)) = {
18275 .get = get,
18276 };
ea04106b
AX
18277
18278int
18279main (void)
18280{
18281
ea04106b
AX
18282
18283 ;
18284 return 0;
18285}
18286
18287_ACEOF
18288
18289
18290
18291cat - <<_ACEOF >conftest.h
18292
18293_ACEOF
18294
18295
18296 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18297 echo "obj-m := conftest.o" >build/Makefile
18298 modpost_flag=''
18299 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18300 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18302 (eval $ac_try) 2>&5
18303 ac_status=$?
cae5b340
AX
18304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18307 (eval $ac_try) 2>&5
18308 ac_status=$?
cae5b340
AX
18309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); }; }; then
ea04106b 18311
cae5b340 18312 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18313$as_echo "yes" >&6; }
18314
cae5b340
AX
18315cat >>confdefs.h <<\_ACEOF
18316#define HAVE_XATTR_GET_DENTRY 1
18317_ACEOF
ea04106b
AX
18318
18319
18320else
18321 $as_echo "$as_me: failed program was:" >&5
18322sed 's/^/| /' conftest.$ac_ext >&5
18323
cae5b340 18324 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 18325$as_echo "no" >&6; }
cae5b340
AX
18326 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants inode" >&5
18327$as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
ea04106b
AX
18328
18329
18330cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18331/* confdefs.h. */
18332_ACEOF
18333cat confdefs.h >>conftest.$ac_ext
18334cat >>conftest.$ac_ext <<_ACEOF
18335/* end confdefs.h. */
ea04106b
AX
18336
18337
cae5b340
AX
18338 #include <linux/xattr.h>
18339
18340 int get(struct inode *ip, const char *name,
18341 void *buffer, size_t size) { return 0; }
18342 static const struct xattr_handler
18343 xops __attribute__ ((unused)) = {
18344 .get = get,
18345 };
ea04106b
AX
18346
18347int
18348main (void)
18349{
18350
ea04106b
AX
18351
18352 ;
18353 return 0;
18354}
18355
18356_ACEOF
18357
18358
18359
18360cat - <<_ACEOF >conftest.h
18361
18362_ACEOF
18363
18364
18365 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18366 echo "obj-m := conftest.o" >build/Makefile
18367 modpost_flag=''
18368 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18369 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18371 (eval $ac_try) 2>&5
18372 ac_status=$?
cae5b340
AX
18373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18376 (eval $ac_try) 2>&5
18377 ac_status=$?
cae5b340
AX
18378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; }; then
ea04106b 18380
cae5b340 18381 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18382$as_echo "yes" >&6; }
18383
cae5b340
AX
18384cat >>confdefs.h <<\_ACEOF
18385#define HAVE_XATTR_GET_INODE 1
18386_ACEOF
ea04106b
AX
18387
18388
18389else
18390 $as_echo "$as_me: failed program was:" >&5
18391sed 's/^/| /' conftest.$ac_ext >&5
18392
cae5b340
AX
18393 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
18394$as_echo "$as_me: error: no; please file a bug report" >&2;}
18395 { (exit 1); exit 1; }; }
ea04106b
AX
18396
18397
18398
18399fi
ea04106b 18400
cae5b340 18401 rm -Rf build
ea04106b 18402
ea04106b 18403
ea04106b 18404
ea04106b
AX
18405
18406
cae5b340 18407fi
ea04106b 18408
cae5b340 18409 rm -Rf build
ea04106b 18410
ea04106b
AX
18411
18412
ea04106b 18413
68d83c55 18414
cae5b340 18415fi
68d83c55 18416
cae5b340 18417 rm -Rf build
ea04106b 18418
e10b0808
AX
18419
18420
68d83c55
AX
18421
18422
18423fi
cae5b340 18424
68d83c55
AX
18425 rm -Rf build
18426
18427
18428
18429
cae5b340
AX
18430 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants both dentry and inode" >&5
18431$as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
68d83c55
AX
18432
18433
18434cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18435/* confdefs.h. */
18436_ACEOF
18437cat confdefs.h >>conftest.$ac_ext
18438cat >>conftest.$ac_ext <<_ACEOF
18439/* end confdefs.h. */
68d83c55
AX
18440
18441
cae5b340 18442 #include <linux/xattr.h>
68d83c55 18443
cae5b340
AX
18444 int set(const struct xattr_handler *handler,
18445 struct dentry *dentry, struct inode *inode,
18446 const char *name, const void *buffer,
18447 size_t size, int flags)
18448 { return 0; }
18449 static const struct xattr_handler
18450 xops __attribute__ ((unused)) = {
18451 .set = set,
18452 };
68d83c55
AX
18453
18454int
18455main (void)
18456{
18457
68d83c55
AX
18458
18459 ;
18460 return 0;
18461}
18462
18463_ACEOF
18464
18465
18466
18467cat - <<_ACEOF >conftest.h
18468
18469_ACEOF
18470
18471
18472 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18473 echo "obj-m := conftest.o" >build/Makefile
18474 modpost_flag=''
18475 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18476 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
18478 (eval $ac_try) 2>&5
18479 ac_status=$?
cae5b340
AX
18480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
18483 (eval $ac_try) 2>&5
18484 ac_status=$?
cae5b340
AX
18485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
68d83c55 18487
cae5b340 18488 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
18489$as_echo "yes" >&6; }
18490
cae5b340
AX
18491cat >>confdefs.h <<\_ACEOF
18492#define HAVE_XATTR_SET_DENTRY_INODE 1
18493_ACEOF
ea04106b
AX
18494
18495
18496else
18497 $as_echo "$as_me: failed program was:" >&5
18498sed 's/^/| /' conftest.$ac_ext >&5
18499
cae5b340 18500 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 18501$as_echo "no" >&6; }
cae5b340
AX
18502 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants xattr_handler" >&5
18503$as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
ea04106b
AX
18504
18505
18506cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18507/* confdefs.h. */
18508_ACEOF
18509cat confdefs.h >>conftest.$ac_ext
18510cat >>conftest.$ac_ext <<_ACEOF
18511/* end confdefs.h. */
ea04106b
AX
18512
18513
cae5b340
AX
18514 #include <linux/xattr.h>
18515
18516 int set(const struct xattr_handler *handler,
18517 struct dentry *dentry, const char *name,
18518 const void *buffer, size_t size, int flags)
18519 { return 0; }
18520 static const struct xattr_handler
18521 xops __attribute__ ((unused)) = {
18522 .set = set,
18523 };
ea04106b
AX
18524
18525int
18526main (void)
18527{
18528
18529
18530 ;
18531 return 0;
18532}
18533
18534_ACEOF
18535
18536
18537
18538cat - <<_ACEOF >conftest.h
18539
18540_ACEOF
18541
18542
18543 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18544 echo "obj-m := conftest.o" >build/Makefile
18545 modpost_flag=''
18546 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18547 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18549 (eval $ac_try) 2>&5
18550 ac_status=$?
cae5b340
AX
18551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18554 (eval $ac_try) 2>&5
18555 ac_status=$?
cae5b340
AX
18556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; }; then
ea04106b 18558
cae5b340 18559 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18560$as_echo "yes" >&6; }
18561
cae5b340
AX
18562cat >>confdefs.h <<\_ACEOF
18563#define HAVE_XATTR_SET_HANDLER 1
18564_ACEOF
ea04106b
AX
18565
18566
18567else
18568 $as_echo "$as_me: failed program was:" >&5
18569sed 's/^/| /' conftest.$ac_ext >&5
18570
cae5b340 18571 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 18572$as_echo "no" >&6; }
cae5b340
AX
18573 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
18574$as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
ea04106b
AX
18575
18576
18577cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18578/* confdefs.h. */
18579_ACEOF
18580cat confdefs.h >>conftest.$ac_ext
18581cat >>conftest.$ac_ext <<_ACEOF
18582/* end confdefs.h. */
ea04106b
AX
18583
18584
cae5b340
AX
18585 #include <linux/xattr.h>
18586
18587 int set(struct dentry *dentry, const char *name,
18588 const void *buffer, size_t size, int flags,
18589 int handler_flags) { return 0; }
18590 static const struct xattr_handler
18591 xops __attribute__ ((unused)) = {
18592 .set = set,
18593 };
ea04106b
AX
18594
18595int
18596main (void)
18597{
18598
18599
18600 ;
18601 return 0;
18602}
18603
18604_ACEOF
18605
18606
18607
18608cat - <<_ACEOF >conftest.h
18609
18610_ACEOF
18611
18612
18613 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18614 echo "obj-m := conftest.o" >build/Makefile
18615 modpost_flag=''
18616 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18617 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18619 (eval $ac_try) 2>&5
18620 ac_status=$?
cae5b340
AX
18621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18624 (eval $ac_try) 2>&5
18625 ac_status=$?
cae5b340
AX
18626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); }; }; then
ea04106b 18628
cae5b340 18629 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18630$as_echo "yes" >&6; }
18631
cae5b340
AX
18632cat >>confdefs.h <<\_ACEOF
18633#define HAVE_XATTR_SET_DENTRY 1
18634_ACEOF
ea04106b
AX
18635
18636
18637else
18638 $as_echo "$as_me: failed program was:" >&5
18639sed 's/^/| /' conftest.$ac_ext >&5
18640
cae5b340 18641 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 18642$as_echo "no" >&6; }
cae5b340
AX
18643 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants inode" >&5
18644$as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
ea04106b
AX
18645
18646
18647cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18648/* confdefs.h. */
18649_ACEOF
18650cat confdefs.h >>conftest.$ac_ext
18651cat >>conftest.$ac_ext <<_ACEOF
18652/* end confdefs.h. */
ea04106b
AX
18653
18654
cae5b340
AX
18655 #include <linux/xattr.h>
18656
18657 int set(struct inode *ip, const char *name,
18658 const void *buffer, size_t size, int flags)
18659 { return 0; }
18660 static const struct xattr_handler
18661 xops __attribute__ ((unused)) = {
18662 .set = set,
18663 };
ea04106b
AX
18664
18665int
18666main (void)
18667{
18668
18669
18670 ;
18671 return 0;
18672}
18673
18674_ACEOF
18675
18676
18677
18678cat - <<_ACEOF >conftest.h
18679
18680_ACEOF
18681
18682
18683 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18684 echo "obj-m := conftest.o" >build/Makefile
18685 modpost_flag=''
18686 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18687 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18689 (eval $ac_try) 2>&5
18690 ac_status=$?
cae5b340
AX
18691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18694 (eval $ac_try) 2>&5
18695 ac_status=$?
cae5b340
AX
18696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; }; then
ea04106b 18698
cae5b340 18699 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18700$as_echo "yes" >&6; }
18701
cae5b340
AX
18702cat >>confdefs.h <<\_ACEOF
18703#define HAVE_XATTR_SET_INODE 1
18704_ACEOF
ea04106b
AX
18705
18706
18707else
18708 $as_echo "$as_me: failed program was:" >&5
18709sed 's/^/| /' conftest.$ac_ext >&5
18710
cae5b340
AX
18711 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
18712$as_echo "$as_me: error: no; please file a bug report" >&2;}
18713 { (exit 1); exit 1; }; }
ea04106b
AX
18714
18715
18716
18717fi
cae5b340 18718
ea04106b
AX
18719 rm -Rf build
18720
18721
18722
18723
cae5b340
AX
18724
18725fi
18726
18727 rm -Rf build
18728
18729
18730
18731
18732
18733fi
18734
18735 rm -Rf build
18736
18737
18738
18739
18740
18741fi
18742
18743 rm -Rf build
18744
18745
18746
18747
18748 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants simple" >&5
18749$as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
ea04106b
AX
18750
18751
18752cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18753/* confdefs.h. */
18754_ACEOF
18755cat confdefs.h >>conftest.$ac_ext
18756cat >>conftest.$ac_ext <<_ACEOF
18757/* end confdefs.h. */
ea04106b
AX
18758
18759
cae5b340
AX
18760 #include <linux/xattr.h>
18761
18762 bool list(struct dentry *dentry) { return 0; }
18763 static const struct xattr_handler
18764 xops __attribute__ ((unused)) = {
18765 .list = list,
18766 };
ea04106b
AX
18767
18768int
18769main (void)
18770{
18771
18772
18773 ;
18774 return 0;
18775}
18776
18777_ACEOF
18778
18779
18780
18781cat - <<_ACEOF >conftest.h
18782
18783_ACEOF
18784
18785
18786 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18787 echo "obj-m := conftest.o" >build/Makefile
18788 modpost_flag=''
18789 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18790 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18792 (eval $ac_try) 2>&5
18793 ac_status=$?
cae5b340
AX
18794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18797 (eval $ac_try) 2>&5
18798 ac_status=$?
cae5b340
AX
18799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
ea04106b 18801
cae5b340 18802 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18803$as_echo "yes" >&6; }
18804
cae5b340
AX
18805cat >>confdefs.h <<\_ACEOF
18806#define HAVE_XATTR_LIST_SIMPLE 1
18807_ACEOF
ea04106b
AX
18808
18809
18810else
18811 $as_echo "$as_me: failed program was:" >&5
18812sed 's/^/| /' conftest.$ac_ext >&5
18813
cae5b340 18814 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 18815$as_echo "no" >&6; }
cae5b340
AX
18816 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants xattr_handler" >&5
18817$as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
ea04106b
AX
18818
18819
18820cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18821/* confdefs.h. */
18822_ACEOF
18823cat confdefs.h >>conftest.$ac_ext
18824cat >>conftest.$ac_ext <<_ACEOF
18825/* end confdefs.h. */
ea04106b
AX
18826
18827
cae5b340 18828 #include <linux/xattr.h>
e10b0808 18829
cae5b340
AX
18830 size_t list(const struct xattr_handler *handler,
18831 struct dentry *dentry, char *list, size_t list_size,
18832 const char *name, size_t name_len) { return 0; }
18833 static const struct xattr_handler
18834 xops __attribute__ ((unused)) = {
18835 .list = list,
18836 };
e10b0808 18837
ea04106b
AX
18838int
18839main (void)
18840{
18841
ea04106b
AX
18842
18843 ;
18844 return 0;
18845}
18846
18847_ACEOF
18848
18849
18850
18851cat - <<_ACEOF >conftest.h
18852
18853_ACEOF
18854
18855
18856 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18857 echo "obj-m := conftest.o" >build/Makefile
18858 modpost_flag=''
18859 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18860 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18862 (eval $ac_try) 2>&5
18863 ac_status=$?
cae5b340
AX
18864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18867 (eval $ac_try) 2>&5
18868 ac_status=$?
cae5b340
AX
18869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; }; then
ea04106b 18871
cae5b340 18872 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 18873$as_echo "yes" >&6; }
ea04106b 18874
cae5b340
AX
18875cat >>confdefs.h <<\_ACEOF
18876#define HAVE_XATTR_LIST_HANDLER 1
18877_ACEOF
ea04106b
AX
18878
18879
18880else
18881 $as_echo "$as_me: failed program was:" >&5
18882sed 's/^/| /' conftest.$ac_ext >&5
18883
cae5b340 18884 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 18885$as_echo "no" >&6; }
cae5b340
AX
18886 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants dentry" >&5
18887$as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
ea04106b
AX
18888
18889
18890cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18891/* confdefs.h. */
18892_ACEOF
18893cat confdefs.h >>conftest.$ac_ext
18894cat >>conftest.$ac_ext <<_ACEOF
18895/* end confdefs.h. */
ea04106b
AX
18896
18897
cae5b340 18898 #include <linux/xattr.h>
e10b0808 18899
cae5b340
AX
18900 size_t list(struct dentry *dentry,
18901 char *list, size_t list_size,
18902 const char *name, size_t name_len,
18903 int handler_flags) { return 0; }
18904 static const struct xattr_handler
18905 xops __attribute__ ((unused)) = {
18906 .list = list,
18907 };
ea04106b
AX
18908
18909int
18910main (void)
18911{
18912
ea04106b
AX
18913
18914 ;
18915 return 0;
18916}
18917
18918_ACEOF
18919
18920
18921
18922cat - <<_ACEOF >conftest.h
18923
18924_ACEOF
18925
18926
18927 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18928 echo "obj-m := conftest.o" >build/Makefile
18929 modpost_flag=''
18930 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18931 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18933 (eval $ac_try) 2>&5
18934 ac_status=$?
cae5b340
AX
18935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18938 (eval $ac_try) 2>&5
18939 ac_status=$?
cae5b340
AX
18940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; }; then
ea04106b 18942
cae5b340 18943 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
18944$as_echo "yes" >&6; }
18945
cae5b340
AX
18946cat >>confdefs.h <<\_ACEOF
18947#define HAVE_XATTR_LIST_DENTRY 1
18948_ACEOF
ea04106b
AX
18949
18950
18951else
18952 $as_echo "$as_me: failed program was:" >&5
18953sed 's/^/| /' conftest.$ac_ext >&5
18954
cae5b340 18955 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 18956$as_echo "no" >&6; }
cae5b340
AX
18957 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants inode" >&5
18958$as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
ea04106b
AX
18959
18960
18961cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18962/* confdefs.h. */
18963_ACEOF
18964cat confdefs.h >>conftest.$ac_ext
18965cat >>conftest.$ac_ext <<_ACEOF
18966/* end confdefs.h. */
ea04106b
AX
18967
18968
cae5b340 18969 #include <linux/xattr.h>
e10b0808 18970
cae5b340
AX
18971 size_t list(struct inode *ip, char *lst,
18972 size_t list_size, const char *name,
18973 size_t name_len) { return 0; }
18974 static const struct xattr_handler
18975 xops __attribute__ ((unused)) = {
18976 .list = list,
18977 };
ea04106b
AX
18978
18979int
18980main (void)
18981{
18982
ea04106b
AX
18983
18984 ;
18985 return 0;
18986}
18987
18988_ACEOF
18989
18990
18991
18992cat - <<_ACEOF >conftest.h
18993
18994_ACEOF
18995
18996
18997 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18998 echo "obj-m := conftest.o" >build/Makefile
18999 modpost_flag=''
19000 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19001 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19003 (eval $ac_try) 2>&5
19004 ac_status=$?
cae5b340
AX
19005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19008 (eval $ac_try) 2>&5
19009 ac_status=$?
cae5b340
AX
19010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; }; then
ea04106b 19012
cae5b340 19013 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 19014$as_echo "yes" >&6; }
ea04106b 19015
cae5b340
AX
19016cat >>confdefs.h <<\_ACEOF
19017#define HAVE_XATTR_LIST_INODE 1
19018_ACEOF
ea04106b
AX
19019
19020
19021else
19022 $as_echo "$as_me: failed program was:" >&5
19023sed 's/^/| /' conftest.$ac_ext >&5
19024
cae5b340
AX
19025 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
19026$as_echo "$as_me: error: no; please file a bug report" >&2;}
19027 { (exit 1); exit 1; }; }
ea04106b
AX
19028
19029
19030
19031fi
cae5b340 19032
ea04106b
AX
19033 rm -Rf build
19034
19035
19036
19037
ea04106b 19038
cae5b340 19039fi
ea04106b 19040
cae5b340 19041 rm -Rf build
ea04106b
AX
19042
19043
68d83c55 19044
68d83c55 19045
ea04106b 19046
cae5b340 19047fi
ea04106b 19048
cae5b340
AX
19049 rm -Rf build
19050
19051
19052
19053
19054
19055fi
19056
19057 rm -Rf build
19058
19059
19060
19061
19062 { $as_echo "$as_me:$LINENO: checking whether inode_owner_or_capable() exists" >&5
19063$as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
19064
19065
19066cat confdefs.h - <<_ACEOF >conftest.c
19067/* confdefs.h. */
19068_ACEOF
19069cat confdefs.h >>conftest.$ac_ext
19070cat >>conftest.$ac_ext <<_ACEOF
19071/* end confdefs.h. */
19072
19073
19074 #include <linux/fs.h>
19075
19076int
19077main (void)
19078{
19079
19080 struct inode *ip = NULL;
19081 (void) inode_owner_or_capable(ip);
ea04106b
AX
19082
19083 ;
19084 return 0;
19085}
19086
19087_ACEOF
19088
19089
19090
19091cat - <<_ACEOF >conftest.h
19092
19093_ACEOF
19094
19095
19096 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19097 echo "obj-m := conftest.o" >build/Makefile
19098 modpost_flag=''
19099 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19100 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19102 (eval $ac_try) 2>&5
19103 ac_status=$?
cae5b340
AX
19104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19107 (eval $ac_try) 2>&5
19108 ac_status=$?
cae5b340
AX
19109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
ea04106b 19111
cae5b340 19112 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19113$as_echo "yes" >&6; }
19114
cae5b340
AX
19115cat >>confdefs.h <<\_ACEOF
19116#define HAVE_INODE_OWNER_OR_CAPABLE 1
19117_ACEOF
ea04106b
AX
19118
19119
19120else
19121 $as_echo "$as_me: failed program was:" >&5
19122sed 's/^/| /' conftest.$ac_ext >&5
19123
cae5b340 19124 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 19125$as_echo "no" >&6; }
cae5b340
AX
19126 { $as_echo "$as_me:$LINENO: checking whether is_owner_or_cap() exists" >&5
19127$as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
ea04106b
AX
19128
19129
19130cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19131/* confdefs.h. */
19132_ACEOF
19133cat confdefs.h >>conftest.$ac_ext
19134cat >>conftest.$ac_ext <<_ACEOF
19135/* end confdefs.h. */
ea04106b
AX
19136
19137
cae5b340
AX
19138 #include <linux/fs.h>
19139 #include <linux/sched.h>
ea04106b
AX
19140
19141int
19142main (void)
19143{
19144
cae5b340
AX
19145 struct inode *ip = NULL;
19146 (void) is_owner_or_cap(ip);
ea04106b
AX
19147
19148 ;
19149 return 0;
19150}
19151
19152_ACEOF
19153
19154
19155
19156cat - <<_ACEOF >conftest.h
19157
19158_ACEOF
19159
19160
19161 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19162 echo "obj-m := conftest.o" >build/Makefile
19163 modpost_flag=''
19164 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19165 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19167 (eval $ac_try) 2>&5
19168 ac_status=$?
cae5b340
AX
19169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19172 (eval $ac_try) 2>&5
19173 ac_status=$?
cae5b340
AX
19174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; }; then
ea04106b 19176
cae5b340 19177 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
19178$as_echo "yes" >&6; }
19179
cae5b340
AX
19180cat >>confdefs.h <<\_ACEOF
19181#define HAVE_IS_OWNER_OR_CAP 1
19182_ACEOF
e10b0808 19183
ea04106b
AX
19184
19185else
19186 $as_echo "$as_me: failed program was:" >&5
19187sed 's/^/| /' conftest.$ac_ext >&5
19188
cae5b340
AX
19189 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
19190 https://github.com/zfsonlinux/zfs/issues/new" >&5
19191$as_echo "$as_me: error: no - Please file a bug report at
19192 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
19193 { (exit 1); exit 1; }; }
ea04106b
AX
19194
19195
19196
19197fi
cae5b340 19198
ea04106b
AX
19199 rm -Rf build
19200
19201
19202
19203
ea04106b 19204
cae5b340 19205fi
ea04106b 19206
cae5b340 19207 rm -Rf build
ea04106b
AX
19208
19209
e10b0808 19210
e10b0808 19211
cae5b340
AX
19212 { $as_echo "$as_me:$LINENO: checking whether posix_acl_from_xattr() needs user_ns" >&5
19213$as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
19214
19215
19216cat confdefs.h - <<_ACEOF >conftest.c
19217/* confdefs.h. */
19218_ACEOF
19219cat confdefs.h >>conftest.$ac_ext
19220cat >>conftest.$ac_ext <<_ACEOF
19221/* end confdefs.h. */
19222
19223
19224 #include <linux/cred.h>
19225 #include <linux/fs.h>
19226 #include <linux/posix_acl_xattr.h>
ea04106b
AX
19227
19228int
19229main (void)
19230{
19231
cae5b340 19232 posix_acl_from_xattr(&init_user_ns, NULL, 0);
ea04106b
AX
19233
19234 ;
19235 return 0;
19236}
19237
19238_ACEOF
19239
19240
19241
19242cat - <<_ACEOF >conftest.h
19243
19244_ACEOF
19245
19246
19247 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19248 echo "obj-m := conftest.o" >build/Makefile
19249 modpost_flag=''
19250 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19251 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
cae5b340
AX
19255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19258 (eval $ac_try) 2>&5
19259 ac_status=$?
cae5b340
AX
19260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; }; then
ea04106b 19262
cae5b340 19263 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19264$as_echo "yes" >&6; }
19265
cae5b340
AX
19266cat >>confdefs.h <<\_ACEOF
19267#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1
19268_ACEOF
ea04106b
AX
19269
19270
19271else
19272 $as_echo "$as_me: failed program was:" >&5
19273sed 's/^/| /' conftest.$ac_ext >&5
19274
cae5b340 19275 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
19276$as_echo "no" >&6; }
19277
19278
19279
19280fi
ea04106b 19281
cae5b340 19282 rm -Rf build
ea04106b
AX
19283
19284
e10b0808 19285
22929307 19286
cae5b340
AX
19287 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is available" >&5
19288$as_echo_n "checking whether posix_acl_release() is available... " >&6; }
ea04106b
AX
19289
19290
19291cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19292/* confdefs.h. */
19293_ACEOF
19294cat confdefs.h >>conftest.$ac_ext
19295cat >>conftest.$ac_ext <<_ACEOF
19296/* end confdefs.h. */
ea04106b
AX
19297
19298
cae5b340 19299 #include <linux/cred.h>
ea04106b 19300 #include <linux/fs.h>
cae5b340 19301 #include <linux/posix_acl.h>
e10b0808 19302
cae5b340
AX
19303int
19304main (void)
19305{
22929307 19306
cae5b340
AX
19307 struct posix_acl* tmp = posix_acl_alloc(1, 0);
19308 posix_acl_release(tmp);
19309
19310 ;
19311 return 0;
19312}
19313
19314_ACEOF
19315
19316
19317
19318cat - <<_ACEOF >conftest.h
19319
19320_ACEOF
19321
19322
19323 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19324 echo "obj-m := conftest.o" >build/Makefile
19325 modpost_flag=''
19326 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19327 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19330 ac_status=$?
19331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19335 ac_status=$?
19336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; }; then
19338
19339 { $as_echo "$as_me:$LINENO: result: yes" >&5
19340$as_echo "yes" >&6; }
19341
19342cat >>confdefs.h <<\_ACEOF
19343#define HAVE_POSIX_ACL_RELEASE 1
19344_ACEOF
19345
19346
19347 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is GPL-only" >&5
19348$as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
19349
19350
19351cat confdefs.h - <<_ACEOF >conftest.c
19352/* confdefs.h. */
19353_ACEOF
19354cat confdefs.h >>conftest.$ac_ext
19355cat >>conftest.$ac_ext <<_ACEOF
19356/* end confdefs.h. */
19357
19358
19359 #include <linux/module.h>
19360 #include <linux/cred.h>
19361 #include <linux/fs.h>
19362 #include <linux/posix_acl.h>
19363
19364 MODULE_LICENSE("$ZFS_META_LICENSE");
22929307 19365
ea04106b
AX
19366int
19367main (void)
19368{
19369
cae5b340
AX
19370 struct posix_acl* tmp = posix_acl_alloc(1, 0);
19371 posix_acl_release(tmp);
ea04106b
AX
19372
19373 ;
19374 return 0;
19375}
19376
19377_ACEOF
19378
19379
19380
19381cat - <<_ACEOF >conftest.h
19382
19383_ACEOF
19384
19385
19386 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19387 echo "obj-m := conftest.o" >build/Makefile
19388 modpost_flag=''
19389 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19390 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
cae5b340
AX
19394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19397 (eval $ac_try) 2>&5
19398 ac_status=$?
cae5b340
AX
19399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
19401
19402 { $as_echo "$as_me:$LINENO: result: no" >&5
19403$as_echo "no" >&6; }
19404
19405else
19406 $as_echo "$as_me: failed program was:" >&5
19407sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 19408
cae5b340 19409 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19410$as_echo "yes" >&6; }
19411
cae5b340
AX
19412cat >>confdefs.h <<\_ACEOF
19413#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1
19414_ACEOF
19415
19416
19417
19418
19419fi
19420
19421 rm -Rf build
19422
ea04106b
AX
19423
19424
19425else
19426 $as_echo "$as_me: failed program was:" >&5
19427sed 's/^/| /' conftest.$ac_ext >&5
19428
cae5b340 19429 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
19430$as_echo "no" >&6; }
19431
19432
19433
19434fi
cae5b340 19435
ea04106b
AX
19436 rm -Rf build
19437
19438
19439
19440
cae5b340
AX
19441 { $as_echo "$as_me:$LINENO: checking whether set_cached_acl() is usable" >&5
19442$as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
ea04106b
AX
19443
19444
19445cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19446/* confdefs.h. */
19447_ACEOF
19448cat confdefs.h >>conftest.$ac_ext
19449cat >>conftest.$ac_ext <<_ACEOF
19450/* end confdefs.h. */
ea04106b
AX
19451
19452
cae5b340
AX
19453 #include <linux/module.h>
19454 #include <linux/cred.h>
ea04106b 19455 #include <linux/fs.h>
cae5b340 19456 #include <linux/posix_acl.h>
ea04106b 19457
cae5b340 19458 MODULE_LICENSE("$ZFS_META_LICENSE");
e10b0808 19459
ea04106b
AX
19460int
19461main (void)
19462{
19463
cae5b340
AX
19464 struct inode *ip = NULL;
19465 struct posix_acl *acl = posix_acl_alloc(1, 0);
19466 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
19467 forget_cached_acl(ip, ACL_TYPE_ACCESS);
ea04106b
AX
19468
19469 ;
19470 return 0;
19471}
19472
19473_ACEOF
19474
19475
19476
19477cat - <<_ACEOF >conftest.h
19478
19479_ACEOF
19480
19481
19482 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19483 echo "obj-m := conftest.o" >build/Makefile
19484 modpost_flag=''
19485 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19486 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19488 (eval $ac_try) 2>&5
19489 ac_status=$?
cae5b340
AX
19490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19493 (eval $ac_try) 2>&5
19494 ac_status=$?
cae5b340
AX
19495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); }; }; then
ea04106b 19497
cae5b340 19498 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19499$as_echo "yes" >&6; }
19500
cae5b340
AX
19501cat >>confdefs.h <<\_ACEOF
19502#define HAVE_SET_CACHED_ACL_USABLE 1
19503_ACEOF
ea04106b
AX
19504
19505
19506else
19507 $as_echo "$as_me: failed program was:" >&5
19508sed 's/^/| /' conftest.$ac_ext >&5
19509
cae5b340 19510 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
19511$as_echo "no" >&6; }
19512
19513
19514
19515fi
ea04106b 19516
cae5b340 19517 rm -Rf build
ea04106b
AX
19518
19519
19520
22929307 19521
cae5b340
AX
19522 { $as_echo "$as_me:$LINENO: checking whether posix_acl_chmod exists" >&5
19523$as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
ea04106b
AX
19524
19525
19526cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19527/* confdefs.h. */
19528_ACEOF
19529cat confdefs.h >>conftest.$ac_ext
19530cat >>conftest.$ac_ext <<_ACEOF
19531/* end confdefs.h. */
ea04106b
AX
19532
19533
19534 #include <linux/fs.h>
cae5b340 19535 #include <linux/posix_acl.h>
e10b0808 19536
ea04106b
AX
19537int
19538main (void)
19539{
19540
cae5b340 19541 posix_acl_chmod(NULL, 0, 0)
ea04106b
AX
19542
19543 ;
19544 return 0;
19545}
19546
19547_ACEOF
19548
19549
19550
19551cat - <<_ACEOF >conftest.h
19552
19553_ACEOF
19554
19555
19556 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19557 echo "obj-m := conftest.o" >build/Makefile
19558 modpost_flag=''
19559 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19560 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19562 (eval $ac_try) 2>&5
19563 ac_status=$?
cae5b340
AX
19564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19567 (eval $ac_try) 2>&5
19568 ac_status=$?
cae5b340
AX
19569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
ea04106b 19571
cae5b340 19572 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19573$as_echo "yes" >&6; }
19574
cae5b340
AX
19575cat >>confdefs.h <<\_ACEOF
19576#define HAVE_POSIX_ACL_CHMOD 1
19577_ACEOF
ea04106b
AX
19578
19579
19580else
19581 $as_echo "$as_me: failed program was:" >&5
19582sed 's/^/| /' conftest.$ac_ext >&5
19583
cae5b340 19584 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
19585$as_echo "no" >&6; }
19586
19587
19588
19589fi
ea04106b 19590
cae5b340 19591 rm -Rf build
ea04106b
AX
19592
19593
ea04106b 19594
cae5b340
AX
19595 { $as_echo "$as_me:$LINENO: checking whether __posix_acl_chmod exists" >&5
19596$as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
ea04106b
AX
19597
19598
19599cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19600/* confdefs.h. */
19601_ACEOF
19602cat confdefs.h >>conftest.$ac_ext
19603cat >>conftest.$ac_ext <<_ACEOF
19604/* end confdefs.h. */
ea04106b
AX
19605
19606
19607 #include <linux/fs.h>
cae5b340 19608 #include <linux/posix_acl.h>
ea04106b
AX
19609
19610int
19611main (void)
19612{
19613
cae5b340 19614 __posix_acl_chmod(NULL, 0, 0)
ea04106b
AX
19615
19616 ;
19617 return 0;
19618}
19619
19620_ACEOF
19621
19622
19623
19624cat - <<_ACEOF >conftest.h
19625
19626_ACEOF
19627
19628
19629 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19630 echo "obj-m := conftest.o" >build/Makefile
19631 modpost_flag=''
19632 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19633 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
cae5b340
AX
19642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
ea04106b 19644
cae5b340 19645 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19646$as_echo "yes" >&6; }
19647
cae5b340
AX
19648cat >>confdefs.h <<\_ACEOF
19649#define HAVE___POSIX_ACL_CHMOD 1
19650_ACEOF
ea04106b
AX
19651
19652
19653else
19654 $as_echo "$as_me: failed program was:" >&5
19655sed 's/^/| /' conftest.$ac_ext >&5
19656
cae5b340 19657 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 19658$as_echo "no" >&6; }
68d83c55
AX
19659
19660
19661
19662fi
cae5b340 19663
68d83c55
AX
19664 rm -Rf build
19665
19666
19667
19668
cae5b340
AX
19669 { $as_echo "$as_me:$LINENO: checking whether posix_acl_equiv_mode() wants umode_t" >&5
19670$as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
ea04106b
AX
19671
19672
19673cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19674/* confdefs.h. */
19675_ACEOF
19676cat confdefs.h >>conftest.$ac_ext
19677cat >>conftest.$ac_ext <<_ACEOF
19678/* end confdefs.h. */
ea04106b
AX
19679
19680
4d815aed 19681 #include <linux/fs.h>
cae5b340 19682 #include <linux/posix_acl.h>
68d83c55 19683
ea04106b
AX
19684int
19685main (void)
19686{
19687
cae5b340
AX
19688 umode_t tmp;
19689 posix_acl_equiv_mode(NULL,&tmp);
ea04106b
AX
19690
19691 ;
19692 return 0;
19693}
19694
19695_ACEOF
19696
19697
19698
19699cat - <<_ACEOF >conftest.h
19700
19701_ACEOF
19702
19703
19704 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19705 echo "obj-m := conftest.o" >build/Makefile
19706 modpost_flag=''
19707 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19708 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19710 (eval $ac_try) 2>&5
19711 ac_status=$?
cae5b340
AX
19712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19715 (eval $ac_try) 2>&5
19716 ac_status=$?
cae5b340
AX
19717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; }; then
ea04106b 19719
cae5b340 19720 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19721$as_echo "yes" >&6; }
19722
cae5b340
AX
19723cat >>confdefs.h <<\_ACEOF
19724#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1
19725_ACEOF
ea04106b
AX
19726
19727
19728else
19729 $as_echo "$as_me: failed program was:" >&5
19730sed 's/^/| /' conftest.$ac_ext >&5
19731
cae5b340 19732 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 19733$as_echo "no" >&6; }
4d815aed
AX
19734
19735
19736
19737fi
4d815aed 19738
cae5b340 19739 rm -Rf build
4d815aed
AX
19740
19741
19742
22929307 19743
cae5b340
AX
19744 { $as_echo "$as_me:$LINENO: checking whether posix_acl_valid() wants user namespace" >&5
19745$as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
4d815aed 19746
4d815aed 19747
68d83c55 19748cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19749/* confdefs.h. */
19750_ACEOF
19751cat confdefs.h >>conftest.$ac_ext
19752cat >>conftest.$ac_ext <<_ACEOF
19753/* end confdefs.h. */
4d815aed
AX
19754
19755
68d83c55 19756 #include <linux/fs.h>
cae5b340 19757 #include <linux/posix_acl.h>
68d83c55
AX
19758
19759int
19760main (void)
19761{
19762
cae5b340
AX
19763 struct user_namespace *user_ns = NULL;
19764 const struct posix_acl *acl = NULL;
19765 int error;
19766
19767 error = posix_acl_valid(user_ns, acl);
68d83c55
AX
19768
19769 ;
19770 return 0;
19771}
19772
19773_ACEOF
19774
19775
19776
19777cat - <<_ACEOF >conftest.h
19778
19779_ACEOF
4d815aed 19780
4d815aed 19781
68d83c55
AX
19782 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19783 echo "obj-m := conftest.o" >build/Makefile
19784 modpost_flag=''
19785 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19786 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
19788 (eval $ac_try) 2>&5
19789 ac_status=$?
cae5b340
AX
19790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
19793 (eval $ac_try) 2>&5
19794 ac_status=$?
cae5b340
AX
19795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; }; then
68d83c55 19797
cae5b340
AX
19798 { $as_echo "$as_me:$LINENO: result: yes" >&5
19799$as_echo "yes" >&6; }
68d83c55 19800
cae5b340
AX
19801cat >>confdefs.h <<\_ACEOF
19802#define HAVE_POSIX_ACL_VALID_WITH_NS 1
19803_ACEOF
4d815aed 19804
ea04106b 19805
68d83c55
AX
19806else
19807 $as_echo "$as_me: failed program was:" >&5
19808sed 's/^/| /' conftest.$ac_ext >&5
19809
cae5b340
AX
19810 { $as_echo "$as_me:$LINENO: result: no" >&5
19811$as_echo "no" >&6; }
68d83c55 19812
ea04106b
AX
19813
19814
19815fi
cae5b340 19816
ea04106b
AX
19817 rm -Rf build
19818
19819
19820
19821
cae5b340
AX
19822 { $as_echo "$as_me:$LINENO: checking whether iops->permission() exists" >&5
19823$as_echo_n "checking whether iops->permission() exists... " >&6; }
ea04106b
AX
19824
19825
19826cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19827/* confdefs.h. */
19828_ACEOF
19829cat confdefs.h >>conftest.$ac_ext
19830cat >>conftest.$ac_ext <<_ACEOF
19831/* end confdefs.h. */
ea04106b
AX
19832
19833
68d83c55
AX
19834 #include <linux/fs.h>
19835
cae5b340 19836 int permission_fn(struct inode *inode, int mask) { return 0; }
68d83c55 19837
cae5b340
AX
19838 static const struct inode_operations
19839 iops __attribute__ ((unused)) = {
19840 .permission = permission_fn,
68d83c55 19841 };
ea04106b
AX
19842
19843int
19844main (void)
19845{
19846
ea04106b
AX
19847
19848 ;
19849 return 0;
19850}
19851
19852_ACEOF
19853
19854
19855
19856cat - <<_ACEOF >conftest.h
19857
19858_ACEOF
19859
19860
19861 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19862 echo "obj-m := conftest.o" >build/Makefile
19863 modpost_flag=''
19864 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19865 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19867 (eval $ac_try) 2>&5
19868 ac_status=$?
cae5b340
AX
19869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19872 (eval $ac_try) 2>&5
19873 ac_status=$?
cae5b340
AX
19874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; }; then
ea04106b 19876
cae5b340
AX
19877 { $as_echo "$as_me:$LINENO: result: yes" >&5
19878$as_echo "yes" >&6; }
ea04106b 19879
cae5b340
AX
19880cat >>confdefs.h <<\_ACEOF
19881#define HAVE_PERMISSION 1
19882_ACEOF
ea04106b
AX
19883
19884
19885else
19886 $as_echo "$as_me: failed program was:" >&5
19887sed 's/^/| /' conftest.$ac_ext >&5
19888
cae5b340
AX
19889 { $as_echo "$as_me:$LINENO: result: no" >&5
19890$as_echo "no" >&6; }
68d83c55
AX
19891
19892
19893
19894fi
cae5b340 19895
68d83c55
AX
19896 rm -Rf build
19897
19898
19899
19900
cae5b340
AX
19901 { $as_echo "$as_me:$LINENO: checking whether iops->permission() wants nameidata" >&5
19902$as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
68d83c55 19903
ea04106b
AX
19904
19905cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19906/* confdefs.h. */
19907_ACEOF
19908cat confdefs.h >>conftest.$ac_ext
19909cat >>conftest.$ac_ext <<_ACEOF
19910/* end confdefs.h. */
ea04106b
AX
19911
19912
68d83c55
AX
19913 #include <linux/fs.h>
19914
cae5b340
AX
19915 int permission_fn(struct inode *inode, int mask,
19916 struct nameidata *nd) { return 0; }
68d83c55 19917
cae5b340
AX
19918 static const struct inode_operations
19919 iops __attribute__ ((unused)) = {
19920 .permission = permission_fn,
22929307
AX
19921 };
19922
19923int
19924main (void)
19925{
19926
19927
19928 ;
19929 return 0;
19930}
19931
19932_ACEOF
19933
19934
19935
19936cat - <<_ACEOF >conftest.h
19937
19938_ACEOF
19939
19940
19941 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19942 echo "obj-m := conftest.o" >build/Makefile
19943 modpost_flag=''
19944 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19945 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
19947 (eval $ac_try) 2>&5
19948 ac_status=$?
cae5b340
AX
19949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
19952 (eval $ac_try) 2>&5
19953 ac_status=$?
cae5b340
AX
19954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); }; }; then
19956
19957 { $as_echo "$as_me:$LINENO: result: yes" >&5
19958$as_echo "yes" >&6; }
19959
19960cat >>confdefs.h <<\_ACEOF
19961#define HAVE_PERMISSION 1
19962_ACEOF
22929307 19963
22929307 19964
cae5b340
AX
19965cat >>confdefs.h <<\_ACEOF
19966#define HAVE_PERMISSION_WITH_NAMEIDATA 1
19967_ACEOF
22929307
AX
19968
19969
19970else
19971 $as_echo "$as_me: failed program was:" >&5
19972sed 's/^/| /' conftest.$ac_ext >&5
19973
cae5b340
AX
19974 { $as_echo "$as_me:$LINENO: result: no" >&5
19975$as_echo "no" >&6; }
22929307
AX
19976
19977
19978
19979fi
22929307 19980
cae5b340 19981 rm -Rf build
22929307
AX
19982
19983
19984
19985
cae5b340
AX
19986 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() exists" >&5
19987$as_echo_n "checking whether iops->check_acl() exists... " >&6; }
22929307
AX
19988
19989
19990cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19991/* confdefs.h. */
19992_ACEOF
19993cat confdefs.h >>conftest.$ac_ext
19994cat >>conftest.$ac_ext <<_ACEOF
19995/* end confdefs.h. */
22929307
AX
19996
19997
19998 #include <linux/fs.h>
cae5b340
AX
19999
20000 int check_acl_fn(struct inode *inode, int mask) { return 0; }
20001
20002 static const struct inode_operations
20003 iops __attribute__ ((unused)) = {
20004 .check_acl = check_acl_fn,
68d83c55 20005 };
ea04106b
AX
20006
20007int
20008main (void)
20009{
20010
20011
20012 ;
20013 return 0;
20014}
20015
20016_ACEOF
20017
20018
20019
20020cat - <<_ACEOF >conftest.h
20021
20022_ACEOF
20023
20024
20025 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20026 echo "obj-m := conftest.o" >build/Makefile
20027 modpost_flag=''
20028 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20029 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20031 (eval $ac_try) 2>&5
20032 ac_status=$?
cae5b340
AX
20033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20036 (eval $ac_try) 2>&5
20037 ac_status=$?
cae5b340
AX
20038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; }; then
ea04106b 20040
cae5b340 20041 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 20042$as_echo "yes" >&6; }
ea04106b 20043
cae5b340
AX
20044cat >>confdefs.h <<\_ACEOF
20045#define HAVE_CHECK_ACL 1
20046_ACEOF
ea04106b
AX
20047
20048
20049else
20050 $as_echo "$as_me: failed program was:" >&5
20051sed 's/^/| /' conftest.$ac_ext >&5
20052
cae5b340 20053 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 20054$as_echo "no" >&6; }
68d83c55
AX
20055
20056
20057
20058fi
cae5b340 20059
68d83c55
AX
20060 rm -Rf build
20061
20062
20063
20064
cae5b340
AX
20065 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() wants flags" >&5
20066$as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
ea04106b
AX
20067
20068
20069cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20070/* confdefs.h. */
20071_ACEOF
20072cat confdefs.h >>conftest.$ac_ext
20073cat >>conftest.$ac_ext <<_ACEOF
20074/* end confdefs.h. */
ea04106b
AX
20075
20076
68d83c55
AX
20077 #include <linux/fs.h>
20078
cae5b340
AX
20079 int check_acl_fn(struct inode *inode, int mask,
20080 unsigned int flags) { return 0; }
68d83c55 20081
cae5b340
AX
20082 static const struct inode_operations
20083 iops __attribute__ ((unused)) = {
20084 .check_acl = check_acl_fn,
68d83c55 20085 };
ea04106b 20086
ea04106b
AX
20087int
20088main (void)
20089{
20090
20091
20092 ;
20093 return 0;
20094}
20095
20096_ACEOF
20097
20098
20099
20100cat - <<_ACEOF >conftest.h
20101
20102_ACEOF
20103
20104
20105 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20106 echo "obj-m := conftest.o" >build/Makefile
20107 modpost_flag=''
20108 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20109 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20111 (eval $ac_try) 2>&5
20112 ac_status=$?
cae5b340
AX
20113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20116 (eval $ac_try) 2>&5
20117 ac_status=$?
cae5b340
AX
20118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); }; }; then
4d815aed 20120
cae5b340 20121 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
20122$as_echo "yes" >&6; }
20123
cae5b340
AX
20124cat >>confdefs.h <<\_ACEOF
20125#define HAVE_CHECK_ACL 1
20126_ACEOF
20127
20128
20129cat >>confdefs.h <<\_ACEOF
20130#define HAVE_CHECK_ACL_WITH_FLAGS 1
20131_ACEOF
4d815aed
AX
20132
20133
e10b0808
AX
20134else
20135 $as_echo "$as_me: failed program was:" >&5
20136sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 20137
cae5b340 20138 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 20139$as_echo "no" >&6; }
e10b0808 20140
e10b0808 20141
ea04106b 20142
4d815aed 20143fi
cae5b340 20144
4d815aed 20145 rm -Rf build
ea04106b
AX
20146
20147
20148
ea04106b 20149
cae5b340
AX
20150 { $as_echo "$as_me:$LINENO: checking whether iops->get_acl() exists" >&5
20151$as_echo_n "checking whether iops->get_acl() exists... " >&6; }
ea04106b
AX
20152
20153
e10b0808 20154cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20155/* confdefs.h. */
20156_ACEOF
20157cat confdefs.h >>conftest.$ac_ext
20158cat >>conftest.$ac_ext <<_ACEOF
20159/* end confdefs.h. */
ea04106b 20160
ea04106b 20161
e10b0808 20162 #include <linux/fs.h>
68d83c55 20163
cae5b340
AX
20164 struct posix_acl *get_acl_fn(struct inode *inode, int type)
20165 { return NULL; }
22929307 20166
cae5b340
AX
20167 static const struct inode_operations
20168 iops __attribute__ ((unused)) = {
20169 .get_acl = get_acl_fn,
4d815aed 20170 };
ea04106b
AX
20171
20172int
20173main (void)
20174{
20175
20176
20177 ;
20178 return 0;
20179}
20180
20181_ACEOF
20182
20183
20184
20185cat - <<_ACEOF >conftest.h
20186
20187_ACEOF
20188
20189
20190 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20191 echo "obj-m := conftest.o" >build/Makefile
20192 modpost_flag=''
20193 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20194 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20196 (eval $ac_try) 2>&5
20197 ac_status=$?
cae5b340
AX
20198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20201 (eval $ac_try) 2>&5
20202 ac_status=$?
cae5b340
AX
20203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; }; then
4d815aed 20205
cae5b340 20206 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
20207$as_echo "yes" >&6; }
20208
cae5b340
AX
20209cat >>confdefs.h <<\_ACEOF
20210#define HAVE_GET_ACL 1
20211_ACEOF
4d815aed
AX
20212
20213
e10b0808
AX
20214else
20215 $as_echo "$as_me: failed program was:" >&5
20216sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 20217
cae5b340 20218 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed
AX
20219$as_echo "no" >&6; }
20220
ea04106b 20221
ea04106b 20222
e10b0808 20223fi
cae5b340 20224
e10b0808 20225 rm -Rf build
ea04106b
AX
20226
20227
e10b0808 20228
e10b0808 20229
cae5b340
AX
20230 { $as_echo "$as_me:$LINENO: checking whether iops->set_acl() exists" >&5
20231$as_echo_n "checking whether iops->set_acl() exists... " >&6; }
e10b0808 20232
ea04106b 20233
4d815aed 20234cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20235/* confdefs.h. */
20236_ACEOF
20237cat confdefs.h >>conftest.$ac_ext
20238cat >>conftest.$ac_ext <<_ACEOF
20239/* end confdefs.h. */
ea04106b
AX
20240
20241
68d83c55
AX
20242 #include <linux/fs.h>
20243
cae5b340
AX
20244 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
20245 { return 0; }
68d83c55 20246
cae5b340
AX
20247 static const struct inode_operations
20248 iops __attribute__ ((unused)) = {
20249 .set_acl = set_acl_fn,
4d815aed
AX
20250 };
20251
20252int
20253main (void)
20254{
20255
20256
20257 ;
20258 return 0;
20259}
20260
20261_ACEOF
20262
20263
20264
20265cat - <<_ACEOF >conftest.h
20266
20267_ACEOF
20268
20269
20270 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20271 echo "obj-m := conftest.o" >build/Makefile
20272 modpost_flag=''
20273 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20274 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
20276 (eval $ac_try) 2>&5
20277 ac_status=$?
cae5b340
AX
20278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
20281 (eval $ac_try) 2>&5
20282 ac_status=$?
cae5b340
AX
20283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); }; }; then
ea04106b 20285
cae5b340 20286 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 20287$as_echo "yes" >&6; }
ea04106b 20288
cae5b340
AX
20289cat >>confdefs.h <<\_ACEOF
20290#define HAVE_SET_ACL 1
20291_ACEOF
ea04106b
AX
20292
20293
4d815aed
AX
20294else
20295 $as_echo "$as_me: failed program was:" >&5
20296sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 20297
cae5b340 20298 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 20299$as_echo "no" >&6; }
ea04106b 20300
e10b0808 20301
ea04106b 20302
4d815aed 20303fi
cae5b340 20304
4d815aed
AX
20305 rm -Rf build
20306
20307
20308
20309
22929307 20310
cae5b340
AX
20311 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a path" >&5
20312$as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
4d815aed 20313
ea04106b
AX
20314
20315cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20316/* confdefs.h. */
20317_ACEOF
20318cat confdefs.h >>conftest.$ac_ext
20319cat >>conftest.$ac_ext <<_ACEOF
20320/* end confdefs.h. */
ea04106b
AX
20321
20322
68d83c55
AX
20323 #include <linux/fs.h>
20324
cae5b340
AX
20325 int test_getattr(
20326 const struct path *p, struct kstat *k,
20327 u32 request_mask, unsigned int query_flags)
20328 { return 0; }
68d83c55 20329
cae5b340
AX
20330 static const struct inode_operations
20331 iops __attribute__ ((unused)) = {
20332 .getattr = test_getattr,
4d815aed 20333 };
ea04106b
AX
20334
20335int
20336main (void)
20337{
20338
20339
20340 ;
20341 return 0;
20342}
20343
20344_ACEOF
20345
20346
20347
20348cat - <<_ACEOF >conftest.h
20349
20350_ACEOF
20351
20352
20353 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20354 echo "obj-m := conftest.o" >build/Makefile
20355 modpost_flag=''
20356 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20357 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20359 (eval $ac_try) 2>&5
20360 ac_status=$?
cae5b340
AX
20361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20364 (eval $ac_try) 2>&5
20365 ac_status=$?
cae5b340
AX
20366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; }; then
4d815aed 20368
cae5b340 20369 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
20370$as_echo "yes" >&6; }
20371
cae5b340
AX
20372cat >>confdefs.h <<\_ACEOF
20373#define HAVE_PATH_IOPS_GETATTR 1
20374_ACEOF
4d815aed
AX
20375
20376
ea04106b
AX
20377else
20378 $as_echo "$as_me: failed program was:" >&5
20379sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 20380
cae5b340 20381 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed
AX
20382$as_echo "no" >&6; }
20383
ea04106b
AX
20384
20385
20386fi
cae5b340 20387
ea04106b
AX
20388 rm -Rf build
20389
20390
20391
20392
cae5b340
AX
20393 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a vfsmount" >&5
20394$as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
ea04106b
AX
20395
20396
4d815aed 20397cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20398/* confdefs.h. */
20399_ACEOF
20400cat confdefs.h >>conftest.$ac_ext
20401cat >>conftest.$ac_ext <<_ACEOF
20402/* end confdefs.h. */
ea04106b
AX
20403
20404
68d83c55
AX
20405 #include <linux/fs.h>
20406
cae5b340
AX
20407 int test_getattr(
20408 struct vfsmount *mnt, struct dentry *d,
20409 struct kstat *k)
20410 { return 0; }
68d83c55
AX
20411
20412 static const struct inode_operations
cae5b340
AX
20413 iops __attribute__ ((unused)) = {
20414 .getattr = test_getattr,
4d815aed
AX
20415 };
20416
20417int
20418main (void)
20419{
20420
20421
20422 ;
20423 return 0;
20424}
20425
20426_ACEOF
20427
20428
20429
20430cat - <<_ACEOF >conftest.h
20431
20432_ACEOF
20433
20434
20435 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20436 echo "obj-m := conftest.o" >build/Makefile
20437 modpost_flag=''
20438 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20439 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
20441 (eval $ac_try) 2>&5
20442 ac_status=$?
cae5b340
AX
20443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
20446 (eval $ac_try) 2>&5
20447 ac_status=$?
cae5b340
AX
20448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; }; then
ea04106b 20450
cae5b340 20451 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
20452$as_echo "yes" >&6; }
20453
cae5b340
AX
20454cat >>confdefs.h <<\_ACEOF
20455#define HAVE_VFSMOUNT_IOPS_GETATTR 1
20456_ACEOF
ea04106b 20457
ea04106b 20458
4d815aed
AX
20459else
20460 $as_echo "$as_me: failed program was:" >&5
20461sed 's/^/| /' conftest.$ac_ext >&5
20462
cae5b340 20463 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 20464$as_echo "no" >&6; }
ea04106b
AX
20465
20466
4d815aed
AX
20467
20468fi
cae5b340 20469
4d815aed
AX
20470 rm -Rf build
20471
20472
20473
ea04106b 20474
22929307 20475
cae5b340
AX
20476 { $as_echo "$as_me:$LINENO: checking whether inode_set_flags() exists" >&5
20477$as_echo_n "checking whether inode_set_flags() exists... " >&6; }
ea04106b
AX
20478
20479
20480cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20481/* confdefs.h. */
20482_ACEOF
20483cat confdefs.h >>conftest.$ac_ext
20484cat >>conftest.$ac_ext <<_ACEOF
20485/* end confdefs.h. */
ea04106b
AX
20486
20487
4d815aed 20488 #include <linux/fs.h>
22929307 20489
ea04106b
AX
20490int
20491main (void)
20492{
20493
cae5b340
AX
20494 struct inode inode;
20495 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
ea04106b
AX
20496
20497 ;
20498 return 0;
20499}
20500
20501_ACEOF
20502
20503
20504
20505cat - <<_ACEOF >conftest.h
20506
20507_ACEOF
20508
20509
20510 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20511 echo "obj-m := conftest.o" >build/Makefile
20512 modpost_flag=''
20513 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20514 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20516 (eval $ac_try) 2>&5
20517 ac_status=$?
cae5b340
AX
20518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20521 (eval $ac_try) 2>&5
20522 ac_status=$?
cae5b340
AX
20523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); }; }; then
ea04106b 20525
cae5b340 20526 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 20527$as_echo "yes" >&6; }
ea04106b 20528
cae5b340
AX
20529cat >>confdefs.h <<\_ACEOF
20530#define HAVE_INODE_SET_FLAGS 1
20531_ACEOF
ea04106b
AX
20532
20533
68d83c55
AX
20534else
20535 $as_echo "$as_me: failed program was:" >&5
20536sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 20537
cae5b340 20538 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 20539$as_echo "no" >&6; }
22929307
AX
20540
20541
20542
20543fi
cae5b340 20544
22929307
AX
20545 rm -Rf build
20546
20547
20548
20549
cae5b340
AX
20550 { $as_echo "$as_me:$LINENO: checking whether uncached_acl_sentinel() exists" >&5
20551$as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
ea04106b 20552
ea04106b 20553
e10b0808 20554cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20555/* confdefs.h. */
20556_ACEOF
20557cat confdefs.h >>conftest.$ac_ext
20558cat >>conftest.$ac_ext <<_ACEOF
20559/* end confdefs.h. */
ea04106b 20560
e10b0808 20561
22929307
AX
20562 #include <linux/fs.h>
20563
ea04106b
AX
20564int
20565main (void)
20566{
20567
cae5b340 20568 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
ea04106b
AX
20569
20570 ;
20571 return 0;
20572}
20573
20574_ACEOF
20575
20576
20577
20578cat - <<_ACEOF >conftest.h
20579
20580_ACEOF
20581
20582
20583 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20584 echo "obj-m := conftest.o" >build/Makefile
20585 modpost_flag=''
20586 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20587 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20589 (eval $ac_try) 2>&5
20590 ac_status=$?
cae5b340
AX
20591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20594 (eval $ac_try) 2>&5
20595 ac_status=$?
cae5b340
AX
20596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); }; }; then
ea04106b 20598
cae5b340 20599 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 20600$as_echo "yes" >&6; }
ea04106b 20601
cae5b340
AX
20602cat >>confdefs.h <<\_ACEOF
20603#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1
20604_ACEOF
ea04106b
AX
20605
20606
68d83c55
AX
20607else
20608 $as_echo "$as_me: failed program was:" >&5
20609sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 20610
cae5b340 20611 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 20612$as_echo "no" >&6; }
ea04106b 20613
22929307
AX
20614
20615
20616fi
cae5b340 20617
22929307
AX
20618 rm -Rf build
20619
20620
20621
20622
cae5b340
AX
20623 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
20624$as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
20625
ea04106b
AX
20626
20627
e10b0808 20628cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20629/* confdefs.h. */
20630_ACEOF
20631cat confdefs.h >>conftest.$ac_ext
20632cat >>conftest.$ac_ext <<_ACEOF
20633/* end confdefs.h. */
ea04106b 20634
ea04106b 20635
68d83c55 20636 #include <linux/fs.h>
22929307 20637
cae5b340
AX
20638 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
20639 static struct super_operations sops __attribute__ ((unused)) = {
20640 .show_options = show_options,
68d83c55 20641 };
ea04106b
AX
20642
20643int
20644main (void)
20645{
20646
20647
20648 ;
20649 return 0;
20650}
20651
20652_ACEOF
20653
20654
20655
20656cat - <<_ACEOF >conftest.h
20657
20658_ACEOF
20659
20660
20661 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20662 echo "obj-m := conftest.o" >build/Makefile
20663 modpost_flag=''
20664 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20665 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20667 (eval $ac_try) 2>&5
20668 ac_status=$?
cae5b340
AX
20669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20672 (eval $ac_try) 2>&5
20673 ac_status=$?
cae5b340
AX
20674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); }; }; then
e10b0808 20676
cae5b340 20677 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
20678$as_echo "yes" >&6; }
20679
cae5b340
AX
20680cat >>confdefs.h <<\_ACEOF
20681#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
20682_ACEOF
e10b0808
AX
20683
20684
68d83c55
AX
20685else
20686 $as_echo "$as_me: failed program was:" >&5
20687sed 's/^/| /' conftest.$ac_ext >&5
e10b0808 20688
cae5b340 20689 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 20690$as_echo "no" >&6; }
22929307
AX
20691
20692
20693
20694fi
cae5b340 20695
22929307
AX
20696 rm -Rf build
20697
20698
20699
20700
cae5b340
AX
20701 { $as_echo "$as_me:$LINENO: checking whether file_inode() is available" >&5
20702$as_echo_n "checking whether file_inode() is available... " >&6; }
e10b0808
AX
20703
20704
20705cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20706/* confdefs.h. */
20707_ACEOF
20708cat confdefs.h >>conftest.$ac_ext
20709cat >>conftest.$ac_ext <<_ACEOF
20710/* end confdefs.h. */
e10b0808
AX
20711
20712
68d83c55 20713 #include <linux/fs.h>
22929307 20714
ea04106b
AX
20715int
20716main (void)
20717{
20718
cae5b340
AX
20719 struct file *f = NULL;
20720 file_inode(f);
ea04106b
AX
20721
20722 ;
20723 return 0;
20724}
20725
20726_ACEOF
20727
20728
20729
20730cat - <<_ACEOF >conftest.h
20731
20732_ACEOF
20733
20734
20735 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20736 echo "obj-m := conftest.o" >build/Makefile
20737 modpost_flag=''
20738 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20739 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20741 (eval $ac_try) 2>&5
20742 ac_status=$?
cae5b340
AX
20743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20746 (eval $ac_try) 2>&5
20747 ac_status=$?
cae5b340
AX
20748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; }; then
68d83c55 20750
cae5b340 20751 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
20752$as_echo "yes" >&6; }
20753
cae5b340
AX
20754cat >>confdefs.h <<\_ACEOF
20755#define HAVE_FILE_INODE 1
20756_ACEOF
68d83c55
AX
20757
20758
ea04106b
AX
20759else
20760 $as_echo "$as_me: failed program was:" >&5
20761sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 20762
cae5b340 20763 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 20764$as_echo "no" >&6; }
68d83c55
AX
20765
20766
20767
20768fi
cae5b340 20769
68d83c55 20770 rm -Rf build
ea04106b
AX
20771
20772
20773
20774
cae5b340
AX
20775 { $as_echo "$as_me:$LINENO: checking whether file_dentry() is available" >&5
20776$as_echo_n "checking whether file_dentry() is available... " >&6; }
ea04106b
AX
20777
20778
20779cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20780/* confdefs.h. */
20781_ACEOF
20782cat confdefs.h >>conftest.$ac_ext
20783cat >>conftest.$ac_ext <<_ACEOF
20784/* end confdefs.h. */
ea04106b
AX
20785
20786
22929307 20787 #include <linux/fs.h>
ea04106b 20788
ea04106b
AX
20789int
20790main (void)
20791{
20792
cae5b340
AX
20793 struct file *f = NULL;
20794 file_dentry(f);
ea04106b
AX
20795
20796 ;
20797 return 0;
20798}
20799
20800_ACEOF
20801
20802
20803
20804cat - <<_ACEOF >conftest.h
20805
20806_ACEOF
20807
20808
20809 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20810 echo "obj-m := conftest.o" >build/Makefile
20811 modpost_flag=''
20812 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20813 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20815 (eval $ac_try) 2>&5
20816 ac_status=$?
cae5b340
AX
20817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20820 (eval $ac_try) 2>&5
20821 ac_status=$?
cae5b340
AX
20822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; }; then
68d83c55 20824
cae5b340 20825 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307 20826$as_echo "yes" >&6; }
68d83c55 20827
cae5b340
AX
20828cat >>confdefs.h <<\_ACEOF
20829#define HAVE_FILE_DENTRY 1
20830_ACEOF
68d83c55
AX
20831
20832
e10b0808
AX
20833else
20834 $as_echo "$as_me: failed program was:" >&5
20835sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 20836
cae5b340 20837 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 20838$as_echo "no" >&6; }
cae5b340
AX
20839
20840
20841
20842fi
20843
20844 rm -Rf build
20845
20846
20847
20848
20849 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
20850$as_echo_n "checking whether fops->fsync() wants... " >&6; }
20851
ea04106b 20852
ea04106b 20853
68d83c55 20854cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20855/* confdefs.h. */
20856_ACEOF
20857cat confdefs.h >>conftest.$ac_ext
20858cat >>conftest.$ac_ext <<_ACEOF
20859/* end confdefs.h. */
ea04106b 20860
ea04106b 20861
cae5b340
AX
20862 #include <linux/fs.h>
20863
20864 int test_fsync(struct file *f, struct dentry *dentry, int x)
20865 { return 0; }
20866
20867 static const struct file_operations
20868 fops __attribute__ ((unused)) = {
20869 .fsync = test_fsync,
20870 };
ea04106b 20871
68d83c55
AX
20872int
20873main (void)
20874{
e10b0808 20875
e10b0808 20876
68d83c55
AX
20877 ;
20878 return 0;
20879}
ea04106b 20880
68d83c55 20881_ACEOF
ea04106b 20882
ea04106b
AX
20883
20884
68d83c55 20885cat - <<_ACEOF >conftest.h
ea04106b 20886
68d83c55 20887_ACEOF
ea04106b 20888
ea04106b 20889
68d83c55
AX
20890 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20891 echo "obj-m := conftest.o" >build/Makefile
20892 modpost_flag=''
20893 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20894 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
20896 (eval $ac_try) 2>&5
20897 ac_status=$?
cae5b340
AX
20898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
20901 (eval $ac_try) 2>&5
20902 ac_status=$?
cae5b340
AX
20903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; }; then
ea04106b 20905
cae5b340
AX
20906 { $as_echo "$as_me:$LINENO: result: dentry" >&5
20907$as_echo "dentry" >&6; }
68d83c55 20908
cae5b340
AX
20909cat >>confdefs.h <<\_ACEOF
20910#define HAVE_FSYNC_WITH_DENTRY 1
20911_ACEOF
68d83c55
AX
20912
20913
20914else
20915 $as_echo "$as_me: failed program was:" >&5
20916sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 20917
22929307 20918
cae5b340
AX
20919
20920
20921fi
20922
20923 rm -Rf build
20924
20925
20926
20927
ea04106b 20928
ea04106b 20929
e10b0808 20930cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20931/* confdefs.h. */
20932_ACEOF
20933cat confdefs.h >>conftest.$ac_ext
20934cat >>conftest.$ac_ext <<_ACEOF
20935/* end confdefs.h. */
ea04106b 20936
e10b0808 20937
22929307 20938 #include <linux/fs.h>
cae5b340
AX
20939
20940 int test_fsync(struct file *f, int x) { return 0; }
20941
20942 static const struct file_operations
20943 fops __attribute__ ((unused)) = {
20944 .fsync = test_fsync,
22929307 20945 };
ea04106b
AX
20946
20947int
20948main (void)
20949{
20950
20951
20952 ;
20953 return 0;
20954}
20955
20956_ACEOF
20957
20958
20959
20960cat - <<_ACEOF >conftest.h
20961
20962_ACEOF
20963
20964
20965 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20966 echo "obj-m := conftest.o" >build/Makefile
20967 modpost_flag=''
20968 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20969 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20971 (eval $ac_try) 2>&5
20972 ac_status=$?
cae5b340
AX
20973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20976 (eval $ac_try) 2>&5
20977 ac_status=$?
cae5b340
AX
20978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; }; then
68d83c55 20980
cae5b340
AX
20981 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
20982$as_echo "no dentry" >&6; }
68d83c55 20983
cae5b340
AX
20984cat >>confdefs.h <<\_ACEOF
20985#define HAVE_FSYNC_WITHOUT_DENTRY 1
20986_ACEOF
68d83c55
AX
20987
20988
e10b0808
AX
20989else
20990 $as_echo "$as_me: failed program was:" >&5
20991sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 20992
cae5b340
AX
20993
20994
20995
20996fi
20997
20998 rm -Rf build
20999
21000
21001
21002
ea04106b
AX
21003
21004
21005cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21006/* confdefs.h. */
21007_ACEOF
21008cat confdefs.h >>conftest.$ac_ext
21009cat >>conftest.$ac_ext <<_ACEOF
21010/* end confdefs.h. */
ea04106b
AX
21011
21012
68d83c55 21013 #include <linux/fs.h>
cae5b340
AX
21014
21015 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
21016 { return 0; }
21017
21018 static const struct file_operations
21019 fops __attribute__ ((unused)) = {
21020 .fsync = test_fsync,
21021 };
ea04106b
AX
21022
21023int
21024main (void)
21025{
21026
21027
21028 ;
21029 return 0;
21030}
21031
21032_ACEOF
21033
21034
21035
21036cat - <<_ACEOF >conftest.h
21037
21038_ACEOF
21039
21040
21041 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21042 echo "obj-m := conftest.o" >build/Makefile
21043 modpost_flag=''
21044 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21045 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21047 (eval $ac_try) 2>&5
21048 ac_status=$?
cae5b340
AX
21049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21052 (eval $ac_try) 2>&5
21053 ac_status=$?
cae5b340
AX
21054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); }; }; then
ea04106b 21056
cae5b340
AX
21057 { $as_echo "$as_me:$LINENO: result: range" >&5
21058$as_echo "range" >&6; }
ea04106b 21059
cae5b340
AX
21060cat >>confdefs.h <<\_ACEOF
21061#define HAVE_FSYNC_RANGE 1
21062_ACEOF
ea04106b
AX
21063
21064
21065else
21066 $as_echo "$as_me: failed program was:" >&5
21067sed 's/^/| /' conftest.$ac_ext >&5
21068
22929307
AX
21069
21070
21071
21072fi
cae5b340 21073
22929307
AX
21074 rm -Rf build
21075
21076
21077
21078
21079
cae5b340
AX
21080 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
21081$as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
21082
21083
21084cat confdefs.h - <<_ACEOF >conftest.c
21085/* confdefs.h. */
21086_ACEOF
21087cat confdefs.h >>conftest.$ac_ext
21088cat >>conftest.$ac_ext <<_ACEOF
21089/* end confdefs.h. */
21090
21091
21092 #include <linux/fs.h>
21093 void evict_inode (struct inode * t) { return; }
21094 static struct super_operations sops __attribute__ ((unused)) = {
21095 .evict_inode = evict_inode,
21096 };
21097
21098int
21099main (void)
21100{
21101
21102
21103 ;
21104 return 0;
21105}
21106
21107_ACEOF
22929307
AX
21108
21109
21110
cae5b340 21111cat - <<_ACEOF >conftest.h
22929307 21112
cae5b340 21113_ACEOF
22929307
AX
21114
21115
cae5b340
AX
21116 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21117 echo "obj-m := conftest.o" >build/Makefile
21118 modpost_flag=''
21119 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21120 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122 (eval $ac_try) 2>&5
21123 ac_status=$?
21124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21127 (eval $ac_try) 2>&5
21128 ac_status=$?
21129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); }; }; then
21131
21132 { $as_echo "$as_me:$LINENO: result: yes" >&5
21133$as_echo "yes" >&6; }
21134
21135cat >>confdefs.h <<\_ACEOF
21136#define HAVE_EVICT_INODE 1
21137_ACEOF
22929307
AX
21138
21139
cae5b340
AX
21140else
21141 $as_echo "$as_me: failed program was:" >&5
21142sed 's/^/| /' conftest.$ac_ext >&5
21143
21144 { $as_echo "$as_me:$LINENO: result: no" >&5
21145$as_echo "no" >&6; }
ea04106b
AX
21146
21147
21148
21149fi
cae5b340 21150
ea04106b
AX
21151 rm -Rf build
21152
21153
21154
21155
cae5b340
AX
21156 { $as_echo "$as_me:$LINENO: checking whether sops->dirty_inode() wants flags" >&5
21157$as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
ea04106b
AX
21158
21159
21160cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21161/* confdefs.h. */
21162_ACEOF
21163cat confdefs.h >>conftest.$ac_ext
21164cat >>conftest.$ac_ext <<_ACEOF
21165/* end confdefs.h. */
ea04106b
AX
21166
21167
cae5b340
AX
21168 #include <linux/fs.h>
21169
21170 void dirty_inode(struct inode *a, int b) { return; }
21171
21172 static const struct super_operations
21173 sops __attribute__ ((unused)) = {
21174 .dirty_inode = dirty_inode,
21175 };
ea04106b
AX
21176
21177int
21178main (void)
21179{
21180
e10b0808
AX
21181
21182 ;
ea04106b
AX
21183 return 0;
21184}
21185
21186_ACEOF
21187
21188
21189
21190cat - <<_ACEOF >conftest.h
21191
21192_ACEOF
21193
21194
21195 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21196 echo "obj-m := conftest.o" >build/Makefile
21197 modpost_flag=''
21198 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21199 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21201 (eval $ac_try) 2>&5
21202 ac_status=$?
cae5b340
AX
21203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21206 (eval $ac_try) 2>&5
21207 ac_status=$?
cae5b340
AX
21208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); }; }; then
ea04106b 21210
cae5b340
AX
21211 { $as_echo "$as_me:$LINENO: result: yes" >&5
21212$as_echo "yes" >&6; }
ea04106b 21213
cae5b340
AX
21214cat >>confdefs.h <<\_ACEOF
21215#define HAVE_DIRTY_INODE_WITH_FLAGS 1
21216_ACEOF
ea04106b
AX
21217
21218
21219else
21220 $as_echo "$as_me: failed program was:" >&5
21221sed 's/^/| /' conftest.$ac_ext >&5
21222
cae5b340
AX
21223 { $as_echo "$as_me:$LINENO: result: no" >&5
21224$as_echo "no" >&6; }
21225
21226
21227
21228fi
21229
21230 rm -Rf build
21231
21232
21233
21234
21235 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
21236$as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
ea04106b
AX
21237
21238
21239cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21240/* confdefs.h. */
21241_ACEOF
21242cat confdefs.h >>conftest.$ac_ext
21243cat >>conftest.$ac_ext <<_ACEOF
21244/* end confdefs.h. */
ea04106b
AX
21245
21246
cae5b340
AX
21247 #include <linux/fs.h>
21248
21249 int nr_cached_objects(struct super_block *sb) { return 0; }
21250
21251 static const struct super_operations
21252 sops __attribute__ ((unused)) = {
21253 .nr_cached_objects = nr_cached_objects,
21254 };
22929307
AX
21255
21256int
21257main (void)
21258{
21259
21260
21261 ;
21262 return 0;
21263}
21264
21265_ACEOF
21266
21267
21268
21269cat - <<_ACEOF >conftest.h
21270
21271_ACEOF
21272
21273
21274 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21275 echo "obj-m := conftest.o" >build/Makefile
21276 modpost_flag=''
21277 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21278 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
21280 (eval $ac_try) 2>&5
21281 ac_status=$?
cae5b340
AX
21282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
21285 (eval $ac_try) 2>&5
21286 ac_status=$?
cae5b340
AX
21287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; }; then
22929307 21289
cae5b340 21290 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
21291$as_echo "yes" >&6; }
21292
cae5b340
AX
21293cat >>confdefs.h <<\_ACEOF
21294#define HAVE_NR_CACHED_OBJECTS 1
21295_ACEOF
22929307
AX
21296
21297
21298else
21299 $as_echo "$as_me: failed program was:" >&5
21300sed 's/^/| /' conftest.$ac_ext >&5
21301
cae5b340 21302 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 21303$as_echo "no" >&6; }
cae5b340
AX
21304
21305
21306
21307fi
21308
21309 rm -Rf build
21310
21311
21312
21313
21314 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
21315$as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
22929307
AX
21316
21317
21318cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21319/* confdefs.h. */
21320_ACEOF
21321cat confdefs.h >>conftest.$ac_ext
21322cat >>conftest.$ac_ext <<_ACEOF
21323/* end confdefs.h. */
22929307
AX
21324
21325
cae5b340
AX
21326 #include <linux/fs.h>
21327
21328 void free_cached_objects(struct super_block *sb, int x)
21329 { return; }
21330
21331 static const struct super_operations
21332 sops __attribute__ ((unused)) = {
21333 .free_cached_objects = free_cached_objects,
21334 };
22929307
AX
21335
21336int
21337main (void)
21338{
21339
21340
21341 ;
21342 return 0;
21343}
21344
21345_ACEOF
21346
21347
21348
21349cat - <<_ACEOF >conftest.h
21350
21351_ACEOF
21352
21353
21354 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21355 echo "obj-m := conftest.o" >build/Makefile
21356 modpost_flag=''
21357 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21358 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
21360 (eval $ac_try) 2>&5
21361 ac_status=$?
cae5b340
AX
21362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
21365 (eval $ac_try) 2>&5
21366 ac_status=$?
cae5b340
AX
21367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; }; then
22929307 21369
cae5b340 21370 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
21371$as_echo "yes" >&6; }
21372
cae5b340
AX
21373cat >>confdefs.h <<\_ACEOF
21374#define HAVE_FREE_CACHED_OBJECTS 1
21375_ACEOF
22929307
AX
21376
21377
21378else
21379 $as_echo "$as_me: failed program was:" >&5
21380sed 's/^/| /' conftest.$ac_ext >&5
21381
cae5b340
AX
21382 { $as_echo "$as_me:$LINENO: result: no" >&5
21383$as_echo "no" >&6; }
22929307
AX
21384
21385
21386
21387fi
22929307 21388
22929307
AX
21389 rm -Rf build
21390
21391
21392
21393
21394
cae5b340
AX
21395 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
21396$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
22929307
AX
21397
21398
21399cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21400/* confdefs.h. */
21401_ACEOF
21402cat confdefs.h >>conftest.$ac_ext
21403cat >>conftest.$ac_ext <<_ACEOF
21404/* end confdefs.h. */
22929307
AX
21405
21406
21407 #include <linux/fs.h>
cae5b340
AX
21408
21409 long test_fallocate(struct file *file, int mode,
21410 loff_t offset, loff_t len) { return 0; }
21411
21412 static const struct file_operations
21413 fops __attribute__ ((unused)) = {
21414 .fallocate = test_fallocate,
22929307
AX
21415 };
21416
21417int
21418main (void)
21419{
21420
21421
21422 ;
21423 return 0;
21424}
21425
21426_ACEOF
21427
21428
21429
21430cat - <<_ACEOF >conftest.h
21431
21432_ACEOF
21433
21434
21435 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21436 echo "obj-m := conftest.o" >build/Makefile
21437 modpost_flag=''
21438 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21439 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
21441 (eval $ac_try) 2>&5
21442 ac_status=$?
cae5b340
AX
21443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
21446 (eval $ac_try) 2>&5
21447 ac_status=$?
cae5b340
AX
21448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; }; then
22929307 21450
cae5b340 21451 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
21452$as_echo "yes" >&6; }
21453
cae5b340
AX
21454cat >>confdefs.h <<\_ACEOF
21455#define HAVE_FILE_FALLOCATE 1
21456_ACEOF
22929307
AX
21457
21458
21459else
21460 $as_echo "$as_me: failed program was:" >&5
21461sed 's/^/| /' conftest.$ac_ext >&5
21462
cae5b340 21463 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
21464$as_echo "no" >&6; }
21465
21466
21467
21468fi
cae5b340 21469
22929307
AX
21470 rm -Rf build
21471
21472
21473
21474
cae5b340
AX
21475 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
21476$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
22929307
AX
21477
21478
21479cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21480/* confdefs.h. */
21481_ACEOF
21482cat confdefs.h >>conftest.$ac_ext
21483cat >>conftest.$ac_ext <<_ACEOF
21484/* end confdefs.h. */
22929307
AX
21485
21486
cae5b340
AX
21487 #include <linux/fs.h>
21488
21489 long test_fallocate(struct inode *inode, int mode,
21490 loff_t offset, loff_t len) { return 0; }
21491
21492 static const struct inode_operations
21493 fops __attribute__ ((unused)) = {
21494 .fallocate = test_fallocate,
22929307
AX
21495 };
21496
21497int
21498main (void)
21499{
21500
21501
21502 ;
21503 return 0;
21504}
21505
21506_ACEOF
21507
21508
21509
21510cat - <<_ACEOF >conftest.h
21511
21512_ACEOF
21513
21514
21515 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21516 echo "obj-m := conftest.o" >build/Makefile
21517 modpost_flag=''
21518 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21519 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
21521 (eval $ac_try) 2>&5
21522 ac_status=$?
cae5b340
AX
21523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
21526 (eval $ac_try) 2>&5
21527 ac_status=$?
cae5b340
AX
21528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); }; }; then
22929307 21530
cae5b340 21531 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
21532$as_echo "yes" >&6; }
21533
cae5b340
AX
21534cat >>confdefs.h <<\_ACEOF
21535#define HAVE_INODE_FALLOCATE 1
21536_ACEOF
22929307
AX
21537
21538
21539else
21540 $as_echo "$as_me: failed program was:" >&5
21541sed 's/^/| /' conftest.$ac_ext >&5
21542
cae5b340 21543 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
21544$as_echo "no" >&6; }
21545
21546
21547
21548fi
cae5b340 21549
22929307
AX
21550 rm -Rf build
21551
21552
21553
21554
cae5b340
AX
21555
21556 { $as_echo "$as_me:$LINENO: checking whether fops->aio_fsync() exists" >&5
21557$as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
22929307
AX
21558
21559
21560cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21561/* confdefs.h. */
21562_ACEOF
21563cat confdefs.h >>conftest.$ac_ext
21564cat >>conftest.$ac_ext <<_ACEOF
21565/* end confdefs.h. */
22929307
AX
21566
21567
cae5b340
AX
21568 #include <linux/fs.h>
21569
21570 static const struct file_operations
21571 fops __attribute__ ((unused)) = {
21572 .aio_fsync = NULL,
22929307 21573 };
ea04106b
AX
21574
21575int
21576main (void)
21577{
21578
21579
21580 ;
21581 return 0;
21582}
21583
21584_ACEOF
21585
21586
21587
21588cat - <<_ACEOF >conftest.h
21589
21590_ACEOF
21591
21592
21593 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21594 echo "obj-m := conftest.o" >build/Makefile
21595 modpost_flag=''
21596 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21597 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21599 (eval $ac_try) 2>&5
21600 ac_status=$?
cae5b340
AX
21601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21604 (eval $ac_try) 2>&5
21605 ac_status=$?
cae5b340
AX
21606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); }; }; then
68d83c55 21608
cae5b340 21609 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
21610$as_echo "yes" >&6; }
21611
cae5b340
AX
21612cat >>confdefs.h <<\_ACEOF
21613#define HAVE_FILE_AIO_FSYNC 1
21614_ACEOF
68d83c55
AX
21615
21616
21617else
21618 $as_echo "$as_me: failed program was:" >&5
21619sed 's/^/| /' conftest.$ac_ext >&5
21620
cae5b340 21621 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
21622$as_echo "no" >&6; }
21623
21624
21625
21626fi
cae5b340 21627
68d83c55
AX
21628 rm -Rf build
21629
21630
21631
21632
cae5b340
AX
21633 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
21634$as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
68d83c55
AX
21635
21636
21637cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21638/* confdefs.h. */
21639_ACEOF
21640cat confdefs.h >>conftest.$ac_ext
21641cat >>conftest.$ac_ext <<_ACEOF
21642/* end confdefs.h. */
68d83c55
AX
21643
21644
cae5b340
AX
21645 #include <linux/fs.h>
21646
21647 int mkdir(struct inode *inode, struct dentry *dentry,
21648 umode_t umode) { return 0; }
21649
21650 static const struct inode_operations
21651 iops __attribute__ ((unused)) = {
21652 .mkdir = mkdir,
68d83c55
AX
21653 };
21654
21655int
21656main (void)
21657{
21658
21659
21660 ;
21661 return 0;
21662}
21663
21664_ACEOF
21665
21666
21667
21668cat - <<_ACEOF >conftest.h
21669
21670_ACEOF
21671
21672
21673 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21674 echo "obj-m := conftest.o" >build/Makefile
21675 modpost_flag=''
21676 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21677 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
21679 (eval $ac_try) 2>&5
21680 ac_status=$?
cae5b340
AX
21681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
21684 (eval $ac_try) 2>&5
21685 ac_status=$?
cae5b340
AX
21686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); }; }; then
68d83c55 21688
cae5b340 21689 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
21690$as_echo "yes" >&6; }
21691
cae5b340
AX
21692cat >>confdefs.h <<\_ACEOF
21693#define HAVE_MKDIR_UMODE_T 1
21694_ACEOF
68d83c55
AX
21695
21696
21697else
21698 $as_echo "$as_me: failed program was:" >&5
21699sed 's/^/| /' conftest.$ac_ext >&5
21700
cae5b340 21701 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
21702$as_echo "no" >&6; }
21703
21704
21705
21706fi
cae5b340 21707
68d83c55
AX
21708 rm -Rf build
21709
21710
21711
68d83c55 21712
cae5b340
AX
21713 { $as_echo "$as_me:$LINENO: checking whether iops->lookup() passes nameidata" >&5
21714$as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
68d83c55
AX
21715
21716
21717cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21718/* confdefs.h. */
21719_ACEOF
21720cat confdefs.h >>conftest.$ac_ext
21721cat >>conftest.$ac_ext <<_ACEOF
21722/* end confdefs.h. */
68d83c55
AX
21723
21724
21725 #include <linux/fs.h>
21726
cae5b340
AX
21727 struct dentry *inode_lookup(struct inode *inode,
21728 struct dentry *dentry, struct nameidata *nidata)
21729 { return NULL; }
21730
21731 static const struct inode_operations iops
21732 __attribute__ ((unused)) = {
21733 .lookup = inode_lookup,
21734 };
21735
68d83c55
AX
21736int
21737main (void)
21738{
21739
68d83c55
AX
21740
21741 ;
21742 return 0;
21743}
21744
21745_ACEOF
21746
21747
21748
21749cat - <<_ACEOF >conftest.h
21750
21751_ACEOF
21752
21753
21754 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21755 echo "obj-m := conftest.o" >build/Makefile
21756 modpost_flag=''
21757 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21758 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
21760 (eval $ac_try) 2>&5
21761 ac_status=$?
cae5b340
AX
21762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
21765 (eval $ac_try) 2>&5
21766 ac_status=$?
cae5b340
AX
21767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); }; }; then
ea04106b 21769
cae5b340
AX
21770 { $as_echo "$as_me:$LINENO: result: yes" >&5
21771$as_echo "yes" >&6; }
ea04106b 21772
cae5b340
AX
21773cat >>confdefs.h <<\_ACEOF
21774#define HAVE_LOOKUP_NAMEIDATA 1
21775_ACEOF
e10b0808 21776
e10b0808 21777
cae5b340
AX
21778else
21779 $as_echo "$as_me: failed program was:" >&5
21780sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 21781
cae5b340 21782 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 21783$as_echo "no" >&6; }
ea04106b 21784
ea04106b
AX
21785
21786
cae5b340 21787fi
ea04106b 21788
cae5b340 21789 rm -Rf build
ea04106b 21790
e10b0808
AX
21791
21792
21793
cae5b340
AX
21794 { $as_echo "$as_me:$LINENO: checking whether iops->create() passes nameidata" >&5
21795$as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
ea04106b
AX
21796
21797
21798cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21799/* confdefs.h. */
21800_ACEOF
21801cat confdefs.h >>conftest.$ac_ext
21802cat >>conftest.$ac_ext <<_ACEOF
21803/* end confdefs.h. */
ea04106b
AX
21804
21805
68d83c55 21806 #include <linux/fs.h>
ea04106b 21807
cae5b340
AX
21808 #ifdef HAVE_MKDIR_UMODE_T
21809 int inode_create(struct inode *inode ,struct dentry *dentry,
21810 umode_t umode, struct nameidata *nidata) { return 0; }
21811 #else
21812 int inode_create(struct inode *inode,struct dentry *dentry,
21813 int umode, struct nameidata * nidata) { return 0; }
21814 #endif
21815
21816 static const struct inode_operations
21817 iops __attribute__ ((unused)) = {
21818 .create = inode_create,
21819 };
21820
ea04106b
AX
21821int
21822main (void)
21823{
21824
21825
21826 ;
21827 return 0;
21828}
21829
21830_ACEOF
21831
21832
21833
21834cat - <<_ACEOF >conftest.h
21835
21836_ACEOF
21837
21838
21839 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21840 echo "obj-m := conftest.o" >build/Makefile
21841 modpost_flag=''
21842 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21843 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21845 (eval $ac_try) 2>&5
21846 ac_status=$?
cae5b340
AX
21847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21850 (eval $ac_try) 2>&5
21851 ac_status=$?
cae5b340
AX
21852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); }; }; then
ea04106b 21854
cae5b340
AX
21855 { $as_echo "$as_me:$LINENO: result: yes" >&5
21856$as_echo "yes" >&6; }
4d815aed 21857
cae5b340
AX
21858cat >>confdefs.h <<\_ACEOF
21859#define HAVE_CREATE_NAMEIDATA 1
21860_ACEOF
4d815aed 21861
4d815aed 21862
cae5b340
AX
21863else
21864 $as_echo "$as_me: failed program was:" >&5
21865sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 21866
cae5b340 21867 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
21868$as_echo "no" >&6; }
21869
21870
21871
cae5b340 21872fi
ea04106b 21873
cae5b340 21874 rm -Rf build
ea04106b 21875
4d815aed 21876
ea04106b 21877
ea04106b 21878
cae5b340
AX
21879 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes delayed" >&5
21880$as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
ea04106b
AX
21881
21882
21883cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21884/* confdefs.h. */
21885_ACEOF
21886cat confdefs.h >>conftest.$ac_ext
21887cat >>conftest.$ac_ext <<_ACEOF
21888/* end confdefs.h. */
ea04106b
AX
21889
21890
68d83c55 21891 #include <linux/fs.h>
cae5b340
AX
21892 const char *get_link(struct dentry *de, struct inode *ip,
21893 struct delayed_call *done) { return "symlink"; }
21894 static struct inode_operations
21895 iops __attribute__ ((unused)) = {
21896 .get_link = get_link,
21897 };
ea04106b
AX
21898
21899int
21900main (void)
21901{
21902
4d815aed
AX
21903
21904 ;
ea04106b
AX
21905 return 0;
21906}
21907
21908_ACEOF
21909
21910
21911
21912cat - <<_ACEOF >conftest.h
21913
21914_ACEOF
21915
21916
21917 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21918 echo "obj-m := conftest.o" >build/Makefile
21919 modpost_flag=''
21920 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21921 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21923 (eval $ac_try) 2>&5
21924 ac_status=$?
cae5b340
AX
21925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21928 (eval $ac_try) 2>&5
21929 ac_status=$?
cae5b340
AX
21930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); }; }; then
ea04106b 21932
cae5b340 21933 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 21934$as_echo "yes" >&6; }
ea04106b 21935
cae5b340
AX
21936cat >>confdefs.h <<\_ACEOF
21937#define HAVE_GET_LINK_DELAYED 1
21938_ACEOF
68d83c55 21939
ea04106b 21940
cae5b340
AX
21941else
21942 $as_echo "$as_me: failed program was:" >&5
21943sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 21944
cae5b340
AX
21945 { $as_echo "$as_me:$LINENO: result: no" >&5
21946$as_echo "no" >&6; }
21947 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes cookie" >&5
21948$as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
ea04106b
AX
21949
21950
21951cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21952/* confdefs.h. */
21953_ACEOF
21954cat confdefs.h >>conftest.$ac_ext
21955cat >>conftest.$ac_ext <<_ACEOF
21956/* end confdefs.h. */
ea04106b
AX
21957
21958
cae5b340
AX
21959 #include <linux/fs.h>
21960 const char *get_link(struct dentry *de, struct
21961 inode *ip, void **cookie) { return "symlink"; }
21962 static struct inode_operations
21963 iops __attribute__ ((unused)) = {
21964 .get_link = get_link,
21965 };
ea04106b
AX
21966
21967int
21968main (void)
21969{
21970
ea04106b
AX
21971
21972 ;
21973 return 0;
21974}
21975
21976_ACEOF
21977
21978
21979
21980cat - <<_ACEOF >conftest.h
21981
21982_ACEOF
21983
21984
21985 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21986 echo "obj-m := conftest.o" >build/Makefile
21987 modpost_flag=''
21988 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21989 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21991 (eval $ac_try) 2>&5
21992 ac_status=$?
cae5b340
AX
21993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21996 (eval $ac_try) 2>&5
21997 ac_status=$?
cae5b340
AX
21998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); }; }; then
ea04106b 22000
cae5b340 22001 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 22002$as_echo "yes" >&6; }
ea04106b 22003
cae5b340
AX
22004cat >>confdefs.h <<\_ACEOF
22005#define HAVE_GET_LINK_COOKIE 1
22006_ACEOF
ea04106b 22007
68d83c55 22008
cae5b340
AX
22009else
22010 $as_echo "$as_me: failed program was:" >&5
22011sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 22012
cae5b340
AX
22013 { $as_echo "$as_me:$LINENO: result: no" >&5
22014$as_echo "no" >&6; }
4d815aed 22015
cae5b340
AX
22016 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes cookie" >&5
22017$as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
ea04106b
AX
22018
22019
22020cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22021/* confdefs.h. */
22022_ACEOF
22023cat confdefs.h >>conftest.$ac_ext
22024cat >>conftest.$ac_ext <<_ACEOF
22025/* end confdefs.h. */
ea04106b
AX
22026
22027
cae5b340
AX
22028 #include <linux/fs.h>
22029 const char *follow_link(struct dentry *de,
22030 void **cookie) { return "symlink"; }
22031 static struct inode_operations
22032 iops __attribute__ ((unused)) = {
22033 .follow_link = follow_link,
22034 };
ea04106b
AX
22035
22036int
22037main (void)
22038{
22039
ea04106b
AX
22040
22041 ;
22042 return 0;
22043}
22044
22045_ACEOF
22046
22047
22048
22049cat - <<_ACEOF >conftest.h
22050
22051_ACEOF
22052
22053
22054 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22055 echo "obj-m := conftest.o" >build/Makefile
22056 modpost_flag=''
22057 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22058 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22060 (eval $ac_try) 2>&5
22061 ac_status=$?
cae5b340
AX
22062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22065 (eval $ac_try) 2>&5
22066 ac_status=$?
cae5b340
AX
22067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); }; }; then
ea04106b 22069
cae5b340 22070 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 22071$as_echo "yes" >&6; }
ea04106b 22072
cae5b340
AX
22073cat >>confdefs.h <<\_ACEOF
22074#define HAVE_FOLLOW_LINK_COOKIE 1
22075_ACEOF
ea04106b 22076
ea04106b 22077
cae5b340
AX
22078else
22079 $as_echo "$as_me: failed program was:" >&5
22080sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 22081
cae5b340
AX
22082 { $as_echo "$as_me:$LINENO: result: no" >&5
22083$as_echo "no" >&6; }
22084 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes nameidata" >&5
22085$as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
ea04106b
AX
22086
22087
22088cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22089/* confdefs.h. */
22090_ACEOF
22091cat confdefs.h >>conftest.$ac_ext
22092cat >>conftest.$ac_ext <<_ACEOF
22093/* end confdefs.h. */
ea04106b
AX
22094
22095
cae5b340
AX
22096 #include <linux/fs.h>
22097 void *follow_link(struct dentry *de, struct
22098 nameidata *nd) { return (void *)NULL; }
22099 static struct inode_operations
22100 iops __attribute__ ((unused)) = {
22101 .follow_link = follow_link,
22102 };
ea04106b
AX
22103
22104int
22105main (void)
22106{
22107
ea04106b
AX
22108
22109 ;
22110 return 0;
22111}
22112
22113_ACEOF
22114
22115
22116
22117cat - <<_ACEOF >conftest.h
22118
22119_ACEOF
22120
22121
22122 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22123 echo "obj-m := conftest.o" >build/Makefile
22124 modpost_flag=''
22125 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22126 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22128 (eval $ac_try) 2>&5
22129 ac_status=$?
cae5b340
AX
22130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22133 (eval $ac_try) 2>&5
22134 ac_status=$?
cae5b340
AX
22135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); }; }; then
22137
22138 { $as_echo "$as_me:$LINENO: result: yes" >&5
22139$as_echo "yes" >&6; }
22140
22141cat >>confdefs.h <<\_ACEOF
22142#define HAVE_FOLLOW_LINK_NAMEIDATA 1
22143_ACEOF
22144
22145
68d83c55
AX
22146else
22147 $as_echo "$as_me: failed program was:" >&5
22148sed 's/^/| /' conftest.$ac_ext >&5
cae5b340
AX
22149
22150 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
22151$as_echo "$as_me: error: no; please file a bug report" >&2;}
22152 { (exit 1); exit 1; }; }
22153
4d815aed 22154
4d815aed 22155
68d83c55 22156fi
cae5b340 22157
68d83c55 22158 rm -Rf build
4d815aed
AX
22159
22160
22161
68d83c55 22162
68d83c55 22163
cae5b340 22164fi
68d83c55 22165
cae5b340 22166 rm -Rf build
4d815aed 22167
4d815aed 22168
ea04106b
AX
22169
22170
ea04106b
AX
22171
22172
cae5b340
AX
22173fi
22174
22175 rm -Rf build
22176
22177
22178
22179
22180
22181fi
22182
22183 rm -Rf build
22184
ea04106b 22185
ea04106b 22186
68d83c55 22187
ea04106b
AX
22188
22189
22190cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22191/* confdefs.h. */
22192_ACEOF
22193cat confdefs.h >>conftest.$ac_ext
22194cat >>conftest.$ac_ext <<_ACEOF
22195/* end confdefs.h. */
ea04106b
AX
22196
22197
cae5b340
AX
22198 #if !defined(HAVE_GET_LINK_DELAYED)
22199 #error "Expecting get_link() delayed done"
22200 #endif
ea04106b
AX
22201
22202int
22203main (void)
22204{
22205
ea04106b
AX
22206
22207 ;
22208 return 0;
22209}
22210
22211_ACEOF
22212
22213
22214
22215cat - <<_ACEOF >conftest.h
22216
22217_ACEOF
22218
22219
22220 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22221 echo "obj-m := conftest.o" >build/Makefile
22222 modpost_flag=''
22223 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22224 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22226 (eval $ac_try) 2>&5
22227 ac_status=$?
cae5b340
AX
22228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22231 (eval $ac_try) 2>&5
22232 ac_status=$?
cae5b340
AX
22233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); }; }; then
ea04106b 22235
e10b0808 22236
cae5b340
AX
22237cat >>confdefs.h <<\_ACEOF
22238#define HAVE_PUT_LINK_DELAYED 1
22239_ACEOF
e10b0808 22240
e10b0808 22241
cae5b340
AX
22242else
22243 $as_echo "$as_me: failed program was:" >&5
22244sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 22245
cae5b340
AX
22246 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes cookie" >&5
22247$as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
ea04106b
AX
22248
22249
22250cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22251/* confdefs.h. */
22252_ACEOF
22253cat confdefs.h >>conftest.$ac_ext
22254cat >>conftest.$ac_ext <<_ACEOF
22255/* end confdefs.h. */
ea04106b
AX
22256
22257
cae5b340
AX
22258 #include <linux/fs.h>
22259 void put_link(struct inode *ip, void *cookie)
22260 { return; }
22261 static struct inode_operations
22262 iops __attribute__ ((unused)) = {
22263 .put_link = put_link,
22264 };
ea04106b
AX
22265
22266int
22267main (void)
22268{
22269
ea04106b
AX
22270
22271 ;
22272 return 0;
22273}
22274
22275_ACEOF
22276
22277
22278
22279cat - <<_ACEOF >conftest.h
22280
22281_ACEOF
22282
22283
22284 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22285 echo "obj-m := conftest.o" >build/Makefile
22286 modpost_flag=''
22287 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22288 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22290 (eval $ac_try) 2>&5
22291 ac_status=$?
cae5b340
AX
22292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22295 (eval $ac_try) 2>&5
22296 ac_status=$?
cae5b340
AX
22297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); }; }; then
4d815aed 22299
cae5b340 22300 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
22301$as_echo "yes" >&6; }
22302
cae5b340
AX
22303cat >>confdefs.h <<\_ACEOF
22304#define HAVE_PUT_LINK_COOKIE 1
22305_ACEOF
4d815aed
AX
22306
22307
ea04106b
AX
22308else
22309 $as_echo "$as_me: failed program was:" >&5
22310sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 22311
cae5b340 22312 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 22313$as_echo "no" >&6; }
cae5b340
AX
22314 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes nameidata" >&5
22315$as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
e10b0808
AX
22316
22317
22318cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22319/* confdefs.h. */
22320_ACEOF
22321cat confdefs.h >>conftest.$ac_ext
22322cat >>conftest.$ac_ext <<_ACEOF
22323/* end confdefs.h. */
e10b0808
AX
22324
22325
cae5b340
AX
22326 #include <linux/fs.h>
22327 void put_link(struct dentry *de, struct
22328 nameidata *nd, void *ptr) { return; }
22329 static struct inode_operations
22330 iops __attribute__ ((unused)) = {
22331 .put_link = put_link,
22332 };
ea04106b
AX
22333
22334int
22335main (void)
22336{
22337
22338
22339 ;
22340 return 0;
22341}
22342
22343_ACEOF
22344
22345
22346
22347cat - <<_ACEOF >conftest.h
22348
22349_ACEOF
22350
22351
22352 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22353 echo "obj-m := conftest.o" >build/Makefile
22354 modpost_flag=''
22355 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22356 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22358 (eval $ac_try) 2>&5
22359 ac_status=$?
cae5b340
AX
22360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22363 (eval $ac_try) 2>&5
22364 ac_status=$?
cae5b340
AX
22365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); }; }; then
ea04106b 22367
cae5b340 22368 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
22369$as_echo "yes" >&6; }
22370
cae5b340
AX
22371cat >>confdefs.h <<\_ACEOF
22372#define HAVE_PUT_LINK_NAMEIDATA 1
22373_ACEOF
ea04106b
AX
22374
22375
22376else
22377 $as_echo "$as_me: failed program was:" >&5
22378sed 's/^/| /' conftest.$ac_ext >&5
22379
cae5b340
AX
22380 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
22381$as_echo "$as_me: error: no; please file a bug report" >&2;}
22382 { (exit 1); exit 1; }; }
22383
22384
22385
22386fi
22387
22388 rm -Rf build
22389
22390
22391
22392
22393
22394fi
22395
22396 rm -Rf build
22397
22398
ea04106b
AX
22399
22400
22401
22402fi
cae5b340 22403
ea04106b
AX
22404 rm -Rf build
22405
22406
22407
4d815aed 22408
cae5b340
AX
22409 { $as_echo "$as_me:$LINENO: checking whether i_op->tmpfile() exists" >&5
22410$as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
ea04106b
AX
22411
22412
22413cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22414/* confdefs.h. */
22415_ACEOF
22416cat confdefs.h >>conftest.$ac_ext
22417cat >>conftest.$ac_ext <<_ACEOF
22418/* end confdefs.h. */
ea04106b
AX
22419
22420
68d83c55 22421 #include <linux/fs.h>
cae5b340
AX
22422 int tmpfile(struct inode *inode, struct dentry *dentry,
22423 umode_t mode) { return 0; }
22424 static struct inode_operations
22425 iops __attribute__ ((unused)) = {
22426 .tmpfile = tmpfile,
22427 };
ea04106b
AX
22428
22429int
22430main (void)
22431{
22432
ea04106b
AX
22433
22434 ;
22435 return 0;
22436}
22437
22438_ACEOF
22439
22440
22441
22442cat - <<_ACEOF >conftest.h
22443
22444_ACEOF
22445
22446
22447 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22448 echo "obj-m := conftest.o" >build/Makefile
22449 modpost_flag=''
22450 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22451 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22453 (eval $ac_try) 2>&5
22454 ac_status=$?
cae5b340
AX
22455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22458 (eval $ac_try) 2>&5
22459 ac_status=$?
cae5b340
AX
22460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); }; }; then
ea04106b 22462
cae5b340
AX
22463 { $as_echo "$as_me:$LINENO: result: yes" >&5
22464$as_echo "yes" >&6; }
ea04106b 22465
cae5b340
AX
22466cat >>confdefs.h <<\_ACEOF
22467#define HAVE_TMPFILE 1
22468_ACEOF
ea04106b 22469
4d815aed 22470
cae5b340
AX
22471else
22472 $as_echo "$as_me: failed program was:" >&5
22473sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 22474
cae5b340 22475 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
22476$as_echo "no" >&6; }
22477
ea04106b
AX
22478
22479
cae5b340 22480fi
ea04106b 22481
cae5b340 22482 rm -Rf build
4d815aed 22483
4d815aed 22484
4d815aed 22485
ea04106b 22486
cae5b340
AX
22487 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
22488$as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
ea04106b
AX
22489
22490
22491cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22492/* confdefs.h. */
22493_ACEOF
22494cat confdefs.h >>conftest.$ac_ext
22495cat >>conftest.$ac_ext <<_ACEOF
22496/* end confdefs.h. */
ea04106b
AX
22497
22498
cae5b340
AX
22499 #include <linux/fs.h>
22500 void truncate_range(struct inode *inode, loff_t start,
22501 loff_t end) { return; }
22502 static struct inode_operations iops __attribute__ ((unused)) = {
22503 .truncate_range = truncate_range,
22504 };
ea04106b
AX
22505
22506int
22507main (void)
22508{
22509
ea04106b
AX
22510
22511 ;
22512 return 0;
22513}
22514
22515_ACEOF
22516
22517
22518
22519cat - <<_ACEOF >conftest.h
22520
22521_ACEOF
22522
22523
22524 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22525 echo "obj-m := conftest.o" >build/Makefile
22526 modpost_flag=''
22527 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22528 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22530 (eval $ac_try) 2>&5
22531 ac_status=$?
cae5b340
AX
22532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22535 (eval $ac_try) 2>&5
22536 ac_status=$?
cae5b340
AX
22537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); }; }; then
22539
22540 { $as_echo "$as_me:$LINENO: result: yes" >&5
22541$as_echo "yes" >&6; }
22542
22543cat >>confdefs.h <<\_ACEOF
22544#define HAVE_INODE_TRUNCATE_RANGE 1
22545_ACEOF
22546
22547
ea04106b
AX
22548else
22549 $as_echo "$as_me: failed program was:" >&5
22550sed 's/^/| /' conftest.$ac_ext >&5
cae5b340
AX
22551
22552 { $as_echo "$as_me:$LINENO: result: no" >&5
22553$as_echo "no" >&6; }
22554
ea04106b
AX
22555
22556
22557fi
cae5b340 22558
ea04106b
AX
22559 rm -Rf build
22560
22561
ea04106b 22562
ea04106b 22563
cae5b340
AX
22564 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
22565$as_echo_n "checking whether dops->d_automount() exists... " >&6; }
ea04106b 22566
ea04106b 22567
cae5b340
AX
22568cat confdefs.h - <<_ACEOF >conftest.c
22569/* confdefs.h. */
22570_ACEOF
22571cat confdefs.h >>conftest.$ac_ext
22572cat >>conftest.$ac_ext <<_ACEOF
22573/* end confdefs.h. */
ea04106b 22574
ea04106b 22575
cae5b340
AX
22576 #include <linux/dcache.h>
22577 struct vfsmount *d_automount(struct path *p) { return NULL; }
22578 struct dentry_operations dops __attribute__ ((unused)) = {
22579 .d_automount = d_automount,
22580 };
22581
22582int
22583main (void)
22584{
22585
22586
22587 ;
22588 return 0;
22589}
22590
22591_ACEOF
22592
22593
22594
22595cat - <<_ACEOF >conftest.h
22596
22597_ACEOF
22598
22599
22600 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22601 echo "obj-m := conftest.o" >build/Makefile
22602 modpost_flag=''
22603 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22604 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22606 (eval $ac_try) 2>&5
22607 ac_status=$?
22608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22611 (eval $ac_try) 2>&5
22612 ac_status=$?
22613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); }; }; then
ea04106b 22615
cae5b340 22616 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 22617$as_echo "yes" >&6; }
ea04106b 22618
cae5b340
AX
22619cat >>confdefs.h <<\_ACEOF
22620#define HAVE_AUTOMOUNT 1
22621_ACEOF
ea04106b 22622
ea04106b 22623
cae5b340
AX
22624else
22625 $as_echo "$as_me: failed program was:" >&5
22626sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 22627
cae5b340
AX
22628 { $as_echo "$as_me:$LINENO: result: no" >&5
22629$as_echo "no" >&6; }
22630
22631
22632
22633fi
22634
22635 rm -Rf build
e10b0808 22636
4d815aed 22637
cae5b340
AX
22638
22639
22640 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
22641$as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
4d815aed
AX
22642
22643
22644cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22645/* confdefs.h. */
22646_ACEOF
22647cat confdefs.h >>conftest.$ac_ext
22648cat >>conftest.$ac_ext <<_ACEOF
22649/* end confdefs.h. */
4d815aed
AX
22650
22651
cae5b340
AX
22652 #include <linux/exportfs.h>
22653 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
22654 struct inode *parent) { return 0; }
22655 static struct export_operations eops __attribute__ ((unused))={
22656 .encode_fh = encode_fh,
22657 };
ea04106b
AX
22658
22659int
22660main (void)
22661{
22662
ea04106b
AX
22663
22664 ;
22665 return 0;
22666}
22667
22668_ACEOF
22669
22670
22671
22672cat - <<_ACEOF >conftest.h
22673
22674_ACEOF
22675
22676
22677 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22678 echo "obj-m := conftest.o" >build/Makefile
22679 modpost_flag=''
22680 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22681 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22683 (eval $ac_try) 2>&5
22684 ac_status=$?
cae5b340
AX
22685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22688 (eval $ac_try) 2>&5
22689 ac_status=$?
cae5b340
AX
22690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); }; }; then
ea04106b 22692
cae5b340 22693 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
22694$as_echo "yes" >&6; }
22695
cae5b340
AX
22696cat >>confdefs.h <<\_ACEOF
22697#define HAVE_ENCODE_FH_WITH_INODE 1
22698_ACEOF
ea04106b
AX
22699
22700
22701else
22702 $as_echo "$as_me: failed program was:" >&5
22703sed 's/^/| /' conftest.$ac_ext >&5
22704
cae5b340 22705 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
22706$as_echo "no" >&6; }
22707
ea04106b
AX
22708
22709
4d815aed 22710fi
cae5b340 22711
4d815aed 22712 rm -Rf build
ea04106b
AX
22713
22714
e10b0808 22715
4d815aed 22716
cae5b340
AX
22717 { $as_echo "$as_me:$LINENO: checking whether eops->commit_metadata() exists" >&5
22718$as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
4d815aed
AX
22719
22720
22721cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22722/* confdefs.h. */
22723_ACEOF
22724cat confdefs.h >>conftest.$ac_ext
22725cat >>conftest.$ac_ext <<_ACEOF
22726/* end confdefs.h. */
4d815aed
AX
22727
22728
cae5b340
AX
22729 #include <linux/exportfs.h>
22730 int commit_metadata(struct inode *inode) { return 0; }
22731 static struct export_operations eops __attribute__ ((unused))={
22732 .commit_metadata = commit_metadata,
22733 };
ea04106b
AX
22734
22735int
22736main (void)
22737{
22738
ea04106b
AX
22739
22740 ;
22741 return 0;
22742}
22743
22744_ACEOF
22745
22746
22747
22748cat - <<_ACEOF >conftest.h
22749
22750_ACEOF
22751
22752
22753 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22754 echo "obj-m := conftest.o" >build/Makefile
22755 modpost_flag=''
22756 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22757 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22759 (eval $ac_try) 2>&5
22760 ac_status=$?
cae5b340
AX
22761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22764 (eval $ac_try) 2>&5
22765 ac_status=$?
cae5b340
AX
22766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767 (exit $ac_status); }; }; then
ea04106b 22768
cae5b340 22769 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 22770$as_echo "yes" >&6; }
ea04106b 22771
cae5b340
AX
22772cat >>confdefs.h <<\_ACEOF
22773#define HAVE_COMMIT_METADATA 1
22774_ACEOF
ea04106b 22775
ea04106b 22776
e10b0808
AX
22777else
22778 $as_echo "$as_me: failed program was:" >&5
22779sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 22780
cae5b340 22781 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
22782$as_echo "no" >&6; }
22783
ea04106b 22784
ea04106b 22785
e10b0808 22786fi
cae5b340 22787
e10b0808 22788 rm -Rf build
ea04106b 22789
ea04106b
AX
22790
22791
cae5b340
AX
22792 { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
22793$as_echo_n "checking whether clear_inode() is available... " >&6; }
ea04106b 22794
ea04106b
AX
22795
22796
22797cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22798/* confdefs.h. */
22799_ACEOF
22800cat confdefs.h >>conftest.$ac_ext
22801cat >>conftest.$ac_ext <<_ACEOF
22802/* end confdefs.h. */
ea04106b
AX
22803
22804
4d815aed 22805 #include <linux/fs.h>
ea04106b
AX
22806
22807int
22808main (void)
22809{
22810
cae5b340 22811 clear_inode(NULL);
ea04106b
AX
22812
22813 ;
22814 return 0;
22815}
22816
22817_ACEOF
22818
22819
22820
22821cat - <<_ACEOF >conftest.h
22822
22823_ACEOF
22824
22825
22826 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22827 echo "obj-m := conftest.o" >build/Makefile
22828 modpost_flag=''
22829 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22830 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22832 (eval $ac_try) 2>&5
22833 ac_status=$?
cae5b340
AX
22834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22837 (eval $ac_try) 2>&5
22838 ac_status=$?
cae5b340
AX
22839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); }; }; then
4d815aed
AX
22841 rc=0
22842else
22843 $as_echo "$as_me: failed program was:" >&5
22844sed 's/^/| /' conftest.$ac_ext >&5
22845 rc=1
ea04106b 22846
ea04106b 22847
4d815aed 22848fi
cae5b340 22849
4d815aed 22850 rm -Rf build
ea04106b
AX
22851
22852
4d815aed
AX
22853 if test $rc -ne 0; then :
22854
cae5b340 22855 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed
AX
22856$as_echo "no" >&6; }
22857
22858 else
22859 if test "x$enable_linux_builtin" != xyes; then
22860
cae5b340 22861 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
4d815aed
AX
22862 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22863 rc=$?
22864 if test $rc -ne 0; then
22865 export=0
cae5b340
AX
22866 for file in fs/inode.c; do
22867 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
4d815aed
AX
22868 "$LINUX/$file" 2>/dev/null
22869 rc=$?
22870 if test $rc -eq 0; then
22871 export=1
22872 break;
22873 fi
22874 done
22875 if test $export -eq 0; then :
22876 rc=1
22877 else :
22878 rc=0
22879 fi
22880 else :
22881 rc=0
22882 fi
22883
22884 fi
22885 if test $rc -ne 0; then :
ea04106b 22886
cae5b340 22887 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
22888$as_echo "no" >&6; }
22889
4d815aed 22890 else :
ea04106b 22891
cae5b340 22892 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 22893$as_echo "yes" >&6; }
ea04106b 22894
cae5b340
AX
22895cat >>confdefs.h <<\_ACEOF
22896#define HAVE_CLEAR_INODE 1
22897_ACEOF
ea04106b
AX
22898
22899
4d815aed
AX
22900 fi
22901 fi
22902
ea04106b 22903
cae5b340
AX
22904 { $as_echo "$as_me:$LINENO: checking whether setattr_prepare() is available" >&5
22905$as_echo_n "checking whether setattr_prepare() is available... " >&6; }
ea04106b 22906
ea04106b
AX
22907
22908
22909cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22910/* confdefs.h. */
22911_ACEOF
22912cat confdefs.h >>conftest.$ac_ext
22913cat >>conftest.$ac_ext <<_ACEOF
22914/* end confdefs.h. */
ea04106b
AX
22915
22916
4d815aed 22917 #include <linux/fs.h>
68d83c55 22918
ea04106b
AX
22919int
22920main (void)
22921{
22922
cae5b340
AX
22923 struct dentry *dentry = NULL;
22924 struct iattr *attr = NULL;
22925 int error;
22926
22927 error = setattr_prepare(dentry, attr);
ea04106b
AX
22928
22929 ;
22930 return 0;
22931}
22932
22933_ACEOF
22934
22935
22936
22937cat - <<_ACEOF >conftest.h
22938
22939_ACEOF
22940
22941
22942 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22943 echo "obj-m := conftest.o" >build/Makefile
22944 modpost_flag=''
22945 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22946 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22948 (eval $ac_try) 2>&5
22949 ac_status=$?
cae5b340
AX
22950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22953 (eval $ac_try) 2>&5
22954 ac_status=$?
cae5b340
AX
22955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); }; }; then
22957 rc=0
22958else
22959 $as_echo "$as_me: failed program was:" >&5
22960sed 's/^/| /' conftest.$ac_ext >&5
22961 rc=1
ea04106b 22962
87dac73d 22963
cae5b340
AX
22964fi
22965
22966 rm -Rf build
68d83c55 22967
87dac73d 22968
cae5b340 22969 if test $rc -ne 0; then :
87dac73d 22970
cae5b340
AX
22971 { $as_echo "$as_me:$LINENO: result: no" >&5
22972$as_echo "no" >&6; }
22973
22974 else
22975 if test "x$enable_linux_builtin" != xyes; then
22976
22977 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
22978 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22979 rc=$?
22980 if test $rc -ne 0; then
22981 export=0
22982 for file in fs/attr.c; do
22983 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
22984 "$LINUX/$file" 2>/dev/null
22985 rc=$?
22986 if test $rc -eq 0; then
22987 export=1
22988 break;
22989 fi
22990 done
22991 if test $export -eq 0; then :
22992 rc=1
22993 else :
22994 rc=0
22995 fi
22996 else :
22997 rc=0
22998 fi
22999
23000 fi
23001 if test $rc -ne 0; then :
87dac73d 23002
cae5b340 23003 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
23004$as_echo "no" >&6; }
23005
cae5b340 23006 else :
87dac73d 23007
cae5b340
AX
23008 { $as_echo "$as_me:$LINENO: result: yes" >&5
23009$as_echo "yes" >&6; }
87dac73d 23010
cae5b340
AX
23011cat >>confdefs.h <<\_ACEOF
23012#define HAVE_SETATTR_PREPARE 1
23013_ACEOF
87dac73d
AX
23014
23015
cae5b340
AX
23016 fi
23017 fi
87dac73d 23018
87dac73d 23019
cae5b340
AX
23020 { $as_echo "$as_me:$LINENO: checking whether insert_inode_locked() is available" >&5
23021$as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
23022
87dac73d
AX
23023
23024
23025cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
23026/* confdefs.h. */
23027_ACEOF
23028cat confdefs.h >>conftest.$ac_ext
23029cat >>conftest.$ac_ext <<_ACEOF
23030/* end confdefs.h. */
87dac73d
AX
23031
23032
68d83c55 23033 #include <linux/fs.h>
87dac73d
AX
23034
23035int
23036main (void)
23037{
23038
cae5b340 23039 insert_inode_locked(NULL);
87dac73d
AX
23040
23041 ;
23042 return 0;
23043}
23044
23045_ACEOF
23046
23047
23048
23049cat - <<_ACEOF >conftest.h
23050
23051_ACEOF
23052
23053
23054 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23055 echo "obj-m := conftest.o" >build/Makefile
23056 modpost_flag=''
23057 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23058 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 23059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
23060 (eval $ac_try) 2>&5
23061 ac_status=$?
cae5b340
AX
23062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
23065 (eval $ac_try) 2>&5
23066 ac_status=$?
cae5b340
AX
23067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); }; }; then
23069 rc=0
23070else
23071 $as_echo "$as_me: failed program was:" >&5
23072sed 's/^/| /' conftest.$ac_ext >&5
23073 rc=1
87dac73d 23074
ea04106b 23075
cae5b340
AX
23076fi
23077
23078 rm -Rf build
ea04106b
AX
23079
23080
cae5b340 23081 if test $rc -ne 0; then :
ea04106b 23082
cae5b340 23083 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 23084$as_echo "no" >&6; }
4d815aed 23085
cae5b340
AX
23086 else
23087 if test "x$enable_linux_builtin" != xyes; then
23088
23089 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
23090 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23091 rc=$?
23092 if test $rc -ne 0; then
23093 export=0
23094 for file in fs/inode.c; do
23095 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
23096 "$LINUX/$file" 2>/dev/null
23097 rc=$?
23098 if test $rc -eq 0; then
23099 export=1
23100 break;
23101 fi
23102 done
23103 if test $export -eq 0; then :
23104 rc=1
23105 else :
23106 rc=0
23107 fi
23108 else :
23109 rc=0
23110 fi
23111
23112 fi
23113 if test $rc -ne 0; then :
4d815aed 23114
cae5b340
AX
23115 { $as_echo "$as_me:$LINENO: result: no" >&5
23116$as_echo "no" >&6; }
4d815aed 23117
cae5b340 23118 else :
4d815aed 23119
cae5b340
AX
23120 { $as_echo "$as_me:$LINENO: result: yes" >&5
23121$as_echo "yes" >&6; }
4d815aed 23122
cae5b340
AX
23123cat >>confdefs.h <<\_ACEOF
23124#define HAVE_INSERT_INODE_LOCKED 1
23125_ACEOF
4d815aed
AX
23126
23127
cae5b340
AX
23128 fi
23129 fi
23130
23131
23132 { $as_echo "$as_me:$LINENO: checking whether d_make_root() is available" >&5
23133$as_echo_n "checking whether d_make_root() is available... " >&6; }
23134
ea04106b
AX
23135
23136
23137cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
23138/* confdefs.h. */
23139_ACEOF
23140cat confdefs.h >>conftest.$ac_ext
23141cat >>conftest.$ac_ext <<_ACEOF
23142/* end confdefs.h. */
ea04106b
AX
23143
23144
cae5b340 23145 #include <linux/dcache.h>
e10b0808 23146
ea04106b
AX
23147int
23148main (void)
23149{
23150
cae5b340 23151 d_make_root(NULL);
ea04106b
AX
23152
23153 ;
23154 return 0;
23155}
23156
23157_ACEOF
23158
23159
23160
23161cat - <<_ACEOF >conftest.h
23162
23163_ACEOF
23164
23165
23166 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23167 echo "obj-m := conftest.o" >build/Makefile
23168 modpost_flag=''
23169 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23170 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 23171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
23172 (eval $ac_try) 2>&5
23173 ac_status=$?
cae5b340
AX
23174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
23177 (eval $ac_try) 2>&5
23178 ac_status=$?
cae5b340
AX
23179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); }; }; then
23181 rc=0
23182else
23183 $as_echo "$as_me: failed program was:" >&5
23184sed 's/^/| /' conftest.$ac_ext >&5
23185 rc=1
ea04106b 23186
ea04106b 23187
cae5b340 23188fi
ea04106b 23189
cae5b340 23190 rm -Rf build
ea04106b 23191
ea04106b 23192
cae5b340
AX
23193 if test $rc -ne 0; then :
23194
23195 { $as_echo "$as_me:$LINENO: result: no" >&5
23196$as_echo "no" >&6; }
23197
23198 else
23199 if test "x$enable_linux_builtin" != xyes; then
23200
23201 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
23202 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23203 rc=$?
23204 if test $rc -ne 0; then
23205 export=0
23206 for file in fs/dcache.c; do
23207 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
23208 "$LINUX/$file" 2>/dev/null
23209 rc=$?
23210 if test $rc -eq 0; then
23211 export=1
23212 break;
23213 fi
23214 done
23215 if test $export -eq 0; then :
23216 rc=1
23217 else :
23218 rc=0
23219 fi
23220 else :
23221 rc=0
23222 fi
23223
23224 fi
23225 if test $rc -ne 0; then :
23226
23227 { $as_echo "$as_me:$LINENO: result: no" >&5
94a40997 23228$as_echo "no" >&6; }
94a40997 23229
cae5b340
AX
23230 else :
23231
23232 { $as_echo "$as_me:$LINENO: result: yes" >&5
23233$as_echo "yes" >&6; }
94a40997 23234
cae5b340
AX
23235cat >>confdefs.h <<\_ACEOF
23236#define HAVE_D_MAKE_ROOT 1
23237_ACEOF
94a40997
AX
23238
23239
cae5b340
AX
23240 fi
23241 fi
94a40997 23242
4d815aed 23243
cae5b340
AX
23244 { $as_echo "$as_me:$LINENO: checking whether d_obtain_alias() is available" >&5
23245$as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
23246
4d815aed
AX
23247
23248
23249cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
23250/* confdefs.h. */
23251_ACEOF
23252cat confdefs.h >>conftest.$ac_ext
23253cat >>conftest.$ac_ext <<_ACEOF
23254/* end confdefs.h. */
4d815aed
AX
23255
23256
cae5b340 23257 #include <linux/dcache.h>
94a40997
AX
23258
23259int
23260main (void)
23261{
23262
cae5b340 23263 d_obtain_alias(NULL);
94a40997
AX
23264
23265 ;
23266 return 0;
23267}
23268
23269_ACEOF
23270
23271
23272
23273cat - <<_ACEOF >conftest.h
23274
23275_ACEOF
23276
23277
23278 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23279 echo "obj-m := conftest.o" >build/Makefile
23280 modpost_flag=''
23281 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23282 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 23283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
23284 (eval $ac_try) 2>&5
23285 ac_status=$?
cae5b340
AX
23286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
23289 (eval $ac_try) 2>&5
23290 ac_status=$?
cae5b340
AX
23291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); }; }; then
23293 rc=0
23294else
23295 $as_echo "$as_me: failed program was:" >&5
23296sed 's/^/| /' conftest.$ac_ext >&5
23297 rc=1
94a40997 23298
94a40997 23299
cae5b340
AX
23300fi
23301
23302 rm -Rf build
94a40997
AX
23303
23304
cae5b340
AX
23305 if test $rc -ne 0; then :
23306
23307 { $as_echo "$as_me:$LINENO: result: no" >&5
23308$as_echo "no" >&6; }
23309
23310 else
23311 if test "x$enable_linux_builtin" != xyes; then
23312
23313 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
23314 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23315 rc=$?
23316 if test $rc -ne 0; then
23317 export=0
23318 for file in fs/dcache.c; do
23319 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
23320 "$LINUX/$file" 2>/dev/null
23321 rc=$?
23322 if test $rc -eq 0; then
23323 export=1
23324 break;
23325 fi
23326 done
23327 if test $export -eq 0; then :
23328 rc=1
23329 else :
23330 rc=0
23331 fi
23332 else :
23333 rc=0
23334 fi
23335
23336 fi
23337 if test $rc -ne 0; then :
94a40997 23338
cae5b340 23339 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 23340$as_echo "no" >&6; }
ea04106b 23341
cae5b340 23342 else :
ea04106b 23343
cae5b340
AX
23344 { $as_echo "$as_me:$LINENO: result: yes" >&5
23345$as_echo "yes" >&6; }
ea04106b 23346
cae5b340
AX
23347cat >>confdefs.h <<\_ACEOF
23348#define HAVE_D_OBTAIN_ALIAS 1
23349_ACEOF
ea04106b
AX
23350
23351
cae5b340
AX
23352 fi
23353 fi
ea04106b 23354
ea04106b 23355
cae5b340
AX
23356 { $as_echo "$as_me:$LINENO: checking whether d_prune_aliases() is available" >&5
23357$as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
68d83c55 23358
ea04106b
AX
23359
23360
23361cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
23362/* confdefs.h. */
23363_ACEOF
23364cat confdefs.h >>conftest.$ac_ext
23365cat >>conftest.$ac_ext <<_ACEOF
23366/* end confdefs.h. */
ea04106b
AX
23367
23368
cae5b340 23369 #include <linux/dcache.h>
ea04106b
AX
23370
23371int
23372main (void)
23373{
23374
cae5b340
AX
23375 struct inode *ip = NULL;
23376 d_prune_aliases(ip);
ea04106b
AX
23377
23378 ;
23379 return 0;
23380}
23381
23382_ACEOF
23383
23384
23385
23386cat - <<_ACEOF >conftest.h
23387
23388_ACEOF
23389
23390
23391 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23392 echo "obj-m := conftest.o" >build/Makefile
23393 modpost_flag=''
23394 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23395 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 23396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
23397 (eval $ac_try) 2>&5
23398 ac_status=$?
cae5b340
AX
23399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
23402 (eval $ac_try) 2>&5
23403 ac_status=$?
cae5b340
AX
23404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); }; }; then
68d83c55 23406 rc=0
4d815aed
AX
23407else
23408 $as_echo "$as_me: failed program was:" >&5
23409sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 23410 rc=1
ea04106b 23411
ea04106b 23412
4d815aed 23413fi
cae5b340 23414
4d815aed 23415 rm -Rf build
ea04106b 23416
ea04106b 23417
68d83c55 23418 if test $rc -ne 0; then :
ea04106b 23419
cae5b340 23420 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 23421$as_echo "no" >&6; }
ea04106b 23422
cae5b340
AX
23423 else
23424 if test "x$enable_linux_builtin" != xyes; then
ea04106b 23425
cae5b340 23426 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
68d83c55
AX
23427 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23428 rc=$?
23429 if test $rc -ne 0; then
23430 export=0
cae5b340
AX
23431 for file in fs/dcache.c; do
23432 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
68d83c55
AX
23433 "$LINUX/$file" 2>/dev/null
23434 rc=$?
23435 if test $rc -eq 0; then
23436 export=1
23437 break;
23438 fi
23439 done
23440 if test $export -eq 0; then :
23441 rc=1
23442 else :
23443 rc=0
23444 fi
23445 else :
23446 rc=0
23447 fi
23448
23449 fi
23450 if test $rc -ne 0; then :
23451
cae5b340 23452 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 23453$as_echo "no" >&6; }
ea04106b 23454
68d83c55 23455 else :
ea04106b 23456
cae5b340 23457 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 23458$as_echo "yes" >&6; }
ea04106b 23459
cae5b340
AX
23460cat >>confdefs.h <<\_ACEOF
23461#define HAVE_D_PRUNE_ALIASES 1
23462_ACEOF
ea04106b 23463
68d83c55 23464
68d83c55 23465 fi
68d83c55
AX
23466 fi
23467
68d83c55 23468
cae5b340
AX
23469 { $as_echo "$as_me:$LINENO: checking whether d_set_d_op() is available" >&5
23470$as_echo_n "checking whether d_set_d_op() is available... " >&6; }
68d83c55
AX
23471
23472
23473
23474cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
23475/* confdefs.h. */
23476_ACEOF
23477cat confdefs.h >>conftest.$ac_ext
23478cat >>conftest.$ac_ext <<_ACEOF
23479/* end confdefs.h. */
68d83c55
AX
23480
23481
cae5b340 23482 #include <linux/dcache.h>
68d83c55
AX
23483
23484int
23485main (void)
23486{
23487
cae5b340 23488 d_set_d_op(NULL, NULL);
ea04106b 23489
4d815aed
AX
23490 ;
23491 return 0;
23492}
ea04106b 23493
4d815aed 23494_ACEOF
ea04106b 23495
ea04106b 23496
ea04106b 23497
4d815aed 23498cat - <<_ACEOF >conftest.h
ea04106b 23499
4d815aed 23500_ACEOF
ea04106b
AX
23501
23502
4d815aed
AX
23503 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23504 echo "obj-m := conftest.o" >build/Makefile
23505 modpost_flag=''
23506 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23507 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 23508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
23509 (eval $ac_try) 2>&5
23510 ac_status=$?
cae5b340
AX
23511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
23514 (eval $ac_try) 2>&5
23515 ac_status=$?
cae5b340
AX
23516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517 (exit $ac_status); }; }; then
68d83c55
AX
23518 rc=0
23519else
23520 $as_echo "$as_me: failed program was:" >&5
23521sed 's/^/| /' conftest.$ac_ext >&5
23522 rc=1
23523
23524
23525fi
cae5b340 23526
68d83c55
AX
23527 rm -Rf build
23528
23529
23530 if test $rc -ne 0; then :
23531
cae5b340 23532 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
23533$as_echo "no" >&6; }
23534
23535 else
23536 if test "x$enable_linux_builtin" != xyes; then
23537
cae5b340 23538 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
68d83c55
AX
23539 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23540 rc=$?
23541 if test $rc -ne 0; then
23542 export=0
cae5b340
AX
23543 for file in fs/dcache.c; do
23544 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
68d83c55
AX
23545 "$LINUX/$file" 2>/dev/null
23546 rc=$?
23547 if test $rc -eq 0; then
23548 export=1
23549 break;
23550 fi
23551 done
23552 if test $export -eq 0; then :
23553 rc=1
23554 else :
23555 rc=0
23556 fi
23557 else :
23558 rc=0
23559 fi
23560
23561 fi
23562 if test $rc -ne 0; then :
23563
cae5b340 23564 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
23565$as_echo "no" >&6; }
23566
23567 else :
4d815aed 23568
cae5b340 23569 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
23570$as_echo "yes" >&6; }
23571
cae5b340
AX
23572cat >>confdefs.h <<\_ACEOF
23573#define HAVE_D_SET_D_OP 1
23574_ACEOF
68d83c55
AX
23575
23576
23577 fi
23578 fi
23579
23580
22929307 23581
cae5b340
AX
23582 { $as_echo "$as_me:$LINENO: checking whether dops->d_revalidate() takes struct nameidata" >&5
23583$as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
22929307 23584
68d83c55 23585
cae5b340
AX
23586cat confdefs.h - <<_ACEOF >conftest.c
23587/* confdefs.h. */
23588_ACEOF
23589cat confdefs.h >>conftest.$ac_ext
23590cat >>conftest.$ac_ext <<_ACEOF
23591/* end confdefs.h. */
68d83c55
AX
23592
23593
cae5b340 23594 #include <linux/dcache.h>
68d83c55 23595
cae5b340
AX
23596 int revalidate (struct dentry *dentry,
23597 struct nameidata *nidata) { return 0; }
68d83c55 23598
cae5b340
AX
23599 static const struct dentry_operations
23600 dops __attribute__ ((unused)) = {
23601 .d_revalidate = revalidate,
23602 };
68d83c55
AX
23603
23604int
23605main (void)
23606{
23607
68d83c55
AX
23608
23609 ;
23610 return 0;
23611}
23612
23613_ACEOF
23614
23615
23616
23617cat - <<_ACEOF >conftest.h
23618
23619_ACEOF
23620
23621
23622 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23623 echo "obj-m := conftest.o" >build/Makefile
23624 modpost_flag=''
23625 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23626 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 23627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
23628 (eval $ac_try) 2>&5
23629 ac_status=$?
cae5b340
AX
23630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
23633 (eval $ac_try) 2>&5
23634 ac_status=$?
cae5b340
AX
23635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); }; }; then
23637
23638 { $as_echo "$as_me:$LINENO: result: yes" >&5
23639$as_echo "yes" >&6; }
23640
23641cat >>confdefs.h <<\_ACEOF
23642#define HAVE_D_REVALIDATE_NAMEIDATA 1
23643_ACEOF
23644
23645
e10b0808 23646else
4d815aed
AX
23647 $as_echo "$as_me: failed program was:" >&5
23648sed 's/^/| /' conftest.$ac_ext >&5
cae5b340
AX
23649
23650 { $as_echo "$as_me:$LINENO: result: no" >&5
23651$as_echo "no" >&6; }
23652
ea04106b
AX
23653
23654
68d83c55 23655fi
cae5b340 23656
68d83c55 23657 rm -Rf build
ea04106b 23658
ea04106b 23659
68d83c55
AX
23660
23661
cae5b340
AX
23662 { $as_echo "$as_me:$LINENO: checking whether dentry uses const struct dentry_operations" >&5
23663$as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
68d83c55
AX
23664
23665
23666cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
23667/* confdefs.h. */
23668_ACEOF
23669cat confdefs.h >>conftest.$ac_ext
23670cat >>conftest.$ac_ext <<_ACEOF
23671/* end confdefs.h. */
68d83c55
AX
23672
23673
cae5b340
AX
23674 #include <linux/dcache.h>
23675
23676 const struct dentry_operations test_d_op = {
23677 .d_revalidate = NULL,
23678 };
ea04106b 23679
4d815aed
AX
23680int
23681main (void)
23682{
ea04106b 23683
cae5b340
AX
23684 struct dentry d __attribute__ ((unused));
23685
23686 d.d_op = &test_d_op;
ea04106b 23687
4d815aed
AX
23688 ;
23689 return 0;
23690}
ea04106b 23691
4d815aed 23692_ACEOF
ea04106b
AX
23693
23694
ea04106b 23695
4d815aed 23696cat - <<_ACEOF >conftest.h
ea04106b 23697
4d815aed 23698_ACEOF
ea04106b 23699
ea04106b 23700
4d815aed
AX
23701 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23702 echo "obj-m := conftest.o" >build/Makefile
23703 modpost_flag=''
23704 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23705 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 23706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
23707 (eval $ac_try) 2>&5
23708 ac_status=$?
cae5b340
AX
23709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
23712 (eval $ac_try) 2>&5
23713 ac_status=$?
cae5b340
AX
23714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); }; }; then
68d83c55 23716
cae5b340
AX
23717 { $as_echo "$as_me:$LINENO: result: yes" >&5
23718$as_echo "yes" >&6; }
68d83c55 23719
cae5b340
AX
23720cat >>confdefs.h <<\_ACEOF
23721#define HAVE_CONST_DENTRY_OPERATIONS 1
23722_ACEOF
68d83c55 23723
68d83c55 23724
cae5b340
AX
23725else
23726 $as_echo "$as_me: failed program was:" >&5
23727sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 23728
cae5b340 23729 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 23730$as_echo "no" >&6; }
68d83c55 23731
ea04106b
AX
23732
23733
cae5b340 23734fi
ea04106b 23735
cae5b340 23736 rm -Rf build
ea04106b
AX
23737
23738
ea04106b 23739
cae5b340
AX
23740 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
23741$as_echo_n "checking whether truncate_setsize() is available... " >&6; }
ea04106b 23742
e10b0808 23743
ea04106b 23744
4d815aed 23745cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
23746/* confdefs.h. */
23747_ACEOF
23748cat confdefs.h >>conftest.$ac_ext
23749cat >>conftest.$ac_ext <<_ACEOF
23750/* end confdefs.h. */
ea04106b 23751
ea04106b 23752
cae5b340 23753 #include <linux/mm.h>
ea04106b 23754
e10b0808 23755int
4d815aed 23756main (void)
e10b0808 23757{
4d815aed 23758
cae5b340 23759 truncate_setsize(NULL, 0);
22929307
AX
23760
23761 ;
23762 return 0;
23763}
23764
23765_ACEOF
23766
23767
23768
23769cat - <<_ACEOF >conftest.h
23770
23771_ACEOF
23772
23773
23774 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23775 echo "obj-m := conftest.o" >build/Makefile
23776 modpost_flag=''
23777 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23778 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 23779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
23780 (eval $ac_try) 2>&5
23781 ac_status=$?
cae5b340
AX
23782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
23785 (eval $ac_try) 2>&5
23786 ac_status=$?
cae5b340
AX
23787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); }; }; then
22929307
AX
23789 rc=0
23790else
23791 $as_echo "$as_me: failed program was:" >&5
23792sed 's/^/| /' conftest.$ac_ext >&5
23793 rc=1
23794
23795
23796fi
cae5b340 23797
22929307
AX
23798 rm -Rf build
23799
23800
23801 if test $rc -ne 0; then :
23802
cae5b340 23803 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
23804$as_echo "no" >&6; }
23805
23806 else
23807 if test "x$enable_linux_builtin" != xyes; then
23808
cae5b340 23809 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
22929307
AX
23810 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23811 rc=$?
23812 if test $rc -ne 0; then
23813 export=0
cae5b340
AX
23814 for file in mm/truncate.c; do
23815 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
22929307
AX
23816 "$LINUX/$file" 2>/dev/null
23817 rc=$?
23818 if test $rc -eq 0; then
23819 export=1
23820 break;
23821 fi
23822 done
23823 if test $export -eq 0; then :
23824 rc=1
23825 else :
23826 rc=0
23827 fi
23828 else :
23829 rc=0
23830 fi
23831
23832 fi
23833 if test $rc -ne 0; then :
23834
cae5b340 23835 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
23836$as_echo "no" >&6; }
23837
23838 else :
23839
cae5b340 23840 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
23841$as_echo "yes" >&6; }
23842
cae5b340
AX
23843cat >>confdefs.h <<\_ACEOF
23844#define HAVE_TRUNCATE_SETSIZE 1
23845_ACEOF
22929307
AX
23846
23847
23848 fi
23849 fi
23850
23851
23852
cae5b340
AX
23853 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
23854$as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
22929307
AX
23855
23856
23857cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
23858/* confdefs.h. */
23859_ACEOF
23860cat confdefs.h >>conftest.$ac_ext
23861cat >>conftest.$ac_ext <<_ACEOF
23862/* end confdefs.h. */
22929307
AX
23863
23864
cae5b340 23865 #include <linux/security.h>
22929307
AX
23866
23867int
23868main (void)
23869{
23870
cae5b340
AX
23871 struct inode *ip __attribute__ ((unused)) = NULL;
23872 struct inode *dip __attribute__ ((unused)) = NULL;
23873 const struct qstr *str __attribute__ ((unused)) = NULL;
23874 char *name __attribute__ ((unused)) = NULL;
23875 void *value __attribute__ ((unused)) = NULL;
23876 size_t len __attribute__ ((unused)) = 0;
23877
23878 security_inode_init_security(ip, dip, str, &name, &value, &len);
22929307
AX
23879
23880 ;
23881 return 0;
23882}
23883
23884_ACEOF
23885
23886
23887
23888cat - <<_ACEOF >conftest.h
23889
23890_ACEOF
23891
23892
23893 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23894 echo "obj-m := conftest.o" >build/Makefile
23895 modpost_flag=''
23896 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23897 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 23898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
23899 (eval $ac_try) 2>&5
23900 ac_status=$?
cae5b340
AX
23901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
23904 (eval $ac_try) 2>&5
23905 ac_status=$?
cae5b340
AX
23906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); }; }; then
22929307 23908
cae5b340 23909 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
23910$as_echo "yes" >&6; }
23911
cae5b340
AX
23912cat >>confdefs.h <<\_ACEOF
23913#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
23914_ACEOF
22929307
AX
23915
23916
23917else
23918 $as_echo "$as_me: failed program was:" >&5
23919sed 's/^/| /' conftest.$ac_ext >&5
23920
cae5b340 23921 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
23922$as_echo "no" >&6; }
23923
23924
23925
23926fi
cae5b340 23927
22929307
AX
23928 rm -Rf build
23929
23930
23931
23932
cae5b340
AX
23933 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
23934$as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
22929307
AX
23935
23936
23937cat confdefs.h - <<_ACEOF >conftest.c
cae5b340 23938/* confdefs.h. */
22929307 23939_ACEOF
cae5b340
AX
23940cat confdefs.h >>conftest.$ac_ext
23941cat >>conftest.$ac_ext <<_ACEOF
23942/* end confdefs.h. */
22929307
AX
23943
23944
cae5b340 23945 #include <linux/security.h>
22929307
AX
23946
23947int
23948main (void)
23949{
23950
cae5b340
AX
23951 struct inode *ip __attribute__ ((unused)) = NULL;
23952 struct inode *dip __attribute__ ((unused)) = NULL;
23953 const struct qstr *str __attribute__ ((unused)) = NULL;
23954 initxattrs func __attribute__ ((unused)) = NULL;
23955
23956 security_inode_init_security(ip, dip, str, func, NULL);
22929307
AX
23957
23958 ;
23959 return 0;
23960}
23961
23962_ACEOF
23963
23964
23965
23966cat - <<_ACEOF >conftest.h
23967
23968_ACEOF
23969
23970
23971 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23972 echo "obj-m := conftest.o" >build/Makefile
23973 modpost_flag=''
23974 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23975 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 23976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
23977 (eval $ac_try) 2>&5
23978 ac_status=$?
cae5b340
AX
23979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
23982 (eval $ac_try) 2>&5
23983 ac_status=$?
cae5b340
AX
23984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); }; }; then
22929307 23986
cae5b340 23987 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
23988$as_echo "yes" >&6; }
23989
cae5b340
AX
23990cat >>confdefs.h <<\_ACEOF
23991#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
23992_ACEOF
22929307
AX
23993
23994
23995else
23996 $as_echo "$as_me: failed program was:" >&5
23997sed 's/^/| /' conftest.$ac_ext >&5
23998
cae5b340 23999 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
24000$as_echo "no" >&6; }
24001
24002
24003
24004fi
cae5b340 24005
22929307
AX
24006 rm -Rf build
24007
24008
24009
cae5b340
AX
24010 { $as_echo "$as_me:$LINENO: checking whether mount_nodev() is available" >&5
24011$as_echo_n "checking whether mount_nodev() is available... " >&6; }
22929307
AX
24012
24013
24014
24015cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24016/* confdefs.h. */
24017_ACEOF
24018cat confdefs.h >>conftest.$ac_ext
24019cat >>conftest.$ac_ext <<_ACEOF
24020/* end confdefs.h. */
22929307
AX
24021
24022
24023 #include <linux/fs.h>
24024
24025int
24026main (void)
24027{
24028
cae5b340 24029 mount_nodev(NULL, 0, NULL, NULL);
4d815aed 24030
e10b0808
AX
24031 ;
24032 return 0;
24033}
ea04106b 24034
4d815aed 24035_ACEOF
ea04106b 24036
ea04106b
AX
24037
24038
4d815aed 24039cat - <<_ACEOF >conftest.h
ea04106b 24040
ea04106b
AX
24041_ACEOF
24042
24043
4d815aed
AX
24044 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24045 echo "obj-m := conftest.o" >build/Makefile
24046 modpost_flag=''
24047 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24048 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 24049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
24050 (eval $ac_try) 2>&5
24051 ac_status=$?
cae5b340
AX
24052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
24055 (eval $ac_try) 2>&5
24056 ac_status=$?
cae5b340
AX
24057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058 (exit $ac_status); }; }; then
4d815aed 24059 rc=0
e10b0808 24060else
4d815aed
AX
24061 $as_echo "$as_me: failed program was:" >&5
24062sed 's/^/| /' conftest.$ac_ext >&5
24063 rc=1
24064
24065
e10b0808 24066fi
cae5b340 24067
4d815aed 24068 rm -Rf build
ea04106b
AX
24069
24070
4d815aed
AX
24071 if test $rc -ne 0; then :
24072
cae5b340 24073 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed
AX
24074$as_echo "no" >&6; }
24075
24076 else
24077 if test "x$enable_linux_builtin" != xyes; then
24078
cae5b340 24079 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
4d815aed
AX
24080 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24081 rc=$?
24082 if test $rc -ne 0; then
24083 export=0
cae5b340
AX
24084 for file in fs/super.c; do
24085 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
4d815aed
AX
24086 "$LINUX/$file" 2>/dev/null
24087 rc=$?
24088 if test $rc -eq 0; then
24089 export=1
24090 break;
24091 fi
24092 done
24093 if test $export -eq 0; then :
24094 rc=1
24095 else :
24096 rc=0
24097 fi
24098 else :
24099 rc=0
24100 fi
24101
24102 fi
24103 if test $rc -ne 0; then :
24104
cae5b340 24105 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed
AX
24106$as_echo "no" >&6; }
24107
24108 else :
24109
cae5b340 24110 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
24111$as_echo "yes" >&6; }
24112
cae5b340
AX
24113cat >>confdefs.h <<\_ACEOF
24114#define HAVE_MOUNT_NODEV 1
24115_ACEOF
4d815aed
AX
24116
24117
24118 fi
24119 fi
24120
24121
24122
cae5b340
AX
24123 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
24124$as_echo_n "checking whether super_block has s_shrink... " >&6; }
4d815aed 24125
ea04106b 24126
68d83c55 24127cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24128/* confdefs.h. */
24129_ACEOF
24130cat confdefs.h >>conftest.$ac_ext
24131cat >>conftest.$ac_ext <<_ACEOF
24132/* end confdefs.h. */
4d815aed
AX
24133
24134
68d83c55 24135 #include <linux/fs.h>
cae5b340
AX
24136
24137 int shrink(struct shrinker *s, struct shrink_control *sc)
68d83c55 24138 { return 0; }
4d815aed 24139
cae5b340
AX
24140 static const struct super_block
24141 sb __attribute__ ((unused)) = {
24142 .s_shrink.shrink = shrink,
24143 .s_shrink.seeks = DEFAULT_SEEKS,
24144 .s_shrink.batch = 0,
68d83c55 24145 };
4d815aed 24146
68d83c55
AX
24147int
24148main (void)
24149{
4d815aed 24150
4d815aed 24151
68d83c55
AX
24152 ;
24153 return 0;
24154}
4d815aed 24155
68d83c55 24156_ACEOF
ea04106b 24157
ea04106b 24158
4d815aed 24159
68d83c55 24160cat - <<_ACEOF >conftest.h
4d815aed 24161
68d83c55 24162_ACEOF
4d815aed 24163
4d815aed 24164
68d83c55
AX
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
24169 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 24170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
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
68d83c55
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
ea04106b 24180
cae5b340 24181 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 24182$as_echo "yes" >&6; }
ea04106b 24183
cae5b340
AX
24184cat >>confdefs.h <<\_ACEOF
24185#define HAVE_SHRINK 1
24186_ACEOF
24187
ea04106b
AX
24188
24189
4d815aed 24190else
68d83c55
AX
24191 $as_echo "$as_me: failed program was:" >&5
24192sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 24193
cae5b340 24194 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 24195$as_echo "no" >&6; }
ea04106b
AX
24196
24197
24198
cae5b340 24199fi
ea04106b 24200
cae5b340 24201 rm -Rf build
ea04106b 24202
68d83c55 24203
ea04106b 24204
ea04106b 24205
cae5b340
AX
24206 { $as_echo "$as_me:$LINENO: checking whether shrink_control has nid" >&5
24207$as_echo_n "checking whether shrink_control has nid... " >&6; }
4d815aed 24208
4d815aed 24209
68d83c55 24210cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24211/* confdefs.h. */
24212_ACEOF
24213cat confdefs.h >>conftest.$ac_ext
24214cat >>conftest.$ac_ext <<_ACEOF
24215/* end confdefs.h. */
4d815aed 24216
4d815aed 24217
cae5b340 24218 #include <linux/fs.h>
4d815aed 24219
68d83c55
AX
24220int
24221main (void)
24222{
4d815aed 24223
cae5b340
AX
24224 struct shrink_control sc __attribute__ ((unused));
24225 unsigned long scnidsize __attribute__ ((unused)) =
24226 sizeof(sc.nid);
4d815aed 24227
68d83c55
AX
24228 ;
24229 return 0;
24230}
4d815aed 24231
68d83c55 24232_ACEOF
4d815aed
AX
24233
24234
ea04106b 24235
68d83c55
AX
24236cat - <<_ACEOF >conftest.h
24237
24238_ACEOF
4d815aed 24239
4d815aed 24240
68d83c55
AX
24241 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24242 echo "obj-m := conftest.o" >build/Makefile
24243 modpost_flag=''
24244 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24245 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 24246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
24247 (eval $ac_try) 2>&5
24248 ac_status=$?
cae5b340
AX
24249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
24252 (eval $ac_try) 2>&5
24253 ac_status=$?
cae5b340
AX
24254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); }; }; then
4d815aed 24256
cae5b340 24257 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 24258$as_echo "yes" >&6; }
4d815aed 24259
cae5b340
AX
24260cat >>confdefs.h <<\_ACEOF
24261#define SHRINK_CONTROL_HAS_NID 1
24262_ACEOF
4d815aed 24263
4d815aed 24264
4d815aed 24265else
68d83c55
AX
24266 $as_echo "$as_me: failed program was:" >&5
24267sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 24268
cae5b340
AX
24269 { $as_echo "$as_me:$LINENO: result: no" >&5
24270$as_echo "no" >&6; }
4d815aed 24271
4d815aed 24272
4d815aed 24273
4d815aed 24274fi
68d83c55 24275
68d83c55 24276 rm -Rf build
4d815aed
AX
24277
24278
4d815aed
AX
24279
24280
cae5b340
AX
24281 { $as_echo "$as_me:$LINENO: checking whether super_block has s_instances list_head" >&5
24282$as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
4d815aed 24283
4d815aed 24284
68d83c55 24285cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24286/* confdefs.h. */
24287_ACEOF
24288cat confdefs.h >>conftest.$ac_ext
24289cat >>conftest.$ac_ext <<_ACEOF
24290/* end confdefs.h. */
4d815aed 24291
4d815aed 24292
68d83c55 24293 #include <linux/fs.h>
4d815aed 24294
4d815aed 24295int
68d83c55 24296main (void)
4d815aed 24297{
68d83c55 24298
cae5b340
AX
24299 struct super_block sb __attribute__ ((unused));
24300
24301 INIT_LIST_HEAD(&sb.s_instances);
68d83c55 24302
4d815aed
AX
24303 ;
24304 return 0;
24305}
68d83c55 24306
4d815aed 24307_ACEOF
68d83c55
AX
24308
24309
24310
24311cat - <<_ACEOF >conftest.h
24312
4d815aed
AX
24313_ACEOF
24314
4d815aed 24315
68d83c55
AX
24316 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24317 echo "obj-m := conftest.o" >build/Makefile
24318 modpost_flag=''
24319 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24320 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 24321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
24322 (eval $ac_try) 2>&5
24323 ac_status=$?
cae5b340
AX
24324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
24327 (eval $ac_try) 2>&5
24328 ac_status=$?
cae5b340
AX
24329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; }; then
4d815aed 24331
cae5b340 24332 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
24333$as_echo "yes" >&6; }
24334
cae5b340
AX
24335cat >>confdefs.h <<\_ACEOF
24336#define HAVE_S_INSTANCES_LIST_HEAD 1
24337_ACEOF
24338
24339
24340else
24341 $as_echo "$as_me: failed program was:" >&5
24342sed 's/^/| /' conftest.$ac_ext >&5
24343
24344 { $as_echo "$as_me:$LINENO: result: no" >&5
24345$as_echo "no" >&6; }
4d815aed 24346
4d815aed 24347
cae5b340
AX
24348
24349fi
24350
24351 rm -Rf build
24352
24353
24354
24355 { $as_echo "$as_me:$LINENO: checking whether super_block has s_d_op" >&5
24356$as_echo_n "checking whether super_block has s_d_op... " >&6; }
22929307
AX
24357
24358
24359cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24360/* confdefs.h. */
24361_ACEOF
24362cat confdefs.h >>conftest.$ac_ext
24363cat >>conftest.$ac_ext <<_ACEOF
24364/* end confdefs.h. */
22929307
AX
24365
24366
24367 #include <linux/fs.h>
24368
24369int
24370main (void)
24371{
24372
cae5b340
AX
24373 struct super_block sb __attribute__ ((unused));
24374 sb.s_d_op = NULL;
22929307
AX
24375
24376 ;
24377 return 0;
24378}
24379
24380_ACEOF
24381
24382
24383
24384cat - <<_ACEOF >conftest.h
24385
24386_ACEOF
24387
24388
24389 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24390 echo "obj-m := conftest.o" >build/Makefile
24391 modpost_flag=''
24392 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24393 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 24394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
24395 (eval $ac_try) 2>&5
24396 ac_status=$?
cae5b340
AX
24397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
24400 (eval $ac_try) 2>&5
24401 ac_status=$?
cae5b340
AX
24402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); }; }; then
22929307 24404
cae5b340 24405 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
24406$as_echo "yes" >&6; }
24407
cae5b340
AX
24408cat >>confdefs.h <<\_ACEOF
24409#define HAVE_S_D_OP 1
24410_ACEOF
22929307
AX
24411
24412
24413else
24414 $as_echo "$as_me: failed program was:" >&5
24415sed 's/^/| /' conftest.$ac_ext >&5
24416
cae5b340 24417 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
24418$as_echo "no" >&6; }
24419
24420
24421
24422fi
68d83c55 24423
cae5b340 24424 rm -Rf build
4d815aed 24425
4d815aed 24426
4d815aed
AX
24427
24428
cae5b340
AX
24429 { $as_echo "$as_me:$LINENO: checking whether super_setup_bdi_name() exists" >&5
24430$as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
4d815aed 24431
68d83c55
AX
24432
24433
24434cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24435/* confdefs.h. */
24436_ACEOF
24437cat confdefs.h >>conftest.$ac_ext
24438cat >>conftest.$ac_ext <<_ACEOF
24439/* end confdefs.h. */
68d83c55
AX
24440
24441
24442 #include <linux/fs.h>
cae5b340 24443 struct super_block sb;
68d83c55 24444
4d815aed 24445int
68d83c55 24446main (void)
4d815aed 24447{
68d83c55 24448
cae5b340
AX
24449 char *name = "bdi";
24450 atomic_long_t zfs_bdi_seq;
24451 int error __attribute__((unused)) =
24452 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
68d83c55 24453
4d815aed
AX
24454 ;
24455 return 0;
24456}
68d83c55 24457
4d815aed 24458_ACEOF
68d83c55
AX
24459
24460
24461
24462cat - <<_ACEOF >conftest.h
24463
4d815aed
AX
24464_ACEOF
24465
68d83c55
AX
24466
24467 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24468 echo "obj-m := conftest.o" >build/Makefile
24469 modpost_flag=''
24470 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24471 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 24472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
24473 (eval $ac_try) 2>&5
24474 ac_status=$?
cae5b340
AX
24475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
24478 (eval $ac_try) 2>&5
24479 ac_status=$?
cae5b340
AX
24480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481 (exit $ac_status); }; }; then
24482 rc=0
4d815aed 24483else
68d83c55
AX
24484 $as_echo "$as_me: failed program was:" >&5
24485sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 24486 rc=1
4d815aed
AX
24487
24488
68d83c55 24489fi
cae5b340 24490
68d83c55 24491 rm -Rf build
4d815aed
AX
24492
24493
cae5b340 24494 if test $rc -ne 0; then :
4d815aed 24495
cae5b340
AX
24496 { $as_echo "$as_me:$LINENO: result: no" >&5
24497$as_echo "no" >&6; }
24498 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
24499$as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
4d815aed 24500
4d815aed 24501
4d815aed 24502
68d83c55 24503cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24504/* confdefs.h. */
24505_ACEOF
24506cat confdefs.h >>conftest.$ac_ext
24507cat >>conftest.$ac_ext <<_ACEOF
24508/* end confdefs.h. */
4d815aed
AX
24509
24510
cae5b340
AX
24511 #include <linux/backing-dev.h>
24512 struct backing_dev_info bdi;
4d815aed 24513
4d815aed 24514int
68d83c55 24515main (void)
4d815aed 24516{
68d83c55 24517
cae5b340
AX
24518 char *name = "bdi";
24519 int error __attribute__((unused)) =
24520 bdi_setup_and_register(&bdi, name);
68d83c55 24521
4d815aed
AX
24522 ;
24523 return 0;
24524}
68d83c55 24525
4d815aed 24526_ACEOF
68d83c55
AX
24527
24528
24529
24530cat - <<_ACEOF >conftest.h
24531
4d815aed
AX
24532_ACEOF
24533
68d83c55
AX
24534
24535 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24536 echo "obj-m := conftest.o" >build/Makefile
24537 modpost_flag=''
24538 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24539 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 24540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
24541 (eval $ac_try) 2>&5
24542 ac_status=$?
cae5b340
AX
24543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
24546 (eval $ac_try) 2>&5
24547 ac_status=$?
cae5b340
AX
24548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); }; }; then
24550 rc=0
4d815aed 24551else
68d83c55
AX
24552 $as_echo "$as_me: failed program was:" >&5
24553sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 24554 rc=1
68d83c55
AX
24555
24556
4d815aed 24557fi
cae5b340 24558
68d83c55 24559 rm -Rf build
4d815aed
AX
24560
24561
cae5b340 24562 if test $rc -ne 0; then :
4d815aed 24563
cae5b340
AX
24564 { $as_echo "$as_me:$LINENO: result: no" >&5
24565$as_echo "no" >&6; }
24566 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
24567$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
68d83c55 24568
68d83c55
AX
24569
24570
24571cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24572/* confdefs.h. */
24573_ACEOF
24574cat confdefs.h >>conftest.$ac_ext
24575cat >>conftest.$ac_ext <<_ACEOF
24576/* end confdefs.h. */
68d83c55
AX
24577
24578
cae5b340
AX
24579 #include <linux/backing-dev.h>
24580 struct backing_dev_info bdi;
68d83c55 24581
4d815aed 24582int
68d83c55 24583main (void)
4d815aed 24584{
68d83c55 24585
cae5b340
AX
24586 char *name = "bdi";
24587 unsigned int cap = BDI_CAP_MAP_COPY;
24588 int error __attribute__((unused)) =
24589 bdi_setup_and_register(&bdi, name, cap);
68d83c55 24590
4d815aed
AX
24591 ;
24592 return 0;
24593}
68d83c55 24594
4d815aed
AX
24595_ACEOF
24596
4d815aed 24597
4d815aed 24598
68d83c55 24599cat - <<_ACEOF >conftest.h
4d815aed 24600
68d83c55 24601_ACEOF
4d815aed
AX
24602
24603
68d83c55
AX
24604 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24605 echo "obj-m := conftest.o" >build/Makefile
24606 modpost_flag=''
24607 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24608 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 24609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
24610 (eval $ac_try) 2>&5
24611 ac_status=$?
cae5b340
AX
24612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
24615 (eval $ac_try) 2>&5
24616 ac_status=$?
cae5b340
AX
24617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618 (exit $ac_status); }; }; then
24619 rc=0
24620else
24621 $as_echo "$as_me: failed program was:" >&5
24622sed 's/^/| /' conftest.$ac_ext >&5
24623 rc=1
4d815aed
AX
24624
24625
cae5b340
AX
24626fi
24627
24628 rm -Rf build
4d815aed
AX
24629
24630
cae5b340 24631 if test $rc -ne 0; then :
68d83c55 24632
cae5b340 24633 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
24634$as_echo "no" >&6; }
24635
cae5b340
AX
24636 else
24637 if test "x$enable_linux_builtin" != xyes; then
24638
24639 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
24640 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24641 rc=$?
24642 if test $rc -ne 0; then
24643 export=0
24644 for file in mm/backing-dev.c; do
24645 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
24646 "$LINUX/$file" 2>/dev/null
24647 rc=$?
24648 if test $rc -eq 0; then
24649 export=1
24650 break;
24651 fi
24652 done
24653 if test $export -eq 0; then :
24654 rc=1
24655 else :
24656 rc=0
24657 fi
24658 else :
24659 rc=0
24660 fi
68d83c55 24661
cae5b340
AX
24662 fi
24663 if test $rc -ne 0; then :
68d83c55 24664
cae5b340
AX
24665 { $as_echo "$as_me:$LINENO: result: no" >&5
24666$as_echo "no" >&6; }
4d815aed 24667
cae5b340 24668 else :
4d815aed 24669
cae5b340
AX
24670 { $as_echo "$as_me:$LINENO: result: yes" >&5
24671$as_echo "yes" >&6; }
4d815aed 24672
cae5b340
AX
24673cat >>confdefs.h <<\_ACEOF
24674#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
24675_ACEOF
4d815aed
AX
24676
24677
cae5b340
AX
24678 fi
24679 fi
4d815aed
AX
24680
24681
cae5b340
AX
24682 else
24683 if test "x$enable_linux_builtin" != xyes; then
4d815aed 24684
cae5b340
AX
24685 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
24686 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24687 rc=$?
24688 if test $rc -ne 0; then
24689 export=0
24690 for file in mm/backing-dev.c; do
24691 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
24692 "$LINUX/$file" 2>/dev/null
24693 rc=$?
24694 if test $rc -eq 0; then
24695 export=1
24696 break;
24697 fi
24698 done
24699 if test $export -eq 0; then :
24700 rc=1
24701 else :
24702 rc=0
24703 fi
24704 else :
24705 rc=0
24706 fi
24707
24708 fi
24709 if test $rc -ne 0; then :
24710
24711 { $as_echo "$as_me:$LINENO: result: no" >&5
24712$as_echo "no" >&6; }
24713 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
24714$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
24715
24716
24717
24718cat confdefs.h - <<_ACEOF >conftest.c
24719/* confdefs.h. */
24720_ACEOF
24721cat confdefs.h >>conftest.$ac_ext
24722cat >>conftest.$ac_ext <<_ACEOF
24723/* end confdefs.h. */
4d815aed 24724
cae5b340
AX
24725
24726 #include <linux/backing-dev.h>
24727 struct backing_dev_info bdi;
4d815aed 24728
4d815aed 24729int
68d83c55 24730main (void)
4d815aed 24731{
68d83c55 24732
cae5b340
AX
24733 char *name = "bdi";
24734 unsigned int cap = BDI_CAP_MAP_COPY;
24735 int error __attribute__((unused)) =
24736 bdi_setup_and_register(&bdi, name, cap);
68d83c55 24737
4d815aed
AX
24738 ;
24739 return 0;
24740}
68d83c55 24741
4d815aed 24742_ACEOF
68d83c55
AX
24743
24744
24745
24746cat - <<_ACEOF >conftest.h
24747
24748_ACEOF
24749
24750
24751 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24752 echo "obj-m := conftest.o" >build/Makefile
24753 modpost_flag=''
24754 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24755 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 24756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
24762 (eval $ac_try) 2>&5
24763 ac_status=$?
cae5b340
AX
24764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765 (exit $ac_status); }; }; then
24766 rc=0
24767else
24768 $as_echo "$as_me: failed program was:" >&5
24769sed 's/^/| /' conftest.$ac_ext >&5
24770 rc=1
68d83c55 24771
68d83c55 24772
cae5b340 24773fi
68d83c55 24774
cae5b340 24775 rm -Rf build
68d83c55
AX
24776
24777
cae5b340 24778 if test $rc -ne 0; then :
68d83c55 24779
cae5b340 24780 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 24781$as_echo "no" >&6; }
68d83c55 24782
cae5b340
AX
24783 else
24784 if test "x$enable_linux_builtin" != xyes; then
68d83c55 24785
cae5b340
AX
24786 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
24787 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24788 rc=$?
24789 if test $rc -ne 0; then
24790 export=0
24791 for file in mm/backing-dev.c; do
24792 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
24793 "$LINUX/$file" 2>/dev/null
24794 rc=$?
24795 if test $rc -eq 0; then
24796 export=1
24797 break;
24798 fi
24799 done
24800 if test $export -eq 0; then :
24801 rc=1
24802 else :
24803 rc=0
24804 fi
24805 else :
24806 rc=0
24807 fi
68d83c55 24808
cae5b340
AX
24809 fi
24810 if test $rc -ne 0; then :
68d83c55 24811
cae5b340
AX
24812 { $as_echo "$as_me:$LINENO: result: no" >&5
24813$as_echo "no" >&6; }
68d83c55 24814
cae5b340 24815 else :
68d83c55 24816
cae5b340
AX
24817 { $as_echo "$as_me:$LINENO: result: yes" >&5
24818$as_echo "yes" >&6; }
68d83c55 24819
cae5b340
AX
24820cat >>confdefs.h <<\_ACEOF
24821#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
24822_ACEOF
68d83c55 24823
68d83c55 24824
cae5b340
AX
24825 fi
24826 fi
68d83c55
AX
24827
24828
cae5b340 24829 else :
68d83c55 24830
cae5b340
AX
24831 { $as_echo "$as_me:$LINENO: result: yes" >&5
24832$as_echo "yes" >&6; }
68d83c55 24833
cae5b340
AX
24834cat >>confdefs.h <<\_ACEOF
24835#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
68d83c55
AX
24836_ACEOF
24837
24838
cae5b340
AX
24839 fi
24840 fi
68d83c55 24841
68d83c55 24842
cae5b340
AX
24843 else
24844 if test "x$enable_linux_builtin" != xyes; then
68d83c55 24845
cae5b340
AX
24846 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
24847 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24848 rc=$?
24849 if test $rc -ne 0; then
24850 export=0
24851 for file in fs/super.c; do
24852 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
24853 "$LINUX/$file" 2>/dev/null
24854 rc=$?
24855 if test $rc -eq 0; then
24856 export=1
24857 break;
24858 fi
24859 done
24860 if test $export -eq 0; then :
24861 rc=1
24862 else :
24863 rc=0
24864 fi
24865 else :
24866 rc=0
24867 fi
68d83c55 24868
cae5b340
AX
24869 fi
24870 if test $rc -ne 0; then :
68d83c55 24871
cae5b340 24872 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 24873$as_echo "no" >&6; }
cae5b340
AX
24874 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
24875$as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
68d83c55
AX
24876
24877
68d83c55 24878
cae5b340
AX
24879cat confdefs.h - <<_ACEOF >conftest.c
24880/* confdefs.h. */
24881_ACEOF
24882cat confdefs.h >>conftest.$ac_ext
24883cat >>conftest.$ac_ext <<_ACEOF
24884/* end confdefs.h. */
68d83c55 24885
68d83c55 24886
cae5b340
AX
24887 #include <linux/backing-dev.h>
24888 struct backing_dev_info bdi;
68d83c55
AX
24889
24890int
24891main (void)
24892{
24893
cae5b340
AX
24894 char *name = "bdi";
24895 int error __attribute__((unused)) =
24896 bdi_setup_and_register(&bdi, name);
68d83c55
AX
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 $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 24916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
24917 (eval $ac_try) 2>&5
24918 ac_status=$?
cae5b340
AX
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
68d83c55
AX
24922 (eval $ac_try) 2>&5
24923 ac_status=$?
cae5b340
AX
24924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); }; }; then
24926 rc=0
68d83c55
AX
24927else
24928 $as_echo "$as_me: failed program was:" >&5
24929sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 24930 rc=1
68d83c55
AX
24931
24932
24933fi
68d83c55 24934
68d83c55
AX
24935 rm -Rf build
24936
24937
cae5b340 24938 if test $rc -ne 0; then :
68d83c55 24939
cae5b340
AX
24940 { $as_echo "$as_me:$LINENO: result: no" >&5
24941$as_echo "no" >&6; }
24942 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
24943$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
68d83c55
AX
24944
24945
24946
24947cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24948/* confdefs.h. */
24949_ACEOF
24950cat confdefs.h >>conftest.$ac_ext
24951cat >>conftest.$ac_ext <<_ACEOF
24952/* end confdefs.h. */
68d83c55
AX
24953
24954
cae5b340
AX
24955 #include <linux/backing-dev.h>
24956 struct backing_dev_info bdi;
68d83c55
AX
24957
24958int
24959main (void)
24960{
24961
cae5b340
AX
24962 char *name = "bdi";
24963 unsigned int cap = BDI_CAP_MAP_COPY;
24964 int error __attribute__((unused)) =
24965 bdi_setup_and_register(&bdi, name, cap);
68d83c55
AX
24966
24967 ;
24968 return 0;
24969}
24970
24971_ACEOF
24972
24973
24974
24975cat - <<_ACEOF >conftest.h
24976
24977_ACEOF
24978
24979
24980 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24981 echo "obj-m := conftest.o" >build/Makefile
24982 modpost_flag=''
24983 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24984 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 24985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
24986 (eval $ac_try) 2>&5
24987 ac_status=$?
cae5b340
AX
24988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
24991 (eval $ac_try) 2>&5
24992 ac_status=$?
cae5b340
AX
24993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); }; }; then
68d83c55
AX
24995 rc=0
24996else
24997 $as_echo "$as_me: failed program was:" >&5
24998sed 's/^/| /' conftest.$ac_ext >&5
24999 rc=1
25000
25001
25002fi
cae5b340 25003
68d83c55
AX
25004 rm -Rf build
25005
25006
25007 if test $rc -ne 0; then :
25008
cae5b340 25009 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
25010$as_echo "no" >&6; }
25011
25012 else
25013 if test "x$enable_linux_builtin" != xyes; then
25014
cae5b340 25015 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
68d83c55
AX
25016 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25017 rc=$?
25018 if test $rc -ne 0; then
25019 export=0
cae5b340
AX
25020 for file in mm/backing-dev.c; do
25021 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
68d83c55
AX
25022 "$LINUX/$file" 2>/dev/null
25023 rc=$?
25024 if test $rc -eq 0; then
25025 export=1
25026 break;
25027 fi
25028 done
25029 if test $export -eq 0; then :
25030 rc=1
25031 else :
25032 rc=0
25033 fi
25034 else :
25035 rc=0
25036 fi
25037
25038 fi
25039 if test $rc -ne 0; then :
25040
cae5b340 25041 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
25042$as_echo "no" >&6; }
25043
25044 else :
25045
cae5b340 25046 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
25047$as_echo "yes" >&6; }
25048
cae5b340
AX
25049cat >>confdefs.h <<\_ACEOF
25050#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25051_ACEOF
68d83c55
AX
25052
25053
25054 fi
25055 fi
25056
25057
cae5b340
AX
25058 else
25059 if test "x$enable_linux_builtin" != xyes; then
68d83c55 25060
cae5b340
AX
25061 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25062 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25063 rc=$?
25064 if test $rc -ne 0; then
25065 export=0
25066 for file in mm/backing-dev.c; do
25067 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25068 "$LINUX/$file" 2>/dev/null
25069 rc=$?
25070 if test $rc -eq 0; then
25071 export=1
25072 break;
25073 fi
25074 done
25075 if test $export -eq 0; then :
25076 rc=1
25077 else :
25078 rc=0
25079 fi
25080 else :
25081 rc=0
25082 fi
68d83c55 25083
cae5b340
AX
25084 fi
25085 if test $rc -ne 0; then :
68d83c55 25086
cae5b340
AX
25087 { $as_echo "$as_me:$LINENO: result: no" >&5
25088$as_echo "no" >&6; }
25089 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
25090$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
68d83c55
AX
25091
25092
68d83c55 25093
cae5b340
AX
25094cat confdefs.h - <<_ACEOF >conftest.c
25095/* confdefs.h. */
25096_ACEOF
25097cat confdefs.h >>conftest.$ac_ext
25098cat >>conftest.$ac_ext <<_ACEOF
25099/* end confdefs.h. */
25100
25101
25102 #include <linux/backing-dev.h>
25103 struct backing_dev_info bdi;
68d83c55
AX
25104
25105int
25106main (void)
25107{
25108
cae5b340
AX
25109 char *name = "bdi";
25110 unsigned int cap = BDI_CAP_MAP_COPY;
25111 int error __attribute__((unused)) =
25112 bdi_setup_and_register(&bdi, name, cap);
68d83c55
AX
25113
25114 ;
25115 return 0;
25116}
25117
25118_ACEOF
25119
25120
25121
25122cat - <<_ACEOF >conftest.h
25123
25124_ACEOF
25125
25126
25127 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25128 echo "obj-m := conftest.o" >build/Makefile
25129 modpost_flag=''
25130 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25131 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 25132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25133 (eval $ac_try) 2>&5
25134 ac_status=$?
cae5b340
AX
25135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25138 (eval $ac_try) 2>&5
25139 ac_status=$?
cae5b340
AX
25140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); }; }; then
25142 rc=0
68d83c55
AX
25143else
25144 $as_echo "$as_me: failed program was:" >&5
25145sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 25146 rc=1
68d83c55
AX
25147
25148
25149fi
cae5b340 25150
68d83c55
AX
25151 rm -Rf build
25152
25153
cae5b340
AX
25154 if test $rc -ne 0; then :
25155
25156 { $as_echo "$as_me:$LINENO: result: no" >&5
25157$as_echo "no" >&6; }
25158
25159 else
25160 if test "x$enable_linux_builtin" != xyes; then
25161
25162 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25163 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25164 rc=$?
25165 if test $rc -ne 0; then
25166 export=0
25167 for file in mm/backing-dev.c; do
25168 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25169 "$LINUX/$file" 2>/dev/null
25170 rc=$?
25171 if test $rc -eq 0; then
25172 export=1
25173 break;
25174 fi
25175 done
25176 if test $export -eq 0; then :
25177 rc=1
25178 else :
25179 rc=0
25180 fi
25181 else :
25182 rc=0
25183 fi
25184
25185 fi
25186 if test $rc -ne 0; then :
25187
25188 { $as_echo "$as_me:$LINENO: result: no" >&5
25189$as_echo "no" >&6; }
25190
25191 else :
25192
25193 { $as_echo "$as_me:$LINENO: result: yes" >&5
25194$as_echo "yes" >&6; }
25195
25196cat >>confdefs.h <<\_ACEOF
25197#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25198_ACEOF
25199
25200
25201 fi
25202 fi
25203
25204
25205 else :
25206
25207 { $as_echo "$as_me:$LINENO: result: yes" >&5
25208$as_echo "yes" >&6; }
25209
25210cat >>confdefs.h <<\_ACEOF
25211#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
25212_ACEOF
25213
25214
25215 fi
25216 fi
25217
25218
25219 else :
25220
25221 { $as_echo "$as_me:$LINENO: result: yes" >&5
25222$as_echo "yes" >&6; }
25223
25224cat >>confdefs.h <<\_ACEOF
25225#define HAVE_SUPER_SETUP_BDI_NAME 1
25226_ACEOF
25227
25228
25229 fi
25230 fi
68d83c55
AX
25231
25232
cae5b340
AX
25233
25234 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
25235$as_echo_n "checking whether set_nlink() is available... " >&6; }
68d83c55
AX
25236
25237
25238cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
25239/* confdefs.h. */
25240_ACEOF
25241cat confdefs.h >>conftest.$ac_ext
25242cat >>conftest.$ac_ext <<_ACEOF
25243/* end confdefs.h. */
68d83c55
AX
25244
25245
25246 #include <linux/fs.h>
68d83c55 25247
cae5b340
AX
25248int
25249main (void)
25250{
25251
25252 struct inode node;
25253 unsigned int link = 0;
25254 (void) set_nlink(&node, link);
25255
25256 ;
25257 return 0;
25258}
25259
25260_ACEOF
25261
25262
25263
25264cat - <<_ACEOF >conftest.h
25265
25266_ACEOF
25267
25268
25269 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25270 echo "obj-m := conftest.o" >build/Makefile
25271 modpost_flag=''
25272 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25273 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25275 (eval $ac_try) 2>&5
25276 ac_status=$?
25277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25280 (eval $ac_try) 2>&5
25281 ac_status=$?
25282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283 (exit $ac_status); }; }; then
25284
25285 { $as_echo "$as_me:$LINENO: result: yes" >&5
25286$as_echo "yes" >&6; }
25287
25288cat >>confdefs.h <<\_ACEOF
25289#define HAVE_SET_NLINK 1
25290_ACEOF
25291
25292
25293else
25294 $as_echo "$as_me: failed program was:" >&5
25295sed 's/^/| /' conftest.$ac_ext >&5
25296
25297 { $as_echo "$as_me:$LINENO: result: no" >&5
25298$as_echo "no" >&6; }
25299
25300
25301
25302fi
25303
25304 rm -Rf build
25305
25306
25307
25308
25309 { $as_echo "$as_me:$LINENO: checking whether elevator_change() is available" >&5
25310$as_echo_n "checking whether elevator_change() is available... " >&6; }
25311 tmp_flags="$EXTRA_KCFLAGS"
25312 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
25313
25314
25315cat confdefs.h - <<_ACEOF >conftest.c
25316/* confdefs.h. */
25317_ACEOF
25318cat confdefs.h >>conftest.$ac_ext
25319cat >>conftest.$ac_ext <<_ACEOF
25320/* end confdefs.h. */
25321
25322
25323 #include <linux/blkdev.h>
25324 #include <linux/elevator.h>
68d83c55
AX
25325
25326int
25327main (void)
25328{
25329
cae5b340
AX
25330 int ret;
25331 struct request_queue *q = NULL;
25332 char *elevator = NULL;
25333 ret = elevator_change(q, elevator);
68d83c55
AX
25334
25335 ;
25336 return 0;
25337}
25338
25339_ACEOF
25340
25341
25342
25343cat - <<_ACEOF >conftest.h
25344
25345_ACEOF
25346
25347
25348 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25349 echo "obj-m := conftest.o" >build/Makefile
25350 modpost_flag=''
25351 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25352 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 25353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25354 (eval $ac_try) 2>&5
25355 ac_status=$?
cae5b340
AX
25356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25359 (eval $ac_try) 2>&5
25360 ac_status=$?
cae5b340
AX
25361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); }; }; then
68d83c55 25363
cae5b340 25364 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
25365$as_echo "yes" >&6; }
25366
cae5b340
AX
25367cat >>confdefs.h <<\_ACEOF
25368#define HAVE_ELEVATOR_CHANGE 1
25369_ACEOF
68d83c55
AX
25370
25371
25372else
25373 $as_echo "$as_me: failed program was:" >&5
25374sed 's/^/| /' conftest.$ac_ext >&5
25375
cae5b340 25376 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
25377$as_echo "no" >&6; }
25378
25379
25380
25381fi
cae5b340 25382
68d83c55
AX
25383 rm -Rf build
25384
25385
cae5b340
AX
25386 EXTRA_KCFLAGS="$tmp_flags"
25387
25388 { $as_echo "$as_me:$LINENO: checking whether sget() wants 5 args" >&5
25389$as_echo_n "checking whether sget() wants 5 args... " >&6; }
25390
25391
25392cat confdefs.h - <<_ACEOF >conftest.c
25393/* confdefs.h. */
25394_ACEOF
25395cat confdefs.h >>conftest.$ac_ext
25396cat >>conftest.$ac_ext <<_ACEOF
25397/* end confdefs.h. */
25398
25399
25400 #include <linux/fs.h>
25401
25402int
25403main (void)
25404{
25405
25406 struct file_system_type *type = NULL;
25407 int (*test)(struct super_block *,void *) = NULL;
25408 int (*set)(struct super_block *,void *) = NULL;
25409 int flags = 0;
25410 void *data = NULL;
25411 (void) sget(type, test, set, flags, data);
25412
25413 ;
25414 return 0;
25415}
25416
25417_ACEOF
25418
25419
25420
25421cat - <<_ACEOF >conftest.h
25422
25423_ACEOF
25424
25425
25426 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25427 echo "obj-m := conftest.o" >build/Makefile
25428 modpost_flag=''
25429 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25430 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25432 (eval $ac_try) 2>&5
25433 ac_status=$?
25434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25435 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25437 (eval $ac_try) 2>&5
25438 ac_status=$?
25439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); }; }; then
25441
25442 { $as_echo "$as_me:$LINENO: result: yes" >&5
25443$as_echo "yes" >&6; }
25444
25445cat >>confdefs.h <<\_ACEOF
25446#define HAVE_5ARG_SGET 1
25447_ACEOF
68d83c55 25448
cae5b340
AX
25449
25450else
25451 $as_echo "$as_me: failed program was:" >&5
25452sed 's/^/| /' conftest.$ac_ext >&5
25453
25454 { $as_echo "$as_me:$LINENO: result: no" >&5
25455$as_echo "no" >&6; }
25456
25457
25458
25459fi
25460
25461 rm -Rf build
25462
25463
25464
25465 { $as_echo "$as_me:$LINENO: checking whether lseek_execute() is available" >&5
25466$as_echo_n "checking whether lseek_execute() is available... " >&6; }
22929307
AX
25467
25468
25469
25470cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
25471/* confdefs.h. */
25472_ACEOF
25473cat confdefs.h >>conftest.$ac_ext
25474cat >>conftest.$ac_ext <<_ACEOF
25475/* end confdefs.h. */
22929307
AX
25476
25477
25478 #include <linux/fs.h>
25479
25480int
25481main (void)
25482{
25483
cae5b340
AX
25484 struct file *fp __attribute__ ((unused)) = NULL;
25485 struct inode *ip __attribute__ ((unused)) = NULL;
25486 loff_t offset __attribute__ ((unused)) = 0;
25487 loff_t maxsize __attribute__ ((unused)) = 0;
22929307 25488
cae5b340 25489 lseek_execute(fp, ip, offset, maxsize);
22929307
AX
25490
25491 ;
25492 return 0;
25493}
25494
25495_ACEOF
25496
25497
25498
25499cat - <<_ACEOF >conftest.h
25500
25501_ACEOF
25502
25503
25504 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25505 echo "obj-m := conftest.o" >build/Makefile
25506 modpost_flag=''
25507 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25508 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 25509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
25510 (eval $ac_try) 2>&5
25511 ac_status=$?
cae5b340
AX
25512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
25515 (eval $ac_try) 2>&5
25516 ac_status=$?
cae5b340
AX
25517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); }; }; then
22929307
AX
25519 rc=0
25520else
25521 $as_echo "$as_me: failed program was:" >&5
25522sed 's/^/| /' conftest.$ac_ext >&5
25523 rc=1
25524
25525
25526fi
cae5b340 25527
22929307
AX
25528 rm -Rf build
25529
25530
25531 if test $rc -ne 0; then :
25532
cae5b340 25533 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
25534$as_echo "no" >&6; }
25535
25536 else
25537 if test "x$enable_linux_builtin" != xyes; then
25538
cae5b340 25539 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
22929307
AX
25540 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25541 rc=$?
25542 if test $rc -ne 0; then
25543 export=0
cae5b340
AX
25544 for file in fs/read_write.c; do
25545 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
22929307
AX
25546 "$LINUX/$file" 2>/dev/null
25547 rc=$?
25548 if test $rc -eq 0; then
25549 export=1
25550 break;
25551 fi
25552 done
25553 if test $export -eq 0; then :
25554 rc=1
25555 else :
25556 rc=0
25557 fi
25558 else :
25559 rc=0
25560 fi
25561
25562 fi
25563 if test $rc -ne 0; then :
25564
cae5b340 25565 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
25566$as_echo "no" >&6; }
25567
25568 else :
25569
cae5b340 25570 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
25571$as_echo "yes" >&6; }
25572
cae5b340
AX
25573cat >>confdefs.h <<\_ACEOF
25574#define HAVE_LSEEK_EXECUTE 1
25575_ACEOF
22929307
AX
25576
25577
25578 fi
25579 fi
25580
25581
68d83c55 25582
cae5b340
AX
25583 { $as_echo "$as_me:$LINENO: checking whether fops->iterate_shared() is available" >&5
25584$as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
68d83c55 25585
68d83c55 25586
cae5b340
AX
25587cat confdefs.h - <<_ACEOF >conftest.c
25588/* confdefs.h. */
25589_ACEOF
25590cat confdefs.h >>conftest.$ac_ext
25591cat >>conftest.$ac_ext <<_ACEOF
25592/* end confdefs.h. */
68d83c55
AX
25593
25594
cae5b340
AX
25595 #include <linux/fs.h>
25596 int iterate(struct file *filp, struct dir_context * context)
25597 { return 0; }
68d83c55 25598
cae5b340
AX
25599 static const struct file_operations fops
25600 __attribute__ ((unused)) = {
25601 .iterate_shared = iterate,
25602 };
68d83c55 25603
cae5b340
AX
25604int
25605main (void)
25606{
68d83c55 25607
68d83c55 25608
cae5b340
AX
25609 ;
25610 return 0;
25611}
68d83c55 25612
cae5b340 25613_ACEOF
68d83c55
AX
25614
25615
25616
cae5b340 25617cat - <<_ACEOF >conftest.h
68d83c55 25618
cae5b340
AX
25619_ACEOF
25620
25621
25622 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25623 echo "obj-m := conftest.o" >build/Makefile
25624 modpost_flag=''
25625 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25626 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25628 (eval $ac_try) 2>&5
25629 ac_status=$?
25630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25633 (eval $ac_try) 2>&5
25634 ac_status=$?
25635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25636 (exit $ac_status); }; }; then
25637
25638 { $as_echo "$as_me:$LINENO: result: yes" >&5
25639$as_echo "yes" >&6; }
25640
25641cat >>confdefs.h <<\_ACEOF
25642#define HAVE_VFS_ITERATE_SHARED 1
25643_ACEOF
68d83c55 25644
68d83c55 25645
68d83c55 25646else
cae5b340
AX
25647 $as_echo "$as_me: failed program was:" >&5
25648sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 25649
cae5b340
AX
25650 { $as_echo "$as_me:$LINENO: result: no" >&5
25651$as_echo "no" >&6; }
68d83c55 25652
cae5b340
AX
25653 { $as_echo "$as_me:$LINENO: checking whether fops->iterate() is available" >&5
25654$as_echo_n "checking whether fops->iterate() is available... " >&6; }
25655
25656
25657cat confdefs.h - <<_ACEOF >conftest.c
25658/* confdefs.h. */
25659_ACEOF
25660cat confdefs.h >>conftest.$ac_ext
25661cat >>conftest.$ac_ext <<_ACEOF
25662/* end confdefs.h. */
25663
25664
25665 #include <linux/fs.h>
25666 int iterate(struct file *filp, struct dir_context * context)
25667 { return 0; }
25668
25669 static const struct file_operations fops
25670 __attribute__ ((unused)) = {
25671 .iterate = iterate,
25672 };
25673
25674int
25675main (void)
25676{
25677
25678
25679 ;
25680 return 0;
25681}
25682
25683_ACEOF
25684
25685
25686
25687cat - <<_ACEOF >conftest.h
25688
25689_ACEOF
25690
25691
25692 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25693 echo "obj-m := conftest.o" >build/Makefile
25694 modpost_flag=''
25695 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25696 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25698 (eval $ac_try) 2>&5
25699 ac_status=$?
25700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25703 (eval $ac_try) 2>&5
25704 ac_status=$?
25705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706 (exit $ac_status); }; }; then
25707
25708 { $as_echo "$as_me:$LINENO: result: yes" >&5
25709$as_echo "yes" >&6; }
25710
25711cat >>confdefs.h <<\_ACEOF
25712#define HAVE_VFS_ITERATE 1
25713_ACEOF
68d83c55 25714
68d83c55 25715
68d83c55 25716else
cae5b340
AX
25717 $as_echo "$as_me: failed program was:" >&5
25718sed 's/^/| /' conftest.$ac_ext >&5
25719
25720 { $as_echo "$as_me:$LINENO: result: no" >&5
25721$as_echo "no" >&6; }
25722
25723 { $as_echo "$as_me:$LINENO: checking whether fops->readdir() is available" >&5
25724$as_echo_n "checking whether fops->readdir() is available... " >&6; }
25725
25726
25727cat confdefs.h - <<_ACEOF >conftest.c
25728/* confdefs.h. */
25729_ACEOF
25730cat confdefs.h >>conftest.$ac_ext
25731cat >>conftest.$ac_ext <<_ACEOF
25732/* end confdefs.h. */
25733
25734
25735 #include <linux/fs.h>
25736 int readdir(struct file *filp, void *entry, filldir_t func)
25737 { return 0; }
25738
25739 static const struct file_operations fops
25740 __attribute__ ((unused)) = {
25741 .readdir = readdir,
25742 };
25743
25744int
25745main (void)
25746{
25747
25748
25749 ;
25750 return 0;
25751}
25752
25753_ACEOF
25754
25755
25756
25757cat - <<_ACEOF >conftest.h
25758
25759_ACEOF
25760
25761
25762 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25763 echo "obj-m := conftest.o" >build/Makefile
25764 modpost_flag=''
25765 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25766 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25768 (eval $ac_try) 2>&5
25769 ac_status=$?
25770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25771 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25773 (eval $ac_try) 2>&5
25774 ac_status=$?
25775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776 (exit $ac_status); }; }; then
25777
25778 { $as_echo "$as_me:$LINENO: result: yes" >&5
25779$as_echo "yes" >&6; }
25780
25781cat >>confdefs.h <<\_ACEOF
25782#define HAVE_VFS_READDIR 1
25783_ACEOF
25784
68d83c55 25785
68d83c55 25786else
cae5b340
AX
25787 $as_echo "$as_me: failed program was:" >&5
25788sed 's/^/| /' conftest.$ac_ext >&5
25789
25790 { { $as_echo "$as_me:$LINENO: error: no; file a bug report with ZFSOnLinux" >&5
25791$as_echo "$as_me: error: no; file a bug report with ZFSOnLinux" >&2;}
25792 { (exit 1); exit 1; }; }
25793
68d83c55 25794
68d83c55
AX
25795
25796fi
25797
cae5b340
AX
25798 rm -Rf build
25799
25800
25801
25802
68d83c55 25803
68d83c55
AX
25804fi
25805
cae5b340 25806 rm -Rf build
68d83c55
AX
25807
25808
25809
68d83c55
AX
25810
25811
68d83c55
AX
25812fi
25813
cae5b340
AX
25814 rm -Rf build
25815
25816
25817
25818 { $as_echo "$as_me:$LINENO: checking whether fops->read/write_iter() are available" >&5
25819$as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
25820
25821
25822cat confdefs.h - <<_ACEOF >conftest.c
25823/* confdefs.h. */
25824_ACEOF
25825cat confdefs.h >>conftest.$ac_ext
25826cat >>conftest.$ac_ext <<_ACEOF
25827/* end confdefs.h. */
25828
25829
25830 #include <linux/fs.h>
25831
25832 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
25833 { return 0; }
25834 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
25835 { return 0; }
25836
25837 static const struct file_operations
25838 fops __attribute__ ((unused)) = {
25839 .read_iter = test_read,
25840 .write_iter = test_write,
25841 };
25842
25843int
25844main (void)
25845{
25846
25847
25848 ;
25849 return 0;
25850}
25851
25852_ACEOF
25853
25854
25855
25856cat - <<_ACEOF >conftest.h
25857
25858_ACEOF
25859
25860
25861 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25862 echo "obj-m := conftest.o" >build/Makefile
25863 modpost_flag=''
25864 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25865 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25867 (eval $ac_try) 2>&5
25868 ac_status=$?
25869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872 (eval $ac_try) 2>&5
25873 ac_status=$?
25874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); }; }; then
25876
25877 { $as_echo "$as_me:$LINENO: result: yes" >&5
25878$as_echo "yes" >&6; }
25879
25880cat >>confdefs.h <<\_ACEOF
25881#define HAVE_VFS_RW_ITERATE 1
25882_ACEOF
25883
25884
047218e2
AX
25885 { $as_echo "$as_me:$LINENO: checking whether new_sync_read/write() are available" >&5
25886$as_echo_n "checking whether new_sync_read/write() are available... " >&6; }
cae5b340
AX
25887
25888
25889cat confdefs.h - <<_ACEOF >conftest.c
25890/* confdefs.h. */
25891_ACEOF
25892cat confdefs.h >>conftest.$ac_ext
25893cat >>conftest.$ac_ext <<_ACEOF
25894/* end confdefs.h. */
25895
25896
25897 #include <linux/fs.h>
25898
25899int
25900main (void)
25901{
25902
047218e2
AX
25903 ssize_t ret __attribute__ ((unused));
25904 struct file *filp = NULL;
25905 char __user *rbuf = NULL;
25906 const char __user *wbuf = NULL;
25907 size_t len = 0;
25908 loff_t ppos;
25909
25910 ret = new_sync_read(filp, rbuf, len, &ppos);
25911 ret = new_sync_write(filp, wbuf, len, &ppos);
cae5b340
AX
25912
25913 ;
25914 return 0;
25915}
25916
25917_ACEOF
25918
25919
25920
25921cat - <<_ACEOF >conftest.h
25922
25923_ACEOF
25924
25925
25926 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25927 echo "obj-m := conftest.o" >build/Makefile
25928 modpost_flag=''
25929 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25930 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25932 (eval $ac_try) 2>&5
25933 ac_status=$?
25934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25937 (eval $ac_try) 2>&5
25938 ac_status=$?
25939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); }; }; then
25941
25942 { $as_echo "$as_me:$LINENO: result: yes" >&5
25943$as_echo "yes" >&6; }
25944
25945cat >>confdefs.h <<\_ACEOF
25946#define HAVE_NEW_SYNC_READ 1
25947_ACEOF
68d83c55
AX
25948
25949
cae5b340
AX
25950else
25951 $as_echo "$as_me: failed program was:" >&5
25952sed 's/^/| /' conftest.$ac_ext >&5
25953
25954 { $as_echo "$as_me:$LINENO: result: no" >&5
25955$as_echo "no" >&6; }
25956
25957
25958
25959fi
25960
25961 rm -Rf build
25962
25963
25964
25965
25966else
25967 $as_echo "$as_me: failed program was:" >&5
25968sed 's/^/| /' conftest.$ac_ext >&5
25969
25970 { $as_echo "$as_me:$LINENO: result: no" >&5
25971$as_echo "no" >&6; }
25972
25973
25974
25975fi
25976
25977 rm -Rf build
25978
25979
25980
25981 { $as_echo "$as_me:$LINENO: checking whether generic_write_checks() takes kiocb" >&5
25982$as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
25983
25984
25985cat confdefs.h - <<_ACEOF >conftest.c
25986/* confdefs.h. */
25987_ACEOF
25988cat confdefs.h >>conftest.$ac_ext
25989cat >>conftest.$ac_ext <<_ACEOF
25990/* end confdefs.h. */
25991
25992
25993 #include <linux/fs.h>
25994
25995
25996int
25997main (void)
25998{
25999
26000 struct kiocb *iocb = NULL;
26001 struct iov_iter *iov = NULL;
26002 generic_write_checks(iocb, iov);
26003
26004 ;
26005 return 0;
26006}
26007
26008_ACEOF
26009
26010
26011
26012cat - <<_ACEOF >conftest.h
26013
26014_ACEOF
26015
26016
26017 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26018 echo "obj-m := conftest.o" >build/Makefile
26019 modpost_flag=''
26020 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26021 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26023 (eval $ac_try) 2>&5
26024 ac_status=$?
26025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26028 (eval $ac_try) 2>&5
26029 ac_status=$?
26030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); }; }; then
26032
26033 { $as_echo "$as_me:$LINENO: result: yes" >&5
26034$as_echo "yes" >&6; }
26035
26036cat >>confdefs.h <<\_ACEOF
26037#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1
26038_ACEOF
26039
26040
26041else
26042 $as_echo "$as_me: failed program was:" >&5
26043sed 's/^/| /' conftest.$ac_ext >&5
26044
26045 { $as_echo "$as_me:$LINENO: result: no" >&5
26046$as_echo "no" >&6; }
26047
26048
26049
26050fi
26051
26052 rm -Rf build
26053
26054
26055
26056
26057 { $as_echo "$as_me:$LINENO: checking whether kmap_atomic wants 1 args" >&5
26058$as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
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/pagemap.h>
26070
26071int
26072main (void)
26073{
26074
26075 struct page page;
26076 kmap_atomic(&page);
26077
26078 ;
26079 return 0;
26080}
26081
26082_ACEOF
26083
26084
26085
26086cat - <<_ACEOF >conftest.h
26087
26088_ACEOF
26089
26090
26091 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26092 echo "obj-m := conftest.o" >build/Makefile
26093 modpost_flag=''
26094 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26095 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26097 (eval $ac_try) 2>&5
26098 ac_status=$?
26099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26100 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26102 (eval $ac_try) 2>&5
26103 ac_status=$?
26104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); }; }; then
26106
26107 { $as_echo "$as_me:$LINENO: result: yes" >&5
26108$as_echo "yes" >&6; }
26109
26110cat >>confdefs.h <<\_ACEOF
26111#define HAVE_1ARG_KMAP_ATOMIC 1
26112_ACEOF
26113
26114
26115else
26116 $as_echo "$as_me: failed program was:" >&5
26117sed 's/^/| /' conftest.$ac_ext >&5
26118
26119 { $as_echo "$as_me:$LINENO: result: no" >&5
26120$as_echo "no" >&6; }
26121
26122
26123
26124fi
26125
26126 rm -Rf build
26127
26128
26129
26130
26131 { $as_echo "$as_me:$LINENO: checking whether follow_down_one() is available" >&5
26132$as_echo_n "checking whether follow_down_one() is available... " >&6; }
26133
26134
26135cat confdefs.h - <<_ACEOF >conftest.c
26136/* confdefs.h. */
26137_ACEOF
26138cat confdefs.h >>conftest.$ac_ext
26139cat >>conftest.$ac_ext <<_ACEOF
26140/* end confdefs.h. */
26141
26142
26143 #include <linux/namei.h>
26144
26145int
26146main (void)
26147{
26148
26149 struct path *p = NULL;
26150 follow_down_one(p);
26151
26152 ;
26153 return 0;
26154}
26155
26156_ACEOF
26157
26158
26159
26160cat - <<_ACEOF >conftest.h
26161
26162_ACEOF
26163
26164
26165 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26166 echo "obj-m := conftest.o" >build/Makefile
26167 modpost_flag=''
26168 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26169 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26171 (eval $ac_try) 2>&5
26172 ac_status=$?
26173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26176 (eval $ac_try) 2>&5
26177 ac_status=$?
26178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179 (exit $ac_status); }; }; then
26180
26181 { $as_echo "$as_me:$LINENO: result: yes" >&5
26182$as_echo "yes" >&6; }
26183
26184cat >>confdefs.h <<\_ACEOF
26185#define HAVE_FOLLOW_DOWN_ONE 1
26186_ACEOF
26187
26188
26189else
26190 $as_echo "$as_me: failed program was:" >&5
26191sed 's/^/| /' conftest.$ac_ext >&5
26192
26193 { $as_echo "$as_me:$LINENO: result: no" >&5
26194$as_echo "no" >&6; }
26195
26196
26197
26198fi
26199
26200 rm -Rf build
26201
26202
26203
26204
26205 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns int" >&5
26206$as_echo_n "checking whether make_request_fn() returns int... " >&6; }
26207
26208
26209cat confdefs.h - <<_ACEOF >conftest.c
26210/* confdefs.h. */
26211_ACEOF
26212cat confdefs.h >>conftest.$ac_ext
26213cat >>conftest.$ac_ext <<_ACEOF
26214/* end confdefs.h. */
26215
26216
26217 #include <linux/blkdev.h>
26218
26219 int make_request(struct request_queue *q, struct bio *bio)
26220 {
26221 return (0);
26222 }
26223
26224int
26225main (void)
26226{
26227
26228 blk_queue_make_request(NULL, &make_request);
26229
26230 ;
26231 return 0;
26232}
26233
26234_ACEOF
26235
26236
26237
26238cat - <<_ACEOF >conftest.h
26239
26240_ACEOF
26241
26242
26243 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26244 echo "obj-m := conftest.o" >build/Makefile
26245 modpost_flag=''
26246 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26247 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26249 (eval $ac_try) 2>&5
26250 ac_status=$?
26251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26254 (eval $ac_try) 2>&5
26255 ac_status=$?
26256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); }; }; then
26258
26259 { $as_echo "$as_me:$LINENO: result: yes" >&5
26260$as_echo "yes" >&6; }
26261
26262cat >>confdefs.h <<\_ACEOF
26263#define MAKE_REQUEST_FN_RET int
26264_ACEOF
26265
26266
26267cat >>confdefs.h <<\_ACEOF
26268#define HAVE_MAKE_REQUEST_FN_RET_INT 1
26269_ACEOF
26270
26271
26272else
26273 $as_echo "$as_me: failed program was:" >&5
26274sed 's/^/| /' conftest.$ac_ext >&5
26275
26276 { $as_echo "$as_me:$LINENO: result: no" >&5
26277$as_echo "no" >&6; }
26278 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns void" >&5
26279$as_echo_n "checking whether make_request_fn() returns void... " >&6; }
26280
26281
26282cat confdefs.h - <<_ACEOF >conftest.c
26283/* confdefs.h. */
26284_ACEOF
26285cat confdefs.h >>conftest.$ac_ext
26286cat >>conftest.$ac_ext <<_ACEOF
26287/* end confdefs.h. */
26288
26289
26290 #include <linux/blkdev.h>
26291
26292 void make_request(struct request_queue *q, struct bio *bio)
26293 {
26294 return;
26295 }
26296
26297int
26298main (void)
26299{
26300
26301 blk_queue_make_request(NULL, &make_request);
26302
26303 ;
26304 return 0;
26305}
26306
26307_ACEOF
26308
26309
26310
26311cat - <<_ACEOF >conftest.h
26312
26313_ACEOF
26314
26315
26316 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26317 echo "obj-m := conftest.o" >build/Makefile
26318 modpost_flag=''
26319 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26320 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26322 (eval $ac_try) 2>&5
26323 ac_status=$?
26324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26327 (eval $ac_try) 2>&5
26328 ac_status=$?
26329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); }; }; then
26331
26332 { $as_echo "$as_me:$LINENO: result: yes" >&5
26333$as_echo "yes" >&6; }
26334
26335cat >>confdefs.h <<\_ACEOF
26336#define MAKE_REQUEST_FN_RET void
26337_ACEOF
26338
26339
26340else
26341 $as_echo "$as_me: failed program was:" >&5
26342sed 's/^/| /' conftest.$ac_ext >&5
26343
26344 { $as_echo "$as_me:$LINENO: result: no" >&5
26345$as_echo "no" >&6; }
26346 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns blk_qc_t" >&5
26347$as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
26348
26349
26350cat confdefs.h - <<_ACEOF >conftest.c
26351/* confdefs.h. */
26352_ACEOF
26353cat confdefs.h >>conftest.$ac_ext
26354cat >>conftest.$ac_ext <<_ACEOF
26355/* end confdefs.h. */
26356
26357
26358 #include <linux/blkdev.h>
26359
26360 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
26361 {
26362 return (BLK_QC_T_NONE);
26363 }
26364
26365int
26366main (void)
26367{
26368
26369 blk_queue_make_request(NULL, &make_request);
26370
26371 ;
26372 return 0;
26373}
26374
26375_ACEOF
26376
26377
26378
26379cat - <<_ACEOF >conftest.h
26380
26381_ACEOF
26382
26383
26384 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26385 echo "obj-m := conftest.o" >build/Makefile
26386 modpost_flag=''
26387 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26388 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26390 (eval $ac_try) 2>&5
26391 ac_status=$?
26392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26395 (eval $ac_try) 2>&5
26396 ac_status=$?
26397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398 (exit $ac_status); }; }; then
26399
26400 { $as_echo "$as_me:$LINENO: result: yes" >&5
26401$as_echo "yes" >&6; }
26402
26403cat >>confdefs.h <<\_ACEOF
26404#define MAKE_REQUEST_FN_RET blk_qc_t
26405_ACEOF
26406
26407
26408cat >>confdefs.h <<\_ACEOF
26409#define HAVE_MAKE_REQUEST_FN_RET_QC 1
26410_ACEOF
26411
26412
26413else
26414 $as_echo "$as_me: failed program was:" >&5
26415sed 's/^/| /' conftest.$ac_ext >&5
26416
26417 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
26418 https://github.com/zfsonlinux/zfs/issues/new" >&5
26419$as_echo "$as_me: error: no - Please file a bug report at
26420 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
26421 { (exit 1); exit 1; }; }
26422
26423
26424
26425fi
26426
26427 rm -Rf build
26428
26429
26430
26431
26432
26433fi
26434
26435 rm -Rf build
26436
26437
26438
26439
26440
26441fi
26442
26443 rm -Rf build
26444
26445
26446
26447
26448 { $as_echo "$as_me:$LINENO: checking whether 3 arg generic IO accounting symbols are available" >&5
26449$as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
26450
26451
26452
26453cat confdefs.h - <<_ACEOF >conftest.c
26454/* confdefs.h. */
26455_ACEOF
26456cat confdefs.h >>conftest.$ac_ext
26457cat >>conftest.$ac_ext <<_ACEOF
26458/* end confdefs.h. */
26459
26460
26461 #include <linux/bio.h>
26462
26463 void (*generic_start_io_acct_f)(int, unsigned long,
26464 struct hd_struct *) = &generic_start_io_acct;
26465 void (*generic_end_io_acct_f)(int, struct hd_struct *,
26466 unsigned long) = &generic_end_io_acct;
26467
26468int
26469main (void)
26470{
26471
26472 generic_start_io_acct(0, 0, NULL);
26473 generic_end_io_acct(0, NULL, 0);
26474
26475 ;
26476 return 0;
26477}
26478
26479_ACEOF
26480
26481
26482
26483cat - <<_ACEOF >conftest.h
26484
26485_ACEOF
26486
26487
26488 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26489 echo "obj-m := conftest.o" >build/Makefile
26490 modpost_flag=''
26491 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26492 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26494 (eval $ac_try) 2>&5
26495 ac_status=$?
26496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26499 (eval $ac_try) 2>&5
26500 ac_status=$?
26501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502 (exit $ac_status); }; }; then
26503 rc=0
26504else
26505 $as_echo "$as_me: failed program was:" >&5
26506sed 's/^/| /' conftest.$ac_ext >&5
26507 rc=1
26508
26509
26510fi
26511
26512 rm -Rf build
26513
26514
26515 if test $rc -ne 0; then :
26516
26517 { $as_echo "$as_me:$LINENO: result: no" >&5
26518$as_echo "no" >&6; }
26519
26520 else
26521 if test "x$enable_linux_builtin" != xyes; then
26522
26523 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
26524 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
26525 rc=$?
26526 if test $rc -ne 0; then
26527 export=0
26528 for file in block/bio.c; do
26529 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
26530 "$LINUX/$file" 2>/dev/null
26531 rc=$?
26532 if test $rc -eq 0; then
26533 export=1
26534 break;
26535 fi
26536 done
26537 if test $export -eq 0; then :
26538 rc=1
26539 else :
26540 rc=0
26541 fi
26542 else :
26543 rc=0
26544 fi
26545
26546 fi
26547 if test $rc -ne 0; then :
26548
26549 { $as_echo "$as_me:$LINENO: result: no" >&5
26550$as_echo "no" >&6; }
26551
26552 else :
26553
26554 { $as_echo "$as_me:$LINENO: result: yes" >&5
26555$as_echo "yes" >&6; }
26556
26557cat >>confdefs.h <<\_ACEOF
26558#define HAVE_GENERIC_IO_ACCT_3ARG 1
26559_ACEOF
26560
26561
26562 fi
26563 fi
26564
26565
26566
26567 { $as_echo "$as_me:$LINENO: checking whether 4 arg generic IO accounting symbols are available" >&5
26568$as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
26569
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/bio.h>
26581
26582 void (*generic_start_io_acct_f)(struct request_queue *, int,
26583 unsigned long, struct hd_struct *) = &generic_start_io_acct;
26584 void (*generic_end_io_acct_f)(struct request_queue *, int,
26585 struct hd_struct *, unsigned long) = &generic_end_io_acct;
26586
26587int
26588main (void)
26589{
26590
26591 generic_start_io_acct(NULL, 0, 0, NULL);
26592 generic_end_io_acct(NULL, 0, NULL, 0);
26593
26594 ;
26595 return 0;
26596}
26597
26598_ACEOF
26599
26600
26601
26602cat - <<_ACEOF >conftest.h
26603
26604_ACEOF
26605
26606
26607 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26608 echo "obj-m := conftest.o" >build/Makefile
26609 modpost_flag=''
26610 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26611 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26613 (eval $ac_try) 2>&5
26614 ac_status=$?
26615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26616 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26618 (eval $ac_try) 2>&5
26619 ac_status=$?
26620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621 (exit $ac_status); }; }; then
26622 rc=0
26623else
26624 $as_echo "$as_me: failed program was:" >&5
26625sed 's/^/| /' conftest.$ac_ext >&5
26626 rc=1
26627
26628
26629fi
26630
26631 rm -Rf build
26632
26633
26634 if test $rc -ne 0; then :
26635
26636 { $as_echo "$as_me:$LINENO: result: no" >&5
26637$as_echo "no" >&6; }
26638
26639 else
26640 if test "x$enable_linux_builtin" != xyes; then
26641
26642 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
26643 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
26644 rc=$?
26645 if test $rc -ne 0; then
26646 export=0
26647 for file in block/bio.c; do
26648 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
26649 "$LINUX/$file" 2>/dev/null
26650 rc=$?
26651 if test $rc -eq 0; then
26652 export=1
26653 break;
26654 fi
26655 done
26656 if test $export -eq 0; then :
26657 rc=1
26658 else :
26659 rc=0
26660 fi
26661 else :
26662 rc=0
26663 fi
26664
26665 fi
26666 if test $rc -ne 0; then :
26667
26668 { $as_echo "$as_me:$LINENO: result: no" >&5
26669$as_echo "no" >&6; }
26670
26671 else :
26672
26673 { $as_echo "$as_me:$LINENO: result: yes" >&5
26674$as_echo "yes" >&6; }
26675
26676cat >>confdefs.h <<\_ACEOF
26677#define HAVE_GENERIC_IO_ACCT_4ARG 1
26678_ACEOF
26679
26680
26681 fi
26682 fi
26683
26684
26685
26686 { $as_echo "$as_me:$LINENO: checking whether asm/fpu/api.h exists" >&5
26687$as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
26688
26689
26690cat confdefs.h - <<_ACEOF >conftest.c
26691/* confdefs.h. */
26692_ACEOF
26693cat confdefs.h >>conftest.$ac_ext
26694cat >>conftest.$ac_ext <<_ACEOF
26695/* end confdefs.h. */
26696
26697
26698 #include <linux/kernel.h>
26699 #include <asm/fpu/api.h>
26700
26701int
26702main (void)
26703{
26704
26705 __kernel_fpu_begin();
26706
26707 ;
26708 return 0;
26709}
26710
26711_ACEOF
26712
26713
26714
26715cat - <<_ACEOF >conftest.h
26716
26717_ACEOF
26718
26719
26720 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26721 echo "obj-m := conftest.o" >build/Makefile
26722 modpost_flag=''
26723 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26724 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26726 (eval $ac_try) 2>&5
26727 ac_status=$?
26728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26731 (eval $ac_try) 2>&5
26732 ac_status=$?
26733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734 (exit $ac_status); }; }; then
26735
26736 { $as_echo "$as_me:$LINENO: result: yes" >&5
26737$as_echo "yes" >&6; }
26738
26739cat >>confdefs.h <<\_ACEOF
26740#define HAVE_FPU_API_H 1
26741_ACEOF
26742
26743
26744else
26745 $as_echo "$as_me: failed program was:" >&5
26746sed 's/^/| /' conftest.$ac_ext >&5
26747
26748 { $as_echo "$as_me:$LINENO: result: no" >&5
26749$as_echo "no" >&6; }
26750
26751
26752
26753fi
26754
26755 rm -Rf build
26756
26757
26758
26759
26760 { $as_echo "$as_me:$LINENO: checking whether i_(uid|gid)_(read|write) exist" >&5
26761$as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
26762
26763
26764cat confdefs.h - <<_ACEOF >conftest.c
26765/* confdefs.h. */
26766_ACEOF
26767cat confdefs.h >>conftest.$ac_ext
26768cat >>conftest.$ac_ext <<_ACEOF
26769/* end confdefs.h. */
26770
26771
26772 #include <linux/fs.h>
26773
26774int
26775main (void)
26776{
26777
26778 struct inode *ip = NULL;
26779 (void) i_uid_read(ip);
26780
26781 ;
26782 return 0;
26783}
26784
26785_ACEOF
26786
26787
26788
26789cat - <<_ACEOF >conftest.h
26790
26791_ACEOF
26792
26793
26794 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26795 echo "obj-m := conftest.o" >build/Makefile
26796 modpost_flag=''
26797 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26798 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26800 (eval $ac_try) 2>&5
26801 ac_status=$?
26802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26805 (eval $ac_try) 2>&5
26806 ac_status=$?
26807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808 (exit $ac_status); }; }; then
26809
26810 { $as_echo "$as_me:$LINENO: result: yes" >&5
26811$as_echo "yes" >&6; }
26812
26813cat >>confdefs.h <<\_ACEOF
26814#define HAVE_KUID_HELPERS 1
26815_ACEOF
26816
26817
26818else
26819 $as_echo "$as_me: failed program was:" >&5
26820sed 's/^/| /' conftest.$ac_ext >&5
26821
26822 { $as_echo "$as_me:$LINENO: result: no" >&5
26823$as_echo "no" >&6; }
26824
26825
26826
26827fi
26828
26829 rm -Rf build
26830
26831
26832
26833
26834 { $as_echo "$as_me:$LINENO: checking whether module_param_call() is hardened" >&5
26835$as_echo_n "checking whether module_param_call() is hardened... " >&6; }
26836
26837
26838cat confdefs.h - <<_ACEOF >conftest.c
26839/* confdefs.h. */
26840_ACEOF
26841cat confdefs.h >>conftest.$ac_ext
26842cat >>conftest.$ac_ext <<_ACEOF
26843/* end confdefs.h. */
26844
26845
26846 #include <linux/module.h>
26847 #include <linux/moduleparam.h>
26848
26849 int param_get(char *b, const struct kernel_param *kp)
26850 {
26851 return (0);
26852 }
26853
26854 int param_set(const char *b, const struct kernel_param *kp)
26855 {
26856 return (0);
26857 }
26858
26859 module_param_call(p, param_set, param_get, NULL, 0644);
26860
26861int
26862main (void)
26863{
26864
26865
26866 ;
26867 return 0;
26868}
26869
26870_ACEOF
26871
26872
26873
26874cat - <<_ACEOF >conftest.h
26875
26876_ACEOF
26877
26878
26879 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26880 echo "obj-m := conftest.o" >build/Makefile
26881 modpost_flag=''
26882 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26883 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26885 (eval $ac_try) 2>&5
26886 ac_status=$?
26887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26890 (eval $ac_try) 2>&5
26891 ac_status=$?
26892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893 (exit $ac_status); }; }; then
26894
26895 { $as_echo "$as_me:$LINENO: result: yes" >&5
26896$as_echo "yes" >&6; }
26897
26898cat >>confdefs.h <<\_ACEOF
26899#define MODULE_PARAM_CALL_CONST 1
26900_ACEOF
26901
26902
26903else
26904 $as_echo "$as_me: failed program was:" >&5
26905sed 's/^/| /' conftest.$ac_ext >&5
26906
26907 { $as_echo "$as_me:$LINENO: result: no" >&5
26908$as_echo "no" >&6; }
26909
26910
26911
26912fi
26913
26914 rm -Rf build
26915
26916
26917
26918
26919 { $as_echo "$as_me:$LINENO: checking whether iops->rename() wants flags" >&5
26920$as_echo_n "checking whether iops->rename() wants flags... " >&6; }
26921
26922
26923cat confdefs.h - <<_ACEOF >conftest.c
26924/* confdefs.h. */
26925_ACEOF
26926cat confdefs.h >>conftest.$ac_ext
26927cat >>conftest.$ac_ext <<_ACEOF
26928/* end confdefs.h. */
26929
26930
26931 #include <linux/fs.h>
26932 int rename_fn(struct inode *sip, struct dentry *sdp,
26933 struct inode *tip, struct dentry *tdp,
26934 unsigned int flags) { return 0; }
26935
26936 static const struct inode_operations
26937 iops __attribute__ ((unused)) = {
26938 .rename = rename_fn,
26939 };
26940
26941int
26942main (void)
26943{
26944
26945
26946 ;
26947 return 0;
26948}
26949
26950_ACEOF
26951
26952
26953
26954cat - <<_ACEOF >conftest.h
26955
26956_ACEOF
26957
26958
26959 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26960 echo "obj-m := conftest.o" >build/Makefile
26961 modpost_flag=''
26962 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26963 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26965 (eval $ac_try) 2>&5
26966 ac_status=$?
26967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26968 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26970 (eval $ac_try) 2>&5
26971 ac_status=$?
26972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); }; }; then
26974
26975 { $as_echo "$as_me:$LINENO: result: yes" >&5
26976$as_echo "yes" >&6; }
26977
26978cat >>confdefs.h <<\_ACEOF
26979#define HAVE_RENAME_WANTS_FLAGS 1
26980_ACEOF
26981
26982
26983else
26984 $as_echo "$as_me: failed program was:" >&5
26985sed 's/^/| /' conftest.$ac_ext >&5
26986
26987 { $as_echo "$as_me:$LINENO: result: no" >&5
26988$as_echo "no" >&6; }
26989
26990
26991
26992fi
26993
26994 rm -Rf build
26995
26996
26997
26998
26999 { $as_echo "$as_me:$LINENO: checking whether generic_setxattr() exists" >&5
27000$as_echo_n "checking whether generic_setxattr() exists... " >&6; }
27001
27002
27003cat confdefs.h - <<_ACEOF >conftest.c
27004/* confdefs.h. */
27005_ACEOF
27006cat confdefs.h >>conftest.$ac_ext
27007cat >>conftest.$ac_ext <<_ACEOF
27008/* end confdefs.h. */
27009
27010
27011 #include <linux/fs.h>
27012 #include <linux/xattr.h>
27013
27014 static const struct inode_operations
27015 iops __attribute__ ((unused)) = {
27016 .setxattr = generic_setxattr
27017 };
27018
27019int
27020main (void)
27021{
27022
27023
27024 ;
27025 return 0;
27026}
27027
27028_ACEOF
27029
27030
27031
27032cat - <<_ACEOF >conftest.h
27033
27034_ACEOF
27035
27036
27037 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27038 echo "obj-m := conftest.o" >build/Makefile
27039 modpost_flag=''
27040 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27041 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27043 (eval $ac_try) 2>&5
27044 ac_status=$?
27045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27048 (eval $ac_try) 2>&5
27049 ac_status=$?
27050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); }; }; then
27052
27053 { $as_echo "$as_me:$LINENO: result: yes" >&5
27054$as_echo "yes" >&6; }
27055
27056cat >>confdefs.h <<\_ACEOF
27057#define HAVE_GENERIC_SETXATTR 1
27058_ACEOF
27059
27060
27061else
27062 $as_echo "$as_me: failed program was:" >&5
27063sed 's/^/| /' conftest.$ac_ext >&5
27064
27065 { $as_echo "$as_me:$LINENO: result: no" >&5
27066$as_echo "no" >&6; }
27067
27068
27069
27070fi
27071
27072 rm -Rf build
27073
27074
27075
27076 { $as_echo "$as_me:$LINENO: checking whether current_time() exists" >&5
27077$as_echo_n "checking whether current_time() exists... " >&6; }
27078
27079
27080
27081cat confdefs.h - <<_ACEOF >conftest.c
27082/* confdefs.h. */
27083_ACEOF
27084cat confdefs.h >>conftest.$ac_ext
27085cat >>conftest.$ac_ext <<_ACEOF
27086/* end confdefs.h. */
27087
27088
27089 #include <linux/fs.h>
27090
27091int
27092main (void)
27093{
27094
27095 struct inode ip;
27096 struct timespec now __attribute__ ((unused));
27097
27098 now = current_time(&ip);
27099
27100 ;
27101 return 0;
27102}
27103
27104_ACEOF
27105
27106
27107
27108cat - <<_ACEOF >conftest.h
27109
27110_ACEOF
27111
27112
27113 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27114 echo "obj-m := conftest.o" >build/Makefile
27115 modpost_flag=''
27116 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27117 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27119 (eval $ac_try) 2>&5
27120 ac_status=$?
27121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27124 (eval $ac_try) 2>&5
27125 ac_status=$?
27126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127 (exit $ac_status); }; }; then
27128 rc=0
27129else
27130 $as_echo "$as_me: failed program was:" >&5
27131sed 's/^/| /' conftest.$ac_ext >&5
27132 rc=1
27133
27134
27135fi
27136
27137 rm -Rf build
27138
27139
27140 if test $rc -ne 0; then :
27141
27142 { $as_echo "$as_me:$LINENO: result: no" >&5
27143$as_echo "no" >&6; }
27144
27145 else
27146 if test "x$enable_linux_builtin" != xyes; then
27147
27148 grep -q -E '[[:space:]]current_time[[:space:]]' \
27149 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
27150 rc=$?
27151 if test $rc -ne 0; then
27152 export=0
27153 for file in fs/inode.c; do
27154 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
27155 "$LINUX/$file" 2>/dev/null
27156 rc=$?
27157 if test $rc -eq 0; then
27158 export=1
27159 break;
27160 fi
27161 done
27162 if test $export -eq 0; then :
27163 rc=1
27164 else :
27165 rc=0
27166 fi
27167 else :
27168 rc=0
27169 fi
27170
27171 fi
27172 if test $rc -ne 0; then :
27173
27174 { $as_echo "$as_me:$LINENO: result: no" >&5
27175$as_echo "no" >&6; }
27176
27177 else :
27178
27179 { $as_echo "$as_me:$LINENO: result: yes" >&5
27180$as_echo "yes" >&6; }
27181
27182cat >>confdefs.h <<\_ACEOF
27183#define HAVE_CURRENT_TIME 1
27184_ACEOF
27185
27186
27187 fi
27188 fi
27189
27190
27191
27192 { $as_echo "$as_me:$LINENO: checking whether to use vm_node_stat based fn's" >&5
27193$as_echo_n "checking whether to use vm_node_stat based fn's... " >&6; }
27194
27195
27196cat confdefs.h - <<_ACEOF >conftest.c
27197/* confdefs.h. */
27198_ACEOF
27199cat confdefs.h >>conftest.$ac_ext
27200cat >>conftest.$ac_ext <<_ACEOF
27201/* end confdefs.h. */
27202
27203
27204 #include <linux/mm.h>
27205 #include <linux/vmstat.h>
27206
27207int
27208main (void)
27209{
27210
27211 int a __attribute__ ((unused)) = NR_VM_NODE_STAT_ITEMS;
27212 long x __attribute__ ((unused)) =
27213 atomic_long_read(&vm_node_stat[0]);
27214 (void) global_node_page_state(0);
27215
27216 ;
27217 return 0;
27218}
27219
27220_ACEOF
27221
27222
27223
27224cat - <<_ACEOF >conftest.h
27225
27226_ACEOF
27227
27228
27229 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27230 echo "obj-m := conftest.o" >build/Makefile
27231 modpost_flag=''
27232 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27233 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27235 (eval $ac_try) 2>&5
27236 ac_status=$?
27237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27240 (eval $ac_try) 2>&5
27241 ac_status=$?
27242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243 (exit $ac_status); }; }; then
27244
27245 { $as_echo "$as_me:$LINENO: result: yes" >&5
27246$as_echo "yes" >&6; }
27247
27248cat >>confdefs.h <<\_ACEOF
27249#define ZFS_GLOBAL_NODE_PAGE_STATE 1
27250_ACEOF
27251
27252
27253else
27254 $as_echo "$as_me: failed program was:" >&5
27255sed 's/^/| /' conftest.$ac_ext >&5
27256
27257 { $as_echo "$as_me:$LINENO: result: no" >&5
27258$as_echo "no" >&6; }
27259
27260
27261
27262fi
27263
27264 rm -Rf build
27265
27266
27267
27268
27269 if test "$LINUX_OBJ" != "$LINUX"; then
27270
27271 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
27272
27273fi
27274
27275
27276
27277
27278 KERNELCPPFLAGS="$KERNELCPPFLAGS -std=gnu99"
27279 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-declaration-after-statement"
27280 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
27281 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
27282 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
27283 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
27284
27285
27286 ;;
27287 user)
27288
27289
27290# Check whether --with-mounthelperdir was given.
27291if test "${with_mounthelperdir+set}" = set; then
27292 withval=$with_mounthelperdir; mounthelperdir=$withval
27293else
27294 mounthelperdir=/sbin
27295fi
27296
27297
27298
27299
27300
27301 { $as_echo "$as_me:$LINENO: checking for udev directories" >&5
27302$as_echo_n "checking for udev directories... " >&6; }
27303
27304# Check whether --with-udevdir was given.
27305if test "${with_udevdir+set}" = set; then
27306 withval=$with_udevdir; udevdir=$withval
27307else
27308 udevdir=check
27309fi
27310
27311
27312 if test "x$udevdir" = xcheck; then
27313
27314 path1=/lib/udev
27315 path2=/usr/lib/udev
27316 default=$path2
27317
27318 if test -d "$path1"; then
27319 udevdir="$path1"
27320else
27321
27322 if test -d "$path2"; then
27323 udevdir="$path2"
27324else
27325 udevdir="$default"
27326fi
27327
27328
27329fi
27330
27331
27332fi
27333
27334
27335
27336# Check whether --with-udevruledir was given.
27337if test "${with_udevruledir+set}" = set; then
27338 withval=$with_udevruledir; udevruledir=$withval
27339else
27340 udevruledir="${udevdir}/rules.d"
27341fi
27342
27343
27344
27345
27346 { $as_echo "$as_me:$LINENO: result: $udevdir;$udevruledir" >&5
27347$as_echo "$udevdir;$udevruledir" >&6; }
27348
27349
27350 # Check whether --enable-systemd was given.
27351if test "${enable_systemd+set}" = set; then
27352 enableval=$enable_systemd;
27353else
27354 enable_systemd=yes
27355fi
27356
27357
27358
27359# Check whether --with-systemdunitdir was given.
27360if test "${with_systemdunitdir+set}" = set; then
27361 withval=$with_systemdunitdir; systemdunitdir=$withval
27362else
27363 systemdunitdir=/usr/lib/systemd/system
27364fi
27365
27366
27367
27368# Check whether --with-systemdpresetdir was given.
27369if test "${with_systemdpresetdir+set}" = set; then
27370 withval=$with_systemdpresetdir; systemdpresetdir=$withval
27371else
27372 systemdpresetdir=/usr/lib/systemd/system-preset
27373fi
27374
27375
27376
27377# Check whether --with-systemdmodulesloaddir was given.
27378if test "${with_systemdmodulesloaddir+set}" = set; then
27379 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
27380else
27381 systemdmodulesloaddir=/usr/lib/modules-load.d
27382fi
27383
27384
27385
27386 if test "x$enable_systemd" = xyes; then
27387
27388 ZFS_INIT_SYSTEMD=systemd
27389 ZFS_MODULE_LOAD=modules-load.d
27390 modulesloaddir=$systemdmodulesloaddir
27391
27392fi
27393
27394
27395
27396
27397
27398
27399
27400
27401
27402 # Check whether --enable-sysvinit was given.
27403if test "${enable_sysvinit+set}" = set; then
27404 enableval=$enable_sysvinit;
27405else
27406 enable_sysvinit=yes
27407fi
27408
27409
27410 if test "x$enable_sysvinit" = xyes; then
27411 ZFS_INIT_SYSV=init.d
27412fi
27413
27414
27415
27416
27417
27418 { $as_echo "$as_me:$LINENO: checking for dracut directory" >&5
27419$as_echo_n "checking for dracut directory... " >&6; }
27420
27421# Check whether --with-dracutdir was given.
27422if test "${with_dracutdir+set}" = set; then
27423 withval=$with_dracutdir; dracutdir=$withval
27424else
27425 dracutdir=check
27426fi
27427
27428
27429 if test "x$dracutdir" = xcheck; then
27430
27431 path1=/usr/share/dracut
27432 path2=/usr/lib/dracut
27433 default=$path2
27434
27435 if test -d "$path1"; then
27436 dracutdir="$path1"
27437else
27438
27439 if test -d "$path2"; then
27440 dracutdir="$path2"
27441else
27442 dracutdir="$default"
27443fi
27444
27445
27446fi
27447
27448
27449fi
27450
27451
27452
27453 { $as_echo "$as_me:$LINENO: result: $dracutdir" >&5
27454$as_echo "$dracutdir" >&6; }
27455
27456
27457 ZLIB=
27458
27459 if test "${ac_cv_header_zlib_h+set}" = set; then
27460 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
27461$as_echo_n "checking for zlib.h... " >&6; }
27462if test "${ac_cv_header_zlib_h+set}" = set; then
27463 $as_echo_n "(cached) " >&6
27464fi
27465{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27466$as_echo "$ac_cv_header_zlib_h" >&6; }
27467else
27468 # Is the header compilable?
27469{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
27470$as_echo_n "checking zlib.h usability... " >&6; }
27471cat >conftest.$ac_ext <<_ACEOF
27472/* confdefs.h. */
27473_ACEOF
27474cat confdefs.h >>conftest.$ac_ext
27475cat >>conftest.$ac_ext <<_ACEOF
27476/* end confdefs.h. */
27477$ac_includes_default
27478#include <zlib.h>
27479_ACEOF
27480rm -f conftest.$ac_objext
27481if { (ac_try="$ac_compile"
27482case "(($ac_try" in
27483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27484 *) ac_try_echo=$ac_try;;
27485esac
27486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27487$as_echo "$ac_try_echo") >&5
27488 (eval "$ac_compile") 2>conftest.er1
27489 ac_status=$?
27490 grep -v '^ *+' conftest.er1 >conftest.err
27491 rm -f conftest.er1
27492 cat conftest.err >&5
27493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); } && {
27495 test -z "$ac_c_werror_flag" ||
27496 test ! -s conftest.err
27497 } && test -s conftest.$ac_objext; then
27498 ac_header_compiler=yes
27499else
27500 $as_echo "$as_me: failed program was:" >&5
27501sed 's/^/| /' conftest.$ac_ext >&5
27502
27503 ac_header_compiler=no
27504fi
27505
27506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27507{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27508$as_echo "$ac_header_compiler" >&6; }
27509
27510# Is the header present?
27511{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
27512$as_echo_n "checking zlib.h presence... " >&6; }
27513cat >conftest.$ac_ext <<_ACEOF
27514/* confdefs.h. */
27515_ACEOF
27516cat confdefs.h >>conftest.$ac_ext
27517cat >>conftest.$ac_ext <<_ACEOF
27518/* end confdefs.h. */
27519#include <zlib.h>
27520_ACEOF
27521if { (ac_try="$ac_cpp conftest.$ac_ext"
27522case "(($ac_try" in
27523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27524 *) ac_try_echo=$ac_try;;
27525esac
27526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27527$as_echo "$ac_try_echo") >&5
27528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27529 ac_status=$?
27530 grep -v '^ *+' conftest.er1 >conftest.err
27531 rm -f conftest.er1
27532 cat conftest.err >&5
27533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); } >/dev/null && {
27535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27536 test ! -s conftest.err
27537 }; then
27538 ac_header_preproc=yes
27539else
27540 $as_echo "$as_me: failed program was:" >&5
27541sed 's/^/| /' conftest.$ac_ext >&5
27542
27543 ac_header_preproc=no
27544fi
27545
27546rm -f conftest.err conftest.$ac_ext
27547{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27548$as_echo "$ac_header_preproc" >&6; }
27549
27550# So? What about this header?
27551case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27552 yes:no: )
27553 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
27554$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27555 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
27556$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
27557 ac_header_preproc=yes
27558 ;;
27559 no:yes:* )
27560 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
27561$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
27562 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
27563$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
27564 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
27565$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
27566 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
27567$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
27568 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
27569$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
27570 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
27571$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
27572
27573 ;;
27574esac
27575{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
27576$as_echo_n "checking for zlib.h... " >&6; }
27577if test "${ac_cv_header_zlib_h+set}" = set; then
27578 $as_echo_n "(cached) " >&6
27579else
27580 ac_cv_header_zlib_h=$ac_header_preproc
27581fi
27582{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27583$as_echo "$ac_cv_header_zlib_h" >&6; }
27584
27585fi
27586if test "x$ac_cv_header_zlib_h" = x""yes; then
27587 :
27588else
27589 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27591{ { $as_echo "$as_me:$LINENO: error:
27592 *** zlib.h missing, zlib-devel package required
27593See \`config.log' for more details." >&5
27594$as_echo "$as_me: error:
27595 *** zlib.h missing, zlib-devel package required
27596See \`config.log' for more details." >&2;}
27597 { (exit 1); exit 1; }; }; }
27598fi
27599
27600
27601
27602 { $as_echo "$as_me:$LINENO: checking for library containing compress2" >&5
27603$as_echo_n "checking for library containing compress2... " >&6; }
27604if test "${ac_cv_search_compress2+set}" = set; then
27605 $as_echo_n "(cached) " >&6
27606else
27607 ac_func_search_save_LIBS=$LIBS
27608cat >conftest.$ac_ext <<_ACEOF
27609/* confdefs.h. */
27610_ACEOF
27611cat confdefs.h >>conftest.$ac_ext
27612cat >>conftest.$ac_ext <<_ACEOF
27613/* end confdefs.h. */
27614
27615/* Override any GCC internal prototype to avoid an error.
27616 Use char because int might match the return type of a GCC
27617 builtin and then its argument prototype would still apply. */
27618#ifdef __cplusplus
27619extern "C"
27620#endif
27621char compress2 ();
27622int
27623main ()
27624{
27625return compress2 ();
27626 ;
27627 return 0;
27628}
27629_ACEOF
27630for ac_lib in '' z; do
27631 if test -z "$ac_lib"; then
27632 ac_res="none required"
27633 else
27634 ac_res=-l$ac_lib
27635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27636 fi
27637 rm -f conftest.$ac_objext conftest$ac_exeext
27638if { (ac_try="$ac_link"
27639case "(($ac_try" in
27640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27641 *) ac_try_echo=$ac_try;;
27642esac
27643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27644$as_echo "$ac_try_echo") >&5
27645 (eval "$ac_link") 2>conftest.er1
27646 ac_status=$?
27647 grep -v '^ *+' conftest.er1 >conftest.err
27648 rm -f conftest.er1
27649 cat conftest.err >&5
27650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651 (exit $ac_status); } && {
27652 test -z "$ac_c_werror_flag" ||
27653 test ! -s conftest.err
27654 } && test -s conftest$ac_exeext && {
27655 test "$cross_compiling" = yes ||
27656 $as_test_x conftest$ac_exeext
27657 }; then
27658 ac_cv_search_compress2=$ac_res
27659else
27660 $as_echo "$as_me: failed program was:" >&5
27661sed 's/^/| /' conftest.$ac_ext >&5
27662
27663
27664fi
27665
27666rm -rf conftest.dSYM
27667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27668 conftest$ac_exeext
27669 if test "${ac_cv_search_compress2+set}" = set; then
27670 break
27671fi
27672done
27673if test "${ac_cv_search_compress2+set}" = set; then
27674 :
27675else
27676 ac_cv_search_compress2=no
27677fi
27678rm conftest.$ac_ext
27679LIBS=$ac_func_search_save_LIBS
27680fi
27681{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_compress2" >&5
27682$as_echo "$ac_cv_search_compress2" >&6; }
27683ac_res=$ac_cv_search_compress2
27684if test "$ac_res" != no; then
27685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27686
27687else
27688 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27690{ { $as_echo "$as_me:$LINENO: error:
27691 *** compress2() missing, zlib-devel package required
27692See \`config.log' for more details." >&5
27693$as_echo "$as_me: error:
27694 *** compress2() missing, zlib-devel package required
27695See \`config.log' for more details." >&2;}
27696 { (exit 1); exit 1; }; }; }
27697fi
27698
27699
27700 { $as_echo "$as_me:$LINENO: checking for library containing uncompress" >&5
27701$as_echo_n "checking for library containing uncompress... " >&6; }
27702if test "${ac_cv_search_uncompress+set}" = set; then
27703 $as_echo_n "(cached) " >&6
27704else
27705 ac_func_search_save_LIBS=$LIBS
27706cat >conftest.$ac_ext <<_ACEOF
27707/* confdefs.h. */
27708_ACEOF
27709cat confdefs.h >>conftest.$ac_ext
27710cat >>conftest.$ac_ext <<_ACEOF
27711/* end confdefs.h. */
27712
27713/* Override any GCC internal prototype to avoid an error.
27714 Use char because int might match the return type of a GCC
27715 builtin and then its argument prototype would still apply. */
27716#ifdef __cplusplus
27717extern "C"
27718#endif
27719char uncompress ();
27720int
27721main ()
27722{
27723return uncompress ();
27724 ;
27725 return 0;
27726}
27727_ACEOF
27728for ac_lib in '' z; do
27729 if test -z "$ac_lib"; then
27730 ac_res="none required"
27731 else
27732 ac_res=-l$ac_lib
27733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27734 fi
27735 rm -f conftest.$ac_objext conftest$ac_exeext
27736if { (ac_try="$ac_link"
27737case "(($ac_try" in
27738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27739 *) ac_try_echo=$ac_try;;
27740esac
27741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27742$as_echo "$ac_try_echo") >&5
27743 (eval "$ac_link") 2>conftest.er1
27744 ac_status=$?
27745 grep -v '^ *+' conftest.er1 >conftest.err
27746 rm -f conftest.er1
27747 cat conftest.err >&5
27748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27749 (exit $ac_status); } && {
27750 test -z "$ac_c_werror_flag" ||
27751 test ! -s conftest.err
27752 } && test -s conftest$ac_exeext && {
27753 test "$cross_compiling" = yes ||
27754 $as_test_x conftest$ac_exeext
27755 }; then
27756 ac_cv_search_uncompress=$ac_res
27757else
27758 $as_echo "$as_me: failed program was:" >&5
27759sed 's/^/| /' conftest.$ac_ext >&5
27760
27761
27762fi
27763
27764rm -rf conftest.dSYM
27765rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27766 conftest$ac_exeext
27767 if test "${ac_cv_search_uncompress+set}" = set; then
27768 break
27769fi
27770done
27771if test "${ac_cv_search_uncompress+set}" = set; then
27772 :
27773else
27774 ac_cv_search_uncompress=no
27775fi
27776rm conftest.$ac_ext
27777LIBS=$ac_func_search_save_LIBS
27778fi
27779{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_uncompress" >&5
27780$as_echo "$ac_cv_search_uncompress" >&6; }
27781ac_res=$ac_cv_search_uncompress
27782if test "$ac_res" != no; then
27783 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27784
27785else
27786 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27788{ { $as_echo "$as_me:$LINENO: error:
27789 *** uncompress() missing, zlib-devel package required
27790See \`config.log' for more details." >&5
27791$as_echo "$as_me: error:
27792 *** uncompress() missing, zlib-devel package required
27793See \`config.log' for more details." >&2;}
27794 { (exit 1); exit 1; }; }; }
27795fi
27796
27797
27798 { $as_echo "$as_me:$LINENO: checking for library containing crc32" >&5
27799$as_echo_n "checking for library containing crc32... " >&6; }
27800if test "${ac_cv_search_crc32+set}" = set; then
27801 $as_echo_n "(cached) " >&6
27802else
27803 ac_func_search_save_LIBS=$LIBS
27804cat >conftest.$ac_ext <<_ACEOF
27805/* confdefs.h. */
27806_ACEOF
27807cat confdefs.h >>conftest.$ac_ext
27808cat >>conftest.$ac_ext <<_ACEOF
27809/* end confdefs.h. */
27810
27811/* Override any GCC internal prototype to avoid an error.
27812 Use char because int might match the return type of a GCC
27813 builtin and then its argument prototype would still apply. */
27814#ifdef __cplusplus
27815extern "C"
27816#endif
27817char crc32 ();
27818int
27819main ()
27820{
27821return crc32 ();
27822 ;
27823 return 0;
27824}
27825_ACEOF
27826for ac_lib in '' z; do
27827 if test -z "$ac_lib"; then
27828 ac_res="none required"
27829 else
27830 ac_res=-l$ac_lib
27831 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27832 fi
27833 rm -f conftest.$ac_objext conftest$ac_exeext
27834if { (ac_try="$ac_link"
27835case "(($ac_try" in
27836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27837 *) ac_try_echo=$ac_try;;
27838esac
27839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27840$as_echo "$ac_try_echo") >&5
27841 (eval "$ac_link") 2>conftest.er1
27842 ac_status=$?
27843 grep -v '^ *+' conftest.er1 >conftest.err
27844 rm -f conftest.er1
27845 cat conftest.err >&5
27846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847 (exit $ac_status); } && {
27848 test -z "$ac_c_werror_flag" ||
27849 test ! -s conftest.err
27850 } && test -s conftest$ac_exeext && {
27851 test "$cross_compiling" = yes ||
27852 $as_test_x conftest$ac_exeext
27853 }; then
27854 ac_cv_search_crc32=$ac_res
27855else
27856 $as_echo "$as_me: failed program was:" >&5
27857sed 's/^/| /' conftest.$ac_ext >&5
27858
27859
27860fi
27861
27862rm -rf conftest.dSYM
27863rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27864 conftest$ac_exeext
27865 if test "${ac_cv_search_crc32+set}" = set; then
27866 break
27867fi
27868done
27869if test "${ac_cv_search_crc32+set}" = set; then
27870 :
27871else
27872 ac_cv_search_crc32=no
27873fi
27874rm conftest.$ac_ext
27875LIBS=$ac_func_search_save_LIBS
27876fi
27877{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_crc32" >&5
27878$as_echo "$ac_cv_search_crc32" >&6; }
27879ac_res=$ac_cv_search_crc32
27880if test "$ac_res" != no; then
27881 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27882
27883else
27884 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27886{ { $as_echo "$as_me:$LINENO: error:
27887 *** crc32() missing, zlib-devel package required
27888See \`config.log' for more details." >&5
27889$as_echo "$as_me: error:
27890 *** crc32() missing, zlib-devel package required
27891See \`config.log' for more details." >&2;}
27892 { (exit 1); exit 1; }; }; }
27893fi
27894
27895
27896 ZLIB="-lz"
27897
27898
27899cat >>confdefs.h <<\_ACEOF
27900#define HAVE_ZLIB 1
27901_ACEOF
27902
27903
27904
27905 LIBUUID=
27906
27907 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
27908 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
27909$as_echo_n "checking for uuid/uuid.h... " >&6; }
27910if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
27911 $as_echo_n "(cached) " >&6
27912fi
27913{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
27914$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
27915else
27916 # Is the header compilable?
27917{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
27918$as_echo_n "checking uuid/uuid.h usability... " >&6; }
27919cat >conftest.$ac_ext <<_ACEOF
27920/* confdefs.h. */
27921_ACEOF
27922cat confdefs.h >>conftest.$ac_ext
27923cat >>conftest.$ac_ext <<_ACEOF
27924/* end confdefs.h. */
27925$ac_includes_default
27926#include <uuid/uuid.h>
27927_ACEOF
27928rm -f conftest.$ac_objext
27929if { (ac_try="$ac_compile"
27930case "(($ac_try" in
27931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27932 *) ac_try_echo=$ac_try;;
27933esac
27934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27935$as_echo "$ac_try_echo") >&5
27936 (eval "$ac_compile") 2>conftest.er1
27937 ac_status=$?
27938 grep -v '^ *+' conftest.er1 >conftest.err
27939 rm -f conftest.er1
27940 cat conftest.err >&5
27941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942 (exit $ac_status); } && {
27943 test -z "$ac_c_werror_flag" ||
27944 test ! -s conftest.err
27945 } && test -s conftest.$ac_objext; then
27946 ac_header_compiler=yes
27947else
27948 $as_echo "$as_me: failed program was:" >&5
27949sed 's/^/| /' conftest.$ac_ext >&5
27950
27951 ac_header_compiler=no
27952fi
27953
27954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27955{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27956$as_echo "$ac_header_compiler" >&6; }
27957
27958# Is the header present?
27959{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
27960$as_echo_n "checking uuid/uuid.h presence... " >&6; }
27961cat >conftest.$ac_ext <<_ACEOF
27962/* confdefs.h. */
27963_ACEOF
27964cat confdefs.h >>conftest.$ac_ext
27965cat >>conftest.$ac_ext <<_ACEOF
27966/* end confdefs.h. */
27967#include <uuid/uuid.h>
27968_ACEOF
27969if { (ac_try="$ac_cpp conftest.$ac_ext"
27970case "(($ac_try" in
27971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27972 *) ac_try_echo=$ac_try;;
27973esac
27974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27975$as_echo "$ac_try_echo") >&5
27976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27977 ac_status=$?
27978 grep -v '^ *+' conftest.er1 >conftest.err
27979 rm -f conftest.er1
27980 cat conftest.err >&5
27981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); } >/dev/null && {
27983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27984 test ! -s conftest.err
27985 }; then
27986 ac_header_preproc=yes
27987else
27988 $as_echo "$as_me: failed program was:" >&5
27989sed 's/^/| /' conftest.$ac_ext >&5
27990
27991 ac_header_preproc=no
27992fi
27993
27994rm -f conftest.err conftest.$ac_ext
27995{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27996$as_echo "$ac_header_preproc" >&6; }
27997
27998# So? What about this header?
27999case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28000 yes:no: )
28001 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
28002$as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28003 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
28004$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
28005 ac_header_preproc=yes
28006 ;;
28007 no:yes:* )
28008 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
28009$as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
28010 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
28011$as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
28012 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
28013$as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
28014 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
28015$as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
28016 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
28017$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
28018 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
28019$as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
28020
28021 ;;
28022esac
28023{ $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
28024$as_echo_n "checking for uuid/uuid.h... " >&6; }
28025if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
28026 $as_echo_n "(cached) " >&6
28027else
28028 ac_cv_header_uuid_uuid_h=$ac_header_preproc
28029fi
28030{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
28031$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
28032
28033fi
28034if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
28035 :
28036else
28037 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28039{ { $as_echo "$as_me:$LINENO: error:
28040 *** uuid/uuid.h missing, libuuid-devel package required
28041See \`config.log' for more details." >&5
28042$as_echo "$as_me: error:
28043 *** uuid/uuid.h missing, libuuid-devel package required
28044See \`config.log' for more details." >&2;}
28045 { (exit 1); exit 1; }; }; }
28046fi
28047
28048
28049
28050 { $as_echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
28051$as_echo_n "checking for library containing uuid_generate... " >&6; }
28052if test "${ac_cv_search_uuid_generate+set}" = set; then
28053 $as_echo_n "(cached) " >&6
28054else
28055 ac_func_search_save_LIBS=$LIBS
28056cat >conftest.$ac_ext <<_ACEOF
28057/* confdefs.h. */
28058_ACEOF
28059cat confdefs.h >>conftest.$ac_ext
28060cat >>conftest.$ac_ext <<_ACEOF
28061/* end confdefs.h. */
28062
28063/* Override any GCC internal prototype to avoid an error.
28064 Use char because int might match the return type of a GCC
28065 builtin and then its argument prototype would still apply. */
28066#ifdef __cplusplus
28067extern "C"
28068#endif
28069char uuid_generate ();
28070int
28071main ()
28072{
28073return uuid_generate ();
28074 ;
28075 return 0;
28076}
28077_ACEOF
28078for ac_lib in '' uuid; do
28079 if test -z "$ac_lib"; then
28080 ac_res="none required"
28081 else
28082 ac_res=-l$ac_lib
28083 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28084 fi
28085 rm -f conftest.$ac_objext conftest$ac_exeext
28086if { (ac_try="$ac_link"
28087case "(($ac_try" in
28088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28089 *) ac_try_echo=$ac_try;;
28090esac
28091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28092$as_echo "$ac_try_echo") >&5
28093 (eval "$ac_link") 2>conftest.er1
28094 ac_status=$?
28095 grep -v '^ *+' conftest.er1 >conftest.err
28096 rm -f conftest.er1
28097 cat conftest.err >&5
28098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28099 (exit $ac_status); } && {
28100 test -z "$ac_c_werror_flag" ||
28101 test ! -s conftest.err
28102 } && test -s conftest$ac_exeext && {
28103 test "$cross_compiling" = yes ||
28104 $as_test_x conftest$ac_exeext
28105 }; then
28106 ac_cv_search_uuid_generate=$ac_res
28107else
28108 $as_echo "$as_me: failed program was:" >&5
28109sed 's/^/| /' conftest.$ac_ext >&5
28110
28111
28112fi
28113
28114rm -rf conftest.dSYM
28115rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28116 conftest$ac_exeext
28117 if test "${ac_cv_search_uuid_generate+set}" = set; then
28118 break
28119fi
28120done
28121if test "${ac_cv_search_uuid_generate+set}" = set; then
28122 :
28123else
28124 ac_cv_search_uuid_generate=no
28125fi
28126rm conftest.$ac_ext
28127LIBS=$ac_func_search_save_LIBS
28128fi
28129{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
28130$as_echo "$ac_cv_search_uuid_generate" >&6; }
28131ac_res=$ac_cv_search_uuid_generate
28132if test "$ac_res" != no; then
28133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28134
28135else
28136 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28138{ { $as_echo "$as_me:$LINENO: error:
28139 *** uuid_generate() missing, libuuid-devel package required
28140See \`config.log' for more details." >&5
28141$as_echo "$as_me: error:
28142 *** uuid_generate() missing, libuuid-devel package required
28143See \`config.log' for more details." >&2;}
28144 { (exit 1); exit 1; }; }; }
28145fi
28146
28147
28148 { $as_echo "$as_me:$LINENO: checking for library containing uuid_is_null" >&5
28149$as_echo_n "checking for library containing uuid_is_null... " >&6; }
28150if test "${ac_cv_search_uuid_is_null+set}" = set; then
28151 $as_echo_n "(cached) " >&6
28152else
28153 ac_func_search_save_LIBS=$LIBS
28154cat >conftest.$ac_ext <<_ACEOF
28155/* confdefs.h. */
28156_ACEOF
28157cat confdefs.h >>conftest.$ac_ext
28158cat >>conftest.$ac_ext <<_ACEOF
28159/* end confdefs.h. */
28160
28161/* Override any GCC internal prototype to avoid an error.
28162 Use char because int might match the return type of a GCC
28163 builtin and then its argument prototype would still apply. */
28164#ifdef __cplusplus
28165extern "C"
28166#endif
28167char uuid_is_null ();
28168int
28169main ()
28170{
28171return uuid_is_null ();
28172 ;
28173 return 0;
28174}
28175_ACEOF
28176for ac_lib in '' uuid; do
28177 if test -z "$ac_lib"; then
28178 ac_res="none required"
28179 else
28180 ac_res=-l$ac_lib
28181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28182 fi
28183 rm -f conftest.$ac_objext conftest$ac_exeext
28184if { (ac_try="$ac_link"
28185case "(($ac_try" in
28186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28187 *) ac_try_echo=$ac_try;;
28188esac
28189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28190$as_echo "$ac_try_echo") >&5
28191 (eval "$ac_link") 2>conftest.er1
28192 ac_status=$?
28193 grep -v '^ *+' conftest.er1 >conftest.err
28194 rm -f conftest.er1
28195 cat conftest.err >&5
28196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); } && {
28198 test -z "$ac_c_werror_flag" ||
28199 test ! -s conftest.err
28200 } && test -s conftest$ac_exeext && {
28201 test "$cross_compiling" = yes ||
28202 $as_test_x conftest$ac_exeext
28203 }; then
28204 ac_cv_search_uuid_is_null=$ac_res
28205else
28206 $as_echo "$as_me: failed program was:" >&5
28207sed 's/^/| /' conftest.$ac_ext >&5
28208
28209
28210fi
28211
28212rm -rf conftest.dSYM
28213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28214 conftest$ac_exeext
28215 if test "${ac_cv_search_uuid_is_null+set}" = set; then
28216 break
28217fi
28218done
28219if test "${ac_cv_search_uuid_is_null+set}" = set; then
28220 :
28221else
28222 ac_cv_search_uuid_is_null=no
28223fi
28224rm conftest.$ac_ext
28225LIBS=$ac_func_search_save_LIBS
28226fi
28227{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_is_null" >&5
28228$as_echo "$ac_cv_search_uuid_is_null" >&6; }
28229ac_res=$ac_cv_search_uuid_is_null
28230if test "$ac_res" != no; then
28231 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28232
28233else
28234 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28236{ { $as_echo "$as_me:$LINENO: error:
28237 *** uuid_is_null() missing, libuuid-devel package required
28238See \`config.log' for more details." >&5
28239$as_echo "$as_me: error:
28240 *** uuid_is_null() missing, libuuid-devel package required
28241See \`config.log' for more details." >&2;}
28242 { (exit 1); exit 1; }; }; }
28243fi
28244
28245
28246 LIBUUID="-luuid"
28247
28248
28249cat >>confdefs.h <<\_ACEOF
28250#define HAVE_LIBUUID 1
28251_ACEOF
28252
28253
28254
28255
28256# Check whether --with-tirpc was given.
28257if test "${with_tirpc+set}" = set; then
28258 withval=$with_tirpc;
28259else
28260 with_tirpc=check
28261fi
28262
28263
28264 LIBTIRPC=
28265 LIBTIRPC_CFLAGS=
28266
28267 if test "x$with_tirpc" != xno; then
28268 { $as_echo "$as_me:$LINENO: checking for xdrmem_create in -ltirpc" >&5
28269$as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
28270if test "${ac_cv_lib_tirpc_xdrmem_create+set}" = set; then
28271 $as_echo_n "(cached) " >&6
28272else
28273 ac_check_lib_save_LIBS=$LIBS
28274LIBS="-ltirpc $LIBS"
28275cat >conftest.$ac_ext <<_ACEOF
28276/* confdefs.h. */
28277_ACEOF
28278cat confdefs.h >>conftest.$ac_ext
28279cat >>conftest.$ac_ext <<_ACEOF
28280/* end confdefs.h. */
28281
28282/* Override any GCC internal prototype to avoid an error.
28283 Use char because int might match the return type of a GCC
28284 builtin and then its argument prototype would still apply. */
28285#ifdef __cplusplus
28286extern "C"
28287#endif
28288char xdrmem_create ();
28289int
28290main ()
28291{
28292return xdrmem_create ();
28293 ;
28294 return 0;
28295}
28296_ACEOF
28297rm -f conftest.$ac_objext conftest$ac_exeext
28298if { (ac_try="$ac_link"
28299case "(($ac_try" in
28300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28301 *) ac_try_echo=$ac_try;;
28302esac
28303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28304$as_echo "$ac_try_echo") >&5
28305 (eval "$ac_link") 2>conftest.er1
28306 ac_status=$?
28307 grep -v '^ *+' conftest.er1 >conftest.err
28308 rm -f conftest.er1
28309 cat conftest.err >&5
28310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); } && {
28312 test -z "$ac_c_werror_flag" ||
28313 test ! -s conftest.err
28314 } && test -s conftest$ac_exeext && {
28315 test "$cross_compiling" = yes ||
28316 $as_test_x conftest$ac_exeext
28317 }; then
28318 ac_cv_lib_tirpc_xdrmem_create=yes
28319else
28320 $as_echo "$as_me: failed program was:" >&5
28321sed 's/^/| /' conftest.$ac_ext >&5
28322
28323 ac_cv_lib_tirpc_xdrmem_create=no
28324fi
28325
28326rm -rf conftest.dSYM
28327rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28328 conftest$ac_exeext conftest.$ac_ext
28329LIBS=$ac_check_lib_save_LIBS
28330fi
28331{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
28332$as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
28333if test "x$ac_cv_lib_tirpc_xdrmem_create" = x""yes; then
28334 LIBTIRPC=-ltirpc
28335
28336 LIBTIRPC_CFLAGS=-I/usr/include/tirpc
28337
28338
28339cat >>confdefs.h <<\_ACEOF
28340#define HAVE_LIBTIRPC 1
28341_ACEOF
28342
28343
28344else
28345 if test "x$with_tirpc" != xcheck; then
28346 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28348{ { $as_echo "$as_me:$LINENO: error: --with-tirpc was given, but test for tirpc failed
28349See \`config.log' for more details." >&5
28350$as_echo "$as_me: error: --with-tirpc was given, but test for tirpc failed
28351See \`config.log' for more details." >&2;}
28352 { (exit 1); exit 1; }; }; }
28353 fi
28354 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
28355$as_echo_n "checking for library containing xdrmem_create... " >&6; }
28356if test "${ac_cv_search_xdrmem_create+set}" = set; then
28357 $as_echo_n "(cached) " >&6
28358else
28359 ac_func_search_save_LIBS=$LIBS
28360cat >conftest.$ac_ext <<_ACEOF
28361/* confdefs.h. */
28362_ACEOF
28363cat confdefs.h >>conftest.$ac_ext
28364cat >>conftest.$ac_ext <<_ACEOF
28365/* end confdefs.h. */
28366
28367/* Override any GCC internal prototype to avoid an error.
28368 Use char because int might match the return type of a GCC
28369 builtin and then its argument prototype would still apply. */
28370#ifdef __cplusplus
28371extern "C"
28372#endif
28373char xdrmem_create ();
28374int
28375main ()
28376{
28377return xdrmem_create ();
28378 ;
28379 return 0;
28380}
28381_ACEOF
28382for ac_lib in '' tirpc; do
28383 if test -z "$ac_lib"; then
28384 ac_res="none required"
28385 else
28386 ac_res=-l$ac_lib
28387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28388 fi
28389 rm -f conftest.$ac_objext conftest$ac_exeext
28390if { (ac_try="$ac_link"
28391case "(($ac_try" in
28392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28393 *) ac_try_echo=$ac_try;;
28394esac
28395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28396$as_echo "$ac_try_echo") >&5
28397 (eval "$ac_link") 2>conftest.er1
28398 ac_status=$?
28399 grep -v '^ *+' conftest.er1 >conftest.err
28400 rm -f conftest.er1
28401 cat conftest.err >&5
28402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28403 (exit $ac_status); } && {
28404 test -z "$ac_c_werror_flag" ||
28405 test ! -s conftest.err
28406 } && test -s conftest$ac_exeext && {
28407 test "$cross_compiling" = yes ||
28408 $as_test_x conftest$ac_exeext
28409 }; then
28410 ac_cv_search_xdrmem_create=$ac_res
28411else
28412 $as_echo "$as_me: failed program was:" >&5
28413sed 's/^/| /' conftest.$ac_ext >&5
28414
28415
28416fi
28417
28418rm -rf conftest.dSYM
28419rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28420 conftest$ac_exeext
28421 if test "${ac_cv_search_xdrmem_create+set}" = set; then
28422 break
28423fi
28424done
28425if test "${ac_cv_search_xdrmem_create+set}" = set; then
28426 :
28427else
28428 ac_cv_search_xdrmem_create=no
28429fi
28430rm conftest.$ac_ext
28431LIBS=$ac_func_search_save_LIBS
28432fi
28433{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
28434$as_echo "$ac_cv_search_xdrmem_create" >&6; }
28435ac_res=$ac_cv_search_xdrmem_create
28436if test "$ac_res" != no; then
28437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28438
28439else
28440
28441 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28443{ { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires tirpc or libc
28444See \`config.log' for more details." >&5
28445$as_echo "$as_me: error: xdrmem_create() requires tirpc or libc
28446See \`config.log' for more details." >&2;}
28447 { (exit 1); exit 1; }; }; }
28448fi
28449
28450
28451fi
28452
28453else
28454 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
28455$as_echo_n "checking for library containing xdrmem_create... " >&6; }
28456if test "${ac_cv_search_xdrmem_create+set}" = set; then
28457 $as_echo_n "(cached) " >&6
28458else
28459 ac_func_search_save_LIBS=$LIBS
28460cat >conftest.$ac_ext <<_ACEOF
28461/* confdefs.h. */
28462_ACEOF
28463cat confdefs.h >>conftest.$ac_ext
28464cat >>conftest.$ac_ext <<_ACEOF
28465/* end confdefs.h. */
28466
28467/* Override any GCC internal prototype to avoid an error.
28468 Use char because int might match the return type of a GCC
28469 builtin and then its argument prototype would still apply. */
28470#ifdef __cplusplus
28471extern "C"
28472#endif
28473char xdrmem_create ();
28474int
28475main ()
28476{
28477return xdrmem_create ();
28478 ;
28479 return 0;
28480}
28481_ACEOF
28482for ac_lib in '' tirpc; do
28483 if test -z "$ac_lib"; then
28484 ac_res="none required"
28485 else
28486 ac_res=-l$ac_lib
28487 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28488 fi
28489 rm -f conftest.$ac_objext conftest$ac_exeext
28490if { (ac_try="$ac_link"
28491case "(($ac_try" in
28492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28493 *) ac_try_echo=$ac_try;;
28494esac
28495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28496$as_echo "$ac_try_echo") >&5
28497 (eval "$ac_link") 2>conftest.er1
28498 ac_status=$?
28499 grep -v '^ *+' conftest.er1 >conftest.err
28500 rm -f conftest.er1
28501 cat conftest.err >&5
28502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503 (exit $ac_status); } && {
28504 test -z "$ac_c_werror_flag" ||
28505 test ! -s conftest.err
28506 } && test -s conftest$ac_exeext && {
28507 test "$cross_compiling" = yes ||
28508 $as_test_x conftest$ac_exeext
28509 }; then
28510 ac_cv_search_xdrmem_create=$ac_res
28511else
28512 $as_echo "$as_me: failed program was:" >&5
28513sed 's/^/| /' conftest.$ac_ext >&5
28514
28515
28516fi
28517
28518rm -rf conftest.dSYM
28519rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28520 conftest$ac_exeext
28521 if test "${ac_cv_search_xdrmem_create+set}" = set; then
28522 break
28523fi
28524done
28525if test "${ac_cv_search_xdrmem_create+set}" = set; then
28526 :
28527else
28528 ac_cv_search_xdrmem_create=no
28529fi
28530rm conftest.$ac_ext
28531LIBS=$ac_func_search_save_LIBS
28532fi
28533{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
28534$as_echo "$ac_cv_search_xdrmem_create" >&6; }
28535ac_res=$ac_cv_search_xdrmem_create
28536if test "$ac_res" != no; then
28537 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28538
28539else
28540
28541 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28543{ { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires libc
28544See \`config.log' for more details." >&5
28545$as_echo "$as_me: error: xdrmem_create() requires libc
28546See \`config.log' for more details." >&2;}
28547 { (exit 1); exit 1; }; }; }
28548fi
28549
28550
28551fi
28552
28553
28554
28555 LIBBLKID=
28556
28557 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
28558 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
28559$as_echo_n "checking for blkid/blkid.h... " >&6; }
28560if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
28561 $as_echo_n "(cached) " >&6
28562fi
28563{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
28564$as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
28565else
28566 # Is the header compilable?
28567{ $as_echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
28568$as_echo_n "checking blkid/blkid.h usability... " >&6; }
28569cat >conftest.$ac_ext <<_ACEOF
28570/* confdefs.h. */
28571_ACEOF
28572cat confdefs.h >>conftest.$ac_ext
28573cat >>conftest.$ac_ext <<_ACEOF
28574/* end confdefs.h. */
28575$ac_includes_default
28576#include <blkid/blkid.h>
28577_ACEOF
28578rm -f conftest.$ac_objext
28579if { (ac_try="$ac_compile"
28580case "(($ac_try" in
28581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28582 *) ac_try_echo=$ac_try;;
28583esac
28584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28585$as_echo "$ac_try_echo") >&5
28586 (eval "$ac_compile") 2>conftest.er1
28587 ac_status=$?
28588 grep -v '^ *+' conftest.er1 >conftest.err
28589 rm -f conftest.er1
28590 cat conftest.err >&5
28591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592 (exit $ac_status); } && {
28593 test -z "$ac_c_werror_flag" ||
28594 test ! -s conftest.err
28595 } && test -s conftest.$ac_objext; then
28596 ac_header_compiler=yes
28597else
28598 $as_echo "$as_me: failed program was:" >&5
28599sed 's/^/| /' conftest.$ac_ext >&5
28600
28601 ac_header_compiler=no
28602fi
28603
28604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28605{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28606$as_echo "$ac_header_compiler" >&6; }
28607
28608# Is the header present?
28609{ $as_echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
28610$as_echo_n "checking blkid/blkid.h presence... " >&6; }
28611cat >conftest.$ac_ext <<_ACEOF
28612/* confdefs.h. */
28613_ACEOF
28614cat confdefs.h >>conftest.$ac_ext
28615cat >>conftest.$ac_ext <<_ACEOF
28616/* end confdefs.h. */
28617#include <blkid/blkid.h>
28618_ACEOF
28619if { (ac_try="$ac_cpp conftest.$ac_ext"
28620case "(($ac_try" in
28621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28622 *) ac_try_echo=$ac_try;;
28623esac
28624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28625$as_echo "$ac_try_echo") >&5
28626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28627 ac_status=$?
28628 grep -v '^ *+' conftest.er1 >conftest.err
28629 rm -f conftest.er1
28630 cat conftest.err >&5
28631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 (exit $ac_status); } >/dev/null && {
28633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28634 test ! -s conftest.err
28635 }; then
28636 ac_header_preproc=yes
28637else
28638 $as_echo "$as_me: failed program was:" >&5
28639sed 's/^/| /' conftest.$ac_ext >&5
28640
28641 ac_header_preproc=no
28642fi
28643
28644rm -f conftest.err conftest.$ac_ext
28645{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28646$as_echo "$ac_header_preproc" >&6; }
28647
28648# So? What about this header?
28649case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28650 yes:no: )
28651 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
28652$as_echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28653 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
28654$as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
28655 ac_header_preproc=yes
28656 ;;
28657 no:yes:* )
28658 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
28659$as_echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
28660 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
28661$as_echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
28662 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
28663$as_echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
28664 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
28665$as_echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
28666 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
28667$as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
28668 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
28669$as_echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
28670
28671 ;;
28672esac
28673{ $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
28674$as_echo_n "checking for blkid/blkid.h... " >&6; }
28675if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
28676 $as_echo_n "(cached) " >&6
28677else
28678 ac_cv_header_blkid_blkid_h=$ac_header_preproc
28679fi
28680{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
28681$as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
28682
28683fi
28684if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then
28685 :
28686else
28687 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28689{ { $as_echo "$as_me:$LINENO: error:
28690 *** blkid.h missing, libblkid-devel package required
28691See \`config.log' for more details." >&5
28692$as_echo "$as_me: error:
28693 *** blkid.h missing, libblkid-devel package required
28694See \`config.log' for more details." >&2;}
28695 { (exit 1); exit 1; }; }; }
28696fi
28697
28698
28699
28700 LIBBLKID="-lblkid"
28701
28702
28703cat >>confdefs.h <<\_ACEOF
28704#define HAVE_LIBBLKID 1
28705_ACEOF
28706
28707
28708
28709 LIBATTR=
28710
28711 if test "${ac_cv_header_attr_xattr_h+set}" = set; then
28712 { $as_echo "$as_me:$LINENO: checking for attr/xattr.h" >&5
28713$as_echo_n "checking for attr/xattr.h... " >&6; }
28714if test "${ac_cv_header_attr_xattr_h+set}" = set; then
28715 $as_echo_n "(cached) " >&6
28716fi
28717{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_xattr_h" >&5
28718$as_echo "$ac_cv_header_attr_xattr_h" >&6; }
28719else
28720 # Is the header compilable?
28721{ $as_echo "$as_me:$LINENO: checking attr/xattr.h usability" >&5
28722$as_echo_n "checking attr/xattr.h usability... " >&6; }
28723cat >conftest.$ac_ext <<_ACEOF
28724/* confdefs.h. */
28725_ACEOF
28726cat confdefs.h >>conftest.$ac_ext
28727cat >>conftest.$ac_ext <<_ACEOF
28728/* end confdefs.h. */
28729$ac_includes_default
28730#include <attr/xattr.h>
28731_ACEOF
28732rm -f conftest.$ac_objext
28733if { (ac_try="$ac_compile"
28734case "(($ac_try" in
28735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28736 *) ac_try_echo=$ac_try;;
28737esac
28738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28739$as_echo "$ac_try_echo") >&5
28740 (eval "$ac_compile") 2>conftest.er1
28741 ac_status=$?
28742 grep -v '^ *+' conftest.er1 >conftest.err
28743 rm -f conftest.er1
28744 cat conftest.err >&5
28745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746 (exit $ac_status); } && {
28747 test -z "$ac_c_werror_flag" ||
28748 test ! -s conftest.err
28749 } && test -s conftest.$ac_objext; then
28750 ac_header_compiler=yes
28751else
28752 $as_echo "$as_me: failed program was:" >&5
28753sed 's/^/| /' conftest.$ac_ext >&5
28754
28755 ac_header_compiler=no
28756fi
28757
28758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28759{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28760$as_echo "$ac_header_compiler" >&6; }
28761
28762# Is the header present?
28763{ $as_echo "$as_me:$LINENO: checking attr/xattr.h presence" >&5
28764$as_echo_n "checking attr/xattr.h presence... " >&6; }
28765cat >conftest.$ac_ext <<_ACEOF
28766/* confdefs.h. */
28767_ACEOF
28768cat confdefs.h >>conftest.$ac_ext
28769cat >>conftest.$ac_ext <<_ACEOF
28770/* end confdefs.h. */
28771#include <attr/xattr.h>
28772_ACEOF
28773if { (ac_try="$ac_cpp conftest.$ac_ext"
28774case "(($ac_try" in
28775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28776 *) ac_try_echo=$ac_try;;
28777esac
28778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28779$as_echo "$ac_try_echo") >&5
28780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28781 ac_status=$?
28782 grep -v '^ *+' conftest.er1 >conftest.err
28783 rm -f conftest.er1
28784 cat conftest.err >&5
28785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); } >/dev/null && {
28787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28788 test ! -s conftest.err
28789 }; then
28790 ac_header_preproc=yes
28791else
28792 $as_echo "$as_me: failed program was:" >&5
28793sed 's/^/| /' conftest.$ac_ext >&5
28794
28795 ac_header_preproc=no
28796fi
28797
28798rm -f conftest.err conftest.$ac_ext
28799{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28800$as_echo "$ac_header_preproc" >&6; }
28801
28802# So? What about this header?
28803case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28804 yes:no: )
28805 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
28806$as_echo "$as_me: WARNING: attr/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28807 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: proceeding with the compiler's result" >&5
28808$as_echo "$as_me: WARNING: attr/xattr.h: proceeding with the compiler's result" >&2;}
28809 ac_header_preproc=yes
28810 ;;
28811 no:yes:* )
28812 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: present but cannot be compiled" >&5
28813$as_echo "$as_me: WARNING: attr/xattr.h: present but cannot be compiled" >&2;}
28814 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: check for missing prerequisite headers?" >&5
28815$as_echo "$as_me: WARNING: attr/xattr.h: check for missing prerequisite headers?" >&2;}
28816 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: see the Autoconf documentation" >&5
28817$as_echo "$as_me: WARNING: attr/xattr.h: see the Autoconf documentation" >&2;}
28818 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
28819$as_echo "$as_me: WARNING: attr/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
28820 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: proceeding with the preprocessor's result" >&5
28821$as_echo "$as_me: WARNING: attr/xattr.h: proceeding with the preprocessor's result" >&2;}
28822 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: in the future, the compiler will take precedence" >&5
28823$as_echo "$as_me: WARNING: attr/xattr.h: in the future, the compiler will take precedence" >&2;}
28824
28825 ;;
28826esac
28827{ $as_echo "$as_me:$LINENO: checking for attr/xattr.h" >&5
28828$as_echo_n "checking for attr/xattr.h... " >&6; }
28829if test "${ac_cv_header_attr_xattr_h+set}" = set; then
28830 $as_echo_n "(cached) " >&6
28831else
28832 ac_cv_header_attr_xattr_h=$ac_header_preproc
28833fi
28834{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_xattr_h" >&5
28835$as_echo "$ac_cv_header_attr_xattr_h" >&6; }
28836
28837fi
28838if test "x$ac_cv_header_attr_xattr_h" = x""yes; then
28839 :
28840else
28841 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28843{ { $as_echo "$as_me:$LINENO: error:
28844 *** attr/xattr.h missing, libattr-devel package required
28845See \`config.log' for more details." >&5
28846$as_echo "$as_me: error:
28847 *** attr/xattr.h missing, libattr-devel package required
28848See \`config.log' for more details." >&2;}
28849 { (exit 1); exit 1; }; }; }
28850fi
28851
28852
28853
28854 LIBATTR="-lattr"
28855
28856
28857cat >>confdefs.h <<\_ACEOF
28858#define HAVE_LIBATTR 1
28859_ACEOF
28860
28861
28862
28863 LIBUDEV=
28864
28865 if test "${ac_cv_header_libudev_h+set}" = set; then
28866 { $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
28867$as_echo_n "checking for libudev.h... " >&6; }
28868if test "${ac_cv_header_libudev_h+set}" = set; then
28869 $as_echo_n "(cached) " >&6
28870fi
28871{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
28872$as_echo "$ac_cv_header_libudev_h" >&6; }
28873else
28874 # Is the header compilable?
28875{ $as_echo "$as_me:$LINENO: checking libudev.h usability" >&5
28876$as_echo_n "checking libudev.h usability... " >&6; }
28877cat >conftest.$ac_ext <<_ACEOF
28878/* confdefs.h. */
28879_ACEOF
28880cat confdefs.h >>conftest.$ac_ext
28881cat >>conftest.$ac_ext <<_ACEOF
28882/* end confdefs.h. */
28883$ac_includes_default
28884#include <libudev.h>
28885_ACEOF
28886rm -f conftest.$ac_objext
28887if { (ac_try="$ac_compile"
28888case "(($ac_try" in
28889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28890 *) ac_try_echo=$ac_try;;
28891esac
28892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28893$as_echo "$ac_try_echo") >&5
28894 (eval "$ac_compile") 2>conftest.er1
28895 ac_status=$?
28896 grep -v '^ *+' conftest.er1 >conftest.err
28897 rm -f conftest.er1
28898 cat conftest.err >&5
28899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900 (exit $ac_status); } && {
28901 test -z "$ac_c_werror_flag" ||
28902 test ! -s conftest.err
28903 } && test -s conftest.$ac_objext; then
28904 ac_header_compiler=yes
28905else
28906 $as_echo "$as_me: failed program was:" >&5
28907sed 's/^/| /' conftest.$ac_ext >&5
28908
28909 ac_header_compiler=no
28910fi
28911
28912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28913{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28914$as_echo "$ac_header_compiler" >&6; }
28915
28916# Is the header present?
28917{ $as_echo "$as_me:$LINENO: checking libudev.h presence" >&5
28918$as_echo_n "checking libudev.h presence... " >&6; }
28919cat >conftest.$ac_ext <<_ACEOF
28920/* confdefs.h. */
28921_ACEOF
28922cat confdefs.h >>conftest.$ac_ext
28923cat >>conftest.$ac_ext <<_ACEOF
28924/* end confdefs.h. */
28925#include <libudev.h>
28926_ACEOF
28927if { (ac_try="$ac_cpp conftest.$ac_ext"
28928case "(($ac_try" in
28929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28930 *) ac_try_echo=$ac_try;;
28931esac
28932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28933$as_echo "$ac_try_echo") >&5
28934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28935 ac_status=$?
28936 grep -v '^ *+' conftest.er1 >conftest.err
28937 rm -f conftest.er1
28938 cat conftest.err >&5
28939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940 (exit $ac_status); } >/dev/null && {
28941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28942 test ! -s conftest.err
28943 }; then
28944 ac_header_preproc=yes
28945else
28946 $as_echo "$as_me: failed program was:" >&5
28947sed 's/^/| /' conftest.$ac_ext >&5
28948
28949 ac_header_preproc=no
28950fi
28951
28952rm -f conftest.err conftest.$ac_ext
28953{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28954$as_echo "$ac_header_preproc" >&6; }
28955
28956# So? What about this header?
28957case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28958 yes:no: )
28959 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&5
28960$as_echo "$as_me: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28961 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the compiler's result" >&5
28962$as_echo "$as_me: WARNING: libudev.h: proceeding with the compiler's result" >&2;}
28963 ac_header_preproc=yes
28964 ;;
28965 no:yes:* )
28966 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: present but cannot be compiled" >&5
28967$as_echo "$as_me: WARNING: libudev.h: present but cannot be compiled" >&2;}
28968 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: check for missing prerequisite headers?" >&5
28969$as_echo "$as_me: WARNING: libudev.h: check for missing prerequisite headers?" >&2;}
28970 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: see the Autoconf documentation" >&5
28971$as_echo "$as_me: WARNING: libudev.h: see the Autoconf documentation" >&2;}
28972 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&5
28973$as_echo "$as_me: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&2;}
28974 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the preprocessor's result" >&5
28975$as_echo "$as_me: WARNING: libudev.h: proceeding with the preprocessor's result" >&2;}
28976 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: in the future, the compiler will take precedence" >&5
28977$as_echo "$as_me: WARNING: libudev.h: in the future, the compiler will take precedence" >&2;}
28978
28979 ;;
28980esac
28981{ $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
28982$as_echo_n "checking for libudev.h... " >&6; }
28983if test "${ac_cv_header_libudev_h+set}" = set; then
28984 $as_echo_n "(cached) " >&6
28985else
28986 ac_cv_header_libudev_h=$ac_header_preproc
28987fi
28988{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
28989$as_echo "$ac_cv_header_libudev_h" >&6; }
28990
28991fi
28992if test "x$ac_cv_header_libudev_h" = x""yes; then
28993
28994 user_libudev=yes
28995 LIBUDEV="-ludev"
28996
28997
28998cat >>confdefs.h <<\_ACEOF
28999#define HAVE_LIBUDEV 1
29000_ACEOF
29001
29002
29003else
29004
29005 user_libudev=no
29006
29007fi
29008
29009
29010
29011 { $as_echo "$as_me:$LINENO: checking for library containing udev_device_get_is_initialized" >&5
29012$as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
29013if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
29014 $as_echo_n "(cached) " >&6
29015else
29016 ac_func_search_save_LIBS=$LIBS
29017cat >conftest.$ac_ext <<_ACEOF
29018/* confdefs.h. */
29019_ACEOF
29020cat confdefs.h >>conftest.$ac_ext
29021cat >>conftest.$ac_ext <<_ACEOF
29022/* end confdefs.h. */
29023
29024/* Override any GCC internal prototype to avoid an error.
29025 Use char because int might match the return type of a GCC
29026 builtin and then its argument prototype would still apply. */
29027#ifdef __cplusplus
29028extern "C"
29029#endif
29030char udev_device_get_is_initialized ();
29031int
29032main ()
29033{
29034return udev_device_get_is_initialized ();
29035 ;
29036 return 0;
29037}
29038_ACEOF
29039for ac_lib in '' udev; do
29040 if test -z "$ac_lib"; then
29041 ac_res="none required"
29042 else
29043 ac_res=-l$ac_lib
29044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29045 fi
29046 rm -f conftest.$ac_objext conftest$ac_exeext
29047if { (ac_try="$ac_link"
29048case "(($ac_try" in
29049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29050 *) ac_try_echo=$ac_try;;
29051esac
29052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29053$as_echo "$ac_try_echo") >&5
29054 (eval "$ac_link") 2>conftest.er1
29055 ac_status=$?
29056 grep -v '^ *+' conftest.er1 >conftest.err
29057 rm -f conftest.er1
29058 cat conftest.err >&5
29059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29060 (exit $ac_status); } && {
29061 test -z "$ac_c_werror_flag" ||
29062 test ! -s conftest.err
29063 } && test -s conftest$ac_exeext && {
29064 test "$cross_compiling" = yes ||
29065 $as_test_x conftest$ac_exeext
29066 }; then
29067 ac_cv_search_udev_device_get_is_initialized=$ac_res
29068else
29069 $as_echo "$as_me: failed program was:" >&5
29070sed 's/^/| /' conftest.$ac_ext >&5
29071
29072
29073fi
29074
29075rm -rf conftest.dSYM
29076rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29077 conftest$ac_exeext
29078 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
29079 break
29080fi
29081done
29082if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
29083 :
29084else
29085 ac_cv_search_udev_device_get_is_initialized=no
29086fi
29087rm conftest.$ac_ext
29088LIBS=$ac_func_search_save_LIBS
29089fi
29090{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_udev_device_get_is_initialized" >&5
29091$as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
29092ac_res=$ac_cv_search_udev_device_get_is_initialized
29093if test "$ac_res" != no; then
29094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29095
29096
29097cat >>confdefs.h <<\_ACEOF
29098#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1
29099_ACEOF
29100
29101fi
29102
29103
29104
29105
29106 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
29107$as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
29108
29109 saved_flags="$CFLAGS"
29110 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
29111
29112 cat >conftest.$ac_ext <<_ACEOF
29113/* confdefs.h. */
29114_ACEOF
29115cat confdefs.h >>conftest.$ac_ext
29116cat >>conftest.$ac_ext <<_ACEOF
29117/* end confdefs.h. */
29118
29119int
29120main ()
29121{
29122
29123 ;
29124 return 0;
29125}
29126_ACEOF
29127rm -f conftest.$ac_objext
29128if { (ac_try="$ac_compile"
29129case "(($ac_try" in
29130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29131 *) ac_try_echo=$ac_try;;
29132esac
29133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29134$as_echo "$ac_try_echo") >&5
29135 (eval "$ac_compile") 2>conftest.er1
29136 ac_status=$?
29137 grep -v '^ *+' conftest.er1 >conftest.err
29138 rm -f conftest.er1
29139 cat conftest.err >&5
29140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29141 (exit $ac_status); } && {
29142 test -z "$ac_c_werror_flag" ||
29143 test ! -s conftest.err
29144 } && test -s conftest.$ac_objext; then
29145
29146 FRAME_LARGER_THAN=-Wframe-larger-than=1024
29147 { $as_echo "$as_me:$LINENO: result: yes" >&5
29148$as_echo "yes" >&6; }
29149
29150else
29151 $as_echo "$as_me: failed program was:" >&5
29152sed 's/^/| /' conftest.$ac_ext >&5
29153
29154
29155 FRAME_LARGER_THAN=
29156 { $as_echo "$as_me:$LINENO: result: no" >&5
29157$as_echo "no" >&6; }
29158
29159fi
29160
29161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29162
29163 CFLAGS="$saved_flags"
29164
29165
29166
29167 if test "x$runstatedir" = x; then
29168 runstatedir='${localstatedir}/run'
29169
29170 fi
29171
29172
29173 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/sysmacros.h" >&5
29174$as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
29175 cat >conftest.$ac_ext <<_ACEOF
29176/* confdefs.h. */
29177_ACEOF
29178cat confdefs.h >>conftest.$ac_ext
29179cat >>conftest.$ac_ext <<_ACEOF
29180/* end confdefs.h. */
29181
29182 #include <sys/sysmacros.h>
29183
29184int
29185main ()
29186{
29187
29188 int k;
29189 k = makedev(0,0);
29190
29191 ;
29192 return 0;
29193}
29194_ACEOF
29195rm -f conftest.$ac_objext
29196if { (ac_try="$ac_compile"
29197case "(($ac_try" in
29198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29199 *) ac_try_echo=$ac_try;;
29200esac
29201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29202$as_echo "$ac_try_echo") >&5
29203 (eval "$ac_compile") 2>conftest.er1
29204 ac_status=$?
29205 grep -v '^ *+' conftest.er1 >conftest.err
29206 rm -f conftest.er1
29207 cat conftest.err >&5
29208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209 (exit $ac_status); } && {
29210 test -z "$ac_c_werror_flag" ||
29211 test ! -s conftest.err
29212 } && test -s conftest.$ac_objext; then
29213
29214 { $as_echo "$as_me:$LINENO: result: yes" >&5
29215$as_echo "yes" >&6; }
29216
29217cat >>confdefs.h <<\_ACEOF
29218#define HAVE_MAKEDEV_IN_SYSMACROS 1
29219_ACEOF
29220
29221
29222else
29223 $as_echo "$as_me: failed program was:" >&5
29224sed 's/^/| /' conftest.$ac_ext >&5
29225
29226
29227 { $as_echo "$as_me:$LINENO: result: no" >&5
29228$as_echo "no" >&6; }
29229
29230fi
29231
29232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29233
29234
29235 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/mkdev.h" >&5
29236$as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
29237 cat >conftest.$ac_ext <<_ACEOF
29238/* confdefs.h. */
29239_ACEOF
29240cat confdefs.h >>conftest.$ac_ext
29241cat >>conftest.$ac_ext <<_ACEOF
29242/* end confdefs.h. */
29243
29244 #include <sys/mkdev.h>
29245
29246int
29247main ()
29248{
29249
29250 int k;
29251 k = makedev(0,0);
29252
29253 ;
29254 return 0;
29255}
29256_ACEOF
29257rm -f conftest.$ac_objext
29258if { (ac_try="$ac_compile"
29259case "(($ac_try" in
29260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29261 *) ac_try_echo=$ac_try;;
29262esac
29263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29264$as_echo "$ac_try_echo") >&5
29265 (eval "$ac_compile") 2>conftest.er1
29266 ac_status=$?
29267 grep -v '^ *+' conftest.er1 >conftest.err
29268 rm -f conftest.er1
29269 cat conftest.err >&5
29270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271 (exit $ac_status); } && {
29272 test -z "$ac_c_werror_flag" ||
29273 test ! -s conftest.err
29274 } && test -s conftest.$ac_objext; then
29275
29276 { $as_echo "$as_me:$LINENO: result: yes" >&5
29277$as_echo "yes" >&6; }
29278
29279cat >>confdefs.h <<\_ACEOF
29280#define HAVE_MAKEDEV_IN_MKDEV 1
29281_ACEOF
29282
29283
29284else
29285 $as_echo "$as_me: failed program was:" >&5
29286sed 's/^/| /' conftest.$ac_ext >&5
29287
29288
29289 { $as_echo "$as_me:$LINENO: result: no" >&5
29290$as_echo "no" >&6; }
29291
29292fi
29293
29294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29295
29296
29297 { $as_echo "$as_me:$LINENO: checking for -Wno-format-truncation support" >&5
29298$as_echo_n "checking for -Wno-format-truncation support... " >&6; }
29299
29300 saved_flags="$CFLAGS"
29301 CFLAGS="$CFLAGS -Wno-format-truncation"
29302
29303 cat >conftest.$ac_ext <<_ACEOF
29304/* confdefs.h. */
29305_ACEOF
29306cat confdefs.h >>conftest.$ac_ext
29307cat >>conftest.$ac_ext <<_ACEOF
29308/* end confdefs.h. */
29309
29310int
29311main ()
29312{
29313
29314 ;
29315 return 0;
29316}
29317_ACEOF
29318rm -f conftest.$ac_objext
29319if { (ac_try="$ac_compile"
29320case "(($ac_try" in
29321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29322 *) ac_try_echo=$ac_try;;
29323esac
29324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29325$as_echo "$ac_try_echo") >&5
29326 (eval "$ac_compile") 2>conftest.er1
29327 ac_status=$?
29328 grep -v '^ *+' conftest.er1 >conftest.err
29329 rm -f conftest.er1
29330 cat conftest.err >&5
29331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); } && {
29333 test -z "$ac_c_werror_flag" ||
29334 test ! -s conftest.err
29335 } && test -s conftest.$ac_objext; then
29336
29337 NO_FORMAT_TRUNCATION=-Wno-format-truncation
29338 { $as_echo "$as_me:$LINENO: result: yes" >&5
29339$as_echo "yes" >&6; }
29340
29341else
29342 $as_echo "$as_me: failed program was:" >&5
29343sed 's/^/| /' conftest.$ac_ext >&5
29344
29345
29346 NO_FORMAT_TRUNCATION=
29347 { $as_echo "$as_me:$LINENO: result: no" >&5
29348$as_echo "no" >&6; }
29349
29350fi
29351
29352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29353
29354 CFLAGS="$saved_flags"
29355
29356
29357
29358
29359 ZONENAME="echo global"
29360
29361
29362
29363
29364
29365
29366for ac_func in mlockall
29367do
29368as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29369{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29370$as_echo_n "checking for $ac_func... " >&6; }
29371if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29372 $as_echo_n "(cached) " >&6
29373else
29374 cat >conftest.$ac_ext <<_ACEOF
29375/* confdefs.h. */
29376_ACEOF
29377cat confdefs.h >>conftest.$ac_ext
29378cat >>conftest.$ac_ext <<_ACEOF
29379/* end confdefs.h. */
29380/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29382#define $ac_func innocuous_$ac_func
29383
29384/* System header to define __stub macros and hopefully few prototypes,
29385 which can conflict with char $ac_func (); below.
29386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29387 <limits.h> exists even on freestanding compilers. */
29388
29389#ifdef __STDC__
29390# include <limits.h>
29391#else
29392# include <assert.h>
29393#endif
29394
29395#undef $ac_func
29396
29397/* Override any GCC internal prototype to avoid an error.
29398 Use char because int might match the return type of a GCC
29399 builtin and then its argument prototype would still apply. */
29400#ifdef __cplusplus
29401extern "C"
29402#endif
29403char $ac_func ();
29404/* The GNU C library defines this for functions which it implements
29405 to always fail with ENOSYS. Some functions are actually named
29406 something starting with __ and the normal name is an alias. */
29407#if defined __stub_$ac_func || defined __stub___$ac_func
29408choke me
29409#endif
29410
29411int
29412main ()
29413{
29414return $ac_func ();
29415 ;
29416 return 0;
29417}
29418_ACEOF
29419rm -f conftest.$ac_objext conftest$ac_exeext
29420if { (ac_try="$ac_link"
29421case "(($ac_try" in
29422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29423 *) ac_try_echo=$ac_try;;
29424esac
29425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29426$as_echo "$ac_try_echo") >&5
29427 (eval "$ac_link") 2>conftest.er1
29428 ac_status=$?
29429 grep -v '^ *+' conftest.er1 >conftest.err
29430 rm -f conftest.er1
29431 cat conftest.err >&5
29432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433 (exit $ac_status); } && {
29434 test -z "$ac_c_werror_flag" ||
29435 test ! -s conftest.err
29436 } && test -s conftest$ac_exeext && {
29437 test "$cross_compiling" = yes ||
29438 $as_test_x conftest$ac_exeext
29439 }; then
29440 eval "$as_ac_var=yes"
29441else
29442 $as_echo "$as_me: failed program was:" >&5
29443sed 's/^/| /' conftest.$ac_ext >&5
29444
29445 eval "$as_ac_var=no"
29446fi
29447
29448rm -rf conftest.dSYM
29449rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29450 conftest$ac_exeext conftest.$ac_ext
29451fi
29452ac_res=`eval 'as_val=${'$as_ac_var'}
29453 $as_echo "$as_val"'`
29454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29455$as_echo "$ac_res" >&6; }
29456as_val=`eval 'as_val=${'$as_ac_var'}
29457 $as_echo "$as_val"'`
29458 if test "x$as_val" = x""yes; then
29459 cat >>confdefs.h <<_ACEOF
29460#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29461_ACEOF
29462
29463fi
29464done
29465
29466 ;;
29467 all)
29468
29469
29470# Check whether --with-mounthelperdir was given.
29471if test "${with_mounthelperdir+set}" = set; then
29472 withval=$with_mounthelperdir; mounthelperdir=$withval
29473else
29474 mounthelperdir=/sbin
29475fi
29476
29477
29478
29479
29480
29481 { $as_echo "$as_me:$LINENO: checking for udev directories" >&5
29482$as_echo_n "checking for udev directories... " >&6; }
29483
29484# Check whether --with-udevdir was given.
29485if test "${with_udevdir+set}" = set; then
29486 withval=$with_udevdir; udevdir=$withval
29487else
29488 udevdir=check
29489fi
29490
29491
29492 if test "x$udevdir" = xcheck; then
29493
29494 path1=/lib/udev
29495 path2=/usr/lib/udev
29496 default=$path2
29497
29498 if test -d "$path1"; then
29499 udevdir="$path1"
29500else
29501
29502 if test -d "$path2"; then
29503 udevdir="$path2"
29504else
29505 udevdir="$default"
29506fi
29507
29508
29509fi
29510
29511
29512fi
29513
29514
29515
29516# Check whether --with-udevruledir was given.
29517if test "${with_udevruledir+set}" = set; then
29518 withval=$with_udevruledir; udevruledir=$withval
29519else
29520 udevruledir="${udevdir}/rules.d"
29521fi
29522
29523
29524
29525
29526 { $as_echo "$as_me:$LINENO: result: $udevdir;$udevruledir" >&5
29527$as_echo "$udevdir;$udevruledir" >&6; }
29528
29529
29530 # Check whether --enable-systemd was given.
29531if test "${enable_systemd+set}" = set; then
29532 enableval=$enable_systemd;
29533else
29534 enable_systemd=yes
29535fi
29536
29537
29538
29539# Check whether --with-systemdunitdir was given.
29540if test "${with_systemdunitdir+set}" = set; then
29541 withval=$with_systemdunitdir; systemdunitdir=$withval
68d83c55
AX
29542else
29543 systemdunitdir=/usr/lib/systemd/system
29544fi
29545
29546
29547
cae5b340
AX
29548# Check whether --with-systemdpresetdir was given.
29549if test "${with_systemdpresetdir+set}" = set; then
29550 withval=$with_systemdpresetdir; systemdpresetdir=$withval
29551else
29552 systemdpresetdir=/usr/lib/systemd/system-preset
29553fi
29554
29555
29556
29557# Check whether --with-systemdmodulesloaddir was given.
29558if test "${with_systemdmodulesloaddir+set}" = set; then
29559 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
29560else
29561 systemdmodulesloaddir=/usr/lib/modules-load.d
29562fi
29563
29564
29565
29566 if test "x$enable_systemd" = xyes; then
29567
29568 ZFS_INIT_SYSTEMD=systemd
29569 ZFS_MODULE_LOAD=modules-load.d
29570 modulesloaddir=$systemdmodulesloaddir
29571
29572fi
29573
29574
29575
29576
29577
29578
29579
29580
29581
29582 # Check whether --enable-sysvinit was given.
29583if test "${enable_sysvinit+set}" = set; then
29584 enableval=$enable_sysvinit;
29585else
29586 enable_sysvinit=yes
29587fi
29588
29589
29590 if test "x$enable_sysvinit" = xyes; then
29591 ZFS_INIT_SYSV=init.d
29592fi
29593
29594
29595
29596
29597
29598 { $as_echo "$as_me:$LINENO: checking for dracut directory" >&5
29599$as_echo_n "checking for dracut directory... " >&6; }
29600
29601# Check whether --with-dracutdir was given.
29602if test "${with_dracutdir+set}" = set; then
29603 withval=$with_dracutdir; dracutdir=$withval
29604else
29605 dracutdir=check
29606fi
29607
29608
29609 if test "x$dracutdir" = xcheck; then
29610
29611 path1=/usr/share/dracut
29612 path2=/usr/lib/dracut
29613 default=$path2
29614
29615 if test -d "$path1"; then
29616 dracutdir="$path1"
29617else
29618
29619 if test -d "$path2"; then
29620 dracutdir="$path2"
29621else
29622 dracutdir="$default"
29623fi
29624
29625
29626fi
29627
29628
29629fi
29630
29631
29632
29633 { $as_echo "$as_me:$LINENO: result: $dracutdir" >&5
29634$as_echo "$dracutdir" >&6; }
29635
29636
29637 ZLIB=
29638
29639 if test "${ac_cv_header_zlib_h+set}" = set; then
29640 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
29641$as_echo_n "checking for zlib.h... " >&6; }
29642if test "${ac_cv_header_zlib_h+set}" = set; then
29643 $as_echo_n "(cached) " >&6
29644fi
29645{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29646$as_echo "$ac_cv_header_zlib_h" >&6; }
29647else
29648 # Is the header compilable?
29649{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
29650$as_echo_n "checking zlib.h usability... " >&6; }
29651cat >conftest.$ac_ext <<_ACEOF
29652/* confdefs.h. */
29653_ACEOF
29654cat confdefs.h >>conftest.$ac_ext
29655cat >>conftest.$ac_ext <<_ACEOF
29656/* end confdefs.h. */
29657$ac_includes_default
29658#include <zlib.h>
29659_ACEOF
29660rm -f conftest.$ac_objext
29661if { (ac_try="$ac_compile"
29662case "(($ac_try" in
29663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29664 *) ac_try_echo=$ac_try;;
29665esac
29666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29667$as_echo "$ac_try_echo") >&5
29668 (eval "$ac_compile") 2>conftest.er1
29669 ac_status=$?
29670 grep -v '^ *+' conftest.er1 >conftest.err
29671 rm -f conftest.er1
29672 cat conftest.err >&5
29673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674 (exit $ac_status); } && {
29675 test -z "$ac_c_werror_flag" ||
29676 test ! -s conftest.err
29677 } && test -s conftest.$ac_objext; then
29678 ac_header_compiler=yes
29679else
29680 $as_echo "$as_me: failed program was:" >&5
29681sed 's/^/| /' conftest.$ac_ext >&5
29682
29683 ac_header_compiler=no
29684fi
29685
29686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29687{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29688$as_echo "$ac_header_compiler" >&6; }
29689
29690# Is the header present?
29691{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
29692$as_echo_n "checking zlib.h presence... " >&6; }
29693cat >conftest.$ac_ext <<_ACEOF
29694/* confdefs.h. */
29695_ACEOF
29696cat confdefs.h >>conftest.$ac_ext
29697cat >>conftest.$ac_ext <<_ACEOF
29698/* end confdefs.h. */
29699#include <zlib.h>
29700_ACEOF
29701if { (ac_try="$ac_cpp conftest.$ac_ext"
29702case "(($ac_try" in
29703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29704 *) ac_try_echo=$ac_try;;
29705esac
29706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29707$as_echo "$ac_try_echo") >&5
29708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29709 ac_status=$?
29710 grep -v '^ *+' conftest.er1 >conftest.err
29711 rm -f conftest.er1
29712 cat conftest.err >&5
29713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714 (exit $ac_status); } >/dev/null && {
29715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29716 test ! -s conftest.err
29717 }; then
29718 ac_header_preproc=yes
29719else
29720 $as_echo "$as_me: failed program was:" >&5
29721sed 's/^/| /' conftest.$ac_ext >&5
29722
29723 ac_header_preproc=no
29724fi
29725
29726rm -f conftest.err conftest.$ac_ext
29727{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29728$as_echo "$ac_header_preproc" >&6; }
29729
29730# So? What about this header?
29731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29732 yes:no: )
29733 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
29734$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29735 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
29736$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
29737 ac_header_preproc=yes
29738 ;;
29739 no:yes:* )
29740 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
29741$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
29742 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
29743$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
29744 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
29745$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
29746 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
29747$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
29748 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
29749$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
29750 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
29751$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
29752
29753 ;;
29754esac
29755{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
29756$as_echo_n "checking for zlib.h... " >&6; }
29757if test "${ac_cv_header_zlib_h+set}" = set; then
29758 $as_echo_n "(cached) " >&6
29759else
29760 ac_cv_header_zlib_h=$ac_header_preproc
29761fi
29762{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29763$as_echo "$ac_cv_header_zlib_h" >&6; }
29764
29765fi
29766if test "x$ac_cv_header_zlib_h" = x""yes; then
29767 :
29768else
29769 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29771{ { $as_echo "$as_me:$LINENO: error:
29772 *** zlib.h missing, zlib-devel package required
29773See \`config.log' for more details." >&5
29774$as_echo "$as_me: error:
29775 *** zlib.h missing, zlib-devel package required
29776See \`config.log' for more details." >&2;}
29777 { (exit 1); exit 1; }; }; }
29778fi
29779
29780
29781
29782 { $as_echo "$as_me:$LINENO: checking for library containing compress2" >&5
29783$as_echo_n "checking for library containing compress2... " >&6; }
29784if test "${ac_cv_search_compress2+set}" = set; then
29785 $as_echo_n "(cached) " >&6
29786else
29787 ac_func_search_save_LIBS=$LIBS
29788cat >conftest.$ac_ext <<_ACEOF
29789/* confdefs.h. */
29790_ACEOF
29791cat confdefs.h >>conftest.$ac_ext
29792cat >>conftest.$ac_ext <<_ACEOF
29793/* end confdefs.h. */
29794
29795/* Override any GCC internal prototype to avoid an error.
29796 Use char because int might match the return type of a GCC
29797 builtin and then its argument prototype would still apply. */
29798#ifdef __cplusplus
29799extern "C"
29800#endif
29801char compress2 ();
29802int
29803main ()
29804{
29805return compress2 ();
29806 ;
29807 return 0;
29808}
29809_ACEOF
29810for ac_lib in '' z; do
29811 if test -z "$ac_lib"; then
29812 ac_res="none required"
29813 else
29814 ac_res=-l$ac_lib
29815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29816 fi
29817 rm -f conftest.$ac_objext conftest$ac_exeext
29818if { (ac_try="$ac_link"
29819case "(($ac_try" in
29820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29821 *) ac_try_echo=$ac_try;;
29822esac
29823eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29824$as_echo "$ac_try_echo") >&5
29825 (eval "$ac_link") 2>conftest.er1
29826 ac_status=$?
29827 grep -v '^ *+' conftest.er1 >conftest.err
29828 rm -f conftest.er1
29829 cat conftest.err >&5
29830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); } && {
29832 test -z "$ac_c_werror_flag" ||
29833 test ! -s conftest.err
29834 } && test -s conftest$ac_exeext && {
29835 test "$cross_compiling" = yes ||
29836 $as_test_x conftest$ac_exeext
29837 }; then
29838 ac_cv_search_compress2=$ac_res
29839else
29840 $as_echo "$as_me: failed program was:" >&5
29841sed 's/^/| /' conftest.$ac_ext >&5
29842
29843
29844fi
29845
29846rm -rf conftest.dSYM
29847rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29848 conftest$ac_exeext
29849 if test "${ac_cv_search_compress2+set}" = set; then
29850 break
29851fi
29852done
29853if test "${ac_cv_search_compress2+set}" = set; then
29854 :
29855else
29856 ac_cv_search_compress2=no
29857fi
29858rm conftest.$ac_ext
29859LIBS=$ac_func_search_save_LIBS
29860fi
29861{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_compress2" >&5
29862$as_echo "$ac_cv_search_compress2" >&6; }
29863ac_res=$ac_cv_search_compress2
29864if test "$ac_res" != no; then
29865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29866
29867else
29868 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29870{ { $as_echo "$as_me:$LINENO: error:
29871 *** compress2() missing, zlib-devel package required
29872See \`config.log' for more details." >&5
29873$as_echo "$as_me: error:
29874 *** compress2() missing, zlib-devel package required
29875See \`config.log' for more details." >&2;}
29876 { (exit 1); exit 1; }; }; }
29877fi
29878
29879
29880 { $as_echo "$as_me:$LINENO: checking for library containing uncompress" >&5
29881$as_echo_n "checking for library containing uncompress... " >&6; }
29882if test "${ac_cv_search_uncompress+set}" = set; then
29883 $as_echo_n "(cached) " >&6
29884else
29885 ac_func_search_save_LIBS=$LIBS
29886cat >conftest.$ac_ext <<_ACEOF
29887/* confdefs.h. */
29888_ACEOF
29889cat confdefs.h >>conftest.$ac_ext
29890cat >>conftest.$ac_ext <<_ACEOF
29891/* end confdefs.h. */
29892
29893/* Override any GCC internal prototype to avoid an error.
29894 Use char because int might match the return type of a GCC
29895 builtin and then its argument prototype would still apply. */
29896#ifdef __cplusplus
29897extern "C"
29898#endif
29899char uncompress ();
29900int
29901main ()
29902{
29903return uncompress ();
29904 ;
29905 return 0;
29906}
29907_ACEOF
29908for ac_lib in '' z; do
29909 if test -z "$ac_lib"; then
29910 ac_res="none required"
29911 else
29912 ac_res=-l$ac_lib
29913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29914 fi
29915 rm -f conftest.$ac_objext conftest$ac_exeext
29916if { (ac_try="$ac_link"
29917case "(($ac_try" in
29918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29919 *) ac_try_echo=$ac_try;;
29920esac
29921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29922$as_echo "$ac_try_echo") >&5
29923 (eval "$ac_link") 2>conftest.er1
29924 ac_status=$?
29925 grep -v '^ *+' conftest.er1 >conftest.err
29926 rm -f conftest.er1
29927 cat conftest.err >&5
29928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29929 (exit $ac_status); } && {
29930 test -z "$ac_c_werror_flag" ||
29931 test ! -s conftest.err
29932 } && test -s conftest$ac_exeext && {
29933 test "$cross_compiling" = yes ||
29934 $as_test_x conftest$ac_exeext
29935 }; then
29936 ac_cv_search_uncompress=$ac_res
29937else
29938 $as_echo "$as_me: failed program was:" >&5
29939sed 's/^/| /' conftest.$ac_ext >&5
29940
29941
29942fi
29943
29944rm -rf conftest.dSYM
29945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29946 conftest$ac_exeext
29947 if test "${ac_cv_search_uncompress+set}" = set; then
29948 break
29949fi
29950done
29951if test "${ac_cv_search_uncompress+set}" = set; then
29952 :
29953else
29954 ac_cv_search_uncompress=no
29955fi
29956rm conftest.$ac_ext
29957LIBS=$ac_func_search_save_LIBS
29958fi
29959{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_uncompress" >&5
29960$as_echo "$ac_cv_search_uncompress" >&6; }
29961ac_res=$ac_cv_search_uncompress
29962if test "$ac_res" != no; then
29963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29964
29965else
29966 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29968{ { $as_echo "$as_me:$LINENO: error:
29969 *** uncompress() missing, zlib-devel package required
29970See \`config.log' for more details." >&5
29971$as_echo "$as_me: error:
29972 *** uncompress() missing, zlib-devel package required
29973See \`config.log' for more details." >&2;}
29974 { (exit 1); exit 1; }; }; }
29975fi
29976
29977
29978 { $as_echo "$as_me:$LINENO: checking for library containing crc32" >&5
29979$as_echo_n "checking for library containing crc32... " >&6; }
29980if test "${ac_cv_search_crc32+set}" = set; then
29981 $as_echo_n "(cached) " >&6
29982else
29983 ac_func_search_save_LIBS=$LIBS
29984cat >conftest.$ac_ext <<_ACEOF
29985/* confdefs.h. */
29986_ACEOF
29987cat confdefs.h >>conftest.$ac_ext
29988cat >>conftest.$ac_ext <<_ACEOF
29989/* end confdefs.h. */
29990
29991/* Override any GCC internal prototype to avoid an error.
29992 Use char because int might match the return type of a GCC
29993 builtin and then its argument prototype would still apply. */
29994#ifdef __cplusplus
29995extern "C"
29996#endif
29997char crc32 ();
29998int
29999main ()
30000{
30001return crc32 ();
30002 ;
30003 return 0;
30004}
30005_ACEOF
30006for ac_lib in '' z; do
30007 if test -z "$ac_lib"; then
30008 ac_res="none required"
30009 else
30010 ac_res=-l$ac_lib
30011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30012 fi
30013 rm -f conftest.$ac_objext conftest$ac_exeext
30014if { (ac_try="$ac_link"
30015case "(($ac_try" in
30016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30017 *) ac_try_echo=$ac_try;;
30018esac
30019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30020$as_echo "$ac_try_echo") >&5
30021 (eval "$ac_link") 2>conftest.er1
30022 ac_status=$?
30023 grep -v '^ *+' conftest.er1 >conftest.err
30024 rm -f conftest.er1
30025 cat conftest.err >&5
30026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30027 (exit $ac_status); } && {
30028 test -z "$ac_c_werror_flag" ||
30029 test ! -s conftest.err
30030 } && test -s conftest$ac_exeext && {
30031 test "$cross_compiling" = yes ||
30032 $as_test_x conftest$ac_exeext
30033 }; then
30034 ac_cv_search_crc32=$ac_res
30035else
30036 $as_echo "$as_me: failed program was:" >&5
30037sed 's/^/| /' conftest.$ac_ext >&5
30038
30039
30040fi
30041
30042rm -rf conftest.dSYM
30043rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30044 conftest$ac_exeext
30045 if test "${ac_cv_search_crc32+set}" = set; then
30046 break
30047fi
30048done
30049if test "${ac_cv_search_crc32+set}" = set; then
30050 :
30051else
30052 ac_cv_search_crc32=no
30053fi
30054rm conftest.$ac_ext
30055LIBS=$ac_func_search_save_LIBS
30056fi
30057{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_crc32" >&5
30058$as_echo "$ac_cv_search_crc32" >&6; }
30059ac_res=$ac_cv_search_crc32
30060if test "$ac_res" != no; then
30061 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30062
30063else
30064 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30066{ { $as_echo "$as_me:$LINENO: error:
30067 *** crc32() missing, zlib-devel package required
30068See \`config.log' for more details." >&5
30069$as_echo "$as_me: error:
30070 *** crc32() missing, zlib-devel package required
30071See \`config.log' for more details." >&2;}
30072 { (exit 1); exit 1; }; }; }
30073fi
30074
30075
30076 ZLIB="-lz"
30077
30078
30079cat >>confdefs.h <<\_ACEOF
30080#define HAVE_ZLIB 1
30081_ACEOF
30082
30083
30084
30085 LIBUUID=
30086
30087 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
30088 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
30089$as_echo_n "checking for uuid/uuid.h... " >&6; }
30090if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
30091 $as_echo_n "(cached) " >&6
30092fi
30093{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
30094$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
30095else
30096 # Is the header compilable?
30097{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
30098$as_echo_n "checking uuid/uuid.h usability... " >&6; }
30099cat >conftest.$ac_ext <<_ACEOF
30100/* confdefs.h. */
30101_ACEOF
30102cat confdefs.h >>conftest.$ac_ext
30103cat >>conftest.$ac_ext <<_ACEOF
30104/* end confdefs.h. */
30105$ac_includes_default
30106#include <uuid/uuid.h>
30107_ACEOF
30108rm -f conftest.$ac_objext
30109if { (ac_try="$ac_compile"
30110case "(($ac_try" in
30111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30112 *) ac_try_echo=$ac_try;;
30113esac
30114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30115$as_echo "$ac_try_echo") >&5
30116 (eval "$ac_compile") 2>conftest.er1
30117 ac_status=$?
30118 grep -v '^ *+' conftest.er1 >conftest.err
30119 rm -f conftest.er1
30120 cat conftest.err >&5
30121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); } && {
30123 test -z "$ac_c_werror_flag" ||
30124 test ! -s conftest.err
30125 } && test -s conftest.$ac_objext; then
30126 ac_header_compiler=yes
30127else
30128 $as_echo "$as_me: failed program was:" >&5
30129sed 's/^/| /' conftest.$ac_ext >&5
30130
30131 ac_header_compiler=no
30132fi
30133
30134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30135{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30136$as_echo "$ac_header_compiler" >&6; }
30137
30138# Is the header present?
30139{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
30140$as_echo_n "checking uuid/uuid.h presence... " >&6; }
30141cat >conftest.$ac_ext <<_ACEOF
30142/* confdefs.h. */
30143_ACEOF
30144cat confdefs.h >>conftest.$ac_ext
30145cat >>conftest.$ac_ext <<_ACEOF
30146/* end confdefs.h. */
30147#include <uuid/uuid.h>
30148_ACEOF
30149if { (ac_try="$ac_cpp conftest.$ac_ext"
30150case "(($ac_try" in
30151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30152 *) ac_try_echo=$ac_try;;
30153esac
30154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30155$as_echo "$ac_try_echo") >&5
30156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30157 ac_status=$?
30158 grep -v '^ *+' conftest.er1 >conftest.err
30159 rm -f conftest.er1
30160 cat conftest.err >&5
30161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30162 (exit $ac_status); } >/dev/null && {
30163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30164 test ! -s conftest.err
30165 }; then
30166 ac_header_preproc=yes
30167else
30168 $as_echo "$as_me: failed program was:" >&5
30169sed 's/^/| /' conftest.$ac_ext >&5
30170
30171 ac_header_preproc=no
30172fi
30173
30174rm -f conftest.err conftest.$ac_ext
30175{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30176$as_echo "$ac_header_preproc" >&6; }
30177
30178# So? What about this header?
30179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30180 yes:no: )
30181 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
30182$as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30183 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
30184$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
30185 ac_header_preproc=yes
30186 ;;
30187 no:yes:* )
30188 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
30189$as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
30190 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
30191$as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
30192 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
30193$as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
30194 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
30195$as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
30196 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
30197$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
30198 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
30199$as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
30200
30201 ;;
30202esac
30203{ $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
30204$as_echo_n "checking for uuid/uuid.h... " >&6; }
30205if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
30206 $as_echo_n "(cached) " >&6
30207else
30208 ac_cv_header_uuid_uuid_h=$ac_header_preproc
30209fi
30210{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
30211$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
30212
30213fi
30214if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
30215 :
30216else
30217 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30219{ { $as_echo "$as_me:$LINENO: error:
30220 *** uuid/uuid.h missing, libuuid-devel package required
30221See \`config.log' for more details." >&5
30222$as_echo "$as_me: error:
30223 *** uuid/uuid.h missing, libuuid-devel package required
30224See \`config.log' for more details." >&2;}
30225 { (exit 1); exit 1; }; }; }
30226fi
30227
30228
30229
30230 { $as_echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
30231$as_echo_n "checking for library containing uuid_generate... " >&6; }
30232if test "${ac_cv_search_uuid_generate+set}" = set; then
30233 $as_echo_n "(cached) " >&6
30234else
30235 ac_func_search_save_LIBS=$LIBS
30236cat >conftest.$ac_ext <<_ACEOF
30237/* confdefs.h. */
30238_ACEOF
30239cat confdefs.h >>conftest.$ac_ext
30240cat >>conftest.$ac_ext <<_ACEOF
30241/* end confdefs.h. */
30242
30243/* Override any GCC internal prototype to avoid an error.
30244 Use char because int might match the return type of a GCC
30245 builtin and then its argument prototype would still apply. */
30246#ifdef __cplusplus
30247extern "C"
30248#endif
30249char uuid_generate ();
30250int
30251main ()
30252{
30253return uuid_generate ();
30254 ;
30255 return 0;
30256}
30257_ACEOF
30258for ac_lib in '' uuid; do
30259 if test -z "$ac_lib"; then
30260 ac_res="none required"
30261 else
30262 ac_res=-l$ac_lib
30263 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30264 fi
30265 rm -f conftest.$ac_objext conftest$ac_exeext
30266if { (ac_try="$ac_link"
30267case "(($ac_try" in
30268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30269 *) ac_try_echo=$ac_try;;
30270esac
30271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30272$as_echo "$ac_try_echo") >&5
30273 (eval "$ac_link") 2>conftest.er1
30274 ac_status=$?
30275 grep -v '^ *+' conftest.er1 >conftest.err
30276 rm -f conftest.er1
30277 cat conftest.err >&5
30278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279 (exit $ac_status); } && {
30280 test -z "$ac_c_werror_flag" ||
30281 test ! -s conftest.err
30282 } && test -s conftest$ac_exeext && {
30283 test "$cross_compiling" = yes ||
30284 $as_test_x conftest$ac_exeext
30285 }; then
30286 ac_cv_search_uuid_generate=$ac_res
30287else
30288 $as_echo "$as_me: failed program was:" >&5
30289sed 's/^/| /' conftest.$ac_ext >&5
30290
30291
30292fi
30293
30294rm -rf conftest.dSYM
30295rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30296 conftest$ac_exeext
30297 if test "${ac_cv_search_uuid_generate+set}" = set; then
30298 break
30299fi
30300done
30301if test "${ac_cv_search_uuid_generate+set}" = set; then
30302 :
30303else
30304 ac_cv_search_uuid_generate=no
30305fi
30306rm conftest.$ac_ext
30307LIBS=$ac_func_search_save_LIBS
30308fi
30309{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
30310$as_echo "$ac_cv_search_uuid_generate" >&6; }
30311ac_res=$ac_cv_search_uuid_generate
30312if test "$ac_res" != no; then
30313 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30314
30315else
30316 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30318{ { $as_echo "$as_me:$LINENO: error:
30319 *** uuid_generate() missing, libuuid-devel package required
30320See \`config.log' for more details." >&5
30321$as_echo "$as_me: error:
30322 *** uuid_generate() missing, libuuid-devel package required
30323See \`config.log' for more details." >&2;}
30324 { (exit 1); exit 1; }; }; }
30325fi
30326
30327
30328 { $as_echo "$as_me:$LINENO: checking for library containing uuid_is_null" >&5
30329$as_echo_n "checking for library containing uuid_is_null... " >&6; }
30330if test "${ac_cv_search_uuid_is_null+set}" = set; then
30331 $as_echo_n "(cached) " >&6
30332else
30333 ac_func_search_save_LIBS=$LIBS
30334cat >conftest.$ac_ext <<_ACEOF
30335/* confdefs.h. */
30336_ACEOF
30337cat confdefs.h >>conftest.$ac_ext
30338cat >>conftest.$ac_ext <<_ACEOF
30339/* end confdefs.h. */
30340
30341/* Override any GCC internal prototype to avoid an error.
30342 Use char because int might match the return type of a GCC
30343 builtin and then its argument prototype would still apply. */
30344#ifdef __cplusplus
30345extern "C"
30346#endif
30347char uuid_is_null ();
30348int
30349main ()
30350{
30351return uuid_is_null ();
30352 ;
30353 return 0;
30354}
30355_ACEOF
30356for ac_lib in '' uuid; do
30357 if test -z "$ac_lib"; then
30358 ac_res="none required"
30359 else
30360 ac_res=-l$ac_lib
30361 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30362 fi
30363 rm -f conftest.$ac_objext conftest$ac_exeext
30364if { (ac_try="$ac_link"
30365case "(($ac_try" in
30366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30367 *) ac_try_echo=$ac_try;;
30368esac
30369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30370$as_echo "$ac_try_echo") >&5
30371 (eval "$ac_link") 2>conftest.er1
30372 ac_status=$?
30373 grep -v '^ *+' conftest.er1 >conftest.err
30374 rm -f conftest.er1
30375 cat conftest.err >&5
30376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377 (exit $ac_status); } && {
30378 test -z "$ac_c_werror_flag" ||
30379 test ! -s conftest.err
30380 } && test -s conftest$ac_exeext && {
30381 test "$cross_compiling" = yes ||
30382 $as_test_x conftest$ac_exeext
30383 }; then
30384 ac_cv_search_uuid_is_null=$ac_res
30385else
30386 $as_echo "$as_me: failed program was:" >&5
30387sed 's/^/| /' conftest.$ac_ext >&5
30388
30389
30390fi
30391
30392rm -rf conftest.dSYM
30393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30394 conftest$ac_exeext
30395 if test "${ac_cv_search_uuid_is_null+set}" = set; then
30396 break
30397fi
30398done
30399if test "${ac_cv_search_uuid_is_null+set}" = set; then
30400 :
30401else
30402 ac_cv_search_uuid_is_null=no
30403fi
30404rm conftest.$ac_ext
30405LIBS=$ac_func_search_save_LIBS
30406fi
30407{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_is_null" >&5
30408$as_echo "$ac_cv_search_uuid_is_null" >&6; }
30409ac_res=$ac_cv_search_uuid_is_null
30410if test "$ac_res" != no; then
30411 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30412
30413else
30414 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30416{ { $as_echo "$as_me:$LINENO: error:
30417 *** uuid_is_null() missing, libuuid-devel package required
30418See \`config.log' for more details." >&5
30419$as_echo "$as_me: error:
30420 *** uuid_is_null() missing, libuuid-devel package required
30421See \`config.log' for more details." >&2;}
30422 { (exit 1); exit 1; }; }; }
30423fi
30424
30425
30426 LIBUUID="-luuid"
30427
30428
30429cat >>confdefs.h <<\_ACEOF
30430#define HAVE_LIBUUID 1
30431_ACEOF
30432
30433
30434
30435
30436# Check whether --with-tirpc was given.
30437if test "${with_tirpc+set}" = set; then
30438 withval=$with_tirpc;
30439else
30440 with_tirpc=check
30441fi
30442
30443
30444 LIBTIRPC=
30445 LIBTIRPC_CFLAGS=
30446
30447 if test "x$with_tirpc" != xno; then
30448 { $as_echo "$as_me:$LINENO: checking for xdrmem_create in -ltirpc" >&5
30449$as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
30450if test "${ac_cv_lib_tirpc_xdrmem_create+set}" = set; then
30451 $as_echo_n "(cached) " >&6
30452else
30453 ac_check_lib_save_LIBS=$LIBS
30454LIBS="-ltirpc $LIBS"
30455cat >conftest.$ac_ext <<_ACEOF
30456/* confdefs.h. */
30457_ACEOF
30458cat confdefs.h >>conftest.$ac_ext
30459cat >>conftest.$ac_ext <<_ACEOF
30460/* end confdefs.h. */
30461
30462/* Override any GCC internal prototype to avoid an error.
30463 Use char because int might match the return type of a GCC
30464 builtin and then its argument prototype would still apply. */
30465#ifdef __cplusplus
30466extern "C"
30467#endif
30468char xdrmem_create ();
30469int
30470main ()
30471{
30472return xdrmem_create ();
30473 ;
30474 return 0;
30475}
30476_ACEOF
30477rm -f conftest.$ac_objext conftest$ac_exeext
30478if { (ac_try="$ac_link"
30479case "(($ac_try" in
30480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30481 *) ac_try_echo=$ac_try;;
30482esac
30483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30484$as_echo "$ac_try_echo") >&5
30485 (eval "$ac_link") 2>conftest.er1
30486 ac_status=$?
30487 grep -v '^ *+' conftest.er1 >conftest.err
30488 rm -f conftest.er1
30489 cat conftest.err >&5
30490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30491 (exit $ac_status); } && {
30492 test -z "$ac_c_werror_flag" ||
30493 test ! -s conftest.err
30494 } && test -s conftest$ac_exeext && {
30495 test "$cross_compiling" = yes ||
30496 $as_test_x conftest$ac_exeext
30497 }; then
30498 ac_cv_lib_tirpc_xdrmem_create=yes
30499else
30500 $as_echo "$as_me: failed program was:" >&5
30501sed 's/^/| /' conftest.$ac_ext >&5
30502
30503 ac_cv_lib_tirpc_xdrmem_create=no
30504fi
30505
30506rm -rf conftest.dSYM
30507rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30508 conftest$ac_exeext conftest.$ac_ext
30509LIBS=$ac_check_lib_save_LIBS
30510fi
30511{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
30512$as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
30513if test "x$ac_cv_lib_tirpc_xdrmem_create" = x""yes; then
30514 LIBTIRPC=-ltirpc
30515
30516 LIBTIRPC_CFLAGS=-I/usr/include/tirpc
30517
30518
30519cat >>confdefs.h <<\_ACEOF
30520#define HAVE_LIBTIRPC 1
30521_ACEOF
30522
30523
30524else
30525 if test "x$with_tirpc" != xcheck; then
30526 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30528{ { $as_echo "$as_me:$LINENO: error: --with-tirpc was given, but test for tirpc failed
30529See \`config.log' for more details." >&5
30530$as_echo "$as_me: error: --with-tirpc was given, but test for tirpc failed
30531See \`config.log' for more details." >&2;}
30532 { (exit 1); exit 1; }; }; }
30533 fi
30534 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
30535$as_echo_n "checking for library containing xdrmem_create... " >&6; }
30536if test "${ac_cv_search_xdrmem_create+set}" = set; then
30537 $as_echo_n "(cached) " >&6
30538else
30539 ac_func_search_save_LIBS=$LIBS
30540cat >conftest.$ac_ext <<_ACEOF
30541/* confdefs.h. */
30542_ACEOF
30543cat confdefs.h >>conftest.$ac_ext
30544cat >>conftest.$ac_ext <<_ACEOF
30545/* end confdefs.h. */
30546
30547/* Override any GCC internal prototype to avoid an error.
30548 Use char because int might match the return type of a GCC
30549 builtin and then its argument prototype would still apply. */
30550#ifdef __cplusplus
30551extern "C"
30552#endif
30553char xdrmem_create ();
30554int
30555main ()
30556{
30557return xdrmem_create ();
30558 ;
30559 return 0;
30560}
30561_ACEOF
30562for ac_lib in '' tirpc; do
30563 if test -z "$ac_lib"; then
30564 ac_res="none required"
30565 else
30566 ac_res=-l$ac_lib
30567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30568 fi
30569 rm -f conftest.$ac_objext conftest$ac_exeext
30570if { (ac_try="$ac_link"
30571case "(($ac_try" in
30572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30573 *) ac_try_echo=$ac_try;;
30574esac
30575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30576$as_echo "$ac_try_echo") >&5
30577 (eval "$ac_link") 2>conftest.er1
30578 ac_status=$?
30579 grep -v '^ *+' conftest.er1 >conftest.err
30580 rm -f conftest.er1
30581 cat conftest.err >&5
30582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); } && {
30584 test -z "$ac_c_werror_flag" ||
30585 test ! -s conftest.err
30586 } && test -s conftest$ac_exeext && {
30587 test "$cross_compiling" = yes ||
30588 $as_test_x conftest$ac_exeext
30589 }; then
30590 ac_cv_search_xdrmem_create=$ac_res
30591else
30592 $as_echo "$as_me: failed program was:" >&5
30593sed 's/^/| /' conftest.$ac_ext >&5
30594
30595
30596fi
30597
30598rm -rf conftest.dSYM
30599rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30600 conftest$ac_exeext
30601 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30602 break
30603fi
30604done
30605if test "${ac_cv_search_xdrmem_create+set}" = set; then
30606 :
30607else
30608 ac_cv_search_xdrmem_create=no
30609fi
30610rm conftest.$ac_ext
30611LIBS=$ac_func_search_save_LIBS
30612fi
30613{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
30614$as_echo "$ac_cv_search_xdrmem_create" >&6; }
30615ac_res=$ac_cv_search_xdrmem_create
30616if test "$ac_res" != no; then
30617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30618
30619else
30620
30621 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30623{ { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires tirpc or libc
30624See \`config.log' for more details." >&5
30625$as_echo "$as_me: error: xdrmem_create() requires tirpc or libc
30626See \`config.log' for more details." >&2;}
30627 { (exit 1); exit 1; }; }; }
30628fi
30629
30630
30631fi
30632
30633else
30634 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
30635$as_echo_n "checking for library containing xdrmem_create... " >&6; }
30636if test "${ac_cv_search_xdrmem_create+set}" = set; then
30637 $as_echo_n "(cached) " >&6
30638else
30639 ac_func_search_save_LIBS=$LIBS
30640cat >conftest.$ac_ext <<_ACEOF
30641/* confdefs.h. */
30642_ACEOF
30643cat confdefs.h >>conftest.$ac_ext
30644cat >>conftest.$ac_ext <<_ACEOF
30645/* end confdefs.h. */
30646
30647/* Override any GCC internal prototype to avoid an error.
30648 Use char because int might match the return type of a GCC
30649 builtin and then its argument prototype would still apply. */
30650#ifdef __cplusplus
30651extern "C"
30652#endif
30653char xdrmem_create ();
30654int
30655main ()
30656{
30657return xdrmem_create ();
30658 ;
30659 return 0;
30660}
30661_ACEOF
30662for ac_lib in '' tirpc; do
30663 if test -z "$ac_lib"; then
30664 ac_res="none required"
30665 else
30666 ac_res=-l$ac_lib
30667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30668 fi
30669 rm -f conftest.$ac_objext conftest$ac_exeext
30670if { (ac_try="$ac_link"
30671case "(($ac_try" in
30672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30673 *) ac_try_echo=$ac_try;;
30674esac
30675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30676$as_echo "$ac_try_echo") >&5
30677 (eval "$ac_link") 2>conftest.er1
30678 ac_status=$?
30679 grep -v '^ *+' conftest.er1 >conftest.err
30680 rm -f conftest.er1
30681 cat conftest.err >&5
30682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30683 (exit $ac_status); } && {
30684 test -z "$ac_c_werror_flag" ||
30685 test ! -s conftest.err
30686 } && test -s conftest$ac_exeext && {
30687 test "$cross_compiling" = yes ||
30688 $as_test_x conftest$ac_exeext
30689 }; then
30690 ac_cv_search_xdrmem_create=$ac_res
30691else
30692 $as_echo "$as_me: failed program was:" >&5
30693sed 's/^/| /' conftest.$ac_ext >&5
30694
30695
30696fi
30697
30698rm -rf conftest.dSYM
30699rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30700 conftest$ac_exeext
30701 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30702 break
30703fi
30704done
30705if test "${ac_cv_search_xdrmem_create+set}" = set; then
30706 :
30707else
30708 ac_cv_search_xdrmem_create=no
30709fi
30710rm conftest.$ac_ext
30711LIBS=$ac_func_search_save_LIBS
30712fi
30713{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
30714$as_echo "$ac_cv_search_xdrmem_create" >&6; }
30715ac_res=$ac_cv_search_xdrmem_create
30716if test "$ac_res" != no; then
30717 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30718
30719else
30720
30721 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30723{ { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires libc
30724See \`config.log' for more details." >&5
30725$as_echo "$as_me: error: xdrmem_create() requires libc
30726See \`config.log' for more details." >&2;}
30727 { (exit 1); exit 1; }; }; }
30728fi
30729
30730
30731fi
30732
30733
30734
30735 LIBBLKID=
30736
30737 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30738 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
30739$as_echo_n "checking for blkid/blkid.h... " >&6; }
30740if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30741 $as_echo_n "(cached) " >&6
30742fi
30743{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
30744$as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
30745else
30746 # Is the header compilable?
30747{ $as_echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
30748$as_echo_n "checking blkid/blkid.h usability... " >&6; }
30749cat >conftest.$ac_ext <<_ACEOF
30750/* confdefs.h. */
30751_ACEOF
30752cat confdefs.h >>conftest.$ac_ext
30753cat >>conftest.$ac_ext <<_ACEOF
30754/* end confdefs.h. */
30755$ac_includes_default
30756#include <blkid/blkid.h>
30757_ACEOF
30758rm -f conftest.$ac_objext
30759if { (ac_try="$ac_compile"
30760case "(($ac_try" in
30761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30762 *) ac_try_echo=$ac_try;;
30763esac
30764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30765$as_echo "$ac_try_echo") >&5
30766 (eval "$ac_compile") 2>conftest.er1
30767 ac_status=$?
30768 grep -v '^ *+' conftest.er1 >conftest.err
30769 rm -f conftest.er1
30770 cat conftest.err >&5
30771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30772 (exit $ac_status); } && {
30773 test -z "$ac_c_werror_flag" ||
30774 test ! -s conftest.err
30775 } && test -s conftest.$ac_objext; then
30776 ac_header_compiler=yes
30777else
30778 $as_echo "$as_me: failed program was:" >&5
30779sed 's/^/| /' conftest.$ac_ext >&5
30780
30781 ac_header_compiler=no
30782fi
30783
30784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30785{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30786$as_echo "$ac_header_compiler" >&6; }
30787
30788# Is the header present?
30789{ $as_echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
30790$as_echo_n "checking blkid/blkid.h presence... " >&6; }
30791cat >conftest.$ac_ext <<_ACEOF
30792/* confdefs.h. */
30793_ACEOF
30794cat confdefs.h >>conftest.$ac_ext
30795cat >>conftest.$ac_ext <<_ACEOF
30796/* end confdefs.h. */
30797#include <blkid/blkid.h>
30798_ACEOF
30799if { (ac_try="$ac_cpp conftest.$ac_ext"
30800case "(($ac_try" in
30801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30802 *) ac_try_echo=$ac_try;;
30803esac
30804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30805$as_echo "$ac_try_echo") >&5
30806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30807 ac_status=$?
30808 grep -v '^ *+' conftest.er1 >conftest.err
30809 rm -f conftest.er1
30810 cat conftest.err >&5
30811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812 (exit $ac_status); } >/dev/null && {
30813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30814 test ! -s conftest.err
30815 }; then
30816 ac_header_preproc=yes
30817else
30818 $as_echo "$as_me: failed program was:" >&5
30819sed 's/^/| /' conftest.$ac_ext >&5
30820
30821 ac_header_preproc=no
30822fi
30823
30824rm -f conftest.err conftest.$ac_ext
30825{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30826$as_echo "$ac_header_preproc" >&6; }
30827
30828# So? What about this header?
30829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30830 yes:no: )
30831 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
30832$as_echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30833 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
30834$as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
30835 ac_header_preproc=yes
30836 ;;
30837 no:yes:* )
30838 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
30839$as_echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
30840 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
30841$as_echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
30842 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
30843$as_echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
30844 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
30845$as_echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
30846 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
30847$as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
30848 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
30849$as_echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
30850
30851 ;;
30852esac
30853{ $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
30854$as_echo_n "checking for blkid/blkid.h... " >&6; }
30855if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30856 $as_echo_n "(cached) " >&6
30857else
30858 ac_cv_header_blkid_blkid_h=$ac_header_preproc
30859fi
30860{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
30861$as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
30862
30863fi
30864if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then
30865 :
30866else
30867 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30869{ { $as_echo "$as_me:$LINENO: error:
30870 *** blkid.h missing, libblkid-devel package required
30871See \`config.log' for more details." >&5
30872$as_echo "$as_me: error:
30873 *** blkid.h missing, libblkid-devel package required
30874See \`config.log' for more details." >&2;}
30875 { (exit 1); exit 1; }; }; }
30876fi
30877
30878
30879
30880 LIBBLKID="-lblkid"
30881
30882
30883cat >>confdefs.h <<\_ACEOF
30884#define HAVE_LIBBLKID 1
30885_ACEOF
30886
30887
30888
30889 LIBATTR=
30890
30891 if test "${ac_cv_header_attr_xattr_h+set}" = set; then
30892 { $as_echo "$as_me:$LINENO: checking for attr/xattr.h" >&5
30893$as_echo_n "checking for attr/xattr.h... " >&6; }
30894if test "${ac_cv_header_attr_xattr_h+set}" = set; then
30895 $as_echo_n "(cached) " >&6
30896fi
30897{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_xattr_h" >&5
30898$as_echo "$ac_cv_header_attr_xattr_h" >&6; }
30899else
30900 # Is the header compilable?
30901{ $as_echo "$as_me:$LINENO: checking attr/xattr.h usability" >&5
30902$as_echo_n "checking attr/xattr.h usability... " >&6; }
30903cat >conftest.$ac_ext <<_ACEOF
30904/* confdefs.h. */
30905_ACEOF
30906cat confdefs.h >>conftest.$ac_ext
30907cat >>conftest.$ac_ext <<_ACEOF
30908/* end confdefs.h. */
30909$ac_includes_default
30910#include <attr/xattr.h>
30911_ACEOF
30912rm -f conftest.$ac_objext
30913if { (ac_try="$ac_compile"
30914case "(($ac_try" in
30915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30916 *) ac_try_echo=$ac_try;;
30917esac
30918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30919$as_echo "$ac_try_echo") >&5
30920 (eval "$ac_compile") 2>conftest.er1
30921 ac_status=$?
30922 grep -v '^ *+' conftest.er1 >conftest.err
30923 rm -f conftest.er1
30924 cat conftest.err >&5
30925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30926 (exit $ac_status); } && {
30927 test -z "$ac_c_werror_flag" ||
30928 test ! -s conftest.err
30929 } && test -s conftest.$ac_objext; then
30930 ac_header_compiler=yes
30931else
30932 $as_echo "$as_me: failed program was:" >&5
30933sed 's/^/| /' conftest.$ac_ext >&5
30934
30935 ac_header_compiler=no
30936fi
30937
30938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30939{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30940$as_echo "$ac_header_compiler" >&6; }
30941
30942# Is the header present?
30943{ $as_echo "$as_me:$LINENO: checking attr/xattr.h presence" >&5
30944$as_echo_n "checking attr/xattr.h presence... " >&6; }
30945cat >conftest.$ac_ext <<_ACEOF
30946/* confdefs.h. */
30947_ACEOF
30948cat confdefs.h >>conftest.$ac_ext
30949cat >>conftest.$ac_ext <<_ACEOF
30950/* end confdefs.h. */
30951#include <attr/xattr.h>
30952_ACEOF
30953if { (ac_try="$ac_cpp conftest.$ac_ext"
30954case "(($ac_try" in
30955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30956 *) ac_try_echo=$ac_try;;
30957esac
30958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30959$as_echo "$ac_try_echo") >&5
30960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30961 ac_status=$?
30962 grep -v '^ *+' conftest.er1 >conftest.err
30963 rm -f conftest.er1
30964 cat conftest.err >&5
30965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966 (exit $ac_status); } >/dev/null && {
30967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30968 test ! -s conftest.err
30969 }; then
30970 ac_header_preproc=yes
68d83c55 30971else
cae5b340
AX
30972 $as_echo "$as_me: failed program was:" >&5
30973sed 's/^/| /' conftest.$ac_ext >&5
30974
30975 ac_header_preproc=no
68d83c55
AX
30976fi
30977
cae5b340
AX
30978rm -f conftest.err conftest.$ac_ext
30979{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30980$as_echo "$ac_header_preproc" >&6; }
68d83c55 30981
cae5b340
AX
30982# So? What about this header?
30983case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30984 yes:no: )
30985 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
30986$as_echo "$as_me: WARNING: attr/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30987 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: proceeding with the compiler's result" >&5
30988$as_echo "$as_me: WARNING: attr/xattr.h: proceeding with the compiler's result" >&2;}
30989 ac_header_preproc=yes
30990 ;;
30991 no:yes:* )
30992 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: present but cannot be compiled" >&5
30993$as_echo "$as_me: WARNING: attr/xattr.h: present but cannot be compiled" >&2;}
30994 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: check for missing prerequisite headers?" >&5
30995$as_echo "$as_me: WARNING: attr/xattr.h: check for missing prerequisite headers?" >&2;}
30996 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: see the Autoconf documentation" >&5
30997$as_echo "$as_me: WARNING: attr/xattr.h: see the Autoconf documentation" >&2;}
30998 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
30999$as_echo "$as_me: WARNING: attr/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
31000 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: proceeding with the preprocessor's result" >&5
31001$as_echo "$as_me: WARNING: attr/xattr.h: proceeding with the preprocessor's result" >&2;}
31002 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: in the future, the compiler will take precedence" >&5
31003$as_echo "$as_me: WARNING: attr/xattr.h: in the future, the compiler will take precedence" >&2;}
68d83c55 31004
cae5b340
AX
31005 ;;
31006esac
31007{ $as_echo "$as_me:$LINENO: checking for attr/xattr.h" >&5
31008$as_echo_n "checking for attr/xattr.h... " >&6; }
31009if test "${ac_cv_header_attr_xattr_h+set}" = set; then
31010 $as_echo_n "(cached) " >&6
68d83c55 31011else
cae5b340 31012 ac_cv_header_attr_xattr_h=$ac_header_preproc
68d83c55 31013fi
cae5b340
AX
31014{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_xattr_h" >&5
31015$as_echo "$ac_cv_header_attr_xattr_h" >&6; }
68d83c55 31016
cae5b340
AX
31017fi
31018if test "x$ac_cv_header_attr_xattr_h" = x""yes; then
31019 :
31020else
31021 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31023{ { $as_echo "$as_me:$LINENO: error:
31024 *** attr/xattr.h missing, libattr-devel package required
31025See \`config.log' for more details." >&5
31026$as_echo "$as_me: error:
31027 *** attr/xattr.h missing, libattr-devel package required
31028See \`config.log' for more details." >&2;}
31029 { (exit 1); exit 1; }; }; }
68d83c55
AX
31030fi
31031
31032
31033
cae5b340 31034 LIBATTR="-lattr"
68d83c55
AX
31035
31036
cae5b340
AX
31037cat >>confdefs.h <<\_ACEOF
31038#define HAVE_LIBATTR 1
31039_ACEOF
68d83c55
AX
31040
31041
31042
cae5b340 31043 LIBUDEV=
68d83c55 31044
cae5b340
AX
31045 if test "${ac_cv_header_libudev_h+set}" = set; then
31046 { $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
31047$as_echo_n "checking for libudev.h... " >&6; }
31048if test "${ac_cv_header_libudev_h+set}" = set; then
31049 $as_echo_n "(cached) " >&6
68d83c55 31050fi
cae5b340
AX
31051{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
31052$as_echo "$ac_cv_header_libudev_h" >&6; }
31053else
31054 # Is the header compilable?
31055{ $as_echo "$as_me:$LINENO: checking libudev.h usability" >&5
31056$as_echo_n "checking libudev.h usability... " >&6; }
31057cat >conftest.$ac_ext <<_ACEOF
31058/* confdefs.h. */
31059_ACEOF
31060cat confdefs.h >>conftest.$ac_ext
31061cat >>conftest.$ac_ext <<_ACEOF
31062/* end confdefs.h. */
31063$ac_includes_default
31064#include <libudev.h>
31065_ACEOF
31066rm -f conftest.$ac_objext
31067if { (ac_try="$ac_compile"
31068case "(($ac_try" in
31069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31070 *) ac_try_echo=$ac_try;;
31071esac
31072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31073$as_echo "$ac_try_echo") >&5
31074 (eval "$ac_compile") 2>conftest.er1
31075 ac_status=$?
31076 grep -v '^ *+' conftest.er1 >conftest.err
31077 rm -f conftest.er1
31078 cat conftest.err >&5
31079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31080 (exit $ac_status); } && {
31081 test -z "$ac_c_werror_flag" ||
31082 test ! -s conftest.err
31083 } && test -s conftest.$ac_objext; then
31084 ac_header_compiler=yes
31085else
31086 $as_echo "$as_me: failed program was:" >&5
31087sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 31088
cae5b340
AX
31089 ac_header_compiler=no
31090fi
68d83c55 31091
cae5b340
AX
31092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31093{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31094$as_echo "$ac_header_compiler" >&6; }
68d83c55 31095
cae5b340
AX
31096# Is the header present?
31097{ $as_echo "$as_me:$LINENO: checking libudev.h presence" >&5
31098$as_echo_n "checking libudev.h presence... " >&6; }
31099cat >conftest.$ac_ext <<_ACEOF
31100/* confdefs.h. */
31101_ACEOF
31102cat confdefs.h >>conftest.$ac_ext
31103cat >>conftest.$ac_ext <<_ACEOF
31104/* end confdefs.h. */
31105#include <libudev.h>
31106_ACEOF
31107if { (ac_try="$ac_cpp conftest.$ac_ext"
31108case "(($ac_try" in
31109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31110 *) ac_try_echo=$ac_try;;
31111esac
31112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31113$as_echo "$ac_try_echo") >&5
31114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31115 ac_status=$?
31116 grep -v '^ *+' conftest.er1 >conftest.err
31117 rm -f conftest.er1
31118 cat conftest.err >&5
31119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120 (exit $ac_status); } >/dev/null && {
31121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31122 test ! -s conftest.err
31123 }; then
31124 ac_header_preproc=yes
68d83c55 31125else
cae5b340
AX
31126 $as_echo "$as_me: failed program was:" >&5
31127sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 31128
cae5b340
AX
31129 ac_header_preproc=no
31130fi
68d83c55 31131
cae5b340
AX
31132rm -f conftest.err conftest.$ac_ext
31133{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31134$as_echo "$ac_header_preproc" >&6; }
68d83c55 31135
cae5b340
AX
31136# So? What about this header?
31137case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31138 yes:no: )
31139 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31140$as_echo "$as_me: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31141 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the compiler's result" >&5
31142$as_echo "$as_me: WARNING: libudev.h: proceeding with the compiler's result" >&2;}
31143 ac_header_preproc=yes
31144 ;;
31145 no:yes:* )
31146 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: present but cannot be compiled" >&5
31147$as_echo "$as_me: WARNING: libudev.h: present but cannot be compiled" >&2;}
31148 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: check for missing prerequisite headers?" >&5
31149$as_echo "$as_me: WARNING: libudev.h: check for missing prerequisite headers?" >&2;}
31150 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: see the Autoconf documentation" >&5
31151$as_echo "$as_me: WARNING: libudev.h: see the Autoconf documentation" >&2;}
31152 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&5
31153$as_echo "$as_me: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31154 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the preprocessor's result" >&5
31155$as_echo "$as_me: WARNING: libudev.h: proceeding with the preprocessor's result" >&2;}
31156 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: in the future, the compiler will take precedence" >&5
31157$as_echo "$as_me: WARNING: libudev.h: in the future, the compiler will take precedence" >&2;}
68d83c55 31158
cae5b340
AX
31159 ;;
31160esac
31161{ $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
31162$as_echo_n "checking for libudev.h... " >&6; }
31163if test "${ac_cv_header_libudev_h+set}" = set; then
31164 $as_echo_n "(cached) " >&6
68d83c55 31165else
cae5b340 31166 ac_cv_header_libudev_h=$ac_header_preproc
68d83c55 31167fi
cae5b340
AX
31168{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
31169$as_echo "$ac_cv_header_libudev_h" >&6; }
68d83c55
AX
31170
31171fi
cae5b340 31172if test "x$ac_cv_header_libudev_h" = x""yes; then
68d83c55 31173
cae5b340
AX
31174 user_libudev=yes
31175 LIBUDEV="-ludev"
68d83c55
AX
31176
31177
cae5b340
AX
31178cat >>confdefs.h <<\_ACEOF
31179#define HAVE_LIBUDEV 1
31180_ACEOF
68d83c55
AX
31181
31182
cae5b340 31183else
68d83c55 31184
cae5b340 31185 user_libudev=no
68d83c55 31186
68d83c55
AX
31187fi
31188
31189
31190
cae5b340
AX
31191 { $as_echo "$as_me:$LINENO: checking for library containing udev_device_get_is_initialized" >&5
31192$as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
31193if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
68d83c55
AX
31194 $as_echo_n "(cached) " >&6
31195else
cae5b340
AX
31196 ac_func_search_save_LIBS=$LIBS
31197cat >conftest.$ac_ext <<_ACEOF
31198/* confdefs.h. */
31199_ACEOF
31200cat confdefs.h >>conftest.$ac_ext
31201cat >>conftest.$ac_ext <<_ACEOF
68d83c55
AX
31202/* end confdefs.h. */
31203
31204/* Override any GCC internal prototype to avoid an error.
31205 Use char because int might match the return type of a GCC
31206 builtin and then its argument prototype would still apply. */
31207#ifdef __cplusplus
31208extern "C"
31209#endif
cae5b340 31210char udev_device_get_is_initialized ();
68d83c55
AX
31211int
31212main ()
31213{
cae5b340 31214return udev_device_get_is_initialized ();
68d83c55
AX
31215 ;
31216 return 0;
31217}
31218_ACEOF
cae5b340
AX
31219for ac_lib in '' udev; do
31220 if test -z "$ac_lib"; then
31221 ac_res="none required"
31222 else
31223 ac_res=-l$ac_lib
31224 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31225 fi
31226 rm -f conftest.$ac_objext conftest$ac_exeext
31227if { (ac_try="$ac_link"
31228case "(($ac_try" in
31229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31230 *) ac_try_echo=$ac_try;;
31231esac
31232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31233$as_echo "$ac_try_echo") >&5
31234 (eval "$ac_link") 2>conftest.er1
31235 ac_status=$?
31236 grep -v '^ *+' conftest.er1 >conftest.err
31237 rm -f conftest.er1
31238 cat conftest.err >&5
31239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31240 (exit $ac_status); } && {
31241 test -z "$ac_c_werror_flag" ||
31242 test ! -s conftest.err
31243 } && test -s conftest$ac_exeext && {
31244 test "$cross_compiling" = yes ||
31245 $as_test_x conftest$ac_exeext
31246 }; then
31247 ac_cv_search_udev_device_get_is_initialized=$ac_res
68d83c55 31248else
cae5b340
AX
31249 $as_echo "$as_me: failed program was:" >&5
31250sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 31251
68d83c55 31252
68d83c55
AX
31253fi
31254
cae5b340
AX
31255rm -rf conftest.dSYM
31256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31257 conftest$ac_exeext
31258 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
31259 break
31260fi
31261done
31262if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
31263 :
68d83c55 31264else
cae5b340 31265 ac_cv_search_udev_device_get_is_initialized=no
68d83c55 31266fi
cae5b340
AX
31267rm conftest.$ac_ext
31268LIBS=$ac_func_search_save_LIBS
68d83c55 31269fi
cae5b340
AX
31270{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_udev_device_get_is_initialized" >&5
31271$as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
31272ac_res=$ac_cv_search_udev_device_get_is_initialized
31273if test "$ac_res" != no; then
31274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
68d83c55 31275
68d83c55 31276
cae5b340
AX
31277cat >>confdefs.h <<\_ACEOF
31278#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1
31279_ACEOF
31280
68d83c55
AX
31281fi
31282
31283
cae5b340
AX
31284
31285
31286 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
31287$as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
31288
31289 saved_flags="$CFLAGS"
31290 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
31291
31292 cat >conftest.$ac_ext <<_ACEOF
31293/* confdefs.h. */
31294_ACEOF
31295cat confdefs.h >>conftest.$ac_ext
31296cat >>conftest.$ac_ext <<_ACEOF
68d83c55
AX
31297/* end confdefs.h. */
31298
68d83c55
AX
31299int
31300main ()
31301{
cae5b340 31302
68d83c55
AX
31303 ;
31304 return 0;
31305}
31306_ACEOF
cae5b340
AX
31307rm -f conftest.$ac_objext
31308if { (ac_try="$ac_compile"
31309case "(($ac_try" in
31310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31311 *) ac_try_echo=$ac_try;;
31312esac
31313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31314$as_echo "$ac_try_echo") >&5
31315 (eval "$ac_compile") 2>conftest.er1
31316 ac_status=$?
31317 grep -v '^ *+' conftest.er1 >conftest.err
31318 rm -f conftest.er1
31319 cat conftest.err >&5
31320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31321 (exit $ac_status); } && {
31322 test -z "$ac_c_werror_flag" ||
31323 test ! -s conftest.err
31324 } && test -s conftest.$ac_objext; then
68d83c55 31325
cae5b340
AX
31326 FRAME_LARGER_THAN=-Wframe-larger-than=1024
31327 { $as_echo "$as_me:$LINENO: result: yes" >&5
31328$as_echo "yes" >&6; }
68d83c55
AX
31329
31330else
cae5b340
AX
31331 $as_echo "$as_me: failed program was:" >&5
31332sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 31333
68d83c55 31334
cae5b340
AX
31335 FRAME_LARGER_THAN=
31336 { $as_echo "$as_me:$LINENO: result: no" >&5
31337$as_echo "no" >&6; }
68d83c55 31338
cae5b340 31339fi
68d83c55 31340
cae5b340 31341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68d83c55 31342
cae5b340 31343 CFLAGS="$saved_flags"
68d83c55 31344
68d83c55 31345
68d83c55 31346
cae5b340
AX
31347 if test "x$runstatedir" = x; then
31348 runstatedir='${localstatedir}/run'
68d83c55 31349
cae5b340 31350 fi
68d83c55
AX
31351
31352
cae5b340
AX
31353 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/sysmacros.h" >&5
31354$as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
31355 cat >conftest.$ac_ext <<_ACEOF
31356/* confdefs.h. */
31357_ACEOF
31358cat confdefs.h >>conftest.$ac_ext
31359cat >>conftest.$ac_ext <<_ACEOF
68d83c55
AX
31360/* end confdefs.h. */
31361
cae5b340
AX
31362 #include <sys/sysmacros.h>
31363
68d83c55
AX
31364int
31365main ()
31366{
cae5b340
AX
31367
31368 int k;
31369 k = makedev(0,0);
31370
68d83c55
AX
31371 ;
31372 return 0;
31373}
31374_ACEOF
cae5b340
AX
31375rm -f conftest.$ac_objext
31376if { (ac_try="$ac_compile"
31377case "(($ac_try" in
31378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31379 *) ac_try_echo=$ac_try;;
31380esac
31381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31382$as_echo "$ac_try_echo") >&5
31383 (eval "$ac_compile") 2>conftest.er1
31384 ac_status=$?
31385 grep -v '^ *+' conftest.er1 >conftest.err
31386 rm -f conftest.er1
31387 cat conftest.err >&5
31388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389 (exit $ac_status); } && {
31390 test -z "$ac_c_werror_flag" ||
31391 test ! -s conftest.err
31392 } && test -s conftest.$ac_objext; then
31393
31394 { $as_echo "$as_me:$LINENO: result: yes" >&5
31395$as_echo "yes" >&6; }
31396
31397cat >>confdefs.h <<\_ACEOF
31398#define HAVE_MAKEDEV_IN_SYSMACROS 1
68d83c55
AX
31399_ACEOF
31400
68d83c55
AX
31401
31402else
cae5b340
AX
31403 $as_echo "$as_me: failed program was:" >&5
31404sed 's/^/| /' conftest.$ac_ext >&5
31405
31406
31407 { $as_echo "$as_me:$LINENO: result: no" >&5
31408$as_echo "no" >&6; }
31409
68d83c55
AX
31410fi
31411
cae5b340 31412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68d83c55 31413
cae5b340
AX
31414
31415 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/mkdev.h" >&5
31416$as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
31417 cat >conftest.$ac_ext <<_ACEOF
31418/* confdefs.h. */
31419_ACEOF
31420cat confdefs.h >>conftest.$ac_ext
31421cat >>conftest.$ac_ext <<_ACEOF
68d83c55
AX
31422/* end confdefs.h. */
31423
cae5b340
AX
31424 #include <sys/mkdev.h>
31425
68d83c55
AX
31426int
31427main ()
31428{
cae5b340
AX
31429
31430 int k;
31431 k = makedev(0,0);
31432
68d83c55
AX
31433 ;
31434 return 0;
31435}
31436_ACEOF
cae5b340
AX
31437rm -f conftest.$ac_objext
31438if { (ac_try="$ac_compile"
31439case "(($ac_try" in
31440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31441 *) ac_try_echo=$ac_try;;
31442esac
31443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31444$as_echo "$ac_try_echo") >&5
31445 (eval "$ac_compile") 2>conftest.er1
31446 ac_status=$?
31447 grep -v '^ *+' conftest.er1 >conftest.err
31448 rm -f conftest.er1
31449 cat conftest.err >&5
31450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451 (exit $ac_status); } && {
31452 test -z "$ac_c_werror_flag" ||
31453 test ! -s conftest.err
31454 } && test -s conftest.$ac_objext; then
68d83c55 31455
cae5b340
AX
31456 { $as_echo "$as_me:$LINENO: result: yes" >&5
31457$as_echo "yes" >&6; }
68d83c55 31458
cae5b340
AX
31459cat >>confdefs.h <<\_ACEOF
31460#define HAVE_MAKEDEV_IN_MKDEV 1
31461_ACEOF
68d83c55
AX
31462
31463
68d83c55 31464else
cae5b340
AX
31465 $as_echo "$as_me: failed program was:" >&5
31466sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 31467
68d83c55 31468
cae5b340
AX
31469 { $as_echo "$as_me:$LINENO: result: no" >&5
31470$as_echo "no" >&6; }
68d83c55 31471
cae5b340 31472fi
68d83c55 31473
cae5b340 31474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68d83c55 31475
68d83c55 31476
cae5b340
AX
31477 { $as_echo "$as_me:$LINENO: checking for -Wno-format-truncation support" >&5
31478$as_echo_n "checking for -Wno-format-truncation support... " >&6; }
68d83c55 31479
cae5b340
AX
31480 saved_flags="$CFLAGS"
31481 CFLAGS="$CFLAGS -Wno-format-truncation"
68d83c55 31482
cae5b340
AX
31483 cat >conftest.$ac_ext <<_ACEOF
31484/* confdefs.h. */
68d83c55 31485_ACEOF
cae5b340
AX
31486cat confdefs.h >>conftest.$ac_ext
31487cat >>conftest.$ac_ext <<_ACEOF
68d83c55
AX
31488/* end confdefs.h. */
31489
68d83c55
AX
31490int
31491main ()
31492{
31493
68d83c55
AX
31494 ;
31495 return 0;
31496}
31497_ACEOF
cae5b340
AX
31498rm -f conftest.$ac_objext
31499if { (ac_try="$ac_compile"
31500case "(($ac_try" in
31501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502 *) ac_try_echo=$ac_try;;
31503esac
31504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31505$as_echo "$ac_try_echo") >&5
31506 (eval "$ac_compile") 2>conftest.er1
31507 ac_status=$?
31508 grep -v '^ *+' conftest.er1 >conftest.err
31509 rm -f conftest.er1
31510 cat conftest.err >&5
31511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31512 (exit $ac_status); } && {
31513 test -z "$ac_c_werror_flag" ||
31514 test ! -s conftest.err
31515 } && test -s conftest.$ac_objext; then
68d83c55 31516
cae5b340
AX
31517 NO_FORMAT_TRUNCATION=-Wno-format-truncation
31518 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 31519$as_echo "yes" >&6; }
68d83c55
AX
31520
31521else
cae5b340
AX
31522 $as_echo "$as_me: failed program was:" >&5
31523sed 's/^/| /' conftest.$ac_ext >&5
31524
68d83c55 31525
cae5b340
AX
31526 NO_FORMAT_TRUNCATION=
31527 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 31528$as_echo "no" >&6; }
68d83c55 31529
68d83c55
AX
31530fi
31531
cae5b340 31532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68d83c55 31533
cae5b340 31534 CFLAGS="$saved_flags"
68d83c55 31535
68d83c55 31536
68d83c55
AX
31537
31538
cae5b340 31539 ZONENAME="echo global"
68d83c55
AX
31540
31541
68d83c55
AX
31542
31543
68d83c55 31544
68d83c55 31545
cae5b340
AX
31546for ac_func in mlockall
31547do
31548as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31549{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31550$as_echo_n "checking for $ac_func... " >&6; }
31551if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31552 $as_echo_n "(cached) " >&6
31553else
31554 cat >conftest.$ac_ext <<_ACEOF
31555/* confdefs.h. */
31556_ACEOF
31557cat confdefs.h >>conftest.$ac_ext
31558cat >>conftest.$ac_ext <<_ACEOF
68d83c55 31559/* end confdefs.h. */
cae5b340
AX
31560/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31562#define $ac_func innocuous_$ac_func
31563
31564/* System header to define __stub macros and hopefully few prototypes,
31565 which can conflict with char $ac_func (); below.
31566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31567 <limits.h> exists even on freestanding compilers. */
31568
31569#ifdef __STDC__
31570# include <limits.h>
31571#else
31572# include <assert.h>
31573#endif
31574
31575#undef $ac_func
31576
31577/* Override any GCC internal prototype to avoid an error.
31578 Use char because int might match the return type of a GCC
31579 builtin and then its argument prototype would still apply. */
31580#ifdef __cplusplus
31581extern "C"
31582#endif
31583char $ac_func ();
31584/* The GNU C library defines this for functions which it implements
31585 to always fail with ENOSYS. Some functions are actually named
31586 something starting with __ and the normal name is an alias. */
31587#if defined __stub_$ac_func || defined __stub___$ac_func
31588choke me
31589#endif
68d83c55
AX
31590
31591int
31592main ()
31593{
cae5b340 31594return $ac_func ();
68d83c55
AX
31595 ;
31596 return 0;
31597}
31598_ACEOF
cae5b340
AX
31599rm -f conftest.$ac_objext conftest$ac_exeext
31600if { (ac_try="$ac_link"
31601case "(($ac_try" in
31602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31603 *) ac_try_echo=$ac_try;;
31604esac
31605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31606$as_echo "$ac_try_echo") >&5
31607 (eval "$ac_link") 2>conftest.er1
31608 ac_status=$?
31609 grep -v '^ *+' conftest.er1 >conftest.err
31610 rm -f conftest.er1
31611 cat conftest.err >&5
31612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31613 (exit $ac_status); } && {
31614 test -z "$ac_c_werror_flag" ||
31615 test ! -s conftest.err
31616 } && test -s conftest$ac_exeext && {
31617 test "$cross_compiling" = yes ||
31618 $as_test_x conftest$ac_exeext
31619 }; then
31620 eval "$as_ac_var=yes"
68d83c55 31621else
cae5b340
AX
31622 $as_echo "$as_me: failed program was:" >&5
31623sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 31624
cae5b340 31625 eval "$as_ac_var=no"
68d83c55 31626fi
68d83c55 31627
cae5b340
AX
31628rm -rf conftest.dSYM
31629rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31630 conftest$ac_exeext conftest.$ac_ext
31631fi
31632ac_res=`eval 'as_val=${'$as_ac_var'}
31633 $as_echo "$as_val"'`
31634 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31635$as_echo "$ac_res" >&6; }
31636as_val=`eval 'as_val=${'$as_ac_var'}
31637 $as_echo "$as_val"'`
31638 if test "x$as_val" = x""yes; then
68d83c55 31639 cat >>confdefs.h <<_ACEOF
cae5b340 31640#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68d83c55
AX
31641_ACEOF
31642
31643fi
31644done
31645
cae5b340
AX
31646
31647
68d83c55
AX
31648
31649
31650# Check whether --with-linux was given.
cae5b340 31651if test "${with_linux+set}" = set; then
68d83c55
AX
31652 withval=$with_linux; kernelsrc="$withval"
31653fi
31654
31655
31656
31657# Check whether --with-linux-obj was given.
cae5b340 31658if test "${with_linux_obj+set}" = set; then
68d83c55
AX
31659 withval=$with_linux_obj; kernelbuild="$withval"
31660fi
31661
31662
cae5b340 31663 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
68d83c55 31664$as_echo_n "checking kernel source directory... " >&6; }
cae5b340 31665 if test -z "$kernelsrc"; then
68d83c55 31666
cae5b340 31667 if test -e "/lib/modules/$(uname -r)/source"; then
68d83c55
AX
31668
31669 headersdir="/lib/modules/$(uname -r)/source"
31670 sourcelink=$(readlink -f "$headersdir")
31671
cae5b340 31672elif test -e "/lib/modules/$(uname -r)/build"; then
68d83c55
AX
31673
31674 headersdir="/lib/modules/$(uname -r)/build"
31675 sourcelink=$(readlink -f "$headersdir")
31676
31677else
31678
31679 sourcelink=$(ls -1d /usr/src/kernels/* \
31680 /usr/src/linux-* \
31681 2>/dev/null | grep -v obj | tail -1)
31682
31683fi
31684
cae5b340
AX
31685
31686 if test -n "$sourcelink" && test -e ${sourcelink}; then
68d83c55
AX
31687
31688 kernelsrc=`readlink -f ${sourcelink}`
31689
31690else
31691
31692 kernelsrc="Not found"
31693
31694fi
31695
cae5b340 31696
68d83c55
AX
31697else
31698
cae5b340 31699 if test "$kernelsrc" = "NONE"; then
68d83c55
AX
31700
31701 kernsrcver=NONE
31702
31703fi
31704
cae5b340
AX
31705 withlinux=yes
31706
68d83c55
AX
31707fi
31708
cae5b340
AX
31709
31710 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
68d83c55 31711$as_echo "$kernelsrc" >&6; }
cae5b340 31712 if test ! -d "$kernelsrc"; then
68d83c55 31713
cae5b340
AX
31714 { { $as_echo "$as_me:$LINENO: error:
31715 *** Please make sure the kernel devel package for your distribution
31716 *** is installed and then try again. If that fails, you can specify the
31717 *** location of the kernel source with the '--with-linux=PATH' option." >&5
31718$as_echo "$as_me: error:
68d83c55
AX
31719 *** Please make sure the kernel devel package for your distribution
31720 *** is installed and then try again. If that fails, you can specify the
cae5b340
AX
31721 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
31722 { (exit 1); exit 1; }; }
68d83c55
AX
31723
31724fi
31725
cae5b340
AX
31726
31727 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
68d83c55 31728$as_echo_n "checking kernel build directory... " >&6; }
cae5b340 31729 if test -z "$kernelbuild"; then
68d83c55 31730
cae5b340 31731 if test x$withlinux != xyes -a -e "/lib/modules/$(uname -r)/build"; then
68d83c55
AX
31732
31733 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
31734
cae5b340 31735elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
68d83c55
AX
31736
31737 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
31738
cae5b340 31739elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
68d83c55
AX
31740
31741 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
31742
cae5b340 31743elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
68d83c55
AX
31744
31745 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
31746
31747else
31748
31749 kernelbuild=${kernelsrc}
31750
31751fi
31752
cae5b340 31753
68d83c55 31754fi
cae5b340
AX
31755
31756 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
68d83c55
AX
31757$as_echo "$kernelbuild" >&6; }
31758
cae5b340 31759 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
68d83c55
AX
31760$as_echo_n "checking kernel source version... " >&6; }
31761 utsrelease1=$kernelbuild/include/linux/version.h
31762 utsrelease2=$kernelbuild/include/linux/utsrelease.h
31763 utsrelease3=$kernelbuild/include/generated/utsrelease.h
cae5b340 31764 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
68d83c55
AX
31765
31766 utsrelease=linux/version.h
31767
cae5b340 31768elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
68d83c55
AX
31769
31770 utsrelease=linux/utsrelease.h
31771
cae5b340 31772elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
68d83c55
AX
31773
31774 utsrelease=generated/utsrelease.h
31775
31776fi
31777
cae5b340
AX
31778
31779 if test "$utsrelease"; then
68d83c55
AX
31780
31781 kernsrcver=`(echo "#include <$utsrelease>";
31782 echo "kernsrcver=UTS_RELEASE") |
31783 cpp -I $kernelbuild/include |
31784 grep "^kernsrcver=" | cut -d \" -f 2`
31785
cae5b340 31786 if test -z "$kernsrcver"; then
68d83c55 31787
cae5b340 31788 { $as_echo "$as_me:$LINENO: result: Not found" >&5
68d83c55 31789$as_echo "Not found" >&6; }
cae5b340
AX
31790 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
31791$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
31792 { (exit 1); exit 1; }; }
68d83c55
AX
31793
31794fi
31795
cae5b340 31796
68d83c55
AX
31797else
31798
cae5b340 31799 { $as_echo "$as_me:$LINENO: result: Not found" >&5
68d83c55
AX
31800$as_echo "Not found" >&6; }
31801 if test "x$enable_linux_builtin" != xyes; then
cae5b340
AX
31802 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
31803$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
31804 { (exit 1); exit 1; }; }
68d83c55 31805 else
cae5b340 31806 { { $as_echo "$as_me:$LINENO: error:
68d83c55 31807 *** Cannot find UTS_RELEASE definition.
cae5b340
AX
31808 *** Please run 'make prepare' inside the kernel source tree." >&5
31809$as_echo "$as_me: error:
31810 *** Cannot find UTS_RELEASE definition.
31811 *** Please run 'make prepare' inside the kernel source tree." >&2;}
31812 { (exit 1); exit 1; }; }
68d83c55
AX
31813 fi
31814
31815fi
31816
cae5b340
AX
31817
31818 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
68d83c55
AX
31819$as_echo "$kernsrcver" >&6; }
31820
31821 LINUX=${kernelsrc}
31822 LINUX_OBJ=${kernelbuild}
31823 LINUX_VERSION=${kernsrcver}
31824
31825
31826
31827
31828
31829
31830 modpost=$LINUX/scripts/Makefile.modpost
cae5b340 31831 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
68d83c55 31832$as_echo_n "checking kernel file name for module symbols... " >&6; }
cae5b340 31833 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
68d83c55 31834
cae5b340 31835 if grep -q Modules.symvers $modpost; then
68d83c55
AX
31836
31837 LINUX_SYMBOLS=Modules.symvers
31838
31839else
31840
31841 LINUX_SYMBOLS=Module.symvers
31842
31843fi
31844
68d83c55 31845
cae5b340
AX
31846 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
31847
31848 { { $as_echo "$as_me:$LINENO: error:
31849 *** Please make sure the kernel devel package for your distribution
31850 *** is installed. If you are building with a custom kernel, make sure the
31851 *** kernel is configured, built, and the '--with-linux=PATH' configure
31852 *** option refers to the location of the kernel source." >&5
31853$as_echo "$as_me: error:
68d83c55
AX
31854 *** Please make sure the kernel devel package for your distribution
31855 *** is installed. If you are building with a custom kernel, make sure the
31856 *** kernel is configured, built, and the '--with-linux=PATH' configure
cae5b340
AX
31857 *** option refers to the location of the kernel source." >&2;}
31858 { (exit 1); exit 1; }; }
68d83c55
AX
31859
31860fi
31861
cae5b340 31862
68d83c55
AX
31863else
31864
31865 LINUX_SYMBOLS=NONE
31866
31867fi
cae5b340
AX
31868
31869 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
68d83c55
AX
31870$as_echo "$LINUX_SYMBOLS" >&6; }
31871
31872
31873
31874
31875
31876# Check whether --with-spl was given.
cae5b340
AX
31877if test "${with_spl+set}" = set; then
31878 withval=$with_spl; if test "$withval" = "yes"; then
31879 { { $as_echo "$as_me:$LINENO: error: --with-spl=PATH requires a PATH" >&5
31880$as_echo "$as_me: error: --with-spl=PATH requires a PATH" >&2;}
31881 { (exit 1); exit 1; }; }
31882else
31883 splsrc="$withval"
31884fi
31885
68d83c55
AX
31886fi
31887
31888
31889
31890# Check whether --with-spl-obj was given.
cae5b340 31891if test "${with_spl_obj+set}" = set; then
68d83c55
AX
31892 withval=$with_spl_obj; splbuild="$withval"
31893fi
31894
31895
31896
31897# Check whether --with-spl-timeout was given.
cae5b340 31898if test "${with_spl_timeout+set}" = set; then
68d83c55
AX
31899 withval=$with_spl_timeout; timeout="$withval"
31900else
31901 timeout=0
31902fi
31903
31904
31905 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
31906 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
31907 splsrc2="/usr/local/src/spl-${VERSION}"
31908 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
31909 splsrc4="/usr/src/spl-${VERSION}"
31910 splsrc5="../spl/"
31911 splsrc6="$LINUX"
31912
cae5b340 31913 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
68d83c55 31914$as_echo_n "checking spl source directory... " >&6; }
cae5b340
AX
31915 if test -z "${splsrc}"; then
31916
31917 all_spl_sources="
31918 ${splsrc0}
31919 ${splsrc1}
31920 ${splsrc2}
31921 ${splsrc3}
31922 ${splsrc4}
31923 ${splsrc5}
31924 ${splsrc6}",
31925 if test -e "${splsrc0}/spl.release.in"; then
68d83c55
AX
31926
31927 splsrc=${splsrc0}
31928
cae5b340 31929elif test -e "${splsrc1}/spl.release.in"; then
68d83c55
AX
31930
31931 splsrc=${splsrc1}
31932
cae5b340 31933elif test -e "${splsrc2}/spl.release.in"; then
68d83c55
AX
31934
31935 splsrc=${splsrc2}
31936
cae5b340 31937elif test -e "${splsrc3}/spl.release.in"; then
68d83c55
AX
31938
31939 splsrc=$(readlink -f "${splsrc3}")
31940
cae5b340 31941elif test -e "${splsrc4}/spl.release.in" ; then
68d83c55
AX
31942
31943 splsrc=${splsrc4}
31944
cae5b340 31945elif test -e "${splsrc5}/spl.release.in"; then
68d83c55
AX
31946
31947 splsrc=$(readlink -f "${splsrc5}")
31948
cae5b340 31949elif test -e "${splsrc6}/spl.release.in" ; then
68d83c55
AX
31950
31951 splsrc=${splsrc6}
31952
31953else
31954
31955 splsrc="Not found"
31956
31957fi
31958
cae5b340 31959
68d83c55
AX
31960else
31961
cae5b340
AX
31962 all_spl_sources="$withval",
31963 if test "$splsrc" = "NONE"; then
68d83c55
AX
31964
31965 splbuild=NONE
31966 splsrcver=NONE
31967
31968fi
31969
cae5b340 31970
68d83c55
AX
31971fi
31972
cae5b340
AX
31973
31974 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
68d83c55 31975$as_echo "$splsrc" >&6; }
cae5b340 31976 if test ! -e "$splsrc/spl.release.in"; then
68d83c55 31977
cae5b340
AX
31978 { { $as_echo "$as_me:$LINENO: error:
31979 *** Please make sure the kmod spl devel package for your distribution
31980 *** is installed then try again. If that fails you can specify the
31981 *** location of the spl source with the '--with-spl=PATH' option.
31982 *** The spl version must match the version of ZFS you are building,
31983 *** ${VERSION}. Failed to find spl.release.in in the following:
31984 $all_spl_sources" >&5
31985$as_echo "$as_me: error:
68d83c55
AX
31986 *** Please make sure the kmod spl devel package for your distribution
31987 *** is installed then try again. If that fails you can specify the
cae5b340
AX
31988 *** location of the spl source with the '--with-spl=PATH' option.
31989 *** The spl version must match the version of ZFS you are building,
31990 *** ${VERSION}. Failed to find spl.release.in in the following:
31991 $all_spl_sources" >&2;}
31992 { (exit 1); exit 1; }; }
68d83c55
AX
31993
31994fi
31995
cae5b340
AX
31996
31997 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
68d83c55 31998$as_echo_n "checking spl build directory... " >&6; }
cae5b340
AX
31999
32000 all_spl_config_locs="${splsrc}/${LINUX_VERSION}
32001 ${splsrc}"
32002
68d83c55 32003 while true; do
cae5b340 32004 if test -z "$splbuild"; then
68d83c55 32005
cae5b340 32006 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then
68d83c55
AX
32007
32008 splbuild="${splsrc}/${LINUX_VERSION}"
32009
cae5b340 32010elif test -e "${splsrc}/spl_config.h" ; then
68d83c55
AX
32011
32012 splbuild="${splsrc}"
32013
cae5b340 32014elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then
68d83c55
AX
32015
32016 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
32017
32018else
32019
32020 splbuild="Not found"
32021
32022fi
32023
cae5b340 32024
68d83c55 32025fi
cae5b340
AX
32026
32027 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then
68d83c55
AX
32028
32029 break;
32030
32031else
32032
32033 sleep 1
32034 timeout=$((timeout-1))
32035
32036fi
cae5b340 32037
68d83c55
AX
32038 done
32039
cae5b340 32040 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
68d83c55 32041$as_echo "$splbuild" >&6; }
cae5b340 32042 if ! test -e "$splbuild/spl_config.h"; then
68d83c55 32043
cae5b340
AX
32044 { { $as_echo "$as_me:$LINENO: error:
32045 *** Please make sure the kmod spl devel <kernel> package for your
32046 *** distribution is installed then try again. If that fails you
32047 *** can specify the location of the spl objects with the
32048 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
32049 *** any of the following:
32050 $all_spl_config_locs" >&5
32051$as_echo "$as_me: error:
68d83c55
AX
32052 *** Please make sure the kmod spl devel <kernel> package for your
32053 *** distribution is installed then try again. If that fails you
32054 *** can specify the location of the spl objects with the
cae5b340
AX
32055 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
32056 *** any of the following:
32057 $all_spl_config_locs" >&2;}
32058 { (exit 1); exit 1; }; }
68d83c55
AX
32059
32060fi
32061
cae5b340
AX
32062
32063 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
68d83c55
AX
32064$as_echo_n "checking spl source version... " >&6; }
32065 if test -r $splbuild/spl_config.h &&
cae5b340 32066 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
68d83c55
AX
32067
32068
32069 splsrcver=`(echo "#include <spl_config.h>";
32070 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
32071 cpp -I $splbuild |
32072 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
32073
32074fi
32075
68d83c55 32076
cae5b340
AX
32077 if test -z "$splsrcver"; then
32078
32079 { $as_echo "$as_me:$LINENO: result: Not found" >&5
68d83c55 32080$as_echo "Not found" >&6; }
cae5b340 32081 { { $as_echo "$as_me:$LINENO: error:
68d83c55 32082 *** Cannot determine the version of the spl source.
cae5b340
AX
32083 *** Please prepare the spl source before running this script" >&5
32084$as_echo "$as_me: error:
32085 *** Cannot determine the version of the spl source.
32086 *** Please prepare the spl source before running this script" >&2;}
32087 { (exit 1); exit 1; }; }
68d83c55
AX
32088
32089fi
32090
cae5b340
AX
32091
32092 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
68d83c55
AX
32093$as_echo "$splsrcver" >&6; }
32094
32095 SPL=${splsrc}
32096 SPL_OBJ=${splbuild}
32097 SPL_VERSION=${splsrcver}
32098
32099
32100
32101
32102
cae5b340 32103 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
68d83c55
AX
32104$as_echo_n "checking spl file name for module symbols... " >&6; }
32105 SPL_SYMBOLS=NONE
32106
32107 while true; do
cae5b340 32108 if test -r $SPL_OBJ/Module.symvers; then
68d83c55
AX
32109
32110 SPL_SYMBOLS=Module.symvers
32111
cae5b340 32112elif test -r $SPL_OBJ/Modules.symvers; then
68d83c55
AX
32113
32114 SPL_SYMBOLS=Modules.symvers
32115
cae5b340 32116elif test -r $SPL_OBJ/module/Module.symvers; then
68d83c55
AX
32117
32118 SPL_SYMBOLS=Module.symvers
32119
cae5b340 32120elif test -r $SPL_OBJ/module/Modules.symvers; then
68d83c55
AX
32121
32122 SPL_SYMBOLS=Modules.symvers
32123
32124fi
32125
cae5b340
AX
32126
32127 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then
68d83c55
AX
32128
32129 break;
32130
32131else
32132
32133 sleep 1
32134 timeout=$((timeout-1))
32135
32136fi
cae5b340 32137
68d83c55
AX
32138 done
32139
cae5b340 32140 if test "$SPL_SYMBOLS" = NONE; then
68d83c55
AX
32141
32142 SPL_SYMBOLS=$LINUX_SYMBOLS
32143
32144fi
32145
cae5b340
AX
32146
32147 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
68d83c55
AX
32148$as_echo "$SPL_SYMBOLS" >&6; }
32149
32150
32151
cae5b340
AX
32152
32153# Check whether --with-qat was given.
32154if test "${with_qat+set}" = set; then
32155 withval=$with_qat; if test "$withval" = "yes"; then
32156 { { $as_echo "$as_me:$LINENO: error: --with-qat=PATH requires a PATH" >&5
32157$as_echo "$as_me: error: --with-qat=PATH requires a PATH" >&2;}
32158 { (exit 1); exit 1; }; }
32159else
32160 qatsrc="$withval"
32161fi
32162
32163fi
32164
32165
32166
32167# Check whether --with-qat-obj was given.
32168if test "${with_qat_obj+set}" = set; then
32169 withval=$with_qat_obj; qatbuild="$withval"
32170fi
32171
32172
32173 if test ! -z "${qatsrc}"; then
32174
32175 { $as_echo "$as_me:$LINENO: checking qat source directory" >&5
32176$as_echo_n "checking qat source directory... " >&6; }
32177 { $as_echo "$as_me:$LINENO: result: $qatsrc" >&5
32178$as_echo "$qatsrc" >&6; }
32179 QAT_SRC="${qatsrc}/quickassist"
32180 if test ! -e "$QAT_SRC/include/cpa.h"; then
32181
32182 { { $as_echo "$as_me:$LINENO: error:
32183 *** Please make sure the qat driver package is installed
32184 *** and specify the location of the qat source with the
32185 *** '--with-qat=PATH' option then try again. Failed to
32186 *** find cpa.h in:
32187 ${QAT_SRC}/include" >&5
32188$as_echo "$as_me: error:
32189 *** Please make sure the qat driver package is installed
32190 *** and specify the location of the qat source with the
32191 *** '--with-qat=PATH' option then try again. Failed to
32192 *** find cpa.h in:
32193 ${QAT_SRC}/include" >&2;}
32194 { (exit 1); exit 1; }; }
32195
32196fi
32197
32198
32199fi
32200
32201
32202 if test ! -z "${qatsrc}"; then
32203
32204 { $as_echo "$as_me:$LINENO: checking qat build directory" >&5
32205$as_echo_n "checking qat build directory... " >&6; }
32206 if test -z "$qatbuild"; then
32207
32208 qatbuild="${qatsrc}/build"
32209
32210fi
32211
32212
32213 { $as_echo "$as_me:$LINENO: result: $qatbuild" >&5
32214$as_echo "$qatbuild" >&6; }
32215 QAT_OBJ=${qatbuild}
41d74433 32216 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then
cae5b340
AX
32217
32218 { { $as_echo "$as_me:$LINENO: error:
32219 *** Please make sure the qat driver is installed then try again.
41d74433 32220 *** Failed to find icp_qa_al.ko or qat_api.ko in:
cae5b340
AX
32221 $QAT_OBJ" >&5
32222$as_echo "$as_me: error:
32223 *** Please make sure the qat driver is installed then try again.
41d74433 32224 *** Failed to find icp_qa_al.ko or qat_api.ko in:
cae5b340
AX
32225 $QAT_OBJ" >&2;}
32226 { (exit 1); exit 1; }; }
32227
32228fi
32229
32230
32231
32232
32233
32234
32235cat >>confdefs.h <<\_ACEOF
32236#define HAVE_QAT 1
32237_ACEOF
32238
32239
32240fi
32241
32242
32243 if test ! -z "${qatsrc}"; then
32244
32245 { $as_echo "$as_me:$LINENO: checking qat file for module symbols" >&5
32246$as_echo_n "checking qat file for module symbols... " >&6; }
32247 QAT_SYMBOLS=$QAT_SRC/lookaside/access_layer/src/Module.symvers
32248
32249 if test -r $QAT_SYMBOLS; then
32250
32251 { $as_echo "$as_me:$LINENO: result: $QAT_SYMBOLS" >&5
32252$as_echo "$QAT_SYMBOLS" >&6; }
32253
32254
32255else
32256
32257 { { $as_echo "$as_me:$LINENO: error:
32258 *** Please make sure the qat driver is installed then try again.
32259 *** Failed to find Module.symvers in:
32260 $QAT_SYMBOLS" >&5
32261$as_echo "$as_me: error:
32262 *** Please make sure the qat driver is installed then try again.
32263 *** Failed to find Module.symvers in:
32264 $QAT_SYMBOLS" >&2;}
32265 { (exit 1); exit 1; }; }
32266
32267fi
32268
32269
32270fi
32271
32272
32273
32274 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
68d83c55
AX
32275$as_echo_n "checking whether modules can be built... " >&6; }
32276
32277
32278cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
32279/* confdefs.h. */
32280_ACEOF
32281cat confdefs.h >>conftest.$ac_ext
32282cat >>conftest.$ac_ext <<_ACEOF
32283/* end confdefs.h. */
68d83c55
AX
32284
32285
32286int
32287main (void)
32288{
32289
32290 ;
32291 return 0;
32292}
32293
32294_ACEOF
32295
32296
32297
32298cat - <<_ACEOF >conftest.h
32299
32300_ACEOF
32301
32302
32303 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32304 echo "obj-m := conftest.o" >build/Makefile
32305 modpost_flag=''
32306 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32307 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 32308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
32309 (eval $ac_try) 2>&5
32310 ac_status=$?
cae5b340
AX
32311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
32313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
32314 (eval $ac_try) 2>&5
32315 ac_status=$?
cae5b340
AX
32316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317 (exit $ac_status); }; }; then
68d83c55 32318
cae5b340 32319 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
32320$as_echo "yes" >&6; }
32321
32322else
32323 $as_echo "$as_me: failed program was:" >&5
32324sed 's/^/| /' conftest.$ac_ext >&5
32325
cae5b340 32326 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
32327$as_echo "no" >&6; }
32328 if test "x$enable_linux_builtin" != xyes; then
cae5b340
AX
32329 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
32330$as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
32331 { (exit 1); exit 1; }; }
68d83c55 32332 else
cae5b340
AX
32333 { { $as_echo "$as_me:$LINENO: error:
32334 *** Unable to build an empty module.
32335 *** Please run 'make scripts' inside the kernel source tree." >&5
32336$as_echo "$as_me: error:
68d83c55 32337 *** Unable to build an empty module.
cae5b340
AX
32338 *** Please run 'make scripts' inside the kernel source tree." >&2;}
32339 { (exit 1); exit 1; }; }
68d83c55
AX
32340 fi
32341
32342
32343
4d815aed 32344fi
cae5b340 32345
68d83c55 32346 rm -Rf build
4d815aed 32347
4d815aed 32348
4d815aed 32349
4d815aed 32350
cae5b340
AX
32351 { $as_echo "$as_me:$LINENO: checking for compile-time stack validation (objtool)" >&5
32352$as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
32353
32354
32355cat confdefs.h - <<_ACEOF >conftest.c
32356/* confdefs.h. */
32357_ACEOF
32358cat confdefs.h >>conftest.$ac_ext
32359cat >>conftest.$ac_ext <<_ACEOF
32360/* end confdefs.h. */
68d83c55 32361
cae5b340
AX
32362
32363 #undef __ASSEMBLY__
32364 #include <asm/frame.h>
32365
32366int
32367main (void)
32368{
32369
32370 #if !defined(FRAME_BEGIN)
32371 CTASSERT(1);
32372 #endif
32373
32374 ;
32375 return 0;
32376}
32377
32378_ACEOF
32379
32380
32381
32382cat - <<_ACEOF >conftest.h
32383
32384_ACEOF
32385
32386
32387 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32388 echo "obj-m := conftest.o" >build/Makefile
32389 modpost_flag=''
32390 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32391 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32393 (eval $ac_try) 2>&5
32394 ac_status=$?
32395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
32397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32398 (eval $ac_try) 2>&5
32399 ac_status=$?
32400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401 (exit $ac_status); }; }; then
32402
32403 { $as_echo "$as_me:$LINENO: result: yes" >&5
32404$as_echo "yes" >&6; }
32405
32406cat >>confdefs.h <<\_ACEOF
32407#define HAVE_KERNEL_OBJTOOL 1
32408_ACEOF
32409
32410
32411else
32412 $as_echo "$as_me: failed program was:" >&5
32413sed 's/^/| /' conftest.$ac_ext >&5
32414
32415 { $as_echo "$as_me:$LINENO: result: no" >&5
32416$as_echo "no" >&6; }
32417
32418
32419
32420fi
32421
32422 rm -Rf build
32423
32424
32425
32426
32427 if test "x$cross_compiling" != xyes; then
32428
32429 if test "$cross_compiling" = yes; then
32430 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4d815aed 32431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cae5b340
AX
32432{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
32433See \`config.log' for more details." >&5
32434$as_echo "$as_me: error: cannot run test program while cross compiling
32435See \`config.log' for more details." >&2;}
32436 { (exit 1); exit 1; }; }; }
4d815aed 32437else
cae5b340 32438 cat >conftest.$ac_ext <<_ACEOF
4d815aed 32439
cae5b340
AX
32440 /* confdefs.h. */
32441_ACEOF
32442cat confdefs.h >>conftest.$ac_ext
32443cat >>conftest.$ac_ext <<_ACEOF
32444/* end confdefs.h. */
68d83c55
AX
32445
32446 #include "$LINUX/include/linux/license.h"
4d815aed
AX
32447
32448int
32449main ()
32450{
32451
68d83c55 32452 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
4d815aed
AX
32453
32454 ;
32455 return 0;
32456}
68d83c55 32457
4d815aed 32458_ACEOF
cae5b340
AX
32459rm -f conftest$ac_exeext
32460if { (ac_try="$ac_link"
32461case "(($ac_try" in
32462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32463 *) ac_try_echo=$ac_try;;
32464esac
32465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32466$as_echo "$ac_try_echo") >&5
32467 (eval "$ac_link") 2>&5
32468 ac_status=$?
32469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32471 { (case "(($ac_try" in
32472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32473 *) ac_try_echo=$ac_try;;
32474esac
32475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32476$as_echo "$ac_try_echo") >&5
32477 (eval "$ac_try") 2>&5
32478 ac_status=$?
32479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32480 (exit $ac_status); }; }; then
32481
32482
32483cat >>confdefs.h <<\_ACEOF
32484#define ZFS_IS_GPL_COMPATIBLE 1
32485_ACEOF
4d815aed 32486
4d815aed 32487
cae5b340
AX
32488else
32489 $as_echo "$as_me: program exited with status $ac_status" >&5
32490$as_echo "$as_me: failed program was:" >&5
32491sed 's/^/| /' conftest.$ac_ext >&5
32492
32493( exit $ac_status )
4d815aed 32494
4d815aed
AX
32495
32496fi
cae5b340
AX
32497rm -rf conftest.dSYM
32498rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4d815aed
AX
32499fi
32500
32501
cae5b340 32502
4d815aed
AX
32503fi
32504
32505
cae5b340
AX
32506
32507 { $as_echo "$as_me:$LINENO: checking whether kernel was built with 16K or larger stacks" >&5
68d83c55 32508$as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
4d815aed
AX
32509
32510
68d83c55 32511cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
32512/* confdefs.h. */
32513_ACEOF
32514cat confdefs.h >>conftest.$ac_ext
32515cat >>conftest.$ac_ext <<_ACEOF
32516/* end confdefs.h. */
4d815aed 32517
4d815aed 32518
68d83c55 32519 #include <linux/module.h>
4d815aed
AX
32520
32521int
68d83c55 32522main (void)
4d815aed
AX
32523{
32524
68d83c55
AX
32525 #if (THREAD_SIZE < 16384)
32526 #error "THREAD_SIZE is less than 16K"
32527 #endif
32528
4d815aed
AX
32529 ;
32530 return 0;
32531}
68d83c55 32532
4d815aed 32533_ACEOF
4d815aed 32534
4d815aed 32535
4d815aed 32536
68d83c55 32537cat - <<_ACEOF >conftest.h
4d815aed 32538
68d83c55 32539_ACEOF
4d815aed 32540
4d815aed 32541
68d83c55
AX
32542 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32543 echo "obj-m := conftest.o" >build/Makefile
32544 modpost_flag=''
32545 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32546 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 32547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
32548 (eval $ac_try) 2>&5
32549 ac_status=$?
cae5b340
AX
32550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
32552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
32553 (eval $ac_try) 2>&5
32554 ac_status=$?
cae5b340
AX
32555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32556 (exit $ac_status); }; }; then
4d815aed 32557
cae5b340 32558 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 32559$as_echo "yes" >&6; }
4d815aed 32560
cae5b340
AX
32561cat >>confdefs.h <<\_ACEOF
32562#define HAVE_LARGE_STACKS 1
32563_ACEOF
4d815aed 32564
4d815aed 32565
68d83c55
AX
32566else
32567 $as_echo "$as_me: failed program was:" >&5
32568sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 32569
cae5b340 32570 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 32571$as_echo "no" >&6; }
4d815aed 32572
4d815aed
AX
32573
32574
4d815aed 32575fi
cae5b340 32576
68d83c55 32577 rm -Rf build
4d815aed
AX
32578
32579
32580
4d815aed
AX
32581
32582
cae5b340 32583 { $as_echo "$as_me:$LINENO: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
68d83c55 32584$as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
4d815aed 32585
4d815aed 32586
68d83c55 32587cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
32588/* confdefs.h. */
32589_ACEOF
32590cat confdefs.h >>conftest.$ac_ext
32591cat >>conftest.$ac_ext <<_ACEOF
32592/* end confdefs.h. */
4d815aed 32593
4d815aed 32594
68d83c55 32595 #include <linux/module.h>
4d815aed 32596
68d83c55
AX
32597int
32598main (void)
32599{
4d815aed 32600
68d83c55
AX
32601 #ifndef CONFIG_DEBUG_LOCK_ALLOC
32602 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
32603 #endif
4d815aed 32604
68d83c55
AX
32605 ;
32606 return 0;
32607}
4d815aed 32608
68d83c55 32609_ACEOF
4d815aed 32610
4d815aed 32611
4d815aed 32612
68d83c55 32613cat - <<_ACEOF >conftest.h
4d815aed 32614
68d83c55 32615_ACEOF
4d815aed 32616
4d815aed 32617
68d83c55
AX
32618 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32619 echo "obj-m := conftest.o" >build/Makefile
32620 modpost_flag=''
32621 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32622 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 32623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
32624 (eval $ac_try) 2>&5
32625 ac_status=$?
cae5b340
AX
32626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32627 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
32628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
32629 (eval $ac_try) 2>&5
32630 ac_status=$?
cae5b340
AX
32631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32632 (exit $ac_status); }; }; then
4d815aed 32633
cae5b340 32634 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 32635$as_echo "yes" >&6; }
4d815aed 32636
cae5b340 32637 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
68d83c55
AX
32638$as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
32639 tmp_flags="$EXTRA_KCFLAGS"
4d815aed 32640
4d815aed 32641
68d83c55 32642cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
32643/* confdefs.h. */
32644_ACEOF
32645cat confdefs.h >>conftest.$ac_ext
32646cat >>conftest.$ac_ext <<_ACEOF
32647/* end confdefs.h. */
4d815aed 32648
4d815aed 32649
68d83c55
AX
32650 #include <linux/module.h>
32651 #include <linux/mutex.h>
4d815aed 32652
68d83c55 32653 MODULE_LICENSE("$ZFS_META_LICENSE");
4d815aed 32654
68d83c55
AX
32655int
32656main (void)
32657{
4d815aed 32658
68d83c55 32659 struct mutex lock;
4d815aed 32660
68d83c55
AX
32661 mutex_init(&lock);
32662 mutex_lock(&lock);
32663 mutex_unlock(&lock);
4d815aed 32664
68d83c55
AX
32665 ;
32666 return 0;
32667}
4d815aed 32668
68d83c55 32669_ACEOF
4d815aed 32670
4d815aed 32671
4d815aed 32672
68d83c55
AX
32673cat - <<_ACEOF >conftest.h
32674
32675_ACEOF
32676
32677
32678 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32679 echo "obj-m := conftest.o" >build/Makefile
32680 modpost_flag=''
32681 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32682 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 32683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
32684 (eval $ac_try) 2>&5
32685 ac_status=$?
cae5b340
AX
32686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32687 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
32688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
32689 (eval $ac_try) 2>&5
32690 ac_status=$?
cae5b340
AX
32691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32692 (exit $ac_status); }; }; then
68d83c55 32693
cae5b340 32694 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 32695$as_echo "no" >&6; }
4d815aed
AX
32696
32697else
68d83c55
AX
32698 $as_echo "$as_me: failed program was:" >&5
32699sed 's/^/| /' conftest.$ac_ext >&5
32700
cae5b340 32701 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 32702$as_echo "yes" >&6; }
cae5b340 32703 { { $as_echo "$as_me:$LINENO: error:
68d83c55
AX
32704 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
32705 *** with the CDDL license and will prevent the module linking stage
32706 *** from succeeding. You must rebuild your kernel without this
cae5b340
AX
32707 *** option enabled." >&5
32708$as_echo "$as_me: error:
32709 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
32710 *** with the CDDL license and will prevent the module linking stage
32711 *** from succeeding. You must rebuild your kernel without this
32712 *** option enabled." >&2;}
32713 { (exit 1); exit 1; }; }
4d815aed 32714
4d815aed 32715
4d815aed
AX
32716
32717fi
cae5b340 32718
68d83c55 32719 rm -Rf build
4d815aed 32720
4d815aed 32721
68d83c55 32722 EXTRA_KCFLAGS="$tmp_flags"
4d815aed 32723
4d815aed 32724
68d83c55
AX
32725else
32726 $as_echo "$as_me: failed program was:" >&5
32727sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 32728
cae5b340 32729 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 32730$as_echo "no" >&6; }
4d815aed 32731
4d815aed 32732
4d815aed 32733
4d815aed 32734
68d83c55 32735fi
cae5b340 32736
68d83c55 32737 rm -Rf build
4d815aed 32738
4d815aed 32739
4d815aed 32740
4d815aed 32741
4d815aed 32742
4d815aed 32743
68d83c55
AX
32744 tmp_flags="$EXTRA_KCFLAGS"
32745 EXTRA_KCFLAGS="-I\$(src)"
4d815aed 32746
cae5b340 32747 { $as_echo "$as_me:$LINENO: checking whether DECLARE_EVENT_CLASS() is available" >&5
68d83c55 32748$as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
4d815aed 32749
4d815aed 32750
68d83c55 32751cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
32752/* confdefs.h. */
32753_ACEOF
32754cat confdefs.h >>conftest.$ac_ext
32755cat >>conftest.$ac_ext <<_ACEOF
32756/* end confdefs.h. */
4d815aed
AX
32757
32758
68d83c55
AX
32759 #include <linux/module.h>
32760 MODULE_LICENSE(ZFS_META_LICENSE);
4d815aed 32761
68d83c55
AX
32762 #define CREATE_TRACE_POINTS
32763 #include "conftest.h"
4d815aed 32764
68d83c55
AX
32765int
32766main (void)
32767{
4d815aed 32768
68d83c55
AX
32769 trace_zfs_autoconf_event_one(1UL);
32770 trace_zfs_autoconf_event_two(2UL);
4d815aed 32771
68d83c55
AX
32772 ;
32773 return 0;
32774}
4d815aed 32775
68d83c55 32776_ACEOF
4d815aed 32777
4d815aed 32778
4d815aed 32779
68d83c55 32780cat - <<_ACEOF >conftest.h
4d815aed 32781
68d83c55
AX
32782 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
32783 #define _CONFTEST_H
4d815aed 32784
68d83c55
AX
32785 #undef TRACE_SYSTEM
32786 #define TRACE_SYSTEM zfs
32787 #include <linux/tracepoint.h>
4d815aed 32788
68d83c55
AX
32789 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
32790 TP_PROTO(unsigned long i),
32791 TP_ARGS(i),
32792 TP_STRUCT__entry(
32793 __field(unsigned long, i)
32794 ),
32795 TP_fast_assign(
32796 __entry->i = i;
32797 ),
32798 TP_printk("i = %lu", __entry->i)
32799 );
4d815aed 32800
68d83c55
AX
32801 #define DEFINE_AUTOCONF_EVENT(name) \
32802 DEFINE_EVENT(zfs_autoconf_event_class, name, \
32803 TP_PROTO(unsigned long i), \
32804 TP_ARGS(i))
32805 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
32806 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
4d815aed 32807
68d83c55 32808 #endif /* _CONFTEST_H */
4d815aed 32809
68d83c55
AX
32810 #undef TRACE_INCLUDE_PATH
32811 #define TRACE_INCLUDE_PATH .
32812 #define TRACE_INCLUDE_FILE conftest
32813 #include <trace/define_trace.h>
4d815aed 32814
68d83c55 32815_ACEOF
4d815aed
AX
32816
32817
68d83c55
AX
32818 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32819 echo "obj-m := conftest.o" >build/Makefile
32820 modpost_flag=''
32821 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32822 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 32823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
32824 (eval $ac_try) 2>&5
32825 ac_status=$?
cae5b340
AX
32826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
32828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
32829 (eval $ac_try) 2>&5
32830 ac_status=$?
cae5b340
AX
32831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32832 (exit $ac_status); }; }; then
4d815aed 32833
cae5b340 32834 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 32835$as_echo "yes" >&6; }
4d815aed 32836
cae5b340
AX
32837cat >>confdefs.h <<\_ACEOF
32838#define HAVE_DECLARE_EVENT_CLASS 1
32839_ACEOF
4d815aed
AX
32840
32841
68d83c55
AX
32842else
32843 $as_echo "$as_me: failed program was:" >&5
32844sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 32845
cae5b340 32846 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 32847$as_echo "no" >&6; }
4d815aed
AX
32848
32849
32850
4d815aed 32851fi
cae5b340 32852
68d83c55 32853 rm -Rf build
4d815aed
AX
32854
32855
68d83c55 32856 EXTRA_KCFLAGS="$tmp_flags"
4d815aed 32857
4d815aed 32858
cae5b340 32859 { $as_echo "$as_me:$LINENO: checking whether current->bio_tail exists" >&5
68d83c55 32860$as_echo_n "checking whether current->bio_tail exists... " >&6; }
4d815aed 32861
4d815aed 32862
68d83c55 32863cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
32864/* confdefs.h. */
32865_ACEOF
32866cat confdefs.h >>conftest.$ac_ext
32867cat >>conftest.$ac_ext <<_ACEOF
32868/* end confdefs.h. */
4d815aed 32869
4d815aed 32870
68d83c55 32871 #include <linux/sched.h>
4d815aed 32872
68d83c55
AX
32873int
32874main (void)
32875{
4d815aed 32876
68d83c55 32877 current->bio_tail = (struct bio **) NULL;
4d815aed 32878
68d83c55
AX
32879 ;
32880 return 0;
32881}
4d815aed 32882
68d83c55 32883_ACEOF
4d815aed 32884
4d815aed 32885
4d815aed 32886
68d83c55 32887cat - <<_ACEOF >conftest.h
4d815aed 32888
68d83c55 32889_ACEOF
4d815aed 32890
4d815aed 32891
68d83c55
AX
32892 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32893 echo "obj-m := conftest.o" >build/Makefile
32894 modpost_flag=''
32895 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32896 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 32897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
32898 (eval $ac_try) 2>&5
32899 ac_status=$?
cae5b340
AX
32900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32901 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
32902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
32903 (eval $ac_try) 2>&5
32904 ac_status=$?
cae5b340
AX
32905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32906 (exit $ac_status); }; }; then
68d83c55 32907
cae5b340 32908 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 32909$as_echo "yes" >&6; }
4d815aed 32910
cae5b340
AX
32911cat >>confdefs.h <<\_ACEOF
32912#define HAVE_CURRENT_BIO_TAIL 1
32913_ACEOF
4d815aed 32914
4d815aed
AX
32915
32916else
68d83c55
AX
32917 $as_echo "$as_me: failed program was:" >&5
32918sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 32919
cae5b340 32920 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 32921$as_echo "no" >&6; }
cae5b340 32922 { $as_echo "$as_me:$LINENO: checking whether current->bio_list exists" >&5
68d83c55 32923$as_echo_n "checking whether current->bio_list exists... " >&6; }
4d815aed 32924
4d815aed 32925
68d83c55 32926cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
32927/* confdefs.h. */
32928_ACEOF
32929cat confdefs.h >>conftest.$ac_ext
32930cat >>conftest.$ac_ext <<_ACEOF
32931/* end confdefs.h. */
4d815aed 32932
4d815aed 32933
68d83c55 32934 #include <linux/sched.h>
4d815aed 32935
68d83c55
AX
32936int
32937main (void)
32938{
4d815aed 32939
68d83c55 32940 current->bio_list = (struct bio_list *) NULL;
4d815aed 32941
68d83c55
AX
32942 ;
32943 return 0;
32944}
4d815aed 32945
68d83c55 32946_ACEOF
4d815aed 32947
4d815aed 32948
4d815aed 32949
68d83c55 32950cat - <<_ACEOF >conftest.h
4d815aed 32951
68d83c55 32952_ACEOF
4d815aed 32953
4d815aed 32954
68d83c55
AX
32955 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32956 echo "obj-m := conftest.o" >build/Makefile
32957 modpost_flag=''
32958 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32959 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 32960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
32961 (eval $ac_try) 2>&5
32962 ac_status=$?
cae5b340
AX
32963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32964 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
32965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
32966 (eval $ac_try) 2>&5
32967 ac_status=$?
cae5b340
AX
32968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32969 (exit $ac_status); }; }; then
4d815aed 32970
cae5b340 32971 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 32972$as_echo "yes" >&6; }
4d815aed 32973
cae5b340
AX
32974cat >>confdefs.h <<\_ACEOF
32975#define HAVE_CURRENT_BIO_LIST 1
32976_ACEOF
4d815aed 32977
4d815aed
AX
32978
32979else
68d83c55
AX
32980 $as_echo "$as_me: failed program was:" >&5
32981sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 32982
cae5b340
AX
32983 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
32984 https://github.com/zfsonlinux/zfs/issues/new" >&5
32985$as_echo "$as_me: error: no - Please file a bug report at
32986 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
32987 { (exit 1); exit 1; }; }
4d815aed 32988
4d815aed 32989
4d815aed
AX
32990
32991fi
cae5b340 32992
68d83c55
AX
32993 rm -Rf build
32994
4d815aed 32995
4d815aed
AX
32996
32997
4d815aed 32998
e10b0808 32999fi
cae5b340 33000
68d83c55 33001 rm -Rf build
ea04106b 33002
4d815aed 33003
ea04106b
AX
33004
33005
cae5b340
AX
33006 { $as_echo "$as_me:$LINENO: checking whether super_block->s_user_ns exists" >&5
33007$as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
ea04106b 33008
ea04106b 33009
68d83c55 33010cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
33011/* confdefs.h. */
33012_ACEOF
33013cat confdefs.h >>conftest.$ac_ext
33014cat >>conftest.$ac_ext <<_ACEOF
33015/* end confdefs.h. */
ea04106b 33016
ea04106b 33017
cae5b340
AX
33018 #include <linux/fs.h>
33019 #include <linux/user_namespace.h>
ea04106b 33020
68d83c55
AX
33021int
33022main (void)
33023{
ea04106b 33024
cae5b340
AX
33025 struct super_block super;
33026 super.s_user_ns = (struct user_namespace *)NULL;
ea04106b 33027
68d83c55
AX
33028 ;
33029 return 0;
33030}
ea04106b 33031
68d83c55 33032_ACEOF
ea04106b 33033
ea04106b 33034
4d815aed 33035
68d83c55 33036cat - <<_ACEOF >conftest.h
ea04106b 33037
68d83c55 33038_ACEOF
ea04106b
AX
33039
33040
68d83c55
AX
33041 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33042 echo "obj-m := conftest.o" >build/Makefile
33043 modpost_flag=''
33044 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33045 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 33046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
33047 (eval $ac_try) 2>&5
33048 ac_status=$?
cae5b340
AX
33049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33050 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
33052 (eval $ac_try) 2>&5
33053 ac_status=$?
cae5b340
AX
33054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055 (exit $ac_status); }; }; then
ea04106b 33056
cae5b340 33057 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 33058$as_echo "yes" >&6; }
ea04106b 33059
cae5b340
AX
33060cat >>confdefs.h <<\_ACEOF
33061#define HAVE_SUPER_USER_NS 1
33062_ACEOF
4d815aed 33063
ea04106b 33064
e10b0808 33065else
68d83c55
AX
33066 $as_echo "$as_me: failed program was:" >&5
33067sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 33068
cae5b340 33069 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 33070$as_echo "no" >&6; }
4d815aed 33071
4d815aed 33072
4d815aed
AX
33073
33074fi
cae5b340 33075
68d83c55 33076 rm -Rf build
4d815aed 33077
4d815aed
AX
33078
33079
33080
cae5b340
AX
33081 { $as_echo "$as_me:$LINENO: checking whether submit_bio() wants 1 arg" >&5
33082$as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
4d815aed
AX
33083
33084
33085cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
33086/* confdefs.h. */
33087_ACEOF
33088cat confdefs.h >>conftest.$ac_ext
33089cat >>conftest.$ac_ext <<_ACEOF
33090/* end confdefs.h. */
4d815aed
AX
33091
33092
cae5b340 33093 #include <linux/bio.h>
68d83c55 33094
e10b0808 33095int
4d815aed 33096main (void)
e10b0808 33097{
4d815aed 33098
cae5b340
AX
33099 blk_qc_t blk_qc;
33100 struct bio *bio = NULL;
33101 blk_qc = submit_bio(bio);
68d83c55 33102
e10b0808
AX
33103 ;
33104 return 0;
33105}
4d815aed 33106
e10b0808 33107_ACEOF
4d815aed
AX
33108
33109
33110
33111cat - <<_ACEOF >conftest.h
33112
33113_ACEOF
33114
33115
33116 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33117 echo "obj-m := conftest.o" >build/Makefile
33118 modpost_flag=''
33119 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33120 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 33121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
33122 (eval $ac_try) 2>&5
33123 ac_status=$?
cae5b340
AX
33124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
33127 (eval $ac_try) 2>&5
33128 ac_status=$?
cae5b340
AX
33129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33130 (exit $ac_status); }; }; then
4d815aed 33131
cae5b340
AX
33132 { $as_echo "$as_me:$LINENO: result: yes" >&5
33133$as_echo "yes" >&6; }
68d83c55 33134
cae5b340
AX
33135cat >>confdefs.h <<\_ACEOF
33136#define HAVE_1ARG_SUBMIT_BIO 1
33137_ACEOF
68d83c55 33138
4d815aed 33139
e10b0808 33140else
4d815aed
AX
33141 $as_echo "$as_me: failed program was:" >&5
33142sed 's/^/| /' conftest.$ac_ext >&5
33143
cae5b340
AX
33144 { $as_echo "$as_me:$LINENO: result: no" >&5
33145$as_echo "no" >&6; }
4d815aed
AX
33146
33147
33148
e10b0808 33149fi
cae5b340 33150
4d815aed 33151 rm -Rf build
ea04106b
AX
33152
33153
ea04106b
AX
33154
33155
cae5b340
AX
33156 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
33157$as_echo_n "checking block device operation prototypes... " >&6; }
68d83c55
AX
33158 tmp_flags="$EXTRA_KCFLAGS"
33159 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
4d815aed 33160
68d83c55
AX
33161
33162cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
33163/* confdefs.h. */
33164_ACEOF
33165cat confdefs.h >>conftest.$ac_ext
33166cat >>conftest.$ac_ext <<_ACEOF
33167/* end confdefs.h. */
ea04106b 33168
4d815aed 33169
68d83c55
AX
33170 #include <linux/blkdev.h>
33171
cae5b340
AX
33172 int blk_open(struct block_device *bdev, fmode_t mode)
33173 { return 0; }
33174 int blk_ioctl(struct block_device *bdev, fmode_t mode,
33175 unsigned x, unsigned long y) { return 0; }
33176 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
33177 unsigned x, unsigned long y) { return 0; }
68d83c55
AX
33178
33179 static const struct block_device_operations
33180 bops __attribute__ ((unused)) = {
cae5b340
AX
33181 .open = blk_open,
33182 .release = NULL,
33183 .ioctl = blk_ioctl,
33184 .compat_ioctl = blk_compat_ioctl,
68d83c55 33185 };
ea04106b 33186
e10b0808 33187int
68d83c55 33188main (void)
e10b0808 33189{
ea04106b 33190
ea04106b
AX
33191
33192 ;
33193 return 0;
33194}
4d815aed 33195
ea04106b
AX
33196_ACEOF
33197
ea04106b
AX
33198
33199
68d83c55
AX
33200cat - <<_ACEOF >conftest.h
33201
33202_ACEOF
33203
33204
33205 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33206 echo "obj-m := conftest.o" >build/Makefile
33207 modpost_flag=''
33208 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33209 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 33210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
33211 (eval $ac_try) 2>&5
33212 ac_status=$?
cae5b340
AX
33213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33214 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
33216 (eval $ac_try) 2>&5
33217 ac_status=$?
cae5b340
AX
33218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33219 (exit $ac_status); }; }; then
68d83c55 33220
cae5b340
AX
33221 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
33222$as_echo "struct block_device" >&6; }
68d83c55 33223
cae5b340
AX
33224cat >>confdefs.h <<\_ACEOF
33225#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
33226_ACEOF
68d83c55
AX
33227
33228
33229else
33230 $as_echo "$as_me: failed program was:" >&5
33231sed 's/^/| /' conftest.$ac_ext >&5
33232
cae5b340
AX
33233 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
33234$as_echo "struct inode" >&6; }
ea04106b 33235
ea04106b 33236
ea04106b 33237
ea04106b 33238fi
cae5b340 33239
68d83c55 33240 rm -Rf build
ea04106b
AX
33241
33242
68d83c55 33243 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 33244
cae5b340
AX
33245
33246 { $as_echo "$as_me:$LINENO: checking whether block_device_operations.release is void" >&5
33247$as_echo_n "checking whether block_device_operations.release is void... " >&6; }
33248 tmp_flags="$EXTRA_KCFLAGS"
33249 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
33250
33251
4d815aed 33252cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
33253/* confdefs.h. */
33254_ACEOF
33255cat confdefs.h >>conftest.$ac_ext
33256cat >>conftest.$ac_ext <<_ACEOF
33257/* end confdefs.h. */
ea04106b 33258
ea04106b 33259
cae5b340
AX
33260 #include <linux/blkdev.h>
33261
33262 void blk_release(struct gendisk *g, fmode_t mode) { return; }
33263
33264 static const struct block_device_operations
33265 bops __attribute__ ((unused)) = {
33266 .open = NULL,
33267 .release = blk_release,
33268 .ioctl = NULL,
33269 .compat_ioctl = NULL,
33270 };
ea04106b
AX
33271
33272int
4d815aed 33273main (void)
ea04106b
AX
33274{
33275
4d815aed 33276
ea04106b
AX
33277 ;
33278 return 0;
33279}
ea04106b 33280
4d815aed 33281_ACEOF
ea04106b 33282
ea04106b
AX
33283
33284
4d815aed 33285cat - <<_ACEOF >conftest.h
ea04106b 33286
4d815aed 33287_ACEOF
ea04106b 33288
ea04106b 33289
4d815aed
AX
33290 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33291 echo "obj-m := conftest.o" >build/Makefile
33292 modpost_flag=''
33293 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33294 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 33295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
33296 (eval $ac_try) 2>&5
33297 ac_status=$?
cae5b340
AX
33298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
33301 (eval $ac_try) 2>&5
33302 ac_status=$?
cae5b340
AX
33303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33304 (exit $ac_status); }; }; then
ea04106b 33305
cae5b340
AX
33306 { $as_echo "$as_me:$LINENO: result: void" >&5
33307$as_echo "void" >&6; }
ea04106b 33308
cae5b340
AX
33309cat >>confdefs.h <<\_ACEOF
33310#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1
33311_ACEOF
ea04106b 33312
ea04106b 33313
68d83c55
AX
33314else
33315 $as_echo "$as_me: failed program was:" >&5
33316sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 33317
cae5b340
AX
33318 { $as_echo "$as_me:$LINENO: result: int" >&5
33319$as_echo "int" >&6; }
ea04106b
AX
33320
33321
68d83c55
AX
33322
33323fi
68d83c55 33324
cae5b340 33325 rm -Rf build
68d83c55
AX
33326
33327
cae5b340 33328 EXTRA_KCFLAGS="$tmp_flags"
68d83c55 33329
cae5b340
AX
33330 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
33331$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
68d83c55
AX
33332
33333
33334cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
33335/* confdefs.h. */
33336_ACEOF
33337cat confdefs.h >>conftest.$ac_ext
33338cat >>conftest.$ac_ext <<_ACEOF
33339/* end confdefs.h. */
68d83c55
AX
33340
33341
cae5b340 33342 #include <linux/types.h>
ea04106b 33343
4d815aed
AX
33344int
33345main (void)
33346{
ea04106b 33347
cae5b340 33348 fmode_t *ptr __attribute__ ((unused));
ea04106b 33349
4d815aed
AX
33350 ;
33351 return 0;
33352}
ea04106b 33353
4d815aed 33354_ACEOF
ea04106b
AX
33355
33356
33357
4d815aed 33358cat - <<_ACEOF >conftest.h
ea04106b 33359
4d815aed 33360_ACEOF
ea04106b
AX
33361
33362
4d815aed
AX
33363 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33364 echo "obj-m := conftest.o" >build/Makefile
33365 modpost_flag=''
33366 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33367 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 33368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
33369 (eval $ac_try) 2>&5
33370 ac_status=$?
cae5b340
AX
33371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
33374 (eval $ac_try) 2>&5
33375 ac_status=$?
cae5b340
AX
33376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377 (exit $ac_status); }; }; then
ea04106b 33378
cae5b340 33379 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 33380$as_echo "yes" >&6; }
ea04106b 33381
cae5b340
AX
33382cat >>confdefs.h <<\_ACEOF
33383#define HAVE_FMODE_T 1
33384_ACEOF
ea04106b 33385
ea04106b 33386
4d815aed
AX
33387else
33388 $as_echo "$as_me: failed program was:" >&5
33389sed 's/^/| /' conftest.$ac_ext >&5
33390
cae5b340 33391 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 33392$as_echo "no" >&6; }
ea04106b
AX
33393
33394
ea04106b 33395
e10b0808 33396fi
cae5b340 33397
4d815aed 33398 rm -Rf build
ea04106b 33399
ea04106b 33400
ea04106b 33401
ea04106b 33402
cae5b340 33403 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
68d83c55 33404$as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
ea04106b
AX
33405
33406
4d815aed 33407cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
33408/* confdefs.h. */
33409_ACEOF
33410cat confdefs.h >>conftest.$ac_ext
33411cat >>conftest.$ac_ext <<_ACEOF
33412/* end confdefs.h. */
ea04106b
AX
33413
33414
68d83c55 33415 #include <linux/fs.h>
ea04106b 33416
4d815aed
AX
33417int
33418main (void)
33419{
ea04106b 33420
68d83c55
AX
33421 struct block_device *bdev = NULL;
33422 (void) blkdev_get(bdev, 0, NULL);
ea04106b 33423
4d815aed
AX
33424 ;
33425 return 0;
33426}
ea04106b 33427
4d815aed 33428_ACEOF
ea04106b 33429
ea04106b 33430
ea04106b 33431
4d815aed 33432cat - <<_ACEOF >conftest.h
ea04106b 33433
4d815aed 33434_ACEOF
ea04106b 33435
ea04106b 33436
4d815aed
AX
33437 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33438 echo "obj-m := conftest.o" >build/Makefile
33439 modpost_flag=''
33440 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33441 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 33442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
33443 (eval $ac_try) 2>&5
33444 ac_status=$?
cae5b340
AX
33445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
33448 (eval $ac_try) 2>&5
33449 ac_status=$?
cae5b340
AX
33450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33451 (exit $ac_status); }; }; then
ea04106b 33452
cae5b340 33453 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 33454$as_echo "yes" >&6; }
ea04106b 33455
cae5b340
AX
33456cat >>confdefs.h <<\_ACEOF
33457#define HAVE_3ARG_BLKDEV_GET 1
33458_ACEOF
ea04106b 33459
ea04106b 33460
4d815aed
AX
33461else
33462 $as_echo "$as_me: failed program was:" >&5
33463sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 33464
cae5b340 33465 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 33466$as_echo "no" >&6; }
ea04106b
AX
33467
33468
ea04106b 33469
4d815aed 33470fi
cae5b340 33471
4d815aed 33472 rm -Rf build
ea04106b
AX
33473
33474
ea04106b 33475
cae5b340 33476 { $as_echo "$as_me:$LINENO: checking whether blkdev_get_by_path() is available" >&5
68d83c55 33477$as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
ea04106b
AX
33478
33479
ea04106b 33480
4d815aed 33481cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
33482/* confdefs.h. */
33483_ACEOF
33484cat confdefs.h >>conftest.$ac_ext
33485cat >>conftest.$ac_ext <<_ACEOF
33486/* end confdefs.h. */
ea04106b 33487
ea04106b 33488
68d83c55 33489 #include <linux/fs.h>
ea04106b 33490
4d815aed
AX
33491int
33492main (void)
33493{
ea04106b 33494
68d83c55 33495 blkdev_get_by_path(NULL, 0, NULL);
ea04106b 33496
4d815aed
AX
33497 ;
33498 return 0;
33499}
ea04106b 33500
4d815aed 33501_ACEOF
ea04106b
AX
33502
33503
ea04106b 33504
4d815aed 33505cat - <<_ACEOF >conftest.h
ea04106b 33506
4d815aed 33507_ACEOF
ea04106b 33508
ea04106b 33509
4d815aed
AX
33510 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33511 echo "obj-m := conftest.o" >build/Makefile
33512 modpost_flag=''
33513 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33514 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 33515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
33516 (eval $ac_try) 2>&5
33517 ac_status=$?
cae5b340
AX
33518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33519 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
33521 (eval $ac_try) 2>&5
33522 ac_status=$?
cae5b340
AX
33523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33524 (exit $ac_status); }; }; then
68d83c55
AX
33525 rc=0
33526else
33527 $as_echo "$as_me: failed program was:" >&5
33528sed 's/^/| /' conftest.$ac_ext >&5
33529 rc=1
ea04106b 33530
ea04106b 33531
68d83c55 33532fi
cae5b340 33533
68d83c55 33534 rm -Rf build
ea04106b 33535
ea04106b 33536
68d83c55 33537 if test $rc -ne 0; then :
ea04106b 33538
cae5b340 33539 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 33540$as_echo "no" >&6; }
68d83c55
AX
33541
33542 else
33543 if test "x$enable_linux_builtin" != xyes; then
33544
33545 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
33546 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
33547 rc=$?
33548 if test $rc -ne 0; then
33549 export=0
33550 for file in fs/block_dev.c; do
33551 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
33552 "$LINUX/$file" 2>/dev/null
33553 rc=$?
33554 if test $rc -eq 0; then
33555 export=1
33556 break;
33557 fi
33558 done
33559 if test $export -eq 0; then :
33560 rc=1
33561 else :
33562 rc=0
33563 fi
33564 else :
33565 rc=0
33566 fi
33567
33568 fi
33569 if test $rc -ne 0; then :
33570
cae5b340 33571 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
33572$as_echo "no" >&6; }
33573
33574 else :
33575
cae5b340 33576 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
33577$as_echo "yes" >&6; }
33578
cae5b340
AX
33579cat >>confdefs.h <<\_ACEOF
33580#define HAVE_BLKDEV_GET_BY_PATH 1
33581_ACEOF
68d83c55
AX
33582
33583
33584 fi
33585 fi
33586
33587
cae5b340 33588 { $as_echo "$as_me:$LINENO: checking whether open_bdev_exclusive() is available" >&5
68d83c55
AX
33589$as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
33590
ea04106b 33591
ea04106b 33592
4d815aed 33593cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
33594/* confdefs.h. */
33595_ACEOF
33596cat confdefs.h >>conftest.$ac_ext
33597cat >>conftest.$ac_ext <<_ACEOF
33598/* end confdefs.h. */
ea04106b 33599
ea04106b 33600
68d83c55 33601 #include <linux/fs.h>
ea04106b 33602
4d815aed
AX
33603int
33604main (void)
33605{
ea04106b 33606
68d83c55 33607 open_bdev_exclusive(NULL, 0, NULL);
ea04106b 33608
4d815aed
AX
33609 ;
33610 return 0;
33611}
ea04106b 33612
4d815aed 33613_ACEOF
ea04106b
AX
33614
33615
ea04106b 33616
4d815aed 33617cat - <<_ACEOF >conftest.h
ea04106b 33618
4d815aed 33619_ACEOF
ea04106b 33620
ea04106b 33621
4d815aed
AX
33622 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33623 echo "obj-m := conftest.o" >build/Makefile
33624 modpost_flag=''
33625 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33626 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 33627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
33628 (eval $ac_try) 2>&5
33629 ac_status=$?
cae5b340
AX
33630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
33633 (eval $ac_try) 2>&5
33634 ac_status=$?
cae5b340
AX
33635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636 (exit $ac_status); }; }; then
68d83c55
AX
33637 rc=0
33638else
33639 $as_echo "$as_me: failed program was:" >&5
33640sed 's/^/| /' conftest.$ac_ext >&5
33641 rc=1
ea04106b 33642
4d815aed 33643
68d83c55 33644fi
cae5b340 33645
68d83c55 33646 rm -Rf build
ea04106b 33647
ea04106b 33648
68d83c55 33649 if test $rc -ne 0; then :
4d815aed 33650
cae5b340 33651 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 33652$as_echo "no" >&6; }
4d815aed 33653
68d83c55
AX
33654 else
33655 if test "x$enable_linux_builtin" != xyes; then
ea04106b 33656
68d83c55
AX
33657 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
33658 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
33659 rc=$?
33660 if test $rc -ne 0; then
33661 export=0
33662 for file in fs/block_dev.c; do
33663 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
33664 "$LINUX/$file" 2>/dev/null
33665 rc=$?
33666 if test $rc -eq 0; then
33667 export=1
33668 break;
33669 fi
33670 done
33671 if test $export -eq 0; then :
33672 rc=1
33673 else :
33674 rc=0
33675 fi
33676 else :
33677 rc=0
33678 fi
ea04106b 33679
68d83c55
AX
33680 fi
33681 if test $rc -ne 0; then :
ea04106b 33682
cae5b340 33683 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 33684$as_echo "no" >&6; }
ea04106b 33685
68d83c55 33686 else :
ea04106b 33687
cae5b340 33688 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 33689$as_echo "yes" >&6; }
ea04106b 33690
cae5b340
AX
33691cat >>confdefs.h <<\_ACEOF
33692#define HAVE_OPEN_BDEV_EXCLUSIVE 1
33693_ACEOF
ea04106b 33694
87dac73d 33695
68d83c55
AX
33696 fi
33697 fi
87dac73d
AX
33698
33699
cae5b340 33700 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 1 arg" >&5
68d83c55 33701$as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
87dac73d 33702
87dac73d
AX
33703
33704
33705cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
33706/* confdefs.h. */
33707_ACEOF
33708cat confdefs.h >>conftest.$ac_ext
33709cat >>conftest.$ac_ext <<_ACEOF
33710/* end confdefs.h. */
87dac73d
AX
33711
33712
68d83c55 33713 #include <linux/fs.h>
87dac73d
AX
33714
33715int
33716main (void)
33717{
33718
68d83c55 33719 lookup_bdev(NULL);
87dac73d
AX
33720
33721 ;
33722 return 0;
33723}
33724
33725_ACEOF
33726
33727
33728
33729cat - <<_ACEOF >conftest.h
33730
33731_ACEOF
33732
33733
33734 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33735 echo "obj-m := conftest.o" >build/Makefile
33736 modpost_flag=''
33737 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33738 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 33739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
33740 (eval $ac_try) 2>&5
33741 ac_status=$?
cae5b340
AX
33742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33743 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
33745 (eval $ac_try) 2>&5
33746 ac_status=$?
cae5b340
AX
33747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); }; }; then
68d83c55 33749 rc=0
87dac73d
AX
33750else
33751 $as_echo "$as_me: failed program was:" >&5
33752sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 33753 rc=1
87dac73d
AX
33754
33755
e10b0808 33756fi
cae5b340 33757
4d815aed 33758 rm -Rf build
ea04106b 33759
ea04106b 33760
68d83c55 33761 if test $rc -ne 0; then :
ea04106b 33762
cae5b340 33763 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 33764$as_echo "no" >&6; }
cae5b340 33765 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
68d83c55 33766$as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
ea04106b
AX
33767
33768
ea04106b 33769
4d815aed 33770cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
33771/* confdefs.h. */
33772_ACEOF
33773cat confdefs.h >>conftest.$ac_ext
33774cat >>conftest.$ac_ext <<_ACEOF
33775/* end confdefs.h. */
ea04106b 33776
ea04106b 33777
68d83c55 33778 #include <linux/fs.h>
ea04106b 33779
4d815aed
AX
33780int
33781main (void)
33782{
ea04106b 33783
68d83c55 33784 lookup_bdev(NULL, FMODE_READ);
ea04106b 33785
4d815aed
AX
33786 ;
33787 return 0;
33788}
ea04106b 33789
4d815aed 33790_ACEOF
ea04106b 33791
ea04106b
AX
33792
33793
4d815aed 33794cat - <<_ACEOF >conftest.h
ea04106b 33795
4d815aed 33796_ACEOF
ea04106b
AX
33797
33798
4d815aed
AX
33799 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33800 echo "obj-m := conftest.o" >build/Makefile
33801 modpost_flag=''
33802 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33803 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 33804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
33805 (eval $ac_try) 2>&5
33806 ac_status=$?
cae5b340
AX
33807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
33810 (eval $ac_try) 2>&5
33811 ac_status=$?
cae5b340
AX
33812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33813 (exit $ac_status); }; }; then
68d83c55
AX
33814 rc=0
33815else
33816 $as_echo "$as_me: failed program was:" >&5
33817sed 's/^/| /' conftest.$ac_ext >&5
33818 rc=1
ea04106b
AX
33819
33820
68d83c55 33821fi
cae5b340 33822
68d83c55 33823 rm -Rf build
4d815aed
AX
33824
33825
68d83c55 33826 if test $rc -ne 0; then :
4d815aed 33827
cae5b340 33828 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 33829$as_echo "no" >&6; }
ea04106b 33830
68d83c55
AX
33831 else
33832 if test "x$enable_linux_builtin" != xyes; then
ea04106b 33833
68d83c55
AX
33834 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
33835 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
33836 rc=$?
33837 if test $rc -ne 0; then
33838 export=0
33839 for file in fs/block_dev.c; do
33840 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
33841 "$LINUX/$file" 2>/dev/null
33842 rc=$?
33843 if test $rc -eq 0; then
33844 export=1
33845 break;
33846 fi
33847 done
33848 if test $export -eq 0; then :
33849 rc=1
33850 else :
33851 rc=0
33852 fi
33853 else :
33854 rc=0
33855 fi
ea04106b 33856
68d83c55
AX
33857 fi
33858 if test $rc -ne 0; then :
ea04106b 33859
cae5b340 33860 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 33861$as_echo "no" >&6; }
ea04106b 33862
68d83c55 33863 else :
ea04106b 33864
cae5b340 33865 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 33866$as_echo "yes" >&6; }
ea04106b 33867
cae5b340
AX
33868cat >>confdefs.h <<\_ACEOF
33869#define HAVE_2ARGS_LOOKUP_BDEV 1
33870_ACEOF
ea04106b 33871
ea04106b 33872
68d83c55
AX
33873 fi
33874 fi
ea04106b 33875
ea04106b 33876
68d83c55
AX
33877 else
33878 if test "x$enable_linux_builtin" != xyes; then
ea04106b 33879
68d83c55
AX
33880 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
33881 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
33882 rc=$?
33883 if test $rc -ne 0; then
33884 export=0
33885 for file in fs/block_dev.c; do
33886 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
33887 "$LINUX/$file" 2>/dev/null
33888 rc=$?
33889 if test $rc -eq 0; then
33890 export=1
33891 break;
33892 fi
33893 done
33894 if test $export -eq 0; then :
33895 rc=1
33896 else :
33897 rc=0
33898 fi
33899 else :
33900 rc=0
33901 fi
ea04106b 33902
68d83c55
AX
33903 fi
33904 if test $rc -ne 0; then :
33905
cae5b340 33906 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 33907$as_echo "no" >&6; }
cae5b340 33908 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
68d83c55
AX
33909$as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
33910
33911
33912
33913cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
33914/* confdefs.h. */
33915_ACEOF
33916cat confdefs.h >>conftest.$ac_ext
33917cat >>conftest.$ac_ext <<_ACEOF
33918/* end confdefs.h. */
68d83c55
AX
33919
33920
33921 #include <linux/fs.h>
ea04106b 33922
4d815aed
AX
33923int
33924main (void)
33925{
ea04106b 33926
68d83c55 33927 lookup_bdev(NULL, FMODE_READ);
ea04106b 33928
4d815aed
AX
33929 ;
33930 return 0;
33931}
ea04106b 33932
4d815aed 33933_ACEOF
ea04106b 33934
e10b0808 33935
e10b0808 33936
4d815aed 33937cat - <<_ACEOF >conftest.h
e10b0808 33938
4d815aed 33939_ACEOF
e10b0808 33940
e10b0808 33941
4d815aed
AX
33942 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33943 echo "obj-m := conftest.o" >build/Makefile
33944 modpost_flag=''
33945 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33946 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 33947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
33948 (eval $ac_try) 2>&5
33949 ac_status=$?
cae5b340
AX
33950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33951 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
33953 (eval $ac_try) 2>&5
33954 ac_status=$?
cae5b340
AX
33955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33956 (exit $ac_status); }; }; then
68d83c55
AX
33957 rc=0
33958else
33959 $as_echo "$as_me: failed program was:" >&5
33960sed 's/^/| /' conftest.$ac_ext >&5
33961 rc=1
e10b0808 33962
e10b0808 33963
68d83c55 33964fi
cae5b340 33965
68d83c55 33966 rm -Rf build
ea04106b 33967
ea04106b 33968
68d83c55 33969 if test $rc -ne 0; then :
ea04106b 33970
cae5b340 33971 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 33972$as_echo "no" >&6; }
ea04106b 33973
68d83c55
AX
33974 else
33975 if test "x$enable_linux_builtin" != xyes; then
ea04106b 33976
68d83c55
AX
33977 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
33978 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
33979 rc=$?
33980 if test $rc -ne 0; then
33981 export=0
33982 for file in fs/block_dev.c; do
33983 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
33984 "$LINUX/$file" 2>/dev/null
33985 rc=$?
33986 if test $rc -eq 0; then
33987 export=1
33988 break;
33989 fi
33990 done
33991 if test $export -eq 0; then :
33992 rc=1
33993 else :
33994 rc=0
33995 fi
33996 else :
33997 rc=0
33998 fi
ea04106b 33999
68d83c55
AX
34000 fi
34001 if test $rc -ne 0; then :
ea04106b 34002
cae5b340 34003 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 34004$as_echo "no" >&6; }
ea04106b 34005
68d83c55 34006 else :
ea04106b 34007
cae5b340 34008 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
34009$as_echo "yes" >&6; }
34010
cae5b340
AX
34011cat >>confdefs.h <<\_ACEOF
34012#define HAVE_2ARGS_LOOKUP_BDEV 1
34013_ACEOF
68d83c55
AX
34014
34015
34016 fi
34017 fi
34018
34019
34020 else :
34021
cae5b340 34022 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
34023$as_echo "yes" >&6; }
34024
cae5b340
AX
34025cat >>confdefs.h <<\_ACEOF
34026#define HAVE_1ARG_LOOKUP_BDEV 1
34027_ACEOF
68d83c55
AX
34028
34029
34030 fi
34031 fi
34032
34033
34034
cae5b340 34035 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
68d83c55 34036$as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
ea04106b
AX
34037
34038
34039cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
34040/* confdefs.h. */
34041_ACEOF
34042cat confdefs.h >>conftest.$ac_ext
34043cat >>conftest.$ac_ext <<_ACEOF
34044/* end confdefs.h. */
ea04106b
AX
34045
34046
68d83c55 34047 #include <linux/buffer_head.h>
4d815aed 34048
ea04106b
AX
34049int
34050main (void)
34051{
34052
68d83c55
AX
34053 struct block_device *bdev = NULL;
34054 invalidate_bdev(bdev);
4d815aed 34055
ea04106b
AX
34056 ;
34057 return 0;
34058}
34059
34060_ACEOF
34061
34062
34063
34064cat - <<_ACEOF >conftest.h
34065
34066_ACEOF
34067
34068
34069 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34070 echo "obj-m := conftest.o" >build/Makefile
34071 modpost_flag=''
34072 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34073 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
34074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34075 (eval $ac_try) 2>&5
34076 ac_status=$?
34077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34078 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34080 (eval $ac_try) 2>&5
34081 ac_status=$?
34082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34083 (exit $ac_status); }; }; then
34084
34085 { $as_echo "$as_me:$LINENO: result: yes" >&5
34086$as_echo "yes" >&6; }
34087
34088cat >>confdefs.h <<\_ACEOF
34089#define HAVE_1ARG_INVALIDATE_BDEV 1
34090_ACEOF
34091
34092
34093else
34094 $as_echo "$as_me: failed program was:" >&5
34095sed 's/^/| /' conftest.$ac_ext >&5
34096
34097 { $as_echo "$as_me:$LINENO: result: no" >&5
34098$as_echo "no" >&6; }
34099
34100
34101
34102fi
34103
34104 rm -Rf build
34105
34106
34107
34108
34109 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
34110$as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
34111 tmp_flags="$EXTRA_KCFLAGS"
34112 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
34113
34114
34115cat confdefs.h - <<_ACEOF >conftest.c
34116/* confdefs.h. */
34117_ACEOF
34118cat confdefs.h >>conftest.$ac_ext
34119cat >>conftest.$ac_ext <<_ACEOF
34120/* end confdefs.h. */
34121
34122
34123 #include <linux/blkdev.h>
34124
34125int
34126main (void)
34127{
34128
34129 struct block_device *bdev = NULL;
34130 bdev_logical_block_size(bdev);
34131
34132 ;
34133 return 0;
34134}
34135
34136_ACEOF
34137
34138
34139
34140cat - <<_ACEOF >conftest.h
34141
34142_ACEOF
34143
34144
34145 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34146 echo "obj-m := conftest.o" >build/Makefile
34147 modpost_flag=''
34148 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34149 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34151 (eval $ac_try) 2>&5
34152 ac_status=$?
34153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34154 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34156 (eval $ac_try) 2>&5
34157 ac_status=$?
34158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159 (exit $ac_status); }; }; then
34160
34161 { $as_echo "$as_me:$LINENO: result: yes" >&5
34162$as_echo "yes" >&6; }
34163
34164cat >>confdefs.h <<\_ACEOF
34165#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
34166_ACEOF
34167
34168
34169else
34170 $as_echo "$as_me: failed program was:" >&5
34171sed 's/^/| /' conftest.$ac_ext >&5
34172
34173 { $as_echo "$as_me:$LINENO: result: no" >&5
34174$as_echo "no" >&6; }
34175
34176
34177
34178fi
34179
34180 rm -Rf build
34181
34182
34183 EXTRA_KCFLAGS="$tmp_flags"
34184
34185
34186 { $as_echo "$as_me:$LINENO: checking whether bdev_physical_block_size() is available" >&5
34187$as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
34188 tmp_flags="$EXTRA_KCFLAGS"
34189 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
34190
34191
34192cat confdefs.h - <<_ACEOF >conftest.c
34193/* confdefs.h. */
34194_ACEOF
34195cat confdefs.h >>conftest.$ac_ext
34196cat >>conftest.$ac_ext <<_ACEOF
34197/* end confdefs.h. */
34198
34199
34200 #include <linux/blkdev.h>
34201
34202int
34203main (void)
34204{
34205
34206 struct block_device *bdev = NULL;
34207 bdev_physical_block_size(bdev);
34208
34209 ;
34210 return 0;
34211}
34212
34213_ACEOF
34214
34215
34216
34217cat - <<_ACEOF >conftest.h
34218
34219_ACEOF
34220
34221
34222 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34223 echo "obj-m := conftest.o" >build/Makefile
34224 modpost_flag=''
34225 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34226 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34228 (eval $ac_try) 2>&5
34229 ac_status=$?
34230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34233 (eval $ac_try) 2>&5
34234 ac_status=$?
34235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34236 (exit $ac_status); }; }; then
34237
34238 { $as_echo "$as_me:$LINENO: result: yes" >&5
34239$as_echo "yes" >&6; }
34240
34241cat >>confdefs.h <<\_ACEOF
34242#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1
34243_ACEOF
34244
34245
34246else
34247 $as_echo "$as_me: failed program was:" >&5
34248sed 's/^/| /' conftest.$ac_ext >&5
34249
34250 { $as_echo "$as_me:$LINENO: result: no" >&5
34251$as_echo "no" >&6; }
34252
34253
34254
34255fi
34256
34257 rm -Rf build
34258
34259
34260 EXTRA_KCFLAGS="$tmp_flags"
34261
34262
34263 { $as_echo "$as_me:$LINENO: checking whether bio has bi_iter" >&5
34264$as_echo_n "checking whether bio has bi_iter... " >&6; }
34265
34266
34267cat confdefs.h - <<_ACEOF >conftest.c
34268/* confdefs.h. */
34269_ACEOF
34270cat confdefs.h >>conftest.$ac_ext
34271cat >>conftest.$ac_ext <<_ACEOF
34272/* end confdefs.h. */
34273
34274
34275 #include <linux/bio.h>
34276
34277int
34278main (void)
34279{
34280
34281 struct bio bio;
34282 bio.bi_iter.bi_sector = 0;
34283
34284 ;
34285 return 0;
34286}
34287
34288_ACEOF
34289
34290
34291
34292cat - <<_ACEOF >conftest.h
34293
34294_ACEOF
34295
34296
34297 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34298 echo "obj-m := conftest.o" >build/Makefile
34299 modpost_flag=''
34300 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34301 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34303 (eval $ac_try) 2>&5
34304 ac_status=$?
34305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34306 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34308 (eval $ac_try) 2>&5
34309 ac_status=$?
34310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34311 (exit $ac_status); }; }; then
34312
34313 { $as_echo "$as_me:$LINENO: result: yes" >&5
34314$as_echo "yes" >&6; }
34315
34316cat >>confdefs.h <<\_ACEOF
34317#define HAVE_BIO_BVEC_ITER 1
34318_ACEOF
34319
34320
34321else
34322 $as_echo "$as_me: failed program was:" >&5
34323sed 's/^/| /' conftest.$ac_ext >&5
34324
34325 { $as_echo "$as_me:$LINENO: result: no" >&5
34326$as_echo "no" >&6; }
34327
34328
34329
34330fi
34331
34332 rm -Rf build
34333
34334
34335
34336
34337 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
34338$as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
34339
34340
34341cat confdefs.h - <<_ACEOF >conftest.c
34342/* confdefs.h. */
34343_ACEOF
34344cat confdefs.h >>conftest.$ac_ext
34345cat >>conftest.$ac_ext <<_ACEOF
34346/* end confdefs.h. */
34347
34348
34349 #include <linux/bio.h>
34350
34351int
34352main (void)
34353{
34354
34355 int flags __attribute__ ((unused));
34356 flags = ((1 << BIO_RW_FAILFAST_DEV) |
34357 (1 << BIO_RW_FAILFAST_TRANSPORT) |
34358 (1 << BIO_RW_FAILFAST_DRIVER));
34359
34360 ;
34361 return 0;
34362}
34363
34364_ACEOF
34365
34366
34367
34368cat - <<_ACEOF >conftest.h
34369
34370_ACEOF
34371
34372
34373 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34374 echo "obj-m := conftest.o" >build/Makefile
34375 modpost_flag=''
34376 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34377 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
34379 (eval $ac_try) 2>&5
34380 ac_status=$?
cae5b340
AX
34381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34382 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
34384 (eval $ac_try) 2>&5
34385 ac_status=$?
cae5b340
AX
34386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34387 (exit $ac_status); }; }; then
ea04106b 34388
cae5b340 34389 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
34390$as_echo "yes" >&6; }
34391
cae5b340
AX
34392cat >>confdefs.h <<\_ACEOF
34393#define HAVE_BIO_RW_FAILFAST_DTD 1
e10b0808 34394_ACEOF
e10b0808
AX
34395
34396
4d815aed
AX
34397else
34398 $as_echo "$as_me: failed program was:" >&5
34399sed 's/^/| /' conftest.$ac_ext >&5
34400
cae5b340 34401 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 34402$as_echo "no" >&6; }
e10b0808 34403
e10b0808
AX
34404
34405
94a40997 34406fi
cae5b340 34407
4d815aed 34408 rm -Rf build
94a40997 34409
e10b0808
AX
34410
34411
4d815aed 34412
cae5b340
AX
34413 { $as_echo "$as_me:$LINENO: checking whether bio_set_dev() exists" >&5
34414$as_echo_n "checking whether bio_set_dev() exists... " >&6; }
ea04106b
AX
34415
34416
34417cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
34418/* confdefs.h. */
34419_ACEOF
34420cat confdefs.h >>conftest.$ac_ext
34421cat >>conftest.$ac_ext <<_ACEOF
34422/* end confdefs.h. */
ea04106b
AX
34423
34424
cae5b340
AX
34425 #include <linux/bio.h>
34426 #include <linux/fs.h>
ea04106b
AX
34427
34428int
34429main (void)
34430{
34431
4d815aed 34432 struct block_device *bdev = NULL;
cae5b340
AX
34433 struct bio *bio = NULL;
34434 bio_set_dev(bio, bdev);
ea04106b
AX
34435
34436 ;
34437 return 0;
34438}
34439
34440_ACEOF
34441
34442
34443
34444cat - <<_ACEOF >conftest.h
34445
34446_ACEOF
34447
34448
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 $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 34454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
34455 (eval $ac_try) 2>&5
34456 ac_status=$?
cae5b340
AX
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
ea04106b
AX
34460 (eval $ac_try) 2>&5
34461 ac_status=$?
cae5b340
AX
34462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463 (exit $ac_status); }; }; then
ea04106b 34464
cae5b340 34465 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
34466$as_echo "yes" >&6; }
34467
cae5b340
AX
34468cat >>confdefs.h <<\_ACEOF
34469#define HAVE_BIO_SET_DEV 1
34470_ACEOF
ea04106b
AX
34471
34472
4d815aed
AX
34473else
34474 $as_echo "$as_me: failed program was:" >&5
34475sed 's/^/| /' conftest.$ac_ext >&5
34476
cae5b340 34477 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 34478$as_echo "no" >&6; }
ea04106b
AX
34479
34480
e10b0808 34481
4d815aed 34482fi
cae5b340 34483
4d815aed
AX
34484 rm -Rf build
34485
34486
34487
4d815aed 34488
cae5b340
AX
34489 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
34490$as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
4d815aed
AX
34491
34492
34493cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
34494/* confdefs.h. */
34495_ACEOF
34496cat confdefs.h >>conftest.$ac_ext
34497cat >>conftest.$ac_ext <<_ACEOF
34498/* end confdefs.h. */
4d815aed
AX
34499
34500
68d83c55 34501 #include <linux/bio.h>
ea04106b
AX
34502
34503int
34504main (void)
34505{
34506
cae5b340
AX
34507 int flags __attribute__ ((unused));
34508 flags = REQ_FAILFAST_MASK;
ea04106b
AX
34509
34510 ;
34511 return 0;
34512}
34513
34514_ACEOF
34515
34516
34517
34518cat - <<_ACEOF >conftest.h
34519
34520_ACEOF
34521
34522
34523 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34524 echo "obj-m := conftest.o" >build/Makefile
34525 modpost_flag=''
34526 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34527 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 34528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
34529 (eval $ac_try) 2>&5
34530 ac_status=$?
cae5b340
AX
34531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
34534 (eval $ac_try) 2>&5
34535 ac_status=$?
cae5b340
AX
34536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537 (exit $ac_status); }; }; then
e10b0808 34538
cae5b340 34539 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 34540$as_echo "yes" >&6; }
ea04106b 34541
cae5b340
AX
34542cat >>confdefs.h <<\_ACEOF
34543#define HAVE_REQ_FAILFAST_MASK 1
34544_ACEOF
4d815aed 34545
ea04106b 34546
68d83c55
AX
34547else
34548 $as_echo "$as_me: failed program was:" >&5
34549sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 34550
cae5b340 34551 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
34552$as_echo "no" >&6; }
34553
ea04106b 34554
ea04106b 34555
68d83c55 34556fi
cae5b340 34557
68d83c55 34558 rm -Rf build
ea04106b 34559
e10b0808
AX
34560
34561
e10b0808 34562
cae5b340
AX
34563 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_DISCARD is defined" >&5
34564$as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
ea04106b
AX
34565
34566
34567cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
34568/* confdefs.h. */
34569_ACEOF
34570cat confdefs.h >>conftest.$ac_ext
34571cat >>conftest.$ac_ext <<_ACEOF
34572/* end confdefs.h. */
ea04106b
AX
34573
34574
cae5b340 34575 #include <linux/blk_types.h>
ea04106b
AX
34576
34577int
34578main (void)
34579{
34580
cae5b340 34581 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
ea04106b
AX
34582
34583 ;
34584 return 0;
34585}
34586
34587_ACEOF
34588
34589
34590
34591cat - <<_ACEOF >conftest.h
34592
34593_ACEOF
34594
34595
34596 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34597 echo "obj-m := conftest.o" >build/Makefile
34598 modpost_flag=''
34599 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34600 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 34601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
34602 (eval $ac_try) 2>&5
34603 ac_status=$?
cae5b340
AX
34604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34605 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
34607 (eval $ac_try) 2>&5
34608 ac_status=$?
cae5b340
AX
34609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34610 (exit $ac_status); }; }; then
ea04106b 34611
cae5b340 34612 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 34613$as_echo "yes" >&6; }
ea04106b 34614
cae5b340
AX
34615cat >>confdefs.h <<\_ACEOF
34616#define HAVE_REQ_OP_DISCARD 1
34617_ACEOF
4d815aed 34618
4d815aed 34619
68d83c55
AX
34620else
34621 $as_echo "$as_me: failed program was:" >&5
34622sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 34623
cae5b340 34624 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 34625$as_echo "no" >&6; }
ea04106b 34626
ea04106b
AX
34627
34628
68d83c55 34629fi
cae5b340 34630
68d83c55 34631 rm -Rf build
ea04106b 34632
4d815aed
AX
34633
34634
4d815aed 34635
cae5b340
AX
34636 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_SECURE_ERASE is defined" >&5
34637$as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
ea04106b
AX
34638
34639
34640cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
34641/* confdefs.h. */
34642_ACEOF
34643cat confdefs.h >>conftest.$ac_ext
34644cat >>conftest.$ac_ext <<_ACEOF
34645/* end confdefs.h. */
ea04106b
AX
34646
34647
cae5b340 34648 #include <linux/blk_types.h>
ea04106b
AX
34649
34650int
34651main (void)
34652{
34653
cae5b340 34654 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
ea04106b
AX
34655
34656 ;
34657 return 0;
34658}
34659
34660_ACEOF
34661
34662
34663
34664cat - <<_ACEOF >conftest.h
34665
34666_ACEOF
34667
34668
34669 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34670 echo "obj-m := conftest.o" >build/Makefile
34671 modpost_flag=''
34672 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34673 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 34674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
34675 (eval $ac_try) 2>&5
34676 ac_status=$?
cae5b340
AX
34677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34678 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
34680 (eval $ac_try) 2>&5
34681 ac_status=$?
cae5b340
AX
34682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683 (exit $ac_status); }; }; then
ea04106b 34684
cae5b340 34685 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 34686$as_echo "yes" >&6; }
4d815aed 34687
cae5b340
AX
34688cat >>confdefs.h <<\_ACEOF
34689#define HAVE_REQ_OP_SECURE_ERASE 1
34690_ACEOF
4d815aed 34691
4d815aed 34692
68d83c55
AX
34693else
34694 $as_echo "$as_me: failed program was:" >&5
34695sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 34696
cae5b340 34697 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed
AX
34698$as_echo "no" >&6; }
34699
4d815aed 34700
4d815aed 34701
68d83c55 34702fi
cae5b340 34703
68d83c55 34704 rm -Rf build
4d815aed 34705
4d815aed
AX
34706
34707
34708
cae5b340
AX
34709 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_FLUSH is defined" >&5
34710$as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
ea04106b
AX
34711
34712
34713cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
34714/* confdefs.h. */
34715_ACEOF
34716cat confdefs.h >>conftest.$ac_ext
34717cat >>conftest.$ac_ext <<_ACEOF
34718/* end confdefs.h. */
ea04106b
AX
34719
34720
68d83c55 34721 #include <linux/blk_types.h>
ea04106b
AX
34722
34723int
34724main (void)
34725{
34726
cae5b340 34727 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
ea04106b
AX
34728
34729 ;
34730 return 0;
34731}
34732
34733_ACEOF
34734
34735
34736
34737cat - <<_ACEOF >conftest.h
34738
34739_ACEOF
34740
34741
34742 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34743 echo "obj-m := conftest.o" >build/Makefile
34744 modpost_flag=''
34745 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34746 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 34747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
34748 (eval $ac_try) 2>&5
34749 ac_status=$?
cae5b340
AX
34750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34751 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
34753 (eval $ac_try) 2>&5
34754 ac_status=$?
cae5b340
AX
34755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34756 (exit $ac_status); }; }; then
ea04106b 34757
cae5b340 34758 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
34759$as_echo "yes" >&6; }
34760
cae5b340
AX
34761cat >>confdefs.h <<\_ACEOF
34762#define HAVE_REQ_OP_FLUSH 1
34763_ACEOF
ea04106b
AX
34764
34765
34766else
34767 $as_echo "$as_me: failed program was:" >&5
34768sed 's/^/| /' conftest.$ac_ext >&5
34769
cae5b340 34770 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 34771$as_echo "no" >&6; }
ea04106b
AX
34772
34773
e10b0808
AX
34774
34775fi
cae5b340 34776
e10b0808
AX
34777 rm -Rf build
34778
34779
34780
34781
cae5b340
AX
34782 { $as_echo "$as_me:$LINENO: checking whether bio->bi_opf is defined" >&5
34783$as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
ea04106b
AX
34784
34785
34786cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
34787/* confdefs.h. */
34788_ACEOF
34789cat confdefs.h >>conftest.$ac_ext
34790cat >>conftest.$ac_ext <<_ACEOF
34791/* end confdefs.h. */
ea04106b
AX
34792
34793
cae5b340 34794 #include <linux/bio.h>
e10b0808 34795
ea04106b
AX
34796int
34797main (void)
34798{
34799
cae5b340
AX
34800 struct bio bio __attribute__ ((unused));
34801 bio.bi_opf = 0;
ea04106b
AX
34802
34803 ;
34804 return 0;
34805}
34806
34807_ACEOF
34808
34809
34810
34811cat - <<_ACEOF >conftest.h
34812
34813_ACEOF
34814
34815
34816 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34817 echo "obj-m := conftest.o" >build/Makefile
34818 modpost_flag=''
34819 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34820 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 34821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
34822 (eval $ac_try) 2>&5
34823 ac_status=$?
cae5b340
AX
34824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34825 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
34827 (eval $ac_try) 2>&5
34828 ac_status=$?
cae5b340
AX
34829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34830 (exit $ac_status); }; }; then
ea04106b 34831
cae5b340 34832 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 34833$as_echo "yes" >&6; }
ea04106b 34834
cae5b340
AX
34835cat >>confdefs.h <<\_ACEOF
34836#define HAVE_BIO_BI_OPF 1
34837_ACEOF
ea04106b
AX
34838
34839
34840else
34841 $as_echo "$as_me: failed program was:" >&5
34842sed 's/^/| /' conftest.$ac_ext >&5
34843
cae5b340 34844 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 34845$as_echo "no" >&6; }
ea04106b
AX
34846
34847
34848
34849fi
cae5b340 34850
ea04106b
AX
34851 rm -Rf build
34852
34853
34854
34855
cae5b340
AX
34856 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 1 arg" >&5
34857$as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
ea04106b
AX
34858
34859
34860cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
34861/* confdefs.h. */
34862_ACEOF
34863cat confdefs.h >>conftest.$ac_ext
34864cat >>conftest.$ac_ext <<_ACEOF
34865/* end confdefs.h. */
ea04106b
AX
34866
34867
cae5b340
AX
34868 #include <linux/bio.h>
34869
34870 void wanted_end_io(struct bio *bio) { return; }
34871
34872 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
ea04106b 34873
ea04106b
AX
34874int
34875main (void)
34876{
34877
34878
34879 ;
34880 return 0;
34881}
34882
34883_ACEOF
34884
34885
34886
34887cat - <<_ACEOF >conftest.h
34888
34889_ACEOF
34890
34891
34892 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34893 echo "obj-m := conftest.o" >build/Makefile
34894 modpost_flag=''
34895 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34896 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 34897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
34898 (eval $ac_try) 2>&5
34899 ac_status=$?
cae5b340
AX
34900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34901 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
34903 (eval $ac_try) 2>&5
34904 ac_status=$?
cae5b340
AX
34905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34906 (exit $ac_status); }; }; then
ea04106b 34907
cae5b340 34908 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 34909$as_echo "yes" >&6; }
ea04106b 34910
cae5b340
AX
34911cat >>confdefs.h <<\_ACEOF
34912#define HAVE_1ARG_BIO_END_IO_T 1
34913_ACEOF
87dac73d
AX
34914
34915
34916else
34917 $as_echo "$as_me: failed program was:" >&5
34918sed 's/^/| /' conftest.$ac_ext >&5
34919
cae5b340 34920 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
34921$as_echo "no" >&6; }
34922
34923
34924
34925fi
cae5b340 34926
87dac73d
AX
34927 rm -Rf build
34928
34929
87dac73d
AX
34930
34931
cae5b340
AX
34932 { $as_echo "$as_me:$LINENO: checking whether bio->bi_status exists" >&5
34933$as_echo_n "checking whether bio->bi_status exists... " >&6; }
87dac73d
AX
34934
34935
34936cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
34937/* confdefs.h. */
34938_ACEOF
34939cat confdefs.h >>conftest.$ac_ext
34940cat >>conftest.$ac_ext <<_ACEOF
34941/* end confdefs.h. */
87dac73d
AX
34942
34943
34944 #include <linux/bio.h>
34945
34946int
34947main (void)
34948{
34949
68d83c55 34950 struct bio bio __attribute__ ((unused));
cae5b340
AX
34951 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
34952
34953 bio.bi_status = status;
87dac73d
AX
34954
34955 ;
34956 return 0;
34957}
34958
34959_ACEOF
34960
34961
34962
34963cat - <<_ACEOF >conftest.h
34964
34965_ACEOF
34966
34967
34968 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34969 echo "obj-m := conftest.o" >build/Makefile
34970 modpost_flag=''
34971 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34972 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 34973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
34974 (eval $ac_try) 2>&5
34975 ac_status=$?
cae5b340
AX
34976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34977 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
34979 (eval $ac_try) 2>&5
34980 ac_status=$?
cae5b340
AX
34981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34982 (exit $ac_status); }; }; then
87dac73d 34983
cae5b340 34984 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
34985$as_echo "yes" >&6; }
34986
cae5b340
AX
34987cat >>confdefs.h <<\_ACEOF
34988#define HAVE_BIO_BI_STATUS 1
34989_ACEOF
87dac73d
AX
34990
34991
34992else
34993 $as_echo "$as_me: failed program was:" >&5
34994sed 's/^/| /' conftest.$ac_ext >&5
34995
cae5b340 34996 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
34997$as_echo "no" >&6; }
34998
34999
35000
35001fi
cae5b340 35002
87dac73d
AX
35003 rm -Rf build
35004
35005
35006
35007
cae5b340
AX
35008 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_BARRIER is defined" >&5
35009$as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
87dac73d
AX
35010
35011
35012cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35013/* confdefs.h. */
35014_ACEOF
35015cat confdefs.h >>conftest.$ac_ext
35016cat >>conftest.$ac_ext <<_ACEOF
35017/* end confdefs.h. */
87dac73d
AX
35018
35019
35020 #include <linux/bio.h>
35021
35022int
35023main (void)
35024{
35025
cae5b340
AX
35026 int flags __attribute__ ((unused));
35027 flags = BIO_RW_BARRIER;
87dac73d
AX
35028
35029 ;
35030 return 0;
35031}
35032
35033_ACEOF
35034
35035
35036
35037cat - <<_ACEOF >conftest.h
35038
35039_ACEOF
35040
35041
35042 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35043 echo "obj-m := conftest.o" >build/Makefile
35044 modpost_flag=''
35045 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35046 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
35048 (eval $ac_try) 2>&5
35049 ac_status=$?
cae5b340
AX
35050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35051 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
35053 (eval $ac_try) 2>&5
35054 ac_status=$?
cae5b340
AX
35055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35056 (exit $ac_status); }; }; then
87dac73d 35057
cae5b340 35058 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
35059$as_echo "yes" >&6; }
35060
cae5b340
AX
35061cat >>confdefs.h <<\_ACEOF
35062#define HAVE_BIO_RW_BARRIER 1
35063_ACEOF
ea04106b
AX
35064
35065
35066else
35067 $as_echo "$as_me: failed program was:" >&5
35068sed 's/^/| /' conftest.$ac_ext >&5
35069
cae5b340 35070 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 35071$as_echo "no" >&6; }
ea04106b
AX
35072
35073
35074
35075fi
cae5b340 35076
ea04106b
AX
35077 rm -Rf build
35078
35079
35080
4d815aed 35081
cae5b340
AX
35082 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_DISCARD is defined" >&5
35083$as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
ea04106b
AX
35084
35085
35086cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35087/* confdefs.h. */
35088_ACEOF
35089cat confdefs.h >>conftest.$ac_ext
35090cat >>conftest.$ac_ext <<_ACEOF
35091/* end confdefs.h. */
ea04106b
AX
35092
35093
4d815aed 35094 #include <linux/bio.h>
ea04106b
AX
35095
35096int
35097main (void)
35098{
35099
87dac73d 35100 int flags __attribute__ ((unused));
cae5b340 35101 flags = BIO_RW_DISCARD;
ea04106b
AX
35102
35103 ;
35104 return 0;
35105}
35106
35107_ACEOF
35108
35109
35110
35111cat - <<_ACEOF >conftest.h
35112
35113_ACEOF
35114
35115
35116 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35117 echo "obj-m := conftest.o" >build/Makefile
35118 modpost_flag=''
35119 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35120 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
35122 (eval $ac_try) 2>&5
35123 ac_status=$?
cae5b340
AX
35124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35125 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
35127 (eval $ac_try) 2>&5
35128 ac_status=$?
cae5b340
AX
35129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35130 (exit $ac_status); }; }; then
ea04106b 35131
cae5b340 35132 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
35133$as_echo "yes" >&6; }
35134
cae5b340
AX
35135cat >>confdefs.h <<\_ACEOF
35136#define HAVE_BIO_RW_DISCARD 1
35137_ACEOF
ea04106b
AX
35138
35139
35140else
35141 $as_echo "$as_me: failed program was:" >&5
35142sed 's/^/| /' conftest.$ac_ext >&5
35143
cae5b340 35144 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
35145$as_echo "no" >&6; }
35146
35147
35148
35149fi
cae5b340 35150
ea04106b
AX
35151 rm -Rf build
35152
35153
35154
35155
cae5b340
AX
35156 { $as_echo "$as_me:$LINENO: checking whether blk_queue bdi is dynamic" >&5
35157$as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
ea04106b
AX
35158
35159
35160cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35161/* confdefs.h. */
35162_ACEOF
35163cat confdefs.h >>conftest.$ac_ext
35164cat >>conftest.$ac_ext <<_ACEOF
35165/* end confdefs.h. */
ea04106b
AX
35166
35167
cae5b340 35168 #include <linux/blkdev.h>
ea04106b
AX
35169
35170int
35171main (void)
35172{
35173
cae5b340
AX
35174 struct request_queue q;
35175 struct backing_dev_info bdi;
35176 q.backing_dev_info = &bdi;
ea04106b
AX
35177
35178 ;
35179 return 0;
35180}
35181
35182_ACEOF
35183
35184
35185
35186cat - <<_ACEOF >conftest.h
35187
35188_ACEOF
35189
35190
35191 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35192 echo "obj-m := conftest.o" >build/Makefile
35193 modpost_flag=''
35194 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35195 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
35197 (eval $ac_try) 2>&5
35198 ac_status=$?
cae5b340
AX
35199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35200 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
35202 (eval $ac_try) 2>&5
35203 ac_status=$?
cae5b340
AX
35204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35205 (exit $ac_status); }; }; then
ea04106b 35206
cae5b340 35207 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
35208$as_echo "yes" >&6; }
35209
cae5b340
AX
35210cat >>confdefs.h <<\_ACEOF
35211#define HAVE_BLK_QUEUE_BDI_DYNAMIC 1
35212_ACEOF
ea04106b
AX
35213
35214
35215else
35216 $as_echo "$as_me: failed program was:" >&5
35217sed 's/^/| /' conftest.$ac_ext >&5
35218
cae5b340 35219 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
35220$as_echo "no" >&6; }
35221
35222
35223
35224fi
cae5b340 35225
ea04106b
AX
35226 rm -Rf build
35227
35228
35229
35230
cae5b340 35231 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
68d83c55
AX
35232$as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
35233 tmp_flags="$EXTRA_KCFLAGS"
35234 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
87dac73d
AX
35235
35236
35237cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35238/* confdefs.h. */
35239_ACEOF
35240cat confdefs.h >>conftest.$ac_ext
35241cat >>conftest.$ac_ext <<_ACEOF
35242/* end confdefs.h. */
87dac73d
AX
35243
35244
68d83c55 35245 #include <linux/blkdev.h>
87dac73d
AX
35246
35247int
35248main (void)
35249{
35250
68d83c55
AX
35251 struct request_queue *q = NULL;
35252 (void) blk_queue_flush(q, REQ_FLUSH);
87dac73d
AX
35253
35254 ;
35255 return 0;
35256}
35257
35258_ACEOF
35259
35260
35261
35262cat - <<_ACEOF >conftest.h
35263
35264_ACEOF
35265
35266
35267 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35268 echo "obj-m := conftest.o" >build/Makefile
35269 modpost_flag=''
35270 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35271 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
35273 (eval $ac_try) 2>&5
35274 ac_status=$?
cae5b340
AX
35275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35276 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
35278 (eval $ac_try) 2>&5
35279 ac_status=$?
cae5b340
AX
35280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35281 (exit $ac_status); }; }; then
87dac73d 35282
cae5b340 35283 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
35284$as_echo "yes" >&6; }
35285
cae5b340
AX
35286cat >>confdefs.h <<\_ACEOF
35287#define HAVE_BLK_QUEUE_FLUSH 1
35288_ACEOF
68d83c55
AX
35289
35290
cae5b340 35291 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
68d83c55
AX
35292$as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
35293
35294
35295cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35296/* confdefs.h. */
35297_ACEOF
35298cat confdefs.h >>conftest.$ac_ext
35299cat >>conftest.$ac_ext <<_ACEOF
35300/* end confdefs.h. */
68d83c55
AX
35301
35302
35303 #include <linux/module.h>
35304 #include <linux/blkdev.h>
35305
35306 MODULE_LICENSE("$ZFS_META_LICENSE");
35307
35308int
35309main (void)
35310{
35311
35312 struct request_queue *q = NULL;
35313 (void) blk_queue_flush(q, REQ_FLUSH);
35314
35315 ;
35316 return 0;
35317}
35318
35319_ACEOF
35320
35321
35322
35323cat - <<_ACEOF >conftest.h
35324
35325_ACEOF
35326
35327
35328 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35329 echo "obj-m := conftest.o" >build/Makefile
35330 modpost_flag=''
35331 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35332 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35334 (eval $ac_try) 2>&5
35335 ac_status=$?
cae5b340
AX
35336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35337 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35339 (eval $ac_try) 2>&5
35340 ac_status=$?
cae5b340
AX
35341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35342 (exit $ac_status); }; }; then
68d83c55 35343
cae5b340 35344 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
35345$as_echo "no" >&6; }
35346
35347else
35348 $as_echo "$as_me: failed program was:" >&5
35349sed 's/^/| /' conftest.$ac_ext >&5
35350
cae5b340 35351 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
35352$as_echo "yes" >&6; }
35353
cae5b340
AX
35354cat >>confdefs.h <<\_ACEOF
35355#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
35356_ACEOF
68d83c55
AX
35357
35358
35359
35360
35361fi
cae5b340 35362
68d83c55
AX
35363 rm -Rf build
35364
87dac73d
AX
35365
35366
35367else
35368 $as_echo "$as_me: failed program was:" >&5
35369sed 's/^/| /' conftest.$ac_ext >&5
35370
cae5b340 35371 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
35372$as_echo "no" >&6; }
35373
35374
35375
35376fi
cae5b340 35377
87dac73d
AX
35378 rm -Rf build
35379
35380
35381
cae5b340 35382 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() exists" >&5
68d83c55 35383$as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
87dac73d
AX
35384
35385
35386cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35387/* confdefs.h. */
35388_ACEOF
35389cat confdefs.h >>conftest.$ac_ext
35390cat >>conftest.$ac_ext <<_ACEOF
35391/* end confdefs.h. */
87dac73d
AX
35392
35393
68d83c55
AX
35394 #include <linux/kernel.h>
35395 #include <linux/blkdev.h>
35396
87dac73d
AX
35397
35398int
35399main (void)
35400{
35401
68d83c55
AX
35402 struct request_queue *q = NULL;
35403 blk_queue_write_cache(q, true, true);
87dac73d
AX
35404
35405 ;
35406 return 0;
35407}
35408
35409_ACEOF
35410
35411
35412
35413cat - <<_ACEOF >conftest.h
35414
35415_ACEOF
35416
35417
35418 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35419 echo "obj-m := conftest.o" >build/Makefile
35420 modpost_flag=''
35421 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35422 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
35424 (eval $ac_try) 2>&5
35425 ac_status=$?
cae5b340
AX
35426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35427 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
35429 (eval $ac_try) 2>&5
35430 ac_status=$?
cae5b340
AX
35431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35432 (exit $ac_status); }; }; then
87dac73d 35433
cae5b340 35434 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
35435$as_echo "yes" >&6; }
35436
cae5b340
AX
35437cat >>confdefs.h <<\_ACEOF
35438#define HAVE_BLK_QUEUE_WRITE_CACHE 1
35439_ACEOF
68d83c55
AX
35440
35441
cae5b340 35442 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() is GPL-only" >&5
68d83c55
AX
35443$as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
35444
35445
35446cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35447/* confdefs.h. */
35448_ACEOF
35449cat confdefs.h >>conftest.$ac_ext
35450cat >>conftest.$ac_ext <<_ACEOF
35451/* end confdefs.h. */
68d83c55
AX
35452
35453
35454 #include <linux/kernel.h>
35455 #include <linux/module.h>
35456 #include <linux/blkdev.h>
35457
35458 MODULE_LICENSE("$ZFS_META_LICENSE");
35459
35460int
35461main (void)
35462{
35463
35464 struct request_queue *q = NULL;
35465 blk_queue_write_cache(q, true, true);
35466
35467 ;
35468 return 0;
35469}
35470
35471_ACEOF
35472
35473
35474
35475cat - <<_ACEOF >conftest.h
35476
35477_ACEOF
35478
35479
35480 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35481 echo "obj-m := conftest.o" >build/Makefile
35482 modpost_flag=''
35483 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35484 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35486 (eval $ac_try) 2>&5
35487 ac_status=$?
cae5b340
AX
35488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35489 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35491 (eval $ac_try) 2>&5
35492 ac_status=$?
cae5b340
AX
35493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35494 (exit $ac_status); }; }; then
68d83c55 35495
cae5b340 35496 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
35497$as_echo "no" >&6; }
35498
35499else
35500 $as_echo "$as_me: failed program was:" >&5
35501sed 's/^/| /' conftest.$ac_ext >&5
35502
cae5b340 35503 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
35504$as_echo "yes" >&6; }
35505
cae5b340
AX
35506cat >>confdefs.h <<\_ACEOF
35507#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1
35508_ACEOF
68d83c55
AX
35509
35510
35511
35512
35513fi
cae5b340 35514
68d83c55
AX
35515 rm -Rf build
35516
87dac73d
AX
35517
35518
35519else
35520 $as_echo "$as_me: failed program was:" >&5
35521sed 's/^/| /' conftest.$ac_ext >&5
35522
cae5b340 35523 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
35524$as_echo "no" >&6; }
35525
35526
35527
35528fi
cae5b340 35529
87dac73d
AX
35530 rm -Rf build
35531
35532
35533
68d83c55 35534 EXTRA_KCFLAGS="$tmp_flags"
87dac73d 35535
68d83c55 35536
cae5b340 35537 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
68d83c55
AX
35538$as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
35539 tmp_flags="$EXTRA_KCFLAGS"
35540 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
35541
35542
35543cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35544/* confdefs.h. */
35545_ACEOF
35546cat confdefs.h >>conftest.$ac_ext
35547cat >>conftest.$ac_ext <<_ACEOF
35548/* end confdefs.h. */
ea04106b
AX
35549
35550
68d83c55 35551 #include <linux/blkdev.h>
ea04106b
AX
35552
35553int
35554main (void)
35555{
35556
68d83c55
AX
35557 struct request_queue *q = NULL;
35558 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
ea04106b
AX
35559
35560 ;
35561 return 0;
35562}
35563
35564_ACEOF
35565
35566
35567
35568cat - <<_ACEOF >conftest.h
35569
35570_ACEOF
35571
35572
35573 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35574 echo "obj-m := conftest.o" >build/Makefile
35575 modpost_flag=''
35576 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35577 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
35579 (eval $ac_try) 2>&5
35580 ac_status=$?
cae5b340
AX
35581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35582 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
35584 (eval $ac_try) 2>&5
35585 ac_status=$?
cae5b340
AX
35586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35587 (exit $ac_status); }; }; then
ea04106b 35588
cae5b340 35589 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
35590$as_echo "yes" >&6; }
35591
cae5b340
AX
35592cat >>confdefs.h <<\_ACEOF
35593#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
35594_ACEOF
ea04106b
AX
35595
35596
35597else
35598 $as_echo "$as_me: failed program was:" >&5
35599sed 's/^/| /' conftest.$ac_ext >&5
35600
cae5b340 35601 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
35602$as_echo "no" >&6; }
35603
35604
35605
35606fi
cae5b340 35607
ea04106b
AX
35608 rm -Rf build
35609
35610
68d83c55 35611 EXTRA_KCFLAGS="$tmp_flags"
ea04106b
AX
35612
35613
cae5b340 35614 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
68d83c55
AX
35615$as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
35616 tmp_flags="$EXTRA_KCFLAGS"
35617 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
35618
35619
35620cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35621/* confdefs.h. */
35622_ACEOF
35623cat confdefs.h >>conftest.$ac_ext
35624cat >>conftest.$ac_ext <<_ACEOF
35625/* end confdefs.h. */
ea04106b
AX
35626
35627
68d83c55 35628 #include <linux/blkdev.h>
ea04106b
AX
35629
35630int
35631main (void)
35632{
35633
68d83c55
AX
35634 struct request_queue *q = NULL;
35635 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
ea04106b
AX
35636
35637 ;
35638 return 0;
35639}
35640
35641_ACEOF
35642
35643
35644
35645cat - <<_ACEOF >conftest.h
35646
35647_ACEOF
35648
35649
35650 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35651 echo "obj-m := conftest.o" >build/Makefile
35652 modpost_flag=''
35653 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35654 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
35656 (eval $ac_try) 2>&5
35657 ac_status=$?
cae5b340
AX
35658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35659 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
35661 (eval $ac_try) 2>&5
35662 ac_status=$?
cae5b340
AX
35663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35664 (exit $ac_status); }; }; then
ea04106b 35665
cae5b340 35666 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 35667$as_echo "yes" >&6; }
ea04106b 35668
cae5b340
AX
35669cat >>confdefs.h <<\_ACEOF
35670#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
35671_ACEOF
e10b0808 35672
ea04106b 35673
4d815aed
AX
35674else
35675 $as_echo "$as_me: failed program was:" >&5
35676sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 35677
cae5b340 35678 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 35679$as_echo "no" >&6; }
ea04106b 35680
ea04106b 35681
ea04106b 35682
4d815aed 35683fi
cae5b340 35684
4d815aed 35685 rm -Rf build
ea04106b 35686
ea04106b 35687
68d83c55 35688 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 35689
ea04106b 35690
cae5b340 35691 { $as_echo "$as_me:$LINENO: checking whether the BIO_RW_UNPLUG enum is available" >&5
68d83c55
AX
35692$as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
35693 tmp_flags="$EXTRA_KCFLAGS"
35694 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
e10b0808
AX
35695
35696
35697cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35698/* confdefs.h. */
35699_ACEOF
35700cat confdefs.h >>conftest.$ac_ext
35701cat >>conftest.$ac_ext <<_ACEOF
35702/* end confdefs.h. */
e10b0808
AX
35703
35704
68d83c55 35705 #include <linux/blkdev.h>
ea04106b
AX
35706
35707int
35708main (void)
35709{
35710
68d83c55
AX
35711 extern enum bio_rw_flags rw;
35712
35713 rw = BIO_RW_UNPLUG;
ea04106b
AX
35714
35715 ;
35716 return 0;
35717}
35718
35719_ACEOF
35720
35721
35722
35723cat - <<_ACEOF >conftest.h
35724
35725_ACEOF
35726
35727
35728 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35729 echo "obj-m := conftest.o" >build/Makefile
35730 modpost_flag=''
35731 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35732 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
35734 (eval $ac_try) 2>&5
35735 ac_status=$?
cae5b340
AX
35736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
35739 (eval $ac_try) 2>&5
35740 ac_status=$?
cae5b340
AX
35741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35742 (exit $ac_status); }; }; then
e10b0808 35743
cae5b340 35744 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 35745$as_echo "yes" >&6; }
e10b0808 35746
cae5b340
AX
35747cat >>confdefs.h <<\_ACEOF
35748#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1
35749_ACEOF
ea04106b 35750
ea04106b 35751
4d815aed
AX
35752else
35753 $as_echo "$as_me: failed program was:" >&5
35754sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 35755
cae5b340 35756 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 35757$as_echo "no" >&6; }
ea04106b 35758
ea04106b 35759
ea04106b 35760
4d815aed 35761fi
cae5b340 35762
4d815aed 35763 rm -Rf build
ea04106b 35764
ea04106b 35765
68d83c55 35766 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 35767
e10b0808 35768
cae5b340 35769 { $as_echo "$as_me:$LINENO: checking whether struct blk_plug is available" >&5
68d83c55
AX
35770$as_echo_n "checking whether struct blk_plug is available... " >&6; }
35771 tmp_flags="$EXTRA_KCFLAGS"
35772 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
35773
35774
35775cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35776/* confdefs.h. */
35777_ACEOF
35778cat confdefs.h >>conftest.$ac_ext
35779cat >>conftest.$ac_ext <<_ACEOF
35780/* end confdefs.h. */
ea04106b
AX
35781
35782
68d83c55 35783 #include <linux/blkdev.h>
ea04106b
AX
35784
35785int
35786main (void)
35787{
35788
68d83c55
AX
35789 struct blk_plug plug;
35790
35791 blk_start_plug(&plug);
35792 blk_finish_plug(&plug);
ea04106b
AX
35793
35794 ;
35795 return 0;
35796}
35797
35798_ACEOF
35799
35800
35801
35802cat - <<_ACEOF >conftest.h
35803
35804_ACEOF
35805
35806
35807 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35808 echo "obj-m := conftest.o" >build/Makefile
35809 modpost_flag=''
35810 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35811 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
35813 (eval $ac_try) 2>&5
35814 ac_status=$?
cae5b340
AX
35815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35816 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
35818 (eval $ac_try) 2>&5
35819 ac_status=$?
cae5b340
AX
35820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35821 (exit $ac_status); }; }; then
ea04106b 35822
cae5b340 35823 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 35824$as_echo "yes" >&6; }
ea04106b 35825
cae5b340
AX
35826cat >>confdefs.h <<\_ACEOF
35827#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1
35828_ACEOF
e10b0808 35829
e10b0808 35830
4d815aed
AX
35831else
35832 $as_echo "$as_me: failed program was:" >&5
35833sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 35834
cae5b340 35835 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
35836$as_echo "no" >&6; }
35837
e10b0808 35838
ea04106b 35839
4d815aed 35840fi
cae5b340 35841
4d815aed 35842 rm -Rf build
ea04106b 35843
ea04106b 35844
68d83c55 35845 EXTRA_KCFLAGS="$tmp_flags"
ea04106b
AX
35846
35847
cae5b340 35848 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
68d83c55 35849$as_echo_n "checking whether get_disk_ro() is available... " >&6; }
4d815aed
AX
35850 tmp_flags="$EXTRA_KCFLAGS"
35851 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
35852
35853
35854cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35855/* confdefs.h. */
35856_ACEOF
35857cat confdefs.h >>conftest.$ac_ext
35858cat >>conftest.$ac_ext <<_ACEOF
35859/* end confdefs.h. */
ea04106b
AX
35860
35861
4d815aed 35862 #include <linux/blkdev.h>
ea04106b
AX
35863
35864int
35865main (void)
35866{
35867
68d83c55
AX
35868 struct gendisk *disk = NULL;
35869 (void) get_disk_ro(disk);
ea04106b
AX
35870
35871 ;
35872 return 0;
35873}
35874
35875_ACEOF
35876
35877
35878
35879cat - <<_ACEOF >conftest.h
35880
35881_ACEOF
35882
35883
35884 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35885 echo "obj-m := conftest.o" >build/Makefile
35886 modpost_flag=''
35887 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35888 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
35890 (eval $ac_try) 2>&5
35891 ac_status=$?
cae5b340
AX
35892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
35895 (eval $ac_try) 2>&5
35896 ac_status=$?
cae5b340
AX
35897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35898 (exit $ac_status); }; }; then
ea04106b 35899
cae5b340 35900 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
35901$as_echo "yes" >&6; }
35902
cae5b340
AX
35903cat >>confdefs.h <<\_ACEOF
35904#define HAVE_GET_DISK_RO 1
35905_ACEOF
e10b0808 35906
ea04106b 35907
68d83c55
AX
35908else
35909 $as_echo "$as_me: failed program was:" >&5
35910sed 's/^/| /' conftest.$ac_ext >&5
87dac73d 35911
cae5b340 35912 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 35913$as_echo "no" >&6; }
87dac73d 35914
87dac73d
AX
35915
35916
68d83c55 35917fi
cae5b340 35918
68d83c55 35919 rm -Rf build
87dac73d 35920
68d83c55
AX
35921
35922 EXTRA_KCFLAGS="$tmp_flags"
35923
cae5b340 35924 { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
68d83c55
AX
35925$as_echo_n "checking whether get_gendisk() is available... " >&6; }
35926
35927
35928
35929cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35930/* confdefs.h. */
35931_ACEOF
35932cat confdefs.h >>conftest.$ac_ext
35933cat >>conftest.$ac_ext <<_ACEOF
35934/* end confdefs.h. */
68d83c55
AX
35935
35936
35937 #include <linux/genhd.h>
87dac73d
AX
35938
35939int
35940main (void)
35941{
35942
68d83c55 35943 get_gendisk(0, NULL);
87dac73d
AX
35944
35945 ;
35946 return 0;
35947}
35948
35949_ACEOF
35950
35951
35952
35953cat - <<_ACEOF >conftest.h
35954
35955_ACEOF
35956
35957
35958 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35959 echo "obj-m := conftest.o" >build/Makefile
35960 modpost_flag=''
35961 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35962 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
35964 (eval $ac_try) 2>&5
35965 ac_status=$?
cae5b340
AX
35966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35967 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
35969 (eval $ac_try) 2>&5
35970 ac_status=$?
cae5b340
AX
35971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35972 (exit $ac_status); }; }; then
68d83c55 35973 rc=0
87dac73d
AX
35974else
35975 $as_echo "$as_me: failed program was:" >&5
35976sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 35977 rc=1
87dac73d 35978
87dac73d 35979
68d83c55 35980fi
cae5b340 35981
68d83c55 35982 rm -Rf build
87dac73d
AX
35983
35984
68d83c55 35985 if test $rc -ne 0; then :
87dac73d 35986
cae5b340 35987 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 35988$as_echo "no" >&6; }
87dac73d 35989
68d83c55
AX
35990 else
35991 if test "x$enable_linux_builtin" != xyes; then
87dac73d 35992
68d83c55
AX
35993 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
35994 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35995 rc=$?
35996 if test $rc -ne 0; then
35997 export=0
35998 for file in block/genhd.c; do
35999 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
36000 "$LINUX/$file" 2>/dev/null
36001 rc=$?
36002 if test $rc -eq 0; then
36003 export=1
36004 break;
36005 fi
36006 done
36007 if test $export -eq 0; then :
36008 rc=1
36009 else :
36010 rc=0
36011 fi
36012 else :
36013 rc=0
36014 fi
87dac73d 36015
68d83c55
AX
36016 fi
36017 if test $rc -ne 0; then :
ea04106b 36018
cae5b340 36019 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 36020$as_echo "no" >&6; }
ea04106b 36021
68d83c55 36022 else :
ea04106b 36023
cae5b340 36024 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 36025$as_echo "yes" >&6; }
ea04106b 36026
cae5b340
AX
36027cat >>confdefs.h <<\_ACEOF
36028#define HAVE_GET_GENDISK 1
36029_ACEOF
ea04106b
AX
36030
36031
68d83c55
AX
36032 fi
36033 fi
ea04106b 36034
ea04106b
AX
36035
36036
cae5b340 36037 { $as_echo "$as_me:$LINENO: checking whether bio_set_op_attrs is available" >&5
68d83c55 36038$as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
ea04106b
AX
36039
36040
68d83c55 36041cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36042/* confdefs.h. */
36043_ACEOF
36044cat confdefs.h >>conftest.$ac_ext
36045cat >>conftest.$ac_ext <<_ACEOF
36046/* end confdefs.h. */
ea04106b 36047
4d815aed 36048
cae5b340 36049 #include <linux/bio.h>
68d83c55 36050
ea04106b
AX
36051int
36052main (void)
36053{
36054
68d83c55
AX
36055 struct bio *bio __attribute__ ((unused)) = NULL;
36056
36057 bio_set_op_attrs(bio, 0, 0);
87dac73d
AX
36058
36059 ;
36060 return 0;
36061}
36062
36063_ACEOF
36064
36065
36066
36067cat - <<_ACEOF >conftest.h
36068
36069_ACEOF
36070
36071
36072 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36073 echo "obj-m := conftest.o" >build/Makefile
36074 modpost_flag=''
36075 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36076 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
36078 (eval $ac_try) 2>&5
36079 ac_status=$?
cae5b340
AX
36080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36081 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
36083 (eval $ac_try) 2>&5
36084 ac_status=$?
cae5b340
AX
36085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36086 (exit $ac_status); }; }; then
87dac73d 36087
cae5b340 36088 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
36089$as_echo "yes" >&6; }
36090
cae5b340
AX
36091cat >>confdefs.h <<\_ACEOF
36092#define HAVE_BIO_SET_OP_ATTRS 1
36093_ACEOF
87dac73d
AX
36094
36095
68d83c55
AX
36096else
36097 $as_echo "$as_me: failed program was:" >&5
36098sed 's/^/| /' conftest.$ac_ext >&5
87dac73d 36099
cae5b340 36100 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 36101$as_echo "no" >&6; }
87dac73d 36102
87dac73d
AX
36103
36104
68d83c55 36105fi
cae5b340 36106
68d83c55 36107 rm -Rf build
87dac73d 36108
68d83c55
AX
36109
36110
36111
cae5b340 36112 { $as_echo "$as_me:$LINENO: checking whether generic_readlink is global" >&5
68d83c55
AX
36113$as_echo_n "checking whether generic_readlink is global... " >&6; }
36114
36115
36116cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36117/* confdefs.h. */
36118_ACEOF
36119cat confdefs.h >>conftest.$ac_ext
36120cat >>conftest.$ac_ext <<_ACEOF
36121/* end confdefs.h. */
68d83c55
AX
36122
36123
36124 #include <linux/fs.h>
87dac73d
AX
36125
36126int
36127main (void)
36128{
36129
68d83c55
AX
36130 int i __attribute__ ((unused));
36131
36132 i = generic_readlink(NULL, NULL, 0);
ea04106b
AX
36133
36134 ;
36135 return 0;
36136}
36137
36138_ACEOF
36139
36140
36141
36142cat - <<_ACEOF >conftest.h
36143
36144_ACEOF
36145
36146
36147 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36148 echo "obj-m := conftest.o" >build/Makefile
36149 modpost_flag=''
36150 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36151 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36153 (eval $ac_try) 2>&5
36154 ac_status=$?
cae5b340
AX
36155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36156 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36158 (eval $ac_try) 2>&5
36159 ac_status=$?
cae5b340
AX
36160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36161 (exit $ac_status); }; }; then
ea04106b 36162
cae5b340 36163 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
36164$as_echo "yes" >&6; }
36165
cae5b340
AX
36166cat >>confdefs.h <<\_ACEOF
36167#define HAVE_GENERIC_READLINK 1
36168_ACEOF
ea04106b 36169
87dac73d
AX
36170
36171else
36172 $as_echo "$as_me: failed program was:" >&5
36173sed 's/^/| /' conftest.$ac_ext >&5
36174
cae5b340 36175 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
36176$as_echo "no" >&6; }
36177
36178
36179
36180fi
cae5b340 36181
87dac73d
AX
36182 rm -Rf build
36183
36184
36185
ea04106b 36186
cae5b340 36187 { $as_echo "$as_me:$LINENO: checking whether ql->discard_granularity is available" >&5
68d83c55 36188$as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
ea04106b
AX
36189
36190
36191cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36192/* confdefs.h. */
36193_ACEOF
36194cat confdefs.h >>conftest.$ac_ext
36195cat >>conftest.$ac_ext <<_ACEOF
36196/* end confdefs.h. */
ea04106b
AX
36197
36198
36199 #include <linux/blkdev.h>
36200
36201int
36202main (void)
36203{
36204
68d83c55
AX
36205 struct queue_limits ql __attribute__ ((unused));
36206
36207 ql.discard_granularity = 0;
ea04106b
AX
36208
36209 ;
36210 return 0;
36211}
36212
36213_ACEOF
36214
36215
36216
36217cat - <<_ACEOF >conftest.h
36218
36219_ACEOF
36220
36221
36222 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36223 echo "obj-m := conftest.o" >build/Makefile
36224 modpost_flag=''
36225 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36226 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36228 (eval $ac_try) 2>&5
36229 ac_status=$?
cae5b340
AX
36230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36231 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36233 (eval $ac_try) 2>&5
36234 ac_status=$?
cae5b340
AX
36235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36236 (exit $ac_status); }; }; then
ea04106b 36237
cae5b340 36238 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
36239$as_echo "yes" >&6; }
36240
cae5b340
AX
36241cat >>confdefs.h <<\_ACEOF
36242#define HAVE_DISCARD_GRANULARITY 1
36243_ACEOF
ea04106b
AX
36244
36245
36246else
36247 $as_echo "$as_me: failed program was:" >&5
36248sed 's/^/| /' conftest.$ac_ext >&5
36249
cae5b340 36250 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
36251$as_echo "no" >&6; }
36252
36253
36254
36255fi
cae5b340 36256
ea04106b
AX
36257 rm -Rf build
36258
36259
ea04106b
AX
36260
36261
cae5b340 36262 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_handler" >&5
68d83c55 36263$as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
ea04106b
AX
36264
36265
36266cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36267/* confdefs.h. */
36268_ACEOF
36269cat confdefs.h >>conftest.$ac_ext
36270cat >>conftest.$ac_ext <<_ACEOF
36271/* end confdefs.h. */
ea04106b
AX
36272
36273
68d83c55
AX
36274 #include <linux/fs.h>
36275 #include <linux/xattr.h>
36276
36277 const struct xattr_handler xattr_test_handler = {
36278 .prefix = "test",
36279 .get = NULL,
36280 .set = NULL,
36281 };
36282
36283 const struct xattr_handler *xattr_handlers[] = {
36284 &xattr_test_handler,
36285 };
36286
36287 const struct super_block sb __attribute__ ((unused)) = {
36288 .s_xattr = xattr_handlers,
36289 };
ea04106b
AX
36290
36291int
36292main (void)
36293{
36294
ea04106b
AX
36295
36296 ;
36297 return 0;
36298}
36299
36300_ACEOF
36301
36302
36303
36304cat - <<_ACEOF >conftest.h
36305
36306_ACEOF
36307
36308
36309 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36310 echo "obj-m := conftest.o" >build/Makefile
36311 modpost_flag=''
36312 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36313 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36315 (eval $ac_try) 2>&5
36316 ac_status=$?
cae5b340
AX
36317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36318 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36320 (eval $ac_try) 2>&5
36321 ac_status=$?
cae5b340
AX
36322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36323 (exit $ac_status); }; }; then
ea04106b 36324
cae5b340 36325 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
36326$as_echo "yes" >&6; }
36327
cae5b340
AX
36328cat >>confdefs.h <<\_ACEOF
36329#define HAVE_CONST_XATTR_HANDLER 1
36330_ACEOF
ea04106b
AX
36331
36332
36333else
36334 $as_echo "$as_me: failed program was:" >&5
36335sed 's/^/| /' conftest.$ac_ext >&5
36336
cae5b340 36337 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
36338$as_echo "no" >&6; }
36339
36340
36341
36342fi
cae5b340 36343
ea04106b
AX
36344 rm -Rf build
36345
36346
ea04106b
AX
36347
36348
cae5b340 36349 { $as_echo "$as_me:$LINENO: checking whether xattr_handler has name" >&5
68d83c55 36350$as_echo_n "checking whether xattr_handler has name... " >&6; }
ea04106b
AX
36351
36352
36353cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36354/* confdefs.h. */
36355_ACEOF
36356cat confdefs.h >>conftest.$ac_ext
36357cat >>conftest.$ac_ext <<_ACEOF
36358/* end confdefs.h. */
ea04106b
AX
36359
36360
68d83c55
AX
36361 #include <linux/xattr.h>
36362
36363 static const struct xattr_handler
36364 xops __attribute__ ((unused)) = {
36365 .name = XATTR_NAME_POSIX_ACL_ACCESS,
36366 };
ea04106b
AX
36367
36368int
36369main (void)
36370{
36371
ea04106b
AX
36372
36373 ;
36374 return 0;
36375}
36376
36377_ACEOF
36378
36379
36380
36381cat - <<_ACEOF >conftest.h
36382
36383_ACEOF
36384
36385
36386 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36387 echo "obj-m := conftest.o" >build/Makefile
36388 modpost_flag=''
36389 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36390 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36392 (eval $ac_try) 2>&5
36393 ac_status=$?
cae5b340
AX
36394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36395 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36397 (eval $ac_try) 2>&5
36398 ac_status=$?
cae5b340
AX
36399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36400 (exit $ac_status); }; }; then
ea04106b 36401
cae5b340 36402 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
36403$as_echo "yes" >&6; }
36404
cae5b340
AX
36405cat >>confdefs.h <<\_ACEOF
36406#define HAVE_XATTR_HANDLER_NAME 1
36407_ACEOF
ea04106b
AX
36408
36409
36410else
36411 $as_echo "$as_me: failed program was:" >&5
36412sed 's/^/| /' conftest.$ac_ext >&5
36413
cae5b340 36414 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
36415$as_echo "no" >&6; }
36416
36417
36418
36419fi
cae5b340 36420
ea04106b
AX
36421 rm -Rf build
36422
36423
ea04106b
AX
36424
36425
cae5b340 36426 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants both dentry and inode" >&5
68d83c55 36427$as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
ea04106b
AX
36428
36429
36430cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36431/* confdefs.h. */
36432_ACEOF
36433cat confdefs.h >>conftest.$ac_ext
36434cat >>conftest.$ac_ext <<_ACEOF
36435/* end confdefs.h. */
ea04106b
AX
36436
36437
68d83c55
AX
36438 #include <linux/xattr.h>
36439
36440 int get(const struct xattr_handler *handler,
36441 struct dentry *dentry, struct inode *inode,
36442 const char *name, void *buffer, size_t size) { return 0; }
36443 static const struct xattr_handler
36444 xops __attribute__ ((unused)) = {
36445 .get = get,
36446 };
ea04106b
AX
36447
36448int
36449main (void)
36450{
36451
ea04106b
AX
36452
36453 ;
36454 return 0;
36455}
36456
36457_ACEOF
36458
36459
36460
36461cat - <<_ACEOF >conftest.h
36462
36463_ACEOF
36464
36465
36466 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36467 echo "obj-m := conftest.o" >build/Makefile
36468 modpost_flag=''
36469 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36470 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36472 (eval $ac_try) 2>&5
36473 ac_status=$?
cae5b340
AX
36474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36475 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36477 (eval $ac_try) 2>&5
36478 ac_status=$?
cae5b340
AX
36479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36480 (exit $ac_status); }; }; then
ea04106b 36481
cae5b340 36482 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 36483$as_echo "yes" >&6; }
ea04106b 36484
cae5b340
AX
36485cat >>confdefs.h <<\_ACEOF
36486#define HAVE_XATTR_GET_DENTRY_INODE 1
36487_ACEOF
ea04106b
AX
36488
36489
68d83c55
AX
36490else
36491 $as_echo "$as_me: failed program was:" >&5
36492sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 36493
cae5b340
AX
36494 { $as_echo "$as_me:$LINENO: result: no" >&5
36495$as_echo "no" >&6; }
36496 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants xattr_handler" >&5
68d83c55 36497$as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
ea04106b 36498
e10b0808 36499
4d815aed 36500cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36501/* confdefs.h. */
36502_ACEOF
36503cat confdefs.h >>conftest.$ac_ext
36504cat >>conftest.$ac_ext <<_ACEOF
36505/* end confdefs.h. */
e10b0808 36506
4d815aed 36507
68d83c55
AX
36508 #include <linux/xattr.h>
36509
36510 int get(const struct xattr_handler *handler,
36511 struct dentry *dentry, const char *name,
36512 void *buffer, size_t size) { return 0; }
36513 static const struct xattr_handler
36514 xops __attribute__ ((unused)) = {
36515 .get = get,
36516 };
ea04106b
AX
36517
36518int
36519main (void)
36520{
36521
ea04106b
AX
36522
36523 ;
36524 return 0;
36525}
36526
36527_ACEOF
36528
36529
36530
36531cat - <<_ACEOF >conftest.h
36532
36533_ACEOF
36534
36535
36536 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36537 echo "obj-m := conftest.o" >build/Makefile
36538 modpost_flag=''
36539 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36540 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36542 (eval $ac_try) 2>&5
36543 ac_status=$?
cae5b340
AX
36544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36545 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36547 (eval $ac_try) 2>&5
36548 ac_status=$?
cae5b340
AX
36549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36550 (exit $ac_status); }; }; then
ea04106b 36551
cae5b340 36552 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
36553$as_echo "yes" >&6; }
36554
cae5b340
AX
36555cat >>confdefs.h <<\_ACEOF
36556#define HAVE_XATTR_GET_HANDLER 1
36557_ACEOF
ea04106b
AX
36558
36559
36560else
36561 $as_echo "$as_me: failed program was:" >&5
36562sed 's/^/| /' conftest.$ac_ext >&5
36563
cae5b340 36564 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 36565$as_echo "no" >&6; }
cae5b340 36566 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
68d83c55 36567$as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
ea04106b
AX
36568
36569
36570cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36571/* confdefs.h. */
36572_ACEOF
36573cat confdefs.h >>conftest.$ac_ext
36574cat >>conftest.$ac_ext <<_ACEOF
36575/* end confdefs.h. */
ea04106b
AX
36576
36577
68d83c55 36578 #include <linux/xattr.h>
4d815aed 36579
68d83c55
AX
36580 int get(struct dentry *dentry, const char *name,
36581 void *buffer, size_t size, int handler_flags)
36582 { return 0; }
36583 static const struct xattr_handler
36584 xops __attribute__ ((unused)) = {
36585 .get = get,
36586 };
ea04106b
AX
36587
36588int
36589main (void)
36590{
36591
ea04106b
AX
36592
36593 ;
36594 return 0;
36595}
36596
36597_ACEOF
36598
36599
36600
36601cat - <<_ACEOF >conftest.h
36602
36603_ACEOF
36604
36605
36606 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36607 echo "obj-m := conftest.o" >build/Makefile
36608 modpost_flag=''
36609 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36610 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36612 (eval $ac_try) 2>&5
36613 ac_status=$?
cae5b340
AX
36614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36615 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36617 (eval $ac_try) 2>&5
36618 ac_status=$?
cae5b340
AX
36619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36620 (exit $ac_status); }; }; then
ea04106b 36621
cae5b340 36622 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
36623$as_echo "yes" >&6; }
36624
cae5b340
AX
36625cat >>confdefs.h <<\_ACEOF
36626#define HAVE_XATTR_GET_DENTRY 1
36627_ACEOF
ea04106b
AX
36628
36629
36630else
36631 $as_echo "$as_me: failed program was:" >&5
36632sed 's/^/| /' conftest.$ac_ext >&5
36633
cae5b340 36634 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 36635$as_echo "no" >&6; }
cae5b340 36636 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants inode" >&5
68d83c55 36637$as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
5eacc075
AX
36638
36639
36640cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36641/* confdefs.h. */
36642_ACEOF
36643cat confdefs.h >>conftest.$ac_ext
36644cat >>conftest.$ac_ext <<_ACEOF
36645/* end confdefs.h. */
5eacc075
AX
36646
36647
68d83c55 36648 #include <linux/xattr.h>
5eacc075 36649
68d83c55
AX
36650 int get(struct inode *ip, const char *name,
36651 void *buffer, size_t size) { return 0; }
36652 static const struct xattr_handler
36653 xops __attribute__ ((unused)) = {
36654 .get = get,
36655 };
5eacc075
AX
36656
36657int
36658main (void)
36659{
36660
36661
36662 ;
36663 return 0;
36664}
36665
36666_ACEOF
36667
36668
36669
36670cat - <<_ACEOF >conftest.h
36671
36672_ACEOF
36673
36674
36675 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36676 echo "obj-m := conftest.o" >build/Makefile
36677 modpost_flag=''
36678 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36679 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5eacc075
AX
36681 (eval $ac_try) 2>&5
36682 ac_status=$?
cae5b340
AX
36683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36684 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5eacc075
AX
36686 (eval $ac_try) 2>&5
36687 ac_status=$?
cae5b340
AX
36688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36689 (exit $ac_status); }; }; then
5eacc075 36690
cae5b340 36691 { $as_echo "$as_me:$LINENO: result: yes" >&5
5eacc075
AX
36692$as_echo "yes" >&6; }
36693
cae5b340
AX
36694cat >>confdefs.h <<\_ACEOF
36695#define HAVE_XATTR_GET_INODE 1
36696_ACEOF
5eacc075
AX
36697
36698
36699else
36700 $as_echo "$as_me: failed program was:" >&5
36701sed 's/^/| /' conftest.$ac_ext >&5
36702
cae5b340
AX
36703 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
36704$as_echo "$as_me: error: no; please file a bug report" >&2;}
36705 { (exit 1); exit 1; }; }
5eacc075
AX
36706
36707
36708
ea04106b 36709fi
cae5b340 36710
ea04106b
AX
36711 rm -Rf build
36712
36713
ea04106b
AX
36714
36715
68d83c55
AX
36716
36717fi
cae5b340 36718
68d83c55
AX
36719 rm -Rf build
36720
36721
36722
36723
36724
36725fi
cae5b340 36726
68d83c55
AX
36727 rm -Rf build
36728
36729
36730
36731
36732
36733fi
cae5b340 36734
68d83c55
AX
36735 rm -Rf build
36736
36737
36738
36739
cae5b340 36740 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants both dentry and inode" >&5
68d83c55 36741$as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
ea04106b
AX
36742
36743
36744cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36745/* confdefs.h. */
36746_ACEOF
36747cat confdefs.h >>conftest.$ac_ext
36748cat >>conftest.$ac_ext <<_ACEOF
36749/* end confdefs.h. */
ea04106b
AX
36750
36751
4d815aed
AX
36752 #include <linux/xattr.h>
36753
68d83c55 36754 int set(const struct xattr_handler *handler,
87dac73d 36755 struct dentry *dentry, struct inode *inode,
68d83c55
AX
36756 const char *name, const void *buffer,
36757 size_t size, int flags)
36758 { return 0; }
4d815aed
AX
36759 static const struct xattr_handler
36760 xops __attribute__ ((unused)) = {
68d83c55 36761 .set = set,
4d815aed 36762 };
ea04106b
AX
36763
36764int
36765main (void)
36766{
36767
ea04106b
AX
36768
36769 ;
36770 return 0;
36771}
36772
36773_ACEOF
36774
36775
36776
36777cat - <<_ACEOF >conftest.h
36778
36779_ACEOF
36780
36781
36782 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36783 echo "obj-m := conftest.o" >build/Makefile
36784 modpost_flag=''
36785 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36786 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36788 (eval $ac_try) 2>&5
36789 ac_status=$?
cae5b340
AX
36790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36791 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36793 (eval $ac_try) 2>&5
36794 ac_status=$?
cae5b340
AX
36795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36796 (exit $ac_status); }; }; then
ea04106b 36797
cae5b340 36798 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
36799$as_echo "yes" >&6; }
36800
cae5b340
AX
36801cat >>confdefs.h <<\_ACEOF
36802#define HAVE_XATTR_SET_DENTRY_INODE 1
36803_ACEOF
ea04106b
AX
36804
36805
36806else
36807 $as_echo "$as_me: failed program was:" >&5
36808sed 's/^/| /' conftest.$ac_ext >&5
36809
cae5b340
AX
36810 { $as_echo "$as_me:$LINENO: result: no" >&5
36811$as_echo "no" >&6; }
36812 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants xattr_handler" >&5
68d83c55 36813$as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
ea04106b
AX
36814
36815
36816cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36817/* confdefs.h. */
36818_ACEOF
36819cat confdefs.h >>conftest.$ac_ext
36820cat >>conftest.$ac_ext <<_ACEOF
36821/* end confdefs.h. */
ea04106b
AX
36822
36823
4d815aed
AX
36824 #include <linux/xattr.h>
36825
68d83c55 36826 int set(const struct xattr_handler *handler,
87dac73d 36827 struct dentry *dentry, const char *name,
68d83c55
AX
36828 const void *buffer, size_t size, int flags)
36829 { return 0; }
4d815aed
AX
36830 static const struct xattr_handler
36831 xops __attribute__ ((unused)) = {
68d83c55 36832 .set = set,
4d815aed 36833 };
ea04106b
AX
36834
36835int
36836main (void)
36837{
36838
ea04106b
AX
36839
36840 ;
36841 return 0;
36842}
36843
36844_ACEOF
36845
36846
36847
36848cat - <<_ACEOF >conftest.h
36849
36850_ACEOF
36851
36852
36853 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36854 echo "obj-m := conftest.o" >build/Makefile
36855 modpost_flag=''
36856 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36857 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36859 (eval $ac_try) 2>&5
36860 ac_status=$?
cae5b340
AX
36861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36862 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36864 (eval $ac_try) 2>&5
36865 ac_status=$?
cae5b340
AX
36866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36867 (exit $ac_status); }; }; then
ea04106b 36868
cae5b340 36869 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
36870$as_echo "yes" >&6; }
36871
cae5b340
AX
36872cat >>confdefs.h <<\_ACEOF
36873#define HAVE_XATTR_SET_HANDLER 1
36874_ACEOF
ea04106b
AX
36875
36876
36877else
36878 $as_echo "$as_me: failed program was:" >&5
36879sed 's/^/| /' conftest.$ac_ext >&5
36880
cae5b340 36881 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 36882$as_echo "no" >&6; }
cae5b340 36883 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
68d83c55 36884$as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
ea04106b
AX
36885
36886
36887cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36888/* confdefs.h. */
36889_ACEOF
36890cat confdefs.h >>conftest.$ac_ext
36891cat >>conftest.$ac_ext <<_ACEOF
36892/* end confdefs.h. */
ea04106b
AX
36893
36894
4d815aed 36895 #include <linux/xattr.h>
ea04106b 36896
68d83c55
AX
36897 int set(struct dentry *dentry, const char *name,
36898 const void *buffer, size_t size, int flags,
36899 int handler_flags) { return 0; }
4d815aed
AX
36900 static const struct xattr_handler
36901 xops __attribute__ ((unused)) = {
68d83c55 36902 .set = set,
4d815aed 36903 };
ea04106b
AX
36904
36905int
36906main (void)
36907{
36908
ea04106b
AX
36909
36910 ;
36911 return 0;
36912}
36913
36914_ACEOF
36915
36916
36917
36918cat - <<_ACEOF >conftest.h
36919
36920_ACEOF
36921
36922
36923 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36924 echo "obj-m := conftest.o" >build/Makefile
36925 modpost_flag=''
36926 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36927 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36929 (eval $ac_try) 2>&5
36930 ac_status=$?
cae5b340
AX
36931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36932 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36934 (eval $ac_try) 2>&5
36935 ac_status=$?
cae5b340
AX
36936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36937 (exit $ac_status); }; }; then
ea04106b 36938
cae5b340 36939 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
36940$as_echo "yes" >&6; }
36941
cae5b340
AX
36942cat >>confdefs.h <<\_ACEOF
36943#define HAVE_XATTR_SET_DENTRY 1
36944_ACEOF
87dac73d
AX
36945
36946
36947else
36948 $as_echo "$as_me: failed program was:" >&5
36949sed 's/^/| /' conftest.$ac_ext >&5
36950
cae5b340 36951 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d 36952$as_echo "no" >&6; }
cae5b340 36953 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants inode" >&5
68d83c55 36954$as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
87dac73d
AX
36955
36956
36957cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36958/* confdefs.h. */
36959_ACEOF
36960cat confdefs.h >>conftest.$ac_ext
36961cat >>conftest.$ac_ext <<_ACEOF
36962/* end confdefs.h. */
87dac73d
AX
36963
36964
36965 #include <linux/xattr.h>
36966
68d83c55
AX
36967 int set(struct inode *ip, const char *name,
36968 const void *buffer, size_t size, int flags)
36969 { return 0; }
87dac73d
AX
36970 static const struct xattr_handler
36971 xops __attribute__ ((unused)) = {
68d83c55 36972 .set = set,
87dac73d
AX
36973 };
36974
36975int
36976main (void)
36977{
36978
36979
36980 ;
36981 return 0;
36982}
36983
36984_ACEOF
36985
36986
36987
36988cat - <<_ACEOF >conftest.h
36989
36990_ACEOF
36991
36992
36993 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36994 echo "obj-m := conftest.o" >build/Makefile
36995 modpost_flag=''
36996 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36997 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
36999 (eval $ac_try) 2>&5
37000 ac_status=$?
cae5b340
AX
37001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37002 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
37004 (eval $ac_try) 2>&5
37005 ac_status=$?
cae5b340
AX
37006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37007 (exit $ac_status); }; }; then
87dac73d 37008
cae5b340 37009 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
37010$as_echo "yes" >&6; }
37011
cae5b340
AX
37012cat >>confdefs.h <<\_ACEOF
37013#define HAVE_XATTR_SET_INODE 1
37014_ACEOF
4d815aed 37015
ea04106b
AX
37016
37017else
37018 $as_echo "$as_me: failed program was:" >&5
37019sed 's/^/| /' conftest.$ac_ext >&5
37020
cae5b340
AX
37021 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
37022$as_echo "$as_me: error: no; please file a bug report" >&2;}
37023 { (exit 1); exit 1; }; }
4d815aed
AX
37024
37025
37026
37027fi
cae5b340 37028
4d815aed
AX
37029 rm -Rf build
37030
37031
37032
37033
37034
37035fi
cae5b340 37036
4d815aed 37037 rm -Rf build
ea04106b 37038
ea04106b
AX
37039
37040
37041
37042
37043fi
cae5b340 37044
ea04106b
AX
37045 rm -Rf build
37046
37047
ea04106b
AX
37048
37049
87dac73d
AX
37050
37051fi
cae5b340 37052
87dac73d
AX
37053 rm -Rf build
37054
37055
37056
37057
cae5b340 37058 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants simple" >&5
68d83c55 37059$as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
ea04106b
AX
37060
37061
37062cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37063/* confdefs.h. */
37064_ACEOF
37065cat confdefs.h >>conftest.$ac_ext
37066cat >>conftest.$ac_ext <<_ACEOF
37067/* end confdefs.h. */
ea04106b
AX
37068
37069
4d815aed
AX
37070 #include <linux/xattr.h>
37071
68d83c55 37072 bool list(struct dentry *dentry) { return 0; }
4d815aed
AX
37073 static const struct xattr_handler
37074 xops __attribute__ ((unused)) = {
68d83c55 37075 .list = list,
4d815aed 37076 };
ea04106b
AX
37077
37078int
37079main (void)
37080{
37081
ea04106b
AX
37082
37083 ;
37084 return 0;
37085}
37086
37087_ACEOF
37088
37089
37090
37091cat - <<_ACEOF >conftest.h
37092
37093_ACEOF
37094
37095
37096 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37097 echo "obj-m := conftest.o" >build/Makefile
37098 modpost_flag=''
37099 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37100 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37102 (eval $ac_try) 2>&5
37103 ac_status=$?
cae5b340
AX
37104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37105 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37107 (eval $ac_try) 2>&5
37108 ac_status=$?
cae5b340
AX
37109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37110 (exit $ac_status); }; }; then
ea04106b 37111
cae5b340 37112 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
37113$as_echo "yes" >&6; }
37114
cae5b340
AX
37115cat >>confdefs.h <<\_ACEOF
37116#define HAVE_XATTR_LIST_SIMPLE 1
37117_ACEOF
ea04106b
AX
37118
37119
37120else
37121 $as_echo "$as_me: failed program was:" >&5
37122sed 's/^/| /' conftest.$ac_ext >&5
37123
cae5b340 37124 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 37125$as_echo "no" >&6; }
cae5b340 37126 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants xattr_handler" >&5
68d83c55 37127$as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
ea04106b
AX
37128
37129
37130cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37131/* confdefs.h. */
37132_ACEOF
37133cat confdefs.h >>conftest.$ac_ext
37134cat >>conftest.$ac_ext <<_ACEOF
37135/* end confdefs.h. */
ea04106b
AX
37136
37137
4d815aed
AX
37138 #include <linux/xattr.h>
37139
68d83c55
AX
37140 size_t list(const struct xattr_handler *handler,
37141 struct dentry *dentry, char *list, size_t list_size,
37142 const char *name, size_t name_len) { return 0; }
4d815aed
AX
37143 static const struct xattr_handler
37144 xops __attribute__ ((unused)) = {
68d83c55 37145 .list = list,
4d815aed 37146 };
ea04106b
AX
37147
37148int
37149main (void)
37150{
37151
ea04106b
AX
37152
37153 ;
37154 return 0;
37155}
37156
37157_ACEOF
37158
37159
37160
37161cat - <<_ACEOF >conftest.h
37162
37163_ACEOF
37164
37165
37166 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37167 echo "obj-m := conftest.o" >build/Makefile
37168 modpost_flag=''
37169 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37170 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37172 (eval $ac_try) 2>&5
37173 ac_status=$?
cae5b340
AX
37174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37175 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37177 (eval $ac_try) 2>&5
37178 ac_status=$?
cae5b340
AX
37179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37180 (exit $ac_status); }; }; then
ea04106b 37181
cae5b340 37182 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
37183$as_echo "yes" >&6; }
37184
cae5b340
AX
37185cat >>confdefs.h <<\_ACEOF
37186#define HAVE_XATTR_LIST_HANDLER 1
37187_ACEOF
ea04106b
AX
37188
37189
37190else
37191 $as_echo "$as_me: failed program was:" >&5
37192sed 's/^/| /' conftest.$ac_ext >&5
37193
cae5b340 37194 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 37195$as_echo "no" >&6; }
cae5b340 37196 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants dentry" >&5
68d83c55 37197$as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
ea04106b
AX
37198
37199
37200cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37201/* confdefs.h. */
37202_ACEOF
37203cat confdefs.h >>conftest.$ac_ext
37204cat >>conftest.$ac_ext <<_ACEOF
37205/* end confdefs.h. */
ea04106b
AX
37206
37207
4d815aed
AX
37208 #include <linux/xattr.h>
37209
68d83c55
AX
37210 size_t list(struct dentry *dentry,
37211 char *list, size_t list_size,
37212 const char *name, size_t name_len,
87dac73d 37213 int handler_flags) { return 0; }
4d815aed
AX
37214 static const struct xattr_handler
37215 xops __attribute__ ((unused)) = {
68d83c55 37216 .list = list,
4d815aed 37217 };
ea04106b
AX
37218
37219int
37220main (void)
37221{
37222
ea04106b
AX
37223
37224 ;
37225 return 0;
37226}
37227
37228_ACEOF
37229
37230
37231
37232cat - <<_ACEOF >conftest.h
37233
37234_ACEOF
37235
37236
37237 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37238 echo "obj-m := conftest.o" >build/Makefile
37239 modpost_flag=''
37240 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37241 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37243 (eval $ac_try) 2>&5
37244 ac_status=$?
cae5b340
AX
37245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37246 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37248 (eval $ac_try) 2>&5
37249 ac_status=$?
cae5b340
AX
37250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37251 (exit $ac_status); }; }; then
ea04106b 37252
cae5b340 37253 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
37254$as_echo "yes" >&6; }
37255
cae5b340
AX
37256cat >>confdefs.h <<\_ACEOF
37257#define HAVE_XATTR_LIST_DENTRY 1
37258_ACEOF
87dac73d
AX
37259
37260
37261else
37262 $as_echo "$as_me: failed program was:" >&5
37263sed 's/^/| /' conftest.$ac_ext >&5
37264
cae5b340 37265 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d 37266$as_echo "no" >&6; }
cae5b340 37267 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants inode" >&5
68d83c55 37268$as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
87dac73d
AX
37269
37270
37271cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37272/* confdefs.h. */
37273_ACEOF
37274cat confdefs.h >>conftest.$ac_ext
37275cat >>conftest.$ac_ext <<_ACEOF
37276/* end confdefs.h. */
87dac73d
AX
37277
37278
37279 #include <linux/xattr.h>
37280
68d83c55
AX
37281 size_t list(struct inode *ip, char *lst,
37282 size_t list_size, const char *name,
37283 size_t name_len) { return 0; }
87dac73d
AX
37284 static const struct xattr_handler
37285 xops __attribute__ ((unused)) = {
68d83c55 37286 .list = list,
87dac73d
AX
37287 };
37288
37289int
37290main (void)
37291{
37292
37293
37294 ;
37295 return 0;
37296}
37297
37298_ACEOF
37299
37300
37301
37302cat - <<_ACEOF >conftest.h
37303
37304_ACEOF
37305
37306
37307 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37308 echo "obj-m := conftest.o" >build/Makefile
37309 modpost_flag=''
37310 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37311 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
37313 (eval $ac_try) 2>&5
37314 ac_status=$?
cae5b340
AX
37315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37316 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
37318 (eval $ac_try) 2>&5
37319 ac_status=$?
cae5b340
AX
37320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37321 (exit $ac_status); }; }; then
87dac73d 37322
cae5b340 37323 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
37324$as_echo "yes" >&6; }
37325
cae5b340
AX
37326cat >>confdefs.h <<\_ACEOF
37327#define HAVE_XATTR_LIST_INODE 1
37328_ACEOF
ea04106b
AX
37329
37330
37331else
37332 $as_echo "$as_me: failed program was:" >&5
37333sed 's/^/| /' conftest.$ac_ext >&5
37334
cae5b340
AX
37335 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
37336$as_echo "$as_me: error: no; please file a bug report" >&2;}
37337 { (exit 1); exit 1; }; }
87dac73d
AX
37338
37339
37340
37341fi
cae5b340 37342
87dac73d
AX
37343 rm -Rf build
37344
37345
ea04106b
AX
37346
37347
37348
37349fi
cae5b340 37350
ea04106b
AX
37351 rm -Rf build
37352
37353
ea04106b 37354
4d815aed
AX
37355
37356
37357fi
cae5b340 37358
4d815aed 37359 rm -Rf build
ea04106b
AX
37360
37361
37362
4d815aed
AX
37363
37364
37365fi
cae5b340 37366
4d815aed
AX
37367 rm -Rf build
37368
37369
37370
37371
cae5b340 37372 { $as_echo "$as_me:$LINENO: checking whether inode_owner_or_capable() exists" >&5
68d83c55 37373$as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
4d815aed
AX
37374
37375
ea04106b 37376cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37377/* confdefs.h. */
37378_ACEOF
37379cat confdefs.h >>conftest.$ac_ext
37380cat >>conftest.$ac_ext <<_ACEOF
37381/* end confdefs.h. */
ea04106b
AX
37382
37383
68d83c55 37384 #include <linux/fs.h>
ea04106b
AX
37385
37386int
37387main (void)
37388{
37389
68d83c55
AX
37390 struct inode *ip = NULL;
37391 (void) inode_owner_or_capable(ip);
ea04106b
AX
37392
37393 ;
37394 return 0;
37395}
37396
37397_ACEOF
37398
37399
37400
37401cat - <<_ACEOF >conftest.h
37402
37403_ACEOF
37404
37405
37406 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37407 echo "obj-m := conftest.o" >build/Makefile
37408 modpost_flag=''
37409 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37410 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37412 (eval $ac_try) 2>&5
37413 ac_status=$?
cae5b340
AX
37414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37415 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37417 (eval $ac_try) 2>&5
37418 ac_status=$?
cae5b340
AX
37419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37420 (exit $ac_status); }; }; then
ea04106b 37421
cae5b340 37422 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
37423$as_echo "yes" >&6; }
37424
cae5b340
AX
37425cat >>confdefs.h <<\_ACEOF
37426#define HAVE_INODE_OWNER_OR_CAPABLE 1
37427_ACEOF
ea04106b
AX
37428
37429
4d815aed
AX
37430else
37431 $as_echo "$as_me: failed program was:" >&5
37432sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 37433
cae5b340 37434 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 37435$as_echo "no" >&6; }
cae5b340 37436 { $as_echo "$as_me:$LINENO: checking whether is_owner_or_cap() exists" >&5
68d83c55 37437$as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
ea04106b
AX
37438
37439
37440cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37441/* confdefs.h. */
37442_ACEOF
37443cat confdefs.h >>conftest.$ac_ext
37444cat >>conftest.$ac_ext <<_ACEOF
37445/* end confdefs.h. */
ea04106b
AX
37446
37447
68d83c55
AX
37448 #include <linux/fs.h>
37449 #include <linux/sched.h>
ea04106b
AX
37450
37451int
37452main (void)
37453{
37454
68d83c55
AX
37455 struct inode *ip = NULL;
37456 (void) is_owner_or_cap(ip);
ea04106b
AX
37457
37458 ;
37459 return 0;
37460}
37461
37462_ACEOF
37463
37464
37465
37466cat - <<_ACEOF >conftest.h
37467
37468_ACEOF
37469
37470
37471 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37472 echo "obj-m := conftest.o" >build/Makefile
37473 modpost_flag=''
37474 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37475 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37477 (eval $ac_try) 2>&5
37478 ac_status=$?
cae5b340
AX
37479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37480 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37482 (eval $ac_try) 2>&5
37483 ac_status=$?
cae5b340
AX
37484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37485 (exit $ac_status); }; }; then
ea04106b 37486
cae5b340 37487 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
37488$as_echo "yes" >&6; }
37489
cae5b340
AX
37490cat >>confdefs.h <<\_ACEOF
37491#define HAVE_IS_OWNER_OR_CAP 1
37492_ACEOF
ea04106b
AX
37493
37494
37495else
37496 $as_echo "$as_me: failed program was:" >&5
37497sed 's/^/| /' conftest.$ac_ext >&5
37498
cae5b340
AX
37499 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
37500 https://github.com/zfsonlinux/zfs/issues/new" >&5
37501$as_echo "$as_me: error: no - Please file a bug report at
37502 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
37503 { (exit 1); exit 1; }; }
ea04106b
AX
37504
37505
ea04106b 37506
68d83c55 37507fi
cae5b340 37508
68d83c55 37509 rm -Rf build
ea04106b 37510
ea04106b 37511
68d83c55
AX
37512
37513
37514
37515fi
cae5b340 37516
68d83c55
AX
37517 rm -Rf build
37518
37519
37520
37521
cae5b340 37522 { $as_echo "$as_me:$LINENO: checking whether posix_acl_from_xattr() needs user_ns" >&5
68d83c55
AX
37523$as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
37524
37525
37526cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37527/* confdefs.h. */
37528_ACEOF
37529cat confdefs.h >>conftest.$ac_ext
37530cat >>conftest.$ac_ext <<_ACEOF
37531/* end confdefs.h. */
68d83c55
AX
37532
37533
37534 #include <linux/cred.h>
37535 #include <linux/fs.h>
37536 #include <linux/posix_acl_xattr.h>
ea04106b
AX
37537
37538int
37539main (void)
37540{
37541
68d83c55 37542 posix_acl_from_xattr(&init_user_ns, NULL, 0);
ea04106b
AX
37543
37544 ;
37545 return 0;
37546}
37547
37548_ACEOF
37549
37550
37551
37552cat - <<_ACEOF >conftest.h
37553
37554_ACEOF
37555
37556
37557 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37558 echo "obj-m := conftest.o" >build/Makefile
37559 modpost_flag=''
37560 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37561 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37563 (eval $ac_try) 2>&5
37564 ac_status=$?
cae5b340
AX
37565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37566 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37568 (eval $ac_try) 2>&5
37569 ac_status=$?
cae5b340
AX
37570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37571 (exit $ac_status); }; }; then
ea04106b 37572
cae5b340 37573 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
37574$as_echo "yes" >&6; }
37575
cae5b340
AX
37576cat >>confdefs.h <<\_ACEOF
37577#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1
37578_ACEOF
ea04106b
AX
37579
37580
37581else
37582 $as_echo "$as_me: failed program was:" >&5
37583sed 's/^/| /' conftest.$ac_ext >&5
37584
cae5b340 37585 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 37586$as_echo "no" >&6; }
ea04106b
AX
37587
37588
ea04106b 37589
68d83c55 37590fi
cae5b340 37591
68d83c55 37592 rm -Rf build
ea04106b 37593
e10b0808 37594
68d83c55
AX
37595
37596
cae5b340 37597 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is available" >&5
68d83c55
AX
37598$as_echo_n "checking whether posix_acl_release() is available... " >&6; }
37599
37600
37601cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37602/* confdefs.h. */
37603_ACEOF
37604cat confdefs.h >>conftest.$ac_ext
37605cat >>conftest.$ac_ext <<_ACEOF
37606/* end confdefs.h. */
68d83c55
AX
37607
37608
37609 #include <linux/cred.h>
37610 #include <linux/fs.h>
37611 #include <linux/posix_acl.h>
ea04106b
AX
37612
37613int
37614main (void)
37615{
37616
68d83c55
AX
37617 struct posix_acl* tmp = posix_acl_alloc(1, 0);
37618 posix_acl_release(tmp);
ea04106b
AX
37619
37620 ;
37621 return 0;
37622}
37623
37624_ACEOF
37625
37626
37627
37628cat - <<_ACEOF >conftest.h
37629
37630_ACEOF
37631
37632
37633 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37634 echo "obj-m := conftest.o" >build/Makefile
37635 modpost_flag=''
37636 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37637 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37639 (eval $ac_try) 2>&5
37640 ac_status=$?
cae5b340
AX
37641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37642 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37644 (eval $ac_try) 2>&5
37645 ac_status=$?
cae5b340
AX
37646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37647 (exit $ac_status); }; }; then
ea04106b 37648
cae5b340 37649 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
37650$as_echo "yes" >&6; }
37651
cae5b340
AX
37652cat >>confdefs.h <<\_ACEOF
37653#define HAVE_POSIX_ACL_RELEASE 1
37654_ACEOF
4d815aed
AX
37655
37656
cae5b340 37657 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is GPL-only" >&5
68d83c55 37658$as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
4d815aed
AX
37659
37660
37661cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37662/* confdefs.h. */
37663_ACEOF
37664cat confdefs.h >>conftest.$ac_ext
37665cat >>conftest.$ac_ext <<_ACEOF
37666/* end confdefs.h. */
4d815aed
AX
37667
37668
cae5b340
AX
37669 #include <linux/module.h>
37670 #include <linux/cred.h>
37671 #include <linux/fs.h>
37672 #include <linux/posix_acl.h>
68d83c55 37673
cae5b340 37674 MODULE_LICENSE("$ZFS_META_LICENSE");
94a40997
AX
37675
37676int
37677main (void)
37678{
37679
cae5b340
AX
37680 struct posix_acl* tmp = posix_acl_alloc(1, 0);
37681 posix_acl_release(tmp);
94a40997
AX
37682
37683 ;
37684 return 0;
37685}
37686
37687_ACEOF
37688
37689
37690
37691cat - <<_ACEOF >conftest.h
37692
37693_ACEOF
37694
37695
37696 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37697 echo "obj-m := conftest.o" >build/Makefile
37698 modpost_flag=''
37699 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37700 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
37702 (eval $ac_try) 2>&5
37703 ac_status=$?
cae5b340
AX
37704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37705 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
37707 (eval $ac_try) 2>&5
37708 ac_status=$?
cae5b340
AX
37709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37710 (exit $ac_status); }; }; then
94a40997 37711
cae5b340 37712 { $as_echo "$as_me:$LINENO: result: no" >&5
94a40997 37713$as_echo "no" >&6; }
ea04106b
AX
37714
37715else
37716 $as_echo "$as_me: failed program was:" >&5
37717sed 's/^/| /' conftest.$ac_ext >&5
37718
cae5b340 37719 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 37720$as_echo "yes" >&6; }
4d815aed 37721
cae5b340
AX
37722cat >>confdefs.h <<\_ACEOF
37723#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1
37724_ACEOF
4d815aed
AX
37725
37726
37727
37728
37729fi
cae5b340 37730
4d815aed 37731 rm -Rf build
94a40997
AX
37732
37733
94a40997 37734
cae5b340
AX
37735else
37736 $as_echo "$as_me: failed program was:" >&5
37737sed 's/^/| /' conftest.$ac_ext >&5
37738
37739 { $as_echo "$as_me:$LINENO: result: no" >&5
37740$as_echo "no" >&6; }
37741
37742
37743
37744fi
37745
37746 rm -Rf build
37747
4d815aed 37748
cae5b340
AX
37749
37750
37751 { $as_echo "$as_me:$LINENO: checking whether set_cached_acl() is usable" >&5
68d83c55 37752$as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
4d815aed
AX
37753
37754
37755cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37756/* confdefs.h. */
37757_ACEOF
37758cat confdefs.h >>conftest.$ac_ext
37759cat >>conftest.$ac_ext <<_ACEOF
37760/* end confdefs.h. */
4d815aed
AX
37761
37762
68d83c55 37763 #include <linux/module.h>
4d815aed
AX
37764 #include <linux/cred.h>
37765 #include <linux/fs.h>
68d83c55
AX
37766 #include <linux/posix_acl.h>
37767
37768 MODULE_LICENSE("$ZFS_META_LICENSE");
94a40997
AX
37769
37770int
37771main (void)
37772{
37773
68d83c55
AX
37774 struct inode *ip = NULL;
37775 struct posix_acl *acl = posix_acl_alloc(1, 0);
37776 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
37777 forget_cached_acl(ip, ACL_TYPE_ACCESS);
94a40997
AX
37778
37779 ;
37780 return 0;
37781}
37782
37783_ACEOF
37784
37785
37786
37787cat - <<_ACEOF >conftest.h
37788
37789_ACEOF
37790
37791
37792 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37793 echo "obj-m := conftest.o" >build/Makefile
37794 modpost_flag=''
37795 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37796 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
37798 (eval $ac_try) 2>&5
37799 ac_status=$?
cae5b340
AX
37800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37801 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
37803 (eval $ac_try) 2>&5
37804 ac_status=$?
cae5b340
AX
37805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37806 (exit $ac_status); }; }; then
94a40997 37807
cae5b340 37808 { $as_echo "$as_me:$LINENO: result: yes" >&5
94a40997
AX
37809$as_echo "yes" >&6; }
37810
cae5b340
AX
37811cat >>confdefs.h <<\_ACEOF
37812#define HAVE_SET_CACHED_ACL_USABLE 1
37813_ACEOF
94a40997
AX
37814
37815
37816else
37817 $as_echo "$as_me: failed program was:" >&5
37818sed 's/^/| /' conftest.$ac_ext >&5
37819
cae5b340 37820 { $as_echo "$as_me:$LINENO: result: no" >&5
94a40997
AX
37821$as_echo "no" >&6; }
37822
37823
37824
37825fi
cae5b340 37826
94a40997
AX
37827 rm -Rf build
37828
37829
ea04106b
AX
37830
37831
cae5b340 37832 { $as_echo "$as_me:$LINENO: checking whether posix_acl_chmod exists" >&5
68d83c55 37833$as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
ea04106b
AX
37834
37835
37836cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37837/* confdefs.h. */
37838_ACEOF
37839cat confdefs.h >>conftest.$ac_ext
37840cat >>conftest.$ac_ext <<_ACEOF
37841/* end confdefs.h. */
ea04106b
AX
37842
37843
4d815aed
AX
37844 #include <linux/fs.h>
37845 #include <linux/posix_acl.h>
ea04106b
AX
37846
37847int
37848main (void)
37849{
37850
68d83c55 37851 posix_acl_chmod(NULL, 0, 0)
ea04106b
AX
37852
37853 ;
37854 return 0;
37855}
37856
37857_ACEOF
37858
37859
37860
37861cat - <<_ACEOF >conftest.h
37862
37863_ACEOF
37864
37865
37866 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37867 echo "obj-m := conftest.o" >build/Makefile
37868 modpost_flag=''
37869 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37870 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37872 (eval $ac_try) 2>&5
37873 ac_status=$?
cae5b340
AX
37874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37875 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37877 (eval $ac_try) 2>&5
37878 ac_status=$?
cae5b340
AX
37879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37880 (exit $ac_status); }; }; then
ea04106b 37881
cae5b340 37882 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
37883$as_echo "yes" >&6; }
37884
cae5b340
AX
37885cat >>confdefs.h <<\_ACEOF
37886#define HAVE_POSIX_ACL_CHMOD 1
37887_ACEOF
ea04106b
AX
37888
37889
37890else
37891 $as_echo "$as_me: failed program was:" >&5
37892sed 's/^/| /' conftest.$ac_ext >&5
37893
cae5b340 37894 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 37895$as_echo "no" >&6; }
4d815aed
AX
37896
37897
37898
37899fi
cae5b340 37900
4d815aed
AX
37901 rm -Rf build
37902
37903
37904
cae5b340 37905 { $as_echo "$as_me:$LINENO: checking whether __posix_acl_chmod exists" >&5
68d83c55 37906$as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
ea04106b
AX
37907
37908
37909cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37910/* confdefs.h. */
37911_ACEOF
37912cat confdefs.h >>conftest.$ac_ext
37913cat >>conftest.$ac_ext <<_ACEOF
37914/* end confdefs.h. */
ea04106b
AX
37915
37916
37917 #include <linux/fs.h>
4d815aed 37918 #include <linux/posix_acl.h>
ea04106b
AX
37919
37920int
37921main (void)
37922{
37923
68d83c55 37924 __posix_acl_chmod(NULL, 0, 0)
ea04106b
AX
37925
37926 ;
37927 return 0;
37928}
37929
37930_ACEOF
37931
37932
37933
37934cat - <<_ACEOF >conftest.h
37935
37936_ACEOF
37937
37938
37939 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37940 echo "obj-m := conftest.o" >build/Makefile
37941 modpost_flag=''
37942 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37943 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37945 (eval $ac_try) 2>&5
37946 ac_status=$?
cae5b340
AX
37947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37948 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37950 (eval $ac_try) 2>&5
37951 ac_status=$?
cae5b340
AX
37952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37953 (exit $ac_status); }; }; then
ea04106b 37954
cae5b340 37955 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
37956$as_echo "yes" >&6; }
37957
cae5b340
AX
37958cat >>confdefs.h <<\_ACEOF
37959#define HAVE___POSIX_ACL_CHMOD 1
37960_ACEOF
ea04106b
AX
37961
37962
37963else
37964 $as_echo "$as_me: failed program was:" >&5
37965sed 's/^/| /' conftest.$ac_ext >&5
37966
cae5b340 37967 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 37968$as_echo "no" >&6; }
4d815aed
AX
37969
37970
37971
37972fi
cae5b340 37973
4d815aed
AX
37974 rm -Rf build
37975
37976
37977
68d83c55 37978
cae5b340 37979 { $as_echo "$as_me:$LINENO: checking whether posix_acl_equiv_mode() wants umode_t" >&5
68d83c55 37980$as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
ea04106b
AX
37981
37982
37983cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37984/* confdefs.h. */
37985_ACEOF
37986cat confdefs.h >>conftest.$ac_ext
37987cat >>conftest.$ac_ext <<_ACEOF
37988/* end confdefs.h. */
ea04106b
AX
37989
37990
4d815aed
AX
37991 #include <linux/fs.h>
37992 #include <linux/posix_acl.h>
ea04106b
AX
37993
37994int
37995main (void)
37996{
37997
68d83c55
AX
37998 umode_t tmp;
37999 posix_acl_equiv_mode(NULL,&tmp);
ea04106b
AX
38000
38001 ;
38002 return 0;
38003}
38004
38005_ACEOF
38006
38007
38008
38009cat - <<_ACEOF >conftest.h
38010
38011_ACEOF
38012
38013
38014 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38015 echo "obj-m := conftest.o" >build/Makefile
38016 modpost_flag=''
38017 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38018 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38020 (eval $ac_try) 2>&5
38021 ac_status=$?
cae5b340
AX
38022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38023 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38025 (eval $ac_try) 2>&5
38026 ac_status=$?
cae5b340
AX
38027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38028 (exit $ac_status); }; }; then
ea04106b 38029
cae5b340 38030 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
38031$as_echo "yes" >&6; }
38032
cae5b340
AX
38033cat >>confdefs.h <<\_ACEOF
38034#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1
38035_ACEOF
ea04106b
AX
38036
38037
38038else
38039 $as_echo "$as_me: failed program was:" >&5
38040sed 's/^/| /' conftest.$ac_ext >&5
38041
cae5b340 38042 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 38043$as_echo "no" >&6; }
ea04106b
AX
38044
38045
ea04106b 38046
e10b0808 38047fi
cae5b340 38048
e10b0808 38049 rm -Rf build
ea04106b 38050
ea04106b
AX
38051
38052
ea04106b 38053
cae5b340 38054 { $as_echo "$as_me:$LINENO: checking whether posix_acl_valid() wants user namespace" >&5
68d83c55 38055$as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
e10b0808
AX
38056
38057
38058cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38059/* confdefs.h. */
38060_ACEOF
38061cat confdefs.h >>conftest.$ac_ext
38062cat >>conftest.$ac_ext <<_ACEOF
38063/* end confdefs.h. */
e10b0808
AX
38064
38065
e10b0808 38066 #include <linux/fs.h>
87dac73d 38067 #include <linux/posix_acl.h>
ea04106b
AX
38068
38069int
38070main (void)
38071{
38072
68d83c55
AX
38073 struct user_namespace *user_ns = NULL;
38074 const struct posix_acl *acl = NULL;
38075 int error;
38076
38077 error = posix_acl_valid(user_ns, acl);
ea04106b
AX
38078
38079 ;
38080 return 0;
38081}
38082
38083_ACEOF
38084
38085
38086
38087cat - <<_ACEOF >conftest.h
38088
38089_ACEOF
38090
38091
38092 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38093 echo "obj-m := conftest.o" >build/Makefile
38094 modpost_flag=''
38095 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38096 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38098 (eval $ac_try) 2>&5
38099 ac_status=$?
cae5b340
AX
38100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38101 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38103 (eval $ac_try) 2>&5
38104 ac_status=$?
cae5b340
AX
38105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38106 (exit $ac_status); }; }; then
ea04106b 38107
cae5b340 38108 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
38109$as_echo "yes" >&6; }
38110
cae5b340
AX
38111cat >>confdefs.h <<\_ACEOF
38112#define HAVE_POSIX_ACL_VALID_WITH_NS 1
38113_ACEOF
ea04106b
AX
38114
38115
38116else
38117 $as_echo "$as_me: failed program was:" >&5
38118sed 's/^/| /' conftest.$ac_ext >&5
38119
cae5b340 38120 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
38121$as_echo "no" >&6; }
38122
38123
38124
38125fi
cae5b340 38126
ea04106b
AX
38127 rm -Rf build
38128
38129
38130
38131
cae5b340 38132 { $as_echo "$as_me:$LINENO: checking whether iops->permission() exists" >&5
68d83c55 38133$as_echo_n "checking whether iops->permission() exists... " >&6; }
ea04106b
AX
38134
38135
38136cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38137/* confdefs.h. */
38138_ACEOF
38139cat confdefs.h >>conftest.$ac_ext
38140cat >>conftest.$ac_ext <<_ACEOF
38141/* end confdefs.h. */
ea04106b
AX
38142
38143
e10b0808 38144 #include <linux/fs.h>
68d83c55
AX
38145
38146 int permission_fn(struct inode *inode, int mask) { return 0; }
38147
38148 static const struct inode_operations
38149 iops __attribute__ ((unused)) = {
38150 .permission = permission_fn,
38151 };
ea04106b
AX
38152
38153int
38154main (void)
38155{
38156
38157
38158 ;
38159 return 0;
38160}
38161
38162_ACEOF
38163
38164
38165
38166cat - <<_ACEOF >conftest.h
38167
38168_ACEOF
38169
38170
38171 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38172 echo "obj-m := conftest.o" >build/Makefile
38173 modpost_flag=''
38174 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38175 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38177 (eval $ac_try) 2>&5
38178 ac_status=$?
cae5b340
AX
38179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38180 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38182 (eval $ac_try) 2>&5
38183 ac_status=$?
cae5b340
AX
38184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38185 (exit $ac_status); }; }; then
ea04106b 38186
cae5b340 38187 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
38188$as_echo "yes" >&6; }
38189
cae5b340
AX
38190cat >>confdefs.h <<\_ACEOF
38191#define HAVE_PERMISSION 1
38192_ACEOF
ea04106b
AX
38193
38194
38195else
38196 $as_echo "$as_me: failed program was:" >&5
38197sed 's/^/| /' conftest.$ac_ext >&5
38198
cae5b340 38199 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
38200$as_echo "no" >&6; }
38201
38202
38203
38204fi
cae5b340 38205
ea04106b
AX
38206 rm -Rf build
38207
38208
38209
4d815aed 38210
cae5b340 38211 { $as_echo "$as_me:$LINENO: checking whether iops->permission() wants nameidata" >&5
68d83c55 38212$as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
ea04106b
AX
38213
38214
38215cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38216/* confdefs.h. */
38217_ACEOF
38218cat confdefs.h >>conftest.$ac_ext
38219cat >>conftest.$ac_ext <<_ACEOF
38220/* end confdefs.h. */
ea04106b
AX
38221
38222
38223 #include <linux/fs.h>
e10b0808 38224
68d83c55
AX
38225 int permission_fn(struct inode *inode, int mask,
38226 struct nameidata *nd) { return 0; }
4d815aed
AX
38227
38228 static const struct inode_operations
38229 iops __attribute__ ((unused)) = {
38230 .permission = permission_fn,
38231 };
ea04106b
AX
38232
38233int
38234main (void)
38235{
38236
ea04106b
AX
38237
38238 ;
38239 return 0;
38240}
38241
38242_ACEOF
38243
38244
38245
38246cat - <<_ACEOF >conftest.h
38247
38248_ACEOF
38249
38250
38251 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38252 echo "obj-m := conftest.o" >build/Makefile
38253 modpost_flag=''
38254 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38255 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38257 (eval $ac_try) 2>&5
38258 ac_status=$?
cae5b340
AX
38259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38260 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38262 (eval $ac_try) 2>&5
38263 ac_status=$?
cae5b340
AX
38264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38265 (exit $ac_status); }; }; then
ea04106b 38266
cae5b340 38267 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
38268$as_echo "yes" >&6; }
38269
cae5b340
AX
38270cat >>confdefs.h <<\_ACEOF
38271#define HAVE_PERMISSION 1
38272_ACEOF
4d815aed 38273
e10b0808 38274
cae5b340
AX
38275cat >>confdefs.h <<\_ACEOF
38276#define HAVE_PERMISSION_WITH_NAMEIDATA 1
38277_ACEOF
68d83c55
AX
38278
38279
e10b0808
AX
38280else
38281 $as_echo "$as_me: failed program was:" >&5
38282sed 's/^/| /' conftest.$ac_ext >&5
38283
cae5b340 38284 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 38285$as_echo "no" >&6; }
ea04106b 38286
ea04106b 38287
e10b0808
AX
38288
38289fi
cae5b340 38290
e10b0808
AX
38291 rm -Rf build
38292
38293
38294
38295
cae5b340 38296 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() exists" >&5
68d83c55 38297$as_echo_n "checking whether iops->check_acl() exists... " >&6; }
ea04106b
AX
38298
38299
38300cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38301/* confdefs.h. */
38302_ACEOF
38303cat confdefs.h >>conftest.$ac_ext
38304cat >>conftest.$ac_ext <<_ACEOF
38305/* end confdefs.h. */
ea04106b
AX
38306
38307
e10b0808 38308 #include <linux/fs.h>
4d815aed 38309
68d83c55 38310 int check_acl_fn(struct inode *inode, int mask) { return 0; }
4d815aed
AX
38311
38312 static const struct inode_operations
38313 iops __attribute__ ((unused)) = {
68d83c55 38314 .check_acl = check_acl_fn,
4d815aed 38315 };
ea04106b
AX
38316
38317int
38318main (void)
38319{
38320
ea04106b
AX
38321
38322 ;
38323 return 0;
38324}
38325
38326_ACEOF
38327
38328
38329
38330cat - <<_ACEOF >conftest.h
38331
38332_ACEOF
38333
38334
38335 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38336 echo "obj-m := conftest.o" >build/Makefile
38337 modpost_flag=''
38338 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38339 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38341 (eval $ac_try) 2>&5
38342 ac_status=$?
cae5b340
AX
38343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38344 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38346 (eval $ac_try) 2>&5
38347 ac_status=$?
cae5b340
AX
38348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38349 (exit $ac_status); }; }; then
ea04106b 38350
cae5b340 38351 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
38352$as_echo "yes" >&6; }
38353
cae5b340
AX
38354cat >>confdefs.h <<\_ACEOF
38355#define HAVE_CHECK_ACL 1
38356_ACEOF
ea04106b
AX
38357
38358
38359else
38360 $as_echo "$as_me: failed program was:" >&5
38361sed 's/^/| /' conftest.$ac_ext >&5
38362
cae5b340 38363 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 38364$as_echo "no" >&6; }
ea04106b
AX
38365
38366
38367
38368fi
cae5b340 38369
ea04106b
AX
38370 rm -Rf build
38371
38372
38373
4d815aed 38374
cae5b340 38375 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() wants flags" >&5
68d83c55 38376$as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
ea04106b
AX
38377
38378
38379cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38380/* confdefs.h. */
38381_ACEOF
38382cat confdefs.h >>conftest.$ac_ext
38383cat >>conftest.$ac_ext <<_ACEOF
38384/* end confdefs.h. */
ea04106b
AX
38385
38386
ea04106b 38387 #include <linux/fs.h>
4d815aed 38388
68d83c55
AX
38389 int check_acl_fn(struct inode *inode, int mask,
38390 unsigned int flags) { return 0; }
4d815aed
AX
38391
38392 static const struct inode_operations
38393 iops __attribute__ ((unused)) = {
38394 .check_acl = check_acl_fn,
38395 };
ea04106b
AX
38396
38397int
38398main (void)
38399{
38400
ea04106b
AX
38401
38402 ;
38403 return 0;
38404}
38405
38406_ACEOF
38407
38408
38409
38410cat - <<_ACEOF >conftest.h
38411
38412_ACEOF
38413
38414
38415 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38416 echo "obj-m := conftest.o" >build/Makefile
38417 modpost_flag=''
38418 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38419 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38421 (eval $ac_try) 2>&5
38422 ac_status=$?
cae5b340
AX
38423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38424 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
ea04106b 38430
cae5b340 38431 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
38432$as_echo "yes" >&6; }
38433
cae5b340
AX
38434cat >>confdefs.h <<\_ACEOF
38435#define HAVE_CHECK_ACL 1
38436_ACEOF
ea04106b
AX
38437
38438
cae5b340
AX
38439cat >>confdefs.h <<\_ACEOF
38440#define HAVE_CHECK_ACL_WITH_FLAGS 1
38441_ACEOF
68d83c55
AX
38442
38443
ea04106b
AX
38444else
38445 $as_echo "$as_me: failed program was:" >&5
38446sed 's/^/| /' conftest.$ac_ext >&5
38447
cae5b340 38448 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
38449$as_echo "no" >&6; }
38450
38451
38452
38453fi
cae5b340 38454
ea04106b
AX
38455 rm -Rf build
38456
38457
38458
38459
cae5b340 38460 { $as_echo "$as_me:$LINENO: checking whether iops->get_acl() exists" >&5
68d83c55 38461$as_echo_n "checking whether iops->get_acl() exists... " >&6; }
ea04106b
AX
38462
38463
38464cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38465/* confdefs.h. */
38466_ACEOF
38467cat confdefs.h >>conftest.$ac_ext
38468cat >>conftest.$ac_ext <<_ACEOF
38469/* end confdefs.h. */
ea04106b
AX
38470
38471
ea04106b 38472 #include <linux/fs.h>
ea04106b 38473
68d83c55
AX
38474 struct posix_acl *get_acl_fn(struct inode *inode, int type)
38475 { return NULL; }
4d815aed
AX
38476
38477 static const struct inode_operations
38478 iops __attribute__ ((unused)) = {
68d83c55 38479 .get_acl = get_acl_fn,
4d815aed
AX
38480 };
38481
ea04106b
AX
38482int
38483main (void)
38484{
38485
ea04106b
AX
38486
38487 ;
38488 return 0;
38489}
38490
38491_ACEOF
38492
38493
38494
38495cat - <<_ACEOF >conftest.h
38496
38497_ACEOF
38498
38499
38500 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38501 echo "obj-m := conftest.o" >build/Makefile
38502 modpost_flag=''
38503 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38504 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38506 (eval $ac_try) 2>&5
38507 ac_status=$?
cae5b340
AX
38508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38509 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38511 (eval $ac_try) 2>&5
38512 ac_status=$?
cae5b340
AX
38513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38514 (exit $ac_status); }; }; then
ea04106b 38515
cae5b340 38516 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
38517$as_echo "yes" >&6; }
38518
cae5b340
AX
38519cat >>confdefs.h <<\_ACEOF
38520#define HAVE_GET_ACL 1
38521_ACEOF
ea04106b
AX
38522
38523
38524else
38525 $as_echo "$as_me: failed program was:" >&5
38526sed 's/^/| /' conftest.$ac_ext >&5
38527
cae5b340 38528 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
38529$as_echo "no" >&6; }
38530
38531
38532
38533fi
cae5b340 38534
ea04106b
AX
38535 rm -Rf build
38536
38537
38538
e10b0808 38539
cae5b340 38540 { $as_echo "$as_me:$LINENO: checking whether iops->set_acl() exists" >&5
68d83c55 38541$as_echo_n "checking whether iops->set_acl() exists... " >&6; }
ea04106b
AX
38542
38543
38544cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38545/* confdefs.h. */
38546_ACEOF
38547cat confdefs.h >>conftest.$ac_ext
38548cat >>conftest.$ac_ext <<_ACEOF
38549/* end confdefs.h. */
ea04106b
AX
38550
38551
ea04106b 38552 #include <linux/fs.h>
4d815aed 38553
68d83c55
AX
38554 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
38555 { return 0; }
4d815aed
AX
38556
38557 static const struct inode_operations
38558 iops __attribute__ ((unused)) = {
68d83c55 38559 .set_acl = set_acl_fn,
4d815aed 38560 };
ea04106b 38561
ea04106b
AX
38562int
38563main (void)
38564{
38565
ea04106b
AX
38566
38567 ;
38568 return 0;
38569}
38570
38571_ACEOF
38572
38573
38574
38575cat - <<_ACEOF >conftest.h
38576
38577_ACEOF
38578
38579
38580 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38581 echo "obj-m := conftest.o" >build/Makefile
38582 modpost_flag=''
38583 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38584 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38586 (eval $ac_try) 2>&5
38587 ac_status=$?
cae5b340
AX
38588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38589 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38591 (eval $ac_try) 2>&5
38592 ac_status=$?
cae5b340
AX
38593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38594 (exit $ac_status); }; }; then
ea04106b 38595
cae5b340 38596 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
38597$as_echo "yes" >&6; }
38598
cae5b340
AX
38599cat >>confdefs.h <<\_ACEOF
38600#define HAVE_SET_ACL 1
38601_ACEOF
e10b0808 38602
ea04106b
AX
38603
38604else
38605 $as_echo "$as_me: failed program was:" >&5
38606sed 's/^/| /' conftest.$ac_ext >&5
38607
cae5b340 38608 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 38609$as_echo "no" >&6; }
ea04106b
AX
38610
38611
38612
38613fi
cae5b340 38614
ea04106b
AX
38615 rm -Rf build
38616
38617
38618
38619
22929307 38620
cae5b340 38621 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a path" >&5
22929307 38622$as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
ea04106b
AX
38623
38624
38625cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38626/* confdefs.h. */
38627_ACEOF
38628cat confdefs.h >>conftest.$ac_ext
38629cat >>conftest.$ac_ext <<_ACEOF
38630/* end confdefs.h. */
ea04106b
AX
38631
38632
38633 #include <linux/fs.h>
e10b0808 38634
22929307
AX
38635 int test_getattr(
38636 const struct path *p, struct kstat *k,
38637 u32 request_mask, unsigned int query_flags)
38638 { return 0; }
38639
38640 static const struct inode_operations
38641 iops __attribute__ ((unused)) = {
38642 .getattr = test_getattr,
38643 };
38644
ea04106b
AX
38645int
38646main (void)
38647{
38648
ea04106b
AX
38649
38650 ;
38651 return 0;
38652}
38653
38654_ACEOF
38655
38656
38657
38658cat - <<_ACEOF >conftest.h
38659
38660_ACEOF
38661
38662
38663 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38664 echo "obj-m := conftest.o" >build/Makefile
38665 modpost_flag=''
38666 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38667 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38669 (eval $ac_try) 2>&5
38670 ac_status=$?
cae5b340
AX
38671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38672 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38674 (eval $ac_try) 2>&5
38675 ac_status=$?
cae5b340
AX
38676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38677 (exit $ac_status); }; }; then
ea04106b 38678
cae5b340 38679 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
38680$as_echo "yes" >&6; }
38681
cae5b340
AX
38682cat >>confdefs.h <<\_ACEOF
38683#define HAVE_PATH_IOPS_GETATTR 1
38684_ACEOF
ea04106b
AX
38685
38686
38687else
38688 $as_echo "$as_me: failed program was:" >&5
38689sed 's/^/| /' conftest.$ac_ext >&5
38690
cae5b340 38691 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
38692$as_echo "no" >&6; }
38693
38694
38695
38696fi
cae5b340 38697
ea04106b
AX
38698 rm -Rf build
38699
38700
38701
e10b0808 38702
cae5b340 38703 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a vfsmount" >&5
22929307 38704$as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
ea04106b
AX
38705
38706
38707cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38708/* confdefs.h. */
38709_ACEOF
38710cat confdefs.h >>conftest.$ac_ext
38711cat >>conftest.$ac_ext <<_ACEOF
38712/* end confdefs.h. */
ea04106b
AX
38713
38714
38715 #include <linux/fs.h>
e10b0808 38716
22929307
AX
38717 int test_getattr(
38718 struct vfsmount *mnt, struct dentry *d,
38719 struct kstat *k)
38720 { return 0; }
38721
38722 static const struct inode_operations
38723 iops __attribute__ ((unused)) = {
38724 .getattr = test_getattr,
e10b0808 38725 };
ea04106b
AX
38726
38727int
38728main (void)
38729{
38730
ea04106b
AX
38731
38732 ;
38733 return 0;
38734}
38735
38736_ACEOF
38737
38738
38739
38740cat - <<_ACEOF >conftest.h
38741
38742_ACEOF
38743
38744
38745 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38746 echo "obj-m := conftest.o" >build/Makefile
38747 modpost_flag=''
38748 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38749 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38751 (eval $ac_try) 2>&5
38752 ac_status=$?
cae5b340
AX
38753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38754 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38756 (eval $ac_try) 2>&5
38757 ac_status=$?
cae5b340
AX
38758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38759 (exit $ac_status); }; }; then
ea04106b 38760
cae5b340 38761 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
38762$as_echo "yes" >&6; }
38763
cae5b340
AX
38764cat >>confdefs.h <<\_ACEOF
38765#define HAVE_VFSMOUNT_IOPS_GETATTR 1
38766_ACEOF
ea04106b
AX
38767
38768
38769else
38770 $as_echo "$as_me: failed program was:" >&5
38771sed 's/^/| /' conftest.$ac_ext >&5
38772
cae5b340 38773 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
38774$as_echo "no" >&6; }
38775
38776
38777
38778fi
cae5b340 38779
ea04106b
AX
38780 rm -Rf build
38781
38782
38783
38784
22929307 38785
cae5b340
AX
38786 { $as_echo "$as_me:$LINENO: checking whether inode_set_flags() exists" >&5
38787$as_echo_n "checking whether inode_set_flags() exists... " >&6; }
38788
38789
38790cat confdefs.h - <<_ACEOF >conftest.c
38791/* confdefs.h. */
38792_ACEOF
38793cat confdefs.h >>conftest.$ac_ext
38794cat >>conftest.$ac_ext <<_ACEOF
38795/* end confdefs.h. */
38796
38797
38798 #include <linux/fs.h>
38799
38800int
38801main (void)
38802{
38803
38804 struct inode inode;
38805 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
38806
38807 ;
38808 return 0;
38809}
38810
38811_ACEOF
38812
38813
38814
38815cat - <<_ACEOF >conftest.h
38816
38817_ACEOF
38818
38819
38820 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38821 echo "obj-m := conftest.o" >build/Makefile
38822 modpost_flag=''
38823 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38824 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38826 (eval $ac_try) 2>&5
38827 ac_status=$?
38828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38829 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38831 (eval $ac_try) 2>&5
38832 ac_status=$?
38833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38834 (exit $ac_status); }; }; then
38835
38836 { $as_echo "$as_me:$LINENO: result: yes" >&5
38837$as_echo "yes" >&6; }
38838
38839cat >>confdefs.h <<\_ACEOF
38840#define HAVE_INODE_SET_FLAGS 1
38841_ACEOF
38842
38843
38844else
38845 $as_echo "$as_me: failed program was:" >&5
38846sed 's/^/| /' conftest.$ac_ext >&5
38847
38848 { $as_echo "$as_me:$LINENO: result: no" >&5
38849$as_echo "no" >&6; }
38850
38851
38852
38853fi
38854
38855 rm -Rf build
38856
38857
38858
38859
38860 { $as_echo "$as_me:$LINENO: checking whether uncached_acl_sentinel() exists" >&5
22929307 38861$as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
ea04106b
AX
38862
38863
38864cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38865/* confdefs.h. */
38866_ACEOF
38867cat confdefs.h >>conftest.$ac_ext
38868cat >>conftest.$ac_ext <<_ACEOF
38869/* end confdefs.h. */
ea04106b
AX
38870
38871
38872 #include <linux/fs.h>
38873
38874int
38875main (void)
38876{
38877
22929307 38878 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
ea04106b
AX
38879
38880 ;
38881 return 0;
38882}
38883
38884_ACEOF
38885
38886
38887
38888cat - <<_ACEOF >conftest.h
38889
38890_ACEOF
38891
38892
38893 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38894 echo "obj-m := conftest.o" >build/Makefile
38895 modpost_flag=''
38896 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38897 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38899 (eval $ac_try) 2>&5
38900 ac_status=$?
cae5b340
AX
38901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38902 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38904 (eval $ac_try) 2>&5
38905 ac_status=$?
cae5b340
AX
38906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38907 (exit $ac_status); }; }; then
ea04106b 38908
cae5b340 38909 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
38910$as_echo "yes" >&6; }
38911
cae5b340
AX
38912cat >>confdefs.h <<\_ACEOF
38913#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1
38914_ACEOF
ea04106b
AX
38915
38916
38917else
38918 $as_echo "$as_me: failed program was:" >&5
38919sed 's/^/| /' conftest.$ac_ext >&5
38920
cae5b340 38921 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
38922$as_echo "no" >&6; }
38923
38924
38925
38926fi
cae5b340 38927
ea04106b
AX
38928 rm -Rf build
38929
38930
38931
38932
cae5b340 38933 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
22929307 38934$as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
4d815aed 38935
ea04106b
AX
38936
38937
38938cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38939/* confdefs.h. */
38940_ACEOF
38941cat confdefs.h >>conftest.$ac_ext
38942cat >>conftest.$ac_ext <<_ACEOF
38943/* end confdefs.h. */
ea04106b
AX
38944
38945
38946 #include <linux/fs.h>
e10b0808 38947
22929307
AX
38948 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
38949 static struct super_operations sops __attribute__ ((unused)) = {
38950 .show_options = show_options,
e10b0808 38951 };
ea04106b
AX
38952
38953int
38954main (void)
38955{
38956
ea04106b
AX
38957
38958 ;
38959 return 0;
38960}
38961
38962_ACEOF
38963
38964
38965
38966cat - <<_ACEOF >conftest.h
38967
38968_ACEOF
38969
38970
38971 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38972 echo "obj-m := conftest.o" >build/Makefile
38973 modpost_flag=''
38974 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38975 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38977 (eval $ac_try) 2>&5
38978 ac_status=$?
cae5b340
AX
38979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38980 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38982 (eval $ac_try) 2>&5
38983 ac_status=$?
cae5b340
AX
38984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38985 (exit $ac_status); }; }; then
ea04106b 38986
cae5b340 38987 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307 38988$as_echo "yes" >&6; }
e10b0808 38989
cae5b340
AX
38990cat >>confdefs.h <<\_ACEOF
38991#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
38992_ACEOF
ea04106b
AX
38993
38994
38995else
38996 $as_echo "$as_me: failed program was:" >&5
38997sed 's/^/| /' conftest.$ac_ext >&5
38998
cae5b340 38999 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 39000$as_echo "no" >&6; }
ea04106b
AX
39001
39002
39003
39004fi
cae5b340 39005
ea04106b
AX
39006 rm -Rf build
39007
39008
39009
39010
cae5b340 39011 { $as_echo "$as_me:$LINENO: checking whether file_inode() is available" >&5
22929307 39012$as_echo_n "checking whether file_inode() is available... " >&6; }
ea04106b
AX
39013
39014
39015cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39016/* confdefs.h. */
39017_ACEOF
39018cat confdefs.h >>conftest.$ac_ext
39019cat >>conftest.$ac_ext <<_ACEOF
39020/* end confdefs.h. */
ea04106b
AX
39021
39022
39023 #include <linux/fs.h>
39024
ea04106b
AX
39025int
39026main (void)
39027{
39028
22929307
AX
39029 struct file *f = NULL;
39030 file_inode(f);
ea04106b
AX
39031
39032 ;
39033 return 0;
39034}
39035
39036_ACEOF
39037
39038
39039
39040cat - <<_ACEOF >conftest.h
39041
39042_ACEOF
39043
39044
39045 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39046 echo "obj-m := conftest.o" >build/Makefile
39047 modpost_flag=''
39048 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39049 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
39050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39051 (eval $ac_try) 2>&5
39052 ac_status=$?
39053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39054 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39056 (eval $ac_try) 2>&5
39057 ac_status=$?
39058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39059 (exit $ac_status); }; }; then
39060
39061 { $as_echo "$as_me:$LINENO: result: yes" >&5
39062$as_echo "yes" >&6; }
39063
39064cat >>confdefs.h <<\_ACEOF
39065#define HAVE_FILE_INODE 1
39066_ACEOF
39067
39068
39069else
39070 $as_echo "$as_me: failed program was:" >&5
39071sed 's/^/| /' conftest.$ac_ext >&5
39072
39073 { $as_echo "$as_me:$LINENO: result: no" >&5
39074$as_echo "no" >&6; }
39075
39076
39077
39078fi
39079
39080 rm -Rf build
39081
39082
39083
39084
39085 { $as_echo "$as_me:$LINENO: checking whether file_dentry() is available" >&5
39086$as_echo_n "checking whether file_dentry() is available... " >&6; }
39087
39088
39089cat confdefs.h - <<_ACEOF >conftest.c
39090/* confdefs.h. */
39091_ACEOF
39092cat confdefs.h >>conftest.$ac_ext
39093cat >>conftest.$ac_ext <<_ACEOF
39094/* end confdefs.h. */
39095
39096
39097 #include <linux/fs.h>
39098
39099int
39100main (void)
39101{
39102
39103 struct file *f = NULL;
39104 file_dentry(f);
39105
39106 ;
39107 return 0;
39108}
39109
39110_ACEOF
39111
39112
39113
39114cat - <<_ACEOF >conftest.h
39115
39116_ACEOF
39117
39118
39119 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39120 echo "obj-m := conftest.o" >build/Makefile
39121 modpost_flag=''
39122 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39123 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39125 (eval $ac_try) 2>&5
39126 ac_status=$?
cae5b340
AX
39127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39128 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39130 (eval $ac_try) 2>&5
39131 ac_status=$?
cae5b340
AX
39132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39133 (exit $ac_status); }; }; then
ea04106b 39134
cae5b340 39135 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307 39136$as_echo "yes" >&6; }
ea04106b 39137
cae5b340
AX
39138cat >>confdefs.h <<\_ACEOF
39139#define HAVE_FILE_DENTRY 1
39140_ACEOF
ea04106b
AX
39141
39142
39143else
39144 $as_echo "$as_me: failed program was:" >&5
39145sed 's/^/| /' conftest.$ac_ext >&5
39146
cae5b340 39147 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 39148$as_echo "no" >&6; }
ea04106b
AX
39149
39150
39151
39152fi
cae5b340 39153
ea04106b
AX
39154 rm -Rf build
39155
39156
39157
39158
cae5b340 39159 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
22929307
AX
39160$as_echo_n "checking whether fops->fsync() wants... " >&6; }
39161
ea04106b
AX
39162
39163
39164cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39165/* confdefs.h. */
39166_ACEOF
39167cat confdefs.h >>conftest.$ac_ext
39168cat >>conftest.$ac_ext <<_ACEOF
39169/* end confdefs.h. */
ea04106b
AX
39170
39171
39172 #include <linux/fs.h>
39173
22929307 39174 int test_fsync(struct file *f, struct dentry *dentry, int x)
4d815aed
AX
39175 { return 0; }
39176
39177 static const struct file_operations
39178 fops __attribute__ ((unused)) = {
39179 .fsync = test_fsync,
39180 };
39181
ea04106b
AX
39182int
39183main (void)
39184{
39185
39186
39187 ;
39188 return 0;
39189}
39190
39191_ACEOF
39192
39193
39194
39195cat - <<_ACEOF >conftest.h
39196
39197_ACEOF
39198
39199
39200 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39201 echo "obj-m := conftest.o" >build/Makefile
39202 modpost_flag=''
39203 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39204 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39206 (eval $ac_try) 2>&5
39207 ac_status=$?
cae5b340
AX
39208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39209 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39211 (eval $ac_try) 2>&5
39212 ac_status=$?
cae5b340
AX
39213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39214 (exit $ac_status); }; }; then
ea04106b 39215
cae5b340 39216 { $as_echo "$as_me:$LINENO: result: dentry" >&5
22929307 39217$as_echo "dentry" >&6; }
ea04106b 39218
cae5b340
AX
39219cat >>confdefs.h <<\_ACEOF
39220#define HAVE_FSYNC_WITH_DENTRY 1
39221_ACEOF
ea04106b
AX
39222
39223
39224else
39225 $as_echo "$as_me: failed program was:" >&5
39226sed 's/^/| /' conftest.$ac_ext >&5
39227
ea04106b
AX
39228
39229
39230
39231fi
cae5b340 39232
ea04106b
AX
39233 rm -Rf build
39234
39235
39236
39237
ea04106b
AX
39238
39239
39240cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39241/* confdefs.h. */
39242_ACEOF
39243cat confdefs.h >>conftest.$ac_ext
39244cat >>conftest.$ac_ext <<_ACEOF
39245/* end confdefs.h. */
ea04106b
AX
39246
39247
39248 #include <linux/fs.h>
39249
22929307 39250 int test_fsync(struct file *f, int x) { return 0; }
4d815aed 39251
22929307
AX
39252 static const struct file_operations
39253 fops __attribute__ ((unused)) = {
39254 .fsync = test_fsync,
4d815aed
AX
39255 };
39256
ea04106b
AX
39257int
39258main (void)
39259{
39260
39261
39262 ;
39263 return 0;
39264}
39265
39266_ACEOF
39267
39268
39269
39270cat - <<_ACEOF >conftest.h
39271
39272_ACEOF
39273
39274
39275 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39276 echo "obj-m := conftest.o" >build/Makefile
39277 modpost_flag=''
39278 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39279 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39281 (eval $ac_try) 2>&5
39282 ac_status=$?
cae5b340
AX
39283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39284 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39286 (eval $ac_try) 2>&5
39287 ac_status=$?
cae5b340
AX
39288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39289 (exit $ac_status); }; }; then
ea04106b 39290
cae5b340 39291 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
22929307 39292$as_echo "no dentry" >&6; }
ea04106b 39293
cae5b340
AX
39294cat >>confdefs.h <<\_ACEOF
39295#define HAVE_FSYNC_WITHOUT_DENTRY 1
39296_ACEOF
ea04106b
AX
39297
39298
39299else
39300 $as_echo "$as_me: failed program was:" >&5
39301sed 's/^/| /' conftest.$ac_ext >&5
39302
ea04106b
AX
39303
39304
39305
39306fi
cae5b340 39307
ea04106b
AX
39308 rm -Rf build
39309
39310
39311
39312
ea04106b
AX
39313
39314
39315cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39316/* confdefs.h. */
39317_ACEOF
39318cat confdefs.h >>conftest.$ac_ext
39319cat >>conftest.$ac_ext <<_ACEOF
39320/* end confdefs.h. */
ea04106b
AX
39321
39322
39323 #include <linux/fs.h>
39324
22929307
AX
39325 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
39326 { return 0; }
ea04106b 39327
22929307
AX
39328 static const struct file_operations
39329 fops __attribute__ ((unused)) = {
39330 .fsync = test_fsync,
ea04106b
AX
39331 };
39332
39333int
39334main (void)
39335{
39336
39337
39338 ;
39339 return 0;
39340}
39341
39342_ACEOF
39343
39344
39345
39346cat - <<_ACEOF >conftest.h
39347
39348_ACEOF
39349
39350
39351 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39352 echo "obj-m := conftest.o" >build/Makefile
39353 modpost_flag=''
39354 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39355 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39357 (eval $ac_try) 2>&5
39358 ac_status=$?
cae5b340
AX
39359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39360 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39362 (eval $ac_try) 2>&5
39363 ac_status=$?
cae5b340
AX
39364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39365 (exit $ac_status); }; }; then
ea04106b 39366
cae5b340 39367 { $as_echo "$as_me:$LINENO: result: range" >&5
22929307 39368$as_echo "range" >&6; }
ea04106b 39369
cae5b340
AX
39370cat >>confdefs.h <<\_ACEOF
39371#define HAVE_FSYNC_RANGE 1
39372_ACEOF
ea04106b
AX
39373
39374
39375else
39376 $as_echo "$as_me: failed program was:" >&5
39377sed 's/^/| /' conftest.$ac_ext >&5
39378
ea04106b
AX
39379
39380
39381
39382fi
cae5b340 39383
ea04106b
AX
39384 rm -Rf build
39385
39386
39387
39388
22929307 39389
cae5b340 39390 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
22929307 39391$as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
ea04106b
AX
39392
39393
39394cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39395/* confdefs.h. */
39396_ACEOF
39397cat confdefs.h >>conftest.$ac_ext
39398cat >>conftest.$ac_ext <<_ACEOF
39399/* end confdefs.h. */
ea04106b
AX
39400
39401
39402 #include <linux/fs.h>
22929307
AX
39403 void evict_inode (struct inode * t) { return; }
39404 static struct super_operations sops __attribute__ ((unused)) = {
39405 .evict_inode = evict_inode,
e10b0808
AX
39406 };
39407
ea04106b
AX
39408int
39409main (void)
39410{
39411
ea04106b
AX
39412
39413 ;
39414 return 0;
39415}
39416
39417_ACEOF
39418
39419
39420
39421cat - <<_ACEOF >conftest.h
39422
39423_ACEOF
39424
39425
39426 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39427 echo "obj-m := conftest.o" >build/Makefile
39428 modpost_flag=''
39429 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39430 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39432 (eval $ac_try) 2>&5
39433 ac_status=$?
cae5b340
AX
39434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39435 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39437 (eval $ac_try) 2>&5
39438 ac_status=$?
cae5b340
AX
39439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39440 (exit $ac_status); }; }; then
ea04106b 39441
cae5b340 39442 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 39443$as_echo "yes" >&6; }
ea04106b 39444
cae5b340
AX
39445cat >>confdefs.h <<\_ACEOF
39446#define HAVE_EVICT_INODE 1
39447_ACEOF
ea04106b
AX
39448
39449
39450else
39451 $as_echo "$as_me: failed program was:" >&5
39452sed 's/^/| /' conftest.$ac_ext >&5
39453
cae5b340 39454 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 39455$as_echo "no" >&6; }
ea04106b
AX
39456
39457
39458
39459fi
cae5b340 39460
ea04106b
AX
39461 rm -Rf build
39462
39463
39464
39465
cae5b340 39466 { $as_echo "$as_me:$LINENO: checking whether sops->dirty_inode() wants flags" >&5
22929307 39467$as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
4d815aed 39468
ea04106b
AX
39469
39470cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39471/* confdefs.h. */
39472_ACEOF
39473cat confdefs.h >>conftest.$ac_ext
39474cat >>conftest.$ac_ext <<_ACEOF
39475/* end confdefs.h. */
ea04106b
AX
39476
39477
39478 #include <linux/fs.h>
39479
22929307 39480 void dirty_inode(struct inode *a, int b) { return; }
e10b0808 39481
22929307
AX
39482 static const struct super_operations
39483 sops __attribute__ ((unused)) = {
39484 .dirty_inode = dirty_inode,
ea04106b
AX
39485 };
39486
39487int
39488main (void)
39489{
39490
39491
39492 ;
39493 return 0;
39494}
39495
39496_ACEOF
39497
39498
39499
39500cat - <<_ACEOF >conftest.h
39501
39502_ACEOF
39503
39504
39505 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39506 echo "obj-m := conftest.o" >build/Makefile
39507 modpost_flag=''
39508 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39509 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39511 (eval $ac_try) 2>&5
39512 ac_status=$?
cae5b340
AX
39513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39514 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
ea04106b 39520
cae5b340 39521 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 39522$as_echo "yes" >&6; }
ea04106b 39523
cae5b340
AX
39524cat >>confdefs.h <<\_ACEOF
39525#define HAVE_DIRTY_INODE_WITH_FLAGS 1
39526_ACEOF
ea04106b
AX
39527
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: no" >&5
4d815aed 39534$as_echo "no" >&6; }
ea04106b
AX
39535
39536
39537
39538fi
cae5b340 39539
ea04106b
AX
39540 rm -Rf build
39541
39542
39543
39544
cae5b340 39545 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
22929307 39546$as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
ea04106b
AX
39547
39548
39549cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39550/* confdefs.h. */
39551_ACEOF
39552cat confdefs.h >>conftest.$ac_ext
39553cat >>conftest.$ac_ext <<_ACEOF
39554/* end confdefs.h. */
ea04106b
AX
39555
39556
39557 #include <linux/fs.h>
4d815aed 39558
22929307 39559 int nr_cached_objects(struct super_block *sb) { return 0; }
4d815aed 39560
22929307
AX
39561 static const struct super_operations
39562 sops __attribute__ ((unused)) = {
39563 .nr_cached_objects = nr_cached_objects,
e10b0808 39564 };
ea04106b
AX
39565
39566int
39567main (void)
39568{
39569
ea04106b
AX
39570
39571 ;
39572 return 0;
39573}
39574
39575_ACEOF
39576
39577
39578
39579cat - <<_ACEOF >conftest.h
39580
39581_ACEOF
39582
39583
39584 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39585 echo "obj-m := conftest.o" >build/Makefile
39586 modpost_flag=''
39587 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39588 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39590 (eval $ac_try) 2>&5
39591 ac_status=$?
cae5b340
AX
39592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39593 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39595 (eval $ac_try) 2>&5
39596 ac_status=$?
cae5b340
AX
39597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39598 (exit $ac_status); }; }; then
ea04106b 39599
cae5b340 39600 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
39601$as_echo "yes" >&6; }
39602
cae5b340
AX
39603cat >>confdefs.h <<\_ACEOF
39604#define HAVE_NR_CACHED_OBJECTS 1
39605_ACEOF
ea04106b
AX
39606
39607
39608else
39609 $as_echo "$as_me: failed program was:" >&5
39610sed 's/^/| /' conftest.$ac_ext >&5
39611
cae5b340 39612 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
39613$as_echo "no" >&6; }
39614
39615
39616
39617fi
cae5b340 39618
ea04106b
AX
39619 rm -Rf build
39620
39621
39622
39623
cae5b340 39624 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
22929307 39625$as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
68d83c55
AX
39626
39627
39628cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39629/* confdefs.h. */
39630_ACEOF
39631cat confdefs.h >>conftest.$ac_ext
39632cat >>conftest.$ac_ext <<_ACEOF
39633/* end confdefs.h. */
68d83c55
AX
39634
39635
39636 #include <linux/fs.h>
39637
22929307
AX
39638 void free_cached_objects(struct super_block *sb, int x)
39639 { return; }
39640
39641 static const struct super_operations
39642 sops __attribute__ ((unused)) = {
39643 .free_cached_objects = free_cached_objects,
68d83c55
AX
39644 };
39645
39646int
39647main (void)
39648{
39649
39650
39651 ;
39652 return 0;
39653}
39654
39655_ACEOF
39656
39657
39658
39659cat - <<_ACEOF >conftest.h
39660
39661_ACEOF
39662
39663
39664 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39665 echo "obj-m := conftest.o" >build/Makefile
39666 modpost_flag=''
39667 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39668 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
39670 (eval $ac_try) 2>&5
39671 ac_status=$?
cae5b340
AX
39672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39673 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
39675 (eval $ac_try) 2>&5
39676 ac_status=$?
cae5b340
AX
39677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39678 (exit $ac_status); }; }; then
68d83c55 39679
cae5b340 39680 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
39681$as_echo "yes" >&6; }
39682
cae5b340
AX
39683cat >>confdefs.h <<\_ACEOF
39684#define HAVE_FREE_CACHED_OBJECTS 1
39685_ACEOF
68d83c55
AX
39686
39687
39688else
39689 $as_echo "$as_me: failed program was:" >&5
39690sed 's/^/| /' conftest.$ac_ext >&5
39691
cae5b340 39692 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
39693$as_echo "no" >&6; }
39694
39695
39696
39697fi
cae5b340 39698
68d83c55
AX
39699 rm -Rf build
39700
39701
39702
39703
22929307 39704
cae5b340 39705 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
22929307 39706$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
ea04106b
AX
39707
39708
39709cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39710/* confdefs.h. */
39711_ACEOF
39712cat confdefs.h >>conftest.$ac_ext
39713cat >>conftest.$ac_ext <<_ACEOF
39714/* end confdefs.h. */
ea04106b
AX
39715
39716
39717 #include <linux/fs.h>
39718
22929307
AX
39719 long test_fallocate(struct file *file, int mode,
39720 loff_t offset, loff_t len) { return 0; }
ea04106b 39721
22929307
AX
39722 static const struct file_operations
39723 fops __attribute__ ((unused)) = {
39724 .fallocate = test_fallocate,
ea04106b
AX
39725 };
39726
39727int
39728main (void)
39729{
39730
39731
39732 ;
39733 return 0;
39734}
39735
39736_ACEOF
39737
39738
39739
39740cat - <<_ACEOF >conftest.h
39741
39742_ACEOF
39743
39744
39745 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39746 echo "obj-m := conftest.o" >build/Makefile
39747 modpost_flag=''
39748 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39749 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39751 (eval $ac_try) 2>&5
39752 ac_status=$?
cae5b340
AX
39753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39754 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39756 (eval $ac_try) 2>&5
39757 ac_status=$?
cae5b340
AX
39758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39759 (exit $ac_status); }; }; then
ea04106b 39760
cae5b340 39761 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 39762$as_echo "yes" >&6; }
ea04106b 39763
cae5b340
AX
39764cat >>confdefs.h <<\_ACEOF
39765#define HAVE_FILE_FALLOCATE 1
39766_ACEOF
ea04106b
AX
39767
39768
39769else
39770 $as_echo "$as_me: failed program was:" >&5
39771sed 's/^/| /' conftest.$ac_ext >&5
39772
cae5b340 39773 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 39774$as_echo "no" >&6; }
ea04106b
AX
39775
39776
39777
39778fi
cae5b340 39779
ea04106b
AX
39780 rm -Rf build
39781
39782
39783
39784
cae5b340 39785 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
22929307 39786$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
ea04106b
AX
39787
39788
39789cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39790/* confdefs.h. */
39791_ACEOF
39792cat confdefs.h >>conftest.$ac_ext
39793cat >>conftest.$ac_ext <<_ACEOF
39794/* end confdefs.h. */
ea04106b
AX
39795
39796
39797 #include <linux/fs.h>
39798
22929307
AX
39799 long test_fallocate(struct inode *inode, int mode,
39800 loff_t offset, loff_t len) { return 0; }
ea04106b 39801
22929307
AX
39802 static const struct inode_operations
39803 fops __attribute__ ((unused)) = {
39804 .fallocate = test_fallocate,
ea04106b
AX
39805 };
39806
39807int
39808main (void)
39809{
39810
39811
39812 ;
39813 return 0;
39814}
39815
39816_ACEOF
39817
39818
39819
39820cat - <<_ACEOF >conftest.h
39821
39822_ACEOF
39823
39824
39825 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39826 echo "obj-m := conftest.o" >build/Makefile
39827 modpost_flag=''
39828 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39829 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39831 (eval $ac_try) 2>&5
39832 ac_status=$?
cae5b340
AX
39833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39834 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39836 (eval $ac_try) 2>&5
39837 ac_status=$?
cae5b340
AX
39838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39839 (exit $ac_status); }; }; then
ea04106b 39840
cae5b340 39841 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 39842$as_echo "yes" >&6; }
ea04106b 39843
cae5b340
AX
39844cat >>confdefs.h <<\_ACEOF
39845#define HAVE_INODE_FALLOCATE 1
39846_ACEOF
ea04106b
AX
39847
39848
39849else
39850 $as_echo "$as_me: failed program was:" >&5
39851sed 's/^/| /' conftest.$ac_ext >&5
39852
cae5b340 39853 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 39854$as_echo "no" >&6; }
ea04106b
AX
39855
39856
39857
39858fi
cae5b340 39859
ea04106b
AX
39860 rm -Rf build
39861
39862
39863
39864
22929307 39865
cae5b340 39866 { $as_echo "$as_me:$LINENO: checking whether fops->aio_fsync() exists" >&5
22929307 39867$as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
ea04106b
AX
39868
39869
39870cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39871/* confdefs.h. */
39872_ACEOF
39873cat confdefs.h >>conftest.$ac_ext
39874cat >>conftest.$ac_ext <<_ACEOF
39875/* end confdefs.h. */
ea04106b
AX
39876
39877
39878 #include <linux/fs.h>
39879
22929307
AX
39880 static const struct file_operations
39881 fops __attribute__ ((unused)) = {
39882 .aio_fsync = NULL,
ea04106b
AX
39883 };
39884
39885int
39886main (void)
39887{
39888
39889
39890 ;
39891 return 0;
39892}
39893
39894_ACEOF
39895
39896
39897
39898cat - <<_ACEOF >conftest.h
39899
39900_ACEOF
39901
39902
39903 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39904 echo "obj-m := conftest.o" >build/Makefile
39905 modpost_flag=''
39906 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39907 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39909 (eval $ac_try) 2>&5
39910 ac_status=$?
cae5b340
AX
39911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39912 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39914 (eval $ac_try) 2>&5
39915 ac_status=$?
cae5b340
AX
39916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39917 (exit $ac_status); }; }; then
ea04106b 39918
cae5b340 39919 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 39920$as_echo "yes" >&6; }
ea04106b 39921
cae5b340
AX
39922cat >>confdefs.h <<\_ACEOF
39923#define HAVE_FILE_AIO_FSYNC 1
39924_ACEOF
ea04106b
AX
39925
39926
39927else
39928 $as_echo "$as_me: failed program was:" >&5
39929sed 's/^/| /' conftest.$ac_ext >&5
39930
cae5b340 39931 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 39932$as_echo "no" >&6; }
ea04106b
AX
39933
39934
39935
39936fi
cae5b340 39937
ea04106b
AX
39938 rm -Rf build
39939
39940
39941
39942
cae5b340 39943 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
22929307 39944$as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
ea04106b
AX
39945
39946
39947cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39948/* confdefs.h. */
39949_ACEOF
39950cat confdefs.h >>conftest.$ac_ext
39951cat >>conftest.$ac_ext <<_ACEOF
39952/* end confdefs.h. */
ea04106b
AX
39953
39954
39955 #include <linux/fs.h>
22929307
AX
39956
39957 int mkdir(struct inode *inode, struct dentry *dentry,
39958 umode_t umode) { return 0; }
39959
39960 static const struct inode_operations
39961 iops __attribute__ ((unused)) = {
39962 .mkdir = mkdir,
ea04106b
AX
39963 };
39964
39965int
39966main (void)
39967{
39968
39969
39970 ;
39971 return 0;
39972}
39973
39974_ACEOF
39975
39976
39977
39978cat - <<_ACEOF >conftest.h
39979
39980_ACEOF
39981
39982
39983 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39984 echo "obj-m := conftest.o" >build/Makefile
39985 modpost_flag=''
39986 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39987 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39989 (eval $ac_try) 2>&5
39990 ac_status=$?
cae5b340
AX
39991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39992 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39994 (eval $ac_try) 2>&5
39995 ac_status=$?
cae5b340
AX
39996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39997 (exit $ac_status); }; }; then
ea04106b 39998
cae5b340 39999 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40000$as_echo "yes" >&6; }
40001
cae5b340
AX
40002cat >>confdefs.h <<\_ACEOF
40003#define HAVE_MKDIR_UMODE_T 1
40004_ACEOF
ea04106b
AX
40005
40006
40007else
40008 $as_echo "$as_me: failed program was:" >&5
40009sed 's/^/| /' conftest.$ac_ext >&5
40010
cae5b340 40011 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 40012$as_echo "no" >&6; }
22929307
AX
40013
40014
40015
40016fi
cae5b340 40017
22929307
AX
40018 rm -Rf build
40019
40020
40021
40022
cae5b340 40023 { $as_echo "$as_me:$LINENO: checking whether iops->lookup() passes nameidata" >&5
22929307 40024$as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
e10b0808 40025
ea04106b
AX
40026
40027cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40028/* confdefs.h. */
40029_ACEOF
40030cat confdefs.h >>conftest.$ac_ext
40031cat >>conftest.$ac_ext <<_ACEOF
40032/* end confdefs.h. */
ea04106b
AX
40033
40034
22929307
AX
40035 #include <linux/fs.h>
40036
40037 struct dentry *inode_lookup(struct inode *inode,
40038 struct dentry *dentry, struct nameidata *nidata)
40039 { return NULL; }
40040
40041 static const struct inode_operations iops
40042 __attribute__ ((unused)) = {
40043 .lookup = inode_lookup,
40044 };
ea04106b
AX
40045
40046int
40047main (void)
40048{
40049
40050
40051 ;
40052 return 0;
40053}
40054
40055_ACEOF
40056
40057
40058
40059cat - <<_ACEOF >conftest.h
40060
40061_ACEOF
40062
40063
40064 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40065 echo "obj-m := conftest.o" >build/Makefile
40066 modpost_flag=''
40067 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40068 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40070 (eval $ac_try) 2>&5
40071 ac_status=$?
cae5b340
AX
40072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40073 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40075 (eval $ac_try) 2>&5
40076 ac_status=$?
cae5b340
AX
40077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40078 (exit $ac_status); }; }; then
ea04106b 40079
cae5b340 40080 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40081$as_echo "yes" >&6; }
40082
cae5b340
AX
40083cat >>confdefs.h <<\_ACEOF
40084#define HAVE_LOOKUP_NAMEIDATA 1
40085_ACEOF
ea04106b
AX
40086
40087
40088else
40089 $as_echo "$as_me: failed program was:" >&5
40090sed 's/^/| /' conftest.$ac_ext >&5
40091
cae5b340 40092 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
40093$as_echo "no" >&6; }
40094
22929307
AX
40095
40096
40097fi
cae5b340 40098
22929307
AX
40099 rm -Rf build
40100
40101
40102
40103
cae5b340 40104 { $as_echo "$as_me:$LINENO: checking whether iops->create() passes nameidata" >&5
22929307 40105$as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
ea04106b
AX
40106
40107
40108cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40109/* confdefs.h. */
40110_ACEOF
40111cat confdefs.h >>conftest.$ac_ext
40112cat >>conftest.$ac_ext <<_ACEOF
40113/* end confdefs.h. */
ea04106b
AX
40114
40115
40116 #include <linux/fs.h>
22929307
AX
40117
40118 #ifdef HAVE_MKDIR_UMODE_T
40119 int inode_create(struct inode *inode ,struct dentry *dentry,
40120 umode_t umode, struct nameidata *nidata) { return 0; }
40121 #else
40122 int inode_create(struct inode *inode,struct dentry *dentry,
40123 int umode, struct nameidata * nidata) { return 0; }
40124 #endif
40125
40126 static const struct inode_operations
e10b0808 40127 iops __attribute__ ((unused)) = {
22929307 40128 .create = inode_create,
ea04106b
AX
40129 };
40130
40131int
40132main (void)
40133{
40134
40135
40136 ;
40137 return 0;
40138}
40139
40140_ACEOF
40141
40142
40143
40144cat - <<_ACEOF >conftest.h
40145
40146_ACEOF
40147
40148
40149 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40150 echo "obj-m := conftest.o" >build/Makefile
40151 modpost_flag=''
40152 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40153 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40155 (eval $ac_try) 2>&5
40156 ac_status=$?
cae5b340
AX
40157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40158 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40160 (eval $ac_try) 2>&5
40161 ac_status=$?
cae5b340
AX
40162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40163 (exit $ac_status); }; }; then
ea04106b 40164
cae5b340 40165 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40166$as_echo "yes" >&6; }
40167
cae5b340
AX
40168cat >>confdefs.h <<\_ACEOF
40169#define HAVE_CREATE_NAMEIDATA 1
40170_ACEOF
ea04106b
AX
40171
40172
40173else
40174 $as_echo "$as_me: failed program was:" >&5
40175sed 's/^/| /' conftest.$ac_ext >&5
40176
cae5b340 40177 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 40178$as_echo "no" >&6; }
22929307
AX
40179
40180
40181
40182fi
cae5b340 40183
22929307
AX
40184 rm -Rf build
40185
40186
40187
40188
cae5b340 40189 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes delayed" >&5
22929307 40190$as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
ea04106b
AX
40191
40192
40193cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40194/* confdefs.h. */
40195_ACEOF
40196cat confdefs.h >>conftest.$ac_ext
40197cat >>conftest.$ac_ext <<_ACEOF
40198/* end confdefs.h. */
ea04106b
AX
40199
40200
40201 #include <linux/fs.h>
22929307
AX
40202 const char *get_link(struct dentry *de, struct inode *ip,
40203 struct delayed_call *done) { return "symlink"; }
40204 static struct inode_operations
40205 iops __attribute__ ((unused)) = {
40206 .get_link = get_link,
40207 };
ea04106b
AX
40208
40209int
40210main (void)
40211{
40212
40213
40214 ;
40215 return 0;
40216}
40217
40218_ACEOF
40219
40220
40221
40222cat - <<_ACEOF >conftest.h
40223
40224_ACEOF
40225
40226
40227 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40228 echo "obj-m := conftest.o" >build/Makefile
40229 modpost_flag=''
40230 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40231 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40233 (eval $ac_try) 2>&5
40234 ac_status=$?
cae5b340
AX
40235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40236 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40238 (eval $ac_try) 2>&5
40239 ac_status=$?
cae5b340
AX
40240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40241 (exit $ac_status); }; }; then
ea04106b 40242
cae5b340 40243 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40244$as_echo "yes" >&6; }
40245
cae5b340
AX
40246cat >>confdefs.h <<\_ACEOF
40247#define HAVE_GET_LINK_DELAYED 1
40248_ACEOF
ea04106b
AX
40249
40250
40251else
40252 $as_echo "$as_me: failed program was:" >&5
40253sed 's/^/| /' conftest.$ac_ext >&5
40254
cae5b340 40255 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 40256$as_echo "no" >&6; }
cae5b340 40257 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes cookie" >&5
22929307 40258$as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
4d815aed
AX
40259
40260
40261cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40262/* confdefs.h. */
40263_ACEOF
40264cat confdefs.h >>conftest.$ac_ext
40265cat >>conftest.$ac_ext <<_ACEOF
40266/* end confdefs.h. */
4d815aed
AX
40267
40268
22929307
AX
40269 #include <linux/fs.h>
40270 const char *get_link(struct dentry *de, struct
40271 inode *ip, void **cookie) { return "symlink"; }
40272 static struct inode_operations
40273 iops __attribute__ ((unused)) = {
40274 .get_link = get_link,
40275 };
ea04106b
AX
40276
40277int
40278main (void)
40279{
40280
40281
40282 ;
40283 return 0;
40284}
40285
40286_ACEOF
40287
40288
40289
40290cat - <<_ACEOF >conftest.h
40291
40292_ACEOF
40293
40294
40295 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40296 echo "obj-m := conftest.o" >build/Makefile
40297 modpost_flag=''
40298 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40299 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40301 (eval $ac_try) 2>&5
40302 ac_status=$?
cae5b340
AX
40303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40304 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40306 (eval $ac_try) 2>&5
40307 ac_status=$?
cae5b340
AX
40308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40309 (exit $ac_status); }; }; then
ea04106b 40310
cae5b340 40311 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307 40312$as_echo "yes" >&6; }
ea04106b 40313
cae5b340
AX
40314cat >>confdefs.h <<\_ACEOF
40315#define HAVE_GET_LINK_COOKIE 1
40316_ACEOF
ea04106b
AX
40317
40318
40319else
40320 $as_echo "$as_me: failed program was:" >&5
40321sed 's/^/| /' conftest.$ac_ext >&5
40322
cae5b340 40323 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
40324$as_echo "no" >&6; }
40325
cae5b340 40326 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes cookie" >&5
22929307 40327$as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
ea04106b
AX
40328
40329
40330cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40331/* confdefs.h. */
40332_ACEOF
40333cat confdefs.h >>conftest.$ac_ext
40334cat >>conftest.$ac_ext <<_ACEOF
40335/* end confdefs.h. */
ea04106b
AX
40336
40337
22929307
AX
40338 #include <linux/fs.h>
40339 const char *follow_link(struct dentry *de,
40340 void **cookie) { return "symlink"; }
40341 static struct inode_operations
40342 iops __attribute__ ((unused)) = {
40343 .follow_link = follow_link,
40344 };
ea04106b
AX
40345
40346int
40347main (void)
40348{
40349
40350
40351 ;
40352 return 0;
40353}
40354
40355_ACEOF
40356
40357
40358
40359cat - <<_ACEOF >conftest.h
40360
40361_ACEOF
40362
40363
40364 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40365 echo "obj-m := conftest.o" >build/Makefile
40366 modpost_flag=''
40367 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40368 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40370 (eval $ac_try) 2>&5
40371 ac_status=$?
cae5b340
AX
40372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40373 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40375 (eval $ac_try) 2>&5
40376 ac_status=$?
cae5b340
AX
40377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40378 (exit $ac_status); }; }; then
ea04106b 40379
cae5b340 40380 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
40381$as_echo "yes" >&6; }
40382
cae5b340
AX
40383cat >>confdefs.h <<\_ACEOF
40384#define HAVE_FOLLOW_LINK_COOKIE 1
40385_ACEOF
68d83c55
AX
40386
40387
40388else
40389 $as_echo "$as_me: failed program was:" >&5
40390sed 's/^/| /' conftest.$ac_ext >&5
40391
cae5b340 40392 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 40393$as_echo "no" >&6; }
cae5b340 40394 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes nameidata" >&5
22929307 40395$as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
68d83c55
AX
40396
40397
40398cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40399/* confdefs.h. */
40400_ACEOF
40401cat confdefs.h >>conftest.$ac_ext
40402cat >>conftest.$ac_ext <<_ACEOF
40403/* end confdefs.h. */
68d83c55
AX
40404
40405
22929307
AX
40406 #include <linux/fs.h>
40407 void *follow_link(struct dentry *de, struct
40408 nameidata *nd) { return (void *)NULL; }
40409 static struct inode_operations
40410 iops __attribute__ ((unused)) = {
40411 .follow_link = follow_link,
40412 };
68d83c55
AX
40413
40414int
40415main (void)
40416{
40417
40418
40419 ;
40420 return 0;
40421}
40422
40423_ACEOF
40424
40425
40426
40427cat - <<_ACEOF >conftest.h
40428
40429_ACEOF
40430
40431
40432 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40433 echo "obj-m := conftest.o" >build/Makefile
40434 modpost_flag=''
40435 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40436 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
40438 (eval $ac_try) 2>&5
40439 ac_status=$?
cae5b340
AX
40440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40441 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
40443 (eval $ac_try) 2>&5
40444 ac_status=$?
cae5b340
AX
40445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40446 (exit $ac_status); }; }; then
68d83c55 40447
cae5b340 40448 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
40449$as_echo "yes" >&6; }
40450
cae5b340
AX
40451cat >>confdefs.h <<\_ACEOF
40452#define HAVE_FOLLOW_LINK_NAMEIDATA 1
40453_ACEOF
68d83c55
AX
40454
40455
40456else
40457 $as_echo "$as_me: failed program was:" >&5
40458sed 's/^/| /' conftest.$ac_ext >&5
40459
cae5b340
AX
40460 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
40461$as_echo "$as_me: error: no; please file a bug report" >&2;}
40462 { (exit 1); exit 1; }; }
68d83c55
AX
40463
40464
40465
40466fi
cae5b340 40467
68d83c55
AX
40468 rm -Rf build
40469
40470
40471
40472
40473
22929307 40474fi
cae5b340 40475
22929307
AX
40476 rm -Rf build
40477
40478
40479
40480
40481
40482
68d83c55 40483fi
cae5b340 40484
68d83c55
AX
40485 rm -Rf build
40486
40487
40488
40489
40490
40491fi
cae5b340 40492
68d83c55
AX
40493 rm -Rf build
40494
40495
40496
40497
68d83c55
AX
40498
40499
40500cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40501/* confdefs.h. */
40502_ACEOF
40503cat confdefs.h >>conftest.$ac_ext
40504cat >>conftest.$ac_ext <<_ACEOF
40505/* end confdefs.h. */
68d83c55
AX
40506
40507
22929307
AX
40508 #if !defined(HAVE_GET_LINK_DELAYED)
40509 #error "Expecting get_link() delayed done"
40510 #endif
68d83c55
AX
40511
40512int
40513main (void)
40514{
40515
40516
40517 ;
40518 return 0;
40519}
40520
40521_ACEOF
40522
40523
40524
40525cat - <<_ACEOF >conftest.h
40526
40527_ACEOF
40528
40529
40530 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40531 echo "obj-m := conftest.o" >build/Makefile
40532 modpost_flag=''
40533 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40534 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
40536 (eval $ac_try) 2>&5
40537 ac_status=$?
cae5b340
AX
40538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40539 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
40541 (eval $ac_try) 2>&5
40542 ac_status=$?
cae5b340
AX
40543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40544 (exit $ac_status); }; }; then
68d83c55 40545
e10b0808 40546
cae5b340
AX
40547cat >>confdefs.h <<\_ACEOF
40548#define HAVE_PUT_LINK_DELAYED 1
40549_ACEOF
ea04106b
AX
40550
40551
4d815aed
AX
40552else
40553 $as_echo "$as_me: failed program was:" >&5
40554sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 40555
cae5b340 40556 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes cookie" >&5
22929307 40557$as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
4d815aed
AX
40558
40559
22929307 40560cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40561/* confdefs.h. */
40562_ACEOF
40563cat confdefs.h >>conftest.$ac_ext
40564cat >>conftest.$ac_ext <<_ACEOF
40565/* end confdefs.h. */
4d815aed 40566
4d815aed 40567
22929307
AX
40568 #include <linux/fs.h>
40569 void put_link(struct inode *ip, void *cookie)
40570 { return; }
40571 static struct inode_operations
40572 iops __attribute__ ((unused)) = {
40573 .put_link = put_link,
40574 };
4d815aed 40575
22929307
AX
40576int
40577main (void)
40578{
4d815aed
AX
40579
40580
22929307
AX
40581 ;
40582 return 0;
40583}
40584
40585_ACEOF
40586
40587
40588
40589cat - <<_ACEOF >conftest.h
40590
40591_ACEOF
40592
40593
40594 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40595 echo "obj-m := conftest.o" >build/Makefile
40596 modpost_flag=''
40597 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40598 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
40600 (eval $ac_try) 2>&5
40601 ac_status=$?
cae5b340
AX
40602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40603 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
40605 (eval $ac_try) 2>&5
40606 ac_status=$?
cae5b340
AX
40607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40608 (exit $ac_status); }; }; then
22929307 40609
cae5b340 40610 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
40611$as_echo "yes" >&6; }
40612
cae5b340
AX
40613cat >>confdefs.h <<\_ACEOF
40614#define HAVE_PUT_LINK_COOKIE 1
40615_ACEOF
22929307
AX
40616
40617
40618else
40619 $as_echo "$as_me: failed program was:" >&5
40620sed 's/^/| /' conftest.$ac_ext >&5
40621
cae5b340 40622 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 40623$as_echo "no" >&6; }
cae5b340 40624 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes nameidata" >&5
22929307 40625$as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
ea04106b
AX
40626
40627
40628cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40629/* confdefs.h. */
40630_ACEOF
40631cat confdefs.h >>conftest.$ac_ext
40632cat >>conftest.$ac_ext <<_ACEOF
40633/* end confdefs.h. */
ea04106b
AX
40634
40635
22929307
AX
40636 #include <linux/fs.h>
40637 void put_link(struct dentry *de, struct
40638 nameidata *nd, void *ptr) { return; }
40639 static struct inode_operations
40640 iops __attribute__ ((unused)) = {
40641 .put_link = put_link,
40642 };
ea04106b
AX
40643
40644int
40645main (void)
40646{
40647
40648
40649 ;
40650 return 0;
40651}
40652
40653_ACEOF
40654
40655
40656
40657cat - <<_ACEOF >conftest.h
40658
40659_ACEOF
40660
40661
40662 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40663 echo "obj-m := conftest.o" >build/Makefile
40664 modpost_flag=''
40665 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40666 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40668 (eval $ac_try) 2>&5
40669 ac_status=$?
cae5b340
AX
40670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40671 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40673 (eval $ac_try) 2>&5
40674 ac_status=$?
cae5b340
AX
40675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40676 (exit $ac_status); }; }; then
ea04106b 40677
cae5b340 40678 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40679$as_echo "yes" >&6; }
40680
cae5b340
AX
40681cat >>confdefs.h <<\_ACEOF
40682#define HAVE_PUT_LINK_NAMEIDATA 1
40683_ACEOF
ea04106b
AX
40684
40685
40686else
40687 $as_echo "$as_me: failed program was:" >&5
40688sed 's/^/| /' conftest.$ac_ext >&5
40689
cae5b340
AX
40690 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
40691$as_echo "$as_me: error: no; please file a bug report" >&2;}
40692 { (exit 1); exit 1; }; }
ea04106b
AX
40693
40694
40695
40696fi
cae5b340 40697
ea04106b
AX
40698 rm -Rf build
40699
40700
40701
40702
22929307
AX
40703
40704fi
cae5b340 40705
22929307
AX
40706 rm -Rf build
40707
40708
40709
40710
40711
40712fi
cae5b340 40713
22929307
AX
40714 rm -Rf build
40715
40716
40717
40718
cae5b340
AX
40719 { $as_echo "$as_me:$LINENO: checking whether i_op->tmpfile() exists" >&5
40720$as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
ea04106b
AX
40721
40722
40723cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40724/* confdefs.h. */
40725_ACEOF
40726cat confdefs.h >>conftest.$ac_ext
40727cat >>conftest.$ac_ext <<_ACEOF
40728/* end confdefs.h. */
ea04106b
AX
40729
40730
22929307 40731 #include <linux/fs.h>
cae5b340
AX
40732 int tmpfile(struct inode *inode, struct dentry *dentry,
40733 umode_t mode) { return 0; }
40734 static struct inode_operations
40735 iops __attribute__ ((unused)) = {
40736 .tmpfile = tmpfile,
ea04106b
AX
40737 };
40738
40739int
40740main (void)
40741{
40742
40743
40744 ;
40745 return 0;
40746}
40747
40748_ACEOF
40749
40750
40751
40752cat - <<_ACEOF >conftest.h
40753
40754_ACEOF
40755
40756
40757 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40758 echo "obj-m := conftest.o" >build/Makefile
40759 modpost_flag=''
40760 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40761 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40763 (eval $ac_try) 2>&5
40764 ac_status=$?
cae5b340
AX
40765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40766 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40768 (eval $ac_try) 2>&5
40769 ac_status=$?
cae5b340
AX
40770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40771 (exit $ac_status); }; }; then
ea04106b 40772
cae5b340 40773 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40774$as_echo "yes" >&6; }
40775
cae5b340
AX
40776cat >>confdefs.h <<\_ACEOF
40777#define HAVE_TMPFILE 1
40778_ACEOF
ea04106b
AX
40779
40780
40781else
40782 $as_echo "$as_me: failed program was:" >&5
40783sed 's/^/| /' conftest.$ac_ext >&5
40784
cae5b340 40785 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
40786$as_echo "no" >&6; }
40787
40788
40789
40790fi
cae5b340 40791
ea04106b
AX
40792 rm -Rf build
40793
40794
40795
40796
cae5b340
AX
40797 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
40798$as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
ea04106b
AX
40799
40800
40801cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40802/* confdefs.h. */
40803_ACEOF
40804cat confdefs.h >>conftest.$ac_ext
40805cat >>conftest.$ac_ext <<_ACEOF
40806/* end confdefs.h. */
ea04106b
AX
40807
40808
cae5b340
AX
40809 #include <linux/fs.h>
40810 void truncate_range(struct inode *inode, loff_t start,
40811 loff_t end) { return; }
40812 static struct inode_operations iops __attribute__ ((unused)) = {
40813 .truncate_range = truncate_range,
ea04106b
AX
40814 };
40815
40816int
40817main (void)
40818{
40819
40820
40821 ;
40822 return 0;
40823}
40824
40825_ACEOF
40826
40827
40828
40829cat - <<_ACEOF >conftest.h
40830
40831_ACEOF
40832
40833
40834 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40835 echo "obj-m := conftest.o" >build/Makefile
40836 modpost_flag=''
40837 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40838 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40840 (eval $ac_try) 2>&5
40841 ac_status=$?
cae5b340
AX
40842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40843 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40845 (eval $ac_try) 2>&5
40846 ac_status=$?
cae5b340
AX
40847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40848 (exit $ac_status); }; }; then
ea04106b 40849
cae5b340 40850 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40851$as_echo "yes" >&6; }
40852
cae5b340
AX
40853cat >>confdefs.h <<\_ACEOF
40854#define HAVE_INODE_TRUNCATE_RANGE 1
40855_ACEOF
ea04106b
AX
40856
40857
40858else
40859 $as_echo "$as_me: failed program was:" >&5
40860sed 's/^/| /' conftest.$ac_ext >&5
40861
cae5b340 40862 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
40863$as_echo "no" >&6; }
40864
40865
40866
40867fi
cae5b340 40868
ea04106b
AX
40869 rm -Rf build
40870
40871
40872
40873
cae5b340
AX
40874 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
40875$as_echo_n "checking whether dops->d_automount() exists... " >&6; }
ea04106b
AX
40876
40877
40878cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40879/* confdefs.h. */
40880_ACEOF
40881cat confdefs.h >>conftest.$ac_ext
40882cat >>conftest.$ac_ext <<_ACEOF
40883/* end confdefs.h. */
ea04106b
AX
40884
40885
cae5b340
AX
40886 #include <linux/dcache.h>
40887 struct vfsmount *d_automount(struct path *p) { return NULL; }
40888 struct dentry_operations dops __attribute__ ((unused)) = {
40889 .d_automount = d_automount,
22929307 40890 };
ea04106b
AX
40891
40892int
40893main (void)
40894{
40895
22929307
AX
40896
40897 ;
40898 return 0;
40899}
40900
40901_ACEOF
40902
40903
40904
40905cat - <<_ACEOF >conftest.h
40906
40907_ACEOF
40908
40909
40910 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40911 echo "obj-m := conftest.o" >build/Makefile
40912 modpost_flag=''
40913 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40914 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
40916 (eval $ac_try) 2>&5
40917 ac_status=$?
cae5b340
AX
40918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40919 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
40921 (eval $ac_try) 2>&5
40922 ac_status=$?
cae5b340
AX
40923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40924 (exit $ac_status); }; }; then
22929307 40925
cae5b340 40926 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
40927$as_echo "yes" >&6; }
40928
cae5b340
AX
40929cat >>confdefs.h <<\_ACEOF
40930#define HAVE_AUTOMOUNT 1
40931_ACEOF
22929307
AX
40932
40933
40934else
40935 $as_echo "$as_me: failed program was:" >&5
40936sed 's/^/| /' conftest.$ac_ext >&5
40937
cae5b340 40938 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
40939$as_echo "no" >&6; }
40940
40941
40942
40943fi
cae5b340 40944
22929307
AX
40945 rm -Rf build
40946
40947
40948
40949
cae5b340
AX
40950 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
40951$as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
22929307
AX
40952
40953
40954cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40955/* confdefs.h. */
40956_ACEOF
40957cat confdefs.h >>conftest.$ac_ext
40958cat >>conftest.$ac_ext <<_ACEOF
40959/* end confdefs.h. */
22929307
AX
40960
40961
40962 #include <linux/exportfs.h>
cae5b340
AX
40963 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
40964 struct inode *parent) { return 0; }
22929307 40965 static struct export_operations eops __attribute__ ((unused))={
cae5b340 40966 .encode_fh = encode_fh,
22929307
AX
40967 };
40968
40969int
40970main (void)
40971{
40972
40973
40974 ;
40975 return 0;
40976}
40977
40978_ACEOF
40979
40980
40981
40982cat - <<_ACEOF >conftest.h
40983
40984_ACEOF
40985
40986
40987 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40988 echo "obj-m := conftest.o" >build/Makefile
40989 modpost_flag=''
40990 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40991 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
40993 (eval $ac_try) 2>&5
40994 ac_status=$?
cae5b340
AX
40995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40996 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
40998 (eval $ac_try) 2>&5
40999 ac_status=$?
cae5b340
AX
41000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41001 (exit $ac_status); }; }; then
22929307 41002
cae5b340 41003 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
41004$as_echo "yes" >&6; }
41005
cae5b340
AX
41006cat >>confdefs.h <<\_ACEOF
41007#define HAVE_ENCODE_FH_WITH_INODE 1
41008_ACEOF
22929307
AX
41009
41010
41011else
41012 $as_echo "$as_me: failed program was:" >&5
41013sed 's/^/| /' conftest.$ac_ext >&5
41014
cae5b340 41015 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
41016$as_echo "no" >&6; }
41017
41018
41019
41020fi
cae5b340 41021
22929307
AX
41022 rm -Rf build
41023
41024
41025
22929307 41026
cae5b340
AX
41027 { $as_echo "$as_me:$LINENO: checking whether eops->commit_metadata() exists" >&5
41028$as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
22929307
AX
41029
41030
41031cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41032/* confdefs.h. */
41033_ACEOF
41034cat confdefs.h >>conftest.$ac_ext
41035cat >>conftest.$ac_ext <<_ACEOF
41036/* end confdefs.h. */
22929307
AX
41037
41038
cae5b340
AX
41039 #include <linux/exportfs.h>
41040 int commit_metadata(struct inode *inode) { return 0; }
41041 static struct export_operations eops __attribute__ ((unused))={
41042 .commit_metadata = commit_metadata,
41043 };
22929307
AX
41044
41045int
41046main (void)
41047{
41048
ea04106b
AX
41049
41050 ;
41051 return 0;
41052}
41053
41054_ACEOF
41055
41056
41057
41058cat - <<_ACEOF >conftest.h
41059
41060_ACEOF
41061
41062
41063 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41064 echo "obj-m := conftest.o" >build/Makefile
41065 modpost_flag=''
41066 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41067 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 41068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41069 (eval $ac_try) 2>&5
41070 ac_status=$?
cae5b340
AX
41071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41072 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41074 (eval $ac_try) 2>&5
41075 ac_status=$?
cae5b340
AX
41076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41077 (exit $ac_status); }; }; then
ea04106b 41078
cae5b340
AX
41079 { $as_echo "$as_me:$LINENO: result: yes" >&5
41080$as_echo "yes" >&6; }
ea04106b 41081
cae5b340
AX
41082cat >>confdefs.h <<\_ACEOF
41083#define HAVE_COMMIT_METADATA 1
41084_ACEOF
ea04106b
AX
41085
41086
cae5b340
AX
41087else
41088 $as_echo "$as_me: failed program was:" >&5
41089sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 41090
cae5b340 41091 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
41092$as_echo "no" >&6; }
41093
41094
ea04106b 41095
cae5b340 41096fi
68d83c55 41097
cae5b340 41098 rm -Rf build
68d83c55
AX
41099
41100
68d83c55 41101
cae5b340
AX
41102 { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
41103$as_echo_n "checking whether clear_inode() is available... " >&6; }
ea04106b 41104
ea04106b
AX
41105
41106
41107cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41108/* confdefs.h. */
41109_ACEOF
41110cat confdefs.h >>conftest.$ac_ext
41111cat >>conftest.$ac_ext <<_ACEOF
41112/* end confdefs.h. */
ea04106b
AX
41113
41114
e10b0808 41115 #include <linux/fs.h>
ea04106b
AX
41116
41117int
41118main (void)
41119{
41120
cae5b340 41121 clear_inode(NULL);
ea04106b
AX
41122
41123 ;
41124 return 0;
41125}
41126
41127_ACEOF
41128
41129
41130
41131cat - <<_ACEOF >conftest.h
41132
41133_ACEOF
41134
41135
41136 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41137 echo "obj-m := conftest.o" >build/Makefile
41138 modpost_flag=''
41139 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41140 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 41141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41142 (eval $ac_try) 2>&5
41143 ac_status=$?
cae5b340
AX
41144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41145 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41147 (eval $ac_try) 2>&5
41148 ac_status=$?
cae5b340
AX
41149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41150 (exit $ac_status); }; }; then
e10b0808
AX
41151 rc=0
41152else
41153 $as_echo "$as_me: failed program was:" >&5
41154sed 's/^/| /' conftest.$ac_ext >&5
41155 rc=1
ea04106b 41156
ea04106b 41157
e10b0808 41158fi
cae5b340 41159
e10b0808 41160 rm -Rf build
ea04106b
AX
41161
41162
e10b0808
AX
41163 if test $rc -ne 0; then :
41164
cae5b340 41165 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
41166$as_echo "no" >&6; }
41167
41168 else
41169 if test "x$enable_linux_builtin" != xyes; then
41170
cae5b340 41171 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
e10b0808
AX
41172 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
41173 rc=$?
41174 if test $rc -ne 0; then
41175 export=0
cae5b340
AX
41176 for file in fs/inode.c; do
41177 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
e10b0808
AX
41178 "$LINUX/$file" 2>/dev/null
41179 rc=$?
41180 if test $rc -eq 0; then
41181 export=1
41182 break;
41183 fi
41184 done
41185 if test $export -eq 0; then :
41186 rc=1
41187 else :
41188 rc=0
41189 fi
41190 else :
41191 rc=0
41192 fi
41193
41194 fi
41195 if test $rc -ne 0; then :
ea04106b 41196
cae5b340 41197 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
41198$as_echo "no" >&6; }
41199
e10b0808
AX
41200 else :
41201
cae5b340 41202 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 41203$as_echo "yes" >&6; }
ea04106b 41204
cae5b340
AX
41205cat >>confdefs.h <<\_ACEOF
41206#define HAVE_CLEAR_INODE 1
41207_ACEOF
ea04106b 41208
ea04106b 41209
e10b0808
AX
41210 fi
41211 fi
ea04106b
AX
41212
41213
cae5b340
AX
41214 { $as_echo "$as_me:$LINENO: checking whether setattr_prepare() is available" >&5
41215$as_echo_n "checking whether setattr_prepare() is available... " >&6; }
ea04106b 41216
ea04106b
AX
41217
41218
41219cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41220/* confdefs.h. */
41221_ACEOF
41222cat confdefs.h >>conftest.$ac_ext
41223cat >>conftest.$ac_ext <<_ACEOF
41224/* end confdefs.h. */
ea04106b
AX
41225
41226
e10b0808 41227 #include <linux/fs.h>
ea04106b
AX
41228
41229int
41230main (void)
41231{
41232
cae5b340
AX
41233 struct dentry *dentry = NULL;
41234 struct iattr *attr = NULL;
41235 int error;
41236
41237 error = setattr_prepare(dentry, attr);
ea04106b
AX
41238
41239 ;
41240 return 0;
41241}
41242
41243_ACEOF
41244
41245
41246
41247cat - <<_ACEOF >conftest.h
41248
41249_ACEOF
41250
41251
41252 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41253 echo "obj-m := conftest.o" >build/Makefile
41254 modpost_flag=''
41255 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41256 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 41257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41258 (eval $ac_try) 2>&5
41259 ac_status=$?
cae5b340
AX
41260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41261 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41263 (eval $ac_try) 2>&5
41264 ac_status=$?
cae5b340
AX
41265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41266 (exit $ac_status); }; }; then
e10b0808
AX
41267 rc=0
41268else
41269 $as_echo "$as_me: failed program was:" >&5
41270sed 's/^/| /' conftest.$ac_ext >&5
41271 rc=1
ea04106b 41272
ea04106b 41273
e10b0808 41274fi
cae5b340 41275
e10b0808 41276 rm -Rf build
ea04106b
AX
41277
41278
e10b0808
AX
41279 if test $rc -ne 0; then :
41280
cae5b340 41281 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
41282$as_echo "no" >&6; }
41283
41284 else
41285 if test "x$enable_linux_builtin" != xyes; then
41286
cae5b340 41287 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
e10b0808
AX
41288 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
41289 rc=$?
41290 if test $rc -ne 0; then
41291 export=0
cae5b340
AX
41292 for file in fs/attr.c; do
41293 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
e10b0808
AX
41294 "$LINUX/$file" 2>/dev/null
41295 rc=$?
41296 if test $rc -eq 0; then
41297 export=1
41298 break;
41299 fi
41300 done
41301 if test $export -eq 0; then :
41302 rc=1
41303 else :
41304 rc=0
41305 fi
41306 else :
41307 rc=0
41308 fi
41309
41310 fi
41311 if test $rc -ne 0; then :
ea04106b 41312
cae5b340 41313 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
41314$as_echo "no" >&6; }
41315
e10b0808
AX
41316 else :
41317
cae5b340 41318 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 41319$as_echo "yes" >&6; }
ea04106b 41320
cae5b340
AX
41321cat >>confdefs.h <<\_ACEOF
41322#define HAVE_SETATTR_PREPARE 1
41323_ACEOF
ea04106b 41324
ea04106b 41325
e10b0808
AX
41326 fi
41327 fi
ea04106b
AX
41328
41329
cae5b340
AX
41330 { $as_echo "$as_me:$LINENO: checking whether insert_inode_locked() is available" >&5
41331$as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
ea04106b
AX
41332
41333
41334
41335cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41336/* confdefs.h. */
41337_ACEOF
41338cat confdefs.h >>conftest.$ac_ext
41339cat >>conftest.$ac_ext <<_ACEOF
41340/* end confdefs.h. */
ea04106b
AX
41341
41342
cae5b340 41343 #include <linux/fs.h>
ea04106b
AX
41344
41345int
41346main (void)
41347{
41348
cae5b340 41349 insert_inode_locked(NULL);
ea04106b
AX
41350
41351 ;
41352 return 0;
41353}
41354
41355_ACEOF
41356
41357
41358
41359cat - <<_ACEOF >conftest.h
41360
41361_ACEOF
41362
41363
41364 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41365 echo "obj-m := conftest.o" >build/Makefile
41366 modpost_flag=''
41367 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41368 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 41369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41370 (eval $ac_try) 2>&5
41371 ac_status=$?
cae5b340
AX
41372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41373 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41375 (eval $ac_try) 2>&5
41376 ac_status=$?
cae5b340
AX
41377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41378 (exit $ac_status); }; }; then
ea04106b
AX
41379 rc=0
41380else
41381 $as_echo "$as_me: failed program was:" >&5
41382sed 's/^/| /' conftest.$ac_ext >&5
41383 rc=1
41384
41385
41386fi
cae5b340 41387
ea04106b
AX
41388 rm -Rf build
41389
41390
41391 if test $rc -ne 0; then :
41392
cae5b340 41393 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
41394$as_echo "no" >&6; }
41395
41396 else
41397 if test "x$enable_linux_builtin" != xyes; then
41398
cae5b340 41399 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
ea04106b
AX
41400 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
41401 rc=$?
41402 if test $rc -ne 0; then
41403 export=0
cae5b340
AX
41404 for file in fs/inode.c; do
41405 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
ea04106b
AX
41406 "$LINUX/$file" 2>/dev/null
41407 rc=$?
41408 if test $rc -eq 0; then
41409 export=1
41410 break;
41411 fi
41412 done
41413 if test $export -eq 0; then :
41414 rc=1
41415 else :
41416 rc=0
41417 fi
41418 else :
41419 rc=0
41420 fi
41421
41422 fi
41423 if test $rc -ne 0; then :
41424
cae5b340 41425 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
41426$as_echo "no" >&6; }
41427
41428 else :
41429
cae5b340 41430 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
41431$as_echo "yes" >&6; }
41432
cae5b340
AX
41433cat >>confdefs.h <<\_ACEOF
41434#define HAVE_INSERT_INODE_LOCKED 1
41435_ACEOF
ea04106b
AX
41436
41437
41438 fi
41439 fi
41440
41441
cae5b340
AX
41442 { $as_echo "$as_me:$LINENO: checking whether d_make_root() is available" >&5
41443$as_echo_n "checking whether d_make_root() is available... " >&6; }
ea04106b
AX
41444
41445
41446
41447cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41448/* confdefs.h. */
41449_ACEOF
41450cat confdefs.h >>conftest.$ac_ext
41451cat >>conftest.$ac_ext <<_ACEOF
41452/* end confdefs.h. */
ea04106b
AX
41453
41454
e10b0808 41455 #include <linux/dcache.h>
ea04106b
AX
41456
41457int
41458main (void)
41459{
41460
cae5b340 41461 d_make_root(NULL);
ea04106b
AX
41462
41463 ;
41464 return 0;
41465}
41466
41467_ACEOF
41468
41469
41470
41471cat - <<_ACEOF >conftest.h
41472
41473_ACEOF
41474
41475
41476 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41477 echo "obj-m := conftest.o" >build/Makefile
41478 modpost_flag=''
41479 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41480 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 41481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41482 (eval $ac_try) 2>&5
41483 ac_status=$?
cae5b340
AX
41484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41485 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41487 (eval $ac_try) 2>&5
41488 ac_status=$?
cae5b340
AX
41489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41490 (exit $ac_status); }; }; then
ea04106b
AX
41491 rc=0
41492else
41493 $as_echo "$as_me: failed program was:" >&5
41494sed 's/^/| /' conftest.$ac_ext >&5
41495 rc=1
41496
41497
41498fi
cae5b340 41499
ea04106b
AX
41500 rm -Rf build
41501
41502
41503 if test $rc -ne 0; then :
41504
cae5b340 41505 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
41506$as_echo "no" >&6; }
41507
41508 else
41509 if test "x$enable_linux_builtin" != xyes; then
41510
cae5b340 41511 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
ea04106b
AX
41512 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
41513 rc=$?
41514 if test $rc -ne 0; then
41515 export=0
e10b0808 41516 for file in fs/dcache.c; do
cae5b340 41517 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
ea04106b
AX
41518 "$LINUX/$file" 2>/dev/null
41519 rc=$?
41520 if test $rc -eq 0; then
41521 export=1
41522 break;
41523 fi
41524 done
41525 if test $export -eq 0; then :
41526 rc=1
41527 else :
41528 rc=0
41529 fi
41530 else :
41531 rc=0
41532 fi
41533
41534 fi
41535 if test $rc -ne 0; then :
41536
cae5b340 41537 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
41538$as_echo "no" >&6; }
41539
41540 else :
41541
cae5b340 41542 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
41543$as_echo "yes" >&6; }
41544
cae5b340
AX
41545cat >>confdefs.h <<\_ACEOF
41546#define HAVE_D_MAKE_ROOT 1
41547_ACEOF
ea04106b
AX
41548
41549
41550 fi
41551 fi
41552
41553
cae5b340
AX
41554 { $as_echo "$as_me:$LINENO: checking whether d_obtain_alias() is available" >&5
41555$as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
ea04106b
AX
41556
41557
41558
41559cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41560/* confdefs.h. */
41561_ACEOF
41562cat confdefs.h >>conftest.$ac_ext
41563cat >>conftest.$ac_ext <<_ACEOF
41564/* end confdefs.h. */
ea04106b
AX
41565
41566
41567 #include <linux/dcache.h>
41568
41569int
41570main (void)
41571{
41572
cae5b340 41573 d_obtain_alias(NULL);
ea04106b
AX
41574
41575 ;
41576 return 0;
41577}
41578
41579_ACEOF
41580
41581
41582
41583cat - <<_ACEOF >conftest.h
41584
41585_ACEOF
41586
41587
41588 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41589 echo "obj-m := conftest.o" >build/Makefile
41590 modpost_flag=''
41591 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41592 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 41593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41594 (eval $ac_try) 2>&5
41595 ac_status=$?
cae5b340
AX
41596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41597 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41599 (eval $ac_try) 2>&5
41600 ac_status=$?
cae5b340
AX
41601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41602 (exit $ac_status); }; }; then
ea04106b
AX
41603 rc=0
41604else
41605 $as_echo "$as_me: failed program was:" >&5
41606sed 's/^/| /' conftest.$ac_ext >&5
41607 rc=1
41608
41609
41610fi
cae5b340 41611
ea04106b
AX
41612 rm -Rf build
41613
41614
41615 if test $rc -ne 0; then :
41616
cae5b340 41617 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
41618$as_echo "no" >&6; }
41619
41620 else
41621 if test "x$enable_linux_builtin" != xyes; then
41622
cae5b340 41623 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
ea04106b
AX
41624 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
41625 rc=$?
41626 if test $rc -ne 0; then
41627 export=0
41628 for file in fs/dcache.c; do
cae5b340 41629 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
ea04106b
AX
41630 "$LINUX/$file" 2>/dev/null
41631 rc=$?
41632 if test $rc -eq 0; then
41633 export=1
41634 break;
41635 fi
41636 done
41637 if test $export -eq 0; then :
41638 rc=1
41639 else :
41640 rc=0
41641 fi
41642 else :
41643 rc=0
41644 fi
41645
41646 fi
41647 if test $rc -ne 0; then :
41648
cae5b340 41649 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
41650$as_echo "no" >&6; }
41651
41652 else :
41653
cae5b340 41654 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
41655$as_echo "yes" >&6; }
41656
cae5b340
AX
41657cat >>confdefs.h <<\_ACEOF
41658#define HAVE_D_OBTAIN_ALIAS 1
41659_ACEOF
ea04106b
AX
41660
41661
41662 fi
41663 fi
41664
41665
cae5b340
AX
41666 { $as_echo "$as_me:$LINENO: checking whether d_prune_aliases() is available" >&5
41667$as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
ea04106b
AX
41668
41669
41670
41671cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41672/* confdefs.h. */
41673_ACEOF
41674cat confdefs.h >>conftest.$ac_ext
41675cat >>conftest.$ac_ext <<_ACEOF
41676/* end confdefs.h. */
ea04106b
AX
41677
41678
41679 #include <linux/dcache.h>
41680
41681int
41682main (void)
41683{
41684
cae5b340
AX
41685 struct inode *ip = NULL;
41686 d_prune_aliases(ip);
ea04106b
AX
41687
41688 ;
41689 return 0;
41690}
41691
41692_ACEOF
41693
41694
41695
41696cat - <<_ACEOF >conftest.h
41697
41698_ACEOF
41699
41700
41701 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41702 echo "obj-m := conftest.o" >build/Makefile
41703 modpost_flag=''
41704 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41705 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 41706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41707 (eval $ac_try) 2>&5
41708 ac_status=$?
cae5b340
AX
41709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41710 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41712 (eval $ac_try) 2>&5
41713 ac_status=$?
cae5b340
AX
41714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41715 (exit $ac_status); }; }; then
ea04106b
AX
41716 rc=0
41717else
41718 $as_echo "$as_me: failed program was:" >&5
41719sed 's/^/| /' conftest.$ac_ext >&5
41720 rc=1
41721
41722
41723fi
cae5b340 41724
ea04106b
AX
41725 rm -Rf build
41726
41727
41728 if test $rc -ne 0; then :
41729
cae5b340 41730 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
41731$as_echo "no" >&6; }
41732
41733 else
41734 if test "x$enable_linux_builtin" != xyes; then
41735
cae5b340 41736 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
ea04106b
AX
41737 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
41738 rc=$?
41739 if test $rc -ne 0; then
41740 export=0
41741 for file in fs/dcache.c; do
cae5b340 41742 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
ea04106b
AX
41743 "$LINUX/$file" 2>/dev/null
41744 rc=$?
41745 if test $rc -eq 0; then
41746 export=1
41747 break;
41748 fi
41749 done
41750 if test $export -eq 0; then :
41751 rc=1
41752 else :
41753 rc=0
41754 fi
41755 else :
41756 rc=0
41757 fi
41758
e10b0808
AX
41759 fi
41760 if test $rc -ne 0; then :
41761
cae5b340 41762 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
41763$as_echo "no" >&6; }
41764
41765 else :
41766
cae5b340 41767 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
41768$as_echo "yes" >&6; }
41769
cae5b340
AX
41770cat >>confdefs.h <<\_ACEOF
41771#define HAVE_D_PRUNE_ALIASES 1
41772_ACEOF
e10b0808
AX
41773
41774
41775 fi
41776 fi
41777
41778
cae5b340
AX
41779 { $as_echo "$as_me:$LINENO: checking whether d_set_d_op() is available" >&5
41780$as_echo_n "checking whether d_set_d_op() is available... " >&6; }
e10b0808 41781
e10b0808
AX
41782
41783
41784cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41785/* confdefs.h. */
41786_ACEOF
41787cat confdefs.h >>conftest.$ac_ext
41788cat >>conftest.$ac_ext <<_ACEOF
41789/* end confdefs.h. */
e10b0808
AX
41790
41791
41792 #include <linux/dcache.h>
41793
e10b0808
AX
41794int
41795main (void)
41796{
41797
cae5b340 41798 d_set_d_op(NULL, NULL);
e10b0808
AX
41799
41800 ;
41801 return 0;
41802}
41803
41804_ACEOF
41805
41806
41807
41808cat - <<_ACEOF >conftest.h
41809
41810_ACEOF
41811
41812
41813 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41814 echo "obj-m := conftest.o" >build/Makefile
41815 modpost_flag=''
41816 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41817 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 41818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
41819 (eval $ac_try) 2>&5
41820 ac_status=$?
cae5b340
AX
41821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41822 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
41824 (eval $ac_try) 2>&5
41825 ac_status=$?
cae5b340
AX
41826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41827 (exit $ac_status); }; }; then
41828 rc=0
41829else
41830 $as_echo "$as_me: failed program was:" >&5
41831sed 's/^/| /' conftest.$ac_ext >&5
41832 rc=1
e10b0808 41833
e10b0808 41834
cae5b340 41835fi
e10b0808 41836
cae5b340 41837 rm -Rf build
e10b0808 41838
e10b0808 41839
cae5b340
AX
41840 if test $rc -ne 0; then :
41841
41842 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
41843$as_echo "no" >&6; }
41844
cae5b340
AX
41845 else
41846 if test "x$enable_linux_builtin" != xyes; then
e10b0808 41847
cae5b340
AX
41848 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
41849 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
41850 rc=$?
41851 if test $rc -ne 0; then
41852 export=0
41853 for file in fs/dcache.c; do
41854 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
41855 "$LINUX/$file" 2>/dev/null
41856 rc=$?
41857 if test $rc -eq 0; then
41858 export=1
41859 break;
41860 fi
41861 done
41862 if test $export -eq 0; then :
41863 rc=1
41864 else :
41865 rc=0
41866 fi
41867 else :
41868 rc=0
41869 fi
e10b0808 41870
cae5b340
AX
41871 fi
41872 if test $rc -ne 0; then :
e10b0808 41873
cae5b340
AX
41874 { $as_echo "$as_me:$LINENO: result: no" >&5
41875$as_echo "no" >&6; }
e10b0808 41876
cae5b340 41877 else :
e10b0808 41878
cae5b340
AX
41879 { $as_echo "$as_me:$LINENO: result: yes" >&5
41880$as_echo "yes" >&6; }
41881
41882cat >>confdefs.h <<\_ACEOF
41883#define HAVE_D_SET_D_OP 1
41884_ACEOF
41885
41886
41887 fi
41888 fi
e10b0808 41889
cae5b340
AX
41890
41891
41892 { $as_echo "$as_me:$LINENO: checking whether dops->d_revalidate() takes struct nameidata" >&5
41893$as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
e10b0808
AX
41894
41895
41896cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41897/* confdefs.h. */
41898_ACEOF
41899cat confdefs.h >>conftest.$ac_ext
41900cat >>conftest.$ac_ext <<_ACEOF
41901/* end confdefs.h. */
e10b0808
AX
41902
41903
41904 #include <linux/dcache.h>
41905
cae5b340
AX
41906 int revalidate (struct dentry *dentry,
41907 struct nameidata *nidata) { return 0; }
41908
41909 static const struct dentry_operations
41910 dops __attribute__ ((unused)) = {
41911 .d_revalidate = revalidate,
e10b0808
AX
41912 };
41913
41914int
41915main (void)
41916{
41917
e10b0808
AX
41918
41919 ;
41920 return 0;
41921}
41922
41923_ACEOF
41924
41925
41926
41927cat - <<_ACEOF >conftest.h
41928
41929_ACEOF
41930
41931
41932 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41933 echo "obj-m := conftest.o" >build/Makefile
41934 modpost_flag=''
41935 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41936 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 41937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
41938 (eval $ac_try) 2>&5
41939 ac_status=$?
cae5b340
AX
41940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41941 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
41943 (eval $ac_try) 2>&5
41944 ac_status=$?
cae5b340
AX
41945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41946 (exit $ac_status); }; }; then
e10b0808 41947
cae5b340 41948 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
41949$as_echo "yes" >&6; }
41950
cae5b340
AX
41951cat >>confdefs.h <<\_ACEOF
41952#define HAVE_D_REVALIDATE_NAMEIDATA 1
41953_ACEOF
e10b0808
AX
41954
41955
41956else
41957 $as_echo "$as_me: failed program was:" >&5
41958sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 41959
cae5b340 41960 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
41961$as_echo "no" >&6; }
41962
ea04106b 41963
ea04106b 41964
e10b0808 41965fi
cae5b340 41966
e10b0808 41967 rm -Rf build
ea04106b 41968
ea04106b
AX
41969
41970
ea04106b 41971
cae5b340
AX
41972 { $as_echo "$as_me:$LINENO: checking whether dentry uses const struct dentry_operations" >&5
41973$as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
ea04106b
AX
41974
41975
41976cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41977/* confdefs.h. */
41978_ACEOF
41979cat confdefs.h >>conftest.$ac_ext
41980cat >>conftest.$ac_ext <<_ACEOF
41981/* end confdefs.h. */
ea04106b
AX
41982
41983
cae5b340
AX
41984 #include <linux/dcache.h>
41985
41986 const struct dentry_operations test_d_op = {
41987 .d_revalidate = NULL,
41988 };
ea04106b
AX
41989
41990int
41991main (void)
41992{
41993
cae5b340
AX
41994 struct dentry d __attribute__ ((unused));
41995
41996 d.d_op = &test_d_op;
ea04106b
AX
41997
41998 ;
41999 return 0;
42000}
42001
42002_ACEOF
42003
42004
42005
42006cat - <<_ACEOF >conftest.h
42007
42008_ACEOF
42009
42010
42011 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42012 echo "obj-m := conftest.o" >build/Makefile
42013 modpost_flag=''
42014 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42015 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42017 (eval $ac_try) 2>&5
42018 ac_status=$?
cae5b340
AX
42019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42020 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42022 (eval $ac_try) 2>&5
42023 ac_status=$?
cae5b340
AX
42024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42025 (exit $ac_status); }; }; then
ea04106b 42026
cae5b340
AX
42027 { $as_echo "$as_me:$LINENO: result: yes" >&5
42028$as_echo "yes" >&6; }
ea04106b 42029
cae5b340
AX
42030cat >>confdefs.h <<\_ACEOF
42031#define HAVE_CONST_DENTRY_OPERATIONS 1
42032_ACEOF
ea04106b 42033
ea04106b 42034
cae5b340
AX
42035else
42036 $as_echo "$as_me: failed program was:" >&5
42037sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 42038
cae5b340 42039 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
42040$as_echo "no" >&6; }
42041
ea04106b 42042
ea04106b 42043
cae5b340 42044fi
ea04106b 42045
cae5b340 42046 rm -Rf build
ea04106b 42047
ea04106b
AX
42048
42049
cae5b340 42050 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
e10b0808 42051$as_echo_n "checking whether truncate_setsize() is available... " >&6; }
ea04106b
AX
42052
42053
42054
42055cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42056/* confdefs.h. */
42057_ACEOF
42058cat confdefs.h >>conftest.$ac_ext
42059cat >>conftest.$ac_ext <<_ACEOF
42060/* end confdefs.h. */
ea04106b
AX
42061
42062
e10b0808 42063 #include <linux/mm.h>
ea04106b
AX
42064
42065int
42066main (void)
42067{
42068
e10b0808 42069 truncate_setsize(NULL, 0);
ea04106b
AX
42070
42071 ;
42072 return 0;
42073}
42074
42075_ACEOF
42076
42077
42078
42079cat - <<_ACEOF >conftest.h
42080
42081_ACEOF
42082
42083
42084 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42085 echo "obj-m := conftest.o" >build/Makefile
42086 modpost_flag=''
42087 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42088 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42090 (eval $ac_try) 2>&5
42091 ac_status=$?
cae5b340
AX
42092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42093 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42095 (eval $ac_try) 2>&5
42096 ac_status=$?
cae5b340
AX
42097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42098 (exit $ac_status); }; }; then
ea04106b
AX
42099 rc=0
42100else
42101 $as_echo "$as_me: failed program was:" >&5
42102sed 's/^/| /' conftest.$ac_ext >&5
42103 rc=1
42104
42105
42106fi
cae5b340 42107
ea04106b
AX
42108 rm -Rf build
42109
42110
42111 if test $rc -ne 0; then :
42112
cae5b340 42113 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
42114$as_echo "no" >&6; }
42115
42116 else
42117 if test "x$enable_linux_builtin" != xyes; then
42118
e10b0808 42119 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
ea04106b
AX
42120 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
42121 rc=$?
42122 if test $rc -ne 0; then
42123 export=0
e10b0808
AX
42124 for file in mm/truncate.c; do
42125 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
ea04106b
AX
42126 "$LINUX/$file" 2>/dev/null
42127 rc=$?
42128 if test $rc -eq 0; then
42129 export=1
42130 break;
42131 fi
42132 done
42133 if test $export -eq 0; then :
42134 rc=1
42135 else :
42136 rc=0
42137 fi
42138 else :
42139 rc=0
42140 fi
42141
42142 fi
42143 if test $rc -ne 0; then :
42144
cae5b340 42145 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
42146$as_echo "no" >&6; }
42147
42148 else :
42149
cae5b340 42150 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
42151$as_echo "yes" >&6; }
42152
cae5b340
AX
42153cat >>confdefs.h <<\_ACEOF
42154#define HAVE_TRUNCATE_SETSIZE 1
42155_ACEOF
ea04106b
AX
42156
42157
42158 fi
42159 fi
42160
42161
42162
cae5b340 42163 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
e10b0808 42164$as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
ea04106b
AX
42165
42166
42167cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42168/* confdefs.h. */
42169_ACEOF
42170cat confdefs.h >>conftest.$ac_ext
42171cat >>conftest.$ac_ext <<_ACEOF
42172/* end confdefs.h. */
ea04106b
AX
42173
42174
e10b0808 42175 #include <linux/security.h>
ea04106b
AX
42176
42177int
42178main (void)
42179{
42180
e10b0808
AX
42181 struct inode *ip __attribute__ ((unused)) = NULL;
42182 struct inode *dip __attribute__ ((unused)) = NULL;
42183 const struct qstr *str __attribute__ ((unused)) = NULL;
42184 char *name __attribute__ ((unused)) = NULL;
42185 void *value __attribute__ ((unused)) = NULL;
42186 size_t len __attribute__ ((unused)) = 0;
42187
42188 security_inode_init_security(ip, dip, str, &name, &value, &len);
ea04106b
AX
42189
42190 ;
42191 return 0;
42192}
42193
42194_ACEOF
42195
42196
42197
42198cat - <<_ACEOF >conftest.h
42199
42200_ACEOF
42201
42202
42203 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42204 echo "obj-m := conftest.o" >build/Makefile
42205 modpost_flag=''
42206 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42207 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42209 (eval $ac_try) 2>&5
42210 ac_status=$?
cae5b340
AX
42211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42212 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42214 (eval $ac_try) 2>&5
42215 ac_status=$?
cae5b340
AX
42216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42217 (exit $ac_status); }; }; then
ea04106b 42218
cae5b340 42219 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
42220$as_echo "yes" >&6; }
42221
cae5b340
AX
42222cat >>confdefs.h <<\_ACEOF
42223#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
42224_ACEOF
ea04106b
AX
42225
42226
42227else
42228 $as_echo "$as_me: failed program was:" >&5
42229sed 's/^/| /' conftest.$ac_ext >&5
42230
cae5b340 42231 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
42232$as_echo "no" >&6; }
42233
42234
42235
42236fi
cae5b340 42237
ea04106b
AX
42238 rm -Rf build
42239
42240
42241
42242
cae5b340 42243 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
e10b0808 42244$as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
ea04106b
AX
42245
42246
42247cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42248/* confdefs.h. */
42249_ACEOF
42250cat confdefs.h >>conftest.$ac_ext
42251cat >>conftest.$ac_ext <<_ACEOF
42252/* end confdefs.h. */
ea04106b
AX
42253
42254
e10b0808 42255 #include <linux/security.h>
ea04106b
AX
42256
42257int
42258main (void)
42259{
42260
e10b0808
AX
42261 struct inode *ip __attribute__ ((unused)) = NULL;
42262 struct inode *dip __attribute__ ((unused)) = NULL;
42263 const struct qstr *str __attribute__ ((unused)) = NULL;
42264 initxattrs func __attribute__ ((unused)) = NULL;
ea04106b 42265
e10b0808 42266 security_inode_init_security(ip, dip, str, func, NULL);
ea04106b
AX
42267
42268 ;
42269 return 0;
42270}
42271
42272_ACEOF
42273
42274
42275
42276cat - <<_ACEOF >conftest.h
42277
42278_ACEOF
42279
42280
42281 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42282 echo "obj-m := conftest.o" >build/Makefile
42283 modpost_flag=''
42284 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42285 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42287 (eval $ac_try) 2>&5
42288 ac_status=$?
cae5b340
AX
42289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42290 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42292 (eval $ac_try) 2>&5
42293 ac_status=$?
cae5b340
AX
42294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42295 (exit $ac_status); }; }; then
ea04106b 42296
cae5b340 42297 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
42298$as_echo "yes" >&6; }
42299
cae5b340
AX
42300cat >>confdefs.h <<\_ACEOF
42301#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
42302_ACEOF
ea04106b
AX
42303
42304
42305else
42306 $as_echo "$as_me: failed program was:" >&5
42307sed 's/^/| /' conftest.$ac_ext >&5
42308
cae5b340 42309 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
42310$as_echo "no" >&6; }
42311
42312
42313
42314fi
cae5b340 42315
ea04106b
AX
42316 rm -Rf build
42317
42318
42319
cae5b340 42320 { $as_echo "$as_me:$LINENO: checking whether mount_nodev() is available" >&5
e10b0808 42321$as_echo_n "checking whether mount_nodev() is available... " >&6; }
ea04106b
AX
42322
42323
42324
42325cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42326/* confdefs.h. */
42327_ACEOF
42328cat confdefs.h >>conftest.$ac_ext
42329cat >>conftest.$ac_ext <<_ACEOF
42330/* end confdefs.h. */
ea04106b
AX
42331
42332
42333 #include <linux/fs.h>
42334
42335int
42336main (void)
42337{
42338
e10b0808 42339 mount_nodev(NULL, 0, NULL, NULL);
ea04106b
AX
42340
42341 ;
42342 return 0;
42343}
42344
42345_ACEOF
42346
42347
42348
42349cat - <<_ACEOF >conftest.h
42350
42351_ACEOF
42352
42353
42354 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42355 echo "obj-m := conftest.o" >build/Makefile
42356 modpost_flag=''
42357 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42358 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42360 (eval $ac_try) 2>&5
42361 ac_status=$?
cae5b340
AX
42362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42363 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42365 (eval $ac_try) 2>&5
42366 ac_status=$?
cae5b340
AX
42367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42368 (exit $ac_status); }; }; then
ea04106b
AX
42369 rc=0
42370else
42371 $as_echo "$as_me: failed program was:" >&5
42372sed 's/^/| /' conftest.$ac_ext >&5
42373 rc=1
42374
42375
42376fi
cae5b340 42377
ea04106b
AX
42378 rm -Rf build
42379
42380
42381 if test $rc -ne 0; then :
42382
cae5b340 42383 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
42384$as_echo "no" >&6; }
42385
42386 else
42387 if test "x$enable_linux_builtin" != xyes; then
42388
e10b0808 42389 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
ea04106b
AX
42390 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
42391 rc=$?
42392 if test $rc -ne 0; then
42393 export=0
e10b0808
AX
42394 for file in fs/super.c; do
42395 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
ea04106b
AX
42396 "$LINUX/$file" 2>/dev/null
42397 rc=$?
42398 if test $rc -eq 0; then
42399 export=1
42400 break;
42401 fi
42402 done
42403 if test $export -eq 0; then :
42404 rc=1
42405 else :
42406 rc=0
42407 fi
42408 else :
42409 rc=0
42410 fi
42411
42412 fi
42413 if test $rc -ne 0; then :
42414
cae5b340 42415 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
42416$as_echo "no" >&6; }
42417
42418 else :
42419
cae5b340 42420 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
42421$as_echo "yes" >&6; }
42422
cae5b340
AX
42423cat >>confdefs.h <<\_ACEOF
42424#define HAVE_MOUNT_NODEV 1
42425_ACEOF
ea04106b
AX
42426
42427
42428 fi
42429 fi
42430
42431
ea04106b 42432
cae5b340 42433 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
e10b0808 42434$as_echo_n "checking whether super_block has s_shrink... " >&6; }
ea04106b
AX
42435
42436
42437cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42438/* confdefs.h. */
42439_ACEOF
42440cat confdefs.h >>conftest.$ac_ext
42441cat >>conftest.$ac_ext <<_ACEOF
42442/* end confdefs.h. */
ea04106b
AX
42443
42444
e10b0808
AX
42445 #include <linux/fs.h>
42446
42447 int shrink(struct shrinker *s, struct shrink_control *sc)
42448 { return 0; }
42449
42450 static const struct super_block
42451 sb __attribute__ ((unused)) = {
42452 .s_shrink.shrink = shrink,
42453 .s_shrink.seeks = DEFAULT_SEEKS,
42454 .s_shrink.batch = 0,
42455 };
42456
42457int
42458main (void)
42459{
42460
42461
42462 ;
42463 return 0;
42464}
42465
42466_ACEOF
42467
42468
42469
42470cat - <<_ACEOF >conftest.h
42471
42472_ACEOF
42473
42474
42475 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42476 echo "obj-m := conftest.o" >build/Makefile
42477 modpost_flag=''
42478 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42479 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
42481 (eval $ac_try) 2>&5
42482 ac_status=$?
cae5b340
AX
42483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42484 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
42486 (eval $ac_try) 2>&5
42487 ac_status=$?
cae5b340
AX
42488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42489 (exit $ac_status); }; }; then
e10b0808 42490
cae5b340 42491 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
42492$as_echo "yes" >&6; }
42493
cae5b340
AX
42494cat >>confdefs.h <<\_ACEOF
42495#define HAVE_SHRINK 1
42496_ACEOF
e10b0808
AX
42497
42498
42499
42500else
42501 $as_echo "$as_me: failed program was:" >&5
42502sed 's/^/| /' conftest.$ac_ext >&5
42503
cae5b340 42504 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
42505$as_echo "no" >&6; }
42506
42507
42508
42509fi
cae5b340 42510
e10b0808
AX
42511 rm -Rf build
42512
42513
42514
42515
cae5b340 42516 { $as_echo "$as_me:$LINENO: checking whether shrink_control has nid" >&5
e10b0808
AX
42517$as_echo_n "checking whether shrink_control has nid... " >&6; }
42518
42519
42520cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42521/* confdefs.h. */
42522_ACEOF
42523cat confdefs.h >>conftest.$ac_ext
42524cat >>conftest.$ac_ext <<_ACEOF
42525/* end confdefs.h. */
e10b0808
AX
42526
42527
42528 #include <linux/fs.h>
42529
42530int
42531main (void)
42532{
42533
42534 struct shrink_control sc __attribute__ ((unused));
42535 unsigned long scnidsize __attribute__ ((unused)) =
42536 sizeof(sc.nid);
42537
42538 ;
42539 return 0;
42540}
42541
42542_ACEOF
42543
42544
42545
42546cat - <<_ACEOF >conftest.h
42547
42548_ACEOF
42549
42550
42551 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42552 echo "obj-m := conftest.o" >build/Makefile
42553 modpost_flag=''
42554 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42555 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
42557 (eval $ac_try) 2>&5
42558 ac_status=$?
cae5b340
AX
42559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42560 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
42562 (eval $ac_try) 2>&5
42563 ac_status=$?
cae5b340
AX
42564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42565 (exit $ac_status); }; }; then
e10b0808 42566
cae5b340 42567 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
42568$as_echo "yes" >&6; }
42569
cae5b340
AX
42570cat >>confdefs.h <<\_ACEOF
42571#define SHRINK_CONTROL_HAS_NID 1
42572_ACEOF
e10b0808
AX
42573
42574
42575else
42576 $as_echo "$as_me: failed program was:" >&5
42577sed 's/^/| /' conftest.$ac_ext >&5
42578
cae5b340 42579 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
42580$as_echo "no" >&6; }
42581
42582
42583
42584fi
cae5b340 42585
e10b0808
AX
42586 rm -Rf build
42587
42588
42589
42590
cae5b340 42591 { $as_echo "$as_me:$LINENO: checking whether super_block has s_instances list_head" >&5
e10b0808
AX
42592$as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
42593
42594
42595cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42596/* confdefs.h. */
42597_ACEOF
42598cat confdefs.h >>conftest.$ac_ext
42599cat >>conftest.$ac_ext <<_ACEOF
42600/* end confdefs.h. */
e10b0808
AX
42601
42602
42603 #include <linux/fs.h>
ea04106b
AX
42604
42605int
42606main (void)
42607{
42608
e10b0808
AX
42609 struct super_block sb __attribute__ ((unused));
42610
42611 INIT_LIST_HEAD(&sb.s_instances);
ea04106b
AX
42612
42613 ;
42614 return 0;
42615}
42616
42617_ACEOF
42618
42619
42620
42621cat - <<_ACEOF >conftest.h
42622
42623_ACEOF
42624
42625
42626 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42627 echo "obj-m := conftest.o" >build/Makefile
42628 modpost_flag=''
42629 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42630 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42632 (eval $ac_try) 2>&5
42633 ac_status=$?
cae5b340
AX
42634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42635 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42637 (eval $ac_try) 2>&5
42638 ac_status=$?
cae5b340
AX
42639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42640 (exit $ac_status); }; }; then
ea04106b 42641
cae5b340 42642 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 42643$as_echo "yes" >&6; }
ea04106b 42644
cae5b340
AX
42645cat >>confdefs.h <<\_ACEOF
42646#define HAVE_S_INSTANCES_LIST_HEAD 1
42647_ACEOF
ea04106b 42648
ea04106b 42649
e10b0808
AX
42650else
42651 $as_echo "$as_me: failed program was:" >&5
42652sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 42653
cae5b340 42654 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
42655$as_echo "no" >&6; }
42656
ea04106b
AX
42657
42658
e10b0808 42659fi
cae5b340 42660
e10b0808 42661 rm -Rf build
ea04106b
AX
42662
42663
42664
cae5b340 42665 { $as_echo "$as_me:$LINENO: checking whether super_block has s_d_op" >&5
e10b0808 42666$as_echo_n "checking whether super_block has s_d_op... " >&6; }
ea04106b
AX
42667
42668
42669cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42670/* confdefs.h. */
42671_ACEOF
42672cat confdefs.h >>conftest.$ac_ext
42673cat >>conftest.$ac_ext <<_ACEOF
42674/* end confdefs.h. */
ea04106b
AX
42675
42676
e10b0808 42677 #include <linux/fs.h>
ea04106b
AX
42678
42679int
42680main (void)
42681{
42682
e10b0808
AX
42683 struct super_block sb __attribute__ ((unused));
42684 sb.s_d_op = NULL;
ea04106b
AX
42685
42686 ;
42687 return 0;
42688}
42689
42690_ACEOF
42691
42692
42693
42694cat - <<_ACEOF >conftest.h
42695
42696_ACEOF
42697
42698
42699 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42700 echo "obj-m := conftest.o" >build/Makefile
42701 modpost_flag=''
42702 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42703 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42705 (eval $ac_try) 2>&5
42706 ac_status=$?
cae5b340
AX
42707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42708 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42710 (eval $ac_try) 2>&5
42711 ac_status=$?
cae5b340
AX
42712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42713 (exit $ac_status); }; }; then
ea04106b 42714
cae5b340 42715 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
42716$as_echo "yes" >&6; }
42717
cae5b340
AX
42718cat >>confdefs.h <<\_ACEOF
42719#define HAVE_S_D_OP 1
42720_ACEOF
ea04106b
AX
42721
42722
42723else
42724 $as_echo "$as_me: failed program was:" >&5
42725sed 's/^/| /' conftest.$ac_ext >&5
42726
cae5b340 42727 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
42728$as_echo "no" >&6; }
42729
42730
42731
42732fi
cae5b340 42733
ea04106b
AX
42734 rm -Rf build
42735
42736
42737
42738
cae5b340 42739 { $as_echo "$as_me:$LINENO: checking whether super_setup_bdi_name() exists" >&5
22929307 42740$as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
e10b0808 42741
ea04106b
AX
42742
42743
42744cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42745/* confdefs.h. */
42746_ACEOF
42747cat confdefs.h >>conftest.$ac_ext
42748cat >>conftest.$ac_ext <<_ACEOF
42749/* end confdefs.h. */
ea04106b
AX
42750
42751
22929307
AX
42752 #include <linux/fs.h>
42753 struct super_block sb;
ea04106b
AX
42754
42755int
42756main (void)
42757{
42758
e10b0808 42759 char *name = "bdi";
cae5b340 42760 atomic_long_t zfs_bdi_seq;
e10b0808 42761 int error __attribute__((unused)) =
cae5b340 42762 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
ea04106b
AX
42763
42764 ;
42765 return 0;
42766}
42767
42768_ACEOF
42769
42770
42771
42772cat - <<_ACEOF >conftest.h
42773
42774_ACEOF
42775
42776
42777 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42778 echo "obj-m := conftest.o" >build/Makefile
42779 modpost_flag=''
42780 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42781 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42783 (eval $ac_try) 2>&5
42784 ac_status=$?
cae5b340
AX
42785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42786 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42788 (eval $ac_try) 2>&5
42789 ac_status=$?
cae5b340
AX
42790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42791 (exit $ac_status); }; }; then
e10b0808 42792 rc=0
ea04106b
AX
42793else
42794 $as_echo "$as_me: failed program was:" >&5
42795sed 's/^/| /' conftest.$ac_ext >&5
e10b0808 42796 rc=1
ea04106b
AX
42797
42798
42799fi
cae5b340 42800
ea04106b
AX
42801 rm -Rf build
42802
42803
e10b0808 42804 if test $rc -ne 0; then :
ea04106b 42805
cae5b340 42806 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 42807$as_echo "no" >&6; }
cae5b340 42808 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
22929307 42809$as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
ea04106b
AX
42810
42811
42812
42813cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42814/* confdefs.h. */
42815_ACEOF
42816cat confdefs.h >>conftest.$ac_ext
42817cat >>conftest.$ac_ext <<_ACEOF
42818/* end confdefs.h. */
ea04106b
AX
42819
42820
e10b0808
AX
42821 #include <linux/backing-dev.h>
42822 struct backing_dev_info bdi;
ea04106b
AX
42823
42824int
42825main (void)
42826{
42827
e10b0808 42828 char *name = "bdi";
e10b0808 42829 int error __attribute__((unused)) =
22929307 42830 bdi_setup_and_register(&bdi, name);
ea04106b
AX
42831
42832 ;
42833 return 0;
42834}
42835
42836_ACEOF
42837
42838
42839
42840cat - <<_ACEOF >conftest.h
42841
42842_ACEOF
42843
42844
42845 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42846 echo "obj-m := conftest.o" >build/Makefile
42847 modpost_flag=''
42848 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42849 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42851 (eval $ac_try) 2>&5
42852 ac_status=$?
cae5b340
AX
42853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42854 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42856 (eval $ac_try) 2>&5
42857 ac_status=$?
cae5b340
AX
42858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42859 (exit $ac_status); }; }; then
ea04106b
AX
42860 rc=0
42861else
42862 $as_echo "$as_me: failed program was:" >&5
42863sed 's/^/| /' conftest.$ac_ext >&5
42864 rc=1
42865
42866
42867fi
cae5b340 42868
ea04106b
AX
42869 rm -Rf build
42870
42871
42872 if test $rc -ne 0; then :
42873
cae5b340 42874 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 42875$as_echo "no" >&6; }
cae5b340 42876 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
e10b0808 42877$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
ea04106b
AX
42878
42879
ea04106b 42880
e10b0808 42881cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42882/* confdefs.h. */
42883_ACEOF
42884cat confdefs.h >>conftest.$ac_ext
42885cat >>conftest.$ac_ext <<_ACEOF
42886/* end confdefs.h. */
ea04106b 42887
e10b0808 42888
22929307
AX
42889 #include <linux/backing-dev.h>
42890 struct backing_dev_info bdi;
ea04106b
AX
42891
42892int
42893main (void)
42894{
42895
22929307
AX
42896 char *name = "bdi";
42897 unsigned int cap = BDI_CAP_MAP_COPY;
42898 int error __attribute__((unused)) =
42899 bdi_setup_and_register(&bdi, name, cap);
ea04106b
AX
42900
42901 ;
42902 return 0;
42903}
42904
42905_ACEOF
42906
42907
42908
42909cat - <<_ACEOF >conftest.h
42910
42911_ACEOF
42912
42913
42914 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42915 echo "obj-m := conftest.o" >build/Makefile
42916 modpost_flag=''
42917 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42918 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42920 (eval $ac_try) 2>&5
42921 ac_status=$?
cae5b340
AX
42922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42923 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42925 (eval $ac_try) 2>&5
42926 ac_status=$?
cae5b340
AX
42927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42928 (exit $ac_status); }; }; then
e10b0808 42929 rc=0
ea04106b
AX
42930else
42931 $as_echo "$as_me: failed program was:" >&5
42932sed 's/^/| /' conftest.$ac_ext >&5
e10b0808 42933 rc=1
ea04106b
AX
42934
42935
42936fi
cae5b340 42937
ea04106b
AX
42938 rm -Rf build
42939
42940
e10b0808 42941 if test $rc -ne 0; then :
ea04106b 42942
cae5b340 42943 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 42944$as_echo "no" >&6; }
ea04106b 42945
e10b0808
AX
42946 else
42947 if test "x$enable_linux_builtin" != xyes; then
ea04106b 42948
e10b0808
AX
42949 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
42950 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
42951 rc=$?
42952 if test $rc -ne 0; then
42953 export=0
42954 for file in mm/backing-dev.c; do
42955 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
42956 "$LINUX/$file" 2>/dev/null
42957 rc=$?
42958 if test $rc -eq 0; then
42959 export=1
42960 break;
42961 fi
42962 done
42963 if test $export -eq 0; then :
42964 rc=1
42965 else :
42966 rc=0
42967 fi
42968 else :
42969 rc=0
42970 fi
ea04106b 42971
e10b0808
AX
42972 fi
42973 if test $rc -ne 0; then :
ea04106b 42974
cae5b340 42975 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 42976$as_echo "no" >&6; }
ea04106b 42977
e10b0808 42978 else :
ea04106b 42979
cae5b340 42980 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
42981$as_echo "yes" >&6; }
42982
cae5b340
AX
42983cat >>confdefs.h <<\_ACEOF
42984#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
42985_ACEOF
ea04106b
AX
42986
42987
e10b0808
AX
42988 fi
42989 fi
ea04106b 42990
ea04106b 42991
22929307
AX
42992 else
42993 if test "x$enable_linux_builtin" != xyes; then
ea04106b 42994
22929307
AX
42995 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
42996 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
42997 rc=$?
42998 if test $rc -ne 0; then
42999 export=0
43000 for file in mm/backing-dev.c; do
43001 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
43002 "$LINUX/$file" 2>/dev/null
43003 rc=$?
43004 if test $rc -eq 0; then
43005 export=1
43006 break;
43007 fi
43008 done
43009 if test $export -eq 0; then :
43010 rc=1
43011 else :
43012 rc=0
e10b0808 43013 fi
22929307
AX
43014 else :
43015 rc=0
e10b0808 43016 fi
ea04106b 43017
22929307
AX
43018 fi
43019 if test $rc -ne 0; then :
ea04106b 43020
cae5b340 43021 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 43022$as_echo "no" >&6; }
cae5b340 43023 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
22929307 43024$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
e10b0808 43025
ea04106b
AX
43026
43027
43028cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43029/* confdefs.h. */
43030_ACEOF
43031cat confdefs.h >>conftest.$ac_ext
43032cat >>conftest.$ac_ext <<_ACEOF
43033/* end confdefs.h. */
ea04106b
AX
43034
43035
22929307
AX
43036 #include <linux/backing-dev.h>
43037 struct backing_dev_info bdi;
ea04106b
AX
43038
43039int
43040main (void)
43041{
43042
22929307
AX
43043 char *name = "bdi";
43044 unsigned int cap = BDI_CAP_MAP_COPY;
43045 int error __attribute__((unused)) =
43046 bdi_setup_and_register(&bdi, name, cap);
43047
43048 ;
43049 return 0;
43050}
43051
43052_ACEOF
43053
43054
43055
43056cat - <<_ACEOF >conftest.h
43057
43058_ACEOF
43059
43060
43061 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43062 echo "obj-m := conftest.o" >build/Makefile
43063 modpost_flag=''
43064 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43065 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 43066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
43067 (eval $ac_try) 2>&5
43068 ac_status=$?
cae5b340
AX
43069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43070 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
43072 (eval $ac_try) 2>&5
43073 ac_status=$?
cae5b340
AX
43074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43075 (exit $ac_status); }; }; then
22929307
AX
43076 rc=0
43077else
43078 $as_echo "$as_me: failed program was:" >&5
43079sed 's/^/| /' conftest.$ac_ext >&5
43080 rc=1
43081
43082
43083fi
cae5b340 43084
22929307
AX
43085 rm -Rf build
43086
43087
43088 if test $rc -ne 0; then :
43089
cae5b340 43090 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
43091$as_echo "no" >&6; }
43092
43093 else
43094 if test "x$enable_linux_builtin" != xyes; then
43095
43096 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
43097 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43098 rc=$?
43099 if test $rc -ne 0; then
43100 export=0
43101 for file in mm/backing-dev.c; do
43102 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
43103 "$LINUX/$file" 2>/dev/null
43104 rc=$?
43105 if test $rc -eq 0; then
43106 export=1
43107 break;
43108 fi
43109 done
43110 if test $export -eq 0; then :
43111 rc=1
43112 else :
43113 rc=0
43114 fi
43115 else :
43116 rc=0
43117 fi
43118
43119 fi
43120 if test $rc -ne 0; then :
43121
cae5b340 43122 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
43123$as_echo "no" >&6; }
43124
43125 else :
43126
cae5b340 43127 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
43128$as_echo "yes" >&6; }
43129
cae5b340
AX
43130cat >>confdefs.h <<\_ACEOF
43131#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
43132_ACEOF
22929307
AX
43133
43134
43135 fi
43136 fi
43137
43138
43139 else :
43140
cae5b340 43141 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
43142$as_echo "yes" >&6; }
43143
cae5b340
AX
43144cat >>confdefs.h <<\_ACEOF
43145#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
43146_ACEOF
22929307
AX
43147
43148
43149 fi
43150 fi
43151
43152
43153 else
43154 if test "x$enable_linux_builtin" != xyes; then
43155
43156 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
43157 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43158 rc=$?
43159 if test $rc -ne 0; then
43160 export=0
43161 for file in fs/super.c; do
43162 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
43163 "$LINUX/$file" 2>/dev/null
43164 rc=$?
43165 if test $rc -eq 0; then
43166 export=1
43167 break;
43168 fi
43169 done
43170 if test $export -eq 0; then :
43171 rc=1
43172 else :
43173 rc=0
43174 fi
43175 else :
43176 rc=0
43177 fi
43178
43179 fi
43180 if test $rc -ne 0; then :
43181
cae5b340 43182 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 43183$as_echo "no" >&6; }
cae5b340 43184 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
22929307
AX
43185$as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
43186
43187
43188
43189cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43190/* confdefs.h. */
43191_ACEOF
43192cat confdefs.h >>conftest.$ac_ext
43193cat >>conftest.$ac_ext <<_ACEOF
43194/* end confdefs.h. */
22929307
AX
43195
43196
43197 #include <linux/backing-dev.h>
43198 struct backing_dev_info bdi;
43199
43200int
43201main (void)
43202{
43203
43204 char *name = "bdi";
43205 int error __attribute__((unused)) =
43206 bdi_setup_and_register(&bdi, name);
43207
43208 ;
43209 return 0;
43210}
43211
43212_ACEOF
43213
43214
43215
43216cat - <<_ACEOF >conftest.h
43217
43218_ACEOF
43219
43220
43221 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43222 echo "obj-m := conftest.o" >build/Makefile
43223 modpost_flag=''
43224 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43225 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 43226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
43227 (eval $ac_try) 2>&5
43228 ac_status=$?
cae5b340
AX
43229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43230 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
43232 (eval $ac_try) 2>&5
43233 ac_status=$?
cae5b340
AX
43234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43235 (exit $ac_status); }; }; then
22929307
AX
43236 rc=0
43237else
43238 $as_echo "$as_me: failed program was:" >&5
43239sed 's/^/| /' conftest.$ac_ext >&5
43240 rc=1
43241
43242
43243fi
cae5b340 43244
22929307
AX
43245 rm -Rf build
43246
43247
43248 if test $rc -ne 0; then :
43249
cae5b340 43250 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 43251$as_echo "no" >&6; }
cae5b340 43252 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
22929307
AX
43253$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
43254
43255
43256
43257cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43258/* confdefs.h. */
43259_ACEOF
43260cat confdefs.h >>conftest.$ac_ext
43261cat >>conftest.$ac_ext <<_ACEOF
43262/* end confdefs.h. */
22929307
AX
43263
43264
43265 #include <linux/backing-dev.h>
43266 struct backing_dev_info bdi;
43267
43268int
43269main (void)
43270{
43271
43272 char *name = "bdi";
43273 unsigned int cap = BDI_CAP_MAP_COPY;
43274 int error __attribute__((unused)) =
43275 bdi_setup_and_register(&bdi, name, cap);
43276
43277 ;
43278 return 0;
43279}
43280
43281_ACEOF
43282
43283
43284
43285cat - <<_ACEOF >conftest.h
43286
43287_ACEOF
43288
43289
43290 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43291 echo "obj-m := conftest.o" >build/Makefile
43292 modpost_flag=''
43293 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43294 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 43295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
43296 (eval $ac_try) 2>&5
43297 ac_status=$?
cae5b340
AX
43298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43299 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
43301 (eval $ac_try) 2>&5
43302 ac_status=$?
cae5b340
AX
43303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43304 (exit $ac_status); }; }; then
22929307
AX
43305 rc=0
43306else
43307 $as_echo "$as_me: failed program was:" >&5
43308sed 's/^/| /' conftest.$ac_ext >&5
43309 rc=1
43310
43311
43312fi
cae5b340 43313
22929307
AX
43314 rm -Rf build
43315
43316
43317 if test $rc -ne 0; then :
43318
cae5b340 43319 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
43320$as_echo "no" >&6; }
43321
43322 else
43323 if test "x$enable_linux_builtin" != xyes; then
43324
43325 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
43326 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43327 rc=$?
43328 if test $rc -ne 0; then
43329 export=0
43330 for file in mm/backing-dev.c; do
43331 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
43332 "$LINUX/$file" 2>/dev/null
43333 rc=$?
43334 if test $rc -eq 0; then
43335 export=1
43336 break;
43337 fi
43338 done
43339 if test $export -eq 0; then :
43340 rc=1
43341 else :
43342 rc=0
43343 fi
43344 else :
43345 rc=0
43346 fi
43347
43348 fi
43349 if test $rc -ne 0; then :
43350
cae5b340 43351 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
43352$as_echo "no" >&6; }
43353
43354 else :
43355
cae5b340 43356 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
43357$as_echo "yes" >&6; }
43358
cae5b340
AX
43359cat >>confdefs.h <<\_ACEOF
43360#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
43361_ACEOF
22929307
AX
43362
43363
43364 fi
43365 fi
43366
43367
43368 else
43369 if test "x$enable_linux_builtin" != xyes; then
43370
43371 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
43372 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43373 rc=$?
43374 if test $rc -ne 0; then
43375 export=0
43376 for file in mm/backing-dev.c; do
43377 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
43378 "$LINUX/$file" 2>/dev/null
43379 rc=$?
43380 if test $rc -eq 0; then
43381 export=1
43382 break;
43383 fi
43384 done
43385 if test $export -eq 0; then :
43386 rc=1
43387 else :
43388 rc=0
43389 fi
43390 else :
43391 rc=0
43392 fi
43393
43394 fi
43395 if test $rc -ne 0; then :
43396
cae5b340 43397 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 43398$as_echo "no" >&6; }
cae5b340 43399 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
22929307
AX
43400$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
43401
43402
43403
43404cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43405/* confdefs.h. */
43406_ACEOF
43407cat confdefs.h >>conftest.$ac_ext
43408cat >>conftest.$ac_ext <<_ACEOF
43409/* end confdefs.h. */
22929307
AX
43410
43411
43412 #include <linux/backing-dev.h>
43413 struct backing_dev_info bdi;
43414
43415int
43416main (void)
43417{
43418
43419 char *name = "bdi";
43420 unsigned int cap = BDI_CAP_MAP_COPY;
43421 int error __attribute__((unused)) =
43422 bdi_setup_and_register(&bdi, name, cap);
43423
43424 ;
43425 return 0;
43426}
43427
43428_ACEOF
43429
43430
43431
43432cat - <<_ACEOF >conftest.h
43433
43434_ACEOF
43435
43436
43437 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43438 echo "obj-m := conftest.o" >build/Makefile
43439 modpost_flag=''
43440 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43441 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 43442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
43443 (eval $ac_try) 2>&5
43444 ac_status=$?
cae5b340
AX
43445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43446 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
43448 (eval $ac_try) 2>&5
43449 ac_status=$?
cae5b340
AX
43450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43451 (exit $ac_status); }; }; then
22929307
AX
43452 rc=0
43453else
43454 $as_echo "$as_me: failed program was:" >&5
43455sed 's/^/| /' conftest.$ac_ext >&5
43456 rc=1
43457
43458
43459fi
cae5b340 43460
22929307
AX
43461 rm -Rf build
43462
43463
43464 if test $rc -ne 0; then :
43465
cae5b340 43466 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
43467$as_echo "no" >&6; }
43468
43469 else
43470 if test "x$enable_linux_builtin" != xyes; then
43471
43472 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
43473 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43474 rc=$?
43475 if test $rc -ne 0; then
43476 export=0
43477 for file in mm/backing-dev.c; do
43478 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
43479 "$LINUX/$file" 2>/dev/null
43480 rc=$?
43481 if test $rc -eq 0; then
43482 export=1
43483 break;
43484 fi
43485 done
43486 if test $export -eq 0; then :
43487 rc=1
43488 else :
43489 rc=0
43490 fi
43491 else :
43492 rc=0
43493 fi
43494
43495 fi
43496 if test $rc -ne 0; then :
43497
cae5b340 43498 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
43499$as_echo "no" >&6; }
43500
43501 else :
43502
cae5b340 43503 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
43504$as_echo "yes" >&6; }
43505
cae5b340
AX
43506cat >>confdefs.h <<\_ACEOF
43507#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
43508_ACEOF
22929307
AX
43509
43510
43511 fi
43512 fi
43513
43514
43515 else :
43516
cae5b340 43517 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
43518$as_echo "yes" >&6; }
43519
cae5b340
AX
43520cat >>confdefs.h <<\_ACEOF
43521#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
43522_ACEOF
22929307
AX
43523
43524
43525 fi
43526 fi
43527
43528
43529 else :
43530
cae5b340 43531 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
43532$as_echo "yes" >&6; }
43533
cae5b340
AX
43534cat >>confdefs.h <<\_ACEOF
43535#define HAVE_SUPER_SETUP_BDI_NAME 1
43536_ACEOF
22929307
AX
43537
43538
43539 fi
43540 fi
43541
43542
43543
cae5b340 43544 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
22929307
AX
43545$as_echo_n "checking whether set_nlink() is available... " >&6; }
43546
43547
43548cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43549/* confdefs.h. */
43550_ACEOF
43551cat confdefs.h >>conftest.$ac_ext
43552cat >>conftest.$ac_ext <<_ACEOF
43553/* end confdefs.h. */
22929307
AX
43554
43555
43556 #include <linux/fs.h>
43557
43558int
43559main (void)
43560{
43561
43562 struct inode node;
43563 unsigned int link = 0;
43564 (void) set_nlink(&node, link);
ea04106b
AX
43565
43566 ;
43567 return 0;
43568}
43569
43570_ACEOF
43571
43572
43573
43574cat - <<_ACEOF >conftest.h
43575
43576_ACEOF
43577
43578
43579 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43580 echo "obj-m := conftest.o" >build/Makefile
43581 modpost_flag=''
43582 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43583 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 43584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43585 (eval $ac_try) 2>&5
43586 ac_status=$?
cae5b340
AX
43587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43588 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43590 (eval $ac_try) 2>&5
43591 ac_status=$?
cae5b340
AX
43592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43593 (exit $ac_status); }; }; then
ea04106b 43594
cae5b340 43595 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
43596$as_echo "yes" >&6; }
43597
cae5b340
AX
43598cat >>confdefs.h <<\_ACEOF
43599#define HAVE_SET_NLINK 1
43600_ACEOF
ea04106b
AX
43601
43602
43603else
43604 $as_echo "$as_me: failed program was:" >&5
43605sed 's/^/| /' conftest.$ac_ext >&5
43606
cae5b340 43607 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
43608$as_echo "no" >&6; }
43609
43610
43611
43612fi
cae5b340 43613
ea04106b
AX
43614 rm -Rf build
43615
43616
43617
e10b0808 43618
cae5b340 43619 { $as_echo "$as_me:$LINENO: checking whether elevator_change() is available" >&5
e10b0808
AX
43620$as_echo_n "checking whether elevator_change() is available... " >&6; }
43621 tmp_flags="$EXTRA_KCFLAGS"
43622 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
43623
43624
43625cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43626/* confdefs.h. */
43627_ACEOF
43628cat confdefs.h >>conftest.$ac_ext
43629cat >>conftest.$ac_ext <<_ACEOF
43630/* end confdefs.h. */
ea04106b
AX
43631
43632
e10b0808
AX
43633 #include <linux/blkdev.h>
43634 #include <linux/elevator.h>
ea04106b
AX
43635
43636int
43637main (void)
43638{
43639
e10b0808
AX
43640 int ret;
43641 struct request_queue *q = NULL;
43642 char *elevator = NULL;
43643 ret = elevator_change(q, elevator);
ea04106b
AX
43644
43645 ;
43646 return 0;
43647}
43648
43649_ACEOF
43650
43651
43652
43653cat - <<_ACEOF >conftest.h
43654
43655_ACEOF
43656
43657
43658 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43659 echo "obj-m := conftest.o" >build/Makefile
43660 modpost_flag=''
43661 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43662 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 43663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43664 (eval $ac_try) 2>&5
43665 ac_status=$?
cae5b340
AX
43666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43667 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43669 (eval $ac_try) 2>&5
43670 ac_status=$?
cae5b340
AX
43671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43672 (exit $ac_status); }; }; then
ea04106b 43673
cae5b340 43674 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
43675$as_echo "yes" >&6; }
43676
cae5b340
AX
43677cat >>confdefs.h <<\_ACEOF
43678#define HAVE_ELEVATOR_CHANGE 1
43679_ACEOF
ea04106b
AX
43680
43681
43682else
43683 $as_echo "$as_me: failed program was:" >&5
43684sed 's/^/| /' conftest.$ac_ext >&5
43685
cae5b340 43686 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
43687$as_echo "no" >&6; }
43688
43689
43690
43691fi
cae5b340 43692
ea04106b
AX
43693 rm -Rf build
43694
43695
e10b0808 43696 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 43697
cae5b340 43698 { $as_echo "$as_me:$LINENO: checking whether sget() wants 5 args" >&5
e10b0808 43699$as_echo_n "checking whether sget() wants 5 args... " >&6; }
ea04106b
AX
43700
43701
43702cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43703/* confdefs.h. */
43704_ACEOF
43705cat confdefs.h >>conftest.$ac_ext
43706cat >>conftest.$ac_ext <<_ACEOF
43707/* end confdefs.h. */
ea04106b
AX
43708
43709
e10b0808 43710 #include <linux/fs.h>
ea04106b
AX
43711
43712int
43713main (void)
43714{
43715
e10b0808
AX
43716 struct file_system_type *type = NULL;
43717 int (*test)(struct super_block *,void *) = NULL;
43718 int (*set)(struct super_block *,void *) = NULL;
43719 int flags = 0;
43720 void *data = NULL;
43721 (void) sget(type, test, set, flags, data);
ea04106b
AX
43722
43723 ;
43724 return 0;
43725}
43726
43727_ACEOF
43728
43729
43730
43731cat - <<_ACEOF >conftest.h
43732
43733_ACEOF
43734
43735
43736 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43737 echo "obj-m := conftest.o" >build/Makefile
43738 modpost_flag=''
43739 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43740 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 43741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43742 (eval $ac_try) 2>&5
43743 ac_status=$?
cae5b340
AX
43744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43745 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43747 (eval $ac_try) 2>&5
43748 ac_status=$?
cae5b340
AX
43749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43750 (exit $ac_status); }; }; then
e10b0808 43751
cae5b340 43752 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
43753$as_echo "yes" >&6; }
43754
cae5b340
AX
43755cat >>confdefs.h <<\_ACEOF
43756#define HAVE_5ARG_SGET 1
43757_ACEOF
e10b0808
AX
43758
43759
ea04106b
AX
43760else
43761 $as_echo "$as_me: failed program was:" >&5
43762sed 's/^/| /' conftest.$ac_ext >&5
e10b0808 43763
cae5b340 43764 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
43765$as_echo "no" >&6; }
43766
ea04106b
AX
43767
43768
43769fi
cae5b340 43770
ea04106b
AX
43771 rm -Rf build
43772
43773
ea04106b 43774
cae5b340 43775 { $as_echo "$as_me:$LINENO: checking whether lseek_execute() is available" >&5
e10b0808 43776$as_echo_n "checking whether lseek_execute() is available... " >&6; }
ea04106b
AX
43777
43778
43779
43780cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43781/* confdefs.h. */
43782_ACEOF
43783cat confdefs.h >>conftest.$ac_ext
43784cat >>conftest.$ac_ext <<_ACEOF
43785/* end confdefs.h. */
ea04106b
AX
43786
43787
e10b0808 43788 #include <linux/fs.h>
ea04106b
AX
43789
43790int
43791main (void)
43792{
43793
e10b0808
AX
43794 struct file *fp __attribute__ ((unused)) = NULL;
43795 struct inode *ip __attribute__ ((unused)) = NULL;
43796 loff_t offset __attribute__ ((unused)) = 0;
43797 loff_t maxsize __attribute__ ((unused)) = 0;
43798
43799 lseek_execute(fp, ip, offset, maxsize);
ea04106b
AX
43800
43801 ;
43802 return 0;
43803}
43804
43805_ACEOF
43806
43807
43808
43809cat - <<_ACEOF >conftest.h
43810
43811_ACEOF
43812
43813
43814 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43815 echo "obj-m := conftest.o" >build/Makefile
43816 modpost_flag=''
43817 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43818 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 43819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43820 (eval $ac_try) 2>&5
43821 ac_status=$?
cae5b340
AX
43822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43823 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43825 (eval $ac_try) 2>&5
43826 ac_status=$?
cae5b340
AX
43827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43828 (exit $ac_status); }; }; then
ea04106b
AX
43829 rc=0
43830else
43831 $as_echo "$as_me: failed program was:" >&5
43832sed 's/^/| /' conftest.$ac_ext >&5
43833 rc=1
43834
43835
43836fi
cae5b340 43837
ea04106b
AX
43838 rm -Rf build
43839
43840
43841 if test $rc -ne 0; then :
43842
cae5b340 43843 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
43844$as_echo "no" >&6; }
43845
43846 else
43847 if test "x$enable_linux_builtin" != xyes; then
43848
e10b0808 43849 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
ea04106b
AX
43850 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43851 rc=$?
43852 if test $rc -ne 0; then
43853 export=0
e10b0808
AX
43854 for file in fs/read_write.c; do
43855 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
ea04106b
AX
43856 "$LINUX/$file" 2>/dev/null
43857 rc=$?
43858 if test $rc -eq 0; then
43859 export=1
43860 break;
43861 fi
43862 done
43863 if test $export -eq 0; then :
43864 rc=1
43865 else :
43866 rc=0
43867 fi
43868 else :
43869 rc=0
43870 fi
43871
43872 fi
43873 if test $rc -ne 0; then :
43874
cae5b340 43875 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
43876$as_echo "no" >&6; }
43877
43878 else :
43879
cae5b340 43880 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
43881$as_echo "yes" >&6; }
43882
cae5b340
AX
43883cat >>confdefs.h <<\_ACEOF
43884#define HAVE_LSEEK_EXECUTE 1
43885_ACEOF
ea04106b 43886
ea04106b 43887
ea04106b 43888 fi
ea04106b
AX
43889 fi
43890
ea04106b 43891
ea04106b 43892
cae5b340 43893 { $as_echo "$as_me:$LINENO: checking whether fops->iterate_shared() is available" >&5
87dac73d 43894$as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
ea04106b
AX
43895
43896
43897cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43898/* confdefs.h. */
43899_ACEOF
43900cat confdefs.h >>conftest.$ac_ext
43901cat >>conftest.$ac_ext <<_ACEOF
43902/* end confdefs.h. */
ea04106b
AX
43903
43904
e10b0808
AX
43905 #include <linux/fs.h>
43906 int iterate(struct file *filp, struct dir_context * context)
43907 { return 0; }
43908
43909 static const struct file_operations fops
43910 __attribute__ ((unused)) = {
87dac73d 43911 .iterate_shared = iterate,
e10b0808 43912 };
ea04106b
AX
43913
43914int
43915main (void)
43916{
43917
ea04106b
AX
43918
43919 ;
43920 return 0;
43921}
43922
43923_ACEOF
43924
43925
43926
e10b0808 43927cat - <<_ACEOF >conftest.h
ea04106b 43928
e10b0808 43929_ACEOF
ea04106b
AX
43930
43931
e10b0808
AX
43932 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43933 echo "obj-m := conftest.o" >build/Makefile
43934 modpost_flag=''
43935 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43936 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 43937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
43938 (eval $ac_try) 2>&5
43939 ac_status=$?
cae5b340
AX
43940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43941 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
43943 (eval $ac_try) 2>&5
43944 ac_status=$?
cae5b340
AX
43945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43946 (exit $ac_status); }; }; then
ea04106b 43947
cae5b340 43948 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
43949$as_echo "yes" >&6; }
43950
cae5b340
AX
43951cat >>confdefs.h <<\_ACEOF
43952#define HAVE_VFS_ITERATE_SHARED 1
43953_ACEOF
22929307
AX
43954
43955
43956else
43957 $as_echo "$as_me: failed program was:" >&5
43958sed 's/^/| /' conftest.$ac_ext >&5
43959
cae5b340 43960 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
43961$as_echo "no" >&6; }
43962
cae5b340 43963 { $as_echo "$as_me:$LINENO: checking whether fops->iterate() is available" >&5
22929307
AX
43964$as_echo_n "checking whether fops->iterate() is available... " >&6; }
43965
43966
43967cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43968/* confdefs.h. */
43969_ACEOF
43970cat confdefs.h >>conftest.$ac_ext
43971cat >>conftest.$ac_ext <<_ACEOF
43972/* end confdefs.h. */
22929307
AX
43973
43974
43975 #include <linux/fs.h>
43976 int iterate(struct file *filp, struct dir_context * context)
43977 { return 0; }
43978
43979 static const struct file_operations fops
43980 __attribute__ ((unused)) = {
43981 .iterate = iterate,
43982 };
43983
43984int
43985main (void)
43986{
43987
43988
43989 ;
43990 return 0;
43991}
43992
43993_ACEOF
43994
43995
43996
43997cat - <<_ACEOF >conftest.h
43998
43999_ACEOF
44000
44001
44002 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44003 echo "obj-m := conftest.o" >build/Makefile
44004 modpost_flag=''
44005 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44006 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
44008 (eval $ac_try) 2>&5
44009 ac_status=$?
cae5b340
AX
44010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44011 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
44013 (eval $ac_try) 2>&5
44014 ac_status=$?
cae5b340
AX
44015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44016 (exit $ac_status); }; }; then
22929307 44017
cae5b340 44018 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
44019$as_echo "yes" >&6; }
44020
cae5b340
AX
44021cat >>confdefs.h <<\_ACEOF
44022#define HAVE_VFS_ITERATE 1
44023_ACEOF
22929307
AX
44024
44025
44026else
44027 $as_echo "$as_me: failed program was:" >&5
44028sed 's/^/| /' conftest.$ac_ext >&5
44029
cae5b340 44030 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
44031$as_echo "no" >&6; }
44032
cae5b340 44033 { $as_echo "$as_me:$LINENO: checking whether fops->readdir() is available" >&5
22929307
AX
44034$as_echo_n "checking whether fops->readdir() is available... " >&6; }
44035
44036
44037cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44038/* confdefs.h. */
44039_ACEOF
44040cat confdefs.h >>conftest.$ac_ext
44041cat >>conftest.$ac_ext <<_ACEOF
44042/* end confdefs.h. */
22929307
AX
44043
44044
44045 #include <linux/fs.h>
44046 int readdir(struct file *filp, void *entry, filldir_t func)
44047 { return 0; }
44048
44049 static const struct file_operations fops
44050 __attribute__ ((unused)) = {
44051 .readdir = readdir,
44052 };
44053
44054int
44055main (void)
44056{
44057
44058
44059 ;
44060 return 0;
44061}
44062
44063_ACEOF
44064
44065
44066
44067cat - <<_ACEOF >conftest.h
44068
44069_ACEOF
44070
44071
44072 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44073 echo "obj-m := conftest.o" >build/Makefile
44074 modpost_flag=''
44075 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44076 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
44078 (eval $ac_try) 2>&5
44079 ac_status=$?
cae5b340
AX
44080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44081 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
44083 (eval $ac_try) 2>&5
44084 ac_status=$?
cae5b340
AX
44085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44086 (exit $ac_status); }; }; then
22929307 44087
cae5b340 44088 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
44089$as_echo "yes" >&6; }
44090
cae5b340
AX
44091cat >>confdefs.h <<\_ACEOF
44092#define HAVE_VFS_READDIR 1
44093_ACEOF
22929307
AX
44094
44095
44096else
44097 $as_echo "$as_me: failed program was:" >&5
44098sed 's/^/| /' conftest.$ac_ext >&5
44099
cae5b340
AX
44100 { { $as_echo "$as_me:$LINENO: error: no; file a bug report with ZFSOnLinux" >&5
44101$as_echo "$as_me: error: no; file a bug report with ZFSOnLinux" >&2;}
44102 { (exit 1); exit 1; }; }
22929307
AX
44103
44104
44105
44106fi
cae5b340 44107
22929307
AX
44108 rm -Rf build
44109
44110
44111
44112
44113
44114fi
cae5b340 44115
22929307
AX
44116 rm -Rf build
44117
44118
44119
44120
44121
44122fi
cae5b340 44123
22929307
AX
44124 rm -Rf build
44125
44126
44127
cae5b340 44128 { $as_echo "$as_me:$LINENO: checking whether fops->read/write_iter() are available" >&5
22929307
AX
44129$as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
44130
44131
44132cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44133/* confdefs.h. */
44134_ACEOF
44135cat confdefs.h >>conftest.$ac_ext
44136cat >>conftest.$ac_ext <<_ACEOF
44137/* end confdefs.h. */
22929307
AX
44138
44139
44140 #include <linux/fs.h>
44141
44142 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
44143 { return 0; }
44144 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
44145 { return 0; }
44146
44147 static const struct file_operations
44148 fops __attribute__ ((unused)) = {
44149 .read_iter = test_read,
44150 .write_iter = test_write,
44151 };
44152
44153int
44154main (void)
44155{
44156
44157
44158 ;
44159 return 0;
44160}
44161
44162_ACEOF
44163
44164
44165
44166cat - <<_ACEOF >conftest.h
44167
44168_ACEOF
44169
44170
44171 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44172 echo "obj-m := conftest.o" >build/Makefile
44173 modpost_flag=''
44174 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44175 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
44177 (eval $ac_try) 2>&5
44178 ac_status=$?
cae5b340
AX
44179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44180 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
44182 (eval $ac_try) 2>&5
44183 ac_status=$?
cae5b340
AX
44184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44185 (exit $ac_status); }; }; then
22929307 44186
cae5b340 44187 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
44188$as_echo "yes" >&6; }
44189
cae5b340
AX
44190cat >>confdefs.h <<\_ACEOF
44191#define HAVE_VFS_RW_ITERATE 1
44192_ACEOF
ea04106b 44193
ea04106b 44194
047218e2
AX
44195 { $as_echo "$as_me:$LINENO: checking whether new_sync_read/write() are available" >&5
44196$as_echo_n "checking whether new_sync_read/write() are available... " >&6; }
ea04106b
AX
44197
44198
44199cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44200/* confdefs.h. */
44201_ACEOF
44202cat confdefs.h >>conftest.$ac_ext
44203cat >>conftest.$ac_ext <<_ACEOF
44204/* end confdefs.h. */
ea04106b
AX
44205
44206
22929307 44207 #include <linux/fs.h>
ea04106b
AX
44208
44209int
44210main (void)
44211{
44212
047218e2
AX
44213 ssize_t ret __attribute__ ((unused));
44214 struct file *filp = NULL;
44215 char __user *rbuf = NULL;
44216 const char __user *wbuf = NULL;
44217 size_t len = 0;
44218 loff_t ppos;
44219
44220 ret = new_sync_read(filp, rbuf, len, &ppos);
44221 ret = new_sync_write(filp, wbuf, len, &ppos);
ea04106b
AX
44222
44223 ;
44224 return 0;
44225}
44226
44227_ACEOF
44228
44229
44230
44231cat - <<_ACEOF >conftest.h
44232
44233_ACEOF
44234
44235
44236 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44237 echo "obj-m := conftest.o" >build/Makefile
44238 modpost_flag=''
44239 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44240 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44242 (eval $ac_try) 2>&5
44243 ac_status=$?
cae5b340
AX
44244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44245 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44247 (eval $ac_try) 2>&5
44248 ac_status=$?
cae5b340
AX
44249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44250 (exit $ac_status); }; }; then
ea04106b 44251
cae5b340 44252 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
44253$as_echo "yes" >&6; }
44254
cae5b340
AX
44255cat >>confdefs.h <<\_ACEOF
44256#define HAVE_NEW_SYNC_READ 1
44257_ACEOF
68d83c55
AX
44258
44259
44260else
44261 $as_echo "$as_me: failed program was:" >&5
44262sed 's/^/| /' conftest.$ac_ext >&5
44263
cae5b340 44264 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
44265$as_echo "no" >&6; }
44266
68d83c55
AX
44267
44268
44269fi
cae5b340 44270
68d83c55
AX
44271 rm -Rf build
44272
44273
44274
44275
ea04106b
AX
44276else
44277 $as_echo "$as_me: failed program was:" >&5
44278sed 's/^/| /' conftest.$ac_ext >&5
44279
cae5b340 44280 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 44281$as_echo "no" >&6; }
87dac73d
AX
44282
44283
e10b0808
AX
44284
44285fi
cae5b340 44286
e10b0808
AX
44287 rm -Rf build
44288
44289
44290
cae5b340 44291 { $as_echo "$as_me:$LINENO: checking whether generic_write_checks() takes kiocb" >&5
68d83c55 44292$as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
ea04106b
AX
44293
44294
44295cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44296/* confdefs.h. */
44297_ACEOF
44298cat confdefs.h >>conftest.$ac_ext
44299cat >>conftest.$ac_ext <<_ACEOF
44300/* end confdefs.h. */
ea04106b
AX
44301
44302
e10b0808
AX
44303 #include <linux/fs.h>
44304
ea04106b
AX
44305
44306int
44307main (void)
44308{
44309
68d83c55
AX
44310 struct kiocb *iocb = NULL;
44311 struct iov_iter *iov = NULL;
44312 generic_write_checks(iocb, iov);
ea04106b
AX
44313
44314 ;
44315 return 0;
44316}
44317
44318_ACEOF
44319
44320
44321
44322cat - <<_ACEOF >conftest.h
44323
44324_ACEOF
44325
44326
44327 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44328 echo "obj-m := conftest.o" >build/Makefile
44329 modpost_flag=''
44330 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44331 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44333 (eval $ac_try) 2>&5
44334 ac_status=$?
cae5b340
AX
44335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44336 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44338 (eval $ac_try) 2>&5
44339 ac_status=$?
cae5b340
AX
44340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44341 (exit $ac_status); }; }; then
ea04106b 44342
cae5b340 44343 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
44344$as_echo "yes" >&6; }
44345
cae5b340
AX
44346cat >>confdefs.h <<\_ACEOF
44347#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1
44348_ACEOF
ea04106b
AX
44349
44350
44351else
44352 $as_echo "$as_me: failed program was:" >&5
44353sed 's/^/| /' conftest.$ac_ext >&5
44354
cae5b340 44355 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
44356$as_echo "no" >&6; }
44357
44358
44359
44360fi
cae5b340 44361
ea04106b
AX
44362 rm -Rf build
44363
44364
ea04106b 44365
e10b0808 44366
cae5b340 44367 { $as_echo "$as_me:$LINENO: checking whether kmap_atomic wants 1 args" >&5
e10b0808 44368$as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
ea04106b
AX
44369
44370
44371cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44372/* confdefs.h. */
44373_ACEOF
44374cat confdefs.h >>conftest.$ac_ext
44375cat >>conftest.$ac_ext <<_ACEOF
44376/* end confdefs.h. */
ea04106b
AX
44377
44378
e10b0808 44379 #include <linux/pagemap.h>
ea04106b
AX
44380
44381int
44382main (void)
44383{
44384
e10b0808
AX
44385 struct page page;
44386 kmap_atomic(&page);
ea04106b
AX
44387
44388 ;
44389 return 0;
44390}
44391
44392_ACEOF
44393
44394
44395
44396cat - <<_ACEOF >conftest.h
44397
44398_ACEOF
44399
44400
44401 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44402 echo "obj-m := conftest.o" >build/Makefile
44403 modpost_flag=''
44404 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44405 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44407 (eval $ac_try) 2>&5
44408 ac_status=$?
cae5b340
AX
44409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44410 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44412 (eval $ac_try) 2>&5
44413 ac_status=$?
cae5b340
AX
44414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44415 (exit $ac_status); }; }; then
ea04106b 44416
cae5b340 44417 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
44418$as_echo "yes" >&6; }
44419
cae5b340
AX
44420cat >>confdefs.h <<\_ACEOF
44421#define HAVE_1ARG_KMAP_ATOMIC 1
44422_ACEOF
ea04106b
AX
44423
44424
44425else
44426 $as_echo "$as_me: failed program was:" >&5
44427sed 's/^/| /' conftest.$ac_ext >&5
44428
cae5b340 44429 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
44430$as_echo "no" >&6; }
44431
44432
44433
44434fi
cae5b340 44435
ea04106b
AX
44436 rm -Rf build
44437
44438
44439
ea04106b 44440
cae5b340 44441 { $as_echo "$as_me:$LINENO: checking whether follow_down_one() is available" >&5
e10b0808 44442$as_echo_n "checking whether follow_down_one() is available... " >&6; }
ea04106b
AX
44443
44444
44445cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44446/* confdefs.h. */
44447_ACEOF
44448cat confdefs.h >>conftest.$ac_ext
44449cat >>conftest.$ac_ext <<_ACEOF
44450/* end confdefs.h. */
ea04106b
AX
44451
44452
e10b0808 44453 #include <linux/namei.h>
ea04106b
AX
44454
44455int
44456main (void)
44457{
44458
e10b0808
AX
44459 struct path *p = NULL;
44460 follow_down_one(p);
ea04106b
AX
44461
44462 ;
44463 return 0;
44464}
44465
44466_ACEOF
44467
44468
44469
44470cat - <<_ACEOF >conftest.h
44471
44472_ACEOF
44473
44474
44475 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44476 echo "obj-m := conftest.o" >build/Makefile
44477 modpost_flag=''
44478 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44479 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44481 (eval $ac_try) 2>&5
44482 ac_status=$?
cae5b340
AX
44483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44484 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44486 (eval $ac_try) 2>&5
44487 ac_status=$?
cae5b340
AX
44488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44489 (exit $ac_status); }; }; then
ea04106b 44490
cae5b340 44491 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 44492$as_echo "yes" >&6; }
ea04106b 44493
cae5b340
AX
44494cat >>confdefs.h <<\_ACEOF
44495#define HAVE_FOLLOW_DOWN_ONE 1
44496_ACEOF
ea04106b 44497
ea04106b 44498
e10b0808
AX
44499else
44500 $as_echo "$as_me: failed program was:" >&5
44501sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 44502
cae5b340 44503 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
44504$as_echo "no" >&6; }
44505
ea04106b 44506
ea04106b 44507
e10b0808 44508fi
cae5b340 44509
e10b0808 44510 rm -Rf build
ea04106b 44511
ea04106b
AX
44512
44513
44514
cae5b340 44515 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns int" >&5
e10b0808 44516$as_echo_n "checking whether make_request_fn() returns int... " >&6; }
ea04106b
AX
44517
44518
44519cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44520/* confdefs.h. */
44521_ACEOF
44522cat confdefs.h >>conftest.$ac_ext
44523cat >>conftest.$ac_ext <<_ACEOF
44524/* end confdefs.h. */
ea04106b
AX
44525
44526
e10b0808 44527 #include <linux/blkdev.h>
ea04106b 44528
e10b0808
AX
44529 int make_request(struct request_queue *q, struct bio *bio)
44530 {
44531 return (0);
44532 }
ea04106b
AX
44533
44534int
44535main (void)
44536{
44537
e10b0808 44538 blk_queue_make_request(NULL, &make_request);
ea04106b
AX
44539
44540 ;
44541 return 0;
44542}
44543
44544_ACEOF
44545
44546
44547
44548cat - <<_ACEOF >conftest.h
44549
44550_ACEOF
44551
44552
44553 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44554 echo "obj-m := conftest.o" >build/Makefile
44555 modpost_flag=''
44556 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44557 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44559 (eval $ac_try) 2>&5
44560 ac_status=$?
cae5b340
AX
44561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44562 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44564 (eval $ac_try) 2>&5
44565 ac_status=$?
cae5b340
AX
44566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44567 (exit $ac_status); }; }; then
ea04106b 44568
cae5b340 44569 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
44570$as_echo "yes" >&6; }
44571
cae5b340
AX
44572cat >>confdefs.h <<\_ACEOF
44573#define MAKE_REQUEST_FN_RET int
44574_ACEOF
e10b0808
AX
44575
44576
cae5b340
AX
44577cat >>confdefs.h <<\_ACEOF
44578#define HAVE_MAKE_REQUEST_FN_RET_INT 1
44579_ACEOF
ea04106b
AX
44580
44581
44582else
44583 $as_echo "$as_me: failed program was:" >&5
44584sed 's/^/| /' conftest.$ac_ext >&5
44585
cae5b340 44586 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 44587$as_echo "no" >&6; }
cae5b340 44588 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns void" >&5
e10b0808 44589$as_echo_n "checking whether make_request_fn() returns void... " >&6; }
ea04106b
AX
44590
44591
44592cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44593/* confdefs.h. */
44594_ACEOF
44595cat confdefs.h >>conftest.$ac_ext
44596cat >>conftest.$ac_ext <<_ACEOF
44597/* end confdefs.h. */
ea04106b
AX
44598
44599
e10b0808 44600 #include <linux/blkdev.h>
ea04106b 44601
e10b0808
AX
44602 void make_request(struct request_queue *q, struct bio *bio)
44603 {
44604 return;
44605 }
ea04106b
AX
44606
44607int
44608main (void)
44609{
44610
e10b0808 44611 blk_queue_make_request(NULL, &make_request);
ea04106b
AX
44612
44613 ;
44614 return 0;
44615}
44616
44617_ACEOF
44618
44619
44620
44621cat - <<_ACEOF >conftest.h
44622
44623_ACEOF
44624
44625
44626 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44627 echo "obj-m := conftest.o" >build/Makefile
44628 modpost_flag=''
44629 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44630 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44632 (eval $ac_try) 2>&5
44633 ac_status=$?
cae5b340
AX
44634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44635 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44637 (eval $ac_try) 2>&5
44638 ac_status=$?
cae5b340
AX
44639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44640 (exit $ac_status); }; }; then
ea04106b 44641
cae5b340 44642 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
44643$as_echo "yes" >&6; }
44644
cae5b340
AX
44645cat >>confdefs.h <<\_ACEOF
44646#define MAKE_REQUEST_FN_RET void
44647_ACEOF
ea04106b
AX
44648
44649
44650else
44651 $as_echo "$as_me: failed program was:" >&5
44652sed 's/^/| /' conftest.$ac_ext >&5
44653
cae5b340 44654 { $as_echo "$as_me:$LINENO: result: no" >&5
94a40997 44655$as_echo "no" >&6; }
cae5b340 44656 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns blk_qc_t" >&5
94a40997
AX
44657$as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
44658
44659
44660cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44661/* confdefs.h. */
44662_ACEOF
44663cat confdefs.h >>conftest.$ac_ext
44664cat >>conftest.$ac_ext <<_ACEOF
44665/* end confdefs.h. */
94a40997
AX
44666
44667
44668 #include <linux/blkdev.h>
44669
44670 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
44671 {
44672 return (BLK_QC_T_NONE);
44673 }
44674
44675int
44676main (void)
44677{
44678
44679 blk_queue_make_request(NULL, &make_request);
44680
44681 ;
44682 return 0;
44683}
44684
44685_ACEOF
44686
44687
44688
44689cat - <<_ACEOF >conftest.h
44690
44691_ACEOF
44692
44693
44694 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44695 echo "obj-m := conftest.o" >build/Makefile
44696 modpost_flag=''
44697 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44698 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
44700 (eval $ac_try) 2>&5
44701 ac_status=$?
cae5b340
AX
44702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44703 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
44705 (eval $ac_try) 2>&5
44706 ac_status=$?
cae5b340
AX
44707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44708 (exit $ac_status); }; }; then
94a40997 44709
cae5b340 44710 { $as_echo "$as_me:$LINENO: result: yes" >&5
94a40997
AX
44711$as_echo "yes" >&6; }
44712
cae5b340
AX
44713cat >>confdefs.h <<\_ACEOF
44714#define MAKE_REQUEST_FN_RET blk_qc_t
44715_ACEOF
94a40997
AX
44716
44717
cae5b340
AX
44718cat >>confdefs.h <<\_ACEOF
44719#define HAVE_MAKE_REQUEST_FN_RET_QC 1
44720_ACEOF
94a40997
AX
44721
44722
44723else
44724 $as_echo "$as_me: failed program was:" >&5
44725sed 's/^/| /' conftest.$ac_ext >&5
44726
cae5b340
AX
44727 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
44728 https://github.com/zfsonlinux/zfs/issues/new" >&5
44729$as_echo "$as_me: error: no - Please file a bug report at
44730 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
44731 { (exit 1); exit 1; }; }
94a40997
AX
44732
44733
44734
44735fi
cae5b340 44736
94a40997
AX
44737 rm -Rf build
44738
44739
ea04106b
AX
44740
44741
44742
44743fi
cae5b340 44744
ea04106b
AX
44745 rm -Rf build
44746
44747
44748
44749
44750
ea04106b 44751fi
cae5b340 44752
ea04106b
AX
44753 rm -Rf build
44754
44755
44756
ea04106b 44757
cae5b340
AX
44758 { $as_echo "$as_me:$LINENO: checking whether 3 arg generic IO accounting symbols are available" >&5
44759$as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
ea04106b 44760
ea04106b
AX
44761
44762
e10b0808 44763cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44764/* confdefs.h. */
44765_ACEOF
44766cat confdefs.h >>conftest.$ac_ext
44767cat >>conftest.$ac_ext <<_ACEOF
44768/* end confdefs.h. */
ea04106b 44769
ea04106b 44770
e10b0808
AX
44771 #include <linux/bio.h>
44772
44773 void (*generic_start_io_acct_f)(int, unsigned long,
44774 struct hd_struct *) = &generic_start_io_acct;
44775 void (*generic_end_io_acct_f)(int, struct hd_struct *,
44776 unsigned long) = &generic_end_io_acct;
ea04106b
AX
44777
44778int
44779main (void)
44780{
44781
e10b0808
AX
44782 generic_start_io_acct(0, 0, NULL);
44783 generic_end_io_acct(0, NULL, 0);
ea04106b
AX
44784
44785 ;
44786 return 0;
44787}
44788
44789_ACEOF
44790
44791
44792
44793cat - <<_ACEOF >conftest.h
44794
44795_ACEOF
44796
44797
44798 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44799 echo "obj-m := conftest.o" >build/Makefile
44800 modpost_flag=''
44801 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44802 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44804 (eval $ac_try) 2>&5
44805 ac_status=$?
cae5b340
AX
44806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44807 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44809 (eval $ac_try) 2>&5
44810 ac_status=$?
cae5b340
AX
44811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44812 (exit $ac_status); }; }; then
e10b0808
AX
44813 rc=0
44814else
44815 $as_echo "$as_me: failed program was:" >&5
44816sed 's/^/| /' conftest.$ac_ext >&5
44817 rc=1
ea04106b 44818
ea04106b 44819
e10b0808 44820fi
cae5b340 44821
e10b0808 44822 rm -Rf build
ea04106b
AX
44823
44824
e10b0808
AX
44825 if test $rc -ne 0; then :
44826
cae5b340 44827 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
44828$as_echo "no" >&6; }
44829
44830 else
44831 if test "x$enable_linux_builtin" != xyes; then
44832
44833 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
44834 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44835 rc=$?
44836 if test $rc -ne 0; then
44837 export=0
44838 for file in block/bio.c; do
44839 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
44840 "$LINUX/$file" 2>/dev/null
44841 rc=$?
44842 if test $rc -eq 0; then
44843 export=1
44844 break;
44845 fi
44846 done
44847 if test $export -eq 0; then :
44848 rc=1
44849 else :
44850 rc=0
44851 fi
44852 else :
44853 rc=0
44854 fi
44855
44856 fi
44857 if test $rc -ne 0; then :
ea04106b 44858
cae5b340 44859 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
44860$as_echo "no" >&6; }
44861
e10b0808 44862 else :
ea04106b 44863
cae5b340 44864 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
44865$as_echo "yes" >&6; }
44866
cae5b340
AX
44867cat >>confdefs.h <<\_ACEOF
44868#define HAVE_GENERIC_IO_ACCT_3ARG 1
44869_ACEOF
ea04106b 44870
ea04106b 44871
e10b0808
AX
44872 fi
44873 fi
ea04106b
AX
44874
44875
44876
cae5b340
AX
44877 { $as_echo "$as_me:$LINENO: checking whether 4 arg generic IO accounting symbols are available" >&5
44878$as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
44879
68d83c55
AX
44880
44881
44882cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44883/* confdefs.h. */
44884_ACEOF
44885cat confdefs.h >>conftest.$ac_ext
44886cat >>conftest.$ac_ext <<_ACEOF
44887/* end confdefs.h. */
68d83c55
AX
44888
44889
cae5b340 44890 #include <linux/bio.h>
68d83c55 44891
cae5b340
AX
44892 void (*generic_start_io_acct_f)(struct request_queue *, int,
44893 unsigned long, struct hd_struct *) = &generic_start_io_acct;
44894 void (*generic_end_io_acct_f)(struct request_queue *, int,
44895 struct hd_struct *, unsigned long) = &generic_end_io_acct;
68d83c55
AX
44896
44897int
44898main (void)
44899{
44900
cae5b340
AX
44901 generic_start_io_acct(NULL, 0, 0, NULL);
44902 generic_end_io_acct(NULL, 0, NULL, 0);
68d83c55
AX
44903
44904 ;
44905 return 0;
44906}
44907
44908_ACEOF
44909
44910
44911
44912cat - <<_ACEOF >conftest.h
44913
44914_ACEOF
44915
44916
44917 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44918 echo "obj-m := conftest.o" >build/Makefile
44919 modpost_flag=''
44920 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44921 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
44923 (eval $ac_try) 2>&5
44924 ac_status=$?
cae5b340
AX
44925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44926 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
44928 (eval $ac_try) 2>&5
44929 ac_status=$?
cae5b340
AX
44930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44931 (exit $ac_status); }; }; then
44932 rc=0
44933else
44934 $as_echo "$as_me: failed program was:" >&5
44935sed 's/^/| /' conftest.$ac_ext >&5
44936 rc=1
68d83c55 44937
68d83c55 44938
cae5b340
AX
44939fi
44940
44941 rm -Rf build
68d83c55
AX
44942
44943
cae5b340 44944 if test $rc -ne 0; then :
68d83c55 44945
cae5b340 44946 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
44947$as_echo "no" >&6; }
44948
cae5b340
AX
44949 else
44950 if test "x$enable_linux_builtin" != xyes; then
68d83c55 44951
cae5b340
AX
44952 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
44953 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44954 rc=$?
44955 if test $rc -ne 0; then
44956 export=0
44957 for file in block/bio.c; do
44958 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
44959 "$LINUX/$file" 2>/dev/null
44960 rc=$?
44961 if test $rc -eq 0; then
44962 export=1
44963 break;
44964 fi
44965 done
44966 if test $export -eq 0; then :
44967 rc=1
44968 else :
44969 rc=0
44970 fi
44971 else :
44972 rc=0
44973 fi
68d83c55 44974
cae5b340
AX
44975 fi
44976 if test $rc -ne 0; then :
68d83c55 44977
cae5b340
AX
44978 { $as_echo "$as_me:$LINENO: result: no" >&5
44979$as_echo "no" >&6; }
68d83c55 44980
cae5b340 44981 else :
68d83c55 44982
cae5b340
AX
44983 { $as_echo "$as_me:$LINENO: result: yes" >&5
44984$as_echo "yes" >&6; }
68d83c55 44985
cae5b340
AX
44986cat >>confdefs.h <<\_ACEOF
44987#define HAVE_GENERIC_IO_ACCT_4ARG 1
44988_ACEOF
68d83c55
AX
44989
44990
cae5b340
AX
44991 fi
44992 fi
68d83c55
AX
44993
44994
68d83c55 44995
cae5b340
AX
44996 { $as_echo "$as_me:$LINENO: checking whether asm/fpu/api.h exists" >&5
44997$as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
44998
44999
45000cat confdefs.h - <<_ACEOF >conftest.c
45001/* confdefs.h. */
45002_ACEOF
45003cat confdefs.h >>conftest.$ac_ext
45004cat >>conftest.$ac_ext <<_ACEOF
45005/* end confdefs.h. */
45006
45007
45008 #include <linux/kernel.h>
45009 #include <asm/fpu/api.h>
68d83c55
AX
45010
45011int
45012main (void)
45013{
45014
cae5b340 45015 __kernel_fpu_begin();
68d83c55
AX
45016
45017 ;
45018 return 0;
45019}
45020
45021_ACEOF
45022
45023
45024
45025cat - <<_ACEOF >conftest.h
45026
45027_ACEOF
45028
45029
45030 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45031 echo "obj-m := conftest.o" >build/Makefile
45032 modpost_flag=''
45033 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45034 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 45035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
45036 (eval $ac_try) 2>&5
45037 ac_status=$?
cae5b340
AX
45038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45039 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
45041 (eval $ac_try) 2>&5
45042 ac_status=$?
cae5b340
AX
45043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45044 (exit $ac_status); }; }; then
68d83c55 45045
cae5b340 45046 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
45047$as_echo "yes" >&6; }
45048
cae5b340
AX
45049cat >>confdefs.h <<\_ACEOF
45050#define HAVE_FPU_API_H 1
45051_ACEOF
68d83c55
AX
45052
45053
45054else
45055 $as_echo "$as_me: failed program was:" >&5
45056sed 's/^/| /' conftest.$ac_ext >&5
45057
cae5b340 45058 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
45059$as_echo "no" >&6; }
45060
45061
45062
45063fi
cae5b340 45064
68d83c55
AX
45065 rm -Rf build
45066
45067
45068
22929307 45069
cae5b340
AX
45070 { $as_echo "$as_me:$LINENO: checking whether i_(uid|gid)_(read|write) exist" >&5
45071$as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
22929307
AX
45072
45073
45074cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
45075/* confdefs.h. */
45076_ACEOF
45077cat confdefs.h >>conftest.$ac_ext
45078cat >>conftest.$ac_ext <<_ACEOF
45079/* end confdefs.h. */
22929307
AX
45080
45081
45082 #include <linux/fs.h>
45083
45084int
45085main (void)
45086{
45087
cae5b340
AX
45088 struct inode *ip = NULL;
45089 (void) i_uid_read(ip);
22929307
AX
45090
45091 ;
45092 return 0;
45093}
45094
45095_ACEOF
45096
45097
45098
45099cat - <<_ACEOF >conftest.h
45100
45101_ACEOF
45102
45103
45104 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45105 echo "obj-m := conftest.o" >build/Makefile
45106 modpost_flag=''
45107 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45108 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 45109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
45110 (eval $ac_try) 2>&5
45111 ac_status=$?
cae5b340
AX
45112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45113 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
45115 (eval $ac_try) 2>&5
45116 ac_status=$?
cae5b340
AX
45117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45118 (exit $ac_status); }; }; then
22929307 45119
cae5b340 45120 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
45121$as_echo "yes" >&6; }
45122
cae5b340
AX
45123cat >>confdefs.h <<\_ACEOF
45124#define HAVE_KUID_HELPERS 1
45125_ACEOF
ea04106b 45126
ea04106b 45127
ea04106b 45128else
cae5b340
AX
45129 $as_echo "$as_me: failed program was:" >&5
45130sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 45131
cae5b340
AX
45132 { $as_echo "$as_me:$LINENO: result: no" >&5
45133$as_echo "no" >&6; }
ea04106b 45134
ea04106b 45135
ea04106b
AX
45136
45137fi
45138
cae5b340 45139 rm -Rf build
ea04106b
AX
45140
45141
ea04106b 45142
ea04106b 45143
cae5b340
AX
45144 { $as_echo "$as_me:$LINENO: checking whether module_param_call() is hardened" >&5
45145$as_echo_n "checking whether module_param_call() is hardened... " >&6; }
ea04106b
AX
45146
45147
cae5b340
AX
45148cat confdefs.h - <<_ACEOF >conftest.c
45149/* confdefs.h. */
45150_ACEOF
45151cat confdefs.h >>conftest.$ac_ext
45152cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
45153/* end confdefs.h. */
45154
ea04106b 45155
cae5b340
AX
45156 #include <linux/module.h>
45157 #include <linux/moduleparam.h>
ea04106b 45158
cae5b340
AX
45159 int param_get(char *b, const struct kernel_param *kp)
45160 {
45161 return (0);
45162 }
ea04106b 45163
cae5b340
AX
45164 int param_set(const char *b, const struct kernel_param *kp)
45165 {
45166 return (0);
45167 }
ea04106b 45168
cae5b340 45169 module_param_call(p, param_set, param_get, NULL, 0644);
ea04106b 45170
ea04106b 45171int
cae5b340 45172main (void)
ea04106b 45173{
cae5b340
AX
45174
45175
ea04106b
AX
45176 ;
45177 return 0;
45178}
ea04106b 45179
cae5b340 45180_ACEOF
ea04106b 45181
ea04106b
AX
45182
45183
cae5b340 45184cat - <<_ACEOF >conftest.h
ea04106b 45185
ea04106b 45186_ACEOF
cae5b340
AX
45187
45188
45189 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45190 echo "obj-m := conftest.o" >build/Makefile
45191 modpost_flag=''
45192 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45193 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45195 (eval $ac_try) 2>&5
45196 ac_status=$?
45197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45198 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45200 (eval $ac_try) 2>&5
45201 ac_status=$?
45202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45203 (exit $ac_status); }; }; then
45204
45205 { $as_echo "$as_me:$LINENO: result: yes" >&5
45206$as_echo "yes" >&6; }
45207
45208cat >>confdefs.h <<\_ACEOF
45209#define MODULE_PARAM_CALL_CONST 1
ea04106b
AX
45210_ACEOF
45211
ea04106b
AX
45212
45213else
cae5b340
AX
45214 $as_echo "$as_me: failed program was:" >&5
45215sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 45216
cae5b340
AX
45217 { $as_echo "$as_me:$LINENO: result: no" >&5
45218$as_echo "no" >&6; }
ea04106b
AX
45219
45220
ea04106b 45221
cae5b340 45222fi
ea04106b 45223
cae5b340 45224 rm -Rf build
ea04106b 45225
ea04106b 45226
ea04106b 45227
ea04106b 45228
cae5b340
AX
45229 { $as_echo "$as_me:$LINENO: checking whether iops->rename() wants flags" >&5
45230$as_echo_n "checking whether iops->rename() wants flags... " >&6; }
ea04106b
AX
45231
45232
cae5b340
AX
45233cat confdefs.h - <<_ACEOF >conftest.c
45234/* confdefs.h. */
45235_ACEOF
45236cat confdefs.h >>conftest.$ac_ext
45237cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
45238/* end confdefs.h. */
45239
cae5b340
AX
45240
45241 #include <linux/fs.h>
45242 int rename_fn(struct inode *sip, struct dentry *sdp,
45243 struct inode *tip, struct dentry *tdp,
45244 unsigned int flags) { return 0; }
45245
45246 static const struct inode_operations
45247 iops __attribute__ ((unused)) = {
45248 .rename = rename_fn,
45249 };
45250
ea04106b 45251int
cae5b340 45252main (void)
ea04106b 45253{
cae5b340
AX
45254
45255
ea04106b
AX
45256 ;
45257 return 0;
45258}
cae5b340 45259
ea04106b 45260_ACEOF
cae5b340
AX
45261
45262
45263
45264cat - <<_ACEOF >conftest.h
45265
45266_ACEOF
45267
45268
45269 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45270 echo "obj-m := conftest.o" >build/Makefile
45271 modpost_flag=''
45272 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45273 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45275 (eval $ac_try) 2>&5
45276 ac_status=$?
45277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45278 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45280 (eval $ac_try) 2>&5
45281 ac_status=$?
45282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45283 (exit $ac_status); }; }; then
45284
45285 { $as_echo "$as_me:$LINENO: result: yes" >&5
45286$as_echo "yes" >&6; }
45287
45288cat >>confdefs.h <<\_ACEOF
45289#define HAVE_RENAME_WANTS_FLAGS 1
ea04106b
AX
45290_ACEOF
45291
ea04106b
AX
45292
45293else
cae5b340
AX
45294 $as_echo "$as_me: failed program was:" >&5
45295sed 's/^/| /' conftest.$ac_ext >&5
45296
45297 { $as_echo "$as_me:$LINENO: result: no" >&5
45298$as_echo "no" >&6; }
45299
45300
45301
ea04106b
AX
45302fi
45303
cae5b340 45304 rm -Rf build
ea04106b 45305
cae5b340
AX
45306
45307
45308
45309 { $as_echo "$as_me:$LINENO: checking whether generic_setxattr() exists" >&5
45310$as_echo_n "checking whether generic_setxattr() exists... " >&6; }
45311
45312
45313cat confdefs.h - <<_ACEOF >conftest.c
45314/* confdefs.h. */
45315_ACEOF
45316cat confdefs.h >>conftest.$ac_ext
45317cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
45318/* end confdefs.h. */
45319
cae5b340
AX
45320
45321 #include <linux/fs.h>
45322 #include <linux/xattr.h>
45323
45324 static const struct inode_operations
45325 iops __attribute__ ((unused)) = {
45326 .setxattr = generic_setxattr
45327 };
45328
ea04106b 45329int
cae5b340 45330main (void)
ea04106b 45331{
cae5b340
AX
45332
45333
ea04106b
AX
45334 ;
45335 return 0;
45336}
cae5b340 45337
ea04106b
AX
45338_ACEOF
45339
ea04106b 45340
ea04106b 45341
cae5b340 45342cat - <<_ACEOF >conftest.h
ea04106b 45343
cae5b340 45344_ACEOF
ea04106b
AX
45345
45346
cae5b340
AX
45347 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45348 echo "obj-m := conftest.o" >build/Makefile
45349 modpost_flag=''
45350 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45351 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45353 (eval $ac_try) 2>&5
45354 ac_status=$?
45355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45356 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45358 (eval $ac_try) 2>&5
45359 ac_status=$?
45360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45361 (exit $ac_status); }; }; then
ea04106b 45362
cae5b340
AX
45363 { $as_echo "$as_me:$LINENO: result: yes" >&5
45364$as_echo "yes" >&6; }
ea04106b 45365
cae5b340
AX
45366cat >>confdefs.h <<\_ACEOF
45367#define HAVE_GENERIC_SETXATTR 1
45368_ACEOF
ea04106b
AX
45369
45370
ea04106b 45371else
cae5b340
AX
45372 $as_echo "$as_me: failed program was:" >&5
45373sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 45374
cae5b340
AX
45375 { $as_echo "$as_me:$LINENO: result: no" >&5
45376$as_echo "no" >&6; }
ea04106b 45377
ea04106b 45378
ea04106b 45379
cae5b340 45380fi
ea04106b 45381
cae5b340 45382 rm -Rf build
ea04106b
AX
45383
45384
ea04106b 45385
cae5b340
AX
45386 { $as_echo "$as_me:$LINENO: checking whether current_time() exists" >&5
45387$as_echo_n "checking whether current_time() exists... " >&6; }
ea04106b 45388
ea04106b 45389
cae5b340
AX
45390
45391cat confdefs.h - <<_ACEOF >conftest.c
45392/* confdefs.h. */
ea04106b 45393_ACEOF
cae5b340
AX
45394cat confdefs.h >>conftest.$ac_ext
45395cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
45396/* end confdefs.h. */
45397
cae5b340
AX
45398
45399 #include <linux/fs.h>
ea04106b
AX
45400
45401int
cae5b340 45402main (void)
ea04106b
AX
45403{
45404
cae5b340
AX
45405 struct inode ip;
45406 struct timespec now __attribute__ ((unused));
ea04106b 45407
cae5b340 45408 now = current_time(&ip);
ea04106b
AX
45409
45410 ;
45411 return 0;
45412}
cae5b340 45413
ea04106b 45414_ACEOF
ea04106b 45415
ea04106b
AX
45416
45417
cae5b340
AX
45418cat - <<_ACEOF >conftest.h
45419
45420_ACEOF
ea04106b
AX
45421
45422
cae5b340
AX
45423 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45424 echo "obj-m := conftest.o" >build/Makefile
45425 modpost_flag=''
45426 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45427 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45429 (eval $ac_try) 2>&5
45430 ac_status=$?
45431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45432 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45434 (eval $ac_try) 2>&5
45435 ac_status=$?
45436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45437 (exit $ac_status); }; }; then
45438 rc=0
ea04106b 45439else
cae5b340
AX
45440 $as_echo "$as_me: failed program was:" >&5
45441sed 's/^/| /' conftest.$ac_ext >&5
45442 rc=1
ea04106b 45443
ea04106b 45444
ea04106b
AX
45445fi
45446
cae5b340 45447 rm -Rf build
ea04106b 45448
ea04106b 45449
cae5b340 45450 if test $rc -ne 0; then :
ea04106b 45451
cae5b340
AX
45452 { $as_echo "$as_me:$LINENO: result: no" >&5
45453$as_echo "no" >&6; }
ea04106b 45454
cae5b340
AX
45455 else
45456 if test "x$enable_linux_builtin" != xyes; then
ea04106b 45457
cae5b340
AX
45458 grep -q -E '[[:space:]]current_time[[:space:]]' \
45459 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45460 rc=$?
45461 if test $rc -ne 0; then
45462 export=0
45463 for file in fs/inode.c; do
45464 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
45465 "$LINUX/$file" 2>/dev/null
45466 rc=$?
45467 if test $rc -eq 0; then
45468 export=1
45469 break;
45470 fi
45471 done
45472 if test $export -eq 0; then :
45473 rc=1
45474 else :
45475 rc=0
45476 fi
45477 else :
45478 rc=0
45479 fi
ea04106b 45480
cae5b340
AX
45481 fi
45482 if test $rc -ne 0; then :
ea04106b 45483
cae5b340
AX
45484 { $as_echo "$as_me:$LINENO: result: no" >&5
45485$as_echo "no" >&6; }
ea04106b 45486
cae5b340 45487 else :
ea04106b 45488
cae5b340
AX
45489 { $as_echo "$as_me:$LINENO: result: yes" >&5
45490$as_echo "yes" >&6; }
ea04106b 45491
cae5b340
AX
45492cat >>confdefs.h <<\_ACEOF
45493#define HAVE_CURRENT_TIME 1
45494_ACEOF
45495
45496
45497 fi
45498 fi
ea04106b 45499
cae5b340
AX
45500
45501
45502 { $as_echo "$as_me:$LINENO: checking whether to use vm_node_stat based fn's" >&5
45503$as_echo_n "checking whether to use vm_node_stat based fn's... " >&6; }
45504
45505
45506cat confdefs.h - <<_ACEOF >conftest.c
45507/* confdefs.h. */
45508_ACEOF
45509cat confdefs.h >>conftest.$ac_ext
45510cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
45511/* end confdefs.h. */
45512
cae5b340
AX
45513
45514 #include <linux/mm.h>
45515 #include <linux/vmstat.h>
45516
ea04106b 45517int
cae5b340 45518main (void)
ea04106b
AX
45519{
45520
cae5b340
AX
45521 int a __attribute__ ((unused)) = NR_VM_NODE_STAT_ITEMS;
45522 long x __attribute__ ((unused)) =
45523 atomic_long_read(&vm_node_stat[0]);
45524 (void) global_node_page_state(0);
45525
ea04106b
AX
45526 ;
45527 return 0;
45528}
cae5b340 45529
ea04106b 45530_ACEOF
ea04106b 45531
cae5b340
AX
45532
45533
45534cat - <<_ACEOF >conftest.h
45535
45536_ACEOF
45537
45538
45539 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45540 echo "obj-m := conftest.o" >build/Makefile
45541 modpost_flag=''
45542 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45543 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45545 (eval $ac_try) 2>&5
45546 ac_status=$?
45547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45548 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45550 (eval $ac_try) 2>&5
45551 ac_status=$?
45552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45553 (exit $ac_status); }; }; then
45554
45555 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
45556$as_echo "yes" >&6; }
45557
cae5b340
AX
45558cat >>confdefs.h <<\_ACEOF
45559#define ZFS_GLOBAL_NODE_PAGE_STATE 1
45560_ACEOF
45561
45562
ea04106b 45563else
cae5b340
AX
45564 $as_echo "$as_me: failed program was:" >&5
45565sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 45566
cae5b340 45567 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
45568$as_echo "no" >&6; }
45569
cae5b340
AX
45570
45571
ea04106b 45572fi
ea04106b 45573
cae5b340 45574 rm -Rf build
ea04106b
AX
45575
45576
45577
ea04106b 45578
cae5b340 45579 if test "$LINUX_OBJ" != "$LINUX"; then
ea04106b 45580
cae5b340 45581 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
ea04106b
AX
45582
45583fi
ea04106b 45584
cae5b340
AX
45585
45586
45587
45588 KERNELCPPFLAGS="$KERNELCPPFLAGS -std=gnu99"
45589 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-declaration-after-statement"
45590 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
45591 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
45592 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
45593 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
45594
45595
45596 ;;
ea04106b
AX
45597 srpm) ;;
45598 *)
cae5b340 45599 { $as_echo "$as_me:$LINENO: result: Error!" >&5
ea04106b 45600$as_echo "Error!" >&6; }
cae5b340
AX
45601 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
45602 user kernel|user|all|srpm" >&5
45603$as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
45604 user kernel|user|all|srpm" >&2;}
45605 { (exit 1); exit 1; }; } ;;
ea04106b
AX
45606 esac
45607
45608 if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then
45609 CONFIG_USER_TRUE=
45610 CONFIG_USER_FALSE='#'
45611else
45612 CONFIG_USER_TRUE='#'
45613 CONFIG_USER_FALSE=
45614fi
45615
45616 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
cae5b340 45617 test "x$enable_linux_builtin" != xyes ; then
ea04106b
AX
45618 CONFIG_KERNEL_TRUE=
45619 CONFIG_KERNEL_FALSE='#'
45620else
45621 CONFIG_KERNEL_TRUE='#'
45622 CONFIG_KERNEL_FALSE=
45623fi
45624
cae5b340
AX
45625 if test "x$user_libudev" = xyes ; then
45626 WANT_DEVNAME2DEVID_TRUE=
45627 WANT_DEVNAME2DEVID_FALSE='#'
45628else
45629 WANT_DEVNAME2DEVID_TRUE='#'
45630 WANT_DEVNAME2DEVID_FALSE=
45631fi
45632
45633 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
45634 test "x$qatsrc" != x ; then
45635 CONFIG_QAT_TRUE=
45636 CONFIG_QAT_FALSE='#'
45637else
45638 CONFIG_QAT_TRUE='#'
45639 CONFIG_QAT_FALSE=
45640fi
45641
ea04106b
AX
45642
45643
cae5b340 45644 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
ea04106b
AX
45645$as_echo_n "checking whether debugging is enabled... " >&6; }
45646 # Check whether --enable-debug was given.
cae5b340 45647if test "${enable_debug+set}" = set; then
ea04106b
AX
45648 enableval=$enable_debug;
45649else
45650 enable_debug=no
45651fi
45652
45653
cae5b340 45654 if test "x$enable_debug" = xyes; then
ea04106b
AX
45655
45656 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
45657 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
45658 DEBUG_CFLAGS="-DDEBUG -Werror"
45659 DEBUG_STACKFLAGS="-fstack-check"
45660 DEBUG_ZFS="_with_debug"
45661
cae5b340
AX
45662cat >>confdefs.h <<\_ACEOF
45663#define ZFS_DEBUG 1
45664_ACEOF
ea04106b
AX
45665
45666
45667else
45668
45669 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
45670 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
45671 DEBUG_CFLAGS="-DNDEBUG"
45672 DEBUG_STACKFLAGS=""
45673 DEBUG_ZFS="_without_debug"
45674
45675fi
45676
45677
45678
45679
ea04106b 45680
cae5b340
AX
45681 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
45682$as_echo "$enable_debug" >&6; }
ea04106b 45683
ea04106b 45684
cae5b340 45685ac_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/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/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/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/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/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 45686
ea04106b
AX
45687
45688
45689cat >confcache <<\_ACEOF
45690# This file is a shell script that caches the results of configure
45691# tests run on this system so they can be shared between configure
45692# scripts and configure runs, see configure's option --config-cache.
45693# It is not useful on other systems. If it contains results you don't
45694# want to keep, you may remove or edit it.
45695#
45696# config.status only pays attention to the cache file if you give it
45697# the --recheck option to rerun configure.
45698#
45699# `ac_cv_env_foo' variables (set or unset) will be overridden when
45700# loading this file, other *unset* `ac_cv_foo' will be assigned the
45701# following values.
45702
45703_ACEOF
45704
45705# The following way of writing the cache mishandles newlines in values,
45706# but we know of no workaround that is simple, portable, and efficient.
45707# So, we kill variables containing newlines.
45708# Ultrix sh set writes to stderr and can't be redirected directly,
45709# and sets the high bit in the cache file unless we assign to the vars.
45710(
45711 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45712 eval ac_val=\$$ac_var
45713 case $ac_val in #(
45714 *${as_nl}*)
45715 case $ac_var in #(
cae5b340 45716 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
ea04106b
AX
45717$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
45718 esac
45719 case $ac_var in #(
45720 _ | IFS | as_nl) ;; #(
45721 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cae5b340 45722 *) $as_unset $ac_var ;;
ea04106b
AX
45723 esac ;;
45724 esac
45725 done
45726
45727 (set) 2>&1 |
45728 case $as_nl`(ac_space=' '; set) 2>&1` in #(
45729 *${as_nl}ac_space=\ *)
cae5b340
AX
45730 # `set' does not quote correctly, so add quotes (double-quote
45731 # substitution turns \\\\ into \\, and sed turns \\ into \).
ea04106b
AX
45732 sed -n \
45733 "s/'/'\\\\''/g;
45734 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45735 ;; #(
45736 *)
45737 # `set' quotes correctly as required by POSIX, so do not add quotes.
45738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45739 ;;
45740 esac |
45741 sort
45742) |
45743 sed '
45744 /^ac_cv_env_/b end
45745 t clear
45746 :clear
45747 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45748 t end
45749 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45750 :end' >>confcache
45751if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
45752 if test -w "$cache_file"; then
cae5b340
AX
45753 test "x$cache_file" != "x/dev/null" &&
45754 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
ea04106b 45755$as_echo "$as_me: updating cache $cache_file" >&6;}
cae5b340 45756 cat confcache >$cache_file
ea04106b 45757 else
cae5b340 45758 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
ea04106b
AX
45759$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
45760 fi
45761fi
45762rm -f confcache
45763
45764test "x$prefix" = xNONE && prefix=$ac_default_prefix
45765# Let make expand exec_prefix.
45766test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45767
45768DEFS=-DHAVE_CONFIG_H
45769
45770ac_libobjs=
45771ac_ltlibobjs=
ea04106b
AX
45772for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45773 # 1. Remove the extension, and $U if already installed.
45774 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45775 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
45776 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
45777 # will be set to the directory where LIBOBJS objects are built.
cae5b340
AX
45778 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45779 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ea04106b
AX
45780done
45781LIBOBJS=$ac_libobjs
45782
45783LTLIBOBJS=$ac_ltlibobjs
45784
45785
45786if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cae5b340
AX
45787 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
45788Usually this means the macro was only invoked conditionally." >&5
45789$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
45790Usually this means the macro was only invoked conditionally." >&2;}
45791 { (exit 1); exit 1; }; }
45792fi
ea04106b
AX
45793 if test -n "$EXEEXT"; then
45794 am__EXEEXT_TRUE=
45795 am__EXEEXT_FALSE='#'
45796else
45797 am__EXEEXT_TRUE='#'
45798 am__EXEEXT_FALSE=
45799fi
45800
45801if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cae5b340
AX
45802 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
45803Usually this means the macro was only invoked conditionally." >&5
45804$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
45805Usually this means the macro was only invoked conditionally." >&2;}
45806 { (exit 1); exit 1; }; }
ea04106b
AX
45807fi
45808if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cae5b340
AX
45809 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
45810Usually this means the macro was only invoked conditionally." >&5
45811$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
45812Usually this means the macro was only invoked conditionally." >&2;}
45813 { (exit 1); exit 1; }; }
ea04106b
AX
45814fi
45815if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
cae5b340
AX
45816 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
45817Usually this means the macro was only invoked conditionally." >&5
45818$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
45819Usually this means the macro was only invoked conditionally." >&2;}
45820 { (exit 1); exit 1; }; }
45821fi
45822if test -z "${TARGET_ASM_X86_64_TRUE}" && test -z "${TARGET_ASM_X86_64_FALSE}"; then
45823 { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_ASM_X86_64\" was never defined.
45824Usually this means the macro was only invoked conditionally." >&5
45825$as_echo "$as_me: error: conditional \"TARGET_ASM_X86_64\" was never defined.
45826Usually this means the macro was only invoked conditionally." >&2;}
45827 { (exit 1); exit 1; }; }
45828fi
45829if test -z "${TARGET_ASM_I386_TRUE}" && test -z "${TARGET_ASM_I386_FALSE}"; then
45830 { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_ASM_I386\" was never defined.
45831Usually this means the macro was only invoked conditionally." >&5
45832$as_echo "$as_me: error: conditional \"TARGET_ASM_I386\" was never defined.
45833Usually this means the macro was only invoked conditionally." >&2;}
45834 { (exit 1); exit 1; }; }
45835fi
45836if test -z "${TARGET_ASM_GENERIC_TRUE}" && test -z "${TARGET_ASM_GENERIC_FALSE}"; then
45837 { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_ASM_GENERIC\" was never defined.
45838Usually this means the macro was only invoked conditionally." >&5
45839$as_echo "$as_me: error: conditional \"TARGET_ASM_GENERIC\" was never defined.
45840Usually this means the macro was only invoked conditionally." >&2;}
45841 { (exit 1); exit 1; }; }
ea04106b
AX
45842fi
45843if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
cae5b340
AX
45844 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
45845Usually this means the macro was only invoked conditionally." >&5
45846$as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
45847Usually this means the macro was only invoked conditionally." >&2;}
45848 { (exit 1); exit 1; }; }
ea04106b
AX
45849fi
45850if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
cae5b340
AX
45851 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
45852Usually this means the macro was only invoked conditionally." >&5
45853$as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
45854Usually this means the macro was only invoked conditionally." >&2;}
45855 { (exit 1); exit 1; }; }
45856fi
45857if test -z "${WANT_DEVNAME2DEVID_TRUE}" && test -z "${WANT_DEVNAME2DEVID_FALSE}"; then
45858 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_DEVNAME2DEVID\" was never defined.
45859Usually this means the macro was only invoked conditionally." >&5
45860$as_echo "$as_me: error: conditional \"WANT_DEVNAME2DEVID\" was never defined.
45861Usually this means the macro was only invoked conditionally." >&2;}
45862 { (exit 1); exit 1; }; }
45863fi
45864if test -z "${CONFIG_QAT_TRUE}" && test -z "${CONFIG_QAT_FALSE}"; then
45865 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_QAT\" was never defined.
45866Usually this means the macro was only invoked conditionally." >&5
45867$as_echo "$as_me: error: conditional \"CONFIG_QAT\" was never defined.
45868Usually this means the macro was only invoked conditionally." >&2;}
45869 { (exit 1); exit 1; }; }
45870fi
45871
45872: ${CONFIG_STATUS=./config.status}
ea04106b
AX
45873ac_write_fail=0
45874ac_clean_files_save=$ac_clean_files
45875ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cae5b340 45876{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
ea04106b 45877$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cae5b340 45878cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ea04106b
AX
45879#! $SHELL
45880# Generated by $as_me.
45881# Run this file to recreate the current configuration.
45882# Compiler output produced by configure, useful for debugging
45883# configure, is in config.log if it exists.
45884
45885debug=false
45886ac_cs_recheck=false
45887ac_cs_silent=false
ea04106b 45888SHELL=\${CONFIG_SHELL-$SHELL}
cae5b340
AX
45889_ACEOF
45890
45891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45892## --------------------- ##
45893## M4sh Initialization. ##
45894## --------------------- ##
ea04106b
AX
45895
45896# Be more Bourne compatible
45897DUALCASE=1; export DUALCASE # for MKS sh
cae5b340 45898if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
ea04106b
AX
45899 emulate sh
45900 NULLCMD=:
45901 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45902 # is contrary to our usage. Disable this feature.
45903 alias -g '${1+"$@"}'='"$@"'
45904 setopt NO_GLOB_SUBST
45905else
cae5b340
AX
45906 case `(set -o) 2>/dev/null` in
45907 *posix*) set -o posix ;;
ea04106b 45908esac
cae5b340 45909
ea04106b
AX
45910fi
45911
45912
cae5b340
AX
45913
45914
45915# PATH needs CR
45916# Avoid depending upon Character Ranges.
45917as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45918as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45919as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45920as_cr_digits='0123456789'
45921as_cr_alnum=$as_cr_Letters$as_cr_digits
45922
ea04106b
AX
45923as_nl='
45924'
45925export as_nl
45926# Printing a long string crashes Solaris 7 /usr/bin/printf.
45927as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45928as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45929as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cae5b340 45930if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ea04106b
AX
45931 as_echo='printf %s\n'
45932 as_echo_n='printf %s'
45933else
45934 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
45935 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
45936 as_echo_n='/usr/ucb/echo -n'
45937 else
45938 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
45939 as_echo_n_body='eval
45940 arg=$1;
cae5b340 45941 case $arg in
ea04106b
AX
45942 *"$as_nl"*)
45943 expr "X$arg" : "X\\(.*\\)$as_nl";
45944 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
45945 esac;
45946 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
45947 '
45948 export as_echo_n_body
45949 as_echo_n='sh -c $as_echo_n_body as_echo'
45950 fi
45951 export as_echo_body
45952 as_echo='sh -c $as_echo_body as_echo'
45953fi
45954
45955# The user is always right.
45956if test "${PATH_SEPARATOR+set}" != set; then
45957 PATH_SEPARATOR=:
45958 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
45959 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
45960 PATH_SEPARATOR=';'
45961 }
45962fi
45963
cae5b340
AX
45964# Support unset when possible.
45965if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
45966 as_unset=unset
45967else
45968 as_unset=false
45969fi
45970
ea04106b
AX
45971
45972# IFS
45973# We need space, tab and new line, in precisely that order. Quoting is
45974# there to prevent editors from complaining about space-tab.
45975# (If _AS_PATH_WALK were called with IFS unset, it would disable word
45976# splitting by setting IFS to empty value.)
45977IFS=" "" $as_nl"
45978
45979# Find who we are. Look in the path if we contain no directory separator.
cae5b340 45980case $0 in
ea04106b
AX
45981 *[\\/]* ) as_myself=$0 ;;
45982 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45983for as_dir in $PATH
45984do
45985 IFS=$as_save_IFS
45986 test -z "$as_dir" && as_dir=.
cae5b340
AX
45987 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45988done
ea04106b
AX
45989IFS=$as_save_IFS
45990
45991 ;;
45992esac
45993# We did not find ourselves, most probably we were run as `sh COMMAND'
45994# in which case we are not to be found in the path.
45995if test "x$as_myself" = x; then
45996 as_myself=$0
45997fi
45998if test ! -f "$as_myself"; then
45999 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cae5b340 46000 { (exit 1); exit 1; }
ea04106b
AX
46001fi
46002
cae5b340
AX
46003# Work around bugs in pre-3.0 UWIN ksh.
46004for as_var in ENV MAIL MAILPATH
46005do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
ea04106b
AX
46006done
46007PS1='$ '
46008PS2='> '
46009PS4='+ '
46010
46011# NLS nuisances.
46012LC_ALL=C
46013export LC_ALL
46014LANGUAGE=C
46015export LANGUAGE
46016
cae5b340 46017# Required to use basename.
ea04106b
AX
46018if expr a : '\(a\)' >/dev/null 2>&1 &&
46019 test "X`expr 00001 : '.*\(...\)'`" = X001; then
46020 as_expr=expr
46021else
46022 as_expr=false
46023fi
46024
46025if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
46026 as_basename=basename
46027else
46028 as_basename=false
46029fi
46030
ea04106b 46031
cae5b340 46032# Name of the executable.
ea04106b
AX
46033as_me=`$as_basename -- "$0" ||
46034$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46035 X"$0" : 'X\(//\)$' \| \
46036 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
46037$as_echo X/"$0" |
46038 sed '/^.*\/\([^/][^/]*\)\/*$/{
46039 s//\1/
46040 q
46041 }
46042 /^X\/\(\/\/\)$/{
46043 s//\1/
46044 q
46045 }
46046 /^X\/\(\/\).*/{
46047 s//\1/
46048 q
46049 }
46050 s/.*/./; q'`
46051
cae5b340
AX
46052# CDPATH.
46053$as_unset CDPATH
46054
46055
46056
46057 as_lineno_1=$LINENO
46058 as_lineno_2=$LINENO
46059 test "x$as_lineno_1" != "x$as_lineno_2" &&
46060 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
46061
46062 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46063 # uniformly replaced by the line number. The first 'sed' inserts a
46064 # line-number line after each line using $LINENO; the second 'sed'
46065 # does the real work. The second script uses 'N' to pair each
46066 # line-number line with the line containing $LINENO, and appends
46067 # trailing '-' during substitution so that $LINENO is not a special
46068 # case at line end.
46069 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46070 # scripts with optimization help from Paolo Bonzini. Blame Lee
46071 # E. McMahon (1931-1989) for sed's syntax. :-)
46072 sed -n '
46073 p
46074 /[$]LINENO/=
46075 ' <$as_myself |
46076 sed '
46077 s/[$]LINENO.*/&-/
46078 t lineno
46079 b
46080 :lineno
46081 N
46082 :loop
46083 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
46084 t loop
46085 s/-\n.*//
46086 ' >$as_me.lineno &&
46087 chmod +x "$as_me.lineno" ||
46088 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
46089 { (exit 1); exit 1; }; }
46090
46091 # Don't try to exec as it changes $[0], causing all sort of problems
46092 # (the dirname of $[0] is not the place where we might find the
46093 # original and so on. Autoconf is especially sensitive to this).
46094 . "./$as_me.lineno"
46095 # Exit status is that of the last command.
46096 exit
46097}
46098
46099
46100if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
46101 as_dirname=dirname
46102else
46103 as_dirname=false
46104fi
ea04106b
AX
46105
46106ECHO_C= ECHO_N= ECHO_T=
cae5b340 46107case `echo -n x` in
ea04106b 46108-n*)
cae5b340 46109 case `echo 'x\c'` in
ea04106b 46110 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cae5b340 46111 *) ECHO_C='\c';;
ea04106b
AX
46112 esac;;
46113*)
46114 ECHO_N='-n';;
46115esac
cae5b340
AX
46116if expr a : '\(a\)' >/dev/null 2>&1 &&
46117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
46118 as_expr=expr
46119else
46120 as_expr=false
46121fi
ea04106b
AX
46122
46123rm -f conf$$ conf$$.exe conf$$.file
46124if test -d conf$$.dir; then
46125 rm -f conf$$.dir/conf$$.file
46126else
46127 rm -f conf$$.dir
46128 mkdir conf$$.dir 2>/dev/null
46129fi
46130if (echo >conf$$.file) 2>/dev/null; then
46131 if ln -s conf$$.file conf$$ 2>/dev/null; then
46132 as_ln_s='ln -s'
46133 # ... but there are two gotchas:
46134 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
46135 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cae5b340 46136 # In both cases, we have to default to `cp -p'.
ea04106b 46137 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cae5b340 46138 as_ln_s='cp -p'
ea04106b
AX
46139 elif ln conf$$.file conf$$ 2>/dev/null; then
46140 as_ln_s=ln
46141 else
cae5b340 46142 as_ln_s='cp -p'
ea04106b
AX
46143 fi
46144else
cae5b340 46145 as_ln_s='cp -p'
ea04106b
AX
46146fi
46147rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
46148rmdir conf$$.dir 2>/dev/null
46149
ea04106b 46150if mkdir -p . 2>/dev/null; then
cae5b340 46151 as_mkdir_p=:
ea04106b
AX
46152else
46153 test -d ./-p && rmdir ./-p
46154 as_mkdir_p=false
46155fi
46156
cae5b340
AX
46157if test -x / >/dev/null 2>&1; then
46158 as_test_x='test -x'
46159else
46160 if ls -dL / >/dev/null 2>&1; then
46161 as_ls_L_option=L
46162 else
46163 as_ls_L_option=
46164 fi
46165 as_test_x='
46166 eval sh -c '\''
46167 if test -d "$1"; then
46168 test -d "$1/.";
46169 else
46170 case $1 in
46171 -*)set "./$1";;
46172 esac;
46173 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
46174 ???[sx]*):;;*)false;;esac;fi
46175 '\'' sh
46176 '
46177fi
46178as_executable_p=$as_test_x
ea04106b
AX
46179
46180# Sed expression to map a string onto a valid CPP name.
46181as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
46182
46183# Sed expression to map a string onto a valid variable name.
46184as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
46185
46186
46187exec 6>&1
ea04106b 46188
cae5b340 46189# Save the log message, to keep $[0] and so on meaningful, and to
ea04106b
AX
46190# report actual input values of CONFIG_FILES etc. instead of their
46191# values after options handling.
46192ac_log="
047218e2 46193This file was extended by zfs $as_me 0.7.6, which was
cae5b340 46194generated by GNU Autoconf 2.63. Invocation command line was
ea04106b
AX
46195
46196 CONFIG_FILES = $CONFIG_FILES
46197 CONFIG_HEADERS = $CONFIG_HEADERS
46198 CONFIG_LINKS = $CONFIG_LINKS
46199 CONFIG_COMMANDS = $CONFIG_COMMANDS
46200 $ $0 $@
46201
46202on `(hostname || uname -n) 2>/dev/null | sed 1q`
46203"
46204
46205_ACEOF
46206
46207case $ac_config_files in *"
46208"*) set x $ac_config_files; shift; ac_config_files=$*;;
46209esac
46210
46211case $ac_config_headers in *"
46212"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
46213esac
46214
46215
46216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46217# Files that config.status was made for.
46218config_files="$ac_config_files"
46219config_headers="$ac_config_headers"
46220config_commands="$ac_config_commands"
46221
46222_ACEOF
46223
46224cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46225ac_cs_usage="\
cae5b340
AX
46226\`$as_me' instantiates files from templates according to the
46227current configuration.
ea04106b 46228
cae5b340 46229Usage: $0 [OPTION]... [FILE]...
ea04106b
AX
46230
46231 -h, --help print this help, then exit
46232 -V, --version print version number and configuration settings, then exit
ea04106b
AX
46233 -q, --quiet, --silent
46234 do not print progress messages
46235 -d, --debug don't remove temporary files
46236 --recheck update $as_me by reconfiguring in the same conditions
46237 --file=FILE[:TEMPLATE]
46238 instantiate the configuration file FILE
46239 --header=FILE[:TEMPLATE]
46240 instantiate the configuration header FILE
46241
46242Configuration files:
46243$config_files
46244
46245Configuration headers:
46246$config_headers
46247
46248Configuration commands:
46249$config_commands
46250
cae5b340 46251Report bugs to <bug-autoconf@gnu.org>."
ea04106b
AX
46252
46253_ACEOF
46254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ea04106b 46255ac_cs_version="\\
047218e2 46256zfs config.status 0.7.6
cae5b340
AX
46257configured by $0, generated by GNU Autoconf 2.63,
46258 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ea04106b 46259
cae5b340 46260Copyright (C) 2008 Free Software Foundation, Inc.
ea04106b
AX
46261This config.status script is free software; the Free Software Foundation
46262gives unlimited permission to copy, distribute and modify it."
46263
46264ac_pwd='$ac_pwd'
46265srcdir='$srcdir'
46266INSTALL='$INSTALL'
46267MKDIR_P='$MKDIR_P'
46268AWK='$AWK'
46269test -n "\$AWK" || AWK=awk
46270_ACEOF
46271
46272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46273# The default lists apply if the user does not specify any file.
46274ac_need_defaults=:
46275while test $# != 0
46276do
46277 case $1 in
cae5b340 46278 --*=*)
ea04106b
AX
46279 ac_option=`expr "X$1" : 'X\([^=]*\)='`
46280 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
46281 ac_shift=:
46282 ;;
ea04106b
AX
46283 *)
46284 ac_option=$1
46285 ac_optarg=$2
46286 ac_shift=shift
46287 ;;
46288 esac
46289
46290 case $ac_option in
46291 # Handling of the options.
46292 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46293 ac_cs_recheck=: ;;
46294 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
46295 $as_echo "$ac_cs_version"; exit ;;
ea04106b
AX
46296 --debug | --debu | --deb | --de | --d | -d )
46297 debug=: ;;
46298 --file | --fil | --fi | --f )
46299 $ac_shift
46300 case $ac_optarg in
46301 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
ea04106b 46302 esac
cae5b340 46303 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ea04106b
AX
46304 ac_need_defaults=false;;
46305 --header | --heade | --head | --hea )
46306 $ac_shift
46307 case $ac_optarg in
46308 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46309 esac
cae5b340 46310 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ea04106b
AX
46311 ac_need_defaults=false;;
46312 --he | --h)
46313 # Conflict between --help and --header
cae5b340
AX
46314 { $as_echo "$as_me: error: ambiguous option: $1
46315Try \`$0 --help' for more information." >&2
46316 { (exit 1); exit 1; }; };;
ea04106b
AX
46317 --help | --hel | -h )
46318 $as_echo "$ac_cs_usage"; exit ;;
46319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46320 | -silent | --silent | --silen | --sile | --sil | --si | --s)
46321 ac_cs_silent=: ;;
46322
46323 # This is an error.
cae5b340
AX
46324 -*) { $as_echo "$as_me: error: unrecognized option: $1
46325Try \`$0 --help' for more information." >&2
46326 { (exit 1); exit 1; }; } ;;
ea04106b 46327
cae5b340 46328 *) ac_config_targets="$ac_config_targets $1"
ea04106b
AX
46329 ac_need_defaults=false ;;
46330
46331 esac
46332 shift
46333done
46334
46335ac_configure_extra_args=
46336
46337if $ac_cs_silent; then
46338 exec 6>/dev/null
46339 ac_configure_extra_args="$ac_configure_extra_args --silent"
46340fi
46341
46342_ACEOF
46343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46344if \$ac_cs_recheck; then
cae5b340 46345 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
ea04106b
AX
46346 shift
46347 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
46348 CONFIG_SHELL='$SHELL'
46349 export CONFIG_SHELL
46350 exec "\$@"
46351fi
46352
46353_ACEOF
46354cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46355exec 5>>config.log
46356{
46357 echo
46358 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46359## Running $as_me. ##
46360_ASBOX
46361 $as_echo "$ac_log"
46362} >&5
46363
46364_ACEOF
46365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46366#
46367# INIT-COMMANDS
46368#
46369AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
46370
46371
46372# The HP-UX ksh and POSIX shell print the target directory to stdout
46373# if CDPATH is set.
46374(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
46375
46376sed_quote_subst='$sed_quote_subst'
46377double_quote_subst='$double_quote_subst'
46378delay_variable_subst='$delay_variable_subst'
cae5b340
AX
46379macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
46380macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
46381enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
46382enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
46383pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
46384enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
46385host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
46386host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
46387host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
46388build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
46389build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
46390build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
46391SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
46392Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
46393GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
46394EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
46395FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
46396LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
46397NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
46398LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
46399max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
46400ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
46401exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
46402lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
46403lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
46404lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
46405reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
46406reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46407OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
46408deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
46409file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
46410AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
46411AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
46412STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
46413RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
46414old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46415old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46416old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46417CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
46418CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
46419compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
46420GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
46421lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
46422lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
46423lt_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"`'
46424lt_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"`'
46425objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
46426SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
46427ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
46428MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
46429lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
46430lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
46431lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
46432lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
46433lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
46434need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
46435DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
46436NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
46437LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
46438OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
46439OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
46440libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
46441shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46442extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46443archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
46444enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
46445export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46446whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46447compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
46448old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46449old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46450archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46451archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46452module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46453module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46454with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
46455allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
46456no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
46457hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46458hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
46459hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
46460hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
46461hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
46462hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
46463hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46464hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
46465inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
46466link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
46467fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
46468always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
46469export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46470exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
46471include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
46472prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46473file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
46474variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
46475need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
46476need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
46477version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
46478runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46479shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46480shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
46481libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
46482library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
46483soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
46484postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46485postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46486finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46487finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
46488hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
46489sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
46490sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
46491hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
46492enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
46493enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
46494enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
46495old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
46496striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
ea04106b
AX
46497
46498LTCC='$LTCC'
46499LTCFLAGS='$LTCFLAGS'
46500compiler='$compiler_DEFAULT'
46501
ea04106b 46502# Quote evaled strings.
cae5b340 46503for var in SED \
ea04106b
AX
46504GREP \
46505EGREP \
46506FGREP \
46507LD \
46508NM \
46509LN_S \
46510lt_SP2NL \
46511lt_NL2SP \
46512reload_flag \
46513OBJDUMP \
46514deplibs_check_method \
46515file_magic_cmd \
ea04106b
AX
46516AR \
46517AR_FLAGS \
ea04106b
AX
46518STRIP \
46519RANLIB \
46520CC \
46521CFLAGS \
46522compiler \
46523lt_cv_sys_global_symbol_pipe \
46524lt_cv_sys_global_symbol_to_cdecl \
46525lt_cv_sys_global_symbol_to_c_name_address \
46526lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cae5b340
AX
46527SHELL \
46528ECHO \
ea04106b 46529lt_prog_compiler_no_builtin_flag \
ea04106b 46530lt_prog_compiler_wl \
cae5b340 46531lt_prog_compiler_pic \
ea04106b
AX
46532lt_prog_compiler_static \
46533lt_cv_prog_compiler_c_o \
46534need_locks \
ea04106b
AX
46535DSYMUTIL \
46536NMEDIT \
46537LIPO \
46538OTOOL \
46539OTOOL64 \
46540shrext_cmds \
46541export_dynamic_flag_spec \
46542whole_archive_flag_spec \
46543compiler_needs_object \
46544with_gnu_ld \
46545allow_undefined_flag \
46546no_undefined_flag \
46547hardcode_libdir_flag_spec \
cae5b340 46548hardcode_libdir_flag_spec_ld \
ea04106b 46549hardcode_libdir_separator \
cae5b340 46550fix_srcfile_path \
ea04106b
AX
46551exclude_expsyms \
46552include_expsyms \
46553file_list_spec \
46554variables_saved_for_relink \
46555libname_spec \
46556library_names_spec \
46557soname_spec \
ea04106b
AX
46558finish_eval \
46559old_striplib \
46560striplib; do
cae5b340 46561 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
ea04106b 46562 *[\\\\\\\`\\"\\\$]*)
cae5b340 46563 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
ea04106b
AX
46564 ;;
46565 *)
46566 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46567 ;;
46568 esac
46569done
46570
46571# Double-quote double-evaled strings.
46572for var in reload_cmds \
46573old_postinstall_cmds \
46574old_postuninstall_cmds \
46575old_archive_cmds \
46576extract_expsyms_cmds \
46577old_archive_from_new_cmds \
46578old_archive_from_expsyms_cmds \
46579archive_cmds \
46580archive_expsym_cmds \
46581module_cmds \
46582module_expsym_cmds \
46583export_symbols_cmds \
46584prelink_cmds \
ea04106b
AX
46585postinstall_cmds \
46586postuninstall_cmds \
46587finish_cmds \
46588sys_lib_search_path_spec \
cae5b340
AX
46589sys_lib_dlsearch_path_spec; do
46590 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
ea04106b 46591 *[\\\\\\\`\\"\\\$]*)
cae5b340 46592 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
ea04106b
AX
46593 ;;
46594 *)
46595 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46596 ;;
46597 esac
46598done
46599
cae5b340
AX
46600# Fix-up fallback echo if it was mangled by the above quoting rules.
46601case \$lt_ECHO in
46602*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
46603 ;;
46604esac
46605
ea04106b 46606ac_aux_dir='$ac_aux_dir'
cae5b340
AX
46607xsi_shell='$xsi_shell'
46608lt_shell_append='$lt_shell_append'
ea04106b 46609
cae5b340 46610# See if we are running on zsh, and set the options which allow our
ea04106b 46611# commands through without removal of \ escapes INIT.
cae5b340 46612if test -n "\${ZSH_VERSION+set}" ; then
ea04106b
AX
46613 setopt NO_GLOB_SUBST
46614fi
46615
46616
46617 PACKAGE='$PACKAGE'
46618 VERSION='$VERSION'
cae5b340 46619 TIMESTAMP='$TIMESTAMP'
ea04106b
AX
46620 RM='$RM'
46621 ofile='$ofile'
46622
46623
46624
46625
46626_ACEOF
46627
46628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46629
46630# Handling of arguments.
46631for ac_config_target in $ac_config_targets
46632do
46633 case $ac_config_target in
46634 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
46635 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
46636 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
46637 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
ea04106b
AX
46638 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
46639 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
46640 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
46641 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
46642 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
46643 "etc/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/Makefile" ;;
46644 "etc/systemd/system/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/system/Makefile" ;;
cae5b340 46645 "etc/sudoers.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/sudoers.d/Makefile" ;;
ea04106b
AX
46646 "etc/modules-load.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/modules-load.d/Makefile" ;;
46647 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
46648 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
46649 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
46650 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
46651 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
46652 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
46653 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
46654 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
46655 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
46656 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
46657 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
46658 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
46659 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
46660 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
ea04106b
AX
46661 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
46662 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
46663 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
46664 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
cae5b340 46665 "lib/libicp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libicp/Makefile" ;;
ea04106b
AX
46666 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
46667 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
46668 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
46669 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
46670 "lib/libzfs/libzfs.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs.pc" ;;
46671 "lib/libzfs/libzfs_core.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs_core.pc" ;;
46672 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
46673 "lib/libzfs_core/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs_core/Makefile" ;;
46674 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
46675 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
46676 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
46677 "cmd/zhack/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zhack/Makefile" ;;
46678 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
46679 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
46680 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
46681 "cmd/zstreamdump/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
46682 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
46683 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
46684 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
46685 "cmd/fsck_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
46686 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
46687 "cmd/vdev_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
46688 "cmd/arcstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arcstat/Makefile" ;;
46689 "cmd/dbufstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/dbufstat/Makefile" ;;
46690 "cmd/arc_summary/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arc_summary/Makefile" ;;
46691 "cmd/zed/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zed/Makefile" ;;
cae5b340
AX
46692 "cmd/raidz_test/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/raidz_test/Makefile" ;;
46693 "cmd/zgenhostid/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zgenhostid/Makefile" ;;
ea04106b
AX
46694 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
46695 "contrib/bash_completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/bash_completion.d/Makefile" ;;
e10b0808 46696 "contrib/dracut/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/Makefile" ;;
cae5b340 46697 "contrib/dracut/02zfsexpandknowledge/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/02zfsexpandknowledge/Makefile" ;;
e10b0808
AX
46698 "contrib/dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/90zfs/Makefile" ;;
46699 "contrib/initramfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/initramfs/Makefile" ;;
ea04106b
AX
46700 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
46701 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
46702 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
46703 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
46704 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
46705 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
46706 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
cae5b340 46707 "module/icp/Makefile") CONFIG_FILES="$CONFIG_FILES module/icp/Makefile" ;;
ea04106b
AX
46708 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
46709 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
46710 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
46711 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
46712 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
46713 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
cae5b340
AX
46714 "include/sys/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/crypto/Makefile" ;;
46715 "include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
ea04106b
AX
46716 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
46717 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
46718 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
46719 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
46720 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
cae5b340
AX
46721 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
46722 "tests/test-runner/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/Makefile" ;;
46723 "tests/test-runner/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/cmd/Makefile" ;;
46724 "tests/test-runner/include/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/include/Makefile" ;;
46725 "tests/test-runner/man/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/man/Makefile" ;;
46726 "tests/runfiles/Makefile") CONFIG_FILES="$CONFIG_FILES tests/runfiles/Makefile" ;;
46727 "tests/zfs-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/Makefile" ;;
46728 "tests/zfs-tests/callbacks/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/callbacks/Makefile" ;;
46729 "tests/zfs-tests/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/Makefile" ;;
46730 "tests/zfs-tests/cmd/chg_usr_exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/chg_usr_exec/Makefile" ;;
46731 "tests/zfs-tests/cmd/devname2devid/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/devname2devid/Makefile" ;;
46732 "tests/zfs-tests/cmd/dir_rd_update/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/dir_rd_update/Makefile" ;;
46733 "tests/zfs-tests/cmd/file_check/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/file_check/Makefile" ;;
46734 "tests/zfs-tests/cmd/file_trunc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/file_trunc/Makefile" ;;
46735 "tests/zfs-tests/cmd/file_write/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/file_write/Makefile" ;;
46736 "tests/zfs-tests/cmd/largest_file/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/largest_file/Makefile" ;;
46737 "tests/zfs-tests/cmd/mkbusy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mkbusy/Makefile" ;;
46738 "tests/zfs-tests/cmd/mkfile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mkfile/Makefile" ;;
46739 "tests/zfs-tests/cmd/mkfiles/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mkfiles/Makefile" ;;
46740 "tests/zfs-tests/cmd/mktree/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mktree/Makefile" ;;
46741 "tests/zfs-tests/cmd/mmap_exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mmap_exec/Makefile" ;;
46742 "tests/zfs-tests/cmd/mmapwrite/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mmapwrite/Makefile" ;;
46743 "tests/zfs-tests/cmd/randfree_file/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/randfree_file/Makefile" ;;
46744 "tests/zfs-tests/cmd/readmmap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/readmmap/Makefile" ;;
46745 "tests/zfs-tests/cmd/rename_dir/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/rename_dir/Makefile" ;;
46746 "tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile" ;;
46747 "tests/zfs-tests/cmd/threadsappend/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/threadsappend/Makefile" ;;
46748 "tests/zfs-tests/cmd/xattrtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/xattrtest/Makefile" ;;
46749 "tests/zfs-tests/include/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/include/Makefile" ;;
46750 "tests/zfs-tests/include/default.cfg") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/include/default.cfg" ;;
46751 "tests/zfs-tests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/Makefile" ;;
46752 "tests/zfs-tests/tests/functional/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/Makefile" ;;
46753 "tests/zfs-tests/tests/functional/acl/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/acl/Makefile" ;;
46754 "tests/zfs-tests/tests/functional/acl/posix/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/acl/posix/Makefile" ;;
46755 "tests/zfs-tests/tests/functional/atime/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/atime/Makefile" ;;
46756 "tests/zfs-tests/tests/functional/bootfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/bootfs/Makefile" ;;
46757 "tests/zfs-tests/tests/functional/cache/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cache/Makefile" ;;
46758 "tests/zfs-tests/tests/functional/cachefile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cachefile/Makefile" ;;
46759 "tests/zfs-tests/tests/functional/casenorm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/casenorm/Makefile" ;;
46760 "tests/zfs-tests/tests/functional/checksum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/checksum/Makefile" ;;
46761 "tests/zfs-tests/tests/functional/chattr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/chattr/Makefile" ;;
46762 "tests/zfs-tests/tests/functional/clean_mirror/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/clean_mirror/Makefile" ;;
46763 "tests/zfs-tests/tests/functional/cli_root/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/Makefile" ;;
46764 "tests/zfs-tests/tests/functional/cli_root/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zdb/Makefile" ;;
46765 "tests/zfs-tests/tests/functional/cli_root/zfs_clone/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_clone/Makefile" ;;
46766 "tests/zfs-tests/tests/functional/cli_root/zfs_copies/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_copies/Makefile" ;;
46767 "tests/zfs-tests/tests/functional/cli_root/zfs_create/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_create/Makefile" ;;
46768 "tests/zfs-tests/tests/functional/cli_root/zfs_destroy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_destroy/Makefile" ;;
46769 "tests/zfs-tests/tests/functional/cli_root/zfs_get/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_get/Makefile" ;;
46770 "tests/zfs-tests/tests/functional/cli_root/zfs_inherit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_inherit/Makefile" ;;
46771 "tests/zfs-tests/tests/functional/cli_root/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs/Makefile" ;;
46772 "tests/zfs-tests/tests/functional/cli_root/zfs_mount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_mount/Makefile" ;;
46773 "tests/zfs-tests/tests/functional/cli_root/zfs_promote/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_promote/Makefile" ;;
46774 "tests/zfs-tests/tests/functional/cli_root/zfs_property/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_property/Makefile" ;;
46775 "tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile" ;;
46776 "tests/zfs-tests/tests/functional/cli_root/zfs_rename/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_rename/Makefile" ;;
46777 "tests/zfs-tests/tests/functional/cli_root/zfs_reservation/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_reservation/Makefile" ;;
46778 "tests/zfs-tests/tests/functional/cli_root/zfs_rollback/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_rollback/Makefile" ;;
46779 "tests/zfs-tests/tests/functional/cli_root/zfs_send/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_send/Makefile" ;;
46780 "tests/zfs-tests/tests/functional/cli_root/zfs_set/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_set/Makefile" ;;
46781 "tests/zfs-tests/tests/functional/cli_root/zfs_share/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_share/Makefile" ;;
46782 "tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/Makefile" ;;
46783 "tests/zfs-tests/tests/functional/cli_root/zfs_unmount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_unmount/Makefile" ;;
46784 "tests/zfs-tests/tests/functional/cli_root/zfs_unshare/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_unshare/Makefile" ;;
46785 "tests/zfs-tests/tests/functional/cli_root/zfs_upgrade/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_upgrade/Makefile" ;;
46786 "tests/zfs-tests/tests/functional/cli_root/zpool_add/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_add/Makefile" ;;
46787 "tests/zfs-tests/tests/functional/cli_root/zpool_attach/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_attach/Makefile" ;;
46788 "tests/zfs-tests/tests/functional/cli_root/zpool_clear/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_clear/Makefile" ;;
46789 "tests/zfs-tests/tests/functional/cli_root/zpool_create/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_create/Makefile" ;;
46790 "tests/zfs-tests/tests/functional/cli_root/zpool_destroy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_destroy/Makefile" ;;
46791 "tests/zfs-tests/tests/functional/cli_root/zpool_detach/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_detach/Makefile" ;;
46792 "tests/zfs-tests/tests/functional/cli_root/zpool_expand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_expand/Makefile" ;;
46793 "tests/zfs-tests/tests/functional/cli_root/zpool_export/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_export/Makefile" ;;
46794 "tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile" ;;
46795 "tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile" ;;
46796 "tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile" ;;
46797 "tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/Makefile" ;;
46798 "tests/zfs-tests/tests/functional/cli_root/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool/Makefile" ;;
46799 "tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile" ;;
46800 "tests/zfs-tests/tests/functional/cli_root/zpool_online/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_online/Makefile" ;;
46801 "tests/zfs-tests/tests/functional/cli_root/zpool_remove/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_remove/Makefile" ;;
46802 "tests/zfs-tests/tests/functional/cli_root/zpool_replace/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_replace/Makefile" ;;
46803 "tests/zfs-tests/tests/functional/cli_root/zpool_scrub/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_scrub/Makefile" ;;
46804 "tests/zfs-tests/tests/functional/cli_root/zpool_set/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_set/Makefile" ;;
46805 "tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile" ;;
46806 "tests/zfs-tests/tests/functional/cli_root/zpool_sync/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_sync/Makefile" ;;
46807 "tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile" ;;
46808 "tests/zfs-tests/tests/functional/cli_user/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/Makefile" ;;
46809 "tests/zfs-tests/tests/functional/cli_user/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/misc/Makefile" ;;
46810 "tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile" ;;
46811 "tests/zfs-tests/tests/functional/cli_user/zpool_iostat/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/zpool_iostat/Makefile" ;;
46812 "tests/zfs-tests/tests/functional/cli_user/zpool_list/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/zpool_list/Makefile" ;;
46813 "tests/zfs-tests/tests/functional/compression/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/compression/Makefile" ;;
46814 "tests/zfs-tests/tests/functional/ctime/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/ctime/Makefile" ;;
46815 "tests/zfs-tests/tests/functional/delegate/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/delegate/Makefile" ;;
46816 "tests/zfs-tests/tests/functional/devices/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/devices/Makefile" ;;
46817 "tests/zfs-tests/tests/functional/events/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/events/Makefile" ;;
46818 "tests/zfs-tests/tests/functional/exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/exec/Makefile" ;;
46819 "tests/zfs-tests/tests/functional/fault/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/fault/Makefile" ;;
46820 "tests/zfs-tests/tests/functional/features/async_destroy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/features/async_destroy/Makefile" ;;
46821 "tests/zfs-tests/tests/functional/features/large_dnode/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/features/large_dnode/Makefile" ;;
46822 "tests/zfs-tests/tests/functional/features/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/features/Makefile" ;;
46823 "tests/zfs-tests/tests/functional/grow_pool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/grow_pool/Makefile" ;;
46824 "tests/zfs-tests/tests/functional/grow_replicas/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/grow_replicas/Makefile" ;;
46825 "tests/zfs-tests/tests/functional/history/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/history/Makefile" ;;
46826 "tests/zfs-tests/tests/functional/inheritance/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/inheritance/Makefile" ;;
46827 "tests/zfs-tests/tests/functional/inuse/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/inuse/Makefile" ;;
46828 "tests/zfs-tests/tests/functional/large_files/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/large_files/Makefile" ;;
46829 "tests/zfs-tests/tests/functional/largest_pool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/largest_pool/Makefile" ;;
46830 "tests/zfs-tests/tests/functional/link_count/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/link_count/Makefile" ;;
46831 "tests/zfs-tests/tests/functional/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/libzfs/Makefile" ;;
46832 "tests/zfs-tests/tests/functional/migration/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/migration/Makefile" ;;
46833 "tests/zfs-tests/tests/functional/mmap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mmap/Makefile" ;;
46834 "tests/zfs-tests/tests/functional/mmp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mmp/Makefile" ;;
46835 "tests/zfs-tests/tests/functional/mount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mount/Makefile" ;;
46836 "tests/zfs-tests/tests/functional/mv_files/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mv_files/Makefile" ;;
46837 "tests/zfs-tests/tests/functional/nestedfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/nestedfs/Makefile" ;;
46838 "tests/zfs-tests/tests/functional/no_space/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/no_space/Makefile" ;;
46839 "tests/zfs-tests/tests/functional/nopwrite/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/nopwrite/Makefile" ;;
46840 "tests/zfs-tests/tests/functional/online_offline/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/online_offline/Makefile" ;;
46841 "tests/zfs-tests/tests/functional/pool_names/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/pool_names/Makefile" ;;
46842 "tests/zfs-tests/tests/functional/poolversion/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/poolversion/Makefile" ;;
46843 "tests/zfs-tests/tests/functional/privilege/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/privilege/Makefile" ;;
46844 "tests/zfs-tests/tests/functional/quota/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/quota/Makefile" ;;
46845 "tests/zfs-tests/tests/functional/raidz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/raidz/Makefile" ;;
46846 "tests/zfs-tests/tests/functional/redundancy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/redundancy/Makefile" ;;
46847 "tests/zfs-tests/tests/functional/refquota/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/refquota/Makefile" ;;
46848 "tests/zfs-tests/tests/functional/refreserv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/refreserv/Makefile" ;;
46849 "tests/zfs-tests/tests/functional/rename_dirs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/rename_dirs/Makefile" ;;
46850 "tests/zfs-tests/tests/functional/replacement/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/replacement/Makefile" ;;
46851 "tests/zfs-tests/tests/functional/reservation/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/reservation/Makefile" ;;
46852 "tests/zfs-tests/tests/functional/rootpool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/rootpool/Makefile" ;;
46853 "tests/zfs-tests/tests/functional/rsend/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/rsend/Makefile" ;;
46854 "tests/zfs-tests/tests/functional/scrub_mirror/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/scrub_mirror/Makefile" ;;
46855 "tests/zfs-tests/tests/functional/slog/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/slog/Makefile" ;;
46856 "tests/zfs-tests/tests/functional/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/snapshot/Makefile" ;;
46857 "tests/zfs-tests/tests/functional/snapused/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/snapused/Makefile" ;;
46858 "tests/zfs-tests/tests/functional/sparse/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/sparse/Makefile" ;;
46859 "tests/zfs-tests/tests/functional/threadsappend/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/threadsappend/Makefile" ;;
46860 "tests/zfs-tests/tests/functional/tmpfile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/tmpfile/Makefile" ;;
46861 "tests/zfs-tests/tests/functional/truncate/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/truncate/Makefile" ;;
46862 "tests/zfs-tests/tests/functional/userquota/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/userquota/Makefile" ;;
46863 "tests/zfs-tests/tests/functional/upgrade/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/upgrade/Makefile" ;;
46864 "tests/zfs-tests/tests/functional/vdev_zaps/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/vdev_zaps/Makefile" ;;
46865 "tests/zfs-tests/tests/functional/write_dirs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/write_dirs/Makefile" ;;
46866 "tests/zfs-tests/tests/functional/xattr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/xattr/Makefile" ;;
46867 "tests/zfs-tests/tests/functional/zvol/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/Makefile" ;;
46868 "tests/zfs-tests/tests/functional/zvol/zvol_cli/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_cli/Makefile" ;;
46869 "tests/zfs-tests/tests/functional/zvol/zvol_ENOSPC/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_ENOSPC/Makefile" ;;
46870 "tests/zfs-tests/tests/functional/zvol/zvol_misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_misc/Makefile" ;;
46871 "tests/zfs-tests/tests/functional/zvol/zvol_swap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_swap/Makefile" ;;
46872 "tests/zfs-tests/tests/perf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/Makefile" ;;
46873 "tests/zfs-tests/tests/perf/fio/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/fio/Makefile" ;;
46874 "tests/zfs-tests/tests/perf/regression/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/regression/Makefile" ;;
46875 "tests/zfs-tests/tests/perf/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/scripts/Makefile" ;;
46876 "tests/zfs-tests/tests/stress/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/stress/Makefile" ;;
ea04106b
AX
46877 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
46878 "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;;
46879 "rpm/redhat/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs.spec" ;;
46880 "rpm/redhat/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-kmod.spec" ;;
46881 "rpm/redhat/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-dkms.spec" ;;
46882 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
46883 "rpm/generic/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs.spec" ;;
46884 "rpm/generic/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
46885 "rpm/generic/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
46886 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
46887 "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;;
46888
cae5b340
AX
46889 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
46890$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
46891 { (exit 1); exit 1; }; };;
ea04106b
AX
46892 esac
46893done
46894
46895
46896# If the user did not use the arguments to specify the items to instantiate,
46897# then the envvar interface is used. Set only those that are not.
46898# We use the long form for the default assignment because of an extremely
46899# bizarre bug on SunOS 4.1.3.
46900if $ac_need_defaults; then
46901 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46902 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46903 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46904fi
46905
46906# Have a temporary directory for convenience. Make it in the build tree
46907# simply because there is no reason against having it here, and in addition,
46908# creating and moving files from /tmp can sometimes cause problems.
46909# Hook for its removal unless debugging.
46910# Note that there is a small window in which the directory will not be cleaned:
46911# after its creation but before its name has been assigned to `$tmp'.
46912$debug ||
46913{
cae5b340 46914 tmp=
ea04106b 46915 trap 'exit_status=$?
cae5b340 46916 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
ea04106b 46917' 0
cae5b340 46918 trap '{ (exit 1); exit 1; }' 1 2 13 15
ea04106b
AX
46919}
46920# Create a (secure) tmp directory for tmp files.
46921
46922{
46923 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cae5b340 46924 test -n "$tmp" && test -d "$tmp"
ea04106b
AX
46925} ||
46926{
46927 tmp=./conf$$-$RANDOM
46928 (umask 077 && mkdir "$tmp")
cae5b340
AX
46929} ||
46930{
46931 $as_echo "$as_me: cannot create a temporary directory in ." >&2
46932 { (exit 1); exit 1; }
46933}
ea04106b
AX
46934
46935# Set up the scripts for CONFIG_FILES section.
46936# No need to generate them if there are no CONFIG_FILES.
46937# This happens for instance with `./config.status config.h'.
46938if test -n "$CONFIG_FILES"; then
46939
46940
cae5b340 46941ac_cr='\r'
ea04106b
AX
46942ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
46943if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
46944 ac_cs_awk_cr='\\r'
46945else
46946 ac_cs_awk_cr=$ac_cr
46947fi
46948
cae5b340 46949echo 'BEGIN {' >"$tmp/subs1.awk" &&
ea04106b
AX
46950_ACEOF
46951
46952
46953{
46954 echo "cat >conf$$subs.awk <<_ACEOF" &&
46955 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
46956 echo "_ACEOF"
46957} >conf$$subs.sh ||
cae5b340
AX
46958 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46959$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46960 { (exit 1); exit 1; }; }
46961ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
ea04106b
AX
46962ac_delim='%!_!# '
46963for ac_last_try in false false false false false :; do
46964 . ./conf$$subs.sh ||
cae5b340
AX
46965 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46966$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46967 { (exit 1); exit 1; }; }
ea04106b
AX
46968
46969 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
46970 if test $ac_delim_n = $ac_delim_num; then
46971 break
46972 elif $ac_last_try; then
cae5b340
AX
46973 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46974$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46975 { (exit 1); exit 1; }; }
ea04106b
AX
46976 else
46977 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46978 fi
46979done
46980rm -f conf$$subs.sh
46981
46982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cae5b340 46983cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
ea04106b
AX
46984_ACEOF
46985sed -n '
46986h
46987s/^/S["/; s/!.*/"]=/
46988p
46989g
46990s/^[^!]*!//
46991:repl
46992t repl
46993s/'"$ac_delim"'$//
46994t delim
46995:nl
46996h
cae5b340 46997s/\(.\{148\}\).*/\1/
ea04106b
AX
46998t more1
46999s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
47000p
47001n
47002b repl
47003:more1
47004s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47005p
47006g
47007s/.\{148\}//
47008t nl
47009:delim
47010h
cae5b340 47011s/\(.\{148\}\).*/\1/
ea04106b
AX
47012t more2
47013s/["\\]/\\&/g; s/^/"/; s/$/"/
47014p
47015b
47016:more2
47017s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47018p
47019g
47020s/.\{148\}//
47021t delim
47022' <conf$$subs.awk | sed '
47023/^[^""]/{
47024 N
47025 s/\n//
47026}
47027' >>$CONFIG_STATUS || ac_write_fail=1
47028rm -f conf$$subs.awk
47029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47030_ACAWK
cae5b340 47031cat >>"\$tmp/subs1.awk" <<_ACAWK &&
ea04106b
AX
47032 for (key in S) S_is_set[key] = 1
47033 FS = "\a"
47034
47035}
47036{
47037 line = $ 0
47038 nfields = split(line, field, "@")
47039 substed = 0
47040 len = length(field[1])
47041 for (i = 2; i < nfields; i++) {
47042 key = field[i]
47043 keylen = length(key)
47044 if (S_is_set[key]) {
47045 value = S[key]
47046 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
47047 len += length(value) + length(field[++i])
47048 substed = 1
47049 } else
47050 len += 1 + keylen
47051 }
47052
47053 print line
47054}
47055
47056_ACAWK
47057_ACEOF
47058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47059if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
47060 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
47061else
47062 cat
cae5b340
AX
47063fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
47064 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
47065$as_echo "$as_me: error: could not setup config files machinery" >&2;}
47066 { (exit 1); exit 1; }; }
ea04106b
AX
47067_ACEOF
47068
cae5b340
AX
47069# VPATH may cause trouble with some makes, so we remove $(srcdir),
47070# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
ea04106b
AX
47071# trailing colons and then remove the whole line if VPATH becomes empty
47072# (actually we leave an empty line to preserve line numbers).
47073if test "x$srcdir" = x.; then
cae5b340
AX
47074 ac_vpsub='/^[ ]*VPATH[ ]*=/{
47075s/:*\$(srcdir):*/:/
47076s/:*\${srcdir}:*/:/
47077s/:*@srcdir@:*/:/
47078s/^\([^=]*=[ ]*\):*/\1/
ea04106b 47079s/:*$//
ea04106b
AX
47080s/^[^=]*=[ ]*$//
47081}'
47082fi
47083
47084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47085fi # test -n "$CONFIG_FILES"
47086
47087# Set up the scripts for CONFIG_HEADERS section.
47088# No need to generate them if there are no CONFIG_HEADERS.
47089# This happens for instance with `./config.status Makefile'.
47090if test -n "$CONFIG_HEADERS"; then
cae5b340 47091cat >"$tmp/defines.awk" <<\_ACAWK ||
ea04106b
AX
47092BEGIN {
47093_ACEOF
47094
47095# Transform confdefs.h into an awk script `defines.awk', embedded as
47096# here-document in config.status, that substitutes the proper values into
47097# config.h.in to produce config.h.
47098
47099# Create a delimiter string that does not exist in confdefs.h, to ease
47100# handling of long lines.
47101ac_delim='%!_!# '
47102for ac_last_try in false false :; do
cae5b340
AX
47103 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
47104 if test -z "$ac_t"; then
ea04106b
AX
47105 break
47106 elif $ac_last_try; then
cae5b340
AX
47107 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
47108$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
47109 { (exit 1); exit 1; }; }
ea04106b
AX
47110 else
47111 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47112 fi
47113done
47114
47115# For the awk script, D is an array of macro values keyed by name,
47116# likewise P contains macro parameters if any. Preserve backslash
47117# newline sequences.
47118
47119ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
47120sed -n '
47121s/.\{148\}/&'"$ac_delim"'/g
47122t rset
47123:rset
47124s/^[ ]*#[ ]*define[ ][ ]*/ /
47125t def
47126d
47127:def
47128s/\\$//
47129t bsnl
47130s/["\\]/\\&/g
47131s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
47132D["\1"]=" \3"/p
47133s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
47134d
47135:bsnl
47136s/["\\]/\\&/g
47137s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
47138D["\1"]=" \3\\\\\\n"\\/p
47139t cont
47140s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
47141t cont
47142d
47143:cont
47144n
47145s/.\{148\}/&'"$ac_delim"'/g
47146t clear
47147:clear
47148s/\\$//
47149t bsnlc
47150s/["\\]/\\&/g; s/^/"/; s/$/"/p
47151d
47152:bsnlc
47153s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
47154b cont
47155' <confdefs.h | sed '
47156s/'"$ac_delim"'/"\\\
47157"/g' >>$CONFIG_STATUS || ac_write_fail=1
47158
47159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47160 for (key in D) D_is_set[key] = 1
47161 FS = "\a"
47162}
47163/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
47164 line = \$ 0
47165 split(line, arg, " ")
47166 if (arg[1] == "#") {
47167 defundef = arg[2]
47168 mac1 = arg[3]
47169 } else {
47170 defundef = substr(arg[1], 2)
47171 mac1 = arg[2]
47172 }
47173 split(mac1, mac2, "(") #)
47174 macro = mac2[1]
47175 prefix = substr(line, 1, index(line, defundef) - 1)
47176 if (D_is_set[macro]) {
47177 # Preserve the white space surrounding the "#".
47178 print prefix "define", macro P[macro] D[macro]
47179 next
47180 } else {
47181 # Replace #undef with comments. This is necessary, for example,
47182 # in the case of _POSIX_SOURCE, which is predefined and required
47183 # on some systems where configure will not decide to define it.
47184 if (defundef == "undef") {
47185 print "/*", prefix defundef, macro, "*/"
47186 next
47187 }
47188 }
47189}
47190{ print }
47191_ACAWK
47192_ACEOF
47193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cae5b340
AX
47194 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
47195$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
47196 { (exit 1); exit 1; }; }
ea04106b
AX
47197fi # test -n "$CONFIG_HEADERS"
47198
47199
47200eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
47201shift
47202for ac_tag
47203do
47204 case $ac_tag in
47205 :[FHLC]) ac_mode=$ac_tag; continue;;
47206 esac
47207 case $ac_mode$ac_tag in
47208 :[FHL]*:*);;
cae5b340
AX
47209 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
47210$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
47211 { (exit 1); exit 1; }; };;
ea04106b
AX
47212 :[FH]-) ac_tag=-:-;;
47213 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
47214 esac
47215 ac_save_IFS=$IFS
47216 IFS=:
47217 set x $ac_tag
47218 IFS=$ac_save_IFS
47219 shift
47220 ac_file=$1
47221 shift
47222
47223 case $ac_mode in
47224 :L) ac_source=$1;;
47225 :[FH])
47226 ac_file_inputs=
47227 for ac_f
47228 do
47229 case $ac_f in
cae5b340 47230 -) ac_f="$tmp/stdin";;
ea04106b
AX
47231 *) # Look for the file first in the build tree, then in the source tree
47232 # (if the path is not absolute). The absolute path cannot be DOS-style,
47233 # because $ac_f cannot contain `:'.
47234 test -f "$ac_f" ||
47235 case $ac_f in
47236 [\\/$]*) false;;
47237 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
47238 esac ||
cae5b340
AX
47239 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
47240$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
47241 { (exit 1); exit 1; }; };;
ea04106b
AX
47242 esac
47243 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cae5b340 47244 ac_file_inputs="$ac_file_inputs '$ac_f'"
ea04106b
AX
47245 done
47246
47247 # Let's still pretend it is `configure' which instantiates (i.e., don't
47248 # use $as_me), people would be surprised to read:
47249 # /* config.h. Generated by config.status. */
47250 configure_input='Generated from '`
47251 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
47252 `' by configure.'
47253 if test x"$ac_file" != x-; then
47254 configure_input="$ac_file. $configure_input"
cae5b340 47255 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
ea04106b
AX
47256$as_echo "$as_me: creating $ac_file" >&6;}
47257 fi
47258 # Neutralize special characters interpreted by sed in replacement strings.
47259 case $configure_input in #(
47260 *\&* | *\|* | *\\* )
47261 ac_sed_conf_input=`$as_echo "$configure_input" |
47262 sed 's/[\\\\&|]/\\\\&/g'`;; #(
47263 *) ac_sed_conf_input=$configure_input;;
47264 esac
47265
47266 case $ac_tag in
cae5b340
AX
47267 *:-:* | *:-) cat >"$tmp/stdin" \
47268 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47269$as_echo "$as_me: error: could not create $ac_file" >&2;}
47270 { (exit 1); exit 1; }; } ;;
ea04106b
AX
47271 esac
47272 ;;
47273 esac
47274
47275 ac_dir=`$as_dirname -- "$ac_file" ||
47276$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47277 X"$ac_file" : 'X\(//\)[^/]' \| \
47278 X"$ac_file" : 'X\(//\)$' \| \
47279 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
47280$as_echo X"$ac_file" |
47281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47282 s//\1/
47283 q
47284 }
47285 /^X\(\/\/\)[^/].*/{
47286 s//\1/
47287 q
47288 }
47289 /^X\(\/\/\)$/{
47290 s//\1/
47291 q
47292 }
47293 /^X\(\/\).*/{
47294 s//\1/
47295 q
47296 }
47297 s/.*/./; q'`
cae5b340
AX
47298 { as_dir="$ac_dir"
47299 case $as_dir in #(
47300 -*) as_dir=./$as_dir;;
47301 esac
47302 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
47303 as_dirs=
47304 while :; do
47305 case $as_dir in #(
47306 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
47307 *) as_qdir=$as_dir;;
47308 esac
47309 as_dirs="'$as_qdir' $as_dirs"
47310 as_dir=`$as_dirname -- "$as_dir" ||
47311$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47312 X"$as_dir" : 'X\(//\)[^/]' \| \
47313 X"$as_dir" : 'X\(//\)$' \| \
47314 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
47315$as_echo X"$as_dir" |
47316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47317 s//\1/
47318 q
47319 }
47320 /^X\(\/\/\)[^/].*/{
47321 s//\1/
47322 q
47323 }
47324 /^X\(\/\/\)$/{
47325 s//\1/
47326 q
47327 }
47328 /^X\(\/\).*/{
47329 s//\1/
47330 q
47331 }
47332 s/.*/./; q'`
47333 test -d "$as_dir" && break
47334 done
47335 test -z "$as_dirs" || eval "mkdir $as_dirs"
47336 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
47337$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
47338 { (exit 1); exit 1; }; }; }
ea04106b
AX
47339 ac_builddir=.
47340
47341case "$ac_dir" in
47342.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
47343*)
47344 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
47345 # A ".." for each directory in $ac_dir_suffix.
47346 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
47347 case $ac_top_builddir_sub in
47348 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
47349 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
47350 esac ;;
47351esac
47352ac_abs_top_builddir=$ac_pwd
47353ac_abs_builddir=$ac_pwd$ac_dir_suffix
47354# for backward compatibility:
47355ac_top_builddir=$ac_top_build_prefix
47356
47357case $srcdir in
47358 .) # We are building in place.
47359 ac_srcdir=.
47360 ac_top_srcdir=$ac_top_builddir_sub
47361 ac_abs_top_srcdir=$ac_pwd ;;
47362 [\\/]* | ?:[\\/]* ) # Absolute name.
47363 ac_srcdir=$srcdir$ac_dir_suffix;
47364 ac_top_srcdir=$srcdir
47365 ac_abs_top_srcdir=$srcdir ;;
47366 *) # Relative name.
47367 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
47368 ac_top_srcdir=$ac_top_build_prefix$srcdir
47369 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
47370esac
47371ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
47372
47373
47374 case $ac_mode in
47375 :F)
47376 #
47377 # CONFIG_FILE
47378 #
47379
47380 case $INSTALL in
47381 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47382 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
47383 esac
47384 ac_MKDIR_P=$MKDIR_P
47385 case $MKDIR_P in
47386 [\\/$]* | ?:[\\/]* ) ;;
47387 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
47388 esac
47389_ACEOF
47390
47391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47392# If the template does not know about datarootdir, expand it.
47393# FIXME: This hack should be removed a few years after 2.60.
47394ac_datarootdir_hack=; ac_datarootdir_seen=
cae5b340 47395
ea04106b
AX
47396ac_sed_dataroot='
47397/datarootdir/ {
47398 p
47399 q
47400}
47401/@datadir@/p
47402/@docdir@/p
47403/@infodir@/p
47404/@localedir@/p
cae5b340
AX
47405/@mandir@/p
47406'
ea04106b
AX
47407case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
47408*datarootdir*) ac_datarootdir_seen=yes;;
47409*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cae5b340 47410 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
ea04106b
AX
47411$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
47412_ACEOF
47413cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47414 ac_datarootdir_hack='
47415 s&@datadir@&$datadir&g
47416 s&@docdir@&$docdir&g
47417 s&@infodir@&$infodir&g
47418 s&@localedir@&$localedir&g
47419 s&@mandir@&$mandir&g
cae5b340 47420 s&\\\${datarootdir}&$datarootdir&g' ;;
ea04106b
AX
47421esac
47422_ACEOF
47423
47424# Neutralize VPATH when `$srcdir' = `.'.
47425# Shell code in configure.ac might set extrasub.
47426# FIXME: do we really want to maintain this feature?
47427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47428ac_sed_extra="$ac_vpsub
47429$extrasub
47430_ACEOF
47431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47432:t
47433/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47434s|@configure_input@|$ac_sed_conf_input|;t t
47435s&@top_builddir@&$ac_top_builddir_sub&;t t
47436s&@top_build_prefix@&$ac_top_build_prefix&;t t
47437s&@srcdir@&$ac_srcdir&;t t
47438s&@abs_srcdir@&$ac_abs_srcdir&;t t
47439s&@top_srcdir@&$ac_top_srcdir&;t t
47440s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
47441s&@builddir@&$ac_builddir&;t t
47442s&@abs_builddir@&$ac_abs_builddir&;t t
47443s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
47444s&@INSTALL@&$ac_INSTALL&;t t
47445s&@MKDIR_P@&$ac_MKDIR_P&;t t
47446$ac_datarootdir_hack
47447"
cae5b340
AX
47448eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
47449 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47450$as_echo "$as_me: error: could not create $ac_file" >&2;}
47451 { (exit 1); exit 1; }; }
ea04106b
AX
47452
47453test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cae5b340
AX
47454 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
47455 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
47456 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47457which seems to be undefined. Please make sure it is defined." >&5
ea04106b 47458$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cae5b340 47459which seems to be undefined. Please make sure it is defined." >&2;}
ea04106b 47460
cae5b340 47461 rm -f "$tmp/stdin"
ea04106b 47462 case $ac_file in
cae5b340
AX
47463 -) cat "$tmp/out" && rm -f "$tmp/out";;
47464 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
ea04106b 47465 esac \
cae5b340
AX
47466 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47467$as_echo "$as_me: error: could not create $ac_file" >&2;}
47468 { (exit 1); exit 1; }; }
ea04106b
AX
47469 ;;
47470 :H)
47471 #
47472 # CONFIG_HEADER
47473 #
47474 if test x"$ac_file" != x-; then
47475 {
47476 $as_echo "/* $configure_input */" \
cae5b340
AX
47477 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
47478 } >"$tmp/config.h" \
47479 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47480$as_echo "$as_me: error: could not create $ac_file" >&2;}
47481 { (exit 1); exit 1; }; }
47482 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
47483 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
ea04106b
AX
47484$as_echo "$as_me: $ac_file is unchanged" >&6;}
47485 else
47486 rm -f "$ac_file"
cae5b340
AX
47487 mv "$tmp/config.h" "$ac_file" \
47488 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47489$as_echo "$as_me: error: could not create $ac_file" >&2;}
47490 { (exit 1); exit 1; }; }
ea04106b
AX
47491 fi
47492 else
47493 $as_echo "/* $configure_input */" \
cae5b340
AX
47494 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
47495 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
47496$as_echo "$as_me: error: could not create -" >&2;}
47497 { (exit 1); exit 1; }; }
ea04106b
AX
47498 fi
47499# Compute "$ac_file"'s index in $config_headers.
47500_am_arg="$ac_file"
47501_am_stamp_count=1
47502for _am_header in $config_headers :; do
47503 case $_am_header in
47504 $_am_arg | $_am_arg:* )
47505 break ;;
47506 * )
47507 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
47508 esac
47509done
47510echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
47511$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47512 X"$_am_arg" : 'X\(//\)[^/]' \| \
47513 X"$_am_arg" : 'X\(//\)$' \| \
47514 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
47515$as_echo X"$_am_arg" |
47516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47517 s//\1/
47518 q
47519 }
47520 /^X\(\/\/\)[^/].*/{
47521 s//\1/
47522 q
47523 }
47524 /^X\(\/\/\)$/{
47525 s//\1/
47526 q
47527 }
47528 /^X\(\/\).*/{
47529 s//\1/
47530 q
47531 }
47532 s/.*/./; q'`/stamp-h$_am_stamp_count
47533 ;;
47534
cae5b340 47535 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
ea04106b
AX
47536$as_echo "$as_me: executing $ac_file commands" >&6;}
47537 ;;
47538 esac
47539
47540
47541 case $ac_file$ac_mode in
47542 "zfs_config.h":H)
47543 (mv zfs_config.h zfs_config.h.tmp &&
47544 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
47545 rm zfs_config.h.tmp) || exit 1 ;;
47546 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cae5b340 47547 # Autoconf 2.62 quotes --file arguments for eval, but not when files
ea04106b
AX
47548 # are listed without --file. Let's play safe and only enable the eval
47549 # if we detect the quoting.
47550 case $CONFIG_FILES in
47551 *\'*) eval set x "$CONFIG_FILES" ;;
47552 *) set x $CONFIG_FILES ;;
47553 esac
47554 shift
47555 for mf
47556 do
47557 # Strip MF so we end up with the name of the file.
47558 mf=`echo "$mf" | sed -e 's/:.*$//'`
47559 # Check whether this is an Automake generated Makefile or not.
cae5b340 47560 # We used to match only the files named `Makefile.in', but
ea04106b
AX
47561 # some people rename them; so instead we look at the file content.
47562 # Grep'ing the first line is not enough: some people post-process
47563 # each Makefile.in and add a new line on top of each file to say so.
47564 # Grep'ing the whole file is not good either: AIX grep has a line
47565 # limit of 2048, but all sed's we know have understand at least 4000.
47566 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
47567 dirpart=`$as_dirname -- "$mf" ||
47568$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47569 X"$mf" : 'X\(//\)[^/]' \| \
47570 X"$mf" : 'X\(//\)$' \| \
47571 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
47572$as_echo X"$mf" |
47573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47574 s//\1/
47575 q
47576 }
47577 /^X\(\/\/\)[^/].*/{
47578 s//\1/
47579 q
47580 }
47581 /^X\(\/\/\)$/{
47582 s//\1/
47583 q
47584 }
47585 /^X\(\/\).*/{
47586 s//\1/
47587 q
47588 }
47589 s/.*/./; q'`
47590 else
47591 continue
47592 fi
47593 # Extract the definition of DEPDIR, am__include, and am__quote
cae5b340 47594 # from the Makefile without running `make'.
ea04106b
AX
47595 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
47596 test -z "$DEPDIR" && continue
47597 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cae5b340 47598 test -z "am__include" && continue
ea04106b 47599 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cae5b340
AX
47600 # When using ansi2knr, U may be empty or an underscore; expand it
47601 U=`sed -n 's/^U = //p' < "$mf"`
ea04106b
AX
47602 # Find all dependency output files, they are included files with
47603 # $(DEPDIR) in their names. We invoke sed twice because it is the
47604 # simplest approach to changing $(DEPDIR) to its actual value in the
47605 # expansion.
47606 for file in `sed -n "
47607 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cae5b340 47608 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
ea04106b
AX
47609 # Make sure the directory exists.
47610 test -f "$dirpart/$file" && continue
47611 fdir=`$as_dirname -- "$file" ||
47612$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47613 X"$file" : 'X\(//\)[^/]' \| \
47614 X"$file" : 'X\(//\)$' \| \
47615 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
47616$as_echo X"$file" |
47617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47618 s//\1/
47619 q
47620 }
47621 /^X\(\/\/\)[^/].*/{
47622 s//\1/
47623 q
47624 }
47625 /^X\(\/\/\)$/{
47626 s//\1/
47627 q
47628 }
47629 /^X\(\/\).*/{
47630 s//\1/
47631 q
47632 }
47633 s/.*/./; q'`
cae5b340
AX
47634 { as_dir=$dirpart/$fdir
47635 case $as_dir in #(
47636 -*) as_dir=./$as_dir;;
47637 esac
47638 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
47639 as_dirs=
47640 while :; do
47641 case $as_dir in #(
47642 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
47643 *) as_qdir=$as_dir;;
47644 esac
47645 as_dirs="'$as_qdir' $as_dirs"
47646 as_dir=`$as_dirname -- "$as_dir" ||
47647$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47648 X"$as_dir" : 'X\(//\)[^/]' \| \
47649 X"$as_dir" : 'X\(//\)$' \| \
47650 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
47651$as_echo X"$as_dir" |
47652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47653 s//\1/
47654 q
47655 }
47656 /^X\(\/\/\)[^/].*/{
47657 s//\1/
47658 q
47659 }
47660 /^X\(\/\/\)$/{
47661 s//\1/
47662 q
47663 }
47664 /^X\(\/\).*/{
47665 s//\1/
47666 q
47667 }
47668 s/.*/./; q'`
47669 test -d "$as_dir" && break
47670 done
47671 test -z "$as_dirs" || eval "mkdir $as_dirs"
47672 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
47673$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
47674 { (exit 1); exit 1; }; }; }
ea04106b
AX
47675 # echo "creating $dirpart/$file"
47676 echo '# dummy' > "$dirpart/$file"
47677 done
47678 done
47679}
47680 ;;
47681 "libtool":C)
47682
cae5b340 47683 # See if we are running on zsh, and set the options which allow our
ea04106b 47684 # commands through without removal of \ escapes.
cae5b340 47685 if test -n "${ZSH_VERSION+set}" ; then
ea04106b
AX
47686 setopt NO_GLOB_SUBST
47687 fi
47688
cae5b340 47689 cfgfile="${ofile}T"
ea04106b
AX
47690 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
47691 $RM "$cfgfile"
47692
47693 cat <<_LT_EOF >> "$cfgfile"
47694#! $SHELL
cae5b340
AX
47695
47696# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
47697# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
ea04106b
AX
47698# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
47699# NOTE: Changes made to this file will be lost: look at ltmain.sh.
47700#
cae5b340
AX
47701# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
47702# 2006, 2007, 2008 Free Software Foundation, Inc.
47703# Written by Gordon Matzigkeit, 1996
47704#
47705# This file is part of GNU Libtool.
ea04106b 47706#
cae5b340
AX
47707# GNU Libtool is free software; you can redistribute it and/or
47708# modify it under the terms of the GNU General Public License as
47709# published by the Free Software Foundation; either version 2 of
47710# the License, or (at your option) any later version.
47711#
47712# As a special exception to the GNU General Public License,
47713# if you distribute this file as part of a program or library that
47714# is built using GNU Libtool, you may include this file under the
47715# same distribution terms that you use for the rest of that program.
47716#
47717# GNU Libtool is distributed in the hope that it will be useful,
47718# but WITHOUT ANY WARRANTY; without even the implied warranty of
ea04106b
AX
47719# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47720# GNU General Public License for more details.
47721#
47722# You should have received a copy of the GNU General Public License
cae5b340
AX
47723# along with GNU Libtool; see the file COPYING. If not, a copy
47724# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
47725# obtained by writing to the Free Software Foundation, Inc.,
47726# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
ea04106b
AX
47727
47728
47729# The names of the tagged configurations supported by this script.
cae5b340 47730available_tags=""
ea04106b
AX
47731
47732# ### BEGIN LIBTOOL CONFIG
47733
47734# Which release of libtool.m4 was used?
47735macro_version=$macro_version
47736macro_revision=$macro_revision
47737
47738# Whether or not to build shared libraries.
47739build_libtool_libs=$enable_shared
47740
47741# Whether or not to build static libraries.
47742build_old_libs=$enable_static
47743
47744# What type of objects to build.
47745pic_mode=$pic_mode
47746
47747# Whether or not to optimize for fast installation.
47748fast_install=$enable_fast_install
47749
ea04106b
AX
47750# The host system.
47751host_alias=$host_alias
47752host=$host
47753host_os=$host_os
47754
47755# The build system.
47756build_alias=$build_alias
47757build=$build
47758build_os=$build_os
47759
47760# A sed program that does not truncate output.
47761SED=$lt_SED
47762
47763# Sed that helps us avoid accidentally triggering echo(1) options like -n.
47764Xsed="\$SED -e 1s/^X//"
47765
47766# A grep program that handles long lines.
47767GREP=$lt_GREP
47768
47769# An ERE matcher.
47770EGREP=$lt_EGREP
47771
47772# A literal string matcher.
47773FGREP=$lt_FGREP
47774
47775# A BSD- or MS-compatible name lister.
47776NM=$lt_NM
47777
47778# Whether we need soft or hard links.
47779LN_S=$lt_LN_S
47780
47781# What is the maximum length of a command?
47782max_cmd_len=$max_cmd_len
47783
47784# Object file suffix (normally "o").
47785objext=$ac_objext
47786
47787# Executable file suffix (normally "").
47788exeext=$exeext
47789
47790# whether the shell understands "unset".
47791lt_unset=$lt_unset
47792
47793# turn spaces into newlines.
47794SP2NL=$lt_lt_SP2NL
47795
47796# turn newlines into spaces.
47797NL2SP=$lt_lt_NL2SP
47798
cae5b340
AX
47799# How to create reloadable object files.
47800reload_flag=$lt_reload_flag
47801reload_cmds=$lt_reload_cmds
ea04106b
AX
47802
47803# An object symbol dumper.
47804OBJDUMP=$lt_OBJDUMP
47805
47806# Method to check whether dependent libraries are shared objects.
47807deplibs_check_method=$lt_deplibs_check_method
47808
cae5b340 47809# Command to use when deplibs_check_method == "file_magic".
ea04106b
AX
47810file_magic_cmd=$lt_file_magic_cmd
47811
ea04106b
AX
47812# The archiver.
47813AR=$lt_AR
ea04106b
AX
47814AR_FLAGS=$lt_AR_FLAGS
47815
ea04106b
AX
47816# A symbol stripping program.
47817STRIP=$lt_STRIP
47818
47819# Commands used to install an old-style archive.
47820RANLIB=$lt_RANLIB
47821old_postinstall_cmds=$lt_old_postinstall_cmds
47822old_postuninstall_cmds=$lt_old_postuninstall_cmds
47823
ea04106b
AX
47824# A C compiler.
47825LTCC=$lt_CC
47826
47827# LTCC compiler flags.
47828LTCFLAGS=$lt_CFLAGS
47829
47830# Take the output of nm and produce a listing of raw symbols and C names.
47831global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47832
47833# Transform the output of nm in a proper C declaration.
47834global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47835
47836# Transform the output of nm in a C name address pair.
47837global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47838
47839# Transform the output of nm in a C name address pair when lib prefix is needed.
47840global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
47841
ea04106b
AX
47842# The name of the directory that contains temporary libtool files.
47843objdir=$objdir
47844
cae5b340
AX
47845# Shell to use when invoking shell scripts.
47846SHELL=$lt_SHELL
47847
47848# An echo program that does not interpret backslashes.
47849ECHO=$lt_ECHO
47850
ea04106b
AX
47851# Used to examine libraries when file_magic_cmd begins with "file".
47852MAGIC_CMD=$MAGIC_CMD
47853
47854# Must we lock files when doing compilation?
47855need_locks=$lt_need_locks
47856
ea04106b
AX
47857# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47858DSYMUTIL=$lt_DSYMUTIL
47859
47860# Tool to change global to local symbols on Mac OS X.
47861NMEDIT=$lt_NMEDIT
47862
47863# Tool to manipulate fat objects and archives on Mac OS X.
47864LIPO=$lt_LIPO
47865
47866# ldd/readelf like tool for Mach-O binaries on Mac OS X.
47867OTOOL=$lt_OTOOL
47868
47869# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47870OTOOL64=$lt_OTOOL64
47871
47872# Old archive suffix (normally "a").
47873libext=$libext
47874
47875# Shared library suffix (normally ".so").
47876shrext_cmds=$lt_shrext_cmds
47877
47878# The commands to extract the exported symbol list from a shared archive.
47879extract_expsyms_cmds=$lt_extract_expsyms_cmds
47880
47881# Variables whose values should be saved in libtool wrapper scripts and
47882# restored at link time.
47883variables_saved_for_relink=$lt_variables_saved_for_relink
47884
47885# Do we need the "lib" prefix for modules?
47886need_lib_prefix=$need_lib_prefix
47887
47888# Do we need a version for libraries?
47889need_version=$need_version
47890
47891# Library versioning type.
47892version_type=$version_type
47893
47894# Shared library runtime path variable.
47895runpath_var=$runpath_var
47896
47897# Shared library path variable.
47898shlibpath_var=$shlibpath_var
47899
47900# Is shlibpath searched before the hard-coded library search path?
47901shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47902
47903# Format of library name prefix.
47904libname_spec=$lt_libname_spec
47905
47906# List of archive names. First name is the real one, the rest are links.
47907# The last name is the one that the linker finds with -lNAME
47908library_names_spec=$lt_library_names_spec
47909
47910# The coded name of the library, if different from the real name.
47911soname_spec=$lt_soname_spec
47912
ea04106b
AX
47913# Command to use after installation of a shared archive.
47914postinstall_cmds=$lt_postinstall_cmds
47915
47916# Command to use after uninstallation of a shared archive.
47917postuninstall_cmds=$lt_postuninstall_cmds
47918
47919# Commands used to finish a libtool library installation in a directory.
47920finish_cmds=$lt_finish_cmds
47921
47922# As "finish_cmds", except a single script fragment to be evaled but
47923# not shown.
47924finish_eval=$lt_finish_eval
47925
47926# Whether we should hardcode library paths into libraries.
47927hardcode_into_libs=$hardcode_into_libs
47928
47929# Compile-time system search path for libraries.
47930sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47931
cae5b340
AX
47932# Run-time system search path for libraries.
47933sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
ea04106b
AX
47934
47935# Whether dlopen is supported.
47936dlopen_support=$enable_dlopen
47937
47938# Whether dlopen of programs is supported.
47939dlopen_self=$enable_dlopen_self
47940
47941# Whether dlopen of statically linked programs is supported.
47942dlopen_self_static=$enable_dlopen_self_static
47943
47944# Commands to strip libraries.
47945old_striplib=$lt_old_striplib
47946striplib=$lt_striplib
47947
47948
47949# The linker used to build libraries.
47950LD=$lt_LD
47951
ea04106b
AX
47952# Commands used to build an old-style archive.
47953old_archive_cmds=$lt_old_archive_cmds
47954
47955# A language specific compiler.
47956CC=$lt_compiler
47957
47958# Is the compiler the GNU compiler?
47959with_gcc=$GCC
47960
47961# Compiler flag to turn off builtin functions.
47962no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47963
ea04106b
AX
47964# How to pass a linker flag through the compiler.
47965wl=$lt_lt_prog_compiler_wl
47966
cae5b340
AX
47967# Additional compiler flags for building library objects.
47968pic_flag=$lt_lt_prog_compiler_pic
47969
ea04106b
AX
47970# Compiler flag to prevent dynamic linking.
47971link_static_flag=$lt_lt_prog_compiler_static
47972
47973# Does compiler simultaneously support -c and -o options?
47974compiler_c_o=$lt_lt_cv_prog_compiler_c_o
47975
47976# Whether or not to add -lc for building shared libraries.
47977build_libtool_need_lc=$archive_cmds_need_lc
47978
47979# Whether or not to disallow shared libs when runtime libs are static.
47980allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
47981
47982# Compiler flag to allow reflexive dlopens.
47983export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
47984
47985# Compiler flag to generate shared objects directly from archives.
47986whole_archive_flag_spec=$lt_whole_archive_flag_spec
47987
47988# Whether the compiler copes with passing no objects directly.
47989compiler_needs_object=$lt_compiler_needs_object
47990
47991# Create an old-style archive from a shared archive.
47992old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
47993
47994# Create a temporary old-style archive to link instead of a shared archive.
47995old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
47996
47997# Commands used to build a shared archive.
47998archive_cmds=$lt_archive_cmds
47999archive_expsym_cmds=$lt_archive_expsym_cmds
48000
48001# Commands used to build a loadable module if different from building
48002# a shared archive.
48003module_cmds=$lt_module_cmds
48004module_expsym_cmds=$lt_module_expsym_cmds
48005
48006# Whether we are building with GNU ld or not.
48007with_gnu_ld=$lt_with_gnu_ld
48008
48009# Flag that allows shared libraries with undefined symbols to be built.
48010allow_undefined_flag=$lt_allow_undefined_flag
48011
48012# Flag that enforces no undefined symbols.
48013no_undefined_flag=$lt_no_undefined_flag
48014
48015# Flag to hardcode \$libdir into a binary during linking.
48016# This must work even if \$libdir does not exist
48017hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
48018
cae5b340
AX
48019# If ld is used when linking, flag to hardcode \$libdir into a binary
48020# during linking. This must work even if \$libdir does not exist.
48021hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
48022
ea04106b
AX
48023# Whether we need a single "-rpath" flag with a separated argument.
48024hardcode_libdir_separator=$lt_hardcode_libdir_separator
48025
cae5b340 48026# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
ea04106b
AX
48027# DIR into the resulting binary.
48028hardcode_direct=$hardcode_direct
48029
cae5b340 48030# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
ea04106b 48031# DIR into the resulting binary and the resulting library dependency is
cae5b340 48032# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
ea04106b
AX
48033# library is relocated.
48034hardcode_direct_absolute=$hardcode_direct_absolute
48035
48036# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48037# into the resulting binary.
48038hardcode_minus_L=$hardcode_minus_L
48039
48040# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48041# into the resulting binary.
48042hardcode_shlibpath_var=$hardcode_shlibpath_var
48043
48044# Set to "yes" if building a shared library automatically hardcodes DIR
48045# into the library and all subsequent libraries and executables linked
48046# against it.
48047hardcode_automatic=$hardcode_automatic
48048
48049# Set to yes if linker adds runtime paths of dependent libraries
48050# to runtime path list.
48051inherit_rpath=$inherit_rpath
48052
48053# Whether libtool must link a program against all its dependency libraries.
48054link_all_deplibs=$link_all_deplibs
48055
cae5b340
AX
48056# Fix the shell variable \$srcfile for the compiler.
48057fix_srcfile_path=$lt_fix_srcfile_path
48058
ea04106b
AX
48059# Set to "yes" if exported symbols are required.
48060always_export_symbols=$always_export_symbols
48061
48062# The commands to list exported symbols.
48063export_symbols_cmds=$lt_export_symbols_cmds
48064
48065# Symbols that should not be listed in the preloaded symbols.
48066exclude_expsyms=$lt_exclude_expsyms
48067
48068# Symbols that must always be exported.
48069include_expsyms=$lt_include_expsyms
48070
48071# Commands necessary for linking programs (against libraries) with templates.
48072prelink_cmds=$lt_prelink_cmds
48073
ea04106b
AX
48074# Specify filename containing input files.
48075file_list_spec=$lt_file_list_spec
48076
48077# How to hardcode a shared library path into an executable.
48078hardcode_action=$hardcode_action
48079
48080# ### END LIBTOOL CONFIG
48081
48082_LT_EOF
48083
48084 case $host_os in
48085 aix3*)
48086 cat <<\_LT_EOF >> "$cfgfile"
48087# AIX sometimes has problems with the GCC collect2 program. For some
48088# reason, if we set the COLLECT_NAMES environment variable, the problems
48089# vanish in a puff of smoke.
cae5b340 48090if test "X${COLLECT_NAMES+set}" != Xset; then
ea04106b
AX
48091 COLLECT_NAMES=
48092 export COLLECT_NAMES
48093fi
48094_LT_EOF
48095 ;;
48096 esac
48097
48098
cae5b340 48099ltmain="$ac_aux_dir/ltmain.sh"
ea04106b
AX
48100
48101
48102 # We use sed instead of cat because bash on DJGPP gets confused if
48103 # if finds mixed CR/LF and LF-only lines. Since sed operates in
48104 # text mode, it properly converts lines to CR/LF. This bash problem
48105 # is reportedly fixed, but why not run on old versions too?
cae5b340
AX
48106 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
48107 || (rm -f "$cfgfile"; exit 1)
48108
48109 case $xsi_shell in
48110 yes)
48111 cat << \_LT_EOF >> "$cfgfile"
48112
48113# func_dirname file append nondir_replacement
48114# Compute the dirname of FILE. If nonempty, add APPEND to the result,
48115# otherwise set result to NONDIR_REPLACEMENT.
48116func_dirname ()
48117{
48118 case ${1} in
48119 */*) func_dirname_result="${1%/*}${2}" ;;
48120 * ) func_dirname_result="${3}" ;;
48121 esac
48122}
48123
48124# func_basename file
48125func_basename ()
48126{
48127 func_basename_result="${1##*/}"
48128}
48129
48130# func_dirname_and_basename file append nondir_replacement
48131# perform func_basename and func_dirname in a single function
48132# call:
48133# dirname: Compute the dirname of FILE. If nonempty,
48134# add APPEND to the result, otherwise set result
48135# to NONDIR_REPLACEMENT.
48136# value returned in "$func_dirname_result"
48137# basename: Compute filename of FILE.
48138# value retuned in "$func_basename_result"
48139# Implementation must be kept synchronized with func_dirname
48140# and func_basename. For efficiency, we do not delegate to
48141# those functions but instead duplicate the functionality here.
48142func_dirname_and_basename ()
48143{
48144 case ${1} in
48145 */*) func_dirname_result="${1%/*}${2}" ;;
48146 * ) func_dirname_result="${3}" ;;
48147 esac
48148 func_basename_result="${1##*/}"
48149}
48150
48151# func_stripname prefix suffix name
48152# strip PREFIX and SUFFIX off of NAME.
48153# PREFIX and SUFFIX must not contain globbing or regex special
48154# characters, hashes, percent signs, but SUFFIX may contain a leading
48155# dot (in which case that matches only a dot).
48156func_stripname ()
48157{
48158 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
48159 # positional parameters, so assign one to ordinary parameter first.
48160 func_stripname_result=${3}
48161 func_stripname_result=${func_stripname_result#"${1}"}
48162 func_stripname_result=${func_stripname_result%"${2}"}
48163}
48164
48165# func_opt_split
48166func_opt_split ()
48167{
48168 func_opt_split_opt=${1%%=*}
48169 func_opt_split_arg=${1#*=}
48170}
48171
48172# func_lo2o object
48173func_lo2o ()
48174{
48175 case ${1} in
48176 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
48177 *) func_lo2o_result=${1} ;;
48178 esac
48179}
48180
48181# func_xform libobj-or-source
48182func_xform ()
48183{
48184 func_xform_result=${1%.*}.lo
48185}
48186
48187# func_arith arithmetic-term...
48188func_arith ()
48189{
48190 func_arith_result=$(( $* ))
48191}
48192
48193# func_len string
48194# STRING may not start with a hyphen.
48195func_len ()
48196{
48197 func_len_result=${#1}
48198}
48199
48200_LT_EOF
48201 ;;
48202 *) # Bourne compatible functions.
48203 cat << \_LT_EOF >> "$cfgfile"
48204
48205# func_dirname file append nondir_replacement
48206# Compute the dirname of FILE. If nonempty, add APPEND to the result,
48207# otherwise set result to NONDIR_REPLACEMENT.
48208func_dirname ()
48209{
48210 # Extract subdirectory from the argument.
48211 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
48212 if test "X$func_dirname_result" = "X${1}"; then
48213 func_dirname_result="${3}"
48214 else
48215 func_dirname_result="$func_dirname_result${2}"
48216 fi
48217}
48218
48219# func_basename file
48220func_basename ()
48221{
48222 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
48223}
48224
48225
48226# func_stripname prefix suffix name
48227# strip PREFIX and SUFFIX off of NAME.
48228# PREFIX and SUFFIX must not contain globbing or regex special
48229# characters, hashes, percent signs, but SUFFIX may contain a leading
48230# dot (in which case that matches only a dot).
48231# func_strip_suffix prefix name
48232func_stripname ()
48233{
48234 case ${2} in
48235 .*) func_stripname_result=`$ECHO "X${3}" \
48236 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
48237 *) func_stripname_result=`$ECHO "X${3}" \
48238 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
48239 esac
48240}
48241
48242# sed scripts:
48243my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
48244my_sed_long_arg='1s/^-[^=]*=//'
48245
48246# func_opt_split
48247func_opt_split ()
48248{
48249 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
48250 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
48251}
48252
48253# func_lo2o object
48254func_lo2o ()
48255{
48256 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
48257}
48258
48259# func_xform libobj-or-source
48260func_xform ()
48261{
48262 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
48263}
48264
48265# func_arith arithmetic-term...
48266func_arith ()
48267{
48268 func_arith_result=`expr "$@"`
48269}
48270
48271# func_len string
48272# STRING may not start with a hyphen.
48273func_len ()
48274{
48275 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
48276}
48277
48278_LT_EOF
48279esac
48280
48281case $lt_shell_append in
48282 yes)
48283 cat << \_LT_EOF >> "$cfgfile"
48284
48285# func_append var value
48286# Append VALUE to the end of shell variable VAR.
48287func_append ()
48288{
48289 eval "$1+=\$2"
48290}
48291_LT_EOF
48292 ;;
48293 *)
48294 cat << \_LT_EOF >> "$cfgfile"
48295
48296# func_append var value
48297# Append VALUE to the end of shell variable VAR.
48298func_append ()
48299{
48300 eval "$1=\$$1\$2"
48301}
48302
48303_LT_EOF
48304 ;;
48305 esac
48306
48307
48308 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
48309 || (rm -f "$cfgfile"; exit 1)
ea04106b 48310
cae5b340 48311 mv -f "$cfgfile" "$ofile" ||
ea04106b
AX
48312 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
48313 chmod +x "$ofile"
48314
48315 ;;
48316
48317 esac
48318done # for ac_tag
48319
48320
cae5b340 48321{ (exit 0); exit 0; }
ea04106b 48322_ACEOF
cae5b340 48323chmod +x $CONFIG_STATUS
ea04106b
AX
48324ac_clean_files=$ac_clean_files_save
48325
48326test $ac_write_fail = 0 ||
cae5b340
AX
48327 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
48328$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
48329 { (exit 1); exit 1; }; }
ea04106b
AX
48330
48331
48332# configure is writing to config.log, and then calls config.status.
48333# config.status does its own redirection, appending to config.log.
48334# Unfortunately, on DOS this fails, as config.log is still kept open
48335# by configure, so config.status won't be able to write to it; its
48336# output is simply discarded. So we exec the FD to /dev/null,
48337# effectively closing config.log, so it can be properly (re)opened and
48338# appended to by config.status. When coming back to configure, we
48339# need to make the FD available again.
48340if test "$no_create" != yes; then
48341 ac_cs_success=:
48342 ac_config_status_args=
48343 test "$silent" = yes &&
48344 ac_config_status_args="$ac_config_status_args --quiet"
48345 exec 5>/dev/null
48346 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48347 exec 5>>config.log
48348 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48349 # would make configure fail if this is the last instruction.
cae5b340 48350 $ac_cs_success || { (exit 1); exit 1; }
ea04106b
AX
48351fi
48352if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cae5b340 48353 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
ea04106b
AX
48354$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
48355fi
48356