]> git.proxmox.com Git - mirror_zfs-debian.git/blob - configure
448e4821e650ff1a0002f4eeeaae1ace18303ca7
[mirror_zfs-debian.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for zfs 0.7.3.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
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.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
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.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_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
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$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 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
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
259 if 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
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
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
280 if 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
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
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; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
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+"$@"}
367 fi
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; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$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
441
442
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" || {
447
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. :-)
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" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
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
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (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.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
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 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_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.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if 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
607 fi
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
613 if 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
711 fi
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.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME='zfs'
745 PACKAGE_TARNAME='zfs'
746 PACKAGE_VERSION='0.7.3'
747 PACKAGE_STRING='zfs 0.7.3'
748 PACKAGE_BUGREPORT=''
749
750 # Factoring default headers for most tests.
751 ac_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
786 ac_subst_vars='am__EXEEXT_FALSE
787 am__EXEEXT_TRUE
788 LTLIBOBJS
789 LIBOBJS
790 DEBUG_ZFS
791 DEBUG_STACKFLAGS
792 DEBUG_CFLAGS
793 CONFIG_QAT_FALSE
794 CONFIG_QAT_TRUE
795 WANT_DEVNAME2DEVID_FALSE
796 WANT_DEVNAME2DEVID_TRUE
797 CONFIG_KERNEL_FALSE
798 CONFIG_KERNEL_TRUE
799 CONFIG_USER_FALSE
800 CONFIG_USER_TRUE
801 RM
802 ZONENAME
803 NO_FORMAT_TRUNCATION
804 runstatedir
805 FRAME_LARGER_THAN
806 LIBUDEV
807 LIBATTR
808 LIBBLKID
809 LIBTIRPC_CFLAGS
810 LIBTIRPC
811 LIBUUID
812 ZLIB
813 dracutdir
814 ZFS_INIT_SYSV
815 modulesloaddir
816 systemdpresetdir
817 systemdunitdir
818 ZFS_MODULE_LOAD
819 ZFS_INIT_SYSTEMD
820 udevruledir
821 udevdir
822 mounthelperdir
823 KERNELCPPFLAGS
824 KERNELMAKE_PARAMS
825 QAT_SYMBOLS
826 QAT_OBJ
827 QAT_SRC
828 SPL_SYMBOLS
829 SPL_VERSION
830 SPL_OBJ
831 SPL
832 LINUX_SYMBOLS
833 LINUX_VERSION
834 LINUX_OBJ
835 LINUX
836 TARGET_ASM_GENERIC_FALSE
837 TARGET_ASM_GENERIC_TRUE
838 TARGET_ASM_I386_FALSE
839 TARGET_ASM_I386_TRUE
840 TARGET_ASM_X86_64_FALSE
841 TARGET_ASM_X86_64_TRUE
842 TARGET_ASM_DIR
843 NO_BOOL_COMPARE
844 NO_UNUSED_BUT_SET_VARIABLE
845 ZFS_CONFIG
846 ALIEN_VERSION
847 ALIEN
848 HAVE_ALIEN
849 DPKGBUILD_VERSION
850 DPKGBUILD
851 HAVE_DPKGBUILD
852 DPKG_VERSION
853 DPKG
854 HAVE_DPKG
855 SRPM_DEFINE_COMMON
856 SRPM_DEFINE_DKMS
857 SRPM_DEFINE_KMOD
858 SRPM_DEFINE_UTIL
859 RPM_DEFINE_COMMON
860 RPM_DEFINE_DKMS
861 RPM_DEFINE_KMOD
862 RPM_DEFINE_UTIL
863 RPM_SPEC_DIR
864 RPMBUILD_VERSION
865 RPMBUILD
866 HAVE_RPMBUILD
867 RPM_VERSION
868 RPM
869 HAVE_RPM
870 DEFINE_INITRAMFS
871 DEFAULT_INITCONF_DIR
872 DEFAULT_INIT_SCRIPT
873 DEFAULT_INIT_DIR
874 DEFAULT_PACKAGE
875 VENDOR
876 am__fastdepCCAS_FALSE
877 am__fastdepCCAS_TRUE
878 CCASDEPMODE
879 CCASFLAGS
880 CCAS
881 CPP
882 OTOOL64
883 OTOOL
884 LIPO
885 NMEDIT
886 DSYMUTIL
887 lt_ECHO
888 RANLIB
889 AR
890 OBJDUMP
891 LN_S
892 NM
893 ac_ct_DUMPBIN
894 DUMPBIN
895 LD
896 FGREP
897 EGREP
898 GREP
899 SED
900 LIBTOOL
901 am__fastdepCC_FALSE
902 am__fastdepCC_TRUE
903 CCDEPMODE
904 AMDEPBACKSLASH
905 AMDEP_FALSE
906 AMDEP_TRUE
907 am__quote
908 am__include
909 DEPDIR
910 OBJEXT
911 EXEEXT
912 ac_ct_CC
913 CPPFLAGS
914 LDFLAGS
915 CFLAGS
916 CC
917 am__untar
918 am__tar
919 AMTAR
920 am__leading_dot
921 SET_MAKE
922 mkdir_p
923 MKDIR_P
924 INSTALL_STRIP_PROGRAM
925 STRIP
926 install_sh
927 MAKEINFO
928 AUTOHEADER
929 AUTOMAKE
930 AUTOCONF
931 ACLOCAL
932 VERSION
933 PACKAGE
934 CYGPATH_W
935 am__isrc
936 INSTALL_DATA
937 INSTALL_SCRIPT
938 INSTALL_PROGRAM
939 AM_BACKSLASH
940 AM_DEFAULT_VERBOSITY
941 MAINT
942 MAINTAINER_MODE_FALSE
943 MAINTAINER_MODE_TRUE
944 target_os
945 target_vendor
946 target_cpu
947 target
948 host_os
949 host_vendor
950 host_cpu
951 host
952 build_os
953 build_vendor
954 build_cpu
955 build
956 ZFS_META_LT_AGE
957 ZFS_META_LT_REVISION
958 ZFS_META_LT_CURRENT
959 ZFS_META_AUTHOR
960 ZFS_META_DATA
961 ZFS_META_ALIAS
962 ZFS_META_LICENSE
963 RELEASE
964 ZFS_META_RELEASE
965 ZFS_META_VERSION
966 ZFS_META_NAME
967 AWK
968 target_alias
969 host_alias
970 build_alias
971 LIBS
972 ECHO_T
973 ECHO_N
974 ECHO_C
975 DEFS
976 mandir
977 localedir
978 libdir
979 psdir
980 pdfdir
981 dvidir
982 htmldir
983 infodir
984 docdir
985 oldincludedir
986 includedir
987 localstatedir
988 sharedstatedir
989 sysconfdir
990 datadir
991 datarootdir
992 libexecdir
993 sbindir
994 bindir
995 program_transform_name
996 prefix
997 exec_prefix
998 PACKAGE_BUGREPORT
999 PACKAGE_STRING
1000 PACKAGE_VERSION
1001 PACKAGE_TARNAME
1002 PACKAGE_NAME
1003 PATH_SEPARATOR
1004 SHELL'
1005 ac_subst_files=''
1006 ac_user_opts='
1007 enable_option_checking
1008 enable_maintainer_mode
1009 enable_silent_rules
1010 enable_dependency_tracking
1011 enable_shared
1012 enable_static
1013 with_pic
1014 enable_fast_install
1015 with_gnu_ld
1016 enable_libtool_lock
1017 with_spec
1018 with_config
1019 enable_linux_builtin
1020 with_linux
1021 with_linux_obj
1022 with_spl
1023 with_spl_obj
1024 with_spl_timeout
1025 with_qat
1026 with_qat_obj
1027 with_mounthelperdir
1028 with_udevdir
1029 with_udevruledir
1030 enable_systemd
1031 with_systemdunitdir
1032 with_systemdpresetdir
1033 with_systemdmodulesloaddir
1034 enable_sysvinit
1035 with_dracutdir
1036 with_tirpc
1037 enable_debug
1038 '
1039 ac_precious_vars='build_alias
1040 host_alias
1041 target_alias
1042 CC
1043 CFLAGS
1044 LDFLAGS
1045 LIBS
1046 CPPFLAGS
1047 CPP
1048 CCAS
1049 CCASFLAGS'
1050
1051
1052 # Initialize some variables set by options.
1053 ac_init_help=
1054 ac_init_version=false
1055 ac_unrecognized_opts=
1056 ac_unrecognized_sep=
1057 # The variables have the same names as the options, with
1058 # dashes changed to underlines.
1059 cache_file=/dev/null
1060 exec_prefix=NONE
1061 no_create=
1062 no_recursion=
1063 prefix=NONE
1064 program_prefix=NONE
1065 program_suffix=NONE
1066 program_transform_name=s,x,x,
1067 silent=
1068 site=
1069 srcdir=
1070 verbose=
1071 x_includes=NONE
1072 x_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.)
1080 bindir='${exec_prefix}/bin'
1081 sbindir='${exec_prefix}/sbin'
1082 libexecdir='${exec_prefix}/libexec'
1083 datarootdir='${prefix}/share'
1084 datadir='${datarootdir}'
1085 sysconfdir='${prefix}/etc'
1086 sharedstatedir='${prefix}/com'
1087 localstatedir='${prefix}/var'
1088 includedir='${prefix}/include'
1089 oldincludedir='/usr/include'
1090 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1091 infodir='${datarootdir}/info'
1092 htmldir='${docdir}'
1093 dvidir='${docdir}'
1094 pdfdir='${docdir}'
1095 psdir='${docdir}'
1096 libdir='${exec_prefix}/lib'
1097 localedir='${datarootdir}/locale'
1098 mandir='${datarootdir}/man'
1099
1100 ac_prev=
1101 ac_dashdash=
1102 for ac_option
1103 do
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
1112 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1113 *) ac_optarg=yes ;;
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 &&
1158 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1159 { (exit 1); exit 1; }; }
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 &&
1185 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1186 { (exit 1); exit 1; }; }
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 &&
1390 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1391 { (exit 1); exit 1; }; }
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 &&
1407 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1408 { (exit 1); exit 1; }; }
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
1438 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1439 Try \`$0 --help' for more information." >&2
1440 { (exit 1); exit 1; }; }
1441 ;;
1442
1443 *=*)
1444 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1445 # Reject names that are not valid shell variable names.
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; }; }
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
1457 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1458 ;;
1459
1460 esac
1461 done
1462
1463 if test -n "$ac_prev"; then
1464 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1465 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1466 { (exit 1); exit 1; }; }
1467 fi
1468
1469 if test -n "$ac_unrecognized_opts"; then
1470 case $enable_option_checking in
1471 no) ;;
1472 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1473 { (exit 1); exit 1; }; } ;;
1474 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1475 esac
1476 fi
1477
1478 # Check all directory arguments for consistency.
1479 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1480 datadir sysconfdir sharedstatedir localstatedir includedir \
1481 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1482 libdir localedir mandir
1483 do
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
1496 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1497 { (exit 1); exit 1; }; }
1498 done
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.
1503 build=$build_alias
1504 host=$host_alias
1505 target=$target_alias
1506
1507 # FIXME: To remove some day.
1508 if test "x$host_alias" != x; then
1509 if test "x$build_alias" = x; then
1510 cross_compiling=maybe
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
1513 elif test "x$build_alias" != "x$host_alias"; then
1514 cross_compiling=yes
1515 fi
1516 fi
1517
1518 ac_tool_prefix=
1519 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1520
1521 test "$silent" = yes && exec 6>/dev/null
1522
1523
1524 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1525 ac_ls_di=`ls -di .` &&
1526 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1527 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1528 { (exit 1); exit 1; }; }
1529 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1530 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1531 { (exit 1); exit 1; }; }
1532
1533
1534 # Find the source files, if location was not specified.
1535 if 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
1565 else
1566 ac_srcdir_defaulted=no
1567 fi
1568 if test ! -r "$srcdir/$ac_unique_file"; then
1569 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1570 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1571 { (exit 1); exit 1; }; }
1572 fi
1573 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1574 ac_abs_confdir=`(
1575 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1576 { (exit 1); exit 1; }; }
1577 pwd)`
1578 # When building in place, set srcdir=.
1579 if test "$ac_abs_confdir" = "$ac_pwd"; then
1580 srcdir=.
1581 fi
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.
1585 case $srcdir in
1586 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1587 esac
1588 for 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}
1593 done
1594
1595 #
1596 # Report the --help message.
1597 #
1598 if 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
1602 \`configure' configures zfs 0.7.3 to adapt to many kinds of systems.
1603
1604 Usage: $0 [OPTION]... [VAR=VALUE]...
1605
1606 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1607 VAR=VALUE. See below for descriptions of some of the useful variables.
1608
1609 Defaults for the options are specified in brackets.
1610
1611 Configuration:
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
1616 -q, --quiet, --silent do not print \`checking...' messages
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
1622 Installation 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
1628 By default, \`make install' will install all the files in
1629 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1630 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1631 for instance \`--prefix=\$HOME'.
1632
1633 For better control, use the options below.
1634
1635 Fine 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
1659 Program 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
1664 System 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
1669 fi
1670
1671 if test -n "$ac_init_help"; then
1672 case $ac_init_help in
1673 short | recursive ) echo "Configuration of zfs 0.7.3:";;
1674 esac
1675 cat <<\_ACEOF
1676
1677 Optional 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]
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
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]
1694 --enable-systemd install systemd unit/preset files
1695 [default:], [yes]
1696 --enable-sysvinit install SysV init scripts default:, yes
1697 --enable-debug Enable generic debug support [default=no]
1698
1699 Optional Packages:
1700 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1701 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1702 --with-pic try to use only PIC/non-PIC objects [default=use
1703 both]
1704 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
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]
1712 --with-qat=PATH Path to qat source
1713 --with-qat-obj=PATH Path to qat build objects
1714 --with-mounthelperdir=DIR
1715 install mount.zfs in dir [/sbin]
1716 --with-udevdir=DIR install udev helpers [default=check]
1717 --with-udevruledir=DIR install udev rules [UDEVDIR/rules.d]
1718 --with-systemdunitdir=DIR
1719 install systemd unit files in dir
1720 [/usr/lib/systemd/system]
1721 --with-systemdpresetdir=DIR
1722 install systemd preset files in dir
1723 [/usr/lib/systemd/system-preset]
1724 --with-systemdmodulesloaddir=DIR
1725 install systemd module load files into dir
1726 [/usr/lib/modules-load.d]
1727 --with-dracutdir=DIR install dracut helpers [default=check]
1728 --with-tirpc use tirpc for xdr encoding [default=check]
1729
1730 Some 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>
1736 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
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
1742 Use these variables to override the choices made by `configure' or to help
1743 it to find libraries and programs with nonstandard names/locations.
1744
1745 _ACEOF
1746 ac_status=$?
1747 fi
1748
1749 if 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
1757 case "$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 ;;
1767 esac
1768 ac_abs_top_builddir=$ac_pwd
1769 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1770 # for backward compatibility:
1771 ac_top_builddir=$ac_top_build_prefix
1772
1773 case $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 ;;
1786 esac
1787 ac_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
1802 fi
1803
1804 test -n "$ac_init_help" && exit $ac_status
1805 if $ac_init_version; then
1806 cat <<\_ACEOF
1807 zfs configure 0.7.3
1808 generated by GNU Autoconf 2.63
1809
1810 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1811 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1812 This configure script is free software; the Free Software Foundation
1813 gives unlimited permission to copy, distribute and modify it.
1814 _ACEOF
1815 exit
1816 fi
1817 cat >config.log <<_ACEOF
1818 This file contains any messages produced by compilers while
1819 running configure, to aid debugging if configure makes a mistake.
1820
1821 It was created by zfs $as_me 0.7.3, which was
1822 generated by GNU Autoconf 2.63. Invocation command line was
1823
1824 $ $0 $@
1825
1826 _ACEOF
1827 exec 5>>config.log
1828 {
1829 cat <<_ASUNAME
1830 ## --------- ##
1831 ## Platform. ##
1832 ## --------- ##
1833
1834 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1835 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1836 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1837 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1838 uname -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
1853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854 for as_dir in $PATH
1855 do
1856 IFS=$as_save_IFS
1857 test -z "$as_dir" && as_dir=.
1858 $as_echo "PATH: $as_dir"
1859 done
1860 IFS=$as_save_IFS
1861
1862 } >&5
1863
1864 cat >&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.
1879 ac_configure_args=
1880 ac_configure_args0=
1881 ac_configure_args1=
1882 ac_must_keep_next=false
1883 for ac_pass in 1 2
1884 do
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
1896 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1897 2)
1898 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
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
1914 ac_configure_args="$ac_configure_args '$ac_arg'"
1915 ;;
1916 esac
1917 done
1918 done
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; }
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.
1927 trap 'exit_status=$?
1928 # Save into config.log some information that might help in debugging.
1929 {
1930 echo
1931
1932 cat <<\_ASBOX
1933 ## ---------------- ##
1934 ## Cache variables. ##
1935 ## ---------------- ##
1936 _ASBOX
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 #(
1945 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
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= ;; #(
1951 *) $as_unset $ac_var ;;
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
1970 cat <<\_ASBOX
1971 ## ----------------- ##
1972 ## Output variables. ##
1973 ## ----------------- ##
1974 _ASBOX
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
1987 cat <<\_ASBOX
1988 ## ------------------- ##
1989 ## File substitutions. ##
1990 ## ------------------- ##
1991 _ASBOX
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
2005 cat <<\_ASBOX
2006 ## ----------- ##
2007 ## confdefs.h. ##
2008 ## ----------- ##
2009 _ASBOX
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
2022 for ac_signal in 1 2 13 15; do
2023 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2024 done
2025 ac_signal=0
2026
2027 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2028 rm -f -r conftest* confdefs.h
2029
2030 # Predefined preprocessor variables.
2031
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_NAME "$PACKAGE_NAME"
2034 _ACEOF
2035
2036
2037 cat >>confdefs.h <<_ACEOF
2038 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2039 _ACEOF
2040
2041
2042 cat >>confdefs.h <<_ACEOF
2043 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2044 _ACEOF
2045
2046
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_STRING "$PACKAGE_STRING"
2049 _ACEOF
2050
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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.
2059 ac_site_file1=NONE
2060 ac_site_file2=NONE
2061 if test -n "$CONFIG_SITE"; then
2062 ac_site_file1=$CONFIG_SITE
2063 elif test "x$prefix" != xNONE; then
2064 ac_site_file1=$prefix/share/config.site
2065 ac_site_file2=$prefix/etc/config.site
2066 else
2067 ac_site_file1=$ac_default_prefix/share/config.site
2068 ac_site_file2=$ac_default_prefix/etc/config.site
2069 fi
2070 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2071 do
2072 test "x$ac_site_file" = xNONE && continue
2073 if test -r "$ac_site_file"; then
2074 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2075 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2076 sed 's/^/| /' "$ac_site_file" >&5
2077 . "$ac_site_file"
2078 fi
2079 done
2080
2081 if test -r "$cache_file"; then
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
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
2092 else
2093 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2094 $as_echo "$as_me: creating cache $cache_file" >&6;}
2095 >$cache_file
2096 fi
2097
2098 # Check that the precious variables saved in the cache have kept the same
2099 # value.
2100 ac_cache_corrupted=false
2101 for 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,)
2108 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
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)
2112 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
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
2122 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2123 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2124 ac_cache_corrupted=:
2125 else
2126 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
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
2130 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2131 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2132 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
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.
2144 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2145 esac
2146 fi
2147 done
2148 if $ac_cache_corrupted; then
2149 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2151 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2152 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
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; }; }
2156 fi
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182 ac_ext=c
2183 ac_cpp='$CPP $CPPFLAGS'
2184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2187
2188
2189 ac_ext=c
2190 ac_cpp='$CPP $CPPFLAGS'
2191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2194
2195
2196
2197
2198
2199
2200 for ac_prog in gawk mawk nawk awk
2201 do
2202 # Extract the first word of "$ac_prog", so it can be a program name with args.
2203 set dummy $ac_prog; ac_word=$2
2204 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 $as_echo_n "checking for $ac_word... " >&6; }
2206 if test "${ac_cv_prog_AWK+set}" = set; then
2207 $as_echo_n "(cached) " >&6
2208 else
2209 if test -n "$AWK"; then
2210 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2211 else
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2214 do
2215 IFS=$as_save_IFS
2216 test -z "$as_dir" && as_dir=.
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
2219 ac_cv_prog_AWK="$ac_prog"
2220 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221 break 2
2222 fi
2223 done
2224 done
2225 IFS=$as_save_IFS
2226
2227 fi
2228 fi
2229 AWK=$ac_cv_prog_AWK
2230 if test -n "$AWK"; then
2231 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2232 $as_echo "$AWK" >&6; }
2233 else
2234 { $as_echo "$as_me:$LINENO: result: no" >&5
2235 $as_echo "no" >&6; }
2236 fi
2237
2238
2239 test -n "$AWK" && break
2240 done
2241
2242 { $as_echo "$as_me:$LINENO: checking metadata" >&5
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
2253 cat >>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
2263 cat >>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"
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
2286 fi
2287 fi
2288
2289 if test -n "$ZFS_META_RELEASE"; then
2290
2291 cat >>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
2304 cat >>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
2316 cat >>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
2326 cat >>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
2336 cat >>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
2354 cat >>confdefs.h <<_ACEOF
2355 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2356 _ACEOF
2357
2358
2359 cat >>confdefs.h <<_ACEOF
2360 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2361 _ACEOF
2362
2363
2364 cat >>confdefs.h <<_ACEOF
2365 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2366 _ACEOF
2367
2368
2369
2370
2371 fi
2372 fi
2373
2374 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_type" >&5
2375 $as_echo "$_zfs_ac_meta_type" >&6; }
2376
2377
2378 ac_aux_dir=
2379 for 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
2393 done
2394 if test -z "$ac_aux_dir"; then
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; }; }
2398 fi
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.
2404 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2405 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2406 ac_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 ||
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; }; }
2415
2416 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2417 $as_echo_n "checking build system type... " >&6; }
2418 if test "${ac_cv_build+set}" = set; then
2419 $as_echo_n "(cached) " >&6
2420 else
2421 ac_build_alias=$build_alias
2422 test "x$ac_build_alias" = x &&
2423 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2424 test "x$ac_build_alias" = x &&
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; }; }
2428 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
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; }; }
2432
2433 fi
2434 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2435 $as_echo "$ac_cv_build" >&6; }
2436 case $ac_cv_build in
2437 *-*-*) ;;
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; }; };;
2441 esac
2442 build=$ac_cv_build
2443 ac_save_IFS=$IFS; IFS='-'
2444 set x $ac_cv_build
2445 shift
2446 build_cpu=$1
2447 build_vendor=$2
2448 shift; shift
2449 # Remember, the first character of IFS is used to create $*,
2450 # except with old shells:
2451 build_os=$*
2452 IFS=$ac_save_IFS
2453 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2454
2455
2456 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2457 $as_echo_n "checking host system type... " >&6; }
2458 if test "${ac_cv_host+set}" = set; then
2459 $as_echo_n "(cached) " >&6
2460 else
2461 if test "x$host_alias" = x; then
2462 ac_cv_host=$ac_cv_build
2463 else
2464 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
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; }; }
2468 fi
2469
2470 fi
2471 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2472 $as_echo "$ac_cv_host" >&6; }
2473 case $ac_cv_host in
2474 *-*-*) ;;
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; }; };;
2478 esac
2479 host=$ac_cv_host
2480 ac_save_IFS=$IFS; IFS='-'
2481 set x $ac_cv_host
2482 shift
2483 host_cpu=$1
2484 host_vendor=$2
2485 shift; shift
2486 # Remember, the first character of IFS is used to create $*,
2487 # except with old shells:
2488 host_os=$*
2489 IFS=$ac_save_IFS
2490 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2491
2492
2493 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2494 $as_echo_n "checking target system type... " >&6; }
2495 if test "${ac_cv_target+set}" = set; then
2496 $as_echo_n "(cached) " >&6
2497 else
2498 if test "x$target_alias" = x; then
2499 ac_cv_target=$ac_cv_host
2500 else
2501 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
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; }; }
2505 fi
2506
2507 fi
2508 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2509 $as_echo "$ac_cv_target" >&6; }
2510 case $ac_cv_target in
2511 *-*-*) ;;
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; }; };;
2515 esac
2516 target=$ac_cv_target
2517 ac_save_IFS=$IFS; IFS='-'
2518 set x $ac_cv_target
2519 shift
2520 target_cpu=$1
2521 target_vendor=$2
2522 shift; shift
2523 # Remember, the first character of IFS is used to create $*,
2524 # except with old shells:
2525 target_os=$*
2526 IFS=$ac_save_IFS
2527 case $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.
2532 test -n "$target_alias" &&
2533 test "$program_prefix$program_suffix$program_transform_name" = \
2534 NONENONEs,x,x, &&
2535 program_prefix=${target_alias}-
2536
2537 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2538 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2539 # Check whether --enable-maintainer-mode was given.
2540 if test "${enable_maintainer_mode+set}" = set; then
2541 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2542 else
2543 USE_MAINTAINER_MODE=no
2544 fi
2545
2546 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2547 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2548 if test $USE_MAINTAINER_MODE = yes; then
2549 MAINTAINER_MODE_TRUE=
2550 MAINTAINER_MODE_FALSE='#'
2551 else
2552 MAINTAINER_MODE_TRUE='#'
2553 MAINTAINER_MODE_FALSE=
2554 fi
2555
2556 MAINT=$MAINTAINER_MODE_TRUE
2557
2558
2559 # Check whether --enable-silent-rules was given.
2560 if test "${enable_silent_rules+set}" = set; then
2561 enableval=$enable_silent_rules;
2562 fi
2563
2564 case $enable_silent_rules in
2565 yes) AM_DEFAULT_VERBOSITY=0;;
2566 no) AM_DEFAULT_VERBOSITY=1;;
2567 *) AM_DEFAULT_VERBOSITY=0;;
2568 esac
2569 AM_BACKSLASH='\'
2570
2571 am__api_version='1.11'
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.
2587 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2588 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2589 if test -z "$INSTALL"; then
2590 if test "${ac_cv_path_install+set}" = set; then
2591 $as_echo_n "(cached) " >&6
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596 IFS=$as_save_IFS
2597 test -z "$as_dir" && as_dir=.
2598 # Account for people who put trailing slashes in PATH elements.
2599 case $as_dir/ in
2600 ./ | .// | /cC/* | \
2601 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2602 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
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
2610 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
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 ;;
2637 esac
2638
2639 done
2640 IFS=$as_save_IFS
2641
2642 rm -rf conftest.one conftest.two conftest.dir
2643
2644 fi
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
2654 fi
2655 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
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.
2660 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2661
2662 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2663
2664 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2665
2666 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2667 $as_echo_n "checking whether build environment is sane... " >&6; }
2668 # Just in case
2669 sleep 1
2670 echo timestamp > conftest.file
2671 # Reject unsafe characters in $srcdir or the absolute working directory
2672 # name. Accept space and tab only in the latter.
2673 am_lf='
2674 '
2675 case `pwd` in
2676 *[\\\"\#\$\&\'\`$am_lf]*)
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; }; };;
2680 esac
2681 case $srcdir in
2682 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
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; }; };;
2686 esac
2687
2688 # Do `set' in a subshell so we don't clobber the current shell's
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).
2693 if (
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
2708 alias in your environment" >&5
2709 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2710 alias in your environment" >&2;}
2711 { (exit 1); exit 1; }; }
2712 fi
2713
2714 test "$2" = conftest.file
2715 )
2716 then
2717 # Ok.
2718 :
2719 else
2720 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2721 Check your system clock" >&5
2722 $as_echo "$as_me: error: newly created file is older than distributed files!
2723 Check your system clock" >&2;}
2724 { (exit 1); exit 1; }; }
2725 fi
2726 { $as_echo "$as_me:$LINENO: result: yes" >&5
2727 $as_echo "yes" >&6; }
2728 test "$program_prefix" != NONE &&
2729 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2730 # Use a double $ so make ignores it.
2731 test "$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.
2735 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2736 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2737
2738 # expand $ac_aux_dir to an absolute path
2739 am_aux_dir=`cd $ac_aux_dir && pwd`
2740
2741 if 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
2748 fi
2749 # Use eval to expand $SHELL
2750 if eval "$MISSING --run true"; then
2751 am_missing_run="$MISSING --run "
2752 else
2753 am_missing_run=
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;}
2756 fi
2757
2758 if test x"${install_sh}" != xset; then
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
2765 fi
2766
2767 # Installed binaries are usually stripped using `strip' when the user
2768 # run `make install-strip'. However `strip' might not be the right
2769 # tool to use in cross-compilation environments, therefore Automake
2770 # will honor the `STRIP' environment variable to overrule this program.
2771 if 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.
2774 set dummy ${ac_tool_prefix}strip; ac_word=$2
2775 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if test "${ac_cv_prog_STRIP+set}" = set; then
2778 $as_echo_n "(cached) " >&6
2779 else
2780 if test -n "$STRIP"; then
2781 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2785 do
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
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
2790 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2791 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2793 fi
2794 done
2795 done
2796 IFS=$as_save_IFS
2797
2798 fi
2799 fi
2800 STRIP=$ac_cv_prog_STRIP
2801 if test -n "$STRIP"; then
2802 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2803 $as_echo "$STRIP" >&6; }
2804 else
2805 { $as_echo "$as_me:$LINENO: result: no" >&5
2806 $as_echo "no" >&6; }
2807 fi
2808
2809
2810 fi
2811 if 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.
2814 set dummy strip; ac_word=$2
2815 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2818 $as_echo_n "(cached) " >&6
2819 else
2820 if test -n "$ac_ct_STRIP"; then
2821 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 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
2830 ac_cv_prog_ac_ct_STRIP="strip"
2831 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 break 2
2833 fi
2834 done
2835 done
2836 IFS=$as_save_IFS
2837
2838 fi
2839 fi
2840 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2841 if test -n "$ac_ct_STRIP"; then
2842 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2843 $as_echo "$ac_ct_STRIP" >&6; }
2844 else
2845 { $as_echo "$as_me:$LINENO: result: no" >&5
2846 $as_echo "no" >&6; }
2847 fi
2848
2849 if test "x$ac_ct_STRIP" = x; then
2850 STRIP=":"
2851 else
2852 case $cross_compiling:$ac_tool_warned in
2853 yes:)
2854 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2856 ac_tool_warned=yes ;;
2857 esac
2858 STRIP=$ac_ct_STRIP
2859 fi
2860 else
2861 STRIP="$ac_cv_prog_STRIP"
2862 fi
2863
2864 fi
2865 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2866
2867 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2868 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2869 if test -z "$MKDIR_P"; then
2870 if test "${ac_cv_path_mkdir+set}" = set; then
2871 $as_echo_n "(cached) " >&6
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2875 do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_prog in mkdir gmkdir; do
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
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
2890 done
2891 IFS=$as_save_IFS
2892
2893 fi
2894
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.
2902 test -d ./--version && rmdir ./--version
2903 MKDIR_P="$ac_install_sh -d"
2904 fi
2905 fi
2906 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2907 $as_echo "$MKDIR_P" >&6; }
2908
2909 mkdir_p="$MKDIR_P"
2910 case $mkdir_p in
2911 [\\/$]* | ?:[\\/]*) ;;
2912 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2913 esac
2914
2915 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2916 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2917 set x ${MAKE-make}
2918 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2919 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2920 $as_echo_n "(cached) " >&6
2921 else
2922 cat >conftest.make <<\_ACEOF
2923 SHELL = /bin/sh
2924 all:
2925 @echo '@@@%%%=$(MAKE)=@@@%%%'
2926 _ACEOF
2927 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2928 case `${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;;
2933 esac
2934 rm -f conftest.make
2935 fi
2936 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2937 { $as_echo "$as_me:$LINENO: result: yes" >&5
2938 $as_echo "yes" >&6; }
2939 SET_MAKE=
2940 else
2941 { $as_echo "$as_me:$LINENO: result: no" >&5
2942 $as_echo "no" >&6; }
2943 SET_MAKE="MAKE=${MAKE-make}"
2944 fi
2945
2946 rm -rf .tst 2>/dev/null
2947 mkdir .tst 2>/dev/null
2948 if test -d .tst; then
2949 am__leading_dot=.
2950 else
2951 am__leading_dot=_
2952 fi
2953 rmdir .tst 2>/dev/null
2954
2955 if 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
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; }; }
2964 fi
2965 fi
2966
2967 # test whether we have cygpath
2968 if 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
2974 fi
2975
2976
2977 # Define the identity of the package.
2978 PACKAGE='zfs'
2979 VERSION='0.7.3'
2980
2981
2982 cat >>confdefs.h <<_ACEOF
2983 #define PACKAGE "$PACKAGE"
2984 _ACEOF
2985
2986
2987 cat >>confdefs.h <<_ACEOF
2988 #define VERSION "$VERSION"
2989 _ACEOF
2990
2991 # Some tools Automake needs.
2992
2993 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2994
2995
2996 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2997
2998
2999 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3000
3001
3002 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3003
3004
3005 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3006
3007 # We need awk for the "check" target. The system "awk" is bad on
3008 # some platforms.
3009 # Always define AMTAR for backward compatibility.
3010
3011 AMTAR=${AMTAR-"${am_missing_run}tar"}
3012
3013 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3014
3015
3016
3017
3018
3019 ac_config_headers="$ac_config_headers zfs_config.h"
3020
3021
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; }
3038 if test -z "$INSTALL"; then
3039 if test "${ac_cv_path_install+set}" = set; then
3040 $as_echo_n "(cached) " >&6
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 # Account for people who put trailing slashes in PATH elements.
3048 case $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 ;;
3086 esac
3087
3088 done
3089 IFS=$as_save_IFS
3090
3091 rm -rf conftest.one conftest.two conftest.dir
3092
3093 fi
3094 if test "${ac_cv_path_install+set}" = set; then
3095 INSTALL=$ac_cv_path_install
3096 else
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
3102 fi
3103 fi
3104 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3105 $as_echo "$INSTALL" >&6; }
3106
3107 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3108 # It thinks the first close brace ends the variable substitution.
3109 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3110
3111 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3112
3113 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3114
3115 ac_ext=c
3116 ac_cpp='$CPP $CPPFLAGS'
3117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120 if 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.
3122 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3123 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if test "${ac_cv_prog_CC+set}" = set; then
3126 $as_echo_n "(cached) " >&6
3127 else
3128 if test -n "$CC"; then
3129 ac_cv_prog_CC="$CC" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
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
3138 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3141 fi
3142 done
3143 done
3144 IFS=$as_save_IFS
3145
3146 fi
3147 fi
3148 CC=$ac_cv_prog_CC
3149 if test -n "$CC"; then
3150 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3151 $as_echo "$CC" >&6; }
3152 else
3153 { $as_echo "$as_me:$LINENO: result: no" >&5
3154 $as_echo "no" >&6; }
3155 fi
3156
3157
3158 fi
3159 if 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.
3162 set dummy gcc; ac_word=$2
3163 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3166 $as_echo_n "(cached) " >&6
3167 else
3168 if test -n "$ac_ct_CC"; then
3169 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
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
3178 ac_cv_prog_ac_ct_CC="gcc"
3179 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3181 fi
3182 done
3183 done
3184 IFS=$as_save_IFS
3185
3186 fi
3187 fi
3188 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3189 if test -n "$ac_ct_CC"; then
3190 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3191 $as_echo "$ac_ct_CC" >&6; }
3192 else
3193 { $as_echo "$as_me:$LINENO: result: no" >&5
3194 $as_echo "no" >&6; }
3195 fi
3196
3197 if test "x$ac_ct_CC" = x; then
3198 CC=""
3199 else
3200 case $cross_compiling:$ac_tool_warned in
3201 yes:)
3202 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3204 ac_tool_warned=yes ;;
3205 esac
3206 CC=$ac_ct_CC
3207 fi
3208 else
3209 CC="$ac_cv_prog_CC"
3210 fi
3211
3212 if 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.
3215 set dummy ${ac_tool_prefix}cc; ac_word=$2
3216 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if test "${ac_cv_prog_CC+set}" = set; then
3219 $as_echo_n "(cached) " >&6
3220 else
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC="$CC" # Let the user override the test.
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
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
3231 ac_cv_prog_CC="${ac_tool_prefix}cc"
3232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 break 2
3234 fi
3235 done
3236 done
3237 IFS=$as_save_IFS
3238
3239 fi
3240 fi
3241 CC=$ac_cv_prog_CC
3242 if test -n "$CC"; then
3243 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3244 $as_echo "$CC" >&6; }
3245 else
3246 { $as_echo "$as_me:$LINENO: result: no" >&5
3247 $as_echo "no" >&6; }
3248 fi
3249
3250
3251 fi
3252 fi
3253 if test -z "$CC"; then
3254 # Extract the first word of "cc", so it can be a program name with args.
3255 set dummy cc; ac_word=$2
3256 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if test "${ac_cv_prog_CC+set}" = set; then
3259 $as_echo_n "(cached) " >&6
3260 else
3261 if test -n "$CC"; then
3262 ac_cv_prog_CC="$CC" # Let the user override the test.
3263 else
3264 ac_prog_rejected=no
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3267 do
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
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
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"
3277 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 break 2
3279 fi
3280 done
3281 done
3282 IFS=$as_save_IFS
3283
3284 if 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
3295 fi
3296 fi
3297 fi
3298 CC=$ac_cv_prog_CC
3299 if test -n "$CC"; then
3300 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3301 $as_echo "$CC" >&6; }
3302 else
3303 { $as_echo "$as_me:$LINENO: result: no" >&5
3304 $as_echo "no" >&6; }
3305 fi
3306
3307
3308 fi
3309 if 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.
3314 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3315 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 $as_echo_n "checking for $ac_word... " >&6; }
3317 if test "${ac_cv_prog_CC+set}" = set; then
3318 $as_echo_n "(cached) " >&6
3319 else
3320 if test -n "$CC"; then
3321 ac_cv_prog_CC="$CC" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
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
3330 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3331 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 break 2
3333 fi
3334 done
3335 done
3336 IFS=$as_save_IFS
3337
3338 fi
3339 fi
3340 CC=$ac_cv_prog_CC
3341 if test -n "$CC"; then
3342 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3343 $as_echo "$CC" >&6; }
3344 else
3345 { $as_echo "$as_me:$LINENO: result: no" >&5
3346 $as_echo "no" >&6; }
3347 fi
3348
3349
3350 test -n "$CC" && break
3351 done
3352 fi
3353 if test -z "$CC"; then
3354 ac_ct_CC=$CC
3355 for ac_prog in cl.exe
3356 do
3357 # Extract the first word of "$ac_prog", so it can be a program name with args.
3358 set dummy $ac_prog; ac_word=$2
3359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3362 $as_echo_n "(cached) " >&6
3363 else
3364 if test -n "$ac_ct_CC"; then
3365 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3366 else
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH
3369 do
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
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
3374 ac_cv_prog_ac_ct_CC="$ac_prog"
3375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 break 2
3377 fi
3378 done
3379 done
3380 IFS=$as_save_IFS
3381
3382 fi
3383 fi
3384 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3385 if test -n "$ac_ct_CC"; then
3386 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3387 $as_echo "$ac_ct_CC" >&6; }
3388 else
3389 { $as_echo "$as_me:$LINENO: result: no" >&5
3390 $as_echo "no" >&6; }
3391 fi
3392
3393
3394 test -n "$ac_ct_CC" && break
3395 done
3396
3397 if test "x$ac_ct_CC" = x; then
3398 CC=""
3399 else
3400 case $cross_compiling:$ac_tool_warned in
3401 yes:)
3402 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3404 ac_tool_warned=yes ;;
3405 esac
3406 CC=$ac_ct_CC
3407 fi
3408 fi
3409
3410 fi
3411
3412
3413 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3416 See \`config.log' for more details." >&5
3417 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3418 See \`config.log' for more details." >&2;}
3419 { (exit 1); exit 1; }; }; }
3420
3421 # Provide some information about the compiler.
3422 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3423 set X $ac_compile
3424 ac_compiler=$2
3425 { (ac_try="$ac_compiler --version >&5"
3426 case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval 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"
3437 case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval 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"
3448 case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451 esac
3452 eval 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); }
3458
3459 cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h. */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3465
3466 int
3467 main ()
3468 {
3469
3470 ;
3471 return 0;
3472 }
3473 _ACEOF
3474 ac_clean_files_save=$ac_clean_files
3475 ac_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.
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; }
3481 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3482
3483 # The possible output files:
3484 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3485
3486 ac_rmfiles=
3487 for ac_file in $ac_files
3488 do
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
3493 done
3494 rm -f $ac_rmfiles
3495
3496 if { (ac_try="$ac_link_default"
3497 case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500 esac
3501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3502 $as_echo "$ac_try_echo") >&5
3503 (eval "$ac_link_default") 2>&5
3504 ac_status=$?
3505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; then
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.
3512 for ac_file in $ac_files ''
3513 do
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 *.* )
3523 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
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
3536 done
3537 test "$ac_cv_exeext" = no && ac_cv_exeext=
3538
3539 else
3540 ac_file=''
3541 fi
3542
3543 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3544 $as_echo "$ac_file" >&6; }
3545 if test -z "$ac_file"; then
3546 $as_echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3548
3549 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3552 See \`config.log' for more details." >&5
3553 $as_echo "$as_me: error: C compiler cannot create executables
3554 See \`config.log' for more details." >&2;}
3555 { (exit 77); exit 77; }; }; }
3556 fi
3557
3558 ac_exeext=$ac_cv_exeext
3559
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.
3566 if 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;;
3571 esac
3572 eval 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.
3586 If you meant to cross compile, use \`--host'.
3587 See \`config.log' for more details." >&5
3588 $as_echo "$as_me: error: cannot run C compiled programs.
3589 If you meant to cross compile, use \`--host'.
3590 See \`config.log' for more details." >&2;}
3591 { (exit 1); exit 1; }; }; }
3592 fi
3593 fi
3594 fi
3595 { $as_echo "$as_me:$LINENO: result: yes" >&5
3596 $as_echo "yes" >&6; }
3597
3598 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3599 ac_clean_files=$ac_clean_files_save
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
3608 $as_echo_n "checking for suffix of executables... " >&6; }
3609 if { (ac_try="$ac_link"
3610 case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613 esac
3614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3615 $as_echo "$ac_try_echo") >&5
3616 (eval "$ac_link") 2>&5
3617 ac_status=$?
3618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; then
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'.
3624 for 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
3632 done
3633 else
3634 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3637 See \`config.log' for more details." >&5
3638 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3639 See \`config.log' for more details." >&2;}
3640 { (exit 1); exit 1; }; }; }
3641 fi
3642
3643 rm -f conftest$ac_cv_exeext
3644 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3645 $as_echo "$ac_cv_exeext" >&6; }
3646
3647 rm -f conftest.$ac_ext
3648 EXEEXT=$ac_cv_exeext
3649 ac_exeext=$EXEEXT
3650 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3651 $as_echo_n "checking for suffix of object files... " >&6; }
3652 if test "${ac_cv_objext+set}" = set; then
3653 $as_echo_n "(cached) " >&6
3654 else
3655 cat >conftest.$ac_ext <<_ACEOF
3656 /* confdefs.h. */
3657 _ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3661
3662 int
3663 main ()
3664 {
3665
3666 ;
3667 return 0;
3668 }
3669 _ACEOF
3670 rm -f conftest.o conftest.obj
3671 if { (ac_try="$ac_compile"
3672 case "(($ac_try" in
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3675 esac
3676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3677 $as_echo "$ac_try_echo") >&5
3678 (eval "$ac_compile") 2>&5
3679 ac_status=$?
3680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; then
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
3689 done
3690 else
3691 $as_echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3693
3694 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3696 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3697 See \`config.log' for more details." >&5
3698 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3699 See \`config.log' for more details." >&2;}
3700 { (exit 1); exit 1; }; }; }
3701 fi
3702
3703 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3704 fi
3705 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3706 $as_echo "$ac_cv_objext" >&6; }
3707 OBJEXT=$ac_cv_objext
3708 ac_objext=$OBJEXT
3709 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3710 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3711 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3712 $as_echo_n "(cached) " >&6
3713 else
3714 cat >conftest.$ac_ext <<_ACEOF
3715 /* confdefs.h. */
3716 _ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3720
3721 int
3722 main ()
3723 {
3724 #ifndef __GNUC__
3725 choke me
3726 #endif
3727
3728 ;
3729 return 0;
3730 }
3731 _ACEOF
3732 rm -f conftest.$ac_objext
3733 if { (ac_try="$ac_compile"
3734 case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3737 esac
3738 eval 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
3750 ac_compiler_gnu=yes
3751 else
3752 $as_echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3754
3755 ac_compiler_gnu=no
3756 fi
3757
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3760
3761 fi
3762 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3763 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3764 if test $ac_compiler_gnu = yes; then
3765 GCC=yes
3766 else
3767 GCC=
3768 fi
3769 ac_test_CFLAGS=${CFLAGS+set}
3770 ac_save_CFLAGS=$CFLAGS
3771 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3772 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3773 if test "${ac_cv_prog_cc_g+set}" = set; then
3774 $as_echo_n "(cached) " >&6
3775 else
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"
3780 cat >conftest.$ac_ext <<_ACEOF
3781 /* confdefs.h. */
3782 _ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3786
3787 int
3788 main ()
3789 {
3790
3791 ;
3792 return 0;
3793 }
3794 _ACEOF
3795 rm -f conftest.$ac_objext
3796 if { (ac_try="$ac_compile"
3797 case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800 esac
3801 eval 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
3813 ac_cv_prog_cc_g=yes
3814 else
3815 $as_echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3817
3818 CFLAGS=""
3819 cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h. */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3825
3826 int
3827 main ()
3828 {
3829
3830 ;
3831 return 0;
3832 }
3833 _ACEOF
3834 rm -f conftest.$ac_objext
3835 if { (ac_try="$ac_compile"
3836 case "(($ac_try" in
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3839 esac
3840 eval 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 :
3853 else
3854 $as_echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3856
3857 ac_c_werror_flag=$ac_save_c_werror_flag
3858 CFLAGS="-g"
3859 cat >conftest.$ac_ext <<_ACEOF
3860 /* confdefs.h. */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3865
3866 int
3867 main ()
3868 {
3869
3870 ;
3871 return 0;
3872 }
3873 _ACEOF
3874 rm -f conftest.$ac_objext
3875 if { (ac_try="$ac_compile"
3876 case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3879 esac
3880 eval 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
3892 ac_cv_prog_cc_g=yes
3893 else
3894 $as_echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3896
3897
3898 fi
3899
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 fi
3902
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904 fi
3905
3906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907 ac_c_werror_flag=$ac_save_c_werror_flag
3908 fi
3909 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3910 $as_echo "$ac_cv_prog_cc_g" >&6; }
3911 if test "$ac_test_CFLAGS" = set; then
3912 CFLAGS=$ac_save_CFLAGS
3913 elif 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
3919 else
3920 if test "$GCC" = yes; then
3921 CFLAGS="-O2"
3922 else
3923 CFLAGS=
3924 fi
3925 fi
3926 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3927 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3928 if test "${ac_cv_prog_cc_c89+set}" = set; then
3929 $as_echo_n "(cached) " >&6
3930 else
3931 ac_cv_prog_cc_c89=no
3932 ac_save_CC=$CC
3933 cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h. */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3939 #include <stdarg.h>
3940 #include <stdio.h>
3941 #include <sys/types.h>
3942 #include <sys/stat.h>
3943 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3944 struct buf { int x; };
3945 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3946 static char *e (p, i)
3947 char **p;
3948 int i;
3949 {
3950 return p[i];
3951 }
3952 static 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. */
3969 int 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'
3974 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3975
3976 int test (int i, double x);
3977 struct s1 {int (*f) (int a);};
3978 struct s2 {int (*f) (double a);};
3979 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3980 int argc;
3981 char **argv;
3982 int
3983 main ()
3984 {
3985 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3986 ;
3987 return 0;
3988 }
3989 _ACEOF
3990 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3991 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3992 do
3993 CC="$ac_save_CC $ac_arg"
3994 rm -f conftest.$ac_objext
3995 if { (ac_try="$ac_compile"
3996 case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999 esac
4000 eval 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
4012 ac_cv_prog_cc_c89=$ac_arg
4013 else
4014 $as_echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4016
4017
4018 fi
4019
4020 rm -f core conftest.err conftest.$ac_objext
4021 test "x$ac_cv_prog_cc_c89" != "xno" && break
4022 done
4023 rm -f conftest.$ac_ext
4024 CC=$ac_save_CC
4025
4026 fi
4027 # AC_CACHE_VAL
4028 case "x$ac_cv_prog_cc_c89" in
4029 x)
4030 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4031 $as_echo "none needed" >&6; } ;;
4032 xno)
4033 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4034 $as_echo "unsupported" >&6; } ;;
4035 *)
4036 CC="$CC $ac_cv_prog_cc_c89"
4037 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4038 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4039 esac
4040
4041
4042 ac_ext=c
4043 ac_cpp='$CPP $CPPFLAGS'
4044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4047 DEPDIR="${am__leading_dot}deps"
4048
4049 ac_config_commands="$ac_config_commands depfiles"
4050
4051
4052 am_make=${MAKE-make}
4053 cat > confinc << 'END'
4054 am__doit:
4055 @echo this is the am__doit target
4056 .PHONY: am__doit
4057 END
4058 # If we don't find an include directive, just comment out the code.
4059 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4060 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4061 am__include="#"
4062 am__quote=
4063 _am_result=none
4064 # First try GNU make style include.
4065 echo "include confinc" > confmf
4066 # Ignore all kinds of additional output from `make'.
4067 case `$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 ;;
4073 esac
4074 # Now try BSD make style include.
4075 if 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
4084 fi
4085
4086
4087 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4088 $as_echo "$_am_result" >&6; }
4089 rm -f confinc confmf
4090
4091 # Check whether --enable-dependency-tracking was given.
4092 if test "${enable_dependency_tracking+set}" = set; then
4093 enableval=$enable_dependency_tracking;
4094 fi
4095
4096 if test "x$enable_dependency_tracking" != xno; then
4097 am_depcomp="$ac_aux_dir/depcomp"
4098 AMDEPBACKSLASH='\'
4099 fi
4100 if test "x$enable_dependency_tracking" != xno; then
4101 AMDEP_TRUE=
4102 AMDEP_FALSE='#'
4103 else
4104 AMDEP_TRUE='#'
4105 AMDEP_FALSE=
4106 fi
4107
4108
4109
4110 depcc="$CC" am_compiler_list=
4111
4112 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4113 $as_echo_n "checking dependency style of $depcc... " >&6; }
4114 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4115 $as_echo_n "(cached) " >&6
4116 else
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
4121 # making a dummy file named `D' -- because `-MD' means `put the output
4122 # in D'.
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
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
4159 done
4160 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4161
4162 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4163 # mode. It turns out that the SunPro C++ compiler does not properly
4164 # handle `-M -o', and we need to detect this. Also, some Intel
4165 # versions had trouble with output in subdirs
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)
4174 # after this tag, mechanisms are not by side-effect, so they'll
4175 # only be used when explicitly requested
4176 if test "x$enable_dependency_tracking" = xyes; then
4177 continue
4178 else
4179 break
4180 fi
4181 ;;
4182 msvisualcpp | msvcmsys)
4183 # This compiler won't grok `-c -o', but also, the minuso test has
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
4217 else
4218 am_cv_CC_dependencies_compiler_type=none
4219 fi
4220
4221 fi
4222 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4223 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4224 CCDEPMODE=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='#'
4231 else
4232 am__fastdepCC_TRUE='#'
4233 am__fastdepCC_FALSE=
4234 fi
4235
4236
4237 case `pwd` in
4238 *\ * | *\ *)
4239 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4240 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4241 esac
4242
4243
4244
4245 macro_version='2.2.6b'
4246 macro_revision='1.3017'
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260 ltmain="$ac_aux_dir/ltmain.sh"
4261
4262 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4263 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4264 if test "${ac_cv_path_SED+set}" = set; then
4265 $as_echo_n "(cached) " >&6
4266 else
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
4272 $as_unset ac_script || ac_script=
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
4277 for as_dir in $PATH
4278 do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_prog in sed gsed; do
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4284 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4285 # Check for GNU ac_path_SED and select it if it is found.
4286 # Check for GNU $ac_path_SED
4287 case `"$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
4301 ac_count=`expr $ac_count + 1`
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;;
4311 esac
4312
4313 $ac_path_SED_found && break 3
4314 done
4315 done
4316 done
4317 IFS=$as_save_IFS
4318 if test -z "$ac_cv_path_SED"; then
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; }; }
4322 fi
4323 else
4324 ac_cv_path_SED=$SED
4325 fi
4326
4327 fi
4328 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4329 $as_echo "$ac_cv_path_SED" >&6; }
4330 SED="$ac_cv_path_SED"
4331 rm -f conftest.sed
4332
4333 test -z "$SED" && SED=sed
4334 Xsed="$SED -e 1s/^X//"
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4347 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4348 if test "${ac_cv_path_GREP+set}" = set; then
4349 $as_echo_n "(cached) " >&6
4350 else
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
4355 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4356 do
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 for ac_prog in grep ggrep; do
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4362 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4363 # Check for GNU ac_path_GREP and select it if it is found.
4364 # Check for GNU $ac_path_GREP
4365 case `"$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
4379 ac_count=`expr $ac_count + 1`
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;;
4389 esac
4390
4391 $ac_path_GREP_found && break 3
4392 done
4393 done
4394 done
4395 IFS=$as_save_IFS
4396 if test -z "$ac_cv_path_GREP"; then
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; }; }
4400 fi
4401 else
4402 ac_cv_path_GREP=$GREP
4403 fi
4404
4405 fi
4406 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4407 $as_echo "$ac_cv_path_GREP" >&6; }
4408 GREP="$ac_cv_path_GREP"
4409
4410
4411 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4412 $as_echo_n "checking for egrep... " >&6; }
4413 if test "${ac_cv_path_EGREP+set}" = set; then
4414 $as_echo_n "(cached) " >&6
4415 else
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
4423 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4424 do
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_prog in egrep; do
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4430 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4431 # Check for GNU ac_path_EGREP and select it if it is found.
4432 # Check for GNU $ac_path_EGREP
4433 case `"$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
4447 ac_count=`expr $ac_count + 1`
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;;
4457 esac
4458
4459 $ac_path_EGREP_found && break 3
4460 done
4461 done
4462 done
4463 IFS=$as_save_IFS
4464 if test -z "$ac_cv_path_EGREP"; then
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; }; }
4468 fi
4469 else
4470 ac_cv_path_EGREP=$EGREP
4471 fi
4472
4473 fi
4474 fi
4475 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4476 $as_echo "$ac_cv_path_EGREP" >&6; }
4477 EGREP="$ac_cv_path_EGREP"
4478
4479
4480 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4481 $as_echo_n "checking for fgrep... " >&6; }
4482 if test "${ac_cv_path_FGREP+set}" = set; then
4483 $as_echo_n "(cached) " >&6
4484 else
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
4492 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4493 do
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_prog in fgrep; do
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4499 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4500 # Check for GNU ac_path_FGREP and select it if it is found.
4501 # Check for GNU $ac_path_FGREP
4502 case `"$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
4516 ac_count=`expr $ac_count + 1`
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;;
4526 esac
4527
4528 $ac_path_FGREP_found && break 3
4529 done
4530 done
4531 done
4532 IFS=$as_save_IFS
4533 if test -z "$ac_cv_path_FGREP"; then
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; }; }
4537 fi
4538 else
4539 ac_cv_path_FGREP=$FGREP
4540 fi
4541
4542 fi
4543 fi
4544 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4545 $as_echo "$ac_cv_path_FGREP" >&6; }
4546 FGREP="$ac_cv_path_FGREP"
4547
4548
4549 test -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.
4570 if test "${with_gnu_ld+set}" = set; then
4571 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4572 else
4573 with_gnu_ld=no
4574 fi
4575
4576 ac_prog=ld
4577 if test "$GCC" = yes; then
4578 # Check if gcc -print-prog-name=ld gives a path.
4579 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4580 $as_echo_n "checking for ld used by $CC... " >&6; }
4581 case $host in
4582 *-*-mingw*)
4583 # gcc leaves a trailing carriage return which upsets mingw
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
4597 test -z "$LD" && LD="$ac_prog"
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
4608 elif test "$with_gnu_ld" = yes; then
4609 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4610 $as_echo_n "checking for GNU ld... " >&6; }
4611 else
4612 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4613 $as_echo_n "checking for non-GNU ld... " >&6; }
4614 fi
4615 if test "${lt_cv_path_LD+set}" = set; then
4616 $as_echo_n "(cached) " >&6
4617 else
4618 if test -z "$LD"; then
4619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4620 for ac_dir in $PATH; do
4621 IFS="$lt_save_ifs"
4622 test -z "$ac_dir" && ac_dir=.
4623 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4624 lt_cv_path_LD="$ac_dir/$ac_prog"
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'*)
4630 test "$with_gnu_ld" != no && break
4631 ;;
4632 *)
4633 test "$with_gnu_ld" != yes && break
4634 ;;
4635 esac
4636 fi
4637 done
4638 IFS="$lt_save_ifs"
4639 else
4640 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4641 fi
4642 fi
4643
4644 LD="$lt_cv_path_LD"
4645 if test -n "$LD"; then
4646 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4647 $as_echo "$LD" >&6; }
4648 else
4649 { $as_echo "$as_me:$LINENO: result: no" >&5
4650 $as_echo "no" >&6; }
4651 fi
4652 test -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
4656 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4657 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4658 $as_echo_n "(cached) " >&6
4659 else
4660 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4661 case `$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 ;;
4668 esac
4669 fi
4670 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4671 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4672 with_gnu_ld=$lt_cv_prog_gnu_ld
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4683 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4684 if test "${lt_cv_path_NM+set}" = set; then
4685 $as_echo_n "(cached) " >&6
4686 else
4687 if test -n "$NM"; then
4688 # Let the user override the test.
4689 lt_cv_path_NM="$NM"
4690 else
4691 lt_nm_to_check="${ac_tool_prefix}nm"
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
4696 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4697 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4698 IFS="$lt_save_ifs"
4699 test -z "$ac_dir" && ac_dir=.
4700 tmp_nm="$ac_dir/$lt_tmp_nm"
4701 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4702 # Check to see if the nm accepts a BSD-compat flag.
4703 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4704 # nm: unknown option "B" ignored
4705 # Tru64's nm complains that /dev/null is an invalid object file
4706 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4707 */dev/null* | *'Invalid file or object type'*)
4708 lt_cv_path_NM="$tmp_nm -B"
4709 break
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"
4715 break
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
4726 IFS="$lt_save_ifs"
4727 done
4728 : ${lt_cv_path_NM=no}
4729 fi
4730 fi
4731 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4732 $as_echo "$lt_cv_path_NM" >&6; }
4733 if test "$lt_cv_path_NM" != "no"; then
4734 NM="$lt_cv_path_NM"
4735 else
4736 # Didn't find any BSD compatible name lister, look for dumpbin.
4737 if test -n "$ac_tool_prefix"; then
4738 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4739 do
4740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4745 $as_echo_n "(cached) " >&6
4746 else
4747 if test -n "$DUMPBIN"; then
4748 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4749 else
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
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
4757 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4758 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 break 2
4760 fi
4761 done
4762 done
4763 IFS=$as_save_IFS
4764
4765 fi
4766 fi
4767 DUMPBIN=$ac_cv_prog_DUMPBIN
4768 if test -n "$DUMPBIN"; then
4769 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4770 $as_echo "$DUMPBIN" >&6; }
4771 else
4772 { $as_echo "$as_me:$LINENO: result: no" >&5
4773 $as_echo "no" >&6; }
4774 fi
4775
4776
4777 test -n "$DUMPBIN" && break
4778 done
4779 fi
4780 if test -z "$DUMPBIN"; then
4781 ac_ct_DUMPBIN=$DUMPBIN
4782 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4783 do
4784 # Extract the first word of "$ac_prog", so it can be a program name with args.
4785 set dummy $ac_prog; ac_word=$2
4786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4787 $as_echo_n "checking for $ac_word... " >&6; }
4788 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4789 $as_echo_n "(cached) " >&6
4790 else
4791 if test -n "$ac_ct_DUMPBIN"; then
4792 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4796 do
4797 IFS=$as_save_IFS
4798 test -z "$as_dir" && as_dir=.
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
4801 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 break 2
4804 fi
4805 done
4806 done
4807 IFS=$as_save_IFS
4808
4809 fi
4810 fi
4811 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4812 if test -n "$ac_ct_DUMPBIN"; then
4813 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4814 $as_echo "$ac_ct_DUMPBIN" >&6; }
4815 else
4816 { $as_echo "$as_me:$LINENO: result: no" >&5
4817 $as_echo "no" >&6; }
4818 fi
4819
4820
4821 test -n "$ac_ct_DUMPBIN" && break
4822 done
4823
4824 if test "x$ac_ct_DUMPBIN" = x; then
4825 DUMPBIN=":"
4826 else
4827 case $cross_compiling:$ac_tool_warned in
4828 yes:)
4829 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4831 ac_tool_warned=yes ;;
4832 esac
4833 DUMPBIN=$ac_ct_DUMPBIN
4834 fi
4835 fi
4836
4837
4838 if test "$DUMPBIN" != ":"; then
4839 NM="$DUMPBIN"
4840 fi
4841 fi
4842 test -z "$NM" && NM=nm
4843
4844
4845
4846
4847
4848
4849 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4850 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4851 if test "${lt_cv_nm_interface+set}" = set; then
4852 $as_echo_n "(cached) " >&6
4853 else
4854 lt_cv_nm_interface="BSD nm"
4855 echo "int some_variable = 0;" > conftest.$ac_ext
4856 (eval echo "\"\$as_me:4856: $ac_compile\"" >&5)
4857 (eval "$ac_compile" 2>conftest.err)
4858 cat conftest.err >&5
4859 (eval echo "\"\$as_me:4859: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4860 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4861 cat conftest.err >&5
4862 (eval echo "\"\$as_me:4862: output\"" >&5)
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*
4868 fi
4869 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4870 $as_echo "$lt_cv_nm_interface" >&6; }
4871
4872 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4873 $as_echo_n "checking whether ln -s works... " >&6; }
4874 LN_S=$as_ln_s
4875 if test "$LN_S" = "ln -s"; then
4876 { $as_echo "$as_me:$LINENO: result: yes" >&5
4877 $as_echo "yes" >&6; }
4878 else
4879 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4880 $as_echo "no, using $LN_S" >&6; }
4881 fi
4882
4883 # find the maximum length of command line arguments
4884 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4885 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4886 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4887 $as_echo_n "(cached) " >&6
4888 else
4889 i=0
4890 teststring="ABCD"
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
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
4925 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
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
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`
4970 if test -n "$lt_cv_sys_max_cmd_len"; then
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.
4976 for i in 1 2 3 4 5 6 7 8 ; do
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.
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
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
5001 fi
5002
5003 if test -n $lt_cv_sys_max_cmd_len ; then
5004 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5005 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5006 else
5007 { $as_echo "$as_me:$LINENO: result: none" >&5
5008 $as_echo "none" >&6; }
5009 fi
5010 max_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
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
5024 xsi_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; }
5037 lt_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
5045 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5046 lt_unset=unset
5047 else
5048 lt_unset=false
5049 fi
5050
5051
5052
5053
5054
5055 # test EBCDIC or ASCII
5056 case `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 ;;
5066 esac
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5077 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5078 if test "${lt_cv_ld_reload_flag+set}" = set; then
5079 $as_echo_n "(cached) " >&6
5080 else
5081 lt_cv_ld_reload_flag='-r'
5082 fi
5083 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5084 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5085 reload_flag=$lt_cv_ld_reload_flag
5086 case $reload_flag in
5087 "" | " "*) ;;
5088 *) reload_flag=" $reload_flag" ;;
5089 esac
5090 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5091 case $host_os in
5092 darwin*)
5093 if test "$GCC" = yes; then
5094 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5095 else
5096 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5097 fi
5098 ;;
5099 esac
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109 if 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.
5111 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5115 $as_echo_n "(cached) " >&6
5116 else
5117 if test -n "$OBJDUMP"; then
5118 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5119 else
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5122 do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
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
5127 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5128 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5130 fi
5131 done
5132 done
5133 IFS=$as_save_IFS
5134
5135 fi
5136 fi
5137 OBJDUMP=$ac_cv_prog_OBJDUMP
5138 if test -n "$OBJDUMP"; then
5139 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5140 $as_echo "$OBJDUMP" >&6; }
5141 else
5142 { $as_echo "$as_me:$LINENO: result: no" >&5
5143 $as_echo "no" >&6; }
5144 fi
5145
5146
5147 fi
5148 if 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.
5151 set dummy objdump; ac_word=$2
5152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5155 $as_echo_n "(cached) " >&6
5156 else
5157 if test -n "$ac_ct_OBJDUMP"; then
5158 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
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
5167 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5170 fi
5171 done
5172 done
5173 IFS=$as_save_IFS
5174
5175 fi
5176 fi
5177 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5178 if test -n "$ac_ct_OBJDUMP"; then
5179 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5180 $as_echo "$ac_ct_OBJDUMP" >&6; }
5181 else
5182 { $as_echo "$as_me:$LINENO: result: no" >&5
5183 $as_echo "no" >&6; }
5184 fi
5185
5186 if test "x$ac_ct_OBJDUMP" = x; then
5187 OBJDUMP="false"
5188 else
5189 case $cross_compiling:$ac_tool_warned in
5190 yes:)
5191 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5193 ac_tool_warned=yes ;;
5194 esac
5195 OBJDUMP=$ac_ct_OBJDUMP
5196 fi
5197 else
5198 OBJDUMP="$ac_cv_prog_OBJDUMP"
5199 fi
5200
5201 test -z "$OBJDUMP" && OBJDUMP=objdump
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5212 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5213 if test "${lt_cv_deplibs_check_method+set}" = set; then
5214 $as_echo_n "(cached) " >&6
5215 else
5216 lt_cv_file_magic_cmd='$MAGIC_CMD'
5217 lt_cv_file_magic_test_file=
5218 lt_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.
5222 # `unknown' -- same as none, but documents that we really don't know.
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
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.
5229
5230 case $host_os in
5231 aix[4-9]*)
5232 lt_cv_deplibs_check_method=pass_all
5233 ;;
5234
5235 beos*)
5236 lt_cv_deplibs_check_method=pass_all
5237 ;;
5238
5239 bsdi[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
5245 cygwin*)
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
5251 mingw* | 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.
5255 if ( file / ) >/dev/null 2>&1; then
5256 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5257 lt_cv_file_magic_cmd='func_win32_libid'
5258 else
5259 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5260 lt_cv_file_magic_cmd='$OBJDUMP -f'
5261 fi
5262 ;;
5263
5264 cegcc)
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
5270 darwin* | rhapsody*)
5271 lt_cv_deplibs_check_method=pass_all
5272 ;;
5273
5274 freebsd* | 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
5290 gnu*)
5291 lt_cv_deplibs_check_method=pass_all
5292 ;;
5293
5294 hpux10.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*)
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]'
5303 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5304 ;;
5305 *)
5306 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5307 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5308 ;;
5309 esac
5310 ;;
5311
5312 interix[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
5317 irix5* | 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
5327 # This must be Linux ELF.
5328 linux* | k*bsd*-gnu)
5329 lt_cv_deplibs_check_method=pass_all
5330 ;;
5331
5332 netbsd*)
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
5340 newos6*)
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
5350 openbsd*)
5351 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
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
5358 osf3* | osf4* | osf5*)
5359 lt_cv_deplibs_check_method=pass_all
5360 ;;
5361
5362 rdos*)
5363 lt_cv_deplibs_check_method=pass_all
5364 ;;
5365
5366 solaris*)
5367 lt_cv_deplibs_check_method=pass_all
5368 ;;
5369
5370 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5371 lt_cv_deplibs_check_method=pass_all
5372 ;;
5373
5374 sysv4 | 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
5401 tpf*)
5402 lt_cv_deplibs_check_method=pass_all
5403 ;;
5404 esac
5405
5406 fi
5407 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5408 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5409 file_magic_cmd=$lt_cv_file_magic_cmd
5410 deplibs_check_method=$lt_cv_deplibs_check_method
5411 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424 if test -n "$ac_tool_prefix"; then
5425 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5426 set dummy ${ac_tool_prefix}ar; ac_word=$2
5427 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5428 $as_echo_n "checking for $ac_word... " >&6; }
5429 if test "${ac_cv_prog_AR+set}" = set; then
5430 $as_echo_n "(cached) " >&6
5431 else
5432 if test -n "$AR"; then
5433 ac_cv_prog_AR="$AR" # Let the user override the test.
5434 else
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 for as_dir in $PATH
5437 do
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
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
5444 break 2
5445 fi
5446 done
5447 done
5448 IFS=$as_save_IFS
5449
5450 fi
5451 fi
5452 AR=$ac_cv_prog_AR
5453 if test -n "$AR"; then
5454 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5455 $as_echo "$AR" >&6; }
5456 else
5457 { $as_echo "$as_me:$LINENO: result: no" >&5
5458 $as_echo "no" >&6; }
5459 fi
5460
5461
5462 fi
5463 if test -z "$ac_cv_prog_AR"; then
5464 ac_ct_AR=$AR
5465 # Extract the first word of "ar", so it can be a program name with args.
5466 set dummy ar; ac_word=$2
5467 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5470 $as_echo_n "(cached) " >&6
5471 else
5472 if test -n "$ac_ct_AR"; then
5473 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5474 else
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5477 do
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
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
5484 break 2
5485 fi
5486 done
5487 done
5488 IFS=$as_save_IFS
5489
5490 fi
5491 fi
5492 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5493 if test -n "$ac_ct_AR"; then
5494 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5495 $as_echo "$ac_ct_AR" >&6; }
5496 else
5497 { $as_echo "$as_me:$LINENO: result: no" >&5
5498 $as_echo "no" >&6; }
5499 fi
5500
5501 if test "x$ac_ct_AR" = x; then
5502 AR="false"
5503 else
5504 case $cross_compiling:$ac_tool_warned in
5505 yes:)
5506 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5508 ac_tool_warned=yes ;;
5509 esac
5510 AR=$ac_ct_AR
5511 fi
5512 else
5513 AR="$ac_cv_prog_AR"
5514 fi
5515
5516 test -z "$AR" && AR=ar
5517 test -z "$AR_FLAGS" && AR_FLAGS=cru
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529 if 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.
5531 set dummy ${ac_tool_prefix}strip; ac_word=$2
5532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if test "${ac_cv_prog_STRIP+set}" = set; then
5535 $as_echo_n "(cached) " >&6
5536 else
5537 if test -n "$STRIP"; then
5538 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5539 else
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH
5542 do
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
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
5547 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 break 2
5550 fi
5551 done
5552 done
5553 IFS=$as_save_IFS
5554
5555 fi
5556 fi
5557 STRIP=$ac_cv_prog_STRIP
5558 if test -n "$STRIP"; then
5559 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5560 $as_echo "$STRIP" >&6; }
5561 else
5562 { $as_echo "$as_me:$LINENO: result: no" >&5
5563 $as_echo "no" >&6; }
5564 fi
5565
5566
5567 fi
5568 if 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.
5571 set dummy strip; ac_word=$2
5572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5575 $as_echo_n "(cached) " >&6
5576 else
5577 if test -n "$ac_ct_STRIP"; then
5578 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5579 else
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
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
5587 ac_cv_prog_ac_ct_STRIP="strip"
5588 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5590 fi
5591 done
5592 done
5593 IFS=$as_save_IFS
5594
5595 fi
5596 fi
5597 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5598 if test -n "$ac_ct_STRIP"; then
5599 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5600 $as_echo "$ac_ct_STRIP" >&6; }
5601 else
5602 { $as_echo "$as_me:$LINENO: result: no" >&5
5603 $as_echo "no" >&6; }
5604 fi
5605
5606 if test "x$ac_ct_STRIP" = x; then
5607 STRIP=":"
5608 else
5609 case $cross_compiling:$ac_tool_warned in
5610 yes:)
5611 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5613 ac_tool_warned=yes ;;
5614 esac
5615 STRIP=$ac_ct_STRIP
5616 fi
5617 else
5618 STRIP="$ac_cv_prog_STRIP"
5619 fi
5620
5621 test -z "$STRIP" && STRIP=:
5622
5623
5624
5625
5626
5627
5628 if 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.
5630 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5631 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if test "${ac_cv_prog_RANLIB+set}" = set; then
5634 $as_echo_n "(cached) " >&6
5635 else
5636 if test -n "$RANLIB"; then
5637 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5641 do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
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
5646 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5647 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650 done
5651 done
5652 IFS=$as_save_IFS
5653
5654 fi
5655 fi
5656 RANLIB=$ac_cv_prog_RANLIB
5657 if test -n "$RANLIB"; then
5658 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5659 $as_echo "$RANLIB" >&6; }
5660 else
5661 { $as_echo "$as_me:$LINENO: result: no" >&5
5662 $as_echo "no" >&6; }
5663 fi
5664
5665
5666 fi
5667 if 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.
5670 set dummy ranlib; ac_word=$2
5671 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5672 $as_echo_n "checking for $ac_word... " >&6; }
5673 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5674 $as_echo_n "(cached) " >&6
5675 else
5676 if test -n "$ac_ct_RANLIB"; then
5677 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5678 else
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 for as_dir in $PATH
5681 do
5682 IFS=$as_save_IFS
5683 test -z "$as_dir" && as_dir=.
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
5686 ac_cv_prog_ac_ct_RANLIB="ranlib"
5687 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 break 2
5689 fi
5690 done
5691 done
5692 IFS=$as_save_IFS
5693
5694 fi
5695 fi
5696 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5697 if test -n "$ac_ct_RANLIB"; then
5698 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5699 $as_echo "$ac_ct_RANLIB" >&6; }
5700 else
5701 { $as_echo "$as_me:$LINENO: result: no" >&5
5702 $as_echo "no" >&6; }
5703 fi
5704
5705 if test "x$ac_ct_RANLIB" = x; then
5706 RANLIB=":"
5707 else
5708 case $cross_compiling:$ac_tool_warned in
5709 yes:)
5710 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5712 ac_tool_warned=yes ;;
5713 esac
5714 RANLIB=$ac_ct_RANLIB
5715 fi
5716 else
5717 RANLIB="$ac_cv_prog_RANLIB"
5718 fi
5719
5720 test -z "$RANLIB" && RANLIB=:
5721
5722
5723
5724
5725
5726
5727 # Determine commands to create old-style static archives.
5728 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5729 old_postinstall_cmds='chmod 644 $oldlib'
5730 old_postuninstall_cmds=
5731
5732 if test -n "$RANLIB"; then
5733 case $host_os in
5734 openbsd*)
5735 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5736 ;;
5737 *)
5738 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5739 ;;
5740 esac
5741 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5742 fi
5743
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.
5778 LTCC=${LTCC-"$CC"}
5779
5780 # If no C compiler flags were specified, use CFLAGS.
5781 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5782
5783 # Allow CC to be a program name with arguments.
5784 compiler=$CC
5785
5786
5787 # Check for command to grab the raw symbol name followed by C symbol from nm.
5788 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5789 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5790 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5791 $as_echo_n "(cached) " >&6
5792 else
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.
5798 symcode='[BCDEGRST]'
5799
5800 # Regexp to match symbols that can be accessed directly from C.
5801 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5802
5803 # Define system-specific variables.
5804 case $host_os in
5805 aix*)
5806 symcode='[BCDT]'
5807 ;;
5808 cygwin* | mingw* | pw32* | cegcc*)
5809 symcode='[ABCDGISTW]'
5810 ;;
5811 hpux*)
5812 if test "$host_cpu" = ia64; then
5813 symcode='[ABCDEGRST]'
5814 fi
5815 ;;
5816 irix* | nonstopux*)
5817 symcode='[BCDEGRST]'
5818 ;;
5819 osf*)
5820 symcode='[BCDEGQRST]'
5821 ;;
5822 solaris*)
5823 symcode='[BDRT]'
5824 ;;
5825 sco3.2v5*)
5826 symcode='[DT]'
5827 ;;
5828 sysv4.2uw2*)
5829 symcode='[DT]'
5830 ;;
5831 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5832 symcode='[ABDT]'
5833 ;;
5834 sysv4)
5835 symcode='[DFNSTU]'
5836 ;;
5837 esac
5838
5839 # If we're using GNU nm, then use its standard symbol codes.
5840 case `$NM -V 2>&1` in
5841 *GNU* | *'with BFD'*)
5842 symcode='[ABCDGIRSTW]' ;;
5843 esac
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.
5848 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5849
5850 # Transform an extracted symbol line into symbol name and symbol address
5851 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5852 lt_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'"
5853
5854 # Handle CRLF in mingw tool chain
5855 opt_cr=
5856 case $build_os in
5857 mingw*)
5858 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5859 ;;
5860 esac
5861
5862 # Try without a prefix underscore, then with it.
5863 for 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
5870 # Fake it for dumpbin and say T for any non-static function
5871 # and D for any global variable.
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};"\
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};"\
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))}"\
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
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
5895 extern "C" {
5896 #endif
5897 char nm_test_var;
5898 void nm_test_func(void);
5899 void nm_test_func(void){}
5900 #ifdef __cplusplus
5901 }
5902 #endif
5903 int main(){nm_test_var='a';nm_test_func();return(0);}
5904 _LT_EOF
5905
5906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5907 (eval $ac_compile) 2>&5
5908 ac_status=$?
5909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; then
5911 # Now try to grab the symbols.
5912 nlist=conftest.nm
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
5915 ac_status=$?
5916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } && test -s "$nlist"; then
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
5929 #ifdef __cplusplus
5930 extern "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. */
5940 const struct {
5941 const char *name;
5942 void *address;
5943 }
5944 lt__PROGRAM__LTX_preloaded_symbols[] =
5945 {
5946 { "@PROGRAM@", (void *) 0 },
5947 _LT_EOF
5948 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
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
5955 static 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
5966 lt_save_LIBS="$LIBS"
5967 lt_save_CFLAGS="$CFLAGS"
5968 LIBS="conftstm.$ac_objext"
5969 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5971 (eval $ac_link) 2>&5
5972 ac_status=$?
5973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5975 pipe_works=yes
5976 fi
5977 LIBS="$lt_save_LIBS"
5978 CFLAGS="$lt_save_CFLAGS"
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.
5995 if test "$pipe_works" = yes; then
5996 break
5997 else
5998 lt_cv_sys_global_symbol_pipe=
5999 fi
6000 done
6001
6002 fi
6003
6004 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6005 lt_cv_sys_global_symbol_to_cdecl=
6006 fi
6007 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6008 { $as_echo "$as_me:$LINENO: result: failed" >&5
6009 $as_echo "failed" >&6; }
6010 else
6011 { $as_echo "$as_me:$LINENO: result: ok" >&5
6012 $as_echo "ok" >&6; }
6013 fi
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037 # Check whether --enable-libtool-lock was given.
6038 if test "${enable_libtool_lock+set}" = set; then
6039 enableval=$enable_libtool_lock;
6040 fi
6041
6042 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6043
6044 # Some flags need to be propagated to the compiler or linker for good
6045 # libtool support.
6046 case $host in
6047 ia64-*-hpux*)
6048 # Find out which ABI we are using.
6049 echo 'int i;' > conftest.$ac_ext
6050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6051 (eval $ac_compile) 2>&5
6052 ac_status=$?
6053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; then
6055 case `/usr/bin/file conftest.$ac_objext` in
6056 *ELF-32*)
6057 HPUX_IA64_MODE="32"
6058 ;;
6059 *ELF-64*)
6060 HPUX_IA64_MODE="64"
6061 ;;
6062 esac
6063 fi
6064 rm -rf conftest*
6065 ;;
6066 *-*-irix6*)
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
6070 (eval $ac_compile) 2>&5
6071 ac_status=$?
6072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; then
6074 if test "$lt_cv_prog_gnu_ld" = yes; then
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
6103 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6104 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6105 # Find out which ABI we are using.
6106 echo 'int i;' > conftest.$ac_ext
6107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6108 (eval $ac_compile) 2>&5
6109 ac_status=$?
6110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; then
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*)
6119 LD="${LD-ld} -m elf_i386"
6120 ;;
6121 ppc64-*linux*|powerpc64-*linux*)
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 ;;
6140 ppc*-*linux*|powerpc*-*linux*)
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.
6158 SAVE_CFLAGS="$CFLAGS"
6159 CFLAGS="$CFLAGS -belf"
6160 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6161 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6162 if test "${lt_cv_cc_needs_belf+set}" = set; then
6163 $as_echo_n "(cached) " >&6
6164 else
6165 ac_ext=c
6166 ac_cpp='$CPP $CPPFLAGS'
6167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6170
6171 cat >conftest.$ac_ext <<_ACEOF
6172 /* confdefs.h. */
6173 _ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6177
6178 int
6179 main ()
6180 {
6181
6182 ;
6183 return 0;
6184 }
6185 _ACEOF
6186 rm -f conftest.$ac_objext conftest$ac_exeext
6187 if { (ac_try="$ac_link"
6188 case "(($ac_try" in
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6191 esac
6192 eval 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
6207 lt_cv_cc_needs_belf=yes
6208 else
6209 $as_echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.$ac_ext >&5
6211
6212 lt_cv_cc_needs_belf=no
6213 fi
6214
6215 rm -rf conftest.dSYM
6216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6217 conftest$ac_exeext conftest.$ac_ext
6218 ac_ext=c
6219 ac_cpp='$CPP $CPPFLAGS'
6220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6223
6224 fi
6225 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6226 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6227 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6228 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6229 CFLAGS="$SAVE_CFLAGS"
6230 fi
6231 ;;
6232 sparc*-*solaris*)
6233 # Find out which ABI we are using.
6234 echo 'int i;' > conftest.$ac_ext
6235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6236 (eval $ac_compile) 2>&5
6237 ac_status=$?
6238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); }; then
6240 case `/usr/bin/file conftest.o` in
6241 *64-bit*)
6242 case $lt_cv_prog_gnu_ld in
6243 yes*) LD="${LD-ld} -m elf64_sparc" ;;
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 ;;
6255 esac
6256
6257 need_locks="$enable_libtool_lock"
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.
6264 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6265 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6266 $as_echo_n "checking for $ac_word... " >&6; }
6267 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6268 $as_echo_n "(cached) " >&6
6269 else
6270 if test -n "$DSYMUTIL"; then
6271 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276 IFS=$as_save_IFS
6277 test -z "$as_dir" && as_dir=.
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
6280 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6281 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 break 2
6283 fi
6284 done
6285 done
6286 IFS=$as_save_IFS
6287
6288 fi
6289 fi
6290 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6291 if test -n "$DSYMUTIL"; then
6292 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6293 $as_echo "$DSYMUTIL" >&6; }
6294 else
6295 { $as_echo "$as_me:$LINENO: result: no" >&5
6296 $as_echo "no" >&6; }
6297 fi
6298
6299
6300 fi
6301 if 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.
6304 set dummy dsymutil; ac_word=$2
6305 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6306 $as_echo_n "checking for $ac_word... " >&6; }
6307 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6308 $as_echo_n "(cached) " >&6
6309 else
6310 if test -n "$ac_ct_DSYMUTIL"; then
6311 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6312 else
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 for as_dir in $PATH
6315 do
6316 IFS=$as_save_IFS
6317 test -z "$as_dir" && as_dir=.
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
6320 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6321 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 break 2
6323 fi
6324 done
6325 done
6326 IFS=$as_save_IFS
6327
6328 fi
6329 fi
6330 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6331 if test -n "$ac_ct_DSYMUTIL"; then
6332 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6333 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6334 else
6335 { $as_echo "$as_me:$LINENO: result: no" >&5
6336 $as_echo "no" >&6; }
6337 fi
6338
6339 if test "x$ac_ct_DSYMUTIL" = x; then
6340 DSYMUTIL=":"
6341 else
6342 case $cross_compiling:$ac_tool_warned in
6343 yes:)
6344 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6346 ac_tool_warned=yes ;;
6347 esac
6348 DSYMUTIL=$ac_ct_DSYMUTIL
6349 fi
6350 else
6351 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6352 fi
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.
6356 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6357 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6358 $as_echo_n "checking for $ac_word... " >&6; }
6359 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6360 $as_echo_n "(cached) " >&6
6361 else
6362 if test -n "$NMEDIT"; then
6363 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6364 else
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6367 do
6368 IFS=$as_save_IFS
6369 test -z "$as_dir" && as_dir=.
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
6372 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 break 2
6375 fi
6376 done
6377 done
6378 IFS=$as_save_IFS
6379
6380 fi
6381 fi
6382 NMEDIT=$ac_cv_prog_NMEDIT
6383 if test -n "$NMEDIT"; then
6384 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6385 $as_echo "$NMEDIT" >&6; }
6386 else
6387 { $as_echo "$as_me:$LINENO: result: no" >&5
6388 $as_echo "no" >&6; }
6389 fi
6390
6391
6392 fi
6393 if 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.
6396 set dummy nmedit; ac_word=$2
6397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 $as_echo_n "checking for $ac_word... " >&6; }
6399 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6400 $as_echo_n "(cached) " >&6
6401 else
6402 if test -n "$ac_ct_NMEDIT"; then
6403 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6404 else
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6407 do
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
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
6412 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 break 2
6415 fi
6416 done
6417 done
6418 IFS=$as_save_IFS
6419
6420 fi
6421 fi
6422 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6423 if test -n "$ac_ct_NMEDIT"; then
6424 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6425 $as_echo "$ac_ct_NMEDIT" >&6; }
6426 else
6427 { $as_echo "$as_me:$LINENO: result: no" >&5
6428 $as_echo "no" >&6; }
6429 fi
6430
6431 if test "x$ac_ct_NMEDIT" = x; then
6432 NMEDIT=":"
6433 else
6434 case $cross_compiling:$ac_tool_warned in
6435 yes:)
6436 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6438 ac_tool_warned=yes ;;
6439 esac
6440 NMEDIT=$ac_ct_NMEDIT
6441 fi
6442 else
6443 NMEDIT="$ac_cv_prog_NMEDIT"
6444 fi
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.
6448 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6449 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if test "${ac_cv_prog_LIPO+set}" = set; then
6452 $as_echo_n "(cached) " >&6
6453 else
6454 if test -n "$LIPO"; then
6455 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
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
6464 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6467 fi
6468 done
6469 done
6470 IFS=$as_save_IFS
6471
6472 fi
6473 fi
6474 LIPO=$ac_cv_prog_LIPO
6475 if test -n "$LIPO"; then
6476 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6477 $as_echo "$LIPO" >&6; }
6478 else
6479 { $as_echo "$as_me:$LINENO: result: no" >&5
6480 $as_echo "no" >&6; }
6481 fi
6482
6483
6484 fi
6485 if 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.
6488 set dummy lipo; ac_word=$2
6489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 $as_echo_n "checking for $ac_word... " >&6; }
6491 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6492 $as_echo_n "(cached) " >&6
6493 else
6494 if test -n "$ac_ct_LIPO"; then
6495 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6499 do
6500 IFS=$as_save_IFS
6501 test -z "$as_dir" && as_dir=.
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
6504 ac_cv_prog_ac_ct_LIPO="lipo"
6505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 break 2
6507 fi
6508 done
6509 done
6510 IFS=$as_save_IFS
6511
6512 fi
6513 fi
6514 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6515 if test -n "$ac_ct_LIPO"; then
6516 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6517 $as_echo "$ac_ct_LIPO" >&6; }
6518 else
6519 { $as_echo "$as_me:$LINENO: result: no" >&5
6520 $as_echo "no" >&6; }
6521 fi
6522
6523 if test "x$ac_ct_LIPO" = x; then
6524 LIPO=":"
6525 else
6526 case $cross_compiling:$ac_tool_warned in
6527 yes:)
6528 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6530 ac_tool_warned=yes ;;
6531 esac
6532 LIPO=$ac_ct_LIPO
6533 fi
6534 else
6535 LIPO="$ac_cv_prog_LIPO"
6536 fi
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.
6540 set dummy ${ac_tool_prefix}otool; ac_word=$2
6541 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if test "${ac_cv_prog_OTOOL+set}" = set; then
6544 $as_echo_n "(cached) " >&6
6545 else
6546 if test -n "$OTOOL"; then
6547 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6548 else
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH
6551 do
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
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
6556 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 break 2
6559 fi
6560 done
6561 done
6562 IFS=$as_save_IFS
6563
6564 fi
6565 fi
6566 OTOOL=$ac_cv_prog_OTOOL
6567 if test -n "$OTOOL"; then
6568 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6569 $as_echo "$OTOOL" >&6; }
6570 else
6571 { $as_echo "$as_me:$LINENO: result: no" >&5
6572 $as_echo "no" >&6; }
6573 fi
6574
6575
6576 fi
6577 if 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.
6580 set dummy otool; ac_word=$2
6581 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6584 $as_echo_n "(cached) " >&6
6585 else
6586 if test -n "$ac_ct_OTOOL"; then
6587 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6588 else
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590 for as_dir in $PATH
6591 do
6592 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
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
6596 ac_cv_prog_ac_ct_OTOOL="otool"
6597 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 break 2
6599 fi
6600 done
6601 done
6602 IFS=$as_save_IFS
6603
6604 fi
6605 fi
6606 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6607 if test -n "$ac_ct_OTOOL"; then
6608 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6609 $as_echo "$ac_ct_OTOOL" >&6; }
6610 else
6611 { $as_echo "$as_me:$LINENO: result: no" >&5
6612 $as_echo "no" >&6; }
6613 fi
6614
6615 if test "x$ac_ct_OTOOL" = x; then
6616 OTOOL=":"
6617 else
6618 case $cross_compiling:$ac_tool_warned in
6619 yes:)
6620 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6622 ac_tool_warned=yes ;;
6623 esac
6624 OTOOL=$ac_ct_OTOOL
6625 fi
6626 else
6627 OTOOL="$ac_cv_prog_OTOOL"
6628 fi
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.
6632 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6633 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6634 $as_echo_n "checking for $ac_word... " >&6; }
6635 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6636 $as_echo_n "(cached) " >&6
6637 else
6638 if test -n "$OTOOL64"; then
6639 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6643 do
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
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
6648 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6649 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6651 fi
6652 done
6653 done
6654 IFS=$as_save_IFS
6655
6656 fi
6657 fi
6658 OTOOL64=$ac_cv_prog_OTOOL64
6659 if test -n "$OTOOL64"; then
6660 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6661 $as_echo "$OTOOL64" >&6; }
6662 else
6663 { $as_echo "$as_me:$LINENO: result: no" >&5
6664 $as_echo "no" >&6; }
6665 fi
6666
6667
6668 fi
6669 if 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.
6672 set dummy otool64; ac_word=$2
6673 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 $as_echo_n "checking for $ac_word... " >&6; }
6675 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6676 $as_echo_n "(cached) " >&6
6677 else
6678 if test -n "$ac_ct_OTOOL64"; then
6679 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684 IFS=$as_save_IFS
6685 test -z "$as_dir" && as_dir=.
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
6688 ac_cv_prog_ac_ct_OTOOL64="otool64"
6689 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 break 2
6691 fi
6692 done
6693 done
6694 IFS=$as_save_IFS
6695
6696 fi
6697 fi
6698 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6699 if test -n "$ac_ct_OTOOL64"; then
6700 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6701 $as_echo "$ac_ct_OTOOL64" >&6; }
6702 else
6703 { $as_echo "$as_me:$LINENO: result: no" >&5
6704 $as_echo "no" >&6; }
6705 fi
6706
6707 if test "x$ac_ct_OTOOL64" = x; then
6708 OTOOL64=":"
6709 else
6710 case $cross_compiling:$ac_tool_warned in
6711 yes:)
6712 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6714 ac_tool_warned=yes ;;
6715 esac
6716 OTOOL64=$ac_ct_OTOOL64
6717 fi
6718 else
6719 OTOOL64="$ac_cv_prog_OTOOL64"
6720 fi
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
6748 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6749 $as_echo_n "checking for -single_module linker flag... " >&6; }
6750 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6751 $as_echo_n "(cached) " >&6
6752 else
6753 lt_cv_apple_cc_single_mod=no
6754 if test -z "${LT_MULTI_MODULE}"; then
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=$?
6766 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
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
6774 fi
6775 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6776 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6777 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6778 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6779 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6780 $as_echo_n "(cached) " >&6
6781 else
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"
6786 cat >conftest.$ac_ext <<_ACEOF
6787 /* confdefs.h. */
6788 _ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h. */
6792
6793 int
6794 main ()
6795 {
6796
6797 ;
6798 return 0;
6799 }
6800 _ACEOF
6801 rm -f conftest.$ac_objext conftest$ac_exeext
6802 if { (ac_try="$ac_link"
6803 case "(($ac_try" in
6804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6805 *) ac_try_echo=$ac_try;;
6806 esac
6807 eval 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
6822 lt_cv_ld_exported_symbols_list=yes
6823 else
6824 $as_echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6826
6827 lt_cv_ld_exported_symbols_list=no
6828 fi
6829
6830 rm -rf conftest.dSYM
6831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6832 conftest$ac_exeext conftest.$ac_ext
6833 LDFLAGS="$save_LDFLAGS"
6834
6835 fi
6836 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6837 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6838 case $host_os in
6839 rhapsody* | darwin1.[012])
6840 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6841 darwin1.*)
6842 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
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]*)
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' ;;
6852 10.*)
6853 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6854 esac
6855 ;;
6856 esac
6857 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6858 _lt_dar_single_mod='$single_module'
6859 fi
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'
6862 else
6863 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6864 fi
6865 if test "$DSYMUTIL" != ":"; then
6866 _lt_dsymutil='~$DSYMUTIL $lib || :'
6867 else
6868 _lt_dsymutil=
6869 fi
6870 ;;
6871 esac
6872
6873 ac_ext=c
6874 ac_cpp='$CPP $CPPFLAGS'
6875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6878 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6879 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6880 # On Suns, sometimes $CPP names a directory.
6881 if test -n "$CPP" && test -d "$CPP"; then
6882 CPP=
6883 fi
6884 if test -z "$CPP"; then
6885 if test "${ac_cv_prog_CPP+set}" = set; then
6886 $as_echo_n "(cached) " >&6
6887 else
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
6892 for ac_c_preproc_warn_flag in '' yes
6893 do
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.
6900 cat >conftest.$ac_ext <<_ACEOF
6901 /* confdefs.h. */
6902 _ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6906 #ifdef __STDC__
6907 # include <limits.h>
6908 #else
6909 # include <assert.h>
6910 #endif
6911 Syntax error
6912 _ACEOF
6913 if { (ac_try="$ac_cpp conftest.$ac_ext"
6914 case "(($ac_try" in
6915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916 *) ac_try_echo=$ac_try;;
6917 esac
6918 eval 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 :
6931 else
6932 $as_echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6934
6935 # Broken: fails on valid input.
6936 continue
6937 fi
6938
6939 rm -f conftest.err conftest.$ac_ext
6940
6941 # OK, works on sane cases. Now check whether nonexistent headers
6942 # can be detected and how.
6943 cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h. */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 #include <ac_nonexistent.h>
6950 _ACEOF
6951 if { (ac_try="$ac_cpp conftest.$ac_ext"
6952 case "(($ac_try" in
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6955 esac
6956 eval 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
6968 # Broken: success on invalid input.
6969 continue
6970 else
6971 $as_echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6973
6974 # Passes both tests.
6975 ac_preproc_ok=:
6976 break
6977 fi
6978
6979 rm -f conftest.err conftest.$ac_ext
6980
6981 done
6982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6983 rm -f conftest.err conftest.$ac_ext
6984 if $ac_preproc_ok; then
6985 break
6986 fi
6987
6988 done
6989 ac_cv_prog_CPP=$CPP
6990
6991 fi
6992 CPP=$ac_cv_prog_CPP
6993 else
6994 ac_cv_prog_CPP=$CPP
6995 fi
6996 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6997 $as_echo "$CPP" >&6; }
6998 ac_preproc_ok=false
6999 for ac_c_preproc_warn_flag in '' yes
7000 do
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.
7007 cat >conftest.$ac_ext <<_ACEOF
7008 /* confdefs.h. */
7009 _ACEOF
7010 cat confdefs.h >>conftest.$ac_ext
7011 cat >>conftest.$ac_ext <<_ACEOF
7012 /* end confdefs.h. */
7013 #ifdef __STDC__
7014 # include <limits.h>
7015 #else
7016 # include <assert.h>
7017 #endif
7018 Syntax error
7019 _ACEOF
7020 if { (ac_try="$ac_cpp conftest.$ac_ext"
7021 case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7024 esac
7025 eval 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 :
7038 else
7039 $as_echo "$as_me: failed program was:" >&5
7040 sed 's/^/| /' conftest.$ac_ext >&5
7041
7042 # Broken: fails on valid input.
7043 continue
7044 fi
7045
7046 rm -f conftest.err conftest.$ac_ext
7047
7048 # OK, works on sane cases. Now check whether nonexistent headers
7049 # can be detected and how.
7050 cat >conftest.$ac_ext <<_ACEOF
7051 /* confdefs.h. */
7052 _ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7056 #include <ac_nonexistent.h>
7057 _ACEOF
7058 if { (ac_try="$ac_cpp conftest.$ac_ext"
7059 case "(($ac_try" in
7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7062 esac
7063 eval 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
7075 # Broken: success on invalid input.
7076 continue
7077 else
7078 $as_echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.$ac_ext >&5
7080
7081 # Passes both tests.
7082 ac_preproc_ok=:
7083 break
7084 fi
7085
7086 rm -f conftest.err conftest.$ac_ext
7087
7088 done
7089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7090 rm -f conftest.err conftest.$ac_ext
7091 if $ac_preproc_ok; then
7092 :
7093 else
7094 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7096 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7097 See \`config.log' for more details." >&5
7098 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7099 See \`config.log' for more details." >&2;}
7100 { (exit 1); exit 1; }; }; }
7101 fi
7102
7103 ac_ext=c
7104 ac_cpp='$CPP $CPPFLAGS'
7105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7108
7109
7110 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7111 $as_echo_n "checking for ANSI C header files... " >&6; }
7112 if test "${ac_cv_header_stdc+set}" = set; then
7113 $as_echo_n "(cached) " >&6
7114 else
7115 cat >conftest.$ac_ext <<_ACEOF
7116 /* confdefs.h. */
7117 _ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7121 #include <stdlib.h>
7122 #include <stdarg.h>
7123 #include <string.h>
7124 #include <float.h>
7125
7126 int
7127 main ()
7128 {
7129
7130 ;
7131 return 0;
7132 }
7133 _ACEOF
7134 rm -f conftest.$ac_objext
7135 if { (ac_try="$ac_compile"
7136 case "(($ac_try" in
7137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7138 *) ac_try_echo=$ac_try;;
7139 esac
7140 eval 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
7152 ac_cv_header_stdc=yes
7153 else
7154 $as_echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.$ac_ext >&5
7156
7157 ac_cv_header_stdc=no
7158 fi
7159
7160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7161
7162 if test $ac_cv_header_stdc = yes; then
7163 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7164 cat >conftest.$ac_ext <<_ACEOF
7165 /* confdefs.h. */
7166 _ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h. */
7170 #include <string.h>
7171
7172 _ACEOF
7173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7174 $EGREP "memchr" >/dev/null 2>&1; then
7175 :
7176 else
7177 ac_cv_header_stdc=no
7178 fi
7179 rm -f conftest*
7180
7181 fi
7182
7183 if test $ac_cv_header_stdc = yes; then
7184 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7185 cat >conftest.$ac_ext <<_ACEOF
7186 /* confdefs.h. */
7187 _ACEOF
7188 cat confdefs.h >>conftest.$ac_ext
7189 cat >>conftest.$ac_ext <<_ACEOF
7190 /* end confdefs.h. */
7191 #include <stdlib.h>
7192
7193 _ACEOF
7194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7195 $EGREP "free" >/dev/null 2>&1; then
7196 :
7197 else
7198 ac_cv_header_stdc=no
7199 fi
7200 rm -f conftest*
7201
7202 fi
7203
7204 if test $ac_cv_header_stdc = yes; then
7205 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7206 if test "$cross_compiling" = yes; then
7207 :
7208 else
7209 cat >conftest.$ac_ext <<_ACEOF
7210 /* confdefs.h. */
7211 _ACEOF
7212 cat confdefs.h >>conftest.$ac_ext
7213 cat >>conftest.$ac_ext <<_ACEOF
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)))
7229 int
7230 main ()
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
7240 rm -f conftest$ac_exeext
7241 if { (ac_try="$ac_link"
7242 case "(($ac_try" in
7243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7244 *) ac_try_echo=$ac_try;;
7245 esac
7246 eval 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;;
7255 esac
7256 eval 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 :
7263 else
7264 $as_echo "$as_me: program exited with status $ac_status" >&5
7265 $as_echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7267
7268 ( exit $ac_status )
7269 ac_cv_header_stdc=no
7270 fi
7271 rm -rf conftest.dSYM
7272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7273 fi
7274
7275
7276 fi
7277 fi
7278 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7279 $as_echo "$ac_cv_header_stdc" >&6; }
7280 if test $ac_cv_header_stdc = yes; then
7281
7282 cat >>confdefs.h <<\_ACEOF
7283 #define STDC_HEADERS 1
7284 _ACEOF
7285
7286 fi
7287
7288 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7299 inttypes.h stdint.h unistd.h
7300 do
7301 as_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; }
7304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7305 $as_echo_n "(cached) " >&6
7306 else
7307 cat >conftest.$ac_ext <<_ACEOF
7308 /* confdefs.h. */
7309 _ACEOF
7310 cat confdefs.h >>conftest.$ac_ext
7311 cat >>conftest.$ac_ext <<_ACEOF
7312 /* end confdefs.h. */
7313 $ac_includes_default
7314
7315 #include <$ac_header>
7316 _ACEOF
7317 rm -f conftest.$ac_objext
7318 if { (ac_try="$ac_compile"
7319 case "(($ac_try" in
7320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321 *) ac_try_echo=$ac_try;;
7322 esac
7323 eval 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"
7336 else
7337 $as_echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7339
7340 eval "$as_ac_Header=no"
7341 fi
7342
7343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 fi
7345 ac_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; }
7349 as_val=`eval 'as_val=${'$as_ac_Header'}
7350 $as_echo "$as_val"'`
7351 if test "x$as_val" = x""yes; then
7352 cat >>confdefs.h <<_ACEOF
7353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7354 _ACEOF
7355
7356 fi
7357
7358 done
7359
7360
7361
7362 for ac_header in dlfcn.h
7363 do
7364 as_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; }
7367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7368 $as_echo_n "(cached) " >&6
7369 else
7370 cat >conftest.$ac_ext <<_ACEOF
7371 /* confdefs.h. */
7372 _ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h. */
7376 $ac_includes_default
7377
7378 #include <$ac_header>
7379 _ACEOF
7380 rm -f conftest.$ac_objext
7381 if { (ac_try="$ac_compile"
7382 case "(($ac_try" in
7383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7384 *) ac_try_echo=$ac_try;;
7385 esac
7386 eval 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"
7399 else
7400 $as_echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.$ac_ext >&5
7402
7403 eval "$as_ac_Header=no"
7404 fi
7405
7406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407 fi
7408 ac_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; }
7412 as_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
7418
7419 fi
7420
7421 done
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.
7436 if test "${enable_shared+set}" = set; then
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.
7444 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7445 for pkg in $enableval; do
7446 IFS="$lt_save_ifs"
7447 if test "X$pkg" = "X$p"; then
7448 enable_shared=yes
7449 fi
7450 done
7451 IFS="$lt_save_ifs"
7452 ;;
7453 esac
7454 else
7455 enable_shared=yes
7456 fi
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466 # Check whether --enable-static was given.
7467 if test "${enable_static+set}" = set; then
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.
7475 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7476 for pkg in $enableval; do
7477 IFS="$lt_save_ifs"
7478 if test "X$pkg" = "X$p"; then
7479 enable_static=yes
7480 fi
7481 done
7482 IFS="$lt_save_ifs"
7483 ;;
7484 esac
7485 else
7486 enable_static=yes
7487 fi
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498 # Check whether --with-pic was given.
7499 if test "${with_pic+set}" = set; then
7500 withval=$with_pic; pic_mode="$withval"
7501 else
7502 pic_mode=default
7503 fi
7504
7505
7506 test -z "$pic_mode" && pic_mode=default
7507
7508
7509
7510
7511
7512
7513
7514 # Check whether --enable-fast-install was given.
7515 if test "${enable_fast_install+set}" = set; then
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.
7523 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7524 for pkg in $enableval; do
7525 IFS="$lt_save_ifs"
7526 if test "X$pkg" = "X$p"; then
7527 enable_fast_install=yes
7528 fi
7529 done
7530 IFS="$lt_save_ifs"
7531 ;;
7532 esac
7533 else
7534 enable_fast_install=yes
7535 fi
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547 # This can be used to rebuild libtool when needed
7548 LIBTOOL_DEPS="$ltmain"
7549
7550 # Always use our own libtool.
7551 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577 test -z "$LN_S" && LN_S="ln -s"
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592 if test -n "${ZSH_VERSION+set}" ; then
7593 setopt NO_GLOB_SUBST
7594 fi
7595
7596 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7597 $as_echo_n "checking for objdir... " >&6; }
7598 if test "${lt_cv_objdir+set}" = set; then
7599 $as_echo_n "(cached) " >&6
7600 else
7601 rm -f .libs 2>/dev/null
7602 mkdir .libs 2>/dev/null
7603 if test -d .libs; then
7604 lt_cv_objdir=.libs
7605 else
7606 # MS-DOS does not allow filenames that begin with a dot.
7607 lt_cv_objdir=_libs
7608 fi
7609 rmdir .libs 2>/dev/null
7610 fi
7611 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7612 $as_echo "$lt_cv_objdir" >&6; }
7613 objdir=$lt_cv_objdir
7614
7615
7616
7617
7618
7619 cat >>confdefs.h <<_ACEOF
7620 #define LT_OBJDIR "$lt_cv_objdir/"
7621 _ACEOF
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639 case $host_os in
7640 aix3*)
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.
7644 if test "X${COLLECT_NAMES+set}" != Xset; then
7645 COLLECT_NAMES=
7646 export COLLECT_NAMES
7647 fi
7648 ;;
7649 esac
7650
7651 # Sed substitution that helps us do robust quoting. It backslashifies
7652 # metacharacters that are still active within double-quoted strings.
7653 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7654
7655 # Same as above, but do not quote variable references.
7656 double_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.
7660 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7661
7662 # Sed substitution to delay expansion of an escaped single quote.
7663 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7664
7665 # Sed substitution to avoid accidental globbing in evaled expressions
7666 no_glob_subst='s/\*/\\\*/g'
7667
7668 # Global variables:
7669 ofile=libtool
7670 can_build_shared=yes
7671
7672 # All known linkers require a `.a' archive for static linking (except MSVC,
7673 # which needs '.lib').
7674 libext=a
7675
7676 with_gnu_ld="$lt_cv_prog_gnu_ld"
7677
7678 old_CC="$CC"
7679 old_CFLAGS="$CFLAGS"
7680
7681 # Set sane defaults for various variables
7682 test -z "$CC" && CC=cc
7683 test -z "$LTCC" && LTCC=$CC
7684 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7685 test -z "$LD" && LD=ld
7686 test -z "$ac_objext" && ac_objext=o
7687
7688 for 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
7695 done
7696 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7697
7698
7699 # Only perform the check for file, if the check method requires it
7700 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7701 case $deplibs_check_method in
7702 file_magic*)
7703 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7704 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7705 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7706 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7707 $as_echo_n "(cached) " >&6
7708 else
7709 case $MAGIC_CMD in
7710 [\\/*] | ?:[\\/]*)
7711 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7712 ;;
7713 *)
7714 lt_save_MAGIC_CMD="$MAGIC_CMD"
7715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7716 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7717 for ac_dir in $ac_dummy; do
7718 IFS="$lt_save_ifs"
7719 test -z "$ac_dir" && ac_dir=.
7720 if test -f $ac_dir/${ac_tool_prefix}file; then
7721 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
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 \(.*\)"`
7726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
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
7749 IFS="$lt_save_ifs"
7750 MAGIC_CMD="$lt_save_MAGIC_CMD"
7751 ;;
7752 esac
7753 fi
7754
7755 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7756 if test -n "$MAGIC_CMD"; then
7757 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7758 $as_echo "$MAGIC_CMD" >&6; }
7759 else
7760 { $as_echo "$as_me:$LINENO: result: no" >&5
7761 $as_echo "no" >&6; }
7762 fi
7763
7764
7765
7766
7767
7768 if test -z "$lt_cv_path_MAGIC_CMD"; then
7769 if test -n "$ac_tool_prefix"; then
7770 { $as_echo "$as_me:$LINENO: checking for file" >&5
7771 $as_echo_n "checking for file... " >&6; }
7772 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7773 $as_echo_n "(cached) " >&6
7774 else
7775 case $MAGIC_CMD in
7776 [\\/*] | ?:[\\/]*)
7777 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7778 ;;
7779 *)
7780 lt_save_MAGIC_CMD="$MAGIC_CMD"
7781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7782 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7783 for ac_dir in $ac_dummy; do
7784 IFS="$lt_save_ifs"
7785 test -z "$ac_dir" && ac_dir=.
7786 if test -f $ac_dir/file; then
7787 lt_cv_path_MAGIC_CMD="$ac_dir/file"
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 \(.*\)"`
7792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
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
7815 IFS="$lt_save_ifs"
7816 MAGIC_CMD="$lt_save_MAGIC_CMD"
7817 ;;
7818 esac
7819 fi
7820
7821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7822 if test -n "$MAGIC_CMD"; then
7823 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7824 $as_echo "$MAGIC_CMD" >&6; }
7825 else
7826 { $as_echo "$as_me:$LINENO: result: no" >&5
7827 $as_echo "no" >&6; }
7828 fi
7829
7830
7831 else
7832 MAGIC_CMD=:
7833 fi
7834 fi
7835
7836 fi
7837 ;;
7838 esac
7839
7840 # Use C for the default configuration in the libtool script
7841
7842 lt_save_CC="$CC"
7843 ac_ext=c
7844 ac_cpp='$CPP $CPPFLAGS'
7845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7848
7849
7850 # Source file extension for C test sources.
7851 ac_ext=c
7852
7853 # Object file extension for compiled C test sources.
7854 objext=o
7855 objext=$objext
7856
7857 # Code to be used in simple compile tests
7858 lt_simple_compile_test_code="int some_variable = 0;"
7859
7860 # Code to be used in simple link tests
7861 lt_simple_link_test_code='int main(){return(0);}'
7862
7863
7864
7865
7866
7867
7868
7869 # If no C compiler was specified, use CC.
7870 LTCC=${LTCC-"$CC"}
7871
7872 # If no C compiler flags were specified, use CFLAGS.
7873 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7874
7875 # Allow CC to be a program name with arguments.
7876 compiler=$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.
7880 compiler_DEFAULT=$CC
7881
7882 # save warnings/boilerplate of simple test code
7883 ac_outfile=conftest.$ac_objext
7884 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7885 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7886 _lt_compiler_boilerplate=`cat conftest.err`
7887 $RM conftest*
7888
7889 ac_outfile=conftest.$ac_objext
7890 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7891 eval "$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...
7900 if test -n "$compiler"; then
7901
7902 lt_prog_compiler_no_builtin_flag=
7903
7904 if test "$GCC" = yes; then
7905 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7906
7907 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7908 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7909 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7910 $as_echo_n "(cached) " >&6
7911 else
7912 lt_cv_prog_compiler_rtti_exceptions=no
7913 ac_outfile=conftest.$ac_objext
7914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7915 lt_compiler_flag="-fno-rtti -fno-exceptions"
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:'`
7925 (eval echo "\"\$as_me:7925: $lt_compile\"" >&5)
7926 (eval "$lt_compile" 2>conftest.err)
7927 ac_status=$?
7928 cat conftest.err >&5
7929 echo "$as_me:7929: \$? = $ac_status" >&5
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.
7933 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
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
7941 fi
7942 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7943 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7944
7945 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7946 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7947 else
7948 :
7949 fi
7950
7951 fi
7952
7953
7954
7955
7956
7957
7958 lt_prog_compiler_wl=
7959 lt_prog_compiler_pic=
7960 lt_prog_compiler_static=
7961
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; }
7964
7965 if test "$GCC" = yes; then
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.
7972 if test "$host_cpu" = ia64; then
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
7986 # adding the `-m68020' flag to GCC prevents building anything better,
7987 # like `-m68040'.
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
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
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,'
8058 if test "$host_cpu" = ia64; then
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?
8085 lt_prog_compiler_static='${wl}-a ${wl}archive'
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
8094 linux* | k*bsd*-gnu)
8095 case $cc_basename in
8096 # old Intel for x86_64 which still supported -KPIC.
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 ;;
8115 pgcc* | pgf77* | pgf90* | pgf95*)
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 ;;
8127 xl*)
8128 # IBM XL C 8.0/Fortran 10.1 on PPC
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
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 ;;
8141 *Sun\ F*)
8142 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8143 lt_prog_compiler_pic='-KPIC'
8144 lt_prog_compiler_static='-Bstatic'
8145 lt_prog_compiler_wl=''
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
8177 f77* | f90* | f95*)
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*)
8197 if test -d /usr/nec ;then
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
8225 case $host_os in
8226 # For platforms which do not support PIC, -DPIC is meaningless:
8227 *djgpp*)
8228 lt_prog_compiler_pic=
8229 ;;
8230 *)
8231 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8232 ;;
8233 esac
8234 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8235 $as_echo "$lt_prog_compiler_pic" >&6; }
8236
8237
8238
8239
8240
8241
8242 #
8243 # Check to make sure the PIC flag actually works.
8244 #
8245 if test -n "$lt_prog_compiler_pic"; then
8246 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8247 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8248 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8249 $as_echo_n "(cached) " >&6
8250 else
8251 lt_cv_prog_compiler_pic_works=no
8252 ac_outfile=conftest.$ac_objext
8253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8254 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
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:'`
8264 (eval echo "\"\$as_me:8264: $lt_compile\"" >&5)
8265 (eval "$lt_compile" 2>conftest.err)
8266 ac_status=$?
8267 cat conftest.err >&5
8268 echo "$as_me:8268: \$? = $ac_status" >&5
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.
8272 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
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
8280 fi
8281 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8282 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8283
8284 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8285 case $lt_prog_compiler_pic in
8286 "" | " "*) ;;
8287 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8288 esac
8289 else
8290 lt_prog_compiler_pic=
8291 lt_prog_compiler_can_build_shared=no
8292 fi
8293
8294 fi
8295
8296
8297
8298
8299
8300
8301 #
8302 # Check to make sure the static flag actually works.
8303 #
8304 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8305 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8306 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8307 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8308 $as_echo_n "(cached) " >&6
8309 else
8310 lt_cv_prog_compiler_static_works=no
8311 save_LDFLAGS="$LDFLAGS"
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
8320 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
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*
8330 LDFLAGS="$save_LDFLAGS"
8331
8332 fi
8333 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8334 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8335
8336 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8337 :
8338 else
8339 lt_prog_compiler_static=
8340 fi
8341
8342
8343
8344
8345
8346
8347
8348 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8349 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8350 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8351 $as_echo_n "(cached) " >&6
8352 else
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:'`
8369 (eval echo "\"\$as_me:8369: $lt_compile\"" >&5)
8370 (eval "$lt_compile" 2>out/conftest.err)
8371 ac_status=$?
8372 cat out/conftest.err >&5
8373 echo "$as_me:8373: \$? = $ac_status" >&5
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
8378 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
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
8394 fi
8395 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8396 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8397
8398
8399
8400
8401
8402
8403 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8404 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8405 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8406 $as_echo_n "(cached) " >&6
8407 else
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:'`
8424 (eval echo "\"\$as_me:8424: $lt_compile\"" >&5)
8425 (eval "$lt_compile" 2>out/conftest.err)
8426 ac_status=$?
8427 cat out/conftest.err >&5
8428 echo "$as_me:8428: \$? = $ac_status" >&5
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
8433 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
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
8449 fi
8450 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8451 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8452
8453
8454
8455
8456 hard_links="nottested"
8457 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8458 # do not overwrite the value of need_locks provided by the user
8459 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
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
8467 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8468 $as_echo "$hard_links" >&6; }
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;}
8472 need_locks=warn
8473 fi
8474 else
8475 need_locks=no
8476 fi
8477
8478
8479
8480
8481
8482
8483 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
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=
8499 hardcode_libdir_flag_spec_ld=
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
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'.
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++.
8532 if test "$GCC" != yes; then
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 ;;
8540 openbsd*)
8541 with_gnu_ld=no
8542 ;;
8543 esac
8544
8545 ld_shlibs=yes
8546 if test "$with_gnu_ld" = yes; then
8547 # If archive_cmds runs LD, not CC, wlarc should be empty
8548 wlarc='${wl}'
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
8554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8555 export_dynamic_flag_spec='${wl}--export-dynamic'
8556 # ancient GNU ld didn't support --whole-archive et. al.
8557 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8558 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8559 else
8560 whole_archive_flag_spec=
8561 fi
8562 supports_anon_versioning=no
8563 case `$LD -v 2>&1` in
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
8575 if test "$host_cpu" != ia64; then
8576 ld_shlibs=no
8577 cat <<_LT_EOF 1>&2
8578
8579 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8580 *** to be unable to reliably create shared libraries on AIX.
8581 *** Therefore, libtool is disabling shared libraries support. If you
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.
8584
8585 _LT_EOF
8586 fi
8587 ;;
8588
8589 amigaos*)
8590 case $host_cpu in
8591 powerpc)
8592 # see comment about AmigaOS4 .so support
8593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
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
8609 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
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'
8619 allow_undefined_flag=unsupported
8620 always_export_symbols=no
8621 enable_shared_with_static_runtimes=yes
8622 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8623
8624 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
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'
8635 else
8636 ld_shlibs=no
8637 fi
8638 ;;
8639
8640 interix[3-9]*)
8641 hardcode_direct=no
8642 hardcode_shlibpath_var=no
8643 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8644 export_dynamic_flag_spec='${wl}-E'
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.
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'
8653 ;;
8654
8655 gnu* | linux* | tpf* | k*bsd*-gnu)
8656 tmp_diet=no
8657 if test "$host_os" = linux-dietlibc; then
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 \
8663 && test "$tmp_diet" = no
8664 then
8665 tmp_addflag=
8666 tmp_sharedflag='-shared'
8667 case $cc_basename,$host_cpu in
8668 pgcc*) # Portland Group C compiler
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'
8670 tmp_addflag=' $pic_flag'
8671 ;;
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'
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' ;;
8684 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8685 tmp_sharedflag='-qmkshrobj'
8686 tmp_addflag= ;;
8687 esac
8688 case `$CC -V 2>&1 | sed 5q` in
8689 *Sun\ C*) # Sun C 5.9
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'
8691 compiler_needs_object=yes
8692 tmp_sharedflag='-G' ;;
8693 *Sun\ F*) # Sun Fortran 8.3
8694 tmp_sharedflag='-G' ;;
8695 esac
8696 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8697
8698 if test "x$supports_anon_versioning" = xyes; then
8699 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
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'
8703 fi
8704
8705 case $cc_basename in
8706 xlf*)
8707 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8708 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
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
8713 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
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'
8717 fi
8718 ;;
8719 esac
8720 else
8721 ld_shlibs=no
8722 fi
8723 ;;
8724
8725 netbsd*)
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
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'
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
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'
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
8762 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
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
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'
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
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'
8798 else
8799 ld_shlibs=no
8800 fi
8801 ;;
8802 esac
8803
8804 if test "$ld_shlibs" = no; then
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
8820 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
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]*)
8828 if test "$host_cpu" = ia64; then
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'
8833 no_entry_flag=""
8834 else
8835 # If we're using GNU nm, then we don't want the "-C" option.
8836 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8837 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
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'
8839 else
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'
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
8846 # need to do runtime linking.
8847 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8848 for ld_flag in $LDFLAGS; do
8849 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
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
8872 file_list_spec='${wl}-f,'
8873
8874 if test "$GCC" = yes; then
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+
8878 collect2name=`${CC} -print-prog-name=collect2`
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'
8897 if test "$aix_use_runtimelinking" = yes; then
8898 shared_flag="$shared_flag "'${wl}-G'
8899 fi
8900 else
8901 # not using gcc
8902 if test "$host_cpu" = ia64; then
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
8907 if test "$aix_use_runtimelinking" = yes; then
8908 shared_flag='${wl}-G'
8909 else
8910 shared_flag='${wl}-bM:SRE'
8911 fi
8912 fi
8913 fi
8914
8915 export_dynamic_flag_spec='${wl}-bexpall'
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
8919 if test "$aix_use_runtimelinking" = yes; then
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.
8925 cat >conftest.$ac_ext <<_ACEOF
8926 /* confdefs.h. */
8927 _ACEOF
8928 cat confdefs.h >>conftest.$ac_ext
8929 cat >>conftest.$ac_ext <<_ACEOF
8930 /* end confdefs.h. */
8931
8932 int
8933 main ()
8934 {
8935
8936 ;
8937 return 0;
8938 }
8939 _ACEOF
8940 rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (ac_try="$ac_link"
8942 case "(($ac_try" in
8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944 *) ac_try_echo=$ac_try;;
8945 esac
8946 eval 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
8962 lt_aix_libpath_sed='
8963 /Import File Strings/,/^$/ {
8964 /^0/ {
8965 s/^0 *\(.*\)$/\1/
8966 p
8967 }
8968 }'
8969 aix_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.
8971 if test -z "$aix_libpath"; then
8972 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8973 fi
8974 else
8975 $as_echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8977
8978
8979 fi
8980
8981 rm -rf conftest.dSYM
8982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8983 conftest$ac_exeext conftest.$ac_ext
8984 if 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"
8988 else
8989 if test "$host_cpu" = ia64; then
8990 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8991 allow_undefined_flag="-z nodefs"
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"
8993 else
8994 # Determine the default libpath from the value encoded in an
8995 # empty executable.
8996 cat >conftest.$ac_ext <<_ACEOF
8997 /* confdefs.h. */
8998 _ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h. */
9002
9003 int
9004 main ()
9005 {
9006
9007 ;
9008 return 0;
9009 }
9010 _ACEOF
9011 rm -f conftest.$ac_objext conftest$ac_exeext
9012 if { (ac_try="$ac_link"
9013 case "(($ac_try" in
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9016 esac
9017 eval 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
9033 lt_aix_libpath_sed='
9034 /Import File Strings/,/^$/ {
9035 /^0/ {
9036 s/^0 *\(.*\)$/\1/
9037 p
9038 }
9039 }'
9040 aix_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.
9042 if test -z "$aix_libpath"; then
9043 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9044 fi
9045 else
9046 $as_echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9048
9049
9050 fi
9051
9052 rm -rf conftest.dSYM
9053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9054 conftest$ac_exeext conftest.$ac_ext
9055 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9056
9057 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9058 # Warning - without using the other run time loading flags,
9059 # -berok will link without error, but may produce a broken library.
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'
9064 archive_cmds_need_lc=yes
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'
9067 fi
9068 fi
9069 ;;
9070
9071 amigaos*)
9072 case $host_cpu in
9073 powerpc)
9074 # see comment about AmigaOS4 .so support
9075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
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.
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
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
9118 whole_archive_flag_spec=''
9119 link_all_deplibs=yes
9120 allow_undefined_flag="$_lt_dar_allow_undefined"
9121 case $cc_basename in
9122 ifort*) _lt_dar_can_shared=yes ;;
9123 *) _lt_dar_can_shared=$GCC ;;
9124 esac
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}"
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
9144 freebsd1*)
9145 ld_shlibs=no
9146 ;;
9147
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.
9160 freebsd2*)
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*)
9169 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9170 hardcode_libdir_flag_spec='-R$libdir'
9171 hardcode_direct=yes
9172 hardcode_shlibpath_var=no
9173 ;;
9174
9175 hpux9*)
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'
9178 else
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'
9180 fi
9181 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
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
9188 export_dynamic_flag_spec='${wl}-E'
9189 ;;
9190
9191 hpux10*)
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'
9194 else
9195 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9196 fi
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'
9200 hardcode_libdir_separator=:
9201 hardcode_direct=yes
9202 hardcode_direct_absolute=yes
9203 export_dynamic_flag_spec='${wl}-E'
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*)
9211 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9212 case $host_cpu in
9213 hppa*64*)
9214 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9215 ;;
9216 ia64*)
9217 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9218 ;;
9219 *)
9220 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9221 ;;
9222 esac
9223 else
9224 case $host_cpu in
9225 hppa*64*)
9226 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9227 ;;
9228 ia64*)
9229 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9230 ;;
9231 *)
9232 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9233 ;;
9234 esac
9235 fi
9236 if test "$with_gnu_ld" = no; then
9237 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
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
9248 export_dynamic_flag_spec='${wl}-E'
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*)
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'
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.
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
9267 int foo(void) {}
9268 _ACEOF
9269 rm -f conftest.$ac_objext conftest$ac_exeext
9270 if { (ac_try="$ac_link"
9271 case "(($ac_try" in
9272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9274 esac
9275 eval 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
9292 else
9293 $as_echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9295
9296
9297 fi
9298
9299 rm -rf conftest.dSYM
9300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9301 conftest$ac_exeext conftest.$ac_ext
9302 LDFLAGS="$save_LDFLAGS"
9303 else
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'
9306 fi
9307 archive_cmds_need_lc='no'
9308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9309 hardcode_libdir_separator=:
9310 inherit_rpath=yes
9311 link_all_deplibs=yes
9312 ;;
9313
9314 netbsd*)
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
9328 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9329 hardcode_libdir_separator=:
9330 hardcode_shlibpath_var=no
9331 ;;
9332
9333 *nto* | *qnx*)
9334 ;;
9335
9336 openbsd*)
9337 if test -f /usr/libexec/ld.so; then
9338 hardcode_direct=yes
9339 hardcode_shlibpath_var=no
9340 hardcode_direct_absolute=yes
9341 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9342 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
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'
9346 else
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
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
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'
9369 ;;
9370
9371 osf3*)
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'
9375 else
9376 allow_undefined_flag=' -expect_unresolved \*'
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'
9378 fi
9379 archive_cmds_need_lc='no'
9380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9381 hardcode_libdir_separator=:
9382 ;;
9383
9384 osf4* | osf5*) # as osf3* with the addition of -msym flag
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'
9389 else
9390 allow_undefined_flag=' -expect_unresolved \*'
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'
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~
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'
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'
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'
9407 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
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'
9409 else
9410 case `$CC -V 2>&1` in
9411 *"Compilers 5.0"*)
9412 wlarc=''
9413 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9414 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9415 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9416 ;;
9417 *)
9418 wlarc='${wl}'
9419 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9420 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9421 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
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,
9431 # but understands `-z linker_flag'. GCC discards it without `$wl',
9432 # but is careful enough not to reorder.
9433 # Supported since Solaris 2.6 (maybe 2.5.1?)
9434 if test "$GCC" = yes; then
9435 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
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*)
9445 if test "x$host_vendor" = xsequent; then
9446 # Use $CC to link under sequent, because it throws in some extra .o
9447 # files that make .init and .fini sections work.
9448 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
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]*)
9497 no_undefined_flag='${wl}-z,text'
9498 archive_cmds_need_lc=no
9499 hardcode_shlibpath_var=no
9500 runpath_var='LD_RUN_PATH'
9501
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'
9505 else
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'
9508 fi
9509 ;;
9510
9511 sysv5* | sco3.2v5* | sco5v6*)
9512 # Note: We can NOT use -z defs as we might desire, because we do not
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.
9518 no_undefined_flag='${wl}-z,text'
9519 allow_undefined_flag='${wl}-z,nodefs'
9520 archive_cmds_need_lc=no
9521 hardcode_shlibpath_var=no
9522 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9523 hardcode_libdir_separator=':'
9524 link_all_deplibs=yes
9525 export_dynamic_flag_spec='${wl}-Bexport'
9526 runpath_var='LD_RUN_PATH'
9527
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'
9531 else
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'
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
9548 if test x$host_vendor = xsni; then
9549 case $host in
9550 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9551 export_dynamic_flag_spec='${wl}-Blargedynsym'
9552 ;;
9553 esac
9554 fi
9555 fi
9556
9557 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9558 $as_echo "$ld_shlibs" >&6; }
9559 test "$ld_shlibs" = no && can_build_shared=no
9560
9561 with_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 #
9580 case "x$archive_cmds_need_lc" in
9581 x|xyes)
9582 # Assume -lc should be added
9583 archive_cmds_need_lc=yes
9584
9585 if test "$enable_shared" = yes && test "$GCC" = yes; then
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.
9594 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9595 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9596 $RM conftest*
9597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9598
9599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9600 (eval $ac_compile) 2>&5
9601 ac_status=$?
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
9618 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9619 ac_status=$?
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; }
9634 ;;
9635 esac
9636 fi
9637 ;;
9638 esac
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
9791
9792
9793
9794
9795
9796 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9797 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9798
9799 if test "$GCC" = yes; then
9800 case $host_os in
9801 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9802 *) lt_awk_arg="/^libraries:/" ;;
9803 esac
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
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.
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
9814 # Ok, now we have the path, separated by spaces, we can step through it
9815 # and add multilib dir if necessary.
9816 lt_tmp_lt_search_path_spec=
9817 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9818 for lt_sys_path in $lt_search_path_spec; do
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
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
9826 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9827 BEGIN {RS=" "; FS="/|\n";} {
9828 lt_foo="";
9829 lt_count=0;
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) {
9836 lt_foo="/" $lt_i lt_foo;
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 }'`
9846 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9847 else
9848 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9849 fi
9850 library_names_spec=
9851 libname_spec='lib$name'
9852 soname_spec=
9853 shrext_cmds=".so"
9854 postinstall_cmds=
9855 postuninstall_cmds=
9856 finish_cmds=
9857 finish_eval=
9858 shlibpath_var=
9859 shlibpath_overrides_runpath=unknown
9860 version_type=none
9861 dynamic_linker="$host_os ld.so"
9862 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9863 need_lib_prefix=unknown
9864 hardcode_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
9868 need_version=unknown
9869
9870 case $host_os in
9871 aix3*)
9872 version_type=linux
9873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9874 shlibpath_var=LIBPATH
9875
9876 # AIX 3 has no versioning support, so we append a major version to the name.
9877 soname_spec='${libname}${release}${shared_ext}$major'
9878 ;;
9879
9880 aix[4-9]*)
9881 version_type=linux
9882 need_lib_prefix=no
9883 need_version=no
9884 hardcode_into_libs=yes
9885 if test "$host_cpu" = ia64; then
9886 # AIX 5 supports IA64
9887 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
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
9892 # the line `#! .'. This would cause the generated library to
9893 # depend on `.', always an invalid library. This was fixed in
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 '
9899 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9900 :
9901 else
9902 can_build_shared=no
9903 fi
9904 ;;
9905 esac
9906 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9907 # soname into executable. Probably we can add versioning support to
9908 # collect2, so additional links can be useful in future.
9909 if test "$aix_use_runtimelinking" = yes; then
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.
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914 else
9915 # We preserve .a as extension for shared libraries through AIX4.2
9916 # and later when we are not doing run time linking.
9917 library_names_spec='${libname}${release}.a $libname.a'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 fi
9920 shlibpath_var=LIBPATH
9921 fi
9922 ;;
9923
9924 amigaos*)
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.
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930 ;;
9931 m68k)
9932 library_names_spec='$libname.ixlibrary $libname.a'
9933 # Create ${libname}_ixlibrary.a entries in /sys/libs.
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'
9935 ;;
9936 esac
9937 ;;
9938
9939 beos*)
9940 library_names_spec='${libname}${shared_ext}'
9941 dynamic_linker="$host_os ld.so"
9942 shlibpath_var=LIBRARY_PATH
9943 ;;
9944
9945 bsdi[45]*)
9946 version_type=linux
9947 need_version=no
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'
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
9959 cygwin* | mingw* | pw32* | cegcc*)
9960 version_type=windows
9961 shrext_cmds=".dll"
9962 need_version=no
9963 need_lib_prefix=no
9964
9965 case $GCC,$host_os in
9966 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9967 library_names_spec='$libname.dll.a'
9968 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9969 postinstall_cmds='base_file=`basename \${file}`~
9970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
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'
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"
9988 ;;
9989 mingw* | cegcc*)
9990 # MinGW DLLs use traditional 'lib' prefix
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"`
9993 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
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.
10000 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10001 else
10002 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10003 fi
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}'
10008 ;;
10009 esac
10010 ;;
10011
10012 *)
10013 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10014 ;;
10015 esac
10016 dynamic_linker='Win32 ld.exe'
10017 # FIXME: first we should search . and the directory the executable is in
10018 shlibpath_var=PATH
10019 ;;
10020
10021 darwin* | rhapsody*)
10022 dynamic_linker="$host_os dyld"
10023 version_type=darwin
10024 need_lib_prefix=no
10025 need_version=no
10026 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10027 soname_spec='${libname}${release}${major}$shared_ext'
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
10036 dgux*)
10037 version_type=linux
10038 need_lib_prefix=no
10039 need_version=no
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'
10042 shlibpath_var=LD_LIBRARY_PATH
10043 ;;
10044
10045 freebsd1*)
10046 dynamic_linker=no
10047 ;;
10048
10049 freebsd* | 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
10056 freebsd[123]*) objformat=aout ;;
10057 *) objformat=elf ;;
10058 esac
10059 fi
10060 version_type=freebsd-$objformat
10061 case $version_type in
10062 freebsd-elf*)
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10064 need_version=no
10065 need_lib_prefix=no
10066 ;;
10067 freebsd-*)
10068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10069 need_version=yes
10070 ;;
10071 esac
10072 shlibpath_var=LD_LIBRARY_PATH
10073 case $host_os in
10074 freebsd2*)
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
10093 gnu*)
10094 version_type=linux
10095 need_lib_prefix=no
10096 need_version=no
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
10100 hardcode_into_libs=yes
10101 ;;
10102
10103 hpux9* | 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.
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
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
10123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
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.
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'
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
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'
10143 ;;
10144 esac
10145 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10146 postinstall_cmds='chmod 555 $lib'
10147 ;;
10148
10149 interix[3-9]*)
10150 version_type=linux
10151 need_lib_prefix=no
10152 need_version=no
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'
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
10161 irix5* | irix6* | nonstopux*)
10162 case $host_os in
10163 nonstopux*) version_type=nonstopux ;;
10164 *)
10165 if test "$lt_cv_prog_gnu_ld" = yes; then
10166 version_type=linux
10167 else
10168 version_type=irix
10169 fi ;;
10170 esac
10171 need_lib_prefix=no
10172 need_version=no
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}'
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
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}"
10195 hardcode_into_libs=yes
10196 ;;
10197
10198 # No shared lib support for Linux oldld, aout, or coff.
10199 linux*oldld* | linux*aout* | linux*coff*)
10200 dynamic_linker=no
10201 ;;
10202
10203 # This must be Linux ELF.
10204 linux* | k*bsd*-gnu)
10205 version_type=linux
10206 need_lib_prefix=no
10207 need_version=no
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'
10210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10211 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=no
10213 # Some binutils ld are patched to set DT_RUNPATH
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
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10224
10225 int
10226 main ()
10227 {
10228
10229 ;
10230 return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext conftest$ac_exeext
10234 if { (ac_try="$ac_link"
10235 case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10238 esac
10239 eval 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
10256 fi
10257
10258 else
10259 $as_echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10261
10262
10263 fi
10264
10265 rm -rf conftest.dSYM
10266 rm -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
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
10276 # Add ABI-specific directories to the system library path.
10277 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10278
10279 # Append ld.so.conf contents to the search path
10280 if test -f /etc/ld.so.conf; then
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' ' '`
10282 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
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
10294 netbsd*)
10295 version_type=sunos
10296 need_lib_prefix=no
10297 need_version=no
10298 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10301 dynamic_linker='NetBSD (a.out) ld.so'
10302 else
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'
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
10312 newsos6)
10313 version_type=linux
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
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
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'
10325 shlibpath_var=LD_LIBRARY_PATH
10326 shlibpath_overrides_runpath=no
10327 hardcode_into_libs=yes
10328 dynamic_linker='ldqnx.so'
10329 ;;
10330
10331 openbsd*)
10332 version_type=sunos
10333 sys_lib_dlsearch_path_spec="/usr/lib"
10334 need_lib_prefix=no
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'
10341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10342 shlibpath_var=LD_LIBRARY_PATH
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
10355 ;;
10356
10357 os2*)
10358 libname_spec='$name'
10359 shrext_cmds=".dll"
10360 need_lib_prefix=no
10361 library_names_spec='$libname${shared_ext} $libname.a'
10362 dynamic_linker='OS/2 ld.exe'
10363 shlibpath_var=LIBPATH
10364 ;;
10365
10366 osf3* | osf4* | osf5*)
10367 version_type=osf
10368 need_lib_prefix=no
10369 need_version=no
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}'
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"
10374 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10375 ;;
10376
10377 rdos*)
10378 dynamic_linker=no
10379 ;;
10380
10381 solaris*)
10382 version_type=linux
10383 need_lib_prefix=no
10384 need_version=no
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'
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
10394 sunos4*)
10395 version_type=sunos
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10397 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10398 shlibpath_var=LD_LIBRARY_PATH
10399 shlibpath_overrides_runpath=yes
10400 if test "$with_gnu_ld" = yes; then
10401 need_lib_prefix=no
10402 fi
10403 need_version=yes
10404 ;;
10405
10406 sysv4 | sysv4.3*)
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'
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
10429 sysv4*MP*)
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'
10434 shlibpath_var=LD_LIBRARY_PATH
10435 fi
10436 ;;
10437
10438 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10439 version_type=freebsd-elf
10440 need_lib_prefix=no
10441 need_version=no
10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10443 soname_spec='${libname}${release}${shared_ext}$major'
10444 shlibpath_var=LD_LIBRARY_PATH
10445 shlibpath_overrides_runpath=yes
10446 hardcode_into_libs=yes
10447 if test "$with_gnu_ld" = yes; then
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
10460 tpf*)
10461 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10462 version_type=linux
10463 need_lib_prefix=no
10464 need_version=no
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=no
10468 hardcode_into_libs=yes
10469 ;;
10470
10471 uts4*)
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'
10475 shlibpath_var=LD_LIBRARY_PATH
10476 ;;
10477
10478 *)
10479 dynamic_linker=no
10480 ;;
10481 esac
10482 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10483 $as_echo "$dynamic_linker" >&6; }
10484 test "$dynamic_linker" = no && can_build_shared=no
10485
10486 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10487 if test "$GCC" = yes; then
10488 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10489 fi
10490
10491 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10492 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10493 fi
10494 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10495 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10496 fi
10497
10498
10499
10500
10501
10502
10503
10504
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
10584 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10585 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10586 hardcode_action=
10587 if test -n "$hardcode_libdir_flag_spec" ||
10588 test -n "$runpath_var" ||
10589 test "X$hardcode_automatic" = "Xyes" ; then
10590
10591 # We can hardcode non-existent directories.
10592 if test "$hardcode_direct" != no &&
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
10596 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10597 test "$hardcode_minus_L" != no; then
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
10604 else
10605 # We cannot hardcode anything, or else we can only hardcode existing
10606 # directories.
10607 hardcode_action=unsupported
10608 fi
10609 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10610 $as_echo "$hardcode_action" >&6; }
10611
10612 if test "$hardcode_action" = relink ||
10613 test "$inherit_rpath" = yes; then
10614 # Fast installation is not supported
10615 enable_fast_install=no
10616 elif test "$shlibpath_overrides_runpath" = yes ||
10617 test "$enable_shared" = no; then
10618 # Fast installation is not necessary
10619 enable_fast_install=needless
10620 fi
10621
10622
10623
10624
10625
10626
10627 if test "x$enable_dlopen" != xyes; then
10628 enable_dlopen=unknown
10629 enable_dlopen_self=unknown
10630 enable_dlopen_self_static=unknown
10631 else
10632 lt_cv_dlopen=no
10633 lt_cv_dlopen_libs=
10634
10635 case $host_os in
10636 beos*)
10637 lt_cv_dlopen="load_add_on"
10638 lt_cv_dlopen_libs=
10639 lt_cv_dlopen_self=yes
10640 ;;
10641
10642 mingw* | pw32* | cegcc*)
10643 lt_cv_dlopen="LoadLibrary"
10644 lt_cv_dlopen_libs=
10645 ;;
10646
10647 cygwin*)
10648 lt_cv_dlopen="dlopen"
10649 lt_cv_dlopen_libs=
10650 ;;
10651
10652 darwin*)
10653 # if libdl is installed we need to link against it
10654 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10655 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10656 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10657 $as_echo_n "(cached) " >&6
10658 else
10659 ac_check_lib_save_LIBS=$LIBS
10660 LIBS="-ldl $LIBS"
10661 cat >conftest.$ac_ext <<_ACEOF
10662 /* confdefs.h. */
10663 _ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
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
10672 extern "C"
10673 #endif
10674 char dlopen ();
10675 int
10676 main ()
10677 {
10678 return dlopen ();
10679 ;
10680 return 0;
10681 }
10682 _ACEOF
10683 rm -f conftest.$ac_objext conftest$ac_exeext
10684 if { (ac_try="$ac_link"
10685 case "(($ac_try" in
10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10688 esac
10689 eval 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
10704 ac_cv_lib_dl_dlopen=yes
10705 else
10706 $as_echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10708
10709 ac_cv_lib_dl_dlopen=no
10710 fi
10711
10712 rm -rf conftest.dSYM
10713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10714 conftest$ac_exeext conftest.$ac_ext
10715 LIBS=$ac_check_lib_save_LIBS
10716 fi
10717 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10718 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10719 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10720 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10721 else
10722
10723 lt_cv_dlopen="dyld"
10724 lt_cv_dlopen_libs=
10725 lt_cv_dlopen_self=yes
10726
10727 fi
10728
10729 ;;
10730
10731 *)
10732 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10733 $as_echo_n "checking for shl_load... " >&6; }
10734 if test "${ac_cv_func_shl_load+set}" = set; then
10735 $as_echo_n "(cached) " >&6
10736 else
10737 cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h. */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>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
10764 extern "C"
10765 #endif
10766 char 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
10771 choke me
10772 #endif
10773
10774 int
10775 main ()
10776 {
10777 return shl_load ();
10778 ;
10779 return 0;
10780 }
10781 _ACEOF
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (ac_try="$ac_link"
10784 case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10787 esac
10788 eval 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
10804 else
10805 $as_echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10807
10808 ac_cv_func_shl_load=no
10809 fi
10810
10811 rm -rf conftest.dSYM
10812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10813 conftest$ac_exeext conftest.$ac_ext
10814 fi
10815 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10816 $as_echo "$ac_cv_func_shl_load" >&6; }
10817 if test "x$ac_cv_func_shl_load" = x""yes; then
10818 lt_cv_dlopen="shl_load"
10819 else
10820 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10821 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10822 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10823 $as_echo_n "(cached) " >&6
10824 else
10825 ac_check_lib_save_LIBS=$LIBS
10826 LIBS="-ldld $LIBS"
10827 cat >conftest.$ac_ext <<_ACEOF
10828 /* confdefs.h. */
10829 _ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
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
10838 extern "C"
10839 #endif
10840 char shl_load ();
10841 int
10842 main ()
10843 {
10844 return shl_load ();
10845 ;
10846 return 0;
10847 }
10848 _ACEOF
10849 rm -f conftest.$ac_objext conftest$ac_exeext
10850 if { (ac_try="$ac_link"
10851 case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10854 esac
10855 eval 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
10870 ac_cv_lib_dld_shl_load=yes
10871 else
10872 $as_echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10874
10875 ac_cv_lib_dld_shl_load=no
10876 fi
10877
10878 rm -rf conftest.dSYM
10879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10880 conftest$ac_exeext conftest.$ac_ext
10881 LIBS=$ac_check_lib_save_LIBS
10882 fi
10883 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10884 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10885 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10886 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10887 else
10888 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10889 $as_echo_n "checking for dlopen... " >&6; }
10890 if test "${ac_cv_func_dlopen+set}" = set; then
10891 $as_echo_n "(cached) " >&6
10892 else
10893 cat >conftest.$ac_ext <<_ACEOF
10894 /* confdefs.h. */
10895 _ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>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
10920 extern "C"
10921 #endif
10922 char 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
10927 choke me
10928 #endif
10929
10930 int
10931 main ()
10932 {
10933 return dlopen ();
10934 ;
10935 return 0;
10936 }
10937 _ACEOF
10938 rm -f conftest.$ac_objext conftest$ac_exeext
10939 if { (ac_try="$ac_link"
10940 case "(($ac_try" in
10941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942 *) ac_try_echo=$ac_try;;
10943 esac
10944 eval 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
10960 else
10961 $as_echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10963
10964 ac_cv_func_dlopen=no
10965 fi
10966
10967 rm -rf conftest.dSYM
10968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10969 conftest$ac_exeext conftest.$ac_ext
10970 fi
10971 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10972 $as_echo "$ac_cv_func_dlopen" >&6; }
10973 if test "x$ac_cv_func_dlopen" = x""yes; then
10974 lt_cv_dlopen="dlopen"
10975 else
10976 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10977 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10978 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10979 $as_echo_n "(cached) " >&6
10980 else
10981 ac_check_lib_save_LIBS=$LIBS
10982 LIBS="-ldl $LIBS"
10983 cat >conftest.$ac_ext <<_ACEOF
10984 /* confdefs.h. */
10985 _ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
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
10994 extern "C"
10995 #endif
10996 char dlopen ();
10997 int
10998 main ()
10999 {
11000 return dlopen ();
11001 ;
11002 return 0;
11003 }
11004 _ACEOF
11005 rm -f conftest.$ac_objext conftest$ac_exeext
11006 if { (ac_try="$ac_link"
11007 case "(($ac_try" in
11008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009 *) ac_try_echo=$ac_try;;
11010 esac
11011 eval 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
11026 ac_cv_lib_dl_dlopen=yes
11027 else
11028 $as_echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11030
11031 ac_cv_lib_dl_dlopen=no
11032 fi
11033
11034 rm -rf conftest.dSYM
11035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11036 conftest$ac_exeext conftest.$ac_ext
11037 LIBS=$ac_check_lib_save_LIBS
11038 fi
11039 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11040 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11041 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11042 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11043 else
11044 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11045 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11046 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11047 $as_echo_n "(cached) " >&6
11048 else
11049 ac_check_lib_save_LIBS=$LIBS
11050 LIBS="-lsvld $LIBS"
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h. */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
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
11062 extern "C"
11063 #endif
11064 char dlopen ();
11065 int
11066 main ()
11067 {
11068 return dlopen ();
11069 ;
11070 return 0;
11071 }
11072 _ACEOF
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (ac_try="$ac_link"
11075 case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11078 esac
11079 eval 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
11094 ac_cv_lib_svld_dlopen=yes
11095 else
11096 $as_echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11098
11099 ac_cv_lib_svld_dlopen=no
11100 fi
11101
11102 rm -rf conftest.dSYM
11103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11104 conftest$ac_exeext conftest.$ac_ext
11105 LIBS=$ac_check_lib_save_LIBS
11106 fi
11107 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11108 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11109 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11110 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11111 else
11112 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11113 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11114 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11115 $as_echo_n "(cached) " >&6
11116 else
11117 ac_check_lib_save_LIBS=$LIBS
11118 LIBS="-ldld $LIBS"
11119 cat >conftest.$ac_ext <<_ACEOF
11120 /* confdefs.h. */
11121 _ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
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
11130 extern "C"
11131 #endif
11132 char dld_link ();
11133 int
11134 main ()
11135 {
11136 return dld_link ();
11137 ;
11138 return 0;
11139 }
11140 _ACEOF
11141 rm -f conftest.$ac_objext conftest$ac_exeext
11142 if { (ac_try="$ac_link"
11143 case "(($ac_try" in
11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145 *) ac_try_echo=$ac_try;;
11146 esac
11147 eval 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
11162 ac_cv_lib_dld_dld_link=yes
11163 else
11164 $as_echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11166
11167 ac_cv_lib_dld_dld_link=no
11168 fi
11169
11170 rm -rf conftest.dSYM
11171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11172 conftest$ac_exeext conftest.$ac_ext
11173 LIBS=$ac_check_lib_save_LIBS
11174 fi
11175 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11176 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11177 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11178 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11179 fi
11180
11181
11182 fi
11183
11184
11185 fi
11186
11187
11188 fi
11189
11190
11191 fi
11192
11193
11194 fi
11195
11196 ;;
11197 esac
11198
11199 if test "x$lt_cv_dlopen" != xno; then
11200 enable_dlopen=yes
11201 else
11202 enable_dlopen=no
11203 fi
11204
11205 case $lt_cv_dlopen in
11206 dlopen)
11207 save_CPPFLAGS="$CPPFLAGS"
11208 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11209
11210 save_LDFLAGS="$LDFLAGS"
11211 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11212
11213 save_LIBS="$LIBS"
11214 LIBS="$lt_cv_dlopen_libs $LIBS"
11215
11216 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11217 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11218 if test "${lt_cv_dlopen_self+set}" = set; then
11219 $as_echo_n "(cached) " >&6
11220 else
11221 if test "$cross_compiling" = yes; then :
11222 lt_cv_dlopen_self=cross
11223 else
11224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11225 lt_status=$lt_dlunknown
11226 cat > conftest.$ac_ext <<_LT_EOF
11227 #line 11227 "configure"
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
11268 void fnord() { int i=42;}
11269 int 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;
11277 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11278 /* dlclose (self); */
11279 }
11280 else
11281 puts (dlerror ());
11282
11283 return status;
11284 }
11285 _LT_EOF
11286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11287 (eval $ac_link) 2>&5
11288 ac_status=$?
11289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
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
11302 fi
11303 rm -fr conftest*
11304
11305
11306 fi
11307 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11308 $as_echo "$lt_cv_dlopen_self" >&6; }
11309
11310 if test "x$lt_cv_dlopen_self" = xyes; then
11311 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11312 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11313 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11314 if test "${lt_cv_dlopen_self_static+set}" = set; then
11315 $as_echo_n "(cached) " >&6
11316 else
11317 if test "$cross_compiling" = yes; then :
11318 lt_cv_dlopen_self_static=cross
11319 else
11320 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11321 lt_status=$lt_dlunknown
11322 cat > conftest.$ac_ext <<_LT_EOF
11323 #line 11323 "configure"
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
11364 void fnord() { int i=42;}
11365 int 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;
11373 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11374 /* dlclose (self); */
11375 }
11376 else
11377 puts (dlerror ());
11378
11379 return status;
11380 }
11381 _LT_EOF
11382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11383 (eval $ac_link) 2>&5
11384 ac_status=$?
11385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
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
11398 fi
11399 rm -fr conftest*
11400
11401
11402 fi
11403 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11404 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11405 fi
11406
11407 CPPFLAGS="$save_CPPFLAGS"
11408 LDFLAGS="$save_LDFLAGS"
11409 LIBS="$save_LIBS"
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
11422 fi
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440 striplib=
11441 old_striplib=
11442 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11443 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11444 if 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"
11447 { $as_echo "$as_me:$LINENO: result: yes" >&5
11448 $as_echo "yes" >&6; }
11449 else
11450 # FIXME - insert some real tests, host_os isn't really good enough
11451 case $host_os in
11452 darwin*)
11453 if test -n "$STRIP" ; then
11454 striplib="$STRIP -x"
11455 old_striplib="$STRIP -S"
11456 { $as_echo "$as_me:$LINENO: result: yes" >&5
11457 $as_echo "yes" >&6; }
11458 else
11459 { $as_echo "$as_me:$LINENO: result: no" >&5
11460 $as_echo "no" >&6; }
11461 fi
11462 ;;
11463 *)
11464 { $as_echo "$as_me:$LINENO: result: no" >&5
11465 $as_echo "no" >&6; }
11466 ;;
11467 esac
11468 fi
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481 # Report which library types will actually be built
11482 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11483 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11484 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11485 $as_echo "$can_build_shared" >&6; }
11486
11487 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11488 $as_echo_n "checking whether to build shared libraries... " >&6; }
11489 test "$can_build_shared" = "no" && enable_shared=no
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*)
11495 test "$enable_shared" = yes && enable_static=no
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]*)
11503 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11504 test "$enable_shared" = yes && enable_static=no
11505 fi
11506 ;;
11507 esac
11508 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11509 $as_echo "$enable_shared" >&6; }
11510
11511 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11512 $as_echo_n "checking whether to build static libraries... " >&6; }
11513 # Make sure either enable_shared or enable_static is yes.
11514 test "$enable_shared" = yes || enable_static=yes
11515 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11516 $as_echo "$enable_static" >&6; }
11517
11518
11519
11520
11521 fi
11522 ac_ext=c
11523 ac_cpp='$CPP $CPPFLAGS'
11524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11527
11528 CC="$lt_save_CC"
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
11552 test "${CCAS+set}" = set || CCAS=$CC
11553 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11554
11555
11556
11557 depcc="$CCAS" am_compiler_list=
11558
11559 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11560 $as_echo_n "checking dependency style of $depcc... " >&6; }
11561 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11562 $as_echo_n "(cached) " >&6
11563 else
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
11568 # making a dummy file named `D' -- because `-MD' means `put the output
11569 # in D'.
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
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
11604 done
11605 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11606
11607 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11608 # mode. It turns out that the SunPro C++ compiler does not properly
11609 # handle `-M -o', and we need to detect this. Also, some Intel
11610 # versions had trouble with output in subdirs
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)
11619 # after this tag, mechanisms are not by side-effect, so they'll
11620 # only be used when explicitly requested
11621 if test "x$enable_dependency_tracking" = xyes; then
11622 continue
11623 else
11624 break
11625 fi
11626 ;;
11627 msvisualcpp | msvcmsys)
11628 # This compiler won't grok `-c -o', but also, the minuso test has
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
11662 else
11663 am_cv_CCAS_dependencies_compiler_type=none
11664 fi
11665
11666 fi
11667 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11668 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11669 CCASDEPMODE=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='#'
11676 else
11677 am__fastdepCCAS_TRUE='#'
11678 am__fastdepCCAS_FALSE=
11679 fi
11680
11681
11682 if 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; }
11685 else
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; }
11688 fi
11689 set dummy $CC; ac_cc=`$as_echo "$2" |
11690 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11691 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
11692 $as_echo_n "(cached) " >&6
11693 else
11694 cat >conftest.$ac_ext <<_ACEOF
11695 /* confdefs.h. */
11696 _ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11700
11701 int
11702 main ()
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.
11712 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11713 rm -f conftest2.*
11714 if { (case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11717 esac
11718 eval 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;;
11727 esac
11728 eval 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); };
11734 then
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;;
11742 esac
11743 eval 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;;
11754 esac
11755 eval 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;;
11764 esac
11765 eval 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
11780 else
11781 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11782 fi
11783 rm -f core conftest*
11784
11785 fi
11786 if 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; }
11789 else
11790 { $as_echo "$as_me:$LINENO: result: no" >&5
11791 $as_echo "no" >&6; }
11792
11793 cat >>confdefs.h <<\_ACEOF
11794 #define NO_MINUS_C_MINUS_O 1
11795 _ACEOF
11796
11797 fi
11798
11799 # FIXME: we rely on the cache variable name because
11800 # there is no other way.
11801 set dummy $CC
11802 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11803 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11804 if 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"
11811 fi
11812
11813
11814
11815
11816 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11817 $as_echo_n "checking zfs author... " >&6; }
11818 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11819 $as_echo "$ZFS_META_AUTHOR" >&6; }
11820
11821 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11822 $as_echo_n "checking zfs license... " >&6; }
11823 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11824 $as_echo "$ZFS_META_LICENSE" >&6; }
11825
11826
11827
11828 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
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 ;
11850 elif test -f /etc/alpine-release ; then
11851 VENDOR=alpine ;
11852 else
11853 VENDOR= ;
11854 fi
11855 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11856 $as_echo "$VENDOR" >&6; }
11857
11858
11859 { $as_echo "$as_me:$LINENO: checking default package type" >&5
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 ;;
11866 alpine) DEFAULT_PACKAGE=tgz ;;
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
11875 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11876 $as_echo "$DEFAULT_PACKAGE" >&6; }
11877
11878
11879 DEFAULT_INIT_DIR=$sysconfdir/init.d
11880 { $as_echo "$as_me:$LINENO: checking default init directory" >&5
11881 $as_echo_n "checking default init directory... " >&6; }
11882 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
11883 $as_echo "$DEFAULT_INIT_DIR" >&6; }
11884
11885
11886 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
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 ;;
11892 gentoo) DEFAULT_INIT_SCRIPT=openrc ;;
11893 alpine) DEFAULT_INIT_SCRIPT=openrc ;;
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
11902 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11903 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11904
11905
11906 { $as_echo "$as_me:$LINENO: checking default init config direectory" >&5
11907 $as_echo_n "checking default init config direectory... " >&6; }
11908 case "$VENDOR" in
11909 alpine) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
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
11919 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INITCONF_DIR" >&5
11920 $as_echo "$DEFAULT_INITCONF_DIR" >&6; }
11921
11922
11923 { $as_echo "$as_me:$LINENO: checking whether initramfs-tools is available" >&5
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"'
11927 { $as_echo "$as_me:$LINENO: result: yes" >&5
11928 $as_echo "yes" >&6; }
11929 else
11930 DEFINE_INITRAMFS=''
11931 { $as_echo "$as_me:$LINENO: result: no" >&5
11932 $as_echo "no" >&6; }
11933 fi
11934
11935
11936
11937 RPM=rpm
11938 RPMBUILD=rpmbuild
11939
11940 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11941 $as_echo_n "checking whether $RPM is available... " >&6; }
11942 if tmp=$($RPM --version 2>/dev/null); then
11943
11944 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11945 HAVE_RPM=yes
11946 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11947 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11948
11949 else
11950
11951 HAVE_RPM=no
11952 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11953 $as_echo "$HAVE_RPM" >&6; }
11954
11955 fi
11956
11957
11958 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11959 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11960 if tmp=$($RPMBUILD --version 2>/dev/null); then
11961
11962 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11963 HAVE_RPMBUILD=yes
11964 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11965 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11966
11967 else
11968
11969 HAVE_RPMBUILD=no
11970 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11971 $as_echo "$HAVE_RPMBUILD" >&6; }
11972
11973 fi
11974
11975
11976 RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1"'
11977 RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
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.
11989 if test "${with_spec+set}" = set; then
11990 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
11991 fi
11992
11993
11994 { $as_echo "$as_me:$LINENO: checking whether spec files are available" >&5
11995 $as_echo_n "checking whether spec files are available... " >&6; }
11996 { $as_echo "$as_me:$LINENO: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
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
12021 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
12022 $as_echo_n "checking whether $DPKG is available... " >&6; }
12023 if tmp=$($DPKG --version 2>/dev/null); then
12024
12025 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
12026 HAVE_DPKG=yes
12027 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12028 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12029
12030 else
12031
12032 HAVE_DPKG=no
12033 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
12034 $as_echo "$HAVE_DPKG" >&6; }
12035
12036 fi
12037
12038
12039 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
12040 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12041 if tmp=$($DPKGBUILD --version 2>/dev/null); then
12042
12043 DPKGBUILD_VERSION=$(echo $tmp | \
12044 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
12045 HAVE_DPKGBUILD=yes
12046 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12047 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12048
12049 else
12050
12051 HAVE_DPKGBUILD=no
12052 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
12053 $as_echo "$HAVE_DPKGBUILD" >&6; }
12054
12055 fi
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067 ALIEN=alien
12068
12069 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
12070 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12071 if tmp=$($ALIEN --version 2>/dev/null); then
12072
12073 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
12074 HAVE_ALIEN=yes
12075 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12076 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12077
12078 else
12079
12080 HAVE_ALIEN=no
12081 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
12082 $as_echo "$HAVE_ALIEN" >&6; }
12083
12084 fi
12085
12086
12087
12088
12089
12090
12091
12092
12093 ZFS_CONFIG=all
12094
12095 # Check whether --with-config was given.
12096 if test "${with_config+set}" = set; then
12097 withval=$with_config; ZFS_CONFIG="$withval"
12098 fi
12099
12100 # Check whether --enable-linux-builtin was given.
12101 if test "${enable_linux_builtin+set}" = set; then
12102 enableval=$enable_linux_builtin;
12103 else
12104 enable_linux_builtin=no
12105 fi
12106
12107
12108 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
12109 $as_echo_n "checking zfs config... " >&6; }
12110 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
12111 $as_echo "$ZFS_CONFIG" >&6; };
12112
12113
12114
12115
12116 { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
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
12122 cat >conftest.$ac_ext <<_ACEOF
12123 /* confdefs.h. */
12124 _ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12128
12129 int
12130 main ()
12131 {
12132
12133 ;
12134 return 0;
12135 }
12136 _ACEOF
12137 rm -f conftest.$ac_objext
12138 if { (ac_try="$ac_compile"
12139 case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142 esac
12143 eval 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
12155
12156 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
12157 { $as_echo "$as_me:$LINENO: result: yes" >&5
12158 $as_echo "yes" >&6; }
12159
12160 else
12161 $as_echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12163
12164
12165 NO_UNUSED_BUT_SET_VARIABLE=
12166 { $as_echo "$as_me:$LINENO: result: no" >&5
12167 $as_echo "no" >&6; }
12168
12169 fi
12170
12171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12172
12173 CFLAGS="$saved_flags"
12174
12175
12176
12177 { $as_echo "$as_me:$LINENO: checking for -Wno-bool-compare support" >&5
12178 $as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12179
12180 saved_flags="$CFLAGS"
12181 CFLAGS="$CFLAGS -Wbool-compare"
12182
12183 cat >conftest.$ac_ext <<_ACEOF
12184 /* confdefs.h. */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12189
12190 int
12191 main ()
12192 {
12193
12194 ;
12195 return 0;
12196 }
12197 _ACEOF
12198 rm -f conftest.$ac_objext
12199 if { (ac_try="$ac_compile"
12200 case "(($ac_try" in
12201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12203 esac
12204 eval 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
12216
12217 NO_BOOL_COMPARE=-Wno-bool-compare
12218 { $as_echo "$as_me:$LINENO: result: yes" >&5
12219 $as_echo "yes" >&6; }
12220
12221 else
12222 $as_echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12224
12225
12226 NO_BOOL_COMPARE=
12227 { $as_echo "$as_me:$LINENO: result: no" >&5
12228 $as_echo "no" >&6; }
12229
12230 fi
12231
12232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233
12234 CFLAGS="$saved_flags"
12235
12236
12237
12238 case "$host_cpu" in
12239 x86_64 | x86 | i686)
12240
12241 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE" >&5
12242 $as_echo_n "checking whether host toolchain supports SSE... " >&6; }
12243
12244 cat >conftest.$ac_ext <<_ACEOF
12245 /* confdefs.h. */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250
12251 void main()
12252 {
12253 __asm__ __volatile__("xorps %xmm0, %xmm1");
12254 }
12255
12256 _ACEOF
12257 rm -f conftest.$ac_objext conftest$ac_exeext
12258 if { (ac_try="$ac_link"
12259 case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12262 esac
12263 eval 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
12278
12279
12280 cat >>confdefs.h <<\_ACEOF
12281 #define HAVE_SSE 1
12282 _ACEOF
12283
12284 { $as_echo "$as_me:$LINENO: result: yes" >&5
12285 $as_echo "yes" >&6; }
12286
12287 else
12288 $as_echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12290
12291
12292 { $as_echo "$as_me:$LINENO: result: no" >&5
12293 $as_echo "no" >&6; }
12294
12295 fi
12296
12297 rm -rf conftest.dSYM
12298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12299 conftest$ac_exeext conftest.$ac_ext
12300
12301
12302 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE2" >&5
12303 $as_echo_n "checking whether host toolchain supports SSE2... " >&6; }
12304
12305 cat >conftest.$ac_ext <<_ACEOF
12306 /* confdefs.h. */
12307 _ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12311
12312 void main()
12313 {
12314 __asm__ __volatile__("pxor %xmm0, %xmm1");
12315 }
12316
12317 _ACEOF
12318 rm -f conftest.$ac_objext conftest$ac_exeext
12319 if { (ac_try="$ac_link"
12320 case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12323 esac
12324 eval 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
12339
12340
12341 cat >>confdefs.h <<\_ACEOF
12342 #define HAVE_SSE2 1
12343 _ACEOF
12344
12345 { $as_echo "$as_me:$LINENO: result: yes" >&5
12346 $as_echo "yes" >&6; }
12347
12348 else
12349 $as_echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12351
12352
12353 { $as_echo "$as_me:$LINENO: result: no" >&5
12354 $as_echo "no" >&6; }
12355
12356 fi
12357
12358 rm -rf conftest.dSYM
12359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12360 conftest$ac_exeext conftest.$ac_ext
12361
12362
12363 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE3" >&5
12364 $as_echo_n "checking whether host toolchain supports SSE3... " >&6; }
12365
12366 cat >conftest.$ac_ext <<_ACEOF
12367 /* confdefs.h. */
12368 _ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12372
12373 void main()
12374 {
12375 char v[16];
12376 __asm__ __volatile__("lddqu %0,%%xmm0" :: "m"(v[0]));
12377 }
12378
12379 _ACEOF
12380 rm -f conftest.$ac_objext conftest$ac_exeext
12381 if { (ac_try="$ac_link"
12382 case "(($ac_try" in
12383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384 *) ac_try_echo=$ac_try;;
12385 esac
12386 eval 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
12401
12402
12403 cat >>confdefs.h <<\_ACEOF
12404 #define HAVE_SSE3 1
12405 _ACEOF
12406
12407 { $as_echo "$as_me:$LINENO: result: yes" >&5
12408 $as_echo "yes" >&6; }
12409
12410 else
12411 $as_echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12413
12414
12415 { $as_echo "$as_me:$LINENO: result: no" >&5
12416 $as_echo "no" >&6; }
12417
12418 fi
12419
12420 rm -rf conftest.dSYM
12421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12422 conftest$ac_exeext conftest.$ac_ext
12423
12424
12425 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSSE3" >&5
12426 $as_echo_n "checking whether host toolchain supports SSSE3... " >&6; }
12427
12428 cat >conftest.$ac_ext <<_ACEOF
12429 /* confdefs.h. */
12430 _ACEOF
12431 cat confdefs.h >>conftest.$ac_ext
12432 cat >>conftest.$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12434
12435 void main()
12436 {
12437 __asm__ __volatile__("pshufb %xmm0,%xmm1");
12438 }
12439
12440 _ACEOF
12441 rm -f conftest.$ac_objext conftest$ac_exeext
12442 if { (ac_try="$ac_link"
12443 case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12446 esac
12447 eval 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
12462
12463
12464 cat >>confdefs.h <<\_ACEOF
12465 #define HAVE_SSSE3 1
12466 _ACEOF
12467
12468 { $as_echo "$as_me:$LINENO: result: yes" >&5
12469 $as_echo "yes" >&6; }
12470
12471 else
12472 $as_echo "$as_me: failed program was:" >&5
12473 sed 's/^/| /' conftest.$ac_ext >&5
12474
12475
12476 { $as_echo "$as_me:$LINENO: result: no" >&5
12477 $as_echo "no" >&6; }
12478
12479 fi
12480
12481 rm -rf conftest.dSYM
12482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12483 conftest$ac_exeext conftest.$ac_ext
12484
12485
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; }
12488
12489 cat >conftest.$ac_ext <<_ACEOF
12490 /* confdefs.h. */
12491 _ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12495
12496 void main()
12497 {
12498 __asm__ __volatile__("pmaxsb %xmm0,%xmm1");
12499 }
12500
12501 _ACEOF
12502 rm -f conftest.$ac_objext conftest$ac_exeext
12503 if { (ac_try="$ac_link"
12504 case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12507 esac
12508 eval 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
12523
12524
12525 cat >>confdefs.h <<\_ACEOF
12526 #define HAVE_SSE4_1 1
12527 _ACEOF
12528
12529 { $as_echo "$as_me:$LINENO: result: yes" >&5
12530 $as_echo "yes" >&6; }
12531
12532 else
12533 $as_echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12535
12536
12537 { $as_echo "$as_me:$LINENO: result: no" >&5
12538 $as_echo "no" >&6; }
12539
12540 fi
12541
12542 rm -rf conftest.dSYM
12543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12544 conftest$ac_exeext conftest.$ac_ext
12545
12546
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; }
12549
12550 cat >conftest.$ac_ext <<_ACEOF
12551 /* confdefs.h. */
12552 _ACEOF
12553 cat confdefs.h >>conftest.$ac_ext
12554 cat >>conftest.$ac_ext <<_ACEOF
12555 /* end confdefs.h. */
12556
12557 void main()
12558 {
12559 __asm__ __volatile__("pcmpgtq %xmm0, %xmm1");
12560 }
12561
12562 _ACEOF
12563 rm -f conftest.$ac_objext conftest$ac_exeext
12564 if { (ac_try="$ac_link"
12565 case "(($ac_try" in
12566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12568 esac
12569 eval 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
12584
12585
12586 cat >>confdefs.h <<\_ACEOF
12587 #define HAVE_SSE4_2 1
12588 _ACEOF
12589
12590 { $as_echo "$as_me:$LINENO: result: yes" >&5
12591 $as_echo "yes" >&6; }
12592
12593 else
12594 $as_echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12596
12597
12598 { $as_echo "$as_me:$LINENO: result: no" >&5
12599 $as_echo "no" >&6; }
12600
12601 fi
12602
12603 rm -rf conftest.dSYM
12604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12605 conftest$ac_exeext conftest.$ac_ext
12606
12607
12608 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX" >&5
12609 $as_echo_n "checking whether host toolchain supports AVX... " >&6; }
12610
12611 cat >conftest.$ac_ext <<_ACEOF
12612 /* confdefs.h. */
12613 _ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h. */
12617
12618 void main()
12619 {
12620 char v[32];
12621 __asm__ __volatile__("vmovdqa %0,%%ymm0" :: "m"(v[0]));
12622 }
12623
12624 _ACEOF
12625 rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (ac_try="$ac_link"
12627 case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12630 esac
12631 eval 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
12646
12647 { $as_echo "$as_me:$LINENO: result: yes" >&5
12648 $as_echo "yes" >&6; }
12649
12650 cat >>confdefs.h <<\_ACEOF
12651 #define HAVE_AVX 1
12652 _ACEOF
12653
12654
12655 else
12656 $as_echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12658
12659
12660 { $as_echo "$as_me:$LINENO: result: no" >&5
12661 $as_echo "no" >&6; }
12662
12663 fi
12664
12665 rm -rf conftest.dSYM
12666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12667 conftest$ac_exeext conftest.$ac_ext
12668
12669
12670 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX2" >&5
12671 $as_echo_n "checking whether host toolchain supports AVX2... " >&6; }
12672
12673 cat >conftest.$ac_ext <<_ACEOF
12674 /* confdefs.h. */
12675 _ACEOF
12676 cat confdefs.h >>conftest.$ac_ext
12677 cat >>conftest.$ac_ext <<_ACEOF
12678 /* end confdefs.h. */
12679
12680
12681 void main()
12682 {
12683 __asm__ __volatile__("vpshufb %ymm0,%ymm1,%ymm2");
12684 }
12685
12686 _ACEOF
12687 rm -f conftest.$ac_objext conftest$ac_exeext
12688 if { (ac_try="$ac_link"
12689 case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12692 esac
12693 eval 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
12708
12709 { $as_echo "$as_me:$LINENO: result: yes" >&5
12710 $as_echo "yes" >&6; }
12711
12712 cat >>confdefs.h <<\_ACEOF
12713 #define HAVE_AVX2 1
12714 _ACEOF
12715
12716
12717 else
12718 $as_echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12720
12721
12722 { $as_echo "$as_me:$LINENO: result: no" >&5
12723 $as_echo "no" >&6; }
12724
12725 fi
12726
12727 rm -rf conftest.dSYM
12728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12729 conftest$ac_exeext conftest.$ac_ext
12730
12731
12732 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512F" >&5
12733 $as_echo_n "checking whether host toolchain supports AVX512F... " >&6; }
12734
12735 cat >conftest.$ac_ext <<_ACEOF
12736 /* confdefs.h. */
12737 _ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h. */
12741
12742
12743 void main()
12744 {
12745 __asm__ __volatile__("vpandd %zmm0,%zmm1,%zmm2");
12746 }
12747
12748 _ACEOF
12749 rm -f conftest.$ac_objext conftest$ac_exeext
12750 if { (ac_try="$ac_link"
12751 case "(($ac_try" in
12752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753 *) ac_try_echo=$ac_try;;
12754 esac
12755 eval 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
12770
12771 { $as_echo "$as_me:$LINENO: result: yes" >&5
12772 $as_echo "yes" >&6; }
12773
12774 cat >>confdefs.h <<\_ACEOF
12775 #define HAVE_AVX512F 1
12776 _ACEOF
12777
12778
12779 else
12780 $as_echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.$ac_ext >&5
12782
12783
12784 { $as_echo "$as_me:$LINENO: result: no" >&5
12785 $as_echo "no" >&6; }
12786
12787 fi
12788
12789 rm -rf conftest.dSYM
12790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12791 conftest$ac_exeext conftest.$ac_ext
12792
12793
12794 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512CD" >&5
12795 $as_echo_n "checking whether host toolchain supports AVX512CD... " >&6; }
12796
12797 cat >conftest.$ac_ext <<_ACEOF
12798 /* confdefs.h. */
12799 _ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12803
12804
12805 void main()
12806 {
12807 __asm__ __volatile__("vplzcntd %zmm0,%zmm1");
12808 }
12809
12810 _ACEOF
12811 rm -f conftest.$ac_objext conftest$ac_exeext
12812 if { (ac_try="$ac_link"
12813 case "(($ac_try" in
12814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12816 esac
12817 eval 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
12832
12833 { $as_echo "$as_me:$LINENO: result: yes" >&5
12834 $as_echo "yes" >&6; }
12835
12836 cat >>confdefs.h <<\_ACEOF
12837 #define HAVE_AVX512CD 1
12838 _ACEOF
12839
12840
12841 else
12842 $as_echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12844
12845
12846 { $as_echo "$as_me:$LINENO: result: no" >&5
12847 $as_echo "no" >&6; }
12848
12849 fi
12850
12851 rm -rf conftest.dSYM
12852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12853 conftest$ac_exeext conftest.$ac_ext
12854
12855
12856 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512DQ" >&5
12857 $as_echo_n "checking whether host toolchain supports AVX512DQ... " >&6; }
12858
12859 cat >conftest.$ac_ext <<_ACEOF
12860 /* confdefs.h. */
12861 _ACEOF
12862 cat confdefs.h >>conftest.$ac_ext
12863 cat >>conftest.$ac_ext <<_ACEOF
12864 /* end confdefs.h. */
12865
12866
12867 void main()
12868 {
12869 __asm__ __volatile__("vandpd %zmm0,%zmm1,%zmm2");
12870 }
12871
12872 _ACEOF
12873 rm -f conftest.$ac_objext conftest$ac_exeext
12874 if { (ac_try="$ac_link"
12875 case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12878 esac
12879 eval 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
12894
12895 { $as_echo "$as_me:$LINENO: result: yes" >&5
12896 $as_echo "yes" >&6; }
12897
12898 cat >>confdefs.h <<\_ACEOF
12899 #define HAVE_AVX512DQ 1
12900 _ACEOF
12901
12902
12903 else
12904 $as_echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12906
12907
12908 { $as_echo "$as_me:$LINENO: result: no" >&5
12909 $as_echo "no" >&6; }
12910
12911 fi
12912
12913 rm -rf conftest.dSYM
12914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12915 conftest$ac_exeext conftest.$ac_ext
12916
12917
12918 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512BW" >&5
12919 $as_echo_n "checking whether host toolchain supports AVX512BW... " >&6; }
12920
12921 cat >conftest.$ac_ext <<_ACEOF
12922 /* confdefs.h. */
12923 _ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h. */
12927
12928
12929 void main()
12930 {
12931 __asm__ __volatile__("vpshufb %zmm0,%zmm1,%zmm2");
12932 }
12933
12934 _ACEOF
12935 rm -f conftest.$ac_objext conftest$ac_exeext
12936 if { (ac_try="$ac_link"
12937 case "(($ac_try" in
12938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12939 *) ac_try_echo=$ac_try;;
12940 esac
12941 eval 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
12956
12957 { $as_echo "$as_me:$LINENO: result: yes" >&5
12958 $as_echo "yes" >&6; }
12959
12960 cat >>confdefs.h <<\_ACEOF
12961 #define HAVE_AVX512BW 1
12962 _ACEOF
12963
12964
12965 else
12966 $as_echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12968
12969
12970 { $as_echo "$as_me:$LINENO: result: no" >&5
12971 $as_echo "no" >&6; }
12972
12973 fi
12974
12975 rm -rf conftest.dSYM
12976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12977 conftest$ac_exeext conftest.$ac_ext
12978
12979
12980 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512IFMA" >&5
12981 $as_echo_n "checking whether host toolchain supports AVX512IFMA... " >&6; }
12982
12983 cat >conftest.$ac_ext <<_ACEOF
12984 /* confdefs.h. */
12985 _ACEOF
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12989
12990
12991 void main()
12992 {
12993 __asm__ __volatile__("vpmadd52luq %zmm0,%zmm1,%zmm2");
12994 }
12995
12996 _ACEOF
12997 rm -f conftest.$ac_objext conftest$ac_exeext
12998 if { (ac_try="$ac_link"
12999 case "(($ac_try" in
13000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001 *) ac_try_echo=$ac_try;;
13002 esac
13003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13004 $as_echo "$ac_try_echo") >&5
13005 (eval "$ac_link") 2>conftest.er1
13006 ac_status=$?
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
13018
13019 { $as_echo "$as_me:$LINENO: result: yes" >&5
13020 $as_echo "yes" >&6; }
13021
13022 cat >>confdefs.h <<\_ACEOF
13023 #define HAVE_AVX512IFMA 1
13024 _ACEOF
13025
13026
13027 else
13028 $as_echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13030
13031
13032 { $as_echo "$as_me:$LINENO: result: no" >&5
13033 $as_echo "no" >&6; }
13034
13035 fi
13036
13037 rm -rf conftest.dSYM
13038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13039 conftest$ac_exeext conftest.$ac_ext
13040
13041
13042 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512VBMI" >&5
13043 $as_echo_n "checking whether host toolchain supports AVX512VBMI... " >&6; }
13044
13045 cat >conftest.$ac_ext <<_ACEOF
13046 /* confdefs.h. */
13047 _ACEOF
13048 cat confdefs.h >>conftest.$ac_ext
13049 cat >>conftest.$ac_ext <<_ACEOF
13050 /* end confdefs.h. */
13051
13052
13053 void main()
13054 {
13055 __asm__ __volatile__("vpermb %zmm0,%zmm1,%zmm2");
13056 }
13057
13058 _ACEOF
13059 rm -f conftest.$ac_objext conftest$ac_exeext
13060 if { (ac_try="$ac_link"
13061 case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13064 esac
13065 eval 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
13080
13081 { $as_echo "$as_me:$LINENO: result: yes" >&5
13082 $as_echo "yes" >&6; }
13083
13084 cat >>confdefs.h <<\_ACEOF
13085 #define HAVE_AVX512VBMI 1
13086 _ACEOF
13087
13088
13089 else
13090 $as_echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.$ac_ext >&5
13092
13093
13094 { $as_echo "$as_me:$LINENO: result: no" >&5
13095 $as_echo "no" >&6; }
13096
13097 fi
13098
13099 rm -rf conftest.dSYM
13100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13101 conftest$ac_exeext conftest.$ac_ext
13102
13103
13104 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512PF" >&5
13105 $as_echo_n "checking whether host toolchain supports AVX512PF... " >&6; }
13106
13107 cat >conftest.$ac_ext <<_ACEOF
13108 /* confdefs.h. */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13113
13114
13115 void main()
13116 {
13117 __asm__ __volatile__("vgatherpf0dps (%rsi,%zmm0,4){%k1}");
13118 }
13119
13120 _ACEOF
13121 rm -f conftest.$ac_objext conftest$ac_exeext
13122 if { (ac_try="$ac_link"
13123 case "(($ac_try" in
13124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125 *) ac_try_echo=$ac_try;;
13126 esac
13127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13128 $as_echo "$ac_try_echo") >&5
13129 (eval "$ac_link") 2>conftest.er1
13130 ac_status=$?
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
13142
13143 { $as_echo "$as_me:$LINENO: result: yes" >&5
13144 $as_echo "yes" >&6; }
13145
13146 cat >>confdefs.h <<\_ACEOF
13147 #define HAVE_AVX512PF 1
13148 _ACEOF
13149
13150
13151 else
13152 $as_echo "$as_me: failed program was:" >&5
13153 sed 's/^/| /' conftest.$ac_ext >&5
13154
13155
13156 { $as_echo "$as_me:$LINENO: result: no" >&5
13157 $as_echo "no" >&6; }
13158
13159 fi
13160
13161 rm -rf conftest.dSYM
13162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13163 conftest$ac_exeext conftest.$ac_ext
13164
13165
13166 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512ER" >&5
13167 $as_echo_n "checking whether host toolchain supports AVX512ER... " >&6; }
13168
13169 cat >conftest.$ac_ext <<_ACEOF
13170 /* confdefs.h. */
13171 _ACEOF
13172 cat confdefs.h >>conftest.$ac_ext
13173 cat >>conftest.$ac_ext <<_ACEOF
13174 /* end confdefs.h. */
13175
13176
13177 void main()
13178 {
13179 __asm__ __volatile__("vexp2pd %zmm0,%zmm1");
13180 }
13181
13182 _ACEOF
13183 rm -f conftest.$ac_objext conftest$ac_exeext
13184 if { (ac_try="$ac_link"
13185 case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13188 esac
13189 eval 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
13204
13205 { $as_echo "$as_me:$LINENO: result: yes" >&5
13206 $as_echo "yes" >&6; }
13207
13208 cat >>confdefs.h <<\_ACEOF
13209 #define HAVE_AVX512ER 1
13210 _ACEOF
13211
13212
13213 else
13214 $as_echo "$as_me: failed program was:" >&5
13215 sed 's/^/| /' conftest.$ac_ext >&5
13216
13217
13218 { $as_echo "$as_me:$LINENO: result: no" >&5
13219 $as_echo "no" >&6; }
13220
13221 fi
13222
13223 rm -rf conftest.dSYM
13224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13225 conftest$ac_exeext conftest.$ac_ext
13226
13227
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. */
13233 _ACEOF
13234 cat confdefs.h >>conftest.$ac_ext
13235 cat >>conftest.$ac_ext <<_ACEOF
13236 /* end confdefs.h. */
13237
13238
13239 void main()
13240 {
13241 __asm__ __volatile__("vpabsq %zmm0,%zmm1");
13242 }
13243
13244 _ACEOF
13245 rm -f conftest.$ac_objext conftest$ac_exeext
13246 if { (ac_try="$ac_link"
13247 case "(($ac_try" in
13248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249 *) ac_try_echo=$ac_try;;
13250 esac
13251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13252 $as_echo "$ac_try_echo") >&5
13253 (eval "$ac_link") 2>conftest.er1
13254 ac_status=$?
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
13266
13267 { $as_echo "$as_me:$LINENO: result: yes" >&5
13268 $as_echo "yes" >&6; }
13269
13270 cat >>confdefs.h <<\_ACEOF
13271 #define HAVE_AVX512VL 1
13272 _ACEOF
13273
13274
13275 else
13276 $as_echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13278
13279
13280 { $as_echo "$as_me:$LINENO: result: no" >&5
13281 $as_echo "no" >&6; }
13282
13283 fi
13284
13285 rm -rf conftest.dSYM
13286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13287 conftest$ac_exeext conftest.$ac_ext
13288
13289 ;;
13290 esac
13291
13292
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
13305
13306
13307 if test $TARGET_ASM_DIR = asm-x86_64; then
13308 TARGET_ASM_X86_64_TRUE=
13309 TARGET_ASM_X86_64_FALSE='#'
13310 else
13311 TARGET_ASM_X86_64_TRUE='#'
13312 TARGET_ASM_X86_64_FALSE=
13313 fi
13314
13315 if test $TARGET_ASM_DIR = asm-i386; then
13316 TARGET_ASM_I386_TRUE=
13317 TARGET_ASM_I386_FALSE='#'
13318 else
13319 TARGET_ASM_I386_TRUE='#'
13320 TARGET_ASM_I386_FALSE=
13321 fi
13322
13323 if test $TARGET_ASM_DIR = asm-generic; then
13324 TARGET_ASM_GENERIC_TRUE=
13325 TARGET_ASM_GENERIC_FALSE='#'
13326 else
13327 TARGET_ASM_GENERIC_TRUE='#'
13328 TARGET_ASM_GENERIC_FALSE=
13329 fi
13330
13331 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
13332 $as_echo "$TARGET_ASM_DIR" >&6; }
13333
13334
13335
13336 case "$ZFS_CONFIG" in
13337 kernel)
13338
13339
13340 # Check whether --with-linux was given.
13341 if test "${with_linux+set}" = set; then
13342 withval=$with_linux; kernelsrc="$withval"
13343 fi
13344
13345
13346
13347 # Check whether --with-linux-obj was given.
13348 if test "${with_linux_obj+set}" = set; then
13349 withval=$with_linux_obj; kernelbuild="$withval"
13350 fi
13351
13352
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
13356
13357 if test -e "/lib/modules/$(uname -r)/source"; then
13358
13359 headersdir="/lib/modules/$(uname -r)/source"
13360 sourcelink=$(readlink -f "$headersdir")
13361
13362 elif test -e "/lib/modules/$(uname -r)/build"; then
13363
13364 headersdir="/lib/modules/$(uname -r)/build"
13365 sourcelink=$(readlink -f "$headersdir")
13366
13367 else
13368
13369 sourcelink=$(ls -1d /usr/src/kernels/* \
13370 /usr/src/linux-* \
13371 2>/dev/null | grep -v obj | tail -1)
13372
13373 fi
13374
13375
13376 if test -n "$sourcelink" && test -e ${sourcelink}; then
13377
13378 kernelsrc=`readlink -f ${sourcelink}`
13379
13380 else
13381
13382 kernelsrc="Not found"
13383
13384 fi
13385
13386
13387 else
13388
13389 if test "$kernelsrc" = "NONE"; then
13390
13391 kernsrcver=NONE
13392
13393 fi
13394
13395 withlinux=yes
13396
13397 fi
13398
13399
13400 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
13401 $as_echo "$kernelsrc" >&6; }
13402 if test ! -d "$kernelsrc"; then
13403
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; }; }
13413
13414 fi
13415
13416
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
13420
13421 if test x$withlinux != xyes -a -e "/lib/modules/$(uname -r)/build"; then
13422
13423 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
13424
13425 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
13426
13427 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
13428
13429 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
13430
13431 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
13432
13433 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
13434
13435 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
13436
13437 else
13438
13439 kernelbuild=${kernelsrc}
13440
13441 fi
13442
13443
13444 fi
13445
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
13455
13456 utsrelease=linux/version.h
13457
13458 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
13459
13460 utsrelease=linux/utsrelease.h
13461
13462 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
13463
13464 utsrelease=generated/utsrelease.h
13465
13466 fi
13467
13468
13469 if test "$utsrelease"; then
13470
13471 kernsrcver=`(echo "#include <$utsrelease>";
13472 echo "kernsrcver=UTS_RELEASE") |
13473 cpp -I $kernelbuild/include |
13474 grep "^kernsrcver=" | cut -d \" -f 2`
13475
13476 if test -z "$kernsrcver"; then
13477
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; }; }
13483
13484 fi
13485
13486
13487 else
13488
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
13504
13505 fi
13506
13507
13508 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
13509 $as_echo "$kernsrcver" >&6; }
13510
13511 LINUX=${kernelsrc}
13512 LINUX_OBJ=${kernelbuild}
13513 LINUX_VERSION=${kernsrcver}
13514
13515
13516
13517
13518
13519
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
13524
13525 if grep -q Modules.symvers $modpost; then
13526
13527 LINUX_SYMBOLS=Modules.symvers
13528
13529 else
13530
13531 LINUX_SYMBOLS=Module.symvers
13532
13533 fi
13534
13535
13536 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
13537
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; }; }
13549
13550 fi
13551
13552
13553 else
13554
13555 LINUX_SYMBOLS=NONE
13556
13557 fi
13558
13559 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
13560 $as_echo "$LINUX_SYMBOLS" >&6; }
13561
13562
13563
13564
13565
13566 # Check whether --with-spl was given.
13567 if 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; }; }
13572 else
13573 splsrc="$withval"
13574 fi
13575
13576 fi
13577
13578
13579
13580 # Check whether --with-spl-obj was given.
13581 if test "${with_spl_obj+set}" = set; then
13582 withval=$with_spl_obj; splbuild="$withval"
13583 fi
13584
13585
13586
13587 # Check whether --with-spl-timeout was given.
13588 if test "${with_spl_timeout+set}" = set; then
13589 withval=$with_spl_timeout; timeout="$withval"
13590 else
13591 timeout=0
13592 fi
13593
13594
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"
13602
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
13616
13617 splsrc=${splsrc0}
13618
13619 elif test -e "${splsrc1}/spl.release.in"; then
13620
13621 splsrc=${splsrc1}
13622
13623 elif test -e "${splsrc2}/spl.release.in"; then
13624
13625 splsrc=${splsrc2}
13626
13627 elif test -e "${splsrc3}/spl.release.in"; then
13628
13629 splsrc=$(readlink -f "${splsrc3}")
13630
13631 elif test -e "${splsrc4}/spl.release.in" ; then
13632
13633 splsrc=${splsrc4}
13634
13635 elif test -e "${splsrc5}/spl.release.in"; then
13636
13637 splsrc=$(readlink -f "${splsrc5}")
13638
13639 elif test -e "${splsrc6}/spl.release.in" ; then
13640
13641 splsrc=${splsrc6}
13642
13643 else
13644
13645 splsrc="Not found"
13646
13647 fi
13648
13649
13650 else
13651
13652 all_spl_sources="$withval",
13653 if test "$splsrc" = "NONE"; then
13654
13655 splbuild=NONE
13656 splsrcver=NONE
13657
13658 fi
13659
13660
13661 fi
13662
13663
13664 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
13665 $as_echo "$splsrc" >&6; }
13666 if test ! -e "$splsrc/spl.release.in"; then
13667
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; }; }
13683
13684 fi
13685
13686
13687 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
13688 $as_echo_n "checking spl build directory... " >&6; }
13689
13690 all_spl_config_locs="${splsrc}/${LINUX_VERSION}
13691 ${splsrc}"
13692
13693 while true; do
13694 if test -z "$splbuild"; then
13695
13696 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then
13697
13698 splbuild="${splsrc}/${LINUX_VERSION}"
13699
13700 elif test -e "${splsrc}/spl_config.h" ; then
13701
13702 splbuild="${splsrc}"
13703
13704 elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then
13705
13706 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
13707
13708 else
13709
13710 splbuild="Not found"
13711
13712 fi
13713
13714
13715 fi
13716
13717 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then
13718
13719 break;
13720
13721 else
13722
13723 sleep 1
13724 timeout=$((timeout-1))
13725
13726 fi
13727
13728 done
13729
13730 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
13731 $as_echo "$splbuild" >&6; }
13732 if ! test -e "$splbuild/spl_config.h"; then
13733
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; }; }
13749
13750 fi
13751
13752
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
13757
13758
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`
13763
13764 fi
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
13779 fi
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
13802 elif test -r $SPL_OBJ/Modules.symvers; then
13803
13804 SPL_SYMBOLS=Modules.symvers
13805
13806 elif test -r $SPL_OBJ/module/Module.symvers; then
13807
13808 SPL_SYMBOLS=Module.symvers
13809
13810 elif test -r $SPL_OBJ/module/Modules.symvers; then
13811
13812 SPL_SYMBOLS=Modules.symvers
13813
13814 fi
13815
13816
13817 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then
13818
13819 break;
13820
13821 else
13822
13823 sleep 1
13824 timeout=$((timeout-1))
13825
13826 fi
13827
13828 done
13829
13830 if test "$SPL_SYMBOLS" = NONE; then
13831
13832 SPL_SYMBOLS=$LINUX_SYMBOLS
13833
13834 fi
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.
13844 if 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; }; }
13849 else
13850 qatsrc="$withval"
13851 fi
13852
13853 fi
13854
13855
13856
13857 # Check whether --with-qat-obj was given.
13858 if test "${with_qat_obj+set}" = set; then
13859 withval=$with_qat_obj; qatbuild="$withval"
13860 fi
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
13886 fi
13887
13888
13889 fi
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
13900 fi
13901
13902
13903 { $as_echo "$as_me:$LINENO: result: $qatbuild" >&5
13904 $as_echo "$qatbuild" >&6; }
13905 QAT_OBJ=${qatbuild}
13906 if ! test -e "$QAT_OBJ/icp_qa_al.ko"; then
13907
13908 { { $as_echo "$as_me:$LINENO: error:
13909 *** Please make sure the qat driver is installed then try again.
13910 *** Failed to find icp_qa_al.ko in:
13911 $QAT_OBJ" >&5
13912 $as_echo "$as_me: error:
13913 *** Please make sure the qat driver is installed then try again.
13914 *** Failed to find icp_qa_al.ko in:
13915 $QAT_OBJ" >&2;}
13916 { (exit 1); exit 1; }; }
13917
13918 fi
13919
13920
13921
13922
13923
13924
13925 cat >>confdefs.h <<\_ACEOF
13926 #define HAVE_QAT 1
13927 _ACEOF
13928
13929
13930 fi
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
13945 else
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
13957 fi
13958
13959
13960 fi
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
13968 cat confdefs.h - <<_ACEOF >conftest.c
13969 /* confdefs.h. */
13970 _ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13974
13975
13976 int
13977 main (void)
13978 {
13979
13980 ;
13981 return 0;
13982 }
13983
13984 _ACEOF
13985
13986
13987
13988 cat - <<_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'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14000 ac_status=$?
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
14004 (eval $ac_try) 2>&5
14005 ac_status=$?
14006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; }; then
14008
14009 { $as_echo "$as_me:$LINENO: result: yes" >&5
14010 $as_echo "yes" >&6; }
14011
14012 else
14013 $as_echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.$ac_ext >&5
14015
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
14031
14032
14033
14034 fi
14035
14036 rm -Rf build
14037
14038
14039
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; }
14043
14044
14045 cat confdefs.h - <<_ACEOF >conftest.c
14046 /* confdefs.h. */
14047 _ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14051
14052
14053 #undef __ASSEMBLY__
14054 #include <asm/frame.h>
14055
14056 int
14057 main (void)
14058 {
14059
14060 #if !defined(FRAME_BEGIN)
14061 CTASSERT(1);
14062 #endif
14063
14064 ;
14065 return 0;
14066 }
14067
14068 _ACEOF
14069
14070
14071
14072 cat - <<_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'
14082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083 (eval $ac_try) 2>&5
14084 ac_status=$?
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
14088 (eval $ac_try) 2>&5
14089 ac_status=$?
14090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
14092
14093 { $as_echo "$as_me:$LINENO: result: yes" >&5
14094 $as_echo "yes" >&6; }
14095
14096 cat >>confdefs.h <<\_ACEOF
14097 #define HAVE_KERNEL_OBJTOOL 1
14098 _ACEOF
14099
14100
14101 else
14102 $as_echo "$as_me: failed program was:" >&5
14103 sed 's/^/| /' conftest.$ac_ext >&5
14104
14105 { $as_echo "$as_me:$LINENO: result: no" >&5
14106 $as_echo "no" >&6; }
14107
14108
14109
14110 fi
14111
14112 rm -Rf build
14113
14114
14115
14116
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
14123 See \`config.log' for more details." >&5
14124 $as_echo "$as_me: error: cannot run test program while cross compiling
14125 See \`config.log' for more details." >&2;}
14126 { (exit 1); exit 1; }; }; }
14127 else
14128 cat >conftest.$ac_ext <<_ACEOF
14129
14130 /* confdefs.h. */
14131 _ACEOF
14132 cat confdefs.h >>conftest.$ac_ext
14133 cat >>conftest.$ac_ext <<_ACEOF
14134 /* end confdefs.h. */
14135
14136 #include "$LINUX/include/linux/license.h"
14137
14138 int
14139 main ()
14140 {
14141
14142 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
14143
14144 ;
14145 return 0;
14146 }
14147
14148 _ACEOF
14149 rm -f conftest$ac_exeext
14150 if { (ac_try="$ac_link"
14151 case "(($ac_try" in
14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14154 esac
14155 eval 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;;
14164 esac
14165 eval 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
14173 cat >>confdefs.h <<\_ACEOF
14174 #define ZFS_IS_GPL_COMPATIBLE 1
14175 _ACEOF
14176
14177
14178 else
14179 $as_echo "$as_me: program exited with status $ac_status" >&5
14180 $as_echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14182
14183 ( exit $ac_status )
14184
14185
14186 fi
14187 rm -rf conftest.dSYM
14188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14189 fi
14190
14191
14192
14193 fi
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; }
14199
14200
14201 cat confdefs.h - <<_ACEOF >conftest.c
14202 /* confdefs.h. */
14203 _ACEOF
14204 cat confdefs.h >>conftest.$ac_ext
14205 cat >>conftest.$ac_ext <<_ACEOF
14206 /* end confdefs.h. */
14207
14208
14209 #include <linux/module.h>
14210
14211 int
14212 main (void)
14213 {
14214
14215 #if (THREAD_SIZE < 16384)
14216 #error "THREAD_SIZE is less than 16K"
14217 #endif
14218
14219 ;
14220 return 0;
14221 }
14222
14223 _ACEOF
14224
14225
14226
14227 cat - <<_ACEOF >conftest.h
14228
14229 _ACEOF
14230
14231
14232 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14233 echo "obj-m := conftest.o" >build/Makefile
14234 modpost_flag=''
14235 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14236 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14239 ac_status=$?
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
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }; then
14247
14248 { $as_echo "$as_me:$LINENO: result: yes" >&5
14249 $as_echo "yes" >&6; }
14250
14251 cat >>confdefs.h <<\_ACEOF
14252 #define HAVE_LARGE_STACKS 1
14253 _ACEOF
14254
14255
14256 else
14257 $as_echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14259
14260 { $as_echo "$as_me:$LINENO: result: no" >&5
14261 $as_echo "no" >&6; }
14262
14263
14264
14265 fi
14266
14267 rm -Rf build
14268
14269
14270
14271
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; }
14275
14276
14277 cat confdefs.h - <<_ACEOF >conftest.c
14278 /* confdefs.h. */
14279 _ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14283
14284
14285 #include <linux/module.h>
14286
14287 int
14288 main (void)
14289 {
14290
14291 #ifndef CONFIG_DEBUG_LOCK_ALLOC
14292 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
14293 #endif
14294
14295 ;
14296 return 0;
14297 }
14298
14299 _ACEOF
14300
14301
14302
14303 cat - <<_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'
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14315 ac_status=$?
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
14319 (eval $ac_try) 2>&5
14320 ac_status=$?
14321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }; then
14323
14324 { $as_echo "$as_me:$LINENO: result: yes" >&5
14325 $as_echo "yes" >&6; }
14326
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"
14330
14331
14332 cat confdefs.h - <<_ACEOF >conftest.c
14333 /* confdefs.h. */
14334 _ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h. */
14338
14339
14340 #include <linux/module.h>
14341 #include <linux/mutex.h>
14342
14343 MODULE_LICENSE("$ZFS_META_LICENSE");
14344
14345 int
14346 main (void)
14347 {
14348
14349 struct mutex lock;
14350
14351 mutex_init(&lock);
14352 mutex_lock(&lock);
14353 mutex_unlock(&lock);
14354
14355 ;
14356 return 0;
14357 }
14358
14359 _ACEOF
14360
14361
14362
14363 cat - <<_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'
14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374 (eval $ac_try) 2>&5
14375 ac_status=$?
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
14379 (eval $ac_try) 2>&5
14380 ac_status=$?
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
14387 else
14388 $as_echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
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
14405
14406
14407 fi
14408
14409 rm -Rf build
14410
14411
14412 EXTRA_KCFLAGS="$tmp_flags"
14413
14414
14415 else
14416 $as_echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14418
14419 { $as_echo "$as_me:$LINENO: result: no" >&5
14420 $as_echo "no" >&6; }
14421
14422
14423
14424
14425 fi
14426
14427 rm -Rf build
14428
14429
14430
14431
14432
14433
14434 tmp_flags="$EXTRA_KCFLAGS"
14435 EXTRA_KCFLAGS="-I\$(src)"
14436
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; }
14439
14440
14441 cat confdefs.h - <<_ACEOF >conftest.c
14442 /* confdefs.h. */
14443 _ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h. */
14447
14448
14449 #include <linux/module.h>
14450 MODULE_LICENSE(ZFS_META_LICENSE);
14451
14452 #define CREATE_TRACE_POINTS
14453 #include "conftest.h"
14454
14455 int
14456 main (void)
14457 {
14458
14459 trace_zfs_autoconf_event_one(1UL);
14460 trace_zfs_autoconf_event_two(2UL);
14461
14462 ;
14463 return 0;
14464 }
14465
14466 _ACEOF
14467
14468
14469
14470 cat - <<_ACEOF >conftest.h
14471
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
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'
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14515 ac_status=$?
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
14519 (eval $ac_try) 2>&5
14520 ac_status=$?
14521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; }; then
14523
14524 { $as_echo "$as_me:$LINENO: result: yes" >&5
14525 $as_echo "yes" >&6; }
14526
14527 cat >>confdefs.h <<\_ACEOF
14528 #define HAVE_DECLARE_EVENT_CLASS 1
14529 _ACEOF
14530
14531
14532 else
14533 $as_echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14535
14536 { $as_echo "$as_me:$LINENO: result: no" >&5
14537 $as_echo "no" >&6; }
14538
14539
14540
14541 fi
14542
14543 rm -Rf build
14544
14545
14546 EXTRA_KCFLAGS="$tmp_flags"
14547
14548
14549 { $as_echo "$as_me:$LINENO: checking whether current->bio_tail exists" >&5
14550 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
14551
14552
14553 cat confdefs.h - <<_ACEOF >conftest.c
14554 /* confdefs.h. */
14555 _ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h. */
14559
14560
14561 #include <linux/sched.h>
14562
14563 int
14564 main (void)
14565 {
14566
14567 current->bio_tail = (struct bio **) NULL;
14568
14569 ;
14570 return 0;
14571 }
14572
14573 _ACEOF
14574
14575
14576
14577 cat - <<_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'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14589 ac_status=$?
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
14593 (eval $ac_try) 2>&5
14594 ac_status=$?
14595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; }; then
14597
14598 { $as_echo "$as_me:$LINENO: result: yes" >&5
14599 $as_echo "yes" >&6; }
14600
14601 cat >>confdefs.h <<\_ACEOF
14602 #define HAVE_CURRENT_BIO_TAIL 1
14603 _ACEOF
14604
14605
14606 else
14607 $as_echo "$as_me: failed program was:" >&5
14608 sed 's/^/| /' conftest.$ac_ext >&5
14609
14610 { $as_echo "$as_me:$LINENO: result: no" >&5
14611 $as_echo "no" >&6; }
14612 { $as_echo "$as_me:$LINENO: checking whether current->bio_list exists" >&5
14613 $as_echo_n "checking whether current->bio_list exists... " >&6; }
14614
14615
14616 cat confdefs.h - <<_ACEOF >conftest.c
14617 /* confdefs.h. */
14618 _ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h. */
14622
14623
14624 #include <linux/sched.h>
14625
14626 int
14627 main (void)
14628 {
14629
14630 current->bio_list = (struct bio_list *) NULL;
14631
14632 ;
14633 return 0;
14634 }
14635
14636 _ACEOF
14637
14638
14639
14640 cat - <<_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'
14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14652 ac_status=$?
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
14656 (eval $ac_try) 2>&5
14657 ac_status=$?
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
14664 cat >>confdefs.h <<\_ACEOF
14665 #define HAVE_CURRENT_BIO_LIST 1
14666 _ACEOF
14667
14668
14669 else
14670 $as_echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
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
14679
14680
14681 fi
14682
14683 rm -Rf build
14684
14685
14686
14687
14688
14689 fi
14690
14691 rm -Rf build
14692
14693
14694
14695
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; }
14698
14699
14700 cat confdefs.h - <<_ACEOF >conftest.c
14701 /* confdefs.h. */
14702 _ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h. */
14706
14707
14708 #include <linux/fs.h>
14709 #include <linux/user_namespace.h>
14710
14711 int
14712 main (void)
14713 {
14714
14715 struct super_block super;
14716 super.s_user_ns = (struct user_namespace *)NULL;
14717
14718 ;
14719 return 0;
14720 }
14721
14722 _ACEOF
14723
14724
14725
14726 cat - <<_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'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14738 ac_status=$?
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
14742 (eval $ac_try) 2>&5
14743 ac_status=$?
14744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; }; then
14746
14747 { $as_echo "$as_me:$LINENO: result: yes" >&5
14748 $as_echo "yes" >&6; }
14749
14750 cat >>confdefs.h <<\_ACEOF
14751 #define HAVE_SUPER_USER_NS 1
14752 _ACEOF
14753
14754
14755 else
14756 $as_echo "$as_me: failed program was:" >&5
14757 sed 's/^/| /' conftest.$ac_ext >&5
14758
14759 { $as_echo "$as_me:$LINENO: result: no" >&5
14760 $as_echo "no" >&6; }
14761
14762
14763
14764 fi
14765
14766 rm -Rf build
14767
14768
14769
14770
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; }
14773
14774
14775 cat confdefs.h - <<_ACEOF >conftest.c
14776 /* confdefs.h. */
14777 _ACEOF
14778 cat confdefs.h >>conftest.$ac_ext
14779 cat >>conftest.$ac_ext <<_ACEOF
14780 /* end confdefs.h. */
14781
14782
14783 #include <linux/bio.h>
14784
14785 int
14786 main (void)
14787 {
14788
14789 blk_qc_t blk_qc;
14790 struct bio *bio = NULL;
14791 blk_qc = submit_bio(bio);
14792
14793 ;
14794 return 0;
14795 }
14796
14797 _ACEOF
14798
14799
14800
14801 cat - <<_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'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14813 ac_status=$?
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
14817 (eval $ac_try) 2>&5
14818 ac_status=$?
14819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14821
14822 { $as_echo "$as_me:$LINENO: result: yes" >&5
14823 $as_echo "yes" >&6; }
14824
14825 cat >>confdefs.h <<\_ACEOF
14826 #define HAVE_1ARG_SUBMIT_BIO 1
14827 _ACEOF
14828
14829
14830 else
14831 $as_echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14833
14834 { $as_echo "$as_me:$LINENO: result: no" >&5
14835 $as_echo "no" >&6; }
14836
14837
14838
14839 fi
14840
14841 rm -Rf build
14842
14843
14844
14845
14846 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
14847 $as_echo_n "checking block device operation prototypes... " >&6; }
14848 tmp_flags="$EXTRA_KCFLAGS"
14849 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14850
14851
14852 cat confdefs.h - <<_ACEOF >conftest.c
14853 /* confdefs.h. */
14854 _ACEOF
14855 cat confdefs.h >>conftest.$ac_ext
14856 cat >>conftest.$ac_ext <<_ACEOF
14857 /* end confdefs.h. */
14858
14859
14860 #include <linux/blkdev.h>
14861
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
14877 int
14878 main (void)
14879 {
14880
14881
14882 ;
14883 return 0;
14884 }
14885
14886 _ACEOF
14887
14888
14889
14890 cat - <<_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'
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14902 ac_status=$?
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
14906 (eval $ac_try) 2>&5
14907 ac_status=$?
14908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); }; }; then
14910
14911 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
14912 $as_echo "struct block_device" >&6; }
14913
14914 cat >>confdefs.h <<\_ACEOF
14915 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
14916 _ACEOF
14917
14918
14919 else
14920 $as_echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.$ac_ext >&5
14922
14923 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
14924 $as_echo "struct inode" >&6; }
14925
14926
14927
14928 fi
14929
14930 rm -Rf build
14931
14932
14933 EXTRA_KCFLAGS="$tmp_flags"
14934
14935
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; }
14938 tmp_flags="$EXTRA_KCFLAGS"
14939 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14940
14941
14942 cat confdefs.h - <<_ACEOF >conftest.c
14943 /* confdefs.h. */
14944 _ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h. */
14948
14949
14950 #include <linux/blkdev.h>
14951
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
14962 int
14963 main (void)
14964 {
14965
14966
14967 ;
14968 return 0;
14969 }
14970
14971 _ACEOF
14972
14973
14974
14975 cat - <<_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'
14985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14986 (eval $ac_try) 2>&5
14987 ac_status=$?
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
14991 (eval $ac_try) 2>&5
14992 ac_status=$?
14993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }; then
14995
14996 { $as_echo "$as_me:$LINENO: result: void" >&5
14997 $as_echo "void" >&6; }
14998
14999 cat >>confdefs.h <<\_ACEOF
15000 #define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1
15001 _ACEOF
15002
15003
15004 else
15005 $as_echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.$ac_ext >&5
15007
15008 { $as_echo "$as_me:$LINENO: result: int" >&5
15009 $as_echo "int" >&6; }
15010
15011
15012
15013 fi
15014
15015 rm -Rf build
15016
15017
15018 EXTRA_KCFLAGS="$tmp_flags"
15019
15020 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
15021 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
15022
15023
15024 cat confdefs.h - <<_ACEOF >conftest.c
15025 /* confdefs.h. */
15026 _ACEOF
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h. */
15030
15031
15032 #include <linux/types.h>
15033
15034 int
15035 main (void)
15036 {
15037
15038 fmode_t *ptr __attribute__ ((unused));
15039
15040 ;
15041 return 0;
15042 }
15043
15044 _ACEOF
15045
15046
15047
15048 cat - <<_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'
15058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059 (eval $ac_try) 2>&5
15060 ac_status=$?
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
15064 (eval $ac_try) 2>&5
15065 ac_status=$?
15066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
15068
15069 { $as_echo "$as_me:$LINENO: result: yes" >&5
15070 $as_echo "yes" >&6; }
15071
15072 cat >>confdefs.h <<\_ACEOF
15073 #define HAVE_FMODE_T 1
15074 _ACEOF
15075
15076
15077 else
15078 $as_echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15080
15081 { $as_echo "$as_me:$LINENO: result: no" >&5
15082 $as_echo "no" >&6; }
15083
15084
15085
15086 fi
15087
15088 rm -Rf build
15089
15090
15091
15092
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; }
15095
15096
15097 cat confdefs.h - <<_ACEOF >conftest.c
15098 /* confdefs.h. */
15099 _ACEOF
15100 cat confdefs.h >>conftest.$ac_ext
15101 cat >>conftest.$ac_ext <<_ACEOF
15102 /* end confdefs.h. */
15103
15104
15105 #include <linux/fs.h>
15106
15107 int
15108 main (void)
15109 {
15110
15111 struct block_device *bdev = NULL;
15112 (void) blkdev_get(bdev, 0, NULL);
15113
15114 ;
15115 return 0;
15116 }
15117
15118 _ACEOF
15119
15120
15121
15122 cat - <<_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'
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15134 ac_status=$?
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
15138 (eval $ac_try) 2>&5
15139 ac_status=$?
15140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; }; then
15142
15143 { $as_echo "$as_me:$LINENO: result: yes" >&5
15144 $as_echo "yes" >&6; }
15145
15146 cat >>confdefs.h <<\_ACEOF
15147 #define HAVE_3ARG_BLKDEV_GET 1
15148 _ACEOF
15149
15150
15151 else
15152 $as_echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15154
15155 { $as_echo "$as_me:$LINENO: result: no" >&5
15156 $as_echo "no" >&6; }
15157
15158
15159
15160 fi
15161
15162 rm -Rf build
15163
15164
15165
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; }
15168
15169
15170
15171 cat confdefs.h - <<_ACEOF >conftest.c
15172 /* confdefs.h. */
15173 _ACEOF
15174 cat confdefs.h >>conftest.$ac_ext
15175 cat >>conftest.$ac_ext <<_ACEOF
15176 /* end confdefs.h. */
15177
15178
15179 #include <linux/fs.h>
15180
15181 int
15182 main (void)
15183 {
15184
15185 blkdev_get_by_path(NULL, 0, NULL);
15186
15187 ;
15188 return 0;
15189 }
15190
15191 _ACEOF
15192
15193
15194
15195 cat - <<_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'
15205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15206 (eval $ac_try) 2>&5
15207 ac_status=$?
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
15211 (eval $ac_try) 2>&5
15212 ac_status=$?
15213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then
15215 rc=0
15216 else
15217 $as_echo "$as_me: failed program was:" >&5
15218 sed 's/^/| /' conftest.$ac_ext >&5
15219 rc=1
15220
15221
15222 fi
15223
15224 rm -Rf build
15225
15226
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
15262 $as_echo "no" >&6; }
15263
15264 else :
15265
15266 { $as_echo "$as_me:$LINENO: result: yes" >&5
15267 $as_echo "yes" >&6; }
15268
15269 cat >>confdefs.h <<\_ACEOF
15270 #define HAVE_BLKDEV_GET_BY_PATH 1
15271 _ACEOF
15272
15273
15274 fi
15275 fi
15276
15277
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; }
15280
15281
15282
15283 cat confdefs.h - <<_ACEOF >conftest.c
15284 /* confdefs.h. */
15285 _ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h. */
15289
15290
15291 #include <linux/fs.h>
15292
15293 int
15294 main (void)
15295 {
15296
15297 open_bdev_exclusive(NULL, 0, NULL);
15298
15299 ;
15300 return 0;
15301 }
15302
15303 _ACEOF
15304
15305
15306
15307 cat - <<_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'
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15319 ac_status=$?
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
15323 (eval $ac_try) 2>&5
15324 ac_status=$?
15325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15327 rc=0
15328 else
15329 $as_echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15331 rc=1
15332
15333
15334 fi
15335
15336 rm -Rf build
15337
15338
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 :
15372
15373 { $as_echo "$as_me:$LINENO: result: no" >&5
15374 $as_echo "no" >&6; }
15375
15376 else :
15377
15378 { $as_echo "$as_me:$LINENO: result: yes" >&5
15379 $as_echo "yes" >&6; }
15380
15381 cat >>confdefs.h <<\_ACEOF
15382 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
15383 _ACEOF
15384
15385
15386 fi
15387 fi
15388
15389
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; }
15392
15393
15394
15395 cat confdefs.h - <<_ACEOF >conftest.c
15396 /* confdefs.h. */
15397 _ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h. */
15401
15402
15403 #include <linux/fs.h>
15404
15405 int
15406 main (void)
15407 {
15408
15409 lookup_bdev(NULL);
15410
15411 ;
15412 return 0;
15413 }
15414
15415 _ACEOF
15416
15417
15418
15419 cat - <<_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'
15429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430 (eval $ac_try) 2>&5
15431 ac_status=$?
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
15435 (eval $ac_try) 2>&5
15436 ac_status=$?
15437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }; then
15439 rc=0
15440 else
15441 $as_echo "$as_me: failed program was:" >&5
15442 sed 's/^/| /' conftest.$ac_ext >&5
15443 rc=1
15444
15445
15446 fi
15447
15448 rm -Rf build
15449
15450
15451 if test $rc -ne 0; then :
15452
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; }
15457
15458
15459
15460 cat confdefs.h - <<_ACEOF >conftest.c
15461 /* confdefs.h. */
15462 _ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h. */
15466
15467
15468 #include <linux/fs.h>
15469
15470 int
15471 main (void)
15472 {
15473
15474 lookup_bdev(NULL, FMODE_READ);
15475
15476 ;
15477 return 0;
15478 }
15479
15480 _ACEOF
15481
15482
15483
15484 cat - <<_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'
15494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495 (eval $ac_try) 2>&5
15496 ac_status=$?
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
15500 (eval $ac_try) 2>&5
15501 ac_status=$?
15502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15504 rc=0
15505 else
15506 $as_echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15508 rc=1
15509
15510
15511 fi
15512
15513 rm -Rf build
15514
15515
15516 if test $rc -ne 0; then :
15517
15518 { $as_echo "$as_me:$LINENO: result: no" >&5
15519 $as_echo "no" >&6; }
15520
15521 else
15522 if test "x$enable_linux_builtin" != xyes; then
15523
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
15546
15547 fi
15548 if test $rc -ne 0; then :
15549
15550 { $as_echo "$as_me:$LINENO: result: no" >&5
15551 $as_echo "no" >&6; }
15552
15553 else :
15554
15555 { $as_echo "$as_me:$LINENO: result: yes" >&5
15556 $as_echo "yes" >&6; }
15557
15558 cat >>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; }
15600
15601
15602
15603 cat confdefs.h - <<_ACEOF >conftest.c
15604 /* confdefs.h. */
15605 _ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15609
15610
15611 #include <linux/fs.h>
15612
15613 int
15614 main (void)
15615 {
15616
15617 lookup_bdev(NULL, FMODE_READ);
15618
15619 ;
15620 return 0;
15621 }
15622
15623 _ACEOF
15624
15625
15626
15627 cat - <<_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'
15637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15639 ac_status=$?
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
15643 (eval $ac_try) 2>&5
15644 ac_status=$?
15645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; }; then
15647 rc=0
15648 else
15649 $as_echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15651 rc=1
15652
15653
15654 fi
15655
15656 rm -Rf build
15657
15658
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
15694 $as_echo "no" >&6; }
15695
15696 else :
15697
15698 { $as_echo "$as_me:$LINENO: result: yes" >&5
15699 $as_echo "yes" >&6; }
15700
15701 cat >>confdefs.h <<\_ACEOF
15702 #define HAVE_2ARGS_LOOKUP_BDEV 1
15703 _ACEOF
15704
15705
15706 fi
15707 fi
15708
15709
15710 else :
15711
15712 { $as_echo "$as_me:$LINENO: result: yes" >&5
15713 $as_echo "yes" >&6; }
15714
15715 cat >>confdefs.h <<\_ACEOF
15716 #define HAVE_1ARG_LOOKUP_BDEV 1
15717 _ACEOF
15718
15719
15720 fi
15721 fi
15722
15723
15724
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; }
15727
15728
15729 cat confdefs.h - <<_ACEOF >conftest.c
15730 /* confdefs.h. */
15731 _ACEOF
15732 cat confdefs.h >>conftest.$ac_ext
15733 cat >>conftest.$ac_ext <<_ACEOF
15734 /* end confdefs.h. */
15735
15736
15737 #include <linux/buffer_head.h>
15738
15739 int
15740 main (void)
15741 {
15742
15743 struct block_device *bdev = NULL;
15744 invalidate_bdev(bdev);
15745
15746 ;
15747 return 0;
15748 }
15749
15750 _ACEOF
15751
15752
15753
15754 cat - <<_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'
15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15766 ac_status=$?
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
15770 (eval $ac_try) 2>&5
15771 ac_status=$?
15772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; }; then
15774
15775 { $as_echo "$as_me:$LINENO: result: yes" >&5
15776 $as_echo "yes" >&6; }
15777
15778 cat >>confdefs.h <<\_ACEOF
15779 #define HAVE_1ARG_INVALIDATE_BDEV 1
15780 _ACEOF
15781
15782
15783 else
15784 $as_echo "$as_me: failed program was:" >&5
15785 sed 's/^/| /' conftest.$ac_ext >&5
15786
15787 { $as_echo "$as_me:$LINENO: result: no" >&5
15788 $as_echo "no" >&6; }
15789
15790
15791
15792 fi
15793
15794 rm -Rf build
15795
15796
15797
15798
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}"
15803
15804
15805 cat confdefs.h - <<_ACEOF >conftest.c
15806 /* confdefs.h. */
15807 _ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15811
15812
15813 #include <linux/blkdev.h>
15814
15815 int
15816 main (void)
15817 {
15818
15819 struct block_device *bdev = NULL;
15820 bdev_logical_block_size(bdev);
15821
15822 ;
15823 return 0;
15824 }
15825
15826 _ACEOF
15827
15828
15829
15830 cat - <<_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'
15840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841 (eval $ac_try) 2>&5
15842 ac_status=$?
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
15846 (eval $ac_try) 2>&5
15847 ac_status=$?
15848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }; }; then
15850
15851 { $as_echo "$as_me:$LINENO: result: yes" >&5
15852 $as_echo "yes" >&6; }
15853
15854 cat >>confdefs.h <<\_ACEOF
15855 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
15856 _ACEOF
15857
15858
15859 else
15860 $as_echo "$as_me: failed program was:" >&5
15861 sed 's/^/| /' conftest.$ac_ext >&5
15862
15863 { $as_echo "$as_me:$LINENO: result: no" >&5
15864 $as_echo "no" >&6; }
15865
15866
15867
15868 fi
15869
15870 rm -Rf build
15871
15872
15873 EXTRA_KCFLAGS="$tmp_flags"
15874
15875
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}"
15880
15881
15882 cat confdefs.h - <<_ACEOF >conftest.c
15883 /* confdefs.h. */
15884 _ACEOF
15885 cat confdefs.h >>conftest.$ac_ext
15886 cat >>conftest.$ac_ext <<_ACEOF
15887 /* end confdefs.h. */
15888
15889
15890 #include <linux/blkdev.h>
15891
15892 int
15893 main (void)
15894 {
15895
15896 struct block_device *bdev = NULL;
15897 bdev_physical_block_size(bdev);
15898
15899 ;
15900 return 0;
15901 }
15902
15903 _ACEOF
15904
15905
15906
15907 cat - <<_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'
15917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15918 (eval $ac_try) 2>&5
15919 ac_status=$?
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
15923 (eval $ac_try) 2>&5
15924 ac_status=$?
15925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15927
15928 { $as_echo "$as_me:$LINENO: result: yes" >&5
15929 $as_echo "yes" >&6; }
15930
15931 cat >>confdefs.h <<\_ACEOF
15932 #define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1
15933 _ACEOF
15934
15935
15936 else
15937 $as_echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15939
15940 { $as_echo "$as_me:$LINENO: result: no" >&5
15941 $as_echo "no" >&6; }
15942
15943
15944
15945 fi
15946
15947 rm -Rf build
15948
15949
15950 EXTRA_KCFLAGS="$tmp_flags"
15951
15952
15953 { $as_echo "$as_me:$LINENO: checking whether bio has bi_iter" >&5
15954 $as_echo_n "checking whether bio has bi_iter... " >&6; }
15955
15956
15957 cat confdefs.h - <<_ACEOF >conftest.c
15958 /* confdefs.h. */
15959 _ACEOF
15960 cat confdefs.h >>conftest.$ac_ext
15961 cat >>conftest.$ac_ext <<_ACEOF
15962 /* end confdefs.h. */
15963
15964
15965 #include <linux/bio.h>
15966
15967 int
15968 main (void)
15969 {
15970
15971 struct bio bio;
15972 bio.bi_iter.bi_sector = 0;
15973
15974 ;
15975 return 0;
15976 }
15977
15978 _ACEOF
15979
15980
15981
15982 cat - <<_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'
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15994 ac_status=$?
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
15998 (eval $ac_try) 2>&5
15999 ac_status=$?
16000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); }; }; then
16002
16003 { $as_echo "$as_me:$LINENO: result: yes" >&5
16004 $as_echo "yes" >&6; }
16005
16006 cat >>confdefs.h <<\_ACEOF
16007 #define HAVE_BIO_BVEC_ITER 1
16008 _ACEOF
16009
16010
16011 else
16012 $as_echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16014
16015 { $as_echo "$as_me:$LINENO: result: no" >&5
16016 $as_echo "no" >&6; }
16017
16018
16019
16020 fi
16021
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
16031 cat confdefs.h - <<_ACEOF >conftest.c
16032 /* confdefs.h. */
16033 _ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h. */
16037
16038
16039 #include <linux/bio.h>
16040
16041 int
16042 main (void)
16043 {
16044
16045 int flags __attribute__ ((unused));
16046 flags = ((1 << BIO_RW_FAILFAST_DEV) |
16047 (1 << BIO_RW_FAILFAST_TRANSPORT) |
16048 (1 << BIO_RW_FAILFAST_DRIVER));
16049
16050 ;
16051 return 0;
16052 }
16053
16054 _ACEOF
16055
16056
16057
16058 cat - <<_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'
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16070 ac_status=$?
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
16074 (eval $ac_try) 2>&5
16075 ac_status=$?
16076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; }; then
16078
16079 { $as_echo "$as_me:$LINENO: result: yes" >&5
16080 $as_echo "yes" >&6; }
16081
16082 cat >>confdefs.h <<\_ACEOF
16083 #define HAVE_BIO_RW_FAILFAST_DTD 1
16084 _ACEOF
16085
16086
16087 else
16088 $as_echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16090
16091 { $as_echo "$as_me:$LINENO: result: no" >&5
16092 $as_echo "no" >&6; }
16093
16094
16095
16096 fi
16097
16098 rm -Rf build
16099
16100
16101
16102
16103 { $as_echo "$as_me:$LINENO: checking whether bio_set_dev() exists" >&5
16104 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
16105
16106
16107 cat confdefs.h - <<_ACEOF >conftest.c
16108 /* confdefs.h. */
16109 _ACEOF
16110 cat confdefs.h >>conftest.$ac_ext
16111 cat >>conftest.$ac_ext <<_ACEOF
16112 /* end confdefs.h. */
16113
16114
16115 #include <linux/bio.h>
16116 #include <linux/fs.h>
16117
16118 int
16119 main (void)
16120 {
16121
16122 struct block_device *bdev = NULL;
16123 struct bio *bio = NULL;
16124 bio_set_dev(bio, bdev);
16125
16126 ;
16127 return 0;
16128 }
16129
16130 _ACEOF
16131
16132
16133
16134 cat - <<_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'
16144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16145 (eval $ac_try) 2>&5
16146 ac_status=$?
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
16150 (eval $ac_try) 2>&5
16151 ac_status=$?
16152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154
16155 { $as_echo "$as_me:$LINENO: result: yes" >&5
16156 $as_echo "yes" >&6; }
16157
16158 cat >>confdefs.h <<\_ACEOF
16159 #define HAVE_BIO_SET_DEV 1
16160 _ACEOF
16161
16162
16163 else
16164 $as_echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16166
16167 { $as_echo "$as_me:$LINENO: result: no" >&5
16168 $as_echo "no" >&6; }
16169
16170
16171
16172 fi
16173
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
16183 cat confdefs.h - <<_ACEOF >conftest.c
16184 /* confdefs.h. */
16185 _ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16189
16190
16191 #include <linux/bio.h>
16192
16193 int
16194 main (void)
16195 {
16196
16197 int flags __attribute__ ((unused));
16198 flags = REQ_FAILFAST_MASK;
16199
16200 ;
16201 return 0;
16202 }
16203
16204 _ACEOF
16205
16206
16207
16208 cat - <<_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'
16218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16219 (eval $ac_try) 2>&5
16220 ac_status=$?
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
16224 (eval $ac_try) 2>&5
16225 ac_status=$?
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
16232 cat >>confdefs.h <<\_ACEOF
16233 #define HAVE_REQ_FAILFAST_MASK 1
16234 _ACEOF
16235
16236
16237 else
16238 $as_echo "$as_me: failed program was:" >&5
16239 sed 's/^/| /' conftest.$ac_ext >&5
16240
16241 { $as_echo "$as_me:$LINENO: result: no" >&5
16242 $as_echo "no" >&6; }
16243
16244
16245
16246 fi
16247
16248 rm -Rf build
16249
16250
16251
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
16257 cat confdefs.h - <<_ACEOF >conftest.c
16258 /* confdefs.h. */
16259 _ACEOF
16260 cat confdefs.h >>conftest.$ac_ext
16261 cat >>conftest.$ac_ext <<_ACEOF
16262 /* end confdefs.h. */
16263
16264
16265 #include <linux/blk_types.h>
16266
16267 int
16268 main (void)
16269 {
16270
16271 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
16272
16273 ;
16274 return 0;
16275 }
16276
16277 _ACEOF
16278
16279
16280
16281 cat - <<_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
16305 cat >>confdefs.h <<\_ACEOF
16306 #define HAVE_REQ_OP_DISCARD 1
16307 _ACEOF
16308
16309
16310 else
16311 $as_echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16313
16314 { $as_echo "$as_me:$LINENO: result: no" >&5
16315 $as_echo "no" >&6; }
16316
16317
16318
16319 fi
16320
16321 rm -Rf build
16322
16323
16324
16325
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; }
16328
16329
16330 cat confdefs.h - <<_ACEOF >conftest.c
16331 /* confdefs.h. */
16332 _ACEOF
16333 cat confdefs.h >>conftest.$ac_ext
16334 cat >>conftest.$ac_ext <<_ACEOF
16335 /* end confdefs.h. */
16336
16337
16338 #include <linux/blk_types.h>
16339
16340 int
16341 main (void)
16342 {
16343
16344 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
16345
16346 ;
16347 return 0;
16348 }
16349
16350 _ACEOF
16351
16352
16353
16354 cat - <<_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'
16364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16365 (eval $ac_try) 2>&5
16366 ac_status=$?
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
16370 (eval $ac_try) 2>&5
16371 ac_status=$?
16372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; }; then
16374
16375 { $as_echo "$as_me:$LINENO: result: yes" >&5
16376 $as_echo "yes" >&6; }
16377
16378 cat >>confdefs.h <<\_ACEOF
16379 #define HAVE_REQ_OP_SECURE_ERASE 1
16380 _ACEOF
16381
16382
16383 else
16384 $as_echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16386
16387 { $as_echo "$as_me:$LINENO: result: no" >&5
16388 $as_echo "no" >&6; }
16389
16390
16391
16392 fi
16393
16394 rm -Rf build
16395
16396
16397
16398
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; }
16401
16402
16403 cat confdefs.h - <<_ACEOF >conftest.c
16404 /* confdefs.h. */
16405 _ACEOF
16406 cat confdefs.h >>conftest.$ac_ext
16407 cat >>conftest.$ac_ext <<_ACEOF
16408 /* end confdefs.h. */
16409
16410
16411 #include <linux/blk_types.h>
16412
16413 int
16414 main (void)
16415 {
16416
16417 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
16418
16419 ;
16420 return 0;
16421 }
16422
16423 _ACEOF
16424
16425
16426
16427 cat - <<_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'
16437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16438 (eval $ac_try) 2>&5
16439 ac_status=$?
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
16443 (eval $ac_try) 2>&5
16444 ac_status=$?
16445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; }; then
16447
16448 { $as_echo "$as_me:$LINENO: result: yes" >&5
16449 $as_echo "yes" >&6; }
16450
16451 cat >>confdefs.h <<\_ACEOF
16452 #define HAVE_REQ_OP_FLUSH 1
16453 _ACEOF
16454
16455
16456 else
16457 $as_echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16459
16460 { $as_echo "$as_me:$LINENO: result: no" >&5
16461 $as_echo "no" >&6; }
16462
16463
16464
16465 fi
16466
16467 rm -Rf build
16468
16469
16470
16471
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; }
16474
16475
16476 cat confdefs.h - <<_ACEOF >conftest.c
16477 /* confdefs.h. */
16478 _ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16482
16483
16484 #include <linux/bio.h>
16485
16486 int
16487 main (void)
16488 {
16489
16490 struct bio bio __attribute__ ((unused));
16491 bio.bi_opf = 0;
16492
16493 ;
16494 return 0;
16495 }
16496
16497 _ACEOF
16498
16499
16500
16501 cat - <<_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'
16511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512 (eval $ac_try) 2>&5
16513 ac_status=$?
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
16517 (eval $ac_try) 2>&5
16518 ac_status=$?
16519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; }; then
16521
16522 { $as_echo "$as_me:$LINENO: result: yes" >&5
16523 $as_echo "yes" >&6; }
16524
16525 cat >>confdefs.h <<\_ACEOF
16526 #define HAVE_BIO_BI_OPF 1
16527 _ACEOF
16528
16529
16530 else
16531 $as_echo "$as_me: failed program was:" >&5
16532 sed 's/^/| /' conftest.$ac_ext >&5
16533
16534 { $as_echo "$as_me:$LINENO: result: no" >&5
16535 $as_echo "no" >&6; }
16536
16537
16538
16539 fi
16540
16541 rm -Rf build
16542
16543
16544
16545
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; }
16548
16549
16550 cat confdefs.h - <<_ACEOF >conftest.c
16551 /* confdefs.h. */
16552 _ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16556
16557
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;
16563
16564 int
16565 main (void)
16566 {
16567
16568
16569 ;
16570 return 0;
16571 }
16572
16573 _ACEOF
16574
16575
16576
16577 cat - <<_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'
16587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16588 (eval $ac_try) 2>&5
16589 ac_status=$?
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
16593 (eval $ac_try) 2>&5
16594 ac_status=$?
16595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; }; then
16597
16598 { $as_echo "$as_me:$LINENO: result: yes" >&5
16599 $as_echo "yes" >&6; }
16600
16601 cat >>confdefs.h <<\_ACEOF
16602 #define HAVE_1ARG_BIO_END_IO_T 1
16603 _ACEOF
16604
16605
16606 else
16607 $as_echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16609
16610 { $as_echo "$as_me:$LINENO: result: no" >&5
16611 $as_echo "no" >&6; }
16612
16613
16614
16615 fi
16616
16617 rm -Rf build
16618
16619
16620
16621
16622 { $as_echo "$as_me:$LINENO: checking whether bio->bi_status exists" >&5
16623 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
16624
16625
16626 cat confdefs.h - <<_ACEOF >conftest.c
16627 /* confdefs.h. */
16628 _ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h. */
16632
16633
16634 #include <linux/bio.h>
16635
16636 int
16637 main (void)
16638 {
16639
16640 struct bio bio __attribute__ ((unused));
16641 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
16642
16643 bio.bi_status = status;
16644
16645 ;
16646 return 0;
16647 }
16648
16649 _ACEOF
16650
16651
16652
16653 cat - <<_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'
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16665 ac_status=$?
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
16669 (eval $ac_try) 2>&5
16670 ac_status=$?
16671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }; then
16673
16674 { $as_echo "$as_me:$LINENO: result: yes" >&5
16675 $as_echo "yes" >&6; }
16676
16677 cat >>confdefs.h <<\_ACEOF
16678 #define HAVE_BIO_BI_STATUS 1
16679 _ACEOF
16680
16681
16682 else
16683 $as_echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16685
16686 { $as_echo "$as_me:$LINENO: result: no" >&5
16687 $as_echo "no" >&6; }
16688
16689
16690
16691 fi
16692
16693 rm -Rf build
16694
16695
16696
16697
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; }
16700
16701
16702 cat confdefs.h - <<_ACEOF >conftest.c
16703 /* confdefs.h. */
16704 _ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h. */
16708
16709
16710 #include <linux/bio.h>
16711
16712 int
16713 main (void)
16714 {
16715
16716 int flags __attribute__ ((unused));
16717 flags = BIO_RW_BARRIER;
16718
16719 ;
16720 return 0;
16721 }
16722
16723 _ACEOF
16724
16725
16726
16727 cat - <<_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'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16739 ac_status=$?
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
16743 (eval $ac_try) 2>&5
16744 ac_status=$?
16745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747
16748 { $as_echo "$as_me:$LINENO: result: yes" >&5
16749 $as_echo "yes" >&6; }
16750
16751 cat >>confdefs.h <<\_ACEOF
16752 #define HAVE_BIO_RW_BARRIER 1
16753 _ACEOF
16754
16755
16756 else
16757 $as_echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16759
16760 { $as_echo "$as_me:$LINENO: result: no" >&5
16761 $as_echo "no" >&6; }
16762
16763
16764
16765 fi
16766
16767 rm -Rf build
16768
16769
16770
16771
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; }
16774
16775
16776 cat confdefs.h - <<_ACEOF >conftest.c
16777 /* confdefs.h. */
16778 _ACEOF
16779 cat confdefs.h >>conftest.$ac_ext
16780 cat >>conftest.$ac_ext <<_ACEOF
16781 /* end confdefs.h. */
16782
16783
16784 #include <linux/bio.h>
16785
16786 int
16787 main (void)
16788 {
16789
16790 int flags __attribute__ ((unused));
16791 flags = BIO_RW_DISCARD;
16792
16793 ;
16794 return 0;
16795 }
16796
16797 _ACEOF
16798
16799
16800
16801 cat - <<_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'
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16813 ac_status=$?
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
16817 (eval $ac_try) 2>&5
16818 ac_status=$?
16819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; }; then
16821
16822 { $as_echo "$as_me:$LINENO: result: yes" >&5
16823 $as_echo "yes" >&6; }
16824
16825 cat >>confdefs.h <<\_ACEOF
16826 #define HAVE_BIO_RW_DISCARD 1
16827 _ACEOF
16828
16829
16830 else
16831 $as_echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16833
16834 { $as_echo "$as_me:$LINENO: result: no" >&5
16835 $as_echo "no" >&6; }
16836
16837
16838
16839 fi
16840
16841 rm -Rf build
16842
16843
16844
16845
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; }
16848
16849
16850 cat confdefs.h - <<_ACEOF >conftest.c
16851 /* confdefs.h. */
16852 _ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16856
16857
16858 #include <linux/blkdev.h>
16859
16860 int
16861 main (void)
16862 {
16863
16864 struct request_queue q;
16865 struct backing_dev_info bdi;
16866 q.backing_dev_info = &bdi;
16867
16868 ;
16869 return 0;
16870 }
16871
16872 _ACEOF
16873
16874
16875
16876 cat - <<_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'
16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887 (eval $ac_try) 2>&5
16888 ac_status=$?
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
16892 (eval $ac_try) 2>&5
16893 ac_status=$?
16894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; }; then
16896
16897 { $as_echo "$as_me:$LINENO: result: yes" >&5
16898 $as_echo "yes" >&6; }
16899
16900 cat >>confdefs.h <<\_ACEOF
16901 #define HAVE_BLK_QUEUE_BDI_DYNAMIC 1
16902 _ACEOF
16903
16904
16905 else
16906 $as_echo "$as_me: failed program was:" >&5
16907 sed 's/^/| /' conftest.$ac_ext >&5
16908
16909 { $as_echo "$as_me:$LINENO: result: no" >&5
16910 $as_echo "no" >&6; }
16911
16912
16913
16914 fi
16915
16916 rm -Rf build
16917
16918
16919
16920
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}"
16925
16926
16927 cat confdefs.h - <<_ACEOF >conftest.c
16928 /* confdefs.h. */
16929 _ACEOF
16930 cat confdefs.h >>conftest.$ac_ext
16931 cat >>conftest.$ac_ext <<_ACEOF
16932 /* end confdefs.h. */
16933
16934
16935 #include <linux/blkdev.h>
16936
16937 int
16938 main (void)
16939 {
16940
16941 struct request_queue *q = NULL;
16942 (void) blk_queue_flush(q, REQ_FLUSH);
16943
16944 ;
16945 return 0;
16946 }
16947
16948 _ACEOF
16949
16950
16951
16952 cat - <<_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'
16962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963 (eval $ac_try) 2>&5
16964 ac_status=$?
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
16968 (eval $ac_try) 2>&5
16969 ac_status=$?
16970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); }; }; then
16972
16973 { $as_echo "$as_me:$LINENO: result: yes" >&5
16974 $as_echo "yes" >&6; }
16975
16976 cat >>confdefs.h <<\_ACEOF
16977 #define HAVE_BLK_QUEUE_FLUSH 1
16978 _ACEOF
16979
16980
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; }
16983
16984
16985 cat confdefs.h - <<_ACEOF >conftest.c
16986 /* confdefs.h. */
16987 _ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h. */
16991
16992
16993 #include <linux/module.h>
16994 #include <linux/blkdev.h>
16995
16996 MODULE_LICENSE("$ZFS_META_LICENSE");
16997
16998 int
16999 main (void)
17000 {
17001
17002 struct request_queue *q = NULL;
17003 (void) blk_queue_flush(q, REQ_FLUSH);
17004
17005 ;
17006 return 0;
17007 }
17008
17009 _ACEOF
17010
17011
17012
17013 cat - <<_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'
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17025 ac_status=$?
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
17029 (eval $ac_try) 2>&5
17030 ac_status=$?
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
17037 else
17038 $as_echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17040
17041 { $as_echo "$as_me:$LINENO: result: yes" >&5
17042 $as_echo "yes" >&6; }
17043
17044 cat >>confdefs.h <<\_ACEOF
17045 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
17046 _ACEOF
17047
17048
17049
17050
17051 fi
17052
17053 rm -Rf build
17054
17055
17056
17057 else
17058 $as_echo "$as_me: failed program was:" >&5
17059 sed 's/^/| /' conftest.$ac_ext >&5
17060
17061 { $as_echo "$as_me:$LINENO: result: no" >&5
17062 $as_echo "no" >&6; }
17063
17064
17065
17066 fi
17067
17068 rm -Rf build
17069
17070
17071
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; }
17074
17075
17076 cat confdefs.h - <<_ACEOF >conftest.c
17077 /* confdefs.h. */
17078 _ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17082
17083
17084 #include <linux/kernel.h>
17085 #include <linux/blkdev.h>
17086
17087
17088 int
17089 main (void)
17090 {
17091
17092 struct request_queue *q = NULL;
17093 blk_queue_write_cache(q, true, true);
17094
17095 ;
17096 return 0;
17097 }
17098
17099 _ACEOF
17100
17101
17102
17103 cat - <<_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'
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17115 ac_status=$?
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
17119 (eval $ac_try) 2>&5
17120 ac_status=$?
17121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; }; then
17123
17124 { $as_echo "$as_me:$LINENO: result: yes" >&5
17125 $as_echo "yes" >&6; }
17126
17127 cat >>confdefs.h <<\_ACEOF
17128 #define HAVE_BLK_QUEUE_WRITE_CACHE 1
17129 _ACEOF
17130
17131
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; }
17134
17135
17136 cat confdefs.h - <<_ACEOF >conftest.c
17137 /* confdefs.h. */
17138 _ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17142
17143
17144 #include <linux/kernel.h>
17145 #include <linux/module.h>
17146 #include <linux/blkdev.h>
17147
17148 MODULE_LICENSE("$ZFS_META_LICENSE");
17149
17150 int
17151 main (void)
17152 {
17153
17154 struct request_queue *q = NULL;
17155 blk_queue_write_cache(q, true, true);
17156
17157 ;
17158 return 0;
17159 }
17160
17161 _ACEOF
17162
17163
17164
17165 cat - <<_ACEOF >conftest.h
17166
17167 _ACEOF
17168
17169
17170 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17171 echo "obj-m := conftest.o" >build/Makefile
17172 modpost_flag=''
17173 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17174 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17176 (eval $ac_try) 2>&5
17177 ac_status=$?
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
17181 (eval $ac_try) 2>&5
17182 ac_status=$?
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
17189 else
17190 $as_echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17192
17193 { $as_echo "$as_me:$LINENO: result: yes" >&5
17194 $as_echo "yes" >&6; }
17195
17196 cat >>confdefs.h <<\_ACEOF
17197 #define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1
17198 _ACEOF
17199
17200
17201
17202
17203 fi
17204
17205 rm -Rf build
17206
17207
17208
17209 else
17210 $as_echo "$as_me: failed program was:" >&5
17211 sed 's/^/| /' conftest.$ac_ext >&5
17212
17213 { $as_echo "$as_me:$LINENO: result: no" >&5
17214 $as_echo "no" >&6; }
17215
17216
17217
17218 fi
17219
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
17233 cat confdefs.h - <<_ACEOF >conftest.c
17234 /* confdefs.h. */
17235 _ACEOF
17236 cat confdefs.h >>conftest.$ac_ext
17237 cat >>conftest.$ac_ext <<_ACEOF
17238 /* end confdefs.h. */
17239
17240
17241 #include <linux/blkdev.h>
17242
17243 int
17244 main (void)
17245 {
17246
17247 struct request_queue *q = NULL;
17248 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
17249
17250 ;
17251 return 0;
17252 }
17253
17254 _ACEOF
17255
17256
17257
17258 cat - <<_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'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17270 ac_status=$?
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
17274 (eval $ac_try) 2>&5
17275 ac_status=$?
17276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; }; then
17278
17279 { $as_echo "$as_me:$LINENO: result: yes" >&5
17280 $as_echo "yes" >&6; }
17281
17282 cat >>confdefs.h <<\_ACEOF
17283 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
17284 _ACEOF
17285
17286
17287 else
17288 $as_echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17290
17291 { $as_echo "$as_me:$LINENO: result: no" >&5
17292 $as_echo "no" >&6; }
17293
17294
17295
17296 fi
17297
17298 rm -Rf build
17299
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
17310 cat confdefs.h - <<_ACEOF >conftest.c
17311 /* confdefs.h. */
17312 _ACEOF
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h. */
17316
17317
17318 #include <linux/blkdev.h>
17319
17320 int
17321 main (void)
17322 {
17323
17324 struct request_queue *q = NULL;
17325 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
17326
17327 ;
17328 return 0;
17329 }
17330
17331 _ACEOF
17332
17333
17334
17335 cat - <<_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'
17345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346 (eval $ac_try) 2>&5
17347 ac_status=$?
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
17351 (eval $ac_try) 2>&5
17352 ac_status=$?
17353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
17355
17356 { $as_echo "$as_me:$LINENO: result: yes" >&5
17357 $as_echo "yes" >&6; }
17358
17359 cat >>confdefs.h <<\_ACEOF
17360 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
17361 _ACEOF
17362
17363
17364 else
17365 $as_echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17367
17368 { $as_echo "$as_me:$LINENO: result: no" >&5
17369 $as_echo "no" >&6; }
17370
17371
17372
17373 fi
17374
17375 rm -Rf build
17376
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
17387 cat confdefs.h - <<_ACEOF >conftest.c
17388 /* confdefs.h. */
17389 _ACEOF
17390 cat confdefs.h >>conftest.$ac_ext
17391 cat >>conftest.$ac_ext <<_ACEOF
17392 /* end confdefs.h. */
17393
17394
17395 #include <linux/blkdev.h>
17396
17397 int
17398 main (void)
17399 {
17400
17401 extern enum bio_rw_flags rw;
17402
17403 rw = BIO_RW_UNPLUG;
17404
17405 ;
17406 return 0;
17407 }
17408
17409 _ACEOF
17410
17411
17412
17413 cat - <<_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'
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17425 ac_status=$?
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
17429 (eval $ac_try) 2>&5
17430 ac_status=$?
17431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; }; then
17433
17434 { $as_echo "$as_me:$LINENO: result: yes" >&5
17435 $as_echo "yes" >&6; }
17436
17437 cat >>confdefs.h <<\_ACEOF
17438 #define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1
17439 _ACEOF
17440
17441
17442 else
17443 $as_echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17445
17446 { $as_echo "$as_me:$LINENO: result: no" >&5
17447 $as_echo "no" >&6; }
17448
17449
17450
17451 fi
17452
17453 rm -Rf build
17454
17455
17456 EXTRA_KCFLAGS="$tmp_flags"
17457
17458
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}"
17463
17464
17465 cat confdefs.h - <<_ACEOF >conftest.c
17466 /* confdefs.h. */
17467 _ACEOF
17468 cat confdefs.h >>conftest.$ac_ext
17469 cat >>conftest.$ac_ext <<_ACEOF
17470 /* end confdefs.h. */
17471
17472
17473 #include <linux/blkdev.h>
17474
17475 int
17476 main (void)
17477 {
17478
17479 struct blk_plug plug;
17480
17481 blk_start_plug(&plug);
17482 blk_finish_plug(&plug);
17483
17484 ;
17485 return 0;
17486 }
17487
17488 _ACEOF
17489
17490
17491
17492 cat - <<_ACEOF >conftest.h
17493
17494 _ACEOF
17495
17496
17497 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17498 echo "obj-m := conftest.o" >build/Makefile
17499 modpost_flag=''
17500 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17501 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17504 ac_status=$?
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
17508 (eval $ac_try) 2>&5
17509 ac_status=$?
17510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; }; then
17512
17513 { $as_echo "$as_me:$LINENO: result: yes" >&5
17514 $as_echo "yes" >&6; }
17515
17516 cat >>confdefs.h <<\_ACEOF
17517 #define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1
17518 _ACEOF
17519
17520
17521 else
17522 $as_echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17524
17525 { $as_echo "$as_me:$LINENO: result: no" >&5
17526 $as_echo "no" >&6; }
17527
17528
17529
17530 fi
17531
17532 rm -Rf build
17533
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
17544 cat confdefs.h - <<_ACEOF >conftest.c
17545 /* confdefs.h. */
17546 _ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17550
17551
17552 #include <linux/blkdev.h>
17553
17554 int
17555 main (void)
17556 {
17557
17558 struct gendisk *disk = NULL;
17559 (void) get_disk_ro(disk);
17560
17561 ;
17562 return 0;
17563 }
17564
17565 _ACEOF
17566
17567
17568
17569 cat - <<_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'
17579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17580 (eval $ac_try) 2>&5
17581 ac_status=$?
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
17585 (eval $ac_try) 2>&5
17586 ac_status=$?
17587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; }; then
17589
17590 { $as_echo "$as_me:$LINENO: result: yes" >&5
17591 $as_echo "yes" >&6; }
17592
17593 cat >>confdefs.h <<\_ACEOF
17594 #define HAVE_GET_DISK_RO 1
17595 _ACEOF
17596
17597
17598 else
17599 $as_echo "$as_me: failed program was:" >&5
17600 sed 's/^/| /' conftest.$ac_ext >&5
17601
17602 { $as_echo "$as_me:$LINENO: result: no" >&5
17603 $as_echo "no" >&6; }
17604
17605
17606
17607 fi
17608
17609 rm -Rf build
17610
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
17619 cat confdefs.h - <<_ACEOF >conftest.c
17620 /* confdefs.h. */
17621 _ACEOF
17622 cat confdefs.h >>conftest.$ac_ext
17623 cat >>conftest.$ac_ext <<_ACEOF
17624 /* end confdefs.h. */
17625
17626
17627 #include <linux/genhd.h>
17628
17629 int
17630 main (void)
17631 {
17632
17633 get_gendisk(0, NULL);
17634
17635 ;
17636 return 0;
17637 }
17638
17639 _ACEOF
17640
17641
17642
17643 cat - <<_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'
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17655 ac_status=$?
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
17659 (eval $ac_try) 2>&5
17660 ac_status=$?
17661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
17663 rc=0
17664 else
17665 $as_echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17667 rc=1
17668
17669
17670 fi
17671
17672 rm -Rf build
17673
17674
17675 if test $rc -ne 0; then :
17676
17677 { $as_echo "$as_me:$LINENO: result: no" >&5
17678 $as_echo "no" >&6; }
17679
17680 else
17681 if test "x$enable_linux_builtin" != xyes; then
17682
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
17705
17706 fi
17707 if test $rc -ne 0; then :
17708
17709 { $as_echo "$as_me:$LINENO: result: no" >&5
17710 $as_echo "no" >&6; }
17711
17712 else :
17713
17714 { $as_echo "$as_me:$LINENO: result: yes" >&5
17715 $as_echo "yes" >&6; }
17716
17717 cat >>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
17731 cat confdefs.h - <<_ACEOF >conftest.c
17732 /* confdefs.h. */
17733 _ACEOF
17734 cat confdefs.h >>conftest.$ac_ext
17735 cat >>conftest.$ac_ext <<_ACEOF
17736 /* end confdefs.h. */
17737
17738
17739 #include <linux/bio.h>
17740
17741 int
17742 main (void)
17743 {
17744
17745 struct bio *bio __attribute__ ((unused)) = NULL;
17746
17747 bio_set_op_attrs(bio, 0, 0);
17748
17749 ;
17750 return 0;
17751 }
17752
17753 _ACEOF
17754
17755
17756
17757 cat - <<_ACEOF >conftest.h
17758
17759 _ACEOF
17760
17761
17762 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17763 echo "obj-m := conftest.o" >build/Makefile
17764 modpost_flag=''
17765 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17766 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17769 ac_status=$?
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
17773 (eval $ac_try) 2>&5
17774 ac_status=$?
17775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; }; then
17777
17778 { $as_echo "$as_me:$LINENO: result: yes" >&5
17779 $as_echo "yes" >&6; }
17780
17781 cat >>confdefs.h <<\_ACEOF
17782 #define HAVE_BIO_SET_OP_ATTRS 1
17783 _ACEOF
17784
17785
17786 else
17787 $as_echo "$as_me: failed program was:" >&5
17788 sed 's/^/| /' conftest.$ac_ext >&5
17789
17790 { $as_echo "$as_me:$LINENO: result: no" >&5
17791 $as_echo "no" >&6; }
17792
17793
17794
17795 fi
17796
17797 rm -Rf build
17798
17799
17800
17801
17802 { $as_echo "$as_me:$LINENO: checking whether generic_readlink is global" >&5
17803 $as_echo_n "checking whether generic_readlink is global... " >&6; }
17804
17805
17806 cat confdefs.h - <<_ACEOF >conftest.c
17807 /* confdefs.h. */
17808 _ACEOF
17809 cat confdefs.h >>conftest.$ac_ext
17810 cat >>conftest.$ac_ext <<_ACEOF
17811 /* end confdefs.h. */
17812
17813
17814 #include <linux/fs.h>
17815
17816 int
17817 main (void)
17818 {
17819
17820 int i __attribute__ ((unused));
17821
17822 i = generic_readlink(NULL, NULL, 0);
17823
17824 ;
17825 return 0;
17826 }
17827
17828 _ACEOF
17829
17830
17831
17832 cat - <<_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'
17842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843 (eval $ac_try) 2>&5
17844 ac_status=$?
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
17848 (eval $ac_try) 2>&5
17849 ac_status=$?
17850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; }; then
17852
17853 { $as_echo "$as_me:$LINENO: result: yes" >&5
17854 $as_echo "yes" >&6; }
17855
17856 cat >>confdefs.h <<\_ACEOF
17857 #define HAVE_GENERIC_READLINK 1
17858 _ACEOF
17859
17860
17861 else
17862 $as_echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17864
17865 { $as_echo "$as_me:$LINENO: result: no" >&5
17866 $as_echo "no" >&6; }
17867
17868
17869
17870 fi
17871
17872 rm -Rf build
17873
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
17881 cat confdefs.h - <<_ACEOF >conftest.c
17882 /* confdefs.h. */
17883 _ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h. */
17887
17888
17889 #include <linux/blkdev.h>
17890
17891 int
17892 main (void)
17893 {
17894
17895 struct queue_limits ql __attribute__ ((unused));
17896
17897 ql.discard_granularity = 0;
17898
17899 ;
17900 return 0;
17901 }
17902
17903 _ACEOF
17904
17905
17906
17907 cat - <<_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'
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17919 ac_status=$?
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
17923 (eval $ac_try) 2>&5
17924 ac_status=$?
17925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; }; then
17927
17928 { $as_echo "$as_me:$LINENO: result: yes" >&5
17929 $as_echo "yes" >&6; }
17930
17931 cat >>confdefs.h <<\_ACEOF
17932 #define HAVE_DISCARD_GRANULARITY 1
17933 _ACEOF
17934
17935
17936 else
17937 $as_echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17939
17940 { $as_echo "$as_me:$LINENO: result: no" >&5
17941 $as_echo "no" >&6; }
17942
17943
17944
17945 fi
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; }
17954
17955
17956 cat confdefs.h - <<_ACEOF >conftest.c
17957 /* confdefs.h. */
17958 _ACEOF
17959 cat confdefs.h >>conftest.$ac_ext
17960 cat >>conftest.$ac_ext <<_ACEOF
17961 /* end confdefs.h. */
17962
17963
17964 #include <linux/fs.h>
17965 #include <linux/xattr.h>
17966
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 };
17980
17981 int
17982 main (void)
17983 {
17984
17985
17986 ;
17987 return 0;
17988 }
17989
17990 _ACEOF
17991
17992
17993
17994 cat - <<_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'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18006 ac_status=$?
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
18010 (eval $ac_try) 2>&5
18011 ac_status=$?
18012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; }; then
18014
18015 { $as_echo "$as_me:$LINENO: result: yes" >&5
18016 $as_echo "yes" >&6; }
18017
18018 cat >>confdefs.h <<\_ACEOF
18019 #define HAVE_CONST_XATTR_HANDLER 1
18020 _ACEOF
18021
18022
18023 else
18024 $as_echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18026
18027 { $as_echo "$as_me:$LINENO: result: no" >&5
18028 $as_echo "no" >&6; }
18029
18030
18031
18032 fi
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; }
18041
18042
18043 cat confdefs.h - <<_ACEOF >conftest.c
18044 /* confdefs.h. */
18045 _ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18049
18050
18051 #include <linux/xattr.h>
18052
18053 static const struct xattr_handler
18054 xops __attribute__ ((unused)) = {
18055 .name = XATTR_NAME_POSIX_ACL_ACCESS,
18056 };
18057
18058 int
18059 main (void)
18060 {
18061
18062
18063 ;
18064 return 0;
18065 }
18066
18067 _ACEOF
18068
18069
18070
18071 cat - <<_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'
18081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18082 (eval $ac_try) 2>&5
18083 ac_status=$?
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
18087 (eval $ac_try) 2>&5
18088 ac_status=$?
18089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; }; then
18091
18092 { $as_echo "$as_me:$LINENO: result: yes" >&5
18093 $as_echo "yes" >&6; }
18094
18095 cat >>confdefs.h <<\_ACEOF
18096 #define HAVE_XATTR_HANDLER_NAME 1
18097 _ACEOF
18098
18099
18100 else
18101 $as_echo "$as_me: failed program was:" >&5
18102 sed 's/^/| /' conftest.$ac_ext >&5
18103
18104 { $as_echo "$as_me:$LINENO: result: no" >&5
18105 $as_echo "no" >&6; }
18106
18107
18108
18109 fi
18110
18111 rm -Rf build
18112
18113
18114
18115
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; }
18118
18119
18120 cat confdefs.h - <<_ACEOF >conftest.c
18121 /* confdefs.h. */
18122 _ACEOF
18123 cat confdefs.h >>conftest.$ac_ext
18124 cat >>conftest.$ac_ext <<_ACEOF
18125 /* end confdefs.h. */
18126
18127
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 };
18137
18138 int
18139 main (void)
18140 {
18141
18142
18143 ;
18144 return 0;
18145 }
18146
18147 _ACEOF
18148
18149
18150
18151 cat - <<_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'
18161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162 (eval $ac_try) 2>&5
18163 ac_status=$?
18164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18168 ac_status=$?
18169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; }; then
18171
18172 { $as_echo "$as_me:$LINENO: result: yes" >&5
18173 $as_echo "yes" >&6; }
18174
18175 cat >>confdefs.h <<\_ACEOF
18176 #define HAVE_XATTR_GET_DENTRY_INODE 1
18177 _ACEOF
18178
18179
18180 else
18181 $as_echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18183
18184 { $as_echo "$as_me:$LINENO: result: no" >&5
18185 $as_echo "no" >&6; }
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; }
18188
18189
18190 cat confdefs.h - <<_ACEOF >conftest.c
18191 /* confdefs.h. */
18192 _ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18196
18197
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 };
18207
18208 int
18209 main (void)
18210 {
18211
18212
18213 ;
18214 return 0;
18215 }
18216
18217 _ACEOF
18218
18219
18220
18221 cat - <<_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'
18231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18232 (eval $ac_try) 2>&5
18233 ac_status=$?
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
18237 (eval $ac_try) 2>&5
18238 ac_status=$?
18239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; }; then
18241
18242 { $as_echo "$as_me:$LINENO: result: yes" >&5
18243 $as_echo "yes" >&6; }
18244
18245 cat >>confdefs.h <<\_ACEOF
18246 #define HAVE_XATTR_GET_HANDLER 1
18247 _ACEOF
18248
18249
18250 else
18251 $as_echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18253
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; }
18258
18259
18260 cat confdefs.h - <<_ACEOF >conftest.c
18261 /* confdefs.h. */
18262 _ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18266
18267
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 };
18277
18278 int
18279 main (void)
18280 {
18281
18282
18283 ;
18284 return 0;
18285 }
18286
18287 _ACEOF
18288
18289
18290
18291 cat - <<_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'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18303 ac_status=$?
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
18307 (eval $ac_try) 2>&5
18308 ac_status=$?
18309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); }; }; then
18311
18312 { $as_echo "$as_me:$LINENO: result: yes" >&5
18313 $as_echo "yes" >&6; }
18314
18315 cat >>confdefs.h <<\_ACEOF
18316 #define HAVE_XATTR_GET_DENTRY 1
18317 _ACEOF
18318
18319
18320 else
18321 $as_echo "$as_me: failed program was:" >&5
18322 sed 's/^/| /' conftest.$ac_ext >&5
18323
18324 { $as_echo "$as_me:$LINENO: result: no" >&5
18325 $as_echo "no" >&6; }
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; }
18328
18329
18330 cat confdefs.h - <<_ACEOF >conftest.c
18331 /* confdefs.h. */
18332 _ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h. */
18336
18337
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 };
18346
18347 int
18348 main (void)
18349 {
18350
18351
18352 ;
18353 return 0;
18354 }
18355
18356 _ACEOF
18357
18358
18359
18360 cat - <<_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'
18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371 (eval $ac_try) 2>&5
18372 ac_status=$?
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
18376 (eval $ac_try) 2>&5
18377 ac_status=$?
18378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; }; then
18380
18381 { $as_echo "$as_me:$LINENO: result: yes" >&5
18382 $as_echo "yes" >&6; }
18383
18384 cat >>confdefs.h <<\_ACEOF
18385 #define HAVE_XATTR_GET_INODE 1
18386 _ACEOF
18387
18388
18389 else
18390 $as_echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18392
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; }; }
18396
18397
18398
18399 fi
18400
18401 rm -Rf build
18402
18403
18404
18405
18406
18407 fi
18408
18409 rm -Rf build
18410
18411
18412
18413
18414
18415 fi
18416
18417 rm -Rf build
18418
18419
18420
18421
18422
18423 fi
18424
18425 rm -Rf build
18426
18427
18428
18429
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; }
18432
18433
18434 cat confdefs.h - <<_ACEOF >conftest.c
18435 /* confdefs.h. */
18436 _ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h. */
18440
18441
18442 #include <linux/xattr.h>
18443
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 };
18453
18454 int
18455 main (void)
18456 {
18457
18458
18459 ;
18460 return 0;
18461 }
18462
18463 _ACEOF
18464
18465
18466
18467 cat - <<_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'
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18479 ac_status=$?
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
18483 (eval $ac_try) 2>&5
18484 ac_status=$?
18485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
18487
18488 { $as_echo "$as_me:$LINENO: result: yes" >&5
18489 $as_echo "yes" >&6; }
18490
18491 cat >>confdefs.h <<\_ACEOF
18492 #define HAVE_XATTR_SET_DENTRY_INODE 1
18493 _ACEOF
18494
18495
18496 else
18497 $as_echo "$as_me: failed program was:" >&5
18498 sed 's/^/| /' conftest.$ac_ext >&5
18499
18500 { $as_echo "$as_me:$LINENO: result: no" >&5
18501 $as_echo "no" >&6; }
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; }
18504
18505
18506 cat confdefs.h - <<_ACEOF >conftest.c
18507 /* confdefs.h. */
18508 _ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18512
18513
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 };
18524
18525 int
18526 main (void)
18527 {
18528
18529
18530 ;
18531 return 0;
18532 }
18533
18534 _ACEOF
18535
18536
18537
18538 cat - <<_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'
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18550 ac_status=$?
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
18554 (eval $ac_try) 2>&5
18555 ac_status=$?
18556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; }; then
18558
18559 { $as_echo "$as_me:$LINENO: result: yes" >&5
18560 $as_echo "yes" >&6; }
18561
18562 cat >>confdefs.h <<\_ACEOF
18563 #define HAVE_XATTR_SET_HANDLER 1
18564 _ACEOF
18565
18566
18567 else
18568 $as_echo "$as_me: failed program was:" >&5
18569 sed 's/^/| /' conftest.$ac_ext >&5
18570
18571 { $as_echo "$as_me:$LINENO: result: no" >&5
18572 $as_echo "no" >&6; }
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; }
18575
18576
18577 cat confdefs.h - <<_ACEOF >conftest.c
18578 /* confdefs.h. */
18579 _ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18583
18584
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 };
18594
18595 int
18596 main (void)
18597 {
18598
18599
18600 ;
18601 return 0;
18602 }
18603
18604 _ACEOF
18605
18606
18607
18608 cat - <<_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'
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18620 ac_status=$?
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
18624 (eval $ac_try) 2>&5
18625 ac_status=$?
18626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); }; }; then
18628
18629 { $as_echo "$as_me:$LINENO: result: yes" >&5
18630 $as_echo "yes" >&6; }
18631
18632 cat >>confdefs.h <<\_ACEOF
18633 #define HAVE_XATTR_SET_DENTRY 1
18634 _ACEOF
18635
18636
18637 else
18638 $as_echo "$as_me: failed program was:" >&5
18639 sed 's/^/| /' conftest.$ac_ext >&5
18640
18641 { $as_echo "$as_me:$LINENO: result: no" >&5
18642 $as_echo "no" >&6; }
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; }
18645
18646
18647 cat confdefs.h - <<_ACEOF >conftest.c
18648 /* confdefs.h. */
18649 _ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h. */
18653
18654
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 };
18664
18665 int
18666 main (void)
18667 {
18668
18669
18670 ;
18671 return 0;
18672 }
18673
18674 _ACEOF
18675
18676
18677
18678 cat - <<_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'
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18690 ac_status=$?
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
18694 (eval $ac_try) 2>&5
18695 ac_status=$?
18696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; }; then
18698
18699 { $as_echo "$as_me:$LINENO: result: yes" >&5
18700 $as_echo "yes" >&6; }
18701
18702 cat >>confdefs.h <<\_ACEOF
18703 #define HAVE_XATTR_SET_INODE 1
18704 _ACEOF
18705
18706
18707 else
18708 $as_echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18710
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; }; }
18714
18715
18716
18717 fi
18718
18719 rm -Rf build
18720
18721
18722
18723
18724
18725 fi
18726
18727 rm -Rf build
18728
18729
18730
18731
18732
18733 fi
18734
18735 rm -Rf build
18736
18737
18738
18739
18740
18741 fi
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; }
18750
18751
18752 cat confdefs.h - <<_ACEOF >conftest.c
18753 /* confdefs.h. */
18754 _ACEOF
18755 cat confdefs.h >>conftest.$ac_ext
18756 cat >>conftest.$ac_ext <<_ACEOF
18757 /* end confdefs.h. */
18758
18759
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 };
18767
18768 int
18769 main (void)
18770 {
18771
18772
18773 ;
18774 return 0;
18775 }
18776
18777 _ACEOF
18778
18779
18780
18781 cat - <<_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'
18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792 (eval $ac_try) 2>&5
18793 ac_status=$?
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
18797 (eval $ac_try) 2>&5
18798 ac_status=$?
18799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
18801
18802 { $as_echo "$as_me:$LINENO: result: yes" >&5
18803 $as_echo "yes" >&6; }
18804
18805 cat >>confdefs.h <<\_ACEOF
18806 #define HAVE_XATTR_LIST_SIMPLE 1
18807 _ACEOF
18808
18809
18810 else
18811 $as_echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18813
18814 { $as_echo "$as_me:$LINENO: result: no" >&5
18815 $as_echo "no" >&6; }
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; }
18818
18819
18820 cat confdefs.h - <<_ACEOF >conftest.c
18821 /* confdefs.h. */
18822 _ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h. */
18826
18827
18828 #include <linux/xattr.h>
18829
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 };
18837
18838 int
18839 main (void)
18840 {
18841
18842
18843 ;
18844 return 0;
18845 }
18846
18847 _ACEOF
18848
18849
18850
18851 cat - <<_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'
18861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862 (eval $ac_try) 2>&5
18863 ac_status=$?
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
18867 (eval $ac_try) 2>&5
18868 ac_status=$?
18869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; }; then
18871
18872 { $as_echo "$as_me:$LINENO: result: yes" >&5
18873 $as_echo "yes" >&6; }
18874
18875 cat >>confdefs.h <<\_ACEOF
18876 #define HAVE_XATTR_LIST_HANDLER 1
18877 _ACEOF
18878
18879
18880 else
18881 $as_echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18883
18884 { $as_echo "$as_me:$LINENO: result: no" >&5
18885 $as_echo "no" >&6; }
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; }
18888
18889
18890 cat confdefs.h - <<_ACEOF >conftest.c
18891 /* confdefs.h. */
18892 _ACEOF
18893 cat confdefs.h >>conftest.$ac_ext
18894 cat >>conftest.$ac_ext <<_ACEOF
18895 /* end confdefs.h. */
18896
18897
18898 #include <linux/xattr.h>
18899
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 };
18908
18909 int
18910 main (void)
18911 {
18912
18913
18914 ;
18915 return 0;
18916 }
18917
18918 _ACEOF
18919
18920
18921
18922 cat - <<_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'
18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18934 ac_status=$?
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
18938 (eval $ac_try) 2>&5
18939 ac_status=$?
18940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; }; then
18942
18943 { $as_echo "$as_me:$LINENO: result: yes" >&5
18944 $as_echo "yes" >&6; }
18945
18946 cat >>confdefs.h <<\_ACEOF
18947 #define HAVE_XATTR_LIST_DENTRY 1
18948 _ACEOF
18949
18950
18951 else
18952 $as_echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18954
18955 { $as_echo "$as_me:$LINENO: result: no" >&5
18956 $as_echo "no" >&6; }
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; }
18959
18960
18961 cat confdefs.h - <<_ACEOF >conftest.c
18962 /* confdefs.h. */
18963 _ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h. */
18967
18968
18969 #include <linux/xattr.h>
18970
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 };
18978
18979 int
18980 main (void)
18981 {
18982
18983
18984 ;
18985 return 0;
18986 }
18987
18988 _ACEOF
18989
18990
18991
18992 cat - <<_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'
19002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003 (eval $ac_try) 2>&5
19004 ac_status=$?
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
19008 (eval $ac_try) 2>&5
19009 ac_status=$?
19010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; }; then
19012
19013 { $as_echo "$as_me:$LINENO: result: yes" >&5
19014 $as_echo "yes" >&6; }
19015
19016 cat >>confdefs.h <<\_ACEOF
19017 #define HAVE_XATTR_LIST_INODE 1
19018 _ACEOF
19019
19020
19021 else
19022 $as_echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19024
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; }; }
19028
19029
19030
19031 fi
19032
19033 rm -Rf build
19034
19035
19036
19037
19038
19039 fi
19040
19041 rm -Rf build
19042
19043
19044
19045
19046
19047 fi
19048
19049 rm -Rf build
19050
19051
19052
19053
19054
19055 fi
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
19066 cat confdefs.h - <<_ACEOF >conftest.c
19067 /* confdefs.h. */
19068 _ACEOF
19069 cat confdefs.h >>conftest.$ac_ext
19070 cat >>conftest.$ac_ext <<_ACEOF
19071 /* end confdefs.h. */
19072
19073
19074 #include <linux/fs.h>
19075
19076 int
19077 main (void)
19078 {
19079
19080 struct inode *ip = NULL;
19081 (void) inode_owner_or_capable(ip);
19082
19083 ;
19084 return 0;
19085 }
19086
19087 _ACEOF
19088
19089
19090
19091 cat - <<_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'
19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19103 ac_status=$?
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
19107 (eval $ac_try) 2>&5
19108 ac_status=$?
19109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
19111
19112 { $as_echo "$as_me:$LINENO: result: yes" >&5
19113 $as_echo "yes" >&6; }
19114
19115 cat >>confdefs.h <<\_ACEOF
19116 #define HAVE_INODE_OWNER_OR_CAPABLE 1
19117 _ACEOF
19118
19119
19120 else
19121 $as_echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.$ac_ext >&5
19123
19124 { $as_echo "$as_me:$LINENO: result: no" >&5
19125 $as_echo "no" >&6; }
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; }
19128
19129
19130 cat confdefs.h - <<_ACEOF >conftest.c
19131 /* confdefs.h. */
19132 _ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19136
19137
19138 #include <linux/fs.h>
19139 #include <linux/sched.h>
19140
19141 int
19142 main (void)
19143 {
19144
19145 struct inode *ip = NULL;
19146 (void) is_owner_or_cap(ip);
19147
19148 ;
19149 return 0;
19150 }
19151
19152 _ACEOF
19153
19154
19155
19156 cat - <<_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'
19166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167 (eval $ac_try) 2>&5
19168 ac_status=$?
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
19172 (eval $ac_try) 2>&5
19173 ac_status=$?
19174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; }; then
19176
19177 { $as_echo "$as_me:$LINENO: result: yes" >&5
19178 $as_echo "yes" >&6; }
19179
19180 cat >>confdefs.h <<\_ACEOF
19181 #define HAVE_IS_OWNER_OR_CAP 1
19182 _ACEOF
19183
19184
19185 else
19186 $as_echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19188
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; }; }
19194
19195
19196
19197 fi
19198
19199 rm -Rf build
19200
19201
19202
19203
19204
19205 fi
19206
19207 rm -Rf build
19208
19209
19210
19211
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
19216 cat confdefs.h - <<_ACEOF >conftest.c
19217 /* confdefs.h. */
19218 _ACEOF
19219 cat confdefs.h >>conftest.$ac_ext
19220 cat >>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>
19227
19228 int
19229 main (void)
19230 {
19231
19232 posix_acl_from_xattr(&init_user_ns, NULL, 0);
19233
19234 ;
19235 return 0;
19236 }
19237
19238 _ACEOF
19239
19240
19241
19242 cat - <<_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'
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
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
19258 (eval $ac_try) 2>&5
19259 ac_status=$?
19260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; }; then
19262
19263 { $as_echo "$as_me:$LINENO: result: yes" >&5
19264 $as_echo "yes" >&6; }
19265
19266 cat >>confdefs.h <<\_ACEOF
19267 #define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1
19268 _ACEOF
19269
19270
19271 else
19272 $as_echo "$as_me: failed program was:" >&5
19273 sed 's/^/| /' conftest.$ac_ext >&5
19274
19275 { $as_echo "$as_me:$LINENO: result: no" >&5
19276 $as_echo "no" >&6; }
19277
19278
19279
19280 fi
19281
19282 rm -Rf build
19283
19284
19285
19286
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; }
19289
19290
19291 cat confdefs.h - <<_ACEOF >conftest.c
19292 /* confdefs.h. */
19293 _ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19297
19298
19299 #include <linux/cred.h>
19300 #include <linux/fs.h>
19301 #include <linux/posix_acl.h>
19302
19303 int
19304 main (void)
19305 {
19306
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
19318 cat - <<_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
19342 cat >>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
19351 cat confdefs.h - <<_ACEOF >conftest.c
19352 /* confdefs.h. */
19353 _ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>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");
19365
19366 int
19367 main (void)
19368 {
19369
19370 struct posix_acl* tmp = posix_acl_alloc(1, 0);
19371 posix_acl_release(tmp);
19372
19373 ;
19374 return 0;
19375 }
19376
19377 _ACEOF
19378
19379
19380
19381 cat - <<_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'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
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
19397 (eval $ac_try) 2>&5
19398 ac_status=$?
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
19405 else
19406 $as_echo "$as_me: failed program was:" >&5
19407 sed 's/^/| /' conftest.$ac_ext >&5
19408
19409 { $as_echo "$as_me:$LINENO: result: yes" >&5
19410 $as_echo "yes" >&6; }
19411
19412 cat >>confdefs.h <<\_ACEOF
19413 #define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1
19414 _ACEOF
19415
19416
19417
19418
19419 fi
19420
19421 rm -Rf build
19422
19423
19424
19425 else
19426 $as_echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19428
19429 { $as_echo "$as_me:$LINENO: result: no" >&5
19430 $as_echo "no" >&6; }
19431
19432
19433
19434 fi
19435
19436 rm -Rf build
19437
19438
19439
19440
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; }
19443
19444
19445 cat confdefs.h - <<_ACEOF >conftest.c
19446 /* confdefs.h. */
19447 _ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h. */
19451
19452
19453 #include <linux/module.h>
19454 #include <linux/cred.h>
19455 #include <linux/fs.h>
19456 #include <linux/posix_acl.h>
19457
19458 MODULE_LICENSE("$ZFS_META_LICENSE");
19459
19460 int
19461 main (void)
19462 {
19463
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);
19468
19469 ;
19470 return 0;
19471 }
19472
19473 _ACEOF
19474
19475
19476
19477 cat - <<_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'
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19489 ac_status=$?
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
19493 (eval $ac_try) 2>&5
19494 ac_status=$?
19495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); }; }; then
19497
19498 { $as_echo "$as_me:$LINENO: result: yes" >&5
19499 $as_echo "yes" >&6; }
19500
19501 cat >>confdefs.h <<\_ACEOF
19502 #define HAVE_SET_CACHED_ACL_USABLE 1
19503 _ACEOF
19504
19505
19506 else
19507 $as_echo "$as_me: failed program was:" >&5
19508 sed 's/^/| /' conftest.$ac_ext >&5
19509
19510 { $as_echo "$as_me:$LINENO: result: no" >&5
19511 $as_echo "no" >&6; }
19512
19513
19514
19515 fi
19516
19517 rm -Rf build
19518
19519
19520
19521
19522 { $as_echo "$as_me:$LINENO: checking whether posix_acl_chmod exists" >&5
19523 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
19524
19525
19526 cat confdefs.h - <<_ACEOF >conftest.c
19527 /* confdefs.h. */
19528 _ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19532
19533
19534 #include <linux/fs.h>
19535 #include <linux/posix_acl.h>
19536
19537 int
19538 main (void)
19539 {
19540
19541 posix_acl_chmod(NULL, 0, 0)
19542
19543 ;
19544 return 0;
19545 }
19546
19547 _ACEOF
19548
19549
19550
19551 cat - <<_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'
19561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19562 (eval $ac_try) 2>&5
19563 ac_status=$?
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
19567 (eval $ac_try) 2>&5
19568 ac_status=$?
19569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
19571
19572 { $as_echo "$as_me:$LINENO: result: yes" >&5
19573 $as_echo "yes" >&6; }
19574
19575 cat >>confdefs.h <<\_ACEOF
19576 #define HAVE_POSIX_ACL_CHMOD 1
19577 _ACEOF
19578
19579
19580 else
19581 $as_echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19583
19584 { $as_echo "$as_me:$LINENO: result: no" >&5
19585 $as_echo "no" >&6; }
19586
19587
19588
19589 fi
19590
19591 rm -Rf build
19592
19593
19594
19595 { $as_echo "$as_me:$LINENO: checking whether __posix_acl_chmod exists" >&5
19596 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
19597
19598
19599 cat confdefs.h - <<_ACEOF >conftest.c
19600 /* confdefs.h. */
19601 _ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19605
19606
19607 #include <linux/fs.h>
19608 #include <linux/posix_acl.h>
19609
19610 int
19611 main (void)
19612 {
19613
19614 __posix_acl_chmod(NULL, 0, 0)
19615
19616 ;
19617 return 0;
19618 }
19619
19620 _ACEOF
19621
19622
19623
19624 cat - <<_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'
19634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635 (eval $ac_try) 2>&5
19636 ac_status=$?
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
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
19642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19644
19645 { $as_echo "$as_me:$LINENO: result: yes" >&5
19646 $as_echo "yes" >&6; }
19647
19648 cat >>confdefs.h <<\_ACEOF
19649 #define HAVE___POSIX_ACL_CHMOD 1
19650 _ACEOF
19651
19652
19653 else
19654 $as_echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19656
19657 { $as_echo "$as_me:$LINENO: result: no" >&5
19658 $as_echo "no" >&6; }
19659
19660
19661
19662 fi
19663
19664 rm -Rf build
19665
19666
19667
19668
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; }
19671
19672
19673 cat confdefs.h - <<_ACEOF >conftest.c
19674 /* confdefs.h. */
19675 _ACEOF
19676 cat confdefs.h >>conftest.$ac_ext
19677 cat >>conftest.$ac_ext <<_ACEOF
19678 /* end confdefs.h. */
19679
19680
19681 #include <linux/fs.h>
19682 #include <linux/posix_acl.h>
19683
19684 int
19685 main (void)
19686 {
19687
19688 umode_t tmp;
19689 posix_acl_equiv_mode(NULL,&tmp);
19690
19691 ;
19692 return 0;
19693 }
19694
19695 _ACEOF
19696
19697
19698
19699 cat - <<_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'
19709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19710 (eval $ac_try) 2>&5
19711 ac_status=$?
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
19715 (eval $ac_try) 2>&5
19716 ac_status=$?
19717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; }; then
19719
19720 { $as_echo "$as_me:$LINENO: result: yes" >&5
19721 $as_echo "yes" >&6; }
19722
19723 cat >>confdefs.h <<\_ACEOF
19724 #define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1
19725 _ACEOF
19726
19727
19728 else
19729 $as_echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19731
19732 { $as_echo "$as_me:$LINENO: result: no" >&5
19733 $as_echo "no" >&6; }
19734
19735
19736
19737 fi
19738
19739 rm -Rf build
19740
19741
19742
19743
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; }
19746
19747
19748 cat confdefs.h - <<_ACEOF >conftest.c
19749 /* confdefs.h. */
19750 _ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19754
19755
19756 #include <linux/fs.h>
19757 #include <linux/posix_acl.h>
19758
19759 int
19760 main (void)
19761 {
19762
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);
19768
19769 ;
19770 return 0;
19771 }
19772
19773 _ACEOF
19774
19775
19776
19777 cat - <<_ACEOF >conftest.h
19778
19779 _ACEOF
19780
19781
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'
19787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19788 (eval $ac_try) 2>&5
19789 ac_status=$?
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
19793 (eval $ac_try) 2>&5
19794 ac_status=$?
19795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; }; then
19797
19798 { $as_echo "$as_me:$LINENO: result: yes" >&5
19799 $as_echo "yes" >&6; }
19800
19801 cat >>confdefs.h <<\_ACEOF
19802 #define HAVE_POSIX_ACL_VALID_WITH_NS 1
19803 _ACEOF
19804
19805
19806 else
19807 $as_echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19809
19810 { $as_echo "$as_me:$LINENO: result: no" >&5
19811 $as_echo "no" >&6; }
19812
19813
19814
19815 fi
19816
19817 rm -Rf build
19818
19819
19820
19821
19822 { $as_echo "$as_me:$LINENO: checking whether iops->permission() exists" >&5
19823 $as_echo_n "checking whether iops->permission() exists... " >&6; }
19824
19825
19826 cat confdefs.h - <<_ACEOF >conftest.c
19827 /* confdefs.h. */
19828 _ACEOF
19829 cat confdefs.h >>conftest.$ac_ext
19830 cat >>conftest.$ac_ext <<_ACEOF
19831 /* end confdefs.h. */
19832
19833
19834 #include <linux/fs.h>
19835
19836 int permission_fn(struct inode *inode, int mask) { return 0; }
19837
19838 static const struct inode_operations
19839 iops __attribute__ ((unused)) = {
19840 .permission = permission_fn,
19841 };
19842
19843 int
19844 main (void)
19845 {
19846
19847
19848 ;
19849 return 0;
19850 }
19851
19852 _ACEOF
19853
19854
19855
19856 cat - <<_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'
19866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19867 (eval $ac_try) 2>&5
19868 ac_status=$?
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
19872 (eval $ac_try) 2>&5
19873 ac_status=$?
19874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; }; then
19876
19877 { $as_echo "$as_me:$LINENO: result: yes" >&5
19878 $as_echo "yes" >&6; }
19879
19880 cat >>confdefs.h <<\_ACEOF
19881 #define HAVE_PERMISSION 1
19882 _ACEOF
19883
19884
19885 else
19886 $as_echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19888
19889 { $as_echo "$as_me:$LINENO: result: no" >&5
19890 $as_echo "no" >&6; }
19891
19892
19893
19894 fi
19895
19896 rm -Rf build
19897
19898
19899
19900
19901 { $as_echo "$as_me:$LINENO: checking whether iops->permission() wants nameidata" >&5
19902 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
19903
19904
19905 cat confdefs.h - <<_ACEOF >conftest.c
19906 /* confdefs.h. */
19907 _ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h. */
19911
19912
19913 #include <linux/fs.h>
19914
19915 int permission_fn(struct inode *inode, int mask,
19916 struct nameidata *nd) { return 0; }
19917
19918 static const struct inode_operations
19919 iops __attribute__ ((unused)) = {
19920 .permission = permission_fn,
19921 };
19922
19923 int
19924 main (void)
19925 {
19926
19927
19928 ;
19929 return 0;
19930 }
19931
19932 _ACEOF
19933
19934
19935
19936 cat - <<_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'
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19948 ac_status=$?
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
19952 (eval $ac_try) 2>&5
19953 ac_status=$?
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
19960 cat >>confdefs.h <<\_ACEOF
19961 #define HAVE_PERMISSION 1
19962 _ACEOF
19963
19964
19965 cat >>confdefs.h <<\_ACEOF
19966 #define HAVE_PERMISSION_WITH_NAMEIDATA 1
19967 _ACEOF
19968
19969
19970 else
19971 $as_echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19973
19974 { $as_echo "$as_me:$LINENO: result: no" >&5
19975 $as_echo "no" >&6; }
19976
19977
19978
19979 fi
19980
19981 rm -Rf build
19982
19983
19984
19985
19986 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() exists" >&5
19987 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
19988
19989
19990 cat confdefs.h - <<_ACEOF >conftest.c
19991 /* confdefs.h. */
19992 _ACEOF
19993 cat confdefs.h >>conftest.$ac_ext
19994 cat >>conftest.$ac_ext <<_ACEOF
19995 /* end confdefs.h. */
19996
19997
19998 #include <linux/fs.h>
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,
20005 };
20006
20007 int
20008 main (void)
20009 {
20010
20011
20012 ;
20013 return 0;
20014 }
20015
20016 _ACEOF
20017
20018
20019
20020 cat - <<_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'
20030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031 (eval $ac_try) 2>&5
20032 ac_status=$?
20033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20037 ac_status=$?
20038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; }; then
20040
20041 { $as_echo "$as_me:$LINENO: result: yes" >&5
20042 $as_echo "yes" >&6; }
20043
20044 cat >>confdefs.h <<\_ACEOF
20045 #define HAVE_CHECK_ACL 1
20046 _ACEOF
20047
20048
20049 else
20050 $as_echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.$ac_ext >&5
20052
20053 { $as_echo "$as_me:$LINENO: result: no" >&5
20054 $as_echo "no" >&6; }
20055
20056
20057
20058 fi
20059
20060 rm -Rf build
20061
20062
20063
20064
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; }
20067
20068
20069 cat confdefs.h - <<_ACEOF >conftest.c
20070 /* confdefs.h. */
20071 _ACEOF
20072 cat confdefs.h >>conftest.$ac_ext
20073 cat >>conftest.$ac_ext <<_ACEOF
20074 /* end confdefs.h. */
20075
20076
20077 #include <linux/fs.h>
20078
20079 int check_acl_fn(struct inode *inode, int mask,
20080 unsigned int flags) { return 0; }
20081
20082 static const struct inode_operations
20083 iops __attribute__ ((unused)) = {
20084 .check_acl = check_acl_fn,
20085 };
20086
20087 int
20088 main (void)
20089 {
20090
20091
20092 ;
20093 return 0;
20094 }
20095
20096 _ACEOF
20097
20098
20099
20100 cat - <<_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'
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20112 ac_status=$?
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
20116 (eval $ac_try) 2>&5
20117 ac_status=$?
20118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); }; }; then
20120
20121 { $as_echo "$as_me:$LINENO: result: yes" >&5
20122 $as_echo "yes" >&6; }
20123
20124 cat >>confdefs.h <<\_ACEOF
20125 #define HAVE_CHECK_ACL 1
20126 _ACEOF
20127
20128
20129 cat >>confdefs.h <<\_ACEOF
20130 #define HAVE_CHECK_ACL_WITH_FLAGS 1
20131 _ACEOF
20132
20133
20134 else
20135 $as_echo "$as_me: failed program was:" >&5
20136 sed 's/^/| /' conftest.$ac_ext >&5
20137
20138 { $as_echo "$as_me:$LINENO: result: no" >&5
20139 $as_echo "no" >&6; }
20140
20141
20142
20143 fi
20144
20145 rm -Rf build
20146
20147
20148
20149
20150 { $as_echo "$as_me:$LINENO: checking whether iops->get_acl() exists" >&5
20151 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
20152
20153
20154 cat confdefs.h - <<_ACEOF >conftest.c
20155 /* confdefs.h. */
20156 _ACEOF
20157 cat confdefs.h >>conftest.$ac_ext
20158 cat >>conftest.$ac_ext <<_ACEOF
20159 /* end confdefs.h. */
20160
20161
20162 #include <linux/fs.h>
20163
20164 struct posix_acl *get_acl_fn(struct inode *inode, int type)
20165 { return NULL; }
20166
20167 static const struct inode_operations
20168 iops __attribute__ ((unused)) = {
20169 .get_acl = get_acl_fn,
20170 };
20171
20172 int
20173 main (void)
20174 {
20175
20176
20177 ;
20178 return 0;
20179 }
20180
20181 _ACEOF
20182
20183
20184
20185 cat - <<_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'
20195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196 (eval $ac_try) 2>&5
20197 ac_status=$?
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
20201 (eval $ac_try) 2>&5
20202 ac_status=$?
20203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; }; then
20205
20206 { $as_echo "$as_me:$LINENO: result: yes" >&5
20207 $as_echo "yes" >&6; }
20208
20209 cat >>confdefs.h <<\_ACEOF
20210 #define HAVE_GET_ACL 1
20211 _ACEOF
20212
20213
20214 else
20215 $as_echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20217
20218 { $as_echo "$as_me:$LINENO: result: no" >&5
20219 $as_echo "no" >&6; }
20220
20221
20222
20223 fi
20224
20225 rm -Rf build
20226
20227
20228
20229
20230 { $as_echo "$as_me:$LINENO: checking whether iops->set_acl() exists" >&5
20231 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
20232
20233
20234 cat confdefs.h - <<_ACEOF >conftest.c
20235 /* confdefs.h. */
20236 _ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h. */
20240
20241
20242 #include <linux/fs.h>
20243
20244 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
20245 { return 0; }
20246
20247 static const struct inode_operations
20248 iops __attribute__ ((unused)) = {
20249 .set_acl = set_acl_fn,
20250 };
20251
20252 int
20253 main (void)
20254 {
20255
20256
20257 ;
20258 return 0;
20259 }
20260
20261 _ACEOF
20262
20263
20264
20265 cat - <<_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'
20275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276 (eval $ac_try) 2>&5
20277 ac_status=$?
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
20281 (eval $ac_try) 2>&5
20282 ac_status=$?
20283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); }; }; then
20285
20286 { $as_echo "$as_me:$LINENO: result: yes" >&5
20287 $as_echo "yes" >&6; }
20288
20289 cat >>confdefs.h <<\_ACEOF
20290 #define HAVE_SET_ACL 1
20291 _ACEOF
20292
20293
20294 else
20295 $as_echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20297
20298 { $as_echo "$as_me:$LINENO: result: no" >&5
20299 $as_echo "no" >&6; }
20300
20301
20302
20303 fi
20304
20305 rm -Rf build
20306
20307
20308
20309
20310
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; }
20313
20314
20315 cat confdefs.h - <<_ACEOF >conftest.c
20316 /* confdefs.h. */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321
20322
20323 #include <linux/fs.h>
20324
20325 int test_getattr(
20326 const struct path *p, struct kstat *k,
20327 u32 request_mask, unsigned int query_flags)
20328 { return 0; }
20329
20330 static const struct inode_operations
20331 iops __attribute__ ((unused)) = {
20332 .getattr = test_getattr,
20333 };
20334
20335 int
20336 main (void)
20337 {
20338
20339
20340 ;
20341 return 0;
20342 }
20343
20344 _ACEOF
20345
20346
20347
20348 cat - <<_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'
20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359 (eval $ac_try) 2>&5
20360 ac_status=$?
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
20364 (eval $ac_try) 2>&5
20365 ac_status=$?
20366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; }; then
20368
20369 { $as_echo "$as_me:$LINENO: result: yes" >&5
20370 $as_echo "yes" >&6; }
20371
20372 cat >>confdefs.h <<\_ACEOF
20373 #define HAVE_PATH_IOPS_GETATTR 1
20374 _ACEOF
20375
20376
20377 else
20378 $as_echo "$as_me: failed program was:" >&5
20379 sed 's/^/| /' conftest.$ac_ext >&5
20380
20381 { $as_echo "$as_me:$LINENO: result: no" >&5
20382 $as_echo "no" >&6; }
20383
20384
20385
20386 fi
20387
20388 rm -Rf build
20389
20390
20391
20392
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; }
20395
20396
20397 cat confdefs.h - <<_ACEOF >conftest.c
20398 /* confdefs.h. */
20399 _ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h. */
20403
20404
20405 #include <linux/fs.h>
20406
20407 int test_getattr(
20408 struct vfsmount *mnt, struct dentry *d,
20409 struct kstat *k)
20410 { return 0; }
20411
20412 static const struct inode_operations
20413 iops __attribute__ ((unused)) = {
20414 .getattr = test_getattr,
20415 };
20416
20417 int
20418 main (void)
20419 {
20420
20421
20422 ;
20423 return 0;
20424 }
20425
20426 _ACEOF
20427
20428
20429
20430 cat - <<_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'
20440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20441 (eval $ac_try) 2>&5
20442 ac_status=$?
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
20446 (eval $ac_try) 2>&5
20447 ac_status=$?
20448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; }; then
20450
20451 { $as_echo "$as_me:$LINENO: result: yes" >&5
20452 $as_echo "yes" >&6; }
20453
20454 cat >>confdefs.h <<\_ACEOF
20455 #define HAVE_VFSMOUNT_IOPS_GETATTR 1
20456 _ACEOF
20457
20458
20459 else
20460 $as_echo "$as_me: failed program was:" >&5
20461 sed 's/^/| /' conftest.$ac_ext >&5
20462
20463 { $as_echo "$as_me:$LINENO: result: no" >&5
20464 $as_echo "no" >&6; }
20465
20466
20467
20468 fi
20469
20470 rm -Rf build
20471
20472
20473
20474
20475
20476 { $as_echo "$as_me:$LINENO: checking whether inode_set_flags() exists" >&5
20477 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
20478
20479
20480 cat confdefs.h - <<_ACEOF >conftest.c
20481 /* confdefs.h. */
20482 _ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h. */
20486
20487
20488 #include <linux/fs.h>
20489
20490 int
20491 main (void)
20492 {
20493
20494 struct inode inode;
20495 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
20496
20497 ;
20498 return 0;
20499 }
20500
20501 _ACEOF
20502
20503
20504
20505 cat - <<_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'
20515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516 (eval $ac_try) 2>&5
20517 ac_status=$?
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
20521 (eval $ac_try) 2>&5
20522 ac_status=$?
20523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); }; }; then
20525
20526 { $as_echo "$as_me:$LINENO: result: yes" >&5
20527 $as_echo "yes" >&6; }
20528
20529 cat >>confdefs.h <<\_ACEOF
20530 #define HAVE_INODE_SET_FLAGS 1
20531 _ACEOF
20532
20533
20534 else
20535 $as_echo "$as_me: failed program was:" >&5
20536 sed 's/^/| /' conftest.$ac_ext >&5
20537
20538 { $as_echo "$as_me:$LINENO: result: no" >&5
20539 $as_echo "no" >&6; }
20540
20541
20542
20543 fi
20544
20545 rm -Rf build
20546
20547
20548
20549
20550 { $as_echo "$as_me:$LINENO: checking whether uncached_acl_sentinel() exists" >&5
20551 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
20552
20553
20554 cat confdefs.h - <<_ACEOF >conftest.c
20555 /* confdefs.h. */
20556 _ACEOF
20557 cat confdefs.h >>conftest.$ac_ext
20558 cat >>conftest.$ac_ext <<_ACEOF
20559 /* end confdefs.h. */
20560
20561
20562 #include <linux/fs.h>
20563
20564 int
20565 main (void)
20566 {
20567
20568 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
20569
20570 ;
20571 return 0;
20572 }
20573
20574 _ACEOF
20575
20576
20577
20578 cat - <<_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'
20588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20589 (eval $ac_try) 2>&5
20590 ac_status=$?
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
20594 (eval $ac_try) 2>&5
20595 ac_status=$?
20596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); }; }; then
20598
20599 { $as_echo "$as_me:$LINENO: result: yes" >&5
20600 $as_echo "yes" >&6; }
20601
20602 cat >>confdefs.h <<\_ACEOF
20603 #define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1
20604 _ACEOF
20605
20606
20607 else
20608 $as_echo "$as_me: failed program was:" >&5
20609 sed 's/^/| /' conftest.$ac_ext >&5
20610
20611 { $as_echo "$as_me:$LINENO: result: no" >&5
20612 $as_echo "no" >&6; }
20613
20614
20615
20616 fi
20617
20618 rm -Rf build
20619
20620
20621
20622
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
20626
20627
20628 cat confdefs.h - <<_ACEOF >conftest.c
20629 /* confdefs.h. */
20630 _ACEOF
20631 cat confdefs.h >>conftest.$ac_ext
20632 cat >>conftest.$ac_ext <<_ACEOF
20633 /* end confdefs.h. */
20634
20635
20636 #include <linux/fs.h>
20637
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,
20641 };
20642
20643 int
20644 main (void)
20645 {
20646
20647
20648 ;
20649 return 0;
20650 }
20651
20652 _ACEOF
20653
20654
20655
20656 cat - <<_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'
20666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20667 (eval $ac_try) 2>&5
20668 ac_status=$?
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
20672 (eval $ac_try) 2>&5
20673 ac_status=$?
20674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); }; }; then
20676
20677 { $as_echo "$as_me:$LINENO: result: yes" >&5
20678 $as_echo "yes" >&6; }
20679
20680 cat >>confdefs.h <<\_ACEOF
20681 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
20682 _ACEOF
20683
20684
20685 else
20686 $as_echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.$ac_ext >&5
20688
20689 { $as_echo "$as_me:$LINENO: result: no" >&5
20690 $as_echo "no" >&6; }
20691
20692
20693
20694 fi
20695
20696 rm -Rf build
20697
20698
20699
20700
20701 { $as_echo "$as_me:$LINENO: checking whether file_inode() is available" >&5
20702 $as_echo_n "checking whether file_inode() is available... " >&6; }
20703
20704
20705 cat confdefs.h - <<_ACEOF >conftest.c
20706 /* confdefs.h. */
20707 _ACEOF
20708 cat confdefs.h >>conftest.$ac_ext
20709 cat >>conftest.$ac_ext <<_ACEOF
20710 /* end confdefs.h. */
20711
20712
20713 #include <linux/fs.h>
20714
20715 int
20716 main (void)
20717 {
20718
20719 struct file *f = NULL;
20720 file_inode(f);
20721
20722 ;
20723 return 0;
20724 }
20725
20726 _ACEOF
20727
20728
20729
20730 cat - <<_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'
20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20742 ac_status=$?
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
20746 (eval $ac_try) 2>&5
20747 ac_status=$?
20748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; }; then
20750
20751 { $as_echo "$as_me:$LINENO: result: yes" >&5
20752 $as_echo "yes" >&6; }
20753
20754 cat >>confdefs.h <<\_ACEOF
20755 #define HAVE_FILE_INODE 1
20756 _ACEOF
20757
20758
20759 else
20760 $as_echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20762
20763 { $as_echo "$as_me:$LINENO: result: no" >&5
20764 $as_echo "no" >&6; }
20765
20766
20767
20768 fi
20769
20770 rm -Rf build
20771
20772
20773
20774
20775 { $as_echo "$as_me:$LINENO: checking whether file_dentry() is available" >&5
20776 $as_echo_n "checking whether file_dentry() is available... " >&6; }
20777
20778
20779 cat confdefs.h - <<_ACEOF >conftest.c
20780 /* confdefs.h. */
20781 _ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h. */
20785
20786
20787 #include <linux/fs.h>
20788
20789 int
20790 main (void)
20791 {
20792
20793 struct file *f = NULL;
20794 file_dentry(f);
20795
20796 ;
20797 return 0;
20798 }
20799
20800 _ACEOF
20801
20802
20803
20804 cat - <<_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'
20814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815 (eval $ac_try) 2>&5
20816 ac_status=$?
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
20820 (eval $ac_try) 2>&5
20821 ac_status=$?
20822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; }; then
20824
20825 { $as_echo "$as_me:$LINENO: result: yes" >&5
20826 $as_echo "yes" >&6; }
20827
20828 cat >>confdefs.h <<\_ACEOF
20829 #define HAVE_FILE_DENTRY 1
20830 _ACEOF
20831
20832
20833 else
20834 $as_echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20836
20837 { $as_echo "$as_me:$LINENO: result: no" >&5
20838 $as_echo "no" >&6; }
20839
20840
20841
20842 fi
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
20852
20853
20854 cat confdefs.h - <<_ACEOF >conftest.c
20855 /* confdefs.h. */
20856 _ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h. */
20860
20861
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 };
20871
20872 int
20873 main (void)
20874 {
20875
20876
20877 ;
20878 return 0;
20879 }
20880
20881 _ACEOF
20882
20883
20884
20885 cat - <<_ACEOF >conftest.h
20886
20887 _ACEOF
20888
20889
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'
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20897 ac_status=$?
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
20901 (eval $ac_try) 2>&5
20902 ac_status=$?
20903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; }; then
20905
20906 { $as_echo "$as_me:$LINENO: result: dentry" >&5
20907 $as_echo "dentry" >&6; }
20908
20909 cat >>confdefs.h <<\_ACEOF
20910 #define HAVE_FSYNC_WITH_DENTRY 1
20911 _ACEOF
20912
20913
20914 else
20915 $as_echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20917
20918
20919
20920
20921 fi
20922
20923 rm -Rf build
20924
20925
20926
20927
20928
20929
20930 cat confdefs.h - <<_ACEOF >conftest.c
20931 /* confdefs.h. */
20932 _ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h. */
20936
20937
20938 #include <linux/fs.h>
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,
20945 };
20946
20947 int
20948 main (void)
20949 {
20950
20951
20952 ;
20953 return 0;
20954 }
20955
20956 _ACEOF
20957
20958
20959
20960 cat - <<_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'
20970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20971 (eval $ac_try) 2>&5
20972 ac_status=$?
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
20976 (eval $ac_try) 2>&5
20977 ac_status=$?
20978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; }; then
20980
20981 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
20982 $as_echo "no dentry" >&6; }
20983
20984 cat >>confdefs.h <<\_ACEOF
20985 #define HAVE_FSYNC_WITHOUT_DENTRY 1
20986 _ACEOF
20987
20988
20989 else
20990 $as_echo "$as_me: failed program was:" >&5
20991 sed 's/^/| /' conftest.$ac_ext >&5
20992
20993
20994
20995
20996 fi
20997
20998 rm -Rf build
20999
21000
21001
21002
21003
21004
21005 cat confdefs.h - <<_ACEOF >conftest.c
21006 /* confdefs.h. */
21007 _ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h. */
21011
21012
21013 #include <linux/fs.h>
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 };
21022
21023 int
21024 main (void)
21025 {
21026
21027
21028 ;
21029 return 0;
21030 }
21031
21032 _ACEOF
21033
21034
21035
21036 cat - <<_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'
21046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047 (eval $ac_try) 2>&5
21048 ac_status=$?
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
21052 (eval $ac_try) 2>&5
21053 ac_status=$?
21054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); }; }; then
21056
21057 { $as_echo "$as_me:$LINENO: result: range" >&5
21058 $as_echo "range" >&6; }
21059
21060 cat >>confdefs.h <<\_ACEOF
21061 #define HAVE_FSYNC_RANGE 1
21062 _ACEOF
21063
21064
21065 else
21066 $as_echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21068
21069
21070
21071
21072 fi
21073
21074 rm -Rf build
21075
21076
21077
21078
21079
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
21084 cat confdefs.h - <<_ACEOF >conftest.c
21085 /* confdefs.h. */
21086 _ACEOF
21087 cat confdefs.h >>conftest.$ac_ext
21088 cat >>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
21098 int
21099 main (void)
21100 {
21101
21102
21103 ;
21104 return 0;
21105 }
21106
21107 _ACEOF
21108
21109
21110
21111 cat - <<_ACEOF >conftest.h
21112
21113 _ACEOF
21114
21115
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
21135 cat >>confdefs.h <<\_ACEOF
21136 #define HAVE_EVICT_INODE 1
21137 _ACEOF
21138
21139
21140 else
21141 $as_echo "$as_me: failed program was:" >&5
21142 sed 's/^/| /' conftest.$ac_ext >&5
21143
21144 { $as_echo "$as_me:$LINENO: result: no" >&5
21145 $as_echo "no" >&6; }
21146
21147
21148
21149 fi
21150
21151 rm -Rf build
21152
21153
21154
21155
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; }
21158
21159
21160 cat confdefs.h - <<_ACEOF >conftest.c
21161 /* confdefs.h. */
21162 _ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21166
21167
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 };
21176
21177 int
21178 main (void)
21179 {
21180
21181
21182 ;
21183 return 0;
21184 }
21185
21186 _ACEOF
21187
21188
21189
21190 cat - <<_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'
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21202 ac_status=$?
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
21206 (eval $ac_try) 2>&5
21207 ac_status=$?
21208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); }; }; then
21210
21211 { $as_echo "$as_me:$LINENO: result: yes" >&5
21212 $as_echo "yes" >&6; }
21213
21214 cat >>confdefs.h <<\_ACEOF
21215 #define HAVE_DIRTY_INODE_WITH_FLAGS 1
21216 _ACEOF
21217
21218
21219 else
21220 $as_echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.$ac_ext >&5
21222
21223 { $as_echo "$as_me:$LINENO: result: no" >&5
21224 $as_echo "no" >&6; }
21225
21226
21227
21228 fi
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; }
21237
21238
21239 cat confdefs.h - <<_ACEOF >conftest.c
21240 /* confdefs.h. */
21241 _ACEOF
21242 cat confdefs.h >>conftest.$ac_ext
21243 cat >>conftest.$ac_ext <<_ACEOF
21244 /* end confdefs.h. */
21245
21246
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 };
21255
21256 int
21257 main (void)
21258 {
21259
21260
21261 ;
21262 return 0;
21263 }
21264
21265 _ACEOF
21266
21267
21268
21269 cat - <<_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'
21279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21280 (eval $ac_try) 2>&5
21281 ac_status=$?
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
21285 (eval $ac_try) 2>&5
21286 ac_status=$?
21287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; }; then
21289
21290 { $as_echo "$as_me:$LINENO: result: yes" >&5
21291 $as_echo "yes" >&6; }
21292
21293 cat >>confdefs.h <<\_ACEOF
21294 #define HAVE_NR_CACHED_OBJECTS 1
21295 _ACEOF
21296
21297
21298 else
21299 $as_echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21301
21302 { $as_echo "$as_me:$LINENO: result: no" >&5
21303 $as_echo "no" >&6; }
21304
21305
21306
21307 fi
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; }
21316
21317
21318 cat confdefs.h - <<_ACEOF >conftest.c
21319 /* confdefs.h. */
21320 _ACEOF
21321 cat confdefs.h >>conftest.$ac_ext
21322 cat >>conftest.$ac_ext <<_ACEOF
21323 /* end confdefs.h. */
21324
21325
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 };
21335
21336 int
21337 main (void)
21338 {
21339
21340
21341 ;
21342 return 0;
21343 }
21344
21345 _ACEOF
21346
21347
21348
21349 cat - <<_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'
21359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360 (eval $ac_try) 2>&5
21361 ac_status=$?
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
21365 (eval $ac_try) 2>&5
21366 ac_status=$?
21367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; }; then
21369
21370 { $as_echo "$as_me:$LINENO: result: yes" >&5
21371 $as_echo "yes" >&6; }
21372
21373 cat >>confdefs.h <<\_ACEOF
21374 #define HAVE_FREE_CACHED_OBJECTS 1
21375 _ACEOF
21376
21377
21378 else
21379 $as_echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21381
21382 { $as_echo "$as_me:$LINENO: result: no" >&5
21383 $as_echo "no" >&6; }
21384
21385
21386
21387 fi
21388
21389 rm -Rf build
21390
21391
21392
21393
21394
21395 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
21396 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
21397
21398
21399 cat confdefs.h - <<_ACEOF >conftest.c
21400 /* confdefs.h. */
21401 _ACEOF
21402 cat confdefs.h >>conftest.$ac_ext
21403 cat >>conftest.$ac_ext <<_ACEOF
21404 /* end confdefs.h. */
21405
21406
21407 #include <linux/fs.h>
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,
21415 };
21416
21417 int
21418 main (void)
21419 {
21420
21421
21422 ;
21423 return 0;
21424 }
21425
21426 _ACEOF
21427
21428
21429
21430 cat - <<_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'
21440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441 (eval $ac_try) 2>&5
21442 ac_status=$?
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
21446 (eval $ac_try) 2>&5
21447 ac_status=$?
21448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; }; then
21450
21451 { $as_echo "$as_me:$LINENO: result: yes" >&5
21452 $as_echo "yes" >&6; }
21453
21454 cat >>confdefs.h <<\_ACEOF
21455 #define HAVE_FILE_FALLOCATE 1
21456 _ACEOF
21457
21458
21459 else
21460 $as_echo "$as_me: failed program was:" >&5
21461 sed 's/^/| /' conftest.$ac_ext >&5
21462
21463 { $as_echo "$as_me:$LINENO: result: no" >&5
21464 $as_echo "no" >&6; }
21465
21466
21467
21468 fi
21469
21470 rm -Rf build
21471
21472
21473
21474
21475 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
21476 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
21477
21478
21479 cat confdefs.h - <<_ACEOF >conftest.c
21480 /* confdefs.h. */
21481 _ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h. */
21485
21486
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,
21495 };
21496
21497 int
21498 main (void)
21499 {
21500
21501
21502 ;
21503 return 0;
21504 }
21505
21506 _ACEOF
21507
21508
21509
21510 cat - <<_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'
21520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21521 (eval $ac_try) 2>&5
21522 ac_status=$?
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
21526 (eval $ac_try) 2>&5
21527 ac_status=$?
21528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); }; }; then
21530
21531 { $as_echo "$as_me:$LINENO: result: yes" >&5
21532 $as_echo "yes" >&6; }
21533
21534 cat >>confdefs.h <<\_ACEOF
21535 #define HAVE_INODE_FALLOCATE 1
21536 _ACEOF
21537
21538
21539 else
21540 $as_echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21542
21543 { $as_echo "$as_me:$LINENO: result: no" >&5
21544 $as_echo "no" >&6; }
21545
21546
21547
21548 fi
21549
21550 rm -Rf build
21551
21552
21553
21554
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; }
21558
21559
21560 cat confdefs.h - <<_ACEOF >conftest.c
21561 /* confdefs.h. */
21562 _ACEOF
21563 cat confdefs.h >>conftest.$ac_ext
21564 cat >>conftest.$ac_ext <<_ACEOF
21565 /* end confdefs.h. */
21566
21567
21568 #include <linux/fs.h>
21569
21570 static const struct file_operations
21571 fops __attribute__ ((unused)) = {
21572 .aio_fsync = NULL,
21573 };
21574
21575 int
21576 main (void)
21577 {
21578
21579
21580 ;
21581 return 0;
21582 }
21583
21584 _ACEOF
21585
21586
21587
21588 cat - <<_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'
21598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599 (eval $ac_try) 2>&5
21600 ac_status=$?
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
21604 (eval $ac_try) 2>&5
21605 ac_status=$?
21606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); }; }; then
21608
21609 { $as_echo "$as_me:$LINENO: result: yes" >&5
21610 $as_echo "yes" >&6; }
21611
21612 cat >>confdefs.h <<\_ACEOF
21613 #define HAVE_FILE_AIO_FSYNC 1
21614 _ACEOF
21615
21616
21617 else
21618 $as_echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21620
21621 { $as_echo "$as_me:$LINENO: result: no" >&5
21622 $as_echo "no" >&6; }
21623
21624
21625
21626 fi
21627
21628 rm -Rf build
21629
21630
21631
21632
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; }
21635
21636
21637 cat confdefs.h - <<_ACEOF >conftest.c
21638 /* confdefs.h. */
21639 _ACEOF
21640 cat confdefs.h >>conftest.$ac_ext
21641 cat >>conftest.$ac_ext <<_ACEOF
21642 /* end confdefs.h. */
21643
21644
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,
21653 };
21654
21655 int
21656 main (void)
21657 {
21658
21659
21660 ;
21661 return 0;
21662 }
21663
21664 _ACEOF
21665
21666
21667
21668 cat - <<_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'
21678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21679 (eval $ac_try) 2>&5
21680 ac_status=$?
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
21684 (eval $ac_try) 2>&5
21685 ac_status=$?
21686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); }; }; then
21688
21689 { $as_echo "$as_me:$LINENO: result: yes" >&5
21690 $as_echo "yes" >&6; }
21691
21692 cat >>confdefs.h <<\_ACEOF
21693 #define HAVE_MKDIR_UMODE_T 1
21694 _ACEOF
21695
21696
21697 else
21698 $as_echo "$as_me: failed program was:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21700
21701 { $as_echo "$as_me:$LINENO: result: no" >&5
21702 $as_echo "no" >&6; }
21703
21704
21705
21706 fi
21707
21708 rm -Rf build
21709
21710
21711
21712
21713 { $as_echo "$as_me:$LINENO: checking whether iops->lookup() passes nameidata" >&5
21714 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
21715
21716
21717 cat confdefs.h - <<_ACEOF >conftest.c
21718 /* confdefs.h. */
21719 _ACEOF
21720 cat confdefs.h >>conftest.$ac_ext
21721 cat >>conftest.$ac_ext <<_ACEOF
21722 /* end confdefs.h. */
21723
21724
21725 #include <linux/fs.h>
21726
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
21736 int
21737 main (void)
21738 {
21739
21740
21741 ;
21742 return 0;
21743 }
21744
21745 _ACEOF
21746
21747
21748
21749 cat - <<_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'
21759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760 (eval $ac_try) 2>&5
21761 ac_status=$?
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
21765 (eval $ac_try) 2>&5
21766 ac_status=$?
21767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); }; }; then
21769
21770 { $as_echo "$as_me:$LINENO: result: yes" >&5
21771 $as_echo "yes" >&6; }
21772
21773 cat >>confdefs.h <<\_ACEOF
21774 #define HAVE_LOOKUP_NAMEIDATA 1
21775 _ACEOF
21776
21777
21778 else
21779 $as_echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21781
21782 { $as_echo "$as_me:$LINENO: result: no" >&5
21783 $as_echo "no" >&6; }
21784
21785
21786
21787 fi
21788
21789 rm -Rf build
21790
21791
21792
21793
21794 { $as_echo "$as_me:$LINENO: checking whether iops->create() passes nameidata" >&5
21795 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
21796
21797
21798 cat confdefs.h - <<_ACEOF >conftest.c
21799 /* confdefs.h. */
21800 _ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h. */
21804
21805
21806 #include <linux/fs.h>
21807
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
21821 int
21822 main (void)
21823 {
21824
21825
21826 ;
21827 return 0;
21828 }
21829
21830 _ACEOF
21831
21832
21833
21834 cat - <<_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'
21844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21845 (eval $ac_try) 2>&5
21846 ac_status=$?
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
21850 (eval $ac_try) 2>&5
21851 ac_status=$?
21852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); }; }; then
21854
21855 { $as_echo "$as_me:$LINENO: result: yes" >&5
21856 $as_echo "yes" >&6; }
21857
21858 cat >>confdefs.h <<\_ACEOF
21859 #define HAVE_CREATE_NAMEIDATA 1
21860 _ACEOF
21861
21862
21863 else
21864 $as_echo "$as_me: failed program was:" >&5
21865 sed 's/^/| /' conftest.$ac_ext >&5
21866
21867 { $as_echo "$as_me:$LINENO: result: no" >&5
21868 $as_echo "no" >&6; }
21869
21870
21871
21872 fi
21873
21874 rm -Rf build
21875
21876
21877
21878
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; }
21881
21882
21883 cat confdefs.h - <<_ACEOF >conftest.c
21884 /* confdefs.h. */
21885 _ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h. */
21889
21890
21891 #include <linux/fs.h>
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 };
21898
21899 int
21900 main (void)
21901 {
21902
21903
21904 ;
21905 return 0;
21906 }
21907
21908 _ACEOF
21909
21910
21911
21912 cat - <<_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'
21922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21923 (eval $ac_try) 2>&5
21924 ac_status=$?
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
21928 (eval $ac_try) 2>&5
21929 ac_status=$?
21930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); }; }; then
21932
21933 { $as_echo "$as_me:$LINENO: result: yes" >&5
21934 $as_echo "yes" >&6; }
21935
21936 cat >>confdefs.h <<\_ACEOF
21937 #define HAVE_GET_LINK_DELAYED 1
21938 _ACEOF
21939
21940
21941 else
21942 $as_echo "$as_me: failed program was:" >&5
21943 sed 's/^/| /' conftest.$ac_ext >&5
21944
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; }
21949
21950
21951 cat confdefs.h - <<_ACEOF >conftest.c
21952 /* confdefs.h. */
21953 _ACEOF
21954 cat confdefs.h >>conftest.$ac_ext
21955 cat >>conftest.$ac_ext <<_ACEOF
21956 /* end confdefs.h. */
21957
21958
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 };
21966
21967 int
21968 main (void)
21969 {
21970
21971
21972 ;
21973 return 0;
21974 }
21975
21976 _ACEOF
21977
21978
21979
21980 cat - <<_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'
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21992 ac_status=$?
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
21996 (eval $ac_try) 2>&5
21997 ac_status=$?
21998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); }; }; then
22000
22001 { $as_echo "$as_me:$LINENO: result: yes" >&5
22002 $as_echo "yes" >&6; }
22003
22004 cat >>confdefs.h <<\_ACEOF
22005 #define HAVE_GET_LINK_COOKIE 1
22006 _ACEOF
22007
22008
22009 else
22010 $as_echo "$as_me: failed program was:" >&5
22011 sed 's/^/| /' conftest.$ac_ext >&5
22012
22013 { $as_echo "$as_me:$LINENO: result: no" >&5
22014 $as_echo "no" >&6; }
22015
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; }
22018
22019
22020 cat confdefs.h - <<_ACEOF >conftest.c
22021 /* confdefs.h. */
22022 _ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h. */
22026
22027
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 };
22035
22036 int
22037 main (void)
22038 {
22039
22040
22041 ;
22042 return 0;
22043 }
22044
22045 _ACEOF
22046
22047
22048
22049 cat - <<_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'
22059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060 (eval $ac_try) 2>&5
22061 ac_status=$?
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
22065 (eval $ac_try) 2>&5
22066 ac_status=$?
22067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); }; }; then
22069
22070 { $as_echo "$as_me:$LINENO: result: yes" >&5
22071 $as_echo "yes" >&6; }
22072
22073 cat >>confdefs.h <<\_ACEOF
22074 #define HAVE_FOLLOW_LINK_COOKIE 1
22075 _ACEOF
22076
22077
22078 else
22079 $as_echo "$as_me: failed program was:" >&5
22080 sed 's/^/| /' conftest.$ac_ext >&5
22081
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; }
22086
22087
22088 cat confdefs.h - <<_ACEOF >conftest.c
22089 /* confdefs.h. */
22090 _ACEOF
22091 cat confdefs.h >>conftest.$ac_ext
22092 cat >>conftest.$ac_ext <<_ACEOF
22093 /* end confdefs.h. */
22094
22095
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 };
22103
22104 int
22105 main (void)
22106 {
22107
22108
22109 ;
22110 return 0;
22111 }
22112
22113 _ACEOF
22114
22115
22116
22117 cat - <<_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'
22127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22128 (eval $ac_try) 2>&5
22129 ac_status=$?
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
22133 (eval $ac_try) 2>&5
22134 ac_status=$?
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
22141 cat >>confdefs.h <<\_ACEOF
22142 #define HAVE_FOLLOW_LINK_NAMEIDATA 1
22143 _ACEOF
22144
22145
22146 else
22147 $as_echo "$as_me: failed program was:" >&5
22148 sed 's/^/| /' conftest.$ac_ext >&5
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
22154
22155
22156 fi
22157
22158 rm -Rf build
22159
22160
22161
22162
22163
22164 fi
22165
22166 rm -Rf build
22167
22168
22169
22170
22171
22172
22173 fi
22174
22175 rm -Rf build
22176
22177
22178
22179
22180
22181 fi
22182
22183 rm -Rf build
22184
22185
22186
22187
22188
22189
22190 cat confdefs.h - <<_ACEOF >conftest.c
22191 /* confdefs.h. */
22192 _ACEOF
22193 cat confdefs.h >>conftest.$ac_ext
22194 cat >>conftest.$ac_ext <<_ACEOF
22195 /* end confdefs.h. */
22196
22197
22198 #if !defined(HAVE_GET_LINK_DELAYED)
22199 #error "Expecting get_link() delayed done"
22200 #endif
22201
22202 int
22203 main (void)
22204 {
22205
22206
22207 ;
22208 return 0;
22209 }
22210
22211 _ACEOF
22212
22213
22214
22215 cat - <<_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'
22225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22226 (eval $ac_try) 2>&5
22227 ac_status=$?
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
22231 (eval $ac_try) 2>&5
22232 ac_status=$?
22233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); }; }; then
22235
22236
22237 cat >>confdefs.h <<\_ACEOF
22238 #define HAVE_PUT_LINK_DELAYED 1
22239 _ACEOF
22240
22241
22242 else
22243 $as_echo "$as_me: failed program was:" >&5
22244 sed 's/^/| /' conftest.$ac_ext >&5
22245
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; }
22248
22249
22250 cat confdefs.h - <<_ACEOF >conftest.c
22251 /* confdefs.h. */
22252 _ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h. */
22256
22257
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 };
22265
22266 int
22267 main (void)
22268 {
22269
22270
22271 ;
22272 return 0;
22273 }
22274
22275 _ACEOF
22276
22277
22278
22279 cat - <<_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'
22289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22290 (eval $ac_try) 2>&5
22291 ac_status=$?
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
22295 (eval $ac_try) 2>&5
22296 ac_status=$?
22297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); }; }; then
22299
22300 { $as_echo "$as_me:$LINENO: result: yes" >&5
22301 $as_echo "yes" >&6; }
22302
22303 cat >>confdefs.h <<\_ACEOF
22304 #define HAVE_PUT_LINK_COOKIE 1
22305 _ACEOF
22306
22307
22308 else
22309 $as_echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.$ac_ext >&5
22311
22312 { $as_echo "$as_me:$LINENO: result: no" >&5
22313 $as_echo "no" >&6; }
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; }
22316
22317
22318 cat confdefs.h - <<_ACEOF >conftest.c
22319 /* confdefs.h. */
22320 _ACEOF
22321 cat confdefs.h >>conftest.$ac_ext
22322 cat >>conftest.$ac_ext <<_ACEOF
22323 /* end confdefs.h. */
22324
22325
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 };
22333
22334 int
22335 main (void)
22336 {
22337
22338
22339 ;
22340 return 0;
22341 }
22342
22343 _ACEOF
22344
22345
22346
22347 cat - <<_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'
22357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22358 (eval $ac_try) 2>&5
22359 ac_status=$?
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
22363 (eval $ac_try) 2>&5
22364 ac_status=$?
22365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); }; }; then
22367
22368 { $as_echo "$as_me:$LINENO: result: yes" >&5
22369 $as_echo "yes" >&6; }
22370
22371 cat >>confdefs.h <<\_ACEOF
22372 #define HAVE_PUT_LINK_NAMEIDATA 1
22373 _ACEOF
22374
22375
22376 else
22377 $as_echo "$as_me: failed program was:" >&5
22378 sed 's/^/| /' conftest.$ac_ext >&5
22379
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
22386 fi
22387
22388 rm -Rf build
22389
22390
22391
22392
22393
22394 fi
22395
22396 rm -Rf build
22397
22398
22399
22400
22401
22402 fi
22403
22404 rm -Rf build
22405
22406
22407
22408
22409 { $as_echo "$as_me:$LINENO: checking whether i_op->tmpfile() exists" >&5
22410 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
22411
22412
22413 cat confdefs.h - <<_ACEOF >conftest.c
22414 /* confdefs.h. */
22415 _ACEOF
22416 cat confdefs.h >>conftest.$ac_ext
22417 cat >>conftest.$ac_ext <<_ACEOF
22418 /* end confdefs.h. */
22419
22420
22421 #include <linux/fs.h>
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 };
22428
22429 int
22430 main (void)
22431 {
22432
22433
22434 ;
22435 return 0;
22436 }
22437
22438 _ACEOF
22439
22440
22441
22442 cat - <<_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'
22452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22453 (eval $ac_try) 2>&5
22454 ac_status=$?
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
22458 (eval $ac_try) 2>&5
22459 ac_status=$?
22460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); }; }; then
22462
22463 { $as_echo "$as_me:$LINENO: result: yes" >&5
22464 $as_echo "yes" >&6; }
22465
22466 cat >>confdefs.h <<\_ACEOF
22467 #define HAVE_TMPFILE 1
22468 _ACEOF
22469
22470
22471 else
22472 $as_echo "$as_me: failed program was:" >&5
22473 sed 's/^/| /' conftest.$ac_ext >&5
22474
22475 { $as_echo "$as_me:$LINENO: result: no" >&5
22476 $as_echo "no" >&6; }
22477
22478
22479
22480 fi
22481
22482 rm -Rf build
22483
22484
22485
22486
22487 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
22488 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
22489
22490
22491 cat confdefs.h - <<_ACEOF >conftest.c
22492 /* confdefs.h. */
22493 _ACEOF
22494 cat confdefs.h >>conftest.$ac_ext
22495 cat >>conftest.$ac_ext <<_ACEOF
22496 /* end confdefs.h. */
22497
22498
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 };
22505
22506 int
22507 main (void)
22508 {
22509
22510
22511 ;
22512 return 0;
22513 }
22514
22515 _ACEOF
22516
22517
22518
22519 cat - <<_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'
22529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22530 (eval $ac_try) 2>&5
22531 ac_status=$?
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
22535 (eval $ac_try) 2>&5
22536 ac_status=$?
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
22543 cat >>confdefs.h <<\_ACEOF
22544 #define HAVE_INODE_TRUNCATE_RANGE 1
22545 _ACEOF
22546
22547
22548 else
22549 $as_echo "$as_me: failed program was:" >&5
22550 sed 's/^/| /' conftest.$ac_ext >&5
22551
22552 { $as_echo "$as_me:$LINENO: result: no" >&5
22553 $as_echo "no" >&6; }
22554
22555
22556
22557 fi
22558
22559 rm -Rf build
22560
22561
22562
22563
22564 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
22565 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
22566
22567
22568 cat confdefs.h - <<_ACEOF >conftest.c
22569 /* confdefs.h. */
22570 _ACEOF
22571 cat confdefs.h >>conftest.$ac_ext
22572 cat >>conftest.$ac_ext <<_ACEOF
22573 /* end confdefs.h. */
22574
22575
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
22582 int
22583 main (void)
22584 {
22585
22586
22587 ;
22588 return 0;
22589 }
22590
22591 _ACEOF
22592
22593
22594
22595 cat - <<_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
22615
22616 { $as_echo "$as_me:$LINENO: result: yes" >&5
22617 $as_echo "yes" >&6; }
22618
22619 cat >>confdefs.h <<\_ACEOF
22620 #define HAVE_AUTOMOUNT 1
22621 _ACEOF
22622
22623
22624 else
22625 $as_echo "$as_me: failed program was:" >&5
22626 sed 's/^/| /' conftest.$ac_ext >&5
22627
22628 { $as_echo "$as_me:$LINENO: result: no" >&5
22629 $as_echo "no" >&6; }
22630
22631
22632
22633 fi
22634
22635 rm -Rf build
22636
22637
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; }
22642
22643
22644 cat confdefs.h - <<_ACEOF >conftest.c
22645 /* confdefs.h. */
22646 _ACEOF
22647 cat confdefs.h >>conftest.$ac_ext
22648 cat >>conftest.$ac_ext <<_ACEOF
22649 /* end confdefs.h. */
22650
22651
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 };
22658
22659 int
22660 main (void)
22661 {
22662
22663
22664 ;
22665 return 0;
22666 }
22667
22668 _ACEOF
22669
22670
22671
22672 cat - <<_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'
22682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683 (eval $ac_try) 2>&5
22684 ac_status=$?
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
22688 (eval $ac_try) 2>&5
22689 ac_status=$?
22690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); }; }; then
22692
22693 { $as_echo "$as_me:$LINENO: result: yes" >&5
22694 $as_echo "yes" >&6; }
22695
22696 cat >>confdefs.h <<\_ACEOF
22697 #define HAVE_ENCODE_FH_WITH_INODE 1
22698 _ACEOF
22699
22700
22701 else
22702 $as_echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22704
22705 { $as_echo "$as_me:$LINENO: result: no" >&5
22706 $as_echo "no" >&6; }
22707
22708
22709
22710 fi
22711
22712 rm -Rf build
22713
22714
22715
22716
22717 { $as_echo "$as_me:$LINENO: checking whether eops->commit_metadata() exists" >&5
22718 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
22719
22720
22721 cat confdefs.h - <<_ACEOF >conftest.c
22722 /* confdefs.h. */
22723 _ACEOF
22724 cat confdefs.h >>conftest.$ac_ext
22725 cat >>conftest.$ac_ext <<_ACEOF
22726 /* end confdefs.h. */
22727
22728
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 };
22734
22735 int
22736 main (void)
22737 {
22738
22739
22740 ;
22741 return 0;
22742 }
22743
22744 _ACEOF
22745
22746
22747
22748 cat - <<_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'
22758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22759 (eval $ac_try) 2>&5
22760 ac_status=$?
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
22764 (eval $ac_try) 2>&5
22765 ac_status=$?
22766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767 (exit $ac_status); }; }; then
22768
22769 { $as_echo "$as_me:$LINENO: result: yes" >&5
22770 $as_echo "yes" >&6; }
22771
22772 cat >>confdefs.h <<\_ACEOF
22773 #define HAVE_COMMIT_METADATA 1
22774 _ACEOF
22775
22776
22777 else
22778 $as_echo "$as_me: failed program was:" >&5
22779 sed 's/^/| /' conftest.$ac_ext >&5
22780
22781 { $as_echo "$as_me:$LINENO: result: no" >&5
22782 $as_echo "no" >&6; }
22783
22784
22785
22786 fi
22787
22788 rm -Rf build
22789
22790
22791
22792 { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
22793 $as_echo_n "checking whether clear_inode() is available... " >&6; }
22794
22795
22796
22797 cat confdefs.h - <<_ACEOF >conftest.c
22798 /* confdefs.h. */
22799 _ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h. */
22803
22804
22805 #include <linux/fs.h>
22806
22807 int
22808 main (void)
22809 {
22810
22811 clear_inode(NULL);
22812
22813 ;
22814 return 0;
22815 }
22816
22817 _ACEOF
22818
22819
22820
22821 cat - <<_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'
22831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22832 (eval $ac_try) 2>&5
22833 ac_status=$?
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
22837 (eval $ac_try) 2>&5
22838 ac_status=$?
22839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); }; }; then
22841 rc=0
22842 else
22843 $as_echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22845 rc=1
22846
22847
22848 fi
22849
22850 rm -Rf build
22851
22852
22853 if test $rc -ne 0; then :
22854
22855 { $as_echo "$as_me:$LINENO: result: no" >&5
22856 $as_echo "no" >&6; }
22857
22858 else
22859 if test "x$enable_linux_builtin" != xyes; then
22860
22861 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
22862 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22863 rc=$?
22864 if test $rc -ne 0; then
22865 export=0
22866 for file in fs/inode.c; do
22867 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
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 :
22886
22887 { $as_echo "$as_me:$LINENO: result: no" >&5
22888 $as_echo "no" >&6; }
22889
22890 else :
22891
22892 { $as_echo "$as_me:$LINENO: result: yes" >&5
22893 $as_echo "yes" >&6; }
22894
22895 cat >>confdefs.h <<\_ACEOF
22896 #define HAVE_CLEAR_INODE 1
22897 _ACEOF
22898
22899
22900 fi
22901 fi
22902
22903
22904 { $as_echo "$as_me:$LINENO: checking whether setattr_prepare() is available" >&5
22905 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
22906
22907
22908
22909 cat confdefs.h - <<_ACEOF >conftest.c
22910 /* confdefs.h. */
22911 _ACEOF
22912 cat confdefs.h >>conftest.$ac_ext
22913 cat >>conftest.$ac_ext <<_ACEOF
22914 /* end confdefs.h. */
22915
22916
22917 #include <linux/fs.h>
22918
22919 int
22920 main (void)
22921 {
22922
22923 struct dentry *dentry = NULL;
22924 struct iattr *attr = NULL;
22925 int error;
22926
22927 error = setattr_prepare(dentry, attr);
22928
22929 ;
22930 return 0;
22931 }
22932
22933 _ACEOF
22934
22935
22936
22937 cat - <<_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'
22947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22948 (eval $ac_try) 2>&5
22949 ac_status=$?
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
22953 (eval $ac_try) 2>&5
22954 ac_status=$?
22955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); }; }; then
22957 rc=0
22958 else
22959 $as_echo "$as_me: failed program was:" >&5
22960 sed 's/^/| /' conftest.$ac_ext >&5
22961 rc=1
22962
22963
22964 fi
22965
22966 rm -Rf build
22967
22968
22969 if test $rc -ne 0; then :
22970
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 :
23002
23003 { $as_echo "$as_me:$LINENO: result: no" >&5
23004 $as_echo "no" >&6; }
23005
23006 else :
23007
23008 { $as_echo "$as_me:$LINENO: result: yes" >&5
23009 $as_echo "yes" >&6; }
23010
23011 cat >>confdefs.h <<\_ACEOF
23012 #define HAVE_SETATTR_PREPARE 1
23013 _ACEOF
23014
23015
23016 fi
23017 fi
23018
23019
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
23023
23024
23025 cat confdefs.h - <<_ACEOF >conftest.c
23026 /* confdefs.h. */
23027 _ACEOF
23028 cat confdefs.h >>conftest.$ac_ext
23029 cat >>conftest.$ac_ext <<_ACEOF
23030 /* end confdefs.h. */
23031
23032
23033 #include <linux/fs.h>
23034
23035 int
23036 main (void)
23037 {
23038
23039 insert_inode_locked(NULL);
23040
23041 ;
23042 return 0;
23043 }
23044
23045 _ACEOF
23046
23047
23048
23049 cat - <<_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'
23059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23061 ac_status=$?
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
23065 (eval $ac_try) 2>&5
23066 ac_status=$?
23067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); }; }; then
23069 rc=0
23070 else
23071 $as_echo "$as_me: failed program was:" >&5
23072 sed 's/^/| /' conftest.$ac_ext >&5
23073 rc=1
23074
23075
23076 fi
23077
23078 rm -Rf build
23079
23080
23081 if test $rc -ne 0; then :
23082
23083 { $as_echo "$as_me:$LINENO: result: no" >&5
23084 $as_echo "no" >&6; }
23085
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 :
23114
23115 { $as_echo "$as_me:$LINENO: result: no" >&5
23116 $as_echo "no" >&6; }
23117
23118 else :
23119
23120 { $as_echo "$as_me:$LINENO: result: yes" >&5
23121 $as_echo "yes" >&6; }
23122
23123 cat >>confdefs.h <<\_ACEOF
23124 #define HAVE_INSERT_INODE_LOCKED 1
23125 _ACEOF
23126
23127
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
23135
23136
23137 cat confdefs.h - <<_ACEOF >conftest.c
23138 /* confdefs.h. */
23139 _ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h. */
23143
23144
23145 #include <linux/dcache.h>
23146
23147 int
23148 main (void)
23149 {
23150
23151 d_make_root(NULL);
23152
23153 ;
23154 return 0;
23155 }
23156
23157 _ACEOF
23158
23159
23160
23161 cat - <<_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'
23171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23172 (eval $ac_try) 2>&5
23173 ac_status=$?
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
23177 (eval $ac_try) 2>&5
23178 ac_status=$?
23179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); }; }; then
23181 rc=0
23182 else
23183 $as_echo "$as_me: failed program was:" >&5
23184 sed 's/^/| /' conftest.$ac_ext >&5
23185 rc=1
23186
23187
23188 fi
23189
23190 rm -Rf build
23191
23192
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
23228 $as_echo "no" >&6; }
23229
23230 else :
23231
23232 { $as_echo "$as_me:$LINENO: result: yes" >&5
23233 $as_echo "yes" >&6; }
23234
23235 cat >>confdefs.h <<\_ACEOF
23236 #define HAVE_D_MAKE_ROOT 1
23237 _ACEOF
23238
23239
23240 fi
23241 fi
23242
23243
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
23247
23248
23249 cat confdefs.h - <<_ACEOF >conftest.c
23250 /* confdefs.h. */
23251 _ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h. */
23255
23256
23257 #include <linux/dcache.h>
23258
23259 int
23260 main (void)
23261 {
23262
23263 d_obtain_alias(NULL);
23264
23265 ;
23266 return 0;
23267 }
23268
23269 _ACEOF
23270
23271
23272
23273 cat - <<_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'
23283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23284 (eval $ac_try) 2>&5
23285 ac_status=$?
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
23289 (eval $ac_try) 2>&5
23290 ac_status=$?
23291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); }; }; then
23293 rc=0
23294 else
23295 $as_echo "$as_me: failed program was:" >&5
23296 sed 's/^/| /' conftest.$ac_ext >&5
23297 rc=1
23298
23299
23300 fi
23301
23302 rm -Rf build
23303
23304
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 :
23338
23339 { $as_echo "$as_me:$LINENO: result: no" >&5
23340 $as_echo "no" >&6; }
23341
23342 else :
23343
23344 { $as_echo "$as_me:$LINENO: result: yes" >&5
23345 $as_echo "yes" >&6; }
23346
23347 cat >>confdefs.h <<\_ACEOF
23348 #define HAVE_D_OBTAIN_ALIAS 1
23349 _ACEOF
23350
23351
23352 fi
23353 fi
23354
23355
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; }
23358
23359
23360
23361 cat confdefs.h - <<_ACEOF >conftest.c
23362 /* confdefs.h. */
23363 _ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h. */
23367
23368
23369 #include <linux/dcache.h>
23370
23371 int
23372 main (void)
23373 {
23374
23375 struct inode *ip = NULL;
23376 d_prune_aliases(ip);
23377
23378 ;
23379 return 0;
23380 }
23381
23382 _ACEOF
23383
23384
23385
23386 cat - <<_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'
23396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23397 (eval $ac_try) 2>&5
23398 ac_status=$?
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
23402 (eval $ac_try) 2>&5
23403 ac_status=$?
23404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); }; }; then
23406 rc=0
23407 else
23408 $as_echo "$as_me: failed program was:" >&5
23409 sed 's/^/| /' conftest.$ac_ext >&5
23410 rc=1
23411
23412
23413 fi
23414
23415 rm -Rf build
23416
23417
23418 if test $rc -ne 0; then :
23419
23420 { $as_echo "$as_me:$LINENO: result: no" >&5
23421 $as_echo "no" >&6; }
23422
23423 else
23424 if test "x$enable_linux_builtin" != xyes; then
23425
23426 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
23427 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23428 rc=$?
23429 if test $rc -ne 0; then
23430 export=0
23431 for file in fs/dcache.c; do
23432 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
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
23452 { $as_echo "$as_me:$LINENO: result: no" >&5
23453 $as_echo "no" >&6; }
23454
23455 else :
23456
23457 { $as_echo "$as_me:$LINENO: result: yes" >&5
23458 $as_echo "yes" >&6; }
23459
23460 cat >>confdefs.h <<\_ACEOF
23461 #define HAVE_D_PRUNE_ALIASES 1
23462 _ACEOF
23463
23464
23465 fi
23466 fi
23467
23468
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; }
23471
23472
23473
23474 cat confdefs.h - <<_ACEOF >conftest.c
23475 /* confdefs.h. */
23476 _ACEOF
23477 cat confdefs.h >>conftest.$ac_ext
23478 cat >>conftest.$ac_ext <<_ACEOF
23479 /* end confdefs.h. */
23480
23481
23482 #include <linux/dcache.h>
23483
23484 int
23485 main (void)
23486 {
23487
23488 d_set_d_op(NULL, NULL);
23489
23490 ;
23491 return 0;
23492 }
23493
23494 _ACEOF
23495
23496
23497
23498 cat - <<_ACEOF >conftest.h
23499
23500 _ACEOF
23501
23502
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'
23508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23509 (eval $ac_try) 2>&5
23510 ac_status=$?
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
23514 (eval $ac_try) 2>&5
23515 ac_status=$?
23516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517 (exit $ac_status); }; }; then
23518 rc=0
23519 else
23520 $as_echo "$as_me: failed program was:" >&5
23521 sed 's/^/| /' conftest.$ac_ext >&5
23522 rc=1
23523
23524
23525 fi
23526
23527 rm -Rf build
23528
23529
23530 if test $rc -ne 0; then :
23531
23532 { $as_echo "$as_me:$LINENO: result: no" >&5
23533 $as_echo "no" >&6; }
23534
23535 else
23536 if test "x$enable_linux_builtin" != xyes; then
23537
23538 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
23539 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23540 rc=$?
23541 if test $rc -ne 0; then
23542 export=0
23543 for file in fs/dcache.c; do
23544 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
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
23564 { $as_echo "$as_me:$LINENO: result: no" >&5
23565 $as_echo "no" >&6; }
23566
23567 else :
23568
23569 { $as_echo "$as_me:$LINENO: result: yes" >&5
23570 $as_echo "yes" >&6; }
23571
23572 cat >>confdefs.h <<\_ACEOF
23573 #define HAVE_D_SET_D_OP 1
23574 _ACEOF
23575
23576
23577 fi
23578 fi
23579
23580
23581
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; }
23584
23585
23586 cat confdefs.h - <<_ACEOF >conftest.c
23587 /* confdefs.h. */
23588 _ACEOF
23589 cat confdefs.h >>conftest.$ac_ext
23590 cat >>conftest.$ac_ext <<_ACEOF
23591 /* end confdefs.h. */
23592
23593
23594 #include <linux/dcache.h>
23595
23596 int revalidate (struct dentry *dentry,
23597 struct nameidata *nidata) { return 0; }
23598
23599 static const struct dentry_operations
23600 dops __attribute__ ((unused)) = {
23601 .d_revalidate = revalidate,
23602 };
23603
23604 int
23605 main (void)
23606 {
23607
23608
23609 ;
23610 return 0;
23611 }
23612
23613 _ACEOF
23614
23615
23616
23617 cat - <<_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'
23627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23628 (eval $ac_try) 2>&5
23629 ac_status=$?
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
23633 (eval $ac_try) 2>&5
23634 ac_status=$?
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
23641 cat >>confdefs.h <<\_ACEOF
23642 #define HAVE_D_REVALIDATE_NAMEIDATA 1
23643 _ACEOF
23644
23645
23646 else
23647 $as_echo "$as_me: failed program was:" >&5
23648 sed 's/^/| /' conftest.$ac_ext >&5
23649
23650 { $as_echo "$as_me:$LINENO: result: no" >&5
23651 $as_echo "no" >&6; }
23652
23653
23654
23655 fi
23656
23657 rm -Rf build
23658
23659
23660
23661
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; }
23664
23665
23666 cat confdefs.h - <<_ACEOF >conftest.c
23667 /* confdefs.h. */
23668 _ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h. */
23672
23673
23674 #include <linux/dcache.h>
23675
23676 const struct dentry_operations test_d_op = {
23677 .d_revalidate = NULL,
23678 };
23679
23680 int
23681 main (void)
23682 {
23683
23684 struct dentry d __attribute__ ((unused));
23685
23686 d.d_op = &test_d_op;
23687
23688 ;
23689 return 0;
23690 }
23691
23692 _ACEOF
23693
23694
23695
23696 cat - <<_ACEOF >conftest.h
23697
23698 _ACEOF
23699
23700
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'
23706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23707 (eval $ac_try) 2>&5
23708 ac_status=$?
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
23712 (eval $ac_try) 2>&5
23713 ac_status=$?
23714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); }; }; then
23716
23717 { $as_echo "$as_me:$LINENO: result: yes" >&5
23718 $as_echo "yes" >&6; }
23719
23720 cat >>confdefs.h <<\_ACEOF
23721 #define HAVE_CONST_DENTRY_OPERATIONS 1
23722 _ACEOF
23723
23724
23725 else
23726 $as_echo "$as_me: failed program was:" >&5
23727 sed 's/^/| /' conftest.$ac_ext >&5
23728
23729 { $as_echo "$as_me:$LINENO: result: no" >&5
23730 $as_echo "no" >&6; }
23731
23732
23733
23734 fi
23735
23736 rm -Rf build
23737
23738
23739
23740 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
23741 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
23742
23743
23744
23745 cat confdefs.h - <<_ACEOF >conftest.c
23746 /* confdefs.h. */
23747 _ACEOF
23748 cat confdefs.h >>conftest.$ac_ext
23749 cat >>conftest.$ac_ext <<_ACEOF
23750 /* end confdefs.h. */
23751
23752
23753 #include <linux/mm.h>
23754
23755 int
23756 main (void)
23757 {
23758
23759 truncate_setsize(NULL, 0);
23760
23761 ;
23762 return 0;
23763 }
23764
23765 _ACEOF
23766
23767
23768
23769 cat - <<_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'
23779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23780 (eval $ac_try) 2>&5
23781 ac_status=$?
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
23785 (eval $ac_try) 2>&5
23786 ac_status=$?
23787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); }; }; then
23789 rc=0
23790 else
23791 $as_echo "$as_me: failed program was:" >&5
23792 sed 's/^/| /' conftest.$ac_ext >&5
23793 rc=1
23794
23795
23796 fi
23797
23798 rm -Rf build
23799
23800
23801 if test $rc -ne 0; then :
23802
23803 { $as_echo "$as_me:$LINENO: result: no" >&5
23804 $as_echo "no" >&6; }
23805
23806 else
23807 if test "x$enable_linux_builtin" != xyes; then
23808
23809 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
23810 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23811 rc=$?
23812 if test $rc -ne 0; then
23813 export=0
23814 for file in mm/truncate.c; do
23815 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
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
23835 { $as_echo "$as_me:$LINENO: result: no" >&5
23836 $as_echo "no" >&6; }
23837
23838 else :
23839
23840 { $as_echo "$as_me:$LINENO: result: yes" >&5
23841 $as_echo "yes" >&6; }
23842
23843 cat >>confdefs.h <<\_ACEOF
23844 #define HAVE_TRUNCATE_SETSIZE 1
23845 _ACEOF
23846
23847
23848 fi
23849 fi
23850
23851
23852
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; }
23855
23856
23857 cat confdefs.h - <<_ACEOF >conftest.c
23858 /* confdefs.h. */
23859 _ACEOF
23860 cat confdefs.h >>conftest.$ac_ext
23861 cat >>conftest.$ac_ext <<_ACEOF
23862 /* end confdefs.h. */
23863
23864
23865 #include <linux/security.h>
23866
23867 int
23868 main (void)
23869 {
23870
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);
23879
23880 ;
23881 return 0;
23882 }
23883
23884 _ACEOF
23885
23886
23887
23888 cat - <<_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'
23898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23899 (eval $ac_try) 2>&5
23900 ac_status=$?
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
23904 (eval $ac_try) 2>&5
23905 ac_status=$?
23906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); }; }; then
23908
23909 { $as_echo "$as_me:$LINENO: result: yes" >&5
23910 $as_echo "yes" >&6; }
23911
23912 cat >>confdefs.h <<\_ACEOF
23913 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
23914 _ACEOF
23915
23916
23917 else
23918 $as_echo "$as_me: failed program was:" >&5
23919 sed 's/^/| /' conftest.$ac_ext >&5
23920
23921 { $as_echo "$as_me:$LINENO: result: no" >&5
23922 $as_echo "no" >&6; }
23923
23924
23925
23926 fi
23927
23928 rm -Rf build
23929
23930
23931
23932
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; }
23935
23936
23937 cat confdefs.h - <<_ACEOF >conftest.c
23938 /* confdefs.h. */
23939 _ACEOF
23940 cat confdefs.h >>conftest.$ac_ext
23941 cat >>conftest.$ac_ext <<_ACEOF
23942 /* end confdefs.h. */
23943
23944
23945 #include <linux/security.h>
23946
23947 int
23948 main (void)
23949 {
23950
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);
23957
23958 ;
23959 return 0;
23960 }
23961
23962 _ACEOF
23963
23964
23965
23966 cat - <<_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'
23976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23977 (eval $ac_try) 2>&5
23978 ac_status=$?
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
23982 (eval $ac_try) 2>&5
23983 ac_status=$?
23984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); }; }; then
23986
23987 { $as_echo "$as_me:$LINENO: result: yes" >&5
23988 $as_echo "yes" >&6; }
23989
23990 cat >>confdefs.h <<\_ACEOF
23991 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
23992 _ACEOF
23993
23994
23995 else
23996 $as_echo "$as_me: failed program was:" >&5
23997 sed 's/^/| /' conftest.$ac_ext >&5
23998
23999 { $as_echo "$as_me:$LINENO: result: no" >&5
24000 $as_echo "no" >&6; }
24001
24002
24003
24004 fi
24005
24006 rm -Rf build
24007
24008
24009
24010 { $as_echo "$as_me:$LINENO: checking whether mount_nodev() is available" >&5
24011 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
24012
24013
24014
24015 cat confdefs.h - <<_ACEOF >conftest.c
24016 /* confdefs.h. */
24017 _ACEOF
24018 cat confdefs.h >>conftest.$ac_ext
24019 cat >>conftest.$ac_ext <<_ACEOF
24020 /* end confdefs.h. */
24021
24022
24023 #include <linux/fs.h>
24024
24025 int
24026 main (void)
24027 {
24028
24029 mount_nodev(NULL, 0, NULL, NULL);
24030
24031 ;
24032 return 0;
24033 }
24034
24035 _ACEOF
24036
24037
24038
24039 cat - <<_ACEOF >conftest.h
24040
24041 _ACEOF
24042
24043
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'
24049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24050 (eval $ac_try) 2>&5
24051 ac_status=$?
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
24055 (eval $ac_try) 2>&5
24056 ac_status=$?
24057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058 (exit $ac_status); }; }; then
24059 rc=0
24060 else
24061 $as_echo "$as_me: failed program was:" >&5
24062 sed 's/^/| /' conftest.$ac_ext >&5
24063 rc=1
24064
24065
24066 fi
24067
24068 rm -Rf build
24069
24070
24071 if test $rc -ne 0; then :
24072
24073 { $as_echo "$as_me:$LINENO: result: no" >&5
24074 $as_echo "no" >&6; }
24075
24076 else
24077 if test "x$enable_linux_builtin" != xyes; then
24078
24079 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
24080 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24081 rc=$?
24082 if test $rc -ne 0; then
24083 export=0
24084 for file in fs/super.c; do
24085 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
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
24105 { $as_echo "$as_me:$LINENO: result: no" >&5
24106 $as_echo "no" >&6; }
24107
24108 else :
24109
24110 { $as_echo "$as_me:$LINENO: result: yes" >&5
24111 $as_echo "yes" >&6; }
24112
24113 cat >>confdefs.h <<\_ACEOF
24114 #define HAVE_MOUNT_NODEV 1
24115 _ACEOF
24116
24117
24118 fi
24119 fi
24120
24121
24122
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; }
24125
24126
24127 cat confdefs.h - <<_ACEOF >conftest.c
24128 /* confdefs.h. */
24129 _ACEOF
24130 cat confdefs.h >>conftest.$ac_ext
24131 cat >>conftest.$ac_ext <<_ACEOF
24132 /* end confdefs.h. */
24133
24134
24135 #include <linux/fs.h>
24136
24137 int shrink(struct shrinker *s, struct shrink_control *sc)
24138 { return 0; }
24139
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,
24145 };
24146
24147 int
24148 main (void)
24149 {
24150
24151
24152 ;
24153 return 0;
24154 }
24155
24156 _ACEOF
24157
24158
24159
24160 cat - <<_ACEOF >conftest.h
24161
24162 _ACEOF
24163
24164
24165 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24166 echo "obj-m := conftest.o" >build/Makefile
24167 modpost_flag=''
24168 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
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'
24170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24171 (eval $ac_try) 2>&5
24172 ac_status=$?
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
24176 (eval $ac_try) 2>&5
24177 ac_status=$?
24178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); }; }; then
24180
24181 { $as_echo "$as_me:$LINENO: result: yes" >&5
24182 $as_echo "yes" >&6; }
24183
24184 cat >>confdefs.h <<\_ACEOF
24185 #define HAVE_SHRINK 1
24186 _ACEOF
24187
24188
24189
24190 else
24191 $as_echo "$as_me: failed program was:" >&5
24192 sed 's/^/| /' conftest.$ac_ext >&5
24193
24194 { $as_echo "$as_me:$LINENO: result: no" >&5
24195 $as_echo "no" >&6; }
24196
24197
24198
24199 fi
24200
24201 rm -Rf build
24202
24203
24204
24205
24206 { $as_echo "$as_me:$LINENO: checking whether shrink_control has nid" >&5
24207 $as_echo_n "checking whether shrink_control has nid... " >&6; }
24208
24209
24210 cat confdefs.h - <<_ACEOF >conftest.c
24211 /* confdefs.h. */
24212 _ACEOF
24213 cat confdefs.h >>conftest.$ac_ext
24214 cat >>conftest.$ac_ext <<_ACEOF
24215 /* end confdefs.h. */
24216
24217
24218 #include <linux/fs.h>
24219
24220 int
24221 main (void)
24222 {
24223
24224 struct shrink_control sc __attribute__ ((unused));
24225 unsigned long scnidsize __attribute__ ((unused)) =
24226 sizeof(sc.nid);
24227
24228 ;
24229 return 0;
24230 }
24231
24232 _ACEOF
24233
24234
24235
24236 cat - <<_ACEOF >conftest.h
24237
24238 _ACEOF
24239
24240
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'
24246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24247 (eval $ac_try) 2>&5
24248 ac_status=$?
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
24252 (eval $ac_try) 2>&5
24253 ac_status=$?
24254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); }; }; then
24256
24257 { $as_echo "$as_me:$LINENO: result: yes" >&5
24258 $as_echo "yes" >&6; }
24259
24260 cat >>confdefs.h <<\_ACEOF
24261 #define SHRINK_CONTROL_HAS_NID 1
24262 _ACEOF
24263
24264
24265 else
24266 $as_echo "$as_me: failed program was:" >&5
24267 sed 's/^/| /' conftest.$ac_ext >&5
24268
24269 { $as_echo "$as_me:$LINENO: result: no" >&5
24270 $as_echo "no" >&6; }
24271
24272
24273
24274 fi
24275
24276 rm -Rf build
24277
24278
24279
24280
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; }
24283
24284
24285 cat confdefs.h - <<_ACEOF >conftest.c
24286 /* confdefs.h. */
24287 _ACEOF
24288 cat confdefs.h >>conftest.$ac_ext
24289 cat >>conftest.$ac_ext <<_ACEOF
24290 /* end confdefs.h. */
24291
24292
24293 #include <linux/fs.h>
24294
24295 int
24296 main (void)
24297 {
24298
24299 struct super_block sb __attribute__ ((unused));
24300
24301 INIT_LIST_HEAD(&sb.s_instances);
24302
24303 ;
24304 return 0;
24305 }
24306
24307 _ACEOF
24308
24309
24310
24311 cat - <<_ACEOF >conftest.h
24312
24313 _ACEOF
24314
24315
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'
24321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24322 (eval $ac_try) 2>&5
24323 ac_status=$?
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
24327 (eval $ac_try) 2>&5
24328 ac_status=$?
24329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; }; then
24331
24332 { $as_echo "$as_me:$LINENO: result: yes" >&5
24333 $as_echo "yes" >&6; }
24334
24335 cat >>confdefs.h <<\_ACEOF
24336 #define HAVE_S_INSTANCES_LIST_HEAD 1
24337 _ACEOF
24338
24339
24340 else
24341 $as_echo "$as_me: failed program was:" >&5
24342 sed 's/^/| /' conftest.$ac_ext >&5
24343
24344 { $as_echo "$as_me:$LINENO: result: no" >&5
24345 $as_echo "no" >&6; }
24346
24347
24348
24349 fi
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; }
24357
24358
24359 cat confdefs.h - <<_ACEOF >conftest.c
24360 /* confdefs.h. */
24361 _ACEOF
24362 cat confdefs.h >>conftest.$ac_ext
24363 cat >>conftest.$ac_ext <<_ACEOF
24364 /* end confdefs.h. */
24365
24366
24367 #include <linux/fs.h>
24368
24369 int
24370 main (void)
24371 {
24372
24373 struct super_block sb __attribute__ ((unused));
24374 sb.s_d_op = NULL;
24375
24376 ;
24377 return 0;
24378 }
24379
24380 _ACEOF
24381
24382
24383
24384 cat - <<_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'
24394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24395 (eval $ac_try) 2>&5
24396 ac_status=$?
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
24400 (eval $ac_try) 2>&5
24401 ac_status=$?
24402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); }; }; then
24404
24405 { $as_echo "$as_me:$LINENO: result: yes" >&5
24406 $as_echo "yes" >&6; }
24407
24408 cat >>confdefs.h <<\_ACEOF
24409 #define HAVE_S_D_OP 1
24410 _ACEOF
24411
24412
24413 else
24414 $as_echo "$as_me: failed program was:" >&5
24415 sed 's/^/| /' conftest.$ac_ext >&5
24416
24417 { $as_echo "$as_me:$LINENO: result: no" >&5
24418 $as_echo "no" >&6; }
24419
24420
24421
24422 fi
24423
24424 rm -Rf build
24425
24426
24427
24428
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; }
24431
24432
24433
24434 cat confdefs.h - <<_ACEOF >conftest.c
24435 /* confdefs.h. */
24436 _ACEOF
24437 cat confdefs.h >>conftest.$ac_ext
24438 cat >>conftest.$ac_ext <<_ACEOF
24439 /* end confdefs.h. */
24440
24441
24442 #include <linux/fs.h>
24443 struct super_block sb;
24444
24445 int
24446 main (void)
24447 {
24448
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));
24453
24454 ;
24455 return 0;
24456 }
24457
24458 _ACEOF
24459
24460
24461
24462 cat - <<_ACEOF >conftest.h
24463
24464 _ACEOF
24465
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'
24472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473 (eval $ac_try) 2>&5
24474 ac_status=$?
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
24478 (eval $ac_try) 2>&5
24479 ac_status=$?
24480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481 (exit $ac_status); }; }; then
24482 rc=0
24483 else
24484 $as_echo "$as_me: failed program was:" >&5
24485 sed 's/^/| /' conftest.$ac_ext >&5
24486 rc=1
24487
24488
24489 fi
24490
24491 rm -Rf build
24492
24493
24494 if test $rc -ne 0; then :
24495
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; }
24500
24501
24502
24503 cat confdefs.h - <<_ACEOF >conftest.c
24504 /* confdefs.h. */
24505 _ACEOF
24506 cat confdefs.h >>conftest.$ac_ext
24507 cat >>conftest.$ac_ext <<_ACEOF
24508 /* end confdefs.h. */
24509
24510
24511 #include <linux/backing-dev.h>
24512 struct backing_dev_info bdi;
24513
24514 int
24515 main (void)
24516 {
24517
24518 char *name = "bdi";
24519 int error __attribute__((unused)) =
24520 bdi_setup_and_register(&bdi, name);
24521
24522 ;
24523 return 0;
24524 }
24525
24526 _ACEOF
24527
24528
24529
24530 cat - <<_ACEOF >conftest.h
24531
24532 _ACEOF
24533
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'
24540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24541 (eval $ac_try) 2>&5
24542 ac_status=$?
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
24546 (eval $ac_try) 2>&5
24547 ac_status=$?
24548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); }; }; then
24550 rc=0
24551 else
24552 $as_echo "$as_me: failed program was:" >&5
24553 sed 's/^/| /' conftest.$ac_ext >&5
24554 rc=1
24555
24556
24557 fi
24558
24559 rm -Rf build
24560
24561
24562 if test $rc -ne 0; then :
24563
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; }
24568
24569
24570
24571 cat confdefs.h - <<_ACEOF >conftest.c
24572 /* confdefs.h. */
24573 _ACEOF
24574 cat confdefs.h >>conftest.$ac_ext
24575 cat >>conftest.$ac_ext <<_ACEOF
24576 /* end confdefs.h. */
24577
24578
24579 #include <linux/backing-dev.h>
24580 struct backing_dev_info bdi;
24581
24582 int
24583 main (void)
24584 {
24585
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);
24590
24591 ;
24592 return 0;
24593 }
24594
24595 _ACEOF
24596
24597
24598
24599 cat - <<_ACEOF >conftest.h
24600
24601 _ACEOF
24602
24603
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'
24609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24610 (eval $ac_try) 2>&5
24611 ac_status=$?
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
24615 (eval $ac_try) 2>&5
24616 ac_status=$?
24617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618 (exit $ac_status); }; }; then
24619 rc=0
24620 else
24621 $as_echo "$as_me: failed program was:" >&5
24622 sed 's/^/| /' conftest.$ac_ext >&5
24623 rc=1
24624
24625
24626 fi
24627
24628 rm -Rf build
24629
24630
24631 if test $rc -ne 0; then :
24632
24633 { $as_echo "$as_me:$LINENO: result: no" >&5
24634 $as_echo "no" >&6; }
24635
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
24661
24662 fi
24663 if test $rc -ne 0; then :
24664
24665 { $as_echo "$as_me:$LINENO: result: no" >&5
24666 $as_echo "no" >&6; }
24667
24668 else :
24669
24670 { $as_echo "$as_me:$LINENO: result: yes" >&5
24671 $as_echo "yes" >&6; }
24672
24673 cat >>confdefs.h <<\_ACEOF
24674 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
24675 _ACEOF
24676
24677
24678 fi
24679 fi
24680
24681
24682 else
24683 if test "x$enable_linux_builtin" != xyes; then
24684
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
24718 cat confdefs.h - <<_ACEOF >conftest.c
24719 /* confdefs.h. */
24720 _ACEOF
24721 cat confdefs.h >>conftest.$ac_ext
24722 cat >>conftest.$ac_ext <<_ACEOF
24723 /* end confdefs.h. */
24724
24725
24726 #include <linux/backing-dev.h>
24727 struct backing_dev_info bdi;
24728
24729 int
24730 main (void)
24731 {
24732
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);
24737
24738 ;
24739 return 0;
24740 }
24741
24742 _ACEOF
24743
24744
24745
24746 cat - <<_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'
24756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24757 (eval $ac_try) 2>&5
24758 ac_status=$?
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
24762 (eval $ac_try) 2>&5
24763 ac_status=$?
24764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765 (exit $ac_status); }; }; then
24766 rc=0
24767 else
24768 $as_echo "$as_me: failed program was:" >&5
24769 sed 's/^/| /' conftest.$ac_ext >&5
24770 rc=1
24771
24772
24773 fi
24774
24775 rm -Rf build
24776
24777
24778 if test $rc -ne 0; then :
24779
24780 { $as_echo "$as_me:$LINENO: result: no" >&5
24781 $as_echo "no" >&6; }
24782
24783 else
24784 if test "x$enable_linux_builtin" != xyes; then
24785
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
24808
24809 fi
24810 if test $rc -ne 0; then :
24811
24812 { $as_echo "$as_me:$LINENO: result: no" >&5
24813 $as_echo "no" >&6; }
24814
24815 else :
24816
24817 { $as_echo "$as_me:$LINENO: result: yes" >&5
24818 $as_echo "yes" >&6; }
24819
24820 cat >>confdefs.h <<\_ACEOF
24821 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
24822 _ACEOF
24823
24824
24825 fi
24826 fi
24827
24828
24829 else :
24830
24831 { $as_echo "$as_me:$LINENO: result: yes" >&5
24832 $as_echo "yes" >&6; }
24833
24834 cat >>confdefs.h <<\_ACEOF
24835 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
24836 _ACEOF
24837
24838
24839 fi
24840 fi
24841
24842
24843 else
24844 if test "x$enable_linux_builtin" != xyes; then
24845
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
24868
24869 fi
24870 if test $rc -ne 0; then :
24871
24872 { $as_echo "$as_me:$LINENO: result: no" >&5
24873 $as_echo "no" >&6; }
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; }
24876
24877
24878
24879 cat confdefs.h - <<_ACEOF >conftest.c
24880 /* confdefs.h. */
24881 _ACEOF
24882 cat confdefs.h >>conftest.$ac_ext
24883 cat >>conftest.$ac_ext <<_ACEOF
24884 /* end confdefs.h. */
24885
24886
24887 #include <linux/backing-dev.h>
24888 struct backing_dev_info bdi;
24889
24890 int
24891 main (void)
24892 {
24893
24894 char *name = "bdi";
24895 int error __attribute__((unused)) =
24896 bdi_setup_and_register(&bdi, name);
24897
24898 ;
24899 return 0;
24900 }
24901
24902 _ACEOF
24903
24904
24905
24906 cat - <<_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'
24916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24917 (eval $ac_try) 2>&5
24918 ac_status=$?
24919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24922 (eval $ac_try) 2>&5
24923 ac_status=$?
24924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); }; }; then
24926 rc=0
24927 else
24928 $as_echo "$as_me: failed program was:" >&5
24929 sed 's/^/| /' conftest.$ac_ext >&5
24930 rc=1
24931
24932
24933 fi
24934
24935 rm -Rf build
24936
24937
24938 if test $rc -ne 0; then :
24939
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; }
24944
24945
24946
24947 cat confdefs.h - <<_ACEOF >conftest.c
24948 /* confdefs.h. */
24949 _ACEOF
24950 cat confdefs.h >>conftest.$ac_ext
24951 cat >>conftest.$ac_ext <<_ACEOF
24952 /* end confdefs.h. */
24953
24954
24955 #include <linux/backing-dev.h>
24956 struct backing_dev_info bdi;
24957
24958 int
24959 main (void)
24960 {
24961
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);
24966
24967 ;
24968 return 0;
24969 }
24970
24971 _ACEOF
24972
24973
24974
24975 cat - <<_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'
24985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24986 (eval $ac_try) 2>&5
24987 ac_status=$?
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
24991 (eval $ac_try) 2>&5
24992 ac_status=$?
24993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); }; }; then
24995 rc=0
24996 else
24997 $as_echo "$as_me: failed program was:" >&5
24998 sed 's/^/| /' conftest.$ac_ext >&5
24999 rc=1
25000
25001
25002 fi
25003
25004 rm -Rf build
25005
25006
25007 if test $rc -ne 0; then :
25008
25009 { $as_echo "$as_me:$LINENO: result: no" >&5
25010 $as_echo "no" >&6; }
25011
25012 else
25013 if test "x$enable_linux_builtin" != xyes; then
25014
25015 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25016 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25017 rc=$?
25018 if test $rc -ne 0; then
25019 export=0
25020 for file in mm/backing-dev.c; do
25021 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
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
25041 { $as_echo "$as_me:$LINENO: result: no" >&5
25042 $as_echo "no" >&6; }
25043
25044 else :
25045
25046 { $as_echo "$as_me:$LINENO: result: yes" >&5
25047 $as_echo "yes" >&6; }
25048
25049 cat >>confdefs.h <<\_ACEOF
25050 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25051 _ACEOF
25052
25053
25054 fi
25055 fi
25056
25057
25058 else
25059 if test "x$enable_linux_builtin" != xyes; then
25060
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
25083
25084 fi
25085 if test $rc -ne 0; then :
25086
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; }
25091
25092
25093
25094 cat confdefs.h - <<_ACEOF >conftest.c
25095 /* confdefs.h. */
25096 _ACEOF
25097 cat confdefs.h >>conftest.$ac_ext
25098 cat >>conftest.$ac_ext <<_ACEOF
25099 /* end confdefs.h. */
25100
25101
25102 #include <linux/backing-dev.h>
25103 struct backing_dev_info bdi;
25104
25105 int
25106 main (void)
25107 {
25108
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);
25113
25114 ;
25115 return 0;
25116 }
25117
25118 _ACEOF
25119
25120
25121
25122 cat - <<_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'
25132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25133 (eval $ac_try) 2>&5
25134 ac_status=$?
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
25138 (eval $ac_try) 2>&5
25139 ac_status=$?
25140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); }; }; then
25142 rc=0
25143 else
25144 $as_echo "$as_me: failed program was:" >&5
25145 sed 's/^/| /' conftest.$ac_ext >&5
25146 rc=1
25147
25148
25149 fi
25150
25151 rm -Rf build
25152
25153
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
25196 cat >>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
25210 cat >>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
25224 cat >>confdefs.h <<\_ACEOF
25225 #define HAVE_SUPER_SETUP_BDI_NAME 1
25226 _ACEOF
25227
25228
25229 fi
25230 fi
25231
25232
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; }
25236
25237
25238 cat confdefs.h - <<_ACEOF >conftest.c
25239 /* confdefs.h. */
25240 _ACEOF
25241 cat confdefs.h >>conftest.$ac_ext
25242 cat >>conftest.$ac_ext <<_ACEOF
25243 /* end confdefs.h. */
25244
25245
25246 #include <linux/fs.h>
25247
25248 int
25249 main (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
25264 cat - <<_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
25288 cat >>confdefs.h <<\_ACEOF
25289 #define HAVE_SET_NLINK 1
25290 _ACEOF
25291
25292
25293 else
25294 $as_echo "$as_me: failed program was:" >&5
25295 sed 's/^/| /' conftest.$ac_ext >&5
25296
25297 { $as_echo "$as_me:$LINENO: result: no" >&5
25298 $as_echo "no" >&6; }
25299
25300
25301
25302 fi
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
25315 cat confdefs.h - <<_ACEOF >conftest.c
25316 /* confdefs.h. */
25317 _ACEOF
25318 cat confdefs.h >>conftest.$ac_ext
25319 cat >>conftest.$ac_ext <<_ACEOF
25320 /* end confdefs.h. */
25321
25322
25323 #include <linux/blkdev.h>
25324 #include <linux/elevator.h>
25325
25326 int
25327 main (void)
25328 {
25329
25330 int ret;
25331 struct request_queue *q = NULL;
25332 char *elevator = NULL;
25333 ret = elevator_change(q, elevator);
25334
25335 ;
25336 return 0;
25337 }
25338
25339 _ACEOF
25340
25341
25342
25343 cat - <<_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'
25353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25354 (eval $ac_try) 2>&5
25355 ac_status=$?
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
25359 (eval $ac_try) 2>&5
25360 ac_status=$?
25361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); }; }; then
25363
25364 { $as_echo "$as_me:$LINENO: result: yes" >&5
25365 $as_echo "yes" >&6; }
25366
25367 cat >>confdefs.h <<\_ACEOF
25368 #define HAVE_ELEVATOR_CHANGE 1
25369 _ACEOF
25370
25371
25372 else
25373 $as_echo "$as_me: failed program was:" >&5
25374 sed 's/^/| /' conftest.$ac_ext >&5
25375
25376 { $as_echo "$as_me:$LINENO: result: no" >&5
25377 $as_echo "no" >&6; }
25378
25379
25380
25381 fi
25382
25383 rm -Rf build
25384
25385
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
25392 cat confdefs.h - <<_ACEOF >conftest.c
25393 /* confdefs.h. */
25394 _ACEOF
25395 cat confdefs.h >>conftest.$ac_ext
25396 cat >>conftest.$ac_ext <<_ACEOF
25397 /* end confdefs.h. */
25398
25399
25400 #include <linux/fs.h>
25401
25402 int
25403 main (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
25421 cat - <<_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
25445 cat >>confdefs.h <<\_ACEOF
25446 #define HAVE_5ARG_SGET 1
25447 _ACEOF
25448
25449
25450 else
25451 $as_echo "$as_me: failed program was:" >&5
25452 sed 's/^/| /' conftest.$ac_ext >&5
25453
25454 { $as_echo "$as_me:$LINENO: result: no" >&5
25455 $as_echo "no" >&6; }
25456
25457
25458
25459 fi
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; }
25467
25468
25469
25470 cat confdefs.h - <<_ACEOF >conftest.c
25471 /* confdefs.h. */
25472 _ACEOF
25473 cat confdefs.h >>conftest.$ac_ext
25474 cat >>conftest.$ac_ext <<_ACEOF
25475 /* end confdefs.h. */
25476
25477
25478 #include <linux/fs.h>
25479
25480 int
25481 main (void)
25482 {
25483
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;
25488
25489 lseek_execute(fp, ip, offset, maxsize);
25490
25491 ;
25492 return 0;
25493 }
25494
25495 _ACEOF
25496
25497
25498
25499 cat - <<_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'
25509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25510 (eval $ac_try) 2>&5
25511 ac_status=$?
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
25515 (eval $ac_try) 2>&5
25516 ac_status=$?
25517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); }; }; then
25519 rc=0
25520 else
25521 $as_echo "$as_me: failed program was:" >&5
25522 sed 's/^/| /' conftest.$ac_ext >&5
25523 rc=1
25524
25525
25526 fi
25527
25528 rm -Rf build
25529
25530
25531 if test $rc -ne 0; then :
25532
25533 { $as_echo "$as_me:$LINENO: result: no" >&5
25534 $as_echo "no" >&6; }
25535
25536 else
25537 if test "x$enable_linux_builtin" != xyes; then
25538
25539 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
25540 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25541 rc=$?
25542 if test $rc -ne 0; then
25543 export=0
25544 for file in fs/read_write.c; do
25545 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
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
25565 { $as_echo "$as_me:$LINENO: result: no" >&5
25566 $as_echo "no" >&6; }
25567
25568 else :
25569
25570 { $as_echo "$as_me:$LINENO: result: yes" >&5
25571 $as_echo "yes" >&6; }
25572
25573 cat >>confdefs.h <<\_ACEOF
25574 #define HAVE_LSEEK_EXECUTE 1
25575 _ACEOF
25576
25577
25578 fi
25579 fi
25580
25581
25582
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; }
25585
25586
25587 cat confdefs.h - <<_ACEOF >conftest.c
25588 /* confdefs.h. */
25589 _ACEOF
25590 cat confdefs.h >>conftest.$ac_ext
25591 cat >>conftest.$ac_ext <<_ACEOF
25592 /* end confdefs.h. */
25593
25594
25595 #include <linux/fs.h>
25596 int iterate(struct file *filp, struct dir_context * context)
25597 { return 0; }
25598
25599 static const struct file_operations fops
25600 __attribute__ ((unused)) = {
25601 .iterate_shared = iterate,
25602 };
25603
25604 int
25605 main (void)
25606 {
25607
25608
25609 ;
25610 return 0;
25611 }
25612
25613 _ACEOF
25614
25615
25616
25617 cat - <<_ACEOF >conftest.h
25618
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
25641 cat >>confdefs.h <<\_ACEOF
25642 #define HAVE_VFS_ITERATE_SHARED 1
25643 _ACEOF
25644
25645
25646 else
25647 $as_echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.$ac_ext >&5
25649
25650 { $as_echo "$as_me:$LINENO: result: no" >&5
25651 $as_echo "no" >&6; }
25652
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
25657 cat confdefs.h - <<_ACEOF >conftest.c
25658 /* confdefs.h. */
25659 _ACEOF
25660 cat confdefs.h >>conftest.$ac_ext
25661 cat >>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
25674 int
25675 main (void)
25676 {
25677
25678
25679 ;
25680 return 0;
25681 }
25682
25683 _ACEOF
25684
25685
25686
25687 cat - <<_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
25711 cat >>confdefs.h <<\_ACEOF
25712 #define HAVE_VFS_ITERATE 1
25713 _ACEOF
25714
25715
25716 else
25717 $as_echo "$as_me: failed program was:" >&5
25718 sed '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
25727 cat confdefs.h - <<_ACEOF >conftest.c
25728 /* confdefs.h. */
25729 _ACEOF
25730 cat confdefs.h >>conftest.$ac_ext
25731 cat >>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
25744 int
25745 main (void)
25746 {
25747
25748
25749 ;
25750 return 0;
25751 }
25752
25753 _ACEOF
25754
25755
25756
25757 cat - <<_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
25781 cat >>confdefs.h <<\_ACEOF
25782 #define HAVE_VFS_READDIR 1
25783 _ACEOF
25784
25785
25786 else
25787 $as_echo "$as_me: failed program was:" >&5
25788 sed '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
25794
25795
25796 fi
25797
25798 rm -Rf build
25799
25800
25801
25802
25803
25804 fi
25805
25806 rm -Rf build
25807
25808
25809
25810
25811
25812 fi
25813
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
25822 cat confdefs.h - <<_ACEOF >conftest.c
25823 /* confdefs.h. */
25824 _ACEOF
25825 cat confdefs.h >>conftest.$ac_ext
25826 cat >>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
25843 int
25844 main (void)
25845 {
25846
25847
25848 ;
25849 return 0;
25850 }
25851
25852 _ACEOF
25853
25854
25855
25856 cat - <<_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
25880 cat >>confdefs.h <<\_ACEOF
25881 #define HAVE_VFS_RW_ITERATE 1
25882 _ACEOF
25883
25884
25885 { $as_echo "$as_me:$LINENO: checking whether new_sync_read() is available" >&5
25886 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
25887
25888
25889 cat confdefs.h - <<_ACEOF >conftest.c
25890 /* confdefs.h. */
25891 _ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h. */
25895
25896
25897 #include <linux/fs.h>
25898
25899 int
25900 main (void)
25901 {
25902
25903 new_sync_read(NULL, NULL, 0, NULL);
25904
25905 ;
25906 return 0;
25907 }
25908
25909 _ACEOF
25910
25911
25912
25913 cat - <<_ACEOF >conftest.h
25914
25915 _ACEOF
25916
25917
25918 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25919 echo "obj-m := conftest.o" >build/Makefile
25920 modpost_flag=''
25921 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25922 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25924 (eval $ac_try) 2>&5
25925 ac_status=$?
25926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25929 (eval $ac_try) 2>&5
25930 ac_status=$?
25931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25932 (exit $ac_status); }; }; then
25933
25934 { $as_echo "$as_me:$LINENO: result: yes" >&5
25935 $as_echo "yes" >&6; }
25936
25937 cat >>confdefs.h <<\_ACEOF
25938 #define HAVE_NEW_SYNC_READ 1
25939 _ACEOF
25940
25941
25942 else
25943 $as_echo "$as_me: failed program was:" >&5
25944 sed 's/^/| /' conftest.$ac_ext >&5
25945
25946 { $as_echo "$as_me:$LINENO: result: no" >&5
25947 $as_echo "no" >&6; }
25948
25949
25950
25951 fi
25952
25953 rm -Rf build
25954
25955
25956
25957
25958 else
25959 $as_echo "$as_me: failed program was:" >&5
25960 sed 's/^/| /' conftest.$ac_ext >&5
25961
25962 { $as_echo "$as_me:$LINENO: result: no" >&5
25963 $as_echo "no" >&6; }
25964
25965
25966
25967 fi
25968
25969 rm -Rf build
25970
25971
25972
25973 { $as_echo "$as_me:$LINENO: checking whether generic_write_checks() takes kiocb" >&5
25974 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
25975
25976
25977 cat confdefs.h - <<_ACEOF >conftest.c
25978 /* confdefs.h. */
25979 _ACEOF
25980 cat confdefs.h >>conftest.$ac_ext
25981 cat >>conftest.$ac_ext <<_ACEOF
25982 /* end confdefs.h. */
25983
25984
25985 #include <linux/fs.h>
25986
25987
25988 int
25989 main (void)
25990 {
25991
25992 struct kiocb *iocb = NULL;
25993 struct iov_iter *iov = NULL;
25994 generic_write_checks(iocb, iov);
25995
25996 ;
25997 return 0;
25998 }
25999
26000 _ACEOF
26001
26002
26003
26004 cat - <<_ACEOF >conftest.h
26005
26006 _ACEOF
26007
26008
26009 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26010 echo "obj-m := conftest.o" >build/Makefile
26011 modpost_flag=''
26012 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26013 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26015 (eval $ac_try) 2>&5
26016 ac_status=$?
26017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26020 (eval $ac_try) 2>&5
26021 ac_status=$?
26022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26023 (exit $ac_status); }; }; then
26024
26025 { $as_echo "$as_me:$LINENO: result: yes" >&5
26026 $as_echo "yes" >&6; }
26027
26028 cat >>confdefs.h <<\_ACEOF
26029 #define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1
26030 _ACEOF
26031
26032
26033 else
26034 $as_echo "$as_me: failed program was:" >&5
26035 sed 's/^/| /' conftest.$ac_ext >&5
26036
26037 { $as_echo "$as_me:$LINENO: result: no" >&5
26038 $as_echo "no" >&6; }
26039
26040
26041
26042 fi
26043
26044 rm -Rf build
26045
26046
26047
26048
26049 { $as_echo "$as_me:$LINENO: checking whether kmap_atomic wants 1 args" >&5
26050 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
26051
26052
26053 cat confdefs.h - <<_ACEOF >conftest.c
26054 /* confdefs.h. */
26055 _ACEOF
26056 cat confdefs.h >>conftest.$ac_ext
26057 cat >>conftest.$ac_ext <<_ACEOF
26058 /* end confdefs.h. */
26059
26060
26061 #include <linux/pagemap.h>
26062
26063 int
26064 main (void)
26065 {
26066
26067 struct page page;
26068 kmap_atomic(&page);
26069
26070 ;
26071 return 0;
26072 }
26073
26074 _ACEOF
26075
26076
26077
26078 cat - <<_ACEOF >conftest.h
26079
26080 _ACEOF
26081
26082
26083 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26084 echo "obj-m := conftest.o" >build/Makefile
26085 modpost_flag=''
26086 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26087 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26089 (eval $ac_try) 2>&5
26090 ac_status=$?
26091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094 (eval $ac_try) 2>&5
26095 ac_status=$?
26096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); }; }; then
26098
26099 { $as_echo "$as_me:$LINENO: result: yes" >&5
26100 $as_echo "yes" >&6; }
26101
26102 cat >>confdefs.h <<\_ACEOF
26103 #define HAVE_1ARG_KMAP_ATOMIC 1
26104 _ACEOF
26105
26106
26107 else
26108 $as_echo "$as_me: failed program was:" >&5
26109 sed 's/^/| /' conftest.$ac_ext >&5
26110
26111 { $as_echo "$as_me:$LINENO: result: no" >&5
26112 $as_echo "no" >&6; }
26113
26114
26115
26116 fi
26117
26118 rm -Rf build
26119
26120
26121
26122
26123 { $as_echo "$as_me:$LINENO: checking whether follow_down_one() is available" >&5
26124 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
26125
26126
26127 cat confdefs.h - <<_ACEOF >conftest.c
26128 /* confdefs.h. */
26129 _ACEOF
26130 cat confdefs.h >>conftest.$ac_ext
26131 cat >>conftest.$ac_ext <<_ACEOF
26132 /* end confdefs.h. */
26133
26134
26135 #include <linux/namei.h>
26136
26137 int
26138 main (void)
26139 {
26140
26141 struct path *p = NULL;
26142 follow_down_one(p);
26143
26144 ;
26145 return 0;
26146 }
26147
26148 _ACEOF
26149
26150
26151
26152 cat - <<_ACEOF >conftest.h
26153
26154 _ACEOF
26155
26156
26157 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26158 echo "obj-m := conftest.o" >build/Makefile
26159 modpost_flag=''
26160 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26161 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26163 (eval $ac_try) 2>&5
26164 ac_status=$?
26165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26168 (eval $ac_try) 2>&5
26169 ac_status=$?
26170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); }; }; then
26172
26173 { $as_echo "$as_me:$LINENO: result: yes" >&5
26174 $as_echo "yes" >&6; }
26175
26176 cat >>confdefs.h <<\_ACEOF
26177 #define HAVE_FOLLOW_DOWN_ONE 1
26178 _ACEOF
26179
26180
26181 else
26182 $as_echo "$as_me: failed program was:" >&5
26183 sed 's/^/| /' conftest.$ac_ext >&5
26184
26185 { $as_echo "$as_me:$LINENO: result: no" >&5
26186 $as_echo "no" >&6; }
26187
26188
26189
26190 fi
26191
26192 rm -Rf build
26193
26194
26195
26196
26197 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns int" >&5
26198 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
26199
26200
26201 cat confdefs.h - <<_ACEOF >conftest.c
26202 /* confdefs.h. */
26203 _ACEOF
26204 cat confdefs.h >>conftest.$ac_ext
26205 cat >>conftest.$ac_ext <<_ACEOF
26206 /* end confdefs.h. */
26207
26208
26209 #include <linux/blkdev.h>
26210
26211 int make_request(struct request_queue *q, struct bio *bio)
26212 {
26213 return (0);
26214 }
26215
26216 int
26217 main (void)
26218 {
26219
26220 blk_queue_make_request(NULL, &make_request);
26221
26222 ;
26223 return 0;
26224 }
26225
26226 _ACEOF
26227
26228
26229
26230 cat - <<_ACEOF >conftest.h
26231
26232 _ACEOF
26233
26234
26235 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26236 echo "obj-m := conftest.o" >build/Makefile
26237 modpost_flag=''
26238 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26239 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26241 (eval $ac_try) 2>&5
26242 ac_status=$?
26243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26246 (eval $ac_try) 2>&5
26247 ac_status=$?
26248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249 (exit $ac_status); }; }; then
26250
26251 { $as_echo "$as_me:$LINENO: result: yes" >&5
26252 $as_echo "yes" >&6; }
26253
26254 cat >>confdefs.h <<\_ACEOF
26255 #define MAKE_REQUEST_FN_RET int
26256 _ACEOF
26257
26258
26259 cat >>confdefs.h <<\_ACEOF
26260 #define HAVE_MAKE_REQUEST_FN_RET_INT 1
26261 _ACEOF
26262
26263
26264 else
26265 $as_echo "$as_me: failed program was:" >&5
26266 sed 's/^/| /' conftest.$ac_ext >&5
26267
26268 { $as_echo "$as_me:$LINENO: result: no" >&5
26269 $as_echo "no" >&6; }
26270 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns void" >&5
26271 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
26272
26273
26274 cat confdefs.h - <<_ACEOF >conftest.c
26275 /* confdefs.h. */
26276 _ACEOF
26277 cat confdefs.h >>conftest.$ac_ext
26278 cat >>conftest.$ac_ext <<_ACEOF
26279 /* end confdefs.h. */
26280
26281
26282 #include <linux/blkdev.h>
26283
26284 void make_request(struct request_queue *q, struct bio *bio)
26285 {
26286 return;
26287 }
26288
26289 int
26290 main (void)
26291 {
26292
26293 blk_queue_make_request(NULL, &make_request);
26294
26295 ;
26296 return 0;
26297 }
26298
26299 _ACEOF
26300
26301
26302
26303 cat - <<_ACEOF >conftest.h
26304
26305 _ACEOF
26306
26307
26308 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26309 echo "obj-m := conftest.o" >build/Makefile
26310 modpost_flag=''
26311 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26312 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26314 (eval $ac_try) 2>&5
26315 ac_status=$?
26316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319 (eval $ac_try) 2>&5
26320 ac_status=$?
26321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322 (exit $ac_status); }; }; then
26323
26324 { $as_echo "$as_me:$LINENO: result: yes" >&5
26325 $as_echo "yes" >&6; }
26326
26327 cat >>confdefs.h <<\_ACEOF
26328 #define MAKE_REQUEST_FN_RET void
26329 _ACEOF
26330
26331
26332 else
26333 $as_echo "$as_me: failed program was:" >&5
26334 sed 's/^/| /' conftest.$ac_ext >&5
26335
26336 { $as_echo "$as_me:$LINENO: result: no" >&5
26337 $as_echo "no" >&6; }
26338 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns blk_qc_t" >&5
26339 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
26340
26341
26342 cat confdefs.h - <<_ACEOF >conftest.c
26343 /* confdefs.h. */
26344 _ACEOF
26345 cat confdefs.h >>conftest.$ac_ext
26346 cat >>conftest.$ac_ext <<_ACEOF
26347 /* end confdefs.h. */
26348
26349
26350 #include <linux/blkdev.h>
26351
26352 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
26353 {
26354 return (BLK_QC_T_NONE);
26355 }
26356
26357 int
26358 main (void)
26359 {
26360
26361 blk_queue_make_request(NULL, &make_request);
26362
26363 ;
26364 return 0;
26365 }
26366
26367 _ACEOF
26368
26369
26370
26371 cat - <<_ACEOF >conftest.h
26372
26373 _ACEOF
26374
26375
26376 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26377 echo "obj-m := conftest.o" >build/Makefile
26378 modpost_flag=''
26379 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26380 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26382 (eval $ac_try) 2>&5
26383 ac_status=$?
26384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26387 (eval $ac_try) 2>&5
26388 ac_status=$?
26389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); }; }; then
26391
26392 { $as_echo "$as_me:$LINENO: result: yes" >&5
26393 $as_echo "yes" >&6; }
26394
26395 cat >>confdefs.h <<\_ACEOF
26396 #define MAKE_REQUEST_FN_RET blk_qc_t
26397 _ACEOF
26398
26399
26400 cat >>confdefs.h <<\_ACEOF
26401 #define HAVE_MAKE_REQUEST_FN_RET_QC 1
26402 _ACEOF
26403
26404
26405 else
26406 $as_echo "$as_me: failed program was:" >&5
26407 sed 's/^/| /' conftest.$ac_ext >&5
26408
26409 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
26410 https://github.com/zfsonlinux/zfs/issues/new" >&5
26411 $as_echo "$as_me: error: no - Please file a bug report at
26412 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
26413 { (exit 1); exit 1; }; }
26414
26415
26416
26417 fi
26418
26419 rm -Rf build
26420
26421
26422
26423
26424
26425 fi
26426
26427 rm -Rf build
26428
26429
26430
26431
26432
26433 fi
26434
26435 rm -Rf build
26436
26437
26438
26439
26440 { $as_echo "$as_me:$LINENO: checking whether 3 arg generic IO accounting symbols are available" >&5
26441 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
26442
26443
26444
26445 cat confdefs.h - <<_ACEOF >conftest.c
26446 /* confdefs.h. */
26447 _ACEOF
26448 cat confdefs.h >>conftest.$ac_ext
26449 cat >>conftest.$ac_ext <<_ACEOF
26450 /* end confdefs.h. */
26451
26452
26453 #include <linux/bio.h>
26454
26455 void (*generic_start_io_acct_f)(int, unsigned long,
26456 struct hd_struct *) = &generic_start_io_acct;
26457 void (*generic_end_io_acct_f)(int, struct hd_struct *,
26458 unsigned long) = &generic_end_io_acct;
26459
26460 int
26461 main (void)
26462 {
26463
26464 generic_start_io_acct(0, 0, NULL);
26465 generic_end_io_acct(0, NULL, 0);
26466
26467 ;
26468 return 0;
26469 }
26470
26471 _ACEOF
26472
26473
26474
26475 cat - <<_ACEOF >conftest.h
26476
26477 _ACEOF
26478
26479
26480 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26481 echo "obj-m := conftest.o" >build/Makefile
26482 modpost_flag=''
26483 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26484 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26486 (eval $ac_try) 2>&5
26487 ac_status=$?
26488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26491 (eval $ac_try) 2>&5
26492 ac_status=$?
26493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); }; }; then
26495 rc=0
26496 else
26497 $as_echo "$as_me: failed program was:" >&5
26498 sed 's/^/| /' conftest.$ac_ext >&5
26499 rc=1
26500
26501
26502 fi
26503
26504 rm -Rf build
26505
26506
26507 if test $rc -ne 0; then :
26508
26509 { $as_echo "$as_me:$LINENO: result: no" >&5
26510 $as_echo "no" >&6; }
26511
26512 else
26513 if test "x$enable_linux_builtin" != xyes; then
26514
26515 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
26516 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
26517 rc=$?
26518 if test $rc -ne 0; then
26519 export=0
26520 for file in block/bio.c; do
26521 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
26522 "$LINUX/$file" 2>/dev/null
26523 rc=$?
26524 if test $rc -eq 0; then
26525 export=1
26526 break;
26527 fi
26528 done
26529 if test $export -eq 0; then :
26530 rc=1
26531 else :
26532 rc=0
26533 fi
26534 else :
26535 rc=0
26536 fi
26537
26538 fi
26539 if test $rc -ne 0; then :
26540
26541 { $as_echo "$as_me:$LINENO: result: no" >&5
26542 $as_echo "no" >&6; }
26543
26544 else :
26545
26546 { $as_echo "$as_me:$LINENO: result: yes" >&5
26547 $as_echo "yes" >&6; }
26548
26549 cat >>confdefs.h <<\_ACEOF
26550 #define HAVE_GENERIC_IO_ACCT_3ARG 1
26551 _ACEOF
26552
26553
26554 fi
26555 fi
26556
26557
26558
26559 { $as_echo "$as_me:$LINENO: checking whether 4 arg generic IO accounting symbols are available" >&5
26560 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
26561
26562
26563
26564 cat confdefs.h - <<_ACEOF >conftest.c
26565 /* confdefs.h. */
26566 _ACEOF
26567 cat confdefs.h >>conftest.$ac_ext
26568 cat >>conftest.$ac_ext <<_ACEOF
26569 /* end confdefs.h. */
26570
26571
26572 #include <linux/bio.h>
26573
26574 void (*generic_start_io_acct_f)(struct request_queue *, int,
26575 unsigned long, struct hd_struct *) = &generic_start_io_acct;
26576 void (*generic_end_io_acct_f)(struct request_queue *, int,
26577 struct hd_struct *, unsigned long) = &generic_end_io_acct;
26578
26579 int
26580 main (void)
26581 {
26582
26583 generic_start_io_acct(NULL, 0, 0, NULL);
26584 generic_end_io_acct(NULL, 0, NULL, 0);
26585
26586 ;
26587 return 0;
26588 }
26589
26590 _ACEOF
26591
26592
26593
26594 cat - <<_ACEOF >conftest.h
26595
26596 _ACEOF
26597
26598
26599 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26600 echo "obj-m := conftest.o" >build/Makefile
26601 modpost_flag=''
26602 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26603 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26605 (eval $ac_try) 2>&5
26606 ac_status=$?
26607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610 (eval $ac_try) 2>&5
26611 ac_status=$?
26612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); }; }; then
26614 rc=0
26615 else
26616 $as_echo "$as_me: failed program was:" >&5
26617 sed 's/^/| /' conftest.$ac_ext >&5
26618 rc=1
26619
26620
26621 fi
26622
26623 rm -Rf build
26624
26625
26626 if test $rc -ne 0; then :
26627
26628 { $as_echo "$as_me:$LINENO: result: no" >&5
26629 $as_echo "no" >&6; }
26630
26631 else
26632 if test "x$enable_linux_builtin" != xyes; then
26633
26634 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
26635 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
26636 rc=$?
26637 if test $rc -ne 0; then
26638 export=0
26639 for file in block/bio.c; do
26640 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
26641 "$LINUX/$file" 2>/dev/null
26642 rc=$?
26643 if test $rc -eq 0; then
26644 export=1
26645 break;
26646 fi
26647 done
26648 if test $export -eq 0; then :
26649 rc=1
26650 else :
26651 rc=0
26652 fi
26653 else :
26654 rc=0
26655 fi
26656
26657 fi
26658 if test $rc -ne 0; then :
26659
26660 { $as_echo "$as_me:$LINENO: result: no" >&5
26661 $as_echo "no" >&6; }
26662
26663 else :
26664
26665 { $as_echo "$as_me:$LINENO: result: yes" >&5
26666 $as_echo "yes" >&6; }
26667
26668 cat >>confdefs.h <<\_ACEOF
26669 #define HAVE_GENERIC_IO_ACCT_4ARG 1
26670 _ACEOF
26671
26672
26673 fi
26674 fi
26675
26676
26677
26678 { $as_echo "$as_me:$LINENO: checking whether asm/fpu/api.h exists" >&5
26679 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
26680
26681
26682 cat confdefs.h - <<_ACEOF >conftest.c
26683 /* confdefs.h. */
26684 _ACEOF
26685 cat confdefs.h >>conftest.$ac_ext
26686 cat >>conftest.$ac_ext <<_ACEOF
26687 /* end confdefs.h. */
26688
26689
26690 #include <linux/kernel.h>
26691 #include <asm/fpu/api.h>
26692
26693 int
26694 main (void)
26695 {
26696
26697 __kernel_fpu_begin();
26698
26699 ;
26700 return 0;
26701 }
26702
26703 _ACEOF
26704
26705
26706
26707 cat - <<_ACEOF >conftest.h
26708
26709 _ACEOF
26710
26711
26712 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26713 echo "obj-m := conftest.o" >build/Makefile
26714 modpost_flag=''
26715 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26716 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26718 (eval $ac_try) 2>&5
26719 ac_status=$?
26720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26723 (eval $ac_try) 2>&5
26724 ac_status=$?
26725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26726 (exit $ac_status); }; }; then
26727
26728 { $as_echo "$as_me:$LINENO: result: yes" >&5
26729 $as_echo "yes" >&6; }
26730
26731 cat >>confdefs.h <<\_ACEOF
26732 #define HAVE_FPU_API_H 1
26733 _ACEOF
26734
26735
26736 else
26737 $as_echo "$as_me: failed program was:" >&5
26738 sed 's/^/| /' conftest.$ac_ext >&5
26739
26740 { $as_echo "$as_me:$LINENO: result: no" >&5
26741 $as_echo "no" >&6; }
26742
26743
26744
26745 fi
26746
26747 rm -Rf build
26748
26749
26750
26751
26752 { $as_echo "$as_me:$LINENO: checking whether i_(uid|gid)_(read|write) exist" >&5
26753 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
26754
26755
26756 cat confdefs.h - <<_ACEOF >conftest.c
26757 /* confdefs.h. */
26758 _ACEOF
26759 cat confdefs.h >>conftest.$ac_ext
26760 cat >>conftest.$ac_ext <<_ACEOF
26761 /* end confdefs.h. */
26762
26763
26764 #include <linux/fs.h>
26765
26766 int
26767 main (void)
26768 {
26769
26770 struct inode *ip = NULL;
26771 (void) i_uid_read(ip);
26772
26773 ;
26774 return 0;
26775 }
26776
26777 _ACEOF
26778
26779
26780
26781 cat - <<_ACEOF >conftest.h
26782
26783 _ACEOF
26784
26785
26786 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26787 echo "obj-m := conftest.o" >build/Makefile
26788 modpost_flag=''
26789 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26790 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26792 (eval $ac_try) 2>&5
26793 ac_status=$?
26794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26797 (eval $ac_try) 2>&5
26798 ac_status=$?
26799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26800 (exit $ac_status); }; }; then
26801
26802 { $as_echo "$as_me:$LINENO: result: yes" >&5
26803 $as_echo "yes" >&6; }
26804
26805 cat >>confdefs.h <<\_ACEOF
26806 #define HAVE_KUID_HELPERS 1
26807 _ACEOF
26808
26809
26810 else
26811 $as_echo "$as_me: failed program was:" >&5
26812 sed 's/^/| /' conftest.$ac_ext >&5
26813
26814 { $as_echo "$as_me:$LINENO: result: no" >&5
26815 $as_echo "no" >&6; }
26816
26817
26818
26819 fi
26820
26821 rm -Rf build
26822
26823
26824
26825
26826 { $as_echo "$as_me:$LINENO: checking whether module_param_call() is hardened" >&5
26827 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
26828
26829
26830 cat confdefs.h - <<_ACEOF >conftest.c
26831 /* confdefs.h. */
26832 _ACEOF
26833 cat confdefs.h >>conftest.$ac_ext
26834 cat >>conftest.$ac_ext <<_ACEOF
26835 /* end confdefs.h. */
26836
26837
26838 #include <linux/module.h>
26839 #include <linux/moduleparam.h>
26840
26841 int param_get(char *b, const struct kernel_param *kp)
26842 {
26843 return (0);
26844 }
26845
26846 int param_set(const char *b, const struct kernel_param *kp)
26847 {
26848 return (0);
26849 }
26850
26851 module_param_call(p, param_set, param_get, NULL, 0644);
26852
26853 int
26854 main (void)
26855 {
26856
26857
26858 ;
26859 return 0;
26860 }
26861
26862 _ACEOF
26863
26864
26865
26866 cat - <<_ACEOF >conftest.h
26867
26868 _ACEOF
26869
26870
26871 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26872 echo "obj-m := conftest.o" >build/Makefile
26873 modpost_flag=''
26874 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26875 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26877 (eval $ac_try) 2>&5
26878 ac_status=$?
26879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882 (eval $ac_try) 2>&5
26883 ac_status=$?
26884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); }; }; then
26886
26887 { $as_echo "$as_me:$LINENO: result: yes" >&5
26888 $as_echo "yes" >&6; }
26889
26890 cat >>confdefs.h <<\_ACEOF
26891 #define MODULE_PARAM_CALL_CONST 1
26892 _ACEOF
26893
26894
26895 else
26896 $as_echo "$as_me: failed program was:" >&5
26897 sed 's/^/| /' conftest.$ac_ext >&5
26898
26899 { $as_echo "$as_me:$LINENO: result: no" >&5
26900 $as_echo "no" >&6; }
26901
26902
26903
26904 fi
26905
26906 rm -Rf build
26907
26908
26909
26910
26911 { $as_echo "$as_me:$LINENO: checking whether iops->rename() wants flags" >&5
26912 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
26913
26914
26915 cat confdefs.h - <<_ACEOF >conftest.c
26916 /* confdefs.h. */
26917 _ACEOF
26918 cat confdefs.h >>conftest.$ac_ext
26919 cat >>conftest.$ac_ext <<_ACEOF
26920 /* end confdefs.h. */
26921
26922
26923 #include <linux/fs.h>
26924 int rename_fn(struct inode *sip, struct dentry *sdp,
26925 struct inode *tip, struct dentry *tdp,
26926 unsigned int flags) { return 0; }
26927
26928 static const struct inode_operations
26929 iops __attribute__ ((unused)) = {
26930 .rename = rename_fn,
26931 };
26932
26933 int
26934 main (void)
26935 {
26936
26937
26938 ;
26939 return 0;
26940 }
26941
26942 _ACEOF
26943
26944
26945
26946 cat - <<_ACEOF >conftest.h
26947
26948 _ACEOF
26949
26950
26951 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26952 echo "obj-m := conftest.o" >build/Makefile
26953 modpost_flag=''
26954 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26955 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26957 (eval $ac_try) 2>&5
26958 ac_status=$?
26959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26962 (eval $ac_try) 2>&5
26963 ac_status=$?
26964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26965 (exit $ac_status); }; }; then
26966
26967 { $as_echo "$as_me:$LINENO: result: yes" >&5
26968 $as_echo "yes" >&6; }
26969
26970 cat >>confdefs.h <<\_ACEOF
26971 #define HAVE_RENAME_WANTS_FLAGS 1
26972 _ACEOF
26973
26974
26975 else
26976 $as_echo "$as_me: failed program was:" >&5
26977 sed 's/^/| /' conftest.$ac_ext >&5
26978
26979 { $as_echo "$as_me:$LINENO: result: no" >&5
26980 $as_echo "no" >&6; }
26981
26982
26983
26984 fi
26985
26986 rm -Rf build
26987
26988
26989
26990
26991 { $as_echo "$as_me:$LINENO: checking whether generic_setxattr() exists" >&5
26992 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
26993
26994
26995 cat confdefs.h - <<_ACEOF >conftest.c
26996 /* confdefs.h. */
26997 _ACEOF
26998 cat confdefs.h >>conftest.$ac_ext
26999 cat >>conftest.$ac_ext <<_ACEOF
27000 /* end confdefs.h. */
27001
27002
27003 #include <linux/fs.h>
27004 #include <linux/xattr.h>
27005
27006 static const struct inode_operations
27007 iops __attribute__ ((unused)) = {
27008 .setxattr = generic_setxattr
27009 };
27010
27011 int
27012 main (void)
27013 {
27014
27015
27016 ;
27017 return 0;
27018 }
27019
27020 _ACEOF
27021
27022
27023
27024 cat - <<_ACEOF >conftest.h
27025
27026 _ACEOF
27027
27028
27029 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27030 echo "obj-m := conftest.o" >build/Makefile
27031 modpost_flag=''
27032 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27033 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27035 (eval $ac_try) 2>&5
27036 ac_status=$?
27037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27040 (eval $ac_try) 2>&5
27041 ac_status=$?
27042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); }; }; then
27044
27045 { $as_echo "$as_me:$LINENO: result: yes" >&5
27046 $as_echo "yes" >&6; }
27047
27048 cat >>confdefs.h <<\_ACEOF
27049 #define HAVE_GENERIC_SETXATTR 1
27050 _ACEOF
27051
27052
27053 else
27054 $as_echo "$as_me: failed program was:" >&5
27055 sed 's/^/| /' conftest.$ac_ext >&5
27056
27057 { $as_echo "$as_me:$LINENO: result: no" >&5
27058 $as_echo "no" >&6; }
27059
27060
27061
27062 fi
27063
27064 rm -Rf build
27065
27066
27067
27068 { $as_echo "$as_me:$LINENO: checking whether current_time() exists" >&5
27069 $as_echo_n "checking whether current_time() exists... " >&6; }
27070
27071
27072
27073 cat confdefs.h - <<_ACEOF >conftest.c
27074 /* confdefs.h. */
27075 _ACEOF
27076 cat confdefs.h >>conftest.$ac_ext
27077 cat >>conftest.$ac_ext <<_ACEOF
27078 /* end confdefs.h. */
27079
27080
27081 #include <linux/fs.h>
27082
27083 int
27084 main (void)
27085 {
27086
27087 struct inode ip;
27088 struct timespec now __attribute__ ((unused));
27089
27090 now = current_time(&ip);
27091
27092 ;
27093 return 0;
27094 }
27095
27096 _ACEOF
27097
27098
27099
27100 cat - <<_ACEOF >conftest.h
27101
27102 _ACEOF
27103
27104
27105 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27106 echo "obj-m := conftest.o" >build/Makefile
27107 modpost_flag=''
27108 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27109 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27111 (eval $ac_try) 2>&5
27112 ac_status=$?
27113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27116 (eval $ac_try) 2>&5
27117 ac_status=$?
27118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119 (exit $ac_status); }; }; then
27120 rc=0
27121 else
27122 $as_echo "$as_me: failed program was:" >&5
27123 sed 's/^/| /' conftest.$ac_ext >&5
27124 rc=1
27125
27126
27127 fi
27128
27129 rm -Rf build
27130
27131
27132 if test $rc -ne 0; then :
27133
27134 { $as_echo "$as_me:$LINENO: result: no" >&5
27135 $as_echo "no" >&6; }
27136
27137 else
27138 if test "x$enable_linux_builtin" != xyes; then
27139
27140 grep -q -E '[[:space:]]current_time[[:space:]]' \
27141 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
27142 rc=$?
27143 if test $rc -ne 0; then
27144 export=0
27145 for file in fs/inode.c; do
27146 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
27147 "$LINUX/$file" 2>/dev/null
27148 rc=$?
27149 if test $rc -eq 0; then
27150 export=1
27151 break;
27152 fi
27153 done
27154 if test $export -eq 0; then :
27155 rc=1
27156 else :
27157 rc=0
27158 fi
27159 else :
27160 rc=0
27161 fi
27162
27163 fi
27164 if test $rc -ne 0; then :
27165
27166 { $as_echo "$as_me:$LINENO: result: no" >&5
27167 $as_echo "no" >&6; }
27168
27169 else :
27170
27171 { $as_echo "$as_me:$LINENO: result: yes" >&5
27172 $as_echo "yes" >&6; }
27173
27174 cat >>confdefs.h <<\_ACEOF
27175 #define HAVE_CURRENT_TIME 1
27176 _ACEOF
27177
27178
27179 fi
27180 fi
27181
27182
27183
27184 { $as_echo "$as_me:$LINENO: checking whether to use vm_node_stat based fn's" >&5
27185 $as_echo_n "checking whether to use vm_node_stat based fn's... " >&6; }
27186
27187
27188 cat confdefs.h - <<_ACEOF >conftest.c
27189 /* confdefs.h. */
27190 _ACEOF
27191 cat confdefs.h >>conftest.$ac_ext
27192 cat >>conftest.$ac_ext <<_ACEOF
27193 /* end confdefs.h. */
27194
27195
27196 #include <linux/mm.h>
27197 #include <linux/vmstat.h>
27198
27199 int
27200 main (void)
27201 {
27202
27203 int a __attribute__ ((unused)) = NR_VM_NODE_STAT_ITEMS;
27204 long x __attribute__ ((unused)) =
27205 atomic_long_read(&vm_node_stat[0]);
27206 (void) global_node_page_state(0);
27207
27208 ;
27209 return 0;
27210 }
27211
27212 _ACEOF
27213
27214
27215
27216 cat - <<_ACEOF >conftest.h
27217
27218 _ACEOF
27219
27220
27221 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27222 echo "obj-m := conftest.o" >build/Makefile
27223 modpost_flag=''
27224 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27225 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27227 (eval $ac_try) 2>&5
27228 ac_status=$?
27229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27232 (eval $ac_try) 2>&5
27233 ac_status=$?
27234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27235 (exit $ac_status); }; }; then
27236
27237 { $as_echo "$as_me:$LINENO: result: yes" >&5
27238 $as_echo "yes" >&6; }
27239
27240 cat >>confdefs.h <<\_ACEOF
27241 #define ZFS_GLOBAL_NODE_PAGE_STATE 1
27242 _ACEOF
27243
27244
27245 else
27246 $as_echo "$as_me: failed program was:" >&5
27247 sed 's/^/| /' conftest.$ac_ext >&5
27248
27249 { $as_echo "$as_me:$LINENO: result: no" >&5
27250 $as_echo "no" >&6; }
27251
27252
27253
27254 fi
27255
27256 rm -Rf build
27257
27258
27259
27260
27261 if test "$LINUX_OBJ" != "$LINUX"; then
27262
27263 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
27264
27265 fi
27266
27267
27268
27269
27270 KERNELCPPFLAGS="$KERNELCPPFLAGS -std=gnu99"
27271 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-declaration-after-statement"
27272 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
27273 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
27274 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
27275 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
27276
27277
27278 ;;
27279 user)
27280
27281
27282 # Check whether --with-mounthelperdir was given.
27283 if test "${with_mounthelperdir+set}" = set; then
27284 withval=$with_mounthelperdir; mounthelperdir=$withval
27285 else
27286 mounthelperdir=/sbin
27287 fi
27288
27289
27290
27291
27292
27293 { $as_echo "$as_me:$LINENO: checking for udev directories" >&5
27294 $as_echo_n "checking for udev directories... " >&6; }
27295
27296 # Check whether --with-udevdir was given.
27297 if test "${with_udevdir+set}" = set; then
27298 withval=$with_udevdir; udevdir=$withval
27299 else
27300 udevdir=check
27301 fi
27302
27303
27304 if test "x$udevdir" = xcheck; then
27305
27306 path1=/lib/udev
27307 path2=/usr/lib/udev
27308 default=$path2
27309
27310 if test -d "$path1"; then
27311 udevdir="$path1"
27312 else
27313
27314 if test -d "$path2"; then
27315 udevdir="$path2"
27316 else
27317 udevdir="$default"
27318 fi
27319
27320
27321 fi
27322
27323
27324 fi
27325
27326
27327
27328 # Check whether --with-udevruledir was given.
27329 if test "${with_udevruledir+set}" = set; then
27330 withval=$with_udevruledir; udevruledir=$withval
27331 else
27332 udevruledir="${udevdir}/rules.d"
27333 fi
27334
27335
27336
27337
27338 { $as_echo "$as_me:$LINENO: result: $udevdir;$udevruledir" >&5
27339 $as_echo "$udevdir;$udevruledir" >&6; }
27340
27341
27342 # Check whether --enable-systemd was given.
27343 if test "${enable_systemd+set}" = set; then
27344 enableval=$enable_systemd;
27345 else
27346 enable_systemd=yes
27347 fi
27348
27349
27350
27351 # Check whether --with-systemdunitdir was given.
27352 if test "${with_systemdunitdir+set}" = set; then
27353 withval=$with_systemdunitdir; systemdunitdir=$withval
27354 else
27355 systemdunitdir=/usr/lib/systemd/system
27356 fi
27357
27358
27359
27360 # Check whether --with-systemdpresetdir was given.
27361 if test "${with_systemdpresetdir+set}" = set; then
27362 withval=$with_systemdpresetdir; systemdpresetdir=$withval
27363 else
27364 systemdpresetdir=/usr/lib/systemd/system-preset
27365 fi
27366
27367
27368
27369 # Check whether --with-systemdmodulesloaddir was given.
27370 if test "${with_systemdmodulesloaddir+set}" = set; then
27371 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
27372 else
27373 systemdmodulesloaddir=/usr/lib/modules-load.d
27374 fi
27375
27376
27377
27378 if test "x$enable_systemd" = xyes; then
27379
27380 ZFS_INIT_SYSTEMD=systemd
27381 ZFS_MODULE_LOAD=modules-load.d
27382 modulesloaddir=$systemdmodulesloaddir
27383
27384 fi
27385
27386
27387
27388
27389
27390
27391
27392
27393
27394 # Check whether --enable-sysvinit was given.
27395 if test "${enable_sysvinit+set}" = set; then
27396 enableval=$enable_sysvinit;
27397 else
27398 enable_sysvinit=yes
27399 fi
27400
27401
27402 if test "x$enable_sysvinit" = xyes; then
27403 ZFS_INIT_SYSV=init.d
27404 fi
27405
27406
27407
27408
27409
27410 { $as_echo "$as_me:$LINENO: checking for dracut directory" >&5
27411 $as_echo_n "checking for dracut directory... " >&6; }
27412
27413 # Check whether --with-dracutdir was given.
27414 if test "${with_dracutdir+set}" = set; then
27415 withval=$with_dracutdir; dracutdir=$withval
27416 else
27417 dracutdir=check
27418 fi
27419
27420
27421 if test "x$dracutdir" = xcheck; then
27422
27423 path1=/usr/share/dracut
27424 path2=/usr/lib/dracut
27425 default=$path2
27426
27427 if test -d "$path1"; then
27428 dracutdir="$path1"
27429 else
27430
27431 if test -d "$path2"; then
27432 dracutdir="$path2"
27433 else
27434 dracutdir="$default"
27435 fi
27436
27437
27438 fi
27439
27440
27441 fi
27442
27443
27444
27445 { $as_echo "$as_me:$LINENO: result: $dracutdir" >&5
27446 $as_echo "$dracutdir" >&6; }
27447
27448
27449 ZLIB=
27450
27451 if test "${ac_cv_header_zlib_h+set}" = set; then
27452 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
27453 $as_echo_n "checking for zlib.h... " >&6; }
27454 if test "${ac_cv_header_zlib_h+set}" = set; then
27455 $as_echo_n "(cached) " >&6
27456 fi
27457 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27458 $as_echo "$ac_cv_header_zlib_h" >&6; }
27459 else
27460 # Is the header compilable?
27461 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
27462 $as_echo_n "checking zlib.h usability... " >&6; }
27463 cat >conftest.$ac_ext <<_ACEOF
27464 /* confdefs.h. */
27465 _ACEOF
27466 cat confdefs.h >>conftest.$ac_ext
27467 cat >>conftest.$ac_ext <<_ACEOF
27468 /* end confdefs.h. */
27469 $ac_includes_default
27470 #include <zlib.h>
27471 _ACEOF
27472 rm -f conftest.$ac_objext
27473 if { (ac_try="$ac_compile"
27474 case "(($ac_try" in
27475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27476 *) ac_try_echo=$ac_try;;
27477 esac
27478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27479 $as_echo "$ac_try_echo") >&5
27480 (eval "$ac_compile") 2>conftest.er1
27481 ac_status=$?
27482 grep -v '^ *+' conftest.er1 >conftest.err
27483 rm -f conftest.er1
27484 cat conftest.err >&5
27485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486 (exit $ac_status); } && {
27487 test -z "$ac_c_werror_flag" ||
27488 test ! -s conftest.err
27489 } && test -s conftest.$ac_objext; then
27490 ac_header_compiler=yes
27491 else
27492 $as_echo "$as_me: failed program was:" >&5
27493 sed 's/^/| /' conftest.$ac_ext >&5
27494
27495 ac_header_compiler=no
27496 fi
27497
27498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27499 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27500 $as_echo "$ac_header_compiler" >&6; }
27501
27502 # Is the header present?
27503 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
27504 $as_echo_n "checking zlib.h presence... " >&6; }
27505 cat >conftest.$ac_ext <<_ACEOF
27506 /* confdefs.h. */
27507 _ACEOF
27508 cat confdefs.h >>conftest.$ac_ext
27509 cat >>conftest.$ac_ext <<_ACEOF
27510 /* end confdefs.h. */
27511 #include <zlib.h>
27512 _ACEOF
27513 if { (ac_try="$ac_cpp conftest.$ac_ext"
27514 case "(($ac_try" in
27515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27516 *) ac_try_echo=$ac_try;;
27517 esac
27518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27519 $as_echo "$ac_try_echo") >&5
27520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27521 ac_status=$?
27522 grep -v '^ *+' conftest.er1 >conftest.err
27523 rm -f conftest.er1
27524 cat conftest.err >&5
27525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526 (exit $ac_status); } >/dev/null && {
27527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27528 test ! -s conftest.err
27529 }; then
27530 ac_header_preproc=yes
27531 else
27532 $as_echo "$as_me: failed program was:" >&5
27533 sed 's/^/| /' conftest.$ac_ext >&5
27534
27535 ac_header_preproc=no
27536 fi
27537
27538 rm -f conftest.err conftest.$ac_ext
27539 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27540 $as_echo "$ac_header_preproc" >&6; }
27541
27542 # So? What about this header?
27543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27544 yes:no: )
27545 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
27546 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27547 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
27548 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
27549 ac_header_preproc=yes
27550 ;;
27551 no:yes:* )
27552 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
27553 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
27554 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
27555 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
27556 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
27557 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
27558 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
27559 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
27560 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
27561 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
27562 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
27563 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
27564
27565 ;;
27566 esac
27567 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
27568 $as_echo_n "checking for zlib.h... " >&6; }
27569 if test "${ac_cv_header_zlib_h+set}" = set; then
27570 $as_echo_n "(cached) " >&6
27571 else
27572 ac_cv_header_zlib_h=$ac_header_preproc
27573 fi
27574 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27575 $as_echo "$ac_cv_header_zlib_h" >&6; }
27576
27577 fi
27578 if test "x$ac_cv_header_zlib_h" = x""yes; then
27579 :
27580 else
27581 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27583 { { $as_echo "$as_me:$LINENO: error:
27584 *** zlib.h missing, zlib-devel package required
27585 See \`config.log' for more details." >&5
27586 $as_echo "$as_me: error:
27587 *** zlib.h missing, zlib-devel package required
27588 See \`config.log' for more details." >&2;}
27589 { (exit 1); exit 1; }; }; }
27590 fi
27591
27592
27593
27594 { $as_echo "$as_me:$LINENO: checking for library containing compress2" >&5
27595 $as_echo_n "checking for library containing compress2... " >&6; }
27596 if test "${ac_cv_search_compress2+set}" = set; then
27597 $as_echo_n "(cached) " >&6
27598 else
27599 ac_func_search_save_LIBS=$LIBS
27600 cat >conftest.$ac_ext <<_ACEOF
27601 /* confdefs.h. */
27602 _ACEOF
27603 cat confdefs.h >>conftest.$ac_ext
27604 cat >>conftest.$ac_ext <<_ACEOF
27605 /* end confdefs.h. */
27606
27607 /* Override any GCC internal prototype to avoid an error.
27608 Use char because int might match the return type of a GCC
27609 builtin and then its argument prototype would still apply. */
27610 #ifdef __cplusplus
27611 extern "C"
27612 #endif
27613 char compress2 ();
27614 int
27615 main ()
27616 {
27617 return compress2 ();
27618 ;
27619 return 0;
27620 }
27621 _ACEOF
27622 for ac_lib in '' z; do
27623 if test -z "$ac_lib"; then
27624 ac_res="none required"
27625 else
27626 ac_res=-l$ac_lib
27627 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27628 fi
27629 rm -f conftest.$ac_objext conftest$ac_exeext
27630 if { (ac_try="$ac_link"
27631 case "(($ac_try" in
27632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27633 *) ac_try_echo=$ac_try;;
27634 esac
27635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27636 $as_echo "$ac_try_echo") >&5
27637 (eval "$ac_link") 2>conftest.er1
27638 ac_status=$?
27639 grep -v '^ *+' conftest.er1 >conftest.err
27640 rm -f conftest.er1
27641 cat conftest.err >&5
27642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643 (exit $ac_status); } && {
27644 test -z "$ac_c_werror_flag" ||
27645 test ! -s conftest.err
27646 } && test -s conftest$ac_exeext && {
27647 test "$cross_compiling" = yes ||
27648 $as_test_x conftest$ac_exeext
27649 }; then
27650 ac_cv_search_compress2=$ac_res
27651 else
27652 $as_echo "$as_me: failed program was:" >&5
27653 sed 's/^/| /' conftest.$ac_ext >&5
27654
27655
27656 fi
27657
27658 rm -rf conftest.dSYM
27659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27660 conftest$ac_exeext
27661 if test "${ac_cv_search_compress2+set}" = set; then
27662 break
27663 fi
27664 done
27665 if test "${ac_cv_search_compress2+set}" = set; then
27666 :
27667 else
27668 ac_cv_search_compress2=no
27669 fi
27670 rm conftest.$ac_ext
27671 LIBS=$ac_func_search_save_LIBS
27672 fi
27673 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_compress2" >&5
27674 $as_echo "$ac_cv_search_compress2" >&6; }
27675 ac_res=$ac_cv_search_compress2
27676 if test "$ac_res" != no; then
27677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27678
27679 else
27680 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27682 { { $as_echo "$as_me:$LINENO: error:
27683 *** compress2() missing, zlib-devel package required
27684 See \`config.log' for more details." >&5
27685 $as_echo "$as_me: error:
27686 *** compress2() missing, zlib-devel package required
27687 See \`config.log' for more details." >&2;}
27688 { (exit 1); exit 1; }; }; }
27689 fi
27690
27691
27692 { $as_echo "$as_me:$LINENO: checking for library containing uncompress" >&5
27693 $as_echo_n "checking for library containing uncompress... " >&6; }
27694 if test "${ac_cv_search_uncompress+set}" = set; then
27695 $as_echo_n "(cached) " >&6
27696 else
27697 ac_func_search_save_LIBS=$LIBS
27698 cat >conftest.$ac_ext <<_ACEOF
27699 /* confdefs.h. */
27700 _ACEOF
27701 cat confdefs.h >>conftest.$ac_ext
27702 cat >>conftest.$ac_ext <<_ACEOF
27703 /* end confdefs.h. */
27704
27705 /* Override any GCC internal prototype to avoid an error.
27706 Use char because int might match the return type of a GCC
27707 builtin and then its argument prototype would still apply. */
27708 #ifdef __cplusplus
27709 extern "C"
27710 #endif
27711 char uncompress ();
27712 int
27713 main ()
27714 {
27715 return uncompress ();
27716 ;
27717 return 0;
27718 }
27719 _ACEOF
27720 for ac_lib in '' z; do
27721 if test -z "$ac_lib"; then
27722 ac_res="none required"
27723 else
27724 ac_res=-l$ac_lib
27725 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27726 fi
27727 rm -f conftest.$ac_objext conftest$ac_exeext
27728 if { (ac_try="$ac_link"
27729 case "(($ac_try" in
27730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27731 *) ac_try_echo=$ac_try;;
27732 esac
27733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27734 $as_echo "$ac_try_echo") >&5
27735 (eval "$ac_link") 2>conftest.er1
27736 ac_status=$?
27737 grep -v '^ *+' conftest.er1 >conftest.err
27738 rm -f conftest.er1
27739 cat conftest.err >&5
27740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741 (exit $ac_status); } && {
27742 test -z "$ac_c_werror_flag" ||
27743 test ! -s conftest.err
27744 } && test -s conftest$ac_exeext && {
27745 test "$cross_compiling" = yes ||
27746 $as_test_x conftest$ac_exeext
27747 }; then
27748 ac_cv_search_uncompress=$ac_res
27749 else
27750 $as_echo "$as_me: failed program was:" >&5
27751 sed 's/^/| /' conftest.$ac_ext >&5
27752
27753
27754 fi
27755
27756 rm -rf conftest.dSYM
27757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27758 conftest$ac_exeext
27759 if test "${ac_cv_search_uncompress+set}" = set; then
27760 break
27761 fi
27762 done
27763 if test "${ac_cv_search_uncompress+set}" = set; then
27764 :
27765 else
27766 ac_cv_search_uncompress=no
27767 fi
27768 rm conftest.$ac_ext
27769 LIBS=$ac_func_search_save_LIBS
27770 fi
27771 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uncompress" >&5
27772 $as_echo "$ac_cv_search_uncompress" >&6; }
27773 ac_res=$ac_cv_search_uncompress
27774 if test "$ac_res" != no; then
27775 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27776
27777 else
27778 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27780 { { $as_echo "$as_me:$LINENO: error:
27781 *** uncompress() missing, zlib-devel package required
27782 See \`config.log' for more details." >&5
27783 $as_echo "$as_me: error:
27784 *** uncompress() missing, zlib-devel package required
27785 See \`config.log' for more details." >&2;}
27786 { (exit 1); exit 1; }; }; }
27787 fi
27788
27789
27790 { $as_echo "$as_me:$LINENO: checking for library containing crc32" >&5
27791 $as_echo_n "checking for library containing crc32... " >&6; }
27792 if test "${ac_cv_search_crc32+set}" = set; then
27793 $as_echo_n "(cached) " >&6
27794 else
27795 ac_func_search_save_LIBS=$LIBS
27796 cat >conftest.$ac_ext <<_ACEOF
27797 /* confdefs.h. */
27798 _ACEOF
27799 cat confdefs.h >>conftest.$ac_ext
27800 cat >>conftest.$ac_ext <<_ACEOF
27801 /* end confdefs.h. */
27802
27803 /* Override any GCC internal prototype to avoid an error.
27804 Use char because int might match the return type of a GCC
27805 builtin and then its argument prototype would still apply. */
27806 #ifdef __cplusplus
27807 extern "C"
27808 #endif
27809 char crc32 ();
27810 int
27811 main ()
27812 {
27813 return crc32 ();
27814 ;
27815 return 0;
27816 }
27817 _ACEOF
27818 for ac_lib in '' z; do
27819 if test -z "$ac_lib"; then
27820 ac_res="none required"
27821 else
27822 ac_res=-l$ac_lib
27823 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27824 fi
27825 rm -f conftest.$ac_objext conftest$ac_exeext
27826 if { (ac_try="$ac_link"
27827 case "(($ac_try" in
27828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27829 *) ac_try_echo=$ac_try;;
27830 esac
27831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27832 $as_echo "$ac_try_echo") >&5
27833 (eval "$ac_link") 2>conftest.er1
27834 ac_status=$?
27835 grep -v '^ *+' conftest.er1 >conftest.err
27836 rm -f conftest.er1
27837 cat conftest.err >&5
27838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27839 (exit $ac_status); } && {
27840 test -z "$ac_c_werror_flag" ||
27841 test ! -s conftest.err
27842 } && test -s conftest$ac_exeext && {
27843 test "$cross_compiling" = yes ||
27844 $as_test_x conftest$ac_exeext
27845 }; then
27846 ac_cv_search_crc32=$ac_res
27847 else
27848 $as_echo "$as_me: failed program was:" >&5
27849 sed 's/^/| /' conftest.$ac_ext >&5
27850
27851
27852 fi
27853
27854 rm -rf conftest.dSYM
27855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27856 conftest$ac_exeext
27857 if test "${ac_cv_search_crc32+set}" = set; then
27858 break
27859 fi
27860 done
27861 if test "${ac_cv_search_crc32+set}" = set; then
27862 :
27863 else
27864 ac_cv_search_crc32=no
27865 fi
27866 rm conftest.$ac_ext
27867 LIBS=$ac_func_search_save_LIBS
27868 fi
27869 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crc32" >&5
27870 $as_echo "$ac_cv_search_crc32" >&6; }
27871 ac_res=$ac_cv_search_crc32
27872 if test "$ac_res" != no; then
27873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27874
27875 else
27876 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27878 { { $as_echo "$as_me:$LINENO: error:
27879 *** crc32() missing, zlib-devel package required
27880 See \`config.log' for more details." >&5
27881 $as_echo "$as_me: error:
27882 *** crc32() missing, zlib-devel package required
27883 See \`config.log' for more details." >&2;}
27884 { (exit 1); exit 1; }; }; }
27885 fi
27886
27887
27888 ZLIB="-lz"
27889
27890
27891 cat >>confdefs.h <<\_ACEOF
27892 #define HAVE_ZLIB 1
27893 _ACEOF
27894
27895
27896
27897 LIBUUID=
27898
27899 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
27900 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
27901 $as_echo_n "checking for uuid/uuid.h... " >&6; }
27902 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
27903 $as_echo_n "(cached) " >&6
27904 fi
27905 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
27906 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
27907 else
27908 # Is the header compilable?
27909 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
27910 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
27911 cat >conftest.$ac_ext <<_ACEOF
27912 /* confdefs.h. */
27913 _ACEOF
27914 cat confdefs.h >>conftest.$ac_ext
27915 cat >>conftest.$ac_ext <<_ACEOF
27916 /* end confdefs.h. */
27917 $ac_includes_default
27918 #include <uuid/uuid.h>
27919 _ACEOF
27920 rm -f conftest.$ac_objext
27921 if { (ac_try="$ac_compile"
27922 case "(($ac_try" in
27923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27924 *) ac_try_echo=$ac_try;;
27925 esac
27926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27927 $as_echo "$ac_try_echo") >&5
27928 (eval "$ac_compile") 2>conftest.er1
27929 ac_status=$?
27930 grep -v '^ *+' conftest.er1 >conftest.err
27931 rm -f conftest.er1
27932 cat conftest.err >&5
27933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934 (exit $ac_status); } && {
27935 test -z "$ac_c_werror_flag" ||
27936 test ! -s conftest.err
27937 } && test -s conftest.$ac_objext; then
27938 ac_header_compiler=yes
27939 else
27940 $as_echo "$as_me: failed program was:" >&5
27941 sed 's/^/| /' conftest.$ac_ext >&5
27942
27943 ac_header_compiler=no
27944 fi
27945
27946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27947 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27948 $as_echo "$ac_header_compiler" >&6; }
27949
27950 # Is the header present?
27951 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
27952 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
27953 cat >conftest.$ac_ext <<_ACEOF
27954 /* confdefs.h. */
27955 _ACEOF
27956 cat confdefs.h >>conftest.$ac_ext
27957 cat >>conftest.$ac_ext <<_ACEOF
27958 /* end confdefs.h. */
27959 #include <uuid/uuid.h>
27960 _ACEOF
27961 if { (ac_try="$ac_cpp conftest.$ac_ext"
27962 case "(($ac_try" in
27963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27964 *) ac_try_echo=$ac_try;;
27965 esac
27966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27967 $as_echo "$ac_try_echo") >&5
27968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27969 ac_status=$?
27970 grep -v '^ *+' conftest.er1 >conftest.err
27971 rm -f conftest.er1
27972 cat conftest.err >&5
27973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974 (exit $ac_status); } >/dev/null && {
27975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27976 test ! -s conftest.err
27977 }; then
27978 ac_header_preproc=yes
27979 else
27980 $as_echo "$as_me: failed program was:" >&5
27981 sed 's/^/| /' conftest.$ac_ext >&5
27982
27983 ac_header_preproc=no
27984 fi
27985
27986 rm -f conftest.err conftest.$ac_ext
27987 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27988 $as_echo "$ac_header_preproc" >&6; }
27989
27990 # So? What about this header?
27991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27992 yes:no: )
27993 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
27994 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27995 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
27996 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
27997 ac_header_preproc=yes
27998 ;;
27999 no:yes:* )
28000 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
28001 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
28002 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
28003 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
28004 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
28005 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
28006 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
28007 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
28008 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
28009 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
28010 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
28011 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
28012
28013 ;;
28014 esac
28015 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
28016 $as_echo_n "checking for uuid/uuid.h... " >&6; }
28017 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
28018 $as_echo_n "(cached) " >&6
28019 else
28020 ac_cv_header_uuid_uuid_h=$ac_header_preproc
28021 fi
28022 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
28023 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
28024
28025 fi
28026 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
28027 :
28028 else
28029 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28031 { { $as_echo "$as_me:$LINENO: error:
28032 *** uuid/uuid.h missing, libuuid-devel package required
28033 See \`config.log' for more details." >&5
28034 $as_echo "$as_me: error:
28035 *** uuid/uuid.h missing, libuuid-devel package required
28036 See \`config.log' for more details." >&2;}
28037 { (exit 1); exit 1; }; }; }
28038 fi
28039
28040
28041
28042 { $as_echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
28043 $as_echo_n "checking for library containing uuid_generate... " >&6; }
28044 if test "${ac_cv_search_uuid_generate+set}" = set; then
28045 $as_echo_n "(cached) " >&6
28046 else
28047 ac_func_search_save_LIBS=$LIBS
28048 cat >conftest.$ac_ext <<_ACEOF
28049 /* confdefs.h. */
28050 _ACEOF
28051 cat confdefs.h >>conftest.$ac_ext
28052 cat >>conftest.$ac_ext <<_ACEOF
28053 /* end confdefs.h. */
28054
28055 /* Override any GCC internal prototype to avoid an error.
28056 Use char because int might match the return type of a GCC
28057 builtin and then its argument prototype would still apply. */
28058 #ifdef __cplusplus
28059 extern "C"
28060 #endif
28061 char uuid_generate ();
28062 int
28063 main ()
28064 {
28065 return uuid_generate ();
28066 ;
28067 return 0;
28068 }
28069 _ACEOF
28070 for ac_lib in '' uuid; do
28071 if test -z "$ac_lib"; then
28072 ac_res="none required"
28073 else
28074 ac_res=-l$ac_lib
28075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28076 fi
28077 rm -f conftest.$ac_objext conftest$ac_exeext
28078 if { (ac_try="$ac_link"
28079 case "(($ac_try" in
28080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28081 *) ac_try_echo=$ac_try;;
28082 esac
28083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28084 $as_echo "$ac_try_echo") >&5
28085 (eval "$ac_link") 2>conftest.er1
28086 ac_status=$?
28087 grep -v '^ *+' conftest.er1 >conftest.err
28088 rm -f conftest.er1
28089 cat conftest.err >&5
28090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); } && {
28092 test -z "$ac_c_werror_flag" ||
28093 test ! -s conftest.err
28094 } && test -s conftest$ac_exeext && {
28095 test "$cross_compiling" = yes ||
28096 $as_test_x conftest$ac_exeext
28097 }; then
28098 ac_cv_search_uuid_generate=$ac_res
28099 else
28100 $as_echo "$as_me: failed program was:" >&5
28101 sed 's/^/| /' conftest.$ac_ext >&5
28102
28103
28104 fi
28105
28106 rm -rf conftest.dSYM
28107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28108 conftest$ac_exeext
28109 if test "${ac_cv_search_uuid_generate+set}" = set; then
28110 break
28111 fi
28112 done
28113 if test "${ac_cv_search_uuid_generate+set}" = set; then
28114 :
28115 else
28116 ac_cv_search_uuid_generate=no
28117 fi
28118 rm conftest.$ac_ext
28119 LIBS=$ac_func_search_save_LIBS
28120 fi
28121 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
28122 $as_echo "$ac_cv_search_uuid_generate" >&6; }
28123 ac_res=$ac_cv_search_uuid_generate
28124 if test "$ac_res" != no; then
28125 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28126
28127 else
28128 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28130 { { $as_echo "$as_me:$LINENO: error:
28131 *** uuid_generate() missing, libuuid-devel package required
28132 See \`config.log' for more details." >&5
28133 $as_echo "$as_me: error:
28134 *** uuid_generate() missing, libuuid-devel package required
28135 See \`config.log' for more details." >&2;}
28136 { (exit 1); exit 1; }; }; }
28137 fi
28138
28139
28140 { $as_echo "$as_me:$LINENO: checking for library containing uuid_is_null" >&5
28141 $as_echo_n "checking for library containing uuid_is_null... " >&6; }
28142 if test "${ac_cv_search_uuid_is_null+set}" = set; then
28143 $as_echo_n "(cached) " >&6
28144 else
28145 ac_func_search_save_LIBS=$LIBS
28146 cat >conftest.$ac_ext <<_ACEOF
28147 /* confdefs.h. */
28148 _ACEOF
28149 cat confdefs.h >>conftest.$ac_ext
28150 cat >>conftest.$ac_ext <<_ACEOF
28151 /* end confdefs.h. */
28152
28153 /* Override any GCC internal prototype to avoid an error.
28154 Use char because int might match the return type of a GCC
28155 builtin and then its argument prototype would still apply. */
28156 #ifdef __cplusplus
28157 extern "C"
28158 #endif
28159 char uuid_is_null ();
28160 int
28161 main ()
28162 {
28163 return uuid_is_null ();
28164 ;
28165 return 0;
28166 }
28167 _ACEOF
28168 for ac_lib in '' uuid; do
28169 if test -z "$ac_lib"; then
28170 ac_res="none required"
28171 else
28172 ac_res=-l$ac_lib
28173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28174 fi
28175 rm -f conftest.$ac_objext conftest$ac_exeext
28176 if { (ac_try="$ac_link"
28177 case "(($ac_try" in
28178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28179 *) ac_try_echo=$ac_try;;
28180 esac
28181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28182 $as_echo "$ac_try_echo") >&5
28183 (eval "$ac_link") 2>conftest.er1
28184 ac_status=$?
28185 grep -v '^ *+' conftest.er1 >conftest.err
28186 rm -f conftest.er1
28187 cat conftest.err >&5
28188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); } && {
28190 test -z "$ac_c_werror_flag" ||
28191 test ! -s conftest.err
28192 } && test -s conftest$ac_exeext && {
28193 test "$cross_compiling" = yes ||
28194 $as_test_x conftest$ac_exeext
28195 }; then
28196 ac_cv_search_uuid_is_null=$ac_res
28197 else
28198 $as_echo "$as_me: failed program was:" >&5
28199 sed 's/^/| /' conftest.$ac_ext >&5
28200
28201
28202 fi
28203
28204 rm -rf conftest.dSYM
28205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28206 conftest$ac_exeext
28207 if test "${ac_cv_search_uuid_is_null+set}" = set; then
28208 break
28209 fi
28210 done
28211 if test "${ac_cv_search_uuid_is_null+set}" = set; then
28212 :
28213 else
28214 ac_cv_search_uuid_is_null=no
28215 fi
28216 rm conftest.$ac_ext
28217 LIBS=$ac_func_search_save_LIBS
28218 fi
28219 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_is_null" >&5
28220 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
28221 ac_res=$ac_cv_search_uuid_is_null
28222 if test "$ac_res" != no; then
28223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28224
28225 else
28226 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28228 { { $as_echo "$as_me:$LINENO: error:
28229 *** uuid_is_null() missing, libuuid-devel package required
28230 See \`config.log' for more details." >&5
28231 $as_echo "$as_me: error:
28232 *** uuid_is_null() missing, libuuid-devel package required
28233 See \`config.log' for more details." >&2;}
28234 { (exit 1); exit 1; }; }; }
28235 fi
28236
28237
28238 LIBUUID="-luuid"
28239
28240
28241 cat >>confdefs.h <<\_ACEOF
28242 #define HAVE_LIBUUID 1
28243 _ACEOF
28244
28245
28246
28247
28248 # Check whether --with-tirpc was given.
28249 if test "${with_tirpc+set}" = set; then
28250 withval=$with_tirpc;
28251 else
28252 with_tirpc=check
28253 fi
28254
28255
28256 LIBTIRPC=
28257 LIBTIRPC_CFLAGS=
28258
28259 if test "x$with_tirpc" != xno; then
28260 { $as_echo "$as_me:$LINENO: checking for xdrmem_create in -ltirpc" >&5
28261 $as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
28262 if test "${ac_cv_lib_tirpc_xdrmem_create+set}" = set; then
28263 $as_echo_n "(cached) " >&6
28264 else
28265 ac_check_lib_save_LIBS=$LIBS
28266 LIBS="-ltirpc $LIBS"
28267 cat >conftest.$ac_ext <<_ACEOF
28268 /* confdefs.h. */
28269 _ACEOF
28270 cat confdefs.h >>conftest.$ac_ext
28271 cat >>conftest.$ac_ext <<_ACEOF
28272 /* end confdefs.h. */
28273
28274 /* Override any GCC internal prototype to avoid an error.
28275 Use char because int might match the return type of a GCC
28276 builtin and then its argument prototype would still apply. */
28277 #ifdef __cplusplus
28278 extern "C"
28279 #endif
28280 char xdrmem_create ();
28281 int
28282 main ()
28283 {
28284 return xdrmem_create ();
28285 ;
28286 return 0;
28287 }
28288 _ACEOF
28289 rm -f conftest.$ac_objext conftest$ac_exeext
28290 if { (ac_try="$ac_link"
28291 case "(($ac_try" in
28292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28293 *) ac_try_echo=$ac_try;;
28294 esac
28295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28296 $as_echo "$ac_try_echo") >&5
28297 (eval "$ac_link") 2>conftest.er1
28298 ac_status=$?
28299 grep -v '^ *+' conftest.er1 >conftest.err
28300 rm -f conftest.er1
28301 cat conftest.err >&5
28302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303 (exit $ac_status); } && {
28304 test -z "$ac_c_werror_flag" ||
28305 test ! -s conftest.err
28306 } && test -s conftest$ac_exeext && {
28307 test "$cross_compiling" = yes ||
28308 $as_test_x conftest$ac_exeext
28309 }; then
28310 ac_cv_lib_tirpc_xdrmem_create=yes
28311 else
28312 $as_echo "$as_me: failed program was:" >&5
28313 sed 's/^/| /' conftest.$ac_ext >&5
28314
28315 ac_cv_lib_tirpc_xdrmem_create=no
28316 fi
28317
28318 rm -rf conftest.dSYM
28319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28320 conftest$ac_exeext conftest.$ac_ext
28321 LIBS=$ac_check_lib_save_LIBS
28322 fi
28323 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
28324 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
28325 if test "x$ac_cv_lib_tirpc_xdrmem_create" = x""yes; then
28326 LIBTIRPC=-ltirpc
28327
28328 LIBTIRPC_CFLAGS=-I/usr/include/tirpc
28329
28330
28331 cat >>confdefs.h <<\_ACEOF
28332 #define HAVE_LIBTIRPC 1
28333 _ACEOF
28334
28335
28336 else
28337 if test "x$with_tirpc" != xcheck; then
28338 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28340 { { $as_echo "$as_me:$LINENO: error: --with-tirpc was given, but test for tirpc failed
28341 See \`config.log' for more details." >&5
28342 $as_echo "$as_me: error: --with-tirpc was given, but test for tirpc failed
28343 See \`config.log' for more details." >&2;}
28344 { (exit 1); exit 1; }; }; }
28345 fi
28346 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
28347 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
28348 if test "${ac_cv_search_xdrmem_create+set}" = set; then
28349 $as_echo_n "(cached) " >&6
28350 else
28351 ac_func_search_save_LIBS=$LIBS
28352 cat >conftest.$ac_ext <<_ACEOF
28353 /* confdefs.h. */
28354 _ACEOF
28355 cat confdefs.h >>conftest.$ac_ext
28356 cat >>conftest.$ac_ext <<_ACEOF
28357 /* end confdefs.h. */
28358
28359 /* Override any GCC internal prototype to avoid an error.
28360 Use char because int might match the return type of a GCC
28361 builtin and then its argument prototype would still apply. */
28362 #ifdef __cplusplus
28363 extern "C"
28364 #endif
28365 char xdrmem_create ();
28366 int
28367 main ()
28368 {
28369 return xdrmem_create ();
28370 ;
28371 return 0;
28372 }
28373 _ACEOF
28374 for ac_lib in '' tirpc; do
28375 if test -z "$ac_lib"; then
28376 ac_res="none required"
28377 else
28378 ac_res=-l$ac_lib
28379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28380 fi
28381 rm -f conftest.$ac_objext conftest$ac_exeext
28382 if { (ac_try="$ac_link"
28383 case "(($ac_try" in
28384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28385 *) ac_try_echo=$ac_try;;
28386 esac
28387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28388 $as_echo "$ac_try_echo") >&5
28389 (eval "$ac_link") 2>conftest.er1
28390 ac_status=$?
28391 grep -v '^ *+' conftest.er1 >conftest.err
28392 rm -f conftest.er1
28393 cat conftest.err >&5
28394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395 (exit $ac_status); } && {
28396 test -z "$ac_c_werror_flag" ||
28397 test ! -s conftest.err
28398 } && test -s conftest$ac_exeext && {
28399 test "$cross_compiling" = yes ||
28400 $as_test_x conftest$ac_exeext
28401 }; then
28402 ac_cv_search_xdrmem_create=$ac_res
28403 else
28404 $as_echo "$as_me: failed program was:" >&5
28405 sed 's/^/| /' conftest.$ac_ext >&5
28406
28407
28408 fi
28409
28410 rm -rf conftest.dSYM
28411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28412 conftest$ac_exeext
28413 if test "${ac_cv_search_xdrmem_create+set}" = set; then
28414 break
28415 fi
28416 done
28417 if test "${ac_cv_search_xdrmem_create+set}" = set; then
28418 :
28419 else
28420 ac_cv_search_xdrmem_create=no
28421 fi
28422 rm conftest.$ac_ext
28423 LIBS=$ac_func_search_save_LIBS
28424 fi
28425 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
28426 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
28427 ac_res=$ac_cv_search_xdrmem_create
28428 if test "$ac_res" != no; then
28429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28430
28431 else
28432
28433 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28435 { { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires tirpc or libc
28436 See \`config.log' for more details." >&5
28437 $as_echo "$as_me: error: xdrmem_create() requires tirpc or libc
28438 See \`config.log' for more details." >&2;}
28439 { (exit 1); exit 1; }; }; }
28440 fi
28441
28442
28443 fi
28444
28445 else
28446 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
28447 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
28448 if test "${ac_cv_search_xdrmem_create+set}" = set; then
28449 $as_echo_n "(cached) " >&6
28450 else
28451 ac_func_search_save_LIBS=$LIBS
28452 cat >conftest.$ac_ext <<_ACEOF
28453 /* confdefs.h. */
28454 _ACEOF
28455 cat confdefs.h >>conftest.$ac_ext
28456 cat >>conftest.$ac_ext <<_ACEOF
28457 /* end confdefs.h. */
28458
28459 /* Override any GCC internal prototype to avoid an error.
28460 Use char because int might match the return type of a GCC
28461 builtin and then its argument prototype would still apply. */
28462 #ifdef __cplusplus
28463 extern "C"
28464 #endif
28465 char xdrmem_create ();
28466 int
28467 main ()
28468 {
28469 return xdrmem_create ();
28470 ;
28471 return 0;
28472 }
28473 _ACEOF
28474 for ac_lib in '' tirpc; do
28475 if test -z "$ac_lib"; then
28476 ac_res="none required"
28477 else
28478 ac_res=-l$ac_lib
28479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28480 fi
28481 rm -f conftest.$ac_objext conftest$ac_exeext
28482 if { (ac_try="$ac_link"
28483 case "(($ac_try" in
28484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28485 *) ac_try_echo=$ac_try;;
28486 esac
28487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28488 $as_echo "$ac_try_echo") >&5
28489 (eval "$ac_link") 2>conftest.er1
28490 ac_status=$?
28491 grep -v '^ *+' conftest.er1 >conftest.err
28492 rm -f conftest.er1
28493 cat conftest.err >&5
28494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28495 (exit $ac_status); } && {
28496 test -z "$ac_c_werror_flag" ||
28497 test ! -s conftest.err
28498 } && test -s conftest$ac_exeext && {
28499 test "$cross_compiling" = yes ||
28500 $as_test_x conftest$ac_exeext
28501 }; then
28502 ac_cv_search_xdrmem_create=$ac_res
28503 else
28504 $as_echo "$as_me: failed program was:" >&5
28505 sed 's/^/| /' conftest.$ac_ext >&5
28506
28507
28508 fi
28509
28510 rm -rf conftest.dSYM
28511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28512 conftest$ac_exeext
28513 if test "${ac_cv_search_xdrmem_create+set}" = set; then
28514 break
28515 fi
28516 done
28517 if test "${ac_cv_search_xdrmem_create+set}" = set; then
28518 :
28519 else
28520 ac_cv_search_xdrmem_create=no
28521 fi
28522 rm conftest.$ac_ext
28523 LIBS=$ac_func_search_save_LIBS
28524 fi
28525 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
28526 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
28527 ac_res=$ac_cv_search_xdrmem_create
28528 if test "$ac_res" != no; then
28529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28530
28531 else
28532
28533 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28535 { { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires libc
28536 See \`config.log' for more details." >&5
28537 $as_echo "$as_me: error: xdrmem_create() requires libc
28538 See \`config.log' for more details." >&2;}
28539 { (exit 1); exit 1; }; }; }
28540 fi
28541
28542
28543 fi
28544
28545
28546
28547 LIBBLKID=
28548
28549 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
28550 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
28551 $as_echo_n "checking for blkid/blkid.h... " >&6; }
28552 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
28553 $as_echo_n "(cached) " >&6
28554 fi
28555 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
28556 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
28557 else
28558 # Is the header compilable?
28559 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
28560 $as_echo_n "checking blkid/blkid.h usability... " >&6; }
28561 cat >conftest.$ac_ext <<_ACEOF
28562 /* confdefs.h. */
28563 _ACEOF
28564 cat confdefs.h >>conftest.$ac_ext
28565 cat >>conftest.$ac_ext <<_ACEOF
28566 /* end confdefs.h. */
28567 $ac_includes_default
28568 #include <blkid/blkid.h>
28569 _ACEOF
28570 rm -f conftest.$ac_objext
28571 if { (ac_try="$ac_compile"
28572 case "(($ac_try" in
28573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28574 *) ac_try_echo=$ac_try;;
28575 esac
28576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28577 $as_echo "$ac_try_echo") >&5
28578 (eval "$ac_compile") 2>conftest.er1
28579 ac_status=$?
28580 grep -v '^ *+' conftest.er1 >conftest.err
28581 rm -f conftest.er1
28582 cat conftest.err >&5
28583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584 (exit $ac_status); } && {
28585 test -z "$ac_c_werror_flag" ||
28586 test ! -s conftest.err
28587 } && test -s conftest.$ac_objext; then
28588 ac_header_compiler=yes
28589 else
28590 $as_echo "$as_me: failed program was:" >&5
28591 sed 's/^/| /' conftest.$ac_ext >&5
28592
28593 ac_header_compiler=no
28594 fi
28595
28596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28597 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28598 $as_echo "$ac_header_compiler" >&6; }
28599
28600 # Is the header present?
28601 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
28602 $as_echo_n "checking blkid/blkid.h presence... " >&6; }
28603 cat >conftest.$ac_ext <<_ACEOF
28604 /* confdefs.h. */
28605 _ACEOF
28606 cat confdefs.h >>conftest.$ac_ext
28607 cat >>conftest.$ac_ext <<_ACEOF
28608 /* end confdefs.h. */
28609 #include <blkid/blkid.h>
28610 _ACEOF
28611 if { (ac_try="$ac_cpp conftest.$ac_ext"
28612 case "(($ac_try" in
28613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28614 *) ac_try_echo=$ac_try;;
28615 esac
28616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28617 $as_echo "$ac_try_echo") >&5
28618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28619 ac_status=$?
28620 grep -v '^ *+' conftest.er1 >conftest.err
28621 rm -f conftest.er1
28622 cat conftest.err >&5
28623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624 (exit $ac_status); } >/dev/null && {
28625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28626 test ! -s conftest.err
28627 }; then
28628 ac_header_preproc=yes
28629 else
28630 $as_echo "$as_me: failed program was:" >&5
28631 sed 's/^/| /' conftest.$ac_ext >&5
28632
28633 ac_header_preproc=no
28634 fi
28635
28636 rm -f conftest.err conftest.$ac_ext
28637 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28638 $as_echo "$ac_header_preproc" >&6; }
28639
28640 # So? What about this header?
28641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28642 yes:no: )
28643 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
28644 $as_echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28645 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
28646 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
28647 ac_header_preproc=yes
28648 ;;
28649 no:yes:* )
28650 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
28651 $as_echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
28652 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
28653 $as_echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
28654 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
28655 $as_echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
28656 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
28657 $as_echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
28658 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
28659 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
28660 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
28661 $as_echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
28662
28663 ;;
28664 esac
28665 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
28666 $as_echo_n "checking for blkid/blkid.h... " >&6; }
28667 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
28668 $as_echo_n "(cached) " >&6
28669 else
28670 ac_cv_header_blkid_blkid_h=$ac_header_preproc
28671 fi
28672 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
28673 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
28674
28675 fi
28676 if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then
28677 :
28678 else
28679 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28681 { { $as_echo "$as_me:$LINENO: error:
28682 *** blkid.h missing, libblkid-devel package required
28683 See \`config.log' for more details." >&5
28684 $as_echo "$as_me: error:
28685 *** blkid.h missing, libblkid-devel package required
28686 See \`config.log' for more details." >&2;}
28687 { (exit 1); exit 1; }; }; }
28688 fi
28689
28690
28691
28692 LIBBLKID="-lblkid"
28693
28694
28695 cat >>confdefs.h <<\_ACEOF
28696 #define HAVE_LIBBLKID 1
28697 _ACEOF
28698
28699
28700
28701 LIBATTR=
28702
28703 if test "${ac_cv_header_attr_xattr_h+set}" = set; then
28704 { $as_echo "$as_me:$LINENO: checking for attr/xattr.h" >&5
28705 $as_echo_n "checking for attr/xattr.h... " >&6; }
28706 if test "${ac_cv_header_attr_xattr_h+set}" = set; then
28707 $as_echo_n "(cached) " >&6
28708 fi
28709 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_xattr_h" >&5
28710 $as_echo "$ac_cv_header_attr_xattr_h" >&6; }
28711 else
28712 # Is the header compilable?
28713 { $as_echo "$as_me:$LINENO: checking attr/xattr.h usability" >&5
28714 $as_echo_n "checking attr/xattr.h usability... " >&6; }
28715 cat >conftest.$ac_ext <<_ACEOF
28716 /* confdefs.h. */
28717 _ACEOF
28718 cat confdefs.h >>conftest.$ac_ext
28719 cat >>conftest.$ac_ext <<_ACEOF
28720 /* end confdefs.h. */
28721 $ac_includes_default
28722 #include <attr/xattr.h>
28723 _ACEOF
28724 rm -f conftest.$ac_objext
28725 if { (ac_try="$ac_compile"
28726 case "(($ac_try" in
28727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28728 *) ac_try_echo=$ac_try;;
28729 esac
28730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28731 $as_echo "$ac_try_echo") >&5
28732 (eval "$ac_compile") 2>conftest.er1
28733 ac_status=$?
28734 grep -v '^ *+' conftest.er1 >conftest.err
28735 rm -f conftest.er1
28736 cat conftest.err >&5
28737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738 (exit $ac_status); } && {
28739 test -z "$ac_c_werror_flag" ||
28740 test ! -s conftest.err
28741 } && test -s conftest.$ac_objext; then
28742 ac_header_compiler=yes
28743 else
28744 $as_echo "$as_me: failed program was:" >&5
28745 sed 's/^/| /' conftest.$ac_ext >&5
28746
28747 ac_header_compiler=no
28748 fi
28749
28750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28751 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28752 $as_echo "$ac_header_compiler" >&6; }
28753
28754 # Is the header present?
28755 { $as_echo "$as_me:$LINENO: checking attr/xattr.h presence" >&5
28756 $as_echo_n "checking attr/xattr.h presence... " >&6; }
28757 cat >conftest.$ac_ext <<_ACEOF
28758 /* confdefs.h. */
28759 _ACEOF
28760 cat confdefs.h >>conftest.$ac_ext
28761 cat >>conftest.$ac_ext <<_ACEOF
28762 /* end confdefs.h. */
28763 #include <attr/xattr.h>
28764 _ACEOF
28765 if { (ac_try="$ac_cpp conftest.$ac_ext"
28766 case "(($ac_try" in
28767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28768 *) ac_try_echo=$ac_try;;
28769 esac
28770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28771 $as_echo "$ac_try_echo") >&5
28772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28773 ac_status=$?
28774 grep -v '^ *+' conftest.er1 >conftest.err
28775 rm -f conftest.er1
28776 cat conftest.err >&5
28777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778 (exit $ac_status); } >/dev/null && {
28779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28780 test ! -s conftest.err
28781 }; then
28782 ac_header_preproc=yes
28783 else
28784 $as_echo "$as_me: failed program was:" >&5
28785 sed 's/^/| /' conftest.$ac_ext >&5
28786
28787 ac_header_preproc=no
28788 fi
28789
28790 rm -f conftest.err conftest.$ac_ext
28791 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28792 $as_echo "$ac_header_preproc" >&6; }
28793
28794 # So? What about this header?
28795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28796 yes:no: )
28797 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
28798 $as_echo "$as_me: WARNING: attr/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28799 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: proceeding with the compiler's result" >&5
28800 $as_echo "$as_me: WARNING: attr/xattr.h: proceeding with the compiler's result" >&2;}
28801 ac_header_preproc=yes
28802 ;;
28803 no:yes:* )
28804 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: present but cannot be compiled" >&5
28805 $as_echo "$as_me: WARNING: attr/xattr.h: present but cannot be compiled" >&2;}
28806 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: check for missing prerequisite headers?" >&5
28807 $as_echo "$as_me: WARNING: attr/xattr.h: check for missing prerequisite headers?" >&2;}
28808 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: see the Autoconf documentation" >&5
28809 $as_echo "$as_me: WARNING: attr/xattr.h: see the Autoconf documentation" >&2;}
28810 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
28811 $as_echo "$as_me: WARNING: attr/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
28812 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: proceeding with the preprocessor's result" >&5
28813 $as_echo "$as_me: WARNING: attr/xattr.h: proceeding with the preprocessor's result" >&2;}
28814 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: in the future, the compiler will take precedence" >&5
28815 $as_echo "$as_me: WARNING: attr/xattr.h: in the future, the compiler will take precedence" >&2;}
28816
28817 ;;
28818 esac
28819 { $as_echo "$as_me:$LINENO: checking for attr/xattr.h" >&5
28820 $as_echo_n "checking for attr/xattr.h... " >&6; }
28821 if test "${ac_cv_header_attr_xattr_h+set}" = set; then
28822 $as_echo_n "(cached) " >&6
28823 else
28824 ac_cv_header_attr_xattr_h=$ac_header_preproc
28825 fi
28826 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_xattr_h" >&5
28827 $as_echo "$ac_cv_header_attr_xattr_h" >&6; }
28828
28829 fi
28830 if test "x$ac_cv_header_attr_xattr_h" = x""yes; then
28831 :
28832 else
28833 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28835 { { $as_echo "$as_me:$LINENO: error:
28836 *** attr/xattr.h missing, libattr-devel package required
28837 See \`config.log' for more details." >&5
28838 $as_echo "$as_me: error:
28839 *** attr/xattr.h missing, libattr-devel package required
28840 See \`config.log' for more details." >&2;}
28841 { (exit 1); exit 1; }; }; }
28842 fi
28843
28844
28845
28846 LIBATTR="-lattr"
28847
28848
28849 cat >>confdefs.h <<\_ACEOF
28850 #define HAVE_LIBATTR 1
28851 _ACEOF
28852
28853
28854
28855 LIBUDEV=
28856
28857 if test "${ac_cv_header_libudev_h+set}" = set; then
28858 { $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
28859 $as_echo_n "checking for libudev.h... " >&6; }
28860 if test "${ac_cv_header_libudev_h+set}" = set; then
28861 $as_echo_n "(cached) " >&6
28862 fi
28863 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
28864 $as_echo "$ac_cv_header_libudev_h" >&6; }
28865 else
28866 # Is the header compilable?
28867 { $as_echo "$as_me:$LINENO: checking libudev.h usability" >&5
28868 $as_echo_n "checking libudev.h usability... " >&6; }
28869 cat >conftest.$ac_ext <<_ACEOF
28870 /* confdefs.h. */
28871 _ACEOF
28872 cat confdefs.h >>conftest.$ac_ext
28873 cat >>conftest.$ac_ext <<_ACEOF
28874 /* end confdefs.h. */
28875 $ac_includes_default
28876 #include <libudev.h>
28877 _ACEOF
28878 rm -f conftest.$ac_objext
28879 if { (ac_try="$ac_compile"
28880 case "(($ac_try" in
28881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28882 *) ac_try_echo=$ac_try;;
28883 esac
28884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28885 $as_echo "$ac_try_echo") >&5
28886 (eval "$ac_compile") 2>conftest.er1
28887 ac_status=$?
28888 grep -v '^ *+' conftest.er1 >conftest.err
28889 rm -f conftest.er1
28890 cat conftest.err >&5
28891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892 (exit $ac_status); } && {
28893 test -z "$ac_c_werror_flag" ||
28894 test ! -s conftest.err
28895 } && test -s conftest.$ac_objext; then
28896 ac_header_compiler=yes
28897 else
28898 $as_echo "$as_me: failed program was:" >&5
28899 sed 's/^/| /' conftest.$ac_ext >&5
28900
28901 ac_header_compiler=no
28902 fi
28903
28904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28905 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28906 $as_echo "$ac_header_compiler" >&6; }
28907
28908 # Is the header present?
28909 { $as_echo "$as_me:$LINENO: checking libudev.h presence" >&5
28910 $as_echo_n "checking libudev.h presence... " >&6; }
28911 cat >conftest.$ac_ext <<_ACEOF
28912 /* confdefs.h. */
28913 _ACEOF
28914 cat confdefs.h >>conftest.$ac_ext
28915 cat >>conftest.$ac_ext <<_ACEOF
28916 /* end confdefs.h. */
28917 #include <libudev.h>
28918 _ACEOF
28919 if { (ac_try="$ac_cpp conftest.$ac_ext"
28920 case "(($ac_try" in
28921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28922 *) ac_try_echo=$ac_try;;
28923 esac
28924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28925 $as_echo "$ac_try_echo") >&5
28926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28927 ac_status=$?
28928 grep -v '^ *+' conftest.er1 >conftest.err
28929 rm -f conftest.er1
28930 cat conftest.err >&5
28931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 (exit $ac_status); } >/dev/null && {
28933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28934 test ! -s conftest.err
28935 }; then
28936 ac_header_preproc=yes
28937 else
28938 $as_echo "$as_me: failed program was:" >&5
28939 sed 's/^/| /' conftest.$ac_ext >&5
28940
28941 ac_header_preproc=no
28942 fi
28943
28944 rm -f conftest.err conftest.$ac_ext
28945 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28946 $as_echo "$ac_header_preproc" >&6; }
28947
28948 # So? What about this header?
28949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28950 yes:no: )
28951 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&5
28952 $as_echo "$as_me: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28953 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the compiler's result" >&5
28954 $as_echo "$as_me: WARNING: libudev.h: proceeding with the compiler's result" >&2;}
28955 ac_header_preproc=yes
28956 ;;
28957 no:yes:* )
28958 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: present but cannot be compiled" >&5
28959 $as_echo "$as_me: WARNING: libudev.h: present but cannot be compiled" >&2;}
28960 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: check for missing prerequisite headers?" >&5
28961 $as_echo "$as_me: WARNING: libudev.h: check for missing prerequisite headers?" >&2;}
28962 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: see the Autoconf documentation" >&5
28963 $as_echo "$as_me: WARNING: libudev.h: see the Autoconf documentation" >&2;}
28964 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&5
28965 $as_echo "$as_me: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&2;}
28966 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the preprocessor's result" >&5
28967 $as_echo "$as_me: WARNING: libudev.h: proceeding with the preprocessor's result" >&2;}
28968 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: in the future, the compiler will take precedence" >&5
28969 $as_echo "$as_me: WARNING: libudev.h: in the future, the compiler will take precedence" >&2;}
28970
28971 ;;
28972 esac
28973 { $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
28974 $as_echo_n "checking for libudev.h... " >&6; }
28975 if test "${ac_cv_header_libudev_h+set}" = set; then
28976 $as_echo_n "(cached) " >&6
28977 else
28978 ac_cv_header_libudev_h=$ac_header_preproc
28979 fi
28980 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
28981 $as_echo "$ac_cv_header_libudev_h" >&6; }
28982
28983 fi
28984 if test "x$ac_cv_header_libudev_h" = x""yes; then
28985
28986 user_libudev=yes
28987 LIBUDEV="-ludev"
28988
28989
28990 cat >>confdefs.h <<\_ACEOF
28991 #define HAVE_LIBUDEV 1
28992 _ACEOF
28993
28994
28995 else
28996
28997 user_libudev=no
28998
28999 fi
29000
29001
29002
29003 { $as_echo "$as_me:$LINENO: checking for library containing udev_device_get_is_initialized" >&5
29004 $as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
29005 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
29006 $as_echo_n "(cached) " >&6
29007 else
29008 ac_func_search_save_LIBS=$LIBS
29009 cat >conftest.$ac_ext <<_ACEOF
29010 /* confdefs.h. */
29011 _ACEOF
29012 cat confdefs.h >>conftest.$ac_ext
29013 cat >>conftest.$ac_ext <<_ACEOF
29014 /* end confdefs.h. */
29015
29016 /* Override any GCC internal prototype to avoid an error.
29017 Use char because int might match the return type of a GCC
29018 builtin and then its argument prototype would still apply. */
29019 #ifdef __cplusplus
29020 extern "C"
29021 #endif
29022 char udev_device_get_is_initialized ();
29023 int
29024 main ()
29025 {
29026 return udev_device_get_is_initialized ();
29027 ;
29028 return 0;
29029 }
29030 _ACEOF
29031 for ac_lib in '' udev; do
29032 if test -z "$ac_lib"; then
29033 ac_res="none required"
29034 else
29035 ac_res=-l$ac_lib
29036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29037 fi
29038 rm -f conftest.$ac_objext conftest$ac_exeext
29039 if { (ac_try="$ac_link"
29040 case "(($ac_try" in
29041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29042 *) ac_try_echo=$ac_try;;
29043 esac
29044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29045 $as_echo "$ac_try_echo") >&5
29046 (eval "$ac_link") 2>conftest.er1
29047 ac_status=$?
29048 grep -v '^ *+' conftest.er1 >conftest.err
29049 rm -f conftest.er1
29050 cat conftest.err >&5
29051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29052 (exit $ac_status); } && {
29053 test -z "$ac_c_werror_flag" ||
29054 test ! -s conftest.err
29055 } && test -s conftest$ac_exeext && {
29056 test "$cross_compiling" = yes ||
29057 $as_test_x conftest$ac_exeext
29058 }; then
29059 ac_cv_search_udev_device_get_is_initialized=$ac_res
29060 else
29061 $as_echo "$as_me: failed program was:" >&5
29062 sed 's/^/| /' conftest.$ac_ext >&5
29063
29064
29065 fi
29066
29067 rm -rf conftest.dSYM
29068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29069 conftest$ac_exeext
29070 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
29071 break
29072 fi
29073 done
29074 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
29075 :
29076 else
29077 ac_cv_search_udev_device_get_is_initialized=no
29078 fi
29079 rm conftest.$ac_ext
29080 LIBS=$ac_func_search_save_LIBS
29081 fi
29082 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_udev_device_get_is_initialized" >&5
29083 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
29084 ac_res=$ac_cv_search_udev_device_get_is_initialized
29085 if test "$ac_res" != no; then
29086 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29087
29088
29089 cat >>confdefs.h <<\_ACEOF
29090 #define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1
29091 _ACEOF
29092
29093 fi
29094
29095
29096
29097
29098 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
29099 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
29100
29101 saved_flags="$CFLAGS"
29102 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
29103
29104 cat >conftest.$ac_ext <<_ACEOF
29105 /* confdefs.h. */
29106 _ACEOF
29107 cat confdefs.h >>conftest.$ac_ext
29108 cat >>conftest.$ac_ext <<_ACEOF
29109 /* end confdefs.h. */
29110
29111 int
29112 main ()
29113 {
29114
29115 ;
29116 return 0;
29117 }
29118 _ACEOF
29119 rm -f conftest.$ac_objext
29120 if { (ac_try="$ac_compile"
29121 case "(($ac_try" in
29122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29123 *) ac_try_echo=$ac_try;;
29124 esac
29125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29126 $as_echo "$ac_try_echo") >&5
29127 (eval "$ac_compile") 2>conftest.er1
29128 ac_status=$?
29129 grep -v '^ *+' conftest.er1 >conftest.err
29130 rm -f conftest.er1
29131 cat conftest.err >&5
29132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133 (exit $ac_status); } && {
29134 test -z "$ac_c_werror_flag" ||
29135 test ! -s conftest.err
29136 } && test -s conftest.$ac_objext; then
29137
29138 FRAME_LARGER_THAN=-Wframe-larger-than=1024
29139 { $as_echo "$as_me:$LINENO: result: yes" >&5
29140 $as_echo "yes" >&6; }
29141
29142 else
29143 $as_echo "$as_me: failed program was:" >&5
29144 sed 's/^/| /' conftest.$ac_ext >&5
29145
29146
29147 FRAME_LARGER_THAN=
29148 { $as_echo "$as_me:$LINENO: result: no" >&5
29149 $as_echo "no" >&6; }
29150
29151 fi
29152
29153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29154
29155 CFLAGS="$saved_flags"
29156
29157
29158
29159 if test "x$runstatedir" = x; then
29160 runstatedir='${localstatedir}/run'
29161
29162 fi
29163
29164
29165 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/sysmacros.h" >&5
29166 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
29167 cat >conftest.$ac_ext <<_ACEOF
29168 /* confdefs.h. */
29169 _ACEOF
29170 cat confdefs.h >>conftest.$ac_ext
29171 cat >>conftest.$ac_ext <<_ACEOF
29172 /* end confdefs.h. */
29173
29174 #include <sys/sysmacros.h>
29175
29176 int
29177 main ()
29178 {
29179
29180 int k;
29181 k = makedev(0,0);
29182
29183 ;
29184 return 0;
29185 }
29186 _ACEOF
29187 rm -f conftest.$ac_objext
29188 if { (ac_try="$ac_compile"
29189 case "(($ac_try" in
29190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29191 *) ac_try_echo=$ac_try;;
29192 esac
29193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29194 $as_echo "$ac_try_echo") >&5
29195 (eval "$ac_compile") 2>conftest.er1
29196 ac_status=$?
29197 grep -v '^ *+' conftest.er1 >conftest.err
29198 rm -f conftest.er1
29199 cat conftest.err >&5
29200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29201 (exit $ac_status); } && {
29202 test -z "$ac_c_werror_flag" ||
29203 test ! -s conftest.err
29204 } && test -s conftest.$ac_objext; then
29205
29206 { $as_echo "$as_me:$LINENO: result: yes" >&5
29207 $as_echo "yes" >&6; }
29208
29209 cat >>confdefs.h <<\_ACEOF
29210 #define HAVE_MAKEDEV_IN_SYSMACROS 1
29211 _ACEOF
29212
29213
29214 else
29215 $as_echo "$as_me: failed program was:" >&5
29216 sed 's/^/| /' conftest.$ac_ext >&5
29217
29218
29219 { $as_echo "$as_me:$LINENO: result: no" >&5
29220 $as_echo "no" >&6; }
29221
29222 fi
29223
29224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29225
29226
29227 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/mkdev.h" >&5
29228 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
29229 cat >conftest.$ac_ext <<_ACEOF
29230 /* confdefs.h. */
29231 _ACEOF
29232 cat confdefs.h >>conftest.$ac_ext
29233 cat >>conftest.$ac_ext <<_ACEOF
29234 /* end confdefs.h. */
29235
29236 #include <sys/mkdev.h>
29237
29238 int
29239 main ()
29240 {
29241
29242 int k;
29243 k = makedev(0,0);
29244
29245 ;
29246 return 0;
29247 }
29248 _ACEOF
29249 rm -f conftest.$ac_objext
29250 if { (ac_try="$ac_compile"
29251 case "(($ac_try" in
29252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29253 *) ac_try_echo=$ac_try;;
29254 esac
29255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29256 $as_echo "$ac_try_echo") >&5
29257 (eval "$ac_compile") 2>conftest.er1
29258 ac_status=$?
29259 grep -v '^ *+' conftest.er1 >conftest.err
29260 rm -f conftest.er1
29261 cat conftest.err >&5
29262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263 (exit $ac_status); } && {
29264 test -z "$ac_c_werror_flag" ||
29265 test ! -s conftest.err
29266 } && test -s conftest.$ac_objext; then
29267
29268 { $as_echo "$as_me:$LINENO: result: yes" >&5
29269 $as_echo "yes" >&6; }
29270
29271 cat >>confdefs.h <<\_ACEOF
29272 #define HAVE_MAKEDEV_IN_MKDEV 1
29273 _ACEOF
29274
29275
29276 else
29277 $as_echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29279
29280
29281 { $as_echo "$as_me:$LINENO: result: no" >&5
29282 $as_echo "no" >&6; }
29283
29284 fi
29285
29286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29287
29288
29289 { $as_echo "$as_me:$LINENO: checking for -Wno-format-truncation support" >&5
29290 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
29291
29292 saved_flags="$CFLAGS"
29293 CFLAGS="$CFLAGS -Wno-format-truncation"
29294
29295 cat >conftest.$ac_ext <<_ACEOF
29296 /* confdefs.h. */
29297 _ACEOF
29298 cat confdefs.h >>conftest.$ac_ext
29299 cat >>conftest.$ac_ext <<_ACEOF
29300 /* end confdefs.h. */
29301
29302 int
29303 main ()
29304 {
29305
29306 ;
29307 return 0;
29308 }
29309 _ACEOF
29310 rm -f conftest.$ac_objext
29311 if { (ac_try="$ac_compile"
29312 case "(($ac_try" in
29313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29314 *) ac_try_echo=$ac_try;;
29315 esac
29316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29317 $as_echo "$ac_try_echo") >&5
29318 (eval "$ac_compile") 2>conftest.er1
29319 ac_status=$?
29320 grep -v '^ *+' conftest.er1 >conftest.err
29321 rm -f conftest.er1
29322 cat conftest.err >&5
29323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29324 (exit $ac_status); } && {
29325 test -z "$ac_c_werror_flag" ||
29326 test ! -s conftest.err
29327 } && test -s conftest.$ac_objext; then
29328
29329 NO_FORMAT_TRUNCATION=-Wno-format-truncation
29330 { $as_echo "$as_me:$LINENO: result: yes" >&5
29331 $as_echo "yes" >&6; }
29332
29333 else
29334 $as_echo "$as_me: failed program was:" >&5
29335 sed 's/^/| /' conftest.$ac_ext >&5
29336
29337
29338 NO_FORMAT_TRUNCATION=
29339 { $as_echo "$as_me:$LINENO: result: no" >&5
29340 $as_echo "no" >&6; }
29341
29342 fi
29343
29344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29345
29346 CFLAGS="$saved_flags"
29347
29348
29349
29350
29351 ZONENAME="echo global"
29352
29353
29354
29355
29356
29357
29358 for ac_func in mlockall
29359 do
29360 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29361 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29362 $as_echo_n "checking for $ac_func... " >&6; }
29363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29364 $as_echo_n "(cached) " >&6
29365 else
29366 cat >conftest.$ac_ext <<_ACEOF
29367 /* confdefs.h. */
29368 _ACEOF
29369 cat confdefs.h >>conftest.$ac_ext
29370 cat >>conftest.$ac_ext <<_ACEOF
29371 /* end confdefs.h. */
29372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29374 #define $ac_func innocuous_$ac_func
29375
29376 /* System header to define __stub macros and hopefully few prototypes,
29377 which can conflict with char $ac_func (); below.
29378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29379 <limits.h> exists even on freestanding compilers. */
29380
29381 #ifdef __STDC__
29382 # include <limits.h>
29383 #else
29384 # include <assert.h>
29385 #endif
29386
29387 #undef $ac_func
29388
29389 /* Override any GCC internal prototype to avoid an error.
29390 Use char because int might match the return type of a GCC
29391 builtin and then its argument prototype would still apply. */
29392 #ifdef __cplusplus
29393 extern "C"
29394 #endif
29395 char $ac_func ();
29396 /* The GNU C library defines this for functions which it implements
29397 to always fail with ENOSYS. Some functions are actually named
29398 something starting with __ and the normal name is an alias. */
29399 #if defined __stub_$ac_func || defined __stub___$ac_func
29400 choke me
29401 #endif
29402
29403 int
29404 main ()
29405 {
29406 return $ac_func ();
29407 ;
29408 return 0;
29409 }
29410 _ACEOF
29411 rm -f conftest.$ac_objext conftest$ac_exeext
29412 if { (ac_try="$ac_link"
29413 case "(($ac_try" in
29414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415 *) ac_try_echo=$ac_try;;
29416 esac
29417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29418 $as_echo "$ac_try_echo") >&5
29419 (eval "$ac_link") 2>conftest.er1
29420 ac_status=$?
29421 grep -v '^ *+' conftest.er1 >conftest.err
29422 rm -f conftest.er1
29423 cat conftest.err >&5
29424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29425 (exit $ac_status); } && {
29426 test -z "$ac_c_werror_flag" ||
29427 test ! -s conftest.err
29428 } && test -s conftest$ac_exeext && {
29429 test "$cross_compiling" = yes ||
29430 $as_test_x conftest$ac_exeext
29431 }; then
29432 eval "$as_ac_var=yes"
29433 else
29434 $as_echo "$as_me: failed program was:" >&5
29435 sed 's/^/| /' conftest.$ac_ext >&5
29436
29437 eval "$as_ac_var=no"
29438 fi
29439
29440 rm -rf conftest.dSYM
29441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29442 conftest$ac_exeext conftest.$ac_ext
29443 fi
29444 ac_res=`eval 'as_val=${'$as_ac_var'}
29445 $as_echo "$as_val"'`
29446 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29447 $as_echo "$ac_res" >&6; }
29448 as_val=`eval 'as_val=${'$as_ac_var'}
29449 $as_echo "$as_val"'`
29450 if test "x$as_val" = x""yes; then
29451 cat >>confdefs.h <<_ACEOF
29452 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29453 _ACEOF
29454
29455 fi
29456 done
29457
29458 ;;
29459 all)
29460
29461
29462 # Check whether --with-mounthelperdir was given.
29463 if test "${with_mounthelperdir+set}" = set; then
29464 withval=$with_mounthelperdir; mounthelperdir=$withval
29465 else
29466 mounthelperdir=/sbin
29467 fi
29468
29469
29470
29471
29472
29473 { $as_echo "$as_me:$LINENO: checking for udev directories" >&5
29474 $as_echo_n "checking for udev directories... " >&6; }
29475
29476 # Check whether --with-udevdir was given.
29477 if test "${with_udevdir+set}" = set; then
29478 withval=$with_udevdir; udevdir=$withval
29479 else
29480 udevdir=check
29481 fi
29482
29483
29484 if test "x$udevdir" = xcheck; then
29485
29486 path1=/lib/udev
29487 path2=/usr/lib/udev
29488 default=$path2
29489
29490 if test -d "$path1"; then
29491 udevdir="$path1"
29492 else
29493
29494 if test -d "$path2"; then
29495 udevdir="$path2"
29496 else
29497 udevdir="$default"
29498 fi
29499
29500
29501 fi
29502
29503
29504 fi
29505
29506
29507
29508 # Check whether --with-udevruledir was given.
29509 if test "${with_udevruledir+set}" = set; then
29510 withval=$with_udevruledir; udevruledir=$withval
29511 else
29512 udevruledir="${udevdir}/rules.d"
29513 fi
29514
29515
29516
29517
29518 { $as_echo "$as_me:$LINENO: result: $udevdir;$udevruledir" >&5
29519 $as_echo "$udevdir;$udevruledir" >&6; }
29520
29521
29522 # Check whether --enable-systemd was given.
29523 if test "${enable_systemd+set}" = set; then
29524 enableval=$enable_systemd;
29525 else
29526 enable_systemd=yes
29527 fi
29528
29529
29530
29531 # Check whether --with-systemdunitdir was given.
29532 if test "${with_systemdunitdir+set}" = set; then
29533 withval=$with_systemdunitdir; systemdunitdir=$withval
29534 else
29535 systemdunitdir=/usr/lib/systemd/system
29536 fi
29537
29538
29539
29540 # Check whether --with-systemdpresetdir was given.
29541 if test "${with_systemdpresetdir+set}" = set; then
29542 withval=$with_systemdpresetdir; systemdpresetdir=$withval
29543 else
29544 systemdpresetdir=/usr/lib/systemd/system-preset
29545 fi
29546
29547
29548
29549 # Check whether --with-systemdmodulesloaddir was given.
29550 if test "${with_systemdmodulesloaddir+set}" = set; then
29551 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
29552 else
29553 systemdmodulesloaddir=/usr/lib/modules-load.d
29554 fi
29555
29556
29557
29558 if test "x$enable_systemd" = xyes; then
29559
29560 ZFS_INIT_SYSTEMD=systemd
29561 ZFS_MODULE_LOAD=modules-load.d
29562 modulesloaddir=$systemdmodulesloaddir
29563
29564 fi
29565
29566
29567
29568
29569
29570
29571
29572
29573
29574 # Check whether --enable-sysvinit was given.
29575 if test "${enable_sysvinit+set}" = set; then
29576 enableval=$enable_sysvinit;
29577 else
29578 enable_sysvinit=yes
29579 fi
29580
29581
29582 if test "x$enable_sysvinit" = xyes; then
29583 ZFS_INIT_SYSV=init.d
29584 fi
29585
29586
29587
29588
29589
29590 { $as_echo "$as_me:$LINENO: checking for dracut directory" >&5
29591 $as_echo_n "checking for dracut directory... " >&6; }
29592
29593 # Check whether --with-dracutdir was given.
29594 if test "${with_dracutdir+set}" = set; then
29595 withval=$with_dracutdir; dracutdir=$withval
29596 else
29597 dracutdir=check
29598 fi
29599
29600
29601 if test "x$dracutdir" = xcheck; then
29602
29603 path1=/usr/share/dracut
29604 path2=/usr/lib/dracut
29605 default=$path2
29606
29607 if test -d "$path1"; then
29608 dracutdir="$path1"
29609 else
29610
29611 if test -d "$path2"; then
29612 dracutdir="$path2"
29613 else
29614 dracutdir="$default"
29615 fi
29616
29617
29618 fi
29619
29620
29621 fi
29622
29623
29624
29625 { $as_echo "$as_me:$LINENO: result: $dracutdir" >&5
29626 $as_echo "$dracutdir" >&6; }
29627
29628
29629 ZLIB=
29630
29631 if test "${ac_cv_header_zlib_h+set}" = set; then
29632 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
29633 $as_echo_n "checking for zlib.h... " >&6; }
29634 if test "${ac_cv_header_zlib_h+set}" = set; then
29635 $as_echo_n "(cached) " >&6
29636 fi
29637 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29638 $as_echo "$ac_cv_header_zlib_h" >&6; }
29639 else
29640 # Is the header compilable?
29641 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
29642 $as_echo_n "checking zlib.h usability... " >&6; }
29643 cat >conftest.$ac_ext <<_ACEOF
29644 /* confdefs.h. */
29645 _ACEOF
29646 cat confdefs.h >>conftest.$ac_ext
29647 cat >>conftest.$ac_ext <<_ACEOF
29648 /* end confdefs.h. */
29649 $ac_includes_default
29650 #include <zlib.h>
29651 _ACEOF
29652 rm -f conftest.$ac_objext
29653 if { (ac_try="$ac_compile"
29654 case "(($ac_try" in
29655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29656 *) ac_try_echo=$ac_try;;
29657 esac
29658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29659 $as_echo "$ac_try_echo") >&5
29660 (eval "$ac_compile") 2>conftest.er1
29661 ac_status=$?
29662 grep -v '^ *+' conftest.er1 >conftest.err
29663 rm -f conftest.er1
29664 cat conftest.err >&5
29665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666 (exit $ac_status); } && {
29667 test -z "$ac_c_werror_flag" ||
29668 test ! -s conftest.err
29669 } && test -s conftest.$ac_objext; then
29670 ac_header_compiler=yes
29671 else
29672 $as_echo "$as_me: failed program was:" >&5
29673 sed 's/^/| /' conftest.$ac_ext >&5
29674
29675 ac_header_compiler=no
29676 fi
29677
29678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29679 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29680 $as_echo "$ac_header_compiler" >&6; }
29681
29682 # Is the header present?
29683 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
29684 $as_echo_n "checking zlib.h presence... " >&6; }
29685 cat >conftest.$ac_ext <<_ACEOF
29686 /* confdefs.h. */
29687 _ACEOF
29688 cat confdefs.h >>conftest.$ac_ext
29689 cat >>conftest.$ac_ext <<_ACEOF
29690 /* end confdefs.h. */
29691 #include <zlib.h>
29692 _ACEOF
29693 if { (ac_try="$ac_cpp conftest.$ac_ext"
29694 case "(($ac_try" in
29695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29696 *) ac_try_echo=$ac_try;;
29697 esac
29698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29699 $as_echo "$ac_try_echo") >&5
29700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29701 ac_status=$?
29702 grep -v '^ *+' conftest.er1 >conftest.err
29703 rm -f conftest.er1
29704 cat conftest.err >&5
29705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706 (exit $ac_status); } >/dev/null && {
29707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29708 test ! -s conftest.err
29709 }; then
29710 ac_header_preproc=yes
29711 else
29712 $as_echo "$as_me: failed program was:" >&5
29713 sed 's/^/| /' conftest.$ac_ext >&5
29714
29715 ac_header_preproc=no
29716 fi
29717
29718 rm -f conftest.err conftest.$ac_ext
29719 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29720 $as_echo "$ac_header_preproc" >&6; }
29721
29722 # So? What about this header?
29723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29724 yes:no: )
29725 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
29726 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29727 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
29728 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
29729 ac_header_preproc=yes
29730 ;;
29731 no:yes:* )
29732 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
29733 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
29734 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
29735 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
29736 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
29737 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
29738 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
29739 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
29740 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
29741 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
29742 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
29743 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
29744
29745 ;;
29746 esac
29747 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
29748 $as_echo_n "checking for zlib.h... " >&6; }
29749 if test "${ac_cv_header_zlib_h+set}" = set; then
29750 $as_echo_n "(cached) " >&6
29751 else
29752 ac_cv_header_zlib_h=$ac_header_preproc
29753 fi
29754 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29755 $as_echo "$ac_cv_header_zlib_h" >&6; }
29756
29757 fi
29758 if test "x$ac_cv_header_zlib_h" = x""yes; then
29759 :
29760 else
29761 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29763 { { $as_echo "$as_me:$LINENO: error:
29764 *** zlib.h missing, zlib-devel package required
29765 See \`config.log' for more details." >&5
29766 $as_echo "$as_me: error:
29767 *** zlib.h missing, zlib-devel package required
29768 See \`config.log' for more details." >&2;}
29769 { (exit 1); exit 1; }; }; }
29770 fi
29771
29772
29773
29774 { $as_echo "$as_me:$LINENO: checking for library containing compress2" >&5
29775 $as_echo_n "checking for library containing compress2... " >&6; }
29776 if test "${ac_cv_search_compress2+set}" = set; then
29777 $as_echo_n "(cached) " >&6
29778 else
29779 ac_func_search_save_LIBS=$LIBS
29780 cat >conftest.$ac_ext <<_ACEOF
29781 /* confdefs.h. */
29782 _ACEOF
29783 cat confdefs.h >>conftest.$ac_ext
29784 cat >>conftest.$ac_ext <<_ACEOF
29785 /* end confdefs.h. */
29786
29787 /* Override any GCC internal prototype to avoid an error.
29788 Use char because int might match the return type of a GCC
29789 builtin and then its argument prototype would still apply. */
29790 #ifdef __cplusplus
29791 extern "C"
29792 #endif
29793 char compress2 ();
29794 int
29795 main ()
29796 {
29797 return compress2 ();
29798 ;
29799 return 0;
29800 }
29801 _ACEOF
29802 for ac_lib in '' z; do
29803 if test -z "$ac_lib"; then
29804 ac_res="none required"
29805 else
29806 ac_res=-l$ac_lib
29807 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29808 fi
29809 rm -f conftest.$ac_objext conftest$ac_exeext
29810 if { (ac_try="$ac_link"
29811 case "(($ac_try" in
29812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29813 *) ac_try_echo=$ac_try;;
29814 esac
29815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29816 $as_echo "$ac_try_echo") >&5
29817 (eval "$ac_link") 2>conftest.er1
29818 ac_status=$?
29819 grep -v '^ *+' conftest.er1 >conftest.err
29820 rm -f conftest.er1
29821 cat conftest.err >&5
29822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29823 (exit $ac_status); } && {
29824 test -z "$ac_c_werror_flag" ||
29825 test ! -s conftest.err
29826 } && test -s conftest$ac_exeext && {
29827 test "$cross_compiling" = yes ||
29828 $as_test_x conftest$ac_exeext
29829 }; then
29830 ac_cv_search_compress2=$ac_res
29831 else
29832 $as_echo "$as_me: failed program was:" >&5
29833 sed 's/^/| /' conftest.$ac_ext >&5
29834
29835
29836 fi
29837
29838 rm -rf conftest.dSYM
29839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29840 conftest$ac_exeext
29841 if test "${ac_cv_search_compress2+set}" = set; then
29842 break
29843 fi
29844 done
29845 if test "${ac_cv_search_compress2+set}" = set; then
29846 :
29847 else
29848 ac_cv_search_compress2=no
29849 fi
29850 rm conftest.$ac_ext
29851 LIBS=$ac_func_search_save_LIBS
29852 fi
29853 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_compress2" >&5
29854 $as_echo "$ac_cv_search_compress2" >&6; }
29855 ac_res=$ac_cv_search_compress2
29856 if test "$ac_res" != no; then
29857 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29858
29859 else
29860 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29862 { { $as_echo "$as_me:$LINENO: error:
29863 *** compress2() missing, zlib-devel package required
29864 See \`config.log' for more details." >&5
29865 $as_echo "$as_me: error:
29866 *** compress2() missing, zlib-devel package required
29867 See \`config.log' for more details." >&2;}
29868 { (exit 1); exit 1; }; }; }
29869 fi
29870
29871
29872 { $as_echo "$as_me:$LINENO: checking for library containing uncompress" >&5
29873 $as_echo_n "checking for library containing uncompress... " >&6; }
29874 if test "${ac_cv_search_uncompress+set}" = set; then
29875 $as_echo_n "(cached) " >&6
29876 else
29877 ac_func_search_save_LIBS=$LIBS
29878 cat >conftest.$ac_ext <<_ACEOF
29879 /* confdefs.h. */
29880 _ACEOF
29881 cat confdefs.h >>conftest.$ac_ext
29882 cat >>conftest.$ac_ext <<_ACEOF
29883 /* end confdefs.h. */
29884
29885 /* Override any GCC internal prototype to avoid an error.
29886 Use char because int might match the return type of a GCC
29887 builtin and then its argument prototype would still apply. */
29888 #ifdef __cplusplus
29889 extern "C"
29890 #endif
29891 char uncompress ();
29892 int
29893 main ()
29894 {
29895 return uncompress ();
29896 ;
29897 return 0;
29898 }
29899 _ACEOF
29900 for ac_lib in '' z; do
29901 if test -z "$ac_lib"; then
29902 ac_res="none required"
29903 else
29904 ac_res=-l$ac_lib
29905 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29906 fi
29907 rm -f conftest.$ac_objext conftest$ac_exeext
29908 if { (ac_try="$ac_link"
29909 case "(($ac_try" in
29910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29911 *) ac_try_echo=$ac_try;;
29912 esac
29913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29914 $as_echo "$ac_try_echo") >&5
29915 (eval "$ac_link") 2>conftest.er1
29916 ac_status=$?
29917 grep -v '^ *+' conftest.er1 >conftest.err
29918 rm -f conftest.er1
29919 cat conftest.err >&5
29920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921 (exit $ac_status); } && {
29922 test -z "$ac_c_werror_flag" ||
29923 test ! -s conftest.err
29924 } && test -s conftest$ac_exeext && {
29925 test "$cross_compiling" = yes ||
29926 $as_test_x conftest$ac_exeext
29927 }; then
29928 ac_cv_search_uncompress=$ac_res
29929 else
29930 $as_echo "$as_me: failed program was:" >&5
29931 sed 's/^/| /' conftest.$ac_ext >&5
29932
29933
29934 fi
29935
29936 rm -rf conftest.dSYM
29937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29938 conftest$ac_exeext
29939 if test "${ac_cv_search_uncompress+set}" = set; then
29940 break
29941 fi
29942 done
29943 if test "${ac_cv_search_uncompress+set}" = set; then
29944 :
29945 else
29946 ac_cv_search_uncompress=no
29947 fi
29948 rm conftest.$ac_ext
29949 LIBS=$ac_func_search_save_LIBS
29950 fi
29951 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uncompress" >&5
29952 $as_echo "$ac_cv_search_uncompress" >&6; }
29953 ac_res=$ac_cv_search_uncompress
29954 if test "$ac_res" != no; then
29955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29956
29957 else
29958 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29960 { { $as_echo "$as_me:$LINENO: error:
29961 *** uncompress() missing, zlib-devel package required
29962 See \`config.log' for more details." >&5
29963 $as_echo "$as_me: error:
29964 *** uncompress() missing, zlib-devel package required
29965 See \`config.log' for more details." >&2;}
29966 { (exit 1); exit 1; }; }; }
29967 fi
29968
29969
29970 { $as_echo "$as_me:$LINENO: checking for library containing crc32" >&5
29971 $as_echo_n "checking for library containing crc32... " >&6; }
29972 if test "${ac_cv_search_crc32+set}" = set; then
29973 $as_echo_n "(cached) " >&6
29974 else
29975 ac_func_search_save_LIBS=$LIBS
29976 cat >conftest.$ac_ext <<_ACEOF
29977 /* confdefs.h. */
29978 _ACEOF
29979 cat confdefs.h >>conftest.$ac_ext
29980 cat >>conftest.$ac_ext <<_ACEOF
29981 /* end confdefs.h. */
29982
29983 /* Override any GCC internal prototype to avoid an error.
29984 Use char because int might match the return type of a GCC
29985 builtin and then its argument prototype would still apply. */
29986 #ifdef __cplusplus
29987 extern "C"
29988 #endif
29989 char crc32 ();
29990 int
29991 main ()
29992 {
29993 return crc32 ();
29994 ;
29995 return 0;
29996 }
29997 _ACEOF
29998 for ac_lib in '' z; do
29999 if test -z "$ac_lib"; then
30000 ac_res="none required"
30001 else
30002 ac_res=-l$ac_lib
30003 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30004 fi
30005 rm -f conftest.$ac_objext conftest$ac_exeext
30006 if { (ac_try="$ac_link"
30007 case "(($ac_try" in
30008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30009 *) ac_try_echo=$ac_try;;
30010 esac
30011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30012 $as_echo "$ac_try_echo") >&5
30013 (eval "$ac_link") 2>conftest.er1
30014 ac_status=$?
30015 grep -v '^ *+' conftest.er1 >conftest.err
30016 rm -f conftest.er1
30017 cat conftest.err >&5
30018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019 (exit $ac_status); } && {
30020 test -z "$ac_c_werror_flag" ||
30021 test ! -s conftest.err
30022 } && test -s conftest$ac_exeext && {
30023 test "$cross_compiling" = yes ||
30024 $as_test_x conftest$ac_exeext
30025 }; then
30026 ac_cv_search_crc32=$ac_res
30027 else
30028 $as_echo "$as_me: failed program was:" >&5
30029 sed 's/^/| /' conftest.$ac_ext >&5
30030
30031
30032 fi
30033
30034 rm -rf conftest.dSYM
30035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30036 conftest$ac_exeext
30037 if test "${ac_cv_search_crc32+set}" = set; then
30038 break
30039 fi
30040 done
30041 if test "${ac_cv_search_crc32+set}" = set; then
30042 :
30043 else
30044 ac_cv_search_crc32=no
30045 fi
30046 rm conftest.$ac_ext
30047 LIBS=$ac_func_search_save_LIBS
30048 fi
30049 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crc32" >&5
30050 $as_echo "$ac_cv_search_crc32" >&6; }
30051 ac_res=$ac_cv_search_crc32
30052 if test "$ac_res" != no; then
30053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30054
30055 else
30056 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30058 { { $as_echo "$as_me:$LINENO: error:
30059 *** crc32() missing, zlib-devel package required
30060 See \`config.log' for more details." >&5
30061 $as_echo "$as_me: error:
30062 *** crc32() missing, zlib-devel package required
30063 See \`config.log' for more details." >&2;}
30064 { (exit 1); exit 1; }; }; }
30065 fi
30066
30067
30068 ZLIB="-lz"
30069
30070
30071 cat >>confdefs.h <<\_ACEOF
30072 #define HAVE_ZLIB 1
30073 _ACEOF
30074
30075
30076
30077 LIBUUID=
30078
30079 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
30080 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
30081 $as_echo_n "checking for uuid/uuid.h... " >&6; }
30082 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
30083 $as_echo_n "(cached) " >&6
30084 fi
30085 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
30086 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
30087 else
30088 # Is the header compilable?
30089 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
30090 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
30091 cat >conftest.$ac_ext <<_ACEOF
30092 /* confdefs.h. */
30093 _ACEOF
30094 cat confdefs.h >>conftest.$ac_ext
30095 cat >>conftest.$ac_ext <<_ACEOF
30096 /* end confdefs.h. */
30097 $ac_includes_default
30098 #include <uuid/uuid.h>
30099 _ACEOF
30100 rm -f conftest.$ac_objext
30101 if { (ac_try="$ac_compile"
30102 case "(($ac_try" in
30103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30104 *) ac_try_echo=$ac_try;;
30105 esac
30106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30107 $as_echo "$ac_try_echo") >&5
30108 (eval "$ac_compile") 2>conftest.er1
30109 ac_status=$?
30110 grep -v '^ *+' conftest.er1 >conftest.err
30111 rm -f conftest.er1
30112 cat conftest.err >&5
30113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30114 (exit $ac_status); } && {
30115 test -z "$ac_c_werror_flag" ||
30116 test ! -s conftest.err
30117 } && test -s conftest.$ac_objext; then
30118 ac_header_compiler=yes
30119 else
30120 $as_echo "$as_me: failed program was:" >&5
30121 sed 's/^/| /' conftest.$ac_ext >&5
30122
30123 ac_header_compiler=no
30124 fi
30125
30126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30127 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30128 $as_echo "$ac_header_compiler" >&6; }
30129
30130 # Is the header present?
30131 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
30132 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
30133 cat >conftest.$ac_ext <<_ACEOF
30134 /* confdefs.h. */
30135 _ACEOF
30136 cat confdefs.h >>conftest.$ac_ext
30137 cat >>conftest.$ac_ext <<_ACEOF
30138 /* end confdefs.h. */
30139 #include <uuid/uuid.h>
30140 _ACEOF
30141 if { (ac_try="$ac_cpp conftest.$ac_ext"
30142 case "(($ac_try" in
30143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30144 *) ac_try_echo=$ac_try;;
30145 esac
30146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30147 $as_echo "$ac_try_echo") >&5
30148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30149 ac_status=$?
30150 grep -v '^ *+' conftest.er1 >conftest.err
30151 rm -f conftest.er1
30152 cat conftest.err >&5
30153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30154 (exit $ac_status); } >/dev/null && {
30155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30156 test ! -s conftest.err
30157 }; then
30158 ac_header_preproc=yes
30159 else
30160 $as_echo "$as_me: failed program was:" >&5
30161 sed 's/^/| /' conftest.$ac_ext >&5
30162
30163 ac_header_preproc=no
30164 fi
30165
30166 rm -f conftest.err conftest.$ac_ext
30167 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30168 $as_echo "$ac_header_preproc" >&6; }
30169
30170 # So? What about this header?
30171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30172 yes:no: )
30173 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
30174 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30175 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
30176 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
30177 ac_header_preproc=yes
30178 ;;
30179 no:yes:* )
30180 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
30181 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
30182 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
30183 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
30184 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
30185 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
30186 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
30187 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
30188 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
30189 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
30190 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
30191 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
30192
30193 ;;
30194 esac
30195 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
30196 $as_echo_n "checking for uuid/uuid.h... " >&6; }
30197 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
30198 $as_echo_n "(cached) " >&6
30199 else
30200 ac_cv_header_uuid_uuid_h=$ac_header_preproc
30201 fi
30202 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
30203 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
30204
30205 fi
30206 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
30207 :
30208 else
30209 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30211 { { $as_echo "$as_me:$LINENO: error:
30212 *** uuid/uuid.h missing, libuuid-devel package required
30213 See \`config.log' for more details." >&5
30214 $as_echo "$as_me: error:
30215 *** uuid/uuid.h missing, libuuid-devel package required
30216 See \`config.log' for more details." >&2;}
30217 { (exit 1); exit 1; }; }; }
30218 fi
30219
30220
30221
30222 { $as_echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
30223 $as_echo_n "checking for library containing uuid_generate... " >&6; }
30224 if test "${ac_cv_search_uuid_generate+set}" = set; then
30225 $as_echo_n "(cached) " >&6
30226 else
30227 ac_func_search_save_LIBS=$LIBS
30228 cat >conftest.$ac_ext <<_ACEOF
30229 /* confdefs.h. */
30230 _ACEOF
30231 cat confdefs.h >>conftest.$ac_ext
30232 cat >>conftest.$ac_ext <<_ACEOF
30233 /* end confdefs.h. */
30234
30235 /* Override any GCC internal prototype to avoid an error.
30236 Use char because int might match the return type of a GCC
30237 builtin and then its argument prototype would still apply. */
30238 #ifdef __cplusplus
30239 extern "C"
30240 #endif
30241 char uuid_generate ();
30242 int
30243 main ()
30244 {
30245 return uuid_generate ();
30246 ;
30247 return 0;
30248 }
30249 _ACEOF
30250 for ac_lib in '' uuid; do
30251 if test -z "$ac_lib"; then
30252 ac_res="none required"
30253 else
30254 ac_res=-l$ac_lib
30255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30256 fi
30257 rm -f conftest.$ac_objext conftest$ac_exeext
30258 if { (ac_try="$ac_link"
30259 case "(($ac_try" in
30260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30261 *) ac_try_echo=$ac_try;;
30262 esac
30263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30264 $as_echo "$ac_try_echo") >&5
30265 (eval "$ac_link") 2>conftest.er1
30266 ac_status=$?
30267 grep -v '^ *+' conftest.er1 >conftest.err
30268 rm -f conftest.er1
30269 cat conftest.err >&5
30270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); } && {
30272 test -z "$ac_c_werror_flag" ||
30273 test ! -s conftest.err
30274 } && test -s conftest$ac_exeext && {
30275 test "$cross_compiling" = yes ||
30276 $as_test_x conftest$ac_exeext
30277 }; then
30278 ac_cv_search_uuid_generate=$ac_res
30279 else
30280 $as_echo "$as_me: failed program was:" >&5
30281 sed 's/^/| /' conftest.$ac_ext >&5
30282
30283
30284 fi
30285
30286 rm -rf conftest.dSYM
30287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30288 conftest$ac_exeext
30289 if test "${ac_cv_search_uuid_generate+set}" = set; then
30290 break
30291 fi
30292 done
30293 if test "${ac_cv_search_uuid_generate+set}" = set; then
30294 :
30295 else
30296 ac_cv_search_uuid_generate=no
30297 fi
30298 rm conftest.$ac_ext
30299 LIBS=$ac_func_search_save_LIBS
30300 fi
30301 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
30302 $as_echo "$ac_cv_search_uuid_generate" >&6; }
30303 ac_res=$ac_cv_search_uuid_generate
30304 if test "$ac_res" != no; then
30305 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30306
30307 else
30308 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30310 { { $as_echo "$as_me:$LINENO: error:
30311 *** uuid_generate() missing, libuuid-devel package required
30312 See \`config.log' for more details." >&5
30313 $as_echo "$as_me: error:
30314 *** uuid_generate() missing, libuuid-devel package required
30315 See \`config.log' for more details." >&2;}
30316 { (exit 1); exit 1; }; }; }
30317 fi
30318
30319
30320 { $as_echo "$as_me:$LINENO: checking for library containing uuid_is_null" >&5
30321 $as_echo_n "checking for library containing uuid_is_null... " >&6; }
30322 if test "${ac_cv_search_uuid_is_null+set}" = set; then
30323 $as_echo_n "(cached) " >&6
30324 else
30325 ac_func_search_save_LIBS=$LIBS
30326 cat >conftest.$ac_ext <<_ACEOF
30327 /* confdefs.h. */
30328 _ACEOF
30329 cat confdefs.h >>conftest.$ac_ext
30330 cat >>conftest.$ac_ext <<_ACEOF
30331 /* end confdefs.h. */
30332
30333 /* Override any GCC internal prototype to avoid an error.
30334 Use char because int might match the return type of a GCC
30335 builtin and then its argument prototype would still apply. */
30336 #ifdef __cplusplus
30337 extern "C"
30338 #endif
30339 char uuid_is_null ();
30340 int
30341 main ()
30342 {
30343 return uuid_is_null ();
30344 ;
30345 return 0;
30346 }
30347 _ACEOF
30348 for ac_lib in '' uuid; do
30349 if test -z "$ac_lib"; then
30350 ac_res="none required"
30351 else
30352 ac_res=-l$ac_lib
30353 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30354 fi
30355 rm -f conftest.$ac_objext conftest$ac_exeext
30356 if { (ac_try="$ac_link"
30357 case "(($ac_try" in
30358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30359 *) ac_try_echo=$ac_try;;
30360 esac
30361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30362 $as_echo "$ac_try_echo") >&5
30363 (eval "$ac_link") 2>conftest.er1
30364 ac_status=$?
30365 grep -v '^ *+' conftest.er1 >conftest.err
30366 rm -f conftest.er1
30367 cat conftest.err >&5
30368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30369 (exit $ac_status); } && {
30370 test -z "$ac_c_werror_flag" ||
30371 test ! -s conftest.err
30372 } && test -s conftest$ac_exeext && {
30373 test "$cross_compiling" = yes ||
30374 $as_test_x conftest$ac_exeext
30375 }; then
30376 ac_cv_search_uuid_is_null=$ac_res
30377 else
30378 $as_echo "$as_me: failed program was:" >&5
30379 sed 's/^/| /' conftest.$ac_ext >&5
30380
30381
30382 fi
30383
30384 rm -rf conftest.dSYM
30385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30386 conftest$ac_exeext
30387 if test "${ac_cv_search_uuid_is_null+set}" = set; then
30388 break
30389 fi
30390 done
30391 if test "${ac_cv_search_uuid_is_null+set}" = set; then
30392 :
30393 else
30394 ac_cv_search_uuid_is_null=no
30395 fi
30396 rm conftest.$ac_ext
30397 LIBS=$ac_func_search_save_LIBS
30398 fi
30399 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_is_null" >&5
30400 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
30401 ac_res=$ac_cv_search_uuid_is_null
30402 if test "$ac_res" != no; then
30403 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30404
30405 else
30406 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30408 { { $as_echo "$as_me:$LINENO: error:
30409 *** uuid_is_null() missing, libuuid-devel package required
30410 See \`config.log' for more details." >&5
30411 $as_echo "$as_me: error:
30412 *** uuid_is_null() missing, libuuid-devel package required
30413 See \`config.log' for more details." >&2;}
30414 { (exit 1); exit 1; }; }; }
30415 fi
30416
30417
30418 LIBUUID="-luuid"
30419
30420
30421 cat >>confdefs.h <<\_ACEOF
30422 #define HAVE_LIBUUID 1
30423 _ACEOF
30424
30425
30426
30427
30428 # Check whether --with-tirpc was given.
30429 if test "${with_tirpc+set}" = set; then
30430 withval=$with_tirpc;
30431 else
30432 with_tirpc=check
30433 fi
30434
30435
30436 LIBTIRPC=
30437 LIBTIRPC_CFLAGS=
30438
30439 if test "x$with_tirpc" != xno; then
30440 { $as_echo "$as_me:$LINENO: checking for xdrmem_create in -ltirpc" >&5
30441 $as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
30442 if test "${ac_cv_lib_tirpc_xdrmem_create+set}" = set; then
30443 $as_echo_n "(cached) " >&6
30444 else
30445 ac_check_lib_save_LIBS=$LIBS
30446 LIBS="-ltirpc $LIBS"
30447 cat >conftest.$ac_ext <<_ACEOF
30448 /* confdefs.h. */
30449 _ACEOF
30450 cat confdefs.h >>conftest.$ac_ext
30451 cat >>conftest.$ac_ext <<_ACEOF
30452 /* end confdefs.h. */
30453
30454 /* Override any GCC internal prototype to avoid an error.
30455 Use char because int might match the return type of a GCC
30456 builtin and then its argument prototype would still apply. */
30457 #ifdef __cplusplus
30458 extern "C"
30459 #endif
30460 char xdrmem_create ();
30461 int
30462 main ()
30463 {
30464 return xdrmem_create ();
30465 ;
30466 return 0;
30467 }
30468 _ACEOF
30469 rm -f conftest.$ac_objext conftest$ac_exeext
30470 if { (ac_try="$ac_link"
30471 case "(($ac_try" in
30472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30473 *) ac_try_echo=$ac_try;;
30474 esac
30475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30476 $as_echo "$ac_try_echo") >&5
30477 (eval "$ac_link") 2>conftest.er1
30478 ac_status=$?
30479 grep -v '^ *+' conftest.er1 >conftest.err
30480 rm -f conftest.er1
30481 cat conftest.err >&5
30482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30483 (exit $ac_status); } && {
30484 test -z "$ac_c_werror_flag" ||
30485 test ! -s conftest.err
30486 } && test -s conftest$ac_exeext && {
30487 test "$cross_compiling" = yes ||
30488 $as_test_x conftest$ac_exeext
30489 }; then
30490 ac_cv_lib_tirpc_xdrmem_create=yes
30491 else
30492 $as_echo "$as_me: failed program was:" >&5
30493 sed 's/^/| /' conftest.$ac_ext >&5
30494
30495 ac_cv_lib_tirpc_xdrmem_create=no
30496 fi
30497
30498 rm -rf conftest.dSYM
30499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30500 conftest$ac_exeext conftest.$ac_ext
30501 LIBS=$ac_check_lib_save_LIBS
30502 fi
30503 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
30504 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
30505 if test "x$ac_cv_lib_tirpc_xdrmem_create" = x""yes; then
30506 LIBTIRPC=-ltirpc
30507
30508 LIBTIRPC_CFLAGS=-I/usr/include/tirpc
30509
30510
30511 cat >>confdefs.h <<\_ACEOF
30512 #define HAVE_LIBTIRPC 1
30513 _ACEOF
30514
30515
30516 else
30517 if test "x$with_tirpc" != xcheck; then
30518 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30520 { { $as_echo "$as_me:$LINENO: error: --with-tirpc was given, but test for tirpc failed
30521 See \`config.log' for more details." >&5
30522 $as_echo "$as_me: error: --with-tirpc was given, but test for tirpc failed
30523 See \`config.log' for more details." >&2;}
30524 { (exit 1); exit 1; }; }; }
30525 fi
30526 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
30527 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
30528 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30529 $as_echo_n "(cached) " >&6
30530 else
30531 ac_func_search_save_LIBS=$LIBS
30532 cat >conftest.$ac_ext <<_ACEOF
30533 /* confdefs.h. */
30534 _ACEOF
30535 cat confdefs.h >>conftest.$ac_ext
30536 cat >>conftest.$ac_ext <<_ACEOF
30537 /* end confdefs.h. */
30538
30539 /* Override any GCC internal prototype to avoid an error.
30540 Use char because int might match the return type of a GCC
30541 builtin and then its argument prototype would still apply. */
30542 #ifdef __cplusplus
30543 extern "C"
30544 #endif
30545 char xdrmem_create ();
30546 int
30547 main ()
30548 {
30549 return xdrmem_create ();
30550 ;
30551 return 0;
30552 }
30553 _ACEOF
30554 for ac_lib in '' tirpc; do
30555 if test -z "$ac_lib"; then
30556 ac_res="none required"
30557 else
30558 ac_res=-l$ac_lib
30559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30560 fi
30561 rm -f conftest.$ac_objext conftest$ac_exeext
30562 if { (ac_try="$ac_link"
30563 case "(($ac_try" in
30564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30565 *) ac_try_echo=$ac_try;;
30566 esac
30567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30568 $as_echo "$ac_try_echo") >&5
30569 (eval "$ac_link") 2>conftest.er1
30570 ac_status=$?
30571 grep -v '^ *+' conftest.er1 >conftest.err
30572 rm -f conftest.er1
30573 cat conftest.err >&5
30574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575 (exit $ac_status); } && {
30576 test -z "$ac_c_werror_flag" ||
30577 test ! -s conftest.err
30578 } && test -s conftest$ac_exeext && {
30579 test "$cross_compiling" = yes ||
30580 $as_test_x conftest$ac_exeext
30581 }; then
30582 ac_cv_search_xdrmem_create=$ac_res
30583 else
30584 $as_echo "$as_me: failed program was:" >&5
30585 sed 's/^/| /' conftest.$ac_ext >&5
30586
30587
30588 fi
30589
30590 rm -rf conftest.dSYM
30591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30592 conftest$ac_exeext
30593 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30594 break
30595 fi
30596 done
30597 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30598 :
30599 else
30600 ac_cv_search_xdrmem_create=no
30601 fi
30602 rm conftest.$ac_ext
30603 LIBS=$ac_func_search_save_LIBS
30604 fi
30605 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
30606 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
30607 ac_res=$ac_cv_search_xdrmem_create
30608 if test "$ac_res" != no; then
30609 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30610
30611 else
30612
30613 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30615 { { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires tirpc or libc
30616 See \`config.log' for more details." >&5
30617 $as_echo "$as_me: error: xdrmem_create() requires tirpc or libc
30618 See \`config.log' for more details." >&2;}
30619 { (exit 1); exit 1; }; }; }
30620 fi
30621
30622
30623 fi
30624
30625 else
30626 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
30627 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
30628 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30629 $as_echo_n "(cached) " >&6
30630 else
30631 ac_func_search_save_LIBS=$LIBS
30632 cat >conftest.$ac_ext <<_ACEOF
30633 /* confdefs.h. */
30634 _ACEOF
30635 cat confdefs.h >>conftest.$ac_ext
30636 cat >>conftest.$ac_ext <<_ACEOF
30637 /* end confdefs.h. */
30638
30639 /* Override any GCC internal prototype to avoid an error.
30640 Use char because int might match the return type of a GCC
30641 builtin and then its argument prototype would still apply. */
30642 #ifdef __cplusplus
30643 extern "C"
30644 #endif
30645 char xdrmem_create ();
30646 int
30647 main ()
30648 {
30649 return xdrmem_create ();
30650 ;
30651 return 0;
30652 }
30653 _ACEOF
30654 for ac_lib in '' tirpc; do
30655 if test -z "$ac_lib"; then
30656 ac_res="none required"
30657 else
30658 ac_res=-l$ac_lib
30659 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30660 fi
30661 rm -f conftest.$ac_objext conftest$ac_exeext
30662 if { (ac_try="$ac_link"
30663 case "(($ac_try" in
30664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30665 *) ac_try_echo=$ac_try;;
30666 esac
30667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30668 $as_echo "$ac_try_echo") >&5
30669 (eval "$ac_link") 2>conftest.er1
30670 ac_status=$?
30671 grep -v '^ *+' conftest.er1 >conftest.err
30672 rm -f conftest.er1
30673 cat conftest.err >&5
30674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675 (exit $ac_status); } && {
30676 test -z "$ac_c_werror_flag" ||
30677 test ! -s conftest.err
30678 } && test -s conftest$ac_exeext && {
30679 test "$cross_compiling" = yes ||
30680 $as_test_x conftest$ac_exeext
30681 }; then
30682 ac_cv_search_xdrmem_create=$ac_res
30683 else
30684 $as_echo "$as_me: failed program was:" >&5
30685 sed 's/^/| /' conftest.$ac_ext >&5
30686
30687
30688 fi
30689
30690 rm -rf conftest.dSYM
30691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30692 conftest$ac_exeext
30693 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30694 break
30695 fi
30696 done
30697 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30698 :
30699 else
30700 ac_cv_search_xdrmem_create=no
30701 fi
30702 rm conftest.$ac_ext
30703 LIBS=$ac_func_search_save_LIBS
30704 fi
30705 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
30706 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
30707 ac_res=$ac_cv_search_xdrmem_create
30708 if test "$ac_res" != no; then
30709 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30710
30711 else
30712
30713 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30715 { { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires libc
30716 See \`config.log' for more details." >&5
30717 $as_echo "$as_me: error: xdrmem_create() requires libc
30718 See \`config.log' for more details." >&2;}
30719 { (exit 1); exit 1; }; }; }
30720 fi
30721
30722
30723 fi
30724
30725
30726
30727 LIBBLKID=
30728
30729 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30730 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
30731 $as_echo_n "checking for blkid/blkid.h... " >&6; }
30732 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30733 $as_echo_n "(cached) " >&6
30734 fi
30735 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
30736 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
30737 else
30738 # Is the header compilable?
30739 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
30740 $as_echo_n "checking blkid/blkid.h usability... " >&6; }
30741 cat >conftest.$ac_ext <<_ACEOF
30742 /* confdefs.h. */
30743 _ACEOF
30744 cat confdefs.h >>conftest.$ac_ext
30745 cat >>conftest.$ac_ext <<_ACEOF
30746 /* end confdefs.h. */
30747 $ac_includes_default
30748 #include <blkid/blkid.h>
30749 _ACEOF
30750 rm -f conftest.$ac_objext
30751 if { (ac_try="$ac_compile"
30752 case "(($ac_try" in
30753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30754 *) ac_try_echo=$ac_try;;
30755 esac
30756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30757 $as_echo "$ac_try_echo") >&5
30758 (eval "$ac_compile") 2>conftest.er1
30759 ac_status=$?
30760 grep -v '^ *+' conftest.er1 >conftest.err
30761 rm -f conftest.er1
30762 cat conftest.err >&5
30763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764 (exit $ac_status); } && {
30765 test -z "$ac_c_werror_flag" ||
30766 test ! -s conftest.err
30767 } && test -s conftest.$ac_objext; then
30768 ac_header_compiler=yes
30769 else
30770 $as_echo "$as_me: failed program was:" >&5
30771 sed 's/^/| /' conftest.$ac_ext >&5
30772
30773 ac_header_compiler=no
30774 fi
30775
30776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30777 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30778 $as_echo "$ac_header_compiler" >&6; }
30779
30780 # Is the header present?
30781 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
30782 $as_echo_n "checking blkid/blkid.h presence... " >&6; }
30783 cat >conftest.$ac_ext <<_ACEOF
30784 /* confdefs.h. */
30785 _ACEOF
30786 cat confdefs.h >>conftest.$ac_ext
30787 cat >>conftest.$ac_ext <<_ACEOF
30788 /* end confdefs.h. */
30789 #include <blkid/blkid.h>
30790 _ACEOF
30791 if { (ac_try="$ac_cpp conftest.$ac_ext"
30792 case "(($ac_try" in
30793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30794 *) ac_try_echo=$ac_try;;
30795 esac
30796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30797 $as_echo "$ac_try_echo") >&5
30798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30799 ac_status=$?
30800 grep -v '^ *+' conftest.er1 >conftest.err
30801 rm -f conftest.er1
30802 cat conftest.err >&5
30803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30804 (exit $ac_status); } >/dev/null && {
30805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30806 test ! -s conftest.err
30807 }; then
30808 ac_header_preproc=yes
30809 else
30810 $as_echo "$as_me: failed program was:" >&5
30811 sed 's/^/| /' conftest.$ac_ext >&5
30812
30813 ac_header_preproc=no
30814 fi
30815
30816 rm -f conftest.err conftest.$ac_ext
30817 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30818 $as_echo "$ac_header_preproc" >&6; }
30819
30820 # So? What about this header?
30821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30822 yes:no: )
30823 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
30824 $as_echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30825 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
30826 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
30827 ac_header_preproc=yes
30828 ;;
30829 no:yes:* )
30830 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
30831 $as_echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
30832 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
30833 $as_echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
30834 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
30835 $as_echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
30836 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
30837 $as_echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
30838 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
30839 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
30840 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
30841 $as_echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
30842
30843 ;;
30844 esac
30845 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
30846 $as_echo_n "checking for blkid/blkid.h... " >&6; }
30847 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30848 $as_echo_n "(cached) " >&6
30849 else
30850 ac_cv_header_blkid_blkid_h=$ac_header_preproc
30851 fi
30852 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
30853 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
30854
30855 fi
30856 if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then
30857 :
30858 else
30859 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30861 { { $as_echo "$as_me:$LINENO: error:
30862 *** blkid.h missing, libblkid-devel package required
30863 See \`config.log' for more details." >&5
30864 $as_echo "$as_me: error:
30865 *** blkid.h missing, libblkid-devel package required
30866 See \`config.log' for more details." >&2;}
30867 { (exit 1); exit 1; }; }; }
30868 fi
30869
30870
30871
30872 LIBBLKID="-lblkid"
30873
30874
30875 cat >>confdefs.h <<\_ACEOF
30876 #define HAVE_LIBBLKID 1
30877 _ACEOF
30878
30879
30880
30881 LIBATTR=
30882
30883 if test "${ac_cv_header_attr_xattr_h+set}" = set; then
30884 { $as_echo "$as_me:$LINENO: checking for attr/xattr.h" >&5
30885 $as_echo_n "checking for attr/xattr.h... " >&6; }
30886 if test "${ac_cv_header_attr_xattr_h+set}" = set; then
30887 $as_echo_n "(cached) " >&6
30888 fi
30889 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_xattr_h" >&5
30890 $as_echo "$ac_cv_header_attr_xattr_h" >&6; }
30891 else
30892 # Is the header compilable?
30893 { $as_echo "$as_me:$LINENO: checking attr/xattr.h usability" >&5
30894 $as_echo_n "checking attr/xattr.h usability... " >&6; }
30895 cat >conftest.$ac_ext <<_ACEOF
30896 /* confdefs.h. */
30897 _ACEOF
30898 cat confdefs.h >>conftest.$ac_ext
30899 cat >>conftest.$ac_ext <<_ACEOF
30900 /* end confdefs.h. */
30901 $ac_includes_default
30902 #include <attr/xattr.h>
30903 _ACEOF
30904 rm -f conftest.$ac_objext
30905 if { (ac_try="$ac_compile"
30906 case "(($ac_try" in
30907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30908 *) ac_try_echo=$ac_try;;
30909 esac
30910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30911 $as_echo "$ac_try_echo") >&5
30912 (eval "$ac_compile") 2>conftest.er1
30913 ac_status=$?
30914 grep -v '^ *+' conftest.er1 >conftest.err
30915 rm -f conftest.er1
30916 cat conftest.err >&5
30917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30918 (exit $ac_status); } && {
30919 test -z "$ac_c_werror_flag" ||
30920 test ! -s conftest.err
30921 } && test -s conftest.$ac_objext; then
30922 ac_header_compiler=yes
30923 else
30924 $as_echo "$as_me: failed program was:" >&5
30925 sed 's/^/| /' conftest.$ac_ext >&5
30926
30927 ac_header_compiler=no
30928 fi
30929
30930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30931 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30932 $as_echo "$ac_header_compiler" >&6; }
30933
30934 # Is the header present?
30935 { $as_echo "$as_me:$LINENO: checking attr/xattr.h presence" >&5
30936 $as_echo_n "checking attr/xattr.h presence... " >&6; }
30937 cat >conftest.$ac_ext <<_ACEOF
30938 /* confdefs.h. */
30939 _ACEOF
30940 cat confdefs.h >>conftest.$ac_ext
30941 cat >>conftest.$ac_ext <<_ACEOF
30942 /* end confdefs.h. */
30943 #include <attr/xattr.h>
30944 _ACEOF
30945 if { (ac_try="$ac_cpp conftest.$ac_ext"
30946 case "(($ac_try" in
30947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30948 *) ac_try_echo=$ac_try;;
30949 esac
30950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30951 $as_echo "$ac_try_echo") >&5
30952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30953 ac_status=$?
30954 grep -v '^ *+' conftest.er1 >conftest.err
30955 rm -f conftest.er1
30956 cat conftest.err >&5
30957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958 (exit $ac_status); } >/dev/null && {
30959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30960 test ! -s conftest.err
30961 }; then
30962 ac_header_preproc=yes
30963 else
30964 $as_echo "$as_me: failed program was:" >&5
30965 sed 's/^/| /' conftest.$ac_ext >&5
30966
30967 ac_header_preproc=no
30968 fi
30969
30970 rm -f conftest.err conftest.$ac_ext
30971 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30972 $as_echo "$ac_header_preproc" >&6; }
30973
30974 # So? What about this header?
30975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30976 yes:no: )
30977 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
30978 $as_echo "$as_me: WARNING: attr/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30979 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: proceeding with the compiler's result" >&5
30980 $as_echo "$as_me: WARNING: attr/xattr.h: proceeding with the compiler's result" >&2;}
30981 ac_header_preproc=yes
30982 ;;
30983 no:yes:* )
30984 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: present but cannot be compiled" >&5
30985 $as_echo "$as_me: WARNING: attr/xattr.h: present but cannot be compiled" >&2;}
30986 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: check for missing prerequisite headers?" >&5
30987 $as_echo "$as_me: WARNING: attr/xattr.h: check for missing prerequisite headers?" >&2;}
30988 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: see the Autoconf documentation" >&5
30989 $as_echo "$as_me: WARNING: attr/xattr.h: see the Autoconf documentation" >&2;}
30990 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
30991 $as_echo "$as_me: WARNING: attr/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
30992 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: proceeding with the preprocessor's result" >&5
30993 $as_echo "$as_me: WARNING: attr/xattr.h: proceeding with the preprocessor's result" >&2;}
30994 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: in the future, the compiler will take precedence" >&5
30995 $as_echo "$as_me: WARNING: attr/xattr.h: in the future, the compiler will take precedence" >&2;}
30996
30997 ;;
30998 esac
30999 { $as_echo "$as_me:$LINENO: checking for attr/xattr.h" >&5
31000 $as_echo_n "checking for attr/xattr.h... " >&6; }
31001 if test "${ac_cv_header_attr_xattr_h+set}" = set; then
31002 $as_echo_n "(cached) " >&6
31003 else
31004 ac_cv_header_attr_xattr_h=$ac_header_preproc
31005 fi
31006 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_xattr_h" >&5
31007 $as_echo "$ac_cv_header_attr_xattr_h" >&6; }
31008
31009 fi
31010 if test "x$ac_cv_header_attr_xattr_h" = x""yes; then
31011 :
31012 else
31013 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31015 { { $as_echo "$as_me:$LINENO: error:
31016 *** attr/xattr.h missing, libattr-devel package required
31017 See \`config.log' for more details." >&5
31018 $as_echo "$as_me: error:
31019 *** attr/xattr.h missing, libattr-devel package required
31020 See \`config.log' for more details." >&2;}
31021 { (exit 1); exit 1; }; }; }
31022 fi
31023
31024
31025
31026 LIBATTR="-lattr"
31027
31028
31029 cat >>confdefs.h <<\_ACEOF
31030 #define HAVE_LIBATTR 1
31031 _ACEOF
31032
31033
31034
31035 LIBUDEV=
31036
31037 if test "${ac_cv_header_libudev_h+set}" = set; then
31038 { $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
31039 $as_echo_n "checking for libudev.h... " >&6; }
31040 if test "${ac_cv_header_libudev_h+set}" = set; then
31041 $as_echo_n "(cached) " >&6
31042 fi
31043 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
31044 $as_echo "$ac_cv_header_libudev_h" >&6; }
31045 else
31046 # Is the header compilable?
31047 { $as_echo "$as_me:$LINENO: checking libudev.h usability" >&5
31048 $as_echo_n "checking libudev.h usability... " >&6; }
31049 cat >conftest.$ac_ext <<_ACEOF
31050 /* confdefs.h. */
31051 _ACEOF
31052 cat confdefs.h >>conftest.$ac_ext
31053 cat >>conftest.$ac_ext <<_ACEOF
31054 /* end confdefs.h. */
31055 $ac_includes_default
31056 #include <libudev.h>
31057 _ACEOF
31058 rm -f conftest.$ac_objext
31059 if { (ac_try="$ac_compile"
31060 case "(($ac_try" in
31061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31062 *) ac_try_echo=$ac_try;;
31063 esac
31064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31065 $as_echo "$ac_try_echo") >&5
31066 (eval "$ac_compile") 2>conftest.er1
31067 ac_status=$?
31068 grep -v '^ *+' conftest.er1 >conftest.err
31069 rm -f conftest.er1
31070 cat conftest.err >&5
31071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); } && {
31073 test -z "$ac_c_werror_flag" ||
31074 test ! -s conftest.err
31075 } && test -s conftest.$ac_objext; then
31076 ac_header_compiler=yes
31077 else
31078 $as_echo "$as_me: failed program was:" >&5
31079 sed 's/^/| /' conftest.$ac_ext >&5
31080
31081 ac_header_compiler=no
31082 fi
31083
31084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31085 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31086 $as_echo "$ac_header_compiler" >&6; }
31087
31088 # Is the header present?
31089 { $as_echo "$as_me:$LINENO: checking libudev.h presence" >&5
31090 $as_echo_n "checking libudev.h presence... " >&6; }
31091 cat >conftest.$ac_ext <<_ACEOF
31092 /* confdefs.h. */
31093 _ACEOF
31094 cat confdefs.h >>conftest.$ac_ext
31095 cat >>conftest.$ac_ext <<_ACEOF
31096 /* end confdefs.h. */
31097 #include <libudev.h>
31098 _ACEOF
31099 if { (ac_try="$ac_cpp conftest.$ac_ext"
31100 case "(($ac_try" in
31101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31102 *) ac_try_echo=$ac_try;;
31103 esac
31104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31105 $as_echo "$ac_try_echo") >&5
31106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31107 ac_status=$?
31108 grep -v '^ *+' conftest.er1 >conftest.err
31109 rm -f conftest.er1
31110 cat conftest.err >&5
31111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112 (exit $ac_status); } >/dev/null && {
31113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31114 test ! -s conftest.err
31115 }; then
31116 ac_header_preproc=yes
31117 else
31118 $as_echo "$as_me: failed program was:" >&5
31119 sed 's/^/| /' conftest.$ac_ext >&5
31120
31121 ac_header_preproc=no
31122 fi
31123
31124 rm -f conftest.err conftest.$ac_ext
31125 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31126 $as_echo "$ac_header_preproc" >&6; }
31127
31128 # So? What about this header?
31129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31130 yes:no: )
31131 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31132 $as_echo "$as_me: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31133 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the compiler's result" >&5
31134 $as_echo "$as_me: WARNING: libudev.h: proceeding with the compiler's result" >&2;}
31135 ac_header_preproc=yes
31136 ;;
31137 no:yes:* )
31138 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: present but cannot be compiled" >&5
31139 $as_echo "$as_me: WARNING: libudev.h: present but cannot be compiled" >&2;}
31140 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: check for missing prerequisite headers?" >&5
31141 $as_echo "$as_me: WARNING: libudev.h: check for missing prerequisite headers?" >&2;}
31142 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: see the Autoconf documentation" >&5
31143 $as_echo "$as_me: WARNING: libudev.h: see the Autoconf documentation" >&2;}
31144 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&5
31145 $as_echo "$as_me: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31146 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the preprocessor's result" >&5
31147 $as_echo "$as_me: WARNING: libudev.h: proceeding with the preprocessor's result" >&2;}
31148 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: in the future, the compiler will take precedence" >&5
31149 $as_echo "$as_me: WARNING: libudev.h: in the future, the compiler will take precedence" >&2;}
31150
31151 ;;
31152 esac
31153 { $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
31154 $as_echo_n "checking for libudev.h... " >&6; }
31155 if test "${ac_cv_header_libudev_h+set}" = set; then
31156 $as_echo_n "(cached) " >&6
31157 else
31158 ac_cv_header_libudev_h=$ac_header_preproc
31159 fi
31160 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
31161 $as_echo "$ac_cv_header_libudev_h" >&6; }
31162
31163 fi
31164 if test "x$ac_cv_header_libudev_h" = x""yes; then
31165
31166 user_libudev=yes
31167 LIBUDEV="-ludev"
31168
31169
31170 cat >>confdefs.h <<\_ACEOF
31171 #define HAVE_LIBUDEV 1
31172 _ACEOF
31173
31174
31175 else
31176
31177 user_libudev=no
31178
31179 fi
31180
31181
31182
31183 { $as_echo "$as_me:$LINENO: checking for library containing udev_device_get_is_initialized" >&5
31184 $as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
31185 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
31186 $as_echo_n "(cached) " >&6
31187 else
31188 ac_func_search_save_LIBS=$LIBS
31189 cat >conftest.$ac_ext <<_ACEOF
31190 /* confdefs.h. */
31191 _ACEOF
31192 cat confdefs.h >>conftest.$ac_ext
31193 cat >>conftest.$ac_ext <<_ACEOF
31194 /* end confdefs.h. */
31195
31196 /* Override any GCC internal prototype to avoid an error.
31197 Use char because int might match the return type of a GCC
31198 builtin and then its argument prototype would still apply. */
31199 #ifdef __cplusplus
31200 extern "C"
31201 #endif
31202 char udev_device_get_is_initialized ();
31203 int
31204 main ()
31205 {
31206 return udev_device_get_is_initialized ();
31207 ;
31208 return 0;
31209 }
31210 _ACEOF
31211 for ac_lib in '' udev; do
31212 if test -z "$ac_lib"; then
31213 ac_res="none required"
31214 else
31215 ac_res=-l$ac_lib
31216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31217 fi
31218 rm -f conftest.$ac_objext conftest$ac_exeext
31219 if { (ac_try="$ac_link"
31220 case "(($ac_try" in
31221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31222 *) ac_try_echo=$ac_try;;
31223 esac
31224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31225 $as_echo "$ac_try_echo") >&5
31226 (eval "$ac_link") 2>conftest.er1
31227 ac_status=$?
31228 grep -v '^ *+' conftest.er1 >conftest.err
31229 rm -f conftest.er1
31230 cat conftest.err >&5
31231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232 (exit $ac_status); } && {
31233 test -z "$ac_c_werror_flag" ||
31234 test ! -s conftest.err
31235 } && test -s conftest$ac_exeext && {
31236 test "$cross_compiling" = yes ||
31237 $as_test_x conftest$ac_exeext
31238 }; then
31239 ac_cv_search_udev_device_get_is_initialized=$ac_res
31240 else
31241 $as_echo "$as_me: failed program was:" >&5
31242 sed 's/^/| /' conftest.$ac_ext >&5
31243
31244
31245 fi
31246
31247 rm -rf conftest.dSYM
31248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31249 conftest$ac_exeext
31250 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
31251 break
31252 fi
31253 done
31254 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
31255 :
31256 else
31257 ac_cv_search_udev_device_get_is_initialized=no
31258 fi
31259 rm conftest.$ac_ext
31260 LIBS=$ac_func_search_save_LIBS
31261 fi
31262 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_udev_device_get_is_initialized" >&5
31263 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
31264 ac_res=$ac_cv_search_udev_device_get_is_initialized
31265 if test "$ac_res" != no; then
31266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31267
31268
31269 cat >>confdefs.h <<\_ACEOF
31270 #define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1
31271 _ACEOF
31272
31273 fi
31274
31275
31276
31277
31278 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
31279 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
31280
31281 saved_flags="$CFLAGS"
31282 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
31283
31284 cat >conftest.$ac_ext <<_ACEOF
31285 /* confdefs.h. */
31286 _ACEOF
31287 cat confdefs.h >>conftest.$ac_ext
31288 cat >>conftest.$ac_ext <<_ACEOF
31289 /* end confdefs.h. */
31290
31291 int
31292 main ()
31293 {
31294
31295 ;
31296 return 0;
31297 }
31298 _ACEOF
31299 rm -f conftest.$ac_objext
31300 if { (ac_try="$ac_compile"
31301 case "(($ac_try" in
31302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31303 *) ac_try_echo=$ac_try;;
31304 esac
31305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31306 $as_echo "$ac_try_echo") >&5
31307 (eval "$ac_compile") 2>conftest.er1
31308 ac_status=$?
31309 grep -v '^ *+' conftest.er1 >conftest.err
31310 rm -f conftest.er1
31311 cat conftest.err >&5
31312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31313 (exit $ac_status); } && {
31314 test -z "$ac_c_werror_flag" ||
31315 test ! -s conftest.err
31316 } && test -s conftest.$ac_objext; then
31317
31318 FRAME_LARGER_THAN=-Wframe-larger-than=1024
31319 { $as_echo "$as_me:$LINENO: result: yes" >&5
31320 $as_echo "yes" >&6; }
31321
31322 else
31323 $as_echo "$as_me: failed program was:" >&5
31324 sed 's/^/| /' conftest.$ac_ext >&5
31325
31326
31327 FRAME_LARGER_THAN=
31328 { $as_echo "$as_me:$LINENO: result: no" >&5
31329 $as_echo "no" >&6; }
31330
31331 fi
31332
31333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31334
31335 CFLAGS="$saved_flags"
31336
31337
31338
31339 if test "x$runstatedir" = x; then
31340 runstatedir='${localstatedir}/run'
31341
31342 fi
31343
31344
31345 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/sysmacros.h" >&5
31346 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
31347 cat >conftest.$ac_ext <<_ACEOF
31348 /* confdefs.h. */
31349 _ACEOF
31350 cat confdefs.h >>conftest.$ac_ext
31351 cat >>conftest.$ac_ext <<_ACEOF
31352 /* end confdefs.h. */
31353
31354 #include <sys/sysmacros.h>
31355
31356 int
31357 main ()
31358 {
31359
31360 int k;
31361 k = makedev(0,0);
31362
31363 ;
31364 return 0;
31365 }
31366 _ACEOF
31367 rm -f conftest.$ac_objext
31368 if { (ac_try="$ac_compile"
31369 case "(($ac_try" in
31370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31371 *) ac_try_echo=$ac_try;;
31372 esac
31373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31374 $as_echo "$ac_try_echo") >&5
31375 (eval "$ac_compile") 2>conftest.er1
31376 ac_status=$?
31377 grep -v '^ *+' conftest.er1 >conftest.err
31378 rm -f conftest.er1
31379 cat conftest.err >&5
31380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381 (exit $ac_status); } && {
31382 test -z "$ac_c_werror_flag" ||
31383 test ! -s conftest.err
31384 } && test -s conftest.$ac_objext; then
31385
31386 { $as_echo "$as_me:$LINENO: result: yes" >&5
31387 $as_echo "yes" >&6; }
31388
31389 cat >>confdefs.h <<\_ACEOF
31390 #define HAVE_MAKEDEV_IN_SYSMACROS 1
31391 _ACEOF
31392
31393
31394 else
31395 $as_echo "$as_me: failed program was:" >&5
31396 sed 's/^/| /' conftest.$ac_ext >&5
31397
31398
31399 { $as_echo "$as_me:$LINENO: result: no" >&5
31400 $as_echo "no" >&6; }
31401
31402 fi
31403
31404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31405
31406
31407 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/mkdev.h" >&5
31408 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
31409 cat >conftest.$ac_ext <<_ACEOF
31410 /* confdefs.h. */
31411 _ACEOF
31412 cat confdefs.h >>conftest.$ac_ext
31413 cat >>conftest.$ac_ext <<_ACEOF
31414 /* end confdefs.h. */
31415
31416 #include <sys/mkdev.h>
31417
31418 int
31419 main ()
31420 {
31421
31422 int k;
31423 k = makedev(0,0);
31424
31425 ;
31426 return 0;
31427 }
31428 _ACEOF
31429 rm -f conftest.$ac_objext
31430 if { (ac_try="$ac_compile"
31431 case "(($ac_try" in
31432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31433 *) ac_try_echo=$ac_try;;
31434 esac
31435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31436 $as_echo "$ac_try_echo") >&5
31437 (eval "$ac_compile") 2>conftest.er1
31438 ac_status=$?
31439 grep -v '^ *+' conftest.er1 >conftest.err
31440 rm -f conftest.er1
31441 cat conftest.err >&5
31442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 (exit $ac_status); } && {
31444 test -z "$ac_c_werror_flag" ||
31445 test ! -s conftest.err
31446 } && test -s conftest.$ac_objext; then
31447
31448 { $as_echo "$as_me:$LINENO: result: yes" >&5
31449 $as_echo "yes" >&6; }
31450
31451 cat >>confdefs.h <<\_ACEOF
31452 #define HAVE_MAKEDEV_IN_MKDEV 1
31453 _ACEOF
31454
31455
31456 else
31457 $as_echo "$as_me: failed program was:" >&5
31458 sed 's/^/| /' conftest.$ac_ext >&5
31459
31460
31461 { $as_echo "$as_me:$LINENO: result: no" >&5
31462 $as_echo "no" >&6; }
31463
31464 fi
31465
31466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31467
31468
31469 { $as_echo "$as_me:$LINENO: checking for -Wno-format-truncation support" >&5
31470 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
31471
31472 saved_flags="$CFLAGS"
31473 CFLAGS="$CFLAGS -Wno-format-truncation"
31474
31475 cat >conftest.$ac_ext <<_ACEOF
31476 /* confdefs.h. */
31477 _ACEOF
31478 cat confdefs.h >>conftest.$ac_ext
31479 cat >>conftest.$ac_ext <<_ACEOF
31480 /* end confdefs.h. */
31481
31482 int
31483 main ()
31484 {
31485
31486 ;
31487 return 0;
31488 }
31489 _ACEOF
31490 rm -f conftest.$ac_objext
31491 if { (ac_try="$ac_compile"
31492 case "(($ac_try" in
31493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31494 *) ac_try_echo=$ac_try;;
31495 esac
31496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31497 $as_echo "$ac_try_echo") >&5
31498 (eval "$ac_compile") 2>conftest.er1
31499 ac_status=$?
31500 grep -v '^ *+' conftest.er1 >conftest.err
31501 rm -f conftest.er1
31502 cat conftest.err >&5
31503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31504 (exit $ac_status); } && {
31505 test -z "$ac_c_werror_flag" ||
31506 test ! -s conftest.err
31507 } && test -s conftest.$ac_objext; then
31508
31509 NO_FORMAT_TRUNCATION=-Wno-format-truncation
31510 { $as_echo "$as_me:$LINENO: result: yes" >&5
31511 $as_echo "yes" >&6; }
31512
31513 else
31514 $as_echo "$as_me: failed program was:" >&5
31515 sed 's/^/| /' conftest.$ac_ext >&5
31516
31517
31518 NO_FORMAT_TRUNCATION=
31519 { $as_echo "$as_me:$LINENO: result: no" >&5
31520 $as_echo "no" >&6; }
31521
31522 fi
31523
31524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31525
31526 CFLAGS="$saved_flags"
31527
31528
31529
31530
31531 ZONENAME="echo global"
31532
31533
31534
31535
31536
31537
31538 for ac_func in mlockall
31539 do
31540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31541 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31542 $as_echo_n "checking for $ac_func... " >&6; }
31543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31544 $as_echo_n "(cached) " >&6
31545 else
31546 cat >conftest.$ac_ext <<_ACEOF
31547 /* confdefs.h. */
31548 _ACEOF
31549 cat confdefs.h >>conftest.$ac_ext
31550 cat >>conftest.$ac_ext <<_ACEOF
31551 /* end confdefs.h. */
31552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31554 #define $ac_func innocuous_$ac_func
31555
31556 /* System header to define __stub macros and hopefully few prototypes,
31557 which can conflict with char $ac_func (); below.
31558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31559 <limits.h> exists even on freestanding compilers. */
31560
31561 #ifdef __STDC__
31562 # include <limits.h>
31563 #else
31564 # include <assert.h>
31565 #endif
31566
31567 #undef $ac_func
31568
31569 /* Override any GCC internal prototype to avoid an error.
31570 Use char because int might match the return type of a GCC
31571 builtin and then its argument prototype would still apply. */
31572 #ifdef __cplusplus
31573 extern "C"
31574 #endif
31575 char $ac_func ();
31576 /* The GNU C library defines this for functions which it implements
31577 to always fail with ENOSYS. Some functions are actually named
31578 something starting with __ and the normal name is an alias. */
31579 #if defined __stub_$ac_func || defined __stub___$ac_func
31580 choke me
31581 #endif
31582
31583 int
31584 main ()
31585 {
31586 return $ac_func ();
31587 ;
31588 return 0;
31589 }
31590 _ACEOF
31591 rm -f conftest.$ac_objext conftest$ac_exeext
31592 if { (ac_try="$ac_link"
31593 case "(($ac_try" in
31594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31595 *) ac_try_echo=$ac_try;;
31596 esac
31597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31598 $as_echo "$ac_try_echo") >&5
31599 (eval "$ac_link") 2>conftest.er1
31600 ac_status=$?
31601 grep -v '^ *+' conftest.er1 >conftest.err
31602 rm -f conftest.er1
31603 cat conftest.err >&5
31604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31605 (exit $ac_status); } && {
31606 test -z "$ac_c_werror_flag" ||
31607 test ! -s conftest.err
31608 } && test -s conftest$ac_exeext && {
31609 test "$cross_compiling" = yes ||
31610 $as_test_x conftest$ac_exeext
31611 }; then
31612 eval "$as_ac_var=yes"
31613 else
31614 $as_echo "$as_me: failed program was:" >&5
31615 sed 's/^/| /' conftest.$ac_ext >&5
31616
31617 eval "$as_ac_var=no"
31618 fi
31619
31620 rm -rf conftest.dSYM
31621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31622 conftest$ac_exeext conftest.$ac_ext
31623 fi
31624 ac_res=`eval 'as_val=${'$as_ac_var'}
31625 $as_echo "$as_val"'`
31626 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31627 $as_echo "$ac_res" >&6; }
31628 as_val=`eval 'as_val=${'$as_ac_var'}
31629 $as_echo "$as_val"'`
31630 if test "x$as_val" = x""yes; then
31631 cat >>confdefs.h <<_ACEOF
31632 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31633 _ACEOF
31634
31635 fi
31636 done
31637
31638
31639
31640
31641
31642 # Check whether --with-linux was given.
31643 if test "${with_linux+set}" = set; then
31644 withval=$with_linux; kernelsrc="$withval"
31645 fi
31646
31647
31648
31649 # Check whether --with-linux-obj was given.
31650 if test "${with_linux_obj+set}" = set; then
31651 withval=$with_linux_obj; kernelbuild="$withval"
31652 fi
31653
31654
31655 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
31656 $as_echo_n "checking kernel source directory... " >&6; }
31657 if test -z "$kernelsrc"; then
31658
31659 if test -e "/lib/modules/$(uname -r)/source"; then
31660
31661 headersdir="/lib/modules/$(uname -r)/source"
31662 sourcelink=$(readlink -f "$headersdir")
31663
31664 elif test -e "/lib/modules/$(uname -r)/build"; then
31665
31666 headersdir="/lib/modules/$(uname -r)/build"
31667 sourcelink=$(readlink -f "$headersdir")
31668
31669 else
31670
31671 sourcelink=$(ls -1d /usr/src/kernels/* \
31672 /usr/src/linux-* \
31673 2>/dev/null | grep -v obj | tail -1)
31674
31675 fi
31676
31677
31678 if test -n "$sourcelink" && test -e ${sourcelink}; then
31679
31680 kernelsrc=`readlink -f ${sourcelink}`
31681
31682 else
31683
31684 kernelsrc="Not found"
31685
31686 fi
31687
31688
31689 else
31690
31691 if test "$kernelsrc" = "NONE"; then
31692
31693 kernsrcver=NONE
31694
31695 fi
31696
31697 withlinux=yes
31698
31699 fi
31700
31701
31702 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
31703 $as_echo "$kernelsrc" >&6; }
31704 if test ! -d "$kernelsrc"; then
31705
31706 { { $as_echo "$as_me:$LINENO: error:
31707 *** Please make sure the kernel devel package for your distribution
31708 *** is installed and then try again. If that fails, you can specify the
31709 *** location of the kernel source with the '--with-linux=PATH' option." >&5
31710 $as_echo "$as_me: error:
31711 *** Please make sure the kernel devel package for your distribution
31712 *** is installed and then try again. If that fails, you can specify the
31713 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
31714 { (exit 1); exit 1; }; }
31715
31716 fi
31717
31718
31719 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
31720 $as_echo_n "checking kernel build directory... " >&6; }
31721 if test -z "$kernelbuild"; then
31722
31723 if test x$withlinux != xyes -a -e "/lib/modules/$(uname -r)/build"; then
31724
31725 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
31726
31727 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
31728
31729 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
31730
31731 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
31732
31733 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
31734
31735 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
31736
31737 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
31738
31739 else
31740
31741 kernelbuild=${kernelsrc}
31742
31743 fi
31744
31745
31746 fi
31747
31748 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
31749 $as_echo "$kernelbuild" >&6; }
31750
31751 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
31752 $as_echo_n "checking kernel source version... " >&6; }
31753 utsrelease1=$kernelbuild/include/linux/version.h
31754 utsrelease2=$kernelbuild/include/linux/utsrelease.h
31755 utsrelease3=$kernelbuild/include/generated/utsrelease.h
31756 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
31757
31758 utsrelease=linux/version.h
31759
31760 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
31761
31762 utsrelease=linux/utsrelease.h
31763
31764 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
31765
31766 utsrelease=generated/utsrelease.h
31767
31768 fi
31769
31770
31771 if test "$utsrelease"; then
31772
31773 kernsrcver=`(echo "#include <$utsrelease>";
31774 echo "kernsrcver=UTS_RELEASE") |
31775 cpp -I $kernelbuild/include |
31776 grep "^kernsrcver=" | cut -d \" -f 2`
31777
31778 if test -z "$kernsrcver"; then
31779
31780 { $as_echo "$as_me:$LINENO: result: Not found" >&5
31781 $as_echo "Not found" >&6; }
31782 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
31783 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
31784 { (exit 1); exit 1; }; }
31785
31786 fi
31787
31788
31789 else
31790
31791 { $as_echo "$as_me:$LINENO: result: Not found" >&5
31792 $as_echo "Not found" >&6; }
31793 if test "x$enable_linux_builtin" != xyes; then
31794 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
31795 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
31796 { (exit 1); exit 1; }; }
31797 else
31798 { { $as_echo "$as_me:$LINENO: error:
31799 *** Cannot find UTS_RELEASE definition.
31800 *** Please run 'make prepare' inside the kernel source tree." >&5
31801 $as_echo "$as_me: error:
31802 *** Cannot find UTS_RELEASE definition.
31803 *** Please run 'make prepare' inside the kernel source tree." >&2;}
31804 { (exit 1); exit 1; }; }
31805 fi
31806
31807 fi
31808
31809
31810 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
31811 $as_echo "$kernsrcver" >&6; }
31812
31813 LINUX=${kernelsrc}
31814 LINUX_OBJ=${kernelbuild}
31815 LINUX_VERSION=${kernsrcver}
31816
31817
31818
31819
31820
31821
31822 modpost=$LINUX/scripts/Makefile.modpost
31823 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
31824 $as_echo_n "checking kernel file name for module symbols... " >&6; }
31825 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
31826
31827 if grep -q Modules.symvers $modpost; then
31828
31829 LINUX_SYMBOLS=Modules.symvers
31830
31831 else
31832
31833 LINUX_SYMBOLS=Module.symvers
31834
31835 fi
31836
31837
31838 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
31839
31840 { { $as_echo "$as_me:$LINENO: error:
31841 *** Please make sure the kernel devel package for your distribution
31842 *** is installed. If you are building with a custom kernel, make sure the
31843 *** kernel is configured, built, and the '--with-linux=PATH' configure
31844 *** option refers to the location of the kernel source." >&5
31845 $as_echo "$as_me: error:
31846 *** Please make sure the kernel devel package for your distribution
31847 *** is installed. If you are building with a custom kernel, make sure the
31848 *** kernel is configured, built, and the '--with-linux=PATH' configure
31849 *** option refers to the location of the kernel source." >&2;}
31850 { (exit 1); exit 1; }; }
31851
31852 fi
31853
31854
31855 else
31856
31857 LINUX_SYMBOLS=NONE
31858
31859 fi
31860
31861 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
31862 $as_echo "$LINUX_SYMBOLS" >&6; }
31863
31864
31865
31866
31867
31868 # Check whether --with-spl was given.
31869 if test "${with_spl+set}" = set; then
31870 withval=$with_spl; if test "$withval" = "yes"; then
31871 { { $as_echo "$as_me:$LINENO: error: --with-spl=PATH requires a PATH" >&5
31872 $as_echo "$as_me: error: --with-spl=PATH requires a PATH" >&2;}
31873 { (exit 1); exit 1; }; }
31874 else
31875 splsrc="$withval"
31876 fi
31877
31878 fi
31879
31880
31881
31882 # Check whether --with-spl-obj was given.
31883 if test "${with_spl_obj+set}" = set; then
31884 withval=$with_spl_obj; splbuild="$withval"
31885 fi
31886
31887
31888
31889 # Check whether --with-spl-timeout was given.
31890 if test "${with_spl_timeout+set}" = set; then
31891 withval=$with_spl_timeout; timeout="$withval"
31892 else
31893 timeout=0
31894 fi
31895
31896
31897 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
31898 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
31899 splsrc2="/usr/local/src/spl-${VERSION}"
31900 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
31901 splsrc4="/usr/src/spl-${VERSION}"
31902 splsrc5="../spl/"
31903 splsrc6="$LINUX"
31904
31905 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
31906 $as_echo_n "checking spl source directory... " >&6; }
31907 if test -z "${splsrc}"; then
31908
31909 all_spl_sources="
31910 ${splsrc0}
31911 ${splsrc1}
31912 ${splsrc2}
31913 ${splsrc3}
31914 ${splsrc4}
31915 ${splsrc5}
31916 ${splsrc6}",
31917 if test -e "${splsrc0}/spl.release.in"; then
31918
31919 splsrc=${splsrc0}
31920
31921 elif test -e "${splsrc1}/spl.release.in"; then
31922
31923 splsrc=${splsrc1}
31924
31925 elif test -e "${splsrc2}/spl.release.in"; then
31926
31927 splsrc=${splsrc2}
31928
31929 elif test -e "${splsrc3}/spl.release.in"; then
31930
31931 splsrc=$(readlink -f "${splsrc3}")
31932
31933 elif test -e "${splsrc4}/spl.release.in" ; then
31934
31935 splsrc=${splsrc4}
31936
31937 elif test -e "${splsrc5}/spl.release.in"; then
31938
31939 splsrc=$(readlink -f "${splsrc5}")
31940
31941 elif test -e "${splsrc6}/spl.release.in" ; then
31942
31943 splsrc=${splsrc6}
31944
31945 else
31946
31947 splsrc="Not found"
31948
31949 fi
31950
31951
31952 else
31953
31954 all_spl_sources="$withval",
31955 if test "$splsrc" = "NONE"; then
31956
31957 splbuild=NONE
31958 splsrcver=NONE
31959
31960 fi
31961
31962
31963 fi
31964
31965
31966 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
31967 $as_echo "$splsrc" >&6; }
31968 if test ! -e "$splsrc/spl.release.in"; then
31969
31970 { { $as_echo "$as_me:$LINENO: error:
31971 *** Please make sure the kmod spl devel package for your distribution
31972 *** is installed then try again. If that fails you can specify the
31973 *** location of the spl source with the '--with-spl=PATH' option.
31974 *** The spl version must match the version of ZFS you are building,
31975 *** ${VERSION}. Failed to find spl.release.in in the following:
31976 $all_spl_sources" >&5
31977 $as_echo "$as_me: error:
31978 *** Please make sure the kmod spl devel package for your distribution
31979 *** is installed then try again. If that fails you can specify the
31980 *** location of the spl source with the '--with-spl=PATH' option.
31981 *** The spl version must match the version of ZFS you are building,
31982 *** ${VERSION}. Failed to find spl.release.in in the following:
31983 $all_spl_sources" >&2;}
31984 { (exit 1); exit 1; }; }
31985
31986 fi
31987
31988
31989 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
31990 $as_echo_n "checking spl build directory... " >&6; }
31991
31992 all_spl_config_locs="${splsrc}/${LINUX_VERSION}
31993 ${splsrc}"
31994
31995 while true; do
31996 if test -z "$splbuild"; then
31997
31998 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then
31999
32000 splbuild="${splsrc}/${LINUX_VERSION}"
32001
32002 elif test -e "${splsrc}/spl_config.h" ; then
32003
32004 splbuild="${splsrc}"
32005
32006 elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then
32007
32008 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
32009
32010 else
32011
32012 splbuild="Not found"
32013
32014 fi
32015
32016
32017 fi
32018
32019 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then
32020
32021 break;
32022
32023 else
32024
32025 sleep 1
32026 timeout=$((timeout-1))
32027
32028 fi
32029
32030 done
32031
32032 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
32033 $as_echo "$splbuild" >&6; }
32034 if ! test -e "$splbuild/spl_config.h"; then
32035
32036 { { $as_echo "$as_me:$LINENO: error:
32037 *** Please make sure the kmod spl devel <kernel> package for your
32038 *** distribution is installed then try again. If that fails you
32039 *** can specify the location of the spl objects with the
32040 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
32041 *** any of the following:
32042 $all_spl_config_locs" >&5
32043 $as_echo "$as_me: error:
32044 *** Please make sure the kmod spl devel <kernel> package for your
32045 *** distribution is installed then try again. If that fails you
32046 *** can specify the location of the spl objects with the
32047 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
32048 *** any of the following:
32049 $all_spl_config_locs" >&2;}
32050 { (exit 1); exit 1; }; }
32051
32052 fi
32053
32054
32055 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
32056 $as_echo_n "checking spl source version... " >&6; }
32057 if test -r $splbuild/spl_config.h &&
32058 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
32059
32060
32061 splsrcver=`(echo "#include <spl_config.h>";
32062 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
32063 cpp -I $splbuild |
32064 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
32065
32066 fi
32067
32068
32069 if test -z "$splsrcver"; then
32070
32071 { $as_echo "$as_me:$LINENO: result: Not found" >&5
32072 $as_echo "Not found" >&6; }
32073 { { $as_echo "$as_me:$LINENO: error:
32074 *** Cannot determine the version of the spl source.
32075 *** Please prepare the spl source before running this script" >&5
32076 $as_echo "$as_me: error:
32077 *** Cannot determine the version of the spl source.
32078 *** Please prepare the spl source before running this script" >&2;}
32079 { (exit 1); exit 1; }; }
32080
32081 fi
32082
32083
32084 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
32085 $as_echo "$splsrcver" >&6; }
32086
32087 SPL=${splsrc}
32088 SPL_OBJ=${splbuild}
32089 SPL_VERSION=${splsrcver}
32090
32091
32092
32093
32094
32095 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
32096 $as_echo_n "checking spl file name for module symbols... " >&6; }
32097 SPL_SYMBOLS=NONE
32098
32099 while true; do
32100 if test -r $SPL_OBJ/Module.symvers; then
32101
32102 SPL_SYMBOLS=Module.symvers
32103
32104 elif test -r $SPL_OBJ/Modules.symvers; then
32105
32106 SPL_SYMBOLS=Modules.symvers
32107
32108 elif test -r $SPL_OBJ/module/Module.symvers; then
32109
32110 SPL_SYMBOLS=Module.symvers
32111
32112 elif test -r $SPL_OBJ/module/Modules.symvers; then
32113
32114 SPL_SYMBOLS=Modules.symvers
32115
32116 fi
32117
32118
32119 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then
32120
32121 break;
32122
32123 else
32124
32125 sleep 1
32126 timeout=$((timeout-1))
32127
32128 fi
32129
32130 done
32131
32132 if test "$SPL_SYMBOLS" = NONE; then
32133
32134 SPL_SYMBOLS=$LINUX_SYMBOLS
32135
32136 fi
32137
32138
32139 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
32140 $as_echo "$SPL_SYMBOLS" >&6; }
32141
32142
32143
32144
32145 # Check whether --with-qat was given.
32146 if test "${with_qat+set}" = set; then
32147 withval=$with_qat; if test "$withval" = "yes"; then
32148 { { $as_echo "$as_me:$LINENO: error: --with-qat=PATH requires a PATH" >&5
32149 $as_echo "$as_me: error: --with-qat=PATH requires a PATH" >&2;}
32150 { (exit 1); exit 1; }; }
32151 else
32152 qatsrc="$withval"
32153 fi
32154
32155 fi
32156
32157
32158
32159 # Check whether --with-qat-obj was given.
32160 if test "${with_qat_obj+set}" = set; then
32161 withval=$with_qat_obj; qatbuild="$withval"
32162 fi
32163
32164
32165 if test ! -z "${qatsrc}"; then
32166
32167 { $as_echo "$as_me:$LINENO: checking qat source directory" >&5
32168 $as_echo_n "checking qat source directory... " >&6; }
32169 { $as_echo "$as_me:$LINENO: result: $qatsrc" >&5
32170 $as_echo "$qatsrc" >&6; }
32171 QAT_SRC="${qatsrc}/quickassist"
32172 if test ! -e "$QAT_SRC/include/cpa.h"; then
32173
32174 { { $as_echo "$as_me:$LINENO: error:
32175 *** Please make sure the qat driver package is installed
32176 *** and specify the location of the qat source with the
32177 *** '--with-qat=PATH' option then try again. Failed to
32178 *** find cpa.h in:
32179 ${QAT_SRC}/include" >&5
32180 $as_echo "$as_me: error:
32181 *** Please make sure the qat driver package is installed
32182 *** and specify the location of the qat source with the
32183 *** '--with-qat=PATH' option then try again. Failed to
32184 *** find cpa.h in:
32185 ${QAT_SRC}/include" >&2;}
32186 { (exit 1); exit 1; }; }
32187
32188 fi
32189
32190
32191 fi
32192
32193
32194 if test ! -z "${qatsrc}"; then
32195
32196 { $as_echo "$as_me:$LINENO: checking qat build directory" >&5
32197 $as_echo_n "checking qat build directory... " >&6; }
32198 if test -z "$qatbuild"; then
32199
32200 qatbuild="${qatsrc}/build"
32201
32202 fi
32203
32204
32205 { $as_echo "$as_me:$LINENO: result: $qatbuild" >&5
32206 $as_echo "$qatbuild" >&6; }
32207 QAT_OBJ=${qatbuild}
32208 if ! test -e "$QAT_OBJ/icp_qa_al.ko"; then
32209
32210 { { $as_echo "$as_me:$LINENO: error:
32211 *** Please make sure the qat driver is installed then try again.
32212 *** Failed to find icp_qa_al.ko in:
32213 $QAT_OBJ" >&5
32214 $as_echo "$as_me: error:
32215 *** Please make sure the qat driver is installed then try again.
32216 *** Failed to find icp_qa_al.ko in:
32217 $QAT_OBJ" >&2;}
32218 { (exit 1); exit 1; }; }
32219
32220 fi
32221
32222
32223
32224
32225
32226
32227 cat >>confdefs.h <<\_ACEOF
32228 #define HAVE_QAT 1
32229 _ACEOF
32230
32231
32232 fi
32233
32234
32235 if test ! -z "${qatsrc}"; then
32236
32237 { $as_echo "$as_me:$LINENO: checking qat file for module symbols" >&5
32238 $as_echo_n "checking qat file for module symbols... " >&6; }
32239 QAT_SYMBOLS=$QAT_SRC/lookaside/access_layer/src/Module.symvers
32240
32241 if test -r $QAT_SYMBOLS; then
32242
32243 { $as_echo "$as_me:$LINENO: result: $QAT_SYMBOLS" >&5
32244 $as_echo "$QAT_SYMBOLS" >&6; }
32245
32246
32247 else
32248
32249 { { $as_echo "$as_me:$LINENO: error:
32250 *** Please make sure the qat driver is installed then try again.
32251 *** Failed to find Module.symvers in:
32252 $QAT_SYMBOLS" >&5
32253 $as_echo "$as_me: error:
32254 *** Please make sure the qat driver is installed then try again.
32255 *** Failed to find Module.symvers in:
32256 $QAT_SYMBOLS" >&2;}
32257 { (exit 1); exit 1; }; }
32258
32259 fi
32260
32261
32262 fi
32263
32264
32265
32266 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
32267 $as_echo_n "checking whether modules can be built... " >&6; }
32268
32269
32270 cat confdefs.h - <<_ACEOF >conftest.c
32271 /* confdefs.h. */
32272 _ACEOF
32273 cat confdefs.h >>conftest.$ac_ext
32274 cat >>conftest.$ac_ext <<_ACEOF
32275 /* end confdefs.h. */
32276
32277
32278 int
32279 main (void)
32280 {
32281
32282 ;
32283 return 0;
32284 }
32285
32286 _ACEOF
32287
32288
32289
32290 cat - <<_ACEOF >conftest.h
32291
32292 _ACEOF
32293
32294
32295 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32296 echo "obj-m := conftest.o" >build/Makefile
32297 modpost_flag=''
32298 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32299 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32301 (eval $ac_try) 2>&5
32302 ac_status=$?
32303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
32305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32306 (eval $ac_try) 2>&5
32307 ac_status=$?
32308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309 (exit $ac_status); }; }; then
32310
32311 { $as_echo "$as_me:$LINENO: result: yes" >&5
32312 $as_echo "yes" >&6; }
32313
32314 else
32315 $as_echo "$as_me: failed program was:" >&5
32316 sed 's/^/| /' conftest.$ac_ext >&5
32317
32318 { $as_echo "$as_me:$LINENO: result: no" >&5
32319 $as_echo "no" >&6; }
32320 if test "x$enable_linux_builtin" != xyes; then
32321 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
32322 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
32323 { (exit 1); exit 1; }; }
32324 else
32325 { { $as_echo "$as_me:$LINENO: error:
32326 *** Unable to build an empty module.
32327 *** Please run 'make scripts' inside the kernel source tree." >&5
32328 $as_echo "$as_me: error:
32329 *** Unable to build an empty module.
32330 *** Please run 'make scripts' inside the kernel source tree." >&2;}
32331 { (exit 1); exit 1; }; }
32332 fi
32333
32334
32335
32336 fi
32337
32338 rm -Rf build
32339
32340
32341
32342
32343 { $as_echo "$as_me:$LINENO: checking for compile-time stack validation (objtool)" >&5
32344 $as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
32345
32346
32347 cat confdefs.h - <<_ACEOF >conftest.c
32348 /* confdefs.h. */
32349 _ACEOF
32350 cat confdefs.h >>conftest.$ac_ext
32351 cat >>conftest.$ac_ext <<_ACEOF
32352 /* end confdefs.h. */
32353
32354
32355 #undef __ASSEMBLY__
32356 #include <asm/frame.h>
32357
32358 int
32359 main (void)
32360 {
32361
32362 #if !defined(FRAME_BEGIN)
32363 CTASSERT(1);
32364 #endif
32365
32366 ;
32367 return 0;
32368 }
32369
32370 _ACEOF
32371
32372
32373
32374 cat - <<_ACEOF >conftest.h
32375
32376 _ACEOF
32377
32378
32379 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32380 echo "obj-m := conftest.o" >build/Makefile
32381 modpost_flag=''
32382 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32383 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32385 (eval $ac_try) 2>&5
32386 ac_status=$?
32387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32388 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
32389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32390 (eval $ac_try) 2>&5
32391 ac_status=$?
32392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32393 (exit $ac_status); }; }; then
32394
32395 { $as_echo "$as_me:$LINENO: result: yes" >&5
32396 $as_echo "yes" >&6; }
32397
32398 cat >>confdefs.h <<\_ACEOF
32399 #define HAVE_KERNEL_OBJTOOL 1
32400 _ACEOF
32401
32402
32403 else
32404 $as_echo "$as_me: failed program was:" >&5
32405 sed 's/^/| /' conftest.$ac_ext >&5
32406
32407 { $as_echo "$as_me:$LINENO: result: no" >&5
32408 $as_echo "no" >&6; }
32409
32410
32411
32412 fi
32413
32414 rm -Rf build
32415
32416
32417
32418
32419 if test "x$cross_compiling" != xyes; then
32420
32421 if test "$cross_compiling" = yes; then
32422 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32424 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
32425 See \`config.log' for more details." >&5
32426 $as_echo "$as_me: error: cannot run test program while cross compiling
32427 See \`config.log' for more details." >&2;}
32428 { (exit 1); exit 1; }; }; }
32429 else
32430 cat >conftest.$ac_ext <<_ACEOF
32431
32432 /* confdefs.h. */
32433 _ACEOF
32434 cat confdefs.h >>conftest.$ac_ext
32435 cat >>conftest.$ac_ext <<_ACEOF
32436 /* end confdefs.h. */
32437
32438 #include "$LINUX/include/linux/license.h"
32439
32440 int
32441 main ()
32442 {
32443
32444 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
32445
32446 ;
32447 return 0;
32448 }
32449
32450 _ACEOF
32451 rm -f conftest$ac_exeext
32452 if { (ac_try="$ac_link"
32453 case "(($ac_try" in
32454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32455 *) ac_try_echo=$ac_try;;
32456 esac
32457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32458 $as_echo "$ac_try_echo") >&5
32459 (eval "$ac_link") 2>&5
32460 ac_status=$?
32461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32463 { (case "(($ac_try" in
32464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32465 *) ac_try_echo=$ac_try;;
32466 esac
32467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32468 $as_echo "$ac_try_echo") >&5
32469 (eval "$ac_try") 2>&5
32470 ac_status=$?
32471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32472 (exit $ac_status); }; }; then
32473
32474
32475 cat >>confdefs.h <<\_ACEOF
32476 #define ZFS_IS_GPL_COMPATIBLE 1
32477 _ACEOF
32478
32479
32480 else
32481 $as_echo "$as_me: program exited with status $ac_status" >&5
32482 $as_echo "$as_me: failed program was:" >&5
32483 sed 's/^/| /' conftest.$ac_ext >&5
32484
32485 ( exit $ac_status )
32486
32487
32488 fi
32489 rm -rf conftest.dSYM
32490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32491 fi
32492
32493
32494
32495 fi
32496
32497
32498
32499 { $as_echo "$as_me:$LINENO: checking whether kernel was built with 16K or larger stacks" >&5
32500 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
32501
32502
32503 cat confdefs.h - <<_ACEOF >conftest.c
32504 /* confdefs.h. */
32505 _ACEOF
32506 cat confdefs.h >>conftest.$ac_ext
32507 cat >>conftest.$ac_ext <<_ACEOF
32508 /* end confdefs.h. */
32509
32510
32511 #include <linux/module.h>
32512
32513 int
32514 main (void)
32515 {
32516
32517 #if (THREAD_SIZE < 16384)
32518 #error "THREAD_SIZE is less than 16K"
32519 #endif
32520
32521 ;
32522 return 0;
32523 }
32524
32525 _ACEOF
32526
32527
32528
32529 cat - <<_ACEOF >conftest.h
32530
32531 _ACEOF
32532
32533
32534 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32535 echo "obj-m := conftest.o" >build/Makefile
32536 modpost_flag=''
32537 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32538 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32540 (eval $ac_try) 2>&5
32541 ac_status=$?
32542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
32544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32545 (eval $ac_try) 2>&5
32546 ac_status=$?
32547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548 (exit $ac_status); }; }; then
32549
32550 { $as_echo "$as_me:$LINENO: result: yes" >&5
32551 $as_echo "yes" >&6; }
32552
32553 cat >>confdefs.h <<\_ACEOF
32554 #define HAVE_LARGE_STACKS 1
32555 _ACEOF
32556
32557
32558 else
32559 $as_echo "$as_me: failed program was:" >&5
32560 sed 's/^/| /' conftest.$ac_ext >&5
32561
32562 { $as_echo "$as_me:$LINENO: result: no" >&5
32563 $as_echo "no" >&6; }
32564
32565
32566
32567 fi
32568
32569 rm -Rf build
32570
32571
32572
32573
32574
32575 { $as_echo "$as_me:$LINENO: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
32576 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
32577
32578
32579 cat confdefs.h - <<_ACEOF >conftest.c
32580 /* confdefs.h. */
32581 _ACEOF
32582 cat confdefs.h >>conftest.$ac_ext
32583 cat >>conftest.$ac_ext <<_ACEOF
32584 /* end confdefs.h. */
32585
32586
32587 #include <linux/module.h>
32588
32589 int
32590 main (void)
32591 {
32592
32593 #ifndef CONFIG_DEBUG_LOCK_ALLOC
32594 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
32595 #endif
32596
32597 ;
32598 return 0;
32599 }
32600
32601 _ACEOF
32602
32603
32604
32605 cat - <<_ACEOF >conftest.h
32606
32607 _ACEOF
32608
32609
32610 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32611 echo "obj-m := conftest.o" >build/Makefile
32612 modpost_flag=''
32613 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32614 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32616 (eval $ac_try) 2>&5
32617 ac_status=$?
32618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
32620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32621 (eval $ac_try) 2>&5
32622 ac_status=$?
32623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624 (exit $ac_status); }; }; then
32625
32626 { $as_echo "$as_me:$LINENO: result: yes" >&5
32627 $as_echo "yes" >&6; }
32628
32629 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
32630 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
32631 tmp_flags="$EXTRA_KCFLAGS"
32632
32633
32634 cat confdefs.h - <<_ACEOF >conftest.c
32635 /* confdefs.h. */
32636 _ACEOF
32637 cat confdefs.h >>conftest.$ac_ext
32638 cat >>conftest.$ac_ext <<_ACEOF
32639 /* end confdefs.h. */
32640
32641
32642 #include <linux/module.h>
32643 #include <linux/mutex.h>
32644
32645 MODULE_LICENSE("$ZFS_META_LICENSE");
32646
32647 int
32648 main (void)
32649 {
32650
32651 struct mutex lock;
32652
32653 mutex_init(&lock);
32654 mutex_lock(&lock);
32655 mutex_unlock(&lock);
32656
32657 ;
32658 return 0;
32659 }
32660
32661 _ACEOF
32662
32663
32664
32665 cat - <<_ACEOF >conftest.h
32666
32667 _ACEOF
32668
32669
32670 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32671 echo "obj-m := conftest.o" >build/Makefile
32672 modpost_flag=''
32673 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32674 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32676 (eval $ac_try) 2>&5
32677 ac_status=$?
32678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
32680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32681 (eval $ac_try) 2>&5
32682 ac_status=$?
32683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684 (exit $ac_status); }; }; then
32685
32686 { $as_echo "$as_me:$LINENO: result: no" >&5
32687 $as_echo "no" >&6; }
32688
32689 else
32690 $as_echo "$as_me: failed program was:" >&5
32691 sed 's/^/| /' conftest.$ac_ext >&5
32692
32693 { $as_echo "$as_me:$LINENO: result: yes" >&5
32694 $as_echo "yes" >&6; }
32695 { { $as_echo "$as_me:$LINENO: error:
32696 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
32697 *** with the CDDL license and will prevent the module linking stage
32698 *** from succeeding. You must rebuild your kernel without this
32699 *** option enabled." >&5
32700 $as_echo "$as_me: error:
32701 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
32702 *** with the CDDL license and will prevent the module linking stage
32703 *** from succeeding. You must rebuild your kernel without this
32704 *** option enabled." >&2;}
32705 { (exit 1); exit 1; }; }
32706
32707
32708
32709 fi
32710
32711 rm -Rf build
32712
32713
32714 EXTRA_KCFLAGS="$tmp_flags"
32715
32716
32717 else
32718 $as_echo "$as_me: failed program was:" >&5
32719 sed 's/^/| /' conftest.$ac_ext >&5
32720
32721 { $as_echo "$as_me:$LINENO: result: no" >&5
32722 $as_echo "no" >&6; }
32723
32724
32725
32726
32727 fi
32728
32729 rm -Rf build
32730
32731
32732
32733
32734
32735
32736 tmp_flags="$EXTRA_KCFLAGS"
32737 EXTRA_KCFLAGS="-I\$(src)"
32738
32739 { $as_echo "$as_me:$LINENO: checking whether DECLARE_EVENT_CLASS() is available" >&5
32740 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
32741
32742
32743 cat confdefs.h - <<_ACEOF >conftest.c
32744 /* confdefs.h. */
32745 _ACEOF
32746 cat confdefs.h >>conftest.$ac_ext
32747 cat >>conftest.$ac_ext <<_ACEOF
32748 /* end confdefs.h. */
32749
32750
32751 #include <linux/module.h>
32752 MODULE_LICENSE(ZFS_META_LICENSE);
32753
32754 #define CREATE_TRACE_POINTS
32755 #include "conftest.h"
32756
32757 int
32758 main (void)
32759 {
32760
32761 trace_zfs_autoconf_event_one(1UL);
32762 trace_zfs_autoconf_event_two(2UL);
32763
32764 ;
32765 return 0;
32766 }
32767
32768 _ACEOF
32769
32770
32771
32772 cat - <<_ACEOF >conftest.h
32773
32774 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
32775 #define _CONFTEST_H
32776
32777 #undef TRACE_SYSTEM
32778 #define TRACE_SYSTEM zfs
32779 #include <linux/tracepoint.h>
32780
32781 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
32782 TP_PROTO(unsigned long i),
32783 TP_ARGS(i),
32784 TP_STRUCT__entry(
32785 __field(unsigned long, i)
32786 ),
32787 TP_fast_assign(
32788 __entry->i = i;
32789 ),
32790 TP_printk("i = %lu", __entry->i)
32791 );
32792
32793 #define DEFINE_AUTOCONF_EVENT(name) \
32794 DEFINE_EVENT(zfs_autoconf_event_class, name, \
32795 TP_PROTO(unsigned long i), \
32796 TP_ARGS(i))
32797 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
32798 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
32799
32800 #endif /* _CONFTEST_H */
32801
32802 #undef TRACE_INCLUDE_PATH
32803 #define TRACE_INCLUDE_PATH .
32804 #define TRACE_INCLUDE_FILE conftest
32805 #include <trace/define_trace.h>
32806
32807 _ACEOF
32808
32809
32810 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32811 echo "obj-m := conftest.o" >build/Makefile
32812 modpost_flag=''
32813 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32814 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32816 (eval $ac_try) 2>&5
32817 ac_status=$?
32818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32819 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
32820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32821 (eval $ac_try) 2>&5
32822 ac_status=$?
32823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32824 (exit $ac_status); }; }; then
32825
32826 { $as_echo "$as_me:$LINENO: result: yes" >&5
32827 $as_echo "yes" >&6; }
32828
32829 cat >>confdefs.h <<\_ACEOF
32830 #define HAVE_DECLARE_EVENT_CLASS 1
32831 _ACEOF
32832
32833
32834 else
32835 $as_echo "$as_me: failed program was:" >&5
32836 sed 's/^/| /' conftest.$ac_ext >&5
32837
32838 { $as_echo "$as_me:$LINENO: result: no" >&5
32839 $as_echo "no" >&6; }
32840
32841
32842
32843 fi
32844
32845 rm -Rf build
32846
32847
32848 EXTRA_KCFLAGS="$tmp_flags"
32849
32850
32851 { $as_echo "$as_me:$LINENO: checking whether current->bio_tail exists" >&5
32852 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
32853
32854
32855 cat confdefs.h - <<_ACEOF >conftest.c
32856 /* confdefs.h. */
32857 _ACEOF
32858 cat confdefs.h >>conftest.$ac_ext
32859 cat >>conftest.$ac_ext <<_ACEOF
32860 /* end confdefs.h. */
32861
32862
32863 #include <linux/sched.h>
32864
32865 int
32866 main (void)
32867 {
32868
32869 current->bio_tail = (struct bio **) NULL;
32870
32871 ;
32872 return 0;
32873 }
32874
32875 _ACEOF
32876
32877
32878
32879 cat - <<_ACEOF >conftest.h
32880
32881 _ACEOF
32882
32883
32884 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32885 echo "obj-m := conftest.o" >build/Makefile
32886 modpost_flag=''
32887 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32888 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32890 (eval $ac_try) 2>&5
32891 ac_status=$?
32892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
32894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32895 (eval $ac_try) 2>&5
32896 ac_status=$?
32897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32898 (exit $ac_status); }; }; then
32899
32900 { $as_echo "$as_me:$LINENO: result: yes" >&5
32901 $as_echo "yes" >&6; }
32902
32903 cat >>confdefs.h <<\_ACEOF
32904 #define HAVE_CURRENT_BIO_TAIL 1
32905 _ACEOF
32906
32907
32908 else
32909 $as_echo "$as_me: failed program was:" >&5
32910 sed 's/^/| /' conftest.$ac_ext >&5
32911
32912 { $as_echo "$as_me:$LINENO: result: no" >&5
32913 $as_echo "no" >&6; }
32914 { $as_echo "$as_me:$LINENO: checking whether current->bio_list exists" >&5
32915 $as_echo_n "checking whether current->bio_list exists... " >&6; }
32916
32917
32918 cat confdefs.h - <<_ACEOF >conftest.c
32919 /* confdefs.h. */
32920 _ACEOF
32921 cat confdefs.h >>conftest.$ac_ext
32922 cat >>conftest.$ac_ext <<_ACEOF
32923 /* end confdefs.h. */
32924
32925
32926 #include <linux/sched.h>
32927
32928 int
32929 main (void)
32930 {
32931
32932 current->bio_list = (struct bio_list *) NULL;
32933
32934 ;
32935 return 0;
32936 }
32937
32938 _ACEOF
32939
32940
32941
32942 cat - <<_ACEOF >conftest.h
32943
32944 _ACEOF
32945
32946
32947 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32948 echo "obj-m := conftest.o" >build/Makefile
32949 modpost_flag=''
32950 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32951 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32953 (eval $ac_try) 2>&5
32954 ac_status=$?
32955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
32957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32958 (eval $ac_try) 2>&5
32959 ac_status=$?
32960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32961 (exit $ac_status); }; }; then
32962
32963 { $as_echo "$as_me:$LINENO: result: yes" >&5
32964 $as_echo "yes" >&6; }
32965
32966 cat >>confdefs.h <<\_ACEOF
32967 #define HAVE_CURRENT_BIO_LIST 1
32968 _ACEOF
32969
32970
32971 else
32972 $as_echo "$as_me: failed program was:" >&5
32973 sed 's/^/| /' conftest.$ac_ext >&5
32974
32975 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
32976 https://github.com/zfsonlinux/zfs/issues/new" >&5
32977 $as_echo "$as_me: error: no - Please file a bug report at
32978 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
32979 { (exit 1); exit 1; }; }
32980
32981
32982
32983 fi
32984
32985 rm -Rf build
32986
32987
32988
32989
32990
32991 fi
32992
32993 rm -Rf build
32994
32995
32996
32997
32998 { $as_echo "$as_me:$LINENO: checking whether super_block->s_user_ns exists" >&5
32999 $as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
33000
33001
33002 cat confdefs.h - <<_ACEOF >conftest.c
33003 /* confdefs.h. */
33004 _ACEOF
33005 cat confdefs.h >>conftest.$ac_ext
33006 cat >>conftest.$ac_ext <<_ACEOF
33007 /* end confdefs.h. */
33008
33009
33010 #include <linux/fs.h>
33011 #include <linux/user_namespace.h>
33012
33013 int
33014 main (void)
33015 {
33016
33017 struct super_block super;
33018 super.s_user_ns = (struct user_namespace *)NULL;
33019
33020 ;
33021 return 0;
33022 }
33023
33024 _ACEOF
33025
33026
33027
33028 cat - <<_ACEOF >conftest.h
33029
33030 _ACEOF
33031
33032
33033 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33034 echo "obj-m := conftest.o" >build/Makefile
33035 modpost_flag=''
33036 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33037 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33039 (eval $ac_try) 2>&5
33040 ac_status=$?
33041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33042 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33044 (eval $ac_try) 2>&5
33045 ac_status=$?
33046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047 (exit $ac_status); }; }; then
33048
33049 { $as_echo "$as_me:$LINENO: result: yes" >&5
33050 $as_echo "yes" >&6; }
33051
33052 cat >>confdefs.h <<\_ACEOF
33053 #define HAVE_SUPER_USER_NS 1
33054 _ACEOF
33055
33056
33057 else
33058 $as_echo "$as_me: failed program was:" >&5
33059 sed 's/^/| /' conftest.$ac_ext >&5
33060
33061 { $as_echo "$as_me:$LINENO: result: no" >&5
33062 $as_echo "no" >&6; }
33063
33064
33065
33066 fi
33067
33068 rm -Rf build
33069
33070
33071
33072
33073 { $as_echo "$as_me:$LINENO: checking whether submit_bio() wants 1 arg" >&5
33074 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
33075
33076
33077 cat confdefs.h - <<_ACEOF >conftest.c
33078 /* confdefs.h. */
33079 _ACEOF
33080 cat confdefs.h >>conftest.$ac_ext
33081 cat >>conftest.$ac_ext <<_ACEOF
33082 /* end confdefs.h. */
33083
33084
33085 #include <linux/bio.h>
33086
33087 int
33088 main (void)
33089 {
33090
33091 blk_qc_t blk_qc;
33092 struct bio *bio = NULL;
33093 blk_qc = submit_bio(bio);
33094
33095 ;
33096 return 0;
33097 }
33098
33099 _ACEOF
33100
33101
33102
33103 cat - <<_ACEOF >conftest.h
33104
33105 _ACEOF
33106
33107
33108 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33109 echo "obj-m := conftest.o" >build/Makefile
33110 modpost_flag=''
33111 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33112 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33114 (eval $ac_try) 2>&5
33115 ac_status=$?
33116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33117 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33119 (eval $ac_try) 2>&5
33120 ac_status=$?
33121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122 (exit $ac_status); }; }; then
33123
33124 { $as_echo "$as_me:$LINENO: result: yes" >&5
33125 $as_echo "yes" >&6; }
33126
33127 cat >>confdefs.h <<\_ACEOF
33128 #define HAVE_1ARG_SUBMIT_BIO 1
33129 _ACEOF
33130
33131
33132 else
33133 $as_echo "$as_me: failed program was:" >&5
33134 sed 's/^/| /' conftest.$ac_ext >&5
33135
33136 { $as_echo "$as_me:$LINENO: result: no" >&5
33137 $as_echo "no" >&6; }
33138
33139
33140
33141 fi
33142
33143 rm -Rf build
33144
33145
33146
33147
33148 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
33149 $as_echo_n "checking block device operation prototypes... " >&6; }
33150 tmp_flags="$EXTRA_KCFLAGS"
33151 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
33152
33153
33154 cat confdefs.h - <<_ACEOF >conftest.c
33155 /* confdefs.h. */
33156 _ACEOF
33157 cat confdefs.h >>conftest.$ac_ext
33158 cat >>conftest.$ac_ext <<_ACEOF
33159 /* end confdefs.h. */
33160
33161
33162 #include <linux/blkdev.h>
33163
33164 int blk_open(struct block_device *bdev, fmode_t mode)
33165 { return 0; }
33166 int blk_ioctl(struct block_device *bdev, fmode_t mode,
33167 unsigned x, unsigned long y) { return 0; }
33168 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
33169 unsigned x, unsigned long y) { return 0; }
33170
33171 static const struct block_device_operations
33172 bops __attribute__ ((unused)) = {
33173 .open = blk_open,
33174 .release = NULL,
33175 .ioctl = blk_ioctl,
33176 .compat_ioctl = blk_compat_ioctl,
33177 };
33178
33179 int
33180 main (void)
33181 {
33182
33183
33184 ;
33185 return 0;
33186 }
33187
33188 _ACEOF
33189
33190
33191
33192 cat - <<_ACEOF >conftest.h
33193
33194 _ACEOF
33195
33196
33197 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33198 echo "obj-m := conftest.o" >build/Makefile
33199 modpost_flag=''
33200 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33201 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33203 (eval $ac_try) 2>&5
33204 ac_status=$?
33205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33206 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33208 (eval $ac_try) 2>&5
33209 ac_status=$?
33210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211 (exit $ac_status); }; }; then
33212
33213 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
33214 $as_echo "struct block_device" >&6; }
33215
33216 cat >>confdefs.h <<\_ACEOF
33217 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
33218 _ACEOF
33219
33220
33221 else
33222 $as_echo "$as_me: failed program was:" >&5
33223 sed 's/^/| /' conftest.$ac_ext >&5
33224
33225 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
33226 $as_echo "struct inode" >&6; }
33227
33228
33229
33230 fi
33231
33232 rm -Rf build
33233
33234
33235 EXTRA_KCFLAGS="$tmp_flags"
33236
33237
33238 { $as_echo "$as_me:$LINENO: checking whether block_device_operations.release is void" >&5
33239 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
33240 tmp_flags="$EXTRA_KCFLAGS"
33241 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
33242
33243
33244 cat confdefs.h - <<_ACEOF >conftest.c
33245 /* confdefs.h. */
33246 _ACEOF
33247 cat confdefs.h >>conftest.$ac_ext
33248 cat >>conftest.$ac_ext <<_ACEOF
33249 /* end confdefs.h. */
33250
33251
33252 #include <linux/blkdev.h>
33253
33254 void blk_release(struct gendisk *g, fmode_t mode) { return; }
33255
33256 static const struct block_device_operations
33257 bops __attribute__ ((unused)) = {
33258 .open = NULL,
33259 .release = blk_release,
33260 .ioctl = NULL,
33261 .compat_ioctl = NULL,
33262 };
33263
33264 int
33265 main (void)
33266 {
33267
33268
33269 ;
33270 return 0;
33271 }
33272
33273 _ACEOF
33274
33275
33276
33277 cat - <<_ACEOF >conftest.h
33278
33279 _ACEOF
33280
33281
33282 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33283 echo "obj-m := conftest.o" >build/Makefile
33284 modpost_flag=''
33285 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33286 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33288 (eval $ac_try) 2>&5
33289 ac_status=$?
33290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33293 (eval $ac_try) 2>&5
33294 ac_status=$?
33295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296 (exit $ac_status); }; }; then
33297
33298 { $as_echo "$as_me:$LINENO: result: void" >&5
33299 $as_echo "void" >&6; }
33300
33301 cat >>confdefs.h <<\_ACEOF
33302 #define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1
33303 _ACEOF
33304
33305
33306 else
33307 $as_echo "$as_me: failed program was:" >&5
33308 sed 's/^/| /' conftest.$ac_ext >&5
33309
33310 { $as_echo "$as_me:$LINENO: result: int" >&5
33311 $as_echo "int" >&6; }
33312
33313
33314
33315 fi
33316
33317 rm -Rf build
33318
33319
33320 EXTRA_KCFLAGS="$tmp_flags"
33321
33322 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
33323 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
33324
33325
33326 cat confdefs.h - <<_ACEOF >conftest.c
33327 /* confdefs.h. */
33328 _ACEOF
33329 cat confdefs.h >>conftest.$ac_ext
33330 cat >>conftest.$ac_ext <<_ACEOF
33331 /* end confdefs.h. */
33332
33333
33334 #include <linux/types.h>
33335
33336 int
33337 main (void)
33338 {
33339
33340 fmode_t *ptr __attribute__ ((unused));
33341
33342 ;
33343 return 0;
33344 }
33345
33346 _ACEOF
33347
33348
33349
33350 cat - <<_ACEOF >conftest.h
33351
33352 _ACEOF
33353
33354
33355 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33356 echo "obj-m := conftest.o" >build/Makefile
33357 modpost_flag=''
33358 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33359 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33361 (eval $ac_try) 2>&5
33362 ac_status=$?
33363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33364 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33366 (eval $ac_try) 2>&5
33367 ac_status=$?
33368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369 (exit $ac_status); }; }; then
33370
33371 { $as_echo "$as_me:$LINENO: result: yes" >&5
33372 $as_echo "yes" >&6; }
33373
33374 cat >>confdefs.h <<\_ACEOF
33375 #define HAVE_FMODE_T 1
33376 _ACEOF
33377
33378
33379 else
33380 $as_echo "$as_me: failed program was:" >&5
33381 sed 's/^/| /' conftest.$ac_ext >&5
33382
33383 { $as_echo "$as_me:$LINENO: result: no" >&5
33384 $as_echo "no" >&6; }
33385
33386
33387
33388 fi
33389
33390 rm -Rf build
33391
33392
33393
33394
33395 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
33396 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
33397
33398
33399 cat confdefs.h - <<_ACEOF >conftest.c
33400 /* confdefs.h. */
33401 _ACEOF
33402 cat confdefs.h >>conftest.$ac_ext
33403 cat >>conftest.$ac_ext <<_ACEOF
33404 /* end confdefs.h. */
33405
33406
33407 #include <linux/fs.h>
33408
33409 int
33410 main (void)
33411 {
33412
33413 struct block_device *bdev = NULL;
33414 (void) blkdev_get(bdev, 0, NULL);
33415
33416 ;
33417 return 0;
33418 }
33419
33420 _ACEOF
33421
33422
33423
33424 cat - <<_ACEOF >conftest.h
33425
33426 _ACEOF
33427
33428
33429 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33430 echo "obj-m := conftest.o" >build/Makefile
33431 modpost_flag=''
33432 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33433 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33435 (eval $ac_try) 2>&5
33436 ac_status=$?
33437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33438 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33440 (eval $ac_try) 2>&5
33441 ac_status=$?
33442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33443 (exit $ac_status); }; }; then
33444
33445 { $as_echo "$as_me:$LINENO: result: yes" >&5
33446 $as_echo "yes" >&6; }
33447
33448 cat >>confdefs.h <<\_ACEOF
33449 #define HAVE_3ARG_BLKDEV_GET 1
33450 _ACEOF
33451
33452
33453 else
33454 $as_echo "$as_me: failed program was:" >&5
33455 sed 's/^/| /' conftest.$ac_ext >&5
33456
33457 { $as_echo "$as_me:$LINENO: result: no" >&5
33458 $as_echo "no" >&6; }
33459
33460
33461
33462 fi
33463
33464 rm -Rf build
33465
33466
33467
33468 { $as_echo "$as_me:$LINENO: checking whether blkdev_get_by_path() is available" >&5
33469 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
33470
33471
33472
33473 cat confdefs.h - <<_ACEOF >conftest.c
33474 /* confdefs.h. */
33475 _ACEOF
33476 cat confdefs.h >>conftest.$ac_ext
33477 cat >>conftest.$ac_ext <<_ACEOF
33478 /* end confdefs.h. */
33479
33480
33481 #include <linux/fs.h>
33482
33483 int
33484 main (void)
33485 {
33486
33487 blkdev_get_by_path(NULL, 0, NULL);
33488
33489 ;
33490 return 0;
33491 }
33492
33493 _ACEOF
33494
33495
33496
33497 cat - <<_ACEOF >conftest.h
33498
33499 _ACEOF
33500
33501
33502 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33503 echo "obj-m := conftest.o" >build/Makefile
33504 modpost_flag=''
33505 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33506 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33508 (eval $ac_try) 2>&5
33509 ac_status=$?
33510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33511 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33513 (eval $ac_try) 2>&5
33514 ac_status=$?
33515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33516 (exit $ac_status); }; }; then
33517 rc=0
33518 else
33519 $as_echo "$as_me: failed program was:" >&5
33520 sed 's/^/| /' conftest.$ac_ext >&5
33521 rc=1
33522
33523
33524 fi
33525
33526 rm -Rf build
33527
33528
33529 if test $rc -ne 0; then :
33530
33531 { $as_echo "$as_me:$LINENO: result: no" >&5
33532 $as_echo "no" >&6; }
33533
33534 else
33535 if test "x$enable_linux_builtin" != xyes; then
33536
33537 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
33538 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
33539 rc=$?
33540 if test $rc -ne 0; then
33541 export=0
33542 for file in fs/block_dev.c; do
33543 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
33544 "$LINUX/$file" 2>/dev/null
33545 rc=$?
33546 if test $rc -eq 0; then
33547 export=1
33548 break;
33549 fi
33550 done
33551 if test $export -eq 0; then :
33552 rc=1
33553 else :
33554 rc=0
33555 fi
33556 else :
33557 rc=0
33558 fi
33559
33560 fi
33561 if test $rc -ne 0; then :
33562
33563 { $as_echo "$as_me:$LINENO: result: no" >&5
33564 $as_echo "no" >&6; }
33565
33566 else :
33567
33568 { $as_echo "$as_me:$LINENO: result: yes" >&5
33569 $as_echo "yes" >&6; }
33570
33571 cat >>confdefs.h <<\_ACEOF
33572 #define HAVE_BLKDEV_GET_BY_PATH 1
33573 _ACEOF
33574
33575
33576 fi
33577 fi
33578
33579
33580 { $as_echo "$as_me:$LINENO: checking whether open_bdev_exclusive() is available" >&5
33581 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
33582
33583
33584
33585 cat confdefs.h - <<_ACEOF >conftest.c
33586 /* confdefs.h. */
33587 _ACEOF
33588 cat confdefs.h >>conftest.$ac_ext
33589 cat >>conftest.$ac_ext <<_ACEOF
33590 /* end confdefs.h. */
33591
33592
33593 #include <linux/fs.h>
33594
33595 int
33596 main (void)
33597 {
33598
33599 open_bdev_exclusive(NULL, 0, NULL);
33600
33601 ;
33602 return 0;
33603 }
33604
33605 _ACEOF
33606
33607
33608
33609 cat - <<_ACEOF >conftest.h
33610
33611 _ACEOF
33612
33613
33614 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33615 echo "obj-m := conftest.o" >build/Makefile
33616 modpost_flag=''
33617 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33618 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33620 (eval $ac_try) 2>&5
33621 ac_status=$?
33622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33623 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33625 (eval $ac_try) 2>&5
33626 ac_status=$?
33627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33628 (exit $ac_status); }; }; then
33629 rc=0
33630 else
33631 $as_echo "$as_me: failed program was:" >&5
33632 sed 's/^/| /' conftest.$ac_ext >&5
33633 rc=1
33634
33635
33636 fi
33637
33638 rm -Rf build
33639
33640
33641 if test $rc -ne 0; then :
33642
33643 { $as_echo "$as_me:$LINENO: result: no" >&5
33644 $as_echo "no" >&6; }
33645
33646 else
33647 if test "x$enable_linux_builtin" != xyes; then
33648
33649 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
33650 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
33651 rc=$?
33652 if test $rc -ne 0; then
33653 export=0
33654 for file in fs/block_dev.c; do
33655 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
33656 "$LINUX/$file" 2>/dev/null
33657 rc=$?
33658 if test $rc -eq 0; then
33659 export=1
33660 break;
33661 fi
33662 done
33663 if test $export -eq 0; then :
33664 rc=1
33665 else :
33666 rc=0
33667 fi
33668 else :
33669 rc=0
33670 fi
33671
33672 fi
33673 if test $rc -ne 0; then :
33674
33675 { $as_echo "$as_me:$LINENO: result: no" >&5
33676 $as_echo "no" >&6; }
33677
33678 else :
33679
33680 { $as_echo "$as_me:$LINENO: result: yes" >&5
33681 $as_echo "yes" >&6; }
33682
33683 cat >>confdefs.h <<\_ACEOF
33684 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
33685 _ACEOF
33686
33687
33688 fi
33689 fi
33690
33691
33692 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 1 arg" >&5
33693 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
33694
33695
33696
33697 cat confdefs.h - <<_ACEOF >conftest.c
33698 /* confdefs.h. */
33699 _ACEOF
33700 cat confdefs.h >>conftest.$ac_ext
33701 cat >>conftest.$ac_ext <<_ACEOF
33702 /* end confdefs.h. */
33703
33704
33705 #include <linux/fs.h>
33706
33707 int
33708 main (void)
33709 {
33710
33711 lookup_bdev(NULL);
33712
33713 ;
33714 return 0;
33715 }
33716
33717 _ACEOF
33718
33719
33720
33721 cat - <<_ACEOF >conftest.h
33722
33723 _ACEOF
33724
33725
33726 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33727 echo "obj-m := conftest.o" >build/Makefile
33728 modpost_flag=''
33729 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33730 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33732 (eval $ac_try) 2>&5
33733 ac_status=$?
33734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33735 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33737 (eval $ac_try) 2>&5
33738 ac_status=$?
33739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33740 (exit $ac_status); }; }; then
33741 rc=0
33742 else
33743 $as_echo "$as_me: failed program was:" >&5
33744 sed 's/^/| /' conftest.$ac_ext >&5
33745 rc=1
33746
33747
33748 fi
33749
33750 rm -Rf build
33751
33752
33753 if test $rc -ne 0; then :
33754
33755 { $as_echo "$as_me:$LINENO: result: no" >&5
33756 $as_echo "no" >&6; }
33757 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
33758 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
33759
33760
33761
33762 cat confdefs.h - <<_ACEOF >conftest.c
33763 /* confdefs.h. */
33764 _ACEOF
33765 cat confdefs.h >>conftest.$ac_ext
33766 cat >>conftest.$ac_ext <<_ACEOF
33767 /* end confdefs.h. */
33768
33769
33770 #include <linux/fs.h>
33771
33772 int
33773 main (void)
33774 {
33775
33776 lookup_bdev(NULL, FMODE_READ);
33777
33778 ;
33779 return 0;
33780 }
33781
33782 _ACEOF
33783
33784
33785
33786 cat - <<_ACEOF >conftest.h
33787
33788 _ACEOF
33789
33790
33791 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33792 echo "obj-m := conftest.o" >build/Makefile
33793 modpost_flag=''
33794 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33795 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33797 (eval $ac_try) 2>&5
33798 ac_status=$?
33799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33802 (eval $ac_try) 2>&5
33803 ac_status=$?
33804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); }; }; then
33806 rc=0
33807 else
33808 $as_echo "$as_me: failed program was:" >&5
33809 sed 's/^/| /' conftest.$ac_ext >&5
33810 rc=1
33811
33812
33813 fi
33814
33815 rm -Rf build
33816
33817
33818 if test $rc -ne 0; then :
33819
33820 { $as_echo "$as_me:$LINENO: result: no" >&5
33821 $as_echo "no" >&6; }
33822
33823 else
33824 if test "x$enable_linux_builtin" != xyes; then
33825
33826 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
33827 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
33828 rc=$?
33829 if test $rc -ne 0; then
33830 export=0
33831 for file in fs/block_dev.c; do
33832 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
33833 "$LINUX/$file" 2>/dev/null
33834 rc=$?
33835 if test $rc -eq 0; then
33836 export=1
33837 break;
33838 fi
33839 done
33840 if test $export -eq 0; then :
33841 rc=1
33842 else :
33843 rc=0
33844 fi
33845 else :
33846 rc=0
33847 fi
33848
33849 fi
33850 if test $rc -ne 0; then :
33851
33852 { $as_echo "$as_me:$LINENO: result: no" >&5
33853 $as_echo "no" >&6; }
33854
33855 else :
33856
33857 { $as_echo "$as_me:$LINENO: result: yes" >&5
33858 $as_echo "yes" >&6; }
33859
33860 cat >>confdefs.h <<\_ACEOF
33861 #define HAVE_2ARGS_LOOKUP_BDEV 1
33862 _ACEOF
33863
33864
33865 fi
33866 fi
33867
33868
33869 else
33870 if test "x$enable_linux_builtin" != xyes; then
33871
33872 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
33873 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
33874 rc=$?
33875 if test $rc -ne 0; then
33876 export=0
33877 for file in fs/block_dev.c; do
33878 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
33879 "$LINUX/$file" 2>/dev/null
33880 rc=$?
33881 if test $rc -eq 0; then
33882 export=1
33883 break;
33884 fi
33885 done
33886 if test $export -eq 0; then :
33887 rc=1
33888 else :
33889 rc=0
33890 fi
33891 else :
33892 rc=0
33893 fi
33894
33895 fi
33896 if test $rc -ne 0; then :
33897
33898 { $as_echo "$as_me:$LINENO: result: no" >&5
33899 $as_echo "no" >&6; }
33900 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
33901 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
33902
33903
33904
33905 cat confdefs.h - <<_ACEOF >conftest.c
33906 /* confdefs.h. */
33907 _ACEOF
33908 cat confdefs.h >>conftest.$ac_ext
33909 cat >>conftest.$ac_ext <<_ACEOF
33910 /* end confdefs.h. */
33911
33912
33913 #include <linux/fs.h>
33914
33915 int
33916 main (void)
33917 {
33918
33919 lookup_bdev(NULL, FMODE_READ);
33920
33921 ;
33922 return 0;
33923 }
33924
33925 _ACEOF
33926
33927
33928
33929 cat - <<_ACEOF >conftest.h
33930
33931 _ACEOF
33932
33933
33934 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33935 echo "obj-m := conftest.o" >build/Makefile
33936 modpost_flag=''
33937 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33938 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33940 (eval $ac_try) 2>&5
33941 ac_status=$?
33942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33943 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33945 (eval $ac_try) 2>&5
33946 ac_status=$?
33947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948 (exit $ac_status); }; }; then
33949 rc=0
33950 else
33951 $as_echo "$as_me: failed program was:" >&5
33952 sed 's/^/| /' conftest.$ac_ext >&5
33953 rc=1
33954
33955
33956 fi
33957
33958 rm -Rf build
33959
33960
33961 if test $rc -ne 0; then :
33962
33963 { $as_echo "$as_me:$LINENO: result: no" >&5
33964 $as_echo "no" >&6; }
33965
33966 else
33967 if test "x$enable_linux_builtin" != xyes; then
33968
33969 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
33970 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
33971 rc=$?
33972 if test $rc -ne 0; then
33973 export=0
33974 for file in fs/block_dev.c; do
33975 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
33976 "$LINUX/$file" 2>/dev/null
33977 rc=$?
33978 if test $rc -eq 0; then
33979 export=1
33980 break;
33981 fi
33982 done
33983 if test $export -eq 0; then :
33984 rc=1
33985 else :
33986 rc=0
33987 fi
33988 else :
33989 rc=0
33990 fi
33991
33992 fi
33993 if test $rc -ne 0; then :
33994
33995 { $as_echo "$as_me:$LINENO: result: no" >&5
33996 $as_echo "no" >&6; }
33997
33998 else :
33999
34000 { $as_echo "$as_me:$LINENO: result: yes" >&5
34001 $as_echo "yes" >&6; }
34002
34003 cat >>confdefs.h <<\_ACEOF
34004 #define HAVE_2ARGS_LOOKUP_BDEV 1
34005 _ACEOF
34006
34007
34008 fi
34009 fi
34010
34011
34012 else :
34013
34014 { $as_echo "$as_me:$LINENO: result: yes" >&5
34015 $as_echo "yes" >&6; }
34016
34017 cat >>confdefs.h <<\_ACEOF
34018 #define HAVE_1ARG_LOOKUP_BDEV 1
34019 _ACEOF
34020
34021
34022 fi
34023 fi
34024
34025
34026
34027 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
34028 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
34029
34030
34031 cat confdefs.h - <<_ACEOF >conftest.c
34032 /* confdefs.h. */
34033 _ACEOF
34034 cat confdefs.h >>conftest.$ac_ext
34035 cat >>conftest.$ac_ext <<_ACEOF
34036 /* end confdefs.h. */
34037
34038
34039 #include <linux/buffer_head.h>
34040
34041 int
34042 main (void)
34043 {
34044
34045 struct block_device *bdev = NULL;
34046 invalidate_bdev(bdev);
34047
34048 ;
34049 return 0;
34050 }
34051
34052 _ACEOF
34053
34054
34055
34056 cat - <<_ACEOF >conftest.h
34057
34058 _ACEOF
34059
34060
34061 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34062 echo "obj-m := conftest.o" >build/Makefile
34063 modpost_flag=''
34064 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34065 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34067 (eval $ac_try) 2>&5
34068 ac_status=$?
34069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34070 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34072 (eval $ac_try) 2>&5
34073 ac_status=$?
34074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34075 (exit $ac_status); }; }; then
34076
34077 { $as_echo "$as_me:$LINENO: result: yes" >&5
34078 $as_echo "yes" >&6; }
34079
34080 cat >>confdefs.h <<\_ACEOF
34081 #define HAVE_1ARG_INVALIDATE_BDEV 1
34082 _ACEOF
34083
34084
34085 else
34086 $as_echo "$as_me: failed program was:" >&5
34087 sed 's/^/| /' conftest.$ac_ext >&5
34088
34089 { $as_echo "$as_me:$LINENO: result: no" >&5
34090 $as_echo "no" >&6; }
34091
34092
34093
34094 fi
34095
34096 rm -Rf build
34097
34098
34099
34100
34101 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
34102 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
34103 tmp_flags="$EXTRA_KCFLAGS"
34104 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
34105
34106
34107 cat confdefs.h - <<_ACEOF >conftest.c
34108 /* confdefs.h. */
34109 _ACEOF
34110 cat confdefs.h >>conftest.$ac_ext
34111 cat >>conftest.$ac_ext <<_ACEOF
34112 /* end confdefs.h. */
34113
34114
34115 #include <linux/blkdev.h>
34116
34117 int
34118 main (void)
34119 {
34120
34121 struct block_device *bdev = NULL;
34122 bdev_logical_block_size(bdev);
34123
34124 ;
34125 return 0;
34126 }
34127
34128 _ACEOF
34129
34130
34131
34132 cat - <<_ACEOF >conftest.h
34133
34134 _ACEOF
34135
34136
34137 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34138 echo "obj-m := conftest.o" >build/Makefile
34139 modpost_flag=''
34140 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34141 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34143 (eval $ac_try) 2>&5
34144 ac_status=$?
34145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34146 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34148 (eval $ac_try) 2>&5
34149 ac_status=$?
34150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34151 (exit $ac_status); }; }; then
34152
34153 { $as_echo "$as_me:$LINENO: result: yes" >&5
34154 $as_echo "yes" >&6; }
34155
34156 cat >>confdefs.h <<\_ACEOF
34157 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
34158 _ACEOF
34159
34160
34161 else
34162 $as_echo "$as_me: failed program was:" >&5
34163 sed 's/^/| /' conftest.$ac_ext >&5
34164
34165 { $as_echo "$as_me:$LINENO: result: no" >&5
34166 $as_echo "no" >&6; }
34167
34168
34169
34170 fi
34171
34172 rm -Rf build
34173
34174
34175 EXTRA_KCFLAGS="$tmp_flags"
34176
34177
34178 { $as_echo "$as_me:$LINENO: checking whether bdev_physical_block_size() is available" >&5
34179 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
34180 tmp_flags="$EXTRA_KCFLAGS"
34181 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
34182
34183
34184 cat confdefs.h - <<_ACEOF >conftest.c
34185 /* confdefs.h. */
34186 _ACEOF
34187 cat confdefs.h >>conftest.$ac_ext
34188 cat >>conftest.$ac_ext <<_ACEOF
34189 /* end confdefs.h. */
34190
34191
34192 #include <linux/blkdev.h>
34193
34194 int
34195 main (void)
34196 {
34197
34198 struct block_device *bdev = NULL;
34199 bdev_physical_block_size(bdev);
34200
34201 ;
34202 return 0;
34203 }
34204
34205 _ACEOF
34206
34207
34208
34209 cat - <<_ACEOF >conftest.h
34210
34211 _ACEOF
34212
34213
34214 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34215 echo "obj-m := conftest.o" >build/Makefile
34216 modpost_flag=''
34217 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34218 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34220 (eval $ac_try) 2>&5
34221 ac_status=$?
34222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34223 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34225 (eval $ac_try) 2>&5
34226 ac_status=$?
34227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228 (exit $ac_status); }; }; then
34229
34230 { $as_echo "$as_me:$LINENO: result: yes" >&5
34231 $as_echo "yes" >&6; }
34232
34233 cat >>confdefs.h <<\_ACEOF
34234 #define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1
34235 _ACEOF
34236
34237
34238 else
34239 $as_echo "$as_me: failed program was:" >&5
34240 sed 's/^/| /' conftest.$ac_ext >&5
34241
34242 { $as_echo "$as_me:$LINENO: result: no" >&5
34243 $as_echo "no" >&6; }
34244
34245
34246
34247 fi
34248
34249 rm -Rf build
34250
34251
34252 EXTRA_KCFLAGS="$tmp_flags"
34253
34254
34255 { $as_echo "$as_me:$LINENO: checking whether bio has bi_iter" >&5
34256 $as_echo_n "checking whether bio has bi_iter... " >&6; }
34257
34258
34259 cat confdefs.h - <<_ACEOF >conftest.c
34260 /* confdefs.h. */
34261 _ACEOF
34262 cat confdefs.h >>conftest.$ac_ext
34263 cat >>conftest.$ac_ext <<_ACEOF
34264 /* end confdefs.h. */
34265
34266
34267 #include <linux/bio.h>
34268
34269 int
34270 main (void)
34271 {
34272
34273 struct bio bio;
34274 bio.bi_iter.bi_sector = 0;
34275
34276 ;
34277 return 0;
34278 }
34279
34280 _ACEOF
34281
34282
34283
34284 cat - <<_ACEOF >conftest.h
34285
34286 _ACEOF
34287
34288
34289 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34290 echo "obj-m := conftest.o" >build/Makefile
34291 modpost_flag=''
34292 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34293 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34295 (eval $ac_try) 2>&5
34296 ac_status=$?
34297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34298 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34300 (eval $ac_try) 2>&5
34301 ac_status=$?
34302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34303 (exit $ac_status); }; }; then
34304
34305 { $as_echo "$as_me:$LINENO: result: yes" >&5
34306 $as_echo "yes" >&6; }
34307
34308 cat >>confdefs.h <<\_ACEOF
34309 #define HAVE_BIO_BVEC_ITER 1
34310 _ACEOF
34311
34312
34313 else
34314 $as_echo "$as_me: failed program was:" >&5
34315 sed 's/^/| /' conftest.$ac_ext >&5
34316
34317 { $as_echo "$as_me:$LINENO: result: no" >&5
34318 $as_echo "no" >&6; }
34319
34320
34321
34322 fi
34323
34324 rm -Rf build
34325
34326
34327
34328
34329 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
34330 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
34331
34332
34333 cat confdefs.h - <<_ACEOF >conftest.c
34334 /* confdefs.h. */
34335 _ACEOF
34336 cat confdefs.h >>conftest.$ac_ext
34337 cat >>conftest.$ac_ext <<_ACEOF
34338 /* end confdefs.h. */
34339
34340
34341 #include <linux/bio.h>
34342
34343 int
34344 main (void)
34345 {
34346
34347 int flags __attribute__ ((unused));
34348 flags = ((1 << BIO_RW_FAILFAST_DEV) |
34349 (1 << BIO_RW_FAILFAST_TRANSPORT) |
34350 (1 << BIO_RW_FAILFAST_DRIVER));
34351
34352 ;
34353 return 0;
34354 }
34355
34356 _ACEOF
34357
34358
34359
34360 cat - <<_ACEOF >conftest.h
34361
34362 _ACEOF
34363
34364
34365 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34366 echo "obj-m := conftest.o" >build/Makefile
34367 modpost_flag=''
34368 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34369 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34371 (eval $ac_try) 2>&5
34372 ac_status=$?
34373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34374 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34376 (eval $ac_try) 2>&5
34377 ac_status=$?
34378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34379 (exit $ac_status); }; }; then
34380
34381 { $as_echo "$as_me:$LINENO: result: yes" >&5
34382 $as_echo "yes" >&6; }
34383
34384 cat >>confdefs.h <<\_ACEOF
34385 #define HAVE_BIO_RW_FAILFAST_DTD 1
34386 _ACEOF
34387
34388
34389 else
34390 $as_echo "$as_me: failed program was:" >&5
34391 sed 's/^/| /' conftest.$ac_ext >&5
34392
34393 { $as_echo "$as_me:$LINENO: result: no" >&5
34394 $as_echo "no" >&6; }
34395
34396
34397
34398 fi
34399
34400 rm -Rf build
34401
34402
34403
34404
34405 { $as_echo "$as_me:$LINENO: checking whether bio_set_dev() exists" >&5
34406 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
34407
34408
34409 cat confdefs.h - <<_ACEOF >conftest.c
34410 /* confdefs.h. */
34411 _ACEOF
34412 cat confdefs.h >>conftest.$ac_ext
34413 cat >>conftest.$ac_ext <<_ACEOF
34414 /* end confdefs.h. */
34415
34416
34417 #include <linux/bio.h>
34418 #include <linux/fs.h>
34419
34420 int
34421 main (void)
34422 {
34423
34424 struct block_device *bdev = NULL;
34425 struct bio *bio = NULL;
34426 bio_set_dev(bio, bdev);
34427
34428 ;
34429 return 0;
34430 }
34431
34432 _ACEOF
34433
34434
34435
34436 cat - <<_ACEOF >conftest.h
34437
34438 _ACEOF
34439
34440
34441 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34442 echo "obj-m := conftest.o" >build/Makefile
34443 modpost_flag=''
34444 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34445 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34447 (eval $ac_try) 2>&5
34448 ac_status=$?
34449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34450 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34452 (eval $ac_try) 2>&5
34453 ac_status=$?
34454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34455 (exit $ac_status); }; }; then
34456
34457 { $as_echo "$as_me:$LINENO: result: yes" >&5
34458 $as_echo "yes" >&6; }
34459
34460 cat >>confdefs.h <<\_ACEOF
34461 #define HAVE_BIO_SET_DEV 1
34462 _ACEOF
34463
34464
34465 else
34466 $as_echo "$as_me: failed program was:" >&5
34467 sed 's/^/| /' conftest.$ac_ext >&5
34468
34469 { $as_echo "$as_me:$LINENO: result: no" >&5
34470 $as_echo "no" >&6; }
34471
34472
34473
34474 fi
34475
34476 rm -Rf build
34477
34478
34479
34480
34481 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
34482 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
34483
34484
34485 cat confdefs.h - <<_ACEOF >conftest.c
34486 /* confdefs.h. */
34487 _ACEOF
34488 cat confdefs.h >>conftest.$ac_ext
34489 cat >>conftest.$ac_ext <<_ACEOF
34490 /* end confdefs.h. */
34491
34492
34493 #include <linux/bio.h>
34494
34495 int
34496 main (void)
34497 {
34498
34499 int flags __attribute__ ((unused));
34500 flags = REQ_FAILFAST_MASK;
34501
34502 ;
34503 return 0;
34504 }
34505
34506 _ACEOF
34507
34508
34509
34510 cat - <<_ACEOF >conftest.h
34511
34512 _ACEOF
34513
34514
34515 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34516 echo "obj-m := conftest.o" >build/Makefile
34517 modpost_flag=''
34518 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34519 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34521 (eval $ac_try) 2>&5
34522 ac_status=$?
34523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34524 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34526 (eval $ac_try) 2>&5
34527 ac_status=$?
34528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34529 (exit $ac_status); }; }; then
34530
34531 { $as_echo "$as_me:$LINENO: result: yes" >&5
34532 $as_echo "yes" >&6; }
34533
34534 cat >>confdefs.h <<\_ACEOF
34535 #define HAVE_REQ_FAILFAST_MASK 1
34536 _ACEOF
34537
34538
34539 else
34540 $as_echo "$as_me: failed program was:" >&5
34541 sed 's/^/| /' conftest.$ac_ext >&5
34542
34543 { $as_echo "$as_me:$LINENO: result: no" >&5
34544 $as_echo "no" >&6; }
34545
34546
34547
34548 fi
34549
34550 rm -Rf build
34551
34552
34553
34554
34555 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_DISCARD is defined" >&5
34556 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
34557
34558
34559 cat confdefs.h - <<_ACEOF >conftest.c
34560 /* confdefs.h. */
34561 _ACEOF
34562 cat confdefs.h >>conftest.$ac_ext
34563 cat >>conftest.$ac_ext <<_ACEOF
34564 /* end confdefs.h. */
34565
34566
34567 #include <linux/blk_types.h>
34568
34569 int
34570 main (void)
34571 {
34572
34573 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
34574
34575 ;
34576 return 0;
34577 }
34578
34579 _ACEOF
34580
34581
34582
34583 cat - <<_ACEOF >conftest.h
34584
34585 _ACEOF
34586
34587
34588 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34589 echo "obj-m := conftest.o" >build/Makefile
34590 modpost_flag=''
34591 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34592 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34594 (eval $ac_try) 2>&5
34595 ac_status=$?
34596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34597 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34599 (eval $ac_try) 2>&5
34600 ac_status=$?
34601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34602 (exit $ac_status); }; }; then
34603
34604 { $as_echo "$as_me:$LINENO: result: yes" >&5
34605 $as_echo "yes" >&6; }
34606
34607 cat >>confdefs.h <<\_ACEOF
34608 #define HAVE_REQ_OP_DISCARD 1
34609 _ACEOF
34610
34611
34612 else
34613 $as_echo "$as_me: failed program was:" >&5
34614 sed 's/^/| /' conftest.$ac_ext >&5
34615
34616 { $as_echo "$as_me:$LINENO: result: no" >&5
34617 $as_echo "no" >&6; }
34618
34619
34620
34621 fi
34622
34623 rm -Rf build
34624
34625
34626
34627
34628 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_SECURE_ERASE is defined" >&5
34629 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
34630
34631
34632 cat confdefs.h - <<_ACEOF >conftest.c
34633 /* confdefs.h. */
34634 _ACEOF
34635 cat confdefs.h >>conftest.$ac_ext
34636 cat >>conftest.$ac_ext <<_ACEOF
34637 /* end confdefs.h. */
34638
34639
34640 #include <linux/blk_types.h>
34641
34642 int
34643 main (void)
34644 {
34645
34646 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
34647
34648 ;
34649 return 0;
34650 }
34651
34652 _ACEOF
34653
34654
34655
34656 cat - <<_ACEOF >conftest.h
34657
34658 _ACEOF
34659
34660
34661 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34662 echo "obj-m := conftest.o" >build/Makefile
34663 modpost_flag=''
34664 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34665 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34667 (eval $ac_try) 2>&5
34668 ac_status=$?
34669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34670 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34672 (eval $ac_try) 2>&5
34673 ac_status=$?
34674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34675 (exit $ac_status); }; }; then
34676
34677 { $as_echo "$as_me:$LINENO: result: yes" >&5
34678 $as_echo "yes" >&6; }
34679
34680 cat >>confdefs.h <<\_ACEOF
34681 #define HAVE_REQ_OP_SECURE_ERASE 1
34682 _ACEOF
34683
34684
34685 else
34686 $as_echo "$as_me: failed program was:" >&5
34687 sed 's/^/| /' conftest.$ac_ext >&5
34688
34689 { $as_echo "$as_me:$LINENO: result: no" >&5
34690 $as_echo "no" >&6; }
34691
34692
34693
34694 fi
34695
34696 rm -Rf build
34697
34698
34699
34700
34701 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_FLUSH is defined" >&5
34702 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
34703
34704
34705 cat confdefs.h - <<_ACEOF >conftest.c
34706 /* confdefs.h. */
34707 _ACEOF
34708 cat confdefs.h >>conftest.$ac_ext
34709 cat >>conftest.$ac_ext <<_ACEOF
34710 /* end confdefs.h. */
34711
34712
34713 #include <linux/blk_types.h>
34714
34715 int
34716 main (void)
34717 {
34718
34719 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
34720
34721 ;
34722 return 0;
34723 }
34724
34725 _ACEOF
34726
34727
34728
34729 cat - <<_ACEOF >conftest.h
34730
34731 _ACEOF
34732
34733
34734 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34735 echo "obj-m := conftest.o" >build/Makefile
34736 modpost_flag=''
34737 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34738 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34740 (eval $ac_try) 2>&5
34741 ac_status=$?
34742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34743 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34745 (eval $ac_try) 2>&5
34746 ac_status=$?
34747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34748 (exit $ac_status); }; }; then
34749
34750 { $as_echo "$as_me:$LINENO: result: yes" >&5
34751 $as_echo "yes" >&6; }
34752
34753 cat >>confdefs.h <<\_ACEOF
34754 #define HAVE_REQ_OP_FLUSH 1
34755 _ACEOF
34756
34757
34758 else
34759 $as_echo "$as_me: failed program was:" >&5
34760 sed 's/^/| /' conftest.$ac_ext >&5
34761
34762 { $as_echo "$as_me:$LINENO: result: no" >&5
34763 $as_echo "no" >&6; }
34764
34765
34766
34767 fi
34768
34769 rm -Rf build
34770
34771
34772
34773
34774 { $as_echo "$as_me:$LINENO: checking whether bio->bi_opf is defined" >&5
34775 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
34776
34777
34778 cat confdefs.h - <<_ACEOF >conftest.c
34779 /* confdefs.h. */
34780 _ACEOF
34781 cat confdefs.h >>conftest.$ac_ext
34782 cat >>conftest.$ac_ext <<_ACEOF
34783 /* end confdefs.h. */
34784
34785
34786 #include <linux/bio.h>
34787
34788 int
34789 main (void)
34790 {
34791
34792 struct bio bio __attribute__ ((unused));
34793 bio.bi_opf = 0;
34794
34795 ;
34796 return 0;
34797 }
34798
34799 _ACEOF
34800
34801
34802
34803 cat - <<_ACEOF >conftest.h
34804
34805 _ACEOF
34806
34807
34808 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34809 echo "obj-m := conftest.o" >build/Makefile
34810 modpost_flag=''
34811 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34812 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34814 (eval $ac_try) 2>&5
34815 ac_status=$?
34816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34817 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34819 (eval $ac_try) 2>&5
34820 ac_status=$?
34821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34822 (exit $ac_status); }; }; then
34823
34824 { $as_echo "$as_me:$LINENO: result: yes" >&5
34825 $as_echo "yes" >&6; }
34826
34827 cat >>confdefs.h <<\_ACEOF
34828 #define HAVE_BIO_BI_OPF 1
34829 _ACEOF
34830
34831
34832 else
34833 $as_echo "$as_me: failed program was:" >&5
34834 sed 's/^/| /' conftest.$ac_ext >&5
34835
34836 { $as_echo "$as_me:$LINENO: result: no" >&5
34837 $as_echo "no" >&6; }
34838
34839
34840
34841 fi
34842
34843 rm -Rf build
34844
34845
34846
34847
34848 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 1 arg" >&5
34849 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
34850
34851
34852 cat confdefs.h - <<_ACEOF >conftest.c
34853 /* confdefs.h. */
34854 _ACEOF
34855 cat confdefs.h >>conftest.$ac_ext
34856 cat >>conftest.$ac_ext <<_ACEOF
34857 /* end confdefs.h. */
34858
34859
34860 #include <linux/bio.h>
34861
34862 void wanted_end_io(struct bio *bio) { return; }
34863
34864 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
34865
34866 int
34867 main (void)
34868 {
34869
34870
34871 ;
34872 return 0;
34873 }
34874
34875 _ACEOF
34876
34877
34878
34879 cat - <<_ACEOF >conftest.h
34880
34881 _ACEOF
34882
34883
34884 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34885 echo "obj-m := conftest.o" >build/Makefile
34886 modpost_flag=''
34887 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34888 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34890 (eval $ac_try) 2>&5
34891 ac_status=$?
34892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34893 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34895 (eval $ac_try) 2>&5
34896 ac_status=$?
34897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34898 (exit $ac_status); }; }; then
34899
34900 { $as_echo "$as_me:$LINENO: result: yes" >&5
34901 $as_echo "yes" >&6; }
34902
34903 cat >>confdefs.h <<\_ACEOF
34904 #define HAVE_1ARG_BIO_END_IO_T 1
34905 _ACEOF
34906
34907
34908 else
34909 $as_echo "$as_me: failed program was:" >&5
34910 sed 's/^/| /' conftest.$ac_ext >&5
34911
34912 { $as_echo "$as_me:$LINENO: result: no" >&5
34913 $as_echo "no" >&6; }
34914
34915
34916
34917 fi
34918
34919 rm -Rf build
34920
34921
34922
34923
34924 { $as_echo "$as_me:$LINENO: checking whether bio->bi_status exists" >&5
34925 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
34926
34927
34928 cat confdefs.h - <<_ACEOF >conftest.c
34929 /* confdefs.h. */
34930 _ACEOF
34931 cat confdefs.h >>conftest.$ac_ext
34932 cat >>conftest.$ac_ext <<_ACEOF
34933 /* end confdefs.h. */
34934
34935
34936 #include <linux/bio.h>
34937
34938 int
34939 main (void)
34940 {
34941
34942 struct bio bio __attribute__ ((unused));
34943 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
34944
34945 bio.bi_status = status;
34946
34947 ;
34948 return 0;
34949 }
34950
34951 _ACEOF
34952
34953
34954
34955 cat - <<_ACEOF >conftest.h
34956
34957 _ACEOF
34958
34959
34960 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34961 echo "obj-m := conftest.o" >build/Makefile
34962 modpost_flag=''
34963 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34964 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34966 (eval $ac_try) 2>&5
34967 ac_status=$?
34968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34969 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34971 (eval $ac_try) 2>&5
34972 ac_status=$?
34973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34974 (exit $ac_status); }; }; then
34975
34976 { $as_echo "$as_me:$LINENO: result: yes" >&5
34977 $as_echo "yes" >&6; }
34978
34979 cat >>confdefs.h <<\_ACEOF
34980 #define HAVE_BIO_BI_STATUS 1
34981 _ACEOF
34982
34983
34984 else
34985 $as_echo "$as_me: failed program was:" >&5
34986 sed 's/^/| /' conftest.$ac_ext >&5
34987
34988 { $as_echo "$as_me:$LINENO: result: no" >&5
34989 $as_echo "no" >&6; }
34990
34991
34992
34993 fi
34994
34995 rm -Rf build
34996
34997
34998
34999
35000 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_BARRIER is defined" >&5
35001 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
35002
35003
35004 cat confdefs.h - <<_ACEOF >conftest.c
35005 /* confdefs.h. */
35006 _ACEOF
35007 cat confdefs.h >>conftest.$ac_ext
35008 cat >>conftest.$ac_ext <<_ACEOF
35009 /* end confdefs.h. */
35010
35011
35012 #include <linux/bio.h>
35013
35014 int
35015 main (void)
35016 {
35017
35018 int flags __attribute__ ((unused));
35019 flags = BIO_RW_BARRIER;
35020
35021 ;
35022 return 0;
35023 }
35024
35025 _ACEOF
35026
35027
35028
35029 cat - <<_ACEOF >conftest.h
35030
35031 _ACEOF
35032
35033
35034 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35035 echo "obj-m := conftest.o" >build/Makefile
35036 modpost_flag=''
35037 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35038 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35040 (eval $ac_try) 2>&5
35041 ac_status=$?
35042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35043 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35045 (eval $ac_try) 2>&5
35046 ac_status=$?
35047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35048 (exit $ac_status); }; }; then
35049
35050 { $as_echo "$as_me:$LINENO: result: yes" >&5
35051 $as_echo "yes" >&6; }
35052
35053 cat >>confdefs.h <<\_ACEOF
35054 #define HAVE_BIO_RW_BARRIER 1
35055 _ACEOF
35056
35057
35058 else
35059 $as_echo "$as_me: failed program was:" >&5
35060 sed 's/^/| /' conftest.$ac_ext >&5
35061
35062 { $as_echo "$as_me:$LINENO: result: no" >&5
35063 $as_echo "no" >&6; }
35064
35065
35066
35067 fi
35068
35069 rm -Rf build
35070
35071
35072
35073
35074 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_DISCARD is defined" >&5
35075 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
35076
35077
35078 cat confdefs.h - <<_ACEOF >conftest.c
35079 /* confdefs.h. */
35080 _ACEOF
35081 cat confdefs.h >>conftest.$ac_ext
35082 cat >>conftest.$ac_ext <<_ACEOF
35083 /* end confdefs.h. */
35084
35085
35086 #include <linux/bio.h>
35087
35088 int
35089 main (void)
35090 {
35091
35092 int flags __attribute__ ((unused));
35093 flags = BIO_RW_DISCARD;
35094
35095 ;
35096 return 0;
35097 }
35098
35099 _ACEOF
35100
35101
35102
35103 cat - <<_ACEOF >conftest.h
35104
35105 _ACEOF
35106
35107
35108 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35109 echo "obj-m := conftest.o" >build/Makefile
35110 modpost_flag=''
35111 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35112 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35114 (eval $ac_try) 2>&5
35115 ac_status=$?
35116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35117 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35119 (eval $ac_try) 2>&5
35120 ac_status=$?
35121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35122 (exit $ac_status); }; }; then
35123
35124 { $as_echo "$as_me:$LINENO: result: yes" >&5
35125 $as_echo "yes" >&6; }
35126
35127 cat >>confdefs.h <<\_ACEOF
35128 #define HAVE_BIO_RW_DISCARD 1
35129 _ACEOF
35130
35131
35132 else
35133 $as_echo "$as_me: failed program was:" >&5
35134 sed 's/^/| /' conftest.$ac_ext >&5
35135
35136 { $as_echo "$as_me:$LINENO: result: no" >&5
35137 $as_echo "no" >&6; }
35138
35139
35140
35141 fi
35142
35143 rm -Rf build
35144
35145
35146
35147
35148 { $as_echo "$as_me:$LINENO: checking whether blk_queue bdi is dynamic" >&5
35149 $as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
35150
35151
35152 cat confdefs.h - <<_ACEOF >conftest.c
35153 /* confdefs.h. */
35154 _ACEOF
35155 cat confdefs.h >>conftest.$ac_ext
35156 cat >>conftest.$ac_ext <<_ACEOF
35157 /* end confdefs.h. */
35158
35159
35160 #include <linux/blkdev.h>
35161
35162 int
35163 main (void)
35164 {
35165
35166 struct request_queue q;
35167 struct backing_dev_info bdi;
35168 q.backing_dev_info = &bdi;
35169
35170 ;
35171 return 0;
35172 }
35173
35174 _ACEOF
35175
35176
35177
35178 cat - <<_ACEOF >conftest.h
35179
35180 _ACEOF
35181
35182
35183 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35184 echo "obj-m := conftest.o" >build/Makefile
35185 modpost_flag=''
35186 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35187 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35189 (eval $ac_try) 2>&5
35190 ac_status=$?
35191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35192 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35194 (eval $ac_try) 2>&5
35195 ac_status=$?
35196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35197 (exit $ac_status); }; }; then
35198
35199 { $as_echo "$as_me:$LINENO: result: yes" >&5
35200 $as_echo "yes" >&6; }
35201
35202 cat >>confdefs.h <<\_ACEOF
35203 #define HAVE_BLK_QUEUE_BDI_DYNAMIC 1
35204 _ACEOF
35205
35206
35207 else
35208 $as_echo "$as_me: failed program was:" >&5
35209 sed 's/^/| /' conftest.$ac_ext >&5
35210
35211 { $as_echo "$as_me:$LINENO: result: no" >&5
35212 $as_echo "no" >&6; }
35213
35214
35215
35216 fi
35217
35218 rm -Rf build
35219
35220
35221
35222
35223 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
35224 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
35225 tmp_flags="$EXTRA_KCFLAGS"
35226 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
35227
35228
35229 cat confdefs.h - <<_ACEOF >conftest.c
35230 /* confdefs.h. */
35231 _ACEOF
35232 cat confdefs.h >>conftest.$ac_ext
35233 cat >>conftest.$ac_ext <<_ACEOF
35234 /* end confdefs.h. */
35235
35236
35237 #include <linux/blkdev.h>
35238
35239 int
35240 main (void)
35241 {
35242
35243 struct request_queue *q = NULL;
35244 (void) blk_queue_flush(q, REQ_FLUSH);
35245
35246 ;
35247 return 0;
35248 }
35249
35250 _ACEOF
35251
35252
35253
35254 cat - <<_ACEOF >conftest.h
35255
35256 _ACEOF
35257
35258
35259 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35260 echo "obj-m := conftest.o" >build/Makefile
35261 modpost_flag=''
35262 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35263 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35265 (eval $ac_try) 2>&5
35266 ac_status=$?
35267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35268 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35270 (eval $ac_try) 2>&5
35271 ac_status=$?
35272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35273 (exit $ac_status); }; }; then
35274
35275 { $as_echo "$as_me:$LINENO: result: yes" >&5
35276 $as_echo "yes" >&6; }
35277
35278 cat >>confdefs.h <<\_ACEOF
35279 #define HAVE_BLK_QUEUE_FLUSH 1
35280 _ACEOF
35281
35282
35283 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
35284 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
35285
35286
35287 cat confdefs.h - <<_ACEOF >conftest.c
35288 /* confdefs.h. */
35289 _ACEOF
35290 cat confdefs.h >>conftest.$ac_ext
35291 cat >>conftest.$ac_ext <<_ACEOF
35292 /* end confdefs.h. */
35293
35294
35295 #include <linux/module.h>
35296 #include <linux/blkdev.h>
35297
35298 MODULE_LICENSE("$ZFS_META_LICENSE");
35299
35300 int
35301 main (void)
35302 {
35303
35304 struct request_queue *q = NULL;
35305 (void) blk_queue_flush(q, REQ_FLUSH);
35306
35307 ;
35308 return 0;
35309 }
35310
35311 _ACEOF
35312
35313
35314
35315 cat - <<_ACEOF >conftest.h
35316
35317 _ACEOF
35318
35319
35320 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35321 echo "obj-m := conftest.o" >build/Makefile
35322 modpost_flag=''
35323 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35324 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35326 (eval $ac_try) 2>&5
35327 ac_status=$?
35328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35329 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35331 (eval $ac_try) 2>&5
35332 ac_status=$?
35333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35334 (exit $ac_status); }; }; then
35335
35336 { $as_echo "$as_me:$LINENO: result: no" >&5
35337 $as_echo "no" >&6; }
35338
35339 else
35340 $as_echo "$as_me: failed program was:" >&5
35341 sed 's/^/| /' conftest.$ac_ext >&5
35342
35343 { $as_echo "$as_me:$LINENO: result: yes" >&5
35344 $as_echo "yes" >&6; }
35345
35346 cat >>confdefs.h <<\_ACEOF
35347 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
35348 _ACEOF
35349
35350
35351
35352
35353 fi
35354
35355 rm -Rf build
35356
35357
35358
35359 else
35360 $as_echo "$as_me: failed program was:" >&5
35361 sed 's/^/| /' conftest.$ac_ext >&5
35362
35363 { $as_echo "$as_me:$LINENO: result: no" >&5
35364 $as_echo "no" >&6; }
35365
35366
35367
35368 fi
35369
35370 rm -Rf build
35371
35372
35373
35374 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() exists" >&5
35375 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
35376
35377
35378 cat confdefs.h - <<_ACEOF >conftest.c
35379 /* confdefs.h. */
35380 _ACEOF
35381 cat confdefs.h >>conftest.$ac_ext
35382 cat >>conftest.$ac_ext <<_ACEOF
35383 /* end confdefs.h. */
35384
35385
35386 #include <linux/kernel.h>
35387 #include <linux/blkdev.h>
35388
35389
35390 int
35391 main (void)
35392 {
35393
35394 struct request_queue *q = NULL;
35395 blk_queue_write_cache(q, true, true);
35396
35397 ;
35398 return 0;
35399 }
35400
35401 _ACEOF
35402
35403
35404
35405 cat - <<_ACEOF >conftest.h
35406
35407 _ACEOF
35408
35409
35410 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35411 echo "obj-m := conftest.o" >build/Makefile
35412 modpost_flag=''
35413 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35414 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35416 (eval $ac_try) 2>&5
35417 ac_status=$?
35418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35419 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35421 (eval $ac_try) 2>&5
35422 ac_status=$?
35423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35424 (exit $ac_status); }; }; then
35425
35426 { $as_echo "$as_me:$LINENO: result: yes" >&5
35427 $as_echo "yes" >&6; }
35428
35429 cat >>confdefs.h <<\_ACEOF
35430 #define HAVE_BLK_QUEUE_WRITE_CACHE 1
35431 _ACEOF
35432
35433
35434 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() is GPL-only" >&5
35435 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
35436
35437
35438 cat confdefs.h - <<_ACEOF >conftest.c
35439 /* confdefs.h. */
35440 _ACEOF
35441 cat confdefs.h >>conftest.$ac_ext
35442 cat >>conftest.$ac_ext <<_ACEOF
35443 /* end confdefs.h. */
35444
35445
35446 #include <linux/kernel.h>
35447 #include <linux/module.h>
35448 #include <linux/blkdev.h>
35449
35450 MODULE_LICENSE("$ZFS_META_LICENSE");
35451
35452 int
35453 main (void)
35454 {
35455
35456 struct request_queue *q = NULL;
35457 blk_queue_write_cache(q, true, true);
35458
35459 ;
35460 return 0;
35461 }
35462
35463 _ACEOF
35464
35465
35466
35467 cat - <<_ACEOF >conftest.h
35468
35469 _ACEOF
35470
35471
35472 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35473 echo "obj-m := conftest.o" >build/Makefile
35474 modpost_flag=''
35475 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35476 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35478 (eval $ac_try) 2>&5
35479 ac_status=$?
35480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35481 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35483 (eval $ac_try) 2>&5
35484 ac_status=$?
35485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486 (exit $ac_status); }; }; then
35487
35488 { $as_echo "$as_me:$LINENO: result: no" >&5
35489 $as_echo "no" >&6; }
35490
35491 else
35492 $as_echo "$as_me: failed program was:" >&5
35493 sed 's/^/| /' conftest.$ac_ext >&5
35494
35495 { $as_echo "$as_me:$LINENO: result: yes" >&5
35496 $as_echo "yes" >&6; }
35497
35498 cat >>confdefs.h <<\_ACEOF
35499 #define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1
35500 _ACEOF
35501
35502
35503
35504
35505 fi
35506
35507 rm -Rf build
35508
35509
35510
35511 else
35512 $as_echo "$as_me: failed program was:" >&5
35513 sed 's/^/| /' conftest.$ac_ext >&5
35514
35515 { $as_echo "$as_me:$LINENO: result: no" >&5
35516 $as_echo "no" >&6; }
35517
35518
35519
35520 fi
35521
35522 rm -Rf build
35523
35524
35525
35526 EXTRA_KCFLAGS="$tmp_flags"
35527
35528
35529 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
35530 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
35531 tmp_flags="$EXTRA_KCFLAGS"
35532 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
35533
35534
35535 cat confdefs.h - <<_ACEOF >conftest.c
35536 /* confdefs.h. */
35537 _ACEOF
35538 cat confdefs.h >>conftest.$ac_ext
35539 cat >>conftest.$ac_ext <<_ACEOF
35540 /* end confdefs.h. */
35541
35542
35543 #include <linux/blkdev.h>
35544
35545 int
35546 main (void)
35547 {
35548
35549 struct request_queue *q = NULL;
35550 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
35551
35552 ;
35553 return 0;
35554 }
35555
35556 _ACEOF
35557
35558
35559
35560 cat - <<_ACEOF >conftest.h
35561
35562 _ACEOF
35563
35564
35565 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35566 echo "obj-m := conftest.o" >build/Makefile
35567 modpost_flag=''
35568 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35569 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35571 (eval $ac_try) 2>&5
35572 ac_status=$?
35573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35574 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35576 (eval $ac_try) 2>&5
35577 ac_status=$?
35578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35579 (exit $ac_status); }; }; then
35580
35581 { $as_echo "$as_me:$LINENO: result: yes" >&5
35582 $as_echo "yes" >&6; }
35583
35584 cat >>confdefs.h <<\_ACEOF
35585 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
35586 _ACEOF
35587
35588
35589 else
35590 $as_echo "$as_me: failed program was:" >&5
35591 sed 's/^/| /' conftest.$ac_ext >&5
35592
35593 { $as_echo "$as_me:$LINENO: result: no" >&5
35594 $as_echo "no" >&6; }
35595
35596
35597
35598 fi
35599
35600 rm -Rf build
35601
35602
35603 EXTRA_KCFLAGS="$tmp_flags"
35604
35605
35606 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
35607 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
35608 tmp_flags="$EXTRA_KCFLAGS"
35609 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
35610
35611
35612 cat confdefs.h - <<_ACEOF >conftest.c
35613 /* confdefs.h. */
35614 _ACEOF
35615 cat confdefs.h >>conftest.$ac_ext
35616 cat >>conftest.$ac_ext <<_ACEOF
35617 /* end confdefs.h. */
35618
35619
35620 #include <linux/blkdev.h>
35621
35622 int
35623 main (void)
35624 {
35625
35626 struct request_queue *q = NULL;
35627 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
35628
35629 ;
35630 return 0;
35631 }
35632
35633 _ACEOF
35634
35635
35636
35637 cat - <<_ACEOF >conftest.h
35638
35639 _ACEOF
35640
35641
35642 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35643 echo "obj-m := conftest.o" >build/Makefile
35644 modpost_flag=''
35645 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35646 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35648 (eval $ac_try) 2>&5
35649 ac_status=$?
35650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35653 (eval $ac_try) 2>&5
35654 ac_status=$?
35655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35656 (exit $ac_status); }; }; then
35657
35658 { $as_echo "$as_me:$LINENO: result: yes" >&5
35659 $as_echo "yes" >&6; }
35660
35661 cat >>confdefs.h <<\_ACEOF
35662 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
35663 _ACEOF
35664
35665
35666 else
35667 $as_echo "$as_me: failed program was:" >&5
35668 sed 's/^/| /' conftest.$ac_ext >&5
35669
35670 { $as_echo "$as_me:$LINENO: result: no" >&5
35671 $as_echo "no" >&6; }
35672
35673
35674
35675 fi
35676
35677 rm -Rf build
35678
35679
35680 EXTRA_KCFLAGS="$tmp_flags"
35681
35682
35683 { $as_echo "$as_me:$LINENO: checking whether the BIO_RW_UNPLUG enum is available" >&5
35684 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
35685 tmp_flags="$EXTRA_KCFLAGS"
35686 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
35687
35688
35689 cat confdefs.h - <<_ACEOF >conftest.c
35690 /* confdefs.h. */
35691 _ACEOF
35692 cat confdefs.h >>conftest.$ac_ext
35693 cat >>conftest.$ac_ext <<_ACEOF
35694 /* end confdefs.h. */
35695
35696
35697 #include <linux/blkdev.h>
35698
35699 int
35700 main (void)
35701 {
35702
35703 extern enum bio_rw_flags rw;
35704
35705 rw = BIO_RW_UNPLUG;
35706
35707 ;
35708 return 0;
35709 }
35710
35711 _ACEOF
35712
35713
35714
35715 cat - <<_ACEOF >conftest.h
35716
35717 _ACEOF
35718
35719
35720 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35721 echo "obj-m := conftest.o" >build/Makefile
35722 modpost_flag=''
35723 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35724 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35726 (eval $ac_try) 2>&5
35727 ac_status=$?
35728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35729 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35731 (eval $ac_try) 2>&5
35732 ac_status=$?
35733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35734 (exit $ac_status); }; }; then
35735
35736 { $as_echo "$as_me:$LINENO: result: yes" >&5
35737 $as_echo "yes" >&6; }
35738
35739 cat >>confdefs.h <<\_ACEOF
35740 #define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1
35741 _ACEOF
35742
35743
35744 else
35745 $as_echo "$as_me: failed program was:" >&5
35746 sed 's/^/| /' conftest.$ac_ext >&5
35747
35748 { $as_echo "$as_me:$LINENO: result: no" >&5
35749 $as_echo "no" >&6; }
35750
35751
35752
35753 fi
35754
35755 rm -Rf build
35756
35757
35758 EXTRA_KCFLAGS="$tmp_flags"
35759
35760
35761 { $as_echo "$as_me:$LINENO: checking whether struct blk_plug is available" >&5
35762 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
35763 tmp_flags="$EXTRA_KCFLAGS"
35764 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
35765
35766
35767 cat confdefs.h - <<_ACEOF >conftest.c
35768 /* confdefs.h. */
35769 _ACEOF
35770 cat confdefs.h >>conftest.$ac_ext
35771 cat >>conftest.$ac_ext <<_ACEOF
35772 /* end confdefs.h. */
35773
35774
35775 #include <linux/blkdev.h>
35776
35777 int
35778 main (void)
35779 {
35780
35781 struct blk_plug plug;
35782
35783 blk_start_plug(&plug);
35784 blk_finish_plug(&plug);
35785
35786 ;
35787 return 0;
35788 }
35789
35790 _ACEOF
35791
35792
35793
35794 cat - <<_ACEOF >conftest.h
35795
35796 _ACEOF
35797
35798
35799 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35800 echo "obj-m := conftest.o" >build/Makefile
35801 modpost_flag=''
35802 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35803 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35805 (eval $ac_try) 2>&5
35806 ac_status=$?
35807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35808 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35810 (eval $ac_try) 2>&5
35811 ac_status=$?
35812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35813 (exit $ac_status); }; }; then
35814
35815 { $as_echo "$as_me:$LINENO: result: yes" >&5
35816 $as_echo "yes" >&6; }
35817
35818 cat >>confdefs.h <<\_ACEOF
35819 #define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1
35820 _ACEOF
35821
35822
35823 else
35824 $as_echo "$as_me: failed program was:" >&5
35825 sed 's/^/| /' conftest.$ac_ext >&5
35826
35827 { $as_echo "$as_me:$LINENO: result: no" >&5
35828 $as_echo "no" >&6; }
35829
35830
35831
35832 fi
35833
35834 rm -Rf build
35835
35836
35837 EXTRA_KCFLAGS="$tmp_flags"
35838
35839
35840 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
35841 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
35842 tmp_flags="$EXTRA_KCFLAGS"
35843 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
35844
35845
35846 cat confdefs.h - <<_ACEOF >conftest.c
35847 /* confdefs.h. */
35848 _ACEOF
35849 cat confdefs.h >>conftest.$ac_ext
35850 cat >>conftest.$ac_ext <<_ACEOF
35851 /* end confdefs.h. */
35852
35853
35854 #include <linux/blkdev.h>
35855
35856 int
35857 main (void)
35858 {
35859
35860 struct gendisk *disk = NULL;
35861 (void) get_disk_ro(disk);
35862
35863 ;
35864 return 0;
35865 }
35866
35867 _ACEOF
35868
35869
35870
35871 cat - <<_ACEOF >conftest.h
35872
35873 _ACEOF
35874
35875
35876 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35877 echo "obj-m := conftest.o" >build/Makefile
35878 modpost_flag=''
35879 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35880 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35882 (eval $ac_try) 2>&5
35883 ac_status=$?
35884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35885 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35887 (eval $ac_try) 2>&5
35888 ac_status=$?
35889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35890 (exit $ac_status); }; }; then
35891
35892 { $as_echo "$as_me:$LINENO: result: yes" >&5
35893 $as_echo "yes" >&6; }
35894
35895 cat >>confdefs.h <<\_ACEOF
35896 #define HAVE_GET_DISK_RO 1
35897 _ACEOF
35898
35899
35900 else
35901 $as_echo "$as_me: failed program was:" >&5
35902 sed 's/^/| /' conftest.$ac_ext >&5
35903
35904 { $as_echo "$as_me:$LINENO: result: no" >&5
35905 $as_echo "no" >&6; }
35906
35907
35908
35909 fi
35910
35911 rm -Rf build
35912
35913
35914 EXTRA_KCFLAGS="$tmp_flags"
35915
35916 { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
35917 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
35918
35919
35920
35921 cat confdefs.h - <<_ACEOF >conftest.c
35922 /* confdefs.h. */
35923 _ACEOF
35924 cat confdefs.h >>conftest.$ac_ext
35925 cat >>conftest.$ac_ext <<_ACEOF
35926 /* end confdefs.h. */
35927
35928
35929 #include <linux/genhd.h>
35930
35931 int
35932 main (void)
35933 {
35934
35935 get_gendisk(0, NULL);
35936
35937 ;
35938 return 0;
35939 }
35940
35941 _ACEOF
35942
35943
35944
35945 cat - <<_ACEOF >conftest.h
35946
35947 _ACEOF
35948
35949
35950 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35951 echo "obj-m := conftest.o" >build/Makefile
35952 modpost_flag=''
35953 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35954 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35956 (eval $ac_try) 2>&5
35957 ac_status=$?
35958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35959 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35961 (eval $ac_try) 2>&5
35962 ac_status=$?
35963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35964 (exit $ac_status); }; }; then
35965 rc=0
35966 else
35967 $as_echo "$as_me: failed program was:" >&5
35968 sed 's/^/| /' conftest.$ac_ext >&5
35969 rc=1
35970
35971
35972 fi
35973
35974 rm -Rf build
35975
35976
35977 if test $rc -ne 0; then :
35978
35979 { $as_echo "$as_me:$LINENO: result: no" >&5
35980 $as_echo "no" >&6; }
35981
35982 else
35983 if test "x$enable_linux_builtin" != xyes; then
35984
35985 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
35986 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35987 rc=$?
35988 if test $rc -ne 0; then
35989 export=0
35990 for file in block/genhd.c; do
35991 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
35992 "$LINUX/$file" 2>/dev/null
35993 rc=$?
35994 if test $rc -eq 0; then
35995 export=1
35996 break;
35997 fi
35998 done
35999 if test $export -eq 0; then :
36000 rc=1
36001 else :
36002 rc=0
36003 fi
36004 else :
36005 rc=0
36006 fi
36007
36008 fi
36009 if test $rc -ne 0; then :
36010
36011 { $as_echo "$as_me:$LINENO: result: no" >&5
36012 $as_echo "no" >&6; }
36013
36014 else :
36015
36016 { $as_echo "$as_me:$LINENO: result: yes" >&5
36017 $as_echo "yes" >&6; }
36018
36019 cat >>confdefs.h <<\_ACEOF
36020 #define HAVE_GET_GENDISK 1
36021 _ACEOF
36022
36023
36024 fi
36025 fi
36026
36027
36028
36029 { $as_echo "$as_me:$LINENO: checking whether bio_set_op_attrs is available" >&5
36030 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
36031
36032
36033 cat confdefs.h - <<_ACEOF >conftest.c
36034 /* confdefs.h. */
36035 _ACEOF
36036 cat confdefs.h >>conftest.$ac_ext
36037 cat >>conftest.$ac_ext <<_ACEOF
36038 /* end confdefs.h. */
36039
36040
36041 #include <linux/bio.h>
36042
36043 int
36044 main (void)
36045 {
36046
36047 struct bio *bio __attribute__ ((unused)) = NULL;
36048
36049 bio_set_op_attrs(bio, 0, 0);
36050
36051 ;
36052 return 0;
36053 }
36054
36055 _ACEOF
36056
36057
36058
36059 cat - <<_ACEOF >conftest.h
36060
36061 _ACEOF
36062
36063
36064 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36065 echo "obj-m := conftest.o" >build/Makefile
36066 modpost_flag=''
36067 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36068 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36070 (eval $ac_try) 2>&5
36071 ac_status=$?
36072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36073 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36075 (eval $ac_try) 2>&5
36076 ac_status=$?
36077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36078 (exit $ac_status); }; }; then
36079
36080 { $as_echo "$as_me:$LINENO: result: yes" >&5
36081 $as_echo "yes" >&6; }
36082
36083 cat >>confdefs.h <<\_ACEOF
36084 #define HAVE_BIO_SET_OP_ATTRS 1
36085 _ACEOF
36086
36087
36088 else
36089 $as_echo "$as_me: failed program was:" >&5
36090 sed 's/^/| /' conftest.$ac_ext >&5
36091
36092 { $as_echo "$as_me:$LINENO: result: no" >&5
36093 $as_echo "no" >&6; }
36094
36095
36096
36097 fi
36098
36099 rm -Rf build
36100
36101
36102
36103
36104 { $as_echo "$as_me:$LINENO: checking whether generic_readlink is global" >&5
36105 $as_echo_n "checking whether generic_readlink is global... " >&6; }
36106
36107
36108 cat confdefs.h - <<_ACEOF >conftest.c
36109 /* confdefs.h. */
36110 _ACEOF
36111 cat confdefs.h >>conftest.$ac_ext
36112 cat >>conftest.$ac_ext <<_ACEOF
36113 /* end confdefs.h. */
36114
36115
36116 #include <linux/fs.h>
36117
36118 int
36119 main (void)
36120 {
36121
36122 int i __attribute__ ((unused));
36123
36124 i = generic_readlink(NULL, NULL, 0);
36125
36126 ;
36127 return 0;
36128 }
36129
36130 _ACEOF
36131
36132
36133
36134 cat - <<_ACEOF >conftest.h
36135
36136 _ACEOF
36137
36138
36139 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36140 echo "obj-m := conftest.o" >build/Makefile
36141 modpost_flag=''
36142 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36143 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36145 (eval $ac_try) 2>&5
36146 ac_status=$?
36147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36148 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36150 (eval $ac_try) 2>&5
36151 ac_status=$?
36152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36153 (exit $ac_status); }; }; then
36154
36155 { $as_echo "$as_me:$LINENO: result: yes" >&5
36156 $as_echo "yes" >&6; }
36157
36158 cat >>confdefs.h <<\_ACEOF
36159 #define HAVE_GENERIC_READLINK 1
36160 _ACEOF
36161
36162
36163 else
36164 $as_echo "$as_me: failed program was:" >&5
36165 sed 's/^/| /' conftest.$ac_ext >&5
36166
36167 { $as_echo "$as_me:$LINENO: result: no" >&5
36168 $as_echo "no" >&6; }
36169
36170
36171
36172 fi
36173
36174 rm -Rf build
36175
36176
36177
36178
36179 { $as_echo "$as_me:$LINENO: checking whether ql->discard_granularity is available" >&5
36180 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
36181
36182
36183 cat confdefs.h - <<_ACEOF >conftest.c
36184 /* confdefs.h. */
36185 _ACEOF
36186 cat confdefs.h >>conftest.$ac_ext
36187 cat >>conftest.$ac_ext <<_ACEOF
36188 /* end confdefs.h. */
36189
36190
36191 #include <linux/blkdev.h>
36192
36193 int
36194 main (void)
36195 {
36196
36197 struct queue_limits ql __attribute__ ((unused));
36198
36199 ql.discard_granularity = 0;
36200
36201 ;
36202 return 0;
36203 }
36204
36205 _ACEOF
36206
36207
36208
36209 cat - <<_ACEOF >conftest.h
36210
36211 _ACEOF
36212
36213
36214 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36215 echo "obj-m := conftest.o" >build/Makefile
36216 modpost_flag=''
36217 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36218 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36220 (eval $ac_try) 2>&5
36221 ac_status=$?
36222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36223 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36225 (eval $ac_try) 2>&5
36226 ac_status=$?
36227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36228 (exit $ac_status); }; }; then
36229
36230 { $as_echo "$as_me:$LINENO: result: yes" >&5
36231 $as_echo "yes" >&6; }
36232
36233 cat >>confdefs.h <<\_ACEOF
36234 #define HAVE_DISCARD_GRANULARITY 1
36235 _ACEOF
36236
36237
36238 else
36239 $as_echo "$as_me: failed program was:" >&5
36240 sed 's/^/| /' conftest.$ac_ext >&5
36241
36242 { $as_echo "$as_me:$LINENO: result: no" >&5
36243 $as_echo "no" >&6; }
36244
36245
36246
36247 fi
36248
36249 rm -Rf build
36250
36251
36252
36253
36254 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_handler" >&5
36255 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
36256
36257
36258 cat confdefs.h - <<_ACEOF >conftest.c
36259 /* confdefs.h. */
36260 _ACEOF
36261 cat confdefs.h >>conftest.$ac_ext
36262 cat >>conftest.$ac_ext <<_ACEOF
36263 /* end confdefs.h. */
36264
36265
36266 #include <linux/fs.h>
36267 #include <linux/xattr.h>
36268
36269 const struct xattr_handler xattr_test_handler = {
36270 .prefix = "test",
36271 .get = NULL,
36272 .set = NULL,
36273 };
36274
36275 const struct xattr_handler *xattr_handlers[] = {
36276 &xattr_test_handler,
36277 };
36278
36279 const struct super_block sb __attribute__ ((unused)) = {
36280 .s_xattr = xattr_handlers,
36281 };
36282
36283 int
36284 main (void)
36285 {
36286
36287
36288 ;
36289 return 0;
36290 }
36291
36292 _ACEOF
36293
36294
36295
36296 cat - <<_ACEOF >conftest.h
36297
36298 _ACEOF
36299
36300
36301 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36302 echo "obj-m := conftest.o" >build/Makefile
36303 modpost_flag=''
36304 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36305 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36307 (eval $ac_try) 2>&5
36308 ac_status=$?
36309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36310 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36312 (eval $ac_try) 2>&5
36313 ac_status=$?
36314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36315 (exit $ac_status); }; }; then
36316
36317 { $as_echo "$as_me:$LINENO: result: yes" >&5
36318 $as_echo "yes" >&6; }
36319
36320 cat >>confdefs.h <<\_ACEOF
36321 #define HAVE_CONST_XATTR_HANDLER 1
36322 _ACEOF
36323
36324
36325 else
36326 $as_echo "$as_me: failed program was:" >&5
36327 sed 's/^/| /' conftest.$ac_ext >&5
36328
36329 { $as_echo "$as_me:$LINENO: result: no" >&5
36330 $as_echo "no" >&6; }
36331
36332
36333
36334 fi
36335
36336 rm -Rf build
36337
36338
36339
36340
36341 { $as_echo "$as_me:$LINENO: checking whether xattr_handler has name" >&5
36342 $as_echo_n "checking whether xattr_handler has name... " >&6; }
36343
36344
36345 cat confdefs.h - <<_ACEOF >conftest.c
36346 /* confdefs.h. */
36347 _ACEOF
36348 cat confdefs.h >>conftest.$ac_ext
36349 cat >>conftest.$ac_ext <<_ACEOF
36350 /* end confdefs.h. */
36351
36352
36353 #include <linux/xattr.h>
36354
36355 static const struct xattr_handler
36356 xops __attribute__ ((unused)) = {
36357 .name = XATTR_NAME_POSIX_ACL_ACCESS,
36358 };
36359
36360 int
36361 main (void)
36362 {
36363
36364
36365 ;
36366 return 0;
36367 }
36368
36369 _ACEOF
36370
36371
36372
36373 cat - <<_ACEOF >conftest.h
36374
36375 _ACEOF
36376
36377
36378 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36379 echo "obj-m := conftest.o" >build/Makefile
36380 modpost_flag=''
36381 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36382 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36384 (eval $ac_try) 2>&5
36385 ac_status=$?
36386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36387 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36389 (eval $ac_try) 2>&5
36390 ac_status=$?
36391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36392 (exit $ac_status); }; }; then
36393
36394 { $as_echo "$as_me:$LINENO: result: yes" >&5
36395 $as_echo "yes" >&6; }
36396
36397 cat >>confdefs.h <<\_ACEOF
36398 #define HAVE_XATTR_HANDLER_NAME 1
36399 _ACEOF
36400
36401
36402 else
36403 $as_echo "$as_me: failed program was:" >&5
36404 sed 's/^/| /' conftest.$ac_ext >&5
36405
36406 { $as_echo "$as_me:$LINENO: result: no" >&5
36407 $as_echo "no" >&6; }
36408
36409
36410
36411 fi
36412
36413 rm -Rf build
36414
36415
36416
36417
36418 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants both dentry and inode" >&5
36419 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
36420
36421
36422 cat confdefs.h - <<_ACEOF >conftest.c
36423 /* confdefs.h. */
36424 _ACEOF
36425 cat confdefs.h >>conftest.$ac_ext
36426 cat >>conftest.$ac_ext <<_ACEOF
36427 /* end confdefs.h. */
36428
36429
36430 #include <linux/xattr.h>
36431
36432 int get(const struct xattr_handler *handler,
36433 struct dentry *dentry, struct inode *inode,
36434 const char *name, void *buffer, size_t size) { return 0; }
36435 static const struct xattr_handler
36436 xops __attribute__ ((unused)) = {
36437 .get = get,
36438 };
36439
36440 int
36441 main (void)
36442 {
36443
36444
36445 ;
36446 return 0;
36447 }
36448
36449 _ACEOF
36450
36451
36452
36453 cat - <<_ACEOF >conftest.h
36454
36455 _ACEOF
36456
36457
36458 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36459 echo "obj-m := conftest.o" >build/Makefile
36460 modpost_flag=''
36461 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36462 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36464 (eval $ac_try) 2>&5
36465 ac_status=$?
36466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36467 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36469 (eval $ac_try) 2>&5
36470 ac_status=$?
36471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36472 (exit $ac_status); }; }; then
36473
36474 { $as_echo "$as_me:$LINENO: result: yes" >&5
36475 $as_echo "yes" >&6; }
36476
36477 cat >>confdefs.h <<\_ACEOF
36478 #define HAVE_XATTR_GET_DENTRY_INODE 1
36479 _ACEOF
36480
36481
36482 else
36483 $as_echo "$as_me: failed program was:" >&5
36484 sed 's/^/| /' conftest.$ac_ext >&5
36485
36486 { $as_echo "$as_me:$LINENO: result: no" >&5
36487 $as_echo "no" >&6; }
36488 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants xattr_handler" >&5
36489 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
36490
36491
36492 cat confdefs.h - <<_ACEOF >conftest.c
36493 /* confdefs.h. */
36494 _ACEOF
36495 cat confdefs.h >>conftest.$ac_ext
36496 cat >>conftest.$ac_ext <<_ACEOF
36497 /* end confdefs.h. */
36498
36499
36500 #include <linux/xattr.h>
36501
36502 int get(const struct xattr_handler *handler,
36503 struct dentry *dentry, const char *name,
36504 void *buffer, size_t size) { return 0; }
36505 static const struct xattr_handler
36506 xops __attribute__ ((unused)) = {
36507 .get = get,
36508 };
36509
36510 int
36511 main (void)
36512 {
36513
36514
36515 ;
36516 return 0;
36517 }
36518
36519 _ACEOF
36520
36521
36522
36523 cat - <<_ACEOF >conftest.h
36524
36525 _ACEOF
36526
36527
36528 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36529 echo "obj-m := conftest.o" >build/Makefile
36530 modpost_flag=''
36531 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36532 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36534 (eval $ac_try) 2>&5
36535 ac_status=$?
36536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36537 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36539 (eval $ac_try) 2>&5
36540 ac_status=$?
36541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36542 (exit $ac_status); }; }; then
36543
36544 { $as_echo "$as_me:$LINENO: result: yes" >&5
36545 $as_echo "yes" >&6; }
36546
36547 cat >>confdefs.h <<\_ACEOF
36548 #define HAVE_XATTR_GET_HANDLER 1
36549 _ACEOF
36550
36551
36552 else
36553 $as_echo "$as_me: failed program was:" >&5
36554 sed 's/^/| /' conftest.$ac_ext >&5
36555
36556 { $as_echo "$as_me:$LINENO: result: no" >&5
36557 $as_echo "no" >&6; }
36558 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
36559 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
36560
36561
36562 cat confdefs.h - <<_ACEOF >conftest.c
36563 /* confdefs.h. */
36564 _ACEOF
36565 cat confdefs.h >>conftest.$ac_ext
36566 cat >>conftest.$ac_ext <<_ACEOF
36567 /* end confdefs.h. */
36568
36569
36570 #include <linux/xattr.h>
36571
36572 int get(struct dentry *dentry, const char *name,
36573 void *buffer, size_t size, int handler_flags)
36574 { return 0; }
36575 static const struct xattr_handler
36576 xops __attribute__ ((unused)) = {
36577 .get = get,
36578 };
36579
36580 int
36581 main (void)
36582 {
36583
36584
36585 ;
36586 return 0;
36587 }
36588
36589 _ACEOF
36590
36591
36592
36593 cat - <<_ACEOF >conftest.h
36594
36595 _ACEOF
36596
36597
36598 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36599 echo "obj-m := conftest.o" >build/Makefile
36600 modpost_flag=''
36601 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36602 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36604 (eval $ac_try) 2>&5
36605 ac_status=$?
36606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36607 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36609 (eval $ac_try) 2>&5
36610 ac_status=$?
36611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36612 (exit $ac_status); }; }; then
36613
36614 { $as_echo "$as_me:$LINENO: result: yes" >&5
36615 $as_echo "yes" >&6; }
36616
36617 cat >>confdefs.h <<\_ACEOF
36618 #define HAVE_XATTR_GET_DENTRY 1
36619 _ACEOF
36620
36621
36622 else
36623 $as_echo "$as_me: failed program was:" >&5
36624 sed 's/^/| /' conftest.$ac_ext >&5
36625
36626 { $as_echo "$as_me:$LINENO: result: no" >&5
36627 $as_echo "no" >&6; }
36628 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants inode" >&5
36629 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
36630
36631
36632 cat confdefs.h - <<_ACEOF >conftest.c
36633 /* confdefs.h. */
36634 _ACEOF
36635 cat confdefs.h >>conftest.$ac_ext
36636 cat >>conftest.$ac_ext <<_ACEOF
36637 /* end confdefs.h. */
36638
36639
36640 #include <linux/xattr.h>
36641
36642 int get(struct inode *ip, const char *name,
36643 void *buffer, size_t size) { return 0; }
36644 static const struct xattr_handler
36645 xops __attribute__ ((unused)) = {
36646 .get = get,
36647 };
36648
36649 int
36650 main (void)
36651 {
36652
36653
36654 ;
36655 return 0;
36656 }
36657
36658 _ACEOF
36659
36660
36661
36662 cat - <<_ACEOF >conftest.h
36663
36664 _ACEOF
36665
36666
36667 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36668 echo "obj-m := conftest.o" >build/Makefile
36669 modpost_flag=''
36670 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36671 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36673 (eval $ac_try) 2>&5
36674 ac_status=$?
36675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36676 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36678 (eval $ac_try) 2>&5
36679 ac_status=$?
36680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36681 (exit $ac_status); }; }; then
36682
36683 { $as_echo "$as_me:$LINENO: result: yes" >&5
36684 $as_echo "yes" >&6; }
36685
36686 cat >>confdefs.h <<\_ACEOF
36687 #define HAVE_XATTR_GET_INODE 1
36688 _ACEOF
36689
36690
36691 else
36692 $as_echo "$as_me: failed program was:" >&5
36693 sed 's/^/| /' conftest.$ac_ext >&5
36694
36695 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
36696 $as_echo "$as_me: error: no; please file a bug report" >&2;}
36697 { (exit 1); exit 1; }; }
36698
36699
36700
36701 fi
36702
36703 rm -Rf build
36704
36705
36706
36707
36708
36709 fi
36710
36711 rm -Rf build
36712
36713
36714
36715
36716
36717 fi
36718
36719 rm -Rf build
36720
36721
36722
36723
36724
36725 fi
36726
36727 rm -Rf build
36728
36729
36730
36731
36732 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants both dentry and inode" >&5
36733 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
36734
36735
36736 cat confdefs.h - <<_ACEOF >conftest.c
36737 /* confdefs.h. */
36738 _ACEOF
36739 cat confdefs.h >>conftest.$ac_ext
36740 cat >>conftest.$ac_ext <<_ACEOF
36741 /* end confdefs.h. */
36742
36743
36744 #include <linux/xattr.h>
36745
36746 int set(const struct xattr_handler *handler,
36747 struct dentry *dentry, struct inode *inode,
36748 const char *name, const void *buffer,
36749 size_t size, int flags)
36750 { return 0; }
36751 static const struct xattr_handler
36752 xops __attribute__ ((unused)) = {
36753 .set = set,
36754 };
36755
36756 int
36757 main (void)
36758 {
36759
36760
36761 ;
36762 return 0;
36763 }
36764
36765 _ACEOF
36766
36767
36768
36769 cat - <<_ACEOF >conftest.h
36770
36771 _ACEOF
36772
36773
36774 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36775 echo "obj-m := conftest.o" >build/Makefile
36776 modpost_flag=''
36777 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36778 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36780 (eval $ac_try) 2>&5
36781 ac_status=$?
36782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36783 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36785 (eval $ac_try) 2>&5
36786 ac_status=$?
36787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36788 (exit $ac_status); }; }; then
36789
36790 { $as_echo "$as_me:$LINENO: result: yes" >&5
36791 $as_echo "yes" >&6; }
36792
36793 cat >>confdefs.h <<\_ACEOF
36794 #define HAVE_XATTR_SET_DENTRY_INODE 1
36795 _ACEOF
36796
36797
36798 else
36799 $as_echo "$as_me: failed program was:" >&5
36800 sed 's/^/| /' conftest.$ac_ext >&5
36801
36802 { $as_echo "$as_me:$LINENO: result: no" >&5
36803 $as_echo "no" >&6; }
36804 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants xattr_handler" >&5
36805 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
36806
36807
36808 cat confdefs.h - <<_ACEOF >conftest.c
36809 /* confdefs.h. */
36810 _ACEOF
36811 cat confdefs.h >>conftest.$ac_ext
36812 cat >>conftest.$ac_ext <<_ACEOF
36813 /* end confdefs.h. */
36814
36815
36816 #include <linux/xattr.h>
36817
36818 int set(const struct xattr_handler *handler,
36819 struct dentry *dentry, const char *name,
36820 const void *buffer, size_t size, int flags)
36821 { return 0; }
36822 static const struct xattr_handler
36823 xops __attribute__ ((unused)) = {
36824 .set = set,
36825 };
36826
36827 int
36828 main (void)
36829 {
36830
36831
36832 ;
36833 return 0;
36834 }
36835
36836 _ACEOF
36837
36838
36839
36840 cat - <<_ACEOF >conftest.h
36841
36842 _ACEOF
36843
36844
36845 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36846 echo "obj-m := conftest.o" >build/Makefile
36847 modpost_flag=''
36848 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36849 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36851 (eval $ac_try) 2>&5
36852 ac_status=$?
36853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36854 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36856 (eval $ac_try) 2>&5
36857 ac_status=$?
36858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36859 (exit $ac_status); }; }; then
36860
36861 { $as_echo "$as_me:$LINENO: result: yes" >&5
36862 $as_echo "yes" >&6; }
36863
36864 cat >>confdefs.h <<\_ACEOF
36865 #define HAVE_XATTR_SET_HANDLER 1
36866 _ACEOF
36867
36868
36869 else
36870 $as_echo "$as_me: failed program was:" >&5
36871 sed 's/^/| /' conftest.$ac_ext >&5
36872
36873 { $as_echo "$as_me:$LINENO: result: no" >&5
36874 $as_echo "no" >&6; }
36875 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
36876 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
36877
36878
36879 cat confdefs.h - <<_ACEOF >conftest.c
36880 /* confdefs.h. */
36881 _ACEOF
36882 cat confdefs.h >>conftest.$ac_ext
36883 cat >>conftest.$ac_ext <<_ACEOF
36884 /* end confdefs.h. */
36885
36886
36887 #include <linux/xattr.h>
36888
36889 int set(struct dentry *dentry, const char *name,
36890 const void *buffer, size_t size, int flags,
36891 int handler_flags) { return 0; }
36892 static const struct xattr_handler
36893 xops __attribute__ ((unused)) = {
36894 .set = set,
36895 };
36896
36897 int
36898 main (void)
36899 {
36900
36901
36902 ;
36903 return 0;
36904 }
36905
36906 _ACEOF
36907
36908
36909
36910 cat - <<_ACEOF >conftest.h
36911
36912 _ACEOF
36913
36914
36915 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36916 echo "obj-m := conftest.o" >build/Makefile
36917 modpost_flag=''
36918 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36919 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36921 (eval $ac_try) 2>&5
36922 ac_status=$?
36923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36924 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36926 (eval $ac_try) 2>&5
36927 ac_status=$?
36928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36929 (exit $ac_status); }; }; then
36930
36931 { $as_echo "$as_me:$LINENO: result: yes" >&5
36932 $as_echo "yes" >&6; }
36933
36934 cat >>confdefs.h <<\_ACEOF
36935 #define HAVE_XATTR_SET_DENTRY 1
36936 _ACEOF
36937
36938
36939 else
36940 $as_echo "$as_me: failed program was:" >&5
36941 sed 's/^/| /' conftest.$ac_ext >&5
36942
36943 { $as_echo "$as_me:$LINENO: result: no" >&5
36944 $as_echo "no" >&6; }
36945 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants inode" >&5
36946 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
36947
36948
36949 cat confdefs.h - <<_ACEOF >conftest.c
36950 /* confdefs.h. */
36951 _ACEOF
36952 cat confdefs.h >>conftest.$ac_ext
36953 cat >>conftest.$ac_ext <<_ACEOF
36954 /* end confdefs.h. */
36955
36956
36957 #include <linux/xattr.h>
36958
36959 int set(struct inode *ip, const char *name,
36960 const void *buffer, size_t size, int flags)
36961 { return 0; }
36962 static const struct xattr_handler
36963 xops __attribute__ ((unused)) = {
36964 .set = set,
36965 };
36966
36967 int
36968 main (void)
36969 {
36970
36971
36972 ;
36973 return 0;
36974 }
36975
36976 _ACEOF
36977
36978
36979
36980 cat - <<_ACEOF >conftest.h
36981
36982 _ACEOF
36983
36984
36985 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36986 echo "obj-m := conftest.o" >build/Makefile
36987 modpost_flag=''
36988 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36989 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36991 (eval $ac_try) 2>&5
36992 ac_status=$?
36993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36994 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36996 (eval $ac_try) 2>&5
36997 ac_status=$?
36998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36999 (exit $ac_status); }; }; then
37000
37001 { $as_echo "$as_me:$LINENO: result: yes" >&5
37002 $as_echo "yes" >&6; }
37003
37004 cat >>confdefs.h <<\_ACEOF
37005 #define HAVE_XATTR_SET_INODE 1
37006 _ACEOF
37007
37008
37009 else
37010 $as_echo "$as_me: failed program was:" >&5
37011 sed 's/^/| /' conftest.$ac_ext >&5
37012
37013 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
37014 $as_echo "$as_me: error: no; please file a bug report" >&2;}
37015 { (exit 1); exit 1; }; }
37016
37017
37018
37019 fi
37020
37021 rm -Rf build
37022
37023
37024
37025
37026
37027 fi
37028
37029 rm -Rf build
37030
37031
37032
37033
37034
37035 fi
37036
37037 rm -Rf build
37038
37039
37040
37041
37042
37043 fi
37044
37045 rm -Rf build
37046
37047
37048
37049
37050 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants simple" >&5
37051 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
37052
37053
37054 cat confdefs.h - <<_ACEOF >conftest.c
37055 /* confdefs.h. */
37056 _ACEOF
37057 cat confdefs.h >>conftest.$ac_ext
37058 cat >>conftest.$ac_ext <<_ACEOF
37059 /* end confdefs.h. */
37060
37061
37062 #include <linux/xattr.h>
37063
37064 bool list(struct dentry *dentry) { return 0; }
37065 static const struct xattr_handler
37066 xops __attribute__ ((unused)) = {
37067 .list = list,
37068 };
37069
37070 int
37071 main (void)
37072 {
37073
37074
37075 ;
37076 return 0;
37077 }
37078
37079 _ACEOF
37080
37081
37082
37083 cat - <<_ACEOF >conftest.h
37084
37085 _ACEOF
37086
37087
37088 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37089 echo "obj-m := conftest.o" >build/Makefile
37090 modpost_flag=''
37091 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37092 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37094 (eval $ac_try) 2>&5
37095 ac_status=$?
37096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37097 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37099 (eval $ac_try) 2>&5
37100 ac_status=$?
37101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37102 (exit $ac_status); }; }; then
37103
37104 { $as_echo "$as_me:$LINENO: result: yes" >&5
37105 $as_echo "yes" >&6; }
37106
37107 cat >>confdefs.h <<\_ACEOF
37108 #define HAVE_XATTR_LIST_SIMPLE 1
37109 _ACEOF
37110
37111
37112 else
37113 $as_echo "$as_me: failed program was:" >&5
37114 sed 's/^/| /' conftest.$ac_ext >&5
37115
37116 { $as_echo "$as_me:$LINENO: result: no" >&5
37117 $as_echo "no" >&6; }
37118 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants xattr_handler" >&5
37119 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
37120
37121
37122 cat confdefs.h - <<_ACEOF >conftest.c
37123 /* confdefs.h. */
37124 _ACEOF
37125 cat confdefs.h >>conftest.$ac_ext
37126 cat >>conftest.$ac_ext <<_ACEOF
37127 /* end confdefs.h. */
37128
37129
37130 #include <linux/xattr.h>
37131
37132 size_t list(const struct xattr_handler *handler,
37133 struct dentry *dentry, char *list, size_t list_size,
37134 const char *name, size_t name_len) { return 0; }
37135 static const struct xattr_handler
37136 xops __attribute__ ((unused)) = {
37137 .list = list,
37138 };
37139
37140 int
37141 main (void)
37142 {
37143
37144
37145 ;
37146 return 0;
37147 }
37148
37149 _ACEOF
37150
37151
37152
37153 cat - <<_ACEOF >conftest.h
37154
37155 _ACEOF
37156
37157
37158 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37159 echo "obj-m := conftest.o" >build/Makefile
37160 modpost_flag=''
37161 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37162 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37164 (eval $ac_try) 2>&5
37165 ac_status=$?
37166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37167 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37169 (eval $ac_try) 2>&5
37170 ac_status=$?
37171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37172 (exit $ac_status); }; }; then
37173
37174 { $as_echo "$as_me:$LINENO: result: yes" >&5
37175 $as_echo "yes" >&6; }
37176
37177 cat >>confdefs.h <<\_ACEOF
37178 #define HAVE_XATTR_LIST_HANDLER 1
37179 _ACEOF
37180
37181
37182 else
37183 $as_echo "$as_me: failed program was:" >&5
37184 sed 's/^/| /' conftest.$ac_ext >&5
37185
37186 { $as_echo "$as_me:$LINENO: result: no" >&5
37187 $as_echo "no" >&6; }
37188 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants dentry" >&5
37189 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
37190
37191
37192 cat confdefs.h - <<_ACEOF >conftest.c
37193 /* confdefs.h. */
37194 _ACEOF
37195 cat confdefs.h >>conftest.$ac_ext
37196 cat >>conftest.$ac_ext <<_ACEOF
37197 /* end confdefs.h. */
37198
37199
37200 #include <linux/xattr.h>
37201
37202 size_t list(struct dentry *dentry,
37203 char *list, size_t list_size,
37204 const char *name, size_t name_len,
37205 int handler_flags) { return 0; }
37206 static const struct xattr_handler
37207 xops __attribute__ ((unused)) = {
37208 .list = list,
37209 };
37210
37211 int
37212 main (void)
37213 {
37214
37215
37216 ;
37217 return 0;
37218 }
37219
37220 _ACEOF
37221
37222
37223
37224 cat - <<_ACEOF >conftest.h
37225
37226 _ACEOF
37227
37228
37229 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37230 echo "obj-m := conftest.o" >build/Makefile
37231 modpost_flag=''
37232 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37233 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37235 (eval $ac_try) 2>&5
37236 ac_status=$?
37237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37238 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37240 (eval $ac_try) 2>&5
37241 ac_status=$?
37242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37243 (exit $ac_status); }; }; then
37244
37245 { $as_echo "$as_me:$LINENO: result: yes" >&5
37246 $as_echo "yes" >&6; }
37247
37248 cat >>confdefs.h <<\_ACEOF
37249 #define HAVE_XATTR_LIST_DENTRY 1
37250 _ACEOF
37251
37252
37253 else
37254 $as_echo "$as_me: failed program was:" >&5
37255 sed 's/^/| /' conftest.$ac_ext >&5
37256
37257 { $as_echo "$as_me:$LINENO: result: no" >&5
37258 $as_echo "no" >&6; }
37259 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants inode" >&5
37260 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
37261
37262
37263 cat confdefs.h - <<_ACEOF >conftest.c
37264 /* confdefs.h. */
37265 _ACEOF
37266 cat confdefs.h >>conftest.$ac_ext
37267 cat >>conftest.$ac_ext <<_ACEOF
37268 /* end confdefs.h. */
37269
37270
37271 #include <linux/xattr.h>
37272
37273 size_t list(struct inode *ip, char *lst,
37274 size_t list_size, const char *name,
37275 size_t name_len) { return 0; }
37276 static const struct xattr_handler
37277 xops __attribute__ ((unused)) = {
37278 .list = list,
37279 };
37280
37281 int
37282 main (void)
37283 {
37284
37285
37286 ;
37287 return 0;
37288 }
37289
37290 _ACEOF
37291
37292
37293
37294 cat - <<_ACEOF >conftest.h
37295
37296 _ACEOF
37297
37298
37299 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37300 echo "obj-m := conftest.o" >build/Makefile
37301 modpost_flag=''
37302 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37303 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37305 (eval $ac_try) 2>&5
37306 ac_status=$?
37307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37308 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37310 (eval $ac_try) 2>&5
37311 ac_status=$?
37312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37313 (exit $ac_status); }; }; then
37314
37315 { $as_echo "$as_me:$LINENO: result: yes" >&5
37316 $as_echo "yes" >&6; }
37317
37318 cat >>confdefs.h <<\_ACEOF
37319 #define HAVE_XATTR_LIST_INODE 1
37320 _ACEOF
37321
37322
37323 else
37324 $as_echo "$as_me: failed program was:" >&5
37325 sed 's/^/| /' conftest.$ac_ext >&5
37326
37327 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
37328 $as_echo "$as_me: error: no; please file a bug report" >&2;}
37329 { (exit 1); exit 1; }; }
37330
37331
37332
37333 fi
37334
37335 rm -Rf build
37336
37337
37338
37339
37340
37341 fi
37342
37343 rm -Rf build
37344
37345
37346
37347
37348
37349 fi
37350
37351 rm -Rf build
37352
37353
37354
37355
37356
37357 fi
37358
37359 rm -Rf build
37360
37361
37362
37363
37364 { $as_echo "$as_me:$LINENO: checking whether inode_owner_or_capable() exists" >&5
37365 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
37366
37367
37368 cat confdefs.h - <<_ACEOF >conftest.c
37369 /* confdefs.h. */
37370 _ACEOF
37371 cat confdefs.h >>conftest.$ac_ext
37372 cat >>conftest.$ac_ext <<_ACEOF
37373 /* end confdefs.h. */
37374
37375
37376 #include <linux/fs.h>
37377
37378 int
37379 main (void)
37380 {
37381
37382 struct inode *ip = NULL;
37383 (void) inode_owner_or_capable(ip);
37384
37385 ;
37386 return 0;
37387 }
37388
37389 _ACEOF
37390
37391
37392
37393 cat - <<_ACEOF >conftest.h
37394
37395 _ACEOF
37396
37397
37398 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37399 echo "obj-m := conftest.o" >build/Makefile
37400 modpost_flag=''
37401 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37402 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37404 (eval $ac_try) 2>&5
37405 ac_status=$?
37406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37407 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37409 (eval $ac_try) 2>&5
37410 ac_status=$?
37411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37412 (exit $ac_status); }; }; then
37413
37414 { $as_echo "$as_me:$LINENO: result: yes" >&5
37415 $as_echo "yes" >&6; }
37416
37417 cat >>confdefs.h <<\_ACEOF
37418 #define HAVE_INODE_OWNER_OR_CAPABLE 1
37419 _ACEOF
37420
37421
37422 else
37423 $as_echo "$as_me: failed program was:" >&5
37424 sed 's/^/| /' conftest.$ac_ext >&5
37425
37426 { $as_echo "$as_me:$LINENO: result: no" >&5
37427 $as_echo "no" >&6; }
37428 { $as_echo "$as_me:$LINENO: checking whether is_owner_or_cap() exists" >&5
37429 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
37430
37431
37432 cat confdefs.h - <<_ACEOF >conftest.c
37433 /* confdefs.h. */
37434 _ACEOF
37435 cat confdefs.h >>conftest.$ac_ext
37436 cat >>conftest.$ac_ext <<_ACEOF
37437 /* end confdefs.h. */
37438
37439
37440 #include <linux/fs.h>
37441 #include <linux/sched.h>
37442
37443 int
37444 main (void)
37445 {
37446
37447 struct inode *ip = NULL;
37448 (void) is_owner_or_cap(ip);
37449
37450 ;
37451 return 0;
37452 }
37453
37454 _ACEOF
37455
37456
37457
37458 cat - <<_ACEOF >conftest.h
37459
37460 _ACEOF
37461
37462
37463 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37464 echo "obj-m := conftest.o" >build/Makefile
37465 modpost_flag=''
37466 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37467 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37469 (eval $ac_try) 2>&5
37470 ac_status=$?
37471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37472 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37474 (eval $ac_try) 2>&5
37475 ac_status=$?
37476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37477 (exit $ac_status); }; }; then
37478
37479 { $as_echo "$as_me:$LINENO: result: yes" >&5
37480 $as_echo "yes" >&6; }
37481
37482 cat >>confdefs.h <<\_ACEOF
37483 #define HAVE_IS_OWNER_OR_CAP 1
37484 _ACEOF
37485
37486
37487 else
37488 $as_echo "$as_me: failed program was:" >&5
37489 sed 's/^/| /' conftest.$ac_ext >&5
37490
37491 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
37492 https://github.com/zfsonlinux/zfs/issues/new" >&5
37493 $as_echo "$as_me: error: no - Please file a bug report at
37494 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
37495 { (exit 1); exit 1; }; }
37496
37497
37498
37499 fi
37500
37501 rm -Rf build
37502
37503
37504
37505
37506
37507 fi
37508
37509 rm -Rf build
37510
37511
37512
37513
37514 { $as_echo "$as_me:$LINENO: checking whether posix_acl_from_xattr() needs user_ns" >&5
37515 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
37516
37517
37518 cat confdefs.h - <<_ACEOF >conftest.c
37519 /* confdefs.h. */
37520 _ACEOF
37521 cat confdefs.h >>conftest.$ac_ext
37522 cat >>conftest.$ac_ext <<_ACEOF
37523 /* end confdefs.h. */
37524
37525
37526 #include <linux/cred.h>
37527 #include <linux/fs.h>
37528 #include <linux/posix_acl_xattr.h>
37529
37530 int
37531 main (void)
37532 {
37533
37534 posix_acl_from_xattr(&init_user_ns, NULL, 0);
37535
37536 ;
37537 return 0;
37538 }
37539
37540 _ACEOF
37541
37542
37543
37544 cat - <<_ACEOF >conftest.h
37545
37546 _ACEOF
37547
37548
37549 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37550 echo "obj-m := conftest.o" >build/Makefile
37551 modpost_flag=''
37552 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37553 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37555 (eval $ac_try) 2>&5
37556 ac_status=$?
37557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37558 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37560 (eval $ac_try) 2>&5
37561 ac_status=$?
37562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37563 (exit $ac_status); }; }; then
37564
37565 { $as_echo "$as_me:$LINENO: result: yes" >&5
37566 $as_echo "yes" >&6; }
37567
37568 cat >>confdefs.h <<\_ACEOF
37569 #define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1
37570 _ACEOF
37571
37572
37573 else
37574 $as_echo "$as_me: failed program was:" >&5
37575 sed 's/^/| /' conftest.$ac_ext >&5
37576
37577 { $as_echo "$as_me:$LINENO: result: no" >&5
37578 $as_echo "no" >&6; }
37579
37580
37581
37582 fi
37583
37584 rm -Rf build
37585
37586
37587
37588
37589 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is available" >&5
37590 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
37591
37592
37593 cat confdefs.h - <<_ACEOF >conftest.c
37594 /* confdefs.h. */
37595 _ACEOF
37596 cat confdefs.h >>conftest.$ac_ext
37597 cat >>conftest.$ac_ext <<_ACEOF
37598 /* end confdefs.h. */
37599
37600
37601 #include <linux/cred.h>
37602 #include <linux/fs.h>
37603 #include <linux/posix_acl.h>
37604
37605 int
37606 main (void)
37607 {
37608
37609 struct posix_acl* tmp = posix_acl_alloc(1, 0);
37610 posix_acl_release(tmp);
37611
37612 ;
37613 return 0;
37614 }
37615
37616 _ACEOF
37617
37618
37619
37620 cat - <<_ACEOF >conftest.h
37621
37622 _ACEOF
37623
37624
37625 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37626 echo "obj-m := conftest.o" >build/Makefile
37627 modpost_flag=''
37628 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37629 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37631 (eval $ac_try) 2>&5
37632 ac_status=$?
37633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37634 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37636 (eval $ac_try) 2>&5
37637 ac_status=$?
37638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37639 (exit $ac_status); }; }; then
37640
37641 { $as_echo "$as_me:$LINENO: result: yes" >&5
37642 $as_echo "yes" >&6; }
37643
37644 cat >>confdefs.h <<\_ACEOF
37645 #define HAVE_POSIX_ACL_RELEASE 1
37646 _ACEOF
37647
37648
37649 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is GPL-only" >&5
37650 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
37651
37652
37653 cat confdefs.h - <<_ACEOF >conftest.c
37654 /* confdefs.h. */
37655 _ACEOF
37656 cat confdefs.h >>conftest.$ac_ext
37657 cat >>conftest.$ac_ext <<_ACEOF
37658 /* end confdefs.h. */
37659
37660
37661 #include <linux/module.h>
37662 #include <linux/cred.h>
37663 #include <linux/fs.h>
37664 #include <linux/posix_acl.h>
37665
37666 MODULE_LICENSE("$ZFS_META_LICENSE");
37667
37668 int
37669 main (void)
37670 {
37671
37672 struct posix_acl* tmp = posix_acl_alloc(1, 0);
37673 posix_acl_release(tmp);
37674
37675 ;
37676 return 0;
37677 }
37678
37679 _ACEOF
37680
37681
37682
37683 cat - <<_ACEOF >conftest.h
37684
37685 _ACEOF
37686
37687
37688 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37689 echo "obj-m := conftest.o" >build/Makefile
37690 modpost_flag=''
37691 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37692 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37694 (eval $ac_try) 2>&5
37695 ac_status=$?
37696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37697 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37699 (eval $ac_try) 2>&5
37700 ac_status=$?
37701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37702 (exit $ac_status); }; }; then
37703
37704 { $as_echo "$as_me:$LINENO: result: no" >&5
37705 $as_echo "no" >&6; }
37706
37707 else
37708 $as_echo "$as_me: failed program was:" >&5
37709 sed 's/^/| /' conftest.$ac_ext >&5
37710
37711 { $as_echo "$as_me:$LINENO: result: yes" >&5
37712 $as_echo "yes" >&6; }
37713
37714 cat >>confdefs.h <<\_ACEOF
37715 #define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1
37716 _ACEOF
37717
37718
37719
37720
37721 fi
37722
37723 rm -Rf build
37724
37725
37726
37727 else
37728 $as_echo "$as_me: failed program was:" >&5
37729 sed 's/^/| /' conftest.$ac_ext >&5
37730
37731 { $as_echo "$as_me:$LINENO: result: no" >&5
37732 $as_echo "no" >&6; }
37733
37734
37735
37736 fi
37737
37738 rm -Rf build
37739
37740
37741
37742
37743 { $as_echo "$as_me:$LINENO: checking whether set_cached_acl() is usable" >&5
37744 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
37745
37746
37747 cat confdefs.h - <<_ACEOF >conftest.c
37748 /* confdefs.h. */
37749 _ACEOF
37750 cat confdefs.h >>conftest.$ac_ext
37751 cat >>conftest.$ac_ext <<_ACEOF
37752 /* end confdefs.h. */
37753
37754
37755 #include <linux/module.h>
37756 #include <linux/cred.h>
37757 #include <linux/fs.h>
37758 #include <linux/posix_acl.h>
37759
37760 MODULE_LICENSE("$ZFS_META_LICENSE");
37761
37762 int
37763 main (void)
37764 {
37765
37766 struct inode *ip = NULL;
37767 struct posix_acl *acl = posix_acl_alloc(1, 0);
37768 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
37769 forget_cached_acl(ip, ACL_TYPE_ACCESS);
37770
37771 ;
37772 return 0;
37773 }
37774
37775 _ACEOF
37776
37777
37778
37779 cat - <<_ACEOF >conftest.h
37780
37781 _ACEOF
37782
37783
37784 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37785 echo "obj-m := conftest.o" >build/Makefile
37786 modpost_flag=''
37787 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37788 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37790 (eval $ac_try) 2>&5
37791 ac_status=$?
37792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37795 (eval $ac_try) 2>&5
37796 ac_status=$?
37797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37798 (exit $ac_status); }; }; then
37799
37800 { $as_echo "$as_me:$LINENO: result: yes" >&5
37801 $as_echo "yes" >&6; }
37802
37803 cat >>confdefs.h <<\_ACEOF
37804 #define HAVE_SET_CACHED_ACL_USABLE 1
37805 _ACEOF
37806
37807
37808 else
37809 $as_echo "$as_me: failed program was:" >&5
37810 sed 's/^/| /' conftest.$ac_ext >&5
37811
37812 { $as_echo "$as_me:$LINENO: result: no" >&5
37813 $as_echo "no" >&6; }
37814
37815
37816
37817 fi
37818
37819 rm -Rf build
37820
37821
37822
37823
37824 { $as_echo "$as_me:$LINENO: checking whether posix_acl_chmod exists" >&5
37825 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
37826
37827
37828 cat confdefs.h - <<_ACEOF >conftest.c
37829 /* confdefs.h. */
37830 _ACEOF
37831 cat confdefs.h >>conftest.$ac_ext
37832 cat >>conftest.$ac_ext <<_ACEOF
37833 /* end confdefs.h. */
37834
37835
37836 #include <linux/fs.h>
37837 #include <linux/posix_acl.h>
37838
37839 int
37840 main (void)
37841 {
37842
37843 posix_acl_chmod(NULL, 0, 0)
37844
37845 ;
37846 return 0;
37847 }
37848
37849 _ACEOF
37850
37851
37852
37853 cat - <<_ACEOF >conftest.h
37854
37855 _ACEOF
37856
37857
37858 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37859 echo "obj-m := conftest.o" >build/Makefile
37860 modpost_flag=''
37861 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37862 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37864 (eval $ac_try) 2>&5
37865 ac_status=$?
37866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37867 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37869 (eval $ac_try) 2>&5
37870 ac_status=$?
37871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37872 (exit $ac_status); }; }; then
37873
37874 { $as_echo "$as_me:$LINENO: result: yes" >&5
37875 $as_echo "yes" >&6; }
37876
37877 cat >>confdefs.h <<\_ACEOF
37878 #define HAVE_POSIX_ACL_CHMOD 1
37879 _ACEOF
37880
37881
37882 else
37883 $as_echo "$as_me: failed program was:" >&5
37884 sed 's/^/| /' conftest.$ac_ext >&5
37885
37886 { $as_echo "$as_me:$LINENO: result: no" >&5
37887 $as_echo "no" >&6; }
37888
37889
37890
37891 fi
37892
37893 rm -Rf build
37894
37895
37896
37897 { $as_echo "$as_me:$LINENO: checking whether __posix_acl_chmod exists" >&5
37898 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
37899
37900
37901 cat confdefs.h - <<_ACEOF >conftest.c
37902 /* confdefs.h. */
37903 _ACEOF
37904 cat confdefs.h >>conftest.$ac_ext
37905 cat >>conftest.$ac_ext <<_ACEOF
37906 /* end confdefs.h. */
37907
37908
37909 #include <linux/fs.h>
37910 #include <linux/posix_acl.h>
37911
37912 int
37913 main (void)
37914 {
37915
37916 __posix_acl_chmod(NULL, 0, 0)
37917
37918 ;
37919 return 0;
37920 }
37921
37922 _ACEOF
37923
37924
37925
37926 cat - <<_ACEOF >conftest.h
37927
37928 _ACEOF
37929
37930
37931 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37932 echo "obj-m := conftest.o" >build/Makefile
37933 modpost_flag=''
37934 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37935 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37937 (eval $ac_try) 2>&5
37938 ac_status=$?
37939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37940 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37942 (eval $ac_try) 2>&5
37943 ac_status=$?
37944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37945 (exit $ac_status); }; }; then
37946
37947 { $as_echo "$as_me:$LINENO: result: yes" >&5
37948 $as_echo "yes" >&6; }
37949
37950 cat >>confdefs.h <<\_ACEOF
37951 #define HAVE___POSIX_ACL_CHMOD 1
37952 _ACEOF
37953
37954
37955 else
37956 $as_echo "$as_me: failed program was:" >&5
37957 sed 's/^/| /' conftest.$ac_ext >&5
37958
37959 { $as_echo "$as_me:$LINENO: result: no" >&5
37960 $as_echo "no" >&6; }
37961
37962
37963
37964 fi
37965
37966 rm -Rf build
37967
37968
37969
37970
37971 { $as_echo "$as_me:$LINENO: checking whether posix_acl_equiv_mode() wants umode_t" >&5
37972 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
37973
37974
37975 cat confdefs.h - <<_ACEOF >conftest.c
37976 /* confdefs.h. */
37977 _ACEOF
37978 cat confdefs.h >>conftest.$ac_ext
37979 cat >>conftest.$ac_ext <<_ACEOF
37980 /* end confdefs.h. */
37981
37982
37983 #include <linux/fs.h>
37984 #include <linux/posix_acl.h>
37985
37986 int
37987 main (void)
37988 {
37989
37990 umode_t tmp;
37991 posix_acl_equiv_mode(NULL,&tmp);
37992
37993 ;
37994 return 0;
37995 }
37996
37997 _ACEOF
37998
37999
38000
38001 cat - <<_ACEOF >conftest.h
38002
38003 _ACEOF
38004
38005
38006 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38007 echo "obj-m := conftest.o" >build/Makefile
38008 modpost_flag=''
38009 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38010 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38012 (eval $ac_try) 2>&5
38013 ac_status=$?
38014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38015 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38017 (eval $ac_try) 2>&5
38018 ac_status=$?
38019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38020 (exit $ac_status); }; }; then
38021
38022 { $as_echo "$as_me:$LINENO: result: yes" >&5
38023 $as_echo "yes" >&6; }
38024
38025 cat >>confdefs.h <<\_ACEOF
38026 #define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1
38027 _ACEOF
38028
38029
38030 else
38031 $as_echo "$as_me: failed program was:" >&5
38032 sed 's/^/| /' conftest.$ac_ext >&5
38033
38034 { $as_echo "$as_me:$LINENO: result: no" >&5
38035 $as_echo "no" >&6; }
38036
38037
38038
38039 fi
38040
38041 rm -Rf build
38042
38043
38044
38045
38046 { $as_echo "$as_me:$LINENO: checking whether posix_acl_valid() wants user namespace" >&5
38047 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
38048
38049
38050 cat confdefs.h - <<_ACEOF >conftest.c
38051 /* confdefs.h. */
38052 _ACEOF
38053 cat confdefs.h >>conftest.$ac_ext
38054 cat >>conftest.$ac_ext <<_ACEOF
38055 /* end confdefs.h. */
38056
38057
38058 #include <linux/fs.h>
38059 #include <linux/posix_acl.h>
38060
38061 int
38062 main (void)
38063 {
38064
38065 struct user_namespace *user_ns = NULL;
38066 const struct posix_acl *acl = NULL;
38067 int error;
38068
38069 error = posix_acl_valid(user_ns, acl);
38070
38071 ;
38072 return 0;
38073 }
38074
38075 _ACEOF
38076
38077
38078
38079 cat - <<_ACEOF >conftest.h
38080
38081 _ACEOF
38082
38083
38084 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38085 echo "obj-m := conftest.o" >build/Makefile
38086 modpost_flag=''
38087 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38088 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38090 (eval $ac_try) 2>&5
38091 ac_status=$?
38092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38093 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38095 (eval $ac_try) 2>&5
38096 ac_status=$?
38097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38098 (exit $ac_status); }; }; then
38099
38100 { $as_echo "$as_me:$LINENO: result: yes" >&5
38101 $as_echo "yes" >&6; }
38102
38103 cat >>confdefs.h <<\_ACEOF
38104 #define HAVE_POSIX_ACL_VALID_WITH_NS 1
38105 _ACEOF
38106
38107
38108 else
38109 $as_echo "$as_me: failed program was:" >&5
38110 sed 's/^/| /' conftest.$ac_ext >&5
38111
38112 { $as_echo "$as_me:$LINENO: result: no" >&5
38113 $as_echo "no" >&6; }
38114
38115
38116
38117 fi
38118
38119 rm -Rf build
38120
38121
38122
38123
38124 { $as_echo "$as_me:$LINENO: checking whether iops->permission() exists" >&5
38125 $as_echo_n "checking whether iops->permission() exists... " >&6; }
38126
38127
38128 cat confdefs.h - <<_ACEOF >conftest.c
38129 /* confdefs.h. */
38130 _ACEOF
38131 cat confdefs.h >>conftest.$ac_ext
38132 cat >>conftest.$ac_ext <<_ACEOF
38133 /* end confdefs.h. */
38134
38135
38136 #include <linux/fs.h>
38137
38138 int permission_fn(struct inode *inode, int mask) { return 0; }
38139
38140 static const struct inode_operations
38141 iops __attribute__ ((unused)) = {
38142 .permission = permission_fn,
38143 };
38144
38145 int
38146 main (void)
38147 {
38148
38149
38150 ;
38151 return 0;
38152 }
38153
38154 _ACEOF
38155
38156
38157
38158 cat - <<_ACEOF >conftest.h
38159
38160 _ACEOF
38161
38162
38163 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38164 echo "obj-m := conftest.o" >build/Makefile
38165 modpost_flag=''
38166 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38167 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38169 (eval $ac_try) 2>&5
38170 ac_status=$?
38171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38172 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38174 (eval $ac_try) 2>&5
38175 ac_status=$?
38176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38177 (exit $ac_status); }; }; then
38178
38179 { $as_echo "$as_me:$LINENO: result: yes" >&5
38180 $as_echo "yes" >&6; }
38181
38182 cat >>confdefs.h <<\_ACEOF
38183 #define HAVE_PERMISSION 1
38184 _ACEOF
38185
38186
38187 else
38188 $as_echo "$as_me: failed program was:" >&5
38189 sed 's/^/| /' conftest.$ac_ext >&5
38190
38191 { $as_echo "$as_me:$LINENO: result: no" >&5
38192 $as_echo "no" >&6; }
38193
38194
38195
38196 fi
38197
38198 rm -Rf build
38199
38200
38201
38202
38203 { $as_echo "$as_me:$LINENO: checking whether iops->permission() wants nameidata" >&5
38204 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
38205
38206
38207 cat confdefs.h - <<_ACEOF >conftest.c
38208 /* confdefs.h. */
38209 _ACEOF
38210 cat confdefs.h >>conftest.$ac_ext
38211 cat >>conftest.$ac_ext <<_ACEOF
38212 /* end confdefs.h. */
38213
38214
38215 #include <linux/fs.h>
38216
38217 int permission_fn(struct inode *inode, int mask,
38218 struct nameidata *nd) { return 0; }
38219
38220 static const struct inode_operations
38221 iops __attribute__ ((unused)) = {
38222 .permission = permission_fn,
38223 };
38224
38225 int
38226 main (void)
38227 {
38228
38229
38230 ;
38231 return 0;
38232 }
38233
38234 _ACEOF
38235
38236
38237
38238 cat - <<_ACEOF >conftest.h
38239
38240 _ACEOF
38241
38242
38243 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38244 echo "obj-m := conftest.o" >build/Makefile
38245 modpost_flag=''
38246 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38247 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38249 (eval $ac_try) 2>&5
38250 ac_status=$?
38251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38252 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38254 (eval $ac_try) 2>&5
38255 ac_status=$?
38256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38257 (exit $ac_status); }; }; then
38258
38259 { $as_echo "$as_me:$LINENO: result: yes" >&5
38260 $as_echo "yes" >&6; }
38261
38262 cat >>confdefs.h <<\_ACEOF
38263 #define HAVE_PERMISSION 1
38264 _ACEOF
38265
38266
38267 cat >>confdefs.h <<\_ACEOF
38268 #define HAVE_PERMISSION_WITH_NAMEIDATA 1
38269 _ACEOF
38270
38271
38272 else
38273 $as_echo "$as_me: failed program was:" >&5
38274 sed 's/^/| /' conftest.$ac_ext >&5
38275
38276 { $as_echo "$as_me:$LINENO: result: no" >&5
38277 $as_echo "no" >&6; }
38278
38279
38280
38281 fi
38282
38283 rm -Rf build
38284
38285
38286
38287
38288 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() exists" >&5
38289 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
38290
38291
38292 cat confdefs.h - <<_ACEOF >conftest.c
38293 /* confdefs.h. */
38294 _ACEOF
38295 cat confdefs.h >>conftest.$ac_ext
38296 cat >>conftest.$ac_ext <<_ACEOF
38297 /* end confdefs.h. */
38298
38299
38300 #include <linux/fs.h>
38301
38302 int check_acl_fn(struct inode *inode, int mask) { return 0; }
38303
38304 static const struct inode_operations
38305 iops __attribute__ ((unused)) = {
38306 .check_acl = check_acl_fn,
38307 };
38308
38309 int
38310 main (void)
38311 {
38312
38313
38314 ;
38315 return 0;
38316 }
38317
38318 _ACEOF
38319
38320
38321
38322 cat - <<_ACEOF >conftest.h
38323
38324 _ACEOF
38325
38326
38327 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38328 echo "obj-m := conftest.o" >build/Makefile
38329 modpost_flag=''
38330 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38331 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38333 (eval $ac_try) 2>&5
38334 ac_status=$?
38335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38336 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38338 (eval $ac_try) 2>&5
38339 ac_status=$?
38340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38341 (exit $ac_status); }; }; then
38342
38343 { $as_echo "$as_me:$LINENO: result: yes" >&5
38344 $as_echo "yes" >&6; }
38345
38346 cat >>confdefs.h <<\_ACEOF
38347 #define HAVE_CHECK_ACL 1
38348 _ACEOF
38349
38350
38351 else
38352 $as_echo "$as_me: failed program was:" >&5
38353 sed 's/^/| /' conftest.$ac_ext >&5
38354
38355 { $as_echo "$as_me:$LINENO: result: no" >&5
38356 $as_echo "no" >&6; }
38357
38358
38359
38360 fi
38361
38362 rm -Rf build
38363
38364
38365
38366
38367 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() wants flags" >&5
38368 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
38369
38370
38371 cat confdefs.h - <<_ACEOF >conftest.c
38372 /* confdefs.h. */
38373 _ACEOF
38374 cat confdefs.h >>conftest.$ac_ext
38375 cat >>conftest.$ac_ext <<_ACEOF
38376 /* end confdefs.h. */
38377
38378
38379 #include <linux/fs.h>
38380
38381 int check_acl_fn(struct inode *inode, int mask,
38382 unsigned int flags) { return 0; }
38383
38384 static const struct inode_operations
38385 iops __attribute__ ((unused)) = {
38386 .check_acl = check_acl_fn,
38387 };
38388
38389 int
38390 main (void)
38391 {
38392
38393
38394 ;
38395 return 0;
38396 }
38397
38398 _ACEOF
38399
38400
38401
38402 cat - <<_ACEOF >conftest.h
38403
38404 _ACEOF
38405
38406
38407 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38408 echo "obj-m := conftest.o" >build/Makefile
38409 modpost_flag=''
38410 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38411 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38413 (eval $ac_try) 2>&5
38414 ac_status=$?
38415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38416 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38418 (eval $ac_try) 2>&5
38419 ac_status=$?
38420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38421 (exit $ac_status); }; }; then
38422
38423 { $as_echo "$as_me:$LINENO: result: yes" >&5
38424 $as_echo "yes" >&6; }
38425
38426 cat >>confdefs.h <<\_ACEOF
38427 #define HAVE_CHECK_ACL 1
38428 _ACEOF
38429
38430
38431 cat >>confdefs.h <<\_ACEOF
38432 #define HAVE_CHECK_ACL_WITH_FLAGS 1
38433 _ACEOF
38434
38435
38436 else
38437 $as_echo "$as_me: failed program was:" >&5
38438 sed 's/^/| /' conftest.$ac_ext >&5
38439
38440 { $as_echo "$as_me:$LINENO: result: no" >&5
38441 $as_echo "no" >&6; }
38442
38443
38444
38445 fi
38446
38447 rm -Rf build
38448
38449
38450
38451
38452 { $as_echo "$as_me:$LINENO: checking whether iops->get_acl() exists" >&5
38453 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
38454
38455
38456 cat confdefs.h - <<_ACEOF >conftest.c
38457 /* confdefs.h. */
38458 _ACEOF
38459 cat confdefs.h >>conftest.$ac_ext
38460 cat >>conftest.$ac_ext <<_ACEOF
38461 /* end confdefs.h. */
38462
38463
38464 #include <linux/fs.h>
38465
38466 struct posix_acl *get_acl_fn(struct inode *inode, int type)
38467 { return NULL; }
38468
38469 static const struct inode_operations
38470 iops __attribute__ ((unused)) = {
38471 .get_acl = get_acl_fn,
38472 };
38473
38474 int
38475 main (void)
38476 {
38477
38478
38479 ;
38480 return 0;
38481 }
38482
38483 _ACEOF
38484
38485
38486
38487 cat - <<_ACEOF >conftest.h
38488
38489 _ACEOF
38490
38491
38492 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38493 echo "obj-m := conftest.o" >build/Makefile
38494 modpost_flag=''
38495 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38496 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38498 (eval $ac_try) 2>&5
38499 ac_status=$?
38500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38501 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38503 (eval $ac_try) 2>&5
38504 ac_status=$?
38505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38506 (exit $ac_status); }; }; then
38507
38508 { $as_echo "$as_me:$LINENO: result: yes" >&5
38509 $as_echo "yes" >&6; }
38510
38511 cat >>confdefs.h <<\_ACEOF
38512 #define HAVE_GET_ACL 1
38513 _ACEOF
38514
38515
38516 else
38517 $as_echo "$as_me: failed program was:" >&5
38518 sed 's/^/| /' conftest.$ac_ext >&5
38519
38520 { $as_echo "$as_me:$LINENO: result: no" >&5
38521 $as_echo "no" >&6; }
38522
38523
38524
38525 fi
38526
38527 rm -Rf build
38528
38529
38530
38531
38532 { $as_echo "$as_me:$LINENO: checking whether iops->set_acl() exists" >&5
38533 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
38534
38535
38536 cat confdefs.h - <<_ACEOF >conftest.c
38537 /* confdefs.h. */
38538 _ACEOF
38539 cat confdefs.h >>conftest.$ac_ext
38540 cat >>conftest.$ac_ext <<_ACEOF
38541 /* end confdefs.h. */
38542
38543
38544 #include <linux/fs.h>
38545
38546 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
38547 { return 0; }
38548
38549 static const struct inode_operations
38550 iops __attribute__ ((unused)) = {
38551 .set_acl = set_acl_fn,
38552 };
38553
38554 int
38555 main (void)
38556 {
38557
38558
38559 ;
38560 return 0;
38561 }
38562
38563 _ACEOF
38564
38565
38566
38567 cat - <<_ACEOF >conftest.h
38568
38569 _ACEOF
38570
38571
38572 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38573 echo "obj-m := conftest.o" >build/Makefile
38574 modpost_flag=''
38575 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38576 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38578 (eval $ac_try) 2>&5
38579 ac_status=$?
38580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38581 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38583 (eval $ac_try) 2>&5
38584 ac_status=$?
38585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38586 (exit $ac_status); }; }; then
38587
38588 { $as_echo "$as_me:$LINENO: result: yes" >&5
38589 $as_echo "yes" >&6; }
38590
38591 cat >>confdefs.h <<\_ACEOF
38592 #define HAVE_SET_ACL 1
38593 _ACEOF
38594
38595
38596 else
38597 $as_echo "$as_me: failed program was:" >&5
38598 sed 's/^/| /' conftest.$ac_ext >&5
38599
38600 { $as_echo "$as_me:$LINENO: result: no" >&5
38601 $as_echo "no" >&6; }
38602
38603
38604
38605 fi
38606
38607 rm -Rf build
38608
38609
38610
38611
38612
38613 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a path" >&5
38614 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
38615
38616
38617 cat confdefs.h - <<_ACEOF >conftest.c
38618 /* confdefs.h. */
38619 _ACEOF
38620 cat confdefs.h >>conftest.$ac_ext
38621 cat >>conftest.$ac_ext <<_ACEOF
38622 /* end confdefs.h. */
38623
38624
38625 #include <linux/fs.h>
38626
38627 int test_getattr(
38628 const struct path *p, struct kstat *k,
38629 u32 request_mask, unsigned int query_flags)
38630 { return 0; }
38631
38632 static const struct inode_operations
38633 iops __attribute__ ((unused)) = {
38634 .getattr = test_getattr,
38635 };
38636
38637 int
38638 main (void)
38639 {
38640
38641
38642 ;
38643 return 0;
38644 }
38645
38646 _ACEOF
38647
38648
38649
38650 cat - <<_ACEOF >conftest.h
38651
38652 _ACEOF
38653
38654
38655 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38656 echo "obj-m := conftest.o" >build/Makefile
38657 modpost_flag=''
38658 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38659 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38661 (eval $ac_try) 2>&5
38662 ac_status=$?
38663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38664 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38666 (eval $ac_try) 2>&5
38667 ac_status=$?
38668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38669 (exit $ac_status); }; }; then
38670
38671 { $as_echo "$as_me:$LINENO: result: yes" >&5
38672 $as_echo "yes" >&6; }
38673
38674 cat >>confdefs.h <<\_ACEOF
38675 #define HAVE_PATH_IOPS_GETATTR 1
38676 _ACEOF
38677
38678
38679 else
38680 $as_echo "$as_me: failed program was:" >&5
38681 sed 's/^/| /' conftest.$ac_ext >&5
38682
38683 { $as_echo "$as_me:$LINENO: result: no" >&5
38684 $as_echo "no" >&6; }
38685
38686
38687
38688 fi
38689
38690 rm -Rf build
38691
38692
38693
38694
38695 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a vfsmount" >&5
38696 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
38697
38698
38699 cat confdefs.h - <<_ACEOF >conftest.c
38700 /* confdefs.h. */
38701 _ACEOF
38702 cat confdefs.h >>conftest.$ac_ext
38703 cat >>conftest.$ac_ext <<_ACEOF
38704 /* end confdefs.h. */
38705
38706
38707 #include <linux/fs.h>
38708
38709 int test_getattr(
38710 struct vfsmount *mnt, struct dentry *d,
38711 struct kstat *k)
38712 { return 0; }
38713
38714 static const struct inode_operations
38715 iops __attribute__ ((unused)) = {
38716 .getattr = test_getattr,
38717 };
38718
38719 int
38720 main (void)
38721 {
38722
38723
38724 ;
38725 return 0;
38726 }
38727
38728 _ACEOF
38729
38730
38731
38732 cat - <<_ACEOF >conftest.h
38733
38734 _ACEOF
38735
38736
38737 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38738 echo "obj-m := conftest.o" >build/Makefile
38739 modpost_flag=''
38740 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38741 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38743 (eval $ac_try) 2>&5
38744 ac_status=$?
38745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38746 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38748 (eval $ac_try) 2>&5
38749 ac_status=$?
38750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38751 (exit $ac_status); }; }; then
38752
38753 { $as_echo "$as_me:$LINENO: result: yes" >&5
38754 $as_echo "yes" >&6; }
38755
38756 cat >>confdefs.h <<\_ACEOF
38757 #define HAVE_VFSMOUNT_IOPS_GETATTR 1
38758 _ACEOF
38759
38760
38761 else
38762 $as_echo "$as_me: failed program was:" >&5
38763 sed 's/^/| /' conftest.$ac_ext >&5
38764
38765 { $as_echo "$as_me:$LINENO: result: no" >&5
38766 $as_echo "no" >&6; }
38767
38768
38769
38770 fi
38771
38772 rm -Rf build
38773
38774
38775
38776
38777
38778 { $as_echo "$as_me:$LINENO: checking whether inode_set_flags() exists" >&5
38779 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
38780
38781
38782 cat confdefs.h - <<_ACEOF >conftest.c
38783 /* confdefs.h. */
38784 _ACEOF
38785 cat confdefs.h >>conftest.$ac_ext
38786 cat >>conftest.$ac_ext <<_ACEOF
38787 /* end confdefs.h. */
38788
38789
38790 #include <linux/fs.h>
38791
38792 int
38793 main (void)
38794 {
38795
38796 struct inode inode;
38797 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
38798
38799 ;
38800 return 0;
38801 }
38802
38803 _ACEOF
38804
38805
38806
38807 cat - <<_ACEOF >conftest.h
38808
38809 _ACEOF
38810
38811
38812 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38813 echo "obj-m := conftest.o" >build/Makefile
38814 modpost_flag=''
38815 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38816 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38818 (eval $ac_try) 2>&5
38819 ac_status=$?
38820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38821 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38823 (eval $ac_try) 2>&5
38824 ac_status=$?
38825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38826 (exit $ac_status); }; }; then
38827
38828 { $as_echo "$as_me:$LINENO: result: yes" >&5
38829 $as_echo "yes" >&6; }
38830
38831 cat >>confdefs.h <<\_ACEOF
38832 #define HAVE_INODE_SET_FLAGS 1
38833 _ACEOF
38834
38835
38836 else
38837 $as_echo "$as_me: failed program was:" >&5
38838 sed 's/^/| /' conftest.$ac_ext >&5
38839
38840 { $as_echo "$as_me:$LINENO: result: no" >&5
38841 $as_echo "no" >&6; }
38842
38843
38844
38845 fi
38846
38847 rm -Rf build
38848
38849
38850
38851
38852 { $as_echo "$as_me:$LINENO: checking whether uncached_acl_sentinel() exists" >&5
38853 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
38854
38855
38856 cat confdefs.h - <<_ACEOF >conftest.c
38857 /* confdefs.h. */
38858 _ACEOF
38859 cat confdefs.h >>conftest.$ac_ext
38860 cat >>conftest.$ac_ext <<_ACEOF
38861 /* end confdefs.h. */
38862
38863
38864 #include <linux/fs.h>
38865
38866 int
38867 main (void)
38868 {
38869
38870 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
38871
38872 ;
38873 return 0;
38874 }
38875
38876 _ACEOF
38877
38878
38879
38880 cat - <<_ACEOF >conftest.h
38881
38882 _ACEOF
38883
38884
38885 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38886 echo "obj-m := conftest.o" >build/Makefile
38887 modpost_flag=''
38888 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38889 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38891 (eval $ac_try) 2>&5
38892 ac_status=$?
38893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38894 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38896 (eval $ac_try) 2>&5
38897 ac_status=$?
38898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38899 (exit $ac_status); }; }; then
38900
38901 { $as_echo "$as_me:$LINENO: result: yes" >&5
38902 $as_echo "yes" >&6; }
38903
38904 cat >>confdefs.h <<\_ACEOF
38905 #define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1
38906 _ACEOF
38907
38908
38909 else
38910 $as_echo "$as_me: failed program was:" >&5
38911 sed 's/^/| /' conftest.$ac_ext >&5
38912
38913 { $as_echo "$as_me:$LINENO: result: no" >&5
38914 $as_echo "no" >&6; }
38915
38916
38917
38918 fi
38919
38920 rm -Rf build
38921
38922
38923
38924
38925 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
38926 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
38927
38928
38929
38930 cat confdefs.h - <<_ACEOF >conftest.c
38931 /* confdefs.h. */
38932 _ACEOF
38933 cat confdefs.h >>conftest.$ac_ext
38934 cat >>conftest.$ac_ext <<_ACEOF
38935 /* end confdefs.h. */
38936
38937
38938 #include <linux/fs.h>
38939
38940 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
38941 static struct super_operations sops __attribute__ ((unused)) = {
38942 .show_options = show_options,
38943 };
38944
38945 int
38946 main (void)
38947 {
38948
38949
38950 ;
38951 return 0;
38952 }
38953
38954 _ACEOF
38955
38956
38957
38958 cat - <<_ACEOF >conftest.h
38959
38960 _ACEOF
38961
38962
38963 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38964 echo "obj-m := conftest.o" >build/Makefile
38965 modpost_flag=''
38966 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38967 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38969 (eval $ac_try) 2>&5
38970 ac_status=$?
38971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38972 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38974 (eval $ac_try) 2>&5
38975 ac_status=$?
38976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38977 (exit $ac_status); }; }; then
38978
38979 { $as_echo "$as_me:$LINENO: result: yes" >&5
38980 $as_echo "yes" >&6; }
38981
38982 cat >>confdefs.h <<\_ACEOF
38983 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
38984 _ACEOF
38985
38986
38987 else
38988 $as_echo "$as_me: failed program was:" >&5
38989 sed 's/^/| /' conftest.$ac_ext >&5
38990
38991 { $as_echo "$as_me:$LINENO: result: no" >&5
38992 $as_echo "no" >&6; }
38993
38994
38995
38996 fi
38997
38998 rm -Rf build
38999
39000
39001
39002
39003 { $as_echo "$as_me:$LINENO: checking whether file_inode() is available" >&5
39004 $as_echo_n "checking whether file_inode() is available... " >&6; }
39005
39006
39007 cat confdefs.h - <<_ACEOF >conftest.c
39008 /* confdefs.h. */
39009 _ACEOF
39010 cat confdefs.h >>conftest.$ac_ext
39011 cat >>conftest.$ac_ext <<_ACEOF
39012 /* end confdefs.h. */
39013
39014
39015 #include <linux/fs.h>
39016
39017 int
39018 main (void)
39019 {
39020
39021 struct file *f = NULL;
39022 file_inode(f);
39023
39024 ;
39025 return 0;
39026 }
39027
39028 _ACEOF
39029
39030
39031
39032 cat - <<_ACEOF >conftest.h
39033
39034 _ACEOF
39035
39036
39037 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39038 echo "obj-m := conftest.o" >build/Makefile
39039 modpost_flag=''
39040 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39041 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39043 (eval $ac_try) 2>&5
39044 ac_status=$?
39045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39046 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39048 (eval $ac_try) 2>&5
39049 ac_status=$?
39050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39051 (exit $ac_status); }; }; then
39052
39053 { $as_echo "$as_me:$LINENO: result: yes" >&5
39054 $as_echo "yes" >&6; }
39055
39056 cat >>confdefs.h <<\_ACEOF
39057 #define HAVE_FILE_INODE 1
39058 _ACEOF
39059
39060
39061 else
39062 $as_echo "$as_me: failed program was:" >&5
39063 sed 's/^/| /' conftest.$ac_ext >&5
39064
39065 { $as_echo "$as_me:$LINENO: result: no" >&5
39066 $as_echo "no" >&6; }
39067
39068
39069
39070 fi
39071
39072 rm -Rf build
39073
39074
39075
39076
39077 { $as_echo "$as_me:$LINENO: checking whether file_dentry() is available" >&5
39078 $as_echo_n "checking whether file_dentry() is available... " >&6; }
39079
39080
39081 cat confdefs.h - <<_ACEOF >conftest.c
39082 /* confdefs.h. */
39083 _ACEOF
39084 cat confdefs.h >>conftest.$ac_ext
39085 cat >>conftest.$ac_ext <<_ACEOF
39086 /* end confdefs.h. */
39087
39088
39089 #include <linux/fs.h>
39090
39091 int
39092 main (void)
39093 {
39094
39095 struct file *f = NULL;
39096 file_dentry(f);
39097
39098 ;
39099 return 0;
39100 }
39101
39102 _ACEOF
39103
39104
39105
39106 cat - <<_ACEOF >conftest.h
39107
39108 _ACEOF
39109
39110
39111 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39112 echo "obj-m := conftest.o" >build/Makefile
39113 modpost_flag=''
39114 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39115 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39117 (eval $ac_try) 2>&5
39118 ac_status=$?
39119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39120 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39122 (eval $ac_try) 2>&5
39123 ac_status=$?
39124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39125 (exit $ac_status); }; }; then
39126
39127 { $as_echo "$as_me:$LINENO: result: yes" >&5
39128 $as_echo "yes" >&6; }
39129
39130 cat >>confdefs.h <<\_ACEOF
39131 #define HAVE_FILE_DENTRY 1
39132 _ACEOF
39133
39134
39135 else
39136 $as_echo "$as_me: failed program was:" >&5
39137 sed 's/^/| /' conftest.$ac_ext >&5
39138
39139 { $as_echo "$as_me:$LINENO: result: no" >&5
39140 $as_echo "no" >&6; }
39141
39142
39143
39144 fi
39145
39146 rm -Rf build
39147
39148
39149
39150
39151 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
39152 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
39153
39154
39155
39156 cat confdefs.h - <<_ACEOF >conftest.c
39157 /* confdefs.h. */
39158 _ACEOF
39159 cat confdefs.h >>conftest.$ac_ext
39160 cat >>conftest.$ac_ext <<_ACEOF
39161 /* end confdefs.h. */
39162
39163
39164 #include <linux/fs.h>
39165
39166 int test_fsync(struct file *f, struct dentry *dentry, int x)
39167 { return 0; }
39168
39169 static const struct file_operations
39170 fops __attribute__ ((unused)) = {
39171 .fsync = test_fsync,
39172 };
39173
39174 int
39175 main (void)
39176 {
39177
39178
39179 ;
39180 return 0;
39181 }
39182
39183 _ACEOF
39184
39185
39186
39187 cat - <<_ACEOF >conftest.h
39188
39189 _ACEOF
39190
39191
39192 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39193 echo "obj-m := conftest.o" >build/Makefile
39194 modpost_flag=''
39195 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39196 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39198 (eval $ac_try) 2>&5
39199 ac_status=$?
39200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39201 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39203 (eval $ac_try) 2>&5
39204 ac_status=$?
39205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39206 (exit $ac_status); }; }; then
39207
39208 { $as_echo "$as_me:$LINENO: result: dentry" >&5
39209 $as_echo "dentry" >&6; }
39210
39211 cat >>confdefs.h <<\_ACEOF
39212 #define HAVE_FSYNC_WITH_DENTRY 1
39213 _ACEOF
39214
39215
39216 else
39217 $as_echo "$as_me: failed program was:" >&5
39218 sed 's/^/| /' conftest.$ac_ext >&5
39219
39220
39221
39222
39223 fi
39224
39225 rm -Rf build
39226
39227
39228
39229
39230
39231
39232 cat confdefs.h - <<_ACEOF >conftest.c
39233 /* confdefs.h. */
39234 _ACEOF
39235 cat confdefs.h >>conftest.$ac_ext
39236 cat >>conftest.$ac_ext <<_ACEOF
39237 /* end confdefs.h. */
39238
39239
39240 #include <linux/fs.h>
39241
39242 int test_fsync(struct file *f, int x) { return 0; }
39243
39244 static const struct file_operations
39245 fops __attribute__ ((unused)) = {
39246 .fsync = test_fsync,
39247 };
39248
39249 int
39250 main (void)
39251 {
39252
39253
39254 ;
39255 return 0;
39256 }
39257
39258 _ACEOF
39259
39260
39261
39262 cat - <<_ACEOF >conftest.h
39263
39264 _ACEOF
39265
39266
39267 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39268 echo "obj-m := conftest.o" >build/Makefile
39269 modpost_flag=''
39270 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39271 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39273 (eval $ac_try) 2>&5
39274 ac_status=$?
39275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39276 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39278 (eval $ac_try) 2>&5
39279 ac_status=$?
39280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39281 (exit $ac_status); }; }; then
39282
39283 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
39284 $as_echo "no dentry" >&6; }
39285
39286 cat >>confdefs.h <<\_ACEOF
39287 #define HAVE_FSYNC_WITHOUT_DENTRY 1
39288 _ACEOF
39289
39290
39291 else
39292 $as_echo "$as_me: failed program was:" >&5
39293 sed 's/^/| /' conftest.$ac_ext >&5
39294
39295
39296
39297
39298 fi
39299
39300 rm -Rf build
39301
39302
39303
39304
39305
39306
39307 cat confdefs.h - <<_ACEOF >conftest.c
39308 /* confdefs.h. */
39309 _ACEOF
39310 cat confdefs.h >>conftest.$ac_ext
39311 cat >>conftest.$ac_ext <<_ACEOF
39312 /* end confdefs.h. */
39313
39314
39315 #include <linux/fs.h>
39316
39317 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
39318 { return 0; }
39319
39320 static const struct file_operations
39321 fops __attribute__ ((unused)) = {
39322 .fsync = test_fsync,
39323 };
39324
39325 int
39326 main (void)
39327 {
39328
39329
39330 ;
39331 return 0;
39332 }
39333
39334 _ACEOF
39335
39336
39337
39338 cat - <<_ACEOF >conftest.h
39339
39340 _ACEOF
39341
39342
39343 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39344 echo "obj-m := conftest.o" >build/Makefile
39345 modpost_flag=''
39346 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39347 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39349 (eval $ac_try) 2>&5
39350 ac_status=$?
39351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39352 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39354 (eval $ac_try) 2>&5
39355 ac_status=$?
39356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39357 (exit $ac_status); }; }; then
39358
39359 { $as_echo "$as_me:$LINENO: result: range" >&5
39360 $as_echo "range" >&6; }
39361
39362 cat >>confdefs.h <<\_ACEOF
39363 #define HAVE_FSYNC_RANGE 1
39364 _ACEOF
39365
39366
39367 else
39368 $as_echo "$as_me: failed program was:" >&5
39369 sed 's/^/| /' conftest.$ac_ext >&5
39370
39371
39372
39373
39374 fi
39375
39376 rm -Rf build
39377
39378
39379
39380
39381
39382 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
39383 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
39384
39385
39386 cat confdefs.h - <<_ACEOF >conftest.c
39387 /* confdefs.h. */
39388 _ACEOF
39389 cat confdefs.h >>conftest.$ac_ext
39390 cat >>conftest.$ac_ext <<_ACEOF
39391 /* end confdefs.h. */
39392
39393
39394 #include <linux/fs.h>
39395 void evict_inode (struct inode * t) { return; }
39396 static struct super_operations sops __attribute__ ((unused)) = {
39397 .evict_inode = evict_inode,
39398 };
39399
39400 int
39401 main (void)
39402 {
39403
39404
39405 ;
39406 return 0;
39407 }
39408
39409 _ACEOF
39410
39411
39412
39413 cat - <<_ACEOF >conftest.h
39414
39415 _ACEOF
39416
39417
39418 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39419 echo "obj-m := conftest.o" >build/Makefile
39420 modpost_flag=''
39421 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39422 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39424 (eval $ac_try) 2>&5
39425 ac_status=$?
39426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39427 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39429 (eval $ac_try) 2>&5
39430 ac_status=$?
39431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39432 (exit $ac_status); }; }; then
39433
39434 { $as_echo "$as_me:$LINENO: result: yes" >&5
39435 $as_echo "yes" >&6; }
39436
39437 cat >>confdefs.h <<\_ACEOF
39438 #define HAVE_EVICT_INODE 1
39439 _ACEOF
39440
39441
39442 else
39443 $as_echo "$as_me: failed program was:" >&5
39444 sed 's/^/| /' conftest.$ac_ext >&5
39445
39446 { $as_echo "$as_me:$LINENO: result: no" >&5
39447 $as_echo "no" >&6; }
39448
39449
39450
39451 fi
39452
39453 rm -Rf build
39454
39455
39456
39457
39458 { $as_echo "$as_me:$LINENO: checking whether sops->dirty_inode() wants flags" >&5
39459 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
39460
39461
39462 cat confdefs.h - <<_ACEOF >conftest.c
39463 /* confdefs.h. */
39464 _ACEOF
39465 cat confdefs.h >>conftest.$ac_ext
39466 cat >>conftest.$ac_ext <<_ACEOF
39467 /* end confdefs.h. */
39468
39469
39470 #include <linux/fs.h>
39471
39472 void dirty_inode(struct inode *a, int b) { return; }
39473
39474 static const struct super_operations
39475 sops __attribute__ ((unused)) = {
39476 .dirty_inode = dirty_inode,
39477 };
39478
39479 int
39480 main (void)
39481 {
39482
39483
39484 ;
39485 return 0;
39486 }
39487
39488 _ACEOF
39489
39490
39491
39492 cat - <<_ACEOF >conftest.h
39493
39494 _ACEOF
39495
39496
39497 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39498 echo "obj-m := conftest.o" >build/Makefile
39499 modpost_flag=''
39500 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39501 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39503 (eval $ac_try) 2>&5
39504 ac_status=$?
39505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39506 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39508 (eval $ac_try) 2>&5
39509 ac_status=$?
39510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39511 (exit $ac_status); }; }; then
39512
39513 { $as_echo "$as_me:$LINENO: result: yes" >&5
39514 $as_echo "yes" >&6; }
39515
39516 cat >>confdefs.h <<\_ACEOF
39517 #define HAVE_DIRTY_INODE_WITH_FLAGS 1
39518 _ACEOF
39519
39520
39521 else
39522 $as_echo "$as_me: failed program was:" >&5
39523 sed 's/^/| /' conftest.$ac_ext >&5
39524
39525 { $as_echo "$as_me:$LINENO: result: no" >&5
39526 $as_echo "no" >&6; }
39527
39528
39529
39530 fi
39531
39532 rm -Rf build
39533
39534
39535
39536
39537 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
39538 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
39539
39540
39541 cat confdefs.h - <<_ACEOF >conftest.c
39542 /* confdefs.h. */
39543 _ACEOF
39544 cat confdefs.h >>conftest.$ac_ext
39545 cat >>conftest.$ac_ext <<_ACEOF
39546 /* end confdefs.h. */
39547
39548
39549 #include <linux/fs.h>
39550
39551 int nr_cached_objects(struct super_block *sb) { return 0; }
39552
39553 static const struct super_operations
39554 sops __attribute__ ((unused)) = {
39555 .nr_cached_objects = nr_cached_objects,
39556 };
39557
39558 int
39559 main (void)
39560 {
39561
39562
39563 ;
39564 return 0;
39565 }
39566
39567 _ACEOF
39568
39569
39570
39571 cat - <<_ACEOF >conftest.h
39572
39573 _ACEOF
39574
39575
39576 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39577 echo "obj-m := conftest.o" >build/Makefile
39578 modpost_flag=''
39579 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39580 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39582 (eval $ac_try) 2>&5
39583 ac_status=$?
39584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39585 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39587 (eval $ac_try) 2>&5
39588 ac_status=$?
39589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39590 (exit $ac_status); }; }; then
39591
39592 { $as_echo "$as_me:$LINENO: result: yes" >&5
39593 $as_echo "yes" >&6; }
39594
39595 cat >>confdefs.h <<\_ACEOF
39596 #define HAVE_NR_CACHED_OBJECTS 1
39597 _ACEOF
39598
39599
39600 else
39601 $as_echo "$as_me: failed program was:" >&5
39602 sed 's/^/| /' conftest.$ac_ext >&5
39603
39604 { $as_echo "$as_me:$LINENO: result: no" >&5
39605 $as_echo "no" >&6; }
39606
39607
39608
39609 fi
39610
39611 rm -Rf build
39612
39613
39614
39615
39616 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
39617 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
39618
39619
39620 cat confdefs.h - <<_ACEOF >conftest.c
39621 /* confdefs.h. */
39622 _ACEOF
39623 cat confdefs.h >>conftest.$ac_ext
39624 cat >>conftest.$ac_ext <<_ACEOF
39625 /* end confdefs.h. */
39626
39627
39628 #include <linux/fs.h>
39629
39630 void free_cached_objects(struct super_block *sb, int x)
39631 { return; }
39632
39633 static const struct super_operations
39634 sops __attribute__ ((unused)) = {
39635 .free_cached_objects = free_cached_objects,
39636 };
39637
39638 int
39639 main (void)
39640 {
39641
39642
39643 ;
39644 return 0;
39645 }
39646
39647 _ACEOF
39648
39649
39650
39651 cat - <<_ACEOF >conftest.h
39652
39653 _ACEOF
39654
39655
39656 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39657 echo "obj-m := conftest.o" >build/Makefile
39658 modpost_flag=''
39659 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39660 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39662 (eval $ac_try) 2>&5
39663 ac_status=$?
39664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39665 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39667 (eval $ac_try) 2>&5
39668 ac_status=$?
39669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39670 (exit $ac_status); }; }; then
39671
39672 { $as_echo "$as_me:$LINENO: result: yes" >&5
39673 $as_echo "yes" >&6; }
39674
39675 cat >>confdefs.h <<\_ACEOF
39676 #define HAVE_FREE_CACHED_OBJECTS 1
39677 _ACEOF
39678
39679
39680 else
39681 $as_echo "$as_me: failed program was:" >&5
39682 sed 's/^/| /' conftest.$ac_ext >&5
39683
39684 { $as_echo "$as_me:$LINENO: result: no" >&5
39685 $as_echo "no" >&6; }
39686
39687
39688
39689 fi
39690
39691 rm -Rf build
39692
39693
39694
39695
39696
39697 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
39698 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
39699
39700
39701 cat confdefs.h - <<_ACEOF >conftest.c
39702 /* confdefs.h. */
39703 _ACEOF
39704 cat confdefs.h >>conftest.$ac_ext
39705 cat >>conftest.$ac_ext <<_ACEOF
39706 /* end confdefs.h. */
39707
39708
39709 #include <linux/fs.h>
39710
39711 long test_fallocate(struct file *file, int mode,
39712 loff_t offset, loff_t len) { return 0; }
39713
39714 static const struct file_operations
39715 fops __attribute__ ((unused)) = {
39716 .fallocate = test_fallocate,
39717 };
39718
39719 int
39720 main (void)
39721 {
39722
39723
39724 ;
39725 return 0;
39726 }
39727
39728 _ACEOF
39729
39730
39731
39732 cat - <<_ACEOF >conftest.h
39733
39734 _ACEOF
39735
39736
39737 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39738 echo "obj-m := conftest.o" >build/Makefile
39739 modpost_flag=''
39740 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39741 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39743 (eval $ac_try) 2>&5
39744 ac_status=$?
39745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39746 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39748 (eval $ac_try) 2>&5
39749 ac_status=$?
39750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39751 (exit $ac_status); }; }; then
39752
39753 { $as_echo "$as_me:$LINENO: result: yes" >&5
39754 $as_echo "yes" >&6; }
39755
39756 cat >>confdefs.h <<\_ACEOF
39757 #define HAVE_FILE_FALLOCATE 1
39758 _ACEOF
39759
39760
39761 else
39762 $as_echo "$as_me: failed program was:" >&5
39763 sed 's/^/| /' conftest.$ac_ext >&5
39764
39765 { $as_echo "$as_me:$LINENO: result: no" >&5
39766 $as_echo "no" >&6; }
39767
39768
39769
39770 fi
39771
39772 rm -Rf build
39773
39774
39775
39776
39777 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
39778 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
39779
39780
39781 cat confdefs.h - <<_ACEOF >conftest.c
39782 /* confdefs.h. */
39783 _ACEOF
39784 cat confdefs.h >>conftest.$ac_ext
39785 cat >>conftest.$ac_ext <<_ACEOF
39786 /* end confdefs.h. */
39787
39788
39789 #include <linux/fs.h>
39790
39791 long test_fallocate(struct inode *inode, int mode,
39792 loff_t offset, loff_t len) { return 0; }
39793
39794 static const struct inode_operations
39795 fops __attribute__ ((unused)) = {
39796 .fallocate = test_fallocate,
39797 };
39798
39799 int
39800 main (void)
39801 {
39802
39803
39804 ;
39805 return 0;
39806 }
39807
39808 _ACEOF
39809
39810
39811
39812 cat - <<_ACEOF >conftest.h
39813
39814 _ACEOF
39815
39816
39817 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39818 echo "obj-m := conftest.o" >build/Makefile
39819 modpost_flag=''
39820 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39821 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39823 (eval $ac_try) 2>&5
39824 ac_status=$?
39825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39826 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39828 (eval $ac_try) 2>&5
39829 ac_status=$?
39830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39831 (exit $ac_status); }; }; then
39832
39833 { $as_echo "$as_me:$LINENO: result: yes" >&5
39834 $as_echo "yes" >&6; }
39835
39836 cat >>confdefs.h <<\_ACEOF
39837 #define HAVE_INODE_FALLOCATE 1
39838 _ACEOF
39839
39840
39841 else
39842 $as_echo "$as_me: failed program was:" >&5
39843 sed 's/^/| /' conftest.$ac_ext >&5
39844
39845 { $as_echo "$as_me:$LINENO: result: no" >&5
39846 $as_echo "no" >&6; }
39847
39848
39849
39850 fi
39851
39852 rm -Rf build
39853
39854
39855
39856
39857
39858 { $as_echo "$as_me:$LINENO: checking whether fops->aio_fsync() exists" >&5
39859 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
39860
39861
39862 cat confdefs.h - <<_ACEOF >conftest.c
39863 /* confdefs.h. */
39864 _ACEOF
39865 cat confdefs.h >>conftest.$ac_ext
39866 cat >>conftest.$ac_ext <<_ACEOF
39867 /* end confdefs.h. */
39868
39869
39870 #include <linux/fs.h>
39871
39872 static const struct file_operations
39873 fops __attribute__ ((unused)) = {
39874 .aio_fsync = NULL,
39875 };
39876
39877 int
39878 main (void)
39879 {
39880
39881
39882 ;
39883 return 0;
39884 }
39885
39886 _ACEOF
39887
39888
39889
39890 cat - <<_ACEOF >conftest.h
39891
39892 _ACEOF
39893
39894
39895 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39896 echo "obj-m := conftest.o" >build/Makefile
39897 modpost_flag=''
39898 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39899 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39901 (eval $ac_try) 2>&5
39902 ac_status=$?
39903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39904 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39906 (eval $ac_try) 2>&5
39907 ac_status=$?
39908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39909 (exit $ac_status); }; }; then
39910
39911 { $as_echo "$as_me:$LINENO: result: yes" >&5
39912 $as_echo "yes" >&6; }
39913
39914 cat >>confdefs.h <<\_ACEOF
39915 #define HAVE_FILE_AIO_FSYNC 1
39916 _ACEOF
39917
39918
39919 else
39920 $as_echo "$as_me: failed program was:" >&5
39921 sed 's/^/| /' conftest.$ac_ext >&5
39922
39923 { $as_echo "$as_me:$LINENO: result: no" >&5
39924 $as_echo "no" >&6; }
39925
39926
39927
39928 fi
39929
39930 rm -Rf build
39931
39932
39933
39934
39935 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
39936 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
39937
39938
39939 cat confdefs.h - <<_ACEOF >conftest.c
39940 /* confdefs.h. */
39941 _ACEOF
39942 cat confdefs.h >>conftest.$ac_ext
39943 cat >>conftest.$ac_ext <<_ACEOF
39944 /* end confdefs.h. */
39945
39946
39947 #include <linux/fs.h>
39948
39949 int mkdir(struct inode *inode, struct dentry *dentry,
39950 umode_t umode) { return 0; }
39951
39952 static const struct inode_operations
39953 iops __attribute__ ((unused)) = {
39954 .mkdir = mkdir,
39955 };
39956
39957 int
39958 main (void)
39959 {
39960
39961
39962 ;
39963 return 0;
39964 }
39965
39966 _ACEOF
39967
39968
39969
39970 cat - <<_ACEOF >conftest.h
39971
39972 _ACEOF
39973
39974
39975 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39976 echo "obj-m := conftest.o" >build/Makefile
39977 modpost_flag=''
39978 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39979 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39981 (eval $ac_try) 2>&5
39982 ac_status=$?
39983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39984 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39986 (eval $ac_try) 2>&5
39987 ac_status=$?
39988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39989 (exit $ac_status); }; }; then
39990
39991 { $as_echo "$as_me:$LINENO: result: yes" >&5
39992 $as_echo "yes" >&6; }
39993
39994 cat >>confdefs.h <<\_ACEOF
39995 #define HAVE_MKDIR_UMODE_T 1
39996 _ACEOF
39997
39998
39999 else
40000 $as_echo "$as_me: failed program was:" >&5
40001 sed 's/^/| /' conftest.$ac_ext >&5
40002
40003 { $as_echo "$as_me:$LINENO: result: no" >&5
40004 $as_echo "no" >&6; }
40005
40006
40007
40008 fi
40009
40010 rm -Rf build
40011
40012
40013
40014
40015 { $as_echo "$as_me:$LINENO: checking whether iops->lookup() passes nameidata" >&5
40016 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
40017
40018
40019 cat confdefs.h - <<_ACEOF >conftest.c
40020 /* confdefs.h. */
40021 _ACEOF
40022 cat confdefs.h >>conftest.$ac_ext
40023 cat >>conftest.$ac_ext <<_ACEOF
40024 /* end confdefs.h. */
40025
40026
40027 #include <linux/fs.h>
40028
40029 struct dentry *inode_lookup(struct inode *inode,
40030 struct dentry *dentry, struct nameidata *nidata)
40031 { return NULL; }
40032
40033 static const struct inode_operations iops
40034 __attribute__ ((unused)) = {
40035 .lookup = inode_lookup,
40036 };
40037
40038 int
40039 main (void)
40040 {
40041
40042
40043 ;
40044 return 0;
40045 }
40046
40047 _ACEOF
40048
40049
40050
40051 cat - <<_ACEOF >conftest.h
40052
40053 _ACEOF
40054
40055
40056 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40057 echo "obj-m := conftest.o" >build/Makefile
40058 modpost_flag=''
40059 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40060 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40062 (eval $ac_try) 2>&5
40063 ac_status=$?
40064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40065 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40067 (eval $ac_try) 2>&5
40068 ac_status=$?
40069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40070 (exit $ac_status); }; }; then
40071
40072 { $as_echo "$as_me:$LINENO: result: yes" >&5
40073 $as_echo "yes" >&6; }
40074
40075 cat >>confdefs.h <<\_ACEOF
40076 #define HAVE_LOOKUP_NAMEIDATA 1
40077 _ACEOF
40078
40079
40080 else
40081 $as_echo "$as_me: failed program was:" >&5
40082 sed 's/^/| /' conftest.$ac_ext >&5
40083
40084 { $as_echo "$as_me:$LINENO: result: no" >&5
40085 $as_echo "no" >&6; }
40086
40087
40088
40089 fi
40090
40091 rm -Rf build
40092
40093
40094
40095
40096 { $as_echo "$as_me:$LINENO: checking whether iops->create() passes nameidata" >&5
40097 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
40098
40099
40100 cat confdefs.h - <<_ACEOF >conftest.c
40101 /* confdefs.h. */
40102 _ACEOF
40103 cat confdefs.h >>conftest.$ac_ext
40104 cat >>conftest.$ac_ext <<_ACEOF
40105 /* end confdefs.h. */
40106
40107
40108 #include <linux/fs.h>
40109
40110 #ifdef HAVE_MKDIR_UMODE_T
40111 int inode_create(struct inode *inode ,struct dentry *dentry,
40112 umode_t umode, struct nameidata *nidata) { return 0; }
40113 #else
40114 int inode_create(struct inode *inode,struct dentry *dentry,
40115 int umode, struct nameidata * nidata) { return 0; }
40116 #endif
40117
40118 static const struct inode_operations
40119 iops __attribute__ ((unused)) = {
40120 .create = inode_create,
40121 };
40122
40123 int
40124 main (void)
40125 {
40126
40127
40128 ;
40129 return 0;
40130 }
40131
40132 _ACEOF
40133
40134
40135
40136 cat - <<_ACEOF >conftest.h
40137
40138 _ACEOF
40139
40140
40141 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40142 echo "obj-m := conftest.o" >build/Makefile
40143 modpost_flag=''
40144 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40145 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40147 (eval $ac_try) 2>&5
40148 ac_status=$?
40149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40150 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40152 (eval $ac_try) 2>&5
40153 ac_status=$?
40154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40155 (exit $ac_status); }; }; then
40156
40157 { $as_echo "$as_me:$LINENO: result: yes" >&5
40158 $as_echo "yes" >&6; }
40159
40160 cat >>confdefs.h <<\_ACEOF
40161 #define HAVE_CREATE_NAMEIDATA 1
40162 _ACEOF
40163
40164
40165 else
40166 $as_echo "$as_me: failed program was:" >&5
40167 sed 's/^/| /' conftest.$ac_ext >&5
40168
40169 { $as_echo "$as_me:$LINENO: result: no" >&5
40170 $as_echo "no" >&6; }
40171
40172
40173
40174 fi
40175
40176 rm -Rf build
40177
40178
40179
40180
40181 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes delayed" >&5
40182 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
40183
40184
40185 cat confdefs.h - <<_ACEOF >conftest.c
40186 /* confdefs.h. */
40187 _ACEOF
40188 cat confdefs.h >>conftest.$ac_ext
40189 cat >>conftest.$ac_ext <<_ACEOF
40190 /* end confdefs.h. */
40191
40192
40193 #include <linux/fs.h>
40194 const char *get_link(struct dentry *de, struct inode *ip,
40195 struct delayed_call *done) { return "symlink"; }
40196 static struct inode_operations
40197 iops __attribute__ ((unused)) = {
40198 .get_link = get_link,
40199 };
40200
40201 int
40202 main (void)
40203 {
40204
40205
40206 ;
40207 return 0;
40208 }
40209
40210 _ACEOF
40211
40212
40213
40214 cat - <<_ACEOF >conftest.h
40215
40216 _ACEOF
40217
40218
40219 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40220 echo "obj-m := conftest.o" >build/Makefile
40221 modpost_flag=''
40222 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40223 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40225 (eval $ac_try) 2>&5
40226 ac_status=$?
40227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40228 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40230 (eval $ac_try) 2>&5
40231 ac_status=$?
40232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40233 (exit $ac_status); }; }; then
40234
40235 { $as_echo "$as_me:$LINENO: result: yes" >&5
40236 $as_echo "yes" >&6; }
40237
40238 cat >>confdefs.h <<\_ACEOF
40239 #define HAVE_GET_LINK_DELAYED 1
40240 _ACEOF
40241
40242
40243 else
40244 $as_echo "$as_me: failed program was:" >&5
40245 sed 's/^/| /' conftest.$ac_ext >&5
40246
40247 { $as_echo "$as_me:$LINENO: result: no" >&5
40248 $as_echo "no" >&6; }
40249 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes cookie" >&5
40250 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
40251
40252
40253 cat confdefs.h - <<_ACEOF >conftest.c
40254 /* confdefs.h. */
40255 _ACEOF
40256 cat confdefs.h >>conftest.$ac_ext
40257 cat >>conftest.$ac_ext <<_ACEOF
40258 /* end confdefs.h. */
40259
40260
40261 #include <linux/fs.h>
40262 const char *get_link(struct dentry *de, struct
40263 inode *ip, void **cookie) { return "symlink"; }
40264 static struct inode_operations
40265 iops __attribute__ ((unused)) = {
40266 .get_link = get_link,
40267 };
40268
40269 int
40270 main (void)
40271 {
40272
40273
40274 ;
40275 return 0;
40276 }
40277
40278 _ACEOF
40279
40280
40281
40282 cat - <<_ACEOF >conftest.h
40283
40284 _ACEOF
40285
40286
40287 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40288 echo "obj-m := conftest.o" >build/Makefile
40289 modpost_flag=''
40290 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40291 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40293 (eval $ac_try) 2>&5
40294 ac_status=$?
40295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40296 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40298 (eval $ac_try) 2>&5
40299 ac_status=$?
40300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40301 (exit $ac_status); }; }; then
40302
40303 { $as_echo "$as_me:$LINENO: result: yes" >&5
40304 $as_echo "yes" >&6; }
40305
40306 cat >>confdefs.h <<\_ACEOF
40307 #define HAVE_GET_LINK_COOKIE 1
40308 _ACEOF
40309
40310
40311 else
40312 $as_echo "$as_me: failed program was:" >&5
40313 sed 's/^/| /' conftest.$ac_ext >&5
40314
40315 { $as_echo "$as_me:$LINENO: result: no" >&5
40316 $as_echo "no" >&6; }
40317
40318 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes cookie" >&5
40319 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
40320
40321
40322 cat confdefs.h - <<_ACEOF >conftest.c
40323 /* confdefs.h. */
40324 _ACEOF
40325 cat confdefs.h >>conftest.$ac_ext
40326 cat >>conftest.$ac_ext <<_ACEOF
40327 /* end confdefs.h. */
40328
40329
40330 #include <linux/fs.h>
40331 const char *follow_link(struct dentry *de,
40332 void **cookie) { return "symlink"; }
40333 static struct inode_operations
40334 iops __attribute__ ((unused)) = {
40335 .follow_link = follow_link,
40336 };
40337
40338 int
40339 main (void)
40340 {
40341
40342
40343 ;
40344 return 0;
40345 }
40346
40347 _ACEOF
40348
40349
40350
40351 cat - <<_ACEOF >conftest.h
40352
40353 _ACEOF
40354
40355
40356 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40357 echo "obj-m := conftest.o" >build/Makefile
40358 modpost_flag=''
40359 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40360 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40362 (eval $ac_try) 2>&5
40363 ac_status=$?
40364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40365 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40367 (eval $ac_try) 2>&5
40368 ac_status=$?
40369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40370 (exit $ac_status); }; }; then
40371
40372 { $as_echo "$as_me:$LINENO: result: yes" >&5
40373 $as_echo "yes" >&6; }
40374
40375 cat >>confdefs.h <<\_ACEOF
40376 #define HAVE_FOLLOW_LINK_COOKIE 1
40377 _ACEOF
40378
40379
40380 else
40381 $as_echo "$as_me: failed program was:" >&5
40382 sed 's/^/| /' conftest.$ac_ext >&5
40383
40384 { $as_echo "$as_me:$LINENO: result: no" >&5
40385 $as_echo "no" >&6; }
40386 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes nameidata" >&5
40387 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
40388
40389
40390 cat confdefs.h - <<_ACEOF >conftest.c
40391 /* confdefs.h. */
40392 _ACEOF
40393 cat confdefs.h >>conftest.$ac_ext
40394 cat >>conftest.$ac_ext <<_ACEOF
40395 /* end confdefs.h. */
40396
40397
40398 #include <linux/fs.h>
40399 void *follow_link(struct dentry *de, struct
40400 nameidata *nd) { return (void *)NULL; }
40401 static struct inode_operations
40402 iops __attribute__ ((unused)) = {
40403 .follow_link = follow_link,
40404 };
40405
40406 int
40407 main (void)
40408 {
40409
40410
40411 ;
40412 return 0;
40413 }
40414
40415 _ACEOF
40416
40417
40418
40419 cat - <<_ACEOF >conftest.h
40420
40421 _ACEOF
40422
40423
40424 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40425 echo "obj-m := conftest.o" >build/Makefile
40426 modpost_flag=''
40427 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40428 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40430 (eval $ac_try) 2>&5
40431 ac_status=$?
40432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40433 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40435 (eval $ac_try) 2>&5
40436 ac_status=$?
40437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40438 (exit $ac_status); }; }; then
40439
40440 { $as_echo "$as_me:$LINENO: result: yes" >&5
40441 $as_echo "yes" >&6; }
40442
40443 cat >>confdefs.h <<\_ACEOF
40444 #define HAVE_FOLLOW_LINK_NAMEIDATA 1
40445 _ACEOF
40446
40447
40448 else
40449 $as_echo "$as_me: failed program was:" >&5
40450 sed 's/^/| /' conftest.$ac_ext >&5
40451
40452 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
40453 $as_echo "$as_me: error: no; please file a bug report" >&2;}
40454 { (exit 1); exit 1; }; }
40455
40456
40457
40458 fi
40459
40460 rm -Rf build
40461
40462
40463
40464
40465
40466 fi
40467
40468 rm -Rf build
40469
40470
40471
40472
40473
40474
40475 fi
40476
40477 rm -Rf build
40478
40479
40480
40481
40482
40483 fi
40484
40485 rm -Rf build
40486
40487
40488
40489
40490
40491
40492 cat confdefs.h - <<_ACEOF >conftest.c
40493 /* confdefs.h. */
40494 _ACEOF
40495 cat confdefs.h >>conftest.$ac_ext
40496 cat >>conftest.$ac_ext <<_ACEOF
40497 /* end confdefs.h. */
40498
40499
40500 #if !defined(HAVE_GET_LINK_DELAYED)
40501 #error "Expecting get_link() delayed done"
40502 #endif
40503
40504 int
40505 main (void)
40506 {
40507
40508
40509 ;
40510 return 0;
40511 }
40512
40513 _ACEOF
40514
40515
40516
40517 cat - <<_ACEOF >conftest.h
40518
40519 _ACEOF
40520
40521
40522 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40523 echo "obj-m := conftest.o" >build/Makefile
40524 modpost_flag=''
40525 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40526 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40528 (eval $ac_try) 2>&5
40529 ac_status=$?
40530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40531 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40533 (eval $ac_try) 2>&5
40534 ac_status=$?
40535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40536 (exit $ac_status); }; }; then
40537
40538
40539 cat >>confdefs.h <<\_ACEOF
40540 #define HAVE_PUT_LINK_DELAYED 1
40541 _ACEOF
40542
40543
40544 else
40545 $as_echo "$as_me: failed program was:" >&5
40546 sed 's/^/| /' conftest.$ac_ext >&5
40547
40548 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes cookie" >&5
40549 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
40550
40551
40552 cat confdefs.h - <<_ACEOF >conftest.c
40553 /* confdefs.h. */
40554 _ACEOF
40555 cat confdefs.h >>conftest.$ac_ext
40556 cat >>conftest.$ac_ext <<_ACEOF
40557 /* end confdefs.h. */
40558
40559
40560 #include <linux/fs.h>
40561 void put_link(struct inode *ip, void *cookie)
40562 { return; }
40563 static struct inode_operations
40564 iops __attribute__ ((unused)) = {
40565 .put_link = put_link,
40566 };
40567
40568 int
40569 main (void)
40570 {
40571
40572
40573 ;
40574 return 0;
40575 }
40576
40577 _ACEOF
40578
40579
40580
40581 cat - <<_ACEOF >conftest.h
40582
40583 _ACEOF
40584
40585
40586 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40587 echo "obj-m := conftest.o" >build/Makefile
40588 modpost_flag=''
40589 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40590 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40592 (eval $ac_try) 2>&5
40593 ac_status=$?
40594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40595 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40597 (eval $ac_try) 2>&5
40598 ac_status=$?
40599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40600 (exit $ac_status); }; }; then
40601
40602 { $as_echo "$as_me:$LINENO: result: yes" >&5
40603 $as_echo "yes" >&6; }
40604
40605 cat >>confdefs.h <<\_ACEOF
40606 #define HAVE_PUT_LINK_COOKIE 1
40607 _ACEOF
40608
40609
40610 else
40611 $as_echo "$as_me: failed program was:" >&5
40612 sed 's/^/| /' conftest.$ac_ext >&5
40613
40614 { $as_echo "$as_me:$LINENO: result: no" >&5
40615 $as_echo "no" >&6; }
40616 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes nameidata" >&5
40617 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
40618
40619
40620 cat confdefs.h - <<_ACEOF >conftest.c
40621 /* confdefs.h. */
40622 _ACEOF
40623 cat confdefs.h >>conftest.$ac_ext
40624 cat >>conftest.$ac_ext <<_ACEOF
40625 /* end confdefs.h. */
40626
40627
40628 #include <linux/fs.h>
40629 void put_link(struct dentry *de, struct
40630 nameidata *nd, void *ptr) { return; }
40631 static struct inode_operations
40632 iops __attribute__ ((unused)) = {
40633 .put_link = put_link,
40634 };
40635
40636 int
40637 main (void)
40638 {
40639
40640
40641 ;
40642 return 0;
40643 }
40644
40645 _ACEOF
40646
40647
40648
40649 cat - <<_ACEOF >conftest.h
40650
40651 _ACEOF
40652
40653
40654 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40655 echo "obj-m := conftest.o" >build/Makefile
40656 modpost_flag=''
40657 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40658 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40660 (eval $ac_try) 2>&5
40661 ac_status=$?
40662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40663 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40665 (eval $ac_try) 2>&5
40666 ac_status=$?
40667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40668 (exit $ac_status); }; }; then
40669
40670 { $as_echo "$as_me:$LINENO: result: yes" >&5
40671 $as_echo "yes" >&6; }
40672
40673 cat >>confdefs.h <<\_ACEOF
40674 #define HAVE_PUT_LINK_NAMEIDATA 1
40675 _ACEOF
40676
40677
40678 else
40679 $as_echo "$as_me: failed program was:" >&5
40680 sed 's/^/| /' conftest.$ac_ext >&5
40681
40682 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
40683 $as_echo "$as_me: error: no; please file a bug report" >&2;}
40684 { (exit 1); exit 1; }; }
40685
40686
40687
40688 fi
40689
40690 rm -Rf build
40691
40692
40693
40694
40695
40696 fi
40697
40698 rm -Rf build
40699
40700
40701
40702
40703
40704 fi
40705
40706 rm -Rf build
40707
40708
40709
40710
40711 { $as_echo "$as_me:$LINENO: checking whether i_op->tmpfile() exists" >&5
40712 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
40713
40714
40715 cat confdefs.h - <<_ACEOF >conftest.c
40716 /* confdefs.h. */
40717 _ACEOF
40718 cat confdefs.h >>conftest.$ac_ext
40719 cat >>conftest.$ac_ext <<_ACEOF
40720 /* end confdefs.h. */
40721
40722
40723 #include <linux/fs.h>
40724 int tmpfile(struct inode *inode, struct dentry *dentry,
40725 umode_t mode) { return 0; }
40726 static struct inode_operations
40727 iops __attribute__ ((unused)) = {
40728 .tmpfile = tmpfile,
40729 };
40730
40731 int
40732 main (void)
40733 {
40734
40735
40736 ;
40737 return 0;
40738 }
40739
40740 _ACEOF
40741
40742
40743
40744 cat - <<_ACEOF >conftest.h
40745
40746 _ACEOF
40747
40748
40749 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40750 echo "obj-m := conftest.o" >build/Makefile
40751 modpost_flag=''
40752 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40753 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40755 (eval $ac_try) 2>&5
40756 ac_status=$?
40757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40758 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40760 (eval $ac_try) 2>&5
40761 ac_status=$?
40762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40763 (exit $ac_status); }; }; then
40764
40765 { $as_echo "$as_me:$LINENO: result: yes" >&5
40766 $as_echo "yes" >&6; }
40767
40768 cat >>confdefs.h <<\_ACEOF
40769 #define HAVE_TMPFILE 1
40770 _ACEOF
40771
40772
40773 else
40774 $as_echo "$as_me: failed program was:" >&5
40775 sed 's/^/| /' conftest.$ac_ext >&5
40776
40777 { $as_echo "$as_me:$LINENO: result: no" >&5
40778 $as_echo "no" >&6; }
40779
40780
40781
40782 fi
40783
40784 rm -Rf build
40785
40786
40787
40788
40789 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
40790 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
40791
40792
40793 cat confdefs.h - <<_ACEOF >conftest.c
40794 /* confdefs.h. */
40795 _ACEOF
40796 cat confdefs.h >>conftest.$ac_ext
40797 cat >>conftest.$ac_ext <<_ACEOF
40798 /* end confdefs.h. */
40799
40800
40801 #include <linux/fs.h>
40802 void truncate_range(struct inode *inode, loff_t start,
40803 loff_t end) { return; }
40804 static struct inode_operations iops __attribute__ ((unused)) = {
40805 .truncate_range = truncate_range,
40806 };
40807
40808 int
40809 main (void)
40810 {
40811
40812
40813 ;
40814 return 0;
40815 }
40816
40817 _ACEOF
40818
40819
40820
40821 cat - <<_ACEOF >conftest.h
40822
40823 _ACEOF
40824
40825
40826 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40827 echo "obj-m := conftest.o" >build/Makefile
40828 modpost_flag=''
40829 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40830 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40832 (eval $ac_try) 2>&5
40833 ac_status=$?
40834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40835 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40837 (eval $ac_try) 2>&5
40838 ac_status=$?
40839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40840 (exit $ac_status); }; }; then
40841
40842 { $as_echo "$as_me:$LINENO: result: yes" >&5
40843 $as_echo "yes" >&6; }
40844
40845 cat >>confdefs.h <<\_ACEOF
40846 #define HAVE_INODE_TRUNCATE_RANGE 1
40847 _ACEOF
40848
40849
40850 else
40851 $as_echo "$as_me: failed program was:" >&5
40852 sed 's/^/| /' conftest.$ac_ext >&5
40853
40854 { $as_echo "$as_me:$LINENO: result: no" >&5
40855 $as_echo "no" >&6; }
40856
40857
40858
40859 fi
40860
40861 rm -Rf build
40862
40863
40864
40865
40866 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
40867 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
40868
40869
40870 cat confdefs.h - <<_ACEOF >conftest.c
40871 /* confdefs.h. */
40872 _ACEOF
40873 cat confdefs.h >>conftest.$ac_ext
40874 cat >>conftest.$ac_ext <<_ACEOF
40875 /* end confdefs.h. */
40876
40877
40878 #include <linux/dcache.h>
40879 struct vfsmount *d_automount(struct path *p) { return NULL; }
40880 struct dentry_operations dops __attribute__ ((unused)) = {
40881 .d_automount = d_automount,
40882 };
40883
40884 int
40885 main (void)
40886 {
40887
40888
40889 ;
40890 return 0;
40891 }
40892
40893 _ACEOF
40894
40895
40896
40897 cat - <<_ACEOF >conftest.h
40898
40899 _ACEOF
40900
40901
40902 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40903 echo "obj-m := conftest.o" >build/Makefile
40904 modpost_flag=''
40905 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40906 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40908 (eval $ac_try) 2>&5
40909 ac_status=$?
40910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40911 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40913 (eval $ac_try) 2>&5
40914 ac_status=$?
40915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40916 (exit $ac_status); }; }; then
40917
40918 { $as_echo "$as_me:$LINENO: result: yes" >&5
40919 $as_echo "yes" >&6; }
40920
40921 cat >>confdefs.h <<\_ACEOF
40922 #define HAVE_AUTOMOUNT 1
40923 _ACEOF
40924
40925
40926 else
40927 $as_echo "$as_me: failed program was:" >&5
40928 sed 's/^/| /' conftest.$ac_ext >&5
40929
40930 { $as_echo "$as_me:$LINENO: result: no" >&5
40931 $as_echo "no" >&6; }
40932
40933
40934
40935 fi
40936
40937 rm -Rf build
40938
40939
40940
40941
40942 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
40943 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
40944
40945
40946 cat confdefs.h - <<_ACEOF >conftest.c
40947 /* confdefs.h. */
40948 _ACEOF
40949 cat confdefs.h >>conftest.$ac_ext
40950 cat >>conftest.$ac_ext <<_ACEOF
40951 /* end confdefs.h. */
40952
40953
40954 #include <linux/exportfs.h>
40955 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
40956 struct inode *parent) { return 0; }
40957 static struct export_operations eops __attribute__ ((unused))={
40958 .encode_fh = encode_fh,
40959 };
40960
40961 int
40962 main (void)
40963 {
40964
40965
40966 ;
40967 return 0;
40968 }
40969
40970 _ACEOF
40971
40972
40973
40974 cat - <<_ACEOF >conftest.h
40975
40976 _ACEOF
40977
40978
40979 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40980 echo "obj-m := conftest.o" >build/Makefile
40981 modpost_flag=''
40982 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40983 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40985 (eval $ac_try) 2>&5
40986 ac_status=$?
40987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40988 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40990 (eval $ac_try) 2>&5
40991 ac_status=$?
40992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40993 (exit $ac_status); }; }; then
40994
40995 { $as_echo "$as_me:$LINENO: result: yes" >&5
40996 $as_echo "yes" >&6; }
40997
40998 cat >>confdefs.h <<\_ACEOF
40999 #define HAVE_ENCODE_FH_WITH_INODE 1
41000 _ACEOF
41001
41002
41003 else
41004 $as_echo "$as_me: failed program was:" >&5
41005 sed 's/^/| /' conftest.$ac_ext >&5
41006
41007 { $as_echo "$as_me:$LINENO: result: no" >&5
41008 $as_echo "no" >&6; }
41009
41010
41011
41012 fi
41013
41014 rm -Rf build
41015
41016
41017
41018
41019 { $as_echo "$as_me:$LINENO: checking whether eops->commit_metadata() exists" >&5
41020 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
41021
41022
41023 cat confdefs.h - <<_ACEOF >conftest.c
41024 /* confdefs.h. */
41025 _ACEOF
41026 cat confdefs.h >>conftest.$ac_ext
41027 cat >>conftest.$ac_ext <<_ACEOF
41028 /* end confdefs.h. */
41029
41030
41031 #include <linux/exportfs.h>
41032 int commit_metadata(struct inode *inode) { return 0; }
41033 static struct export_operations eops __attribute__ ((unused))={
41034 .commit_metadata = commit_metadata,
41035 };
41036
41037 int
41038 main (void)
41039 {
41040
41041
41042 ;
41043 return 0;
41044 }
41045
41046 _ACEOF
41047
41048
41049
41050 cat - <<_ACEOF >conftest.h
41051
41052 _ACEOF
41053
41054
41055 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41056 echo "obj-m := conftest.o" >build/Makefile
41057 modpost_flag=''
41058 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41059 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41061 (eval $ac_try) 2>&5
41062 ac_status=$?
41063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41064 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41066 (eval $ac_try) 2>&5
41067 ac_status=$?
41068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41069 (exit $ac_status); }; }; then
41070
41071 { $as_echo "$as_me:$LINENO: result: yes" >&5
41072 $as_echo "yes" >&6; }
41073
41074 cat >>confdefs.h <<\_ACEOF
41075 #define HAVE_COMMIT_METADATA 1
41076 _ACEOF
41077
41078
41079 else
41080 $as_echo "$as_me: failed program was:" >&5
41081 sed 's/^/| /' conftest.$ac_ext >&5
41082
41083 { $as_echo "$as_me:$LINENO: result: no" >&5
41084 $as_echo "no" >&6; }
41085
41086
41087
41088 fi
41089
41090 rm -Rf build
41091
41092
41093
41094 { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
41095 $as_echo_n "checking whether clear_inode() is available... " >&6; }
41096
41097
41098
41099 cat confdefs.h - <<_ACEOF >conftest.c
41100 /* confdefs.h. */
41101 _ACEOF
41102 cat confdefs.h >>conftest.$ac_ext
41103 cat >>conftest.$ac_ext <<_ACEOF
41104 /* end confdefs.h. */
41105
41106
41107 #include <linux/fs.h>
41108
41109 int
41110 main (void)
41111 {
41112
41113 clear_inode(NULL);
41114
41115 ;
41116 return 0;
41117 }
41118
41119 _ACEOF
41120
41121
41122
41123 cat - <<_ACEOF >conftest.h
41124
41125 _ACEOF
41126
41127
41128 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41129 echo "obj-m := conftest.o" >build/Makefile
41130 modpost_flag=''
41131 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41132 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41134 (eval $ac_try) 2>&5
41135 ac_status=$?
41136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41137 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41139 (eval $ac_try) 2>&5
41140 ac_status=$?
41141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41142 (exit $ac_status); }; }; then
41143 rc=0
41144 else
41145 $as_echo "$as_me: failed program was:" >&5
41146 sed 's/^/| /' conftest.$ac_ext >&5
41147 rc=1
41148
41149
41150 fi
41151
41152 rm -Rf build
41153
41154
41155 if test $rc -ne 0; then :
41156
41157 { $as_echo "$as_me:$LINENO: result: no" >&5
41158 $as_echo "no" >&6; }
41159
41160 else
41161 if test "x$enable_linux_builtin" != xyes; then
41162
41163 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
41164 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
41165 rc=$?
41166 if test $rc -ne 0; then
41167 export=0
41168 for file in fs/inode.c; do
41169 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
41170 "$LINUX/$file" 2>/dev/null
41171 rc=$?
41172 if test $rc -eq 0; then
41173 export=1
41174 break;
41175 fi
41176 done
41177 if test $export -eq 0; then :
41178 rc=1
41179 else :
41180 rc=0
41181 fi
41182 else :
41183 rc=0
41184 fi
41185
41186 fi
41187 if test $rc -ne 0; then :
41188
41189 { $as_echo "$as_me:$LINENO: result: no" >&5
41190 $as_echo "no" >&6; }
41191
41192 else :
41193
41194 { $as_echo "$as_me:$LINENO: result: yes" >&5
41195 $as_echo "yes" >&6; }
41196
41197 cat >>confdefs.h <<\_ACEOF
41198 #define HAVE_CLEAR_INODE 1
41199 _ACEOF
41200
41201
41202 fi
41203 fi
41204
41205
41206 { $as_echo "$as_me:$LINENO: checking whether setattr_prepare() is available" >&5
41207 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
41208
41209
41210
41211 cat confdefs.h - <<_ACEOF >conftest.c
41212 /* confdefs.h. */
41213 _ACEOF
41214 cat confdefs.h >>conftest.$ac_ext
41215 cat >>conftest.$ac_ext <<_ACEOF
41216 /* end confdefs.h. */
41217
41218
41219 #include <linux/fs.h>
41220
41221 int
41222 main (void)
41223 {
41224
41225 struct dentry *dentry = NULL;
41226 struct iattr *attr = NULL;
41227 int error;
41228
41229 error = setattr_prepare(dentry, attr);
41230
41231 ;
41232 return 0;
41233 }
41234
41235 _ACEOF
41236
41237
41238
41239 cat - <<_ACEOF >conftest.h
41240
41241 _ACEOF
41242
41243
41244 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41245 echo "obj-m := conftest.o" >build/Makefile
41246 modpost_flag=''
41247 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41248 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41250 (eval $ac_try) 2>&5
41251 ac_status=$?
41252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41253 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41255 (eval $ac_try) 2>&5
41256 ac_status=$?
41257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41258 (exit $ac_status); }; }; then
41259 rc=0
41260 else
41261 $as_echo "$as_me: failed program was:" >&5
41262 sed 's/^/| /' conftest.$ac_ext >&5
41263 rc=1
41264
41265
41266 fi
41267
41268 rm -Rf build
41269
41270
41271 if test $rc -ne 0; then :
41272
41273 { $as_echo "$as_me:$LINENO: result: no" >&5
41274 $as_echo "no" >&6; }
41275
41276 else
41277 if test "x$enable_linux_builtin" != xyes; then
41278
41279 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
41280 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
41281 rc=$?
41282 if test $rc -ne 0; then
41283 export=0
41284 for file in fs/attr.c; do
41285 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
41286 "$LINUX/$file" 2>/dev/null
41287 rc=$?
41288 if test $rc -eq 0; then
41289 export=1
41290 break;
41291 fi
41292 done
41293 if test $export -eq 0; then :
41294 rc=1
41295 else :
41296 rc=0
41297 fi
41298 else :
41299 rc=0
41300 fi
41301
41302 fi
41303 if test $rc -ne 0; then :
41304
41305 { $as_echo "$as_me:$LINENO: result: no" >&5
41306 $as_echo "no" >&6; }
41307
41308 else :
41309
41310 { $as_echo "$as_me:$LINENO: result: yes" >&5
41311 $as_echo "yes" >&6; }
41312
41313 cat >>confdefs.h <<\_ACEOF
41314 #define HAVE_SETATTR_PREPARE 1
41315 _ACEOF
41316
41317
41318 fi
41319 fi
41320
41321
41322 { $as_echo "$as_me:$LINENO: checking whether insert_inode_locked() is available" >&5
41323 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
41324
41325
41326
41327 cat confdefs.h - <<_ACEOF >conftest.c
41328 /* confdefs.h. */
41329 _ACEOF
41330 cat confdefs.h >>conftest.$ac_ext
41331 cat >>conftest.$ac_ext <<_ACEOF
41332 /* end confdefs.h. */
41333
41334
41335 #include <linux/fs.h>
41336
41337 int
41338 main (void)
41339 {
41340
41341 insert_inode_locked(NULL);
41342
41343 ;
41344 return 0;
41345 }
41346
41347 _ACEOF
41348
41349
41350
41351 cat - <<_ACEOF >conftest.h
41352
41353 _ACEOF
41354
41355
41356 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41357 echo "obj-m := conftest.o" >build/Makefile
41358 modpost_flag=''
41359 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41360 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41362 (eval $ac_try) 2>&5
41363 ac_status=$?
41364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41365 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41367 (eval $ac_try) 2>&5
41368 ac_status=$?
41369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41370 (exit $ac_status); }; }; then
41371 rc=0
41372 else
41373 $as_echo "$as_me: failed program was:" >&5
41374 sed 's/^/| /' conftest.$ac_ext >&5
41375 rc=1
41376
41377
41378 fi
41379
41380 rm -Rf build
41381
41382
41383 if test $rc -ne 0; then :
41384
41385 { $as_echo "$as_me:$LINENO: result: no" >&5
41386 $as_echo "no" >&6; }
41387
41388 else
41389 if test "x$enable_linux_builtin" != xyes; then
41390
41391 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
41392 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
41393 rc=$?
41394 if test $rc -ne 0; then
41395 export=0
41396 for file in fs/inode.c; do
41397 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
41398 "$LINUX/$file" 2>/dev/null
41399 rc=$?
41400 if test $rc -eq 0; then
41401 export=1
41402 break;
41403 fi
41404 done
41405 if test $export -eq 0; then :
41406 rc=1
41407 else :
41408 rc=0
41409 fi
41410 else :
41411 rc=0
41412 fi
41413
41414 fi
41415 if test $rc -ne 0; then :
41416
41417 { $as_echo "$as_me:$LINENO: result: no" >&5
41418 $as_echo "no" >&6; }
41419
41420 else :
41421
41422 { $as_echo "$as_me:$LINENO: result: yes" >&5
41423 $as_echo "yes" >&6; }
41424
41425 cat >>confdefs.h <<\_ACEOF
41426 #define HAVE_INSERT_INODE_LOCKED 1
41427 _ACEOF
41428
41429
41430 fi
41431 fi
41432
41433
41434 { $as_echo "$as_me:$LINENO: checking whether d_make_root() is available" >&5
41435 $as_echo_n "checking whether d_make_root() is available... " >&6; }
41436
41437
41438
41439 cat confdefs.h - <<_ACEOF >conftest.c
41440 /* confdefs.h. */
41441 _ACEOF
41442 cat confdefs.h >>conftest.$ac_ext
41443 cat >>conftest.$ac_ext <<_ACEOF
41444 /* end confdefs.h. */
41445
41446
41447 #include <linux/dcache.h>
41448
41449 int
41450 main (void)
41451 {
41452
41453 d_make_root(NULL);
41454
41455 ;
41456 return 0;
41457 }
41458
41459 _ACEOF
41460
41461
41462
41463 cat - <<_ACEOF >conftest.h
41464
41465 _ACEOF
41466
41467
41468 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41469 echo "obj-m := conftest.o" >build/Makefile
41470 modpost_flag=''
41471 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41472 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41474 (eval $ac_try) 2>&5
41475 ac_status=$?
41476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41477 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41479 (eval $ac_try) 2>&5
41480 ac_status=$?
41481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41482 (exit $ac_status); }; }; then
41483 rc=0
41484 else
41485 $as_echo "$as_me: failed program was:" >&5
41486 sed 's/^/| /' conftest.$ac_ext >&5
41487 rc=1
41488
41489
41490 fi
41491
41492 rm -Rf build
41493
41494
41495 if test $rc -ne 0; then :
41496
41497 { $as_echo "$as_me:$LINENO: result: no" >&5
41498 $as_echo "no" >&6; }
41499
41500 else
41501 if test "x$enable_linux_builtin" != xyes; then
41502
41503 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
41504 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
41505 rc=$?
41506 if test $rc -ne 0; then
41507 export=0
41508 for file in fs/dcache.c; do
41509 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
41510 "$LINUX/$file" 2>/dev/null
41511 rc=$?
41512 if test $rc -eq 0; then
41513 export=1
41514 break;
41515 fi
41516 done
41517 if test $export -eq 0; then :
41518 rc=1
41519 else :
41520 rc=0
41521 fi
41522 else :
41523 rc=0
41524 fi
41525
41526 fi
41527 if test $rc -ne 0; then :
41528
41529 { $as_echo "$as_me:$LINENO: result: no" >&5
41530 $as_echo "no" >&6; }
41531
41532 else :
41533
41534 { $as_echo "$as_me:$LINENO: result: yes" >&5
41535 $as_echo "yes" >&6; }
41536
41537 cat >>confdefs.h <<\_ACEOF
41538 #define HAVE_D_MAKE_ROOT 1
41539 _ACEOF
41540
41541
41542 fi
41543 fi
41544
41545
41546 { $as_echo "$as_me:$LINENO: checking whether d_obtain_alias() is available" >&5
41547 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
41548
41549
41550
41551 cat confdefs.h - <<_ACEOF >conftest.c
41552 /* confdefs.h. */
41553 _ACEOF
41554 cat confdefs.h >>conftest.$ac_ext
41555 cat >>conftest.$ac_ext <<_ACEOF
41556 /* end confdefs.h. */
41557
41558
41559 #include <linux/dcache.h>
41560
41561 int
41562 main (void)
41563 {
41564
41565 d_obtain_alias(NULL);
41566
41567 ;
41568 return 0;
41569 }
41570
41571 _ACEOF
41572
41573
41574
41575 cat - <<_ACEOF >conftest.h
41576
41577 _ACEOF
41578
41579
41580 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41581 echo "obj-m := conftest.o" >build/Makefile
41582 modpost_flag=''
41583 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41584 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41586 (eval $ac_try) 2>&5
41587 ac_status=$?
41588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41589 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41591 (eval $ac_try) 2>&5
41592 ac_status=$?
41593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41594 (exit $ac_status); }; }; then
41595 rc=0
41596 else
41597 $as_echo "$as_me: failed program was:" >&5
41598 sed 's/^/| /' conftest.$ac_ext >&5
41599 rc=1
41600
41601
41602 fi
41603
41604 rm -Rf build
41605
41606
41607 if test $rc -ne 0; then :
41608
41609 { $as_echo "$as_me:$LINENO: result: no" >&5
41610 $as_echo "no" >&6; }
41611
41612 else
41613 if test "x$enable_linux_builtin" != xyes; then
41614
41615 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
41616 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
41617 rc=$?
41618 if test $rc -ne 0; then
41619 export=0
41620 for file in fs/dcache.c; do
41621 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
41622 "$LINUX/$file" 2>/dev/null
41623 rc=$?
41624 if test $rc -eq 0; then
41625 export=1
41626 break;
41627 fi
41628 done
41629 if test $export -eq 0; then :
41630 rc=1
41631 else :
41632 rc=0
41633 fi
41634 else :
41635 rc=0
41636 fi
41637
41638 fi
41639 if test $rc -ne 0; then :
41640
41641 { $as_echo "$as_me:$LINENO: result: no" >&5
41642 $as_echo "no" >&6; }
41643
41644 else :
41645
41646 { $as_echo "$as_me:$LINENO: result: yes" >&5
41647 $as_echo "yes" >&6; }
41648
41649 cat >>confdefs.h <<\_ACEOF
41650 #define HAVE_D_OBTAIN_ALIAS 1
41651 _ACEOF
41652
41653
41654 fi
41655 fi
41656
41657
41658 { $as_echo "$as_me:$LINENO: checking whether d_prune_aliases() is available" >&5
41659 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
41660
41661
41662
41663 cat confdefs.h - <<_ACEOF >conftest.c
41664 /* confdefs.h. */
41665 _ACEOF
41666 cat confdefs.h >>conftest.$ac_ext
41667 cat >>conftest.$ac_ext <<_ACEOF
41668 /* end confdefs.h. */
41669
41670
41671 #include <linux/dcache.h>
41672
41673 int
41674 main (void)
41675 {
41676
41677 struct inode *ip = NULL;
41678 d_prune_aliases(ip);
41679
41680 ;
41681 return 0;
41682 }
41683
41684 _ACEOF
41685
41686
41687
41688 cat - <<_ACEOF >conftest.h
41689
41690 _ACEOF
41691
41692
41693 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41694 echo "obj-m := conftest.o" >build/Makefile
41695 modpost_flag=''
41696 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41697 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41699 (eval $ac_try) 2>&5
41700 ac_status=$?
41701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41702 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41704 (eval $ac_try) 2>&5
41705 ac_status=$?
41706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41707 (exit $ac_status); }; }; then
41708 rc=0
41709 else
41710 $as_echo "$as_me: failed program was:" >&5
41711 sed 's/^/| /' conftest.$ac_ext >&5
41712 rc=1
41713
41714
41715 fi
41716
41717 rm -Rf build
41718
41719
41720 if test $rc -ne 0; then :
41721
41722 { $as_echo "$as_me:$LINENO: result: no" >&5
41723 $as_echo "no" >&6; }
41724
41725 else
41726 if test "x$enable_linux_builtin" != xyes; then
41727
41728 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
41729 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
41730 rc=$?
41731 if test $rc -ne 0; then
41732 export=0
41733 for file in fs/dcache.c; do
41734 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
41735 "$LINUX/$file" 2>/dev/null
41736 rc=$?
41737 if test $rc -eq 0; then
41738 export=1
41739 break;
41740 fi
41741 done
41742 if test $export -eq 0; then :
41743 rc=1
41744 else :
41745 rc=0
41746 fi
41747 else :
41748 rc=0
41749 fi
41750
41751 fi
41752 if test $rc -ne 0; then :
41753
41754 { $as_echo "$as_me:$LINENO: result: no" >&5
41755 $as_echo "no" >&6; }
41756
41757 else :
41758
41759 { $as_echo "$as_me:$LINENO: result: yes" >&5
41760 $as_echo "yes" >&6; }
41761
41762 cat >>confdefs.h <<\_ACEOF
41763 #define HAVE_D_PRUNE_ALIASES 1
41764 _ACEOF
41765
41766
41767 fi
41768 fi
41769
41770
41771 { $as_echo "$as_me:$LINENO: checking whether d_set_d_op() is available" >&5
41772 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
41773
41774
41775
41776 cat confdefs.h - <<_ACEOF >conftest.c
41777 /* confdefs.h. */
41778 _ACEOF
41779 cat confdefs.h >>conftest.$ac_ext
41780 cat >>conftest.$ac_ext <<_ACEOF
41781 /* end confdefs.h. */
41782
41783
41784 #include <linux/dcache.h>
41785
41786 int
41787 main (void)
41788 {
41789
41790 d_set_d_op(NULL, NULL);
41791
41792 ;
41793 return 0;
41794 }
41795
41796 _ACEOF
41797
41798
41799
41800 cat - <<_ACEOF >conftest.h
41801
41802 _ACEOF
41803
41804
41805 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41806 echo "obj-m := conftest.o" >build/Makefile
41807 modpost_flag=''
41808 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41809 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41811 (eval $ac_try) 2>&5
41812 ac_status=$?
41813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41814 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41816 (eval $ac_try) 2>&5
41817 ac_status=$?
41818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41819 (exit $ac_status); }; }; then
41820 rc=0
41821 else
41822 $as_echo "$as_me: failed program was:" >&5
41823 sed 's/^/| /' conftest.$ac_ext >&5
41824 rc=1
41825
41826
41827 fi
41828
41829 rm -Rf build
41830
41831
41832 if test $rc -ne 0; then :
41833
41834 { $as_echo "$as_me:$LINENO: result: no" >&5
41835 $as_echo "no" >&6; }
41836
41837 else
41838 if test "x$enable_linux_builtin" != xyes; then
41839
41840 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
41841 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
41842 rc=$?
41843 if test $rc -ne 0; then
41844 export=0
41845 for file in fs/dcache.c; do
41846 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
41847 "$LINUX/$file" 2>/dev/null
41848 rc=$?
41849 if test $rc -eq 0; then
41850 export=1
41851 break;
41852 fi
41853 done
41854 if test $export -eq 0; then :
41855 rc=1
41856 else :
41857 rc=0
41858 fi
41859 else :
41860 rc=0
41861 fi
41862
41863 fi
41864 if test $rc -ne 0; then :
41865
41866 { $as_echo "$as_me:$LINENO: result: no" >&5
41867 $as_echo "no" >&6; }
41868
41869 else :
41870
41871 { $as_echo "$as_me:$LINENO: result: yes" >&5
41872 $as_echo "yes" >&6; }
41873
41874 cat >>confdefs.h <<\_ACEOF
41875 #define HAVE_D_SET_D_OP 1
41876 _ACEOF
41877
41878
41879 fi
41880 fi
41881
41882
41883
41884 { $as_echo "$as_me:$LINENO: checking whether dops->d_revalidate() takes struct nameidata" >&5
41885 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
41886
41887
41888 cat confdefs.h - <<_ACEOF >conftest.c
41889 /* confdefs.h. */
41890 _ACEOF
41891 cat confdefs.h >>conftest.$ac_ext
41892 cat >>conftest.$ac_ext <<_ACEOF
41893 /* end confdefs.h. */
41894
41895
41896 #include <linux/dcache.h>
41897
41898 int revalidate (struct dentry *dentry,
41899 struct nameidata *nidata) { return 0; }
41900
41901 static const struct dentry_operations
41902 dops __attribute__ ((unused)) = {
41903 .d_revalidate = revalidate,
41904 };
41905
41906 int
41907 main (void)
41908 {
41909
41910
41911 ;
41912 return 0;
41913 }
41914
41915 _ACEOF
41916
41917
41918
41919 cat - <<_ACEOF >conftest.h
41920
41921 _ACEOF
41922
41923
41924 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41925 echo "obj-m := conftest.o" >build/Makefile
41926 modpost_flag=''
41927 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41928 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41930 (eval $ac_try) 2>&5
41931 ac_status=$?
41932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41933 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41935 (eval $ac_try) 2>&5
41936 ac_status=$?
41937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41938 (exit $ac_status); }; }; then
41939
41940 { $as_echo "$as_me:$LINENO: result: yes" >&5
41941 $as_echo "yes" >&6; }
41942
41943 cat >>confdefs.h <<\_ACEOF
41944 #define HAVE_D_REVALIDATE_NAMEIDATA 1
41945 _ACEOF
41946
41947
41948 else
41949 $as_echo "$as_me: failed program was:" >&5
41950 sed 's/^/| /' conftest.$ac_ext >&5
41951
41952 { $as_echo "$as_me:$LINENO: result: no" >&5
41953 $as_echo "no" >&6; }
41954
41955
41956
41957 fi
41958
41959 rm -Rf build
41960
41961
41962
41963
41964 { $as_echo "$as_me:$LINENO: checking whether dentry uses const struct dentry_operations" >&5
41965 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
41966
41967
41968 cat confdefs.h - <<_ACEOF >conftest.c
41969 /* confdefs.h. */
41970 _ACEOF
41971 cat confdefs.h >>conftest.$ac_ext
41972 cat >>conftest.$ac_ext <<_ACEOF
41973 /* end confdefs.h. */
41974
41975
41976 #include <linux/dcache.h>
41977
41978 const struct dentry_operations test_d_op = {
41979 .d_revalidate = NULL,
41980 };
41981
41982 int
41983 main (void)
41984 {
41985
41986 struct dentry d __attribute__ ((unused));
41987
41988 d.d_op = &test_d_op;
41989
41990 ;
41991 return 0;
41992 }
41993
41994 _ACEOF
41995
41996
41997
41998 cat - <<_ACEOF >conftest.h
41999
42000 _ACEOF
42001
42002
42003 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42004 echo "obj-m := conftest.o" >build/Makefile
42005 modpost_flag=''
42006 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42007 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42009 (eval $ac_try) 2>&5
42010 ac_status=$?
42011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42012 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42014 (eval $ac_try) 2>&5
42015 ac_status=$?
42016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42017 (exit $ac_status); }; }; then
42018
42019 { $as_echo "$as_me:$LINENO: result: yes" >&5
42020 $as_echo "yes" >&6; }
42021
42022 cat >>confdefs.h <<\_ACEOF
42023 #define HAVE_CONST_DENTRY_OPERATIONS 1
42024 _ACEOF
42025
42026
42027 else
42028 $as_echo "$as_me: failed program was:" >&5
42029 sed 's/^/| /' conftest.$ac_ext >&5
42030
42031 { $as_echo "$as_me:$LINENO: result: no" >&5
42032 $as_echo "no" >&6; }
42033
42034
42035
42036 fi
42037
42038 rm -Rf build
42039
42040
42041
42042 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
42043 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
42044
42045
42046
42047 cat confdefs.h - <<_ACEOF >conftest.c
42048 /* confdefs.h. */
42049 _ACEOF
42050 cat confdefs.h >>conftest.$ac_ext
42051 cat >>conftest.$ac_ext <<_ACEOF
42052 /* end confdefs.h. */
42053
42054
42055 #include <linux/mm.h>
42056
42057 int
42058 main (void)
42059 {
42060
42061 truncate_setsize(NULL, 0);
42062
42063 ;
42064 return 0;
42065 }
42066
42067 _ACEOF
42068
42069
42070
42071 cat - <<_ACEOF >conftest.h
42072
42073 _ACEOF
42074
42075
42076 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42077 echo "obj-m := conftest.o" >build/Makefile
42078 modpost_flag=''
42079 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42080 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42082 (eval $ac_try) 2>&5
42083 ac_status=$?
42084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42085 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42087 (eval $ac_try) 2>&5
42088 ac_status=$?
42089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42090 (exit $ac_status); }; }; then
42091 rc=0
42092 else
42093 $as_echo "$as_me: failed program was:" >&5
42094 sed 's/^/| /' conftest.$ac_ext >&5
42095 rc=1
42096
42097
42098 fi
42099
42100 rm -Rf build
42101
42102
42103 if test $rc -ne 0; then :
42104
42105 { $as_echo "$as_me:$LINENO: result: no" >&5
42106 $as_echo "no" >&6; }
42107
42108 else
42109 if test "x$enable_linux_builtin" != xyes; then
42110
42111 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
42112 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
42113 rc=$?
42114 if test $rc -ne 0; then
42115 export=0
42116 for file in mm/truncate.c; do
42117 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
42118 "$LINUX/$file" 2>/dev/null
42119 rc=$?
42120 if test $rc -eq 0; then
42121 export=1
42122 break;
42123 fi
42124 done
42125 if test $export -eq 0; then :
42126 rc=1
42127 else :
42128 rc=0
42129 fi
42130 else :
42131 rc=0
42132 fi
42133
42134 fi
42135 if test $rc -ne 0; then :
42136
42137 { $as_echo "$as_me:$LINENO: result: no" >&5
42138 $as_echo "no" >&6; }
42139
42140 else :
42141
42142 { $as_echo "$as_me:$LINENO: result: yes" >&5
42143 $as_echo "yes" >&6; }
42144
42145 cat >>confdefs.h <<\_ACEOF
42146 #define HAVE_TRUNCATE_SETSIZE 1
42147 _ACEOF
42148
42149
42150 fi
42151 fi
42152
42153
42154
42155 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
42156 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
42157
42158
42159 cat confdefs.h - <<_ACEOF >conftest.c
42160 /* confdefs.h. */
42161 _ACEOF
42162 cat confdefs.h >>conftest.$ac_ext
42163 cat >>conftest.$ac_ext <<_ACEOF
42164 /* end confdefs.h. */
42165
42166
42167 #include <linux/security.h>
42168
42169 int
42170 main (void)
42171 {
42172
42173 struct inode *ip __attribute__ ((unused)) = NULL;
42174 struct inode *dip __attribute__ ((unused)) = NULL;
42175 const struct qstr *str __attribute__ ((unused)) = NULL;
42176 char *name __attribute__ ((unused)) = NULL;
42177 void *value __attribute__ ((unused)) = NULL;
42178 size_t len __attribute__ ((unused)) = 0;
42179
42180 security_inode_init_security(ip, dip, str, &name, &value, &len);
42181
42182 ;
42183 return 0;
42184 }
42185
42186 _ACEOF
42187
42188
42189
42190 cat - <<_ACEOF >conftest.h
42191
42192 _ACEOF
42193
42194
42195 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42196 echo "obj-m := conftest.o" >build/Makefile
42197 modpost_flag=''
42198 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42199 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42201 (eval $ac_try) 2>&5
42202 ac_status=$?
42203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42204 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42206 (eval $ac_try) 2>&5
42207 ac_status=$?
42208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42209 (exit $ac_status); }; }; then
42210
42211 { $as_echo "$as_me:$LINENO: result: yes" >&5
42212 $as_echo "yes" >&6; }
42213
42214 cat >>confdefs.h <<\_ACEOF
42215 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
42216 _ACEOF
42217
42218
42219 else
42220 $as_echo "$as_me: failed program was:" >&5
42221 sed 's/^/| /' conftest.$ac_ext >&5
42222
42223 { $as_echo "$as_me:$LINENO: result: no" >&5
42224 $as_echo "no" >&6; }
42225
42226
42227
42228 fi
42229
42230 rm -Rf build
42231
42232
42233
42234
42235 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
42236 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
42237
42238
42239 cat confdefs.h - <<_ACEOF >conftest.c
42240 /* confdefs.h. */
42241 _ACEOF
42242 cat confdefs.h >>conftest.$ac_ext
42243 cat >>conftest.$ac_ext <<_ACEOF
42244 /* end confdefs.h. */
42245
42246
42247 #include <linux/security.h>
42248
42249 int
42250 main (void)
42251 {
42252
42253 struct inode *ip __attribute__ ((unused)) = NULL;
42254 struct inode *dip __attribute__ ((unused)) = NULL;
42255 const struct qstr *str __attribute__ ((unused)) = NULL;
42256 initxattrs func __attribute__ ((unused)) = NULL;
42257
42258 security_inode_init_security(ip, dip, str, func, NULL);
42259
42260 ;
42261 return 0;
42262 }
42263
42264 _ACEOF
42265
42266
42267
42268 cat - <<_ACEOF >conftest.h
42269
42270 _ACEOF
42271
42272
42273 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42274 echo "obj-m := conftest.o" >build/Makefile
42275 modpost_flag=''
42276 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42277 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42279 (eval $ac_try) 2>&5
42280 ac_status=$?
42281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42282 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42284 (eval $ac_try) 2>&5
42285 ac_status=$?
42286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42287 (exit $ac_status); }; }; then
42288
42289 { $as_echo "$as_me:$LINENO: result: yes" >&5
42290 $as_echo "yes" >&6; }
42291
42292 cat >>confdefs.h <<\_ACEOF
42293 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
42294 _ACEOF
42295
42296
42297 else
42298 $as_echo "$as_me: failed program was:" >&5
42299 sed 's/^/| /' conftest.$ac_ext >&5
42300
42301 { $as_echo "$as_me:$LINENO: result: no" >&5
42302 $as_echo "no" >&6; }
42303
42304
42305
42306 fi
42307
42308 rm -Rf build
42309
42310
42311
42312 { $as_echo "$as_me:$LINENO: checking whether mount_nodev() is available" >&5
42313 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
42314
42315
42316
42317 cat confdefs.h - <<_ACEOF >conftest.c
42318 /* confdefs.h. */
42319 _ACEOF
42320 cat confdefs.h >>conftest.$ac_ext
42321 cat >>conftest.$ac_ext <<_ACEOF
42322 /* end confdefs.h. */
42323
42324
42325 #include <linux/fs.h>
42326
42327 int
42328 main (void)
42329 {
42330
42331 mount_nodev(NULL, 0, NULL, NULL);
42332
42333 ;
42334 return 0;
42335 }
42336
42337 _ACEOF
42338
42339
42340
42341 cat - <<_ACEOF >conftest.h
42342
42343 _ACEOF
42344
42345
42346 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42347 echo "obj-m := conftest.o" >build/Makefile
42348 modpost_flag=''
42349 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42350 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42352 (eval $ac_try) 2>&5
42353 ac_status=$?
42354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42355 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42357 (eval $ac_try) 2>&5
42358 ac_status=$?
42359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42360 (exit $ac_status); }; }; then
42361 rc=0
42362 else
42363 $as_echo "$as_me: failed program was:" >&5
42364 sed 's/^/| /' conftest.$ac_ext >&5
42365 rc=1
42366
42367
42368 fi
42369
42370 rm -Rf build
42371
42372
42373 if test $rc -ne 0; then :
42374
42375 { $as_echo "$as_me:$LINENO: result: no" >&5
42376 $as_echo "no" >&6; }
42377
42378 else
42379 if test "x$enable_linux_builtin" != xyes; then
42380
42381 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
42382 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
42383 rc=$?
42384 if test $rc -ne 0; then
42385 export=0
42386 for file in fs/super.c; do
42387 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
42388 "$LINUX/$file" 2>/dev/null
42389 rc=$?
42390 if test $rc -eq 0; then
42391 export=1
42392 break;
42393 fi
42394 done
42395 if test $export -eq 0; then :
42396 rc=1
42397 else :
42398 rc=0
42399 fi
42400 else :
42401 rc=0
42402 fi
42403
42404 fi
42405 if test $rc -ne 0; then :
42406
42407 { $as_echo "$as_me:$LINENO: result: no" >&5
42408 $as_echo "no" >&6; }
42409
42410 else :
42411
42412 { $as_echo "$as_me:$LINENO: result: yes" >&5
42413 $as_echo "yes" >&6; }
42414
42415 cat >>confdefs.h <<\_ACEOF
42416 #define HAVE_MOUNT_NODEV 1
42417 _ACEOF
42418
42419
42420 fi
42421 fi
42422
42423
42424
42425 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
42426 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
42427
42428
42429 cat confdefs.h - <<_ACEOF >conftest.c
42430 /* confdefs.h. */
42431 _ACEOF
42432 cat confdefs.h >>conftest.$ac_ext
42433 cat >>conftest.$ac_ext <<_ACEOF
42434 /* end confdefs.h. */
42435
42436
42437 #include <linux/fs.h>
42438
42439 int shrink(struct shrinker *s, struct shrink_control *sc)
42440 { return 0; }
42441
42442 static const struct super_block
42443 sb __attribute__ ((unused)) = {
42444 .s_shrink.shrink = shrink,
42445 .s_shrink.seeks = DEFAULT_SEEKS,
42446 .s_shrink.batch = 0,
42447 };
42448
42449 int
42450 main (void)
42451 {
42452
42453
42454 ;
42455 return 0;
42456 }
42457
42458 _ACEOF
42459
42460
42461
42462 cat - <<_ACEOF >conftest.h
42463
42464 _ACEOF
42465
42466
42467 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42468 echo "obj-m := conftest.o" >build/Makefile
42469 modpost_flag=''
42470 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42471 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42473 (eval $ac_try) 2>&5
42474 ac_status=$?
42475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42476 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42478 (eval $ac_try) 2>&5
42479 ac_status=$?
42480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42481 (exit $ac_status); }; }; then
42482
42483 { $as_echo "$as_me:$LINENO: result: yes" >&5
42484 $as_echo "yes" >&6; }
42485
42486 cat >>confdefs.h <<\_ACEOF
42487 #define HAVE_SHRINK 1
42488 _ACEOF
42489
42490
42491
42492 else
42493 $as_echo "$as_me: failed program was:" >&5
42494 sed 's/^/| /' conftest.$ac_ext >&5
42495
42496 { $as_echo "$as_me:$LINENO: result: no" >&5
42497 $as_echo "no" >&6; }
42498
42499
42500
42501 fi
42502
42503 rm -Rf build
42504
42505
42506
42507
42508 { $as_echo "$as_me:$LINENO: checking whether shrink_control has nid" >&5
42509 $as_echo_n "checking whether shrink_control has nid... " >&6; }
42510
42511
42512 cat confdefs.h - <<_ACEOF >conftest.c
42513 /* confdefs.h. */
42514 _ACEOF
42515 cat confdefs.h >>conftest.$ac_ext
42516 cat >>conftest.$ac_ext <<_ACEOF
42517 /* end confdefs.h. */
42518
42519
42520 #include <linux/fs.h>
42521
42522 int
42523 main (void)
42524 {
42525
42526 struct shrink_control sc __attribute__ ((unused));
42527 unsigned long scnidsize __attribute__ ((unused)) =
42528 sizeof(sc.nid);
42529
42530 ;
42531 return 0;
42532 }
42533
42534 _ACEOF
42535
42536
42537
42538 cat - <<_ACEOF >conftest.h
42539
42540 _ACEOF
42541
42542
42543 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42544 echo "obj-m := conftest.o" >build/Makefile
42545 modpost_flag=''
42546 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42547 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42549 (eval $ac_try) 2>&5
42550 ac_status=$?
42551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42552 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42554 (eval $ac_try) 2>&5
42555 ac_status=$?
42556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42557 (exit $ac_status); }; }; then
42558
42559 { $as_echo "$as_me:$LINENO: result: yes" >&5
42560 $as_echo "yes" >&6; }
42561
42562 cat >>confdefs.h <<\_ACEOF
42563 #define SHRINK_CONTROL_HAS_NID 1
42564 _ACEOF
42565
42566
42567 else
42568 $as_echo "$as_me: failed program was:" >&5
42569 sed 's/^/| /' conftest.$ac_ext >&5
42570
42571 { $as_echo "$as_me:$LINENO: result: no" >&5
42572 $as_echo "no" >&6; }
42573
42574
42575
42576 fi
42577
42578 rm -Rf build
42579
42580
42581
42582
42583 { $as_echo "$as_me:$LINENO: checking whether super_block has s_instances list_head" >&5
42584 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
42585
42586
42587 cat confdefs.h - <<_ACEOF >conftest.c
42588 /* confdefs.h. */
42589 _ACEOF
42590 cat confdefs.h >>conftest.$ac_ext
42591 cat >>conftest.$ac_ext <<_ACEOF
42592 /* end confdefs.h. */
42593
42594
42595 #include <linux/fs.h>
42596
42597 int
42598 main (void)
42599 {
42600
42601 struct super_block sb __attribute__ ((unused));
42602
42603 INIT_LIST_HEAD(&sb.s_instances);
42604
42605 ;
42606 return 0;
42607 }
42608
42609 _ACEOF
42610
42611
42612
42613 cat - <<_ACEOF >conftest.h
42614
42615 _ACEOF
42616
42617
42618 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42619 echo "obj-m := conftest.o" >build/Makefile
42620 modpost_flag=''
42621 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42622 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42624 (eval $ac_try) 2>&5
42625 ac_status=$?
42626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42627 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42629 (eval $ac_try) 2>&5
42630 ac_status=$?
42631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42632 (exit $ac_status); }; }; then
42633
42634 { $as_echo "$as_me:$LINENO: result: yes" >&5
42635 $as_echo "yes" >&6; }
42636
42637 cat >>confdefs.h <<\_ACEOF
42638 #define HAVE_S_INSTANCES_LIST_HEAD 1
42639 _ACEOF
42640
42641
42642 else
42643 $as_echo "$as_me: failed program was:" >&5
42644 sed 's/^/| /' conftest.$ac_ext >&5
42645
42646 { $as_echo "$as_me:$LINENO: result: no" >&5
42647 $as_echo "no" >&6; }
42648
42649
42650
42651 fi
42652
42653 rm -Rf build
42654
42655
42656
42657 { $as_echo "$as_me:$LINENO: checking whether super_block has s_d_op" >&5
42658 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
42659
42660
42661 cat confdefs.h - <<_ACEOF >conftest.c
42662 /* confdefs.h. */
42663 _ACEOF
42664 cat confdefs.h >>conftest.$ac_ext
42665 cat >>conftest.$ac_ext <<_ACEOF
42666 /* end confdefs.h. */
42667
42668
42669 #include <linux/fs.h>
42670
42671 int
42672 main (void)
42673 {
42674
42675 struct super_block sb __attribute__ ((unused));
42676 sb.s_d_op = NULL;
42677
42678 ;
42679 return 0;
42680 }
42681
42682 _ACEOF
42683
42684
42685
42686 cat - <<_ACEOF >conftest.h
42687
42688 _ACEOF
42689
42690
42691 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42692 echo "obj-m := conftest.o" >build/Makefile
42693 modpost_flag=''
42694 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42695 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42697 (eval $ac_try) 2>&5
42698 ac_status=$?
42699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42700 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42702 (eval $ac_try) 2>&5
42703 ac_status=$?
42704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42705 (exit $ac_status); }; }; then
42706
42707 { $as_echo "$as_me:$LINENO: result: yes" >&5
42708 $as_echo "yes" >&6; }
42709
42710 cat >>confdefs.h <<\_ACEOF
42711 #define HAVE_S_D_OP 1
42712 _ACEOF
42713
42714
42715 else
42716 $as_echo "$as_me: failed program was:" >&5
42717 sed 's/^/| /' conftest.$ac_ext >&5
42718
42719 { $as_echo "$as_me:$LINENO: result: no" >&5
42720 $as_echo "no" >&6; }
42721
42722
42723
42724 fi
42725
42726 rm -Rf build
42727
42728
42729
42730
42731 { $as_echo "$as_me:$LINENO: checking whether super_setup_bdi_name() exists" >&5
42732 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
42733
42734
42735
42736 cat confdefs.h - <<_ACEOF >conftest.c
42737 /* confdefs.h. */
42738 _ACEOF
42739 cat confdefs.h >>conftest.$ac_ext
42740 cat >>conftest.$ac_ext <<_ACEOF
42741 /* end confdefs.h. */
42742
42743
42744 #include <linux/fs.h>
42745 struct super_block sb;
42746
42747 int
42748 main (void)
42749 {
42750
42751 char *name = "bdi";
42752 atomic_long_t zfs_bdi_seq;
42753 int error __attribute__((unused)) =
42754 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
42755
42756 ;
42757 return 0;
42758 }
42759
42760 _ACEOF
42761
42762
42763
42764 cat - <<_ACEOF >conftest.h
42765
42766 _ACEOF
42767
42768
42769 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42770 echo "obj-m := conftest.o" >build/Makefile
42771 modpost_flag=''
42772 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42773 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42775 (eval $ac_try) 2>&5
42776 ac_status=$?
42777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42778 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42780 (eval $ac_try) 2>&5
42781 ac_status=$?
42782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42783 (exit $ac_status); }; }; then
42784 rc=0
42785 else
42786 $as_echo "$as_me: failed program was:" >&5
42787 sed 's/^/| /' conftest.$ac_ext >&5
42788 rc=1
42789
42790
42791 fi
42792
42793 rm -Rf build
42794
42795
42796 if test $rc -ne 0; then :
42797
42798 { $as_echo "$as_me:$LINENO: result: no" >&5
42799 $as_echo "no" >&6; }
42800 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
42801 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
42802
42803
42804
42805 cat confdefs.h - <<_ACEOF >conftest.c
42806 /* confdefs.h. */
42807 _ACEOF
42808 cat confdefs.h >>conftest.$ac_ext
42809 cat >>conftest.$ac_ext <<_ACEOF
42810 /* end confdefs.h. */
42811
42812
42813 #include <linux/backing-dev.h>
42814 struct backing_dev_info bdi;
42815
42816 int
42817 main (void)
42818 {
42819
42820 char *name = "bdi";
42821 int error __attribute__((unused)) =
42822 bdi_setup_and_register(&bdi, name);
42823
42824 ;
42825 return 0;
42826 }
42827
42828 _ACEOF
42829
42830
42831
42832 cat - <<_ACEOF >conftest.h
42833
42834 _ACEOF
42835
42836
42837 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42838 echo "obj-m := conftest.o" >build/Makefile
42839 modpost_flag=''
42840 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42841 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42843 (eval $ac_try) 2>&5
42844 ac_status=$?
42845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42846 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42848 (eval $ac_try) 2>&5
42849 ac_status=$?
42850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42851 (exit $ac_status); }; }; then
42852 rc=0
42853 else
42854 $as_echo "$as_me: failed program was:" >&5
42855 sed 's/^/| /' conftest.$ac_ext >&5
42856 rc=1
42857
42858
42859 fi
42860
42861 rm -Rf build
42862
42863
42864 if test $rc -ne 0; then :
42865
42866 { $as_echo "$as_me:$LINENO: result: no" >&5
42867 $as_echo "no" >&6; }
42868 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
42869 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
42870
42871
42872
42873 cat confdefs.h - <<_ACEOF >conftest.c
42874 /* confdefs.h. */
42875 _ACEOF
42876 cat confdefs.h >>conftest.$ac_ext
42877 cat >>conftest.$ac_ext <<_ACEOF
42878 /* end confdefs.h. */
42879
42880
42881 #include <linux/backing-dev.h>
42882 struct backing_dev_info bdi;
42883
42884 int
42885 main (void)
42886 {
42887
42888 char *name = "bdi";
42889 unsigned int cap = BDI_CAP_MAP_COPY;
42890 int error __attribute__((unused)) =
42891 bdi_setup_and_register(&bdi, name, cap);
42892
42893 ;
42894 return 0;
42895 }
42896
42897 _ACEOF
42898
42899
42900
42901 cat - <<_ACEOF >conftest.h
42902
42903 _ACEOF
42904
42905
42906 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42907 echo "obj-m := conftest.o" >build/Makefile
42908 modpost_flag=''
42909 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42910 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42912 (eval $ac_try) 2>&5
42913 ac_status=$?
42914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42915 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42917 (eval $ac_try) 2>&5
42918 ac_status=$?
42919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42920 (exit $ac_status); }; }; then
42921 rc=0
42922 else
42923 $as_echo "$as_me: failed program was:" >&5
42924 sed 's/^/| /' conftest.$ac_ext >&5
42925 rc=1
42926
42927
42928 fi
42929
42930 rm -Rf build
42931
42932
42933 if test $rc -ne 0; then :
42934
42935 { $as_echo "$as_me:$LINENO: result: no" >&5
42936 $as_echo "no" >&6; }
42937
42938 else
42939 if test "x$enable_linux_builtin" != xyes; then
42940
42941 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
42942 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
42943 rc=$?
42944 if test $rc -ne 0; then
42945 export=0
42946 for file in mm/backing-dev.c; do
42947 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
42948 "$LINUX/$file" 2>/dev/null
42949 rc=$?
42950 if test $rc -eq 0; then
42951 export=1
42952 break;
42953 fi
42954 done
42955 if test $export -eq 0; then :
42956 rc=1
42957 else :
42958 rc=0
42959 fi
42960 else :
42961 rc=0
42962 fi
42963
42964 fi
42965 if test $rc -ne 0; then :
42966
42967 { $as_echo "$as_me:$LINENO: result: no" >&5
42968 $as_echo "no" >&6; }
42969
42970 else :
42971
42972 { $as_echo "$as_me:$LINENO: result: yes" >&5
42973 $as_echo "yes" >&6; }
42974
42975 cat >>confdefs.h <<\_ACEOF
42976 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
42977 _ACEOF
42978
42979
42980 fi
42981 fi
42982
42983
42984 else
42985 if test "x$enable_linux_builtin" != xyes; then
42986
42987 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
42988 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
42989 rc=$?
42990 if test $rc -ne 0; then
42991 export=0
42992 for file in mm/backing-dev.c; do
42993 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
42994 "$LINUX/$file" 2>/dev/null
42995 rc=$?
42996 if test $rc -eq 0; then
42997 export=1
42998 break;
42999 fi
43000 done
43001 if test $export -eq 0; then :
43002 rc=1
43003 else :
43004 rc=0
43005 fi
43006 else :
43007 rc=0
43008 fi
43009
43010 fi
43011 if test $rc -ne 0; then :
43012
43013 { $as_echo "$as_me:$LINENO: result: no" >&5
43014 $as_echo "no" >&6; }
43015 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
43016 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
43017
43018
43019
43020 cat confdefs.h - <<_ACEOF >conftest.c
43021 /* confdefs.h. */
43022 _ACEOF
43023 cat confdefs.h >>conftest.$ac_ext
43024 cat >>conftest.$ac_ext <<_ACEOF
43025 /* end confdefs.h. */
43026
43027
43028 #include <linux/backing-dev.h>
43029 struct backing_dev_info bdi;
43030
43031 int
43032 main (void)
43033 {
43034
43035 char *name = "bdi";
43036 unsigned int cap = BDI_CAP_MAP_COPY;
43037 int error __attribute__((unused)) =
43038 bdi_setup_and_register(&bdi, name, cap);
43039
43040 ;
43041 return 0;
43042 }
43043
43044 _ACEOF
43045
43046
43047
43048 cat - <<_ACEOF >conftest.h
43049
43050 _ACEOF
43051
43052
43053 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43054 echo "obj-m := conftest.o" >build/Makefile
43055 modpost_flag=''
43056 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43057 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43059 (eval $ac_try) 2>&5
43060 ac_status=$?
43061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43062 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43064 (eval $ac_try) 2>&5
43065 ac_status=$?
43066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43067 (exit $ac_status); }; }; then
43068 rc=0
43069 else
43070 $as_echo "$as_me: failed program was:" >&5
43071 sed 's/^/| /' conftest.$ac_ext >&5
43072 rc=1
43073
43074
43075 fi
43076
43077 rm -Rf build
43078
43079
43080 if test $rc -ne 0; then :
43081
43082 { $as_echo "$as_me:$LINENO: result: no" >&5
43083 $as_echo "no" >&6; }
43084
43085 else
43086 if test "x$enable_linux_builtin" != xyes; then
43087
43088 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
43089 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43090 rc=$?
43091 if test $rc -ne 0; then
43092 export=0
43093 for file in mm/backing-dev.c; do
43094 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
43095 "$LINUX/$file" 2>/dev/null
43096 rc=$?
43097 if test $rc -eq 0; then
43098 export=1
43099 break;
43100 fi
43101 done
43102 if test $export -eq 0; then :
43103 rc=1
43104 else :
43105 rc=0
43106 fi
43107 else :
43108 rc=0
43109 fi
43110
43111 fi
43112 if test $rc -ne 0; then :
43113
43114 { $as_echo "$as_me:$LINENO: result: no" >&5
43115 $as_echo "no" >&6; }
43116
43117 else :
43118
43119 { $as_echo "$as_me:$LINENO: result: yes" >&5
43120 $as_echo "yes" >&6; }
43121
43122 cat >>confdefs.h <<\_ACEOF
43123 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
43124 _ACEOF
43125
43126
43127 fi
43128 fi
43129
43130
43131 else :
43132
43133 { $as_echo "$as_me:$LINENO: result: yes" >&5
43134 $as_echo "yes" >&6; }
43135
43136 cat >>confdefs.h <<\_ACEOF
43137 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
43138 _ACEOF
43139
43140
43141 fi
43142 fi
43143
43144
43145 else
43146 if test "x$enable_linux_builtin" != xyes; then
43147
43148 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
43149 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43150 rc=$?
43151 if test $rc -ne 0; then
43152 export=0
43153 for file in fs/super.c; do
43154 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
43155 "$LINUX/$file" 2>/dev/null
43156 rc=$?
43157 if test $rc -eq 0; then
43158 export=1
43159 break;
43160 fi
43161 done
43162 if test $export -eq 0; then :
43163 rc=1
43164 else :
43165 rc=0
43166 fi
43167 else :
43168 rc=0
43169 fi
43170
43171 fi
43172 if test $rc -ne 0; then :
43173
43174 { $as_echo "$as_me:$LINENO: result: no" >&5
43175 $as_echo "no" >&6; }
43176 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
43177 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
43178
43179
43180
43181 cat confdefs.h - <<_ACEOF >conftest.c
43182 /* confdefs.h. */
43183 _ACEOF
43184 cat confdefs.h >>conftest.$ac_ext
43185 cat >>conftest.$ac_ext <<_ACEOF
43186 /* end confdefs.h. */
43187
43188
43189 #include <linux/backing-dev.h>
43190 struct backing_dev_info bdi;
43191
43192 int
43193 main (void)
43194 {
43195
43196 char *name = "bdi";
43197 int error __attribute__((unused)) =
43198 bdi_setup_and_register(&bdi, name);
43199
43200 ;
43201 return 0;
43202 }
43203
43204 _ACEOF
43205
43206
43207
43208 cat - <<_ACEOF >conftest.h
43209
43210 _ACEOF
43211
43212
43213 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43214 echo "obj-m := conftest.o" >build/Makefile
43215 modpost_flag=''
43216 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43217 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43219 (eval $ac_try) 2>&5
43220 ac_status=$?
43221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43222 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43224 (eval $ac_try) 2>&5
43225 ac_status=$?
43226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43227 (exit $ac_status); }; }; then
43228 rc=0
43229 else
43230 $as_echo "$as_me: failed program was:" >&5
43231 sed 's/^/| /' conftest.$ac_ext >&5
43232 rc=1
43233
43234
43235 fi
43236
43237 rm -Rf build
43238
43239
43240 if test $rc -ne 0; then :
43241
43242 { $as_echo "$as_me:$LINENO: result: no" >&5
43243 $as_echo "no" >&6; }
43244 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
43245 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
43246
43247
43248
43249 cat confdefs.h - <<_ACEOF >conftest.c
43250 /* confdefs.h. */
43251 _ACEOF
43252 cat confdefs.h >>conftest.$ac_ext
43253 cat >>conftest.$ac_ext <<_ACEOF
43254 /* end confdefs.h. */
43255
43256
43257 #include <linux/backing-dev.h>
43258 struct backing_dev_info bdi;
43259
43260 int
43261 main (void)
43262 {
43263
43264 char *name = "bdi";
43265 unsigned int cap = BDI_CAP_MAP_COPY;
43266 int error __attribute__((unused)) =
43267 bdi_setup_and_register(&bdi, name, cap);
43268
43269 ;
43270 return 0;
43271 }
43272
43273 _ACEOF
43274
43275
43276
43277 cat - <<_ACEOF >conftest.h
43278
43279 _ACEOF
43280
43281
43282 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43283 echo "obj-m := conftest.o" >build/Makefile
43284 modpost_flag=''
43285 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43286 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43288 (eval $ac_try) 2>&5
43289 ac_status=$?
43290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43291 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43293 (eval $ac_try) 2>&5
43294 ac_status=$?
43295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43296 (exit $ac_status); }; }; then
43297 rc=0
43298 else
43299 $as_echo "$as_me: failed program was:" >&5
43300 sed 's/^/| /' conftest.$ac_ext >&5
43301 rc=1
43302
43303
43304 fi
43305
43306 rm -Rf build
43307
43308
43309 if test $rc -ne 0; then :
43310
43311 { $as_echo "$as_me:$LINENO: result: no" >&5
43312 $as_echo "no" >&6; }
43313
43314 else
43315 if test "x$enable_linux_builtin" != xyes; then
43316
43317 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
43318 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43319 rc=$?
43320 if test $rc -ne 0; then
43321 export=0
43322 for file in mm/backing-dev.c; do
43323 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
43324 "$LINUX/$file" 2>/dev/null
43325 rc=$?
43326 if test $rc -eq 0; then
43327 export=1
43328 break;
43329 fi
43330 done
43331 if test $export -eq 0; then :
43332 rc=1
43333 else :
43334 rc=0
43335 fi
43336 else :
43337 rc=0
43338 fi
43339
43340 fi
43341 if test $rc -ne 0; then :
43342
43343 { $as_echo "$as_me:$LINENO: result: no" >&5
43344 $as_echo "no" >&6; }
43345
43346 else :
43347
43348 { $as_echo "$as_me:$LINENO: result: yes" >&5
43349 $as_echo "yes" >&6; }
43350
43351 cat >>confdefs.h <<\_ACEOF
43352 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
43353 _ACEOF
43354
43355
43356 fi
43357 fi
43358
43359
43360 else
43361 if test "x$enable_linux_builtin" != xyes; then
43362
43363 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
43364 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43365 rc=$?
43366 if test $rc -ne 0; then
43367 export=0
43368 for file in mm/backing-dev.c; do
43369 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
43370 "$LINUX/$file" 2>/dev/null
43371 rc=$?
43372 if test $rc -eq 0; then
43373 export=1
43374 break;
43375 fi
43376 done
43377 if test $export -eq 0; then :
43378 rc=1
43379 else :
43380 rc=0
43381 fi
43382 else :
43383 rc=0
43384 fi
43385
43386 fi
43387 if test $rc -ne 0; then :
43388
43389 { $as_echo "$as_me:$LINENO: result: no" >&5
43390 $as_echo "no" >&6; }
43391 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
43392 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
43393
43394
43395
43396 cat confdefs.h - <<_ACEOF >conftest.c
43397 /* confdefs.h. */
43398 _ACEOF
43399 cat confdefs.h >>conftest.$ac_ext
43400 cat >>conftest.$ac_ext <<_ACEOF
43401 /* end confdefs.h. */
43402
43403
43404 #include <linux/backing-dev.h>
43405 struct backing_dev_info bdi;
43406
43407 int
43408 main (void)
43409 {
43410
43411 char *name = "bdi";
43412 unsigned int cap = BDI_CAP_MAP_COPY;
43413 int error __attribute__((unused)) =
43414 bdi_setup_and_register(&bdi, name, cap);
43415
43416 ;
43417 return 0;
43418 }
43419
43420 _ACEOF
43421
43422
43423
43424 cat - <<_ACEOF >conftest.h
43425
43426 _ACEOF
43427
43428
43429 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43430 echo "obj-m := conftest.o" >build/Makefile
43431 modpost_flag=''
43432 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43433 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43435 (eval $ac_try) 2>&5
43436 ac_status=$?
43437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43438 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43440 (eval $ac_try) 2>&5
43441 ac_status=$?
43442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43443 (exit $ac_status); }; }; then
43444 rc=0
43445 else
43446 $as_echo "$as_me: failed program was:" >&5
43447 sed 's/^/| /' conftest.$ac_ext >&5
43448 rc=1
43449
43450
43451 fi
43452
43453 rm -Rf build
43454
43455
43456 if test $rc -ne 0; then :
43457
43458 { $as_echo "$as_me:$LINENO: result: no" >&5
43459 $as_echo "no" >&6; }
43460
43461 else
43462 if test "x$enable_linux_builtin" != xyes; then
43463
43464 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
43465 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43466 rc=$?
43467 if test $rc -ne 0; then
43468 export=0
43469 for file in mm/backing-dev.c; do
43470 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
43471 "$LINUX/$file" 2>/dev/null
43472 rc=$?
43473 if test $rc -eq 0; then
43474 export=1
43475 break;
43476 fi
43477 done
43478 if test $export -eq 0; then :
43479 rc=1
43480 else :
43481 rc=0
43482 fi
43483 else :
43484 rc=0
43485 fi
43486
43487 fi
43488 if test $rc -ne 0; then :
43489
43490 { $as_echo "$as_me:$LINENO: result: no" >&5
43491 $as_echo "no" >&6; }
43492
43493 else :
43494
43495 { $as_echo "$as_me:$LINENO: result: yes" >&5
43496 $as_echo "yes" >&6; }
43497
43498 cat >>confdefs.h <<\_ACEOF
43499 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
43500 _ACEOF
43501
43502
43503 fi
43504 fi
43505
43506
43507 else :
43508
43509 { $as_echo "$as_me:$LINENO: result: yes" >&5
43510 $as_echo "yes" >&6; }
43511
43512 cat >>confdefs.h <<\_ACEOF
43513 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
43514 _ACEOF
43515
43516
43517 fi
43518 fi
43519
43520
43521 else :
43522
43523 { $as_echo "$as_me:$LINENO: result: yes" >&5
43524 $as_echo "yes" >&6; }
43525
43526 cat >>confdefs.h <<\_ACEOF
43527 #define HAVE_SUPER_SETUP_BDI_NAME 1
43528 _ACEOF
43529
43530
43531 fi
43532 fi
43533
43534
43535
43536 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
43537 $as_echo_n "checking whether set_nlink() is available... " >&6; }
43538
43539
43540 cat confdefs.h - <<_ACEOF >conftest.c
43541 /* confdefs.h. */
43542 _ACEOF
43543 cat confdefs.h >>conftest.$ac_ext
43544 cat >>conftest.$ac_ext <<_ACEOF
43545 /* end confdefs.h. */
43546
43547
43548 #include <linux/fs.h>
43549
43550 int
43551 main (void)
43552 {
43553
43554 struct inode node;
43555 unsigned int link = 0;
43556 (void) set_nlink(&node, link);
43557
43558 ;
43559 return 0;
43560 }
43561
43562 _ACEOF
43563
43564
43565
43566 cat - <<_ACEOF >conftest.h
43567
43568 _ACEOF
43569
43570
43571 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43572 echo "obj-m := conftest.o" >build/Makefile
43573 modpost_flag=''
43574 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43575 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43577 (eval $ac_try) 2>&5
43578 ac_status=$?
43579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43580 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43582 (eval $ac_try) 2>&5
43583 ac_status=$?
43584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43585 (exit $ac_status); }; }; then
43586
43587 { $as_echo "$as_me:$LINENO: result: yes" >&5
43588 $as_echo "yes" >&6; }
43589
43590 cat >>confdefs.h <<\_ACEOF
43591 #define HAVE_SET_NLINK 1
43592 _ACEOF
43593
43594
43595 else
43596 $as_echo "$as_me: failed program was:" >&5
43597 sed 's/^/| /' conftest.$ac_ext >&5
43598
43599 { $as_echo "$as_me:$LINENO: result: no" >&5
43600 $as_echo "no" >&6; }
43601
43602
43603
43604 fi
43605
43606 rm -Rf build
43607
43608
43609
43610
43611 { $as_echo "$as_me:$LINENO: checking whether elevator_change() is available" >&5
43612 $as_echo_n "checking whether elevator_change() is available... " >&6; }
43613 tmp_flags="$EXTRA_KCFLAGS"
43614 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
43615
43616
43617 cat confdefs.h - <<_ACEOF >conftest.c
43618 /* confdefs.h. */
43619 _ACEOF
43620 cat confdefs.h >>conftest.$ac_ext
43621 cat >>conftest.$ac_ext <<_ACEOF
43622 /* end confdefs.h. */
43623
43624
43625 #include <linux/blkdev.h>
43626 #include <linux/elevator.h>
43627
43628 int
43629 main (void)
43630 {
43631
43632 int ret;
43633 struct request_queue *q = NULL;
43634 char *elevator = NULL;
43635 ret = elevator_change(q, elevator);
43636
43637 ;
43638 return 0;
43639 }
43640
43641 _ACEOF
43642
43643
43644
43645 cat - <<_ACEOF >conftest.h
43646
43647 _ACEOF
43648
43649
43650 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43651 echo "obj-m := conftest.o" >build/Makefile
43652 modpost_flag=''
43653 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43654 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43656 (eval $ac_try) 2>&5
43657 ac_status=$?
43658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43659 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43661 (eval $ac_try) 2>&5
43662 ac_status=$?
43663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43664 (exit $ac_status); }; }; then
43665
43666 { $as_echo "$as_me:$LINENO: result: yes" >&5
43667 $as_echo "yes" >&6; }
43668
43669 cat >>confdefs.h <<\_ACEOF
43670 #define HAVE_ELEVATOR_CHANGE 1
43671 _ACEOF
43672
43673
43674 else
43675 $as_echo "$as_me: failed program was:" >&5
43676 sed 's/^/| /' conftest.$ac_ext >&5
43677
43678 { $as_echo "$as_me:$LINENO: result: no" >&5
43679 $as_echo "no" >&6; }
43680
43681
43682
43683 fi
43684
43685 rm -Rf build
43686
43687
43688 EXTRA_KCFLAGS="$tmp_flags"
43689
43690 { $as_echo "$as_me:$LINENO: checking whether sget() wants 5 args" >&5
43691 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
43692
43693
43694 cat confdefs.h - <<_ACEOF >conftest.c
43695 /* confdefs.h. */
43696 _ACEOF
43697 cat confdefs.h >>conftest.$ac_ext
43698 cat >>conftest.$ac_ext <<_ACEOF
43699 /* end confdefs.h. */
43700
43701
43702 #include <linux/fs.h>
43703
43704 int
43705 main (void)
43706 {
43707
43708 struct file_system_type *type = NULL;
43709 int (*test)(struct super_block *,void *) = NULL;
43710 int (*set)(struct super_block *,void *) = NULL;
43711 int flags = 0;
43712 void *data = NULL;
43713 (void) sget(type, test, set, flags, data);
43714
43715 ;
43716 return 0;
43717 }
43718
43719 _ACEOF
43720
43721
43722
43723 cat - <<_ACEOF >conftest.h
43724
43725 _ACEOF
43726
43727
43728 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43729 echo "obj-m := conftest.o" >build/Makefile
43730 modpost_flag=''
43731 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43732 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43734 (eval $ac_try) 2>&5
43735 ac_status=$?
43736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43737 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43739 (eval $ac_try) 2>&5
43740 ac_status=$?
43741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43742 (exit $ac_status); }; }; then
43743
43744 { $as_echo "$as_me:$LINENO: result: yes" >&5
43745 $as_echo "yes" >&6; }
43746
43747 cat >>confdefs.h <<\_ACEOF
43748 #define HAVE_5ARG_SGET 1
43749 _ACEOF
43750
43751
43752 else
43753 $as_echo "$as_me: failed program was:" >&5
43754 sed 's/^/| /' conftest.$ac_ext >&5
43755
43756 { $as_echo "$as_me:$LINENO: result: no" >&5
43757 $as_echo "no" >&6; }
43758
43759
43760
43761 fi
43762
43763 rm -Rf build
43764
43765
43766
43767 { $as_echo "$as_me:$LINENO: checking whether lseek_execute() is available" >&5
43768 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
43769
43770
43771
43772 cat confdefs.h - <<_ACEOF >conftest.c
43773 /* confdefs.h. */
43774 _ACEOF
43775 cat confdefs.h >>conftest.$ac_ext
43776 cat >>conftest.$ac_ext <<_ACEOF
43777 /* end confdefs.h. */
43778
43779
43780 #include <linux/fs.h>
43781
43782 int
43783 main (void)
43784 {
43785
43786 struct file *fp __attribute__ ((unused)) = NULL;
43787 struct inode *ip __attribute__ ((unused)) = NULL;
43788 loff_t offset __attribute__ ((unused)) = 0;
43789 loff_t maxsize __attribute__ ((unused)) = 0;
43790
43791 lseek_execute(fp, ip, offset, maxsize);
43792
43793 ;
43794 return 0;
43795 }
43796
43797 _ACEOF
43798
43799
43800
43801 cat - <<_ACEOF >conftest.h
43802
43803 _ACEOF
43804
43805
43806 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43807 echo "obj-m := conftest.o" >build/Makefile
43808 modpost_flag=''
43809 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43810 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43812 (eval $ac_try) 2>&5
43813 ac_status=$?
43814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43815 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43817 (eval $ac_try) 2>&5
43818 ac_status=$?
43819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43820 (exit $ac_status); }; }; then
43821 rc=0
43822 else
43823 $as_echo "$as_me: failed program was:" >&5
43824 sed 's/^/| /' conftest.$ac_ext >&5
43825 rc=1
43826
43827
43828 fi
43829
43830 rm -Rf build
43831
43832
43833 if test $rc -ne 0; then :
43834
43835 { $as_echo "$as_me:$LINENO: result: no" >&5
43836 $as_echo "no" >&6; }
43837
43838 else
43839 if test "x$enable_linux_builtin" != xyes; then
43840
43841 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
43842 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43843 rc=$?
43844 if test $rc -ne 0; then
43845 export=0
43846 for file in fs/read_write.c; do
43847 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
43848 "$LINUX/$file" 2>/dev/null
43849 rc=$?
43850 if test $rc -eq 0; then
43851 export=1
43852 break;
43853 fi
43854 done
43855 if test $export -eq 0; then :
43856 rc=1
43857 else :
43858 rc=0
43859 fi
43860 else :
43861 rc=0
43862 fi
43863
43864 fi
43865 if test $rc -ne 0; then :
43866
43867 { $as_echo "$as_me:$LINENO: result: no" >&5
43868 $as_echo "no" >&6; }
43869
43870 else :
43871
43872 { $as_echo "$as_me:$LINENO: result: yes" >&5
43873 $as_echo "yes" >&6; }
43874
43875 cat >>confdefs.h <<\_ACEOF
43876 #define HAVE_LSEEK_EXECUTE 1
43877 _ACEOF
43878
43879
43880 fi
43881 fi
43882
43883
43884
43885 { $as_echo "$as_me:$LINENO: checking whether fops->iterate_shared() is available" >&5
43886 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
43887
43888
43889 cat confdefs.h - <<_ACEOF >conftest.c
43890 /* confdefs.h. */
43891 _ACEOF
43892 cat confdefs.h >>conftest.$ac_ext
43893 cat >>conftest.$ac_ext <<_ACEOF
43894 /* end confdefs.h. */
43895
43896
43897 #include <linux/fs.h>
43898 int iterate(struct file *filp, struct dir_context * context)
43899 { return 0; }
43900
43901 static const struct file_operations fops
43902 __attribute__ ((unused)) = {
43903 .iterate_shared = iterate,
43904 };
43905
43906 int
43907 main (void)
43908 {
43909
43910
43911 ;
43912 return 0;
43913 }
43914
43915 _ACEOF
43916
43917
43918
43919 cat - <<_ACEOF >conftest.h
43920
43921 _ACEOF
43922
43923
43924 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43925 echo "obj-m := conftest.o" >build/Makefile
43926 modpost_flag=''
43927 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43928 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43930 (eval $ac_try) 2>&5
43931 ac_status=$?
43932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43933 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43935 (eval $ac_try) 2>&5
43936 ac_status=$?
43937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43938 (exit $ac_status); }; }; then
43939
43940 { $as_echo "$as_me:$LINENO: result: yes" >&5
43941 $as_echo "yes" >&6; }
43942
43943 cat >>confdefs.h <<\_ACEOF
43944 #define HAVE_VFS_ITERATE_SHARED 1
43945 _ACEOF
43946
43947
43948 else
43949 $as_echo "$as_me: failed program was:" >&5
43950 sed 's/^/| /' conftest.$ac_ext >&5
43951
43952 { $as_echo "$as_me:$LINENO: result: no" >&5
43953 $as_echo "no" >&6; }
43954
43955 { $as_echo "$as_me:$LINENO: checking whether fops->iterate() is available" >&5
43956 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
43957
43958
43959 cat confdefs.h - <<_ACEOF >conftest.c
43960 /* confdefs.h. */
43961 _ACEOF
43962 cat confdefs.h >>conftest.$ac_ext
43963 cat >>conftest.$ac_ext <<_ACEOF
43964 /* end confdefs.h. */
43965
43966
43967 #include <linux/fs.h>
43968 int iterate(struct file *filp, struct dir_context * context)
43969 { return 0; }
43970
43971 static const struct file_operations fops
43972 __attribute__ ((unused)) = {
43973 .iterate = iterate,
43974 };
43975
43976 int
43977 main (void)
43978 {
43979
43980
43981 ;
43982 return 0;
43983 }
43984
43985 _ACEOF
43986
43987
43988
43989 cat - <<_ACEOF >conftest.h
43990
43991 _ACEOF
43992
43993
43994 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43995 echo "obj-m := conftest.o" >build/Makefile
43996 modpost_flag=''
43997 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43998 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44000 (eval $ac_try) 2>&5
44001 ac_status=$?
44002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44003 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44005 (eval $ac_try) 2>&5
44006 ac_status=$?
44007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44008 (exit $ac_status); }; }; then
44009
44010 { $as_echo "$as_me:$LINENO: result: yes" >&5
44011 $as_echo "yes" >&6; }
44012
44013 cat >>confdefs.h <<\_ACEOF
44014 #define HAVE_VFS_ITERATE 1
44015 _ACEOF
44016
44017
44018 else
44019 $as_echo "$as_me: failed program was:" >&5
44020 sed 's/^/| /' conftest.$ac_ext >&5
44021
44022 { $as_echo "$as_me:$LINENO: result: no" >&5
44023 $as_echo "no" >&6; }
44024
44025 { $as_echo "$as_me:$LINENO: checking whether fops->readdir() is available" >&5
44026 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
44027
44028
44029 cat confdefs.h - <<_ACEOF >conftest.c
44030 /* confdefs.h. */
44031 _ACEOF
44032 cat confdefs.h >>conftest.$ac_ext
44033 cat >>conftest.$ac_ext <<_ACEOF
44034 /* end confdefs.h. */
44035
44036
44037 #include <linux/fs.h>
44038 int readdir(struct file *filp, void *entry, filldir_t func)
44039 { return 0; }
44040
44041 static const struct file_operations fops
44042 __attribute__ ((unused)) = {
44043 .readdir = readdir,
44044 };
44045
44046 int
44047 main (void)
44048 {
44049
44050
44051 ;
44052 return 0;
44053 }
44054
44055 _ACEOF
44056
44057
44058
44059 cat - <<_ACEOF >conftest.h
44060
44061 _ACEOF
44062
44063
44064 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44065 echo "obj-m := conftest.o" >build/Makefile
44066 modpost_flag=''
44067 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44068 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44070 (eval $ac_try) 2>&5
44071 ac_status=$?
44072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44073 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44075 (eval $ac_try) 2>&5
44076 ac_status=$?
44077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44078 (exit $ac_status); }; }; then
44079
44080 { $as_echo "$as_me:$LINENO: result: yes" >&5
44081 $as_echo "yes" >&6; }
44082
44083 cat >>confdefs.h <<\_ACEOF
44084 #define HAVE_VFS_READDIR 1
44085 _ACEOF
44086
44087
44088 else
44089 $as_echo "$as_me: failed program was:" >&5
44090 sed 's/^/| /' conftest.$ac_ext >&5
44091
44092 { { $as_echo "$as_me:$LINENO: error: no; file a bug report with ZFSOnLinux" >&5
44093 $as_echo "$as_me: error: no; file a bug report with ZFSOnLinux" >&2;}
44094 { (exit 1); exit 1; }; }
44095
44096
44097
44098 fi
44099
44100 rm -Rf build
44101
44102
44103
44104
44105
44106 fi
44107
44108 rm -Rf build
44109
44110
44111
44112
44113
44114 fi
44115
44116 rm -Rf build
44117
44118
44119
44120 { $as_echo "$as_me:$LINENO: checking whether fops->read/write_iter() are available" >&5
44121 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
44122
44123
44124 cat confdefs.h - <<_ACEOF >conftest.c
44125 /* confdefs.h. */
44126 _ACEOF
44127 cat confdefs.h >>conftest.$ac_ext
44128 cat >>conftest.$ac_ext <<_ACEOF
44129 /* end confdefs.h. */
44130
44131
44132 #include <linux/fs.h>
44133
44134 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
44135 { return 0; }
44136 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
44137 { return 0; }
44138
44139 static const struct file_operations
44140 fops __attribute__ ((unused)) = {
44141 .read_iter = test_read,
44142 .write_iter = test_write,
44143 };
44144
44145 int
44146 main (void)
44147 {
44148
44149
44150 ;
44151 return 0;
44152 }
44153
44154 _ACEOF
44155
44156
44157
44158 cat - <<_ACEOF >conftest.h
44159
44160 _ACEOF
44161
44162
44163 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44164 echo "obj-m := conftest.o" >build/Makefile
44165 modpost_flag=''
44166 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44167 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44169 (eval $ac_try) 2>&5
44170 ac_status=$?
44171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44172 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44174 (eval $ac_try) 2>&5
44175 ac_status=$?
44176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44177 (exit $ac_status); }; }; then
44178
44179 { $as_echo "$as_me:$LINENO: result: yes" >&5
44180 $as_echo "yes" >&6; }
44181
44182 cat >>confdefs.h <<\_ACEOF
44183 #define HAVE_VFS_RW_ITERATE 1
44184 _ACEOF
44185
44186
44187 { $as_echo "$as_me:$LINENO: checking whether new_sync_read() is available" >&5
44188 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
44189
44190
44191 cat confdefs.h - <<_ACEOF >conftest.c
44192 /* confdefs.h. */
44193 _ACEOF
44194 cat confdefs.h >>conftest.$ac_ext
44195 cat >>conftest.$ac_ext <<_ACEOF
44196 /* end confdefs.h. */
44197
44198
44199 #include <linux/fs.h>
44200
44201 int
44202 main (void)
44203 {
44204
44205 new_sync_read(NULL, NULL, 0, NULL);
44206
44207 ;
44208 return 0;
44209 }
44210
44211 _ACEOF
44212
44213
44214
44215 cat - <<_ACEOF >conftest.h
44216
44217 _ACEOF
44218
44219
44220 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44221 echo "obj-m := conftest.o" >build/Makefile
44222 modpost_flag=''
44223 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44224 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44226 (eval $ac_try) 2>&5
44227 ac_status=$?
44228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44229 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44231 (eval $ac_try) 2>&5
44232 ac_status=$?
44233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44234 (exit $ac_status); }; }; then
44235
44236 { $as_echo "$as_me:$LINENO: result: yes" >&5
44237 $as_echo "yes" >&6; }
44238
44239 cat >>confdefs.h <<\_ACEOF
44240 #define HAVE_NEW_SYNC_READ 1
44241 _ACEOF
44242
44243
44244 else
44245 $as_echo "$as_me: failed program was:" >&5
44246 sed 's/^/| /' conftest.$ac_ext >&5
44247
44248 { $as_echo "$as_me:$LINENO: result: no" >&5
44249 $as_echo "no" >&6; }
44250
44251
44252
44253 fi
44254
44255 rm -Rf build
44256
44257
44258
44259
44260 else
44261 $as_echo "$as_me: failed program was:" >&5
44262 sed 's/^/| /' conftest.$ac_ext >&5
44263
44264 { $as_echo "$as_me:$LINENO: result: no" >&5
44265 $as_echo "no" >&6; }
44266
44267
44268
44269 fi
44270
44271 rm -Rf build
44272
44273
44274
44275 { $as_echo "$as_me:$LINENO: checking whether generic_write_checks() takes kiocb" >&5
44276 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
44277
44278
44279 cat confdefs.h - <<_ACEOF >conftest.c
44280 /* confdefs.h. */
44281 _ACEOF
44282 cat confdefs.h >>conftest.$ac_ext
44283 cat >>conftest.$ac_ext <<_ACEOF
44284 /* end confdefs.h. */
44285
44286
44287 #include <linux/fs.h>
44288
44289
44290 int
44291 main (void)
44292 {
44293
44294 struct kiocb *iocb = NULL;
44295 struct iov_iter *iov = NULL;
44296 generic_write_checks(iocb, iov);
44297
44298 ;
44299 return 0;
44300 }
44301
44302 _ACEOF
44303
44304
44305
44306 cat - <<_ACEOF >conftest.h
44307
44308 _ACEOF
44309
44310
44311 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44312 echo "obj-m := conftest.o" >build/Makefile
44313 modpost_flag=''
44314 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44315 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44317 (eval $ac_try) 2>&5
44318 ac_status=$?
44319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44320 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44322 (eval $ac_try) 2>&5
44323 ac_status=$?
44324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44325 (exit $ac_status); }; }; then
44326
44327 { $as_echo "$as_me:$LINENO: result: yes" >&5
44328 $as_echo "yes" >&6; }
44329
44330 cat >>confdefs.h <<\_ACEOF
44331 #define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1
44332 _ACEOF
44333
44334
44335 else
44336 $as_echo "$as_me: failed program was:" >&5
44337 sed 's/^/| /' conftest.$ac_ext >&5
44338
44339 { $as_echo "$as_me:$LINENO: result: no" >&5
44340 $as_echo "no" >&6; }
44341
44342
44343
44344 fi
44345
44346 rm -Rf build
44347
44348
44349
44350
44351 { $as_echo "$as_me:$LINENO: checking whether kmap_atomic wants 1 args" >&5
44352 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
44353
44354
44355 cat confdefs.h - <<_ACEOF >conftest.c
44356 /* confdefs.h. */
44357 _ACEOF
44358 cat confdefs.h >>conftest.$ac_ext
44359 cat >>conftest.$ac_ext <<_ACEOF
44360 /* end confdefs.h. */
44361
44362
44363 #include <linux/pagemap.h>
44364
44365 int
44366 main (void)
44367 {
44368
44369 struct page page;
44370 kmap_atomic(&page);
44371
44372 ;
44373 return 0;
44374 }
44375
44376 _ACEOF
44377
44378
44379
44380 cat - <<_ACEOF >conftest.h
44381
44382 _ACEOF
44383
44384
44385 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44386 echo "obj-m := conftest.o" >build/Makefile
44387 modpost_flag=''
44388 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44389 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44391 (eval $ac_try) 2>&5
44392 ac_status=$?
44393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44394 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44396 (eval $ac_try) 2>&5
44397 ac_status=$?
44398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44399 (exit $ac_status); }; }; then
44400
44401 { $as_echo "$as_me:$LINENO: result: yes" >&5
44402 $as_echo "yes" >&6; }
44403
44404 cat >>confdefs.h <<\_ACEOF
44405 #define HAVE_1ARG_KMAP_ATOMIC 1
44406 _ACEOF
44407
44408
44409 else
44410 $as_echo "$as_me: failed program was:" >&5
44411 sed 's/^/| /' conftest.$ac_ext >&5
44412
44413 { $as_echo "$as_me:$LINENO: result: no" >&5
44414 $as_echo "no" >&6; }
44415
44416
44417
44418 fi
44419
44420 rm -Rf build
44421
44422
44423
44424
44425 { $as_echo "$as_me:$LINENO: checking whether follow_down_one() is available" >&5
44426 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
44427
44428
44429 cat confdefs.h - <<_ACEOF >conftest.c
44430 /* confdefs.h. */
44431 _ACEOF
44432 cat confdefs.h >>conftest.$ac_ext
44433 cat >>conftest.$ac_ext <<_ACEOF
44434 /* end confdefs.h. */
44435
44436
44437 #include <linux/namei.h>
44438
44439 int
44440 main (void)
44441 {
44442
44443 struct path *p = NULL;
44444 follow_down_one(p);
44445
44446 ;
44447 return 0;
44448 }
44449
44450 _ACEOF
44451
44452
44453
44454 cat - <<_ACEOF >conftest.h
44455
44456 _ACEOF
44457
44458
44459 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44460 echo "obj-m := conftest.o" >build/Makefile
44461 modpost_flag=''
44462 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44463 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44465 (eval $ac_try) 2>&5
44466 ac_status=$?
44467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44468 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44470 (eval $ac_try) 2>&5
44471 ac_status=$?
44472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44473 (exit $ac_status); }; }; then
44474
44475 { $as_echo "$as_me:$LINENO: result: yes" >&5
44476 $as_echo "yes" >&6; }
44477
44478 cat >>confdefs.h <<\_ACEOF
44479 #define HAVE_FOLLOW_DOWN_ONE 1
44480 _ACEOF
44481
44482
44483 else
44484 $as_echo "$as_me: failed program was:" >&5
44485 sed 's/^/| /' conftest.$ac_ext >&5
44486
44487 { $as_echo "$as_me:$LINENO: result: no" >&5
44488 $as_echo "no" >&6; }
44489
44490
44491
44492 fi
44493
44494 rm -Rf build
44495
44496
44497
44498
44499 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns int" >&5
44500 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
44501
44502
44503 cat confdefs.h - <<_ACEOF >conftest.c
44504 /* confdefs.h. */
44505 _ACEOF
44506 cat confdefs.h >>conftest.$ac_ext
44507 cat >>conftest.$ac_ext <<_ACEOF
44508 /* end confdefs.h. */
44509
44510
44511 #include <linux/blkdev.h>
44512
44513 int make_request(struct request_queue *q, struct bio *bio)
44514 {
44515 return (0);
44516 }
44517
44518 int
44519 main (void)
44520 {
44521
44522 blk_queue_make_request(NULL, &make_request);
44523
44524 ;
44525 return 0;
44526 }
44527
44528 _ACEOF
44529
44530
44531
44532 cat - <<_ACEOF >conftest.h
44533
44534 _ACEOF
44535
44536
44537 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44538 echo "obj-m := conftest.o" >build/Makefile
44539 modpost_flag=''
44540 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44541 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44543 (eval $ac_try) 2>&5
44544 ac_status=$?
44545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44546 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44548 (eval $ac_try) 2>&5
44549 ac_status=$?
44550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44551 (exit $ac_status); }; }; then
44552
44553 { $as_echo "$as_me:$LINENO: result: yes" >&5
44554 $as_echo "yes" >&6; }
44555
44556 cat >>confdefs.h <<\_ACEOF
44557 #define MAKE_REQUEST_FN_RET int
44558 _ACEOF
44559
44560
44561 cat >>confdefs.h <<\_ACEOF
44562 #define HAVE_MAKE_REQUEST_FN_RET_INT 1
44563 _ACEOF
44564
44565
44566 else
44567 $as_echo "$as_me: failed program was:" >&5
44568 sed 's/^/| /' conftest.$ac_ext >&5
44569
44570 { $as_echo "$as_me:$LINENO: result: no" >&5
44571 $as_echo "no" >&6; }
44572 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns void" >&5
44573 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
44574
44575
44576 cat confdefs.h - <<_ACEOF >conftest.c
44577 /* confdefs.h. */
44578 _ACEOF
44579 cat confdefs.h >>conftest.$ac_ext
44580 cat >>conftest.$ac_ext <<_ACEOF
44581 /* end confdefs.h. */
44582
44583
44584 #include <linux/blkdev.h>
44585
44586 void make_request(struct request_queue *q, struct bio *bio)
44587 {
44588 return;
44589 }
44590
44591 int
44592 main (void)
44593 {
44594
44595 blk_queue_make_request(NULL, &make_request);
44596
44597 ;
44598 return 0;
44599 }
44600
44601 _ACEOF
44602
44603
44604
44605 cat - <<_ACEOF >conftest.h
44606
44607 _ACEOF
44608
44609
44610 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44611 echo "obj-m := conftest.o" >build/Makefile
44612 modpost_flag=''
44613 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44614 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44616 (eval $ac_try) 2>&5
44617 ac_status=$?
44618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44619 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44621 (eval $ac_try) 2>&5
44622 ac_status=$?
44623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44624 (exit $ac_status); }; }; then
44625
44626 { $as_echo "$as_me:$LINENO: result: yes" >&5
44627 $as_echo "yes" >&6; }
44628
44629 cat >>confdefs.h <<\_ACEOF
44630 #define MAKE_REQUEST_FN_RET void
44631 _ACEOF
44632
44633
44634 else
44635 $as_echo "$as_me: failed program was:" >&5
44636 sed 's/^/| /' conftest.$ac_ext >&5
44637
44638 { $as_echo "$as_me:$LINENO: result: no" >&5
44639 $as_echo "no" >&6; }
44640 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns blk_qc_t" >&5
44641 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
44642
44643
44644 cat confdefs.h - <<_ACEOF >conftest.c
44645 /* confdefs.h. */
44646 _ACEOF
44647 cat confdefs.h >>conftest.$ac_ext
44648 cat >>conftest.$ac_ext <<_ACEOF
44649 /* end confdefs.h. */
44650
44651
44652 #include <linux/blkdev.h>
44653
44654 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
44655 {
44656 return (BLK_QC_T_NONE);
44657 }
44658
44659 int
44660 main (void)
44661 {
44662
44663 blk_queue_make_request(NULL, &make_request);
44664
44665 ;
44666 return 0;
44667 }
44668
44669 _ACEOF
44670
44671
44672
44673 cat - <<_ACEOF >conftest.h
44674
44675 _ACEOF
44676
44677
44678 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44679 echo "obj-m := conftest.o" >build/Makefile
44680 modpost_flag=''
44681 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44682 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44684 (eval $ac_try) 2>&5
44685 ac_status=$?
44686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44687 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44689 (eval $ac_try) 2>&5
44690 ac_status=$?
44691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44692 (exit $ac_status); }; }; then
44693
44694 { $as_echo "$as_me:$LINENO: result: yes" >&5
44695 $as_echo "yes" >&6; }
44696
44697 cat >>confdefs.h <<\_ACEOF
44698 #define MAKE_REQUEST_FN_RET blk_qc_t
44699 _ACEOF
44700
44701
44702 cat >>confdefs.h <<\_ACEOF
44703 #define HAVE_MAKE_REQUEST_FN_RET_QC 1
44704 _ACEOF
44705
44706
44707 else
44708 $as_echo "$as_me: failed program was:" >&5
44709 sed 's/^/| /' conftest.$ac_ext >&5
44710
44711 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
44712 https://github.com/zfsonlinux/zfs/issues/new" >&5
44713 $as_echo "$as_me: error: no - Please file a bug report at
44714 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
44715 { (exit 1); exit 1; }; }
44716
44717
44718
44719 fi
44720
44721 rm -Rf build
44722
44723
44724
44725
44726
44727 fi
44728
44729 rm -Rf build
44730
44731
44732
44733
44734
44735 fi
44736
44737 rm -Rf build
44738
44739
44740
44741
44742 { $as_echo "$as_me:$LINENO: checking whether 3 arg generic IO accounting symbols are available" >&5
44743 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
44744
44745
44746
44747 cat confdefs.h - <<_ACEOF >conftest.c
44748 /* confdefs.h. */
44749 _ACEOF
44750 cat confdefs.h >>conftest.$ac_ext
44751 cat >>conftest.$ac_ext <<_ACEOF
44752 /* end confdefs.h. */
44753
44754
44755 #include <linux/bio.h>
44756
44757 void (*generic_start_io_acct_f)(int, unsigned long,
44758 struct hd_struct *) = &generic_start_io_acct;
44759 void (*generic_end_io_acct_f)(int, struct hd_struct *,
44760 unsigned long) = &generic_end_io_acct;
44761
44762 int
44763 main (void)
44764 {
44765
44766 generic_start_io_acct(0, 0, NULL);
44767 generic_end_io_acct(0, NULL, 0);
44768
44769 ;
44770 return 0;
44771 }
44772
44773 _ACEOF
44774
44775
44776
44777 cat - <<_ACEOF >conftest.h
44778
44779 _ACEOF
44780
44781
44782 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44783 echo "obj-m := conftest.o" >build/Makefile
44784 modpost_flag=''
44785 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44786 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44788 (eval $ac_try) 2>&5
44789 ac_status=$?
44790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44791 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44793 (eval $ac_try) 2>&5
44794 ac_status=$?
44795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44796 (exit $ac_status); }; }; then
44797 rc=0
44798 else
44799 $as_echo "$as_me: failed program was:" >&5
44800 sed 's/^/| /' conftest.$ac_ext >&5
44801 rc=1
44802
44803
44804 fi
44805
44806 rm -Rf build
44807
44808
44809 if test $rc -ne 0; then :
44810
44811 { $as_echo "$as_me:$LINENO: result: no" >&5
44812 $as_echo "no" >&6; }
44813
44814 else
44815 if test "x$enable_linux_builtin" != xyes; then
44816
44817 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
44818 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44819 rc=$?
44820 if test $rc -ne 0; then
44821 export=0
44822 for file in block/bio.c; do
44823 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
44824 "$LINUX/$file" 2>/dev/null
44825 rc=$?
44826 if test $rc -eq 0; then
44827 export=1
44828 break;
44829 fi
44830 done
44831 if test $export -eq 0; then :
44832 rc=1
44833 else :
44834 rc=0
44835 fi
44836 else :
44837 rc=0
44838 fi
44839
44840 fi
44841 if test $rc -ne 0; then :
44842
44843 { $as_echo "$as_me:$LINENO: result: no" >&5
44844 $as_echo "no" >&6; }
44845
44846 else :
44847
44848 { $as_echo "$as_me:$LINENO: result: yes" >&5
44849 $as_echo "yes" >&6; }
44850
44851 cat >>confdefs.h <<\_ACEOF
44852 #define HAVE_GENERIC_IO_ACCT_3ARG 1
44853 _ACEOF
44854
44855
44856 fi
44857 fi
44858
44859
44860
44861 { $as_echo "$as_me:$LINENO: checking whether 4 arg generic IO accounting symbols are available" >&5
44862 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
44863
44864
44865
44866 cat confdefs.h - <<_ACEOF >conftest.c
44867 /* confdefs.h. */
44868 _ACEOF
44869 cat confdefs.h >>conftest.$ac_ext
44870 cat >>conftest.$ac_ext <<_ACEOF
44871 /* end confdefs.h. */
44872
44873
44874 #include <linux/bio.h>
44875
44876 void (*generic_start_io_acct_f)(struct request_queue *, int,
44877 unsigned long, struct hd_struct *) = &generic_start_io_acct;
44878 void (*generic_end_io_acct_f)(struct request_queue *, int,
44879 struct hd_struct *, unsigned long) = &generic_end_io_acct;
44880
44881 int
44882 main (void)
44883 {
44884
44885 generic_start_io_acct(NULL, 0, 0, NULL);
44886 generic_end_io_acct(NULL, 0, NULL, 0);
44887
44888 ;
44889 return 0;
44890 }
44891
44892 _ACEOF
44893
44894
44895
44896 cat - <<_ACEOF >conftest.h
44897
44898 _ACEOF
44899
44900
44901 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44902 echo "obj-m := conftest.o" >build/Makefile
44903 modpost_flag=''
44904 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44905 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44907 (eval $ac_try) 2>&5
44908 ac_status=$?
44909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44910 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44912 (eval $ac_try) 2>&5
44913 ac_status=$?
44914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44915 (exit $ac_status); }; }; then
44916 rc=0
44917 else
44918 $as_echo "$as_me: failed program was:" >&5
44919 sed 's/^/| /' conftest.$ac_ext >&5
44920 rc=1
44921
44922
44923 fi
44924
44925 rm -Rf build
44926
44927
44928 if test $rc -ne 0; then :
44929
44930 { $as_echo "$as_me:$LINENO: result: no" >&5
44931 $as_echo "no" >&6; }
44932
44933 else
44934 if test "x$enable_linux_builtin" != xyes; then
44935
44936 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
44937 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44938 rc=$?
44939 if test $rc -ne 0; then
44940 export=0
44941 for file in block/bio.c; do
44942 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
44943 "$LINUX/$file" 2>/dev/null
44944 rc=$?
44945 if test $rc -eq 0; then
44946 export=1
44947 break;
44948 fi
44949 done
44950 if test $export -eq 0; then :
44951 rc=1
44952 else :
44953 rc=0
44954 fi
44955 else :
44956 rc=0
44957 fi
44958
44959 fi
44960 if test $rc -ne 0; then :
44961
44962 { $as_echo "$as_me:$LINENO: result: no" >&5
44963 $as_echo "no" >&6; }
44964
44965 else :
44966
44967 { $as_echo "$as_me:$LINENO: result: yes" >&5
44968 $as_echo "yes" >&6; }
44969
44970 cat >>confdefs.h <<\_ACEOF
44971 #define HAVE_GENERIC_IO_ACCT_4ARG 1
44972 _ACEOF
44973
44974
44975 fi
44976 fi
44977
44978
44979
44980 { $as_echo "$as_me:$LINENO: checking whether asm/fpu/api.h exists" >&5
44981 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
44982
44983
44984 cat confdefs.h - <<_ACEOF >conftest.c
44985 /* confdefs.h. */
44986 _ACEOF
44987 cat confdefs.h >>conftest.$ac_ext
44988 cat >>conftest.$ac_ext <<_ACEOF
44989 /* end confdefs.h. */
44990
44991
44992 #include <linux/kernel.h>
44993 #include <asm/fpu/api.h>
44994
44995 int
44996 main (void)
44997 {
44998
44999 __kernel_fpu_begin();
45000
45001 ;
45002 return 0;
45003 }
45004
45005 _ACEOF
45006
45007
45008
45009 cat - <<_ACEOF >conftest.h
45010
45011 _ACEOF
45012
45013
45014 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45015 echo "obj-m := conftest.o" >build/Makefile
45016 modpost_flag=''
45017 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45018 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45020 (eval $ac_try) 2>&5
45021 ac_status=$?
45022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45023 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45025 (eval $ac_try) 2>&5
45026 ac_status=$?
45027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45028 (exit $ac_status); }; }; then
45029
45030 { $as_echo "$as_me:$LINENO: result: yes" >&5
45031 $as_echo "yes" >&6; }
45032
45033 cat >>confdefs.h <<\_ACEOF
45034 #define HAVE_FPU_API_H 1
45035 _ACEOF
45036
45037
45038 else
45039 $as_echo "$as_me: failed program was:" >&5
45040 sed 's/^/| /' conftest.$ac_ext >&5
45041
45042 { $as_echo "$as_me:$LINENO: result: no" >&5
45043 $as_echo "no" >&6; }
45044
45045
45046
45047 fi
45048
45049 rm -Rf build
45050
45051
45052
45053
45054 { $as_echo "$as_me:$LINENO: checking whether i_(uid|gid)_(read|write) exist" >&5
45055 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
45056
45057
45058 cat confdefs.h - <<_ACEOF >conftest.c
45059 /* confdefs.h. */
45060 _ACEOF
45061 cat confdefs.h >>conftest.$ac_ext
45062 cat >>conftest.$ac_ext <<_ACEOF
45063 /* end confdefs.h. */
45064
45065
45066 #include <linux/fs.h>
45067
45068 int
45069 main (void)
45070 {
45071
45072 struct inode *ip = NULL;
45073 (void) i_uid_read(ip);
45074
45075 ;
45076 return 0;
45077 }
45078
45079 _ACEOF
45080
45081
45082
45083 cat - <<_ACEOF >conftest.h
45084
45085 _ACEOF
45086
45087
45088 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45089 echo "obj-m := conftest.o" >build/Makefile
45090 modpost_flag=''
45091 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45092 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45094 (eval $ac_try) 2>&5
45095 ac_status=$?
45096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45097 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45099 (eval $ac_try) 2>&5
45100 ac_status=$?
45101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45102 (exit $ac_status); }; }; then
45103
45104 { $as_echo "$as_me:$LINENO: result: yes" >&5
45105 $as_echo "yes" >&6; }
45106
45107 cat >>confdefs.h <<\_ACEOF
45108 #define HAVE_KUID_HELPERS 1
45109 _ACEOF
45110
45111
45112 else
45113 $as_echo "$as_me: failed program was:" >&5
45114 sed 's/^/| /' conftest.$ac_ext >&5
45115
45116 { $as_echo "$as_me:$LINENO: result: no" >&5
45117 $as_echo "no" >&6; }
45118
45119
45120
45121 fi
45122
45123 rm -Rf build
45124
45125
45126
45127
45128 { $as_echo "$as_me:$LINENO: checking whether module_param_call() is hardened" >&5
45129 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
45130
45131
45132 cat confdefs.h - <<_ACEOF >conftest.c
45133 /* confdefs.h. */
45134 _ACEOF
45135 cat confdefs.h >>conftest.$ac_ext
45136 cat >>conftest.$ac_ext <<_ACEOF
45137 /* end confdefs.h. */
45138
45139
45140 #include <linux/module.h>
45141 #include <linux/moduleparam.h>
45142
45143 int param_get(char *b, const struct kernel_param *kp)
45144 {
45145 return (0);
45146 }
45147
45148 int param_set(const char *b, const struct kernel_param *kp)
45149 {
45150 return (0);
45151 }
45152
45153 module_param_call(p, param_set, param_get, NULL, 0644);
45154
45155 int
45156 main (void)
45157 {
45158
45159
45160 ;
45161 return 0;
45162 }
45163
45164 _ACEOF
45165
45166
45167
45168 cat - <<_ACEOF >conftest.h
45169
45170 _ACEOF
45171
45172
45173 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45174 echo "obj-m := conftest.o" >build/Makefile
45175 modpost_flag=''
45176 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45177 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45179 (eval $ac_try) 2>&5
45180 ac_status=$?
45181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45182 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45184 (eval $ac_try) 2>&5
45185 ac_status=$?
45186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45187 (exit $ac_status); }; }; then
45188
45189 { $as_echo "$as_me:$LINENO: result: yes" >&5
45190 $as_echo "yes" >&6; }
45191
45192 cat >>confdefs.h <<\_ACEOF
45193 #define MODULE_PARAM_CALL_CONST 1
45194 _ACEOF
45195
45196
45197 else
45198 $as_echo "$as_me: failed program was:" >&5
45199 sed 's/^/| /' conftest.$ac_ext >&5
45200
45201 { $as_echo "$as_me:$LINENO: result: no" >&5
45202 $as_echo "no" >&6; }
45203
45204
45205
45206 fi
45207
45208 rm -Rf build
45209
45210
45211
45212
45213 { $as_echo "$as_me:$LINENO: checking whether iops->rename() wants flags" >&5
45214 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
45215
45216
45217 cat confdefs.h - <<_ACEOF >conftest.c
45218 /* confdefs.h. */
45219 _ACEOF
45220 cat confdefs.h >>conftest.$ac_ext
45221 cat >>conftest.$ac_ext <<_ACEOF
45222 /* end confdefs.h. */
45223
45224
45225 #include <linux/fs.h>
45226 int rename_fn(struct inode *sip, struct dentry *sdp,
45227 struct inode *tip, struct dentry *tdp,
45228 unsigned int flags) { return 0; }
45229
45230 static const struct inode_operations
45231 iops __attribute__ ((unused)) = {
45232 .rename = rename_fn,
45233 };
45234
45235 int
45236 main (void)
45237 {
45238
45239
45240 ;
45241 return 0;
45242 }
45243
45244 _ACEOF
45245
45246
45247
45248 cat - <<_ACEOF >conftest.h
45249
45250 _ACEOF
45251
45252
45253 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45254 echo "obj-m := conftest.o" >build/Makefile
45255 modpost_flag=''
45256 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45257 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45259 (eval $ac_try) 2>&5
45260 ac_status=$?
45261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45262 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45264 (eval $ac_try) 2>&5
45265 ac_status=$?
45266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45267 (exit $ac_status); }; }; then
45268
45269 { $as_echo "$as_me:$LINENO: result: yes" >&5
45270 $as_echo "yes" >&6; }
45271
45272 cat >>confdefs.h <<\_ACEOF
45273 #define HAVE_RENAME_WANTS_FLAGS 1
45274 _ACEOF
45275
45276
45277 else
45278 $as_echo "$as_me: failed program was:" >&5
45279 sed 's/^/| /' conftest.$ac_ext >&5
45280
45281 { $as_echo "$as_me:$LINENO: result: no" >&5
45282 $as_echo "no" >&6; }
45283
45284
45285
45286 fi
45287
45288 rm -Rf build
45289
45290
45291
45292
45293 { $as_echo "$as_me:$LINENO: checking whether generic_setxattr() exists" >&5
45294 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
45295
45296
45297 cat confdefs.h - <<_ACEOF >conftest.c
45298 /* confdefs.h. */
45299 _ACEOF
45300 cat confdefs.h >>conftest.$ac_ext
45301 cat >>conftest.$ac_ext <<_ACEOF
45302 /* end confdefs.h. */
45303
45304
45305 #include <linux/fs.h>
45306 #include <linux/xattr.h>
45307
45308 static const struct inode_operations
45309 iops __attribute__ ((unused)) = {
45310 .setxattr = generic_setxattr
45311 };
45312
45313 int
45314 main (void)
45315 {
45316
45317
45318 ;
45319 return 0;
45320 }
45321
45322 _ACEOF
45323
45324
45325
45326 cat - <<_ACEOF >conftest.h
45327
45328 _ACEOF
45329
45330
45331 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45332 echo "obj-m := conftest.o" >build/Makefile
45333 modpost_flag=''
45334 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45335 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45337 (eval $ac_try) 2>&5
45338 ac_status=$?
45339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45340 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45342 (eval $ac_try) 2>&5
45343 ac_status=$?
45344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45345 (exit $ac_status); }; }; then
45346
45347 { $as_echo "$as_me:$LINENO: result: yes" >&5
45348 $as_echo "yes" >&6; }
45349
45350 cat >>confdefs.h <<\_ACEOF
45351 #define HAVE_GENERIC_SETXATTR 1
45352 _ACEOF
45353
45354
45355 else
45356 $as_echo "$as_me: failed program was:" >&5
45357 sed 's/^/| /' conftest.$ac_ext >&5
45358
45359 { $as_echo "$as_me:$LINENO: result: no" >&5
45360 $as_echo "no" >&6; }
45361
45362
45363
45364 fi
45365
45366 rm -Rf build
45367
45368
45369
45370 { $as_echo "$as_me:$LINENO: checking whether current_time() exists" >&5
45371 $as_echo_n "checking whether current_time() exists... " >&6; }
45372
45373
45374
45375 cat confdefs.h - <<_ACEOF >conftest.c
45376 /* confdefs.h. */
45377 _ACEOF
45378 cat confdefs.h >>conftest.$ac_ext
45379 cat >>conftest.$ac_ext <<_ACEOF
45380 /* end confdefs.h. */
45381
45382
45383 #include <linux/fs.h>
45384
45385 int
45386 main (void)
45387 {
45388
45389 struct inode ip;
45390 struct timespec now __attribute__ ((unused));
45391
45392 now = current_time(&ip);
45393
45394 ;
45395 return 0;
45396 }
45397
45398 _ACEOF
45399
45400
45401
45402 cat - <<_ACEOF >conftest.h
45403
45404 _ACEOF
45405
45406
45407 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45408 echo "obj-m := conftest.o" >build/Makefile
45409 modpost_flag=''
45410 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45411 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45413 (eval $ac_try) 2>&5
45414 ac_status=$?
45415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45416 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45418 (eval $ac_try) 2>&5
45419 ac_status=$?
45420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45421 (exit $ac_status); }; }; then
45422 rc=0
45423 else
45424 $as_echo "$as_me: failed program was:" >&5
45425 sed 's/^/| /' conftest.$ac_ext >&5
45426 rc=1
45427
45428
45429 fi
45430
45431 rm -Rf build
45432
45433
45434 if test $rc -ne 0; then :
45435
45436 { $as_echo "$as_me:$LINENO: result: no" >&5
45437 $as_echo "no" >&6; }
45438
45439 else
45440 if test "x$enable_linux_builtin" != xyes; then
45441
45442 grep -q -E '[[:space:]]current_time[[:space:]]' \
45443 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45444 rc=$?
45445 if test $rc -ne 0; then
45446 export=0
45447 for file in fs/inode.c; do
45448 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
45449 "$LINUX/$file" 2>/dev/null
45450 rc=$?
45451 if test $rc -eq 0; then
45452 export=1
45453 break;
45454 fi
45455 done
45456 if test $export -eq 0; then :
45457 rc=1
45458 else :
45459 rc=0
45460 fi
45461 else :
45462 rc=0
45463 fi
45464
45465 fi
45466 if test $rc -ne 0; then :
45467
45468 { $as_echo "$as_me:$LINENO: result: no" >&5
45469 $as_echo "no" >&6; }
45470
45471 else :
45472
45473 { $as_echo "$as_me:$LINENO: result: yes" >&5
45474 $as_echo "yes" >&6; }
45475
45476 cat >>confdefs.h <<\_ACEOF
45477 #define HAVE_CURRENT_TIME 1
45478 _ACEOF
45479
45480
45481 fi
45482 fi
45483
45484
45485
45486 { $as_echo "$as_me:$LINENO: checking whether to use vm_node_stat based fn's" >&5
45487 $as_echo_n "checking whether to use vm_node_stat based fn's... " >&6; }
45488
45489
45490 cat confdefs.h - <<_ACEOF >conftest.c
45491 /* confdefs.h. */
45492 _ACEOF
45493 cat confdefs.h >>conftest.$ac_ext
45494 cat >>conftest.$ac_ext <<_ACEOF
45495 /* end confdefs.h. */
45496
45497
45498 #include <linux/mm.h>
45499 #include <linux/vmstat.h>
45500
45501 int
45502 main (void)
45503 {
45504
45505 int a __attribute__ ((unused)) = NR_VM_NODE_STAT_ITEMS;
45506 long x __attribute__ ((unused)) =
45507 atomic_long_read(&vm_node_stat[0]);
45508 (void) global_node_page_state(0);
45509
45510 ;
45511 return 0;
45512 }
45513
45514 _ACEOF
45515
45516
45517
45518 cat - <<_ACEOF >conftest.h
45519
45520 _ACEOF
45521
45522
45523 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45524 echo "obj-m := conftest.o" >build/Makefile
45525 modpost_flag=''
45526 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45527 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45529 (eval $ac_try) 2>&5
45530 ac_status=$?
45531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45532 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45534 (eval $ac_try) 2>&5
45535 ac_status=$?
45536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45537 (exit $ac_status); }; }; then
45538
45539 { $as_echo "$as_me:$LINENO: result: yes" >&5
45540 $as_echo "yes" >&6; }
45541
45542 cat >>confdefs.h <<\_ACEOF
45543 #define ZFS_GLOBAL_NODE_PAGE_STATE 1
45544 _ACEOF
45545
45546
45547 else
45548 $as_echo "$as_me: failed program was:" >&5
45549 sed 's/^/| /' conftest.$ac_ext >&5
45550
45551 { $as_echo "$as_me:$LINENO: result: no" >&5
45552 $as_echo "no" >&6; }
45553
45554
45555
45556 fi
45557
45558 rm -Rf build
45559
45560
45561
45562
45563 if test "$LINUX_OBJ" != "$LINUX"; then
45564
45565 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
45566
45567 fi
45568
45569
45570
45571
45572 KERNELCPPFLAGS="$KERNELCPPFLAGS -std=gnu99"
45573 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-declaration-after-statement"
45574 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
45575 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
45576 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
45577 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
45578
45579
45580 ;;
45581 srpm) ;;
45582 *)
45583 { $as_echo "$as_me:$LINENO: result: Error!" >&5
45584 $as_echo "Error!" >&6; }
45585 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
45586 user kernel|user|all|srpm" >&5
45587 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
45588 user kernel|user|all|srpm" >&2;}
45589 { (exit 1); exit 1; }; } ;;
45590 esac
45591
45592 if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then
45593 CONFIG_USER_TRUE=
45594 CONFIG_USER_FALSE='#'
45595 else
45596 CONFIG_USER_TRUE='#'
45597 CONFIG_USER_FALSE=
45598 fi
45599
45600 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
45601 test "x$enable_linux_builtin" != xyes ; then
45602 CONFIG_KERNEL_TRUE=
45603 CONFIG_KERNEL_FALSE='#'
45604 else
45605 CONFIG_KERNEL_TRUE='#'
45606 CONFIG_KERNEL_FALSE=
45607 fi
45608
45609 if test "x$user_libudev" = xyes ; then
45610 WANT_DEVNAME2DEVID_TRUE=
45611 WANT_DEVNAME2DEVID_FALSE='#'
45612 else
45613 WANT_DEVNAME2DEVID_TRUE='#'
45614 WANT_DEVNAME2DEVID_FALSE=
45615 fi
45616
45617 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
45618 test "x$qatsrc" != x ; then
45619 CONFIG_QAT_TRUE=
45620 CONFIG_QAT_FALSE='#'
45621 else
45622 CONFIG_QAT_TRUE='#'
45623 CONFIG_QAT_FALSE=
45624 fi
45625
45626
45627
45628 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
45629 $as_echo_n "checking whether debugging is enabled... " >&6; }
45630 # Check whether --enable-debug was given.
45631 if test "${enable_debug+set}" = set; then
45632 enableval=$enable_debug;
45633 else
45634 enable_debug=no
45635 fi
45636
45637
45638 if test "x$enable_debug" = xyes; then
45639
45640 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
45641 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
45642 DEBUG_CFLAGS="-DDEBUG -Werror"
45643 DEBUG_STACKFLAGS="-fstack-check"
45644 DEBUG_ZFS="_with_debug"
45645
45646 cat >>confdefs.h <<\_ACEOF
45647 #define ZFS_DEBUG 1
45648 _ACEOF
45649
45650
45651 else
45652
45653 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
45654 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
45655 DEBUG_CFLAGS="-DNDEBUG"
45656 DEBUG_STACKFLAGS=""
45657 DEBUG_ZFS="_without_debug"
45658
45659 fi
45660
45661
45662
45663
45664
45665 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
45666 $as_echo "$enable_debug" >&6; }
45667
45668
45669 ac_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"
45670
45671
45672
45673 cat >confcache <<\_ACEOF
45674 # This file is a shell script that caches the results of configure
45675 # tests run on this system so they can be shared between configure
45676 # scripts and configure runs, see configure's option --config-cache.
45677 # It is not useful on other systems. If it contains results you don't
45678 # want to keep, you may remove or edit it.
45679 #
45680 # config.status only pays attention to the cache file if you give it
45681 # the --recheck option to rerun configure.
45682 #
45683 # `ac_cv_env_foo' variables (set or unset) will be overridden when
45684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
45685 # following values.
45686
45687 _ACEOF
45688
45689 # The following way of writing the cache mishandles newlines in values,
45690 # but we know of no workaround that is simple, portable, and efficient.
45691 # So, we kill variables containing newlines.
45692 # Ultrix sh set writes to stderr and can't be redirected directly,
45693 # and sets the high bit in the cache file unless we assign to the vars.
45694 (
45695 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45696 eval ac_val=\$$ac_var
45697 case $ac_val in #(
45698 *${as_nl}*)
45699 case $ac_var in #(
45700 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
45701 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
45702 esac
45703 case $ac_var in #(
45704 _ | IFS | as_nl) ;; #(
45705 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
45706 *) $as_unset $ac_var ;;
45707 esac ;;
45708 esac
45709 done
45710
45711 (set) 2>&1 |
45712 case $as_nl`(ac_space=' '; set) 2>&1` in #(
45713 *${as_nl}ac_space=\ *)
45714 # `set' does not quote correctly, so add quotes (double-quote
45715 # substitution turns \\\\ into \\, and sed turns \\ into \).
45716 sed -n \
45717 "s/'/'\\\\''/g;
45718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45719 ;; #(
45720 *)
45721 # `set' quotes correctly as required by POSIX, so do not add quotes.
45722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45723 ;;
45724 esac |
45725 sort
45726 ) |
45727 sed '
45728 /^ac_cv_env_/b end
45729 t clear
45730 :clear
45731 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45732 t end
45733 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45734 :end' >>confcache
45735 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
45736 if test -w "$cache_file"; then
45737 test "x$cache_file" != "x/dev/null" &&
45738 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
45739 $as_echo "$as_me: updating cache $cache_file" >&6;}
45740 cat confcache >$cache_file
45741 else
45742 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
45743 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
45744 fi
45745 fi
45746 rm -f confcache
45747
45748 test "x$prefix" = xNONE && prefix=$ac_default_prefix
45749 # Let make expand exec_prefix.
45750 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45751
45752 DEFS=-DHAVE_CONFIG_H
45753
45754 ac_libobjs=
45755 ac_ltlibobjs=
45756 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45757 # 1. Remove the extension, and $U if already installed.
45758 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45759 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
45760 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
45761 # will be set to the directory where LIBOBJS objects are built.
45762 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45763 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
45764 done
45765 LIBOBJS=$ac_libobjs
45766
45767 LTLIBOBJS=$ac_ltlibobjs
45768
45769
45770 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
45771 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
45772 Usually this means the macro was only invoked conditionally." >&5
45773 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
45774 Usually this means the macro was only invoked conditionally." >&2;}
45775 { (exit 1); exit 1; }; }
45776 fi
45777 if test -n "$EXEEXT"; then
45778 am__EXEEXT_TRUE=
45779 am__EXEEXT_FALSE='#'
45780 else
45781 am__EXEEXT_TRUE='#'
45782 am__EXEEXT_FALSE=
45783 fi
45784
45785 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45786 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
45787 Usually this means the macro was only invoked conditionally." >&5
45788 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
45789 Usually this means the macro was only invoked conditionally." >&2;}
45790 { (exit 1); exit 1; }; }
45791 fi
45792 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45793 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
45794 Usually this means the macro was only invoked conditionally." >&5
45795 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
45796 Usually this means the macro was only invoked conditionally." >&2;}
45797 { (exit 1); exit 1; }; }
45798 fi
45799 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
45800 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
45801 Usually this means the macro was only invoked conditionally." >&5
45802 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
45803 Usually this means the macro was only invoked conditionally." >&2;}
45804 { (exit 1); exit 1; }; }
45805 fi
45806 if test -z "${TARGET_ASM_X86_64_TRUE}" && test -z "${TARGET_ASM_X86_64_FALSE}"; then
45807 { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_ASM_X86_64\" was never defined.
45808 Usually this means the macro was only invoked conditionally." >&5
45809 $as_echo "$as_me: error: conditional \"TARGET_ASM_X86_64\" was never defined.
45810 Usually this means the macro was only invoked conditionally." >&2;}
45811 { (exit 1); exit 1; }; }
45812 fi
45813 if test -z "${TARGET_ASM_I386_TRUE}" && test -z "${TARGET_ASM_I386_FALSE}"; then
45814 { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_ASM_I386\" was never defined.
45815 Usually this means the macro was only invoked conditionally." >&5
45816 $as_echo "$as_me: error: conditional \"TARGET_ASM_I386\" was never defined.
45817 Usually this means the macro was only invoked conditionally." >&2;}
45818 { (exit 1); exit 1; }; }
45819 fi
45820 if test -z "${TARGET_ASM_GENERIC_TRUE}" && test -z "${TARGET_ASM_GENERIC_FALSE}"; then
45821 { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_ASM_GENERIC\" was never defined.
45822 Usually this means the macro was only invoked conditionally." >&5
45823 $as_echo "$as_me: error: conditional \"TARGET_ASM_GENERIC\" was never defined.
45824 Usually this means the macro was only invoked conditionally." >&2;}
45825 { (exit 1); exit 1; }; }
45826 fi
45827 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
45828 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
45829 Usually this means the macro was only invoked conditionally." >&5
45830 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
45831 Usually this means the macro was only invoked conditionally." >&2;}
45832 { (exit 1); exit 1; }; }
45833 fi
45834 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
45835 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
45836 Usually this means the macro was only invoked conditionally." >&5
45837 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
45838 Usually this means the macro was only invoked conditionally." >&2;}
45839 { (exit 1); exit 1; }; }
45840 fi
45841 if test -z "${WANT_DEVNAME2DEVID_TRUE}" && test -z "${WANT_DEVNAME2DEVID_FALSE}"; then
45842 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_DEVNAME2DEVID\" was never defined.
45843 Usually this means the macro was only invoked conditionally." >&5
45844 $as_echo "$as_me: error: conditional \"WANT_DEVNAME2DEVID\" was never defined.
45845 Usually this means the macro was only invoked conditionally." >&2;}
45846 { (exit 1); exit 1; }; }
45847 fi
45848 if test -z "${CONFIG_QAT_TRUE}" && test -z "${CONFIG_QAT_FALSE}"; then
45849 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_QAT\" was never defined.
45850 Usually this means the macro was only invoked conditionally." >&5
45851 $as_echo "$as_me: error: conditional \"CONFIG_QAT\" was never defined.
45852 Usually this means the macro was only invoked conditionally." >&2;}
45853 { (exit 1); exit 1; }; }
45854 fi
45855
45856 : ${CONFIG_STATUS=./config.status}
45857 ac_write_fail=0
45858 ac_clean_files_save=$ac_clean_files
45859 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45860 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45861 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
45862 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45863 #! $SHELL
45864 # Generated by $as_me.
45865 # Run this file to recreate the current configuration.
45866 # Compiler output produced by configure, useful for debugging
45867 # configure, is in config.log if it exists.
45868
45869 debug=false
45870 ac_cs_recheck=false
45871 ac_cs_silent=false
45872 SHELL=\${CONFIG_SHELL-$SHELL}
45873 _ACEOF
45874
45875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45876 ## --------------------- ##
45877 ## M4sh Initialization. ##
45878 ## --------------------- ##
45879
45880 # Be more Bourne compatible
45881 DUALCASE=1; export DUALCASE # for MKS sh
45882 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45883 emulate sh
45884 NULLCMD=:
45885 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45886 # is contrary to our usage. Disable this feature.
45887 alias -g '${1+"$@"}'='"$@"'
45888 setopt NO_GLOB_SUBST
45889 else
45890 case `(set -o) 2>/dev/null` in
45891 *posix*) set -o posix ;;
45892 esac
45893
45894 fi
45895
45896
45897
45898
45899 # PATH needs CR
45900 # Avoid depending upon Character Ranges.
45901 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45902 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45903 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45904 as_cr_digits='0123456789'
45905 as_cr_alnum=$as_cr_Letters$as_cr_digits
45906
45907 as_nl='
45908 '
45909 export as_nl
45910 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45911 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45912 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45913 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45914 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
45915 as_echo='printf %s\n'
45916 as_echo_n='printf %s'
45917 else
45918 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
45919 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
45920 as_echo_n='/usr/ucb/echo -n'
45921 else
45922 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
45923 as_echo_n_body='eval
45924 arg=$1;
45925 case $arg in
45926 *"$as_nl"*)
45927 expr "X$arg" : "X\\(.*\\)$as_nl";
45928 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
45929 esac;
45930 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
45931 '
45932 export as_echo_n_body
45933 as_echo_n='sh -c $as_echo_n_body as_echo'
45934 fi
45935 export as_echo_body
45936 as_echo='sh -c $as_echo_body as_echo'
45937 fi
45938
45939 # The user is always right.
45940 if test "${PATH_SEPARATOR+set}" != set; then
45941 PATH_SEPARATOR=:
45942 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
45943 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
45944 PATH_SEPARATOR=';'
45945 }
45946 fi
45947
45948 # Support unset when possible.
45949 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
45950 as_unset=unset
45951 else
45952 as_unset=false
45953 fi
45954
45955
45956 # IFS
45957 # We need space, tab and new line, in precisely that order. Quoting is
45958 # there to prevent editors from complaining about space-tab.
45959 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
45960 # splitting by setting IFS to empty value.)
45961 IFS=" "" $as_nl"
45962
45963 # Find who we are. Look in the path if we contain no directory separator.
45964 case $0 in
45965 *[\\/]* ) as_myself=$0 ;;
45966 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45967 for as_dir in $PATH
45968 do
45969 IFS=$as_save_IFS
45970 test -z "$as_dir" && as_dir=.
45971 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45972 done
45973 IFS=$as_save_IFS
45974
45975 ;;
45976 esac
45977 # We did not find ourselves, most probably we were run as `sh COMMAND'
45978 # in which case we are not to be found in the path.
45979 if test "x$as_myself" = x; then
45980 as_myself=$0
45981 fi
45982 if test ! -f "$as_myself"; then
45983 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
45984 { (exit 1); exit 1; }
45985 fi
45986
45987 # Work around bugs in pre-3.0 UWIN ksh.
45988 for as_var in ENV MAIL MAILPATH
45989 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
45990 done
45991 PS1='$ '
45992 PS2='> '
45993 PS4='+ '
45994
45995 # NLS nuisances.
45996 LC_ALL=C
45997 export LC_ALL
45998 LANGUAGE=C
45999 export LANGUAGE
46000
46001 # Required to use basename.
46002 if expr a : '\(a\)' >/dev/null 2>&1 &&
46003 test "X`expr 00001 : '.*\(...\)'`" = X001; then
46004 as_expr=expr
46005 else
46006 as_expr=false
46007 fi
46008
46009 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
46010 as_basename=basename
46011 else
46012 as_basename=false
46013 fi
46014
46015
46016 # Name of the executable.
46017 as_me=`$as_basename -- "$0" ||
46018 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46019 X"$0" : 'X\(//\)$' \| \
46020 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
46021 $as_echo X/"$0" |
46022 sed '/^.*\/\([^/][^/]*\)\/*$/{
46023 s//\1/
46024 q
46025 }
46026 /^X\/\(\/\/\)$/{
46027 s//\1/
46028 q
46029 }
46030 /^X\/\(\/\).*/{
46031 s//\1/
46032 q
46033 }
46034 s/.*/./; q'`
46035
46036 # CDPATH.
46037 $as_unset CDPATH
46038
46039
46040
46041 as_lineno_1=$LINENO
46042 as_lineno_2=$LINENO
46043 test "x$as_lineno_1" != "x$as_lineno_2" &&
46044 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
46045
46046 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46047 # uniformly replaced by the line number. The first 'sed' inserts a
46048 # line-number line after each line using $LINENO; the second 'sed'
46049 # does the real work. The second script uses 'N' to pair each
46050 # line-number line with the line containing $LINENO, and appends
46051 # trailing '-' during substitution so that $LINENO is not a special
46052 # case at line end.
46053 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46054 # scripts with optimization help from Paolo Bonzini. Blame Lee
46055 # E. McMahon (1931-1989) for sed's syntax. :-)
46056 sed -n '
46057 p
46058 /[$]LINENO/=
46059 ' <$as_myself |
46060 sed '
46061 s/[$]LINENO.*/&-/
46062 t lineno
46063 b
46064 :lineno
46065 N
46066 :loop
46067 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
46068 t loop
46069 s/-\n.*//
46070 ' >$as_me.lineno &&
46071 chmod +x "$as_me.lineno" ||
46072 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
46073 { (exit 1); exit 1; }; }
46074
46075 # Don't try to exec as it changes $[0], causing all sort of problems
46076 # (the dirname of $[0] is not the place where we might find the
46077 # original and so on. Autoconf is especially sensitive to this).
46078 . "./$as_me.lineno"
46079 # Exit status is that of the last command.
46080 exit
46081 }
46082
46083
46084 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
46085 as_dirname=dirname
46086 else
46087 as_dirname=false
46088 fi
46089
46090 ECHO_C= ECHO_N= ECHO_T=
46091 case `echo -n x` in
46092 -n*)
46093 case `echo 'x\c'` in
46094 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
46095 *) ECHO_C='\c';;
46096 esac;;
46097 *)
46098 ECHO_N='-n';;
46099 esac
46100 if expr a : '\(a\)' >/dev/null 2>&1 &&
46101 test "X`expr 00001 : '.*\(...\)'`" = X001; then
46102 as_expr=expr
46103 else
46104 as_expr=false
46105 fi
46106
46107 rm -f conf$$ conf$$.exe conf$$.file
46108 if test -d conf$$.dir; then
46109 rm -f conf$$.dir/conf$$.file
46110 else
46111 rm -f conf$$.dir
46112 mkdir conf$$.dir 2>/dev/null
46113 fi
46114 if (echo >conf$$.file) 2>/dev/null; then
46115 if ln -s conf$$.file conf$$ 2>/dev/null; then
46116 as_ln_s='ln -s'
46117 # ... but there are two gotchas:
46118 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
46119 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
46120 # In both cases, we have to default to `cp -p'.
46121 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
46122 as_ln_s='cp -p'
46123 elif ln conf$$.file conf$$ 2>/dev/null; then
46124 as_ln_s=ln
46125 else
46126 as_ln_s='cp -p'
46127 fi
46128 else
46129 as_ln_s='cp -p'
46130 fi
46131 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
46132 rmdir conf$$.dir 2>/dev/null
46133
46134 if mkdir -p . 2>/dev/null; then
46135 as_mkdir_p=:
46136 else
46137 test -d ./-p && rmdir ./-p
46138 as_mkdir_p=false
46139 fi
46140
46141 if test -x / >/dev/null 2>&1; then
46142 as_test_x='test -x'
46143 else
46144 if ls -dL / >/dev/null 2>&1; then
46145 as_ls_L_option=L
46146 else
46147 as_ls_L_option=
46148 fi
46149 as_test_x='
46150 eval sh -c '\''
46151 if test -d "$1"; then
46152 test -d "$1/.";
46153 else
46154 case $1 in
46155 -*)set "./$1";;
46156 esac;
46157 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
46158 ???[sx]*):;;*)false;;esac;fi
46159 '\'' sh
46160 '
46161 fi
46162 as_executable_p=$as_test_x
46163
46164 # Sed expression to map a string onto a valid CPP name.
46165 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
46166
46167 # Sed expression to map a string onto a valid variable name.
46168 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
46169
46170
46171 exec 6>&1
46172
46173 # Save the log message, to keep $[0] and so on meaningful, and to
46174 # report actual input values of CONFIG_FILES etc. instead of their
46175 # values after options handling.
46176 ac_log="
46177 This file was extended by zfs $as_me 0.7.3, which was
46178 generated by GNU Autoconf 2.63. Invocation command line was
46179
46180 CONFIG_FILES = $CONFIG_FILES
46181 CONFIG_HEADERS = $CONFIG_HEADERS
46182 CONFIG_LINKS = $CONFIG_LINKS
46183 CONFIG_COMMANDS = $CONFIG_COMMANDS
46184 $ $0 $@
46185
46186 on `(hostname || uname -n) 2>/dev/null | sed 1q`
46187 "
46188
46189 _ACEOF
46190
46191 case $ac_config_files in *"
46192 "*) set x $ac_config_files; shift; ac_config_files=$*;;
46193 esac
46194
46195 case $ac_config_headers in *"
46196 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
46197 esac
46198
46199
46200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46201 # Files that config.status was made for.
46202 config_files="$ac_config_files"
46203 config_headers="$ac_config_headers"
46204 config_commands="$ac_config_commands"
46205
46206 _ACEOF
46207
46208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46209 ac_cs_usage="\
46210 \`$as_me' instantiates files from templates according to the
46211 current configuration.
46212
46213 Usage: $0 [OPTION]... [FILE]...
46214
46215 -h, --help print this help, then exit
46216 -V, --version print version number and configuration settings, then exit
46217 -q, --quiet, --silent
46218 do not print progress messages
46219 -d, --debug don't remove temporary files
46220 --recheck update $as_me by reconfiguring in the same conditions
46221 --file=FILE[:TEMPLATE]
46222 instantiate the configuration file FILE
46223 --header=FILE[:TEMPLATE]
46224 instantiate the configuration header FILE
46225
46226 Configuration files:
46227 $config_files
46228
46229 Configuration headers:
46230 $config_headers
46231
46232 Configuration commands:
46233 $config_commands
46234
46235 Report bugs to <bug-autoconf@gnu.org>."
46236
46237 _ACEOF
46238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46239 ac_cs_version="\\
46240 zfs config.status 0.7.3
46241 configured by $0, generated by GNU Autoconf 2.63,
46242 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
46243
46244 Copyright (C) 2008 Free Software Foundation, Inc.
46245 This config.status script is free software; the Free Software Foundation
46246 gives unlimited permission to copy, distribute and modify it."
46247
46248 ac_pwd='$ac_pwd'
46249 srcdir='$srcdir'
46250 INSTALL='$INSTALL'
46251 MKDIR_P='$MKDIR_P'
46252 AWK='$AWK'
46253 test -n "\$AWK" || AWK=awk
46254 _ACEOF
46255
46256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46257 # The default lists apply if the user does not specify any file.
46258 ac_need_defaults=:
46259 while test $# != 0
46260 do
46261 case $1 in
46262 --*=*)
46263 ac_option=`expr "X$1" : 'X\([^=]*\)='`
46264 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
46265 ac_shift=:
46266 ;;
46267 *)
46268 ac_option=$1
46269 ac_optarg=$2
46270 ac_shift=shift
46271 ;;
46272 esac
46273
46274 case $ac_option in
46275 # Handling of the options.
46276 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46277 ac_cs_recheck=: ;;
46278 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
46279 $as_echo "$ac_cs_version"; exit ;;
46280 --debug | --debu | --deb | --de | --d | -d )
46281 debug=: ;;
46282 --file | --fil | --fi | --f )
46283 $ac_shift
46284 case $ac_optarg in
46285 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46286 esac
46287 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
46288 ac_need_defaults=false;;
46289 --header | --heade | --head | --hea )
46290 $ac_shift
46291 case $ac_optarg in
46292 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46293 esac
46294 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
46295 ac_need_defaults=false;;
46296 --he | --h)
46297 # Conflict between --help and --header
46298 { $as_echo "$as_me: error: ambiguous option: $1
46299 Try \`$0 --help' for more information." >&2
46300 { (exit 1); exit 1; }; };;
46301 --help | --hel | -h )
46302 $as_echo "$ac_cs_usage"; exit ;;
46303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46304 | -silent | --silent | --silen | --sile | --sil | --si | --s)
46305 ac_cs_silent=: ;;
46306
46307 # This is an error.
46308 -*) { $as_echo "$as_me: error: unrecognized option: $1
46309 Try \`$0 --help' for more information." >&2
46310 { (exit 1); exit 1; }; } ;;
46311
46312 *) ac_config_targets="$ac_config_targets $1"
46313 ac_need_defaults=false ;;
46314
46315 esac
46316 shift
46317 done
46318
46319 ac_configure_extra_args=
46320
46321 if $ac_cs_silent; then
46322 exec 6>/dev/null
46323 ac_configure_extra_args="$ac_configure_extra_args --silent"
46324 fi
46325
46326 _ACEOF
46327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46328 if \$ac_cs_recheck; then
46329 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46330 shift
46331 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
46332 CONFIG_SHELL='$SHELL'
46333 export CONFIG_SHELL
46334 exec "\$@"
46335 fi
46336
46337 _ACEOF
46338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46339 exec 5>>config.log
46340 {
46341 echo
46342 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46343 ## Running $as_me. ##
46344 _ASBOX
46345 $as_echo "$ac_log"
46346 } >&5
46347
46348 _ACEOF
46349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46350 #
46351 # INIT-COMMANDS
46352 #
46353 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
46354
46355
46356 # The HP-UX ksh and POSIX shell print the target directory to stdout
46357 # if CDPATH is set.
46358 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
46359
46360 sed_quote_subst='$sed_quote_subst'
46361 double_quote_subst='$double_quote_subst'
46362 delay_variable_subst='$delay_variable_subst'
46363 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
46364 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
46365 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
46366 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
46367 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
46368 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
46369 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
46370 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
46371 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
46372 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
46373 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
46374 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
46375 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
46376 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
46377 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
46378 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
46379 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
46380 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
46381 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
46382 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
46383 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
46384 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
46385 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
46386 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
46387 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
46388 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
46389 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
46390 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46391 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
46392 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
46393 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
46394 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
46395 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
46396 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
46397 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
46398 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46399 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46400 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46401 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
46402 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
46403 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
46404 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
46405 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
46406 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
46407 lt_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"`'
46408 lt_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"`'
46409 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
46410 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
46411 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
46412 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
46413 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
46414 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
46415 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
46416 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
46417 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
46418 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
46419 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
46420 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
46421 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
46422 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
46423 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
46424 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
46425 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46426 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46427 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
46428 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
46429 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46430 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46431 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
46432 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46433 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46434 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46435 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46436 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46437 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46438 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
46439 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
46440 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
46441 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46442 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
46443 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
46444 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
46445 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
46446 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
46447 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46448 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
46449 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
46450 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
46451 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
46452 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
46453 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46454 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
46455 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
46456 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46457 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
46458 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
46459 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
46460 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
46461 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
46462 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46463 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46464 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
46465 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
46466 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
46467 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
46468 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46469 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46470 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46471 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
46472 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
46473 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
46474 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
46475 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
46476 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
46477 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
46478 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
46479 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
46480 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
46481
46482 LTCC='$LTCC'
46483 LTCFLAGS='$LTCFLAGS'
46484 compiler='$compiler_DEFAULT'
46485
46486 # Quote evaled strings.
46487 for var in SED \
46488 GREP \
46489 EGREP \
46490 FGREP \
46491 LD \
46492 NM \
46493 LN_S \
46494 lt_SP2NL \
46495 lt_NL2SP \
46496 reload_flag \
46497 OBJDUMP \
46498 deplibs_check_method \
46499 file_magic_cmd \
46500 AR \
46501 AR_FLAGS \
46502 STRIP \
46503 RANLIB \
46504 CC \
46505 CFLAGS \
46506 compiler \
46507 lt_cv_sys_global_symbol_pipe \
46508 lt_cv_sys_global_symbol_to_cdecl \
46509 lt_cv_sys_global_symbol_to_c_name_address \
46510 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
46511 SHELL \
46512 ECHO \
46513 lt_prog_compiler_no_builtin_flag \
46514 lt_prog_compiler_wl \
46515 lt_prog_compiler_pic \
46516 lt_prog_compiler_static \
46517 lt_cv_prog_compiler_c_o \
46518 need_locks \
46519 DSYMUTIL \
46520 NMEDIT \
46521 LIPO \
46522 OTOOL \
46523 OTOOL64 \
46524 shrext_cmds \
46525 export_dynamic_flag_spec \
46526 whole_archive_flag_spec \
46527 compiler_needs_object \
46528 with_gnu_ld \
46529 allow_undefined_flag \
46530 no_undefined_flag \
46531 hardcode_libdir_flag_spec \
46532 hardcode_libdir_flag_spec_ld \
46533 hardcode_libdir_separator \
46534 fix_srcfile_path \
46535 exclude_expsyms \
46536 include_expsyms \
46537 file_list_spec \
46538 variables_saved_for_relink \
46539 libname_spec \
46540 library_names_spec \
46541 soname_spec \
46542 finish_eval \
46543 old_striplib \
46544 striplib; do
46545 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
46546 *[\\\\\\\`\\"\\\$]*)
46547 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
46548 ;;
46549 *)
46550 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46551 ;;
46552 esac
46553 done
46554
46555 # Double-quote double-evaled strings.
46556 for var in reload_cmds \
46557 old_postinstall_cmds \
46558 old_postuninstall_cmds \
46559 old_archive_cmds \
46560 extract_expsyms_cmds \
46561 old_archive_from_new_cmds \
46562 old_archive_from_expsyms_cmds \
46563 archive_cmds \
46564 archive_expsym_cmds \
46565 module_cmds \
46566 module_expsym_cmds \
46567 export_symbols_cmds \
46568 prelink_cmds \
46569 postinstall_cmds \
46570 postuninstall_cmds \
46571 finish_cmds \
46572 sys_lib_search_path_spec \
46573 sys_lib_dlsearch_path_spec; do
46574 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
46575 *[\\\\\\\`\\"\\\$]*)
46576 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
46577 ;;
46578 *)
46579 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46580 ;;
46581 esac
46582 done
46583
46584 # Fix-up fallback echo if it was mangled by the above quoting rules.
46585 case \$lt_ECHO in
46586 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
46587 ;;
46588 esac
46589
46590 ac_aux_dir='$ac_aux_dir'
46591 xsi_shell='$xsi_shell'
46592 lt_shell_append='$lt_shell_append'
46593
46594 # See if we are running on zsh, and set the options which allow our
46595 # commands through without removal of \ escapes INIT.
46596 if test -n "\${ZSH_VERSION+set}" ; then
46597 setopt NO_GLOB_SUBST
46598 fi
46599
46600
46601 PACKAGE='$PACKAGE'
46602 VERSION='$VERSION'
46603 TIMESTAMP='$TIMESTAMP'
46604 RM='$RM'
46605 ofile='$ofile'
46606
46607
46608
46609
46610 _ACEOF
46611
46612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46613
46614 # Handling of arguments.
46615 for ac_config_target in $ac_config_targets
46616 do
46617 case $ac_config_target in
46618 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
46619 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
46620 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
46621 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46622 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
46623 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
46624 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
46625 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
46626 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
46627 "etc/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/Makefile" ;;
46628 "etc/systemd/system/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/system/Makefile" ;;
46629 "etc/sudoers.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/sudoers.d/Makefile" ;;
46630 "etc/modules-load.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/modules-load.d/Makefile" ;;
46631 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
46632 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
46633 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
46634 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
46635 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
46636 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
46637 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
46638 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
46639 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
46640 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
46641 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
46642 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
46643 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
46644 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
46645 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
46646 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
46647 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
46648 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
46649 "lib/libicp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libicp/Makefile" ;;
46650 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
46651 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
46652 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
46653 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
46654 "lib/libzfs/libzfs.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs.pc" ;;
46655 "lib/libzfs/libzfs_core.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs_core.pc" ;;
46656 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
46657 "lib/libzfs_core/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs_core/Makefile" ;;
46658 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
46659 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
46660 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
46661 "cmd/zhack/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zhack/Makefile" ;;
46662 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
46663 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
46664 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
46665 "cmd/zstreamdump/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
46666 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
46667 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
46668 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
46669 "cmd/fsck_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
46670 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
46671 "cmd/vdev_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
46672 "cmd/arcstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arcstat/Makefile" ;;
46673 "cmd/dbufstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/dbufstat/Makefile" ;;
46674 "cmd/arc_summary/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arc_summary/Makefile" ;;
46675 "cmd/zed/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zed/Makefile" ;;
46676 "cmd/raidz_test/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/raidz_test/Makefile" ;;
46677 "cmd/zgenhostid/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zgenhostid/Makefile" ;;
46678 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
46679 "contrib/bash_completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/bash_completion.d/Makefile" ;;
46680 "contrib/dracut/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/Makefile" ;;
46681 "contrib/dracut/02zfsexpandknowledge/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/02zfsexpandknowledge/Makefile" ;;
46682 "contrib/dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/90zfs/Makefile" ;;
46683 "contrib/initramfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/initramfs/Makefile" ;;
46684 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
46685 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
46686 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
46687 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
46688 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
46689 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
46690 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
46691 "module/icp/Makefile") CONFIG_FILES="$CONFIG_FILES module/icp/Makefile" ;;
46692 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
46693 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
46694 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
46695 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
46696 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
46697 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
46698 "include/sys/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/crypto/Makefile" ;;
46699 "include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
46700 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
46701 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
46702 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
46703 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
46704 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
46705 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
46706 "tests/test-runner/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/Makefile" ;;
46707 "tests/test-runner/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/cmd/Makefile" ;;
46708 "tests/test-runner/include/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/include/Makefile" ;;
46709 "tests/test-runner/man/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/man/Makefile" ;;
46710 "tests/runfiles/Makefile") CONFIG_FILES="$CONFIG_FILES tests/runfiles/Makefile" ;;
46711 "tests/zfs-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/Makefile" ;;
46712 "tests/zfs-tests/callbacks/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/callbacks/Makefile" ;;
46713 "tests/zfs-tests/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/Makefile" ;;
46714 "tests/zfs-tests/cmd/chg_usr_exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/chg_usr_exec/Makefile" ;;
46715 "tests/zfs-tests/cmd/devname2devid/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/devname2devid/Makefile" ;;
46716 "tests/zfs-tests/cmd/dir_rd_update/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/dir_rd_update/Makefile" ;;
46717 "tests/zfs-tests/cmd/file_check/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/file_check/Makefile" ;;
46718 "tests/zfs-tests/cmd/file_trunc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/file_trunc/Makefile" ;;
46719 "tests/zfs-tests/cmd/file_write/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/file_write/Makefile" ;;
46720 "tests/zfs-tests/cmd/largest_file/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/largest_file/Makefile" ;;
46721 "tests/zfs-tests/cmd/mkbusy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mkbusy/Makefile" ;;
46722 "tests/zfs-tests/cmd/mkfile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mkfile/Makefile" ;;
46723 "tests/zfs-tests/cmd/mkfiles/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mkfiles/Makefile" ;;
46724 "tests/zfs-tests/cmd/mktree/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mktree/Makefile" ;;
46725 "tests/zfs-tests/cmd/mmap_exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mmap_exec/Makefile" ;;
46726 "tests/zfs-tests/cmd/mmapwrite/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mmapwrite/Makefile" ;;
46727 "tests/zfs-tests/cmd/randfree_file/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/randfree_file/Makefile" ;;
46728 "tests/zfs-tests/cmd/readmmap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/readmmap/Makefile" ;;
46729 "tests/zfs-tests/cmd/rename_dir/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/rename_dir/Makefile" ;;
46730 "tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile" ;;
46731 "tests/zfs-tests/cmd/threadsappend/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/threadsappend/Makefile" ;;
46732 "tests/zfs-tests/cmd/xattrtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/xattrtest/Makefile" ;;
46733 "tests/zfs-tests/include/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/include/Makefile" ;;
46734 "tests/zfs-tests/include/default.cfg") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/include/default.cfg" ;;
46735 "tests/zfs-tests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/Makefile" ;;
46736 "tests/zfs-tests/tests/functional/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/Makefile" ;;
46737 "tests/zfs-tests/tests/functional/acl/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/acl/Makefile" ;;
46738 "tests/zfs-tests/tests/functional/acl/posix/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/acl/posix/Makefile" ;;
46739 "tests/zfs-tests/tests/functional/atime/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/atime/Makefile" ;;
46740 "tests/zfs-tests/tests/functional/bootfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/bootfs/Makefile" ;;
46741 "tests/zfs-tests/tests/functional/cache/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cache/Makefile" ;;
46742 "tests/zfs-tests/tests/functional/cachefile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cachefile/Makefile" ;;
46743 "tests/zfs-tests/tests/functional/casenorm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/casenorm/Makefile" ;;
46744 "tests/zfs-tests/tests/functional/checksum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/checksum/Makefile" ;;
46745 "tests/zfs-tests/tests/functional/chattr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/chattr/Makefile" ;;
46746 "tests/zfs-tests/tests/functional/clean_mirror/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/clean_mirror/Makefile" ;;
46747 "tests/zfs-tests/tests/functional/cli_root/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/Makefile" ;;
46748 "tests/zfs-tests/tests/functional/cli_root/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zdb/Makefile" ;;
46749 "tests/zfs-tests/tests/functional/cli_root/zfs_clone/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_clone/Makefile" ;;
46750 "tests/zfs-tests/tests/functional/cli_root/zfs_copies/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_copies/Makefile" ;;
46751 "tests/zfs-tests/tests/functional/cli_root/zfs_create/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_create/Makefile" ;;
46752 "tests/zfs-tests/tests/functional/cli_root/zfs_destroy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_destroy/Makefile" ;;
46753 "tests/zfs-tests/tests/functional/cli_root/zfs_get/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_get/Makefile" ;;
46754 "tests/zfs-tests/tests/functional/cli_root/zfs_inherit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_inherit/Makefile" ;;
46755 "tests/zfs-tests/tests/functional/cli_root/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs/Makefile" ;;
46756 "tests/zfs-tests/tests/functional/cli_root/zfs_mount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_mount/Makefile" ;;
46757 "tests/zfs-tests/tests/functional/cli_root/zfs_promote/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_promote/Makefile" ;;
46758 "tests/zfs-tests/tests/functional/cli_root/zfs_property/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_property/Makefile" ;;
46759 "tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile" ;;
46760 "tests/zfs-tests/tests/functional/cli_root/zfs_rename/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_rename/Makefile" ;;
46761 "tests/zfs-tests/tests/functional/cli_root/zfs_reservation/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_reservation/Makefile" ;;
46762 "tests/zfs-tests/tests/functional/cli_root/zfs_rollback/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_rollback/Makefile" ;;
46763 "tests/zfs-tests/tests/functional/cli_root/zfs_send/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_send/Makefile" ;;
46764 "tests/zfs-tests/tests/functional/cli_root/zfs_set/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_set/Makefile" ;;
46765 "tests/zfs-tests/tests/functional/cli_root/zfs_share/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_share/Makefile" ;;
46766 "tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/Makefile" ;;
46767 "tests/zfs-tests/tests/functional/cli_root/zfs_unmount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_unmount/Makefile" ;;
46768 "tests/zfs-tests/tests/functional/cli_root/zfs_unshare/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_unshare/Makefile" ;;
46769 "tests/zfs-tests/tests/functional/cli_root/zfs_upgrade/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_upgrade/Makefile" ;;
46770 "tests/zfs-tests/tests/functional/cli_root/zpool_add/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_add/Makefile" ;;
46771 "tests/zfs-tests/tests/functional/cli_root/zpool_attach/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_attach/Makefile" ;;
46772 "tests/zfs-tests/tests/functional/cli_root/zpool_clear/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_clear/Makefile" ;;
46773 "tests/zfs-tests/tests/functional/cli_root/zpool_create/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_create/Makefile" ;;
46774 "tests/zfs-tests/tests/functional/cli_root/zpool_destroy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_destroy/Makefile" ;;
46775 "tests/zfs-tests/tests/functional/cli_root/zpool_detach/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_detach/Makefile" ;;
46776 "tests/zfs-tests/tests/functional/cli_root/zpool_expand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_expand/Makefile" ;;
46777 "tests/zfs-tests/tests/functional/cli_root/zpool_export/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_export/Makefile" ;;
46778 "tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile" ;;
46779 "tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile" ;;
46780 "tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile" ;;
46781 "tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/Makefile" ;;
46782 "tests/zfs-tests/tests/functional/cli_root/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool/Makefile" ;;
46783 "tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile" ;;
46784 "tests/zfs-tests/tests/functional/cli_root/zpool_online/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_online/Makefile" ;;
46785 "tests/zfs-tests/tests/functional/cli_root/zpool_remove/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_remove/Makefile" ;;
46786 "tests/zfs-tests/tests/functional/cli_root/zpool_replace/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_replace/Makefile" ;;
46787 "tests/zfs-tests/tests/functional/cli_root/zpool_scrub/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_scrub/Makefile" ;;
46788 "tests/zfs-tests/tests/functional/cli_root/zpool_set/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_set/Makefile" ;;
46789 "tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile" ;;
46790 "tests/zfs-tests/tests/functional/cli_root/zpool_sync/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_sync/Makefile" ;;
46791 "tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile" ;;
46792 "tests/zfs-tests/tests/functional/cli_user/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/Makefile" ;;
46793 "tests/zfs-tests/tests/functional/cli_user/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/misc/Makefile" ;;
46794 "tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile" ;;
46795 "tests/zfs-tests/tests/functional/cli_user/zpool_iostat/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/zpool_iostat/Makefile" ;;
46796 "tests/zfs-tests/tests/functional/cli_user/zpool_list/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/zpool_list/Makefile" ;;
46797 "tests/zfs-tests/tests/functional/compression/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/compression/Makefile" ;;
46798 "tests/zfs-tests/tests/functional/ctime/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/ctime/Makefile" ;;
46799 "tests/zfs-tests/tests/functional/delegate/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/delegate/Makefile" ;;
46800 "tests/zfs-tests/tests/functional/devices/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/devices/Makefile" ;;
46801 "tests/zfs-tests/tests/functional/events/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/events/Makefile" ;;
46802 "tests/zfs-tests/tests/functional/exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/exec/Makefile" ;;
46803 "tests/zfs-tests/tests/functional/fault/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/fault/Makefile" ;;
46804 "tests/zfs-tests/tests/functional/features/async_destroy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/features/async_destroy/Makefile" ;;
46805 "tests/zfs-tests/tests/functional/features/large_dnode/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/features/large_dnode/Makefile" ;;
46806 "tests/zfs-tests/tests/functional/features/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/features/Makefile" ;;
46807 "tests/zfs-tests/tests/functional/grow_pool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/grow_pool/Makefile" ;;
46808 "tests/zfs-tests/tests/functional/grow_replicas/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/grow_replicas/Makefile" ;;
46809 "tests/zfs-tests/tests/functional/history/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/history/Makefile" ;;
46810 "tests/zfs-tests/tests/functional/inheritance/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/inheritance/Makefile" ;;
46811 "tests/zfs-tests/tests/functional/inuse/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/inuse/Makefile" ;;
46812 "tests/zfs-tests/tests/functional/large_files/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/large_files/Makefile" ;;
46813 "tests/zfs-tests/tests/functional/largest_pool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/largest_pool/Makefile" ;;
46814 "tests/zfs-tests/tests/functional/link_count/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/link_count/Makefile" ;;
46815 "tests/zfs-tests/tests/functional/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/libzfs/Makefile" ;;
46816 "tests/zfs-tests/tests/functional/migration/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/migration/Makefile" ;;
46817 "tests/zfs-tests/tests/functional/mmap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mmap/Makefile" ;;
46818 "tests/zfs-tests/tests/functional/mmp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mmp/Makefile" ;;
46819 "tests/zfs-tests/tests/functional/mount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mount/Makefile" ;;
46820 "tests/zfs-tests/tests/functional/mv_files/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mv_files/Makefile" ;;
46821 "tests/zfs-tests/tests/functional/nestedfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/nestedfs/Makefile" ;;
46822 "tests/zfs-tests/tests/functional/no_space/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/no_space/Makefile" ;;
46823 "tests/zfs-tests/tests/functional/nopwrite/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/nopwrite/Makefile" ;;
46824 "tests/zfs-tests/tests/functional/online_offline/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/online_offline/Makefile" ;;
46825 "tests/zfs-tests/tests/functional/pool_names/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/pool_names/Makefile" ;;
46826 "tests/zfs-tests/tests/functional/poolversion/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/poolversion/Makefile" ;;
46827 "tests/zfs-tests/tests/functional/privilege/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/privilege/Makefile" ;;
46828 "tests/zfs-tests/tests/functional/quota/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/quota/Makefile" ;;
46829 "tests/zfs-tests/tests/functional/raidz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/raidz/Makefile" ;;
46830 "tests/zfs-tests/tests/functional/redundancy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/redundancy/Makefile" ;;
46831 "tests/zfs-tests/tests/functional/refquota/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/refquota/Makefile" ;;
46832 "tests/zfs-tests/tests/functional/refreserv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/refreserv/Makefile" ;;
46833 "tests/zfs-tests/tests/functional/rename_dirs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/rename_dirs/Makefile" ;;
46834 "tests/zfs-tests/tests/functional/replacement/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/replacement/Makefile" ;;
46835 "tests/zfs-tests/tests/functional/reservation/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/reservation/Makefile" ;;
46836 "tests/zfs-tests/tests/functional/rootpool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/rootpool/Makefile" ;;
46837 "tests/zfs-tests/tests/functional/rsend/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/rsend/Makefile" ;;
46838 "tests/zfs-tests/tests/functional/scrub_mirror/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/scrub_mirror/Makefile" ;;
46839 "tests/zfs-tests/tests/functional/slog/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/slog/Makefile" ;;
46840 "tests/zfs-tests/tests/functional/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/snapshot/Makefile" ;;
46841 "tests/zfs-tests/tests/functional/snapused/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/snapused/Makefile" ;;
46842 "tests/zfs-tests/tests/functional/sparse/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/sparse/Makefile" ;;
46843 "tests/zfs-tests/tests/functional/threadsappend/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/threadsappend/Makefile" ;;
46844 "tests/zfs-tests/tests/functional/tmpfile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/tmpfile/Makefile" ;;
46845 "tests/zfs-tests/tests/functional/truncate/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/truncate/Makefile" ;;
46846 "tests/zfs-tests/tests/functional/userquota/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/userquota/Makefile" ;;
46847 "tests/zfs-tests/tests/functional/upgrade/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/upgrade/Makefile" ;;
46848 "tests/zfs-tests/tests/functional/vdev_zaps/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/vdev_zaps/Makefile" ;;
46849 "tests/zfs-tests/tests/functional/write_dirs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/write_dirs/Makefile" ;;
46850 "tests/zfs-tests/tests/functional/xattr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/xattr/Makefile" ;;
46851 "tests/zfs-tests/tests/functional/zvol/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/Makefile" ;;
46852 "tests/zfs-tests/tests/functional/zvol/zvol_cli/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_cli/Makefile" ;;
46853 "tests/zfs-tests/tests/functional/zvol/zvol_ENOSPC/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_ENOSPC/Makefile" ;;
46854 "tests/zfs-tests/tests/functional/zvol/zvol_misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_misc/Makefile" ;;
46855 "tests/zfs-tests/tests/functional/zvol/zvol_swap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_swap/Makefile" ;;
46856 "tests/zfs-tests/tests/perf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/Makefile" ;;
46857 "tests/zfs-tests/tests/perf/fio/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/fio/Makefile" ;;
46858 "tests/zfs-tests/tests/perf/regression/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/regression/Makefile" ;;
46859 "tests/zfs-tests/tests/perf/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/scripts/Makefile" ;;
46860 "tests/zfs-tests/tests/stress/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/stress/Makefile" ;;
46861 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
46862 "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;;
46863 "rpm/redhat/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs.spec" ;;
46864 "rpm/redhat/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-kmod.spec" ;;
46865 "rpm/redhat/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-dkms.spec" ;;
46866 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
46867 "rpm/generic/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs.spec" ;;
46868 "rpm/generic/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
46869 "rpm/generic/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
46870 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
46871 "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;;
46872
46873 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
46874 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
46875 { (exit 1); exit 1; }; };;
46876 esac
46877 done
46878
46879
46880 # If the user did not use the arguments to specify the items to instantiate,
46881 # then the envvar interface is used. Set only those that are not.
46882 # We use the long form for the default assignment because of an extremely
46883 # bizarre bug on SunOS 4.1.3.
46884 if $ac_need_defaults; then
46885 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46886 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46887 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46888 fi
46889
46890 # Have a temporary directory for convenience. Make it in the build tree
46891 # simply because there is no reason against having it here, and in addition,
46892 # creating and moving files from /tmp can sometimes cause problems.
46893 # Hook for its removal unless debugging.
46894 # Note that there is a small window in which the directory will not be cleaned:
46895 # after its creation but before its name has been assigned to `$tmp'.
46896 $debug ||
46897 {
46898 tmp=
46899 trap 'exit_status=$?
46900 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
46901 ' 0
46902 trap '{ (exit 1); exit 1; }' 1 2 13 15
46903 }
46904 # Create a (secure) tmp directory for tmp files.
46905
46906 {
46907 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
46908 test -n "$tmp" && test -d "$tmp"
46909 } ||
46910 {
46911 tmp=./conf$$-$RANDOM
46912 (umask 077 && mkdir "$tmp")
46913 } ||
46914 {
46915 $as_echo "$as_me: cannot create a temporary directory in ." >&2
46916 { (exit 1); exit 1; }
46917 }
46918
46919 # Set up the scripts for CONFIG_FILES section.
46920 # No need to generate them if there are no CONFIG_FILES.
46921 # This happens for instance with `./config.status config.h'.
46922 if test -n "$CONFIG_FILES"; then
46923
46924
46925 ac_cr=' '
46926 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
46927 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
46928 ac_cs_awk_cr='\\r'
46929 else
46930 ac_cs_awk_cr=$ac_cr
46931 fi
46932
46933 echo 'BEGIN {' >"$tmp/subs1.awk" &&
46934 _ACEOF
46935
46936
46937 {
46938 echo "cat >conf$$subs.awk <<_ACEOF" &&
46939 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
46940 echo "_ACEOF"
46941 } >conf$$subs.sh ||
46942 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46943 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46944 { (exit 1); exit 1; }; }
46945 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
46946 ac_delim='%!_!# '
46947 for ac_last_try in false false false false false :; do
46948 . ./conf$$subs.sh ||
46949 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46950 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46951 { (exit 1); exit 1; }; }
46952
46953 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
46954 if test $ac_delim_n = $ac_delim_num; then
46955 break
46956 elif $ac_last_try; then
46957 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46958 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46959 { (exit 1); exit 1; }; }
46960 else
46961 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46962 fi
46963 done
46964 rm -f conf$$subs.sh
46965
46966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46967 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
46968 _ACEOF
46969 sed -n '
46970 h
46971 s/^/S["/; s/!.*/"]=/
46972 p
46973 g
46974 s/^[^!]*!//
46975 :repl
46976 t repl
46977 s/'"$ac_delim"'$//
46978 t delim
46979 :nl
46980 h
46981 s/\(.\{148\}\).*/\1/
46982 t more1
46983 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
46984 p
46985 n
46986 b repl
46987 :more1
46988 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46989 p
46990 g
46991 s/.\{148\}//
46992 t nl
46993 :delim
46994 h
46995 s/\(.\{148\}\).*/\1/
46996 t more2
46997 s/["\\]/\\&/g; s/^/"/; s/$/"/
46998 p
46999 b
47000 :more2
47001 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47002 p
47003 g
47004 s/.\{148\}//
47005 t delim
47006 ' <conf$$subs.awk | sed '
47007 /^[^""]/{
47008 N
47009 s/\n//
47010 }
47011 ' >>$CONFIG_STATUS || ac_write_fail=1
47012 rm -f conf$$subs.awk
47013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47014 _ACAWK
47015 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
47016 for (key in S) S_is_set[key] = 1
47017 FS = "\a"
47018
47019 }
47020 {
47021 line = $ 0
47022 nfields = split(line, field, "@")
47023 substed = 0
47024 len = length(field[1])
47025 for (i = 2; i < nfields; i++) {
47026 key = field[i]
47027 keylen = length(key)
47028 if (S_is_set[key]) {
47029 value = S[key]
47030 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
47031 len += length(value) + length(field[++i])
47032 substed = 1
47033 } else
47034 len += 1 + keylen
47035 }
47036
47037 print line
47038 }
47039
47040 _ACAWK
47041 _ACEOF
47042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47043 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
47044 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
47045 else
47046 cat
47047 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
47048 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
47049 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
47050 { (exit 1); exit 1; }; }
47051 _ACEOF
47052
47053 # VPATH may cause trouble with some makes, so we remove $(srcdir),
47054 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
47055 # trailing colons and then remove the whole line if VPATH becomes empty
47056 # (actually we leave an empty line to preserve line numbers).
47057 if test "x$srcdir" = x.; then
47058 ac_vpsub='/^[ ]*VPATH[ ]*=/{
47059 s/:*\$(srcdir):*/:/
47060 s/:*\${srcdir}:*/:/
47061 s/:*@srcdir@:*/:/
47062 s/^\([^=]*=[ ]*\):*/\1/
47063 s/:*$//
47064 s/^[^=]*=[ ]*$//
47065 }'
47066 fi
47067
47068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47069 fi # test -n "$CONFIG_FILES"
47070
47071 # Set up the scripts for CONFIG_HEADERS section.
47072 # No need to generate them if there are no CONFIG_HEADERS.
47073 # This happens for instance with `./config.status Makefile'.
47074 if test -n "$CONFIG_HEADERS"; then
47075 cat >"$tmp/defines.awk" <<\_ACAWK ||
47076 BEGIN {
47077 _ACEOF
47078
47079 # Transform confdefs.h into an awk script `defines.awk', embedded as
47080 # here-document in config.status, that substitutes the proper values into
47081 # config.h.in to produce config.h.
47082
47083 # Create a delimiter string that does not exist in confdefs.h, to ease
47084 # handling of long lines.
47085 ac_delim='%!_!# '
47086 for ac_last_try in false false :; do
47087 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
47088 if test -z "$ac_t"; then
47089 break
47090 elif $ac_last_try; then
47091 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
47092 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
47093 { (exit 1); exit 1; }; }
47094 else
47095 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47096 fi
47097 done
47098
47099 # For the awk script, D is an array of macro values keyed by name,
47100 # likewise P contains macro parameters if any. Preserve backslash
47101 # newline sequences.
47102
47103 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
47104 sed -n '
47105 s/.\{148\}/&'"$ac_delim"'/g
47106 t rset
47107 :rset
47108 s/^[ ]*#[ ]*define[ ][ ]*/ /
47109 t def
47110 d
47111 :def
47112 s/\\$//
47113 t bsnl
47114 s/["\\]/\\&/g
47115 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
47116 D["\1"]=" \3"/p
47117 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
47118 d
47119 :bsnl
47120 s/["\\]/\\&/g
47121 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
47122 D["\1"]=" \3\\\\\\n"\\/p
47123 t cont
47124 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
47125 t cont
47126 d
47127 :cont
47128 n
47129 s/.\{148\}/&'"$ac_delim"'/g
47130 t clear
47131 :clear
47132 s/\\$//
47133 t bsnlc
47134 s/["\\]/\\&/g; s/^/"/; s/$/"/p
47135 d
47136 :bsnlc
47137 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
47138 b cont
47139 ' <confdefs.h | sed '
47140 s/'"$ac_delim"'/"\\\
47141 "/g' >>$CONFIG_STATUS || ac_write_fail=1
47142
47143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47144 for (key in D) D_is_set[key] = 1
47145 FS = "\a"
47146 }
47147 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
47148 line = \$ 0
47149 split(line, arg, " ")
47150 if (arg[1] == "#") {
47151 defundef = arg[2]
47152 mac1 = arg[3]
47153 } else {
47154 defundef = substr(arg[1], 2)
47155 mac1 = arg[2]
47156 }
47157 split(mac1, mac2, "(") #)
47158 macro = mac2[1]
47159 prefix = substr(line, 1, index(line, defundef) - 1)
47160 if (D_is_set[macro]) {
47161 # Preserve the white space surrounding the "#".
47162 print prefix "define", macro P[macro] D[macro]
47163 next
47164 } else {
47165 # Replace #undef with comments. This is necessary, for example,
47166 # in the case of _POSIX_SOURCE, which is predefined and required
47167 # on some systems where configure will not decide to define it.
47168 if (defundef == "undef") {
47169 print "/*", prefix defundef, macro, "*/"
47170 next
47171 }
47172 }
47173 }
47174 { print }
47175 _ACAWK
47176 _ACEOF
47177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47178 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
47179 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
47180 { (exit 1); exit 1; }; }
47181 fi # test -n "$CONFIG_HEADERS"
47182
47183
47184 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
47185 shift
47186 for ac_tag
47187 do
47188 case $ac_tag in
47189 :[FHLC]) ac_mode=$ac_tag; continue;;
47190 esac
47191 case $ac_mode$ac_tag in
47192 :[FHL]*:*);;
47193 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
47194 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
47195 { (exit 1); exit 1; }; };;
47196 :[FH]-) ac_tag=-:-;;
47197 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
47198 esac
47199 ac_save_IFS=$IFS
47200 IFS=:
47201 set x $ac_tag
47202 IFS=$ac_save_IFS
47203 shift
47204 ac_file=$1
47205 shift
47206
47207 case $ac_mode in
47208 :L) ac_source=$1;;
47209 :[FH])
47210 ac_file_inputs=
47211 for ac_f
47212 do
47213 case $ac_f in
47214 -) ac_f="$tmp/stdin";;
47215 *) # Look for the file first in the build tree, then in the source tree
47216 # (if the path is not absolute). The absolute path cannot be DOS-style,
47217 # because $ac_f cannot contain `:'.
47218 test -f "$ac_f" ||
47219 case $ac_f in
47220 [\\/$]*) false;;
47221 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
47222 esac ||
47223 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
47224 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
47225 { (exit 1); exit 1; }; };;
47226 esac
47227 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
47228 ac_file_inputs="$ac_file_inputs '$ac_f'"
47229 done
47230
47231 # Let's still pretend it is `configure' which instantiates (i.e., don't
47232 # use $as_me), people would be surprised to read:
47233 # /* config.h. Generated by config.status. */
47234 configure_input='Generated from '`
47235 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
47236 `' by configure.'
47237 if test x"$ac_file" != x-; then
47238 configure_input="$ac_file. $configure_input"
47239 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
47240 $as_echo "$as_me: creating $ac_file" >&6;}
47241 fi
47242 # Neutralize special characters interpreted by sed in replacement strings.
47243 case $configure_input in #(
47244 *\&* | *\|* | *\\* )
47245 ac_sed_conf_input=`$as_echo "$configure_input" |
47246 sed 's/[\\\\&|]/\\\\&/g'`;; #(
47247 *) ac_sed_conf_input=$configure_input;;
47248 esac
47249
47250 case $ac_tag in
47251 *:-:* | *:-) cat >"$tmp/stdin" \
47252 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47253 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47254 { (exit 1); exit 1; }; } ;;
47255 esac
47256 ;;
47257 esac
47258
47259 ac_dir=`$as_dirname -- "$ac_file" ||
47260 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47261 X"$ac_file" : 'X\(//\)[^/]' \| \
47262 X"$ac_file" : 'X\(//\)$' \| \
47263 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
47264 $as_echo X"$ac_file" |
47265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47266 s//\1/
47267 q
47268 }
47269 /^X\(\/\/\)[^/].*/{
47270 s//\1/
47271 q
47272 }
47273 /^X\(\/\/\)$/{
47274 s//\1/
47275 q
47276 }
47277 /^X\(\/\).*/{
47278 s//\1/
47279 q
47280 }
47281 s/.*/./; q'`
47282 { as_dir="$ac_dir"
47283 case $as_dir in #(
47284 -*) as_dir=./$as_dir;;
47285 esac
47286 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
47287 as_dirs=
47288 while :; do
47289 case $as_dir in #(
47290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
47291 *) as_qdir=$as_dir;;
47292 esac
47293 as_dirs="'$as_qdir' $as_dirs"
47294 as_dir=`$as_dirname -- "$as_dir" ||
47295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47296 X"$as_dir" : 'X\(//\)[^/]' \| \
47297 X"$as_dir" : 'X\(//\)$' \| \
47298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
47299 $as_echo X"$as_dir" |
47300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47301 s//\1/
47302 q
47303 }
47304 /^X\(\/\/\)[^/].*/{
47305 s//\1/
47306 q
47307 }
47308 /^X\(\/\/\)$/{
47309 s//\1/
47310 q
47311 }
47312 /^X\(\/\).*/{
47313 s//\1/
47314 q
47315 }
47316 s/.*/./; q'`
47317 test -d "$as_dir" && break
47318 done
47319 test -z "$as_dirs" || eval "mkdir $as_dirs"
47320 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
47321 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
47322 { (exit 1); exit 1; }; }; }
47323 ac_builddir=.
47324
47325 case "$ac_dir" in
47326 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
47327 *)
47328 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
47329 # A ".." for each directory in $ac_dir_suffix.
47330 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
47331 case $ac_top_builddir_sub in
47332 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
47333 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
47334 esac ;;
47335 esac
47336 ac_abs_top_builddir=$ac_pwd
47337 ac_abs_builddir=$ac_pwd$ac_dir_suffix
47338 # for backward compatibility:
47339 ac_top_builddir=$ac_top_build_prefix
47340
47341 case $srcdir in
47342 .) # We are building in place.
47343 ac_srcdir=.
47344 ac_top_srcdir=$ac_top_builddir_sub
47345 ac_abs_top_srcdir=$ac_pwd ;;
47346 [\\/]* | ?:[\\/]* ) # Absolute name.
47347 ac_srcdir=$srcdir$ac_dir_suffix;
47348 ac_top_srcdir=$srcdir
47349 ac_abs_top_srcdir=$srcdir ;;
47350 *) # Relative name.
47351 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
47352 ac_top_srcdir=$ac_top_build_prefix$srcdir
47353 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
47354 esac
47355 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
47356
47357
47358 case $ac_mode in
47359 :F)
47360 #
47361 # CONFIG_FILE
47362 #
47363
47364 case $INSTALL in
47365 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47366 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
47367 esac
47368 ac_MKDIR_P=$MKDIR_P
47369 case $MKDIR_P in
47370 [\\/$]* | ?:[\\/]* ) ;;
47371 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
47372 esac
47373 _ACEOF
47374
47375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47376 # If the template does not know about datarootdir, expand it.
47377 # FIXME: This hack should be removed a few years after 2.60.
47378 ac_datarootdir_hack=; ac_datarootdir_seen=
47379
47380 ac_sed_dataroot='
47381 /datarootdir/ {
47382 p
47383 q
47384 }
47385 /@datadir@/p
47386 /@docdir@/p
47387 /@infodir@/p
47388 /@localedir@/p
47389 /@mandir@/p
47390 '
47391 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
47392 *datarootdir*) ac_datarootdir_seen=yes;;
47393 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
47394 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
47395 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
47396 _ACEOF
47397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47398 ac_datarootdir_hack='
47399 s&@datadir@&$datadir&g
47400 s&@docdir@&$docdir&g
47401 s&@infodir@&$infodir&g
47402 s&@localedir@&$localedir&g
47403 s&@mandir@&$mandir&g
47404 s&\\\${datarootdir}&$datarootdir&g' ;;
47405 esac
47406 _ACEOF
47407
47408 # Neutralize VPATH when `$srcdir' = `.'.
47409 # Shell code in configure.ac might set extrasub.
47410 # FIXME: do we really want to maintain this feature?
47411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47412 ac_sed_extra="$ac_vpsub
47413 $extrasub
47414 _ACEOF
47415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47416 :t
47417 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47418 s|@configure_input@|$ac_sed_conf_input|;t t
47419 s&@top_builddir@&$ac_top_builddir_sub&;t t
47420 s&@top_build_prefix@&$ac_top_build_prefix&;t t
47421 s&@srcdir@&$ac_srcdir&;t t
47422 s&@abs_srcdir@&$ac_abs_srcdir&;t t
47423 s&@top_srcdir@&$ac_top_srcdir&;t t
47424 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
47425 s&@builddir@&$ac_builddir&;t t
47426 s&@abs_builddir@&$ac_abs_builddir&;t t
47427 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
47428 s&@INSTALL@&$ac_INSTALL&;t t
47429 s&@MKDIR_P@&$ac_MKDIR_P&;t t
47430 $ac_datarootdir_hack
47431 "
47432 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
47433 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47434 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47435 { (exit 1); exit 1; }; }
47436
47437 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
47438 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
47439 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
47440 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47441 which seems to be undefined. Please make sure it is defined." >&5
47442 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47443 which seems to be undefined. Please make sure it is defined." >&2;}
47444
47445 rm -f "$tmp/stdin"
47446 case $ac_file in
47447 -) cat "$tmp/out" && rm -f "$tmp/out";;
47448 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
47449 esac \
47450 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47451 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47452 { (exit 1); exit 1; }; }
47453 ;;
47454 :H)
47455 #
47456 # CONFIG_HEADER
47457 #
47458 if test x"$ac_file" != x-; then
47459 {
47460 $as_echo "/* $configure_input */" \
47461 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
47462 } >"$tmp/config.h" \
47463 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47464 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47465 { (exit 1); exit 1; }; }
47466 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
47467 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47468 $as_echo "$as_me: $ac_file is unchanged" >&6;}
47469 else
47470 rm -f "$ac_file"
47471 mv "$tmp/config.h" "$ac_file" \
47472 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47473 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47474 { (exit 1); exit 1; }; }
47475 fi
47476 else
47477 $as_echo "/* $configure_input */" \
47478 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
47479 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
47480 $as_echo "$as_me: error: could not create -" >&2;}
47481 { (exit 1); exit 1; }; }
47482 fi
47483 # Compute "$ac_file"'s index in $config_headers.
47484 _am_arg="$ac_file"
47485 _am_stamp_count=1
47486 for _am_header in $config_headers :; do
47487 case $_am_header in
47488 $_am_arg | $_am_arg:* )
47489 break ;;
47490 * )
47491 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
47492 esac
47493 done
47494 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
47495 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47496 X"$_am_arg" : 'X\(//\)[^/]' \| \
47497 X"$_am_arg" : 'X\(//\)$' \| \
47498 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
47499 $as_echo X"$_am_arg" |
47500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47501 s//\1/
47502 q
47503 }
47504 /^X\(\/\/\)[^/].*/{
47505 s//\1/
47506 q
47507 }
47508 /^X\(\/\/\)$/{
47509 s//\1/
47510 q
47511 }
47512 /^X\(\/\).*/{
47513 s//\1/
47514 q
47515 }
47516 s/.*/./; q'`/stamp-h$_am_stamp_count
47517 ;;
47518
47519 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
47520 $as_echo "$as_me: executing $ac_file commands" >&6;}
47521 ;;
47522 esac
47523
47524
47525 case $ac_file$ac_mode in
47526 "zfs_config.h":H)
47527 (mv zfs_config.h zfs_config.h.tmp &&
47528 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
47529 rm zfs_config.h.tmp) || exit 1 ;;
47530 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
47531 # Autoconf 2.62 quotes --file arguments for eval, but not when files
47532 # are listed without --file. Let's play safe and only enable the eval
47533 # if we detect the quoting.
47534 case $CONFIG_FILES in
47535 *\'*) eval set x "$CONFIG_FILES" ;;
47536 *) set x $CONFIG_FILES ;;
47537 esac
47538 shift
47539 for mf
47540 do
47541 # Strip MF so we end up with the name of the file.
47542 mf=`echo "$mf" | sed -e 's/:.*$//'`
47543 # Check whether this is an Automake generated Makefile or not.
47544 # We used to match only the files named `Makefile.in', but
47545 # some people rename them; so instead we look at the file content.
47546 # Grep'ing the first line is not enough: some people post-process
47547 # each Makefile.in and add a new line on top of each file to say so.
47548 # Grep'ing the whole file is not good either: AIX grep has a line
47549 # limit of 2048, but all sed's we know have understand at least 4000.
47550 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
47551 dirpart=`$as_dirname -- "$mf" ||
47552 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47553 X"$mf" : 'X\(//\)[^/]' \| \
47554 X"$mf" : 'X\(//\)$' \| \
47555 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
47556 $as_echo X"$mf" |
47557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47558 s//\1/
47559 q
47560 }
47561 /^X\(\/\/\)[^/].*/{
47562 s//\1/
47563 q
47564 }
47565 /^X\(\/\/\)$/{
47566 s//\1/
47567 q
47568 }
47569 /^X\(\/\).*/{
47570 s//\1/
47571 q
47572 }
47573 s/.*/./; q'`
47574 else
47575 continue
47576 fi
47577 # Extract the definition of DEPDIR, am__include, and am__quote
47578 # from the Makefile without running `make'.
47579 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
47580 test -z "$DEPDIR" && continue
47581 am__include=`sed -n 's/^am__include = //p' < "$mf"`
47582 test -z "am__include" && continue
47583 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
47584 # When using ansi2knr, U may be empty or an underscore; expand it
47585 U=`sed -n 's/^U = //p' < "$mf"`
47586 # Find all dependency output files, they are included files with
47587 # $(DEPDIR) in their names. We invoke sed twice because it is the
47588 # simplest approach to changing $(DEPDIR) to its actual value in the
47589 # expansion.
47590 for file in `sed -n "
47591 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
47592 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
47593 # Make sure the directory exists.
47594 test -f "$dirpart/$file" && continue
47595 fdir=`$as_dirname -- "$file" ||
47596 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47597 X"$file" : 'X\(//\)[^/]' \| \
47598 X"$file" : 'X\(//\)$' \| \
47599 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
47600 $as_echo X"$file" |
47601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47602 s//\1/
47603 q
47604 }
47605 /^X\(\/\/\)[^/].*/{
47606 s//\1/
47607 q
47608 }
47609 /^X\(\/\/\)$/{
47610 s//\1/
47611 q
47612 }
47613 /^X\(\/\).*/{
47614 s//\1/
47615 q
47616 }
47617 s/.*/./; q'`
47618 { as_dir=$dirpart/$fdir
47619 case $as_dir in #(
47620 -*) as_dir=./$as_dir;;
47621 esac
47622 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
47623 as_dirs=
47624 while :; do
47625 case $as_dir in #(
47626 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
47627 *) as_qdir=$as_dir;;
47628 esac
47629 as_dirs="'$as_qdir' $as_dirs"
47630 as_dir=`$as_dirname -- "$as_dir" ||
47631 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47632 X"$as_dir" : 'X\(//\)[^/]' \| \
47633 X"$as_dir" : 'X\(//\)$' \| \
47634 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
47635 $as_echo X"$as_dir" |
47636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47637 s//\1/
47638 q
47639 }
47640 /^X\(\/\/\)[^/].*/{
47641 s//\1/
47642 q
47643 }
47644 /^X\(\/\/\)$/{
47645 s//\1/
47646 q
47647 }
47648 /^X\(\/\).*/{
47649 s//\1/
47650 q
47651 }
47652 s/.*/./; q'`
47653 test -d "$as_dir" && break
47654 done
47655 test -z "$as_dirs" || eval "mkdir $as_dirs"
47656 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
47657 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
47658 { (exit 1); exit 1; }; }; }
47659 # echo "creating $dirpart/$file"
47660 echo '# dummy' > "$dirpart/$file"
47661 done
47662 done
47663 }
47664 ;;
47665 "libtool":C)
47666
47667 # See if we are running on zsh, and set the options which allow our
47668 # commands through without removal of \ escapes.
47669 if test -n "${ZSH_VERSION+set}" ; then
47670 setopt NO_GLOB_SUBST
47671 fi
47672
47673 cfgfile="${ofile}T"
47674 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
47675 $RM "$cfgfile"
47676
47677 cat <<_LT_EOF >> "$cfgfile"
47678 #! $SHELL
47679
47680 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
47681 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
47682 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
47683 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
47684 #
47685 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
47686 # 2006, 2007, 2008 Free Software Foundation, Inc.
47687 # Written by Gordon Matzigkeit, 1996
47688 #
47689 # This file is part of GNU Libtool.
47690 #
47691 # GNU Libtool is free software; you can redistribute it and/or
47692 # modify it under the terms of the GNU General Public License as
47693 # published by the Free Software Foundation; either version 2 of
47694 # the License, or (at your option) any later version.
47695 #
47696 # As a special exception to the GNU General Public License,
47697 # if you distribute this file as part of a program or library that
47698 # is built using GNU Libtool, you may include this file under the
47699 # same distribution terms that you use for the rest of that program.
47700 #
47701 # GNU Libtool is distributed in the hope that it will be useful,
47702 # but WITHOUT ANY WARRANTY; without even the implied warranty of
47703 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47704 # GNU General Public License for more details.
47705 #
47706 # You should have received a copy of the GNU General Public License
47707 # along with GNU Libtool; see the file COPYING. If not, a copy
47708 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
47709 # obtained by writing to the Free Software Foundation, Inc.,
47710 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
47711
47712
47713 # The names of the tagged configurations supported by this script.
47714 available_tags=""
47715
47716 # ### BEGIN LIBTOOL CONFIG
47717
47718 # Which release of libtool.m4 was used?
47719 macro_version=$macro_version
47720 macro_revision=$macro_revision
47721
47722 # Whether or not to build shared libraries.
47723 build_libtool_libs=$enable_shared
47724
47725 # Whether or not to build static libraries.
47726 build_old_libs=$enable_static
47727
47728 # What type of objects to build.
47729 pic_mode=$pic_mode
47730
47731 # Whether or not to optimize for fast installation.
47732 fast_install=$enable_fast_install
47733
47734 # The host system.
47735 host_alias=$host_alias
47736 host=$host
47737 host_os=$host_os
47738
47739 # The build system.
47740 build_alias=$build_alias
47741 build=$build
47742 build_os=$build_os
47743
47744 # A sed program that does not truncate output.
47745 SED=$lt_SED
47746
47747 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
47748 Xsed="\$SED -e 1s/^X//"
47749
47750 # A grep program that handles long lines.
47751 GREP=$lt_GREP
47752
47753 # An ERE matcher.
47754 EGREP=$lt_EGREP
47755
47756 # A literal string matcher.
47757 FGREP=$lt_FGREP
47758
47759 # A BSD- or MS-compatible name lister.
47760 NM=$lt_NM
47761
47762 # Whether we need soft or hard links.
47763 LN_S=$lt_LN_S
47764
47765 # What is the maximum length of a command?
47766 max_cmd_len=$max_cmd_len
47767
47768 # Object file suffix (normally "o").
47769 objext=$ac_objext
47770
47771 # Executable file suffix (normally "").
47772 exeext=$exeext
47773
47774 # whether the shell understands "unset".
47775 lt_unset=$lt_unset
47776
47777 # turn spaces into newlines.
47778 SP2NL=$lt_lt_SP2NL
47779
47780 # turn newlines into spaces.
47781 NL2SP=$lt_lt_NL2SP
47782
47783 # How to create reloadable object files.
47784 reload_flag=$lt_reload_flag
47785 reload_cmds=$lt_reload_cmds
47786
47787 # An object symbol dumper.
47788 OBJDUMP=$lt_OBJDUMP
47789
47790 # Method to check whether dependent libraries are shared objects.
47791 deplibs_check_method=$lt_deplibs_check_method
47792
47793 # Command to use when deplibs_check_method == "file_magic".
47794 file_magic_cmd=$lt_file_magic_cmd
47795
47796 # The archiver.
47797 AR=$lt_AR
47798 AR_FLAGS=$lt_AR_FLAGS
47799
47800 # A symbol stripping program.
47801 STRIP=$lt_STRIP
47802
47803 # Commands used to install an old-style archive.
47804 RANLIB=$lt_RANLIB
47805 old_postinstall_cmds=$lt_old_postinstall_cmds
47806 old_postuninstall_cmds=$lt_old_postuninstall_cmds
47807
47808 # A C compiler.
47809 LTCC=$lt_CC
47810
47811 # LTCC compiler flags.
47812 LTCFLAGS=$lt_CFLAGS
47813
47814 # Take the output of nm and produce a listing of raw symbols and C names.
47815 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47816
47817 # Transform the output of nm in a proper C declaration.
47818 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47819
47820 # Transform the output of nm in a C name address pair.
47821 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47822
47823 # Transform the output of nm in a C name address pair when lib prefix is needed.
47824 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
47825
47826 # The name of the directory that contains temporary libtool files.
47827 objdir=$objdir
47828
47829 # Shell to use when invoking shell scripts.
47830 SHELL=$lt_SHELL
47831
47832 # An echo program that does not interpret backslashes.
47833 ECHO=$lt_ECHO
47834
47835 # Used to examine libraries when file_magic_cmd begins with "file".
47836 MAGIC_CMD=$MAGIC_CMD
47837
47838 # Must we lock files when doing compilation?
47839 need_locks=$lt_need_locks
47840
47841 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47842 DSYMUTIL=$lt_DSYMUTIL
47843
47844 # Tool to change global to local symbols on Mac OS X.
47845 NMEDIT=$lt_NMEDIT
47846
47847 # Tool to manipulate fat objects and archives on Mac OS X.
47848 LIPO=$lt_LIPO
47849
47850 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
47851 OTOOL=$lt_OTOOL
47852
47853 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47854 OTOOL64=$lt_OTOOL64
47855
47856 # Old archive suffix (normally "a").
47857 libext=$libext
47858
47859 # Shared library suffix (normally ".so").
47860 shrext_cmds=$lt_shrext_cmds
47861
47862 # The commands to extract the exported symbol list from a shared archive.
47863 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47864
47865 # Variables whose values should be saved in libtool wrapper scripts and
47866 # restored at link time.
47867 variables_saved_for_relink=$lt_variables_saved_for_relink
47868
47869 # Do we need the "lib" prefix for modules?
47870 need_lib_prefix=$need_lib_prefix
47871
47872 # Do we need a version for libraries?
47873 need_version=$need_version
47874
47875 # Library versioning type.
47876 version_type=$version_type
47877
47878 # Shared library runtime path variable.
47879 runpath_var=$runpath_var
47880
47881 # Shared library path variable.
47882 shlibpath_var=$shlibpath_var
47883
47884 # Is shlibpath searched before the hard-coded library search path?
47885 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47886
47887 # Format of library name prefix.
47888 libname_spec=$lt_libname_spec
47889
47890 # List of archive names. First name is the real one, the rest are links.
47891 # The last name is the one that the linker finds with -lNAME
47892 library_names_spec=$lt_library_names_spec
47893
47894 # The coded name of the library, if different from the real name.
47895 soname_spec=$lt_soname_spec
47896
47897 # Command to use after installation of a shared archive.
47898 postinstall_cmds=$lt_postinstall_cmds
47899
47900 # Command to use after uninstallation of a shared archive.
47901 postuninstall_cmds=$lt_postuninstall_cmds
47902
47903 # Commands used to finish a libtool library installation in a directory.
47904 finish_cmds=$lt_finish_cmds
47905
47906 # As "finish_cmds", except a single script fragment to be evaled but
47907 # not shown.
47908 finish_eval=$lt_finish_eval
47909
47910 # Whether we should hardcode library paths into libraries.
47911 hardcode_into_libs=$hardcode_into_libs
47912
47913 # Compile-time system search path for libraries.
47914 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47915
47916 # Run-time system search path for libraries.
47917 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
47918
47919 # Whether dlopen is supported.
47920 dlopen_support=$enable_dlopen
47921
47922 # Whether dlopen of programs is supported.
47923 dlopen_self=$enable_dlopen_self
47924
47925 # Whether dlopen of statically linked programs is supported.
47926 dlopen_self_static=$enable_dlopen_self_static
47927
47928 # Commands to strip libraries.
47929 old_striplib=$lt_old_striplib
47930 striplib=$lt_striplib
47931
47932
47933 # The linker used to build libraries.
47934 LD=$lt_LD
47935
47936 # Commands used to build an old-style archive.
47937 old_archive_cmds=$lt_old_archive_cmds
47938
47939 # A language specific compiler.
47940 CC=$lt_compiler
47941
47942 # Is the compiler the GNU compiler?
47943 with_gcc=$GCC
47944
47945 # Compiler flag to turn off builtin functions.
47946 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47947
47948 # How to pass a linker flag through the compiler.
47949 wl=$lt_lt_prog_compiler_wl
47950
47951 # Additional compiler flags for building library objects.
47952 pic_flag=$lt_lt_prog_compiler_pic
47953
47954 # Compiler flag to prevent dynamic linking.
47955 link_static_flag=$lt_lt_prog_compiler_static
47956
47957 # Does compiler simultaneously support -c and -o options?
47958 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
47959
47960 # Whether or not to add -lc for building shared libraries.
47961 build_libtool_need_lc=$archive_cmds_need_lc
47962
47963 # Whether or not to disallow shared libs when runtime libs are static.
47964 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
47965
47966 # Compiler flag to allow reflexive dlopens.
47967 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
47968
47969 # Compiler flag to generate shared objects directly from archives.
47970 whole_archive_flag_spec=$lt_whole_archive_flag_spec
47971
47972 # Whether the compiler copes with passing no objects directly.
47973 compiler_needs_object=$lt_compiler_needs_object
47974
47975 # Create an old-style archive from a shared archive.
47976 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
47977
47978 # Create a temporary old-style archive to link instead of a shared archive.
47979 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
47980
47981 # Commands used to build a shared archive.
47982 archive_cmds=$lt_archive_cmds
47983 archive_expsym_cmds=$lt_archive_expsym_cmds
47984
47985 # Commands used to build a loadable module if different from building
47986 # a shared archive.
47987 module_cmds=$lt_module_cmds
47988 module_expsym_cmds=$lt_module_expsym_cmds
47989
47990 # Whether we are building with GNU ld or not.
47991 with_gnu_ld=$lt_with_gnu_ld
47992
47993 # Flag that allows shared libraries with undefined symbols to be built.
47994 allow_undefined_flag=$lt_allow_undefined_flag
47995
47996 # Flag that enforces no undefined symbols.
47997 no_undefined_flag=$lt_no_undefined_flag
47998
47999 # Flag to hardcode \$libdir into a binary during linking.
48000 # This must work even if \$libdir does not exist
48001 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
48002
48003 # If ld is used when linking, flag to hardcode \$libdir into a binary
48004 # during linking. This must work even if \$libdir does not exist.
48005 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
48006
48007 # Whether we need a single "-rpath" flag with a separated argument.
48008 hardcode_libdir_separator=$lt_hardcode_libdir_separator
48009
48010 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48011 # DIR into the resulting binary.
48012 hardcode_direct=$hardcode_direct
48013
48014 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48015 # DIR into the resulting binary and the resulting library dependency is
48016 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
48017 # library is relocated.
48018 hardcode_direct_absolute=$hardcode_direct_absolute
48019
48020 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48021 # into the resulting binary.
48022 hardcode_minus_L=$hardcode_minus_L
48023
48024 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48025 # into the resulting binary.
48026 hardcode_shlibpath_var=$hardcode_shlibpath_var
48027
48028 # Set to "yes" if building a shared library automatically hardcodes DIR
48029 # into the library and all subsequent libraries and executables linked
48030 # against it.
48031 hardcode_automatic=$hardcode_automatic
48032
48033 # Set to yes if linker adds runtime paths of dependent libraries
48034 # to runtime path list.
48035 inherit_rpath=$inherit_rpath
48036
48037 # Whether libtool must link a program against all its dependency libraries.
48038 link_all_deplibs=$link_all_deplibs
48039
48040 # Fix the shell variable \$srcfile for the compiler.
48041 fix_srcfile_path=$lt_fix_srcfile_path
48042
48043 # Set to "yes" if exported symbols are required.
48044 always_export_symbols=$always_export_symbols
48045
48046 # The commands to list exported symbols.
48047 export_symbols_cmds=$lt_export_symbols_cmds
48048
48049 # Symbols that should not be listed in the preloaded symbols.
48050 exclude_expsyms=$lt_exclude_expsyms
48051
48052 # Symbols that must always be exported.
48053 include_expsyms=$lt_include_expsyms
48054
48055 # Commands necessary for linking programs (against libraries) with templates.
48056 prelink_cmds=$lt_prelink_cmds
48057
48058 # Specify filename containing input files.
48059 file_list_spec=$lt_file_list_spec
48060
48061 # How to hardcode a shared library path into an executable.
48062 hardcode_action=$hardcode_action
48063
48064 # ### END LIBTOOL CONFIG
48065
48066 _LT_EOF
48067
48068 case $host_os in
48069 aix3*)
48070 cat <<\_LT_EOF >> "$cfgfile"
48071 # AIX sometimes has problems with the GCC collect2 program. For some
48072 # reason, if we set the COLLECT_NAMES environment variable, the problems
48073 # vanish in a puff of smoke.
48074 if test "X${COLLECT_NAMES+set}" != Xset; then
48075 COLLECT_NAMES=
48076 export COLLECT_NAMES
48077 fi
48078 _LT_EOF
48079 ;;
48080 esac
48081
48082
48083 ltmain="$ac_aux_dir/ltmain.sh"
48084
48085
48086 # We use sed instead of cat because bash on DJGPP gets confused if
48087 # if finds mixed CR/LF and LF-only lines. Since sed operates in
48088 # text mode, it properly converts lines to CR/LF. This bash problem
48089 # is reportedly fixed, but why not run on old versions too?
48090 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
48091 || (rm -f "$cfgfile"; exit 1)
48092
48093 case $xsi_shell in
48094 yes)
48095 cat << \_LT_EOF >> "$cfgfile"
48096
48097 # func_dirname file append nondir_replacement
48098 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
48099 # otherwise set result to NONDIR_REPLACEMENT.
48100 func_dirname ()
48101 {
48102 case ${1} in
48103 */*) func_dirname_result="${1%/*}${2}" ;;
48104 * ) func_dirname_result="${3}" ;;
48105 esac
48106 }
48107
48108 # func_basename file
48109 func_basename ()
48110 {
48111 func_basename_result="${1##*/}"
48112 }
48113
48114 # func_dirname_and_basename file append nondir_replacement
48115 # perform func_basename and func_dirname in a single function
48116 # call:
48117 # dirname: Compute the dirname of FILE. If nonempty,
48118 # add APPEND to the result, otherwise set result
48119 # to NONDIR_REPLACEMENT.
48120 # value returned in "$func_dirname_result"
48121 # basename: Compute filename of FILE.
48122 # value retuned in "$func_basename_result"
48123 # Implementation must be kept synchronized with func_dirname
48124 # and func_basename. For efficiency, we do not delegate to
48125 # those functions but instead duplicate the functionality here.
48126 func_dirname_and_basename ()
48127 {
48128 case ${1} in
48129 */*) func_dirname_result="${1%/*}${2}" ;;
48130 * ) func_dirname_result="${3}" ;;
48131 esac
48132 func_basename_result="${1##*/}"
48133 }
48134
48135 # func_stripname prefix suffix name
48136 # strip PREFIX and SUFFIX off of NAME.
48137 # PREFIX and SUFFIX must not contain globbing or regex special
48138 # characters, hashes, percent signs, but SUFFIX may contain a leading
48139 # dot (in which case that matches only a dot).
48140 func_stripname ()
48141 {
48142 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
48143 # positional parameters, so assign one to ordinary parameter first.
48144 func_stripname_result=${3}
48145 func_stripname_result=${func_stripname_result#"${1}"}
48146 func_stripname_result=${func_stripname_result%"${2}"}
48147 }
48148
48149 # func_opt_split
48150 func_opt_split ()
48151 {
48152 func_opt_split_opt=${1%%=*}
48153 func_opt_split_arg=${1#*=}
48154 }
48155
48156 # func_lo2o object
48157 func_lo2o ()
48158 {
48159 case ${1} in
48160 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
48161 *) func_lo2o_result=${1} ;;
48162 esac
48163 }
48164
48165 # func_xform libobj-or-source
48166 func_xform ()
48167 {
48168 func_xform_result=${1%.*}.lo
48169 }
48170
48171 # func_arith arithmetic-term...
48172 func_arith ()
48173 {
48174 func_arith_result=$(( $* ))
48175 }
48176
48177 # func_len string
48178 # STRING may not start with a hyphen.
48179 func_len ()
48180 {
48181 func_len_result=${#1}
48182 }
48183
48184 _LT_EOF
48185 ;;
48186 *) # Bourne compatible functions.
48187 cat << \_LT_EOF >> "$cfgfile"
48188
48189 # func_dirname file append nondir_replacement
48190 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
48191 # otherwise set result to NONDIR_REPLACEMENT.
48192 func_dirname ()
48193 {
48194 # Extract subdirectory from the argument.
48195 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
48196 if test "X$func_dirname_result" = "X${1}"; then
48197 func_dirname_result="${3}"
48198 else
48199 func_dirname_result="$func_dirname_result${2}"
48200 fi
48201 }
48202
48203 # func_basename file
48204 func_basename ()
48205 {
48206 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
48207 }
48208
48209
48210 # func_stripname prefix suffix name
48211 # strip PREFIX and SUFFIX off of NAME.
48212 # PREFIX and SUFFIX must not contain globbing or regex special
48213 # characters, hashes, percent signs, but SUFFIX may contain a leading
48214 # dot (in which case that matches only a dot).
48215 # func_strip_suffix prefix name
48216 func_stripname ()
48217 {
48218 case ${2} in
48219 .*) func_stripname_result=`$ECHO "X${3}" \
48220 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
48221 *) func_stripname_result=`$ECHO "X${3}" \
48222 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
48223 esac
48224 }
48225
48226 # sed scripts:
48227 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
48228 my_sed_long_arg='1s/^-[^=]*=//'
48229
48230 # func_opt_split
48231 func_opt_split ()
48232 {
48233 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
48234 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
48235 }
48236
48237 # func_lo2o object
48238 func_lo2o ()
48239 {
48240 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
48241 }
48242
48243 # func_xform libobj-or-source
48244 func_xform ()
48245 {
48246 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
48247 }
48248
48249 # func_arith arithmetic-term...
48250 func_arith ()
48251 {
48252 func_arith_result=`expr "$@"`
48253 }
48254
48255 # func_len string
48256 # STRING may not start with a hyphen.
48257 func_len ()
48258 {
48259 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
48260 }
48261
48262 _LT_EOF
48263 esac
48264
48265 case $lt_shell_append in
48266 yes)
48267 cat << \_LT_EOF >> "$cfgfile"
48268
48269 # func_append var value
48270 # Append VALUE to the end of shell variable VAR.
48271 func_append ()
48272 {
48273 eval "$1+=\$2"
48274 }
48275 _LT_EOF
48276 ;;
48277 *)
48278 cat << \_LT_EOF >> "$cfgfile"
48279
48280 # func_append var value
48281 # Append VALUE to the end of shell variable VAR.
48282 func_append ()
48283 {
48284 eval "$1=\$$1\$2"
48285 }
48286
48287 _LT_EOF
48288 ;;
48289 esac
48290
48291
48292 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
48293 || (rm -f "$cfgfile"; exit 1)
48294
48295 mv -f "$cfgfile" "$ofile" ||
48296 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
48297 chmod +x "$ofile"
48298
48299 ;;
48300
48301 esac
48302 done # for ac_tag
48303
48304
48305 { (exit 0); exit 0; }
48306 _ACEOF
48307 chmod +x $CONFIG_STATUS
48308 ac_clean_files=$ac_clean_files_save
48309
48310 test $ac_write_fail = 0 ||
48311 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
48312 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
48313 { (exit 1); exit 1; }; }
48314
48315
48316 # configure is writing to config.log, and then calls config.status.
48317 # config.status does its own redirection, appending to config.log.
48318 # Unfortunately, on DOS this fails, as config.log is still kept open
48319 # by configure, so config.status won't be able to write to it; its
48320 # output is simply discarded. So we exec the FD to /dev/null,
48321 # effectively closing config.log, so it can be properly (re)opened and
48322 # appended to by config.status. When coming back to configure, we
48323 # need to make the FD available again.
48324 if test "$no_create" != yes; then
48325 ac_cs_success=:
48326 ac_config_status_args=
48327 test "$silent" = yes &&
48328 ac_config_status_args="$ac_config_status_args --quiet"
48329 exec 5>/dev/null
48330 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48331 exec 5>>config.log
48332 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48333 # would make configure fail if this is the last instruction.
48334 $ac_cs_success || { (exit 1); exit 1; }
48335 fi
48336 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
48337 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
48338 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
48339 fi
48340