]> git.proxmox.com Git - mirror_zfs-debian.git/blob - configure
Imported Upstream version 0.6.5.6
[mirror_zfs-debian.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for zfs 0.6.5.6.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && 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 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
185 as_have_required=yes
186 else
187 as_have_required=no
188 fi
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196 IFS=$as_save_IFS
197 test -z "$as_dir" && as_dir=.
198 as_found=:
199 case $as_dir in #(
200 /*)
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 break 2
209 fi
210 fi
211 done;;
212 esac
213 as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 case $- in # ((((
232 *v*x* | *x*v* ) as_opts=-vx ;;
233 *v* ) as_opts=-v ;;
234 *x* ) as_opts=-x ;;
235 * ) as_opts= ;;
236 esac
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246 else
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251 fi
252 exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270 { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279 return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287 set +e
288 as_fn_set_status $1
289 exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298 case $as_dir in #(
299 -*) as_dir=./$as_dir;;
300 esac
301 test -d "$as_dir" || eval $as_mkdir_p || {
302 as_dirs=
303 while :; do
304 case $as_dir in #(
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 *) as_qdir=$as_dir;;
307 esac
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)[^/].*/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)$/{
324 s//\1/
325 q
326 }
327 /^X\(\/\).*/{
328 s//\1/
329 q
330 }
331 s/.*/./; q'`
332 test -d "$as_dir" && break
333 done
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
347 {
348 eval $1+=\$2
349 }'
350 else
351 as_fn_append ()
352 {
353 eval $1=\$$1\$2
354 }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
364 {
365 as_val=$(( $* ))
366 }'
367 else
368 as_fn_arith ()
369 {
370 as_val=`expr "$@" || test $? -eq 1`
371 }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382 as_status=$1; test $as_status -eq 0 && as_status=1
383 if test "$4"; then
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386 fi
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 as_expr=expr
394 else
395 as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400 else
401 as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_dirname=dirname
406 else
407 as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\/\)$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\).*/{
424 s//\1/
425 q
426 }
427 s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
443 p
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
451 N
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 xy) ECHO_C='\c';;
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475 ECHO_T=' ';;
476 esac;;
477 *)
478 ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
484 else
485 rm -f conf$$.dir
486 mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s='ln -s'
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496 as_ln_s='cp -p'
497 elif ln conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s=ln
499 else
500 as_ln_s='cp -p'
501 fi
502 else
503 as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
510 else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516 as_test_x='test -x'
517 else
518 if ls -dL / >/dev/null 2>&1; then
519 as_ls_L_option=L
520 else
521 as_ls_L_option=
522 fi
523 as_test_x='
524 eval sh -c '\''
525 if test -d "$1"; then
526 test -d "$1/.";
527 else
528 case $1 in #(
529 -*)set "./$1";;
530 esac;
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
533 '\'' sh
534 '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME='zfs'
569 PACKAGE_TARNAME='zfs'
570 PACKAGE_VERSION='0.6.5.6'
571 PACKAGE_STRING='zfs 0.6.5.6'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
574
575 # Factoring default headers for most tests.
576 ac_includes_default="\
577 #include <stdio.h>
578 #ifdef HAVE_SYS_TYPES_H
579 # include <sys/types.h>
580 #endif
581 #ifdef HAVE_SYS_STAT_H
582 # include <sys/stat.h>
583 #endif
584 #ifdef STDC_HEADERS
585 # include <stdlib.h>
586 # include <stddef.h>
587 #else
588 # ifdef HAVE_STDLIB_H
589 # include <stdlib.h>
590 # endif
591 #endif
592 #ifdef HAVE_STRING_H
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 # include <memory.h>
595 # endif
596 # include <string.h>
597 #endif
598 #ifdef HAVE_STRINGS_H
599 # include <strings.h>
600 #endif
601 #ifdef HAVE_INTTYPES_H
602 # include <inttypes.h>
603 #endif
604 #ifdef HAVE_STDINT_H
605 # include <stdint.h>
606 #endif
607 #ifdef HAVE_UNISTD_H
608 # include <unistd.h>
609 #endif"
610
611 ac_subst_vars='am__EXEEXT_FALSE
612 am__EXEEXT_TRUE
613 LTLIBOBJS
614 LIBOBJS
615 DEBUG_DMU_TX
616 DEBUG_ZFS
617 DEBUG_STACKFLAGS
618 DEBUG_CFLAGS
619 CONFIG_KERNEL_FALSE
620 CONFIG_KERNEL_TRUE
621 CONFIG_USER_FALSE
622 CONFIG_USER_TRUE
623 runstatedir
624 FRAME_LARGER_THAN
625 LIBBLKID
626 LIBUUID
627 ZLIB
628 dracutdir
629 ZFS_INIT_SYSV
630 modulesloaddir
631 systemdpresetdir
632 systemdunitdir
633 ZFS_MODULE_LOAD
634 ZFS_INIT_SYSTEMD
635 udevruledir
636 udevdir
637 mounthelperdir
638 KERNELCPPFLAGS
639 KERNELMAKE_PARAMS
640 SPL_SYMBOLS
641 SPL_VERSION
642 SPL_OBJ
643 SPL
644 LINUX_SYMBOLS
645 LINUX_VERSION
646 LINUX_OBJ
647 LINUX
648 NO_BOOL_COMPARE
649 NO_UNUSED_BUT_SET_VARIABLE
650 ZFS_CONFIG
651 TARGET_ASM_DIR
652 ALIEN_VERSION
653 ALIEN
654 HAVE_ALIEN
655 DPKGBUILD_VERSION
656 DPKGBUILD
657 HAVE_DPKGBUILD
658 DPKG_VERSION
659 DPKG
660 HAVE_DPKG
661 SRPM_DEFINE_COMMON
662 SRPM_DEFINE_DKMS
663 SRPM_DEFINE_KMOD
664 SRPM_DEFINE_UTIL
665 RPM_DEFINE_COMMON
666 RPM_DEFINE_DKMS
667 RPM_DEFINE_KMOD
668 RPM_DEFINE_UTIL
669 RPM_SPEC_DIR
670 RPMBUILD_VERSION
671 RPMBUILD
672 HAVE_RPMBUILD
673 RPM_VERSION
674 RPM
675 HAVE_RPM
676 DEFINE_INITRAMFS
677 DEFAULT_INITCONF_DIR
678 DEFAULT_INIT_SCRIPT
679 DEFAULT_INIT_DIR
680 DEFAULT_PACKAGE
681 VENDOR
682 am__fastdepCCAS_FALSE
683 am__fastdepCCAS_TRUE
684 CCASDEPMODE
685 CCASFLAGS
686 CCAS
687 CPP
688 OTOOL64
689 OTOOL
690 LIPO
691 NMEDIT
692 DSYMUTIL
693 MANIFEST_TOOL
694 RANLIB
695 ac_ct_AR
696 AR
697 DLLTOOL
698 OBJDUMP
699 LN_S
700 NM
701 ac_ct_DUMPBIN
702 DUMPBIN
703 LD
704 FGREP
705 EGREP
706 GREP
707 SED
708 LIBTOOL
709 am__fastdepCC_FALSE
710 am__fastdepCC_TRUE
711 CCDEPMODE
712 am__nodep
713 AMDEPBACKSLASH
714 AMDEP_FALSE
715 AMDEP_TRUE
716 am__quote
717 am__include
718 DEPDIR
719 OBJEXT
720 EXEEXT
721 ac_ct_CC
722 CPPFLAGS
723 LDFLAGS
724 CFLAGS
725 CC
726 am__untar
727 am__tar
728 AMTAR
729 am__leading_dot
730 SET_MAKE
731 mkdir_p
732 MKDIR_P
733 INSTALL_STRIP_PROGRAM
734 STRIP
735 install_sh
736 MAKEINFO
737 AUTOHEADER
738 AUTOMAKE
739 AUTOCONF
740 ACLOCAL
741 VERSION
742 PACKAGE
743 CYGPATH_W
744 am__isrc
745 INSTALL_DATA
746 INSTALL_SCRIPT
747 INSTALL_PROGRAM
748 AM_BACKSLASH
749 AM_DEFAULT_VERBOSITY
750 AM_DEFAULT_V
751 AM_V
752 MAINT
753 MAINTAINER_MODE_FALSE
754 MAINTAINER_MODE_TRUE
755 target_os
756 target_vendor
757 target_cpu
758 target
759 host_os
760 host_vendor
761 host_cpu
762 host
763 build_os
764 build_vendor
765 build_cpu
766 build
767 ZFS_META_LT_AGE
768 ZFS_META_LT_REVISION
769 ZFS_META_LT_CURRENT
770 ZFS_META_AUTHOR
771 ZFS_META_DATA
772 ZFS_META_ALIAS
773 ZFS_META_LICENSE
774 RELEASE
775 ZFS_META_RELEASE
776 ZFS_META_VERSION
777 ZFS_META_NAME
778 AWK
779 target_alias
780 host_alias
781 build_alias
782 LIBS
783 ECHO_T
784 ECHO_N
785 ECHO_C
786 DEFS
787 mandir
788 localedir
789 libdir
790 psdir
791 pdfdir
792 dvidir
793 htmldir
794 infodir
795 docdir
796 oldincludedir
797 includedir
798 localstatedir
799 sharedstatedir
800 sysconfdir
801 datadir
802 datarootdir
803 libexecdir
804 sbindir
805 bindir
806 program_transform_name
807 prefix
808 exec_prefix
809 PACKAGE_URL
810 PACKAGE_BUGREPORT
811 PACKAGE_STRING
812 PACKAGE_VERSION
813 PACKAGE_TARNAME
814 PACKAGE_NAME
815 PATH_SEPARATOR
816 SHELL'
817 ac_subst_files=''
818 ac_user_opts='
819 enable_option_checking
820 enable_maintainer_mode
821 enable_silent_rules
822 enable_dependency_tracking
823 enable_shared
824 enable_static
825 with_pic
826 enable_fast_install
827 with_gnu_ld
828 with_sysroot
829 enable_libtool_lock
830 with_spec
831 with_config
832 enable_linux_builtin
833 with_linux
834 with_linux_obj
835 with_spl
836 with_spl_obj
837 with_spl_timeout
838 with_mounthelperdir
839 with_udevdir
840 with_udevruledir
841 enable_systemd
842 with_systemdunitdir
843 with_systemdpresetdir
844 with_systemdmodulesloaddir
845 enable_sysvinit
846 with_dracutdir
847 with_blkid
848 enable_debug
849 enable_debug_dmu_tx
850 '
851 ac_precious_vars='build_alias
852 host_alias
853 target_alias
854 CC
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
859 CPP
860 CCAS
861 CCASFLAGS'
862
863
864 # Initialize some variables set by options.
865 ac_init_help=
866 ac_init_version=false
867 ac_unrecognized_opts=
868 ac_unrecognized_sep=
869 # The variables have the same names as the options, with
870 # dashes changed to underlines.
871 cache_file=/dev/null
872 exec_prefix=NONE
873 no_create=
874 no_recursion=
875 prefix=NONE
876 program_prefix=NONE
877 program_suffix=NONE
878 program_transform_name=s,x,x,
879 silent=
880 site=
881 srcdir=
882 verbose=
883 x_includes=NONE
884 x_libraries=NONE
885
886 # Installation directory options.
887 # These are left unexpanded so users can "make install exec_prefix=/foo"
888 # and all the variables that are supposed to be based on exec_prefix
889 # by default will actually change.
890 # Use braces instead of parens because sh, perl, etc. also accept them.
891 # (The list follows the same order as the GNU Coding Standards.)
892 bindir='${exec_prefix}/bin'
893 sbindir='${exec_prefix}/sbin'
894 libexecdir='${exec_prefix}/libexec'
895 datarootdir='${prefix}/share'
896 datadir='${datarootdir}'
897 sysconfdir='${prefix}/etc'
898 sharedstatedir='${prefix}/com'
899 localstatedir='${prefix}/var'
900 includedir='${prefix}/include'
901 oldincludedir='/usr/include'
902 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903 infodir='${datarootdir}/info'
904 htmldir='${docdir}'
905 dvidir='${docdir}'
906 pdfdir='${docdir}'
907 psdir='${docdir}'
908 libdir='${exec_prefix}/lib'
909 localedir='${datarootdir}/locale'
910 mandir='${datarootdir}/man'
911
912 ac_prev=
913 ac_dashdash=
914 for ac_option
915 do
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\$ac_option
919 ac_prev=
920 continue
921 fi
922
923 case $ac_option in
924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 *=) ac_optarg= ;;
926 *) ac_optarg=yes ;;
927 esac
928
929 # Accept the important Cygnus configure options, so we can diagnose typos.
930
931 case $ac_dashdash$ac_option in
932 --)
933 ac_dashdash=yes ;;
934
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 bindir=$ac_optarg ;;
939
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
944
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
951
952 --config-cache | -C)
953 cache_file=config.cache ;;
954
955 -datadir | --datadir | --datadi | --datad)
956 ac_prev=datadir ;;
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
959
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
966
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
992
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: $ac_useropt"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1028
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1033
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1063
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1137
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
1156 sbindir=$ac_optarg ;;
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
1167 sharedstatedir=$ac_optarg ;;
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
1172 site=$ac_optarg ;;
1173
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1196
1197 -with-* | --with-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=\$ac_optarg ;;
1212
1213 -without-* | --without-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222 "with_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=no ;;
1228
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1232
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1239
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1246
1247 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248 Try \`$0 --help' for more information"
1249 ;;
1250
1251 *=*)
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 case $ac_envvar in #(
1255 '' | [0-9]* | *[!_$as_cr_alnum]* )
1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257 esac
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1260
1261 *)
1262 # FIXME: should be removed in autoconf 3.0.
1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1267 ;;
1268
1269 esac
1270 done
1271
1272 if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 as_fn_error $? "missing argument to $ac_option"
1275 fi
1276
1277 if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1279 no) ;;
1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 esac
1283 fi
1284
1285 # Check all directory arguments for consistency.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1290 do
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1293 case $ac_val in
1294 */ )
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1297 esac
1298 # Be sure to have absolute directory names.
1299 case $ac_val in
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 esac
1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304 done
1305
1306 # There might be people who depend on the old broken behavior: `$host'
1307 # used to hold the argument of --host etc.
1308 # FIXME: To remove some day.
1309 build=$build_alias
1310 host=$host_alias
1311 target=$target_alias
1312
1313 # FIXME: To remove some day.
1314 if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
1317 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1318 If a cross compiler is detected then cross compile mode will be used" >&2
1319 elif test "x$build_alias" != "x$host_alias"; then
1320 cross_compiling=yes
1321 fi
1322 fi
1323
1324 ac_tool_prefix=
1325 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
1327 test "$silent" = yes && exec 6>/dev/null
1328
1329
1330 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331 ac_ls_di=`ls -di .` &&
1332 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333 as_fn_error $? "working directory cannot be determined"
1334 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335 as_fn_error $? "pwd does not report name of working directory"
1336
1337
1338 # Find the source files, if location was not specified.
1339 if test -z "$srcdir"; then
1340 ac_srcdir_defaulted=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir=`$as_dirname -- "$as_myself" ||
1343 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$as_myself" : 'X\(//\)[^/]' \| \
1345 X"$as_myself" : 'X\(//\)$' \| \
1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347 $as_echo X"$as_myself" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)[^/].*/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\/\)$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\).*/{
1361 s//\1/
1362 q
1363 }
1364 s/.*/./; q'`
1365 srcdir=$ac_confdir
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 srcdir=..
1368 fi
1369 else
1370 ac_srcdir_defaulted=no
1371 fi
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1375 fi
1376 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377 ac_abs_confdir=`(
1378 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1379 pwd)`
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 srcdir=.
1383 fi
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1387 case $srcdir in
1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 esac
1390 for ac_var in $ac_precious_vars; do
1391 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_env_${ac_var}_value=\$${ac_var}
1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395 done
1396
1397 #
1398 # Report the --help message.
1399 #
1400 if test "$ac_init_help" = "long"; then
1401 # Omit some internal or obsolete options to make the list less imposing.
1402 # This message is too long to be a string in the A/UX 3.1 sh.
1403 cat <<_ACEOF
1404 \`configure' configures zfs 0.6.5.6 to adapt to many kinds of systems.
1405
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1407
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE. See below for descriptions of some of the useful variables.
1410
1411 Defaults for the options are specified in brackets.
1412
1413 Configuration:
1414 -h, --help display this help and exit
1415 --help=short display options specific to this package
1416 --help=recursive display the short help of all the included packages
1417 -V, --version display version information and exit
1418 -q, --quiet, --silent do not print \`checking ...' messages
1419 --cache-file=FILE cache test results in FILE [disabled]
1420 -C, --config-cache alias for \`--cache-file=config.cache'
1421 -n, --no-create do not create output files
1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1423
1424 Installation directories:
1425 --prefix=PREFIX install architecture-independent files in PREFIX
1426 [$ac_default_prefix]
1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 [PREFIX]
1429
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1434
1435 For better control, use the options below.
1436
1437 Fine tuning of the installation directories:
1438 --bindir=DIR user executables [EPREFIX/bin]
1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
1440 --libexecdir=DIR program executables [EPREFIX/libexec]
1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1457 _ACEOF
1458
1459 cat <<\_ACEOF
1460
1461 Program names:
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465
1466 System types:
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1469 --target=TARGET configure for building compilers for TARGET [HOST]
1470 _ACEOF
1471 fi
1472
1473 if test -n "$ac_init_help"; then
1474 case $ac_init_help in
1475 short | recursive ) echo "Configuration of zfs 0.6.5.6:";;
1476 esac
1477 cat <<\_ACEOF
1478
1479 Optional Features:
1480 --disable-option-checking ignore unrecognized --enable/--with options
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483 --enable-maintainer-mode enable make rules and dependencies not useful
1484 (and sometimes confusing) to the casual installer
1485 --enable-silent-rules less verbose build output (undo: `make V=1')
1486 --disable-silent-rules verbose build output (undo: `make V=0')
1487 --disable-dependency-tracking speeds up one-time build
1488 --enable-dependency-tracking do not reject slow dependency extractors
1489 --enable-shared[=PKGS] build shared libraries [default=yes]
1490 --enable-static[=PKGS] build static libraries [default=yes]
1491 --enable-fast-install[=PKGS]
1492 optimize for fast installation [default=yes]
1493 --disable-libtool-lock avoid locking (might break parallel builds)
1494 --enable-linux-builtin Configure for builtin in-tree kernel modules
1495 [default=no]
1496 --enable-systemd install systemd unit/preset files [[default: yes]]
1497 --enable-sysvinit install SysV init scripts [default: yes]
1498 --enable-debug Enable generic debug support [default=no]
1499 --enable-debug-dmu-tx Enable dmu tx validation [default=no]
1500
1501 Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1505 both]
1506 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1507 --with-sysroot=DIR Search for dependent libraries within DIR
1508 (or the compiler's sysroot if not specified).
1509 --with-spec=SPEC Spec files 'generic|redhat'
1510 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1511 --with-linux=PATH Path to kernel source
1512 --with-linux-obj=PATH Path to kernel build objects
1513 --with-spl=PATH Path to spl source
1514 --with-spl-obj=PATH Path to spl build objects
1515 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1516 --with-mounthelperdir=DIR
1517 install mount.zfs in dir [[/sbin]]
1518 --with-udevdir=DIR install udev helpers [default=check]
1519 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
1520 --with-systemdunitdir=DIR
1521 install systemd unit files in dir
1522 [[/usr/lib/systemd/system]]
1523 --with-systemdpresetdir=DIR
1524 install systemd preset files in dir
1525 [[/usr/lib/systemd/system-preset]]
1526 --with-systemdmodulesloaddir=DIR
1527 install systemd module load files into dir
1528 [[/usr/lib/modules-load.d]]
1529 --with-dracutdir=DIR install dracut helpers [default=check]
1530 --with-blkid support blkid caching [default=check]
1531
1532 Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1540 CPP C preprocessor
1541 CCAS assembler compiler command (defaults to CC)
1542 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1543
1544 Use these variables to override the choices made by `configure' or to help
1545 it to find libraries and programs with nonstandard names/locations.
1546
1547 Report bugs to the package provider.
1548 _ACEOF
1549 ac_status=$?
1550 fi
1551
1552 if test "$ac_init_help" = "recursive"; then
1553 # If there are subdirs, report their specific --help.
1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555 test -d "$ac_dir" ||
1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557 continue
1558 ac_builddir=.
1559
1560 case "$ac_dir" in
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *)
1563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564 # A ".." for each directory in $ac_dir_suffix.
1565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566 case $ac_top_builddir_sub in
1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569 esac ;;
1570 esac
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1575
1576 case $srcdir in
1577 .) # We are building in place.
1578 ac_srcdir=.
1579 ac_top_srcdir=$ac_top_builddir_sub
1580 ac_abs_top_srcdir=$ac_pwd ;;
1581 [\\/]* | ?:[\\/]* ) # Absolute name.
1582 ac_srcdir=$srcdir$ac_dir_suffix;
1583 ac_top_srcdir=$srcdir
1584 ac_abs_top_srcdir=$srcdir ;;
1585 *) # Relative name.
1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587 ac_top_srcdir=$ac_top_build_prefix$srcdir
1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589 esac
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591
1592 cd "$ac_dir" || { ac_status=$?; continue; }
1593 # Check for guested configure.
1594 if test -f "$ac_srcdir/configure.gnu"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597 elif test -f "$ac_srcdir/configure"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure" --help=recursive
1600 else
1601 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602 fi || ac_status=$?
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1604 done
1605 fi
1606
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1609 cat <<\_ACEOF
1610 zfs configure 0.6.5.6
1611 generated by GNU Autoconf 2.68
1612
1613 Copyright (C) 2010 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1616 _ACEOF
1617 exit
1618 fi
1619
1620 ## ------------------------ ##
1621 ## Autoconf initialization. ##
1622 ## ------------------------ ##
1623
1624 # ac_fn_c_try_compile LINENO
1625 # --------------------------
1626 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_compile ()
1628 {
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext
1631 if { { ac_try="$ac_compile"
1632 case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_compile") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1644 fi
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest.$ac_objext; then :
1650 ac_retval=0
1651 else
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655 ac_retval=1
1656 fi
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658 as_fn_set_status $ac_retval
1659
1660 } # ac_fn_c_try_compile
1661
1662 # ac_fn_c_try_link LINENO
1663 # -----------------------
1664 # Try to link conftest.$ac_ext, and return whether this succeeded.
1665 ac_fn_c_try_link ()
1666 {
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 rm -f conftest.$ac_objext conftest$ac_exeext
1669 if { { ac_try="$ac_link"
1670 case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_link") 2>conftest.err
1677 ac_status=$?
1678 if test -s conftest.err; then
1679 grep -v '^ *+' conftest.err >conftest.er1
1680 cat conftest.er1 >&5
1681 mv -f conftest.er1 conftest.err
1682 fi
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && {
1685 test -z "$ac_c_werror_flag" ||
1686 test ! -s conftest.err
1687 } && test -s conftest$ac_exeext && {
1688 test "$cross_compiling" = yes ||
1689 $as_test_x conftest$ac_exeext
1690 }; then :
1691 ac_retval=0
1692 else
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1695
1696 ac_retval=1
1697 fi
1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700 # interfere with the next link command; also delete a directory that is
1701 # left behind by Apple's compiler. We do this before executing the actions.
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_link
1707
1708 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709 # -------------------------------------------------------
1710 # Tests whether HEADER exists and can be compiled using the include files in
1711 # INCLUDES, setting the cache variable VAR accordingly.
1712 ac_fn_c_check_header_compile ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 $as_echo_n "checking for $2... " >&6; }
1717 if eval \${$3+:} false; then :
1718 $as_echo_n "(cached) " >&6
1719 else
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1722 $4
1723 #include <$2>
1724 _ACEOF
1725 if ac_fn_c_try_compile "$LINENO"; then :
1726 eval "$3=yes"
1727 else
1728 eval "$3=no"
1729 fi
1730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731 fi
1732 eval ac_res=\$$3
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734 $as_echo "$ac_res" >&6; }
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736
1737 } # ac_fn_c_check_header_compile
1738
1739 # ac_fn_c_try_cpp LINENO
1740 # ----------------------
1741 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1742 ac_fn_c_try_cpp ()
1743 {
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if { { ac_try="$ac_cpp conftest.$ac_ext"
1746 case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1753 ac_status=$?
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1756 cat conftest.er1 >&5
1757 mv -f conftest.er1 conftest.err
1758 fi
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } > conftest.i && {
1761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1762 test ! -s conftest.err
1763 }; then :
1764 ac_retval=0
1765 else
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 ac_retval=1
1770 fi
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 as_fn_set_status $ac_retval
1773
1774 } # ac_fn_c_try_cpp
1775
1776 # ac_fn_c_try_run LINENO
1777 # ----------------------
1778 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1779 # that executables *can* be run.
1780 ac_fn_c_try_run ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if { { ac_try="$ac_link"
1784 case "(($ac_try" in
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1787 esac
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_link") 2>&5
1791 ac_status=$?
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1794 { { case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_try") 2>&5
1801 ac_status=$?
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; }; }; then :
1804 ac_retval=0
1805 else
1806 $as_echo "$as_me: program exited with status $ac_status" >&5
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1809
1810 ac_retval=$ac_status
1811 fi
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
1815
1816 } # ac_fn_c_try_run
1817
1818 # ac_fn_c_check_func LINENO FUNC VAR
1819 # ----------------------------------
1820 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1821 ac_fn_c_check_func ()
1822 {
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1828 else
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1831 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1833 #define $2 innocuous_$2
1834
1835 /* System header to define __stub macros and hopefully few prototypes,
1836 which can conflict with char $2 (); below.
1837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1838 <limits.h> exists even on freestanding compilers. */
1839
1840 #ifdef __STDC__
1841 # include <limits.h>
1842 #else
1843 # include <assert.h>
1844 #endif
1845
1846 #undef $2
1847
1848 /* Override any GCC internal prototype to avoid an error.
1849 Use char because int might match the return type of a GCC
1850 builtin and then its argument prototype would still apply. */
1851 #ifdef __cplusplus
1852 extern "C"
1853 #endif
1854 char $2 ();
1855 /* The GNU C library defines this for functions which it implements
1856 to always fail with ENOSYS. Some functions are actually named
1857 something starting with __ and the normal name is an alias. */
1858 #if defined __stub_$2 || defined __stub___$2
1859 choke me
1860 #endif
1861
1862 int
1863 main ()
1864 {
1865 return $2 ();
1866 ;
1867 return 0;
1868 }
1869 _ACEOF
1870 if ac_fn_c_try_link "$LINENO"; then :
1871 eval "$3=yes"
1872 else
1873 eval "$3=no"
1874 fi
1875 rm -f core conftest.err conftest.$ac_objext \
1876 conftest$ac_exeext conftest.$ac_ext
1877 fi
1878 eval ac_res=\$$3
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
1883 } # ac_fn_c_check_func
1884
1885 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1886 # -------------------------------------------------------
1887 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1888 # the include files in INCLUDES and setting the cache variable VAR
1889 # accordingly.
1890 ac_fn_c_check_header_mongrel ()
1891 {
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if eval \${$3+:} false; then :
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if eval \${$3+:} false; then :
1897 $as_echo_n "(cached) " >&6
1898 fi
1899 eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 else
1903 # Is the header compilable?
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1905 $as_echo_n "checking $2 usability... " >&6; }
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1908 $4
1909 #include <$2>
1910 _ACEOF
1911 if ac_fn_c_try_compile "$LINENO"; then :
1912 ac_header_compiler=yes
1913 else
1914 ac_header_compiler=no
1915 fi
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1918 $as_echo "$ac_header_compiler" >&6; }
1919
1920 # Is the header present?
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1922 $as_echo_n "checking $2 presence... " >&6; }
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1925 #include <$2>
1926 _ACEOF
1927 if ac_fn_c_try_cpp "$LINENO"; then :
1928 ac_header_preproc=yes
1929 else
1930 ac_header_preproc=no
1931 fi
1932 rm -f conftest.err conftest.i conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1934 $as_echo "$ac_header_preproc" >&6; }
1935
1936 # So? What about this header?
1937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1938 yes:no: )
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1940 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943 ;;
1944 no:yes:* )
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1946 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1948 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1950 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1952 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1955 ;;
1956 esac
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958 $as_echo_n "checking for $2... " >&6; }
1959 if eval \${$3+:} false; then :
1960 $as_echo_n "(cached) " >&6
1961 else
1962 eval "$3=\$ac_header_compiler"
1963 fi
1964 eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967 fi
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969
1970 } # ac_fn_c_check_header_mongrel
1971 cat >config.log <<_ACEOF
1972 This file contains any messages produced by compilers while
1973 running configure, to aid debugging if configure makes a mistake.
1974
1975 It was created by zfs $as_me 0.6.5.6, which was
1976 generated by GNU Autoconf 2.68. Invocation command line was
1977
1978 $ $0 $@
1979
1980 _ACEOF
1981 exec 5>>config.log
1982 {
1983 cat <<_ASUNAME
1984 ## --------- ##
1985 ## Platform. ##
1986 ## --------- ##
1987
1988 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1989 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1990 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1991 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1992 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1993
1994 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1995 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1996
1997 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1998 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1999 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2000 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2001 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2002 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2003 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2004
2005 _ASUNAME
2006
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2009 do
2010 IFS=$as_save_IFS
2011 test -z "$as_dir" && as_dir=.
2012 $as_echo "PATH: $as_dir"
2013 done
2014 IFS=$as_save_IFS
2015
2016 } >&5
2017
2018 cat >&5 <<_ACEOF
2019
2020
2021 ## ----------- ##
2022 ## Core tests. ##
2023 ## ----------- ##
2024
2025 _ACEOF
2026
2027
2028 # Keep a trace of the command line.
2029 # Strip out --no-create and --no-recursion so they do not pile up.
2030 # Strip out --silent because we don't want to record it for future runs.
2031 # Also quote any args containing shell meta-characters.
2032 # Make two passes to allow for proper duplicate-argument suppression.
2033 ac_configure_args=
2034 ac_configure_args0=
2035 ac_configure_args1=
2036 ac_must_keep_next=false
2037 for ac_pass in 1 2
2038 do
2039 for ac_arg
2040 do
2041 case $ac_arg in
2042 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2044 | -silent | --silent | --silen | --sile | --sil)
2045 continue ;;
2046 *\'*)
2047 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2048 esac
2049 case $ac_pass in
2050 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2051 2)
2052 as_fn_append ac_configure_args1 " '$ac_arg'"
2053 if test $ac_must_keep_next = true; then
2054 ac_must_keep_next=false # Got value, back to normal.
2055 else
2056 case $ac_arg in
2057 *=* | --config-cache | -C | -disable-* | --disable-* \
2058 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2059 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2060 | -with-* | --with-* | -without-* | --without-* | --x)
2061 case "$ac_configure_args0 " in
2062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2063 esac
2064 ;;
2065 -* ) ac_must_keep_next=true ;;
2066 esac
2067 fi
2068 as_fn_append ac_configure_args " '$ac_arg'"
2069 ;;
2070 esac
2071 done
2072 done
2073 { ac_configure_args0=; unset ac_configure_args0;}
2074 { ac_configure_args1=; unset ac_configure_args1;}
2075
2076 # When interrupted or exit'd, cleanup temporary files, and complete
2077 # config.log. We remove comments because anyway the quotes in there
2078 # would cause problems or look ugly.
2079 # WARNING: Use '\'' to represent an apostrophe within the trap.
2080 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2081 trap 'exit_status=$?
2082 # Save into config.log some information that might help in debugging.
2083 {
2084 echo
2085
2086 $as_echo "## ---------------- ##
2087 ## Cache variables. ##
2088 ## ---------------- ##"
2089 echo
2090 # The following way of writing the cache mishandles newlines in values,
2091 (
2092 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2093 eval ac_val=\$$ac_var
2094 case $ac_val in #(
2095 *${as_nl}*)
2096 case $ac_var in #(
2097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2098 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2099 esac
2100 case $ac_var in #(
2101 _ | IFS | as_nl) ;; #(
2102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2103 *) { eval $ac_var=; unset $ac_var;} ;;
2104 esac ;;
2105 esac
2106 done
2107 (set) 2>&1 |
2108 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2109 *${as_nl}ac_space=\ *)
2110 sed -n \
2111 "s/'\''/'\''\\\\'\'''\''/g;
2112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2113 ;; #(
2114 *)
2115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2116 ;;
2117 esac |
2118 sort
2119 )
2120 echo
2121
2122 $as_echo "## ----------------- ##
2123 ## Output variables. ##
2124 ## ----------------- ##"
2125 echo
2126 for ac_var in $ac_subst_vars
2127 do
2128 eval ac_val=\$$ac_var
2129 case $ac_val in
2130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131 esac
2132 $as_echo "$ac_var='\''$ac_val'\''"
2133 done | sort
2134 echo
2135
2136 if test -n "$ac_subst_files"; then
2137 $as_echo "## ------------------- ##
2138 ## File substitutions. ##
2139 ## ------------------- ##"
2140 echo
2141 for ac_var in $ac_subst_files
2142 do
2143 eval ac_val=\$$ac_var
2144 case $ac_val in
2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 esac
2147 $as_echo "$ac_var='\''$ac_val'\''"
2148 done | sort
2149 echo
2150 fi
2151
2152 if test -s confdefs.h; then
2153 $as_echo "## ----------- ##
2154 ## confdefs.h. ##
2155 ## ----------- ##"
2156 echo
2157 cat confdefs.h
2158 echo
2159 fi
2160 test "$ac_signal" != 0 &&
2161 $as_echo "$as_me: caught signal $ac_signal"
2162 $as_echo "$as_me: exit $exit_status"
2163 } >&5
2164 rm -f core *.core core.conftest.* &&
2165 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2166 exit $exit_status
2167 ' 0
2168 for ac_signal in 1 2 13 15; do
2169 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2170 done
2171 ac_signal=0
2172
2173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2174 rm -f -r conftest* confdefs.h
2175
2176 $as_echo "/* confdefs.h */" > confdefs.h
2177
2178 # Predefined preprocessor variables.
2179
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_NAME "$PACKAGE_NAME"
2182 _ACEOF
2183
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2186 _ACEOF
2187
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2190 _ACEOF
2191
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_STRING "$PACKAGE_STRING"
2194 _ACEOF
2195
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2198 _ACEOF
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_URL "$PACKAGE_URL"
2202 _ACEOF
2203
2204
2205 # Let the site file select an alternate cache file if it wants to.
2206 # Prefer an explicitly selected file to automatically selected ones.
2207 ac_site_file1=NONE
2208 ac_site_file2=NONE
2209 if test -n "$CONFIG_SITE"; then
2210 # We do not want a PATH search for config.site.
2211 case $CONFIG_SITE in #((
2212 -*) ac_site_file1=./$CONFIG_SITE;;
2213 */*) ac_site_file1=$CONFIG_SITE;;
2214 *) ac_site_file1=./$CONFIG_SITE;;
2215 esac
2216 elif test "x$prefix" != xNONE; then
2217 ac_site_file1=$prefix/share/config.site
2218 ac_site_file2=$prefix/etc/config.site
2219 else
2220 ac_site_file1=$ac_default_prefix/share/config.site
2221 ac_site_file2=$ac_default_prefix/etc/config.site
2222 fi
2223 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2224 do
2225 test "x$ac_site_file" = xNONE && continue
2226 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2228 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2229 sed 's/^/| /' "$ac_site_file" >&5
2230 . "$ac_site_file" \
2231 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2233 as_fn_error $? "failed to load site script $ac_site_file
2234 See \`config.log' for more details" "$LINENO" 5; }
2235 fi
2236 done
2237
2238 if test -r "$cache_file"; then
2239 # Some versions of bash will fail to source /dev/null (special files
2240 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2241 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2243 $as_echo "$as_me: loading cache $cache_file" >&6;}
2244 case $cache_file in
2245 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2246 *) . "./$cache_file";;
2247 esac
2248 fi
2249 else
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2251 $as_echo "$as_me: creating cache $cache_file" >&6;}
2252 >$cache_file
2253 fi
2254
2255 # Check that the precious variables saved in the cache have kept the same
2256 # value.
2257 ac_cache_corrupted=false
2258 for ac_var in $ac_precious_vars; do
2259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2260 eval ac_new_set=\$ac_env_${ac_var}_set
2261 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2262 eval ac_new_val=\$ac_env_${ac_var}_value
2263 case $ac_old_set,$ac_new_set in
2264 set,)
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2266 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2267 ac_cache_corrupted=: ;;
2268 ,set)
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2270 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2271 ac_cache_corrupted=: ;;
2272 ,);;
2273 *)
2274 if test "x$ac_old_val" != "x$ac_new_val"; then
2275 # differences in whitespace do not lead to failure.
2276 ac_old_val_w=`echo x $ac_old_val`
2277 ac_new_val_w=`echo x $ac_new_val`
2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2280 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2281 ac_cache_corrupted=:
2282 else
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2284 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2285 eval $ac_var=\$ac_old_val
2286 fi
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2288 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2290 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2291 fi;;
2292 esac
2293 # Pass precious variables to config.status.
2294 if test "$ac_new_set" = set; then
2295 case $ac_new_val in
2296 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 *) ac_arg=$ac_var=$ac_new_val ;;
2298 esac
2299 case " $ac_configure_args " in
2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2301 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2302 esac
2303 fi
2304 done
2305 if $ac_cache_corrupted; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2309 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2310 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2311 fi
2312 ## -------------------- ##
2313 ## Main body of script. ##
2314 ## -------------------- ##
2315
2316 ac_ext=c
2317 ac_cpp='$CPP $CPPFLAGS'
2318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321
2322
2323 ac_ext=c
2324 ac_cpp='$CPP $CPPFLAGS'
2325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2328
2329
2330
2331
2332
2333 for ac_prog in gawk mawk nawk awk
2334 do
2335 # Extract the first word of "$ac_prog", so it can be a program name with args.
2336 set dummy $ac_prog; ac_word=$2
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2338 $as_echo_n "checking for $ac_word... " >&6; }
2339 if ${ac_cv_prog_AWK+:} false; then :
2340 $as_echo_n "(cached) " >&6
2341 else
2342 if test -n "$AWK"; then
2343 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_AWK="$ac_prog"
2353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 break 2
2355 fi
2356 done
2357 done
2358 IFS=$as_save_IFS
2359
2360 fi
2361 fi
2362 AWK=$ac_cv_prog_AWK
2363 if test -n "$AWK"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2365 $as_echo "$AWK" >&6; }
2366 else
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2368 $as_echo "no" >&6; }
2369 fi
2370
2371
2372 test -n "$AWK" && break
2373 done
2374
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2376 $as_echo_n "checking metadata... " >&6; }
2377
2378 META="$srcdir/META"
2379 _zfs_ac_meta_type="none"
2380 if test -f "$META"; then
2381 _zfs_ac_meta_type="META file"
2382
2383 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2384 if test -n "$ZFS_META_NAME"; then
2385
2386 cat >>confdefs.h <<_ACEOF
2387 #define ZFS_META_NAME "$ZFS_META_NAME"
2388 _ACEOF
2389
2390
2391 fi
2392
2393 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2394 if test -n "$ZFS_META_VERSION"; then
2395
2396 cat >>confdefs.h <<_ACEOF
2397 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2398 _ACEOF
2399
2400
2401 fi
2402
2403 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2404 if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2405 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2406 _alias=$(git describe --match=${_match} 2>/dev/null)
2407 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2408 if test -n "${_release}"; then
2409 ZFS_META_RELEASE=${_release}
2410 _zfs_ac_meta_type="git describe"
2411 fi
2412 fi
2413
2414 if test -n "$ZFS_META_RELEASE"; then
2415
2416 cat >>confdefs.h <<_ACEOF
2417 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2418 _ACEOF
2419
2420
2421
2422 RELEASE="$ZFS_META_RELEASE"
2423
2424 fi
2425
2426 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2427 if test -n "$ZFS_META_LICENSE"; then
2428
2429 cat >>confdefs.h <<_ACEOF
2430 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2431 _ACEOF
2432
2433
2434 fi
2435
2436 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2437 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2438 test -n "$ZFS_META_RELEASE" &&
2439 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2440
2441 cat >>confdefs.h <<_ACEOF
2442 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2443 _ACEOF
2444
2445
2446 fi
2447
2448 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2449 if test -n "$ZFS_META_DATA"; then
2450
2451 cat >>confdefs.h <<_ACEOF
2452 #define ZFS_META_DATA "$ZFS_META_DATA"
2453 _ACEOF
2454
2455
2456 fi
2457
2458 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2459 if test -n "$ZFS_META_AUTHOR"; then
2460
2461 cat >>confdefs.h <<_ACEOF
2462 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2463 _ACEOF
2464
2465
2466 fi
2467
2468
2469 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2470 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2471 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2472 if test -n "$ZFS_META_LT_CURRENT" \
2473 -o -n "$ZFS_META_LT_REVISION" \
2474 -o -n "$ZFS_META_LT_AGE"; then
2475 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2476 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2477 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2478
2479 cat >>confdefs.h <<_ACEOF
2480 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2481 _ACEOF
2482
2483
2484 cat >>confdefs.h <<_ACEOF
2485 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2486 _ACEOF
2487
2488
2489 cat >>confdefs.h <<_ACEOF
2490 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2491 _ACEOF
2492
2493
2494
2495
2496 fi
2497 fi
2498
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2500 $as_echo "$_zfs_ac_meta_type" >&6; }
2501
2502
2503 ac_aux_dir=
2504 for ac_dir in config "$srcdir"/config; do
2505 if test -f "$ac_dir/install-sh"; then
2506 ac_aux_dir=$ac_dir
2507 ac_install_sh="$ac_aux_dir/install-sh -c"
2508 break
2509 elif test -f "$ac_dir/install.sh"; then
2510 ac_aux_dir=$ac_dir
2511 ac_install_sh="$ac_aux_dir/install.sh -c"
2512 break
2513 elif test -f "$ac_dir/shtool"; then
2514 ac_aux_dir=$ac_dir
2515 ac_install_sh="$ac_aux_dir/shtool install -c"
2516 break
2517 fi
2518 done
2519 if test -z "$ac_aux_dir"; then
2520 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2521 fi
2522
2523 # These three variables are undocumented and unsupported,
2524 # and are intended to be withdrawn in a future Autoconf release.
2525 # They can cause serious problems if a builder's source tree is in a directory
2526 # whose full name contains unusual characters.
2527 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2528 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2529 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2530
2531
2532
2533 # Make sure we can run config.sub.
2534 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2535 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2536
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2538 $as_echo_n "checking build system type... " >&6; }
2539 if ${ac_cv_build+:} false; then :
2540 $as_echo_n "(cached) " >&6
2541 else
2542 ac_build_alias=$build_alias
2543 test "x$ac_build_alias" = x &&
2544 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2545 test "x$ac_build_alias" = x &&
2546 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2547 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2548 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2549
2550 fi
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2552 $as_echo "$ac_cv_build" >&6; }
2553 case $ac_cv_build in
2554 *-*-*) ;;
2555 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2556 esac
2557 build=$ac_cv_build
2558 ac_save_IFS=$IFS; IFS='-'
2559 set x $ac_cv_build
2560 shift
2561 build_cpu=$1
2562 build_vendor=$2
2563 shift; shift
2564 # Remember, the first character of IFS is used to create $*,
2565 # except with old shells:
2566 build_os=$*
2567 IFS=$ac_save_IFS
2568 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2569
2570
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2572 $as_echo_n "checking host system type... " >&6; }
2573 if ${ac_cv_host+:} false; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 if test "x$host_alias" = x; then
2577 ac_cv_host=$ac_cv_build
2578 else
2579 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2580 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2581 fi
2582
2583 fi
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2585 $as_echo "$ac_cv_host" >&6; }
2586 case $ac_cv_host in
2587 *-*-*) ;;
2588 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2589 esac
2590 host=$ac_cv_host
2591 ac_save_IFS=$IFS; IFS='-'
2592 set x $ac_cv_host
2593 shift
2594 host_cpu=$1
2595 host_vendor=$2
2596 shift; shift
2597 # Remember, the first character of IFS is used to create $*,
2598 # except with old shells:
2599 host_os=$*
2600 IFS=$ac_save_IFS
2601 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2602
2603
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2605 $as_echo_n "checking target system type... " >&6; }
2606 if ${ac_cv_target+:} false; then :
2607 $as_echo_n "(cached) " >&6
2608 else
2609 if test "x$target_alias" = x; then
2610 ac_cv_target=$ac_cv_host
2611 else
2612 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2613 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2614 fi
2615
2616 fi
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2618 $as_echo "$ac_cv_target" >&6; }
2619 case $ac_cv_target in
2620 *-*-*) ;;
2621 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2622 esac
2623 target=$ac_cv_target
2624 ac_save_IFS=$IFS; IFS='-'
2625 set x $ac_cv_target
2626 shift
2627 target_cpu=$1
2628 target_vendor=$2
2629 shift; shift
2630 # Remember, the first character of IFS is used to create $*,
2631 # except with old shells:
2632 target_os=$*
2633 IFS=$ac_save_IFS
2634 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2635
2636
2637 # The aliases save the names the user supplied, while $host etc.
2638 # will get canonicalized.
2639 test -n "$target_alias" &&
2640 test "$program_prefix$program_suffix$program_transform_name" = \
2641 NONENONEs,x,x, &&
2642 program_prefix=${target_alias}-
2643
2644
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2646 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2647 # Check whether --enable-maintainer-mode was given.
2648 if test "${enable_maintainer_mode+set}" = set; then :
2649 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2650 else
2651 USE_MAINTAINER_MODE=no
2652 fi
2653
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2655 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2656 if test $USE_MAINTAINER_MODE = yes; then
2657 MAINTAINER_MODE_TRUE=
2658 MAINTAINER_MODE_FALSE='#'
2659 else
2660 MAINTAINER_MODE_TRUE='#'
2661 MAINTAINER_MODE_FALSE=
2662 fi
2663
2664 MAINT=$MAINTAINER_MODE_TRUE
2665
2666
2667 # Check whether --enable-silent-rules was given.
2668 if test "${enable_silent_rules+set}" = set; then :
2669 enableval=$enable_silent_rules;
2670 fi
2671
2672 case $enable_silent_rules in
2673 yes) AM_DEFAULT_VERBOSITY=0;;
2674 no) AM_DEFAULT_VERBOSITY=1;;
2675 *) AM_DEFAULT_VERBOSITY=0;;
2676 esac
2677 am_make=${MAKE-make}
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2679 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2680 if ${am_cv_make_support_nested_variables+:} false; then :
2681 $as_echo_n "(cached) " >&6
2682 else
2683 if $as_echo 'TRUE=$(BAR$(V))
2684 BAR0=false
2685 BAR1=true
2686 V=1
2687 am__doit:
2688 @$(TRUE)
2689 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2690 am_cv_make_support_nested_variables=yes
2691 else
2692 am_cv_make_support_nested_variables=no
2693 fi
2694 fi
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2696 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2697 if test $am_cv_make_support_nested_variables = yes; then
2698 AM_V='$(V)'
2699 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2700 else
2701 AM_V=$AM_DEFAULT_VERBOSITY
2702 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2703 fi
2704 AM_BACKSLASH='\'
2705
2706 am__api_version='1.11'
2707
2708 # Find a good install program. We prefer a C program (faster),
2709 # so one script is as good as another. But avoid the broken or
2710 # incompatible versions:
2711 # SysV /etc/install, /usr/sbin/install
2712 # SunOS /usr/etc/install
2713 # IRIX /sbin/install
2714 # AIX /bin/install
2715 # AmigaOS /C/install, which installs bootblocks on floppy discs
2716 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2717 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2718 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2719 # OS/2's system install, which has a completely different semantic
2720 # ./install, which can be erroneously created by make from ./install.sh.
2721 # Reject install programs that cannot install multiple files.
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2723 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2724 if test -z "$INSTALL"; then
2725 if ${ac_cv_path_install+:} false; then :
2726 $as_echo_n "(cached) " >&6
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2730 do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 # Account for people who put trailing slashes in PATH elements.
2734 case $as_dir/ in #((
2735 ./ | .// | /[cC]/* | \
2736 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2737 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2738 /usr/ucb/* ) ;;
2739 *)
2740 # OSF1 and SCO ODT 3.0 have their own names for install.
2741 # Don't use installbsd from OSF since it installs stuff as root
2742 # by default.
2743 for ac_prog in ginstall scoinst install; do
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2746 if test $ac_prog = install &&
2747 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2748 # AIX install. It has an incompatible calling convention.
2749 :
2750 elif test $ac_prog = install &&
2751 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2752 # program-specific install script used by HP pwplus--don't use.
2753 :
2754 else
2755 rm -rf conftest.one conftest.two conftest.dir
2756 echo one > conftest.one
2757 echo two > conftest.two
2758 mkdir conftest.dir
2759 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2760 test -s conftest.one && test -s conftest.two &&
2761 test -s conftest.dir/conftest.one &&
2762 test -s conftest.dir/conftest.two
2763 then
2764 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2765 break 3
2766 fi
2767 fi
2768 fi
2769 done
2770 done
2771 ;;
2772 esac
2773
2774 done
2775 IFS=$as_save_IFS
2776
2777 rm -rf conftest.one conftest.two conftest.dir
2778
2779 fi
2780 if test "${ac_cv_path_install+set}" = set; then
2781 INSTALL=$ac_cv_path_install
2782 else
2783 # As a last resort, use the slow shell script. Don't cache a
2784 # value for INSTALL within a source directory, because that will
2785 # break other packages using the cache if that directory is
2786 # removed, or if the value is a relative name.
2787 INSTALL=$ac_install_sh
2788 fi
2789 fi
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2791 $as_echo "$INSTALL" >&6; }
2792
2793 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2794 # It thinks the first close brace ends the variable substitution.
2795 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2796
2797 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2798
2799 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2800
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2802 $as_echo_n "checking whether build environment is sane... " >&6; }
2803 # Just in case
2804 sleep 1
2805 echo timestamp > conftest.file
2806 # Reject unsafe characters in $srcdir or the absolute working directory
2807 # name. Accept space and tab only in the latter.
2808 am_lf='
2809 '
2810 case `pwd` in
2811 *[\\\"\#\$\&\'\`$am_lf]*)
2812 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2813 esac
2814 case $srcdir in
2815 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2816 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2817 esac
2818
2819 # Do `set' in a subshell so we don't clobber the current shell's
2820 # arguments. Must try -L first in case configure is actually a
2821 # symlink; some systems play weird games with the mod time of symlinks
2822 # (eg FreeBSD returns the mod time of the symlink's containing
2823 # directory).
2824 if (
2825 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2826 if test "$*" = "X"; then
2827 # -L didn't work.
2828 set X `ls -t "$srcdir/configure" conftest.file`
2829 fi
2830 rm -f conftest.file
2831 if test "$*" != "X $srcdir/configure conftest.file" \
2832 && test "$*" != "X conftest.file $srcdir/configure"; then
2833
2834 # If neither matched, then we have a broken ls. This can happen
2835 # if, for instance, CONFIG_SHELL is bash and it inherits a
2836 # broken ls alias from the environment. This has actually
2837 # happened. Such a system could not be considered "sane".
2838 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2839 alias in your environment" "$LINENO" 5
2840 fi
2841
2842 test "$2" = conftest.file
2843 )
2844 then
2845 # Ok.
2846 :
2847 else
2848 as_fn_error $? "newly created file is older than distributed files!
2849 Check your system clock" "$LINENO" 5
2850 fi
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2852 $as_echo "yes" >&6; }
2853 test "$program_prefix" != NONE &&
2854 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2855 # Use a double $ so make ignores it.
2856 test "$program_suffix" != NONE &&
2857 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2858 # Double any \ or $.
2859 # By default was `s,x,x', remove it if useless.
2860 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2861 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2862
2863 # expand $ac_aux_dir to an absolute path
2864 am_aux_dir=`cd $ac_aux_dir && pwd`
2865
2866 if test x"${MISSING+set}" != xset; then
2867 case $am_aux_dir in
2868 *\ * | *\ *)
2869 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2870 *)
2871 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2872 esac
2873 fi
2874 # Use eval to expand $SHELL
2875 if eval "$MISSING --run true"; then
2876 am_missing_run="$MISSING --run "
2877 else
2878 am_missing_run=
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2880 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2881 fi
2882
2883 if test x"${install_sh}" != xset; then
2884 case $am_aux_dir in
2885 *\ * | *\ *)
2886 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2887 *)
2888 install_sh="\${SHELL} $am_aux_dir/install-sh"
2889 esac
2890 fi
2891
2892 # Installed binaries are usually stripped using `strip' when the user
2893 # run `make install-strip'. However `strip' might not be the right
2894 # tool to use in cross-compilation environments, therefore Automake
2895 # will honor the `STRIP' environment variable to overrule this program.
2896 if test "$cross_compiling" != no; then
2897 if test -n "$ac_tool_prefix"; then
2898 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2899 set dummy ${ac_tool_prefix}strip; ac_word=$2
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 $as_echo_n "checking for $ac_word... " >&6; }
2902 if ${ac_cv_prog_STRIP+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904 else
2905 if test -n "$STRIP"; then
2906 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2907 else
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 for as_dir in $PATH
2910 do
2911 IFS=$as_save_IFS
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2915 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 break 2
2918 fi
2919 done
2920 done
2921 IFS=$as_save_IFS
2922
2923 fi
2924 fi
2925 STRIP=$ac_cv_prog_STRIP
2926 if test -n "$STRIP"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2928 $as_echo "$STRIP" >&6; }
2929 else
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2932 fi
2933
2934
2935 fi
2936 if test -z "$ac_cv_prog_STRIP"; then
2937 ac_ct_STRIP=$STRIP
2938 # Extract the first word of "strip", so it can be a program name with args.
2939 set dummy strip; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2943 $as_echo_n "(cached) " >&6
2944 else
2945 if test -n "$ac_ct_STRIP"; then
2946 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 ac_cv_prog_ac_ct_STRIP="strip"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
2958 fi
2959 done
2960 done
2961 IFS=$as_save_IFS
2962
2963 fi
2964 fi
2965 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2966 if test -n "$ac_ct_STRIP"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2968 $as_echo "$ac_ct_STRIP" >&6; }
2969 else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2972 fi
2973
2974 if test "x$ac_ct_STRIP" = x; then
2975 STRIP=":"
2976 else
2977 case $cross_compiling:$ac_tool_warned in
2978 yes:)
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2981 ac_tool_warned=yes ;;
2982 esac
2983 STRIP=$ac_ct_STRIP
2984 fi
2985 else
2986 STRIP="$ac_cv_prog_STRIP"
2987 fi
2988
2989 fi
2990 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2991
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2993 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2994 if test -z "$MKDIR_P"; then
2995 if ${ac_cv_path_mkdir+:} false; then :
2996 $as_echo_n "(cached) " >&6
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3000 do
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_prog in mkdir gmkdir; do
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3006 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3007 'mkdir (GNU coreutils) '* | \
3008 'mkdir (coreutils) '* | \
3009 'mkdir (fileutils) '4.1*)
3010 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3011 break 3;;
3012 esac
3013 done
3014 done
3015 done
3016 IFS=$as_save_IFS
3017
3018 fi
3019
3020 test -d ./--version && rmdir ./--version
3021 if test "${ac_cv_path_mkdir+set}" = set; then
3022 MKDIR_P="$ac_cv_path_mkdir -p"
3023 else
3024 # As a last resort, use the slow shell script. Don't cache a
3025 # value for MKDIR_P within a source directory, because that will
3026 # break other packages using the cache if that directory is
3027 # removed, or if the value is a relative name.
3028 MKDIR_P="$ac_install_sh -d"
3029 fi
3030 fi
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3032 $as_echo "$MKDIR_P" >&6; }
3033
3034 mkdir_p="$MKDIR_P"
3035 case $mkdir_p in
3036 [\\/$]* | ?:[\\/]*) ;;
3037 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3038 esac
3039
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3041 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3042 set x ${MAKE-make}
3043 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3044 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3045 $as_echo_n "(cached) " >&6
3046 else
3047 cat >conftest.make <<\_ACEOF
3048 SHELL = /bin/sh
3049 all:
3050 @echo '@@@%%%=$(MAKE)=@@@%%%'
3051 _ACEOF
3052 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3053 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3054 *@@@%%%=?*=@@@%%%*)
3055 eval ac_cv_prog_make_${ac_make}_set=yes;;
3056 *)
3057 eval ac_cv_prog_make_${ac_make}_set=no;;
3058 esac
3059 rm -f conftest.make
3060 fi
3061 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3063 $as_echo "yes" >&6; }
3064 SET_MAKE=
3065 else
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3068 SET_MAKE="MAKE=${MAKE-make}"
3069 fi
3070
3071 rm -rf .tst 2>/dev/null
3072 mkdir .tst 2>/dev/null
3073 if test -d .tst; then
3074 am__leading_dot=.
3075 else
3076 am__leading_dot=_
3077 fi
3078 rmdir .tst 2>/dev/null
3079
3080 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3081 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3082 # is not polluted with repeated "-I."
3083 am__isrc=' -I$(srcdir)'
3084 # test to see if srcdir already configured
3085 if test -f $srcdir/config.status; then
3086 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3087 fi
3088 fi
3089
3090 # test whether we have cygpath
3091 if test -z "$CYGPATH_W"; then
3092 if (cygpath --version) >/dev/null 2>/dev/null; then
3093 CYGPATH_W='cygpath -w'
3094 else
3095 CYGPATH_W=echo
3096 fi
3097 fi
3098
3099
3100 # Define the identity of the package.
3101 PACKAGE='zfs'
3102 VERSION='0.6.5.6'
3103
3104
3105 cat >>confdefs.h <<_ACEOF
3106 #define PACKAGE "$PACKAGE"
3107 _ACEOF
3108
3109
3110 cat >>confdefs.h <<_ACEOF
3111 #define VERSION "$VERSION"
3112 _ACEOF
3113
3114 # Some tools Automake needs.
3115
3116 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3117
3118
3119 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3120
3121
3122 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3123
3124
3125 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3126
3127
3128 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3129
3130 # We need awk for the "check" target. The system "awk" is bad on
3131 # some platforms.
3132 # Always define AMTAR for backward compatibility. Yes, it's still used
3133 # in the wild :-( We should find a proper way to deprecate it ...
3134 AMTAR='$${TAR-tar}'
3135
3136 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3137
3138
3139
3140
3141
3142 ac_config_headers="$ac_config_headers zfs_config.h"
3143
3144
3145
3146 ac_ext=c
3147 ac_cpp='$CPP $CPPFLAGS'
3148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151 if test -n "$ac_tool_prefix"; then
3152 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3153 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if ${ac_cv_prog_CC+:} false; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3172 fi
3173 done
3174 done
3175 IFS=$as_save_IFS
3176
3177 fi
3178 fi
3179 CC=$ac_cv_prog_CC
3180 if test -n "$CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182 $as_echo "$CC" >&6; }
3183 else
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 fi
3187
3188
3189 fi
3190 if test -z "$ac_cv_prog_CC"; then
3191 ac_ct_CC=$CC
3192 # Extract the first word of "gcc", so it can be a program name with args.
3193 set dummy gcc; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 if test -n "$ac_ct_CC"; then
3200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3201 else
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3204 do
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209 ac_cv_prog_ac_ct_CC="gcc"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 break 2
3212 fi
3213 done
3214 done
3215 IFS=$as_save_IFS
3216
3217 fi
3218 fi
3219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220 if test -n "$ac_ct_CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222 $as_echo "$ac_ct_CC" >&6; }
3223 else
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3226 fi
3227
3228 if test "x$ac_ct_CC" = x; then
3229 CC=""
3230 else
3231 case $cross_compiling:$ac_tool_warned in
3232 yes:)
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235 ac_tool_warned=yes ;;
3236 esac
3237 CC=$ac_ct_CC
3238 fi
3239 else
3240 CC="$ac_cv_prog_CC"
3241 fi
3242
3243 if test -z "$CC"; then
3244 if test -n "$ac_tool_prefix"; then
3245 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3246 set dummy ${ac_tool_prefix}cc; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if ${ac_cv_prog_CC+:} false; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3257 do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_CC="${ac_tool_prefix}cc"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266 done
3267 done
3268 IFS=$as_save_IFS
3269
3270 fi
3271 fi
3272 CC=$ac_cv_prog_CC
3273 if test -n "$CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275 $as_echo "$CC" >&6; }
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3279 fi
3280
3281
3282 fi
3283 fi
3284 if test -z "$CC"; then
3285 # Extract the first word of "cc", so it can be a program name with args.
3286 set dummy cc; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if ${ac_cv_prog_CC+:} false; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC="$CC" # Let the user override the test.
3294 else
3295 ac_prog_rejected=no
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3304 ac_prog_rejected=yes
3305 continue
3306 fi
3307 ac_cv_prog_CC="cc"
3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3310 fi
3311 done
3312 done
3313 IFS=$as_save_IFS
3314
3315 if test $ac_prog_rejected = yes; then
3316 # We found a bogon in the path, so make sure we never use it.
3317 set dummy $ac_cv_prog_CC
3318 shift
3319 if test $# != 0; then
3320 # We chose a different compiler from the bogus one.
3321 # However, it has the same basename, so the bogon will be chosen
3322 # first if we set CC to just the basename; use the full file name.
3323 shift
3324 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3325 fi
3326 fi
3327 fi
3328 fi
3329 CC=$ac_cv_prog_CC
3330 if test -n "$CC"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3332 $as_echo "$CC" >&6; }
3333 else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3336 fi
3337
3338
3339 fi
3340 if test -z "$CC"; then
3341 if test -n "$ac_tool_prefix"; then
3342 for ac_prog in cl.exe
3343 do
3344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if ${ac_cv_prog_CC+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3356 do
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3361 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3364 fi
3365 done
3366 done
3367 IFS=$as_save_IFS
3368
3369 fi
3370 fi
3371 CC=$ac_cv_prog_CC
3372 if test -n "$CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374 $as_echo "$CC" >&6; }
3375 else
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3378 fi
3379
3380
3381 test -n "$CC" && break
3382 done
3383 fi
3384 if test -z "$CC"; then
3385 ac_ct_CC=$CC
3386 for ac_prog in cl.exe
3387 do
3388 # Extract the first word of "$ac_prog", so it can be a program name with args.
3389 set dummy $ac_prog; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 if test -n "$ac_ct_CC"; then
3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 ac_cv_prog_ac_ct_CC="$ac_prog"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3408 fi
3409 done
3410 done
3411 IFS=$as_save_IFS
3412
3413 fi
3414 fi
3415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416 if test -n "$ac_ct_CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3418 $as_echo "$ac_ct_CC" >&6; }
3419 else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3422 fi
3423
3424
3425 test -n "$ac_ct_CC" && break
3426 done
3427
3428 if test "x$ac_ct_CC" = x; then
3429 CC=""
3430 else
3431 case $cross_compiling:$ac_tool_warned in
3432 yes:)
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3435 ac_tool_warned=yes ;;
3436 esac
3437 CC=$ac_ct_CC
3438 fi
3439 fi
3440
3441 fi
3442
3443
3444 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 as_fn_error $? "no acceptable C compiler found in \$PATH
3447 See \`config.log' for more details" "$LINENO" 5; }
3448
3449 # Provide some information about the compiler.
3450 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3451 set X $ac_compile
3452 ac_compiler=$2
3453 for ac_option in --version -v -V -qversion; do
3454 { { ac_try="$ac_compiler $ac_option >&5"
3455 case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3462 ac_status=$?
3463 if test -s conftest.err; then
3464 sed '10a\
3465 ... rest of stderr output deleted ...
3466 10q' conftest.err >conftest.er1
3467 cat conftest.er1 >&5
3468 fi
3469 rm -f conftest.er1 conftest.err
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }
3472 done
3473
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3476
3477 int
3478 main ()
3479 {
3480
3481 ;
3482 return 0;
3483 }
3484 _ACEOF
3485 ac_clean_files_save=$ac_clean_files
3486 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3487 # Try to create an executable without -o first, disregard a.out.
3488 # It will help us diagnose broken compilers, and finding out an intuition
3489 # of exeext.
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3491 $as_echo_n "checking whether the C compiler works... " >&6; }
3492 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3493
3494 # The possible output files:
3495 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3496
3497 ac_rmfiles=
3498 for ac_file in $ac_files
3499 do
3500 case $ac_file in
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3502 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3503 esac
3504 done
3505 rm -f $ac_rmfiles
3506
3507 if { { ac_try="$ac_link_default"
3508 case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511 esac
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_link_default") 2>&5
3515 ac_status=$?
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }; then :
3518 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3519 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3520 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3521 # so that the user can short-circuit this test for compilers unknown to
3522 # Autoconf.
3523 for ac_file in $ac_files ''
3524 do
3525 test -f "$ac_file" || continue
3526 case $ac_file in
3527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3528 ;;
3529 [ab].out )
3530 # We found the default executable, but exeext='' is most
3531 # certainly right.
3532 break;;
3533 *.* )
3534 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3535 then :; else
3536 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3537 fi
3538 # We set ac_cv_exeext here because the later test for it is not
3539 # safe: cross compilers may not add the suffix if given an `-o'
3540 # argument, so we may need to know it at that point already.
3541 # Even if this section looks crufty: it has the advantage of
3542 # actually working.
3543 break;;
3544 * )
3545 break;;
3546 esac
3547 done
3548 test "$ac_cv_exeext" = no && ac_cv_exeext=
3549
3550 else
3551 ac_file=''
3552 fi
3553 if test -z "$ac_file"; then :
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3556 $as_echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3558
3559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561 as_fn_error 77 "C compiler cannot create executables
3562 See \`config.log' for more details" "$LINENO" 5; }
3563 else
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3565 $as_echo "yes" >&6; }
3566 fi
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3568 $as_echo_n "checking for C compiler default output file name... " >&6; }
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3570 $as_echo "$ac_file" >&6; }
3571 ac_exeext=$ac_cv_exeext
3572
3573 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3574 ac_clean_files=$ac_clean_files_save
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3576 $as_echo_n "checking for suffix of executables... " >&6; }
3577 if { { ac_try="$ac_link"
3578 case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581 esac
3582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3583 $as_echo "$ac_try_echo"; } >&5
3584 (eval "$ac_link") 2>&5
3585 ac_status=$?
3586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3587 test $ac_status = 0; }; then :
3588 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3589 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3590 # work properly (i.e., refer to `conftest.exe'), while it won't with
3591 # `rm'.
3592 for ac_file in conftest.exe conftest conftest.*; do
3593 test -f "$ac_file" || continue
3594 case $ac_file in
3595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3596 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3597 break;;
3598 * ) break;;
3599 esac
3600 done
3601 else
3602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3605 See \`config.log' for more details" "$LINENO" 5; }
3606 fi
3607 rm -f conftest conftest$ac_cv_exeext
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3609 $as_echo "$ac_cv_exeext" >&6; }
3610
3611 rm -f conftest.$ac_ext
3612 EXEEXT=$ac_cv_exeext
3613 ac_exeext=$EXEEXT
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3616 #include <stdio.h>
3617 int
3618 main ()
3619 {
3620 FILE *f = fopen ("conftest.out", "w");
3621 return ferror (f) || fclose (f) != 0;
3622
3623 ;
3624 return 0;
3625 }
3626 _ACEOF
3627 ac_clean_files="$ac_clean_files conftest.out"
3628 # Check that the compiler produces executables we can run. If not, either
3629 # the compiler is broken, or we cross compile.
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3631 $as_echo_n "checking whether we are cross compiling... " >&6; }
3632 if test "$cross_compiling" != yes; then
3633 { { ac_try="$ac_link"
3634 case "(($ac_try" in
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3637 esac
3638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639 $as_echo "$ac_try_echo"; } >&5
3640 (eval "$ac_link") 2>&5
3641 ac_status=$?
3642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643 test $ac_status = 0; }
3644 if { ac_try='./conftest$ac_cv_exeext'
3645 { { case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648 esac
3649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650 $as_echo "$ac_try_echo"; } >&5
3651 (eval "$ac_try") 2>&5
3652 ac_status=$?
3653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654 test $ac_status = 0; }; }; then
3655 cross_compiling=no
3656 else
3657 if test "$cross_compiling" = maybe; then
3658 cross_compiling=yes
3659 else
3660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662 as_fn_error $? "cannot run C compiled programs.
3663 If you meant to cross compile, use \`--host'.
3664 See \`config.log' for more details" "$LINENO" 5; }
3665 fi
3666 fi
3667 fi
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3669 $as_echo "$cross_compiling" >&6; }
3670
3671 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3672 ac_clean_files=$ac_clean_files_save
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3674 $as_echo_n "checking for suffix of object files... " >&6; }
3675 if ${ac_cv_objext+:} false; then :
3676 $as_echo_n "(cached) " >&6
3677 else
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3680
3681 int
3682 main ()
3683 {
3684
3685 ;
3686 return 0;
3687 }
3688 _ACEOF
3689 rm -f conftest.o conftest.obj
3690 if { { ac_try="$ac_compile"
3691 case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3694 esac
3695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3696 $as_echo "$ac_try_echo"; } >&5
3697 (eval "$ac_compile") 2>&5
3698 ac_status=$?
3699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3700 test $ac_status = 0; }; then :
3701 for ac_file in conftest.o conftest.obj conftest.*; do
3702 test -f "$ac_file" || continue;
3703 case $ac_file in
3704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3705 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3706 break;;
3707 esac
3708 done
3709 else
3710 $as_echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3712
3713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715 as_fn_error $? "cannot compute suffix of object files: cannot compile
3716 See \`config.log' for more details" "$LINENO" 5; }
3717 fi
3718 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3719 fi
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3721 $as_echo "$ac_cv_objext" >&6; }
3722 OBJEXT=$ac_cv_objext
3723 ac_objext=$OBJEXT
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3725 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3726 if ${ac_cv_c_compiler_gnu+:} false; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3731
3732 int
3733 main ()
3734 {
3735 #ifndef __GNUC__
3736 choke me
3737 #endif
3738
3739 ;
3740 return 0;
3741 }
3742 _ACEOF
3743 if ac_fn_c_try_compile "$LINENO"; then :
3744 ac_compiler_gnu=yes
3745 else
3746 ac_compiler_gnu=no
3747 fi
3748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3750
3751 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3753 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3754 if test $ac_compiler_gnu = yes; then
3755 GCC=yes
3756 else
3757 GCC=
3758 fi
3759 ac_test_CFLAGS=${CFLAGS+set}
3760 ac_save_CFLAGS=$CFLAGS
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3762 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3763 if ${ac_cv_prog_cc_g+:} false; then :
3764 $as_echo_n "(cached) " >&6
3765 else
3766 ac_save_c_werror_flag=$ac_c_werror_flag
3767 ac_c_werror_flag=yes
3768 ac_cv_prog_cc_g=no
3769 CFLAGS="-g"
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3772
3773 int
3774 main ()
3775 {
3776
3777 ;
3778 return 0;
3779 }
3780 _ACEOF
3781 if ac_fn_c_try_compile "$LINENO"; then :
3782 ac_cv_prog_cc_g=yes
3783 else
3784 CFLAGS=""
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3787
3788 int
3789 main ()
3790 {
3791
3792 ;
3793 return 0;
3794 }
3795 _ACEOF
3796 if ac_fn_c_try_compile "$LINENO"; then :
3797
3798 else
3799 ac_c_werror_flag=$ac_save_c_werror_flag
3800 CFLAGS="-g"
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3803
3804 int
3805 main ()
3806 {
3807
3808 ;
3809 return 0;
3810 }
3811 _ACEOF
3812 if ac_fn_c_try_compile "$LINENO"; then :
3813 ac_cv_prog_cc_g=yes
3814 fi
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 fi
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 fi
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 ac_c_werror_flag=$ac_save_c_werror_flag
3821 fi
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3823 $as_echo "$ac_cv_prog_cc_g" >&6; }
3824 if test "$ac_test_CFLAGS" = set; then
3825 CFLAGS=$ac_save_CFLAGS
3826 elif test $ac_cv_prog_cc_g = yes; then
3827 if test "$GCC" = yes; then
3828 CFLAGS="-g -O2"
3829 else
3830 CFLAGS="-g"
3831 fi
3832 else
3833 if test "$GCC" = yes; then
3834 CFLAGS="-O2"
3835 else
3836 CFLAGS=
3837 fi
3838 fi
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3840 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3841 if ${ac_cv_prog_cc_c89+:} false; then :
3842 $as_echo_n "(cached) " >&6
3843 else
3844 ac_cv_prog_cc_c89=no
3845 ac_save_CC=$CC
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3848 #include <stdarg.h>
3849 #include <stdio.h>
3850 #include <sys/types.h>
3851 #include <sys/stat.h>
3852 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3853 struct buf { int x; };
3854 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3855 static char *e (p, i)
3856 char **p;
3857 int i;
3858 {
3859 return p[i];
3860 }
3861 static char *f (char * (*g) (char **, int), char **p, ...)
3862 {
3863 char *s;
3864 va_list v;
3865 va_start (v,p);
3866 s = g (p, va_arg (v,int));
3867 va_end (v);
3868 return s;
3869 }
3870
3871 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3872 function prototypes and stuff, but not '\xHH' hex character constants.
3873 These don't provoke an error unfortunately, instead are silently treated
3874 as 'x'. The following induces an error, until -std is added to get
3875 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3876 array size at least. It's necessary to write '\x00'==0 to get something
3877 that's true only with -std. */
3878 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3879
3880 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3881 inside strings and character constants. */
3882 #define FOO(x) 'x'
3883 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3884
3885 int test (int i, double x);
3886 struct s1 {int (*f) (int a);};
3887 struct s2 {int (*f) (double a);};
3888 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3889 int argc;
3890 char **argv;
3891 int
3892 main ()
3893 {
3894 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3895 ;
3896 return 0;
3897 }
3898 _ACEOF
3899 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3900 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3901 do
3902 CC="$ac_save_CC $ac_arg"
3903 if ac_fn_c_try_compile "$LINENO"; then :
3904 ac_cv_prog_cc_c89=$ac_arg
3905 fi
3906 rm -f core conftest.err conftest.$ac_objext
3907 test "x$ac_cv_prog_cc_c89" != "xno" && break
3908 done
3909 rm -f conftest.$ac_ext
3910 CC=$ac_save_CC
3911
3912 fi
3913 # AC_CACHE_VAL
3914 case "x$ac_cv_prog_cc_c89" in
3915 x)
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3917 $as_echo "none needed" >&6; } ;;
3918 xno)
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3920 $as_echo "unsupported" >&6; } ;;
3921 *)
3922 CC="$CC $ac_cv_prog_cc_c89"
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3924 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3925 esac
3926 if test "x$ac_cv_prog_cc_c89" != xno; then :
3927
3928 fi
3929
3930 ac_ext=c
3931 ac_cpp='$CPP $CPPFLAGS'
3932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935 DEPDIR="${am__leading_dot}deps"
3936
3937 ac_config_commands="$ac_config_commands depfiles"
3938
3939
3940 am_make=${MAKE-make}
3941 cat > confinc << 'END'
3942 am__doit:
3943 @echo this is the am__doit target
3944 .PHONY: am__doit
3945 END
3946 # If we don't find an include directive, just comment out the code.
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3948 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3949 am__include="#"
3950 am__quote=
3951 _am_result=none
3952 # First try GNU make style include.
3953 echo "include confinc" > confmf
3954 # Ignore all kinds of additional output from `make'.
3955 case `$am_make -s -f confmf 2> /dev/null` in #(
3956 *the\ am__doit\ target*)
3957 am__include=include
3958 am__quote=
3959 _am_result=GNU
3960 ;;
3961 esac
3962 # Now try BSD make style include.
3963 if test "$am__include" = "#"; then
3964 echo '.include "confinc"' > confmf
3965 case `$am_make -s -f confmf 2> /dev/null` in #(
3966 *the\ am__doit\ target*)
3967 am__include=.include
3968 am__quote="\""
3969 _am_result=BSD
3970 ;;
3971 esac
3972 fi
3973
3974
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3976 $as_echo "$_am_result" >&6; }
3977 rm -f confinc confmf
3978
3979 # Check whether --enable-dependency-tracking was given.
3980 if test "${enable_dependency_tracking+set}" = set; then :
3981 enableval=$enable_dependency_tracking;
3982 fi
3983
3984 if test "x$enable_dependency_tracking" != xno; then
3985 am_depcomp="$ac_aux_dir/depcomp"
3986 AMDEPBACKSLASH='\'
3987 am__nodep='_no'
3988 fi
3989 if test "x$enable_dependency_tracking" != xno; then
3990 AMDEP_TRUE=
3991 AMDEP_FALSE='#'
3992 else
3993 AMDEP_TRUE='#'
3994 AMDEP_FALSE=
3995 fi
3996
3997
3998
3999 depcc="$CC" am_compiler_list=
4000
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4002 $as_echo_n "checking dependency style of $depcc... " >&6; }
4003 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4004 $as_echo_n "(cached) " >&6
4005 else
4006 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4007 # We make a subdir and do the tests there. Otherwise we can end up
4008 # making bogus files that we don't know about and never remove. For
4009 # instance it was reported that on HP-UX the gcc test will end up
4010 # making a dummy file named `D' -- because `-MD' means `put the output
4011 # in D'.
4012 rm -rf conftest.dir
4013 mkdir conftest.dir
4014 # Copy depcomp to subdir because otherwise we won't find it if we're
4015 # using a relative directory.
4016 cp "$am_depcomp" conftest.dir
4017 cd conftest.dir
4018 # We will build objects and dependencies in a subdirectory because
4019 # it helps to detect inapplicable dependency modes. For instance
4020 # both Tru64's cc and ICC support -MD to output dependencies as a
4021 # side effect of compilation, but ICC will put the dependencies in
4022 # the current directory while Tru64 will put them in the object
4023 # directory.
4024 mkdir sub
4025
4026 am_cv_CC_dependencies_compiler_type=none
4027 if test "$am_compiler_list" = ""; then
4028 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4029 fi
4030 am__universal=false
4031 case " $depcc " in #(
4032 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4033 esac
4034
4035 for depmode in $am_compiler_list; do
4036 # Setup a source with many dependencies, because some compilers
4037 # like to wrap large dependency lists on column 80 (with \), and
4038 # we should not choose a depcomp mode which is confused by this.
4039 #
4040 # We need to recreate these files for each test, as the compiler may
4041 # overwrite some of them when testing with obscure command lines.
4042 # This happens at least with the AIX C compiler.
4043 : > sub/conftest.c
4044 for i in 1 2 3 4 5 6; do
4045 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4046 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4047 # Solaris 8's {/usr,}/bin/sh.
4048 touch sub/conftst$i.h
4049 done
4050 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4051
4052 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4053 # mode. It turns out that the SunPro C++ compiler does not properly
4054 # handle `-M -o', and we need to detect this. Also, some Intel
4055 # versions had trouble with output in subdirs
4056 am__obj=sub/conftest.${OBJEXT-o}
4057 am__minus_obj="-o $am__obj"
4058 case $depmode in
4059 gcc)
4060 # This depmode causes a compiler race in universal mode.
4061 test "$am__universal" = false || continue
4062 ;;
4063 nosideeffect)
4064 # after this tag, mechanisms are not by side-effect, so they'll
4065 # only be used when explicitly requested
4066 if test "x$enable_dependency_tracking" = xyes; then
4067 continue
4068 else
4069 break
4070 fi
4071 ;;
4072 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4073 # This compiler won't grok `-c -o', but also, the minuso test has
4074 # not run yet. These depmodes are late enough in the game, and
4075 # so weak that their functioning should not be impacted.
4076 am__obj=conftest.${OBJEXT-o}
4077 am__minus_obj=
4078 ;;
4079 none) break ;;
4080 esac
4081 if depmode=$depmode \
4082 source=sub/conftest.c object=$am__obj \
4083 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4084 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4085 >/dev/null 2>conftest.err &&
4086 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4087 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4088 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4089 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4090 # icc doesn't choke on unknown options, it will just issue warnings
4091 # or remarks (even with -Werror). So we grep stderr for any message
4092 # that says an option was ignored or not supported.
4093 # When given -MP, icc 7.0 and 7.1 complain thusly:
4094 # icc: Command line warning: ignoring option '-M'; no argument required
4095 # The diagnosis changed in icc 8.0:
4096 # icc: Command line remark: option '-MP' not supported
4097 if (grep 'ignoring option' conftest.err ||
4098 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4099 am_cv_CC_dependencies_compiler_type=$depmode
4100 break
4101 fi
4102 fi
4103 done
4104
4105 cd ..
4106 rm -rf conftest.dir
4107 else
4108 am_cv_CC_dependencies_compiler_type=none
4109 fi
4110
4111 fi
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4113 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4114 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4115
4116 if
4117 test "x$enable_dependency_tracking" != xno \
4118 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4119 am__fastdepCC_TRUE=
4120 am__fastdepCC_FALSE='#'
4121 else
4122 am__fastdepCC_TRUE='#'
4123 am__fastdepCC_FALSE=
4124 fi
4125
4126
4127 case `pwd` in
4128 *\ * | *\ *)
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4130 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4131 esac
4132
4133
4134
4135 macro_version='2.4.2'
4136 macro_revision='1.3337'
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150 ltmain="$ac_aux_dir/ltmain.sh"
4151
4152 # Backslashify metacharacters that are still active within
4153 # double-quoted strings.
4154 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4155
4156 # Same as above, but do not quote variable references.
4157 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4158
4159 # Sed substitution to delay expansion of an escaped shell variable in a
4160 # double_quote_subst'ed string.
4161 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4162
4163 # Sed substitution to delay expansion of an escaped single quote.
4164 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4165
4166 # Sed substitution to avoid accidental globbing in evaled expressions
4167 no_glob_subst='s/\*/\\\*/g'
4168
4169 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4170 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4171 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4172
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4174 $as_echo_n "checking how to print strings... " >&6; }
4175 # Test print first, because it will be a builtin if present.
4176 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4177 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4178 ECHO='print -r --'
4179 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4180 ECHO='printf %s\n'
4181 else
4182 # Use this function as a fallback that always works.
4183 func_fallback_echo ()
4184 {
4185 eval 'cat <<_LTECHO_EOF
4186 $1
4187 _LTECHO_EOF'
4188 }
4189 ECHO='func_fallback_echo'
4190 fi
4191
4192 # func_echo_all arg...
4193 # Invoke $ECHO with all args, space-separated.
4194 func_echo_all ()
4195 {
4196 $ECHO ""
4197 }
4198
4199 case "$ECHO" in
4200 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4201 $as_echo "printf" >&6; } ;;
4202 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4203 $as_echo "print -r" >&6; } ;;
4204 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4205 $as_echo "cat" >&6; } ;;
4206 esac
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4222 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4223 if ${ac_cv_path_SED+:} false; then :
4224 $as_echo_n "(cached) " >&6
4225 else
4226 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4227 for ac_i in 1 2 3 4 5 6 7; do
4228 ac_script="$ac_script$as_nl$ac_script"
4229 done
4230 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4231 { ac_script=; unset ac_script;}
4232 if test -z "$SED"; then
4233 ac_path_SED_found=false
4234 # Loop through the user's path and test for each of PROGNAME-LIST
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4237 do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_prog in sed gsed; do
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4243 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4244 # Check for GNU ac_path_SED and select it if it is found.
4245 # Check for GNU $ac_path_SED
4246 case `"$ac_path_SED" --version 2>&1` in
4247 *GNU*)
4248 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4249 *)
4250 ac_count=0
4251 $as_echo_n 0123456789 >"conftest.in"
4252 while :
4253 do
4254 cat "conftest.in" "conftest.in" >"conftest.tmp"
4255 mv "conftest.tmp" "conftest.in"
4256 cp "conftest.in" "conftest.nl"
4257 $as_echo '' >> "conftest.nl"
4258 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4260 as_fn_arith $ac_count + 1 && ac_count=$as_val
4261 if test $ac_count -gt ${ac_path_SED_max-0}; then
4262 # Best one so far, save it but keep looking for a better one
4263 ac_cv_path_SED="$ac_path_SED"
4264 ac_path_SED_max=$ac_count
4265 fi
4266 # 10*(2^10) chars as input seems more than enough
4267 test $ac_count -gt 10 && break
4268 done
4269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4270 esac
4271
4272 $ac_path_SED_found && break 3
4273 done
4274 done
4275 done
4276 IFS=$as_save_IFS
4277 if test -z "$ac_cv_path_SED"; then
4278 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4279 fi
4280 else
4281 ac_cv_path_SED=$SED
4282 fi
4283
4284 fi
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4286 $as_echo "$ac_cv_path_SED" >&6; }
4287 SED="$ac_cv_path_SED"
4288 rm -f conftest.sed
4289
4290 test -z "$SED" && SED=sed
4291 Xsed="$SED -e 1s/^X//"
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4304 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4305 if ${ac_cv_path_GREP+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307 else
4308 if test -z "$GREP"; then
4309 ac_path_GREP_found=false
4310 # Loop through the user's path and test for each of PROGNAME-LIST
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4313 do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_prog in grep ggrep; do
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4319 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4320 # Check for GNU ac_path_GREP and select it if it is found.
4321 # Check for GNU $ac_path_GREP
4322 case `"$ac_path_GREP" --version 2>&1` in
4323 *GNU*)
4324 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4325 *)
4326 ac_count=0
4327 $as_echo_n 0123456789 >"conftest.in"
4328 while :
4329 do
4330 cat "conftest.in" "conftest.in" >"conftest.tmp"
4331 mv "conftest.tmp" "conftest.in"
4332 cp "conftest.in" "conftest.nl"
4333 $as_echo 'GREP' >> "conftest.nl"
4334 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4336 as_fn_arith $ac_count + 1 && ac_count=$as_val
4337 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4338 # Best one so far, save it but keep looking for a better one
4339 ac_cv_path_GREP="$ac_path_GREP"
4340 ac_path_GREP_max=$ac_count
4341 fi
4342 # 10*(2^10) chars as input seems more than enough
4343 test $ac_count -gt 10 && break
4344 done
4345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4346 esac
4347
4348 $ac_path_GREP_found && break 3
4349 done
4350 done
4351 done
4352 IFS=$as_save_IFS
4353 if test -z "$ac_cv_path_GREP"; then
4354 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4355 fi
4356 else
4357 ac_cv_path_GREP=$GREP
4358 fi
4359
4360 fi
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4362 $as_echo "$ac_cv_path_GREP" >&6; }
4363 GREP="$ac_cv_path_GREP"
4364
4365
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4367 $as_echo_n "checking for egrep... " >&6; }
4368 if ${ac_cv_path_EGREP+:} false; then :
4369 $as_echo_n "(cached) " >&6
4370 else
4371 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4372 then ac_cv_path_EGREP="$GREP -E"
4373 else
4374 if test -z "$EGREP"; then
4375 ac_path_EGREP_found=false
4376 # Loop through the user's path and test for each of PROGNAME-LIST
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4379 do
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_prog in egrep; do
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4385 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4386 # Check for GNU ac_path_EGREP and select it if it is found.
4387 # Check for GNU $ac_path_EGREP
4388 case `"$ac_path_EGREP" --version 2>&1` in
4389 *GNU*)
4390 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4391 *)
4392 ac_count=0
4393 $as_echo_n 0123456789 >"conftest.in"
4394 while :
4395 do
4396 cat "conftest.in" "conftest.in" >"conftest.tmp"
4397 mv "conftest.tmp" "conftest.in"
4398 cp "conftest.in" "conftest.nl"
4399 $as_echo 'EGREP' >> "conftest.nl"
4400 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4402 as_fn_arith $ac_count + 1 && ac_count=$as_val
4403 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4404 # Best one so far, save it but keep looking for a better one
4405 ac_cv_path_EGREP="$ac_path_EGREP"
4406 ac_path_EGREP_max=$ac_count
4407 fi
4408 # 10*(2^10) chars as input seems more than enough
4409 test $ac_count -gt 10 && break
4410 done
4411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4412 esac
4413
4414 $ac_path_EGREP_found && break 3
4415 done
4416 done
4417 done
4418 IFS=$as_save_IFS
4419 if test -z "$ac_cv_path_EGREP"; then
4420 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4421 fi
4422 else
4423 ac_cv_path_EGREP=$EGREP
4424 fi
4425
4426 fi
4427 fi
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4429 $as_echo "$ac_cv_path_EGREP" >&6; }
4430 EGREP="$ac_cv_path_EGREP"
4431
4432
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4434 $as_echo_n "checking for fgrep... " >&6; }
4435 if ${ac_cv_path_FGREP+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4439 then ac_cv_path_FGREP="$GREP -F"
4440 else
4441 if test -z "$FGREP"; then
4442 ac_path_FGREP_found=false
4443 # Loop through the user's path and test for each of PROGNAME-LIST
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4446 do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_prog in fgrep; do
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4452 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4453 # Check for GNU ac_path_FGREP and select it if it is found.
4454 # Check for GNU $ac_path_FGREP
4455 case `"$ac_path_FGREP" --version 2>&1` in
4456 *GNU*)
4457 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4458 *)
4459 ac_count=0
4460 $as_echo_n 0123456789 >"conftest.in"
4461 while :
4462 do
4463 cat "conftest.in" "conftest.in" >"conftest.tmp"
4464 mv "conftest.tmp" "conftest.in"
4465 cp "conftest.in" "conftest.nl"
4466 $as_echo 'FGREP' >> "conftest.nl"
4467 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4469 as_fn_arith $ac_count + 1 && ac_count=$as_val
4470 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4471 # Best one so far, save it but keep looking for a better one
4472 ac_cv_path_FGREP="$ac_path_FGREP"
4473 ac_path_FGREP_max=$ac_count
4474 fi
4475 # 10*(2^10) chars as input seems more than enough
4476 test $ac_count -gt 10 && break
4477 done
4478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4479 esac
4480
4481 $ac_path_FGREP_found && break 3
4482 done
4483 done
4484 done
4485 IFS=$as_save_IFS
4486 if test -z "$ac_cv_path_FGREP"; then
4487 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4488 fi
4489 else
4490 ac_cv_path_FGREP=$FGREP
4491 fi
4492
4493 fi
4494 fi
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4496 $as_echo "$ac_cv_path_FGREP" >&6; }
4497 FGREP="$ac_cv_path_FGREP"
4498
4499
4500 test -z "$GREP" && GREP=grep
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520 # Check whether --with-gnu-ld was given.
4521 if test "${with_gnu_ld+set}" = set; then :
4522 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4523 else
4524 with_gnu_ld=no
4525 fi
4526
4527 ac_prog=ld
4528 if test "$GCC" = yes; then
4529 # Check if gcc -print-prog-name=ld gives a path.
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4531 $as_echo_n "checking for ld used by $CC... " >&6; }
4532 case $host in
4533 *-*-mingw*)
4534 # gcc leaves a trailing carriage return which upsets mingw
4535 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4536 *)
4537 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4538 esac
4539 case $ac_prog in
4540 # Accept absolute paths.
4541 [\\/]* | ?:[\\/]*)
4542 re_direlt='/[^/][^/]*/\.\./'
4543 # Canonicalize the pathname of ld
4544 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4545 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4546 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4547 done
4548 test -z "$LD" && LD="$ac_prog"
4549 ;;
4550 "")
4551 # If it fails, then pretend we aren't using GCC.
4552 ac_prog=ld
4553 ;;
4554 *)
4555 # If it is relative, then search for the first ld in PATH.
4556 with_gnu_ld=unknown
4557 ;;
4558 esac
4559 elif test "$with_gnu_ld" = yes; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4561 $as_echo_n "checking for GNU ld... " >&6; }
4562 else
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4564 $as_echo_n "checking for non-GNU ld... " >&6; }
4565 fi
4566 if ${lt_cv_path_LD+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 if test -z "$LD"; then
4570 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4571 for ac_dir in $PATH; do
4572 IFS="$lt_save_ifs"
4573 test -z "$ac_dir" && ac_dir=.
4574 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4575 lt_cv_path_LD="$ac_dir/$ac_prog"
4576 # Check to see if the program is GNU ld. I'd rather use --version,
4577 # but apparently some variants of GNU ld only accept -v.
4578 # Break only if it was the GNU/non-GNU ld that we prefer.
4579 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4580 *GNU* | *'with BFD'*)
4581 test "$with_gnu_ld" != no && break
4582 ;;
4583 *)
4584 test "$with_gnu_ld" != yes && break
4585 ;;
4586 esac
4587 fi
4588 done
4589 IFS="$lt_save_ifs"
4590 else
4591 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4592 fi
4593 fi
4594
4595 LD="$lt_cv_path_LD"
4596 if test -n "$LD"; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4598 $as_echo "$LD" >&6; }
4599 else
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4602 fi
4603 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4605 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4606 if ${lt_cv_prog_gnu_ld+:} false; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4610 case `$LD -v 2>&1 </dev/null` in
4611 *GNU* | *'with BFD'*)
4612 lt_cv_prog_gnu_ld=yes
4613 ;;
4614 *)
4615 lt_cv_prog_gnu_ld=no
4616 ;;
4617 esac
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4620 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4621 with_gnu_ld=$lt_cv_prog_gnu_ld
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4632 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4633 if ${lt_cv_path_NM+:} false; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 if test -n "$NM"; then
4637 # Let the user override the test.
4638 lt_cv_path_NM="$NM"
4639 else
4640 lt_nm_to_check="${ac_tool_prefix}nm"
4641 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4642 lt_nm_to_check="$lt_nm_to_check nm"
4643 fi
4644 for lt_tmp_nm in $lt_nm_to_check; do
4645 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4646 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4647 IFS="$lt_save_ifs"
4648 test -z "$ac_dir" && ac_dir=.
4649 tmp_nm="$ac_dir/$lt_tmp_nm"
4650 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4651 # Check to see if the nm accepts a BSD-compat flag.
4652 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4653 # nm: unknown option "B" ignored
4654 # Tru64's nm complains that /dev/null is an invalid object file
4655 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4656 */dev/null* | *'Invalid file or object type'*)
4657 lt_cv_path_NM="$tmp_nm -B"
4658 break
4659 ;;
4660 *)
4661 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4662 */dev/null*)
4663 lt_cv_path_NM="$tmp_nm -p"
4664 break
4665 ;;
4666 *)
4667 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4668 continue # so that we can try to find one that supports BSD flags
4669 ;;
4670 esac
4671 ;;
4672 esac
4673 fi
4674 done
4675 IFS="$lt_save_ifs"
4676 done
4677 : ${lt_cv_path_NM=no}
4678 fi
4679 fi
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4681 $as_echo "$lt_cv_path_NM" >&6; }
4682 if test "$lt_cv_path_NM" != "no"; then
4683 NM="$lt_cv_path_NM"
4684 else
4685 # Didn't find any BSD compatible name lister, look for dumpbin.
4686 if test -n "$DUMPBIN"; then :
4687 # Let the user override the test.
4688 else
4689 if test -n "$ac_tool_prefix"; then
4690 for ac_prog in dumpbin "link -dump"
4691 do
4692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if ${ac_cv_prog_DUMPBIN+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 if test -n "$DUMPBIN"; then
4700 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4704 do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4712 fi
4713 done
4714 done
4715 IFS=$as_save_IFS
4716
4717 fi
4718 fi
4719 DUMPBIN=$ac_cv_prog_DUMPBIN
4720 if test -n "$DUMPBIN"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4722 $as_echo "$DUMPBIN" >&6; }
4723 else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4726 fi
4727
4728
4729 test -n "$DUMPBIN" && break
4730 done
4731 fi
4732 if test -z "$DUMPBIN"; then
4733 ac_ct_DUMPBIN=$DUMPBIN
4734 for ac_prog in dumpbin "link -dump"
4735 do
4736 # Extract the first word of "$ac_prog", so it can be a program name with args.
4737 set dummy $ac_prog; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 if test -n "$ac_ct_DUMPBIN"; then
4744 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4756 fi
4757 done
4758 done
4759 IFS=$as_save_IFS
4760
4761 fi
4762 fi
4763 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4764 if test -n "$ac_ct_DUMPBIN"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4766 $as_echo "$ac_ct_DUMPBIN" >&6; }
4767 else
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4770 fi
4771
4772
4773 test -n "$ac_ct_DUMPBIN" && break
4774 done
4775
4776 if test "x$ac_ct_DUMPBIN" = x; then
4777 DUMPBIN=":"
4778 else
4779 case $cross_compiling:$ac_tool_warned in
4780 yes:)
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4783 ac_tool_warned=yes ;;
4784 esac
4785 DUMPBIN=$ac_ct_DUMPBIN
4786 fi
4787 fi
4788
4789 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4790 *COFF*)
4791 DUMPBIN="$DUMPBIN -symbols"
4792 ;;
4793 *)
4794 DUMPBIN=:
4795 ;;
4796 esac
4797 fi
4798
4799 if test "$DUMPBIN" != ":"; then
4800 NM="$DUMPBIN"
4801 fi
4802 fi
4803 test -z "$NM" && NM=nm
4804
4805
4806
4807
4808
4809
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4811 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4812 if ${lt_cv_nm_interface+:} false; then :
4813 $as_echo_n "(cached) " >&6
4814 else
4815 lt_cv_nm_interface="BSD nm"
4816 echo "int some_variable = 0;" > conftest.$ac_ext
4817 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4818 (eval "$ac_compile" 2>conftest.err)
4819 cat conftest.err >&5
4820 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4821 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4822 cat conftest.err >&5
4823 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4824 cat conftest.out >&5
4825 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4826 lt_cv_nm_interface="MS dumpbin"
4827 fi
4828 rm -f conftest*
4829 fi
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4831 $as_echo "$lt_cv_nm_interface" >&6; }
4832
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4834 $as_echo_n "checking whether ln -s works... " >&6; }
4835 LN_S=$as_ln_s
4836 if test "$LN_S" = "ln -s"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4838 $as_echo "yes" >&6; }
4839 else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4841 $as_echo "no, using $LN_S" >&6; }
4842 fi
4843
4844 # find the maximum length of command line arguments
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4846 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4847 if ${lt_cv_sys_max_cmd_len+:} false; then :
4848 $as_echo_n "(cached) " >&6
4849 else
4850 i=0
4851 teststring="ABCD"
4852
4853 case $build_os in
4854 msdosdjgpp*)
4855 # On DJGPP, this test can blow up pretty badly due to problems in libc
4856 # (any single argument exceeding 2000 bytes causes a buffer overrun
4857 # during glob expansion). Even if it were fixed, the result of this
4858 # check would be larger than it should be.
4859 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4860 ;;
4861
4862 gnu*)
4863 # Under GNU Hurd, this test is not required because there is
4864 # no limit to the length of command line arguments.
4865 # Libtool will interpret -1 as no limit whatsoever
4866 lt_cv_sys_max_cmd_len=-1;
4867 ;;
4868
4869 cygwin* | mingw* | cegcc*)
4870 # On Win9x/ME, this test blows up -- it succeeds, but takes
4871 # about 5 minutes as the teststring grows exponentially.
4872 # Worse, since 9x/ME are not pre-emptively multitasking,
4873 # you end up with a "frozen" computer, even though with patience
4874 # the test eventually succeeds (with a max line length of 256k).
4875 # Instead, let's just punt: use the minimum linelength reported by
4876 # all of the supported platforms: 8192 (on NT/2K/XP).
4877 lt_cv_sys_max_cmd_len=8192;
4878 ;;
4879
4880 mint*)
4881 # On MiNT this can take a long time and run out of memory.
4882 lt_cv_sys_max_cmd_len=8192;
4883 ;;
4884
4885 amigaos*)
4886 # On AmigaOS with pdksh, this test takes hours, literally.
4887 # So we just punt and use a minimum line length of 8192.
4888 lt_cv_sys_max_cmd_len=8192;
4889 ;;
4890
4891 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4892 # This has been around since 386BSD, at least. Likely further.
4893 if test -x /sbin/sysctl; then
4894 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4895 elif test -x /usr/sbin/sysctl; then
4896 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4897 else
4898 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4899 fi
4900 # And add a safety zone
4901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4903 ;;
4904
4905 interix*)
4906 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4907 lt_cv_sys_max_cmd_len=196608
4908 ;;
4909
4910 os2*)
4911 # The test takes a long time on OS/2.
4912 lt_cv_sys_max_cmd_len=8192
4913 ;;
4914
4915 osf*)
4916 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4917 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4918 # nice to cause kernel panics so lets avoid the loop below.
4919 # First set a reasonable default.
4920 lt_cv_sys_max_cmd_len=16384
4921 #
4922 if test -x /sbin/sysconfig; then
4923 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4924 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4925 esac
4926 fi
4927 ;;
4928 sco3.2v5*)
4929 lt_cv_sys_max_cmd_len=102400
4930 ;;
4931 sysv5* | sco5v6* | sysv4.2uw2*)
4932 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4933 if test -n "$kargmax"; then
4934 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4935 else
4936 lt_cv_sys_max_cmd_len=32768
4937 fi
4938 ;;
4939 *)
4940 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4941 if test -n "$lt_cv_sys_max_cmd_len"; then
4942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4944 else
4945 # Make teststring a little bigger before we do anything with it.
4946 # a 1K string should be a reasonable start.
4947 for i in 1 2 3 4 5 6 7 8 ; do
4948 teststring=$teststring$teststring
4949 done
4950 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4951 # If test is not a shell built-in, we'll probably end up computing a
4952 # maximum length that is only half of the actual maximum length, but
4953 # we can't tell.
4954 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4955 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4956 test $i != 17 # 1/2 MB should be enough
4957 do
4958 i=`expr $i + 1`
4959 teststring=$teststring$teststring
4960 done
4961 # Only check the string length outside the loop.
4962 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4963 teststring=
4964 # Add a significant safety factor because C++ compilers can tack on
4965 # massive amounts of additional arguments before passing them to the
4966 # linker. It appears as though 1/2 is a usable value.
4967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4968 fi
4969 ;;
4970 esac
4971
4972 fi
4973
4974 if test -n $lt_cv_sys_max_cmd_len ; then
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4976 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4977 else
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4979 $as_echo "none" >&6; }
4980 fi
4981 max_cmd_len=$lt_cv_sys_max_cmd_len
4982
4983
4984
4985
4986
4987
4988 : ${CP="cp -f"}
4989 : ${MV="mv -f"}
4990 : ${RM="rm -f"}
4991
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4993 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4994 # Try some XSI features
4995 xsi_shell=no
4996 ( _lt_dummy="a/b/c"
4997 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4998 = c,a/b,b/c, \
4999 && eval 'test $(( 1 + 1 )) -eq 2 \
5000 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5001 && xsi_shell=yes
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5003 $as_echo "$xsi_shell" >&6; }
5004
5005
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5007 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5008 lt_shell_append=no
5009 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5010 >/dev/null 2>&1 \
5011 && lt_shell_append=yes
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5013 $as_echo "$lt_shell_append" >&6; }
5014
5015
5016 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5017 lt_unset=unset
5018 else
5019 lt_unset=false
5020 fi
5021
5022
5023
5024
5025
5026 # test EBCDIC or ASCII
5027 case `echo X|tr X '\101'` in
5028 A) # ASCII based system
5029 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5030 lt_SP2NL='tr \040 \012'
5031 lt_NL2SP='tr \015\012 \040\040'
5032 ;;
5033 *) # EBCDIC based system
5034 lt_SP2NL='tr \100 \n'
5035 lt_NL2SP='tr \r\n \100\100'
5036 ;;
5037 esac
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5048 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5049 if ${lt_cv_to_host_file_cmd+:} false; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 case $host in
5053 *-*-mingw* )
5054 case $build in
5055 *-*-mingw* ) # actually msys
5056 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5057 ;;
5058 *-*-cygwin* )
5059 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5060 ;;
5061 * ) # otherwise, assume *nix
5062 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5063 ;;
5064 esac
5065 ;;
5066 *-*-cygwin* )
5067 case $build in
5068 *-*-mingw* ) # actually msys
5069 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5070 ;;
5071 *-*-cygwin* )
5072 lt_cv_to_host_file_cmd=func_convert_file_noop
5073 ;;
5074 * ) # otherwise, assume *nix
5075 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5076 ;;
5077 esac
5078 ;;
5079 * ) # unhandled hosts (and "normal" native builds)
5080 lt_cv_to_host_file_cmd=func_convert_file_noop
5081 ;;
5082 esac
5083
5084 fi
5085
5086 to_host_file_cmd=$lt_cv_to_host_file_cmd
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5088 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5089
5090
5091
5092
5093
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5095 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5096 if ${lt_cv_to_tool_file_cmd+:} false; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 #assume ordinary cross tools, or native build.
5100 lt_cv_to_tool_file_cmd=func_convert_file_noop
5101 case $host in
5102 *-*-mingw* )
5103 case $build in
5104 *-*-mingw* ) # actually msys
5105 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5106 ;;
5107 esac
5108 ;;
5109 esac
5110
5111 fi
5112
5113 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5115 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5116
5117
5118
5119
5120
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5122 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5123 if ${lt_cv_ld_reload_flag+:} false; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 lt_cv_ld_reload_flag='-r'
5127 fi
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5129 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5130 reload_flag=$lt_cv_ld_reload_flag
5131 case $reload_flag in
5132 "" | " "*) ;;
5133 *) reload_flag=" $reload_flag" ;;
5134 esac
5135 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5136 case $host_os in
5137 cygwin* | mingw* | pw32* | cegcc*)
5138 if test "$GCC" != yes; then
5139 reload_cmds=false
5140 fi
5141 ;;
5142 darwin*)
5143 if test "$GCC" = yes; then
5144 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5145 else
5146 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5147 fi
5148 ;;
5149 esac
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159 if test -n "$ac_tool_prefix"; then
5160 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5161 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163 $as_echo_n "checking for $ac_word... " >&6; }
5164 if ${ac_cv_prog_OBJDUMP+:} false; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 if test -n "$OBJDUMP"; then
5168 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5169 else
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5172 do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5180 fi
5181 done
5182 done
5183 IFS=$as_save_IFS
5184
5185 fi
5186 fi
5187 OBJDUMP=$ac_cv_prog_OBJDUMP
5188 if test -n "$OBJDUMP"; then
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5190 $as_echo "$OBJDUMP" >&6; }
5191 else
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193 $as_echo "no" >&6; }
5194 fi
5195
5196
5197 fi
5198 if test -z "$ac_cv_prog_OBJDUMP"; then
5199 ac_ct_OBJDUMP=$OBJDUMP
5200 # Extract the first word of "objdump", so it can be a program name with args.
5201 set dummy objdump; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 if test -n "$ac_ct_OBJDUMP"; then
5208 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5217 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5220 fi
5221 done
5222 done
5223 IFS=$as_save_IFS
5224
5225 fi
5226 fi
5227 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5228 if test -n "$ac_ct_OBJDUMP"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5230 $as_echo "$ac_ct_OBJDUMP" >&6; }
5231 else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234 fi
5235
5236 if test "x$ac_ct_OBJDUMP" = x; then
5237 OBJDUMP="false"
5238 else
5239 case $cross_compiling:$ac_tool_warned in
5240 yes:)
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5243 ac_tool_warned=yes ;;
5244 esac
5245 OBJDUMP=$ac_ct_OBJDUMP
5246 fi
5247 else
5248 OBJDUMP="$ac_cv_prog_OBJDUMP"
5249 fi
5250
5251 test -z "$OBJDUMP" && OBJDUMP=objdump
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5262 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5263 if ${lt_cv_deplibs_check_method+:} false; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 lt_cv_file_magic_cmd='$MAGIC_CMD'
5267 lt_cv_file_magic_test_file=
5268 lt_cv_deplibs_check_method='unknown'
5269 # Need to set the preceding variable on all platforms that support
5270 # interlibrary dependencies.
5271 # 'none' -- dependencies not supported.
5272 # `unknown' -- same as none, but documents that we really don't know.
5273 # 'pass_all' -- all dependencies passed with no checks.
5274 # 'test_compile' -- check by making test program.
5275 # 'file_magic [[regex]]' -- check by looking for files in library path
5276 # which responds to the $file_magic_cmd with a given extended regex.
5277 # If you have `file' or equivalent on your system and you're not sure
5278 # whether `pass_all' will *always* work, you probably want this one.
5279
5280 case $host_os in
5281 aix[4-9]*)
5282 lt_cv_deplibs_check_method=pass_all
5283 ;;
5284
5285 beos*)
5286 lt_cv_deplibs_check_method=pass_all
5287 ;;
5288
5289 bsdi[45]*)
5290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5291 lt_cv_file_magic_cmd='/usr/bin/file -L'
5292 lt_cv_file_magic_test_file=/shlib/libc.so
5293 ;;
5294
5295 cygwin*)
5296 # func_win32_libid is a shell function defined in ltmain.sh
5297 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5298 lt_cv_file_magic_cmd='func_win32_libid'
5299 ;;
5300
5301 mingw* | pw32*)
5302 # Base MSYS/MinGW do not provide the 'file' command needed by
5303 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5304 # unless we find 'file', for example because we are cross-compiling.
5305 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5306 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5307 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5308 lt_cv_file_magic_cmd='func_win32_libid'
5309 else
5310 # Keep this pattern in sync with the one in func_win32_libid.
5311 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5312 lt_cv_file_magic_cmd='$OBJDUMP -f'
5313 fi
5314 ;;
5315
5316 cegcc*)
5317 # use the weaker test based on 'objdump'. See mingw*.
5318 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5319 lt_cv_file_magic_cmd='$OBJDUMP -f'
5320 ;;
5321
5322 darwin* | rhapsody*)
5323 lt_cv_deplibs_check_method=pass_all
5324 ;;
5325
5326 freebsd* | dragonfly*)
5327 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5328 case $host_cpu in
5329 i*86 )
5330 # Not sure whether the presence of OpenBSD here was a mistake.
5331 # Let's accept both of them until this is cleared up.
5332 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5333 lt_cv_file_magic_cmd=/usr/bin/file
5334 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5335 ;;
5336 esac
5337 else
5338 lt_cv_deplibs_check_method=pass_all
5339 fi
5340 ;;
5341
5342 gnu*)
5343 lt_cv_deplibs_check_method=pass_all
5344 ;;
5345
5346 haiku*)
5347 lt_cv_deplibs_check_method=pass_all
5348 ;;
5349
5350 hpux10.20* | hpux11*)
5351 lt_cv_file_magic_cmd=/usr/bin/file
5352 case $host_cpu in
5353 ia64*)
5354 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5355 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5356 ;;
5357 hppa*64*)
5358 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5359 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5360 ;;
5361 *)
5362 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5363 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5364 ;;
5365 esac
5366 ;;
5367
5368 interix[3-9]*)
5369 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5371 ;;
5372
5373 irix5* | irix6* | nonstopux*)
5374 case $LD in
5375 *-32|*"-32 ") libmagic=32-bit;;
5376 *-n32|*"-n32 ") libmagic=N32;;
5377 *-64|*"-64 ") libmagic=64-bit;;
5378 *) libmagic=never-match;;
5379 esac
5380 lt_cv_deplibs_check_method=pass_all
5381 ;;
5382
5383 # This must be glibc/ELF.
5384 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5385 lt_cv_deplibs_check_method=pass_all
5386 ;;
5387
5388 netbsd* | netbsdelf*-gnu)
5389 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5391 else
5392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5393 fi
5394 ;;
5395
5396 newos6*)
5397 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5398 lt_cv_file_magic_cmd=/usr/bin/file
5399 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5400 ;;
5401
5402 *nto* | *qnx*)
5403 lt_cv_deplibs_check_method=pass_all
5404 ;;
5405
5406 openbsd*)
5407 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5409 else
5410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5411 fi
5412 ;;
5413
5414 osf3* | osf4* | osf5*)
5415 lt_cv_deplibs_check_method=pass_all
5416 ;;
5417
5418 rdos*)
5419 lt_cv_deplibs_check_method=pass_all
5420 ;;
5421
5422 solaris*)
5423 lt_cv_deplibs_check_method=pass_all
5424 ;;
5425
5426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5427 lt_cv_deplibs_check_method=pass_all
5428 ;;
5429
5430 sysv4 | sysv4.3*)
5431 case $host_vendor in
5432 motorola)
5433 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]'
5434 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5435 ;;
5436 ncr)
5437 lt_cv_deplibs_check_method=pass_all
5438 ;;
5439 sequent)
5440 lt_cv_file_magic_cmd='/bin/file'
5441 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5442 ;;
5443 sni)
5444 lt_cv_file_magic_cmd='/bin/file'
5445 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5446 lt_cv_file_magic_test_file=/lib/libc.so
5447 ;;
5448 siemens)
5449 lt_cv_deplibs_check_method=pass_all
5450 ;;
5451 pc)
5452 lt_cv_deplibs_check_method=pass_all
5453 ;;
5454 esac
5455 ;;
5456
5457 tpf*)
5458 lt_cv_deplibs_check_method=pass_all
5459 ;;
5460 esac
5461
5462 fi
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5464 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5465
5466 file_magic_glob=
5467 want_nocaseglob=no
5468 if test "$build" = "$host"; then
5469 case $host_os in
5470 mingw* | pw32*)
5471 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5472 want_nocaseglob=yes
5473 else
5474 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5475 fi
5476 ;;
5477 esac
5478 fi
5479
5480 file_magic_cmd=$lt_cv_file_magic_cmd
5481 deplibs_check_method=$lt_cv_deplibs_check_method
5482 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505 if test -n "$ac_tool_prefix"; then
5506 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5507 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if ${ac_cv_prog_DLLTOOL+:} false; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 if test -n "$DLLTOOL"; then
5514 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5515 else
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5518 do
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5526 fi
5527 done
5528 done
5529 IFS=$as_save_IFS
5530
5531 fi
5532 fi
5533 DLLTOOL=$ac_cv_prog_DLLTOOL
5534 if test -n "$DLLTOOL"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5536 $as_echo "$DLLTOOL" >&6; }
5537 else
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5540 fi
5541
5542
5543 fi
5544 if test -z "$ac_cv_prog_DLLTOOL"; then
5545 ac_ct_DLLTOOL=$DLLTOOL
5546 # Extract the first word of "dlltool", so it can be a program name with args.
5547 set dummy dlltool; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 if test -n "$ac_ct_DLLTOOL"; then
5554 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5555 else
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5558 do
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5566 fi
5567 done
5568 done
5569 IFS=$as_save_IFS
5570
5571 fi
5572 fi
5573 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5574 if test -n "$ac_ct_DLLTOOL"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5576 $as_echo "$ac_ct_DLLTOOL" >&6; }
5577 else
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5580 fi
5581
5582 if test "x$ac_ct_DLLTOOL" = x; then
5583 DLLTOOL="false"
5584 else
5585 case $cross_compiling:$ac_tool_warned in
5586 yes:)
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5589 ac_tool_warned=yes ;;
5590 esac
5591 DLLTOOL=$ac_ct_DLLTOOL
5592 fi
5593 else
5594 DLLTOOL="$ac_cv_prog_DLLTOOL"
5595 fi
5596
5597 test -z "$DLLTOOL" && DLLTOOL=dlltool
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5609 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5610 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 lt_cv_sharedlib_from_linklib_cmd='unknown'
5614
5615 case $host_os in
5616 cygwin* | mingw* | pw32* | cegcc*)
5617 # two different shell functions defined in ltmain.sh
5618 # decide which to use based on capabilities of $DLLTOOL
5619 case `$DLLTOOL --help 2>&1` in
5620 *--identify-strict*)
5621 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5622 ;;
5623 *)
5624 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5625 ;;
5626 esac
5627 ;;
5628 *)
5629 # fallback: assume linklib IS sharedlib
5630 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5631 ;;
5632 esac
5633
5634 fi
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5636 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5637 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5638 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5639
5640
5641
5642
5643
5644
5645
5646
5647 if test -n "$ac_tool_prefix"; then
5648 for ac_prog in ar
5649 do
5650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653 $as_echo_n "checking for $ac_word... " >&6; }
5654 if ${ac_cv_prog_AR+:} false; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 if test -n "$AR"; then
5658 ac_cv_prog_AR="$AR" # Let the user override the test.
5659 else
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 for as_dir in $PATH
5662 do
5663 IFS=$as_save_IFS
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5667 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 break 2
5670 fi
5671 done
5672 done
5673 IFS=$as_save_IFS
5674
5675 fi
5676 fi
5677 AR=$ac_cv_prog_AR
5678 if test -n "$AR"; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5680 $as_echo "$AR" >&6; }
5681 else
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }
5684 fi
5685
5686
5687 test -n "$AR" && break
5688 done
5689 fi
5690 if test -z "$AR"; then
5691 ac_ct_AR=$AR
5692 for ac_prog in ar
5693 do
5694 # Extract the first word of "$ac_prog", so it can be a program name with args.
5695 set dummy $ac_prog; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 if test -n "$ac_ct_AR"; then
5702 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5703 else
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5706 do
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5711 ac_cv_prog_ac_ct_AR="$ac_prog"
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5714 fi
5715 done
5716 done
5717 IFS=$as_save_IFS
5718
5719 fi
5720 fi
5721 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5722 if test -n "$ac_ct_AR"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5724 $as_echo "$ac_ct_AR" >&6; }
5725 else
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 $as_echo "no" >&6; }
5728 fi
5729
5730
5731 test -n "$ac_ct_AR" && break
5732 done
5733
5734 if test "x$ac_ct_AR" = x; then
5735 AR="false"
5736 else
5737 case $cross_compiling:$ac_tool_warned in
5738 yes:)
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5741 ac_tool_warned=yes ;;
5742 esac
5743 AR=$ac_ct_AR
5744 fi
5745 fi
5746
5747 : ${AR=ar}
5748 : ${AR_FLAGS=cru}
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5761 $as_echo_n "checking for archiver @FILE support... " >&6; }
5762 if ${lt_cv_ar_at_file+:} false; then :
5763 $as_echo_n "(cached) " >&6
5764 else
5765 lt_cv_ar_at_file=no
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5768
5769 int
5770 main ()
5771 {
5772
5773 ;
5774 return 0;
5775 }
5776 _ACEOF
5777 if ac_fn_c_try_compile "$LINENO"; then :
5778 echo conftest.$ac_objext > conftest.lst
5779 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5781 (eval $lt_ar_try) 2>&5
5782 ac_status=$?
5783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5784 test $ac_status = 0; }
5785 if test "$ac_status" -eq 0; then
5786 # Ensure the archiver fails upon bogus file names.
5787 rm -f conftest.$ac_objext libconftest.a
5788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5789 (eval $lt_ar_try) 2>&5
5790 ac_status=$?
5791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5792 test $ac_status = 0; }
5793 if test "$ac_status" -ne 0; then
5794 lt_cv_ar_at_file=@
5795 fi
5796 fi
5797 rm -f conftest.* libconftest.a
5798
5799 fi
5800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801
5802 fi
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5804 $as_echo "$lt_cv_ar_at_file" >&6; }
5805
5806 if test "x$lt_cv_ar_at_file" = xno; then
5807 archiver_list_spec=
5808 else
5809 archiver_list_spec=$lt_cv_ar_at_file
5810 fi
5811
5812
5813
5814
5815
5816
5817
5818 if test -n "$ac_tool_prefix"; then
5819 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5820 set dummy ${ac_tool_prefix}strip; ac_word=$2
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822 $as_echo_n "checking for $ac_word... " >&6; }
5823 if ${ac_cv_prog_STRIP+:} false; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 if test -n "$STRIP"; then
5827 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5828 else
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 for as_dir in $PATH
5831 do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 break 2
5839 fi
5840 done
5841 done
5842 IFS=$as_save_IFS
5843
5844 fi
5845 fi
5846 STRIP=$ac_cv_prog_STRIP
5847 if test -n "$STRIP"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5849 $as_echo "$STRIP" >&6; }
5850 else
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 $as_echo "no" >&6; }
5853 fi
5854
5855
5856 fi
5857 if test -z "$ac_cv_prog_STRIP"; then
5858 ac_ct_STRIP=$STRIP
5859 # Extract the first word of "strip", so it can be a program name with args.
5860 set dummy strip; ac_word=$2
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 $as_echo_n "checking for $ac_word... " >&6; }
5863 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5864 $as_echo_n "(cached) " >&6
5865 else
5866 if test -n "$ac_ct_STRIP"; then
5867 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5868 else
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5871 do
5872 IFS=$as_save_IFS
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876 ac_cv_prog_ac_ct_STRIP="strip"
5877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878 break 2
5879 fi
5880 done
5881 done
5882 IFS=$as_save_IFS
5883
5884 fi
5885 fi
5886 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5887 if test -n "$ac_ct_STRIP"; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5889 $as_echo "$ac_ct_STRIP" >&6; }
5890 else
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892 $as_echo "no" >&6; }
5893 fi
5894
5895 if test "x$ac_ct_STRIP" = x; then
5896 STRIP=":"
5897 else
5898 case $cross_compiling:$ac_tool_warned in
5899 yes:)
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5902 ac_tool_warned=yes ;;
5903 esac
5904 STRIP=$ac_ct_STRIP
5905 fi
5906 else
5907 STRIP="$ac_cv_prog_STRIP"
5908 fi
5909
5910 test -z "$STRIP" && STRIP=:
5911
5912
5913
5914
5915
5916
5917 if test -n "$ac_tool_prefix"; then
5918 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5919 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921 $as_echo_n "checking for $ac_word... " >&6; }
5922 if ${ac_cv_prog_RANLIB+:} false; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 if test -n "$RANLIB"; then
5926 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 break 2
5938 fi
5939 done
5940 done
5941 IFS=$as_save_IFS
5942
5943 fi
5944 fi
5945 RANLIB=$ac_cv_prog_RANLIB
5946 if test -n "$RANLIB"; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5948 $as_echo "$RANLIB" >&6; }
5949 else
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5952 fi
5953
5954
5955 fi
5956 if test -z "$ac_cv_prog_RANLIB"; then
5957 ac_ct_RANLIB=$RANLIB
5958 # Extract the first word of "ranlib", so it can be a program name with args.
5959 set dummy ranlib; ac_word=$2
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5961 $as_echo_n "checking for $ac_word... " >&6; }
5962 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 if test -n "$ac_ct_RANLIB"; then
5966 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5967 else
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_prog_ac_ct_RANLIB="ranlib"
5976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 break 2
5978 fi
5979 done
5980 done
5981 IFS=$as_save_IFS
5982
5983 fi
5984 fi
5985 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5986 if test -n "$ac_ct_RANLIB"; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5988 $as_echo "$ac_ct_RANLIB" >&6; }
5989 else
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991 $as_echo "no" >&6; }
5992 fi
5993
5994 if test "x$ac_ct_RANLIB" = x; then
5995 RANLIB=":"
5996 else
5997 case $cross_compiling:$ac_tool_warned in
5998 yes:)
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6001 ac_tool_warned=yes ;;
6002 esac
6003 RANLIB=$ac_ct_RANLIB
6004 fi
6005 else
6006 RANLIB="$ac_cv_prog_RANLIB"
6007 fi
6008
6009 test -z "$RANLIB" && RANLIB=:
6010
6011
6012
6013
6014
6015
6016 # Determine commands to create old-style static archives.
6017 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6018 old_postinstall_cmds='chmod 644 $oldlib'
6019 old_postuninstall_cmds=
6020
6021 if test -n "$RANLIB"; then
6022 case $host_os in
6023 openbsd*)
6024 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6025 ;;
6026 *)
6027 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6028 ;;
6029 esac
6030 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6031 fi
6032
6033 case $host_os in
6034 darwin*)
6035 lock_old_archive_extraction=yes ;;
6036 *)
6037 lock_old_archive_extraction=no ;;
6038 esac
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078 # If no C compiler was specified, use CC.
6079 LTCC=${LTCC-"$CC"}
6080
6081 # If no C compiler flags were specified, use CFLAGS.
6082 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6083
6084 # Allow CC to be a program name with arguments.
6085 compiler=$CC
6086
6087
6088 # Check for command to grab the raw symbol name followed by C symbol from nm.
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6090 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6091 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6092 $as_echo_n "(cached) " >&6
6093 else
6094
6095 # These are sane defaults that work on at least a few old systems.
6096 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6097
6098 # Character class describing NM global symbol codes.
6099 symcode='[BCDEGRST]'
6100
6101 # Regexp to match symbols that can be accessed directly from C.
6102 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6103
6104 # Define system-specific variables.
6105 case $host_os in
6106 aix*)
6107 symcode='[BCDT]'
6108 ;;
6109 cygwin* | mingw* | pw32* | cegcc*)
6110 symcode='[ABCDGISTW]'
6111 ;;
6112 hpux*)
6113 if test "$host_cpu" = ia64; then
6114 symcode='[ABCDEGRST]'
6115 fi
6116 ;;
6117 irix* | nonstopux*)
6118 symcode='[BCDEGRST]'
6119 ;;
6120 osf*)
6121 symcode='[BCDEGQRST]'
6122 ;;
6123 solaris*)
6124 symcode='[BDRT]'
6125 ;;
6126 sco3.2v5*)
6127 symcode='[DT]'
6128 ;;
6129 sysv4.2uw2*)
6130 symcode='[DT]'
6131 ;;
6132 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6133 symcode='[ABDT]'
6134 ;;
6135 sysv4)
6136 symcode='[DFNSTU]'
6137 ;;
6138 esac
6139
6140 # If we're using GNU nm, then use its standard symbol codes.
6141 case `$NM -V 2>&1` in
6142 *GNU* | *'with BFD'*)
6143 symcode='[ABCDGIRSTW]' ;;
6144 esac
6145
6146 # Transform an extracted symbol line into a proper C declaration.
6147 # Some systems (esp. on ia64) link data and code symbols differently,
6148 # so use this general approach.
6149 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6150
6151 # Transform an extracted symbol line into symbol name and symbol address
6152 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6153 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'"
6154
6155 # Handle CRLF in mingw tool chain
6156 opt_cr=
6157 case $build_os in
6158 mingw*)
6159 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6160 ;;
6161 esac
6162
6163 # Try without a prefix underscore, then with it.
6164 for ac_symprfx in "" "_"; do
6165
6166 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6167 symxfrm="\\1 $ac_symprfx\\2 \\2"
6168
6169 # Write the raw and C identifiers.
6170 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6171 # Fake it for dumpbin and say T for any non-static function
6172 # and D for any global variable.
6173 # Also find C++ and __fastcall symbols from MSVC++,
6174 # which start with @ or ?.
6175 lt_cv_sys_global_symbol_pipe="$AWK '"\
6176 " {last_section=section; section=\$ 3};"\
6177 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6178 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6179 " \$ 0!~/External *\|/{next};"\
6180 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6181 " {if(hide[section]) next};"\
6182 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6183 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6184 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6185 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6186 " ' prfx=^$ac_symprfx"
6187 else
6188 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6189 fi
6190 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6191
6192 # Check to see that the pipe works correctly.
6193 pipe_works=no
6194
6195 rm -f conftest*
6196 cat > conftest.$ac_ext <<_LT_EOF
6197 #ifdef __cplusplus
6198 extern "C" {
6199 #endif
6200 char nm_test_var;
6201 void nm_test_func(void);
6202 void nm_test_func(void){}
6203 #ifdef __cplusplus
6204 }
6205 #endif
6206 int main(){nm_test_var='a';nm_test_func();return(0);}
6207 _LT_EOF
6208
6209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6210 (eval $ac_compile) 2>&5
6211 ac_status=$?
6212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6213 test $ac_status = 0; }; then
6214 # Now try to grab the symbols.
6215 nlist=conftest.nm
6216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6217 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6218 ac_status=$?
6219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6220 test $ac_status = 0; } && test -s "$nlist"; then
6221 # Try sorting and uniquifying the output.
6222 if sort "$nlist" | uniq > "$nlist"T; then
6223 mv -f "$nlist"T "$nlist"
6224 else
6225 rm -f "$nlist"T
6226 fi
6227
6228 # Make sure that we snagged all the symbols we need.
6229 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6230 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6231 cat <<_LT_EOF > conftest.$ac_ext
6232 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6233 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6234 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6235 relocations are performed -- see ld's documentation on pseudo-relocs. */
6236 # define LT_DLSYM_CONST
6237 #elif defined(__osf__)
6238 /* This system does not cope well with relocations in const data. */
6239 # define LT_DLSYM_CONST
6240 #else
6241 # define LT_DLSYM_CONST const
6242 #endif
6243
6244 #ifdef __cplusplus
6245 extern "C" {
6246 #endif
6247
6248 _LT_EOF
6249 # Now generate the symbol file.
6250 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6251
6252 cat <<_LT_EOF >> conftest.$ac_ext
6253
6254 /* The mapping between symbol names and symbols. */
6255 LT_DLSYM_CONST struct {
6256 const char *name;
6257 void *address;
6258 }
6259 lt__PROGRAM__LTX_preloaded_symbols[] =
6260 {
6261 { "@PROGRAM@", (void *) 0 },
6262 _LT_EOF
6263 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6264 cat <<\_LT_EOF >> conftest.$ac_ext
6265 {0, (void *) 0}
6266 };
6267
6268 /* This works around a problem in FreeBSD linker */
6269 #ifdef FREEBSD_WORKAROUND
6270 static const void *lt_preloaded_setup() {
6271 return lt__PROGRAM__LTX_preloaded_symbols;
6272 }
6273 #endif
6274
6275 #ifdef __cplusplus
6276 }
6277 #endif
6278 _LT_EOF
6279 # Now try linking the two files.
6280 mv conftest.$ac_objext conftstm.$ac_objext
6281 lt_globsym_save_LIBS=$LIBS
6282 lt_globsym_save_CFLAGS=$CFLAGS
6283 LIBS="conftstm.$ac_objext"
6284 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6286 (eval $ac_link) 2>&5
6287 ac_status=$?
6288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6289 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6290 pipe_works=yes
6291 fi
6292 LIBS=$lt_globsym_save_LIBS
6293 CFLAGS=$lt_globsym_save_CFLAGS
6294 else
6295 echo "cannot find nm_test_func in $nlist" >&5
6296 fi
6297 else
6298 echo "cannot find nm_test_var in $nlist" >&5
6299 fi
6300 else
6301 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6302 fi
6303 else
6304 echo "$progname: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6306 fi
6307 rm -rf conftest* conftst*
6308
6309 # Do not use the global_symbol_pipe unless it works.
6310 if test "$pipe_works" = yes; then
6311 break
6312 else
6313 lt_cv_sys_global_symbol_pipe=
6314 fi
6315 done
6316
6317 fi
6318
6319 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6320 lt_cv_sys_global_symbol_to_cdecl=
6321 fi
6322 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6324 $as_echo "failed" >&6; }
6325 else
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6327 $as_echo "ok" >&6; }
6328 fi
6329
6330 # Response file support.
6331 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6332 nm_file_list_spec='@'
6333 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6334 nm_file_list_spec='@'
6335 fi
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6364 $as_echo_n "checking for sysroot... " >&6; }
6365
6366 # Check whether --with-sysroot was given.
6367 if test "${with_sysroot+set}" = set; then :
6368 withval=$with_sysroot;
6369 else
6370 with_sysroot=no
6371 fi
6372
6373
6374 lt_sysroot=
6375 case ${with_sysroot} in #(
6376 yes)
6377 if test "$GCC" = yes; then
6378 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6379 fi
6380 ;; #(
6381 /*)
6382 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6383 ;; #(
6384 no|'')
6385 ;; #(
6386 *)
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6388 $as_echo "${with_sysroot}" >&6; }
6389 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6390 ;;
6391 esac
6392
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6394 $as_echo "${lt_sysroot:-no}" >&6; }
6395
6396
6397
6398
6399
6400 # Check whether --enable-libtool-lock was given.
6401 if test "${enable_libtool_lock+set}" = set; then :
6402 enableval=$enable_libtool_lock;
6403 fi
6404
6405 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6406
6407 # Some flags need to be propagated to the compiler or linker for good
6408 # libtool support.
6409 case $host in
6410 ia64-*-hpux*)
6411 # Find out which ABI we are using.
6412 echo 'int i;' > conftest.$ac_ext
6413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6414 (eval $ac_compile) 2>&5
6415 ac_status=$?
6416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6417 test $ac_status = 0; }; then
6418 case `/usr/bin/file conftest.$ac_objext` in
6419 *ELF-32*)
6420 HPUX_IA64_MODE="32"
6421 ;;
6422 *ELF-64*)
6423 HPUX_IA64_MODE="64"
6424 ;;
6425 esac
6426 fi
6427 rm -rf conftest*
6428 ;;
6429 *-*-irix6*)
6430 # Find out which ABI we are using.
6431 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6433 (eval $ac_compile) 2>&5
6434 ac_status=$?
6435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6436 test $ac_status = 0; }; then
6437 if test "$lt_cv_prog_gnu_ld" = yes; then
6438 case `/usr/bin/file conftest.$ac_objext` in
6439 *32-bit*)
6440 LD="${LD-ld} -melf32bsmip"
6441 ;;
6442 *N32*)
6443 LD="${LD-ld} -melf32bmipn32"
6444 ;;
6445 *64-bit*)
6446 LD="${LD-ld} -melf64bmip"
6447 ;;
6448 esac
6449 else
6450 case `/usr/bin/file conftest.$ac_objext` in
6451 *32-bit*)
6452 LD="${LD-ld} -32"
6453 ;;
6454 *N32*)
6455 LD="${LD-ld} -n32"
6456 ;;
6457 *64-bit*)
6458 LD="${LD-ld} -64"
6459 ;;
6460 esac
6461 fi
6462 fi
6463 rm -rf conftest*
6464 ;;
6465
6466 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6467 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6468 # Find out which ABI we are using.
6469 echo 'int i;' > conftest.$ac_ext
6470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6471 (eval $ac_compile) 2>&5
6472 ac_status=$?
6473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6474 test $ac_status = 0; }; then
6475 case `/usr/bin/file conftest.o` in
6476 *32-bit*)
6477 case $host in
6478 x86_64-*kfreebsd*-gnu)
6479 LD="${LD-ld} -m elf_i386_fbsd"
6480 ;;
6481 x86_64-*linux*)
6482 LD="${LD-ld} -m elf_i386"
6483 ;;
6484 ppc64-*linux*|powerpc64-*linux*)
6485 LD="${LD-ld} -m elf32ppclinux"
6486 ;;
6487 s390x-*linux*)
6488 LD="${LD-ld} -m elf_s390"
6489 ;;
6490 sparc64-*linux*)
6491 LD="${LD-ld} -m elf32_sparc"
6492 ;;
6493 esac
6494 ;;
6495 *64-bit*)
6496 case $host in
6497 x86_64-*kfreebsd*-gnu)
6498 LD="${LD-ld} -m elf_x86_64_fbsd"
6499 ;;
6500 x86_64-*linux*)
6501 LD="${LD-ld} -m elf_x86_64"
6502 ;;
6503 ppc*-*linux*|powerpc*-*linux*)
6504 LD="${LD-ld} -m elf64ppc"
6505 ;;
6506 s390*-*linux*|s390*-*tpf*)
6507 LD="${LD-ld} -m elf64_s390"
6508 ;;
6509 sparc*-*linux*)
6510 LD="${LD-ld} -m elf64_sparc"
6511 ;;
6512 esac
6513 ;;
6514 esac
6515 fi
6516 rm -rf conftest*
6517 ;;
6518
6519 *-*-sco3.2v5*)
6520 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6521 SAVE_CFLAGS="$CFLAGS"
6522 CFLAGS="$CFLAGS -belf"
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6524 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6525 if ${lt_cv_cc_needs_belf+:} false; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 ac_ext=c
6529 ac_cpp='$CPP $CPPFLAGS'
6530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6533
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6536
6537 int
6538 main ()
6539 {
6540
6541 ;
6542 return 0;
6543 }
6544 _ACEOF
6545 if ac_fn_c_try_link "$LINENO"; then :
6546 lt_cv_cc_needs_belf=yes
6547 else
6548 lt_cv_cc_needs_belf=no
6549 fi
6550 rm -f core conftest.err conftest.$ac_objext \
6551 conftest$ac_exeext conftest.$ac_ext
6552 ac_ext=c
6553 ac_cpp='$CPP $CPPFLAGS'
6554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6557
6558 fi
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6560 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6561 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6562 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6563 CFLAGS="$SAVE_CFLAGS"
6564 fi
6565 ;;
6566 *-*solaris*)
6567 # Find out which ABI we are using.
6568 echo 'int i;' > conftest.$ac_ext
6569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6570 (eval $ac_compile) 2>&5
6571 ac_status=$?
6572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6573 test $ac_status = 0; }; then
6574 case `/usr/bin/file conftest.o` in
6575 *64-bit*)
6576 case $lt_cv_prog_gnu_ld in
6577 yes*)
6578 case $host in
6579 i?86-*-solaris*)
6580 LD="${LD-ld} -m elf_x86_64"
6581 ;;
6582 sparc*-*-solaris*)
6583 LD="${LD-ld} -m elf64_sparc"
6584 ;;
6585 esac
6586 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6587 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6588 LD="${LD-ld}_sol2"
6589 fi
6590 ;;
6591 *)
6592 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6593 LD="${LD-ld} -64"
6594 fi
6595 ;;
6596 esac
6597 ;;
6598 esac
6599 fi
6600 rm -rf conftest*
6601 ;;
6602 esac
6603
6604 need_locks="$enable_libtool_lock"
6605
6606 if test -n "$ac_tool_prefix"; then
6607 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6608 set dummy ${ac_tool_prefix}mt; ac_word=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6612 $as_echo_n "(cached) " >&6
6613 else
6614 if test -n "$MANIFEST_TOOL"; then
6615 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6616 else
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620 IFS=$as_save_IFS
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 break 2
6627 fi
6628 done
6629 done
6630 IFS=$as_save_IFS
6631
6632 fi
6633 fi
6634 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6635 if test -n "$MANIFEST_TOOL"; then
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6637 $as_echo "$MANIFEST_TOOL" >&6; }
6638 else
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640 $as_echo "no" >&6; }
6641 fi
6642
6643
6644 fi
6645 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6646 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6647 # Extract the first word of "mt", so it can be a program name with args.
6648 set dummy mt; ac_word=$2
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650 $as_echo_n "checking for $ac_word... " >&6; }
6651 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 if test -n "$ac_ct_MANIFEST_TOOL"; then
6655 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6656 else
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6667 fi
6668 done
6669 done
6670 IFS=$as_save_IFS
6671
6672 fi
6673 fi
6674 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6675 if test -n "$ac_ct_MANIFEST_TOOL"; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6677 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6678 else
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680 $as_echo "no" >&6; }
6681 fi
6682
6683 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6684 MANIFEST_TOOL=":"
6685 else
6686 case $cross_compiling:$ac_tool_warned in
6687 yes:)
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6690 ac_tool_warned=yes ;;
6691 esac
6692 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6693 fi
6694 else
6695 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6696 fi
6697
6698 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6700 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6701 if ${lt_cv_path_mainfest_tool+:} false; then :
6702 $as_echo_n "(cached) " >&6
6703 else
6704 lt_cv_path_mainfest_tool=no
6705 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6706 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6707 cat conftest.err >&5
6708 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6709 lt_cv_path_mainfest_tool=yes
6710 fi
6711 rm -f conftest*
6712 fi
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6714 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6715 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6716 MANIFEST_TOOL=:
6717 fi
6718
6719
6720
6721
6722
6723
6724 case $host_os in
6725 rhapsody* | darwin*)
6726 if test -n "$ac_tool_prefix"; then
6727 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6728 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730 $as_echo_n "checking for $ac_word... " >&6; }
6731 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6732 $as_echo_n "(cached) " >&6
6733 else
6734 if test -n "$DSYMUTIL"; then
6735 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6736 else
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6739 do
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 break 2
6747 fi
6748 done
6749 done
6750 IFS=$as_save_IFS
6751
6752 fi
6753 fi
6754 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6755 if test -n "$DSYMUTIL"; then
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6757 $as_echo "$DSYMUTIL" >&6; }
6758 else
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760 $as_echo "no" >&6; }
6761 fi
6762
6763
6764 fi
6765 if test -z "$ac_cv_prog_DSYMUTIL"; then
6766 ac_ct_DSYMUTIL=$DSYMUTIL
6767 # Extract the first word of "dsymutil", so it can be a program name with args.
6768 set dummy dsymutil; ac_word=$2
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770 $as_echo_n "checking for $ac_word... " >&6; }
6771 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 if test -n "$ac_ct_DSYMUTIL"; then
6775 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6776 else
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6779 do
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 break 2
6787 fi
6788 done
6789 done
6790 IFS=$as_save_IFS
6791
6792 fi
6793 fi
6794 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6795 if test -n "$ac_ct_DSYMUTIL"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6797 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6798 else
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800 $as_echo "no" >&6; }
6801 fi
6802
6803 if test "x$ac_ct_DSYMUTIL" = x; then
6804 DSYMUTIL=":"
6805 else
6806 case $cross_compiling:$ac_tool_warned in
6807 yes:)
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6810 ac_tool_warned=yes ;;
6811 esac
6812 DSYMUTIL=$ac_ct_DSYMUTIL
6813 fi
6814 else
6815 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6816 fi
6817
6818 if test -n "$ac_tool_prefix"; then
6819 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6820 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if ${ac_cv_prog_NMEDIT+:} false; then :
6824 $as_echo_n "(cached) " >&6
6825 else
6826 if test -n "$NMEDIT"; then
6827 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840 done
6841 done
6842 IFS=$as_save_IFS
6843
6844 fi
6845 fi
6846 NMEDIT=$ac_cv_prog_NMEDIT
6847 if test -n "$NMEDIT"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6849 $as_echo "$NMEDIT" >&6; }
6850 else
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6853 fi
6854
6855
6856 fi
6857 if test -z "$ac_cv_prog_NMEDIT"; then
6858 ac_ct_NMEDIT=$NMEDIT
6859 # Extract the first word of "nmedit", so it can be a program name with args.
6860 set dummy nmedit; ac_word=$2
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862 $as_echo_n "checking for $ac_word... " >&6; }
6863 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6864 $as_echo_n "(cached) " >&6
6865 else
6866 if test -n "$ac_ct_NMEDIT"; then
6867 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6868 else
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6871 do
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 break 2
6879 fi
6880 done
6881 done
6882 IFS=$as_save_IFS
6883
6884 fi
6885 fi
6886 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6887 if test -n "$ac_ct_NMEDIT"; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6889 $as_echo "$ac_ct_NMEDIT" >&6; }
6890 else
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6893 fi
6894
6895 if test "x$ac_ct_NMEDIT" = x; then
6896 NMEDIT=":"
6897 else
6898 case $cross_compiling:$ac_tool_warned in
6899 yes:)
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6902 ac_tool_warned=yes ;;
6903 esac
6904 NMEDIT=$ac_ct_NMEDIT
6905 fi
6906 else
6907 NMEDIT="$ac_cv_prog_NMEDIT"
6908 fi
6909
6910 if test -n "$ac_tool_prefix"; then
6911 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6912 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if ${ac_cv_prog_LIPO+:} false; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 if test -n "$LIPO"; then
6919 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6920 else
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924 IFS=$as_save_IFS
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930 break 2
6931 fi
6932 done
6933 done
6934 IFS=$as_save_IFS
6935
6936 fi
6937 fi
6938 LIPO=$ac_cv_prog_LIPO
6939 if test -n "$LIPO"; then
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6941 $as_echo "$LIPO" >&6; }
6942 else
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6945 fi
6946
6947
6948 fi
6949 if test -z "$ac_cv_prog_LIPO"; then
6950 ac_ct_LIPO=$LIPO
6951 # Extract the first word of "lipo", so it can be a program name with args.
6952 set dummy lipo; ac_word=$2
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954 $as_echo_n "checking for $ac_word... " >&6; }
6955 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6956 $as_echo_n "(cached) " >&6
6957 else
6958 if test -n "$ac_ct_LIPO"; then
6959 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6960 else
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_prog_ac_ct_LIPO="lipo"
6969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 break 2
6971 fi
6972 done
6973 done
6974 IFS=$as_save_IFS
6975
6976 fi
6977 fi
6978 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6979 if test -n "$ac_ct_LIPO"; then
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6981 $as_echo "$ac_ct_LIPO" >&6; }
6982 else
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984 $as_echo "no" >&6; }
6985 fi
6986
6987 if test "x$ac_ct_LIPO" = x; then
6988 LIPO=":"
6989 else
6990 case $cross_compiling:$ac_tool_warned in
6991 yes:)
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6994 ac_tool_warned=yes ;;
6995 esac
6996 LIPO=$ac_ct_LIPO
6997 fi
6998 else
6999 LIPO="$ac_cv_prog_LIPO"
7000 fi
7001
7002 if test -n "$ac_tool_prefix"; then
7003 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7004 set dummy ${ac_tool_prefix}otool; ac_word=$2
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006 $as_echo_n "checking for $ac_word... " >&6; }
7007 if ${ac_cv_prog_OTOOL+:} false; then :
7008 $as_echo_n "(cached) " >&6
7009 else
7010 if test -n "$OTOOL"; then
7011 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7012 else
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 for as_dir in $PATH
7015 do
7016 IFS=$as_save_IFS
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7020 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7022 break 2
7023 fi
7024 done
7025 done
7026 IFS=$as_save_IFS
7027
7028 fi
7029 fi
7030 OTOOL=$ac_cv_prog_OTOOL
7031 if test -n "$OTOOL"; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7033 $as_echo "$OTOOL" >&6; }
7034 else
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036 $as_echo "no" >&6; }
7037 fi
7038
7039
7040 fi
7041 if test -z "$ac_cv_prog_OTOOL"; then
7042 ac_ct_OTOOL=$OTOOL
7043 # Extract the first word of "otool", so it can be a program name with args.
7044 set dummy otool; ac_word=$2
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046 $as_echo_n "checking for $ac_word... " >&6; }
7047 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 if test -n "$ac_ct_OTOOL"; then
7051 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7052 else
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7055 do
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7060 ac_cv_prog_ac_ct_OTOOL="otool"
7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 break 2
7063 fi
7064 done
7065 done
7066 IFS=$as_save_IFS
7067
7068 fi
7069 fi
7070 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7071 if test -n "$ac_ct_OTOOL"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7073 $as_echo "$ac_ct_OTOOL" >&6; }
7074 else
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7077 fi
7078
7079 if test "x$ac_ct_OTOOL" = x; then
7080 OTOOL=":"
7081 else
7082 case $cross_compiling:$ac_tool_warned in
7083 yes:)
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7086 ac_tool_warned=yes ;;
7087 esac
7088 OTOOL=$ac_ct_OTOOL
7089 fi
7090 else
7091 OTOOL="$ac_cv_prog_OTOOL"
7092 fi
7093
7094 if test -n "$ac_tool_prefix"; then
7095 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7096 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if ${ac_cv_prog_OTOOL64+:} false; then :
7100 $as_echo_n "(cached) " >&6
7101 else
7102 if test -n "$OTOOL64"; then
7103 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7104 else
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7107 do
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7112 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 break 2
7115 fi
7116 done
7117 done
7118 IFS=$as_save_IFS
7119
7120 fi
7121 fi
7122 OTOOL64=$ac_cv_prog_OTOOL64
7123 if test -n "$OTOOL64"; then
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7125 $as_echo "$OTOOL64" >&6; }
7126 else
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7129 fi
7130
7131
7132 fi
7133 if test -z "$ac_cv_prog_OTOOL64"; then
7134 ac_ct_OTOOL64=$OTOOL64
7135 # Extract the first word of "otool64", so it can be a program name with args.
7136 set dummy otool64; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7140 $as_echo_n "(cached) " >&6
7141 else
7142 if test -n "$ac_ct_OTOOL64"; then
7143 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7144 else
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7147 do
7148 IFS=$as_save_IFS
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_prog_ac_ct_OTOOL64="otool64"
7153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 break 2
7155 fi
7156 done
7157 done
7158 IFS=$as_save_IFS
7159
7160 fi
7161 fi
7162 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7163 if test -n "$ac_ct_OTOOL64"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7165 $as_echo "$ac_ct_OTOOL64" >&6; }
7166 else
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7169 fi
7170
7171 if test "x$ac_ct_OTOOL64" = x; then
7172 OTOOL64=":"
7173 else
7174 case $cross_compiling:$ac_tool_warned in
7175 yes:)
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178 ac_tool_warned=yes ;;
7179 esac
7180 OTOOL64=$ac_ct_OTOOL64
7181 fi
7182 else
7183 OTOOL64="$ac_cv_prog_OTOOL64"
7184 fi
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7213 $as_echo_n "checking for -single_module linker flag... " >&6; }
7214 if ${lt_cv_apple_cc_single_mod+:} false; then :
7215 $as_echo_n "(cached) " >&6
7216 else
7217 lt_cv_apple_cc_single_mod=no
7218 if test -z "${LT_MULTI_MODULE}"; then
7219 # By default we will add the -single_module flag. You can override
7220 # by either setting the environment variable LT_MULTI_MODULE
7221 # non-empty at configure time, or by adding -multi_module to the
7222 # link flags.
7223 rm -rf libconftest.dylib*
7224 echo "int foo(void){return 1;}" > conftest.c
7225 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7226 -dynamiclib -Wl,-single_module conftest.c" >&5
7227 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7228 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7229 _lt_result=$?
7230 # If there is a non-empty error log, and "single_module"
7231 # appears in it, assume the flag caused a linker warning
7232 if test -s conftest.err && $GREP single_module conftest.err; then
7233 cat conftest.err >&5
7234 # Otherwise, if the output was created with a 0 exit code from
7235 # the compiler, it worked.
7236 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7237 lt_cv_apple_cc_single_mod=yes
7238 else
7239 cat conftest.err >&5
7240 fi
7241 rm -rf libconftest.dylib*
7242 rm -f conftest.*
7243 fi
7244 fi
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7246 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7247
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7249 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7250 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7251 $as_echo_n "(cached) " >&6
7252 else
7253 lt_cv_ld_exported_symbols_list=no
7254 save_LDFLAGS=$LDFLAGS
7255 echo "_main" > conftest.sym
7256 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7259
7260 int
7261 main ()
7262 {
7263
7264 ;
7265 return 0;
7266 }
7267 _ACEOF
7268 if ac_fn_c_try_link "$LINENO"; then :
7269 lt_cv_ld_exported_symbols_list=yes
7270 else
7271 lt_cv_ld_exported_symbols_list=no
7272 fi
7273 rm -f core conftest.err conftest.$ac_objext \
7274 conftest$ac_exeext conftest.$ac_ext
7275 LDFLAGS="$save_LDFLAGS"
7276
7277 fi
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7279 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7280
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7282 $as_echo_n "checking for -force_load linker flag... " >&6; }
7283 if ${lt_cv_ld_force_load+:} false; then :
7284 $as_echo_n "(cached) " >&6
7285 else
7286 lt_cv_ld_force_load=no
7287 cat > conftest.c << _LT_EOF
7288 int forced_loaded() { return 2;}
7289 _LT_EOF
7290 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7291 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7292 echo "$AR cru libconftest.a conftest.o" >&5
7293 $AR cru libconftest.a conftest.o 2>&5
7294 echo "$RANLIB libconftest.a" >&5
7295 $RANLIB libconftest.a 2>&5
7296 cat > conftest.c << _LT_EOF
7297 int main() { return 0;}
7298 _LT_EOF
7299 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7300 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7301 _lt_result=$?
7302 if test -s conftest.err && $GREP force_load conftest.err; then
7303 cat conftest.err >&5
7304 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7305 lt_cv_ld_force_load=yes
7306 else
7307 cat conftest.err >&5
7308 fi
7309 rm -f conftest.err libconftest.a conftest conftest.c
7310 rm -rf conftest.dSYM
7311
7312 fi
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7314 $as_echo "$lt_cv_ld_force_load" >&6; }
7315 case $host_os in
7316 rhapsody* | darwin1.[012])
7317 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7318 darwin1.*)
7319 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7320 darwin*) # darwin 5.x on
7321 # if running on 10.5 or later, the deployment target defaults
7322 # to the OS version, if on x86, and 10.4, the deployment
7323 # target defaults to 10.4. Don't you love it?
7324 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7325 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7326 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7327 10.[012]*)
7328 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7329 10.*)
7330 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7331 esac
7332 ;;
7333 esac
7334 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7335 _lt_dar_single_mod='$single_module'
7336 fi
7337 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7338 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7339 else
7340 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7341 fi
7342 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7343 _lt_dsymutil='~$DSYMUTIL $lib || :'
7344 else
7345 _lt_dsymutil=
7346 fi
7347 ;;
7348 esac
7349
7350 ac_ext=c
7351 ac_cpp='$CPP $CPPFLAGS'
7352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7356 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7357 # On Suns, sometimes $CPP names a directory.
7358 if test -n "$CPP" && test -d "$CPP"; then
7359 CPP=
7360 fi
7361 if test -z "$CPP"; then
7362 if ${ac_cv_prog_CPP+:} false; then :
7363 $as_echo_n "(cached) " >&6
7364 else
7365 # Double quotes because CPP needs to be expanded
7366 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7367 do
7368 ac_preproc_ok=false
7369 for ac_c_preproc_warn_flag in '' yes
7370 do
7371 # Use a header file that comes with gcc, so configuring glibc
7372 # with a fresh cross-compiler works.
7373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7374 # <limits.h> exists even on freestanding compilers.
7375 # On the NeXT, cc -E runs the code through the compiler's parser,
7376 # not just through cpp. "Syntax error" is here to catch this case.
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7379 #ifdef __STDC__
7380 # include <limits.h>
7381 #else
7382 # include <assert.h>
7383 #endif
7384 Syntax error
7385 _ACEOF
7386 if ac_fn_c_try_cpp "$LINENO"; then :
7387
7388 else
7389 # Broken: fails on valid input.
7390 continue
7391 fi
7392 rm -f conftest.err conftest.i conftest.$ac_ext
7393
7394 # OK, works on sane cases. Now check whether nonexistent headers
7395 # can be detected and how.
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7398 #include <ac_nonexistent.h>
7399 _ACEOF
7400 if ac_fn_c_try_cpp "$LINENO"; then :
7401 # Broken: success on invalid input.
7402 continue
7403 else
7404 # Passes both tests.
7405 ac_preproc_ok=:
7406 break
7407 fi
7408 rm -f conftest.err conftest.i conftest.$ac_ext
7409
7410 done
7411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7412 rm -f conftest.i conftest.err conftest.$ac_ext
7413 if $ac_preproc_ok; then :
7414 break
7415 fi
7416
7417 done
7418 ac_cv_prog_CPP=$CPP
7419
7420 fi
7421 CPP=$ac_cv_prog_CPP
7422 else
7423 ac_cv_prog_CPP=$CPP
7424 fi
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7426 $as_echo "$CPP" >&6; }
7427 ac_preproc_ok=false
7428 for ac_c_preproc_warn_flag in '' yes
7429 do
7430 # Use a header file that comes with gcc, so configuring glibc
7431 # with a fresh cross-compiler works.
7432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7433 # <limits.h> exists even on freestanding compilers.
7434 # On the NeXT, cc -E runs the code through the compiler's parser,
7435 # not just through cpp. "Syntax error" is here to catch this case.
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h. */
7438 #ifdef __STDC__
7439 # include <limits.h>
7440 #else
7441 # include <assert.h>
7442 #endif
7443 Syntax error
7444 _ACEOF
7445 if ac_fn_c_try_cpp "$LINENO"; then :
7446
7447 else
7448 # Broken: fails on valid input.
7449 continue
7450 fi
7451 rm -f conftest.err conftest.i conftest.$ac_ext
7452
7453 # OK, works on sane cases. Now check whether nonexistent headers
7454 # can be detected and how.
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7457 #include <ac_nonexistent.h>
7458 _ACEOF
7459 if ac_fn_c_try_cpp "$LINENO"; then :
7460 # Broken: success on invalid input.
7461 continue
7462 else
7463 # Passes both tests.
7464 ac_preproc_ok=:
7465 break
7466 fi
7467 rm -f conftest.err conftest.i conftest.$ac_ext
7468
7469 done
7470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7471 rm -f conftest.i conftest.err conftest.$ac_ext
7472 if $ac_preproc_ok; then :
7473
7474 else
7475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7477 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7478 See \`config.log' for more details" "$LINENO" 5; }
7479 fi
7480
7481 ac_ext=c
7482 ac_cpp='$CPP $CPPFLAGS'
7483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7486
7487
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7489 $as_echo_n "checking for ANSI C header files... " >&6; }
7490 if ${ac_cv_header_stdc+:} false; then :
7491 $as_echo_n "(cached) " >&6
7492 else
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7495 #include <stdlib.h>
7496 #include <stdarg.h>
7497 #include <string.h>
7498 #include <float.h>
7499
7500 int
7501 main ()
7502 {
7503
7504 ;
7505 return 0;
7506 }
7507 _ACEOF
7508 if ac_fn_c_try_compile "$LINENO"; then :
7509 ac_cv_header_stdc=yes
7510 else
7511 ac_cv_header_stdc=no
7512 fi
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514
7515 if test $ac_cv_header_stdc = yes; then
7516 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7519 #include <string.h>
7520
7521 _ACEOF
7522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7523 $EGREP "memchr" >/dev/null 2>&1; then :
7524
7525 else
7526 ac_cv_header_stdc=no
7527 fi
7528 rm -f conftest*
7529
7530 fi
7531
7532 if test $ac_cv_header_stdc = yes; then
7533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7536 #include <stdlib.h>
7537
7538 _ACEOF
7539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7540 $EGREP "free" >/dev/null 2>&1; then :
7541
7542 else
7543 ac_cv_header_stdc=no
7544 fi
7545 rm -f conftest*
7546
7547 fi
7548
7549 if test $ac_cv_header_stdc = yes; then
7550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7551 if test "$cross_compiling" = yes; then :
7552 :
7553 else
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7556 #include <ctype.h>
7557 #include <stdlib.h>
7558 #if ((' ' & 0x0FF) == 0x020)
7559 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7560 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7561 #else
7562 # define ISLOWER(c) \
7563 (('a' <= (c) && (c) <= 'i') \
7564 || ('j' <= (c) && (c) <= 'r') \
7565 || ('s' <= (c) && (c) <= 'z'))
7566 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7567 #endif
7568
7569 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7570 int
7571 main ()
7572 {
7573 int i;
7574 for (i = 0; i < 256; i++)
7575 if (XOR (islower (i), ISLOWER (i))
7576 || toupper (i) != TOUPPER (i))
7577 return 2;
7578 return 0;
7579 }
7580 _ACEOF
7581 if ac_fn_c_try_run "$LINENO"; then :
7582
7583 else
7584 ac_cv_header_stdc=no
7585 fi
7586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7587 conftest.$ac_objext conftest.beam conftest.$ac_ext
7588 fi
7589
7590 fi
7591 fi
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7593 $as_echo "$ac_cv_header_stdc" >&6; }
7594 if test $ac_cv_header_stdc = yes; then
7595
7596 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7597
7598 fi
7599
7600 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7601 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7602 inttypes.h stdint.h unistd.h
7603 do :
7604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7605 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7606 "
7607 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7608 cat >>confdefs.h <<_ACEOF
7609 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7610 _ACEOF
7611
7612 fi
7613
7614 done
7615
7616
7617 for ac_header in dlfcn.h
7618 do :
7619 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7620 "
7621 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7622 cat >>confdefs.h <<_ACEOF
7623 #define HAVE_DLFCN_H 1
7624 _ACEOF
7625
7626 fi
7627
7628 done
7629
7630
7631
7632
7633
7634 # Set options
7635
7636
7637
7638 enable_dlopen=no
7639
7640
7641 enable_win32_dll=no
7642
7643
7644 # Check whether --enable-shared was given.
7645 if test "${enable_shared+set}" = set; then :
7646 enableval=$enable_shared; p=${PACKAGE-default}
7647 case $enableval in
7648 yes) enable_shared=yes ;;
7649 no) enable_shared=no ;;
7650 *)
7651 enable_shared=no
7652 # Look at the argument we got. We use all the common list separators.
7653 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7654 for pkg in $enableval; do
7655 IFS="$lt_save_ifs"
7656 if test "X$pkg" = "X$p"; then
7657 enable_shared=yes
7658 fi
7659 done
7660 IFS="$lt_save_ifs"
7661 ;;
7662 esac
7663 else
7664 enable_shared=yes
7665 fi
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675 # Check whether --enable-static was given.
7676 if test "${enable_static+set}" = set; then :
7677 enableval=$enable_static; p=${PACKAGE-default}
7678 case $enableval in
7679 yes) enable_static=yes ;;
7680 no) enable_static=no ;;
7681 *)
7682 enable_static=no
7683 # Look at the argument we got. We use all the common list separators.
7684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7685 for pkg in $enableval; do
7686 IFS="$lt_save_ifs"
7687 if test "X$pkg" = "X$p"; then
7688 enable_static=yes
7689 fi
7690 done
7691 IFS="$lt_save_ifs"
7692 ;;
7693 esac
7694 else
7695 enable_static=yes
7696 fi
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707 # Check whether --with-pic was given.
7708 if test "${with_pic+set}" = set; then :
7709 withval=$with_pic; lt_p=${PACKAGE-default}
7710 case $withval in
7711 yes|no) pic_mode=$withval ;;
7712 *)
7713 pic_mode=default
7714 # Look at the argument we got. We use all the common list separators.
7715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7716 for lt_pkg in $withval; do
7717 IFS="$lt_save_ifs"
7718 if test "X$lt_pkg" = "X$lt_p"; then
7719 pic_mode=yes
7720 fi
7721 done
7722 IFS="$lt_save_ifs"
7723 ;;
7724 esac
7725 else
7726 pic_mode=default
7727 fi
7728
7729
7730 test -z "$pic_mode" && pic_mode=default
7731
7732
7733
7734
7735
7736
7737
7738 # Check whether --enable-fast-install was given.
7739 if test "${enable_fast_install+set}" = set; then :
7740 enableval=$enable_fast_install; p=${PACKAGE-default}
7741 case $enableval in
7742 yes) enable_fast_install=yes ;;
7743 no) enable_fast_install=no ;;
7744 *)
7745 enable_fast_install=no
7746 # Look at the argument we got. We use all the common list separators.
7747 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7748 for pkg in $enableval; do
7749 IFS="$lt_save_ifs"
7750 if test "X$pkg" = "X$p"; then
7751 enable_fast_install=yes
7752 fi
7753 done
7754 IFS="$lt_save_ifs"
7755 ;;
7756 esac
7757 else
7758 enable_fast_install=yes
7759 fi
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771 # This can be used to rebuild libtool when needed
7772 LIBTOOL_DEPS="$ltmain"
7773
7774 # Always use our own libtool.
7775 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806 test -z "$LN_S" && LN_S="ln -s"
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821 if test -n "${ZSH_VERSION+set}" ; then
7822 setopt NO_GLOB_SUBST
7823 fi
7824
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7826 $as_echo_n "checking for objdir... " >&6; }
7827 if ${lt_cv_objdir+:} false; then :
7828 $as_echo_n "(cached) " >&6
7829 else
7830 rm -f .libs 2>/dev/null
7831 mkdir .libs 2>/dev/null
7832 if test -d .libs; then
7833 lt_cv_objdir=.libs
7834 else
7835 # MS-DOS does not allow filenames that begin with a dot.
7836 lt_cv_objdir=_libs
7837 fi
7838 rmdir .libs 2>/dev/null
7839 fi
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7841 $as_echo "$lt_cv_objdir" >&6; }
7842 objdir=$lt_cv_objdir
7843
7844
7845
7846
7847
7848 cat >>confdefs.h <<_ACEOF
7849 #define LT_OBJDIR "$lt_cv_objdir/"
7850 _ACEOF
7851
7852
7853
7854
7855 case $host_os in
7856 aix3*)
7857 # AIX sometimes has problems with the GCC collect2 program. For some
7858 # reason, if we set the COLLECT_NAMES environment variable, the problems
7859 # vanish in a puff of smoke.
7860 if test "X${COLLECT_NAMES+set}" != Xset; then
7861 COLLECT_NAMES=
7862 export COLLECT_NAMES
7863 fi
7864 ;;
7865 esac
7866
7867 # Global variables:
7868 ofile=libtool
7869 can_build_shared=yes
7870
7871 # All known linkers require a `.a' archive for static linking (except MSVC,
7872 # which needs '.lib').
7873 libext=a
7874
7875 with_gnu_ld="$lt_cv_prog_gnu_ld"
7876
7877 old_CC="$CC"
7878 old_CFLAGS="$CFLAGS"
7879
7880 # Set sane defaults for various variables
7881 test -z "$CC" && CC=cc
7882 test -z "$LTCC" && LTCC=$CC
7883 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7884 test -z "$LD" && LD=ld
7885 test -z "$ac_objext" && ac_objext=o
7886
7887 for cc_temp in $compiler""; do
7888 case $cc_temp in
7889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7891 \-*) ;;
7892 *) break;;
7893 esac
7894 done
7895 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7896
7897
7898 # Only perform the check for file, if the check method requires it
7899 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7900 case $deplibs_check_method in
7901 file_magic*)
7902 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7904 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7905 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7906 $as_echo_n "(cached) " >&6
7907 else
7908 case $MAGIC_CMD in
7909 [\\/*] | ?:[\\/]*)
7910 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7911 ;;
7912 *)
7913 lt_save_MAGIC_CMD="$MAGIC_CMD"
7914 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7915 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7916 for ac_dir in $ac_dummy; do
7917 IFS="$lt_save_ifs"
7918 test -z "$ac_dir" && ac_dir=.
7919 if test -f $ac_dir/${ac_tool_prefix}file; then
7920 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7921 if test -n "$file_magic_test_file"; then
7922 case $deplibs_check_method in
7923 "file_magic "*)
7924 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7926 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7927 $EGREP "$file_magic_regex" > /dev/null; then
7928 :
7929 else
7930 cat <<_LT_EOF 1>&2
7931
7932 *** Warning: the command libtool uses to detect shared libraries,
7933 *** $file_magic_cmd, produces output that libtool cannot recognize.
7934 *** The result is that libtool may fail to recognize shared libraries
7935 *** as such. This will affect the creation of libtool libraries that
7936 *** depend on shared libraries, but programs linked with such libtool
7937 *** libraries will work regardless of this problem. Nevertheless, you
7938 *** may want to report the problem to your system manager and/or to
7939 *** bug-libtool@gnu.org
7940
7941 _LT_EOF
7942 fi ;;
7943 esac
7944 fi
7945 break
7946 fi
7947 done
7948 IFS="$lt_save_ifs"
7949 MAGIC_CMD="$lt_save_MAGIC_CMD"
7950 ;;
7951 esac
7952 fi
7953
7954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7955 if test -n "$MAGIC_CMD"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7957 $as_echo "$MAGIC_CMD" >&6; }
7958 else
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7961 fi
7962
7963
7964
7965
7966
7967 if test -z "$lt_cv_path_MAGIC_CMD"; then
7968 if test -n "$ac_tool_prefix"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7970 $as_echo_n "checking for file... " >&6; }
7971 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 case $MAGIC_CMD in
7975 [\\/*] | ?:[\\/]*)
7976 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7977 ;;
7978 *)
7979 lt_save_MAGIC_CMD="$MAGIC_CMD"
7980 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7981 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7982 for ac_dir in $ac_dummy; do
7983 IFS="$lt_save_ifs"
7984 test -z "$ac_dir" && ac_dir=.
7985 if test -f $ac_dir/file; then
7986 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7987 if test -n "$file_magic_test_file"; then
7988 case $deplibs_check_method in
7989 "file_magic "*)
7990 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7991 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7992 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7993 $EGREP "$file_magic_regex" > /dev/null; then
7994 :
7995 else
7996 cat <<_LT_EOF 1>&2
7997
7998 *** Warning: the command libtool uses to detect shared libraries,
7999 *** $file_magic_cmd, produces output that libtool cannot recognize.
8000 *** The result is that libtool may fail to recognize shared libraries
8001 *** as such. This will affect the creation of libtool libraries that
8002 *** depend on shared libraries, but programs linked with such libtool
8003 *** libraries will work regardless of this problem. Nevertheless, you
8004 *** may want to report the problem to your system manager and/or to
8005 *** bug-libtool@gnu.org
8006
8007 _LT_EOF
8008 fi ;;
8009 esac
8010 fi
8011 break
8012 fi
8013 done
8014 IFS="$lt_save_ifs"
8015 MAGIC_CMD="$lt_save_MAGIC_CMD"
8016 ;;
8017 esac
8018 fi
8019
8020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8021 if test -n "$MAGIC_CMD"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8023 $as_echo "$MAGIC_CMD" >&6; }
8024 else
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8027 fi
8028
8029
8030 else
8031 MAGIC_CMD=:
8032 fi
8033 fi
8034
8035 fi
8036 ;;
8037 esac
8038
8039 # Use C for the default configuration in the libtool script
8040
8041 lt_save_CC="$CC"
8042 ac_ext=c
8043 ac_cpp='$CPP $CPPFLAGS'
8044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8047
8048
8049 # Source file extension for C test sources.
8050 ac_ext=c
8051
8052 # Object file extension for compiled C test sources.
8053 objext=o
8054 objext=$objext
8055
8056 # Code to be used in simple compile tests
8057 lt_simple_compile_test_code="int some_variable = 0;"
8058
8059 # Code to be used in simple link tests
8060 lt_simple_link_test_code='int main(){return(0);}'
8061
8062
8063
8064
8065
8066
8067
8068 # If no C compiler was specified, use CC.
8069 LTCC=${LTCC-"$CC"}
8070
8071 # If no C compiler flags were specified, use CFLAGS.
8072 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8073
8074 # Allow CC to be a program name with arguments.
8075 compiler=$CC
8076
8077 # Save the default compiler, since it gets overwritten when the other
8078 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8079 compiler_DEFAULT=$CC
8080
8081 # save warnings/boilerplate of simple test code
8082 ac_outfile=conftest.$ac_objext
8083 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8084 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8085 _lt_compiler_boilerplate=`cat conftest.err`
8086 $RM conftest*
8087
8088 ac_outfile=conftest.$ac_objext
8089 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8090 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8091 _lt_linker_boilerplate=`cat conftest.err`
8092 $RM -r conftest*
8093
8094
8095 ## CAVEAT EMPTOR:
8096 ## There is no encapsulation within the following macros, do not change
8097 ## the running order or otherwise move them around unless you know exactly
8098 ## what you are doing...
8099 if test -n "$compiler"; then
8100
8101 lt_prog_compiler_no_builtin_flag=
8102
8103 if test "$GCC" = yes; then
8104 case $cc_basename in
8105 nvcc*)
8106 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8107 *)
8108 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8109 esac
8110
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8112 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8113 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 lt_cv_prog_compiler_rtti_exceptions=no
8117 ac_outfile=conftest.$ac_objext
8118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8119 lt_compiler_flag="-fno-rtti -fno-exceptions"
8120 # Insert the option either (1) after the last *FLAGS variable, or
8121 # (2) before a word containing "conftest.", or (3) at the end.
8122 # Note that $ac_compile itself does not contain backslashes and begins
8123 # with a dollar sign (not a hyphen), so the echo should work correctly.
8124 # The option is referenced via a variable to avoid confusing sed.
8125 lt_compile=`echo "$ac_compile" | $SED \
8126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8128 -e 's:$: $lt_compiler_flag:'`
8129 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8130 (eval "$lt_compile" 2>conftest.err)
8131 ac_status=$?
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 if (exit $ac_status) && test -s "$ac_outfile"; then
8135 # The compiler can only warn and ignore the option if not recognized
8136 # So say no if there are warnings other than the usual output.
8137 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8140 lt_cv_prog_compiler_rtti_exceptions=yes
8141 fi
8142 fi
8143 $RM conftest*
8144
8145 fi
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8147 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8148
8149 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8150 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8151 else
8152 :
8153 fi
8154
8155 fi
8156
8157
8158
8159
8160
8161
8162 lt_prog_compiler_wl=
8163 lt_prog_compiler_pic=
8164 lt_prog_compiler_static=
8165
8166
8167 if test "$GCC" = yes; then
8168 lt_prog_compiler_wl='-Wl,'
8169 lt_prog_compiler_static='-static'
8170
8171 case $host_os in
8172 aix*)
8173 # All AIX code is PIC.
8174 if test "$host_cpu" = ia64; then
8175 # AIX 5 now supports IA64 processor
8176 lt_prog_compiler_static='-Bstatic'
8177 fi
8178 ;;
8179
8180 amigaos*)
8181 case $host_cpu in
8182 powerpc)
8183 # see comment about AmigaOS4 .so support
8184 lt_prog_compiler_pic='-fPIC'
8185 ;;
8186 m68k)
8187 # FIXME: we need at least 68020 code to build shared libraries, but
8188 # adding the `-m68020' flag to GCC prevents building anything better,
8189 # like `-m68040'.
8190 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8191 ;;
8192 esac
8193 ;;
8194
8195 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8196 # PIC is the default for these OSes.
8197 ;;
8198
8199 mingw* | cygwin* | pw32* | os2* | cegcc*)
8200 # This hack is so that the source file can tell whether it is being
8201 # built for inclusion in a dll (and should export symbols for example).
8202 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8203 # (--disable-auto-import) libraries
8204 lt_prog_compiler_pic='-DDLL_EXPORT'
8205 ;;
8206
8207 darwin* | rhapsody*)
8208 # PIC is the default on this platform
8209 # Common symbols not allowed in MH_DYLIB files
8210 lt_prog_compiler_pic='-fno-common'
8211 ;;
8212
8213 haiku*)
8214 # PIC is the default for Haiku.
8215 # The "-static" flag exists, but is broken.
8216 lt_prog_compiler_static=
8217 ;;
8218
8219 hpux*)
8220 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8221 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8222 # sets the default TLS model and affects inlining.
8223 case $host_cpu in
8224 hppa*64*)
8225 # +Z the default
8226 ;;
8227 *)
8228 lt_prog_compiler_pic='-fPIC'
8229 ;;
8230 esac
8231 ;;
8232
8233 interix[3-9]*)
8234 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8235 # Instead, we relocate shared libraries at runtime.
8236 ;;
8237
8238 msdosdjgpp*)
8239 # Just because we use GCC doesn't mean we suddenly get shared libraries
8240 # on systems that don't support them.
8241 lt_prog_compiler_can_build_shared=no
8242 enable_shared=no
8243 ;;
8244
8245 *nto* | *qnx*)
8246 # QNX uses GNU C++, but need to define -shared option too, otherwise
8247 # it will coredump.
8248 lt_prog_compiler_pic='-fPIC -shared'
8249 ;;
8250
8251 sysv4*MP*)
8252 if test -d /usr/nec; then
8253 lt_prog_compiler_pic=-Kconform_pic
8254 fi
8255 ;;
8256
8257 *)
8258 lt_prog_compiler_pic='-fPIC'
8259 ;;
8260 esac
8261
8262 case $cc_basename in
8263 nvcc*) # Cuda Compiler Driver 2.2
8264 lt_prog_compiler_wl='-Xlinker '
8265 if test -n "$lt_prog_compiler_pic"; then
8266 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8267 fi
8268 ;;
8269 esac
8270 else
8271 # PORTME Check for flag to pass linker flags through the system compiler.
8272 case $host_os in
8273 aix*)
8274 lt_prog_compiler_wl='-Wl,'
8275 if test "$host_cpu" = ia64; then
8276 # AIX 5 now supports IA64 processor
8277 lt_prog_compiler_static='-Bstatic'
8278 else
8279 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8280 fi
8281 ;;
8282
8283 mingw* | cygwin* | pw32* | os2* | cegcc*)
8284 # This hack is so that the source file can tell whether it is being
8285 # built for inclusion in a dll (and should export symbols for example).
8286 lt_prog_compiler_pic='-DDLL_EXPORT'
8287 ;;
8288
8289 hpux9* | hpux10* | hpux11*)
8290 lt_prog_compiler_wl='-Wl,'
8291 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8292 # not for PA HP-UX.
8293 case $host_cpu in
8294 hppa*64*|ia64*)
8295 # +Z the default
8296 ;;
8297 *)
8298 lt_prog_compiler_pic='+Z'
8299 ;;
8300 esac
8301 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8302 lt_prog_compiler_static='${wl}-a ${wl}archive'
8303 ;;
8304
8305 irix5* | irix6* | nonstopux*)
8306 lt_prog_compiler_wl='-Wl,'
8307 # PIC (with -KPIC) is the default.
8308 lt_prog_compiler_static='-non_shared'
8309 ;;
8310
8311 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8312 case $cc_basename in
8313 # old Intel for x86_64 which still supported -KPIC.
8314 ecc*)
8315 lt_prog_compiler_wl='-Wl,'
8316 lt_prog_compiler_pic='-KPIC'
8317 lt_prog_compiler_static='-static'
8318 ;;
8319 # icc used to be incompatible with GCC.
8320 # ICC 10 doesn't accept -KPIC any more.
8321 icc* | ifort*)
8322 lt_prog_compiler_wl='-Wl,'
8323 lt_prog_compiler_pic='-fPIC'
8324 lt_prog_compiler_static='-static'
8325 ;;
8326 # Lahey Fortran 8.1.
8327 lf95*)
8328 lt_prog_compiler_wl='-Wl,'
8329 lt_prog_compiler_pic='--shared'
8330 lt_prog_compiler_static='--static'
8331 ;;
8332 nagfor*)
8333 # NAG Fortran compiler
8334 lt_prog_compiler_wl='-Wl,-Wl,,'
8335 lt_prog_compiler_pic='-PIC'
8336 lt_prog_compiler_static='-Bstatic'
8337 ;;
8338 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8339 # Portland Group compilers (*not* the Pentium gcc compiler,
8340 # which looks to be a dead project)
8341 lt_prog_compiler_wl='-Wl,'
8342 lt_prog_compiler_pic='-fpic'
8343 lt_prog_compiler_static='-Bstatic'
8344 ;;
8345 ccc*)
8346 lt_prog_compiler_wl='-Wl,'
8347 # All Alpha code is PIC.
8348 lt_prog_compiler_static='-non_shared'
8349 ;;
8350 xl* | bgxl* | bgf* | mpixl*)
8351 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8352 lt_prog_compiler_wl='-Wl,'
8353 lt_prog_compiler_pic='-qpic'
8354 lt_prog_compiler_static='-qstaticlink'
8355 ;;
8356 *)
8357 case `$CC -V 2>&1 | sed 5q` in
8358 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8359 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8360 lt_prog_compiler_pic='-KPIC'
8361 lt_prog_compiler_static='-Bstatic'
8362 lt_prog_compiler_wl=''
8363 ;;
8364 *Sun\ F* | *Sun*Fortran*)
8365 lt_prog_compiler_pic='-KPIC'
8366 lt_prog_compiler_static='-Bstatic'
8367 lt_prog_compiler_wl='-Qoption ld '
8368 ;;
8369 *Sun\ C*)
8370 # Sun C 5.9
8371 lt_prog_compiler_pic='-KPIC'
8372 lt_prog_compiler_static='-Bstatic'
8373 lt_prog_compiler_wl='-Wl,'
8374 ;;
8375 *Intel*\ [CF]*Compiler*)
8376 lt_prog_compiler_wl='-Wl,'
8377 lt_prog_compiler_pic='-fPIC'
8378 lt_prog_compiler_static='-static'
8379 ;;
8380 *Portland\ Group*)
8381 lt_prog_compiler_wl='-Wl,'
8382 lt_prog_compiler_pic='-fpic'
8383 lt_prog_compiler_static='-Bstatic'
8384 ;;
8385 esac
8386 ;;
8387 esac
8388 ;;
8389
8390 newsos6)
8391 lt_prog_compiler_pic='-KPIC'
8392 lt_prog_compiler_static='-Bstatic'
8393 ;;
8394
8395 *nto* | *qnx*)
8396 # QNX uses GNU C++, but need to define -shared option too, otherwise
8397 # it will coredump.
8398 lt_prog_compiler_pic='-fPIC -shared'
8399 ;;
8400
8401 osf3* | osf4* | osf5*)
8402 lt_prog_compiler_wl='-Wl,'
8403 # All OSF/1 code is PIC.
8404 lt_prog_compiler_static='-non_shared'
8405 ;;
8406
8407 rdos*)
8408 lt_prog_compiler_static='-non_shared'
8409 ;;
8410
8411 solaris*)
8412 lt_prog_compiler_pic='-KPIC'
8413 lt_prog_compiler_static='-Bstatic'
8414 case $cc_basename in
8415 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8416 lt_prog_compiler_wl='-Qoption ld ';;
8417 *)
8418 lt_prog_compiler_wl='-Wl,';;
8419 esac
8420 ;;
8421
8422 sunos4*)
8423 lt_prog_compiler_wl='-Qoption ld '
8424 lt_prog_compiler_pic='-PIC'
8425 lt_prog_compiler_static='-Bstatic'
8426 ;;
8427
8428 sysv4 | sysv4.2uw2* | sysv4.3*)
8429 lt_prog_compiler_wl='-Wl,'
8430 lt_prog_compiler_pic='-KPIC'
8431 lt_prog_compiler_static='-Bstatic'
8432 ;;
8433
8434 sysv4*MP*)
8435 if test -d /usr/nec ;then
8436 lt_prog_compiler_pic='-Kconform_pic'
8437 lt_prog_compiler_static='-Bstatic'
8438 fi
8439 ;;
8440
8441 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8442 lt_prog_compiler_wl='-Wl,'
8443 lt_prog_compiler_pic='-KPIC'
8444 lt_prog_compiler_static='-Bstatic'
8445 ;;
8446
8447 unicos*)
8448 lt_prog_compiler_wl='-Wl,'
8449 lt_prog_compiler_can_build_shared=no
8450 ;;
8451
8452 uts4*)
8453 lt_prog_compiler_pic='-pic'
8454 lt_prog_compiler_static='-Bstatic'
8455 ;;
8456
8457 *)
8458 lt_prog_compiler_can_build_shared=no
8459 ;;
8460 esac
8461 fi
8462
8463 case $host_os in
8464 # For platforms which do not support PIC, -DPIC is meaningless:
8465 *djgpp*)
8466 lt_prog_compiler_pic=
8467 ;;
8468 *)
8469 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8470 ;;
8471 esac
8472
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8474 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8475 if ${lt_cv_prog_compiler_pic+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8479 fi
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8481 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8482 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8483
8484 #
8485 # Check to make sure the PIC flag actually works.
8486 #
8487 if test -n "$lt_prog_compiler_pic"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8489 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8490 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 lt_cv_prog_compiler_pic_works=no
8494 ac_outfile=conftest.$ac_objext
8495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8496 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8497 # Insert the option either (1) after the last *FLAGS variable, or
8498 # (2) before a word containing "conftest.", or (3) at the end.
8499 # Note that $ac_compile itself does not contain backslashes and begins
8500 # with a dollar sign (not a hyphen), so the echo should work correctly.
8501 # The option is referenced via a variable to avoid confusing sed.
8502 lt_compile=`echo "$ac_compile" | $SED \
8503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8505 -e 's:$: $lt_compiler_flag:'`
8506 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8507 (eval "$lt_compile" 2>conftest.err)
8508 ac_status=$?
8509 cat conftest.err >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 if (exit $ac_status) && test -s "$ac_outfile"; then
8512 # The compiler can only warn and ignore the option if not recognized
8513 # So say no if there are warnings other than the usual output.
8514 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8516 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8517 lt_cv_prog_compiler_pic_works=yes
8518 fi
8519 fi
8520 $RM conftest*
8521
8522 fi
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8524 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8525
8526 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8527 case $lt_prog_compiler_pic in
8528 "" | " "*) ;;
8529 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8530 esac
8531 else
8532 lt_prog_compiler_pic=
8533 lt_prog_compiler_can_build_shared=no
8534 fi
8535
8536 fi
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548 #
8549 # Check to make sure the static flag actually works.
8550 #
8551 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8553 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8554 if ${lt_cv_prog_compiler_static_works+:} false; then :
8555 $as_echo_n "(cached) " >&6
8556 else
8557 lt_cv_prog_compiler_static_works=no
8558 save_LDFLAGS="$LDFLAGS"
8559 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8560 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8561 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8562 # The linker can only warn and ignore the option if not recognized
8563 # So say no if there are warnings
8564 if test -s conftest.err; then
8565 # Append any errors to the config.log.
8566 cat conftest.err 1>&5
8567 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8569 if diff conftest.exp conftest.er2 >/dev/null; then
8570 lt_cv_prog_compiler_static_works=yes
8571 fi
8572 else
8573 lt_cv_prog_compiler_static_works=yes
8574 fi
8575 fi
8576 $RM -r conftest*
8577 LDFLAGS="$save_LDFLAGS"
8578
8579 fi
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8581 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8582
8583 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8584 :
8585 else
8586 lt_prog_compiler_static=
8587 fi
8588
8589
8590
8591
8592
8593
8594
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8596 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8597 if ${lt_cv_prog_compiler_c_o+:} false; then :
8598 $as_echo_n "(cached) " >&6
8599 else
8600 lt_cv_prog_compiler_c_o=no
8601 $RM -r conftest 2>/dev/null
8602 mkdir conftest
8603 cd conftest
8604 mkdir out
8605 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8606
8607 lt_compiler_flag="-o out/conftest2.$ac_objext"
8608 # Insert the option either (1) after the last *FLAGS variable, or
8609 # (2) before a word containing "conftest.", or (3) at the end.
8610 # Note that $ac_compile itself does not contain backslashes and begins
8611 # with a dollar sign (not a hyphen), so the echo should work correctly.
8612 lt_compile=`echo "$ac_compile" | $SED \
8613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8615 -e 's:$: $lt_compiler_flag:'`
8616 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8617 (eval "$lt_compile" 2>out/conftest.err)
8618 ac_status=$?
8619 cat out/conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8622 then
8623 # The compiler can only warn and ignore the option if not recognized
8624 # So say no if there are warnings
8625 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8626 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8627 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8628 lt_cv_prog_compiler_c_o=yes
8629 fi
8630 fi
8631 chmod u+w . 2>&5
8632 $RM conftest*
8633 # SGI C++ compiler will create directory out/ii_files/ for
8634 # template instantiation
8635 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8636 $RM out/* && rmdir out
8637 cd ..
8638 $RM -r conftest
8639 $RM conftest*
8640
8641 fi
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8643 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8644
8645
8646
8647
8648
8649
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8651 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8652 if ${lt_cv_prog_compiler_c_o+:} false; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8655 lt_cv_prog_compiler_c_o=no
8656 $RM -r conftest 2>/dev/null
8657 mkdir conftest
8658 cd conftest
8659 mkdir out
8660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8661
8662 lt_compiler_flag="-o out/conftest2.$ac_objext"
8663 # Insert the option either (1) after the last *FLAGS variable, or
8664 # (2) before a word containing "conftest.", or (3) at the end.
8665 # Note that $ac_compile itself does not contain backslashes and begins
8666 # with a dollar sign (not a hyphen), so the echo should work correctly.
8667 lt_compile=`echo "$ac_compile" | $SED \
8668 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8670 -e 's:$: $lt_compiler_flag:'`
8671 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8672 (eval "$lt_compile" 2>out/conftest.err)
8673 ac_status=$?
8674 cat out/conftest.err >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8677 then
8678 # The compiler can only warn and ignore the option if not recognized
8679 # So say no if there are warnings
8680 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8681 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8682 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8683 lt_cv_prog_compiler_c_o=yes
8684 fi
8685 fi
8686 chmod u+w . 2>&5
8687 $RM conftest*
8688 # SGI C++ compiler will create directory out/ii_files/ for
8689 # template instantiation
8690 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8691 $RM out/* && rmdir out
8692 cd ..
8693 $RM -r conftest
8694 $RM conftest*
8695
8696 fi
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8698 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8699
8700
8701
8702
8703 hard_links="nottested"
8704 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8705 # do not overwrite the value of need_locks provided by the user
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8707 $as_echo_n "checking if we can lock with hard links... " >&6; }
8708 hard_links=yes
8709 $RM conftest*
8710 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8711 touch conftest.a
8712 ln conftest.a conftest.b 2>&5 || hard_links=no
8713 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8715 $as_echo "$hard_links" >&6; }
8716 if test "$hard_links" = no; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8718 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8719 need_locks=warn
8720 fi
8721 else
8722 need_locks=no
8723 fi
8724
8725
8726
8727
8728
8729
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8731 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8732
8733 runpath_var=
8734 allow_undefined_flag=
8735 always_export_symbols=no
8736 archive_cmds=
8737 archive_expsym_cmds=
8738 compiler_needs_object=no
8739 enable_shared_with_static_runtimes=no
8740 export_dynamic_flag_spec=
8741 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8742 hardcode_automatic=no
8743 hardcode_direct=no
8744 hardcode_direct_absolute=no
8745 hardcode_libdir_flag_spec=
8746 hardcode_libdir_separator=
8747 hardcode_minus_L=no
8748 hardcode_shlibpath_var=unsupported
8749 inherit_rpath=no
8750 link_all_deplibs=unknown
8751 module_cmds=
8752 module_expsym_cmds=
8753 old_archive_from_new_cmds=
8754 old_archive_from_expsyms_cmds=
8755 thread_safe_flag_spec=
8756 whole_archive_flag_spec=
8757 # include_expsyms should be a list of space-separated symbols to be *always*
8758 # included in the symbol list
8759 include_expsyms=
8760 # exclude_expsyms can be an extended regexp of symbols to exclude
8761 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8762 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8763 # as well as any symbol that contains `d'.
8764 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8765 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8766 # platforms (ab)use it in PIC code, but their linkers get confused if
8767 # the symbol is explicitly referenced. Since portable code cannot
8768 # rely on this symbol name, it's probably fine to never include it in
8769 # preloaded symbol tables.
8770 # Exclude shared library initialization/finalization symbols.
8771 extract_expsyms_cmds=
8772
8773 case $host_os in
8774 cygwin* | mingw* | pw32* | cegcc*)
8775 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8776 # When not using gcc, we currently assume that we are using
8777 # Microsoft Visual C++.
8778 if test "$GCC" != yes; then
8779 with_gnu_ld=no
8780 fi
8781 ;;
8782 interix*)
8783 # we just hope/assume this is gcc and not c89 (= MSVC++)
8784 with_gnu_ld=yes
8785 ;;
8786 openbsd*)
8787 with_gnu_ld=no
8788 ;;
8789 linux* | k*bsd*-gnu | gnu*)
8790 link_all_deplibs=no
8791 ;;
8792 esac
8793
8794 ld_shlibs=yes
8795
8796 # On some targets, GNU ld is compatible enough with the native linker
8797 # that we're better off using the native interface for both.
8798 lt_use_gnu_ld_interface=no
8799 if test "$with_gnu_ld" = yes; then
8800 case $host_os in
8801 aix*)
8802 # The AIX port of GNU ld has always aspired to compatibility
8803 # with the native linker. However, as the warning in the GNU ld
8804 # block says, versions before 2.19.5* couldn't really create working
8805 # shared libraries, regardless of the interface used.
8806 case `$LD -v 2>&1` in
8807 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8808 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8809 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8810 *)
8811 lt_use_gnu_ld_interface=yes
8812 ;;
8813 esac
8814 ;;
8815 *)
8816 lt_use_gnu_ld_interface=yes
8817 ;;
8818 esac
8819 fi
8820
8821 if test "$lt_use_gnu_ld_interface" = yes; then
8822 # If archive_cmds runs LD, not CC, wlarc should be empty
8823 wlarc='${wl}'
8824
8825 # Set some defaults for GNU ld with shared library support. These
8826 # are reset later if shared libraries are not supported. Putting them
8827 # here allows them to be overridden if necessary.
8828 runpath_var=LD_RUN_PATH
8829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8830 export_dynamic_flag_spec='${wl}--export-dynamic'
8831 # ancient GNU ld didn't support --whole-archive et. al.
8832 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8833 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8834 else
8835 whole_archive_flag_spec=
8836 fi
8837 supports_anon_versioning=no
8838 case `$LD -v 2>&1` in
8839 *GNU\ gold*) supports_anon_versioning=yes ;;
8840 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8841 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8842 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8843 *\ 2.11.*) ;; # other 2.11 versions
8844 *) supports_anon_versioning=yes ;;
8845 esac
8846
8847 # See if GNU ld supports shared libraries.
8848 case $host_os in
8849 aix[3-9]*)
8850 # On AIX/PPC, the GNU linker is very broken
8851 if test "$host_cpu" != ia64; then
8852 ld_shlibs=no
8853 cat <<_LT_EOF 1>&2
8854
8855 *** Warning: the GNU linker, at least up to release 2.19, is reported
8856 *** to be unable to reliably create shared libraries on AIX.
8857 *** Therefore, libtool is disabling shared libraries support. If you
8858 *** really care for shared libraries, you may want to install binutils
8859 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8860 *** You will then need to restart the configuration process.
8861
8862 _LT_EOF
8863 fi
8864 ;;
8865
8866 amigaos*)
8867 case $host_cpu in
8868 powerpc)
8869 # see comment about AmigaOS4 .so support
8870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8871 archive_expsym_cmds=''
8872 ;;
8873 m68k)
8874 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)'
8875 hardcode_libdir_flag_spec='-L$libdir'
8876 hardcode_minus_L=yes
8877 ;;
8878 esac
8879 ;;
8880
8881 beos*)
8882 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8883 allow_undefined_flag=unsupported
8884 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8885 # support --undefined. This deserves some investigation. FIXME
8886 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8887 else
8888 ld_shlibs=no
8889 fi
8890 ;;
8891
8892 cygwin* | mingw* | pw32* | cegcc*)
8893 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8894 # as there is no search path for DLLs.
8895 hardcode_libdir_flag_spec='-L$libdir'
8896 export_dynamic_flag_spec='${wl}--export-all-symbols'
8897 allow_undefined_flag=unsupported
8898 always_export_symbols=no
8899 enable_shared_with_static_runtimes=yes
8900 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8901 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8902
8903 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8905 # If the export-symbols file already is a .def file (1st line
8906 # is EXPORTS), use it as is; otherwise, prepend...
8907 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8908 cp $export_symbols $output_objdir/$soname.def;
8909 else
8910 echo EXPORTS > $output_objdir/$soname.def;
8911 cat $export_symbols >> $output_objdir/$soname.def;
8912 fi~
8913 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8914 else
8915 ld_shlibs=no
8916 fi
8917 ;;
8918
8919 haiku*)
8920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8921 link_all_deplibs=yes
8922 ;;
8923
8924 interix[3-9]*)
8925 hardcode_direct=no
8926 hardcode_shlibpath_var=no
8927 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8928 export_dynamic_flag_spec='${wl}-E'
8929 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8930 # Instead, shared libraries are loaded at an image base (0x10000000 by
8931 # default) and relocated if they conflict, which is a slow very memory
8932 # consuming and fragmenting process. To avoid this, we pick a random,
8933 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8934 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8935 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8936 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'
8937 ;;
8938
8939 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8940 tmp_diet=no
8941 if test "$host_os" = linux-dietlibc; then
8942 case $cc_basename in
8943 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8944 esac
8945 fi
8946 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8947 && test "$tmp_diet" = no
8948 then
8949 tmp_addflag=' $pic_flag'
8950 tmp_sharedflag='-shared'
8951 case $cc_basename,$host_cpu in
8952 pgcc*) # Portland Group C compiler
8953 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8954 tmp_addflag=' $pic_flag'
8955 ;;
8956 pgf77* | pgf90* | pgf95* | pgfortran*)
8957 # Portland Group f77 and f90 compilers
8958 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8959 tmp_addflag=' $pic_flag -Mnomain' ;;
8960 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8961 tmp_addflag=' -i_dynamic' ;;
8962 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8963 tmp_addflag=' -i_dynamic -nofor_main' ;;
8964 ifc* | ifort*) # Intel Fortran compiler
8965 tmp_addflag=' -nofor_main' ;;
8966 lf95*) # Lahey Fortran 8.1
8967 whole_archive_flag_spec=
8968 tmp_sharedflag='--shared' ;;
8969 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8970 tmp_sharedflag='-qmkshrobj'
8971 tmp_addflag= ;;
8972 nvcc*) # Cuda Compiler Driver 2.2
8973 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8974 compiler_needs_object=yes
8975 ;;
8976 esac
8977 case `$CC -V 2>&1 | sed 5q` in
8978 *Sun\ C*) # Sun C 5.9
8979 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8980 compiler_needs_object=yes
8981 tmp_sharedflag='-G' ;;
8982 *Sun\ F*) # Sun Fortran 8.3
8983 tmp_sharedflag='-G' ;;
8984 esac
8985 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986
8987 if test "x$supports_anon_versioning" = xyes; then
8988 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8989 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8990 echo "local: *; };" >> $output_objdir/$libname.ver~
8991 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8992 fi
8993
8994 case $cc_basename in
8995 xlf* | bgf* | bgxlf* | mpixlf*)
8996 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8997 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8998 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8999 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9000 if test "x$supports_anon_versioning" = xyes; then
9001 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9002 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9003 echo "local: *; };" >> $output_objdir/$libname.ver~
9004 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9005 fi
9006 ;;
9007 esac
9008 else
9009 ld_shlibs=no
9010 fi
9011 ;;
9012
9013 netbsd* | netbsdelf*-gnu)
9014 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9015 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9016 wlarc=
9017 else
9018 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9020 fi
9021 ;;
9022
9023 solaris*)
9024 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9025 ld_shlibs=no
9026 cat <<_LT_EOF 1>&2
9027
9028 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9029 *** create shared libraries on Solaris systems. Therefore, libtool
9030 *** is disabling shared libraries support. We urge you to upgrade GNU
9031 *** binutils to release 2.9.1 or newer. Another option is to modify
9032 *** your PATH or compiler configuration so that the native linker is
9033 *** used, and then restart.
9034
9035 _LT_EOF
9036 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9037 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9039 else
9040 ld_shlibs=no
9041 fi
9042 ;;
9043
9044 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9045 case `$LD -v 2>&1` in
9046 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9047 ld_shlibs=no
9048 cat <<_LT_EOF 1>&2
9049
9050 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9051 *** reliably create shared libraries on SCO systems. Therefore, libtool
9052 *** is disabling shared libraries support. We urge you to upgrade GNU
9053 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9054 *** your PATH or compiler configuration so that the native linker is
9055 *** used, and then restart.
9056
9057 _LT_EOF
9058 ;;
9059 *)
9060 # For security reasons, it is highly recommended that you always
9061 # use absolute paths for naming shared libraries, and exclude the
9062 # DT_RUNPATH tag from executables and libraries. But doing so
9063 # requires that you compile everything twice, which is a pain.
9064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9067 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9068 else
9069 ld_shlibs=no
9070 fi
9071 ;;
9072 esac
9073 ;;
9074
9075 sunos4*)
9076 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9077 wlarc=
9078 hardcode_direct=yes
9079 hardcode_shlibpath_var=no
9080 ;;
9081
9082 *)
9083 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9084 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9085 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9086 else
9087 ld_shlibs=no
9088 fi
9089 ;;
9090 esac
9091
9092 if test "$ld_shlibs" = no; then
9093 runpath_var=
9094 hardcode_libdir_flag_spec=
9095 export_dynamic_flag_spec=
9096 whole_archive_flag_spec=
9097 fi
9098 else
9099 # PORTME fill in a description of your system's linker (not GNU ld)
9100 case $host_os in
9101 aix3*)
9102 allow_undefined_flag=unsupported
9103 always_export_symbols=yes
9104 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'
9105 # Note: this linker hardcodes the directories in LIBPATH if there
9106 # are no directories specified by -L.
9107 hardcode_minus_L=yes
9108 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9109 # Neither direct hardcoding nor static linking is supported with a
9110 # broken collect2.
9111 hardcode_direct=unsupported
9112 fi
9113 ;;
9114
9115 aix[4-9]*)
9116 if test "$host_cpu" = ia64; then
9117 # On IA64, the linker does run time linking by default, so we don't
9118 # have to do anything special.
9119 aix_use_runtimelinking=no
9120 exp_sym_flag='-Bexport'
9121 no_entry_flag=""
9122 else
9123 # If we're using GNU nm, then we don't want the "-C" option.
9124 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9125 # Also, AIX nm treats weak defined symbols like other global
9126 # defined symbols, whereas GNU nm marks them as "W".
9127 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9128 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9129 else
9130 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'
9131 fi
9132 aix_use_runtimelinking=no
9133
9134 # Test if we are trying to use run time linking or normal
9135 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9136 # need to do runtime linking.
9137 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9138 for ld_flag in $LDFLAGS; do
9139 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9140 aix_use_runtimelinking=yes
9141 break
9142 fi
9143 done
9144 ;;
9145 esac
9146
9147 exp_sym_flag='-bexport'
9148 no_entry_flag='-bnoentry'
9149 fi
9150
9151 # When large executables or shared objects are built, AIX ld can
9152 # have problems creating the table of contents. If linking a library
9153 # or program results in "error TOC overflow" add -mminimal-toc to
9154 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9155 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9156
9157 archive_cmds=''
9158 hardcode_direct=yes
9159 hardcode_direct_absolute=yes
9160 hardcode_libdir_separator=':'
9161 link_all_deplibs=yes
9162 file_list_spec='${wl}-f,'
9163
9164 if test "$GCC" = yes; then
9165 case $host_os in aix4.[012]|aix4.[012].*)
9166 # We only want to do this on AIX 4.2 and lower, the check
9167 # below for broken collect2 doesn't work under 4.3+
9168 collect2name=`${CC} -print-prog-name=collect2`
9169 if test -f "$collect2name" &&
9170 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9171 then
9172 # We have reworked collect2
9173 :
9174 else
9175 # We have old collect2
9176 hardcode_direct=unsupported
9177 # It fails to find uninstalled libraries when the uninstalled
9178 # path is not listed in the libpath. Setting hardcode_minus_L
9179 # to unsupported forces relinking
9180 hardcode_minus_L=yes
9181 hardcode_libdir_flag_spec='-L$libdir'
9182 hardcode_libdir_separator=
9183 fi
9184 ;;
9185 esac
9186 shared_flag='-shared'
9187 if test "$aix_use_runtimelinking" = yes; then
9188 shared_flag="$shared_flag "'${wl}-G'
9189 fi
9190 link_all_deplibs=no
9191 else
9192 # not using gcc
9193 if test "$host_cpu" = ia64; then
9194 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9195 # chokes on -Wl,-G. The following line is correct:
9196 shared_flag='-G'
9197 else
9198 if test "$aix_use_runtimelinking" = yes; then
9199 shared_flag='${wl}-G'
9200 else
9201 shared_flag='${wl}-bM:SRE'
9202 fi
9203 fi
9204 fi
9205
9206 export_dynamic_flag_spec='${wl}-bexpall'
9207 # It seems that -bexpall does not export symbols beginning with
9208 # underscore (_), so it is better to generate a list of symbols to export.
9209 always_export_symbols=yes
9210 if test "$aix_use_runtimelinking" = yes; then
9211 # Warning - without using the other runtime loading flags (-brtl),
9212 # -berok will link without error, but may produce a broken library.
9213 allow_undefined_flag='-berok'
9214 # Determine the default libpath from the value encoded in an
9215 # empty executable.
9216 if test "${lt_cv_aix_libpath+set}" = set; then
9217 aix_libpath=$lt_cv_aix_libpath
9218 else
9219 if ${lt_cv_aix_libpath_+:} false; then :
9220 $as_echo_n "(cached) " >&6
9221 else
9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9224
9225 int
9226 main ()
9227 {
9228
9229 ;
9230 return 0;
9231 }
9232 _ACEOF
9233 if ac_fn_c_try_link "$LINENO"; then :
9234
9235 lt_aix_libpath_sed='
9236 /Import File Strings/,/^$/ {
9237 /^0/ {
9238 s/^0 *\([^ ]*\) *$/\1/
9239 p
9240 }
9241 }'
9242 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9243 # Check for a 64-bit object if we didn't find anything.
9244 if test -z "$lt_cv_aix_libpath_"; then
9245 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9246 fi
9247 fi
9248 rm -f core conftest.err conftest.$ac_objext \
9249 conftest$ac_exeext conftest.$ac_ext
9250 if test -z "$lt_cv_aix_libpath_"; then
9251 lt_cv_aix_libpath_="/usr/lib:/lib"
9252 fi
9253
9254 fi
9255
9256 aix_libpath=$lt_cv_aix_libpath_
9257 fi
9258
9259 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9260 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9261 else
9262 if test "$host_cpu" = ia64; then
9263 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9264 allow_undefined_flag="-z nodefs"
9265 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"
9266 else
9267 # Determine the default libpath from the value encoded in an
9268 # empty executable.
9269 if test "${lt_cv_aix_libpath+set}" = set; then
9270 aix_libpath=$lt_cv_aix_libpath
9271 else
9272 if ${lt_cv_aix_libpath_+:} false; then :
9273 $as_echo_n "(cached) " >&6
9274 else
9275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9276 /* end confdefs.h. */
9277
9278 int
9279 main ()
9280 {
9281
9282 ;
9283 return 0;
9284 }
9285 _ACEOF
9286 if ac_fn_c_try_link "$LINENO"; then :
9287
9288 lt_aix_libpath_sed='
9289 /Import File Strings/,/^$/ {
9290 /^0/ {
9291 s/^0 *\([^ ]*\) *$/\1/
9292 p
9293 }
9294 }'
9295 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9296 # Check for a 64-bit object if we didn't find anything.
9297 if test -z "$lt_cv_aix_libpath_"; then
9298 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9299 fi
9300 fi
9301 rm -f core conftest.err conftest.$ac_objext \
9302 conftest$ac_exeext conftest.$ac_ext
9303 if test -z "$lt_cv_aix_libpath_"; then
9304 lt_cv_aix_libpath_="/usr/lib:/lib"
9305 fi
9306
9307 fi
9308
9309 aix_libpath=$lt_cv_aix_libpath_
9310 fi
9311
9312 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9313 # Warning - without using the other run time loading flags,
9314 # -berok will link without error, but may produce a broken library.
9315 no_undefined_flag=' ${wl}-bernotok'
9316 allow_undefined_flag=' ${wl}-berok'
9317 if test "$with_gnu_ld" = yes; then
9318 # We only use this code for GNU lds that support --whole-archive.
9319 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9320 else
9321 # Exported symbols can be pulled into shared objects from archives
9322 whole_archive_flag_spec='$convenience'
9323 fi
9324 archive_cmds_need_lc=yes
9325 # This is similar to how AIX traditionally builds its shared libraries.
9326 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'
9327 fi
9328 fi
9329 ;;
9330
9331 amigaos*)
9332 case $host_cpu in
9333 powerpc)
9334 # see comment about AmigaOS4 .so support
9335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9336 archive_expsym_cmds=''
9337 ;;
9338 m68k)
9339 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)'
9340 hardcode_libdir_flag_spec='-L$libdir'
9341 hardcode_minus_L=yes
9342 ;;
9343 esac
9344 ;;
9345
9346 bsdi[45]*)
9347 export_dynamic_flag_spec=-rdynamic
9348 ;;
9349
9350 cygwin* | mingw* | pw32* | cegcc*)
9351 # When not using gcc, we currently assume that we are using
9352 # Microsoft Visual C++.
9353 # hardcode_libdir_flag_spec is actually meaningless, as there is
9354 # no search path for DLLs.
9355 case $cc_basename in
9356 cl*)
9357 # Native MSVC
9358 hardcode_libdir_flag_spec=' '
9359 allow_undefined_flag=unsupported
9360 always_export_symbols=yes
9361 file_list_spec='@'
9362 # Tell ltmain to make .lib files, not .a files.
9363 libext=lib
9364 # Tell ltmain to make .dll files, not .so files.
9365 shrext_cmds=".dll"
9366 # FIXME: Setting linknames here is a bad hack.
9367 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9368 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9369 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9370 else
9371 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9372 fi~
9373 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9374 linknames='
9375 # The linker will not automatically build a static lib if we build a DLL.
9376 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9377 enable_shared_with_static_runtimes=yes
9378 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9379 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9380 # Don't use ranlib
9381 old_postinstall_cmds='chmod 644 $oldlib'
9382 postlink_cmds='lt_outputfile="@OUTPUT@"~
9383 lt_tool_outputfile="@TOOL_OUTPUT@"~
9384 case $lt_outputfile in
9385 *.exe|*.EXE) ;;
9386 *)
9387 lt_outputfile="$lt_outputfile.exe"
9388 lt_tool_outputfile="$lt_tool_outputfile.exe"
9389 ;;
9390 esac~
9391 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9392 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9393 $RM "$lt_outputfile.manifest";
9394 fi'
9395 ;;
9396 *)
9397 # Assume MSVC wrapper
9398 hardcode_libdir_flag_spec=' '
9399 allow_undefined_flag=unsupported
9400 # Tell ltmain to make .lib files, not .a files.
9401 libext=lib
9402 # Tell ltmain to make .dll files, not .so files.
9403 shrext_cmds=".dll"
9404 # FIXME: Setting linknames here is a bad hack.
9405 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9406 # The linker will automatically build a .lib file if we build a DLL.
9407 old_archive_from_new_cmds='true'
9408 # FIXME: Should let the user specify the lib program.
9409 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9410 enable_shared_with_static_runtimes=yes
9411 ;;
9412 esac
9413 ;;
9414
9415 darwin* | rhapsody*)
9416
9417
9418 archive_cmds_need_lc=no
9419 hardcode_direct=no
9420 hardcode_automatic=yes
9421 hardcode_shlibpath_var=unsupported
9422 if test "$lt_cv_ld_force_load" = "yes"; then
9423 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9424
9425 else
9426 whole_archive_flag_spec=''
9427 fi
9428 link_all_deplibs=yes
9429 allow_undefined_flag="$_lt_dar_allow_undefined"
9430 case $cc_basename in
9431 ifort*) _lt_dar_can_shared=yes ;;
9432 *) _lt_dar_can_shared=$GCC ;;
9433 esac
9434 if test "$_lt_dar_can_shared" = "yes"; then
9435 output_verbose_link_cmd=func_echo_all
9436 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9437 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9438 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}"
9439 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}"
9440
9441 else
9442 ld_shlibs=no
9443 fi
9444
9445 ;;
9446
9447 dgux*)
9448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449 hardcode_libdir_flag_spec='-L$libdir'
9450 hardcode_shlibpath_var=no
9451 ;;
9452
9453 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9454 # support. Future versions do this automatically, but an explicit c++rt0.o
9455 # does not break anything, and helps significantly (at the cost of a little
9456 # extra space).
9457 freebsd2.2*)
9458 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9459 hardcode_libdir_flag_spec='-R$libdir'
9460 hardcode_direct=yes
9461 hardcode_shlibpath_var=no
9462 ;;
9463
9464 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9465 freebsd2.*)
9466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9467 hardcode_direct=yes
9468 hardcode_minus_L=yes
9469 hardcode_shlibpath_var=no
9470 ;;
9471
9472 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9473 freebsd* | dragonfly*)
9474 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9475 hardcode_libdir_flag_spec='-R$libdir'
9476 hardcode_direct=yes
9477 hardcode_shlibpath_var=no
9478 ;;
9479
9480 hpux9*)
9481 if test "$GCC" = yes; then
9482 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9483 else
9484 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'
9485 fi
9486 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9487 hardcode_libdir_separator=:
9488 hardcode_direct=yes
9489
9490 # hardcode_minus_L: Not really in the search PATH,
9491 # but as the default location of the library.
9492 hardcode_minus_L=yes
9493 export_dynamic_flag_spec='${wl}-E'
9494 ;;
9495
9496 hpux10*)
9497 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9498 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9499 else
9500 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9501 fi
9502 if test "$with_gnu_ld" = no; then
9503 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9504 hardcode_libdir_separator=:
9505 hardcode_direct=yes
9506 hardcode_direct_absolute=yes
9507 export_dynamic_flag_spec='${wl}-E'
9508 # hardcode_minus_L: Not really in the search PATH,
9509 # but as the default location of the library.
9510 hardcode_minus_L=yes
9511 fi
9512 ;;
9513
9514 hpux11*)
9515 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9516 case $host_cpu in
9517 hppa*64*)
9518 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9519 ;;
9520 ia64*)
9521 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9522 ;;
9523 *)
9524 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9525 ;;
9526 esac
9527 else
9528 case $host_cpu in
9529 hppa*64*)
9530 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9531 ;;
9532 ia64*)
9533 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9534 ;;
9535 *)
9536
9537 # Older versions of the 11.00 compiler do not understand -b yet
9538 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9540 $as_echo_n "checking if $CC understands -b... " >&6; }
9541 if ${lt_cv_prog_compiler__b+:} false; then :
9542 $as_echo_n "(cached) " >&6
9543 else
9544 lt_cv_prog_compiler__b=no
9545 save_LDFLAGS="$LDFLAGS"
9546 LDFLAGS="$LDFLAGS -b"
9547 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9548 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9549 # The linker can only warn and ignore the option if not recognized
9550 # So say no if there are warnings
9551 if test -s conftest.err; then
9552 # Append any errors to the config.log.
9553 cat conftest.err 1>&5
9554 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9556 if diff conftest.exp conftest.er2 >/dev/null; then
9557 lt_cv_prog_compiler__b=yes
9558 fi
9559 else
9560 lt_cv_prog_compiler__b=yes
9561 fi
9562 fi
9563 $RM -r conftest*
9564 LDFLAGS="$save_LDFLAGS"
9565
9566 fi
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9568 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9569
9570 if test x"$lt_cv_prog_compiler__b" = xyes; then
9571 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9572 else
9573 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9574 fi
9575
9576 ;;
9577 esac
9578 fi
9579 if test "$with_gnu_ld" = no; then
9580 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9581 hardcode_libdir_separator=:
9582
9583 case $host_cpu in
9584 hppa*64*|ia64*)
9585 hardcode_direct=no
9586 hardcode_shlibpath_var=no
9587 ;;
9588 *)
9589 hardcode_direct=yes
9590 hardcode_direct_absolute=yes
9591 export_dynamic_flag_spec='${wl}-E'
9592
9593 # hardcode_minus_L: Not really in the search PATH,
9594 # but as the default location of the library.
9595 hardcode_minus_L=yes
9596 ;;
9597 esac
9598 fi
9599 ;;
9600
9601 irix5* | irix6* | nonstopux*)
9602 if test "$GCC" = yes; then
9603 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9604 # Try to use the -exported_symbol ld option, if it does not
9605 # work, assume that -exports_file does not work either and
9606 # implicitly export all symbols.
9607 # This should be the same for all languages, so no per-tag cache variable.
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9609 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9610 if ${lt_cv_irix_exported_symbol+:} false; then :
9611 $as_echo_n "(cached) " >&6
9612 else
9613 save_LDFLAGS="$LDFLAGS"
9614 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9617 int foo (void) { return 0; }
9618 _ACEOF
9619 if ac_fn_c_try_link "$LINENO"; then :
9620 lt_cv_irix_exported_symbol=yes
9621 else
9622 lt_cv_irix_exported_symbol=no
9623 fi
9624 rm -f core conftest.err conftest.$ac_objext \
9625 conftest$ac_exeext conftest.$ac_ext
9626 LDFLAGS="$save_LDFLAGS"
9627 fi
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9629 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9630 if test "$lt_cv_irix_exported_symbol" = yes; then
9631 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9632 fi
9633 else
9634 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9635 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9636 fi
9637 archive_cmds_need_lc='no'
9638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9639 hardcode_libdir_separator=:
9640 inherit_rpath=yes
9641 link_all_deplibs=yes
9642 ;;
9643
9644 netbsd* | netbsdelf*-gnu)
9645 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9646 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9647 else
9648 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9649 fi
9650 hardcode_libdir_flag_spec='-R$libdir'
9651 hardcode_direct=yes
9652 hardcode_shlibpath_var=no
9653 ;;
9654
9655 newsos6)
9656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657 hardcode_direct=yes
9658 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9659 hardcode_libdir_separator=:
9660 hardcode_shlibpath_var=no
9661 ;;
9662
9663 *nto* | *qnx*)
9664 ;;
9665
9666 openbsd*)
9667 if test -f /usr/libexec/ld.so; then
9668 hardcode_direct=yes
9669 hardcode_shlibpath_var=no
9670 hardcode_direct_absolute=yes
9671 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9672 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9673 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9674 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9675 export_dynamic_flag_spec='${wl}-E'
9676 else
9677 case $host_os in
9678 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9679 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9680 hardcode_libdir_flag_spec='-R$libdir'
9681 ;;
9682 *)
9683 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9684 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9685 ;;
9686 esac
9687 fi
9688 else
9689 ld_shlibs=no
9690 fi
9691 ;;
9692
9693 os2*)
9694 hardcode_libdir_flag_spec='-L$libdir'
9695 hardcode_minus_L=yes
9696 allow_undefined_flag=unsupported
9697 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'
9698 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9699 ;;
9700
9701 osf3*)
9702 if test "$GCC" = yes; then
9703 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9704 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9705 else
9706 allow_undefined_flag=' -expect_unresolved \*'
9707 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9708 fi
9709 archive_cmds_need_lc='no'
9710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9711 hardcode_libdir_separator=:
9712 ;;
9713
9714 osf4* | osf5*) # as osf3* with the addition of -msym flag
9715 if test "$GCC" = yes; then
9716 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9717 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9718 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9719 else
9720 allow_undefined_flag=' -expect_unresolved \*'
9721 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9722 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~
9723 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9724
9725 # Both c and cxx compiler support -rpath directly
9726 hardcode_libdir_flag_spec='-rpath $libdir'
9727 fi
9728 archive_cmds_need_lc='no'
9729 hardcode_libdir_separator=:
9730 ;;
9731
9732 solaris*)
9733 no_undefined_flag=' -z defs'
9734 if test "$GCC" = yes; then
9735 wlarc='${wl}'
9736 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9737 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9738 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9739 else
9740 case `$CC -V 2>&1` in
9741 *"Compilers 5.0"*)
9742 wlarc=''
9743 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9744 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9745 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9746 ;;
9747 *)
9748 wlarc='${wl}'
9749 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9750 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9751 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9752 ;;
9753 esac
9754 fi
9755 hardcode_libdir_flag_spec='-R$libdir'
9756 hardcode_shlibpath_var=no
9757 case $host_os in
9758 solaris2.[0-5] | solaris2.[0-5].*) ;;
9759 *)
9760 # The compiler driver will combine and reorder linker options,
9761 # but understands `-z linker_flag'. GCC discards it without `$wl',
9762 # but is careful enough not to reorder.
9763 # Supported since Solaris 2.6 (maybe 2.5.1?)
9764 if test "$GCC" = yes; then
9765 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9766 else
9767 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9768 fi
9769 ;;
9770 esac
9771 link_all_deplibs=yes
9772 ;;
9773
9774 sunos4*)
9775 if test "x$host_vendor" = xsequent; then
9776 # Use $CC to link under sequent, because it throws in some extra .o
9777 # files that make .init and .fini sections work.
9778 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9779 else
9780 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9781 fi
9782 hardcode_libdir_flag_spec='-L$libdir'
9783 hardcode_direct=yes
9784 hardcode_minus_L=yes
9785 hardcode_shlibpath_var=no
9786 ;;
9787
9788 sysv4)
9789 case $host_vendor in
9790 sni)
9791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9792 hardcode_direct=yes # is this really true???
9793 ;;
9794 siemens)
9795 ## LD is ld it makes a PLAMLIB
9796 ## CC just makes a GrossModule.
9797 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9798 reload_cmds='$CC -r -o $output$reload_objs'
9799 hardcode_direct=no
9800 ;;
9801 motorola)
9802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9803 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9804 ;;
9805 esac
9806 runpath_var='LD_RUN_PATH'
9807 hardcode_shlibpath_var=no
9808 ;;
9809
9810 sysv4.3*)
9811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9812 hardcode_shlibpath_var=no
9813 export_dynamic_flag_spec='-Bexport'
9814 ;;
9815
9816 sysv4*MP*)
9817 if test -d /usr/nec; then
9818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9819 hardcode_shlibpath_var=no
9820 runpath_var=LD_RUN_PATH
9821 hardcode_runpath_var=yes
9822 ld_shlibs=yes
9823 fi
9824 ;;
9825
9826 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9827 no_undefined_flag='${wl}-z,text'
9828 archive_cmds_need_lc=no
9829 hardcode_shlibpath_var=no
9830 runpath_var='LD_RUN_PATH'
9831
9832 if test "$GCC" = yes; then
9833 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9834 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9835 else
9836 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9837 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9838 fi
9839 ;;
9840
9841 sysv5* | sco3.2v5* | sco5v6*)
9842 # Note: We can NOT use -z defs as we might desire, because we do not
9843 # link with -lc, and that would cause any symbols used from libc to
9844 # always be unresolved, which means just about no library would
9845 # ever link correctly. If we're not using GNU ld we use -z text
9846 # though, which does catch some bad symbols but isn't as heavy-handed
9847 # as -z defs.
9848 no_undefined_flag='${wl}-z,text'
9849 allow_undefined_flag='${wl}-z,nodefs'
9850 archive_cmds_need_lc=no
9851 hardcode_shlibpath_var=no
9852 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9853 hardcode_libdir_separator=':'
9854 link_all_deplibs=yes
9855 export_dynamic_flag_spec='${wl}-Bexport'
9856 runpath_var='LD_RUN_PATH'
9857
9858 if test "$GCC" = yes; then
9859 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9860 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9861 else
9862 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9863 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9864 fi
9865 ;;
9866
9867 uts4*)
9868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9869 hardcode_libdir_flag_spec='-L$libdir'
9870 hardcode_shlibpath_var=no
9871 ;;
9872
9873 *)
9874 ld_shlibs=no
9875 ;;
9876 esac
9877
9878 if test x$host_vendor = xsni; then
9879 case $host in
9880 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9881 export_dynamic_flag_spec='${wl}-Blargedynsym'
9882 ;;
9883 esac
9884 fi
9885 fi
9886
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9888 $as_echo "$ld_shlibs" >&6; }
9889 test "$ld_shlibs" = no && can_build_shared=no
9890
9891 with_gnu_ld=$with_gnu_ld
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907 #
9908 # Do we need to explicitly link libc?
9909 #
9910 case "x$archive_cmds_need_lc" in
9911 x|xyes)
9912 # Assume -lc should be added
9913 archive_cmds_need_lc=yes
9914
9915 if test "$enable_shared" = yes && test "$GCC" = yes; then
9916 case $archive_cmds in
9917 *'~'*)
9918 # FIXME: we may have to deal with multi-command sequences.
9919 ;;
9920 '$CC '*)
9921 # Test whether the compiler implicitly links with -lc since on some
9922 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9923 # to ld, don't add -lc before -lgcc.
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9925 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9926 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9927 $as_echo_n "(cached) " >&6
9928 else
9929 $RM conftest*
9930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9931
9932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9933 (eval $ac_compile) 2>&5
9934 ac_status=$?
9935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9936 test $ac_status = 0; } 2>conftest.err; then
9937 soname=conftest
9938 lib=conftest
9939 libobjs=conftest.$ac_objext
9940 deplibs=
9941 wl=$lt_prog_compiler_wl
9942 pic_flag=$lt_prog_compiler_pic
9943 compiler_flags=-v
9944 linker_flags=-v
9945 verstring=
9946 output_objdir=.
9947 libname=conftest
9948 lt_save_allow_undefined_flag=$allow_undefined_flag
9949 allow_undefined_flag=
9950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9951 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9952 ac_status=$?
9953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9954 test $ac_status = 0; }
9955 then
9956 lt_cv_archive_cmds_need_lc=no
9957 else
9958 lt_cv_archive_cmds_need_lc=yes
9959 fi
9960 allow_undefined_flag=$lt_save_allow_undefined_flag
9961 else
9962 cat conftest.err 1>&5
9963 fi
9964 $RM conftest*
9965
9966 fi
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9968 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9969 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9970 ;;
9971 esac
9972 fi
9973 ;;
9974 esac
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10128 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10129
10130 if test "$GCC" = yes; then
10131 case $host_os in
10132 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10133 *) lt_awk_arg="/^libraries:/" ;;
10134 esac
10135 case $host_os in
10136 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10137 *) lt_sed_strip_eq="s,=/,/,g" ;;
10138 esac
10139 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10140 case $lt_search_path_spec in
10141 *\;*)
10142 # if the path contains ";" then we assume it to be the separator
10143 # otherwise default to the standard path separator (i.e. ":") - it is
10144 # assumed that no part of a normal pathname contains ";" but that should
10145 # okay in the real world where ";" in dirpaths is itself problematic.
10146 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10147 ;;
10148 *)
10149 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10150 ;;
10151 esac
10152 # Ok, now we have the path, separated by spaces, we can step through it
10153 # and add multilib dir if necessary.
10154 lt_tmp_lt_search_path_spec=
10155 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10156 for lt_sys_path in $lt_search_path_spec; do
10157 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10158 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10159 else
10160 test -d "$lt_sys_path" && \
10161 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10162 fi
10163 done
10164 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10165 BEGIN {RS=" "; FS="/|\n";} {
10166 lt_foo="";
10167 lt_count=0;
10168 for (lt_i = NF; lt_i > 0; lt_i--) {
10169 if ($lt_i != "" && $lt_i != ".") {
10170 if ($lt_i == "..") {
10171 lt_count++;
10172 } else {
10173 if (lt_count == 0) {
10174 lt_foo="/" $lt_i lt_foo;
10175 } else {
10176 lt_count--;
10177 }
10178 }
10179 }
10180 }
10181 if (lt_foo != "") { lt_freq[lt_foo]++; }
10182 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10183 }'`
10184 # AWK program above erroneously prepends '/' to C:/dos/paths
10185 # for these hosts.
10186 case $host_os in
10187 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10188 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10189 esac
10190 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10191 else
10192 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10193 fi
10194 library_names_spec=
10195 libname_spec='lib$name'
10196 soname_spec=
10197 shrext_cmds=".so"
10198 postinstall_cmds=
10199 postuninstall_cmds=
10200 finish_cmds=
10201 finish_eval=
10202 shlibpath_var=
10203 shlibpath_overrides_runpath=unknown
10204 version_type=none
10205 dynamic_linker="$host_os ld.so"
10206 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10207 need_lib_prefix=unknown
10208 hardcode_into_libs=no
10209
10210 # when you set need_version to no, make sure it does not cause -set_version
10211 # flags to be left without arguments
10212 need_version=unknown
10213
10214 case $host_os in
10215 aix3*)
10216 version_type=linux # correct to gnu/linux during the next big refactor
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10218 shlibpath_var=LIBPATH
10219
10220 # AIX 3 has no versioning support, so we append a major version to the name.
10221 soname_spec='${libname}${release}${shared_ext}$major'
10222 ;;
10223
10224 aix[4-9]*)
10225 version_type=linux # correct to gnu/linux during the next big refactor
10226 need_lib_prefix=no
10227 need_version=no
10228 hardcode_into_libs=yes
10229 if test "$host_cpu" = ia64; then
10230 # AIX 5 supports IA64
10231 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 else
10234 # With GCC up to 2.95.x, collect2 would create an import file
10235 # for dependence libraries. The import file would start with
10236 # the line `#! .'. This would cause the generated library to
10237 # depend on `.', always an invalid library. This was fixed in
10238 # development snapshots of GCC prior to 3.0.
10239 case $host_os in
10240 aix4 | aix4.[01] | aix4.[01].*)
10241 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10242 echo ' yes '
10243 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10244 :
10245 else
10246 can_build_shared=no
10247 fi
10248 ;;
10249 esac
10250 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10251 # soname into executable. Probably we can add versioning support to
10252 # collect2, so additional links can be useful in future.
10253 if test "$aix_use_runtimelinking" = yes; then
10254 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10255 # instead of lib<name>.a to let people know that these are not
10256 # typical AIX shared libraries.
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10258 else
10259 # We preserve .a as extension for shared libraries through AIX4.2
10260 # and later when we are not doing run time linking.
10261 library_names_spec='${libname}${release}.a $libname.a'
10262 soname_spec='${libname}${release}${shared_ext}$major'
10263 fi
10264 shlibpath_var=LIBPATH
10265 fi
10266 ;;
10267
10268 amigaos*)
10269 case $host_cpu in
10270 powerpc)
10271 # Since July 2007 AmigaOS4 officially supports .so libraries.
10272 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274 ;;
10275 m68k)
10276 library_names_spec='$libname.ixlibrary $libname.a'
10277 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10278 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10279 ;;
10280 esac
10281 ;;
10282
10283 beos*)
10284 library_names_spec='${libname}${shared_ext}'
10285 dynamic_linker="$host_os ld.so"
10286 shlibpath_var=LIBRARY_PATH
10287 ;;
10288
10289 bsdi[45]*)
10290 version_type=linux # correct to gnu/linux during the next big refactor
10291 need_version=no
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293 soname_spec='${libname}${release}${shared_ext}$major'
10294 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10297 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10298 # the default ld.so.conf also contains /usr/contrib/lib and
10299 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10300 # libtool to hard-code these into programs
10301 ;;
10302
10303 cygwin* | mingw* | pw32* | cegcc*)
10304 version_type=windows
10305 shrext_cmds=".dll"
10306 need_version=no
10307 need_lib_prefix=no
10308
10309 case $GCC,$cc_basename in
10310 yes,*)
10311 # gcc
10312 library_names_spec='$libname.dll.a'
10313 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10314 postinstall_cmds='base_file=`basename \${file}`~
10315 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10316 dldir=$destdir/`dirname \$dlpath`~
10317 test -d \$dldir || mkdir -p \$dldir~
10318 $install_prog $dir/$dlname \$dldir/$dlname~
10319 chmod a+x \$dldir/$dlname~
10320 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10321 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10322 fi'
10323 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10324 dlpath=$dir/\$dldll~
10325 $RM \$dlpath'
10326 shlibpath_overrides_runpath=yes
10327
10328 case $host_os in
10329 cygwin*)
10330 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10331 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10332
10333 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10334 ;;
10335 mingw* | cegcc*)
10336 # MinGW DLLs use traditional 'lib' prefix
10337 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10338 ;;
10339 pw32*)
10340 # pw32 DLLs use 'pw' prefix rather than 'lib'
10341 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10342 ;;
10343 esac
10344 dynamic_linker='Win32 ld.exe'
10345 ;;
10346
10347 *,cl*)
10348 # Native MSVC
10349 libname_spec='$name'
10350 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10351 library_names_spec='${libname}.dll.lib'
10352
10353 case $build_os in
10354 mingw*)
10355 sys_lib_search_path_spec=
10356 lt_save_ifs=$IFS
10357 IFS=';'
10358 for lt_path in $LIB
10359 do
10360 IFS=$lt_save_ifs
10361 # Let DOS variable expansion print the short 8.3 style file name.
10362 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10363 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10364 done
10365 IFS=$lt_save_ifs
10366 # Convert to MSYS style.
10367 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10368 ;;
10369 cygwin*)
10370 # Convert to unix form, then to dos form, then back to unix form
10371 # but this time dos style (no spaces!) so that the unix form looks
10372 # like /cygdrive/c/PROGRA~1:/cygdr...
10373 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10374 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10375 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10376 ;;
10377 *)
10378 sys_lib_search_path_spec="$LIB"
10379 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10380 # It is most probably a Windows format PATH.
10381 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10382 else
10383 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10384 fi
10385 # FIXME: find the short name or the path components, as spaces are
10386 # common. (e.g. "Program Files" -> "PROGRA~1")
10387 ;;
10388 esac
10389
10390 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10391 postinstall_cmds='base_file=`basename \${file}`~
10392 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10393 dldir=$destdir/`dirname \$dlpath`~
10394 test -d \$dldir || mkdir -p \$dldir~
10395 $install_prog $dir/$dlname \$dldir/$dlname'
10396 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10397 dlpath=$dir/\$dldll~
10398 $RM \$dlpath'
10399 shlibpath_overrides_runpath=yes
10400 dynamic_linker='Win32 link.exe'
10401 ;;
10402
10403 *)
10404 # Assume MSVC wrapper
10405 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10406 dynamic_linker='Win32 ld.exe'
10407 ;;
10408 esac
10409 # FIXME: first we should search . and the directory the executable is in
10410 shlibpath_var=PATH
10411 ;;
10412
10413 darwin* | rhapsody*)
10414 dynamic_linker="$host_os dyld"
10415 version_type=darwin
10416 need_lib_prefix=no
10417 need_version=no
10418 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10419 soname_spec='${libname}${release}${major}$shared_ext'
10420 shlibpath_overrides_runpath=yes
10421 shlibpath_var=DYLD_LIBRARY_PATH
10422 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10423
10424 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10425 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10426 ;;
10427
10428 dgux*)
10429 version_type=linux # correct to gnu/linux during the next big refactor
10430 need_lib_prefix=no
10431 need_version=no
10432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10433 soname_spec='${libname}${release}${shared_ext}$major'
10434 shlibpath_var=LD_LIBRARY_PATH
10435 ;;
10436
10437 freebsd* | dragonfly*)
10438 # DragonFly does not have aout. When/if they implement a new
10439 # versioning mechanism, adjust this.
10440 if test -x /usr/bin/objformat; then
10441 objformat=`/usr/bin/objformat`
10442 else
10443 case $host_os in
10444 freebsd[23].*) objformat=aout ;;
10445 *) objformat=elf ;;
10446 esac
10447 fi
10448 version_type=freebsd-$objformat
10449 case $version_type in
10450 freebsd-elf*)
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10452 need_version=no
10453 need_lib_prefix=no
10454 ;;
10455 freebsd-*)
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10457 need_version=yes
10458 ;;
10459 esac
10460 shlibpath_var=LD_LIBRARY_PATH
10461 case $host_os in
10462 freebsd2.*)
10463 shlibpath_overrides_runpath=yes
10464 ;;
10465 freebsd3.[01]* | freebsdelf3.[01]*)
10466 shlibpath_overrides_runpath=yes
10467 hardcode_into_libs=yes
10468 ;;
10469 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10470 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10471 shlibpath_overrides_runpath=no
10472 hardcode_into_libs=yes
10473 ;;
10474 *) # from 4.6 on, and DragonFly
10475 shlibpath_overrides_runpath=yes
10476 hardcode_into_libs=yes
10477 ;;
10478 esac
10479 ;;
10480
10481 gnu*)
10482 version_type=linux # correct to gnu/linux during the next big refactor
10483 need_lib_prefix=no
10484 need_version=no
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10486 soname_spec='${libname}${release}${shared_ext}$major'
10487 shlibpath_var=LD_LIBRARY_PATH
10488 shlibpath_overrides_runpath=no
10489 hardcode_into_libs=yes
10490 ;;
10491
10492 haiku*)
10493 version_type=linux # correct to gnu/linux during the next big refactor
10494 need_lib_prefix=no
10495 need_version=no
10496 dynamic_linker="$host_os runtime_loader"
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10498 soname_spec='${libname}${release}${shared_ext}$major'
10499 shlibpath_var=LIBRARY_PATH
10500 shlibpath_overrides_runpath=yes
10501 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10502 hardcode_into_libs=yes
10503 ;;
10504
10505 hpux9* | hpux10* | hpux11*)
10506 # Give a soname corresponding to the major version so that dld.sl refuses to
10507 # link against other versions.
10508 version_type=sunos
10509 need_lib_prefix=no
10510 need_version=no
10511 case $host_cpu in
10512 ia64*)
10513 shrext_cmds='.so'
10514 hardcode_into_libs=yes
10515 dynamic_linker="$host_os dld.so"
10516 shlibpath_var=LD_LIBRARY_PATH
10517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 if test "X$HPUX_IA64_MODE" = X32; then
10521 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10522 else
10523 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10524 fi
10525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10526 ;;
10527 hppa*64*)
10528 shrext_cmds='.sl'
10529 hardcode_into_libs=yes
10530 dynamic_linker="$host_os dld.sl"
10531 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10532 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10534 soname_spec='${libname}${release}${shared_ext}$major'
10535 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10536 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10537 ;;
10538 *)
10539 shrext_cmds='.sl'
10540 dynamic_linker="$host_os dld.sl"
10541 shlibpath_var=SHLIB_PATH
10542 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 ;;
10546 esac
10547 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10548 postinstall_cmds='chmod 555 $lib'
10549 # or fails outright, so override atomically:
10550 install_override_mode=555
10551 ;;
10552
10553 interix[3-9]*)
10554 version_type=linux # correct to gnu/linux during the next big refactor
10555 need_lib_prefix=no
10556 need_version=no
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 shlibpath_overrides_runpath=no
10562 hardcode_into_libs=yes
10563 ;;
10564
10565 irix5* | irix6* | nonstopux*)
10566 case $host_os in
10567 nonstopux*) version_type=nonstopux ;;
10568 *)
10569 if test "$lt_cv_prog_gnu_ld" = yes; then
10570 version_type=linux # correct to gnu/linux during the next big refactor
10571 else
10572 version_type=irix
10573 fi ;;
10574 esac
10575 need_lib_prefix=no
10576 need_version=no
10577 soname_spec='${libname}${release}${shared_ext}$major'
10578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10579 case $host_os in
10580 irix5* | nonstopux*)
10581 libsuff= shlibsuff=
10582 ;;
10583 *)
10584 case $LD in # libtool.m4 will add one of these switches to LD
10585 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10586 libsuff= shlibsuff= libmagic=32-bit;;
10587 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10588 libsuff=32 shlibsuff=N32 libmagic=N32;;
10589 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10590 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10591 *) libsuff= shlibsuff= libmagic=never-match;;
10592 esac
10593 ;;
10594 esac
10595 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10596 shlibpath_overrides_runpath=no
10597 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10598 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10599 hardcode_into_libs=yes
10600 ;;
10601
10602 # No shared lib support for Linux oldld, aout, or coff.
10603 linux*oldld* | linux*aout* | linux*coff*)
10604 dynamic_linker=no
10605 ;;
10606
10607 # This must be glibc/ELF.
10608 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10609 version_type=linux # correct to gnu/linux during the next big refactor
10610 need_lib_prefix=no
10611 need_version=no
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 soname_spec='${libname}${release}${shared_ext}$major'
10614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10615 shlibpath_var=LD_LIBRARY_PATH
10616 shlibpath_overrides_runpath=no
10617
10618 # Some binutils ld are patched to set DT_RUNPATH
10619 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10620 $as_echo_n "(cached) " >&6
10621 else
10622 lt_cv_shlibpath_overrides_runpath=no
10623 save_LDFLAGS=$LDFLAGS
10624 save_libdir=$libdir
10625 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10626 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10629
10630 int
10631 main ()
10632 {
10633
10634 ;
10635 return 0;
10636 }
10637 _ACEOF
10638 if ac_fn_c_try_link "$LINENO"; then :
10639 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10640 lt_cv_shlibpath_overrides_runpath=yes
10641 fi
10642 fi
10643 rm -f core conftest.err conftest.$ac_objext \
10644 conftest$ac_exeext conftest.$ac_ext
10645 LDFLAGS=$save_LDFLAGS
10646 libdir=$save_libdir
10647
10648 fi
10649
10650 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10651
10652 # This implies no fast_install, which is unacceptable.
10653 # Some rework will be needed to allow for fast_install
10654 # before this can be enabled.
10655 hardcode_into_libs=yes
10656
10657 # Append ld.so.conf contents to the search path
10658 if test -f /etc/ld.so.conf; then
10659 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10660 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10661 fi
10662
10663 # We used to test for /lib/ld.so.1 and disable shared libraries on
10664 # powerpc, because MkLinux only supported shared libraries with the
10665 # GNU dynamic linker. Since this was broken with cross compilers,
10666 # most powerpc-linux boxes support dynamic linking these days and
10667 # people can always --disable-shared, the test was removed, and we
10668 # assume the GNU/Linux dynamic linker is in use.
10669 dynamic_linker='GNU/Linux ld.so'
10670 ;;
10671
10672 netbsdelf*-gnu)
10673 version_type=linux
10674 need_lib_prefix=no
10675 need_version=no
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10677 soname_spec='${libname}${release}${shared_ext}$major'
10678 shlibpath_var=LD_LIBRARY_PATH
10679 shlibpath_overrides_runpath=no
10680 hardcode_into_libs=yes
10681 dynamic_linker='NetBSD ld.elf_so'
10682 ;;
10683
10684 netbsd*)
10685 version_type=sunos
10686 need_lib_prefix=no
10687 need_version=no
10688 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10691 dynamic_linker='NetBSD (a.out) ld.so'
10692 else
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 dynamic_linker='NetBSD ld.elf_so'
10696 fi
10697 shlibpath_var=LD_LIBRARY_PATH
10698 shlibpath_overrides_runpath=yes
10699 hardcode_into_libs=yes
10700 ;;
10701
10702 newsos6)
10703 version_type=linux # correct to gnu/linux during the next big refactor
10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10705 shlibpath_var=LD_LIBRARY_PATH
10706 shlibpath_overrides_runpath=yes
10707 ;;
10708
10709 *nto* | *qnx*)
10710 version_type=qnx
10711 need_lib_prefix=no
10712 need_version=no
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714 soname_spec='${libname}${release}${shared_ext}$major'
10715 shlibpath_var=LD_LIBRARY_PATH
10716 shlibpath_overrides_runpath=no
10717 hardcode_into_libs=yes
10718 dynamic_linker='ldqnx.so'
10719 ;;
10720
10721 openbsd*)
10722 version_type=sunos
10723 sys_lib_dlsearch_path_spec="/usr/lib"
10724 need_lib_prefix=no
10725 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10726 case $host_os in
10727 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10728 *) need_version=no ;;
10729 esac
10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10732 shlibpath_var=LD_LIBRARY_PATH
10733 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10734 case $host_os in
10735 openbsd2.[89] | openbsd2.[89].*)
10736 shlibpath_overrides_runpath=no
10737 ;;
10738 *)
10739 shlibpath_overrides_runpath=yes
10740 ;;
10741 esac
10742 else
10743 shlibpath_overrides_runpath=yes
10744 fi
10745 ;;
10746
10747 os2*)
10748 libname_spec='$name'
10749 shrext_cmds=".dll"
10750 need_lib_prefix=no
10751 library_names_spec='$libname${shared_ext} $libname.a'
10752 dynamic_linker='OS/2 ld.exe'
10753 shlibpath_var=LIBPATH
10754 ;;
10755
10756 osf3* | osf4* | osf5*)
10757 version_type=osf
10758 need_lib_prefix=no
10759 need_version=no
10760 soname_spec='${libname}${release}${shared_ext}$major'
10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10762 shlibpath_var=LD_LIBRARY_PATH
10763 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10764 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10765 ;;
10766
10767 rdos*)
10768 dynamic_linker=no
10769 ;;
10770
10771 solaris*)
10772 version_type=linux # correct to gnu/linux during the next big refactor
10773 need_lib_prefix=no
10774 need_version=no
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10776 soname_spec='${libname}${release}${shared_ext}$major'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 shlibpath_overrides_runpath=yes
10779 hardcode_into_libs=yes
10780 # ldd complains unless libraries are executable
10781 postinstall_cmds='chmod +x $lib'
10782 ;;
10783
10784 sunos4*)
10785 version_type=sunos
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10787 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10788 shlibpath_var=LD_LIBRARY_PATH
10789 shlibpath_overrides_runpath=yes
10790 if test "$with_gnu_ld" = yes; then
10791 need_lib_prefix=no
10792 fi
10793 need_version=yes
10794 ;;
10795
10796 sysv4 | sysv4.3*)
10797 version_type=linux # correct to gnu/linux during the next big refactor
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799 soname_spec='${libname}${release}${shared_ext}$major'
10800 shlibpath_var=LD_LIBRARY_PATH
10801 case $host_vendor in
10802 sni)
10803 shlibpath_overrides_runpath=no
10804 need_lib_prefix=no
10805 runpath_var=LD_RUN_PATH
10806 ;;
10807 siemens)
10808 need_lib_prefix=no
10809 ;;
10810 motorola)
10811 need_lib_prefix=no
10812 need_version=no
10813 shlibpath_overrides_runpath=no
10814 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10815 ;;
10816 esac
10817 ;;
10818
10819 sysv4*MP*)
10820 if test -d /usr/nec ;then
10821 version_type=linux # correct to gnu/linux during the next big refactor
10822 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10823 soname_spec='$libname${shared_ext}.$major'
10824 shlibpath_var=LD_LIBRARY_PATH
10825 fi
10826 ;;
10827
10828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10829 version_type=freebsd-elf
10830 need_lib_prefix=no
10831 need_version=no
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10833 soname_spec='${libname}${release}${shared_ext}$major'
10834 shlibpath_var=LD_LIBRARY_PATH
10835 shlibpath_overrides_runpath=yes
10836 hardcode_into_libs=yes
10837 if test "$with_gnu_ld" = yes; then
10838 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10839 else
10840 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10841 case $host_os in
10842 sco3.2v5*)
10843 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10844 ;;
10845 esac
10846 fi
10847 sys_lib_dlsearch_path_spec='/usr/lib'
10848 ;;
10849
10850 tpf*)
10851 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10852 version_type=linux # correct to gnu/linux during the next big refactor
10853 need_lib_prefix=no
10854 need_version=no
10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10856 shlibpath_var=LD_LIBRARY_PATH
10857 shlibpath_overrides_runpath=no
10858 hardcode_into_libs=yes
10859 ;;
10860
10861 uts4*)
10862 version_type=linux # correct to gnu/linux during the next big refactor
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 shlibpath_var=LD_LIBRARY_PATH
10866 ;;
10867
10868 *)
10869 dynamic_linker=no
10870 ;;
10871 esac
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10873 $as_echo "$dynamic_linker" >&6; }
10874 test "$dynamic_linker" = no && can_build_shared=no
10875
10876 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10877 if test "$GCC" = yes; then
10878 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10879 fi
10880
10881 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10882 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10883 fi
10884 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10885 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10886 fi
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10980 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10981 hardcode_action=
10982 if test -n "$hardcode_libdir_flag_spec" ||
10983 test -n "$runpath_var" ||
10984 test "X$hardcode_automatic" = "Xyes" ; then
10985
10986 # We can hardcode non-existent directories.
10987 if test "$hardcode_direct" != no &&
10988 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10989 # have to relink, otherwise we might link with an installed library
10990 # when we should be linking with a yet-to-be-installed one
10991 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10992 test "$hardcode_minus_L" != no; then
10993 # Linking always hardcodes the temporary library directory.
10994 hardcode_action=relink
10995 else
10996 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10997 hardcode_action=immediate
10998 fi
10999 else
11000 # We cannot hardcode anything, or else we can only hardcode existing
11001 # directories.
11002 hardcode_action=unsupported
11003 fi
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11005 $as_echo "$hardcode_action" >&6; }
11006
11007 if test "$hardcode_action" = relink ||
11008 test "$inherit_rpath" = yes; then
11009 # Fast installation is not supported
11010 enable_fast_install=no
11011 elif test "$shlibpath_overrides_runpath" = yes ||
11012 test "$enable_shared" = no; then
11013 # Fast installation is not necessary
11014 enable_fast_install=needless
11015 fi
11016
11017
11018
11019
11020
11021
11022 if test "x$enable_dlopen" != xyes; then
11023 enable_dlopen=unknown
11024 enable_dlopen_self=unknown
11025 enable_dlopen_self_static=unknown
11026 else
11027 lt_cv_dlopen=no
11028 lt_cv_dlopen_libs=
11029
11030 case $host_os in
11031 beos*)
11032 lt_cv_dlopen="load_add_on"
11033 lt_cv_dlopen_libs=
11034 lt_cv_dlopen_self=yes
11035 ;;
11036
11037 mingw* | pw32* | cegcc*)
11038 lt_cv_dlopen="LoadLibrary"
11039 lt_cv_dlopen_libs=
11040 ;;
11041
11042 cygwin*)
11043 lt_cv_dlopen="dlopen"
11044 lt_cv_dlopen_libs=
11045 ;;
11046
11047 darwin*)
11048 # if libdl is installed we need to link against it
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11050 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11051 if ${ac_cv_lib_dl_dlopen+:} false; then :
11052 $as_echo_n "(cached) " >&6
11053 else
11054 ac_check_lib_save_LIBS=$LIBS
11055 LIBS="-ldl $LIBS"
11056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h. */
11058
11059 /* Override any GCC internal prototype to avoid an error.
11060 Use char because int might match the return type of a GCC
11061 builtin and then its argument prototype would still apply. */
11062 #ifdef __cplusplus
11063 extern "C"
11064 #endif
11065 char dlopen ();
11066 int
11067 main ()
11068 {
11069 return dlopen ();
11070 ;
11071 return 0;
11072 }
11073 _ACEOF
11074 if ac_fn_c_try_link "$LINENO"; then :
11075 ac_cv_lib_dl_dlopen=yes
11076 else
11077 ac_cv_lib_dl_dlopen=no
11078 fi
11079 rm -f core conftest.err conftest.$ac_objext \
11080 conftest$ac_exeext conftest.$ac_ext
11081 LIBS=$ac_check_lib_save_LIBS
11082 fi
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11084 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11085 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11086 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11087 else
11088
11089 lt_cv_dlopen="dyld"
11090 lt_cv_dlopen_libs=
11091 lt_cv_dlopen_self=yes
11092
11093 fi
11094
11095 ;;
11096
11097 *)
11098 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11099 if test "x$ac_cv_func_shl_load" = xyes; then :
11100 lt_cv_dlopen="shl_load"
11101 else
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11103 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11104 if ${ac_cv_lib_dld_shl_load+:} false; then :
11105 $as_echo_n "(cached) " >&6
11106 else
11107 ac_check_lib_save_LIBS=$LIBS
11108 LIBS="-ldld $LIBS"
11109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110 /* end confdefs.h. */
11111
11112 /* Override any GCC internal prototype to avoid an error.
11113 Use char because int might match the return type of a GCC
11114 builtin and then its argument prototype would still apply. */
11115 #ifdef __cplusplus
11116 extern "C"
11117 #endif
11118 char shl_load ();
11119 int
11120 main ()
11121 {
11122 return shl_load ();
11123 ;
11124 return 0;
11125 }
11126 _ACEOF
11127 if ac_fn_c_try_link "$LINENO"; then :
11128 ac_cv_lib_dld_shl_load=yes
11129 else
11130 ac_cv_lib_dld_shl_load=no
11131 fi
11132 rm -f core conftest.err conftest.$ac_objext \
11133 conftest$ac_exeext conftest.$ac_ext
11134 LIBS=$ac_check_lib_save_LIBS
11135 fi
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11137 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11138 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11139 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11140 else
11141 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11142 if test "x$ac_cv_func_dlopen" = xyes; then :
11143 lt_cv_dlopen="dlopen"
11144 else
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11146 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11147 if ${ac_cv_lib_dl_dlopen+:} false; then :
11148 $as_echo_n "(cached) " >&6
11149 else
11150 ac_check_lib_save_LIBS=$LIBS
11151 LIBS="-ldl $LIBS"
11152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11153 /* end confdefs.h. */
11154
11155 /* Override any GCC internal prototype to avoid an error.
11156 Use char because int might match the return type of a GCC
11157 builtin and then its argument prototype would still apply. */
11158 #ifdef __cplusplus
11159 extern "C"
11160 #endif
11161 char dlopen ();
11162 int
11163 main ()
11164 {
11165 return dlopen ();
11166 ;
11167 return 0;
11168 }
11169 _ACEOF
11170 if ac_fn_c_try_link "$LINENO"; then :
11171 ac_cv_lib_dl_dlopen=yes
11172 else
11173 ac_cv_lib_dl_dlopen=no
11174 fi
11175 rm -f core conftest.err conftest.$ac_objext \
11176 conftest$ac_exeext conftest.$ac_ext
11177 LIBS=$ac_check_lib_save_LIBS
11178 fi
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11180 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11181 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11182 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11183 else
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11185 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11186 if ${ac_cv_lib_svld_dlopen+:} false; then :
11187 $as_echo_n "(cached) " >&6
11188 else
11189 ac_check_lib_save_LIBS=$LIBS
11190 LIBS="-lsvld $LIBS"
11191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h. */
11193
11194 /* Override any GCC internal prototype to avoid an error.
11195 Use char because int might match the return type of a GCC
11196 builtin and then its argument prototype would still apply. */
11197 #ifdef __cplusplus
11198 extern "C"
11199 #endif
11200 char dlopen ();
11201 int
11202 main ()
11203 {
11204 return dlopen ();
11205 ;
11206 return 0;
11207 }
11208 _ACEOF
11209 if ac_fn_c_try_link "$LINENO"; then :
11210 ac_cv_lib_svld_dlopen=yes
11211 else
11212 ac_cv_lib_svld_dlopen=no
11213 fi
11214 rm -f core conftest.err conftest.$ac_objext \
11215 conftest$ac_exeext conftest.$ac_ext
11216 LIBS=$ac_check_lib_save_LIBS
11217 fi
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11219 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11220 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11221 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11222 else
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11224 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11225 if ${ac_cv_lib_dld_dld_link+:} false; then :
11226 $as_echo_n "(cached) " >&6
11227 else
11228 ac_check_lib_save_LIBS=$LIBS
11229 LIBS="-ldld $LIBS"
11230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11231 /* end confdefs.h. */
11232
11233 /* Override any GCC internal prototype to avoid an error.
11234 Use char because int might match the return type of a GCC
11235 builtin and then its argument prototype would still apply. */
11236 #ifdef __cplusplus
11237 extern "C"
11238 #endif
11239 char dld_link ();
11240 int
11241 main ()
11242 {
11243 return dld_link ();
11244 ;
11245 return 0;
11246 }
11247 _ACEOF
11248 if ac_fn_c_try_link "$LINENO"; then :
11249 ac_cv_lib_dld_dld_link=yes
11250 else
11251 ac_cv_lib_dld_dld_link=no
11252 fi
11253 rm -f core conftest.err conftest.$ac_objext \
11254 conftest$ac_exeext conftest.$ac_ext
11255 LIBS=$ac_check_lib_save_LIBS
11256 fi
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11258 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11259 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11260 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11261 fi
11262
11263
11264 fi
11265
11266
11267 fi
11268
11269
11270 fi
11271
11272
11273 fi
11274
11275
11276 fi
11277
11278 ;;
11279 esac
11280
11281 if test "x$lt_cv_dlopen" != xno; then
11282 enable_dlopen=yes
11283 else
11284 enable_dlopen=no
11285 fi
11286
11287 case $lt_cv_dlopen in
11288 dlopen)
11289 save_CPPFLAGS="$CPPFLAGS"
11290 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11291
11292 save_LDFLAGS="$LDFLAGS"
11293 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11294
11295 save_LIBS="$LIBS"
11296 LIBS="$lt_cv_dlopen_libs $LIBS"
11297
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11299 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11300 if ${lt_cv_dlopen_self+:} false; then :
11301 $as_echo_n "(cached) " >&6
11302 else
11303 if test "$cross_compiling" = yes; then :
11304 lt_cv_dlopen_self=cross
11305 else
11306 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11307 lt_status=$lt_dlunknown
11308 cat > conftest.$ac_ext <<_LT_EOF
11309 #line $LINENO "configure"
11310 #include "confdefs.h"
11311
11312 #if HAVE_DLFCN_H
11313 #include <dlfcn.h>
11314 #endif
11315
11316 #include <stdio.h>
11317
11318 #ifdef RTLD_GLOBAL
11319 # define LT_DLGLOBAL RTLD_GLOBAL
11320 #else
11321 # ifdef DL_GLOBAL
11322 # define LT_DLGLOBAL DL_GLOBAL
11323 # else
11324 # define LT_DLGLOBAL 0
11325 # endif
11326 #endif
11327
11328 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11329 find out it does not work in some platform. */
11330 #ifndef LT_DLLAZY_OR_NOW
11331 # ifdef RTLD_LAZY
11332 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11333 # else
11334 # ifdef DL_LAZY
11335 # define LT_DLLAZY_OR_NOW DL_LAZY
11336 # else
11337 # ifdef RTLD_NOW
11338 # define LT_DLLAZY_OR_NOW RTLD_NOW
11339 # else
11340 # ifdef DL_NOW
11341 # define LT_DLLAZY_OR_NOW DL_NOW
11342 # else
11343 # define LT_DLLAZY_OR_NOW 0
11344 # endif
11345 # endif
11346 # endif
11347 # endif
11348 #endif
11349
11350 /* When -fvisbility=hidden is used, assume the code has been annotated
11351 correspondingly for the symbols needed. */
11352 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11353 int fnord () __attribute__((visibility("default")));
11354 #endif
11355
11356 int fnord () { return 42; }
11357 int main ()
11358 {
11359 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11360 int status = $lt_dlunknown;
11361
11362 if (self)
11363 {
11364 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11365 else
11366 {
11367 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11368 else puts (dlerror ());
11369 }
11370 /* dlclose (self); */
11371 }
11372 else
11373 puts (dlerror ());
11374
11375 return status;
11376 }
11377 _LT_EOF
11378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11379 (eval $ac_link) 2>&5
11380 ac_status=$?
11381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11382 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11383 (./conftest; exit; ) >&5 2>/dev/null
11384 lt_status=$?
11385 case x$lt_status in
11386 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11387 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11388 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11389 esac
11390 else :
11391 # compilation failed
11392 lt_cv_dlopen_self=no
11393 fi
11394 fi
11395 rm -fr conftest*
11396
11397
11398 fi
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11400 $as_echo "$lt_cv_dlopen_self" >&6; }
11401
11402 if test "x$lt_cv_dlopen_self" = xyes; then
11403 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11405 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11406 if ${lt_cv_dlopen_self_static+:} false; then :
11407 $as_echo_n "(cached) " >&6
11408 else
11409 if test "$cross_compiling" = yes; then :
11410 lt_cv_dlopen_self_static=cross
11411 else
11412 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11413 lt_status=$lt_dlunknown
11414 cat > conftest.$ac_ext <<_LT_EOF
11415 #line $LINENO "configure"
11416 #include "confdefs.h"
11417
11418 #if HAVE_DLFCN_H
11419 #include <dlfcn.h>
11420 #endif
11421
11422 #include <stdio.h>
11423
11424 #ifdef RTLD_GLOBAL
11425 # define LT_DLGLOBAL RTLD_GLOBAL
11426 #else
11427 # ifdef DL_GLOBAL
11428 # define LT_DLGLOBAL DL_GLOBAL
11429 # else
11430 # define LT_DLGLOBAL 0
11431 # endif
11432 #endif
11433
11434 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11435 find out it does not work in some platform. */
11436 #ifndef LT_DLLAZY_OR_NOW
11437 # ifdef RTLD_LAZY
11438 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11439 # else
11440 # ifdef DL_LAZY
11441 # define LT_DLLAZY_OR_NOW DL_LAZY
11442 # else
11443 # ifdef RTLD_NOW
11444 # define LT_DLLAZY_OR_NOW RTLD_NOW
11445 # else
11446 # ifdef DL_NOW
11447 # define LT_DLLAZY_OR_NOW DL_NOW
11448 # else
11449 # define LT_DLLAZY_OR_NOW 0
11450 # endif
11451 # endif
11452 # endif
11453 # endif
11454 #endif
11455
11456 /* When -fvisbility=hidden is used, assume the code has been annotated
11457 correspondingly for the symbols needed. */
11458 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11459 int fnord () __attribute__((visibility("default")));
11460 #endif
11461
11462 int fnord () { return 42; }
11463 int main ()
11464 {
11465 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11466 int status = $lt_dlunknown;
11467
11468 if (self)
11469 {
11470 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11471 else
11472 {
11473 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11474 else puts (dlerror ());
11475 }
11476 /* dlclose (self); */
11477 }
11478 else
11479 puts (dlerror ());
11480
11481 return status;
11482 }
11483 _LT_EOF
11484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11485 (eval $ac_link) 2>&5
11486 ac_status=$?
11487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11488 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11489 (./conftest; exit; ) >&5 2>/dev/null
11490 lt_status=$?
11491 case x$lt_status in
11492 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11493 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11494 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11495 esac
11496 else :
11497 # compilation failed
11498 lt_cv_dlopen_self_static=no
11499 fi
11500 fi
11501 rm -fr conftest*
11502
11503
11504 fi
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11506 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11507 fi
11508
11509 CPPFLAGS="$save_CPPFLAGS"
11510 LDFLAGS="$save_LDFLAGS"
11511 LIBS="$save_LIBS"
11512 ;;
11513 esac
11514
11515 case $lt_cv_dlopen_self in
11516 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11517 *) enable_dlopen_self=unknown ;;
11518 esac
11519
11520 case $lt_cv_dlopen_self_static in
11521 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11522 *) enable_dlopen_self_static=unknown ;;
11523 esac
11524 fi
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542 striplib=
11543 old_striplib=
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11545 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11546 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11547 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11548 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11550 $as_echo "yes" >&6; }
11551 else
11552 # FIXME - insert some real tests, host_os isn't really good enough
11553 case $host_os in
11554 darwin*)
11555 if test -n "$STRIP" ; then
11556 striplib="$STRIP -x"
11557 old_striplib="$STRIP -S"
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11559 $as_echo "yes" >&6; }
11560 else
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11562 $as_echo "no" >&6; }
11563 fi
11564 ;;
11565 *)
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567 $as_echo "no" >&6; }
11568 ;;
11569 esac
11570 fi
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583 # Report which library types will actually be built
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11585 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11587 $as_echo "$can_build_shared" >&6; }
11588
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11590 $as_echo_n "checking whether to build shared libraries... " >&6; }
11591 test "$can_build_shared" = "no" && enable_shared=no
11592
11593 # On AIX, shared libraries and static libraries use the same namespace, and
11594 # are all built from PIC.
11595 case $host_os in
11596 aix3*)
11597 test "$enable_shared" = yes && enable_static=no
11598 if test -n "$RANLIB"; then
11599 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11600 postinstall_cmds='$RANLIB $lib'
11601 fi
11602 ;;
11603
11604 aix[4-9]*)
11605 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11606 test "$enable_shared" = yes && enable_static=no
11607 fi
11608 ;;
11609 esac
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11611 $as_echo "$enable_shared" >&6; }
11612
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11614 $as_echo_n "checking whether to build static libraries... " >&6; }
11615 # Make sure either enable_shared or enable_static is yes.
11616 test "$enable_shared" = yes || enable_static=yes
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11618 $as_echo "$enable_static" >&6; }
11619
11620
11621
11622
11623 fi
11624 ac_ext=c
11625 ac_cpp='$CPP $CPPFLAGS'
11626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11629
11630 CC="$lt_save_CC"
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646 ac_config_commands="$ac_config_commands libtool"
11647
11648
11649
11650
11651 # Only expand once:
11652
11653
11654 # By default we simply use the C compiler to build assembly code.
11655
11656 test "${CCAS+set}" = set || CCAS=$CC
11657 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11658
11659
11660
11661 depcc="$CCAS" am_compiler_list=
11662
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11664 $as_echo_n "checking dependency style of $depcc... " >&6; }
11665 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
11666 $as_echo_n "(cached) " >&6
11667 else
11668 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11669 # We make a subdir and do the tests there. Otherwise we can end up
11670 # making bogus files that we don't know about and never remove. For
11671 # instance it was reported that on HP-UX the gcc test will end up
11672 # making a dummy file named `D' -- because `-MD' means `put the output
11673 # in D'.
11674 rm -rf conftest.dir
11675 mkdir conftest.dir
11676 # Copy depcomp to subdir because otherwise we won't find it if we're
11677 # using a relative directory.
11678 cp "$am_depcomp" conftest.dir
11679 cd conftest.dir
11680 # We will build objects and dependencies in a subdirectory because
11681 # it helps to detect inapplicable dependency modes. For instance
11682 # both Tru64's cc and ICC support -MD to output dependencies as a
11683 # side effect of compilation, but ICC will put the dependencies in
11684 # the current directory while Tru64 will put them in the object
11685 # directory.
11686 mkdir sub
11687
11688 am_cv_CCAS_dependencies_compiler_type=none
11689 if test "$am_compiler_list" = ""; then
11690 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11691 fi
11692 am__universal=false
11693
11694
11695 for depmode in $am_compiler_list; do
11696 # Setup a source with many dependencies, because some compilers
11697 # like to wrap large dependency lists on column 80 (with \), and
11698 # we should not choose a depcomp mode which is confused by this.
11699 #
11700 # We need to recreate these files for each test, as the compiler may
11701 # overwrite some of them when testing with obscure command lines.
11702 # This happens at least with the AIX C compiler.
11703 : > sub/conftest.c
11704 for i in 1 2 3 4 5 6; do
11705 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11706 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11707 # Solaris 8's {/usr,}/bin/sh.
11708 touch sub/conftst$i.h
11709 done
11710 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11711
11712 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11713 # mode. It turns out that the SunPro C++ compiler does not properly
11714 # handle `-M -o', and we need to detect this. Also, some Intel
11715 # versions had trouble with output in subdirs
11716 am__obj=sub/conftest.${OBJEXT-o}
11717 am__minus_obj="-o $am__obj"
11718 case $depmode in
11719 gcc)
11720 # This depmode causes a compiler race in universal mode.
11721 test "$am__universal" = false || continue
11722 ;;
11723 nosideeffect)
11724 # after this tag, mechanisms are not by side-effect, so they'll
11725 # only be used when explicitly requested
11726 if test "x$enable_dependency_tracking" = xyes; then
11727 continue
11728 else
11729 break
11730 fi
11731 ;;
11732 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11733 # This compiler won't grok `-c -o', but also, the minuso test has
11734 # not run yet. These depmodes are late enough in the game, and
11735 # so weak that their functioning should not be impacted.
11736 am__obj=conftest.${OBJEXT-o}
11737 am__minus_obj=
11738 ;;
11739 none) break ;;
11740 esac
11741 if depmode=$depmode \
11742 source=sub/conftest.c object=$am__obj \
11743 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11744 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11745 >/dev/null 2>conftest.err &&
11746 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11747 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11748 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11749 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11750 # icc doesn't choke on unknown options, it will just issue warnings
11751 # or remarks (even with -Werror). So we grep stderr for any message
11752 # that says an option was ignored or not supported.
11753 # When given -MP, icc 7.0 and 7.1 complain thusly:
11754 # icc: Command line warning: ignoring option '-M'; no argument required
11755 # The diagnosis changed in icc 8.0:
11756 # icc: Command line remark: option '-MP' not supported
11757 if (grep 'ignoring option' conftest.err ||
11758 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11759 am_cv_CCAS_dependencies_compiler_type=$depmode
11760 break
11761 fi
11762 fi
11763 done
11764
11765 cd ..
11766 rm -rf conftest.dir
11767 else
11768 am_cv_CCAS_dependencies_compiler_type=none
11769 fi
11770
11771 fi
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11773 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11774 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11775
11776 if
11777 test "x$enable_dependency_tracking" != xno \
11778 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11779 am__fastdepCCAS_TRUE=
11780 am__fastdepCCAS_FALSE='#'
11781 else
11782 am__fastdepCCAS_TRUE='#'
11783 am__fastdepCCAS_FALSE=
11784 fi
11785
11786
11787
11788
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
11790 $as_echo_n "checking zfs author... " >&6; }
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
11792 $as_echo "$ZFS_META_AUTHOR" >&6; }
11793
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
11795 $as_echo_n "checking zfs license... " >&6; }
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
11797 $as_echo "$ZFS_META_LICENSE" >&6; }
11798
11799
11800
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
11802 $as_echo_n "checking linux distribution... " >&6; }
11803 if test -f /etc/toss-release ; then
11804 VENDOR=toss ;
11805 elif test -f /etc/fedora-release ; then
11806 VENDOR=fedora ;
11807 elif test -f /etc/redhat-release ; then
11808 VENDOR=redhat ;
11809 elif test -f /etc/gentoo-release ; then
11810 VENDOR=gentoo ;
11811 elif test -f /etc/arch-release ; then
11812 VENDOR=arch ;
11813 elif test -f /etc/SuSE-release ; then
11814 VENDOR=sles ;
11815 elif test -f /etc/slackware-version ; then
11816 VENDOR=slackware ;
11817 elif test -f /etc/lunar.release ; then
11818 VENDOR=lunar ;
11819 elif test -f /etc/lsb-release ; then
11820 VENDOR=ubuntu ;
11821 elif test -f /etc/debian_version ; then
11822 VENDOR=debian ;
11823 else
11824 VENDOR= ;
11825 fi
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
11827 $as_echo "$VENDOR" >&6; }
11828
11829
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
11831 $as_echo_n "checking default package type... " >&6; }
11832 case "$VENDOR" in
11833 toss) DEFAULT_PACKAGE=rpm ;;
11834 redhat) DEFAULT_PACKAGE=rpm ;;
11835 fedora) DEFAULT_PACKAGE=rpm ;;
11836 gentoo) DEFAULT_PACKAGE=tgz ;;
11837 arch) DEFAULT_PACKAGE=tgz ;;
11838 sles) DEFAULT_PACKAGE=rpm ;;
11839 slackware) DEFAULT_PACKAGE=tgz ;;
11840 lunar) DEFAULT_PACKAGE=tgz ;;
11841 ubuntu) DEFAULT_PACKAGE=deb ;;
11842 debian) DEFAULT_PACKAGE=deb ;;
11843 *) DEFAULT_PACKAGE=rpm ;;
11844 esac
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
11846 $as_echo "$DEFAULT_PACKAGE" >&6; }
11847
11848
11849 DEFAULT_INIT_DIR=$sysconfdir/init.d
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
11851 $as_echo_n "checking default init directory... " >&6; }
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
11853 $as_echo "$DEFAULT_INIT_DIR" >&6; }
11854
11855
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
11857 $as_echo_n "checking default init script type... " >&6; }
11858 case "$VENDOR" in
11859 toss) DEFAULT_INIT_SCRIPT=redhat ;;
11860 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
11861 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
11862 gentoo) DEFAULT_INIT_SCRIPT=gentoo ;;
11863 arch) DEFAULT_INIT_SCRIPT=lsb ;;
11864 sles) DEFAULT_INIT_SCRIPT=lsb ;;
11865 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
11866 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
11867 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
11868 debian) DEFAULT_INIT_SCRIPT=lsb ;;
11869 *) DEFAULT_INIT_SCRIPT=lsb ;;
11870 esac
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
11872 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11873
11874
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5
11876 $as_echo_n "checking default init config direectory... " >&6; }
11877 case "$VENDOR" in
11878 gentoo) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
11879 toss) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
11880 redhat) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
11881 fedora) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
11882 sles) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
11883 ubuntu) DEFAULT_INITCONF_DIR=/etc/default ;;
11884 debian) DEFAULT_INITCONF_DIR=/etc/default ;;
11885 *) DEFAULT_INITCONF_DIR=/etc/default ;;
11886 esac
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5
11888 $as_echo "$DEFAULT_INITCONF_DIR" >&6; }
11889
11890
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5
11892 $as_echo_n "checking whether initramfs-tools is available... " >&6; }
11893 if test -d /usr/share/initramfs-tools ; then
11894 DEFINE_INITRAMFS='--define "_initramfs 1"'
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11896 $as_echo "yes" >&6; }
11897 else
11898 DEFINE_INITRAMFS=''
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11901 fi
11902
11903
11904
11905 RPM=rpm
11906 RPMBUILD=rpmbuild
11907
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
11909 $as_echo_n "checking whether $RPM is available... " >&6; }
11910 if tmp=$($RPM --version 2>/dev/null); then :
11911
11912 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11913 HAVE_RPM=yes
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
11915 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11916
11917 else
11918
11919 HAVE_RPM=no
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
11921 $as_echo "$HAVE_RPM" >&6; }
11922
11923 fi
11924
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
11926 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11927 if tmp=$($RPMBUILD --version 2>/dev/null); then :
11928
11929 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11930 HAVE_RPMBUILD=yes
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11932 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11933
11934 else
11935
11936 HAVE_RPMBUILD=no
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
11938 $as_echo "$HAVE_RPMBUILD" >&6; }
11939
11940 fi
11941
11942 RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"'
11943 RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
11944 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
11945 RPM_DEFINE_DKMS=
11946
11947 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
11948 SRPM_DEFINE_UTIL=
11949 SRPM_DEFINE_KMOD=
11950 SRPM_DEFINE_DKMS=
11951
11952 RPM_SPEC_DIR="rpm/generic"
11953
11954 # Check whether --with-spec was given.
11955 if test "${with_spec+set}" = set; then :
11956 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
11957 fi
11958
11959
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
11961 $as_echo_n "checking whether spec files are available... " >&6; }
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
11963 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984 DPKG=dpkg
11985 DPKGBUILD=dpkg-buildpackage
11986
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
11988 $as_echo_n "checking whether $DPKG is available... " >&6; }
11989 if tmp=$($DPKG --version 2>/dev/null); then :
11990
11991 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11992 HAVE_DPKG=yes
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11994 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11995
11996 else
11997
11998 HAVE_DPKG=no
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12000 $as_echo "$HAVE_DPKG" >&6; }
12001
12002 fi
12003
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12005 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12006 if tmp=$($DPKGBUILD --version 2>/dev/null); then :
12007
12008 DPKGBUILD_VERSION=$(echo $tmp | \
12009 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
12010 HAVE_DPKGBUILD=yes
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12012 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12013
12014 else
12015
12016 HAVE_DPKGBUILD=no
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12018 $as_echo "$HAVE_DPKGBUILD" >&6; }
12019
12020 fi
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031 ALIEN=alien
12032
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12034 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12035 if tmp=$($ALIEN --version 2>/dev/null); then :
12036
12037 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
12038 HAVE_ALIEN=yes
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12040 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12041
12042 else
12043
12044 HAVE_ALIEN=no
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12046 $as_echo "$HAVE_ALIEN" >&6; }
12047
12048 fi
12049
12050
12051
12052
12053
12054
12055
12056 TARGET_ASM_DIR=asm-generic
12057
12058
12059 ZFS_CONFIG=all
12060
12061 # Check whether --with-config was given.
12062 if test "${with_config+set}" = set; then :
12063 withval=$with_config; ZFS_CONFIG="$withval"
12064 fi
12065
12066 # Check whether --enable-linux-builtin was given.
12067 if test "${enable_linux_builtin+set}" = set; then :
12068 enableval=$enable_linux_builtin;
12069 else
12070 enable_linux_builtin=no
12071 fi
12072
12073
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
12075 $as_echo_n "checking zfs config... " >&6; }
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
12077 $as_echo "$ZFS_CONFIG" >&6; };
12078
12079
12080
12081
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
12083 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12084
12085 saved_flags="$CFLAGS"
12086 CFLAGS="$CFLAGS -Wunused-but-set-variable"
12087
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h. */
12090
12091 int
12092 main ()
12093 {
12094
12095 ;
12096 return 0;
12097 }
12098 _ACEOF
12099 if ac_fn_c_try_compile "$LINENO"; then :
12100
12101 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12103 $as_echo "yes" >&6; }
12104
12105 else
12106
12107 NO_UNUSED_BUT_SET_VARIABLE=
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109 $as_echo "no" >&6; }
12110
12111 fi
12112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12113
12114 CFLAGS="$saved_flags"
12115
12116
12117
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5
12119 $as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12120
12121 saved_flags="$CFLAGS"
12122 CFLAGS="$CFLAGS -Wbool-compare"
12123
12124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125 /* end confdefs.h. */
12126
12127 int
12128 main ()
12129 {
12130
12131 ;
12132 return 0;
12133 }
12134 _ACEOF
12135 if ac_fn_c_try_compile "$LINENO"; then :
12136
12137 NO_BOOL_COMPARE=-Wno-bool-compare
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12139 $as_echo "yes" >&6; }
12140
12141 else
12142
12143 NO_BOOL_COMPARE=
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145 $as_echo "no" >&6; }
12146
12147 fi
12148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149
12150 CFLAGS="$saved_flags"
12151
12152
12153
12154
12155 case "$ZFS_CONFIG" in
12156 kernel)
12157
12158
12159 # Check whether --with-linux was given.
12160 if test "${with_linux+set}" = set; then :
12161 withval=$with_linux; kernelsrc="$withval"
12162 fi
12163
12164
12165
12166 # Check whether --with-linux-obj was given.
12167 if test "${with_linux_obj+set}" = set; then :
12168 withval=$with_linux_obj; kernelbuild="$withval"
12169 fi
12170
12171
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
12173 $as_echo_n "checking kernel source directory... " >&6; }
12174 if test -z "$kernelsrc"; then :
12175
12176 if test -e "/lib/modules/$(uname -r)/source"; then :
12177
12178 headersdir="/lib/modules/$(uname -r)/source"
12179 sourcelink=$(readlink -f "$headersdir")
12180
12181 elif test -e "/lib/modules/$(uname -r)/build"; then :
12182
12183 headersdir="/lib/modules/$(uname -r)/build"
12184 sourcelink=$(readlink -f "$headersdir")
12185
12186 else
12187
12188 sourcelink=$(ls -1d /usr/src/kernels/* \
12189 /usr/src/linux-* \
12190 2>/dev/null | grep -v obj | tail -1)
12191
12192 fi
12193
12194 if test -n "$sourcelink" && test -e ${sourcelink}; then :
12195
12196 kernelsrc=`readlink -f ${sourcelink}`
12197
12198 else
12199
12200 kernelsrc="Not found"
12201
12202 fi
12203
12204 else
12205
12206 if test "$kernelsrc" = "NONE"; then :
12207
12208 kernsrcver=NONE
12209
12210 fi
12211
12212 fi
12213
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
12215 $as_echo "$kernelsrc" >&6; }
12216 if test ! -d "$kernelsrc"; then :
12217
12218 as_fn_error $? "
12219 *** Please make sure the kernel devel package for your distribution
12220 *** is installed and then try again. If that fails, you can specify the
12221 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
12222
12223 fi
12224
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
12226 $as_echo_n "checking kernel build directory... " >&6; }
12227 if test -z "$kernelbuild"; then :
12228
12229 if test -e "/lib/modules/$(uname -r)/build"; then :
12230
12231 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
12232
12233 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
12234
12235 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12236
12237 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
12238
12239 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
12240
12241 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
12242
12243 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
12244
12245 else
12246
12247 kernelbuild=${kernelsrc}
12248
12249 fi
12250
12251 fi
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
12253 $as_echo "$kernelbuild" >&6; }
12254
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
12256 $as_echo_n "checking kernel source version... " >&6; }
12257 utsrelease1=$kernelbuild/include/linux/version.h
12258 utsrelease2=$kernelbuild/include/linux/utsrelease.h
12259 utsrelease3=$kernelbuild/include/generated/utsrelease.h
12260 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
12261
12262 utsrelease=linux/version.h
12263
12264 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
12265
12266 utsrelease=linux/utsrelease.h
12267
12268 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
12269
12270 utsrelease=generated/utsrelease.h
12271
12272 fi
12273
12274 if test "$utsrelease"; then :
12275
12276 kernsrcver=`(echo "#include <$utsrelease>";
12277 echo "kernsrcver=UTS_RELEASE") |
12278 cpp -I $kernelbuild/include |
12279 grep "^kernsrcver=" | cut -d \" -f 2`
12280
12281 if test -z "$kernsrcver"; then :
12282
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12284 $as_echo "Not found" >&6; }
12285 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
12286
12287 fi
12288
12289 else
12290
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12292 $as_echo "Not found" >&6; }
12293 if test "x$enable_linux_builtin" != xyes; then
12294 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
12295 else
12296 as_fn_error $? "
12297 *** Cannot find UTS_RELEASE definition.
12298 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
12299 fi
12300
12301 fi
12302
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
12304 $as_echo "$kernsrcver" >&6; }
12305
12306 LINUX=${kernelsrc}
12307 LINUX_OBJ=${kernelbuild}
12308 LINUX_VERSION=${kernsrcver}
12309
12310
12311
12312
12313
12314
12315 modpost=$LINUX/scripts/Makefile.modpost
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
12317 $as_echo_n "checking kernel file name for module symbols... " >&6; }
12318 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
12319
12320 if grep -q Modules.symvers $modpost; then :
12321
12322 LINUX_SYMBOLS=Modules.symvers
12323
12324 else
12325
12326 LINUX_SYMBOLS=Module.symvers
12327
12328 fi
12329
12330 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
12331
12332 as_fn_error $? "
12333 *** Please make sure the kernel devel package for your distribution
12334 *** is installed. If you are building with a custom kernel, make sure the
12335 *** kernel is configured, built, and the '--with-linux=PATH' configure
12336 *** option refers to the location of the kernel source." "$LINENO" 5
12337
12338 fi
12339
12340 else
12341
12342 LINUX_SYMBOLS=NONE
12343
12344 fi
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
12346 $as_echo "$LINUX_SYMBOLS" >&6; }
12347
12348
12349
12350
12351
12352 # Check whether --with-spl was given.
12353 if test "${with_spl+set}" = set; then :
12354 withval=$with_spl; splsrc="$withval"
12355 fi
12356
12357
12358
12359 # Check whether --with-spl-obj was given.
12360 if test "${with_spl_obj+set}" = set; then :
12361 withval=$with_spl_obj; splbuild="$withval"
12362 fi
12363
12364
12365
12366 # Check whether --with-spl-timeout was given.
12367 if test "${with_spl_timeout+set}" = set; then :
12368 withval=$with_spl_timeout; timeout="$withval"
12369 else
12370 timeout=0
12371 fi
12372
12373
12374 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
12375 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
12376 splsrc2="/usr/local/src/spl-${VERSION}"
12377 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
12378 splsrc4="/usr/src/spl-${VERSION}"
12379 splsrc5="../spl/"
12380 splsrc6="$LINUX"
12381
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
12383 $as_echo_n "checking spl source directory... " >&6; }
12384 if test -z "${splsrc}"; then :
12385
12386 if test -e "${splsrc0}/spl.release.in"; then :
12387
12388 splsrc=${splsrc0}
12389
12390 elif test -e "${splsrc1}/spl.release.in"; then :
12391
12392 splsrc=${splsrc1}
12393
12394 elif test -e "${splsrc2}/spl.release.in"; then :
12395
12396 splsrc=${splsrc2}
12397
12398 elif test -e "${splsrc3}/spl.release.in"; then :
12399
12400 splsrc=$(readlink -f "${splsrc3}")
12401
12402 elif test -e "${splsrc4}/spl.release.in" ; then :
12403
12404 splsrc=${splsrc4}
12405
12406 elif test -e "${splsrc5}/spl.release.in"; then :
12407
12408 splsrc=$(readlink -f "${splsrc5}")
12409
12410 elif test -e "${splsrc6}/spl.release.in" ; then :
12411
12412 splsrc=${splsrc6}
12413
12414 else
12415
12416 splsrc="Not found"
12417
12418 fi
12419
12420 else
12421
12422 if test "$splsrc" = "NONE"; then :
12423
12424 splbuild=NONE
12425 splsrcver=NONE
12426
12427 fi
12428
12429 fi
12430
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
12432 $as_echo "$splsrc" >&6; }
12433 if test ! -e "$splsrc/spl.release.in"; then :
12434
12435 as_fn_error $? "
12436 *** Please make sure the kmod spl devel package for your distribution
12437 *** is installed then try again. If that fails you can specify the
12438 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
12439
12440 fi
12441
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
12443 $as_echo_n "checking spl build directory... " >&6; }
12444 while true; do
12445 if test -z "$splbuild"; then :
12446
12447 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
12448
12449 splbuild="${splsrc}/${LINUX_VERSION}"
12450
12451 elif test -e "${splsrc}/spl_config.h" ; then :
12452
12453 splbuild="${splsrc}"
12454
12455 elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then :
12456
12457 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
12458
12459 else
12460
12461 splbuild="Not found"
12462
12463 fi
12464
12465 fi
12466 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
12467
12468 break;
12469
12470 else
12471
12472 sleep 1
12473 timeout=$((timeout-1))
12474
12475 fi
12476 done
12477
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
12479 $as_echo "$splbuild" >&6; }
12480 if ! test -e "$splbuild/spl_config.h"; then :
12481
12482 as_fn_error $? "
12483 *** Please make sure the kmod spl devel <kernel> package for your
12484 *** distribution is installed then try again. If that fails you
12485 *** can specify the location of the spl objects with the
12486 *** '--with-spl-obj=PATH' option." "$LINENO" 5
12487
12488 fi
12489
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
12491 $as_echo_n "checking spl source version... " >&6; }
12492 if test -r $splbuild/spl_config.h &&
12493 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
12494
12495
12496 splsrcver=`(echo "#include <spl_config.h>";
12497 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
12498 cpp -I $splbuild |
12499 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
12500
12501 fi
12502
12503 if test -z "$splsrcver"; then :
12504
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12506 $as_echo "Not found" >&6; }
12507 as_fn_error $? "
12508 *** Cannot determine the version of the spl source.
12509 *** Please prepare the spl source before running this script" "$LINENO" 5
12510
12511 fi
12512
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
12514 $as_echo "$splsrcver" >&6; }
12515
12516 SPL=${splsrc}
12517 SPL_OBJ=${splbuild}
12518 SPL_VERSION=${splsrcver}
12519
12520
12521
12522
12523
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
12525 $as_echo_n "checking spl file name for module symbols... " >&6; }
12526 SPL_SYMBOLS=NONE
12527
12528 while true; do
12529 if test -r $SPL_OBJ/Module.symvers; then :
12530
12531 SPL_SYMBOLS=Module.symvers
12532
12533 elif test -r $SPL_OBJ/Modules.symvers; then :
12534
12535 SPL_SYMBOLS=Modules.symvers
12536
12537 elif test -r $SPL_OBJ/module/Module.symvers; then :
12538
12539 SPL_SYMBOLS=Module.symvers
12540
12541 elif test -r $SPL_OBJ/module/Modules.symvers; then :
12542
12543 SPL_SYMBOLS=Modules.symvers
12544
12545 fi
12546
12547 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
12548
12549 break;
12550
12551 else
12552
12553 sleep 1
12554 timeout=$((timeout-1))
12555
12556 fi
12557 done
12558
12559 if test "$SPL_SYMBOLS" = NONE; then :
12560
12561 SPL_SYMBOLS=$LINUX_SYMBOLS
12562
12563 fi
12564
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
12566 $as_echo "$SPL_SYMBOLS" >&6; }
12567
12568
12569
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
12571 $as_echo_n "checking whether modules can be built... " >&6; }
12572
12573
12574 cat confdefs.h - <<_ACEOF >conftest.c
12575
12576
12577 int
12578 main (void)
12579 {
12580
12581 ;
12582 return 0;
12583 }
12584
12585 _ACEOF
12586
12587
12588
12589 cat - <<_ACEOF >conftest.h
12590
12591 _ACEOF
12592
12593
12594 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12595 echo "obj-m := conftest.o" >build/Makefile
12596 modpost_flag=''
12597 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12598 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12600 (eval $ac_try) 2>&5
12601 ac_status=$?
12602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12603 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12605 (eval $ac_try) 2>&5
12606 ac_status=$?
12607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12608 test $ac_status = 0; }; }; then :
12609
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12611 $as_echo "yes" >&6; }
12612
12613 else
12614 $as_echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12616
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618 $as_echo "no" >&6; }
12619 if test "x$enable_linux_builtin" != xyes; then
12620 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
12621 else
12622 as_fn_error $? "
12623 *** Unable to build an empty module.
12624 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
12625 fi
12626
12627
12628
12629 fi
12630 rm -Rf build
12631
12632
12633
12634
12635 if test "x$cross_compiling" != xyes; then :
12636
12637 if test "$cross_compiling" = yes; then :
12638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12640 as_fn_error $? "cannot run test program while cross compiling
12641 See \`config.log' for more details" "$LINENO" 5; }
12642 else
12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644 /* end confdefs.h. */
12645
12646
12647 #include "$LINUX/include/linux/license.h"
12648
12649 int
12650 main ()
12651 {
12652
12653 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
12654
12655 ;
12656 return 0;
12657 }
12658
12659 _ACEOF
12660 if ac_fn_c_try_run "$LINENO"; then :
12661
12662
12663 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
12664
12665
12666 fi
12667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12668 conftest.$ac_objext conftest.beam conftest.$ac_ext
12669 fi
12670
12671
12672 fi
12673
12674
12675
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12677 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12678
12679
12680 cat confdefs.h - <<_ACEOF >conftest.c
12681
12682
12683 #include <linux/module.h>
12684
12685 int
12686 main (void)
12687 {
12688
12689 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12690 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12691 #endif
12692
12693 ;
12694 return 0;
12695 }
12696
12697 _ACEOF
12698
12699
12700
12701 cat - <<_ACEOF >conftest.h
12702
12703 _ACEOF
12704
12705
12706 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12707 echo "obj-m := conftest.o" >build/Makefile
12708 modpost_flag=''
12709 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12710 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12712 (eval $ac_try) 2>&5
12713 ac_status=$?
12714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12715 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12717 (eval $ac_try) 2>&5
12718 ac_status=$?
12719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12720 test $ac_status = 0; }; }; then :
12721
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12723 $as_echo "yes" >&6; }
12724
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
12726 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
12727 tmp_flags="$EXTRA_KCFLAGS"
12728
12729
12730 cat confdefs.h - <<_ACEOF >conftest.c
12731
12732
12733 #include <linux/module.h>
12734 #include <linux/mutex.h>
12735
12736 MODULE_LICENSE("$ZFS_META_LICENSE");
12737
12738 int
12739 main (void)
12740 {
12741
12742 struct mutex lock;
12743
12744 mutex_init(&lock);
12745 mutex_lock(&lock);
12746 mutex_unlock(&lock);
12747
12748 ;
12749 return 0;
12750 }
12751
12752 _ACEOF
12753
12754
12755
12756 cat - <<_ACEOF >conftest.h
12757
12758 _ACEOF
12759
12760
12761 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12762 echo "obj-m := conftest.o" >build/Makefile
12763 modpost_flag=''
12764 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12765 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12767 (eval $ac_try) 2>&5
12768 ac_status=$?
12769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12770 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12772 (eval $ac_try) 2>&5
12773 ac_status=$?
12774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12775 test $ac_status = 0; }; }; then :
12776
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12778 $as_echo "no" >&6; }
12779
12780 else
12781 $as_echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.$ac_ext >&5
12783
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12785 $as_echo "yes" >&6; }
12786 as_fn_error $? "
12787 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
12788 *** with the CDDL license and will prevent the module linking stage
12789 *** from succeeding. You must rebuild your kernel without this
12790 *** option enabled." "$LINENO" 5
12791
12792
12793
12794 fi
12795 rm -Rf build
12796
12797
12798 EXTRA_KCFLAGS="$tmp_flags"
12799
12800
12801 else
12802 $as_echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12804
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806 $as_echo "no" >&6; }
12807
12808
12809
12810
12811 fi
12812 rm -Rf build
12813
12814
12815
12816
12817
12818
12819 tmp_flags="$EXTRA_KCFLAGS"
12820 EXTRA_KCFLAGS="-I\$(src)"
12821
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
12823 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
12824
12825
12826 cat confdefs.h - <<_ACEOF >conftest.c
12827
12828
12829 #include <linux/module.h>
12830 MODULE_LICENSE(ZFS_META_LICENSE);
12831
12832 #define CREATE_TRACE_POINTS
12833 #include "conftest.h"
12834
12835 int
12836 main (void)
12837 {
12838
12839 trace_zfs_autoconf_event_one(1UL);
12840 trace_zfs_autoconf_event_two(2UL);
12841
12842 ;
12843 return 0;
12844 }
12845
12846 _ACEOF
12847
12848
12849
12850 cat - <<_ACEOF >conftest.h
12851
12852 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
12853 #define _CONFTEST_H
12854
12855 #undef TRACE_SYSTEM
12856 #define TRACE_SYSTEM zfs
12857 #include <linux/tracepoint.h>
12858
12859 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
12860 TP_PROTO(unsigned long i),
12861 TP_ARGS(i),
12862 TP_STRUCT__entry(
12863 __field(unsigned long, i)
12864 ),
12865 TP_fast_assign(
12866 __entry->i = i;
12867 ),
12868 TP_printk("i = %lu", __entry->i)
12869 );
12870
12871 #define DEFINE_AUTOCONF_EVENT(name) \
12872 DEFINE_EVENT(zfs_autoconf_event_class, name, \
12873 TP_PROTO(unsigned long i), \
12874 TP_ARGS(i))
12875 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
12876 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
12877
12878 #endif /* _CONFTEST_H */
12879
12880 #undef TRACE_INCLUDE_PATH
12881 #define TRACE_INCLUDE_PATH .
12882 #define TRACE_INCLUDE_FILE conftest
12883 #include <trace/define_trace.h>
12884
12885 _ACEOF
12886
12887
12888 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12889 echo "obj-m := conftest.o" >build/Makefile
12890 modpost_flag=''
12891 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12892 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12894 (eval $ac_try) 2>&5
12895 ac_status=$?
12896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12897 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12899 (eval $ac_try) 2>&5
12900 ac_status=$?
12901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12902 test $ac_status = 0; }; }; then :
12903
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12905 $as_echo "yes" >&6; }
12906
12907 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
12908
12909
12910 else
12911 $as_echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12913
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12915 $as_echo "no" >&6; }
12916
12917
12918
12919 fi
12920 rm -Rf build
12921
12922
12923 EXTRA_KCFLAGS="$tmp_flags"
12924
12925
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
12927 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
12928
12929
12930 cat confdefs.h - <<_ACEOF >conftest.c
12931
12932
12933 #include <linux/sched.h>
12934
12935 int
12936 main (void)
12937 {
12938
12939 current->bio_tail = (struct bio **) NULL;
12940
12941 ;
12942 return 0;
12943 }
12944
12945 _ACEOF
12946
12947
12948
12949 cat - <<_ACEOF >conftest.h
12950
12951 _ACEOF
12952
12953
12954 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12955 echo "obj-m := conftest.o" >build/Makefile
12956 modpost_flag=''
12957 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12958 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12960 (eval $ac_try) 2>&5
12961 ac_status=$?
12962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12963 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12965 (eval $ac_try) 2>&5
12966 ac_status=$?
12967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12968 test $ac_status = 0; }; }; then :
12969
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12971 $as_echo "yes" >&6; }
12972
12973 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
12974
12975
12976 else
12977 $as_echo "$as_me: failed program was:" >&5
12978 sed 's/^/| /' conftest.$ac_ext >&5
12979
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12981 $as_echo "no" >&6; }
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
12983 $as_echo_n "checking whether current->bio_list exists... " >&6; }
12984
12985
12986 cat confdefs.h - <<_ACEOF >conftest.c
12987
12988
12989 #include <linux/sched.h>
12990
12991 int
12992 main (void)
12993 {
12994
12995 current->bio_list = (struct bio_list *) NULL;
12996
12997 ;
12998 return 0;
12999 }
13000
13001 _ACEOF
13002
13003
13004
13005 cat - <<_ACEOF >conftest.h
13006
13007 _ACEOF
13008
13009
13010 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13011 echo "obj-m := conftest.o" >build/Makefile
13012 modpost_flag=''
13013 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13014 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13016 (eval $ac_try) 2>&5
13017 ac_status=$?
13018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13019 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13021 (eval $ac_try) 2>&5
13022 ac_status=$?
13023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13024 test $ac_status = 0; }; }; then :
13025
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13027 $as_echo "yes" >&6; }
13028
13029 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
13030
13031
13032 else
13033 $as_echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13035
13036 as_fn_error $? "no - Please file a bug report at
13037 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
13038
13039
13040
13041 fi
13042 rm -Rf build
13043
13044
13045
13046
13047
13048 fi
13049 rm -Rf build
13050
13051
13052
13053
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
13055 $as_echo_n "checking block device operation prototypes... " >&6; }
13056 tmp_flags="$EXTRA_KCFLAGS"
13057 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13058
13059
13060 cat confdefs.h - <<_ACEOF >conftest.c
13061
13062
13063 #include <linux/blkdev.h>
13064
13065 int blk_open(struct block_device *bdev, fmode_t mode)
13066 { return 0; }
13067 int blk_ioctl(struct block_device *bdev, fmode_t mode,
13068 unsigned x, unsigned long y) { return 0; }
13069 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
13070 unsigned x, unsigned long y) { return 0; }
13071
13072 static const struct block_device_operations
13073 bops __attribute__ ((unused)) = {
13074 .open = blk_open,
13075 .release = NULL,
13076 .ioctl = blk_ioctl,
13077 .compat_ioctl = blk_compat_ioctl,
13078 };
13079
13080 int
13081 main (void)
13082 {
13083
13084
13085 ;
13086 return 0;
13087 }
13088
13089 _ACEOF
13090
13091
13092
13093 cat - <<_ACEOF >conftest.h
13094
13095 _ACEOF
13096
13097
13098 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13099 echo "obj-m := conftest.o" >build/Makefile
13100 modpost_flag=''
13101 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13102 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13104 (eval $ac_try) 2>&5
13105 ac_status=$?
13106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13107 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13109 (eval $ac_try) 2>&5
13110 ac_status=$?
13111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13112 test $ac_status = 0; }; }; then :
13113
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
13115 $as_echo "struct block_device" >&6; }
13116
13117 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
13118
13119
13120 else
13121 $as_echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13123
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
13125 $as_echo "struct inode" >&6; }
13126
13127
13128
13129 fi
13130 rm -Rf build
13131
13132
13133 EXTRA_KCFLAGS="$tmp_flags"
13134
13135
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
13137 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
13138 tmp_flags="$EXTRA_KCFLAGS"
13139 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13140
13141
13142 cat confdefs.h - <<_ACEOF >conftest.c
13143
13144
13145 #include <linux/blkdev.h>
13146
13147 void blk_release(struct gendisk *g, fmode_t mode) { return; }
13148
13149 static const struct block_device_operations
13150 bops __attribute__ ((unused)) = {
13151 .open = NULL,
13152 .release = blk_release,
13153 .ioctl = NULL,
13154 .compat_ioctl = NULL,
13155 };
13156
13157 int
13158 main (void)
13159 {
13160
13161
13162 ;
13163 return 0;
13164 }
13165
13166 _ACEOF
13167
13168
13169
13170 cat - <<_ACEOF >conftest.h
13171
13172 _ACEOF
13173
13174
13175 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13176 echo "obj-m := conftest.o" >build/Makefile
13177 modpost_flag=''
13178 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13179 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13181 (eval $ac_try) 2>&5
13182 ac_status=$?
13183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13184 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13186 (eval $ac_try) 2>&5
13187 ac_status=$?
13188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13189 test $ac_status = 0; }; }; then :
13190
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
13192 $as_echo "void" >&6; }
13193
13194 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
13195
13196
13197 else
13198 $as_echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13200
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
13202 $as_echo "int" >&6; }
13203
13204
13205
13206 fi
13207 rm -Rf build
13208
13209
13210 EXTRA_KCFLAGS="$tmp_flags"
13211
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
13213 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
13214
13215
13216 cat confdefs.h - <<_ACEOF >conftest.c
13217
13218
13219 #include <linux/types.h>
13220
13221 int
13222 main (void)
13223 {
13224
13225 fmode_t *ptr __attribute__ ((unused));
13226
13227 ;
13228 return 0;
13229 }
13230
13231 _ACEOF
13232
13233
13234
13235 cat - <<_ACEOF >conftest.h
13236
13237 _ACEOF
13238
13239
13240 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13241 echo "obj-m := conftest.o" >build/Makefile
13242 modpost_flag=''
13243 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13244 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13246 (eval $ac_try) 2>&5
13247 ac_status=$?
13248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13249 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13251 (eval $ac_try) 2>&5
13252 ac_status=$?
13253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13254 test $ac_status = 0; }; }; then :
13255
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13257 $as_echo "yes" >&6; }
13258
13259 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
13260
13261
13262 else
13263 $as_echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13265
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13268
13269
13270
13271 fi
13272 rm -Rf build
13273
13274
13275
13276
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
13278 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
13279
13280
13281 cat confdefs.h - <<_ACEOF >conftest.c
13282
13283
13284 #include <linux/kobject.h>
13285
13286 int
13287 main (void)
13288 {
13289
13290 int val __attribute__ ((unused));
13291 val = KOBJ_NAME_LEN;
13292
13293 ;
13294 return 0;
13295 }
13296
13297 _ACEOF
13298
13299
13300
13301 cat - <<_ACEOF >conftest.h
13302
13303 _ACEOF
13304
13305
13306 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13307 echo "obj-m := conftest.o" >build/Makefile
13308 modpost_flag=''
13309 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13310 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13312 (eval $ac_try) 2>&5
13313 ac_status=$?
13314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13315 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13317 (eval $ac_try) 2>&5
13318 ac_status=$?
13319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13320 test $ac_status = 0; }; }; then :
13321
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13323 $as_echo "yes" >&6; }
13324
13325 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
13326
13327
13328 else
13329 $as_echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13331
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13333 $as_echo "no" >&6; }
13334
13335
13336
13337 fi
13338 rm -Rf build
13339
13340
13341
13342
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
13344 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
13345
13346
13347 cat confdefs.h - <<_ACEOF >conftest.c
13348
13349
13350 #include <linux/fs.h>
13351
13352 int
13353 main (void)
13354 {
13355
13356 struct block_device *bdev = NULL;
13357 (void) blkdev_get(bdev, 0, NULL);
13358
13359 ;
13360 return 0;
13361 }
13362
13363 _ACEOF
13364
13365
13366
13367 cat - <<_ACEOF >conftest.h
13368
13369 _ACEOF
13370
13371
13372 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13373 echo "obj-m := conftest.o" >build/Makefile
13374 modpost_flag=''
13375 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13376 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13378 (eval $ac_try) 2>&5
13379 ac_status=$?
13380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13381 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13383 (eval $ac_try) 2>&5
13384 ac_status=$?
13385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13386 test $ac_status = 0; }; }; then :
13387
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13389 $as_echo "yes" >&6; }
13390
13391 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
13392
13393
13394 else
13395 $as_echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.$ac_ext >&5
13397
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13399 $as_echo "no" >&6; }
13400
13401
13402
13403 fi
13404 rm -Rf build
13405
13406
13407
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
13409 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
13410
13411
13412
13413 cat confdefs.h - <<_ACEOF >conftest.c
13414
13415
13416 #include <linux/fs.h>
13417
13418 int
13419 main (void)
13420 {
13421
13422 blkdev_get_by_path(NULL, 0, NULL);
13423
13424 ;
13425 return 0;
13426 }
13427
13428 _ACEOF
13429
13430
13431
13432 cat - <<_ACEOF >conftest.h
13433
13434 _ACEOF
13435
13436
13437 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13438 echo "obj-m := conftest.o" >build/Makefile
13439 modpost_flag=''
13440 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13441 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13446 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13448 (eval $ac_try) 2>&5
13449 ac_status=$?
13450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13451 test $ac_status = 0; }; }; then :
13452 rc=0
13453 else
13454 $as_echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13456 rc=1
13457
13458
13459 fi
13460 rm -Rf build
13461
13462
13463 if test $rc -ne 0; then :
13464
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13466 $as_echo "no" >&6; }
13467
13468 else
13469 if test "x$enable_linux_builtin" != xyes; then
13470
13471 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
13472 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
13473 rc=$?
13474 if test $rc -ne 0; then
13475 export=0
13476 for file in fs/block_dev.c; do
13477 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
13478 "$LINUX/$file" 2>/dev/null
13479 rc=$?
13480 if test $rc -eq 0; then
13481 export=1
13482 break;
13483 fi
13484 done
13485 if test $export -eq 0; then :
13486 rc=1
13487 else :
13488 rc=0
13489 fi
13490 else :
13491 rc=0
13492 fi
13493
13494 fi
13495 if test $rc -ne 0; then :
13496
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13498 $as_echo "no" >&6; }
13499
13500 else :
13501
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13503 $as_echo "yes" >&6; }
13504
13505 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
13506
13507
13508 fi
13509 fi
13510
13511
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
13513 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
13514
13515
13516
13517 cat confdefs.h - <<_ACEOF >conftest.c
13518
13519
13520 #include <linux/fs.h>
13521
13522 int
13523 main (void)
13524 {
13525
13526 open_bdev_exclusive(NULL, 0, NULL);
13527
13528 ;
13529 return 0;
13530 }
13531
13532 _ACEOF
13533
13534
13535
13536 cat - <<_ACEOF >conftest.h
13537
13538 _ACEOF
13539
13540
13541 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13542 echo "obj-m := conftest.o" >build/Makefile
13543 modpost_flag=''
13544 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13545 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13547 (eval $ac_try) 2>&5
13548 ac_status=$?
13549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13550 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13552 (eval $ac_try) 2>&5
13553 ac_status=$?
13554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13555 test $ac_status = 0; }; }; then :
13556 rc=0
13557 else
13558 $as_echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13560 rc=1
13561
13562
13563 fi
13564 rm -Rf build
13565
13566
13567 if test $rc -ne 0; then :
13568
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13570 $as_echo "no" >&6; }
13571
13572 else
13573 if test "x$enable_linux_builtin" != xyes; then
13574
13575 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
13576 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
13577 rc=$?
13578 if test $rc -ne 0; then
13579 export=0
13580 for file in fs/block_dev.c; do
13581 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
13582 "$LINUX/$file" 2>/dev/null
13583 rc=$?
13584 if test $rc -eq 0; then
13585 export=1
13586 break;
13587 fi
13588 done
13589 if test $export -eq 0; then :
13590 rc=1
13591 else :
13592 rc=0
13593 fi
13594 else :
13595 rc=0
13596 fi
13597
13598 fi
13599 if test $rc -ne 0; then :
13600
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13603
13604 else :
13605
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13607 $as_echo "yes" >&6; }
13608
13609 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
13610
13611
13612 fi
13613 fi
13614
13615
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
13617 $as_echo_n "checking whether lookup_bdev() is available... " >&6; }
13618
13619
13620
13621 cat confdefs.h - <<_ACEOF >conftest.c
13622
13623
13624 #include <linux/fs.h>
13625
13626 int
13627 main (void)
13628 {
13629
13630 lookup_bdev(NULL);
13631
13632 ;
13633 return 0;
13634 }
13635
13636 _ACEOF
13637
13638
13639
13640 cat - <<_ACEOF >conftest.h
13641
13642 _ACEOF
13643
13644
13645 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13646 echo "obj-m := conftest.o" >build/Makefile
13647 modpost_flag=''
13648 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13649 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13651 (eval $ac_try) 2>&5
13652 ac_status=$?
13653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13654 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13656 (eval $ac_try) 2>&5
13657 ac_status=$?
13658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13659 test $ac_status = 0; }; }; then :
13660 rc=0
13661 else
13662 $as_echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.$ac_ext >&5
13664 rc=1
13665
13666
13667 fi
13668 rm -Rf build
13669
13670
13671 if test $rc -ne 0; then :
13672
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13674 $as_echo "no" >&6; }
13675
13676 else
13677 if test "x$enable_linux_builtin" != xyes; then
13678
13679 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
13680 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
13681 rc=$?
13682 if test $rc -ne 0; then
13683 export=0
13684 for file in fs/block_dev.c; do
13685 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
13686 "$LINUX/$file" 2>/dev/null
13687 rc=$?
13688 if test $rc -eq 0; then
13689 export=1
13690 break;
13691 fi
13692 done
13693 if test $export -eq 0; then :
13694 rc=1
13695 else :
13696 rc=0
13697 fi
13698 else :
13699 rc=0
13700 fi
13701
13702 fi
13703 if test $rc -ne 0; then :
13704
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13706 $as_echo "no" >&6; }
13707
13708 else :
13709
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13711 $as_echo "yes" >&6; }
13712
13713 $as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
13714
13715
13716 fi
13717 fi
13718
13719
13720
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
13722 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
13723
13724
13725 cat confdefs.h - <<_ACEOF >conftest.c
13726
13727
13728 #include <linux/buffer_head.h>
13729
13730 int
13731 main (void)
13732 {
13733
13734 struct block_device *bdev = NULL;
13735 invalidate_bdev(bdev);
13736
13737 ;
13738 return 0;
13739 }
13740
13741 _ACEOF
13742
13743
13744
13745 cat - <<_ACEOF >conftest.h
13746
13747 _ACEOF
13748
13749
13750 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13751 echo "obj-m := conftest.o" >build/Makefile
13752 modpost_flag=''
13753 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13754 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13756 (eval $ac_try) 2>&5
13757 ac_status=$?
13758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13759 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13761 (eval $ac_try) 2>&5
13762 ac_status=$?
13763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13764 test $ac_status = 0; }; }; then :
13765
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13767 $as_echo "yes" >&6; }
13768
13769 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
13770
13771
13772 else
13773 $as_echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13775
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13777 $as_echo "no" >&6; }
13778
13779
13780
13781 fi
13782 rm -Rf build
13783
13784
13785
13786
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
13788 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
13789 tmp_flags="$EXTRA_KCFLAGS"
13790 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13791
13792
13793 cat confdefs.h - <<_ACEOF >conftest.c
13794
13795
13796 #include <linux/blkdev.h>
13797
13798 int
13799 main (void)
13800 {
13801
13802 struct block_device *bdev = NULL;
13803 bdev_logical_block_size(bdev);
13804
13805 ;
13806 return 0;
13807 }
13808
13809 _ACEOF
13810
13811
13812
13813 cat - <<_ACEOF >conftest.h
13814
13815 _ACEOF
13816
13817
13818 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13819 echo "obj-m := conftest.o" >build/Makefile
13820 modpost_flag=''
13821 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13822 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13824 (eval $ac_try) 2>&5
13825 ac_status=$?
13826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13827 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13829 (eval $ac_try) 2>&5
13830 ac_status=$?
13831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13832 test $ac_status = 0; }; }; then :
13833
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13835 $as_echo "yes" >&6; }
13836
13837 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
13838
13839
13840 else
13841 $as_echo "$as_me: failed program was:" >&5
13842 sed 's/^/| /' conftest.$ac_ext >&5
13843
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13845 $as_echo "no" >&6; }
13846
13847
13848
13849 fi
13850 rm -Rf build
13851
13852
13853 EXTRA_KCFLAGS="$tmp_flags"
13854
13855
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
13857 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
13858 tmp_flags="$EXTRA_KCFLAGS"
13859 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13860
13861
13862 cat confdefs.h - <<_ACEOF >conftest.c
13863
13864
13865 #include <linux/blkdev.h>
13866
13867 int
13868 main (void)
13869 {
13870
13871 struct block_device *bdev = NULL;
13872 bdev_physical_block_size(bdev);
13873
13874 ;
13875 return 0;
13876 }
13877
13878 _ACEOF
13879
13880
13881
13882 cat - <<_ACEOF >conftest.h
13883
13884 _ACEOF
13885
13886
13887 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13888 echo "obj-m := conftest.o" >build/Makefile
13889 modpost_flag=''
13890 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13891 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13893 (eval $ac_try) 2>&5
13894 ac_status=$?
13895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13896 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13898 (eval $ac_try) 2>&5
13899 ac_status=$?
13900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13901 test $ac_status = 0; }; }; then :
13902
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13904 $as_echo "yes" >&6; }
13905
13906 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
13907
13908
13909 else
13910 $as_echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13912
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13914 $as_echo "no" >&6; }
13915
13916
13917
13918 fi
13919 rm -Rf build
13920
13921
13922 EXTRA_KCFLAGS="$tmp_flags"
13923
13924
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
13926 $as_echo_n "checking whether bio has bi_iter... " >&6; }
13927
13928
13929 cat confdefs.h - <<_ACEOF >conftest.c
13930
13931
13932 #include <linux/bio.h>
13933
13934 int
13935 main (void)
13936 {
13937
13938 struct bio bio;
13939 bio.bi_iter.bi_sector = 0;
13940
13941 ;
13942 return 0;
13943 }
13944
13945 _ACEOF
13946
13947
13948
13949 cat - <<_ACEOF >conftest.h
13950
13951 _ACEOF
13952
13953
13954 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13955 echo "obj-m := conftest.o" >build/Makefile
13956 modpost_flag=''
13957 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13958 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13960 (eval $ac_try) 2>&5
13961 ac_status=$?
13962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13963 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13965 (eval $ac_try) 2>&5
13966 ac_status=$?
13967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13968 test $ac_status = 0; }; }; then :
13969
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13971 $as_echo "yes" >&6; }
13972
13973 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
13974
13975
13976 else
13977 $as_echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13979
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13981 $as_echo "no" >&6; }
13982
13983
13984
13985 fi
13986 rm -Rf build
13987
13988
13989
13990
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
13992 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
13993
13994
13995 cat confdefs.h - <<_ACEOF >conftest.c
13996
13997
13998 #include <linux/bio.h>
13999
14000 int
14001 main (void)
14002 {
14003
14004 int flags __attribute__ ((unused));
14005 flags = ((1 << BIO_RW_FAILFAST_DEV) |
14006 (1 << BIO_RW_FAILFAST_TRANSPORT) |
14007 (1 << BIO_RW_FAILFAST_DRIVER));
14008
14009 ;
14010 return 0;
14011 }
14012
14013 _ACEOF
14014
14015
14016
14017 cat - <<_ACEOF >conftest.h
14018
14019 _ACEOF
14020
14021
14022 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14023 echo "obj-m := conftest.o" >build/Makefile
14024 modpost_flag=''
14025 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14026 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14028 (eval $ac_try) 2>&5
14029 ac_status=$?
14030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14031 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14033 (eval $ac_try) 2>&5
14034 ac_status=$?
14035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14036 test $ac_status = 0; }; }; then :
14037
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14039 $as_echo "yes" >&6; }
14040
14041 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
14042
14043
14044 else
14045 $as_echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14047
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14049 $as_echo "no" >&6; }
14050
14051
14052
14053 fi
14054 rm -Rf build
14055
14056
14057
14058
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
14060 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
14061
14062
14063 cat confdefs.h - <<_ACEOF >conftest.c
14064
14065
14066 #include <linux/bio.h>
14067
14068 int
14069 main (void)
14070 {
14071
14072 int flags __attribute__ ((unused));
14073 flags = REQ_FAILFAST_MASK;
14074
14075 ;
14076 return 0;
14077 }
14078
14079 _ACEOF
14080
14081
14082
14083 cat - <<_ACEOF >conftest.h
14084
14085 _ACEOF
14086
14087
14088 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14089 echo "obj-m := conftest.o" >build/Makefile
14090 modpost_flag=''
14091 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14092 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14094 (eval $ac_try) 2>&5
14095 ac_status=$?
14096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14097 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14099 (eval $ac_try) 2>&5
14100 ac_status=$?
14101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14102 test $ac_status = 0; }; }; then :
14103
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14105 $as_echo "yes" >&6; }
14106
14107 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
14108
14109
14110 else
14111 $as_echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14113
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14115 $as_echo "no" >&6; }
14116
14117
14118
14119 fi
14120 rm -Rf build
14121
14122
14123
14124
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
14126 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
14127
14128
14129 cat confdefs.h - <<_ACEOF >conftest.c
14130
14131
14132 #include <linux/bio.h>
14133
14134 void wanted_end_io(struct bio *bio) { return; }
14135
14136 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
14137
14138 int
14139 main (void)
14140 {
14141
14142
14143 ;
14144 return 0;
14145 }
14146
14147 _ACEOF
14148
14149
14150
14151 cat - <<_ACEOF >conftest.h
14152
14153 _ACEOF
14154
14155
14156 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14157 echo "obj-m := conftest.o" >build/Makefile
14158 modpost_flag=''
14159 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14160 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14162 (eval $ac_try) 2>&5
14163 ac_status=$?
14164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14165 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14167 (eval $ac_try) 2>&5
14168 ac_status=$?
14169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14170 test $ac_status = 0; }; }; then :
14171
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14173 $as_echo "yes" >&6; }
14174
14175 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
14176
14177
14178 else
14179 $as_echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14181
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14183 $as_echo "no" >&6; }
14184
14185
14186
14187 fi
14188 rm -Rf build
14189
14190
14191
14192
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
14194 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
14195
14196
14197 cat confdefs.h - <<_ACEOF >conftest.c
14198
14199
14200 #include <linux/bio.h>
14201
14202 int
14203 main (void)
14204 {
14205
14206 int flags __attribute__ ((unused));
14207 flags = BIO_RW_BARRIER;
14208
14209 ;
14210 return 0;
14211 }
14212
14213 _ACEOF
14214
14215
14216
14217 cat - <<_ACEOF >conftest.h
14218
14219 _ACEOF
14220
14221
14222 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14223 echo "obj-m := conftest.o" >build/Makefile
14224 modpost_flag=''
14225 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14226 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14228 (eval $ac_try) 2>&5
14229 ac_status=$?
14230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14231 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14233 (eval $ac_try) 2>&5
14234 ac_status=$?
14235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14236 test $ac_status = 0; }; }; then :
14237
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14239 $as_echo "yes" >&6; }
14240
14241 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
14242
14243
14244 else
14245 $as_echo "$as_me: failed program was:" >&5
14246 sed 's/^/| /' conftest.$ac_ext >&5
14247
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14249 $as_echo "no" >&6; }
14250
14251
14252
14253 fi
14254 rm -Rf build
14255
14256
14257
14258
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
14260 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
14261
14262
14263 cat confdefs.h - <<_ACEOF >conftest.c
14264
14265
14266 #include <linux/bio.h>
14267
14268 int
14269 main (void)
14270 {
14271
14272 int flags __attribute__ ((unused));
14273 flags = BIO_RW_DISCARD;
14274
14275 ;
14276 return 0;
14277 }
14278
14279 _ACEOF
14280
14281
14282
14283 cat - <<_ACEOF >conftest.h
14284
14285 _ACEOF
14286
14287
14288 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14289 echo "obj-m := conftest.o" >build/Makefile
14290 modpost_flag=''
14291 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14292 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14294 (eval $ac_try) 2>&5
14295 ac_status=$?
14296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14297 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14299 (eval $ac_try) 2>&5
14300 ac_status=$?
14301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14302 test $ac_status = 0; }; }; then :
14303
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14305 $as_echo "yes" >&6; }
14306
14307 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
14308
14309
14310 else
14311 $as_echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14313
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315 $as_echo "no" >&6; }
14316
14317
14318
14319 fi
14320 rm -Rf build
14321
14322
14323
14324
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
14326 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
14327 tmp_flags="$EXTRA_KCFLAGS"
14328 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14329
14330
14331 cat confdefs.h - <<_ACEOF >conftest.c
14332
14333
14334 #include <linux/blkdev.h>
14335
14336 int
14337 main (void)
14338 {
14339
14340 struct request_queue *q = NULL;
14341 (void) blk_queue_flush(q, REQ_FLUSH);
14342
14343 ;
14344 return 0;
14345 }
14346
14347 _ACEOF
14348
14349
14350
14351 cat - <<_ACEOF >conftest.h
14352
14353 _ACEOF
14354
14355
14356 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14357 echo "obj-m := conftest.o" >build/Makefile
14358 modpost_flag=''
14359 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14360 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14362 (eval $ac_try) 2>&5
14363 ac_status=$?
14364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14365 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14367 (eval $ac_try) 2>&5
14368 ac_status=$?
14369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14370 test $ac_status = 0; }; }; then :
14371
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14373 $as_echo "yes" >&6; }
14374
14375 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
14376
14377
14378 else
14379 $as_echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14381
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14383 $as_echo "no" >&6; }
14384
14385
14386
14387 fi
14388 rm -Rf build
14389
14390
14391
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
14393 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
14394
14395
14396 cat confdefs.h - <<_ACEOF >conftest.c
14397
14398
14399 #include <linux/module.h>
14400 #include <linux/blkdev.h>
14401
14402 MODULE_LICENSE("$ZFS_META_LICENSE");
14403
14404 int
14405 main (void)
14406 {
14407
14408 struct request_queue *q = NULL;
14409 (void) blk_queue_flush(q, REQ_FLUSH);
14410
14411 ;
14412 return 0;
14413 }
14414
14415 _ACEOF
14416
14417
14418
14419 cat - <<_ACEOF >conftest.h
14420
14421 _ACEOF
14422
14423
14424 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14425 echo "obj-m := conftest.o" >build/Makefile
14426 modpost_flag=''
14427 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14428 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14430 (eval $ac_try) 2>&5
14431 ac_status=$?
14432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14433 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14435 (eval $ac_try) 2>&5
14436 ac_status=$?
14437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14438 test $ac_status = 0; }; }; then :
14439
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14441 $as_echo "no" >&6; }
14442
14443 else
14444 $as_echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14446
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14448 $as_echo "yes" >&6; }
14449
14450 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
14451
14452
14453
14454
14455 fi
14456 rm -Rf build
14457
14458
14459 EXTRA_KCFLAGS="$tmp_flags"
14460
14461
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
14463 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
14464 tmp_flags="$EXTRA_KCFLAGS"
14465 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14466
14467
14468 cat confdefs.h - <<_ACEOF >conftest.c
14469
14470
14471 #include <linux/blkdev.h>
14472
14473 int
14474 main (void)
14475 {
14476
14477 struct request_queue *q = NULL;
14478 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
14479
14480 ;
14481 return 0;
14482 }
14483
14484 _ACEOF
14485
14486
14487
14488 cat - <<_ACEOF >conftest.h
14489
14490 _ACEOF
14491
14492
14493 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14494 echo "obj-m := conftest.o" >build/Makefile
14495 modpost_flag=''
14496 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14497 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14499 (eval $ac_try) 2>&5
14500 ac_status=$?
14501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14502 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14504 (eval $ac_try) 2>&5
14505 ac_status=$?
14506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14507 test $ac_status = 0; }; }; then :
14508
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14510 $as_echo "yes" >&6; }
14511
14512 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
14513
14514
14515 else
14516 $as_echo "$as_me: failed program was:" >&5
14517 sed 's/^/| /' conftest.$ac_ext >&5
14518
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14520 $as_echo "no" >&6; }
14521
14522
14523
14524 fi
14525 rm -Rf build
14526
14527
14528 EXTRA_KCFLAGS="$tmp_flags"
14529
14530
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
14532 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
14533 tmp_flags="$EXTRA_KCFLAGS"
14534 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14535
14536
14537 cat confdefs.h - <<_ACEOF >conftest.c
14538
14539
14540 #include <linux/blkdev.h>
14541
14542 int
14543 main (void)
14544 {
14545
14546 struct request_queue *q = NULL;
14547 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
14548
14549 ;
14550 return 0;
14551 }
14552
14553 _ACEOF
14554
14555
14556
14557 cat - <<_ACEOF >conftest.h
14558
14559 _ACEOF
14560
14561
14562 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14563 echo "obj-m := conftest.o" >build/Makefile
14564 modpost_flag=''
14565 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14566 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14568 (eval $ac_try) 2>&5
14569 ac_status=$?
14570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14571 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14573 (eval $ac_try) 2>&5
14574 ac_status=$?
14575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14576 test $ac_status = 0; }; }; then :
14577
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14579 $as_echo "yes" >&6; }
14580
14581 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
14582
14583
14584 else
14585 $as_echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14587
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14589 $as_echo "no" >&6; }
14590
14591
14592
14593 fi
14594 rm -Rf build
14595
14596
14597 EXTRA_KCFLAGS="$tmp_flags"
14598
14599
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
14601 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
14602 tmp_flags="$EXTRA_KCFLAGS"
14603 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14604
14605
14606 cat confdefs.h - <<_ACEOF >conftest.c
14607
14608
14609 #include <linux/blkdev.h>
14610
14611 int
14612 main (void)
14613 {
14614
14615 struct gendisk *disk = NULL;
14616 (void) get_disk_ro(disk);
14617
14618 ;
14619 return 0;
14620 }
14621
14622 _ACEOF
14623
14624
14625
14626 cat - <<_ACEOF >conftest.h
14627
14628 _ACEOF
14629
14630
14631 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14632 echo "obj-m := conftest.o" >build/Makefile
14633 modpost_flag=''
14634 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14635 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14637 (eval $ac_try) 2>&5
14638 ac_status=$?
14639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14640 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14642 (eval $ac_try) 2>&5
14643 ac_status=$?
14644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14645 test $ac_status = 0; }; }; then :
14646
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14648 $as_echo "yes" >&6; }
14649
14650 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
14651
14652
14653 else
14654 $as_echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.$ac_ext >&5
14656
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14658 $as_echo "no" >&6; }
14659
14660
14661
14662 fi
14663 rm -Rf build
14664
14665
14666 EXTRA_KCFLAGS="$tmp_flags"
14667
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
14669 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
14670
14671
14672
14673 cat confdefs.h - <<_ACEOF >conftest.c
14674
14675
14676 #include <linux/genhd.h>
14677
14678 int
14679 main (void)
14680 {
14681
14682 get_gendisk(0, NULL);
14683
14684 ;
14685 return 0;
14686 }
14687
14688 _ACEOF
14689
14690
14691
14692 cat - <<_ACEOF >conftest.h
14693
14694 _ACEOF
14695
14696
14697 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14698 echo "obj-m := conftest.o" >build/Makefile
14699 modpost_flag=''
14700 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14701 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14703 (eval $ac_try) 2>&5
14704 ac_status=$?
14705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14706 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14708 (eval $ac_try) 2>&5
14709 ac_status=$?
14710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14711 test $ac_status = 0; }; }; then :
14712 rc=0
14713 else
14714 $as_echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14716 rc=1
14717
14718
14719 fi
14720 rm -Rf build
14721
14722
14723 if test $rc -ne 0; then :
14724
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14726 $as_echo "no" >&6; }
14727
14728 else
14729 if test "x$enable_linux_builtin" != xyes; then
14730
14731 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
14732 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14733 rc=$?
14734 if test $rc -ne 0; then
14735 export=0
14736 for file in block/genhd.c; do
14737 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
14738 "$LINUX/$file" 2>/dev/null
14739 rc=$?
14740 if test $rc -eq 0; then
14741 export=1
14742 break;
14743 fi
14744 done
14745 if test $export -eq 0; then :
14746 rc=1
14747 else :
14748 rc=0
14749 fi
14750 else :
14751 rc=0
14752 fi
14753
14754 fi
14755 if test $rc -ne 0; then :
14756
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758 $as_echo "no" >&6; }
14759
14760 else :
14761
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14763 $as_echo "yes" >&6; }
14764
14765 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
14766
14767
14768 fi
14769 fi
14770
14771
14772
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
14774 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
14775
14776
14777 cat confdefs.h - <<_ACEOF >conftest.c
14778
14779
14780 #include <linux/blkdev.h>
14781
14782 int
14783 main (void)
14784 {
14785
14786 struct queue_limits ql __attribute__ ((unused));
14787
14788 ql.discard_granularity = 0;
14789
14790 ;
14791 return 0;
14792 }
14793
14794 _ACEOF
14795
14796
14797
14798 cat - <<_ACEOF >conftest.h
14799
14800 _ACEOF
14801
14802
14803 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14804 echo "obj-m := conftest.o" >build/Makefile
14805 modpost_flag=''
14806 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14807 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14809 (eval $ac_try) 2>&5
14810 ac_status=$?
14811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14812 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14814 (eval $ac_try) 2>&5
14815 ac_status=$?
14816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14817 test $ac_status = 0; }; }; then :
14818
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14820 $as_echo "yes" >&6; }
14821
14822 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
14823
14824
14825 else
14826 $as_echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14828
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14830 $as_echo "no" >&6; }
14831
14832
14833
14834 fi
14835 rm -Rf build
14836
14837
14838
14839
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
14841 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
14842
14843
14844 cat confdefs.h - <<_ACEOF >conftest.c
14845
14846
14847 #include <linux/fs.h>
14848 #include <linux/xattr.h>
14849
14850 const struct xattr_handler xattr_test_handler = {
14851 .prefix = "test",
14852 .get = NULL,
14853 .set = NULL,
14854 };
14855
14856 const struct xattr_handler *xattr_handlers[] = {
14857 &xattr_test_handler,
14858 };
14859
14860 const struct super_block sb __attribute__ ((unused)) = {
14861 .s_xattr = xattr_handlers,
14862 };
14863
14864 int
14865 main (void)
14866 {
14867
14868
14869 ;
14870 return 0;
14871 }
14872
14873 _ACEOF
14874
14875
14876
14877 cat - <<_ACEOF >conftest.h
14878
14879 _ACEOF
14880
14881
14882 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14883 echo "obj-m := conftest.o" >build/Makefile
14884 modpost_flag=''
14885 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14886 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14888 (eval $ac_try) 2>&5
14889 ac_status=$?
14890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14891 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14893 (eval $ac_try) 2>&5
14894 ac_status=$?
14895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14896 test $ac_status = 0; }; }; then :
14897
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14899 $as_echo "yes" >&6; }
14900
14901 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
14902
14903
14904 else
14905 $as_echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14907
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14909 $as_echo "no" >&6; }
14910
14911
14912
14913 fi
14914 rm -Rf build
14915
14916
14917
14918
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
14920 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
14921
14922
14923 cat confdefs.h - <<_ACEOF >conftest.c
14924
14925
14926 #include <linux/xattr.h>
14927
14928 int get(const struct xattr_handler *handler,
14929 struct dentry *dentry, const char *name,
14930 void *buffer, size_t size) { return 0; }
14931 static const struct xattr_handler
14932 xops __attribute__ ((unused)) = {
14933 .get = get,
14934 };
14935
14936 int
14937 main (void)
14938 {
14939
14940
14941 ;
14942 return 0;
14943 }
14944
14945 _ACEOF
14946
14947
14948
14949 cat - <<_ACEOF >conftest.h
14950
14951 _ACEOF
14952
14953
14954 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14955 echo "obj-m := conftest.o" >build/Makefile
14956 modpost_flag=''
14957 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14958 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14960 (eval $ac_try) 2>&5
14961 ac_status=$?
14962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14963 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14965 (eval $ac_try) 2>&5
14966 ac_status=$?
14967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14968 test $ac_status = 0; }; }; then :
14969
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14971 $as_echo "yes" >&6; }
14972
14973 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
14974
14975
14976 else
14977 $as_echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.$ac_ext >&5
14979
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14981 $as_echo "no" >&6; }
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
14983 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
14984
14985
14986 cat confdefs.h - <<_ACEOF >conftest.c
14987
14988
14989 #include <linux/xattr.h>
14990
14991 int get(struct dentry *dentry, const char *name,
14992 void *buffer, size_t size, int handler_flags)
14993 { return 0; }
14994 static const struct xattr_handler
14995 xops __attribute__ ((unused)) = {
14996 .get = get,
14997 };
14998
14999 int
15000 main (void)
15001 {
15002
15003
15004 ;
15005 return 0;
15006 }
15007
15008 _ACEOF
15009
15010
15011
15012 cat - <<_ACEOF >conftest.h
15013
15014 _ACEOF
15015
15016
15017 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15018 echo "obj-m := conftest.o" >build/Makefile
15019 modpost_flag=''
15020 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15021 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15023 (eval $ac_try) 2>&5
15024 ac_status=$?
15025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15026 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15028 (eval $ac_try) 2>&5
15029 ac_status=$?
15030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15031 test $ac_status = 0; }; }; then :
15032
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15034 $as_echo "yes" >&6; }
15035
15036 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
15037
15038
15039 else
15040 $as_echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15042
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15044 $as_echo "no" >&6; }
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
15046 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
15047
15048
15049 cat confdefs.h - <<_ACEOF >conftest.c
15050
15051
15052 #include <linux/xattr.h>
15053
15054 int get(struct inode *ip, const char *name,
15055 void *buffer, size_t size) { return 0; }
15056 static const struct xattr_handler
15057 xops __attribute__ ((unused)) = {
15058 .get = get,
15059 };
15060
15061 int
15062 main (void)
15063 {
15064
15065
15066 ;
15067 return 0;
15068 }
15069
15070 _ACEOF
15071
15072
15073
15074 cat - <<_ACEOF >conftest.h
15075
15076 _ACEOF
15077
15078
15079 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15080 echo "obj-m := conftest.o" >build/Makefile
15081 modpost_flag=''
15082 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15083 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15085 (eval $ac_try) 2>&5
15086 ac_status=$?
15087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15088 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15090 (eval $ac_try) 2>&5
15091 ac_status=$?
15092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15093 test $ac_status = 0; }; }; then :
15094
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15096 $as_echo "yes" >&6; }
15097
15098 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
15099
15100
15101 else
15102 $as_echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15104
15105 as_fn_error $? "no; please file a bug report" "$LINENO" 5
15106
15107
15108
15109 fi
15110 rm -Rf build
15111
15112
15113
15114
15115
15116 fi
15117 rm -Rf build
15118
15119
15120
15121
15122
15123 fi
15124 rm -Rf build
15125
15126
15127
15128
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
15130 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
15131
15132
15133 cat confdefs.h - <<_ACEOF >conftest.c
15134
15135
15136 #include <linux/xattr.h>
15137
15138 int set(const struct xattr_handler *handler,
15139 struct dentry *dentry, const char *name,
15140 const void *buffer, size_t size, int flags)
15141 { return 0; }
15142 static const struct xattr_handler
15143 xops __attribute__ ((unused)) = {
15144 .set = set,
15145 };
15146
15147 int
15148 main (void)
15149 {
15150
15151
15152 ;
15153 return 0;
15154 }
15155
15156 _ACEOF
15157
15158
15159
15160 cat - <<_ACEOF >conftest.h
15161
15162 _ACEOF
15163
15164
15165 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15166 echo "obj-m := conftest.o" >build/Makefile
15167 modpost_flag=''
15168 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15169 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15171 (eval $ac_try) 2>&5
15172 ac_status=$?
15173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15174 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15176 (eval $ac_try) 2>&5
15177 ac_status=$?
15178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15179 test $ac_status = 0; }; }; then :
15180
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15182 $as_echo "yes" >&6; }
15183
15184 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
15185
15186
15187 else
15188 $as_echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15190
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15192 $as_echo "no" >&6; }
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
15194 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
15195
15196
15197 cat confdefs.h - <<_ACEOF >conftest.c
15198
15199
15200 #include <linux/xattr.h>
15201
15202 int set(struct dentry *dentry, const char *name,
15203 const void *buffer, size_t size, int flags,
15204 int handler_flags) { return 0; }
15205 static const struct xattr_handler
15206 xops __attribute__ ((unused)) = {
15207 .set = set,
15208 };
15209
15210 int
15211 main (void)
15212 {
15213
15214
15215 ;
15216 return 0;
15217 }
15218
15219 _ACEOF
15220
15221
15222
15223 cat - <<_ACEOF >conftest.h
15224
15225 _ACEOF
15226
15227
15228 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15229 echo "obj-m := conftest.o" >build/Makefile
15230 modpost_flag=''
15231 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15232 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15234 (eval $ac_try) 2>&5
15235 ac_status=$?
15236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15237 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15239 (eval $ac_try) 2>&5
15240 ac_status=$?
15241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15242 test $ac_status = 0; }; }; then :
15243
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15245 $as_echo "yes" >&6; }
15246
15247 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
15248
15249
15250 else
15251 $as_echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15253
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15255 $as_echo "no" >&6; }
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
15257 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
15258
15259
15260 cat confdefs.h - <<_ACEOF >conftest.c
15261
15262
15263 #include <linux/xattr.h>
15264
15265 int set(struct inode *ip, const char *name,
15266 const void *buffer, size_t size, int flags)
15267 { return 0; }
15268 static const struct xattr_handler
15269 xops __attribute__ ((unused)) = {
15270 .set = set,
15271 };
15272
15273 int
15274 main (void)
15275 {
15276
15277
15278 ;
15279 return 0;
15280 }
15281
15282 _ACEOF
15283
15284
15285
15286 cat - <<_ACEOF >conftest.h
15287
15288 _ACEOF
15289
15290
15291 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15292 echo "obj-m := conftest.o" >build/Makefile
15293 modpost_flag=''
15294 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15295 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15297 (eval $ac_try) 2>&5
15298 ac_status=$?
15299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15300 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15302 (eval $ac_try) 2>&5
15303 ac_status=$?
15304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15305 test $ac_status = 0; }; }; then :
15306
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15308 $as_echo "yes" >&6; }
15309
15310 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
15311
15312
15313 else
15314 $as_echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15316
15317 as_fn_error $? "no; please file a bug report" "$LINENO" 5
15318
15319
15320
15321 fi
15322 rm -Rf build
15323
15324
15325
15326
15327
15328 fi
15329 rm -Rf build
15330
15331
15332
15333
15334
15335 fi
15336 rm -Rf build
15337
15338
15339
15340
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
15342 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
15343
15344
15345 cat confdefs.h - <<_ACEOF >conftest.c
15346
15347
15348 #include <linux/xattr.h>
15349
15350 bool list(struct dentry *dentry) { return 0; }
15351 static const struct xattr_handler
15352 xops __attribute__ ((unused)) = {
15353 .list = list,
15354 };
15355
15356 int
15357 main (void)
15358 {
15359
15360
15361 ;
15362 return 0;
15363 }
15364
15365 _ACEOF
15366
15367
15368
15369 cat - <<_ACEOF >conftest.h
15370
15371 _ACEOF
15372
15373
15374 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15375 echo "obj-m := conftest.o" >build/Makefile
15376 modpost_flag=''
15377 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15378 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15380 (eval $ac_try) 2>&5
15381 ac_status=$?
15382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15383 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15385 (eval $ac_try) 2>&5
15386 ac_status=$?
15387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15388 test $ac_status = 0; }; }; then :
15389
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15391 $as_echo "yes" >&6; }
15392
15393 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
15394
15395
15396 else
15397 $as_echo "$as_me: failed program was:" >&5
15398 sed 's/^/| /' conftest.$ac_ext >&5
15399
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15401 $as_echo "no" >&6; }
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
15403 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
15404
15405
15406 cat confdefs.h - <<_ACEOF >conftest.c
15407
15408
15409 #include <linux/xattr.h>
15410
15411 size_t list(const struct xattr_handler *handler,
15412 struct dentry *dentry, char *list, size_t list_size,
15413 const char *name, size_t name_len) { return 0; }
15414 static const struct xattr_handler
15415 xops __attribute__ ((unused)) = {
15416 .list = list,
15417 };
15418
15419 int
15420 main (void)
15421 {
15422
15423
15424 ;
15425 return 0;
15426 }
15427
15428 _ACEOF
15429
15430
15431
15432 cat - <<_ACEOF >conftest.h
15433
15434 _ACEOF
15435
15436
15437 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15438 echo "obj-m := conftest.o" >build/Makefile
15439 modpost_flag=''
15440 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15441 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15443 (eval $ac_try) 2>&5
15444 ac_status=$?
15445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15446 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15451 test $ac_status = 0; }; }; then :
15452
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15454 $as_echo "yes" >&6; }
15455
15456 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
15457
15458
15459 else
15460 $as_echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15462
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15464 $as_echo "no" >&6; }
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
15466 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
15467
15468
15469 cat confdefs.h - <<_ACEOF >conftest.c
15470
15471
15472 #include <linux/xattr.h>
15473
15474 size_t list(struct dentry *dentry,
15475 char *list, size_t list_size,
15476 const char *name, size_t name_len,
15477 int handler_flags) { return 0; }
15478 static const struct xattr_handler
15479 xops __attribute__ ((unused)) = {
15480 .list = list,
15481 };
15482
15483 int
15484 main (void)
15485 {
15486
15487
15488 ;
15489 return 0;
15490 }
15491
15492 _ACEOF
15493
15494
15495
15496 cat - <<_ACEOF >conftest.h
15497
15498 _ACEOF
15499
15500
15501 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15502 echo "obj-m := conftest.o" >build/Makefile
15503 modpost_flag=''
15504 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15505 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15507 (eval $ac_try) 2>&5
15508 ac_status=$?
15509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15510 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15512 (eval $ac_try) 2>&5
15513 ac_status=$?
15514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15515 test $ac_status = 0; }; }; then :
15516
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15518 $as_echo "yes" >&6; }
15519
15520 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
15521
15522
15523 else
15524 $as_echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15526
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15528 $as_echo "no" >&6; }
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
15530 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
15531
15532
15533 cat confdefs.h - <<_ACEOF >conftest.c
15534
15535
15536 #include <linux/xattr.h>
15537
15538 size_t list(struct inode *ip, char *lst,
15539 size_t list_size, const char *name,
15540 size_t name_len) { return 0; }
15541 static const struct xattr_handler
15542 xops __attribute__ ((unused)) = {
15543 .list = list,
15544 };
15545
15546 int
15547 main (void)
15548 {
15549
15550
15551 ;
15552 return 0;
15553 }
15554
15555 _ACEOF
15556
15557
15558
15559 cat - <<_ACEOF >conftest.h
15560
15561 _ACEOF
15562
15563
15564 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15565 echo "obj-m := conftest.o" >build/Makefile
15566 modpost_flag=''
15567 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15568 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15570 (eval $ac_try) 2>&5
15571 ac_status=$?
15572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15573 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15575 (eval $ac_try) 2>&5
15576 ac_status=$?
15577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15578 test $ac_status = 0; }; }; then :
15579
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15581 $as_echo "yes" >&6; }
15582
15583 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
15584
15585
15586 else
15587 $as_echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15589
15590 as_fn_error $? "no; please file a bug report" "$LINENO" 5
15591
15592
15593
15594 fi
15595 rm -Rf build
15596
15597
15598
15599
15600
15601 fi
15602 rm -Rf build
15603
15604
15605
15606
15607
15608 fi
15609 rm -Rf build
15610
15611
15612
15613
15614
15615 fi
15616 rm -Rf build
15617
15618
15619
15620
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
15622 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
15623
15624
15625 cat confdefs.h - <<_ACEOF >conftest.c
15626
15627
15628 #include <linux/fs.h>
15629
15630 int
15631 main (void)
15632 {
15633
15634 struct inode *ip = NULL;
15635 (void) inode_owner_or_capable(ip);
15636
15637 ;
15638 return 0;
15639 }
15640
15641 _ACEOF
15642
15643
15644
15645 cat - <<_ACEOF >conftest.h
15646
15647 _ACEOF
15648
15649
15650 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15651 echo "obj-m := conftest.o" >build/Makefile
15652 modpost_flag=''
15653 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15654 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15656 (eval $ac_try) 2>&5
15657 ac_status=$?
15658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15659 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15661 (eval $ac_try) 2>&5
15662 ac_status=$?
15663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15664 test $ac_status = 0; }; }; then :
15665
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15667 $as_echo "yes" >&6; }
15668
15669 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
15670
15671
15672 else
15673 $as_echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15675
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15677 $as_echo "no" >&6; }
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
15679 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
15680
15681
15682 cat confdefs.h - <<_ACEOF >conftest.c
15683
15684
15685 #include <linux/fs.h>
15686 #include <linux/sched.h>
15687
15688 int
15689 main (void)
15690 {
15691
15692 struct inode *ip = NULL;
15693 (void) is_owner_or_cap(ip);
15694
15695 ;
15696 return 0;
15697 }
15698
15699 _ACEOF
15700
15701
15702
15703 cat - <<_ACEOF >conftest.h
15704
15705 _ACEOF
15706
15707
15708 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15709 echo "obj-m := conftest.o" >build/Makefile
15710 modpost_flag=''
15711 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15712 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15714 (eval $ac_try) 2>&5
15715 ac_status=$?
15716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15717 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15719 (eval $ac_try) 2>&5
15720 ac_status=$?
15721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15722 test $ac_status = 0; }; }; then :
15723
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15725 $as_echo "yes" >&6; }
15726
15727 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
15728
15729
15730 else
15731 $as_echo "$as_me: failed program was:" >&5
15732 sed 's/^/| /' conftest.$ac_ext >&5
15733
15734 as_fn_error $? "no - Please file a bug report at
15735 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
15736
15737
15738
15739 fi
15740 rm -Rf build
15741
15742
15743
15744
15745
15746 fi
15747 rm -Rf build
15748
15749
15750
15751
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
15753 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
15754
15755
15756 cat confdefs.h - <<_ACEOF >conftest.c
15757
15758
15759 #include <linux/cred.h>
15760 #include <linux/fs.h>
15761 #include <linux/posix_acl_xattr.h>
15762
15763 int
15764 main (void)
15765 {
15766
15767 posix_acl_from_xattr(&init_user_ns, NULL, 0);
15768
15769 ;
15770 return 0;
15771 }
15772
15773 _ACEOF
15774
15775
15776
15777 cat - <<_ACEOF >conftest.h
15778
15779 _ACEOF
15780
15781
15782 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15783 echo "obj-m := conftest.o" >build/Makefile
15784 modpost_flag=''
15785 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15786 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15788 (eval $ac_try) 2>&5
15789 ac_status=$?
15790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15791 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15793 (eval $ac_try) 2>&5
15794 ac_status=$?
15795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15796 test $ac_status = 0; }; }; then :
15797
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15799 $as_echo "yes" >&6; }
15800
15801 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
15802
15803
15804 else
15805 $as_echo "$as_me: failed program was:" >&5
15806 sed 's/^/| /' conftest.$ac_ext >&5
15807
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15809 $as_echo "no" >&6; }
15810
15811
15812
15813 fi
15814 rm -Rf build
15815
15816
15817
15818
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
15820 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
15821
15822
15823 cat confdefs.h - <<_ACEOF >conftest.c
15824
15825
15826 #include <linux/cred.h>
15827 #include <linux/fs.h>
15828 #include <linux/posix_acl.h>
15829
15830 int
15831 main (void)
15832 {
15833
15834 struct posix_acl* tmp = posix_acl_alloc(1, 0);
15835 posix_acl_release(tmp);
15836
15837 ;
15838 return 0;
15839 }
15840
15841 _ACEOF
15842
15843
15844
15845 cat - <<_ACEOF >conftest.h
15846
15847 _ACEOF
15848
15849
15850 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15851 echo "obj-m := conftest.o" >build/Makefile
15852 modpost_flag=''
15853 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15854 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15856 (eval $ac_try) 2>&5
15857 ac_status=$?
15858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15859 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15861 (eval $ac_try) 2>&5
15862 ac_status=$?
15863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15864 test $ac_status = 0; }; }; then :
15865
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15867 $as_echo "yes" >&6; }
15868
15869 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
15870
15871
15872 else
15873 $as_echo "$as_me: failed program was:" >&5
15874 sed 's/^/| /' conftest.$ac_ext >&5
15875
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15877 $as_echo "no" >&6; }
15878
15879
15880
15881 fi
15882 rm -Rf build
15883
15884
15885
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
15887 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
15888
15889
15890 cat confdefs.h - <<_ACEOF >conftest.c
15891
15892
15893 #include <linux/cred.h>
15894 #include <linux/fs.h>
15895 #include <linux/posix_acl.h>
15896
15897 MODULE_LICENSE("$ZFS_META_LICENSE");
15898
15899 int
15900 main (void)
15901 {
15902
15903 struct posix_acl* tmp = posix_acl_alloc(1, 0);
15904 posix_acl_release(tmp);
15905
15906 ;
15907 return 0;
15908 }
15909
15910 _ACEOF
15911
15912
15913
15914 cat - <<_ACEOF >conftest.h
15915
15916 _ACEOF
15917
15918
15919 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15920 echo "obj-m := conftest.o" >build/Makefile
15921 modpost_flag=''
15922 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15923 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15925 (eval $ac_try) 2>&5
15926 ac_status=$?
15927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15928 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15930 (eval $ac_try) 2>&5
15931 ac_status=$?
15932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15933 test $ac_status = 0; }; }; then :
15934
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15936 $as_echo "no" >&6; }
15937
15938 else
15939 $as_echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15941
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15943 $as_echo "yes" >&6; }
15944
15945 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
15946
15947
15948
15949
15950 fi
15951 rm -Rf build
15952
15953
15954
15955
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
15957 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
15958
15959
15960 cat confdefs.h - <<_ACEOF >conftest.c
15961
15962
15963 #include <linux/fs.h>
15964 #include <linux/posix_acl.h>
15965
15966 int
15967 main (void)
15968 {
15969
15970 posix_acl_chmod(NULL, 0, 0)
15971
15972 ;
15973 return 0;
15974 }
15975
15976 _ACEOF
15977
15978
15979
15980 cat - <<_ACEOF >conftest.h
15981
15982 _ACEOF
15983
15984
15985 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15986 echo "obj-m := conftest.o" >build/Makefile
15987 modpost_flag=''
15988 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15989 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15991 (eval $ac_try) 2>&5
15992 ac_status=$?
15993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15994 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15996 (eval $ac_try) 2>&5
15997 ac_status=$?
15998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15999 test $ac_status = 0; }; }; then :
16000
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16002 $as_echo "yes" >&6; }
16003
16004 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
16005
16006
16007 else
16008 $as_echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16010
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16012 $as_echo "no" >&6; }
16013
16014
16015
16016 fi
16017 rm -Rf build
16018
16019
16020
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
16022 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
16023
16024
16025 cat confdefs.h - <<_ACEOF >conftest.c
16026
16027
16028 #include <linux/fs.h>
16029 #include <linux/posix_acl.h>
16030
16031 int
16032 main (void)
16033 {
16034
16035 __posix_acl_chmod(NULL, 0, 0)
16036
16037 ;
16038 return 0;
16039 }
16040
16041 _ACEOF
16042
16043
16044
16045 cat - <<_ACEOF >conftest.h
16046
16047 _ACEOF
16048
16049
16050 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16051 echo "obj-m := conftest.o" >build/Makefile
16052 modpost_flag=''
16053 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16054 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16056 (eval $ac_try) 2>&5
16057 ac_status=$?
16058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16059 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16061 (eval $ac_try) 2>&5
16062 ac_status=$?
16063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16064 test $ac_status = 0; }; }; then :
16065
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16067 $as_echo "yes" >&6; }
16068
16069 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
16070
16071
16072 else
16073 $as_echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16075
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16077 $as_echo "no" >&6; }
16078
16079
16080
16081 fi
16082 rm -Rf build
16083
16084
16085
16086
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode has i_acl and i_default_acl" >&5
16088 $as_echo_n "checking whether inode has i_acl and i_default_acl... " >&6; }
16089
16090
16091 cat confdefs.h - <<_ACEOF >conftest.c
16092
16093
16094 #include <linux/fs.h>
16095
16096 int
16097 main (void)
16098 {
16099
16100 struct inode ino;
16101 ino.i_acl = NULL;
16102 ino.i_default_acl = NULL;
16103
16104 ;
16105 return 0;
16106 }
16107
16108 _ACEOF
16109
16110
16111
16112 cat - <<_ACEOF >conftest.h
16113
16114 _ACEOF
16115
16116
16117 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16118 echo "obj-m := conftest.o" >build/Makefile
16119 modpost_flag=''
16120 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16121 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16123 (eval $ac_try) 2>&5
16124 ac_status=$?
16125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16126 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16128 (eval $ac_try) 2>&5
16129 ac_status=$?
16130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16131 test $ac_status = 0; }; }; then :
16132
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16134 $as_echo "yes" >&6; }
16135
16136 $as_echo "#define HAVE_POSIX_ACL_CACHING 1" >>confdefs.h
16137
16138
16139 else
16140 $as_echo "$as_me: failed program was:" >&5
16141 sed 's/^/| /' conftest.$ac_ext >&5
16142
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16144 $as_echo "no" >&6; }
16145
16146
16147
16148 fi
16149 rm -Rf build
16150
16151
16152
16153
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
16155 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
16156
16157
16158 cat confdefs.h - <<_ACEOF >conftest.c
16159
16160
16161 #include <linux/fs.h>
16162 #include <linux/posix_acl.h>
16163
16164 int
16165 main (void)
16166 {
16167
16168 umode_t tmp;
16169 posix_acl_equiv_mode(NULL,&tmp);
16170
16171 ;
16172 return 0;
16173 }
16174
16175 _ACEOF
16176
16177
16178
16179 cat - <<_ACEOF >conftest.h
16180
16181 _ACEOF
16182
16183
16184 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16185 echo "obj-m := conftest.o" >build/Makefile
16186 modpost_flag=''
16187 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16188 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16190 (eval $ac_try) 2>&5
16191 ac_status=$?
16192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16193 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16195 (eval $ac_try) 2>&5
16196 ac_status=$?
16197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16198 test $ac_status = 0; }; }; then :
16199
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16201 $as_echo "yes" >&6; }
16202
16203 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
16204
16205
16206 else
16207 $as_echo "$as_me: failed program was:" >&5
16208 sed 's/^/| /' conftest.$ac_ext >&5
16209
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16211 $as_echo "no" >&6; }
16212
16213
16214
16215 fi
16216 rm -Rf build
16217
16218
16219
16220
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
16222 $as_echo_n "checking whether iops->permission() exists... " >&6; }
16223
16224
16225 cat confdefs.h - <<_ACEOF >conftest.c
16226
16227
16228 #include <linux/fs.h>
16229
16230 int permission_fn(struct inode *inode, int mask) { return 0; }
16231
16232 static const struct inode_operations
16233 iops __attribute__ ((unused)) = {
16234 .permission = permission_fn,
16235 };
16236
16237 int
16238 main (void)
16239 {
16240
16241
16242 ;
16243 return 0;
16244 }
16245
16246 _ACEOF
16247
16248
16249
16250 cat - <<_ACEOF >conftest.h
16251
16252 _ACEOF
16253
16254
16255 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16256 echo "obj-m := conftest.o" >build/Makefile
16257 modpost_flag=''
16258 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16259 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16261 (eval $ac_try) 2>&5
16262 ac_status=$?
16263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16264 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16266 (eval $ac_try) 2>&5
16267 ac_status=$?
16268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16269 test $ac_status = 0; }; }; then :
16270
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16272 $as_echo "yes" >&6; }
16273
16274 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
16275
16276
16277 else
16278 $as_echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16280
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16282 $as_echo "no" >&6; }
16283
16284
16285
16286 fi
16287 rm -Rf build
16288
16289
16290
16291
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
16293 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
16294
16295
16296 cat confdefs.h - <<_ACEOF >conftest.c
16297
16298
16299 #include <linux/fs.h>
16300
16301 int permission_fn(struct inode *inode, int mask,
16302 struct nameidata *nd) { return 0; }
16303
16304 static const struct inode_operations
16305 iops __attribute__ ((unused)) = {
16306 .permission = permission_fn,
16307 };
16308
16309 int
16310 main (void)
16311 {
16312
16313
16314 ;
16315 return 0;
16316 }
16317
16318 _ACEOF
16319
16320
16321
16322 cat - <<_ACEOF >conftest.h
16323
16324 _ACEOF
16325
16326
16327 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16328 echo "obj-m := conftest.o" >build/Makefile
16329 modpost_flag=''
16330 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16331 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16333 (eval $ac_try) 2>&5
16334 ac_status=$?
16335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16336 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16338 (eval $ac_try) 2>&5
16339 ac_status=$?
16340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16341 test $ac_status = 0; }; }; then :
16342
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16344 $as_echo "yes" >&6; }
16345
16346 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
16347
16348
16349 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
16350
16351
16352 else
16353 $as_echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16355
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16357 $as_echo "no" >&6; }
16358
16359
16360
16361 fi
16362 rm -Rf build
16363
16364
16365
16366
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
16368 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
16369
16370
16371 cat confdefs.h - <<_ACEOF >conftest.c
16372
16373
16374 #include <linux/fs.h>
16375
16376 int check_acl_fn(struct inode *inode, int mask) { return 0; }
16377
16378 static const struct inode_operations
16379 iops __attribute__ ((unused)) = {
16380 .check_acl = check_acl_fn,
16381 };
16382
16383 int
16384 main (void)
16385 {
16386
16387
16388 ;
16389 return 0;
16390 }
16391
16392 _ACEOF
16393
16394
16395
16396 cat - <<_ACEOF >conftest.h
16397
16398 _ACEOF
16399
16400
16401 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16402 echo "obj-m := conftest.o" >build/Makefile
16403 modpost_flag=''
16404 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16405 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16407 (eval $ac_try) 2>&5
16408 ac_status=$?
16409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16410 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16412 (eval $ac_try) 2>&5
16413 ac_status=$?
16414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16415 test $ac_status = 0; }; }; then :
16416
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16418 $as_echo "yes" >&6; }
16419
16420 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
16421
16422
16423 else
16424 $as_echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16426
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16428 $as_echo "no" >&6; }
16429
16430
16431
16432 fi
16433 rm -Rf build
16434
16435
16436
16437
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
16439 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
16440
16441
16442 cat confdefs.h - <<_ACEOF >conftest.c
16443
16444
16445 #include <linux/fs.h>
16446
16447 int check_acl_fn(struct inode *inode, int mask,
16448 unsigned int flags) { return 0; }
16449
16450 static const struct inode_operations
16451 iops __attribute__ ((unused)) = {
16452 .check_acl = check_acl_fn,
16453 };
16454
16455 int
16456 main (void)
16457 {
16458
16459
16460 ;
16461 return 0;
16462 }
16463
16464 _ACEOF
16465
16466
16467
16468 cat - <<_ACEOF >conftest.h
16469
16470 _ACEOF
16471
16472
16473 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16474 echo "obj-m := conftest.o" >build/Makefile
16475 modpost_flag=''
16476 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16477 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16479 (eval $ac_try) 2>&5
16480 ac_status=$?
16481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16482 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16484 (eval $ac_try) 2>&5
16485 ac_status=$?
16486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16487 test $ac_status = 0; }; }; then :
16488
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16490 $as_echo "yes" >&6; }
16491
16492 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
16493
16494
16495 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
16496
16497
16498 else
16499 $as_echo "$as_me: failed program was:" >&5
16500 sed 's/^/| /' conftest.$ac_ext >&5
16501
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16503 $as_echo "no" >&6; }
16504
16505
16506
16507 fi
16508 rm -Rf build
16509
16510
16511
16512
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
16514 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
16515
16516
16517 cat confdefs.h - <<_ACEOF >conftest.c
16518
16519
16520 #include <linux/fs.h>
16521
16522 struct posix_acl *get_acl_fn(struct inode *inode, int type)
16523 { return NULL; }
16524
16525 static const struct inode_operations
16526 iops __attribute__ ((unused)) = {
16527 .get_acl = get_acl_fn,
16528 };
16529
16530 int
16531 main (void)
16532 {
16533
16534
16535 ;
16536 return 0;
16537 }
16538
16539 _ACEOF
16540
16541
16542
16543 cat - <<_ACEOF >conftest.h
16544
16545 _ACEOF
16546
16547
16548 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16549 echo "obj-m := conftest.o" >build/Makefile
16550 modpost_flag=''
16551 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16552 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16554 (eval $ac_try) 2>&5
16555 ac_status=$?
16556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16557 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16559 (eval $ac_try) 2>&5
16560 ac_status=$?
16561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16562 test $ac_status = 0; }; }; then :
16563
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16565 $as_echo "yes" >&6; }
16566
16567 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
16568
16569
16570 else
16571 $as_echo "$as_me: failed program was:" >&5
16572 sed 's/^/| /' conftest.$ac_ext >&5
16573
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16575 $as_echo "no" >&6; }
16576
16577
16578
16579 fi
16580 rm -Rf build
16581
16582
16583
16584
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_umask exists" >&5
16586 $as_echo_n "checking whether current_umask exists... " >&6; }
16587
16588
16589 cat confdefs.h - <<_ACEOF >conftest.c
16590
16591
16592 #include <linux/fs.h>
16593
16594 int
16595 main (void)
16596 {
16597
16598 current_umask();
16599
16600 ;
16601 return 0;
16602 }
16603
16604 _ACEOF
16605
16606
16607
16608 cat - <<_ACEOF >conftest.h
16609
16610 _ACEOF
16611
16612
16613 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16614 echo "obj-m := conftest.o" >build/Makefile
16615 modpost_flag=''
16616 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16617 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16619 (eval $ac_try) 2>&5
16620 ac_status=$?
16621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16622 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16624 (eval $ac_try) 2>&5
16625 ac_status=$?
16626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16627 test $ac_status = 0; }; }; then :
16628
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16630 $as_echo "yes" >&6; }
16631
16632 $as_echo "#define HAVE_CURRENT_UMASK 1" >>confdefs.h
16633
16634
16635 else
16636 $as_echo "$as_me: failed program was:" >&5
16637 sed 's/^/| /' conftest.$ac_ext >&5
16638
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16640 $as_echo "no" >&6; }
16641
16642
16643
16644 fi
16645 rm -Rf build
16646
16647
16648
16649
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
16651 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
16652
16653
16654
16655 cat confdefs.h - <<_ACEOF >conftest.c
16656
16657
16658 #include <linux/fs.h>
16659
16660 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
16661 static struct super_operations sops __attribute__ ((unused)) = {
16662 .show_options = show_options,
16663 };
16664
16665 int
16666 main (void)
16667 {
16668
16669
16670 ;
16671 return 0;
16672 }
16673
16674 _ACEOF
16675
16676
16677
16678 cat - <<_ACEOF >conftest.h
16679
16680 _ACEOF
16681
16682
16683 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16684 echo "obj-m := conftest.o" >build/Makefile
16685 modpost_flag=''
16686 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16687 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16689 (eval $ac_try) 2>&5
16690 ac_status=$?
16691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16692 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16694 (eval $ac_try) 2>&5
16695 ac_status=$?
16696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16697 test $ac_status = 0; }; }; then :
16698
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16700 $as_echo "yes" >&6; }
16701
16702 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
16703
16704
16705 else
16706 $as_echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16708
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16710 $as_echo "no" >&6; }
16711
16712
16713
16714 fi
16715 rm -Rf build
16716
16717
16718
16719
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
16721 $as_echo_n "checking whether file_inode() is available... " >&6; }
16722
16723
16724 cat confdefs.h - <<_ACEOF >conftest.c
16725
16726
16727 #include <linux/fs.h>
16728
16729 int
16730 main (void)
16731 {
16732
16733 struct file *f = NULL;
16734 file_inode(f);
16735
16736 ;
16737 return 0;
16738 }
16739
16740 _ACEOF
16741
16742
16743
16744 cat - <<_ACEOF >conftest.h
16745
16746 _ACEOF
16747
16748
16749 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16750 echo "obj-m := conftest.o" >build/Makefile
16751 modpost_flag=''
16752 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16753 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16755 (eval $ac_try) 2>&5
16756 ac_status=$?
16757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16758 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16760 (eval $ac_try) 2>&5
16761 ac_status=$?
16762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16763 test $ac_status = 0; }; }; then :
16764
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16766 $as_echo "yes" >&6; }
16767
16768 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
16769
16770
16771 else
16772 $as_echo "$as_me: failed program was:" >&5
16773 sed 's/^/| /' conftest.$ac_ext >&5
16774
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16776 $as_echo "no" >&6; }
16777
16778
16779
16780 fi
16781 rm -Rf build
16782
16783
16784
16785
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
16787 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
16788
16789
16790
16791 cat confdefs.h - <<_ACEOF >conftest.c
16792
16793
16794 #include <linux/fs.h>
16795
16796 int test_fsync(struct file *f, struct dentry *dentry, int x)
16797 { return 0; }
16798
16799 static const struct file_operations
16800 fops __attribute__ ((unused)) = {
16801 .fsync = test_fsync,
16802 };
16803
16804 int
16805 main (void)
16806 {
16807
16808
16809 ;
16810 return 0;
16811 }
16812
16813 _ACEOF
16814
16815
16816
16817 cat - <<_ACEOF >conftest.h
16818
16819 _ACEOF
16820
16821
16822 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16823 echo "obj-m := conftest.o" >build/Makefile
16824 modpost_flag=''
16825 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16826 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16828 (eval $ac_try) 2>&5
16829 ac_status=$?
16830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16831 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16833 (eval $ac_try) 2>&5
16834 ac_status=$?
16835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16836 test $ac_status = 0; }; }; then :
16837
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
16839 $as_echo "dentry" >&6; }
16840
16841 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
16842
16843
16844 else
16845 $as_echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16847
16848
16849
16850
16851 fi
16852 rm -Rf build
16853
16854
16855
16856
16857
16858
16859 cat confdefs.h - <<_ACEOF >conftest.c
16860
16861
16862 #include <linux/fs.h>
16863
16864 int test_fsync(struct file *f, int x) { return 0; }
16865
16866 static const struct file_operations
16867 fops __attribute__ ((unused)) = {
16868 .fsync = test_fsync,
16869 };
16870
16871 int
16872 main (void)
16873 {
16874
16875
16876 ;
16877 return 0;
16878 }
16879
16880 _ACEOF
16881
16882
16883
16884 cat - <<_ACEOF >conftest.h
16885
16886 _ACEOF
16887
16888
16889 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16890 echo "obj-m := conftest.o" >build/Makefile
16891 modpost_flag=''
16892 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16893 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16895 (eval $ac_try) 2>&5
16896 ac_status=$?
16897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16898 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16900 (eval $ac_try) 2>&5
16901 ac_status=$?
16902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16903 test $ac_status = 0; }; }; then :
16904
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
16906 $as_echo "no dentry" >&6; }
16907
16908 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
16909
16910
16911 else
16912 $as_echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16914
16915
16916
16917
16918 fi
16919 rm -Rf build
16920
16921
16922
16923
16924
16925
16926 cat confdefs.h - <<_ACEOF >conftest.c
16927
16928
16929 #include <linux/fs.h>
16930
16931 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
16932 { return 0; }
16933
16934 static const struct file_operations
16935 fops __attribute__ ((unused)) = {
16936 .fsync = test_fsync,
16937 };
16938
16939 int
16940 main (void)
16941 {
16942
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\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16963 (eval $ac_try) 2>&5
16964 ac_status=$?
16965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16966 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16968 (eval $ac_try) 2>&5
16969 ac_status=$?
16970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16971 test $ac_status = 0; }; }; then :
16972
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
16974 $as_echo "range" >&6; }
16975
16976 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
16977
16978
16979 else
16980 $as_echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16982
16983
16984
16985
16986 fi
16987 rm -Rf build
16988
16989
16990
16991
16992
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
16994 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
16995
16996
16997 cat confdefs.h - <<_ACEOF >conftest.c
16998
16999
17000 #include <linux/fs.h>
17001 void evict_inode (struct inode * t) { return; }
17002 static struct super_operations sops __attribute__ ((unused)) = {
17003 .evict_inode = evict_inode,
17004 };
17005
17006 int
17007 main (void)
17008 {
17009
17010
17011 ;
17012 return 0;
17013 }
17014
17015 _ACEOF
17016
17017
17018
17019 cat - <<_ACEOF >conftest.h
17020
17021 _ACEOF
17022
17023
17024 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17025 echo "obj-m := conftest.o" >build/Makefile
17026 modpost_flag=''
17027 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17028 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17030 (eval $ac_try) 2>&5
17031 ac_status=$?
17032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17033 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17035 (eval $ac_try) 2>&5
17036 ac_status=$?
17037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17038 test $ac_status = 0; }; }; then :
17039
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17041 $as_echo "yes" >&6; }
17042
17043 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
17044
17045
17046 else
17047 $as_echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17049
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17051 $as_echo "no" >&6; }
17052
17053
17054
17055 fi
17056 rm -Rf build
17057
17058
17059
17060
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
17062 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
17063
17064
17065 cat confdefs.h - <<_ACEOF >conftest.c
17066
17067
17068 #include <linux/fs.h>
17069
17070 void dirty_inode(struct inode *a, int b) { return; }
17071
17072 static const struct super_operations
17073 sops __attribute__ ((unused)) = {
17074 .dirty_inode = dirty_inode,
17075 };
17076
17077 int
17078 main (void)
17079 {
17080
17081
17082 ;
17083 return 0;
17084 }
17085
17086 _ACEOF
17087
17088
17089
17090 cat - <<_ACEOF >conftest.h
17091
17092 _ACEOF
17093
17094
17095 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17096 echo "obj-m := conftest.o" >build/Makefile
17097 modpost_flag=''
17098 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17099 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17101 (eval $ac_try) 2>&5
17102 ac_status=$?
17103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17104 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17106 (eval $ac_try) 2>&5
17107 ac_status=$?
17108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17109 test $ac_status = 0; }; }; then :
17110
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17112 $as_echo "yes" >&6; }
17113
17114 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
17115
17116
17117 else
17118 $as_echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17120
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17122 $as_echo "no" >&6; }
17123
17124
17125
17126 fi
17127 rm -Rf build
17128
17129
17130
17131
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
17133 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
17134
17135
17136 cat confdefs.h - <<_ACEOF >conftest.c
17137
17138
17139 #include <linux/fs.h>
17140
17141 int nr_cached_objects(struct super_block *sb) { return 0; }
17142
17143 static const struct super_operations
17144 sops __attribute__ ((unused)) = {
17145 .nr_cached_objects = nr_cached_objects,
17146 };
17147
17148 int
17149 main (void)
17150 {
17151
17152
17153 ;
17154 return 0;
17155 }
17156
17157 _ACEOF
17158
17159
17160
17161 cat - <<_ACEOF >conftest.h
17162
17163 _ACEOF
17164
17165
17166 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17167 echo "obj-m := conftest.o" >build/Makefile
17168 modpost_flag=''
17169 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17170 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17172 (eval $ac_try) 2>&5
17173 ac_status=$?
17174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17175 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17177 (eval $ac_try) 2>&5
17178 ac_status=$?
17179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17180 test $ac_status = 0; }; }; then :
17181
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17183 $as_echo "yes" >&6; }
17184
17185 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
17186
17187
17188 else
17189 $as_echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.$ac_ext >&5
17191
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17193 $as_echo "no" >&6; }
17194
17195
17196
17197 fi
17198 rm -Rf build
17199
17200
17201
17202
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
17204 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
17205
17206
17207 cat confdefs.h - <<_ACEOF >conftest.c
17208
17209
17210 #include <linux/fs.h>
17211
17212 void free_cached_objects(struct super_block *sb, int x)
17213 { return; }
17214
17215 static const struct super_operations
17216 sops __attribute__ ((unused)) = {
17217 .free_cached_objects = free_cached_objects,
17218 };
17219
17220 int
17221 main (void)
17222 {
17223
17224
17225 ;
17226 return 0;
17227 }
17228
17229 _ACEOF
17230
17231
17232
17233 cat - <<_ACEOF >conftest.h
17234
17235 _ACEOF
17236
17237
17238 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17239 echo "obj-m := conftest.o" >build/Makefile
17240 modpost_flag=''
17241 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17242 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17244 (eval $ac_try) 2>&5
17245 ac_status=$?
17246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17247 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17249 (eval $ac_try) 2>&5
17250 ac_status=$?
17251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17252 test $ac_status = 0; }; }; then :
17253
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17255 $as_echo "yes" >&6; }
17256
17257 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
17258
17259
17260 else
17261 $as_echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.$ac_ext >&5
17263
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17265 $as_echo "no" >&6; }
17266
17267
17268
17269 fi
17270 rm -Rf build
17271
17272
17273
17274
17275
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
17277 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
17278
17279
17280 cat confdefs.h - <<_ACEOF >conftest.c
17281
17282
17283 #include <linux/fs.h>
17284
17285 long test_fallocate(struct file *file, int mode,
17286 loff_t offset, loff_t len) { return 0; }
17287
17288 static const struct file_operations
17289 fops __attribute__ ((unused)) = {
17290 .fallocate = test_fallocate,
17291 };
17292
17293 int
17294 main (void)
17295 {
17296
17297
17298 ;
17299 return 0;
17300 }
17301
17302 _ACEOF
17303
17304
17305
17306 cat - <<_ACEOF >conftest.h
17307
17308 _ACEOF
17309
17310
17311 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17312 echo "obj-m := conftest.o" >build/Makefile
17313 modpost_flag=''
17314 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17315 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17317 (eval $ac_try) 2>&5
17318 ac_status=$?
17319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17320 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17322 (eval $ac_try) 2>&5
17323 ac_status=$?
17324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17325 test $ac_status = 0; }; }; then :
17326
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17328 $as_echo "yes" >&6; }
17329
17330 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
17331
17332
17333 else
17334 $as_echo "$as_me: failed program was:" >&5
17335 sed 's/^/| /' conftest.$ac_ext >&5
17336
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17338 $as_echo "no" >&6; }
17339
17340
17341
17342 fi
17343 rm -Rf build
17344
17345
17346
17347
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
17349 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
17350
17351
17352 cat confdefs.h - <<_ACEOF >conftest.c
17353
17354
17355 #include <linux/fs.h>
17356
17357 long test_fallocate(struct inode *inode, int mode,
17358 loff_t offset, loff_t len) { return 0; }
17359
17360 static const struct inode_operations
17361 fops __attribute__ ((unused)) = {
17362 .fallocate = test_fallocate,
17363 };
17364
17365 int
17366 main (void)
17367 {
17368
17369
17370 ;
17371 return 0;
17372 }
17373
17374 _ACEOF
17375
17376
17377
17378 cat - <<_ACEOF >conftest.h
17379
17380 _ACEOF
17381
17382
17383 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17384 echo "obj-m := conftest.o" >build/Makefile
17385 modpost_flag=''
17386 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17387 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17389 (eval $ac_try) 2>&5
17390 ac_status=$?
17391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17392 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17394 (eval $ac_try) 2>&5
17395 ac_status=$?
17396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17397 test $ac_status = 0; }; }; then :
17398
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17400 $as_echo "yes" >&6; }
17401
17402 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
17403
17404
17405 else
17406 $as_echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.$ac_ext >&5
17408
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17410 $as_echo "no" >&6; }
17411
17412
17413
17414 fi
17415 rm -Rf build
17416
17417
17418
17419
17420
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
17422 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
17423
17424
17425 cat confdefs.h - <<_ACEOF >conftest.c
17426
17427
17428 #include <linux/fs.h>
17429
17430 int mkdir(struct inode *inode, struct dentry *dentry,
17431 umode_t umode) { return 0; }
17432
17433 static const struct inode_operations
17434 iops __attribute__ ((unused)) = {
17435 .mkdir = mkdir,
17436 };
17437
17438 int
17439 main (void)
17440 {
17441
17442
17443 ;
17444 return 0;
17445 }
17446
17447 _ACEOF
17448
17449
17450
17451 cat - <<_ACEOF >conftest.h
17452
17453 _ACEOF
17454
17455
17456 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17457 echo "obj-m := conftest.o" >build/Makefile
17458 modpost_flag=''
17459 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17460 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17462 (eval $ac_try) 2>&5
17463 ac_status=$?
17464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17465 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17467 (eval $ac_try) 2>&5
17468 ac_status=$?
17469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17470 test $ac_status = 0; }; }; then :
17471
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17473 $as_echo "yes" >&6; }
17474
17475 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
17476
17477
17478 else
17479 $as_echo "$as_me: failed program was:" >&5
17480 sed 's/^/| /' conftest.$ac_ext >&5
17481
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17483 $as_echo "no" >&6; }
17484
17485
17486
17487 fi
17488 rm -Rf build
17489
17490
17491
17492
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
17494 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
17495
17496
17497 cat confdefs.h - <<_ACEOF >conftest.c
17498
17499
17500 #include <linux/fs.h>
17501
17502 struct dentry *inode_lookup(struct inode *inode,
17503 struct dentry *dentry, struct nameidata *nidata)
17504 { return NULL; }
17505
17506 static const struct inode_operations iops
17507 __attribute__ ((unused)) = {
17508 .lookup = inode_lookup,
17509 };
17510
17511 int
17512 main (void)
17513 {
17514
17515
17516 ;
17517 return 0;
17518 }
17519
17520 _ACEOF
17521
17522
17523
17524 cat - <<_ACEOF >conftest.h
17525
17526 _ACEOF
17527
17528
17529 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17530 echo "obj-m := conftest.o" >build/Makefile
17531 modpost_flag=''
17532 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17533 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17535 (eval $ac_try) 2>&5
17536 ac_status=$?
17537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17538 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17540 (eval $ac_try) 2>&5
17541 ac_status=$?
17542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17543 test $ac_status = 0; }; }; then :
17544
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17546 $as_echo "yes" >&6; }
17547
17548 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
17549
17550
17551 else
17552 $as_echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17554
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17556 $as_echo "no" >&6; }
17557
17558
17559
17560 fi
17561 rm -Rf build
17562
17563
17564
17565
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
17567 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
17568
17569
17570 cat confdefs.h - <<_ACEOF >conftest.c
17571
17572
17573 #include <linux/fs.h>
17574
17575 #ifdef HAVE_MKDIR_UMODE_T
17576 int inode_create(struct inode *inode ,struct dentry *dentry,
17577 umode_t umode, struct nameidata *nidata) { return 0; }
17578 #else
17579 int inode_create(struct inode *inode,struct dentry *dentry,
17580 int umode, struct nameidata * nidata) { return 0; }
17581 #endif
17582
17583 static const struct inode_operations
17584 iops __attribute__ ((unused)) = {
17585 .create = inode_create,
17586 };
17587
17588 int
17589 main (void)
17590 {
17591
17592
17593 ;
17594 return 0;
17595 }
17596
17597 _ACEOF
17598
17599
17600
17601 cat - <<_ACEOF >conftest.h
17602
17603 _ACEOF
17604
17605
17606 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17607 echo "obj-m := conftest.o" >build/Makefile
17608 modpost_flag=''
17609 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17610 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17612 (eval $ac_try) 2>&5
17613 ac_status=$?
17614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17615 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17617 (eval $ac_try) 2>&5
17618 ac_status=$?
17619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17620 test $ac_status = 0; }; }; then :
17621
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17623 $as_echo "yes" >&6; }
17624
17625 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
17626
17627
17628 else
17629 $as_echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17631
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17633 $as_echo "no" >&6; }
17634
17635
17636
17637 fi
17638 rm -Rf build
17639
17640
17641
17642
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
17644 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
17645
17646
17647 cat confdefs.h - <<_ACEOF >conftest.c
17648
17649
17650 #include <linux/fs.h>
17651 const char *get_link(struct dentry *de, struct inode *ip,
17652 struct delayed_call *done) { return "symlink"; }
17653 static struct inode_operations
17654 iops __attribute__ ((unused)) = {
17655 .get_link = get_link,
17656 };
17657
17658 int
17659 main (void)
17660 {
17661
17662
17663 ;
17664 return 0;
17665 }
17666
17667 _ACEOF
17668
17669
17670
17671 cat - <<_ACEOF >conftest.h
17672
17673 _ACEOF
17674
17675
17676 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17677 echo "obj-m := conftest.o" >build/Makefile
17678 modpost_flag=''
17679 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17680 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17682 (eval $ac_try) 2>&5
17683 ac_status=$?
17684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17685 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17687 (eval $ac_try) 2>&5
17688 ac_status=$?
17689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17690 test $ac_status = 0; }; }; then :
17691
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17693 $as_echo "yes" >&6; }
17694
17695 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
17696
17697
17698 else
17699 $as_echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17701
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17703 $as_echo "no" >&6; }
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
17705 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
17706
17707
17708 cat confdefs.h - <<_ACEOF >conftest.c
17709
17710
17711 #include <linux/fs.h>
17712 const char *get_link(struct dentry *de, struct
17713 inode *ip, void **cookie) { return "symlink"; }
17714 static struct inode_operations
17715 iops __attribute__ ((unused)) = {
17716 .get_link = get_link,
17717 };
17718
17719 int
17720 main (void)
17721 {
17722
17723
17724 ;
17725 return 0;
17726 }
17727
17728 _ACEOF
17729
17730
17731
17732 cat - <<_ACEOF >conftest.h
17733
17734 _ACEOF
17735
17736
17737 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17738 echo "obj-m := conftest.o" >build/Makefile
17739 modpost_flag=''
17740 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17741 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17743 (eval $ac_try) 2>&5
17744 ac_status=$?
17745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17746 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17748 (eval $ac_try) 2>&5
17749 ac_status=$?
17750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17751 test $ac_status = 0; }; }; then :
17752
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17754 $as_echo "yes" >&6; }
17755
17756 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
17757
17758
17759 else
17760 $as_echo "$as_me: failed program was:" >&5
17761 sed 's/^/| /' conftest.$ac_ext >&5
17762
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17764 $as_echo "no" >&6; }
17765
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
17767 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
17768
17769
17770 cat confdefs.h - <<_ACEOF >conftest.c
17771
17772
17773 #include <linux/fs.h>
17774 const char *follow_link(struct dentry *de,
17775 void **cookie) { return "symlink"; }
17776 static struct inode_operations
17777 iops __attribute__ ((unused)) = {
17778 .follow_link = follow_link,
17779 };
17780
17781 int
17782 main (void)
17783 {
17784
17785
17786 ;
17787 return 0;
17788 }
17789
17790 _ACEOF
17791
17792
17793
17794 cat - <<_ACEOF >conftest.h
17795
17796 _ACEOF
17797
17798
17799 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17800 echo "obj-m := conftest.o" >build/Makefile
17801 modpost_flag=''
17802 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17803 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17805 (eval $ac_try) 2>&5
17806 ac_status=$?
17807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17808 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17810 (eval $ac_try) 2>&5
17811 ac_status=$?
17812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17813 test $ac_status = 0; }; }; then :
17814
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17816 $as_echo "yes" >&6; }
17817
17818 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
17819
17820
17821 else
17822 $as_echo "$as_me: failed program was:" >&5
17823 sed 's/^/| /' conftest.$ac_ext >&5
17824
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17826 $as_echo "no" >&6; }
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
17828 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
17829
17830
17831 cat confdefs.h - <<_ACEOF >conftest.c
17832
17833
17834 #include <linux/fs.h>
17835 void *follow_link(struct dentry *de, struct
17836 nameidata *nd) { return (void *)NULL; }
17837 static struct inode_operations
17838 iops __attribute__ ((unused)) = {
17839 .follow_link = follow_link,
17840 };
17841
17842 int
17843 main (void)
17844 {
17845
17846
17847 ;
17848 return 0;
17849 }
17850
17851 _ACEOF
17852
17853
17854
17855 cat - <<_ACEOF >conftest.h
17856
17857 _ACEOF
17858
17859
17860 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17861 echo "obj-m := conftest.o" >build/Makefile
17862 modpost_flag=''
17863 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17864 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17866 (eval $ac_try) 2>&5
17867 ac_status=$?
17868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17869 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17871 (eval $ac_try) 2>&5
17872 ac_status=$?
17873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17874 test $ac_status = 0; }; }; then :
17875
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17877 $as_echo "yes" >&6; }
17878
17879 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
17880
17881
17882 else
17883 $as_echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17885
17886 as_fn_error $? "no; please file a bug report" "$LINENO" 5
17887
17888
17889
17890 fi
17891 rm -Rf build
17892
17893
17894
17895
17896
17897 fi
17898 rm -Rf build
17899
17900
17901
17902
17903
17904
17905 fi
17906 rm -Rf build
17907
17908
17909
17910
17911
17912 fi
17913 rm -Rf build
17914
17915
17916
17917
17918
17919
17920 cat confdefs.h - <<_ACEOF >conftest.c
17921
17922
17923 #if !defined(HAVE_GET_LINK_DELAYED)
17924 #error "Expecting get_link() delayed done"
17925 #endif
17926
17927 int
17928 main (void)
17929 {
17930
17931
17932 ;
17933 return 0;
17934 }
17935
17936 _ACEOF
17937
17938
17939
17940 cat - <<_ACEOF >conftest.h
17941
17942 _ACEOF
17943
17944
17945 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17946 echo "obj-m := conftest.o" >build/Makefile
17947 modpost_flag=''
17948 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17949 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17951 (eval $ac_try) 2>&5
17952 ac_status=$?
17953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17954 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17956 (eval $ac_try) 2>&5
17957 ac_status=$?
17958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17959 test $ac_status = 0; }; }; then :
17960
17961
17962 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
17963
17964
17965 else
17966 $as_echo "$as_me: failed program was:" >&5
17967 sed 's/^/| /' conftest.$ac_ext >&5
17968
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
17970 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
17971
17972
17973 cat confdefs.h - <<_ACEOF >conftest.c
17974
17975
17976 #include <linux/fs.h>
17977 void put_link(struct inode *ip, void *cookie)
17978 { return; }
17979 static struct inode_operations
17980 iops __attribute__ ((unused)) = {
17981 .put_link = put_link,
17982 };
17983
17984 int
17985 main (void)
17986 {
17987
17988
17989 ;
17990 return 0;
17991 }
17992
17993 _ACEOF
17994
17995
17996
17997 cat - <<_ACEOF >conftest.h
17998
17999 _ACEOF
18000
18001
18002 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18003 echo "obj-m := conftest.o" >build/Makefile
18004 modpost_flag=''
18005 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18006 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18008 (eval $ac_try) 2>&5
18009 ac_status=$?
18010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18011 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18013 (eval $ac_try) 2>&5
18014 ac_status=$?
18015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18016 test $ac_status = 0; }; }; then :
18017
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18019 $as_echo "yes" >&6; }
18020
18021 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
18022
18023
18024 else
18025 $as_echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18027
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18029 $as_echo "no" >&6; }
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
18031 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
18032
18033
18034 cat confdefs.h - <<_ACEOF >conftest.c
18035
18036
18037 #include <linux/fs.h>
18038 void put_link(struct dentry *de, struct
18039 nameidata *nd, void *ptr) { return; }
18040 static struct inode_operations
18041 iops __attribute__ ((unused)) = {
18042 .put_link = put_link,
18043 };
18044
18045 int
18046 main (void)
18047 {
18048
18049
18050 ;
18051 return 0;
18052 }
18053
18054 _ACEOF
18055
18056
18057
18058 cat - <<_ACEOF >conftest.h
18059
18060 _ACEOF
18061
18062
18063 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18064 echo "obj-m := conftest.o" >build/Makefile
18065 modpost_flag=''
18066 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18067 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18069 (eval $ac_try) 2>&5
18070 ac_status=$?
18071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18072 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18074 (eval $ac_try) 2>&5
18075 ac_status=$?
18076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18077 test $ac_status = 0; }; }; then :
18078
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18080 $as_echo "yes" >&6; }
18081
18082 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
18083
18084
18085 else
18086 $as_echo "$as_me: failed program was:" >&5
18087 sed 's/^/| /' conftest.$ac_ext >&5
18088
18089 as_fn_error $? "no; please file a bug report" "$LINENO" 5
18090
18091
18092
18093 fi
18094 rm -Rf build
18095
18096
18097
18098
18099
18100 fi
18101 rm -Rf build
18102
18103
18104
18105
18106
18107 fi
18108 rm -Rf build
18109
18110
18111
18112
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
18114 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
18115
18116
18117 cat confdefs.h - <<_ACEOF >conftest.c
18118
18119
18120 #include <linux/fs.h>
18121 void truncate_range(struct inode *inode, loff_t start,
18122 loff_t end) { return; }
18123 static struct inode_operations iops __attribute__ ((unused)) = {
18124 .truncate_range = truncate_range,
18125 };
18126
18127 int
18128 main (void)
18129 {
18130
18131
18132 ;
18133 return 0;
18134 }
18135
18136 _ACEOF
18137
18138
18139
18140 cat - <<_ACEOF >conftest.h
18141
18142 _ACEOF
18143
18144
18145 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18146 echo "obj-m := conftest.o" >build/Makefile
18147 modpost_flag=''
18148 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18149 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18151 (eval $ac_try) 2>&5
18152 ac_status=$?
18153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18154 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18156 (eval $ac_try) 2>&5
18157 ac_status=$?
18158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18159 test $ac_status = 0; }; }; then :
18160
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18162 $as_echo "yes" >&6; }
18163
18164 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
18165
18166
18167 else
18168 $as_echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18170
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18172 $as_echo "no" >&6; }
18173
18174
18175
18176 fi
18177 rm -Rf build
18178
18179
18180
18181
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
18183 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
18184
18185
18186 cat confdefs.h - <<_ACEOF >conftest.c
18187
18188
18189 #include <linux/dcache.h>
18190 struct vfsmount *d_automount(struct path *p) { return NULL; }
18191 struct dentry_operations dops __attribute__ ((unused)) = {
18192 .d_automount = d_automount,
18193 };
18194
18195 int
18196 main (void)
18197 {
18198
18199
18200 ;
18201 return 0;
18202 }
18203
18204 _ACEOF
18205
18206
18207
18208 cat - <<_ACEOF >conftest.h
18209
18210 _ACEOF
18211
18212
18213 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18214 echo "obj-m := conftest.o" >build/Makefile
18215 modpost_flag=''
18216 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18217 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18219 (eval $ac_try) 2>&5
18220 ac_status=$?
18221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18222 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18224 (eval $ac_try) 2>&5
18225 ac_status=$?
18226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18227 test $ac_status = 0; }; }; then :
18228
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18230 $as_echo "yes" >&6; }
18231
18232 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
18233
18234
18235 else
18236 $as_echo "$as_me: failed program was:" >&5
18237 sed 's/^/| /' conftest.$ac_ext >&5
18238
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18240 $as_echo "no" >&6; }
18241
18242
18243
18244 fi
18245 rm -Rf build
18246
18247
18248
18249
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
18251 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
18252
18253
18254 cat confdefs.h - <<_ACEOF >conftest.c
18255
18256
18257 #include <linux/exportfs.h>
18258 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
18259 struct inode *parent) { return 0; }
18260 static struct export_operations eops __attribute__ ((unused))={
18261 .encode_fh = encode_fh,
18262 };
18263
18264 int
18265 main (void)
18266 {
18267
18268
18269 ;
18270 return 0;
18271 }
18272
18273 _ACEOF
18274
18275
18276
18277 cat - <<_ACEOF >conftest.h
18278
18279 _ACEOF
18280
18281
18282 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18283 echo "obj-m := conftest.o" >build/Makefile
18284 modpost_flag=''
18285 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18286 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18288 (eval $ac_try) 2>&5
18289 ac_status=$?
18290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18291 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18293 (eval $ac_try) 2>&5
18294 ac_status=$?
18295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18296 test $ac_status = 0; }; }; then :
18297
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18299 $as_echo "yes" >&6; }
18300
18301 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
18302
18303
18304 else
18305 $as_echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18307
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18309 $as_echo "no" >&6; }
18310
18311
18312
18313 fi
18314 rm -Rf build
18315
18316
18317
18318
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
18320 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
18321
18322
18323 cat confdefs.h - <<_ACEOF >conftest.c
18324
18325
18326 #include <linux/exportfs.h>
18327 int commit_metadata(struct inode *inode) { return 0; }
18328 static struct export_operations eops __attribute__ ((unused))={
18329 .commit_metadata = commit_metadata,
18330 };
18331
18332 int
18333 main (void)
18334 {
18335
18336
18337 ;
18338 return 0;
18339 }
18340
18341 _ACEOF
18342
18343
18344
18345 cat - <<_ACEOF >conftest.h
18346
18347 _ACEOF
18348
18349
18350 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18351 echo "obj-m := conftest.o" >build/Makefile
18352 modpost_flag=''
18353 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18354 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18356 (eval $ac_try) 2>&5
18357 ac_status=$?
18358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18359 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18361 (eval $ac_try) 2>&5
18362 ac_status=$?
18363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18364 test $ac_status = 0; }; }; then :
18365
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18367 $as_echo "yes" >&6; }
18368
18369 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
18370
18371
18372 else
18373 $as_echo "$as_me: failed program was:" >&5
18374 sed 's/^/| /' conftest.$ac_ext >&5
18375
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18377 $as_echo "no" >&6; }
18378
18379
18380
18381 fi
18382 rm -Rf build
18383
18384
18385
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
18387 $as_echo_n "checking whether clear_inode() is available... " >&6; }
18388
18389
18390
18391 cat confdefs.h - <<_ACEOF >conftest.c
18392
18393
18394 #include <linux/fs.h>
18395
18396 int
18397 main (void)
18398 {
18399
18400 clear_inode(NULL);
18401
18402 ;
18403 return 0;
18404 }
18405
18406 _ACEOF
18407
18408
18409
18410 cat - <<_ACEOF >conftest.h
18411
18412 _ACEOF
18413
18414
18415 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18416 echo "obj-m := conftest.o" >build/Makefile
18417 modpost_flag=''
18418 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18419 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18421 (eval $ac_try) 2>&5
18422 ac_status=$?
18423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18424 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18426 (eval $ac_try) 2>&5
18427 ac_status=$?
18428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18429 test $ac_status = 0; }; }; then :
18430 rc=0
18431 else
18432 $as_echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18434 rc=1
18435
18436
18437 fi
18438 rm -Rf build
18439
18440
18441 if test $rc -ne 0; then :
18442
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18444 $as_echo "no" >&6; }
18445
18446 else
18447 if test "x$enable_linux_builtin" != xyes; then
18448
18449 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
18450 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18451 rc=$?
18452 if test $rc -ne 0; then
18453 export=0
18454 for file in fs/inode.c; do
18455 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
18456 "$LINUX/$file" 2>/dev/null
18457 rc=$?
18458 if test $rc -eq 0; then
18459 export=1
18460 break;
18461 fi
18462 done
18463 if test $export -eq 0; then :
18464 rc=1
18465 else :
18466 rc=0
18467 fi
18468 else :
18469 rc=0
18470 fi
18471
18472 fi
18473 if test $rc -ne 0; then :
18474
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18476 $as_echo "no" >&6; }
18477
18478 else :
18479
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18481 $as_echo "yes" >&6; }
18482
18483 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
18484
18485
18486 fi
18487 fi
18488
18489
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
18491 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
18492
18493
18494
18495 cat confdefs.h - <<_ACEOF >conftest.c
18496
18497
18498 #include <linux/fs.h>
18499
18500 int
18501 main (void)
18502 {
18503
18504 insert_inode_locked(NULL);
18505
18506 ;
18507 return 0;
18508 }
18509
18510 _ACEOF
18511
18512
18513
18514 cat - <<_ACEOF >conftest.h
18515
18516 _ACEOF
18517
18518
18519 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18520 echo "obj-m := conftest.o" >build/Makefile
18521 modpost_flag=''
18522 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18523 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18525 (eval $ac_try) 2>&5
18526 ac_status=$?
18527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18528 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18530 (eval $ac_try) 2>&5
18531 ac_status=$?
18532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18533 test $ac_status = 0; }; }; then :
18534 rc=0
18535 else
18536 $as_echo "$as_me: failed program was:" >&5
18537 sed 's/^/| /' conftest.$ac_ext >&5
18538 rc=1
18539
18540
18541 fi
18542 rm -Rf build
18543
18544
18545 if test $rc -ne 0; then :
18546
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18548 $as_echo "no" >&6; }
18549
18550 else
18551 if test "x$enable_linux_builtin" != xyes; then
18552
18553 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
18554 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18555 rc=$?
18556 if test $rc -ne 0; then
18557 export=0
18558 for file in fs/inode.c; do
18559 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
18560 "$LINUX/$file" 2>/dev/null
18561 rc=$?
18562 if test $rc -eq 0; then
18563 export=1
18564 break;
18565 fi
18566 done
18567 if test $export -eq 0; then :
18568 rc=1
18569 else :
18570 rc=0
18571 fi
18572 else :
18573 rc=0
18574 fi
18575
18576 fi
18577 if test $rc -ne 0; then :
18578
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18580 $as_echo "no" >&6; }
18581
18582 else :
18583
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18585 $as_echo "yes" >&6; }
18586
18587 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
18588
18589
18590 fi
18591 fi
18592
18593
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
18595 $as_echo_n "checking whether d_make_root() is available... " >&6; }
18596
18597
18598
18599 cat confdefs.h - <<_ACEOF >conftest.c
18600
18601
18602 #include <linux/dcache.h>
18603
18604 int
18605 main (void)
18606 {
18607
18608 d_make_root(NULL);
18609
18610 ;
18611 return 0;
18612 }
18613
18614 _ACEOF
18615
18616
18617
18618 cat - <<_ACEOF >conftest.h
18619
18620 _ACEOF
18621
18622
18623 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18624 echo "obj-m := conftest.o" >build/Makefile
18625 modpost_flag=''
18626 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18627 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18629 (eval $ac_try) 2>&5
18630 ac_status=$?
18631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18632 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18634 (eval $ac_try) 2>&5
18635 ac_status=$?
18636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18637 test $ac_status = 0; }; }; then :
18638 rc=0
18639 else
18640 $as_echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18642 rc=1
18643
18644
18645 fi
18646 rm -Rf build
18647
18648
18649 if test $rc -ne 0; then :
18650
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18652 $as_echo "no" >&6; }
18653
18654 else
18655 if test "x$enable_linux_builtin" != xyes; then
18656
18657 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
18658 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18659 rc=$?
18660 if test $rc -ne 0; then
18661 export=0
18662 for file in fs/dcache.c; do
18663 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
18664 "$LINUX/$file" 2>/dev/null
18665 rc=$?
18666 if test $rc -eq 0; then
18667 export=1
18668 break;
18669 fi
18670 done
18671 if test $export -eq 0; then :
18672 rc=1
18673 else :
18674 rc=0
18675 fi
18676 else :
18677 rc=0
18678 fi
18679
18680 fi
18681 if test $rc -ne 0; then :
18682
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18684 $as_echo "no" >&6; }
18685
18686 else :
18687
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18689 $as_echo "yes" >&6; }
18690
18691 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
18692
18693
18694 fi
18695 fi
18696
18697
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
18699 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
18700
18701
18702
18703 cat confdefs.h - <<_ACEOF >conftest.c
18704
18705
18706 #include <linux/dcache.h>
18707
18708 int
18709 main (void)
18710 {
18711
18712 d_obtain_alias(NULL);
18713
18714 ;
18715 return 0;
18716 }
18717
18718 _ACEOF
18719
18720
18721
18722 cat - <<_ACEOF >conftest.h
18723
18724 _ACEOF
18725
18726
18727 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18728 echo "obj-m := conftest.o" >build/Makefile
18729 modpost_flag=''
18730 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18731 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18733 (eval $ac_try) 2>&5
18734 ac_status=$?
18735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18736 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18738 (eval $ac_try) 2>&5
18739 ac_status=$?
18740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18741 test $ac_status = 0; }; }; then :
18742 rc=0
18743 else
18744 $as_echo "$as_me: failed program was:" >&5
18745 sed 's/^/| /' conftest.$ac_ext >&5
18746 rc=1
18747
18748
18749 fi
18750 rm -Rf build
18751
18752
18753 if test $rc -ne 0; then :
18754
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18756 $as_echo "no" >&6; }
18757
18758 else
18759 if test "x$enable_linux_builtin" != xyes; then
18760
18761 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
18762 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18763 rc=$?
18764 if test $rc -ne 0; then
18765 export=0
18766 for file in fs/dcache.c; do
18767 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
18768 "$LINUX/$file" 2>/dev/null
18769 rc=$?
18770 if test $rc -eq 0; then
18771 export=1
18772 break;
18773 fi
18774 done
18775 if test $export -eq 0; then :
18776 rc=1
18777 else :
18778 rc=0
18779 fi
18780 else :
18781 rc=0
18782 fi
18783
18784 fi
18785 if test $rc -ne 0; then :
18786
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18788 $as_echo "no" >&6; }
18789
18790 else :
18791
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18793 $as_echo "yes" >&6; }
18794
18795 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
18796
18797
18798 fi
18799 fi
18800
18801
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
18803 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
18804
18805
18806
18807 cat confdefs.h - <<_ACEOF >conftest.c
18808
18809
18810 #include <linux/dcache.h>
18811
18812 int
18813 main (void)
18814 {
18815
18816 struct inode *ip = NULL;
18817 d_prune_aliases(ip);
18818
18819 ;
18820 return 0;
18821 }
18822
18823 _ACEOF
18824
18825
18826
18827 cat - <<_ACEOF >conftest.h
18828
18829 _ACEOF
18830
18831
18832 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18833 echo "obj-m := conftest.o" >build/Makefile
18834 modpost_flag=''
18835 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18836 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18838 (eval $ac_try) 2>&5
18839 ac_status=$?
18840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18841 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18843 (eval $ac_try) 2>&5
18844 ac_status=$?
18845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18846 test $ac_status = 0; }; }; then :
18847 rc=0
18848 else
18849 $as_echo "$as_me: failed program was:" >&5
18850 sed 's/^/| /' conftest.$ac_ext >&5
18851 rc=1
18852
18853
18854 fi
18855 rm -Rf build
18856
18857
18858 if test $rc -ne 0; then :
18859
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18861 $as_echo "no" >&6; }
18862
18863 else
18864 if test "x$enable_linux_builtin" != xyes; then
18865
18866 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
18867 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18868 rc=$?
18869 if test $rc -ne 0; then
18870 export=0
18871 for file in fs/dcache.c; do
18872 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
18873 "$LINUX/$file" 2>/dev/null
18874 rc=$?
18875 if test $rc -eq 0; then
18876 export=1
18877 break;
18878 fi
18879 done
18880 if test $export -eq 0; then :
18881 rc=1
18882 else :
18883 rc=0
18884 fi
18885 else :
18886 rc=0
18887 fi
18888
18889 fi
18890 if test $rc -ne 0; then :
18891
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18893 $as_echo "no" >&6; }
18894
18895 else :
18896
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18898 $as_echo "yes" >&6; }
18899
18900 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
18901
18902
18903 fi
18904 fi
18905
18906
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
18908 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
18909
18910
18911
18912 cat confdefs.h - <<_ACEOF >conftest.c
18913
18914
18915 #include <linux/dcache.h>
18916
18917 int
18918 main (void)
18919 {
18920
18921 d_set_d_op(NULL, NULL);
18922
18923 ;
18924 return 0;
18925 }
18926
18927 _ACEOF
18928
18929
18930
18931 cat - <<_ACEOF >conftest.h
18932
18933 _ACEOF
18934
18935
18936 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18937 echo "obj-m := conftest.o" >build/Makefile
18938 modpost_flag=''
18939 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18940 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18942 (eval $ac_try) 2>&5
18943 ac_status=$?
18944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18945 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18947 (eval $ac_try) 2>&5
18948 ac_status=$?
18949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18950 test $ac_status = 0; }; }; then :
18951 rc=0
18952 else
18953 $as_echo "$as_me: failed program was:" >&5
18954 sed 's/^/| /' conftest.$ac_ext >&5
18955 rc=1
18956
18957
18958 fi
18959 rm -Rf build
18960
18961
18962 if test $rc -ne 0; then :
18963
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18965 $as_echo "no" >&6; }
18966
18967 else
18968 if test "x$enable_linux_builtin" != xyes; then
18969
18970 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
18971 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18972 rc=$?
18973 if test $rc -ne 0; then
18974 export=0
18975 for file in fs/dcache.c; do
18976 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
18977 "$LINUX/$file" 2>/dev/null
18978 rc=$?
18979 if test $rc -eq 0; then
18980 export=1
18981 break;
18982 fi
18983 done
18984 if test $export -eq 0; then :
18985 rc=1
18986 else :
18987 rc=0
18988 fi
18989 else :
18990 rc=0
18991 fi
18992
18993 fi
18994 if test $rc -ne 0; then :
18995
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18997 $as_echo "no" >&6; }
18998
18999 else :
19000
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19002 $as_echo "yes" >&6; }
19003
19004 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
19005
19006
19007 fi
19008 fi
19009
19010
19011
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
19013 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
19014
19015
19016 cat confdefs.h - <<_ACEOF >conftest.c
19017
19018
19019 #include <linux/dcache.h>
19020
19021 int revalidate (struct dentry *dentry,
19022 struct nameidata *nidata) { return 0; }
19023
19024 static const struct dentry_operations
19025 dops __attribute__ ((unused)) = {
19026 .d_revalidate = revalidate,
19027 };
19028
19029 int
19030 main (void)
19031 {
19032
19033
19034 ;
19035 return 0;
19036 }
19037
19038 _ACEOF
19039
19040
19041
19042 cat - <<_ACEOF >conftest.h
19043
19044 _ACEOF
19045
19046
19047 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19048 echo "obj-m := conftest.o" >build/Makefile
19049 modpost_flag=''
19050 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19051 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19053 (eval $ac_try) 2>&5
19054 ac_status=$?
19055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19056 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19058 (eval $ac_try) 2>&5
19059 ac_status=$?
19060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19061 test $ac_status = 0; }; }; then :
19062
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19064 $as_echo "yes" >&6; }
19065
19066 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
19067
19068
19069 else
19070 $as_echo "$as_me: failed program was:" >&5
19071 sed 's/^/| /' conftest.$ac_ext >&5
19072
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19074 $as_echo "no" >&6; }
19075
19076
19077
19078 fi
19079 rm -Rf build
19080
19081
19082
19083
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
19085 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
19086
19087
19088 cat confdefs.h - <<_ACEOF >conftest.c
19089
19090
19091 #include <linux/dcache.h>
19092
19093 const struct dentry_operations test_d_op = {
19094 .d_revalidate = NULL,
19095 };
19096
19097 int
19098 main (void)
19099 {
19100
19101 struct dentry d __attribute__ ((unused));
19102
19103 d.d_op = &test_d_op;
19104
19105 ;
19106 return 0;
19107 }
19108
19109 _ACEOF
19110
19111
19112
19113 cat - <<_ACEOF >conftest.h
19114
19115 _ACEOF
19116
19117
19118 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19119 echo "obj-m := conftest.o" >build/Makefile
19120 modpost_flag=''
19121 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19122 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19124 (eval $ac_try) 2>&5
19125 ac_status=$?
19126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19127 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19129 (eval $ac_try) 2>&5
19130 ac_status=$?
19131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19132 test $ac_status = 0; }; }; then :
19133
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19135 $as_echo "yes" >&6; }
19136
19137 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
19138
19139
19140 else
19141 $as_echo "$as_me: failed program was:" >&5
19142 sed 's/^/| /' conftest.$ac_ext >&5
19143
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19145 $as_echo "no" >&6; }
19146
19147
19148
19149 fi
19150 rm -Rf build
19151
19152
19153
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
19155 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
19156
19157
19158
19159 cat confdefs.h - <<_ACEOF >conftest.c
19160
19161
19162 #include <linux/fs.h>
19163
19164 int
19165 main (void)
19166 {
19167
19168 check_disk_size_change(NULL, NULL);
19169
19170 ;
19171 return 0;
19172 }
19173
19174 _ACEOF
19175
19176
19177
19178 cat - <<_ACEOF >conftest.h
19179
19180 _ACEOF
19181
19182
19183 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19184 echo "obj-m := conftest.o" >build/Makefile
19185 modpost_flag=''
19186 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19187 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19189 (eval $ac_try) 2>&5
19190 ac_status=$?
19191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19192 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19194 (eval $ac_try) 2>&5
19195 ac_status=$?
19196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19197 test $ac_status = 0; }; }; then :
19198 rc=0
19199 else
19200 $as_echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.$ac_ext >&5
19202 rc=1
19203
19204
19205 fi
19206 rm -Rf build
19207
19208
19209 if test $rc -ne 0; then :
19210
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19212 $as_echo "no" >&6; }
19213
19214 else
19215 if test "x$enable_linux_builtin" != xyes; then
19216
19217 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
19218 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19219 rc=$?
19220 if test $rc -ne 0; then
19221 export=0
19222 for file in fs/block_dev.c; do
19223 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
19224 "$LINUX/$file" 2>/dev/null
19225 rc=$?
19226 if test $rc -eq 0; then
19227 export=1
19228 break;
19229 fi
19230 done
19231 if test $export -eq 0; then :
19232 rc=1
19233 else :
19234 rc=0
19235 fi
19236 else :
19237 rc=0
19238 fi
19239
19240 fi
19241 if test $rc -ne 0; then :
19242
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19244 $as_echo "no" >&6; }
19245
19246 else :
19247
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19249 $as_echo "yes" >&6; }
19250
19251 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
19252
19253
19254 fi
19255 fi
19256
19257
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
19259 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
19260
19261
19262
19263 cat confdefs.h - <<_ACEOF >conftest.c
19264
19265
19266 #include <linux/mm.h>
19267
19268 int
19269 main (void)
19270 {
19271
19272 truncate_setsize(NULL, 0);
19273
19274 ;
19275 return 0;
19276 }
19277
19278 _ACEOF
19279
19280
19281
19282 cat - <<_ACEOF >conftest.h
19283
19284 _ACEOF
19285
19286
19287 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19288 echo "obj-m := conftest.o" >build/Makefile
19289 modpost_flag=''
19290 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19291 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19293 (eval $ac_try) 2>&5
19294 ac_status=$?
19295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19296 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19298 (eval $ac_try) 2>&5
19299 ac_status=$?
19300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19301 test $ac_status = 0; }; }; then :
19302 rc=0
19303 else
19304 $as_echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19306 rc=1
19307
19308
19309 fi
19310 rm -Rf build
19311
19312
19313 if test $rc -ne 0; then :
19314
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19316 $as_echo "no" >&6; }
19317
19318 else
19319 if test "x$enable_linux_builtin" != xyes; then
19320
19321 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
19322 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19323 rc=$?
19324 if test $rc -ne 0; then
19325 export=0
19326 for file in mm/truncate.c; do
19327 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
19328 "$LINUX/$file" 2>/dev/null
19329 rc=$?
19330 if test $rc -eq 0; then
19331 export=1
19332 break;
19333 fi
19334 done
19335 if test $export -eq 0; then :
19336 rc=1
19337 else :
19338 rc=0
19339 fi
19340 else :
19341 rc=0
19342 fi
19343
19344 fi
19345 if test $rc -ne 0; then :
19346
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19348 $as_echo "no" >&6; }
19349
19350 else :
19351
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19353 $as_echo "yes" >&6; }
19354
19355 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
19356
19357
19358 fi
19359 fi
19360
19361
19362
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
19364 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
19365
19366
19367 cat confdefs.h - <<_ACEOF >conftest.c
19368
19369
19370 #include <linux/security.h>
19371
19372 int
19373 main (void)
19374 {
19375
19376 struct inode *ip __attribute__ ((unused)) = NULL;
19377 struct inode *dip __attribute__ ((unused)) = NULL;
19378 const struct qstr *str __attribute__ ((unused)) = NULL;
19379 char *name __attribute__ ((unused)) = NULL;
19380 void *value __attribute__ ((unused)) = NULL;
19381 size_t len __attribute__ ((unused)) = 0;
19382
19383 security_inode_init_security(ip, dip, str, &name, &value, &len);
19384
19385 ;
19386 return 0;
19387 }
19388
19389 _ACEOF
19390
19391
19392
19393 cat - <<_ACEOF >conftest.h
19394
19395 _ACEOF
19396
19397
19398 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19399 echo "obj-m := conftest.o" >build/Makefile
19400 modpost_flag=''
19401 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19402 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19404 (eval $ac_try) 2>&5
19405 ac_status=$?
19406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19407 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19409 (eval $ac_try) 2>&5
19410 ac_status=$?
19411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19412 test $ac_status = 0; }; }; then :
19413
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19415 $as_echo "yes" >&6; }
19416
19417 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
19418
19419
19420 else
19421 $as_echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19423
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19425 $as_echo "no" >&6; }
19426
19427
19428
19429 fi
19430 rm -Rf build
19431
19432
19433
19434
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
19436 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
19437
19438
19439 cat confdefs.h - <<_ACEOF >conftest.c
19440
19441
19442 #include <linux/security.h>
19443
19444 int
19445 main (void)
19446 {
19447
19448 struct inode *ip __attribute__ ((unused)) = NULL;
19449 struct inode *dip __attribute__ ((unused)) = NULL;
19450 const struct qstr *str __attribute__ ((unused)) = NULL;
19451 initxattrs func __attribute__ ((unused)) = NULL;
19452
19453 security_inode_init_security(ip, dip, str, func, NULL);
19454
19455 ;
19456 return 0;
19457 }
19458
19459 _ACEOF
19460
19461
19462
19463 cat - <<_ACEOF >conftest.h
19464
19465 _ACEOF
19466
19467
19468 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19469 echo "obj-m := conftest.o" >build/Makefile
19470 modpost_flag=''
19471 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19472 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19474 (eval $ac_try) 2>&5
19475 ac_status=$?
19476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19477 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19479 (eval $ac_try) 2>&5
19480 ac_status=$?
19481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19482 test $ac_status = 0; }; }; then :
19483
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19485 $as_echo "yes" >&6; }
19486
19487 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
19488
19489
19490 else
19491 $as_echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.$ac_ext >&5
19493
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19495 $as_echo "no" >&6; }
19496
19497
19498
19499 fi
19500 rm -Rf build
19501
19502
19503
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
19505 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
19506
19507
19508
19509 cat confdefs.h - <<_ACEOF >conftest.c
19510
19511
19512 #include <linux/fs.h>
19513
19514 int
19515 main (void)
19516 {
19517
19518 mount_nodev(NULL, 0, NULL, NULL);
19519
19520 ;
19521 return 0;
19522 }
19523
19524 _ACEOF
19525
19526
19527
19528 cat - <<_ACEOF >conftest.h
19529
19530 _ACEOF
19531
19532
19533 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19534 echo "obj-m := conftest.o" >build/Makefile
19535 modpost_flag=''
19536 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19537 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19539 (eval $ac_try) 2>&5
19540 ac_status=$?
19541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19542 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19544 (eval $ac_try) 2>&5
19545 ac_status=$?
19546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19547 test $ac_status = 0; }; }; then :
19548 rc=0
19549 else
19550 $as_echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19552 rc=1
19553
19554
19555 fi
19556 rm -Rf build
19557
19558
19559 if test $rc -ne 0; then :
19560
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19562 $as_echo "no" >&6; }
19563
19564 else
19565 if test "x$enable_linux_builtin" != xyes; then
19566
19567 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
19568 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19569 rc=$?
19570 if test $rc -ne 0; then
19571 export=0
19572 for file in fs/super.c; do
19573 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
19574 "$LINUX/$file" 2>/dev/null
19575 rc=$?
19576 if test $rc -eq 0; then
19577 export=1
19578 break;
19579 fi
19580 done
19581 if test $export -eq 0; then :
19582 rc=1
19583 else :
19584 rc=0
19585 fi
19586 else :
19587 rc=0
19588 fi
19589
19590 fi
19591 if test $rc -ne 0; then :
19592
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19594 $as_echo "no" >&6; }
19595
19596 else :
19597
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19599 $as_echo "yes" >&6; }
19600
19601 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
19602
19603
19604 fi
19605 fi
19606
19607
19608
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
19610 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
19611
19612
19613 cat confdefs.h - <<_ACEOF >conftest.c
19614
19615
19616 #include <linux/fs.h>
19617
19618 int shrink(struct shrinker *s, struct shrink_control *sc)
19619 { return 0; }
19620
19621 static const struct super_block
19622 sb __attribute__ ((unused)) = {
19623 .s_shrink.shrink = shrink,
19624 .s_shrink.seeks = DEFAULT_SEEKS,
19625 .s_shrink.batch = 0,
19626 };
19627
19628 int
19629 main (void)
19630 {
19631
19632
19633 ;
19634 return 0;
19635 }
19636
19637 _ACEOF
19638
19639
19640
19641 cat - <<_ACEOF >conftest.h
19642
19643 _ACEOF
19644
19645
19646 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19647 echo "obj-m := conftest.o" >build/Makefile
19648 modpost_flag=''
19649 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19650 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19652 (eval $ac_try) 2>&5
19653 ac_status=$?
19654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19655 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19657 (eval $ac_try) 2>&5
19658 ac_status=$?
19659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19660 test $ac_status = 0; }; }; then :
19661
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19663 $as_echo "yes" >&6; }
19664
19665 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
19666
19667
19668
19669 else
19670 $as_echo "$as_me: failed program was:" >&5
19671 sed 's/^/| /' conftest.$ac_ext >&5
19672
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19674 $as_echo "no" >&6; }
19675
19676
19677
19678 fi
19679 rm -Rf build
19680
19681
19682
19683
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
19685 $as_echo_n "checking whether shrink_control has nid... " >&6; }
19686
19687
19688 cat confdefs.h - <<_ACEOF >conftest.c
19689
19690
19691 #include <linux/fs.h>
19692
19693 int
19694 main (void)
19695 {
19696
19697 struct shrink_control sc __attribute__ ((unused));
19698 unsigned long scnidsize __attribute__ ((unused)) =
19699 sizeof(sc.nid);
19700
19701 ;
19702 return 0;
19703 }
19704
19705 _ACEOF
19706
19707
19708
19709 cat - <<_ACEOF >conftest.h
19710
19711 _ACEOF
19712
19713
19714 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19715 echo "obj-m := conftest.o" >build/Makefile
19716 modpost_flag=''
19717 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19718 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19720 (eval $ac_try) 2>&5
19721 ac_status=$?
19722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19723 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19725 (eval $ac_try) 2>&5
19726 ac_status=$?
19727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19728 test $ac_status = 0; }; }; then :
19729
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19731 $as_echo "yes" >&6; }
19732
19733 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
19734
19735
19736 else
19737 $as_echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19739
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19741 $as_echo "no" >&6; }
19742
19743
19744
19745 fi
19746 rm -Rf build
19747
19748
19749
19750
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
19752 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
19753
19754
19755 cat confdefs.h - <<_ACEOF >conftest.c
19756
19757
19758 #include <linux/fs.h>
19759
19760 int
19761 main (void)
19762 {
19763
19764 struct super_block sb __attribute__ ((unused));
19765
19766 INIT_LIST_HEAD(&sb.s_instances);
19767
19768 ;
19769 return 0;
19770 }
19771
19772 _ACEOF
19773
19774
19775
19776 cat - <<_ACEOF >conftest.h
19777
19778 _ACEOF
19779
19780
19781 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19782 echo "obj-m := conftest.o" >build/Makefile
19783 modpost_flag=''
19784 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19785 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19787 (eval $ac_try) 2>&5
19788 ac_status=$?
19789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19790 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19792 (eval $ac_try) 2>&5
19793 ac_status=$?
19794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19795 test $ac_status = 0; }; }; then :
19796
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19798 $as_echo "yes" >&6; }
19799
19800 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
19801
19802
19803 else
19804 $as_echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19806
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19808 $as_echo "no" >&6; }
19809
19810
19811
19812 fi
19813 rm -Rf build
19814
19815
19816
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
19818 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
19819
19820
19821 cat confdefs.h - <<_ACEOF >conftest.c
19822
19823
19824 #include <linux/fs.h>
19825
19826 int
19827 main (void)
19828 {
19829
19830 struct super_block sb __attribute__ ((unused));
19831 sb.s_d_op = NULL;
19832
19833 ;
19834 return 0;
19835 }
19836
19837 _ACEOF
19838
19839
19840
19841 cat - <<_ACEOF >conftest.h
19842
19843 _ACEOF
19844
19845
19846 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19847 echo "obj-m := conftest.o" >build/Makefile
19848 modpost_flag=''
19849 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19850 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19852 (eval $ac_try) 2>&5
19853 ac_status=$?
19854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19855 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19857 (eval $ac_try) 2>&5
19858 ac_status=$?
19859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19860 test $ac_status = 0; }; }; then :
19861
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19863 $as_echo "yes" >&6; }
19864
19865 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
19866
19867
19868 else
19869 $as_echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19871
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19873 $as_echo "no" >&6; }
19874
19875
19876
19877 fi
19878 rm -Rf build
19879
19880
19881
19882
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
19884 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
19885
19886
19887
19888 cat confdefs.h - <<_ACEOF >conftest.c
19889
19890
19891 #include <linux/backing-dev.h>
19892 struct backing_dev_info bdi;
19893
19894 int
19895 main (void)
19896 {
19897
19898 char *name = "bdi";
19899 int error __attribute__((unused)) =
19900 bdi_setup_and_register(&bdi, name);
19901
19902 ;
19903 return 0;
19904 }
19905
19906 _ACEOF
19907
19908
19909
19910 cat - <<_ACEOF >conftest.h
19911
19912 _ACEOF
19913
19914
19915 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19916 echo "obj-m := conftest.o" >build/Makefile
19917 modpost_flag=''
19918 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19919 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19921 (eval $ac_try) 2>&5
19922 ac_status=$?
19923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19924 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19926 (eval $ac_try) 2>&5
19927 ac_status=$?
19928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19929 test $ac_status = 0; }; }; then :
19930 rc=0
19931 else
19932 $as_echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19934 rc=1
19935
19936
19937 fi
19938 rm -Rf build
19939
19940
19941 if test $rc -ne 0; then :
19942
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19944 $as_echo "no" >&6; }
19945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
19946 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
19947
19948
19949
19950 cat confdefs.h - <<_ACEOF >conftest.c
19951
19952
19953 #include <linux/backing-dev.h>
19954 struct backing_dev_info bdi;
19955
19956 int
19957 main (void)
19958 {
19959
19960 char *name = "bdi";
19961 unsigned int cap = BDI_CAP_MAP_COPY;
19962 int error __attribute__((unused)) =
19963 bdi_setup_and_register(&bdi, name, cap);
19964
19965 ;
19966 return 0;
19967 }
19968
19969 _ACEOF
19970
19971
19972
19973 cat - <<_ACEOF >conftest.h
19974
19975 _ACEOF
19976
19977
19978 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19979 echo "obj-m := conftest.o" >build/Makefile
19980 modpost_flag=''
19981 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19982 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19984 (eval $ac_try) 2>&5
19985 ac_status=$?
19986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19987 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19989 (eval $ac_try) 2>&5
19990 ac_status=$?
19991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19992 test $ac_status = 0; }; }; then :
19993 rc=0
19994 else
19995 $as_echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19997 rc=1
19998
19999
20000 fi
20001 rm -Rf build
20002
20003
20004 if test $rc -ne 0; then :
20005
20006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20007 $as_echo "no" >&6; }
20008
20009 else
20010 if test "x$enable_linux_builtin" != xyes; then
20011
20012 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
20013 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20014 rc=$?
20015 if test $rc -ne 0; then
20016 export=0
20017 for file in mm/backing-dev.c; do
20018 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
20019 "$LINUX/$file" 2>/dev/null
20020 rc=$?
20021 if test $rc -eq 0; then
20022 export=1
20023 break;
20024 fi
20025 done
20026 if test $export -eq 0; then :
20027 rc=1
20028 else :
20029 rc=0
20030 fi
20031 else :
20032 rc=0
20033 fi
20034
20035 fi
20036 if test $rc -ne 0; then :
20037
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20039 $as_echo "no" >&6; }
20040
20041 else :
20042
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20044 $as_echo "yes" >&6; }
20045
20046 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
20047
20048
20049 fi
20050 fi
20051
20052
20053 else
20054 if test "x$enable_linux_builtin" != xyes; then
20055
20056 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
20057 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20058 rc=$?
20059 if test $rc -ne 0; then
20060 export=0
20061 for file in mm/backing-dev.c; do
20062 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
20063 "$LINUX/$file" 2>/dev/null
20064 rc=$?
20065 if test $rc -eq 0; then
20066 export=1
20067 break;
20068 fi
20069 done
20070 if test $export -eq 0; then :
20071 rc=1
20072 else :
20073 rc=0
20074 fi
20075 else :
20076 rc=0
20077 fi
20078
20079 fi
20080 if test $rc -ne 0; then :
20081
20082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20083 $as_echo "no" >&6; }
20084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
20085 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
20086
20087
20088
20089 cat confdefs.h - <<_ACEOF >conftest.c
20090
20091
20092 #include <linux/backing-dev.h>
20093 struct backing_dev_info bdi;
20094
20095 int
20096 main (void)
20097 {
20098
20099 char *name = "bdi";
20100 unsigned int cap = BDI_CAP_MAP_COPY;
20101 int error __attribute__((unused)) =
20102 bdi_setup_and_register(&bdi, name, cap);
20103
20104 ;
20105 return 0;
20106 }
20107
20108 _ACEOF
20109
20110
20111
20112 cat - <<_ACEOF >conftest.h
20113
20114 _ACEOF
20115
20116
20117 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20118 echo "obj-m := conftest.o" >build/Makefile
20119 modpost_flag=''
20120 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20121 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20123 (eval $ac_try) 2>&5
20124 ac_status=$?
20125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20126 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20128 (eval $ac_try) 2>&5
20129 ac_status=$?
20130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20131 test $ac_status = 0; }; }; then :
20132 rc=0
20133 else
20134 $as_echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.$ac_ext >&5
20136 rc=1
20137
20138
20139 fi
20140 rm -Rf build
20141
20142
20143 if test $rc -ne 0; then :
20144
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20146 $as_echo "no" >&6; }
20147
20148 else
20149 if test "x$enable_linux_builtin" != xyes; then
20150
20151 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
20152 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20153 rc=$?
20154 if test $rc -ne 0; then
20155 export=0
20156 for file in mm/backing-dev.c; do
20157 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
20158 "$LINUX/$file" 2>/dev/null
20159 rc=$?
20160 if test $rc -eq 0; then
20161 export=1
20162 break;
20163 fi
20164 done
20165 if test $export -eq 0; then :
20166 rc=1
20167 else :
20168 rc=0
20169 fi
20170 else :
20171 rc=0
20172 fi
20173
20174 fi
20175 if test $rc -ne 0; then :
20176
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20178 $as_echo "no" >&6; }
20179
20180 else :
20181
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20183 $as_echo "yes" >&6; }
20184
20185 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
20186
20187
20188 fi
20189 fi
20190
20191
20192 else :
20193
20194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20195 $as_echo "yes" >&6; }
20196
20197 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
20198
20199
20200 fi
20201 fi
20202
20203
20204
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
20206 $as_echo_n "checking whether set_nlink() is available... " >&6; }
20207
20208
20209 cat confdefs.h - <<_ACEOF >conftest.c
20210
20211
20212 #include <linux/fs.h>
20213
20214 int
20215 main (void)
20216 {
20217
20218 struct inode node;
20219 unsigned int link = 0;
20220 (void) set_nlink(&node, link);
20221
20222 ;
20223 return 0;
20224 }
20225
20226 _ACEOF
20227
20228
20229
20230 cat - <<_ACEOF >conftest.h
20231
20232 _ACEOF
20233
20234
20235 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20236 echo "obj-m := conftest.o" >build/Makefile
20237 modpost_flag=''
20238 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20239 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20241 (eval $ac_try) 2>&5
20242 ac_status=$?
20243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20244 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20246 (eval $ac_try) 2>&5
20247 ac_status=$?
20248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20249 test $ac_status = 0; }; }; then :
20250
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20252 $as_echo "yes" >&6; }
20253
20254 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
20255
20256
20257 else
20258 $as_echo "$as_me: failed program was:" >&5
20259 sed 's/^/| /' conftest.$ac_ext >&5
20260
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20262 $as_echo "no" >&6; }
20263
20264
20265
20266 fi
20267 rm -Rf build
20268
20269
20270
20271
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
20273 $as_echo_n "checking whether elevator_change() is available... " >&6; }
20274 tmp_flags="$EXTRA_KCFLAGS"
20275 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20276
20277
20278 cat confdefs.h - <<_ACEOF >conftest.c
20279
20280
20281 #include <linux/blkdev.h>
20282 #include <linux/elevator.h>
20283
20284 int
20285 main (void)
20286 {
20287
20288 int ret;
20289 struct request_queue *q = NULL;
20290 char *elevator = NULL;
20291 ret = elevator_change(q, elevator);
20292
20293 ;
20294 return 0;
20295 }
20296
20297 _ACEOF
20298
20299
20300
20301 cat - <<_ACEOF >conftest.h
20302
20303 _ACEOF
20304
20305
20306 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20307 echo "obj-m := conftest.o" >build/Makefile
20308 modpost_flag=''
20309 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20310 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20312 (eval $ac_try) 2>&5
20313 ac_status=$?
20314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20315 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20317 (eval $ac_try) 2>&5
20318 ac_status=$?
20319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20320 test $ac_status = 0; }; }; then :
20321
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20323 $as_echo "yes" >&6; }
20324
20325 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
20326
20327
20328 else
20329 $as_echo "$as_me: failed program was:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20331
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20333 $as_echo "no" >&6; }
20334
20335
20336
20337 fi
20338 rm -Rf build
20339
20340
20341 EXTRA_KCFLAGS="$tmp_flags"
20342
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
20344 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
20345
20346
20347 cat confdefs.h - <<_ACEOF >conftest.c
20348
20349
20350 #include <linux/fs.h>
20351
20352 int
20353 main (void)
20354 {
20355
20356 struct file_system_type *type = NULL;
20357 int (*test)(struct super_block *,void *) = NULL;
20358 int (*set)(struct super_block *,void *) = NULL;
20359 int flags = 0;
20360 void *data = NULL;
20361 (void) sget(type, test, set, flags, data);
20362
20363 ;
20364 return 0;
20365 }
20366
20367 _ACEOF
20368
20369
20370
20371 cat - <<_ACEOF >conftest.h
20372
20373 _ACEOF
20374
20375
20376 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20377 echo "obj-m := conftest.o" >build/Makefile
20378 modpost_flag=''
20379 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20380 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20382 (eval $ac_try) 2>&5
20383 ac_status=$?
20384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20385 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20387 (eval $ac_try) 2>&5
20388 ac_status=$?
20389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20390 test $ac_status = 0; }; }; then :
20391
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20393 $as_echo "yes" >&6; }
20394
20395 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
20396
20397
20398 else
20399 $as_echo "$as_me: failed program was:" >&5
20400 sed 's/^/| /' conftest.$ac_ext >&5
20401
20402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20403 $as_echo "no" >&6; }
20404
20405
20406
20407 fi
20408 rm -Rf build
20409
20410
20411
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
20413 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
20414
20415
20416
20417 cat confdefs.h - <<_ACEOF >conftest.c
20418
20419
20420 #include <linux/fs.h>
20421
20422 int
20423 main (void)
20424 {
20425
20426 struct file *fp __attribute__ ((unused)) = NULL;
20427 struct inode *ip __attribute__ ((unused)) = NULL;
20428 loff_t offset __attribute__ ((unused)) = 0;
20429 loff_t maxsize __attribute__ ((unused)) = 0;
20430
20431 lseek_execute(fp, ip, offset, maxsize);
20432
20433 ;
20434 return 0;
20435 }
20436
20437 _ACEOF
20438
20439
20440
20441 cat - <<_ACEOF >conftest.h
20442
20443 _ACEOF
20444
20445
20446 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20447 echo "obj-m := conftest.o" >build/Makefile
20448 modpost_flag=''
20449 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20450 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20452 (eval $ac_try) 2>&5
20453 ac_status=$?
20454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20455 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20457 (eval $ac_try) 2>&5
20458 ac_status=$?
20459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20460 test $ac_status = 0; }; }; then :
20461 rc=0
20462 else
20463 $as_echo "$as_me: failed program was:" >&5
20464 sed 's/^/| /' conftest.$ac_ext >&5
20465 rc=1
20466
20467
20468 fi
20469 rm -Rf build
20470
20471
20472 if test $rc -ne 0; then :
20473
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20475 $as_echo "no" >&6; }
20476
20477 else
20478 if test "x$enable_linux_builtin" != xyes; then
20479
20480 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
20481 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20482 rc=$?
20483 if test $rc -ne 0; then
20484 export=0
20485 for file in fs/read_write.c; do
20486 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
20487 "$LINUX/$file" 2>/dev/null
20488 rc=$?
20489 if test $rc -eq 0; then
20490 export=1
20491 break;
20492 fi
20493 done
20494 if test $export -eq 0; then :
20495 rc=1
20496 else :
20497 rc=0
20498 fi
20499 else :
20500 rc=0
20501 fi
20502
20503 fi
20504 if test $rc -ne 0; then :
20505
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20507 $as_echo "no" >&6; }
20508
20509 else :
20510
20511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20512 $as_echo "yes" >&6; }
20513
20514 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
20515
20516
20517 fi
20518 fi
20519
20520
20521
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
20523 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
20524
20525
20526 cat confdefs.h - <<_ACEOF >conftest.c
20527
20528
20529 #include <linux/fs.h>
20530 int iterate(struct file *filp, struct dir_context * context)
20531 { return 0; }
20532
20533 static const struct file_operations fops
20534 __attribute__ ((unused)) = {
20535 .iterate = iterate,
20536 };
20537
20538 int
20539 main (void)
20540 {
20541
20542
20543 ;
20544 return 0;
20545 }
20546
20547 _ACEOF
20548
20549
20550
20551 cat - <<_ACEOF >conftest.h
20552
20553 _ACEOF
20554
20555
20556 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20557 echo "obj-m := conftest.o" >build/Makefile
20558 modpost_flag=''
20559 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20560 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20562 (eval $ac_try) 2>&5
20563 ac_status=$?
20564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20565 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20567 (eval $ac_try) 2>&5
20568 ac_status=$?
20569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20570 test $ac_status = 0; }; }; then :
20571
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20573 $as_echo "yes" >&6; }
20574
20575 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
20576
20577
20578 else
20579 $as_echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20581
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20583 $as_echo "no" >&6; }
20584
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
20586 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
20587
20588
20589 cat confdefs.h - <<_ACEOF >conftest.c
20590
20591
20592 #include <linux/fs.h>
20593 int readdir(struct file *filp, void *entry, filldir_t func)
20594 { return 0; }
20595
20596 static const struct file_operations fops
20597 __attribute__ ((unused)) = {
20598 .readdir = readdir,
20599 };
20600
20601 int
20602 main (void)
20603 {
20604
20605
20606 ;
20607 return 0;
20608 }
20609
20610 _ACEOF
20611
20612
20613
20614 cat - <<_ACEOF >conftest.h
20615
20616 _ACEOF
20617
20618
20619 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20620 echo "obj-m := conftest.o" >build/Makefile
20621 modpost_flag=''
20622 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20623 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20625 (eval $ac_try) 2>&5
20626 ac_status=$?
20627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20628 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20630 (eval $ac_try) 2>&5
20631 ac_status=$?
20632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20633 test $ac_status = 0; }; }; then :
20634
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20636 $as_echo "yes" >&6; }
20637
20638 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
20639
20640
20641 else
20642 $as_echo "$as_me: failed program was:" >&5
20643 sed 's/^/| /' conftest.$ac_ext >&5
20644
20645 as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5
20646
20647
20648
20649 fi
20650 rm -Rf build
20651
20652
20653
20654
20655
20656
20657 fi
20658 rm -Rf build
20659
20660
20661
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
20663 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
20664
20665
20666 cat confdefs.h - <<_ACEOF >conftest.c
20667
20668
20669 #include <linux/fs.h>
20670
20671 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
20672 { return 0; }
20673 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
20674 { return 0; }
20675
20676 static const struct file_operations
20677 fops __attribute__ ((unused)) = {
20678 .read_iter = test_read,
20679 .write_iter = test_write,
20680 };
20681
20682 int
20683 main (void)
20684 {
20685
20686
20687 ;
20688 return 0;
20689 }
20690
20691 _ACEOF
20692
20693
20694
20695 cat - <<_ACEOF >conftest.h
20696
20697 _ACEOF
20698
20699
20700 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20701 echo "obj-m := conftest.o" >build/Makefile
20702 modpost_flag=''
20703 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20704 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20706 (eval $ac_try) 2>&5
20707 ac_status=$?
20708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20709 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20711 (eval $ac_try) 2>&5
20712 ac_status=$?
20713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20714 test $ac_status = 0; }; }; then :
20715
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20717 $as_echo "yes" >&6; }
20718
20719 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
20720
20721
20722 else
20723 $as_echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20725
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20727 $as_echo "no" >&6; }
20728
20729
20730
20731 fi
20732 rm -Rf build
20733
20734
20735
20736
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
20738 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
20739
20740
20741 cat confdefs.h - <<_ACEOF >conftest.c
20742
20743
20744 #include <linux/pagemap.h>
20745
20746 int
20747 main (void)
20748 {
20749
20750 struct page page;
20751 kmap_atomic(&page);
20752
20753 ;
20754 return 0;
20755 }
20756
20757 _ACEOF
20758
20759
20760
20761 cat - <<_ACEOF >conftest.h
20762
20763 _ACEOF
20764
20765
20766 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20767 echo "obj-m := conftest.o" >build/Makefile
20768 modpost_flag=''
20769 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20770 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20772 (eval $ac_try) 2>&5
20773 ac_status=$?
20774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20775 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20777 (eval $ac_try) 2>&5
20778 ac_status=$?
20779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20780 test $ac_status = 0; }; }; then :
20781
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20783 $as_echo "yes" >&6; }
20784
20785 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
20786
20787
20788 else
20789 $as_echo "$as_me: failed program was:" >&5
20790 sed 's/^/| /' conftest.$ac_ext >&5
20791
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20793 $as_echo "no" >&6; }
20794
20795
20796
20797 fi
20798 rm -Rf build
20799
20800
20801
20802
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
20804 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
20805
20806
20807 cat confdefs.h - <<_ACEOF >conftest.c
20808
20809
20810 #include <linux/namei.h>
20811
20812 int
20813 main (void)
20814 {
20815
20816 struct path *p = NULL;
20817 follow_down_one(p);
20818
20819 ;
20820 return 0;
20821 }
20822
20823 _ACEOF
20824
20825
20826
20827 cat - <<_ACEOF >conftest.h
20828
20829 _ACEOF
20830
20831
20832 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20833 echo "obj-m := conftest.o" >build/Makefile
20834 modpost_flag=''
20835 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20836 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20838 (eval $ac_try) 2>&5
20839 ac_status=$?
20840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20841 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20843 (eval $ac_try) 2>&5
20844 ac_status=$?
20845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20846 test $ac_status = 0; }; }; then :
20847
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20849 $as_echo "yes" >&6; }
20850
20851 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
20852
20853
20854 else
20855 $as_echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20857
20858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20859 $as_echo "no" >&6; }
20860
20861
20862
20863 fi
20864 rm -Rf build
20865
20866
20867
20868
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
20870 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
20871
20872
20873 cat confdefs.h - <<_ACEOF >conftest.c
20874
20875
20876 #include <linux/blkdev.h>
20877
20878 int make_request(struct request_queue *q, struct bio *bio)
20879 {
20880 return (0);
20881 }
20882
20883 int
20884 main (void)
20885 {
20886
20887 blk_queue_make_request(NULL, &make_request);
20888
20889 ;
20890 return 0;
20891 }
20892
20893 _ACEOF
20894
20895
20896
20897 cat - <<_ACEOF >conftest.h
20898
20899 _ACEOF
20900
20901
20902 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20903 echo "obj-m := conftest.o" >build/Makefile
20904 modpost_flag=''
20905 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20906 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20908 (eval $ac_try) 2>&5
20909 ac_status=$?
20910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20911 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20913 (eval $ac_try) 2>&5
20914 ac_status=$?
20915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20916 test $ac_status = 0; }; }; then :
20917
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20919 $as_echo "yes" >&6; }
20920
20921 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
20922
20923
20924 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
20925
20926
20927 else
20928 $as_echo "$as_me: failed program was:" >&5
20929 sed 's/^/| /' conftest.$ac_ext >&5
20930
20931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20932 $as_echo "no" >&6; }
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
20934 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
20935
20936
20937 cat confdefs.h - <<_ACEOF >conftest.c
20938
20939
20940 #include <linux/blkdev.h>
20941
20942 void make_request(struct request_queue *q, struct bio *bio)
20943 {
20944 return;
20945 }
20946
20947 int
20948 main (void)
20949 {
20950
20951 blk_queue_make_request(NULL, &make_request);
20952
20953 ;
20954 return 0;
20955 }
20956
20957 _ACEOF
20958
20959
20960
20961 cat - <<_ACEOF >conftest.h
20962
20963 _ACEOF
20964
20965
20966 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20967 echo "obj-m := conftest.o" >build/Makefile
20968 modpost_flag=''
20969 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20970 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20972 (eval $ac_try) 2>&5
20973 ac_status=$?
20974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20975 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20977 (eval $ac_try) 2>&5
20978 ac_status=$?
20979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20980 test $ac_status = 0; }; }; then :
20981
20982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20983 $as_echo "yes" >&6; }
20984
20985 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
20986
20987
20988 else
20989 $as_echo "$as_me: failed program was:" >&5
20990 sed 's/^/| /' conftest.$ac_ext >&5
20991
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20993 $as_echo "no" >&6; }
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
20995 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
20996
20997
20998 cat confdefs.h - <<_ACEOF >conftest.c
20999
21000
21001 #include <linux/blkdev.h>
21002
21003 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
21004 {
21005 return (BLK_QC_T_NONE);
21006 }
21007
21008 int
21009 main (void)
21010 {
21011
21012 blk_queue_make_request(NULL, &make_request);
21013
21014 ;
21015 return 0;
21016 }
21017
21018 _ACEOF
21019
21020
21021
21022 cat - <<_ACEOF >conftest.h
21023
21024 _ACEOF
21025
21026
21027 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21028 echo "obj-m := conftest.o" >build/Makefile
21029 modpost_flag=''
21030 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21031 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21033 (eval $ac_try) 2>&5
21034 ac_status=$?
21035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21036 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21038 (eval $ac_try) 2>&5
21039 ac_status=$?
21040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21041 test $ac_status = 0; }; }; then :
21042
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21044 $as_echo "yes" >&6; }
21045
21046 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
21047
21048
21049 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
21050
21051
21052 else
21053 $as_echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21055
21056 as_fn_error $? "no - Please file a bug report at
21057 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
21058
21059
21060
21061 fi
21062 rm -Rf build
21063
21064
21065
21066
21067
21068 fi
21069 rm -Rf build
21070
21071
21072
21073
21074
21075 fi
21076 rm -Rf build
21077
21078
21079
21080
21081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
21082 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
21083
21084
21085
21086 cat confdefs.h - <<_ACEOF >conftest.c
21087
21088
21089 #include <linux/bio.h>
21090
21091 void (*generic_start_io_acct_f)(int, unsigned long,
21092 struct hd_struct *) = &generic_start_io_acct;
21093 void (*generic_end_io_acct_f)(int, struct hd_struct *,
21094 unsigned long) = &generic_end_io_acct;
21095
21096 int
21097 main (void)
21098 {
21099
21100 generic_start_io_acct(0, 0, NULL);
21101 generic_end_io_acct(0, NULL, 0);
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\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21122 (eval $ac_try) 2>&5
21123 ac_status=$?
21124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21125 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21127 (eval $ac_try) 2>&5
21128 ac_status=$?
21129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21130 test $ac_status = 0; }; }; then :
21131 rc=0
21132 else
21133 $as_echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21135 rc=1
21136
21137
21138 fi
21139 rm -Rf build
21140
21141
21142 if test $rc -ne 0; then :
21143
21144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21145 $as_echo "no" >&6; }
21146
21147 else
21148 if test "x$enable_linux_builtin" != xyes; then
21149
21150 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
21151 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21152 rc=$?
21153 if test $rc -ne 0; then
21154 export=0
21155 for file in block/bio.c; do
21156 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
21157 "$LINUX/$file" 2>/dev/null
21158 rc=$?
21159 if test $rc -eq 0; then
21160 export=1
21161 break;
21162 fi
21163 done
21164 if test $export -eq 0; then :
21165 rc=1
21166 else :
21167 rc=0
21168 fi
21169 else :
21170 rc=0
21171 fi
21172
21173 fi
21174 if test $rc -ne 0; then :
21175
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21177 $as_echo "no" >&6; }
21178
21179 else :
21180
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21182 $as_echo "yes" >&6; }
21183
21184 $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
21185
21186
21187 fi
21188 fi
21189
21190
21191
21192 if test "$LINUX_OBJ" != "$LINUX"; then :
21193
21194 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
21195
21196 fi
21197
21198
21199
21200 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
21201 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
21202 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
21203 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
21204
21205
21206 ;;
21207 user)
21208
21209
21210 # Check whether --with-mounthelperdir was given.
21211 if test "${with_mounthelperdir+set}" = set; then :
21212 withval=$with_mounthelperdir; mounthelperdir=$withval
21213 else
21214 mounthelperdir=/sbin
21215 fi
21216
21217
21218
21219
21220
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
21222 $as_echo_n "checking for udev directories... " >&6; }
21223
21224 # Check whether --with-udevdir was given.
21225 if test "${with_udevdir+set}" = set; then :
21226 withval=$with_udevdir; udevdir=$withval
21227 else
21228 udevdir=check
21229 fi
21230
21231
21232 if test "x$udevdir" = xcheck; then :
21233
21234 path1=/lib/udev
21235 path2=/usr/lib/udev
21236 default=$path2
21237
21238 if test -d "$path1"; then :
21239 udevdir="$path1"
21240 else
21241
21242 if test -d "$path2"; then :
21243 udevdir="$path2"
21244 else
21245 udevdir="$default"
21246 fi
21247
21248 fi
21249
21250 fi
21251
21252
21253 # Check whether --with-udevruledir was given.
21254 if test "${with_udevruledir+set}" = set; then :
21255 withval=$with_udevruledir; udevruledir=$withval
21256 else
21257 udevruledir="${udevdir}/rules.d"
21258 fi
21259
21260
21261
21262
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
21264 $as_echo "$udevdir;$udevruledir" >&6; }
21265
21266
21267 # Check whether --enable-systemd was given.
21268 if test "${enable_systemd+set}" = set; then :
21269 enableval=$enable_systemd;
21270 else
21271 enable_systemd=yes
21272 fi
21273
21274
21275
21276 # Check whether --with-systemdunitdir was given.
21277 if test "${with_systemdunitdir+set}" = set; then :
21278 withval=$with_systemdunitdir; systemdunitdir=$withval
21279 else
21280 systemdunitdir=/usr/lib/systemd/system
21281 fi
21282
21283
21284
21285 # Check whether --with-systemdpresetdir was given.
21286 if test "${with_systemdpresetdir+set}" = set; then :
21287 withval=$with_systemdpresetdir; systemdpresetdir=$withval
21288 else
21289 systemdpresetdir=/usr/lib/systemd/system-preset
21290 fi
21291
21292
21293
21294 # Check whether --with-systemdmodulesloaddir was given.
21295 if test "${with_systemdmodulesloaddir+set}" = set; then :
21296 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
21297 else
21298 systemdmodulesloaddir=/usr/lib/modules-load.d
21299 fi
21300
21301
21302
21303 if test "x$enable_systemd" = xyes; then :
21304
21305 ZFS_INIT_SYSTEMD=systemd
21306 ZFS_MODULE_LOAD=modules-load.d
21307 modulesloaddir=$systemdmodulesloaddir
21308
21309 fi
21310
21311
21312
21313
21314
21315
21316
21317
21318 # Check whether --enable-sysvinit was given.
21319 if test "${enable_sysvinit+set}" = set; then :
21320 enableval=$enable_sysvinit;
21321 else
21322 enable_sysvinit=yes
21323 fi
21324
21325
21326 if test "x$enable_sysvinit" = xyes; then :
21327 ZFS_INIT_SYSV=init.d
21328 fi
21329
21330
21331
21332
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
21334 $as_echo_n "checking for dracut directory... " >&6; }
21335
21336 # Check whether --with-dracutdir was given.
21337 if test "${with_dracutdir+set}" = set; then :
21338 withval=$with_dracutdir; dracutdir=$withval
21339 else
21340 dracutdir=check
21341 fi
21342
21343
21344 if test "x$dracutdir" = xcheck; then :
21345
21346 path1=/usr/share/dracut
21347 path2=/usr/lib/dracut
21348 default=$path2
21349
21350 if test -d "$path1"; then :
21351 dracutdir="$path1"
21352 else
21353
21354 if test -d "$path2"; then :
21355 dracutdir="$path2"
21356 else
21357 dracutdir="$default"
21358 fi
21359
21360 fi
21361
21362 fi
21363
21364
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
21366 $as_echo "$dracutdir" >&6; }
21367
21368
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
21370 $as_echo_n "checking for target asm dir... " >&6; }
21371 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
21372
21373 case $TARGET_ARCH in
21374 i386|x86_64)
21375 TARGET_ASM_DIR=asm-${TARGET_ARCH}
21376 ;;
21377 *)
21378 TARGET_ASM_DIR=asm-generic
21379 ;;
21380 esac
21381
21382
21383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
21384 $as_echo "$TARGET_ASM_DIR" >&6; }
21385
21386
21387 ZLIB=
21388
21389 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21390 if test "x$ac_cv_header_zlib_h" = xyes; then :
21391
21392 else
21393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21395 as_fn_error $? "
21396 *** zlib.h missing, zlib-devel package required
21397 See \`config.log' for more details" "$LINENO" 5; }
21398 fi
21399
21400
21401
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
21403 $as_echo_n "checking for compress2 in -lz... " >&6; }
21404 if ${ac_cv_lib_z_compress2+:} false; then :
21405 $as_echo_n "(cached) " >&6
21406 else
21407 ac_check_lib_save_LIBS=$LIBS
21408 LIBS="-lz $LIBS"
21409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21410 /* end confdefs.h. */
21411
21412 /* Override any GCC internal prototype to avoid an error.
21413 Use char because int might match the return type of a GCC
21414 builtin and then its argument prototype would still apply. */
21415 #ifdef __cplusplus
21416 extern "C"
21417 #endif
21418 char compress2 ();
21419 int
21420 main ()
21421 {
21422 return compress2 ();
21423 ;
21424 return 0;
21425 }
21426 _ACEOF
21427 if ac_fn_c_try_link "$LINENO"; then :
21428 ac_cv_lib_z_compress2=yes
21429 else
21430 ac_cv_lib_z_compress2=no
21431 fi
21432 rm -f core conftest.err conftest.$ac_objext \
21433 conftest$ac_exeext conftest.$ac_ext
21434 LIBS=$ac_check_lib_save_LIBS
21435 fi
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
21437 $as_echo "$ac_cv_lib_z_compress2" >&6; }
21438 if test "x$ac_cv_lib_z_compress2" = xyes; then :
21439 cat >>confdefs.h <<_ACEOF
21440 #define HAVE_LIBZ 1
21441 _ACEOF
21442
21443 LIBS="-lz $LIBS"
21444
21445 else
21446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21448 as_fn_error $? "
21449 *** compress2() missing, zlib-devel package required
21450 See \`config.log' for more details" "$LINENO" 5; }
21451 fi
21452
21453
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
21455 $as_echo_n "checking for uncompress in -lz... " >&6; }
21456 if ${ac_cv_lib_z_uncompress+:} false; then :
21457 $as_echo_n "(cached) " >&6
21458 else
21459 ac_check_lib_save_LIBS=$LIBS
21460 LIBS="-lz $LIBS"
21461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21462 /* end confdefs.h. */
21463
21464 /* Override any GCC internal prototype to avoid an error.
21465 Use char because int might match the return type of a GCC
21466 builtin and then its argument prototype would still apply. */
21467 #ifdef __cplusplus
21468 extern "C"
21469 #endif
21470 char uncompress ();
21471 int
21472 main ()
21473 {
21474 return uncompress ();
21475 ;
21476 return 0;
21477 }
21478 _ACEOF
21479 if ac_fn_c_try_link "$LINENO"; then :
21480 ac_cv_lib_z_uncompress=yes
21481 else
21482 ac_cv_lib_z_uncompress=no
21483 fi
21484 rm -f core conftest.err conftest.$ac_objext \
21485 conftest$ac_exeext conftest.$ac_ext
21486 LIBS=$ac_check_lib_save_LIBS
21487 fi
21488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
21489 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
21490 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
21491 cat >>confdefs.h <<_ACEOF
21492 #define HAVE_LIBZ 1
21493 _ACEOF
21494
21495 LIBS="-lz $LIBS"
21496
21497 else
21498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21500 as_fn_error $? "
21501 *** uncompress() missing, zlib-devel package required
21502 See \`config.log' for more details" "$LINENO" 5; }
21503 fi
21504
21505
21506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
21507 $as_echo_n "checking for crc32 in -lz... " >&6; }
21508 if ${ac_cv_lib_z_crc32+:} false; then :
21509 $as_echo_n "(cached) " >&6
21510 else
21511 ac_check_lib_save_LIBS=$LIBS
21512 LIBS="-lz $LIBS"
21513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21514 /* end confdefs.h. */
21515
21516 /* Override any GCC internal prototype to avoid an error.
21517 Use char because int might match the return type of a GCC
21518 builtin and then its argument prototype would still apply. */
21519 #ifdef __cplusplus
21520 extern "C"
21521 #endif
21522 char crc32 ();
21523 int
21524 main ()
21525 {
21526 return crc32 ();
21527 ;
21528 return 0;
21529 }
21530 _ACEOF
21531 if ac_fn_c_try_link "$LINENO"; then :
21532 ac_cv_lib_z_crc32=yes
21533 else
21534 ac_cv_lib_z_crc32=no
21535 fi
21536 rm -f core conftest.err conftest.$ac_objext \
21537 conftest$ac_exeext conftest.$ac_ext
21538 LIBS=$ac_check_lib_save_LIBS
21539 fi
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
21541 $as_echo "$ac_cv_lib_z_crc32" >&6; }
21542 if test "x$ac_cv_lib_z_crc32" = xyes; then :
21543 cat >>confdefs.h <<_ACEOF
21544 #define HAVE_LIBZ 1
21545 _ACEOF
21546
21547 LIBS="-lz $LIBS"
21548
21549 else
21550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21552 as_fn_error $? "
21553 *** crc32() missing, zlib-devel package required
21554 See \`config.log' for more details" "$LINENO" 5; }
21555 fi
21556
21557
21558 ZLIB="-lz"
21559
21560
21561 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
21562
21563
21564
21565 LIBUUID=
21566
21567 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
21568 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
21569
21570 else
21571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21573 as_fn_error $? "
21574 *** uuid/uuid.h missing, libuuid-devel package required
21575 See \`config.log' for more details" "$LINENO" 5; }
21576 fi
21577
21578
21579
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
21581 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
21582 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
21583 $as_echo_n "(cached) " >&6
21584 else
21585 ac_check_lib_save_LIBS=$LIBS
21586 LIBS="-luuid $LIBS"
21587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21588 /* end confdefs.h. */
21589
21590 /* Override any GCC internal prototype to avoid an error.
21591 Use char because int might match the return type of a GCC
21592 builtin and then its argument prototype would still apply. */
21593 #ifdef __cplusplus
21594 extern "C"
21595 #endif
21596 char uuid_generate ();
21597 int
21598 main ()
21599 {
21600 return uuid_generate ();
21601 ;
21602 return 0;
21603 }
21604 _ACEOF
21605 if ac_fn_c_try_link "$LINENO"; then :
21606 ac_cv_lib_uuid_uuid_generate=yes
21607 else
21608 ac_cv_lib_uuid_uuid_generate=no
21609 fi
21610 rm -f core conftest.err conftest.$ac_objext \
21611 conftest$ac_exeext conftest.$ac_ext
21612 LIBS=$ac_check_lib_save_LIBS
21613 fi
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
21615 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
21616 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
21617 cat >>confdefs.h <<_ACEOF
21618 #define HAVE_LIBUUID 1
21619 _ACEOF
21620
21621 LIBS="-luuid $LIBS"
21622
21623 else
21624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21626 as_fn_error $? "
21627 *** uuid_generate() missing, libuuid-devel package required
21628 See \`config.log' for more details" "$LINENO" 5; }
21629 fi
21630
21631
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
21633 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
21634 if ${ac_cv_lib_uuid_uuid_is_null+:} false; then :
21635 $as_echo_n "(cached) " >&6
21636 else
21637 ac_check_lib_save_LIBS=$LIBS
21638 LIBS="-luuid $LIBS"
21639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21640 /* end confdefs.h. */
21641
21642 /* Override any GCC internal prototype to avoid an error.
21643 Use char because int might match the return type of a GCC
21644 builtin and then its argument prototype would still apply. */
21645 #ifdef __cplusplus
21646 extern "C"
21647 #endif
21648 char uuid_is_null ();
21649 int
21650 main ()
21651 {
21652 return uuid_is_null ();
21653 ;
21654 return 0;
21655 }
21656 _ACEOF
21657 if ac_fn_c_try_link "$LINENO"; then :
21658 ac_cv_lib_uuid_uuid_is_null=yes
21659 else
21660 ac_cv_lib_uuid_uuid_is_null=no
21661 fi
21662 rm -f core conftest.err conftest.$ac_objext \
21663 conftest$ac_exeext conftest.$ac_ext
21664 LIBS=$ac_check_lib_save_LIBS
21665 fi
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
21667 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
21668 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes; then :
21669 cat >>confdefs.h <<_ACEOF
21670 #define HAVE_LIBUUID 1
21671 _ACEOF
21672
21673 LIBS="-luuid $LIBS"
21674
21675 else
21676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21678 as_fn_error $? "
21679 *** uuid_is_null() missing, libuuid-devel package required
21680 See \`config.log' for more details" "$LINENO" 5; }
21681 fi
21682
21683
21684 LIBUUID="-luuid"
21685
21686
21687 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
21688
21689
21690
21691
21692 # Check whether --with-blkid was given.
21693 if test "${with_blkid+set}" = set; then :
21694 withval=$with_blkid;
21695 else
21696 with_blkid=check
21697 fi
21698
21699
21700 LIBBLKID=
21701 if test "x$with_blkid" = xyes; then :
21702
21703 LIBBLKID="-lblkid"
21704
21705
21706 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
21707
21708
21709 fi
21710
21711 if test "x$with_blkid" = xcheck; then :
21712
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
21714 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
21715 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
21716 $as_echo_n "(cached) " >&6
21717 else
21718 ac_check_lib_save_LIBS=$LIBS
21719 LIBS="-lblkid $LIBS"
21720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21721 /* end confdefs.h. */
21722
21723 /* Override any GCC internal prototype to avoid an error.
21724 Use char because int might match the return type of a GCC
21725 builtin and then its argument prototype would still apply. */
21726 #ifdef __cplusplus
21727 extern "C"
21728 #endif
21729 char blkid_get_cache ();
21730 int
21731 main ()
21732 {
21733 return blkid_get_cache ();
21734 ;
21735 return 0;
21736 }
21737 _ACEOF
21738 if ac_fn_c_try_link "$LINENO"; then :
21739 ac_cv_lib_blkid_blkid_get_cache=yes
21740 else
21741 ac_cv_lib_blkid_blkid_get_cache=no
21742 fi
21743 rm -f core conftest.err conftest.$ac_objext \
21744 conftest$ac_exeext conftest.$ac_ext
21745 LIBS=$ac_check_lib_save_LIBS
21746 fi
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
21748 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
21749 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
21750
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
21752 $as_echo_n "checking for blkid zfs support... " >&6; }
21753
21754 ZFS_DEV=`mktemp`
21755 truncate -s 64M $ZFS_DEV
21756 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
21757 dd of=$ZFS_DEV bs=1k count=8 \
21758 seek=128 conv=notrunc &>/dev/null \
21759 >/dev/null 2>/dev/null
21760 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
21761 dd of=$ZFS_DEV bs=1k count=8 \
21762 seek=132 conv=notrunc &>/dev/null \
21763 >/dev/null 2>/dev/null
21764 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
21765 dd of=$ZFS_DEV bs=1k count=8 \
21766 seek=136 conv=notrunc &>/dev/null \
21767 >/dev/null 2>/dev/null
21768 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
21769 dd of=$ZFS_DEV bs=1k count=8 \
21770 seek=140 conv=notrunc &>/dev/null \
21771 >/dev/null 2>/dev/null
21772
21773 saved_LIBS="$LIBS"
21774 LIBS="-lblkid"
21775
21776 if test "$cross_compiling" = yes; then :
21777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21779 as_fn_error $? "cannot run test program while cross compiling
21780 See \`config.log' for more details" "$LINENO" 5; }
21781 else
21782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21783 /* end confdefs.h. */
21784
21785 #include <stdio.h>
21786 #include <stdlib.h>
21787 #include <blkid/blkid.h>
21788
21789 int
21790 main ()
21791 {
21792
21793 blkid_cache cache;
21794 char *value;
21795
21796 if (blkid_get_cache(&cache, NULL) < 0)
21797 return 1;
21798
21799 value = blkid_get_tag_value(cache, "TYPE",
21800 "$ZFS_DEV");
21801 if (!value) {
21802 blkid_put_cache(cache);
21803 return 2;
21804 }
21805
21806 if (strcmp(value, "zfs_member")) {
21807 free(value);
21808 blkid_put_cache(cache);
21809 return 0;
21810 }
21811
21812 free(value);
21813 blkid_put_cache(cache);
21814
21815 ;
21816 return 0;
21817 }
21818 _ACEOF
21819 if ac_fn_c_try_run "$LINENO"; then :
21820
21821 rm -f $ZFS_DEV
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21823 $as_echo "yes" >&6; }
21824 LIBBLKID="-lblkid"
21825
21826
21827 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
21828
21829
21830 else
21831
21832 rm -f $ZFS_DEV
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21834 $as_echo "no" >&6; }
21835 if test "x$with_blkid" != xcheck; then :
21836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21838 as_fn_error $? "--with-blkid given but unavailable
21839 See \`config.log' for more details" "$LINENO" 5; }
21840 fi
21841
21842 fi
21843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21844 conftest.$ac_objext conftest.beam conftest.$ac_ext
21845 fi
21846
21847
21848 LIBS="$saved_LIBS"
21849
21850 else
21851
21852 if test "x$with_blkid" != xcheck; then :
21853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21855 as_fn_error $? "--with-blkid given but unavailable
21856 See \`config.log' for more details" "$LINENO" 5; }
21857 fi
21858
21859
21860 fi
21861
21862
21863 fi
21864
21865
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
21867 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
21868
21869 saved_flags="$CFLAGS"
21870 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
21871
21872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21873 /* end confdefs.h. */
21874
21875 int
21876 main ()
21877 {
21878
21879 ;
21880 return 0;
21881 }
21882 _ACEOF
21883 if ac_fn_c_try_compile "$LINENO"; then :
21884
21885 FRAME_LARGER_THAN=-Wframe-larger-than=1024
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21887 $as_echo "yes" >&6; }
21888
21889 else
21890
21891 FRAME_LARGER_THAN=
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21893 $as_echo "no" >&6; }
21894
21895 fi
21896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21897
21898 CFLAGS="$saved_flags"
21899
21900
21901
21902 if test "x$runstatedir" = x; then
21903 runstatedir='${localstatedir}/run'
21904
21905 fi
21906
21907 for ac_func in mlockall
21908 do :
21909 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
21910 if test "x$ac_cv_func_mlockall" = xyes; then :
21911 cat >>confdefs.h <<_ACEOF
21912 #define HAVE_MLOCKALL 1
21913 _ACEOF
21914
21915 fi
21916 done
21917
21918 ;;
21919 all)
21920
21921
21922 # Check whether --with-linux was given.
21923 if test "${with_linux+set}" = set; then :
21924 withval=$with_linux; kernelsrc="$withval"
21925 fi
21926
21927
21928
21929 # Check whether --with-linux-obj was given.
21930 if test "${with_linux_obj+set}" = set; then :
21931 withval=$with_linux_obj; kernelbuild="$withval"
21932 fi
21933
21934
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
21936 $as_echo_n "checking kernel source directory... " >&6; }
21937 if test -z "$kernelsrc"; then :
21938
21939 if test -e "/lib/modules/$(uname -r)/source"; then :
21940
21941 headersdir="/lib/modules/$(uname -r)/source"
21942 sourcelink=$(readlink -f "$headersdir")
21943
21944 elif test -e "/lib/modules/$(uname -r)/build"; then :
21945
21946 headersdir="/lib/modules/$(uname -r)/build"
21947 sourcelink=$(readlink -f "$headersdir")
21948
21949 else
21950
21951 sourcelink=$(ls -1d /usr/src/kernels/* \
21952 /usr/src/linux-* \
21953 2>/dev/null | grep -v obj | tail -1)
21954
21955 fi
21956
21957 if test -n "$sourcelink" && test -e ${sourcelink}; then :
21958
21959 kernelsrc=`readlink -f ${sourcelink}`
21960
21961 else
21962
21963 kernelsrc="Not found"
21964
21965 fi
21966
21967 else
21968
21969 if test "$kernelsrc" = "NONE"; then :
21970
21971 kernsrcver=NONE
21972
21973 fi
21974
21975 fi
21976
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
21978 $as_echo "$kernelsrc" >&6; }
21979 if test ! -d "$kernelsrc"; then :
21980
21981 as_fn_error $? "
21982 *** Please make sure the kernel devel package for your distribution
21983 *** is installed and then try again. If that fails, you can specify the
21984 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
21985
21986 fi
21987
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
21989 $as_echo_n "checking kernel build directory... " >&6; }
21990 if test -z "$kernelbuild"; then :
21991
21992 if test -e "/lib/modules/$(uname -r)/build"; then :
21993
21994 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
21995
21996 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
21997
21998 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
21999
22000 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
22001
22002 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
22003
22004 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
22005
22006 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
22007
22008 else
22009
22010 kernelbuild=${kernelsrc}
22011
22012 fi
22013
22014 fi
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
22016 $as_echo "$kernelbuild" >&6; }
22017
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
22019 $as_echo_n "checking kernel source version... " >&6; }
22020 utsrelease1=$kernelbuild/include/linux/version.h
22021 utsrelease2=$kernelbuild/include/linux/utsrelease.h
22022 utsrelease3=$kernelbuild/include/generated/utsrelease.h
22023 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
22024
22025 utsrelease=linux/version.h
22026
22027 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
22028
22029 utsrelease=linux/utsrelease.h
22030
22031 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
22032
22033 utsrelease=generated/utsrelease.h
22034
22035 fi
22036
22037 if test "$utsrelease"; then :
22038
22039 kernsrcver=`(echo "#include <$utsrelease>";
22040 echo "kernsrcver=UTS_RELEASE") |
22041 cpp -I $kernelbuild/include |
22042 grep "^kernsrcver=" | cut -d \" -f 2`
22043
22044 if test -z "$kernsrcver"; then :
22045
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
22047 $as_echo "Not found" >&6; }
22048 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
22049
22050 fi
22051
22052 else
22053
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
22055 $as_echo "Not found" >&6; }
22056 if test "x$enable_linux_builtin" != xyes; then
22057 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
22058 else
22059 as_fn_error $? "
22060 *** Cannot find UTS_RELEASE definition.
22061 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
22062 fi
22063
22064 fi
22065
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
22067 $as_echo "$kernsrcver" >&6; }
22068
22069 LINUX=${kernelsrc}
22070 LINUX_OBJ=${kernelbuild}
22071 LINUX_VERSION=${kernsrcver}
22072
22073
22074
22075
22076
22077
22078 modpost=$LINUX/scripts/Makefile.modpost
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
22080 $as_echo_n "checking kernel file name for module symbols... " >&6; }
22081 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
22082
22083 if grep -q Modules.symvers $modpost; then :
22084
22085 LINUX_SYMBOLS=Modules.symvers
22086
22087 else
22088
22089 LINUX_SYMBOLS=Module.symvers
22090
22091 fi
22092
22093 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
22094
22095 as_fn_error $? "
22096 *** Please make sure the kernel devel package for your distribution
22097 *** is installed. If you are building with a custom kernel, make sure the
22098 *** kernel is configured, built, and the '--with-linux=PATH' configure
22099 *** option refers to the location of the kernel source." "$LINENO" 5
22100
22101 fi
22102
22103 else
22104
22105 LINUX_SYMBOLS=NONE
22106
22107 fi
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
22109 $as_echo "$LINUX_SYMBOLS" >&6; }
22110
22111
22112
22113
22114
22115 # Check whether --with-spl was given.
22116 if test "${with_spl+set}" = set; then :
22117 withval=$with_spl; splsrc="$withval"
22118 fi
22119
22120
22121
22122 # Check whether --with-spl-obj was given.
22123 if test "${with_spl_obj+set}" = set; then :
22124 withval=$with_spl_obj; splbuild="$withval"
22125 fi
22126
22127
22128
22129 # Check whether --with-spl-timeout was given.
22130 if test "${with_spl_timeout+set}" = set; then :
22131 withval=$with_spl_timeout; timeout="$withval"
22132 else
22133 timeout=0
22134 fi
22135
22136
22137 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
22138 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
22139 splsrc2="/usr/local/src/spl-${VERSION}"
22140 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
22141 splsrc4="/usr/src/spl-${VERSION}"
22142 splsrc5="../spl/"
22143 splsrc6="$LINUX"
22144
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
22146 $as_echo_n "checking spl source directory... " >&6; }
22147 if test -z "${splsrc}"; then :
22148
22149 if test -e "${splsrc0}/spl.release.in"; then :
22150
22151 splsrc=${splsrc0}
22152
22153 elif test -e "${splsrc1}/spl.release.in"; then :
22154
22155 splsrc=${splsrc1}
22156
22157 elif test -e "${splsrc2}/spl.release.in"; then :
22158
22159 splsrc=${splsrc2}
22160
22161 elif test -e "${splsrc3}/spl.release.in"; then :
22162
22163 splsrc=$(readlink -f "${splsrc3}")
22164
22165 elif test -e "${splsrc4}/spl.release.in" ; then :
22166
22167 splsrc=${splsrc4}
22168
22169 elif test -e "${splsrc5}/spl.release.in"; then :
22170
22171 splsrc=$(readlink -f "${splsrc5}")
22172
22173 elif test -e "${splsrc6}/spl.release.in" ; then :
22174
22175 splsrc=${splsrc6}
22176
22177 else
22178
22179 splsrc="Not found"
22180
22181 fi
22182
22183 else
22184
22185 if test "$splsrc" = "NONE"; then :
22186
22187 splbuild=NONE
22188 splsrcver=NONE
22189
22190 fi
22191
22192 fi
22193
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
22195 $as_echo "$splsrc" >&6; }
22196 if test ! -e "$splsrc/spl.release.in"; then :
22197
22198 as_fn_error $? "
22199 *** Please make sure the kmod spl devel package for your distribution
22200 *** is installed then try again. If that fails you can specify the
22201 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
22202
22203 fi
22204
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
22206 $as_echo_n "checking spl build directory... " >&6; }
22207 while true; do
22208 if test -z "$splbuild"; then :
22209
22210 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
22211
22212 splbuild="${splsrc}/${LINUX_VERSION}"
22213
22214 elif test -e "${splsrc}/spl_config.h" ; then :
22215
22216 splbuild="${splsrc}"
22217
22218 elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then :
22219
22220 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
22221
22222 else
22223
22224 splbuild="Not found"
22225
22226 fi
22227
22228 fi
22229 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
22230
22231 break;
22232
22233 else
22234
22235 sleep 1
22236 timeout=$((timeout-1))
22237
22238 fi
22239 done
22240
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
22242 $as_echo "$splbuild" >&6; }
22243 if ! test -e "$splbuild/spl_config.h"; then :
22244
22245 as_fn_error $? "
22246 *** Please make sure the kmod spl devel <kernel> package for your
22247 *** distribution is installed then try again. If that fails you
22248 *** can specify the location of the spl objects with the
22249 *** '--with-spl-obj=PATH' option." "$LINENO" 5
22250
22251 fi
22252
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
22254 $as_echo_n "checking spl source version... " >&6; }
22255 if test -r $splbuild/spl_config.h &&
22256 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
22257
22258
22259 splsrcver=`(echo "#include <spl_config.h>";
22260 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
22261 cpp -I $splbuild |
22262 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
22263
22264 fi
22265
22266 if test -z "$splsrcver"; then :
22267
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
22269 $as_echo "Not found" >&6; }
22270 as_fn_error $? "
22271 *** Cannot determine the version of the spl source.
22272 *** Please prepare the spl source before running this script" "$LINENO" 5
22273
22274 fi
22275
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
22277 $as_echo "$splsrcver" >&6; }
22278
22279 SPL=${splsrc}
22280 SPL_OBJ=${splbuild}
22281 SPL_VERSION=${splsrcver}
22282
22283
22284
22285
22286
22287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
22288 $as_echo_n "checking spl file name for module symbols... " >&6; }
22289 SPL_SYMBOLS=NONE
22290
22291 while true; do
22292 if test -r $SPL_OBJ/Module.symvers; then :
22293
22294 SPL_SYMBOLS=Module.symvers
22295
22296 elif test -r $SPL_OBJ/Modules.symvers; then :
22297
22298 SPL_SYMBOLS=Modules.symvers
22299
22300 elif test -r $SPL_OBJ/module/Module.symvers; then :
22301
22302 SPL_SYMBOLS=Module.symvers
22303
22304 elif test -r $SPL_OBJ/module/Modules.symvers; then :
22305
22306 SPL_SYMBOLS=Modules.symvers
22307
22308 fi
22309
22310 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
22311
22312 break;
22313
22314 else
22315
22316 sleep 1
22317 timeout=$((timeout-1))
22318
22319 fi
22320 done
22321
22322 if test "$SPL_SYMBOLS" = NONE; then :
22323
22324 SPL_SYMBOLS=$LINUX_SYMBOLS
22325
22326 fi
22327
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
22329 $as_echo "$SPL_SYMBOLS" >&6; }
22330
22331
22332
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
22334 $as_echo_n "checking whether modules can be built... " >&6; }
22335
22336
22337 cat confdefs.h - <<_ACEOF >conftest.c
22338
22339
22340 int
22341 main (void)
22342 {
22343
22344 ;
22345 return 0;
22346 }
22347
22348 _ACEOF
22349
22350
22351
22352 cat - <<_ACEOF >conftest.h
22353
22354 _ACEOF
22355
22356
22357 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22358 echo "obj-m := conftest.o" >build/Makefile
22359 modpost_flag=''
22360 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22361 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22363 (eval $ac_try) 2>&5
22364 ac_status=$?
22365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22366 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22368 (eval $ac_try) 2>&5
22369 ac_status=$?
22370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22371 test $ac_status = 0; }; }; then :
22372
22373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22374 $as_echo "yes" >&6; }
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:${as_lineno-$LINENO}: result: no" >&5
22381 $as_echo "no" >&6; }
22382 if test "x$enable_linux_builtin" != xyes; then
22383 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
22384 else
22385 as_fn_error $? "
22386 *** Unable to build an empty module.
22387 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
22388 fi
22389
22390
22391
22392 fi
22393 rm -Rf build
22394
22395
22396
22397
22398 if test "x$cross_compiling" != xyes; then :
22399
22400 if test "$cross_compiling" = yes; then :
22401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22403 as_fn_error $? "cannot run test program while cross compiling
22404 See \`config.log' for more details" "$LINENO" 5; }
22405 else
22406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22407 /* end confdefs.h. */
22408
22409
22410 #include "$LINUX/include/linux/license.h"
22411
22412 int
22413 main ()
22414 {
22415
22416 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
22417
22418 ;
22419 return 0;
22420 }
22421
22422 _ACEOF
22423 if ac_fn_c_try_run "$LINENO"; then :
22424
22425
22426 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
22427
22428
22429 fi
22430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22431 conftest.$ac_objext conftest.beam conftest.$ac_ext
22432 fi
22433
22434
22435 fi
22436
22437
22438
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
22440 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
22441
22442
22443 cat confdefs.h - <<_ACEOF >conftest.c
22444
22445
22446 #include <linux/module.h>
22447
22448 int
22449 main (void)
22450 {
22451
22452 #ifndef CONFIG_DEBUG_LOCK_ALLOC
22453 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
22454 #endif
22455
22456 ;
22457 return 0;
22458 }
22459
22460 _ACEOF
22461
22462
22463
22464 cat - <<_ACEOF >conftest.h
22465
22466 _ACEOF
22467
22468
22469 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22470 echo "obj-m := conftest.o" >build/Makefile
22471 modpost_flag=''
22472 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22473 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22475 (eval $ac_try) 2>&5
22476 ac_status=$?
22477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22478 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22480 (eval $ac_try) 2>&5
22481 ac_status=$?
22482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22483 test $ac_status = 0; }; }; then :
22484
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22486 $as_echo "yes" >&6; }
22487
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
22489 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
22490 tmp_flags="$EXTRA_KCFLAGS"
22491
22492
22493 cat confdefs.h - <<_ACEOF >conftest.c
22494
22495
22496 #include <linux/module.h>
22497 #include <linux/mutex.h>
22498
22499 MODULE_LICENSE("$ZFS_META_LICENSE");
22500
22501 int
22502 main (void)
22503 {
22504
22505 struct mutex lock;
22506
22507 mutex_init(&lock);
22508 mutex_lock(&lock);
22509 mutex_unlock(&lock);
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\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22530 (eval $ac_try) 2>&5
22531 ac_status=$?
22532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22533 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22535 (eval $ac_try) 2>&5
22536 ac_status=$?
22537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22538 test $ac_status = 0; }; }; then :
22539
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22541 $as_echo "no" >&6; }
22542
22543 else
22544 $as_echo "$as_me: failed program was:" >&5
22545 sed 's/^/| /' conftest.$ac_ext >&5
22546
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22548 $as_echo "yes" >&6; }
22549 as_fn_error $? "
22550 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
22551 *** with the CDDL license and will prevent the module linking stage
22552 *** from succeeding. You must rebuild your kernel without this
22553 *** option enabled." "$LINENO" 5
22554
22555
22556
22557 fi
22558 rm -Rf build
22559
22560
22561 EXTRA_KCFLAGS="$tmp_flags"
22562
22563
22564 else
22565 $as_echo "$as_me: failed program was:" >&5
22566 sed 's/^/| /' conftest.$ac_ext >&5
22567
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22569 $as_echo "no" >&6; }
22570
22571
22572
22573
22574 fi
22575 rm -Rf build
22576
22577
22578
22579
22580
22581
22582 tmp_flags="$EXTRA_KCFLAGS"
22583 EXTRA_KCFLAGS="-I\$(src)"
22584
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
22586 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
22587
22588
22589 cat confdefs.h - <<_ACEOF >conftest.c
22590
22591
22592 #include <linux/module.h>
22593 MODULE_LICENSE(ZFS_META_LICENSE);
22594
22595 #define CREATE_TRACE_POINTS
22596 #include "conftest.h"
22597
22598 int
22599 main (void)
22600 {
22601
22602 trace_zfs_autoconf_event_one(1UL);
22603 trace_zfs_autoconf_event_two(2UL);
22604
22605 ;
22606 return 0;
22607 }
22608
22609 _ACEOF
22610
22611
22612
22613 cat - <<_ACEOF >conftest.h
22614
22615 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
22616 #define _CONFTEST_H
22617
22618 #undef TRACE_SYSTEM
22619 #define TRACE_SYSTEM zfs
22620 #include <linux/tracepoint.h>
22621
22622 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
22623 TP_PROTO(unsigned long i),
22624 TP_ARGS(i),
22625 TP_STRUCT__entry(
22626 __field(unsigned long, i)
22627 ),
22628 TP_fast_assign(
22629 __entry->i = i;
22630 ),
22631 TP_printk("i = %lu", __entry->i)
22632 );
22633
22634 #define DEFINE_AUTOCONF_EVENT(name) \
22635 DEFINE_EVENT(zfs_autoconf_event_class, name, \
22636 TP_PROTO(unsigned long i), \
22637 TP_ARGS(i))
22638 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
22639 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
22640
22641 #endif /* _CONFTEST_H */
22642
22643 #undef TRACE_INCLUDE_PATH
22644 #define TRACE_INCLUDE_PATH .
22645 #define TRACE_INCLUDE_FILE conftest
22646 #include <trace/define_trace.h>
22647
22648 _ACEOF
22649
22650
22651 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22652 echo "obj-m := conftest.o" >build/Makefile
22653 modpost_flag=''
22654 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22655 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22657 (eval $ac_try) 2>&5
22658 ac_status=$?
22659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22660 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22662 (eval $ac_try) 2>&5
22663 ac_status=$?
22664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22665 test $ac_status = 0; }; }; then :
22666
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22668 $as_echo "yes" >&6; }
22669
22670 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
22671
22672
22673 else
22674 $as_echo "$as_me: failed program was:" >&5
22675 sed 's/^/| /' conftest.$ac_ext >&5
22676
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22678 $as_echo "no" >&6; }
22679
22680
22681
22682 fi
22683 rm -Rf build
22684
22685
22686 EXTRA_KCFLAGS="$tmp_flags"
22687
22688
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
22690 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
22691
22692
22693 cat confdefs.h - <<_ACEOF >conftest.c
22694
22695
22696 #include <linux/sched.h>
22697
22698 int
22699 main (void)
22700 {
22701
22702 current->bio_tail = (struct bio **) NULL;
22703
22704 ;
22705 return 0;
22706 }
22707
22708 _ACEOF
22709
22710
22711
22712 cat - <<_ACEOF >conftest.h
22713
22714 _ACEOF
22715
22716
22717 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22718 echo "obj-m := conftest.o" >build/Makefile
22719 modpost_flag=''
22720 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22721 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22723 (eval $ac_try) 2>&5
22724 ac_status=$?
22725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22726 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22728 (eval $ac_try) 2>&5
22729 ac_status=$?
22730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22731 test $ac_status = 0; }; }; then :
22732
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22734 $as_echo "yes" >&6; }
22735
22736 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
22737
22738
22739 else
22740 $as_echo "$as_me: failed program was:" >&5
22741 sed 's/^/| /' conftest.$ac_ext >&5
22742
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22744 $as_echo "no" >&6; }
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
22746 $as_echo_n "checking whether current->bio_list exists... " >&6; }
22747
22748
22749 cat confdefs.h - <<_ACEOF >conftest.c
22750
22751
22752 #include <linux/sched.h>
22753
22754 int
22755 main (void)
22756 {
22757
22758 current->bio_list = (struct bio_list *) NULL;
22759
22760 ;
22761 return 0;
22762 }
22763
22764 _ACEOF
22765
22766
22767
22768 cat - <<_ACEOF >conftest.h
22769
22770 _ACEOF
22771
22772
22773 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22774 echo "obj-m := conftest.o" >build/Makefile
22775 modpost_flag=''
22776 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22777 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22779 (eval $ac_try) 2>&5
22780 ac_status=$?
22781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22782 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22784 (eval $ac_try) 2>&5
22785 ac_status=$?
22786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22787 test $ac_status = 0; }; }; then :
22788
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22790 $as_echo "yes" >&6; }
22791
22792 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
22793
22794
22795 else
22796 $as_echo "$as_me: failed program was:" >&5
22797 sed 's/^/| /' conftest.$ac_ext >&5
22798
22799 as_fn_error $? "no - Please file a bug report at
22800 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
22801
22802
22803
22804 fi
22805 rm -Rf build
22806
22807
22808
22809
22810
22811 fi
22812 rm -Rf build
22813
22814
22815
22816
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
22818 $as_echo_n "checking block device operation prototypes... " >&6; }
22819 tmp_flags="$EXTRA_KCFLAGS"
22820 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
22821
22822
22823 cat confdefs.h - <<_ACEOF >conftest.c
22824
22825
22826 #include <linux/blkdev.h>
22827
22828 int blk_open(struct block_device *bdev, fmode_t mode)
22829 { return 0; }
22830 int blk_ioctl(struct block_device *bdev, fmode_t mode,
22831 unsigned x, unsigned long y) { return 0; }
22832 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
22833 unsigned x, unsigned long y) { return 0; }
22834
22835 static const struct block_device_operations
22836 bops __attribute__ ((unused)) = {
22837 .open = blk_open,
22838 .release = NULL,
22839 .ioctl = blk_ioctl,
22840 .compat_ioctl = blk_compat_ioctl,
22841 };
22842
22843 int
22844 main (void)
22845 {
22846
22847
22848 ;
22849 return 0;
22850 }
22851
22852 _ACEOF
22853
22854
22855
22856 cat - <<_ACEOF >conftest.h
22857
22858 _ACEOF
22859
22860
22861 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22862 echo "obj-m := conftest.o" >build/Makefile
22863 modpost_flag=''
22864 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22865 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22867 (eval $ac_try) 2>&5
22868 ac_status=$?
22869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22870 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22872 (eval $ac_try) 2>&5
22873 ac_status=$?
22874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22875 test $ac_status = 0; }; }; then :
22876
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
22878 $as_echo "struct block_device" >&6; }
22879
22880 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
22881
22882
22883 else
22884 $as_echo "$as_me: failed program was:" >&5
22885 sed 's/^/| /' conftest.$ac_ext >&5
22886
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
22888 $as_echo "struct inode" >&6; }
22889
22890
22891
22892 fi
22893 rm -Rf build
22894
22895
22896 EXTRA_KCFLAGS="$tmp_flags"
22897
22898
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
22900 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
22901 tmp_flags="$EXTRA_KCFLAGS"
22902 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
22903
22904
22905 cat confdefs.h - <<_ACEOF >conftest.c
22906
22907
22908 #include <linux/blkdev.h>
22909
22910 void blk_release(struct gendisk *g, fmode_t mode) { return; }
22911
22912 static const struct block_device_operations
22913 bops __attribute__ ((unused)) = {
22914 .open = NULL,
22915 .release = blk_release,
22916 .ioctl = NULL,
22917 .compat_ioctl = NULL,
22918 };
22919
22920 int
22921 main (void)
22922 {
22923
22924
22925 ;
22926 return 0;
22927 }
22928
22929 _ACEOF
22930
22931
22932
22933 cat - <<_ACEOF >conftest.h
22934
22935 _ACEOF
22936
22937
22938 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22939 echo "obj-m := conftest.o" >build/Makefile
22940 modpost_flag=''
22941 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22942 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22944 (eval $ac_try) 2>&5
22945 ac_status=$?
22946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22947 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22949 (eval $ac_try) 2>&5
22950 ac_status=$?
22951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22952 test $ac_status = 0; }; }; then :
22953
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
22955 $as_echo "void" >&6; }
22956
22957 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
22958
22959
22960 else
22961 $as_echo "$as_me: failed program was:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22963
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
22965 $as_echo "int" >&6; }
22966
22967
22968
22969 fi
22970 rm -Rf build
22971
22972
22973 EXTRA_KCFLAGS="$tmp_flags"
22974
22975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
22976 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
22977
22978
22979 cat confdefs.h - <<_ACEOF >conftest.c
22980
22981
22982 #include <linux/types.h>
22983
22984 int
22985 main (void)
22986 {
22987
22988 fmode_t *ptr __attribute__ ((unused));
22989
22990 ;
22991 return 0;
22992 }
22993
22994 _ACEOF
22995
22996
22997
22998 cat - <<_ACEOF >conftest.h
22999
23000 _ACEOF
23001
23002
23003 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23004 echo "obj-m := conftest.o" >build/Makefile
23005 modpost_flag=''
23006 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23007 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23009 (eval $ac_try) 2>&5
23010 ac_status=$?
23011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23012 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23014 (eval $ac_try) 2>&5
23015 ac_status=$?
23016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23017 test $ac_status = 0; }; }; then :
23018
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23020 $as_echo "yes" >&6; }
23021
23022 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
23023
23024
23025 else
23026 $as_echo "$as_me: failed program was:" >&5
23027 sed 's/^/| /' conftest.$ac_ext >&5
23028
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23030 $as_echo "no" >&6; }
23031
23032
23033
23034 fi
23035 rm -Rf build
23036
23037
23038
23039
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
23041 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
23042
23043
23044 cat confdefs.h - <<_ACEOF >conftest.c
23045
23046
23047 #include <linux/kobject.h>
23048
23049 int
23050 main (void)
23051 {
23052
23053 int val __attribute__ ((unused));
23054 val = KOBJ_NAME_LEN;
23055
23056 ;
23057 return 0;
23058 }
23059
23060 _ACEOF
23061
23062
23063
23064 cat - <<_ACEOF >conftest.h
23065
23066 _ACEOF
23067
23068
23069 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23070 echo "obj-m := conftest.o" >build/Makefile
23071 modpost_flag=''
23072 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23073 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23075 (eval $ac_try) 2>&5
23076 ac_status=$?
23077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23078 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23080 (eval $ac_try) 2>&5
23081 ac_status=$?
23082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23083 test $ac_status = 0; }; }; then :
23084
23085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23086 $as_echo "yes" >&6; }
23087
23088 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
23089
23090
23091 else
23092 $as_echo "$as_me: failed program was:" >&5
23093 sed 's/^/| /' conftest.$ac_ext >&5
23094
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23096 $as_echo "no" >&6; }
23097
23098
23099
23100 fi
23101 rm -Rf build
23102
23103
23104
23105
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
23107 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
23108
23109
23110 cat confdefs.h - <<_ACEOF >conftest.c
23111
23112
23113 #include <linux/fs.h>
23114
23115 int
23116 main (void)
23117 {
23118
23119 struct block_device *bdev = NULL;
23120 (void) blkdev_get(bdev, 0, NULL);
23121
23122 ;
23123 return 0;
23124 }
23125
23126 _ACEOF
23127
23128
23129
23130 cat - <<_ACEOF >conftest.h
23131
23132 _ACEOF
23133
23134
23135 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23136 echo "obj-m := conftest.o" >build/Makefile
23137 modpost_flag=''
23138 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23139 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23141 (eval $ac_try) 2>&5
23142 ac_status=$?
23143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23144 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23146 (eval $ac_try) 2>&5
23147 ac_status=$?
23148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23149 test $ac_status = 0; }; }; then :
23150
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23152 $as_echo "yes" >&6; }
23153
23154 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
23155
23156
23157 else
23158 $as_echo "$as_me: failed program was:" >&5
23159 sed 's/^/| /' conftest.$ac_ext >&5
23160
23161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23162 $as_echo "no" >&6; }
23163
23164
23165
23166 fi
23167 rm -Rf build
23168
23169
23170
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
23172 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
23173
23174
23175
23176 cat confdefs.h - <<_ACEOF >conftest.c
23177
23178
23179 #include <linux/fs.h>
23180
23181 int
23182 main (void)
23183 {
23184
23185 blkdev_get_by_path(NULL, 0, NULL);
23186
23187 ;
23188 return 0;
23189 }
23190
23191 _ACEOF
23192
23193
23194
23195 cat - <<_ACEOF >conftest.h
23196
23197 _ACEOF
23198
23199
23200 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23201 echo "obj-m := conftest.o" >build/Makefile
23202 modpost_flag=''
23203 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23204 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23206 (eval $ac_try) 2>&5
23207 ac_status=$?
23208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23209 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23211 (eval $ac_try) 2>&5
23212 ac_status=$?
23213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23214 test $ac_status = 0; }; }; then :
23215 rc=0
23216 else
23217 $as_echo "$as_me: failed program was:" >&5
23218 sed 's/^/| /' conftest.$ac_ext >&5
23219 rc=1
23220
23221
23222 fi
23223 rm -Rf build
23224
23225
23226 if test $rc -ne 0; then :
23227
23228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23229 $as_echo "no" >&6; }
23230
23231 else
23232 if test "x$enable_linux_builtin" != xyes; then
23233
23234 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
23235 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23236 rc=$?
23237 if test $rc -ne 0; then
23238 export=0
23239 for file in fs/block_dev.c; do
23240 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
23241 "$LINUX/$file" 2>/dev/null
23242 rc=$?
23243 if test $rc -eq 0; then
23244 export=1
23245 break;
23246 fi
23247 done
23248 if test $export -eq 0; then :
23249 rc=1
23250 else :
23251 rc=0
23252 fi
23253 else :
23254 rc=0
23255 fi
23256
23257 fi
23258 if test $rc -ne 0; then :
23259
23260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23261 $as_echo "no" >&6; }
23262
23263 else :
23264
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23266 $as_echo "yes" >&6; }
23267
23268 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
23269
23270
23271 fi
23272 fi
23273
23274
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
23276 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
23277
23278
23279
23280 cat confdefs.h - <<_ACEOF >conftest.c
23281
23282
23283 #include <linux/fs.h>
23284
23285 int
23286 main (void)
23287 {
23288
23289 open_bdev_exclusive(NULL, 0, NULL);
23290
23291 ;
23292 return 0;
23293 }
23294
23295 _ACEOF
23296
23297
23298
23299 cat - <<_ACEOF >conftest.h
23300
23301 _ACEOF
23302
23303
23304 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23305 echo "obj-m := conftest.o" >build/Makefile
23306 modpost_flag=''
23307 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23308 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23310 (eval $ac_try) 2>&5
23311 ac_status=$?
23312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23313 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23315 (eval $ac_try) 2>&5
23316 ac_status=$?
23317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23318 test $ac_status = 0; }; }; then :
23319 rc=0
23320 else
23321 $as_echo "$as_me: failed program was:" >&5
23322 sed 's/^/| /' conftest.$ac_ext >&5
23323 rc=1
23324
23325
23326 fi
23327 rm -Rf build
23328
23329
23330 if test $rc -ne 0; then :
23331
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23333 $as_echo "no" >&6; }
23334
23335 else
23336 if test "x$enable_linux_builtin" != xyes; then
23337
23338 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
23339 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23340 rc=$?
23341 if test $rc -ne 0; then
23342 export=0
23343 for file in fs/block_dev.c; do
23344 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
23345 "$LINUX/$file" 2>/dev/null
23346 rc=$?
23347 if test $rc -eq 0; then
23348 export=1
23349 break;
23350 fi
23351 done
23352 if test $export -eq 0; then :
23353 rc=1
23354 else :
23355 rc=0
23356 fi
23357 else :
23358 rc=0
23359 fi
23360
23361 fi
23362 if test $rc -ne 0; then :
23363
23364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23365 $as_echo "no" >&6; }
23366
23367 else :
23368
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23370 $as_echo "yes" >&6; }
23371
23372 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
23373
23374
23375 fi
23376 fi
23377
23378
23379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
23380 $as_echo_n "checking whether lookup_bdev() is available... " >&6; }
23381
23382
23383
23384 cat confdefs.h - <<_ACEOF >conftest.c
23385
23386
23387 #include <linux/fs.h>
23388
23389 int
23390 main (void)
23391 {
23392
23393 lookup_bdev(NULL);
23394
23395 ;
23396 return 0;
23397 }
23398
23399 _ACEOF
23400
23401
23402
23403 cat - <<_ACEOF >conftest.h
23404
23405 _ACEOF
23406
23407
23408 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23409 echo "obj-m := conftest.o" >build/Makefile
23410 modpost_flag=''
23411 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23412 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23414 (eval $ac_try) 2>&5
23415 ac_status=$?
23416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23417 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23419 (eval $ac_try) 2>&5
23420 ac_status=$?
23421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23422 test $ac_status = 0; }; }; then :
23423 rc=0
23424 else
23425 $as_echo "$as_me: failed program was:" >&5
23426 sed 's/^/| /' conftest.$ac_ext >&5
23427 rc=1
23428
23429
23430 fi
23431 rm -Rf build
23432
23433
23434 if test $rc -ne 0; then :
23435
23436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23437 $as_echo "no" >&6; }
23438
23439 else
23440 if test "x$enable_linux_builtin" != xyes; then
23441
23442 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
23443 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23444 rc=$?
23445 if test $rc -ne 0; then
23446 export=0
23447 for file in fs/block_dev.c; do
23448 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
23449 "$LINUX/$file" 2>/dev/null
23450 rc=$?
23451 if test $rc -eq 0; then
23452 export=1
23453 break;
23454 fi
23455 done
23456 if test $export -eq 0; then :
23457 rc=1
23458 else :
23459 rc=0
23460 fi
23461 else :
23462 rc=0
23463 fi
23464
23465 fi
23466 if test $rc -ne 0; then :
23467
23468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23469 $as_echo "no" >&6; }
23470
23471 else :
23472
23473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23474 $as_echo "yes" >&6; }
23475
23476 $as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
23477
23478
23479 fi
23480 fi
23481
23482
23483
23484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
23485 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
23486
23487
23488 cat confdefs.h - <<_ACEOF >conftest.c
23489
23490
23491 #include <linux/buffer_head.h>
23492
23493 int
23494 main (void)
23495 {
23496
23497 struct block_device *bdev = NULL;
23498 invalidate_bdev(bdev);
23499
23500 ;
23501 return 0;
23502 }
23503
23504 _ACEOF
23505
23506
23507
23508 cat - <<_ACEOF >conftest.h
23509
23510 _ACEOF
23511
23512
23513 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23514 echo "obj-m := conftest.o" >build/Makefile
23515 modpost_flag=''
23516 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23517 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23519 (eval $ac_try) 2>&5
23520 ac_status=$?
23521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23522 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23524 (eval $ac_try) 2>&5
23525 ac_status=$?
23526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23527 test $ac_status = 0; }; }; then :
23528
23529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23530 $as_echo "yes" >&6; }
23531
23532 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
23533
23534
23535 else
23536 $as_echo "$as_me: failed program was:" >&5
23537 sed 's/^/| /' conftest.$ac_ext >&5
23538
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23540 $as_echo "no" >&6; }
23541
23542
23543
23544 fi
23545 rm -Rf build
23546
23547
23548
23549
23550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
23551 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
23552 tmp_flags="$EXTRA_KCFLAGS"
23553 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
23554
23555
23556 cat confdefs.h - <<_ACEOF >conftest.c
23557
23558
23559 #include <linux/blkdev.h>
23560
23561 int
23562 main (void)
23563 {
23564
23565 struct block_device *bdev = NULL;
23566 bdev_logical_block_size(bdev);
23567
23568 ;
23569 return 0;
23570 }
23571
23572 _ACEOF
23573
23574
23575
23576 cat - <<_ACEOF >conftest.h
23577
23578 _ACEOF
23579
23580
23581 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23582 echo "obj-m := conftest.o" >build/Makefile
23583 modpost_flag=''
23584 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23585 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23587 (eval $ac_try) 2>&5
23588 ac_status=$?
23589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23590 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23592 (eval $ac_try) 2>&5
23593 ac_status=$?
23594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23595 test $ac_status = 0; }; }; then :
23596
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23598 $as_echo "yes" >&6; }
23599
23600 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
23601
23602
23603 else
23604 $as_echo "$as_me: failed program was:" >&5
23605 sed 's/^/| /' conftest.$ac_ext >&5
23606
23607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23608 $as_echo "no" >&6; }
23609
23610
23611
23612 fi
23613 rm -Rf build
23614
23615
23616 EXTRA_KCFLAGS="$tmp_flags"
23617
23618
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
23620 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
23621 tmp_flags="$EXTRA_KCFLAGS"
23622 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
23623
23624
23625 cat confdefs.h - <<_ACEOF >conftest.c
23626
23627
23628 #include <linux/blkdev.h>
23629
23630 int
23631 main (void)
23632 {
23633
23634 struct block_device *bdev = NULL;
23635 bdev_physical_block_size(bdev);
23636
23637 ;
23638 return 0;
23639 }
23640
23641 _ACEOF
23642
23643
23644
23645 cat - <<_ACEOF >conftest.h
23646
23647 _ACEOF
23648
23649
23650 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23651 echo "obj-m := conftest.o" >build/Makefile
23652 modpost_flag=''
23653 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23654 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23656 (eval $ac_try) 2>&5
23657 ac_status=$?
23658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23659 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23661 (eval $ac_try) 2>&5
23662 ac_status=$?
23663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23664 test $ac_status = 0; }; }; then :
23665
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23667 $as_echo "yes" >&6; }
23668
23669 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
23670
23671
23672 else
23673 $as_echo "$as_me: failed program was:" >&5
23674 sed 's/^/| /' conftest.$ac_ext >&5
23675
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23677 $as_echo "no" >&6; }
23678
23679
23680
23681 fi
23682 rm -Rf build
23683
23684
23685 EXTRA_KCFLAGS="$tmp_flags"
23686
23687
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
23689 $as_echo_n "checking whether bio has bi_iter... " >&6; }
23690
23691
23692 cat confdefs.h - <<_ACEOF >conftest.c
23693
23694
23695 #include <linux/bio.h>
23696
23697 int
23698 main (void)
23699 {
23700
23701 struct bio bio;
23702 bio.bi_iter.bi_sector = 0;
23703
23704 ;
23705 return 0;
23706 }
23707
23708 _ACEOF
23709
23710
23711
23712 cat - <<_ACEOF >conftest.h
23713
23714 _ACEOF
23715
23716
23717 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23718 echo "obj-m := conftest.o" >build/Makefile
23719 modpost_flag=''
23720 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23721 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23723 (eval $ac_try) 2>&5
23724 ac_status=$?
23725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23726 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23728 (eval $ac_try) 2>&5
23729 ac_status=$?
23730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23731 test $ac_status = 0; }; }; then :
23732
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23734 $as_echo "yes" >&6; }
23735
23736 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
23737
23738
23739 else
23740 $as_echo "$as_me: failed program was:" >&5
23741 sed 's/^/| /' conftest.$ac_ext >&5
23742
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23744 $as_echo "no" >&6; }
23745
23746
23747
23748 fi
23749 rm -Rf build
23750
23751
23752
23753
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
23755 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
23756
23757
23758 cat confdefs.h - <<_ACEOF >conftest.c
23759
23760
23761 #include <linux/bio.h>
23762
23763 int
23764 main (void)
23765 {
23766
23767 int flags __attribute__ ((unused));
23768 flags = ((1 << BIO_RW_FAILFAST_DEV) |
23769 (1 << BIO_RW_FAILFAST_TRANSPORT) |
23770 (1 << BIO_RW_FAILFAST_DRIVER));
23771
23772 ;
23773 return 0;
23774 }
23775
23776 _ACEOF
23777
23778
23779
23780 cat - <<_ACEOF >conftest.h
23781
23782 _ACEOF
23783
23784
23785 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23786 echo "obj-m := conftest.o" >build/Makefile
23787 modpost_flag=''
23788 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23789 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23791 (eval $ac_try) 2>&5
23792 ac_status=$?
23793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23794 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23796 (eval $ac_try) 2>&5
23797 ac_status=$?
23798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23799 test $ac_status = 0; }; }; then :
23800
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23802 $as_echo "yes" >&6; }
23803
23804 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
23805
23806
23807 else
23808 $as_echo "$as_me: failed program was:" >&5
23809 sed 's/^/| /' conftest.$ac_ext >&5
23810
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23812 $as_echo "no" >&6; }
23813
23814
23815
23816 fi
23817 rm -Rf build
23818
23819
23820
23821
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
23823 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
23824
23825
23826 cat confdefs.h - <<_ACEOF >conftest.c
23827
23828
23829 #include <linux/bio.h>
23830
23831 int
23832 main (void)
23833 {
23834
23835 int flags __attribute__ ((unused));
23836 flags = REQ_FAILFAST_MASK;
23837
23838 ;
23839 return 0;
23840 }
23841
23842 _ACEOF
23843
23844
23845
23846 cat - <<_ACEOF >conftest.h
23847
23848 _ACEOF
23849
23850
23851 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23852 echo "obj-m := conftest.o" >build/Makefile
23853 modpost_flag=''
23854 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23855 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23857 (eval $ac_try) 2>&5
23858 ac_status=$?
23859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23860 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23862 (eval $ac_try) 2>&5
23863 ac_status=$?
23864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23865 test $ac_status = 0; }; }; then :
23866
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23868 $as_echo "yes" >&6; }
23869
23870 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
23871
23872
23873 else
23874 $as_echo "$as_me: failed program was:" >&5
23875 sed 's/^/| /' conftest.$ac_ext >&5
23876
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23878 $as_echo "no" >&6; }
23879
23880
23881
23882 fi
23883 rm -Rf build
23884
23885
23886
23887
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
23889 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
23890
23891
23892 cat confdefs.h - <<_ACEOF >conftest.c
23893
23894
23895 #include <linux/bio.h>
23896
23897 void wanted_end_io(struct bio *bio) { return; }
23898
23899 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
23900
23901 int
23902 main (void)
23903 {
23904
23905
23906 ;
23907 return 0;
23908 }
23909
23910 _ACEOF
23911
23912
23913
23914 cat - <<_ACEOF >conftest.h
23915
23916 _ACEOF
23917
23918
23919 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23920 echo "obj-m := conftest.o" >build/Makefile
23921 modpost_flag=''
23922 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23923 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23925 (eval $ac_try) 2>&5
23926 ac_status=$?
23927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23928 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23930 (eval $ac_try) 2>&5
23931 ac_status=$?
23932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23933 test $ac_status = 0; }; }; then :
23934
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23936 $as_echo "yes" >&6; }
23937
23938 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
23939
23940
23941 else
23942 $as_echo "$as_me: failed program was:" >&5
23943 sed 's/^/| /' conftest.$ac_ext >&5
23944
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23946 $as_echo "no" >&6; }
23947
23948
23949
23950 fi
23951 rm -Rf build
23952
23953
23954
23955
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
23957 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
23958
23959
23960 cat confdefs.h - <<_ACEOF >conftest.c
23961
23962
23963 #include <linux/bio.h>
23964
23965 int
23966 main (void)
23967 {
23968
23969 int flags __attribute__ ((unused));
23970 flags = BIO_RW_BARRIER;
23971
23972 ;
23973 return 0;
23974 }
23975
23976 _ACEOF
23977
23978
23979
23980 cat - <<_ACEOF >conftest.h
23981
23982 _ACEOF
23983
23984
23985 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23986 echo "obj-m := conftest.o" >build/Makefile
23987 modpost_flag=''
23988 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23989 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23991 (eval $ac_try) 2>&5
23992 ac_status=$?
23993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23994 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23996 (eval $ac_try) 2>&5
23997 ac_status=$?
23998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23999 test $ac_status = 0; }; }; then :
24000
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24002 $as_echo "yes" >&6; }
24003
24004 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
24005
24006
24007 else
24008 $as_echo "$as_me: failed program was:" >&5
24009 sed 's/^/| /' conftest.$ac_ext >&5
24010
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24012 $as_echo "no" >&6; }
24013
24014
24015
24016 fi
24017 rm -Rf build
24018
24019
24020
24021
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
24023 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
24024
24025
24026 cat confdefs.h - <<_ACEOF >conftest.c
24027
24028
24029 #include <linux/bio.h>
24030
24031 int
24032 main (void)
24033 {
24034
24035 int flags __attribute__ ((unused));
24036 flags = BIO_RW_DISCARD;
24037
24038 ;
24039 return 0;
24040 }
24041
24042 _ACEOF
24043
24044
24045
24046 cat - <<_ACEOF >conftest.h
24047
24048 _ACEOF
24049
24050
24051 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24052 echo "obj-m := conftest.o" >build/Makefile
24053 modpost_flag=''
24054 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24055 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24057 (eval $ac_try) 2>&5
24058 ac_status=$?
24059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24060 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24062 (eval $ac_try) 2>&5
24063 ac_status=$?
24064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24065 test $ac_status = 0; }; }; then :
24066
24067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24068 $as_echo "yes" >&6; }
24069
24070 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
24071
24072
24073 else
24074 $as_echo "$as_me: failed program was:" >&5
24075 sed 's/^/| /' conftest.$ac_ext >&5
24076
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24078 $as_echo "no" >&6; }
24079
24080
24081
24082 fi
24083 rm -Rf build
24084
24085
24086
24087
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
24089 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
24090 tmp_flags="$EXTRA_KCFLAGS"
24091 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24092
24093
24094 cat confdefs.h - <<_ACEOF >conftest.c
24095
24096
24097 #include <linux/blkdev.h>
24098
24099 int
24100 main (void)
24101 {
24102
24103 struct request_queue *q = NULL;
24104 (void) blk_queue_flush(q, REQ_FLUSH);
24105
24106 ;
24107 return 0;
24108 }
24109
24110 _ACEOF
24111
24112
24113
24114 cat - <<_ACEOF >conftest.h
24115
24116 _ACEOF
24117
24118
24119 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24120 echo "obj-m := conftest.o" >build/Makefile
24121 modpost_flag=''
24122 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24123 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24125 (eval $ac_try) 2>&5
24126 ac_status=$?
24127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24128 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24130 (eval $ac_try) 2>&5
24131 ac_status=$?
24132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24133 test $ac_status = 0; }; }; then :
24134
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24136 $as_echo "yes" >&6; }
24137
24138 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
24139
24140
24141 else
24142 $as_echo "$as_me: failed program was:" >&5
24143 sed 's/^/| /' conftest.$ac_ext >&5
24144
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24146 $as_echo "no" >&6; }
24147
24148
24149
24150 fi
24151 rm -Rf build
24152
24153
24154
24155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
24156 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
24157
24158
24159 cat confdefs.h - <<_ACEOF >conftest.c
24160
24161
24162 #include <linux/module.h>
24163 #include <linux/blkdev.h>
24164
24165 MODULE_LICENSE("$ZFS_META_LICENSE");
24166
24167 int
24168 main (void)
24169 {
24170
24171 struct request_queue *q = NULL;
24172 (void) blk_queue_flush(q, REQ_FLUSH);
24173
24174 ;
24175 return 0;
24176 }
24177
24178 _ACEOF
24179
24180
24181
24182 cat - <<_ACEOF >conftest.h
24183
24184 _ACEOF
24185
24186
24187 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24188 echo "obj-m := conftest.o" >build/Makefile
24189 modpost_flag=''
24190 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24191 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24193 (eval $ac_try) 2>&5
24194 ac_status=$?
24195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24196 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24198 (eval $ac_try) 2>&5
24199 ac_status=$?
24200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24201 test $ac_status = 0; }; }; then :
24202
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24204 $as_echo "no" >&6; }
24205
24206 else
24207 $as_echo "$as_me: failed program was:" >&5
24208 sed 's/^/| /' conftest.$ac_ext >&5
24209
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24211 $as_echo "yes" >&6; }
24212
24213 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
24214
24215
24216
24217
24218 fi
24219 rm -Rf build
24220
24221
24222 EXTRA_KCFLAGS="$tmp_flags"
24223
24224
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
24226 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
24227 tmp_flags="$EXTRA_KCFLAGS"
24228 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24229
24230
24231 cat confdefs.h - <<_ACEOF >conftest.c
24232
24233
24234 #include <linux/blkdev.h>
24235
24236 int
24237 main (void)
24238 {
24239
24240 struct request_queue *q = NULL;
24241 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
24242
24243 ;
24244 return 0;
24245 }
24246
24247 _ACEOF
24248
24249
24250
24251 cat - <<_ACEOF >conftest.h
24252
24253 _ACEOF
24254
24255
24256 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24257 echo "obj-m := conftest.o" >build/Makefile
24258 modpost_flag=''
24259 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24260 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24262 (eval $ac_try) 2>&5
24263 ac_status=$?
24264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24265 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24267 (eval $ac_try) 2>&5
24268 ac_status=$?
24269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24270 test $ac_status = 0; }; }; then :
24271
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24273 $as_echo "yes" >&6; }
24274
24275 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
24276
24277
24278 else
24279 $as_echo "$as_me: failed program was:" >&5
24280 sed 's/^/| /' conftest.$ac_ext >&5
24281
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24283 $as_echo "no" >&6; }
24284
24285
24286
24287 fi
24288 rm -Rf build
24289
24290
24291 EXTRA_KCFLAGS="$tmp_flags"
24292
24293
24294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
24295 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
24296 tmp_flags="$EXTRA_KCFLAGS"
24297 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24298
24299
24300 cat confdefs.h - <<_ACEOF >conftest.c
24301
24302
24303 #include <linux/blkdev.h>
24304
24305 int
24306 main (void)
24307 {
24308
24309 struct request_queue *q = NULL;
24310 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
24311
24312 ;
24313 return 0;
24314 }
24315
24316 _ACEOF
24317
24318
24319
24320 cat - <<_ACEOF >conftest.h
24321
24322 _ACEOF
24323
24324
24325 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24326 echo "obj-m := conftest.o" >build/Makefile
24327 modpost_flag=''
24328 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24329 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24331 (eval $ac_try) 2>&5
24332 ac_status=$?
24333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24334 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24336 (eval $ac_try) 2>&5
24337 ac_status=$?
24338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24339 test $ac_status = 0; }; }; then :
24340
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24342 $as_echo "yes" >&6; }
24343
24344 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
24345
24346
24347 else
24348 $as_echo "$as_me: failed program was:" >&5
24349 sed 's/^/| /' conftest.$ac_ext >&5
24350
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24352 $as_echo "no" >&6; }
24353
24354
24355
24356 fi
24357 rm -Rf build
24358
24359
24360 EXTRA_KCFLAGS="$tmp_flags"
24361
24362
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
24364 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
24365 tmp_flags="$EXTRA_KCFLAGS"
24366 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24367
24368
24369 cat confdefs.h - <<_ACEOF >conftest.c
24370
24371
24372 #include <linux/blkdev.h>
24373
24374 int
24375 main (void)
24376 {
24377
24378 struct gendisk *disk = NULL;
24379 (void) get_disk_ro(disk);
24380
24381 ;
24382 return 0;
24383 }
24384
24385 _ACEOF
24386
24387
24388
24389 cat - <<_ACEOF >conftest.h
24390
24391 _ACEOF
24392
24393
24394 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24395 echo "obj-m := conftest.o" >build/Makefile
24396 modpost_flag=''
24397 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24398 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24400 (eval $ac_try) 2>&5
24401 ac_status=$?
24402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24403 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24405 (eval $ac_try) 2>&5
24406 ac_status=$?
24407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24408 test $ac_status = 0; }; }; then :
24409
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24411 $as_echo "yes" >&6; }
24412
24413 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
24414
24415
24416 else
24417 $as_echo "$as_me: failed program was:" >&5
24418 sed 's/^/| /' conftest.$ac_ext >&5
24419
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24421 $as_echo "no" >&6; }
24422
24423
24424
24425 fi
24426 rm -Rf build
24427
24428
24429 EXTRA_KCFLAGS="$tmp_flags"
24430
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
24432 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
24433
24434
24435
24436 cat confdefs.h - <<_ACEOF >conftest.c
24437
24438
24439 #include <linux/genhd.h>
24440
24441 int
24442 main (void)
24443 {
24444
24445 get_gendisk(0, NULL);
24446
24447 ;
24448 return 0;
24449 }
24450
24451 _ACEOF
24452
24453
24454
24455 cat - <<_ACEOF >conftest.h
24456
24457 _ACEOF
24458
24459
24460 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24461 echo "obj-m := conftest.o" >build/Makefile
24462 modpost_flag=''
24463 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24464 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24466 (eval $ac_try) 2>&5
24467 ac_status=$?
24468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24469 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24471 (eval $ac_try) 2>&5
24472 ac_status=$?
24473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24474 test $ac_status = 0; }; }; then :
24475 rc=0
24476 else
24477 $as_echo "$as_me: failed program was:" >&5
24478 sed 's/^/| /' conftest.$ac_ext >&5
24479 rc=1
24480
24481
24482 fi
24483 rm -Rf build
24484
24485
24486 if test $rc -ne 0; then :
24487
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24489 $as_echo "no" >&6; }
24490
24491 else
24492 if test "x$enable_linux_builtin" != xyes; then
24493
24494 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
24495 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24496 rc=$?
24497 if test $rc -ne 0; then
24498 export=0
24499 for file in block/genhd.c; do
24500 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
24501 "$LINUX/$file" 2>/dev/null
24502 rc=$?
24503 if test $rc -eq 0; then
24504 export=1
24505 break;
24506 fi
24507 done
24508 if test $export -eq 0; then :
24509 rc=1
24510 else :
24511 rc=0
24512 fi
24513 else :
24514 rc=0
24515 fi
24516
24517 fi
24518 if test $rc -ne 0; then :
24519
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24521 $as_echo "no" >&6; }
24522
24523 else :
24524
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24526 $as_echo "yes" >&6; }
24527
24528 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
24529
24530
24531 fi
24532 fi
24533
24534
24535
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
24537 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
24538
24539
24540 cat confdefs.h - <<_ACEOF >conftest.c
24541
24542
24543 #include <linux/blkdev.h>
24544
24545 int
24546 main (void)
24547 {
24548
24549 struct queue_limits ql __attribute__ ((unused));
24550
24551 ql.discard_granularity = 0;
24552
24553 ;
24554 return 0;
24555 }
24556
24557 _ACEOF
24558
24559
24560
24561 cat - <<_ACEOF >conftest.h
24562
24563 _ACEOF
24564
24565
24566 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24567 echo "obj-m := conftest.o" >build/Makefile
24568 modpost_flag=''
24569 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24570 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24572 (eval $ac_try) 2>&5
24573 ac_status=$?
24574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24575 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24577 (eval $ac_try) 2>&5
24578 ac_status=$?
24579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24580 test $ac_status = 0; }; }; then :
24581
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24583 $as_echo "yes" >&6; }
24584
24585 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
24586
24587
24588 else
24589 $as_echo "$as_me: failed program was:" >&5
24590 sed 's/^/| /' conftest.$ac_ext >&5
24591
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24593 $as_echo "no" >&6; }
24594
24595
24596
24597 fi
24598 rm -Rf build
24599
24600
24601
24602
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
24604 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
24605
24606
24607 cat confdefs.h - <<_ACEOF >conftest.c
24608
24609
24610 #include <linux/fs.h>
24611 #include <linux/xattr.h>
24612
24613 const struct xattr_handler xattr_test_handler = {
24614 .prefix = "test",
24615 .get = NULL,
24616 .set = NULL,
24617 };
24618
24619 const struct xattr_handler *xattr_handlers[] = {
24620 &xattr_test_handler,
24621 };
24622
24623 const struct super_block sb __attribute__ ((unused)) = {
24624 .s_xattr = xattr_handlers,
24625 };
24626
24627 int
24628 main (void)
24629 {
24630
24631
24632 ;
24633 return 0;
24634 }
24635
24636 _ACEOF
24637
24638
24639
24640 cat - <<_ACEOF >conftest.h
24641
24642 _ACEOF
24643
24644
24645 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24646 echo "obj-m := conftest.o" >build/Makefile
24647 modpost_flag=''
24648 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24649 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24651 (eval $ac_try) 2>&5
24652 ac_status=$?
24653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24654 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24656 (eval $ac_try) 2>&5
24657 ac_status=$?
24658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24659 test $ac_status = 0; }; }; then :
24660
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24662 $as_echo "yes" >&6; }
24663
24664 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
24665
24666
24667 else
24668 $as_echo "$as_me: failed program was:" >&5
24669 sed 's/^/| /' conftest.$ac_ext >&5
24670
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24672 $as_echo "no" >&6; }
24673
24674
24675
24676 fi
24677 rm -Rf build
24678
24679
24680
24681
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
24683 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
24684
24685
24686 cat confdefs.h - <<_ACEOF >conftest.c
24687
24688
24689 #include <linux/xattr.h>
24690
24691 int get(const struct xattr_handler *handler,
24692 struct dentry *dentry, const char *name,
24693 void *buffer, size_t size) { return 0; }
24694 static const struct xattr_handler
24695 xops __attribute__ ((unused)) = {
24696 .get = get,
24697 };
24698
24699 int
24700 main (void)
24701 {
24702
24703
24704 ;
24705 return 0;
24706 }
24707
24708 _ACEOF
24709
24710
24711
24712 cat - <<_ACEOF >conftest.h
24713
24714 _ACEOF
24715
24716
24717 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24718 echo "obj-m := conftest.o" >build/Makefile
24719 modpost_flag=''
24720 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24721 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24723 (eval $ac_try) 2>&5
24724 ac_status=$?
24725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24726 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24728 (eval $ac_try) 2>&5
24729 ac_status=$?
24730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24731 test $ac_status = 0; }; }; then :
24732
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24734 $as_echo "yes" >&6; }
24735
24736 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
24737
24738
24739 else
24740 $as_echo "$as_me: failed program was:" >&5
24741 sed 's/^/| /' conftest.$ac_ext >&5
24742
24743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24744 $as_echo "no" >&6; }
24745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
24746 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
24747
24748
24749 cat confdefs.h - <<_ACEOF >conftest.c
24750
24751
24752 #include <linux/xattr.h>
24753
24754 int get(struct dentry *dentry, const char *name,
24755 void *buffer, size_t size, int handler_flags)
24756 { return 0; }
24757 static const struct xattr_handler
24758 xops __attribute__ ((unused)) = {
24759 .get = get,
24760 };
24761
24762 int
24763 main (void)
24764 {
24765
24766
24767 ;
24768 return 0;
24769 }
24770
24771 _ACEOF
24772
24773
24774
24775 cat - <<_ACEOF >conftest.h
24776
24777 _ACEOF
24778
24779
24780 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24781 echo "obj-m := conftest.o" >build/Makefile
24782 modpost_flag=''
24783 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24784 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24786 (eval $ac_try) 2>&5
24787 ac_status=$?
24788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24789 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24791 (eval $ac_try) 2>&5
24792 ac_status=$?
24793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24794 test $ac_status = 0; }; }; then :
24795
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24797 $as_echo "yes" >&6; }
24798
24799 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
24800
24801
24802 else
24803 $as_echo "$as_me: failed program was:" >&5
24804 sed 's/^/| /' conftest.$ac_ext >&5
24805
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24807 $as_echo "no" >&6; }
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
24809 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
24810
24811
24812 cat confdefs.h - <<_ACEOF >conftest.c
24813
24814
24815 #include <linux/xattr.h>
24816
24817 int get(struct inode *ip, const char *name,
24818 void *buffer, size_t size) { return 0; }
24819 static const struct xattr_handler
24820 xops __attribute__ ((unused)) = {
24821 .get = get,
24822 };
24823
24824 int
24825 main (void)
24826 {
24827
24828
24829 ;
24830 return 0;
24831 }
24832
24833 _ACEOF
24834
24835
24836
24837 cat - <<_ACEOF >conftest.h
24838
24839 _ACEOF
24840
24841
24842 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24843 echo "obj-m := conftest.o" >build/Makefile
24844 modpost_flag=''
24845 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24846 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24848 (eval $ac_try) 2>&5
24849 ac_status=$?
24850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24851 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24853 (eval $ac_try) 2>&5
24854 ac_status=$?
24855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24856 test $ac_status = 0; }; }; then :
24857
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24859 $as_echo "yes" >&6; }
24860
24861 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
24862
24863
24864 else
24865 $as_echo "$as_me: failed program was:" >&5
24866 sed 's/^/| /' conftest.$ac_ext >&5
24867
24868 as_fn_error $? "no; please file a bug report" "$LINENO" 5
24869
24870
24871
24872 fi
24873 rm -Rf build
24874
24875
24876
24877
24878
24879 fi
24880 rm -Rf build
24881
24882
24883
24884
24885
24886 fi
24887 rm -Rf build
24888
24889
24890
24891
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
24893 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
24894
24895
24896 cat confdefs.h - <<_ACEOF >conftest.c
24897
24898
24899 #include <linux/xattr.h>
24900
24901 int set(const struct xattr_handler *handler,
24902 struct dentry *dentry, const char *name,
24903 const void *buffer, size_t size, int flags)
24904 { return 0; }
24905 static const struct xattr_handler
24906 xops __attribute__ ((unused)) = {
24907 .set = set,
24908 };
24909
24910 int
24911 main (void)
24912 {
24913
24914
24915 ;
24916 return 0;
24917 }
24918
24919 _ACEOF
24920
24921
24922
24923 cat - <<_ACEOF >conftest.h
24924
24925 _ACEOF
24926
24927
24928 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24929 echo "obj-m := conftest.o" >build/Makefile
24930 modpost_flag=''
24931 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24932 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24934 (eval $ac_try) 2>&5
24935 ac_status=$?
24936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24937 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24939 (eval $ac_try) 2>&5
24940 ac_status=$?
24941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24942 test $ac_status = 0; }; }; then :
24943
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24945 $as_echo "yes" >&6; }
24946
24947 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
24948
24949
24950 else
24951 $as_echo "$as_me: failed program was:" >&5
24952 sed 's/^/| /' conftest.$ac_ext >&5
24953
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24955 $as_echo "no" >&6; }
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
24957 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
24958
24959
24960 cat confdefs.h - <<_ACEOF >conftest.c
24961
24962
24963 #include <linux/xattr.h>
24964
24965 int set(struct dentry *dentry, const char *name,
24966 const void *buffer, size_t size, int flags,
24967 int handler_flags) { return 0; }
24968 static const struct xattr_handler
24969 xops __attribute__ ((unused)) = {
24970 .set = set,
24971 };
24972
24973 int
24974 main (void)
24975 {
24976
24977
24978 ;
24979 return 0;
24980 }
24981
24982 _ACEOF
24983
24984
24985
24986 cat - <<_ACEOF >conftest.h
24987
24988 _ACEOF
24989
24990
24991 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24992 echo "obj-m := conftest.o" >build/Makefile
24993 modpost_flag=''
24994 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24995 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24997 (eval $ac_try) 2>&5
24998 ac_status=$?
24999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25000 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25002 (eval $ac_try) 2>&5
25003 ac_status=$?
25004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25005 test $ac_status = 0; }; }; then :
25006
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25008 $as_echo "yes" >&6; }
25009
25010 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
25011
25012
25013 else
25014 $as_echo "$as_me: failed program was:" >&5
25015 sed 's/^/| /' conftest.$ac_ext >&5
25016
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25018 $as_echo "no" >&6; }
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
25020 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
25021
25022
25023 cat confdefs.h - <<_ACEOF >conftest.c
25024
25025
25026 #include <linux/xattr.h>
25027
25028 int set(struct inode *ip, const char *name,
25029 const void *buffer, size_t size, int flags)
25030 { return 0; }
25031 static const struct xattr_handler
25032 xops __attribute__ ((unused)) = {
25033 .set = set,
25034 };
25035
25036 int
25037 main (void)
25038 {
25039
25040
25041 ;
25042 return 0;
25043 }
25044
25045 _ACEOF
25046
25047
25048
25049 cat - <<_ACEOF >conftest.h
25050
25051 _ACEOF
25052
25053
25054 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25055 echo "obj-m := conftest.o" >build/Makefile
25056 modpost_flag=''
25057 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25058 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25060 (eval $ac_try) 2>&5
25061 ac_status=$?
25062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25063 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25065 (eval $ac_try) 2>&5
25066 ac_status=$?
25067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25068 test $ac_status = 0; }; }; then :
25069
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25071 $as_echo "yes" >&6; }
25072
25073 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
25074
25075
25076 else
25077 $as_echo "$as_me: failed program was:" >&5
25078 sed 's/^/| /' conftest.$ac_ext >&5
25079
25080 as_fn_error $? "no; please file a bug report" "$LINENO" 5
25081
25082
25083
25084 fi
25085 rm -Rf build
25086
25087
25088
25089
25090
25091 fi
25092 rm -Rf build
25093
25094
25095
25096
25097
25098 fi
25099 rm -Rf build
25100
25101
25102
25103
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
25105 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
25106
25107
25108 cat confdefs.h - <<_ACEOF >conftest.c
25109
25110
25111 #include <linux/xattr.h>
25112
25113 bool list(struct dentry *dentry) { return 0; }
25114 static const struct xattr_handler
25115 xops __attribute__ ((unused)) = {
25116 .list = list,
25117 };
25118
25119 int
25120 main (void)
25121 {
25122
25123
25124 ;
25125 return 0;
25126 }
25127
25128 _ACEOF
25129
25130
25131
25132 cat - <<_ACEOF >conftest.h
25133
25134 _ACEOF
25135
25136
25137 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25138 echo "obj-m := conftest.o" >build/Makefile
25139 modpost_flag=''
25140 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25141 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25143 (eval $ac_try) 2>&5
25144 ac_status=$?
25145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25146 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25148 (eval $ac_try) 2>&5
25149 ac_status=$?
25150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25151 test $ac_status = 0; }; }; then :
25152
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25154 $as_echo "yes" >&6; }
25155
25156 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
25157
25158
25159 else
25160 $as_echo "$as_me: failed program was:" >&5
25161 sed 's/^/| /' conftest.$ac_ext >&5
25162
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25164 $as_echo "no" >&6; }
25165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
25166 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
25167
25168
25169 cat confdefs.h - <<_ACEOF >conftest.c
25170
25171
25172 #include <linux/xattr.h>
25173
25174 size_t list(const struct xattr_handler *handler,
25175 struct dentry *dentry, char *list, size_t list_size,
25176 const char *name, size_t name_len) { return 0; }
25177 static const struct xattr_handler
25178 xops __attribute__ ((unused)) = {
25179 .list = list,
25180 };
25181
25182 int
25183 main (void)
25184 {
25185
25186
25187 ;
25188 return 0;
25189 }
25190
25191 _ACEOF
25192
25193
25194
25195 cat - <<_ACEOF >conftest.h
25196
25197 _ACEOF
25198
25199
25200 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25201 echo "obj-m := conftest.o" >build/Makefile
25202 modpost_flag=''
25203 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25204 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25206 (eval $ac_try) 2>&5
25207 ac_status=$?
25208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25209 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25211 (eval $ac_try) 2>&5
25212 ac_status=$?
25213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25214 test $ac_status = 0; }; }; then :
25215
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25217 $as_echo "yes" >&6; }
25218
25219 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
25220
25221
25222 else
25223 $as_echo "$as_me: failed program was:" >&5
25224 sed 's/^/| /' conftest.$ac_ext >&5
25225
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25227 $as_echo "no" >&6; }
25228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
25229 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
25230
25231
25232 cat confdefs.h - <<_ACEOF >conftest.c
25233
25234
25235 #include <linux/xattr.h>
25236
25237 size_t list(struct dentry *dentry,
25238 char *list, size_t list_size,
25239 const char *name, size_t name_len,
25240 int handler_flags) { return 0; }
25241 static const struct xattr_handler
25242 xops __attribute__ ((unused)) = {
25243 .list = list,
25244 };
25245
25246 int
25247 main (void)
25248 {
25249
25250
25251 ;
25252 return 0;
25253 }
25254
25255 _ACEOF
25256
25257
25258
25259 cat - <<_ACEOF >conftest.h
25260
25261 _ACEOF
25262
25263
25264 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25265 echo "obj-m := conftest.o" >build/Makefile
25266 modpost_flag=''
25267 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25268 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25270 (eval $ac_try) 2>&5
25271 ac_status=$?
25272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25273 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25275 (eval $ac_try) 2>&5
25276 ac_status=$?
25277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25278 test $ac_status = 0; }; }; then :
25279
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25281 $as_echo "yes" >&6; }
25282
25283 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
25284
25285
25286 else
25287 $as_echo "$as_me: failed program was:" >&5
25288 sed 's/^/| /' conftest.$ac_ext >&5
25289
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25291 $as_echo "no" >&6; }
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
25293 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
25294
25295
25296 cat confdefs.h - <<_ACEOF >conftest.c
25297
25298
25299 #include <linux/xattr.h>
25300
25301 size_t list(struct inode *ip, char *lst,
25302 size_t list_size, const char *name,
25303 size_t name_len) { return 0; }
25304 static const struct xattr_handler
25305 xops __attribute__ ((unused)) = {
25306 .list = list,
25307 };
25308
25309 int
25310 main (void)
25311 {
25312
25313
25314 ;
25315 return 0;
25316 }
25317
25318 _ACEOF
25319
25320
25321
25322 cat - <<_ACEOF >conftest.h
25323
25324 _ACEOF
25325
25326
25327 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25328 echo "obj-m := conftest.o" >build/Makefile
25329 modpost_flag=''
25330 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25331 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25333 (eval $ac_try) 2>&5
25334 ac_status=$?
25335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25336 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25338 (eval $ac_try) 2>&5
25339 ac_status=$?
25340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25341 test $ac_status = 0; }; }; then :
25342
25343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25344 $as_echo "yes" >&6; }
25345
25346 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
25347
25348
25349 else
25350 $as_echo "$as_me: failed program was:" >&5
25351 sed 's/^/| /' conftest.$ac_ext >&5
25352
25353 as_fn_error $? "no; please file a bug report" "$LINENO" 5
25354
25355
25356
25357 fi
25358 rm -Rf build
25359
25360
25361
25362
25363
25364 fi
25365 rm -Rf build
25366
25367
25368
25369
25370
25371 fi
25372 rm -Rf build
25373
25374
25375
25376
25377
25378 fi
25379 rm -Rf build
25380
25381
25382
25383
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
25385 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
25386
25387
25388 cat confdefs.h - <<_ACEOF >conftest.c
25389
25390
25391 #include <linux/fs.h>
25392
25393 int
25394 main (void)
25395 {
25396
25397 struct inode *ip = NULL;
25398 (void) inode_owner_or_capable(ip);
25399
25400 ;
25401 return 0;
25402 }
25403
25404 _ACEOF
25405
25406
25407
25408 cat - <<_ACEOF >conftest.h
25409
25410 _ACEOF
25411
25412
25413 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25414 echo "obj-m := conftest.o" >build/Makefile
25415 modpost_flag=''
25416 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25417 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25419 (eval $ac_try) 2>&5
25420 ac_status=$?
25421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25422 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25424 (eval $ac_try) 2>&5
25425 ac_status=$?
25426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25427 test $ac_status = 0; }; }; then :
25428
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25430 $as_echo "yes" >&6; }
25431
25432 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
25433
25434
25435 else
25436 $as_echo "$as_me: failed program was:" >&5
25437 sed 's/^/| /' conftest.$ac_ext >&5
25438
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25440 $as_echo "no" >&6; }
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
25442 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
25443
25444
25445 cat confdefs.h - <<_ACEOF >conftest.c
25446
25447
25448 #include <linux/fs.h>
25449 #include <linux/sched.h>
25450
25451 int
25452 main (void)
25453 {
25454
25455 struct inode *ip = NULL;
25456 (void) is_owner_or_cap(ip);
25457
25458 ;
25459 return 0;
25460 }
25461
25462 _ACEOF
25463
25464
25465
25466 cat - <<_ACEOF >conftest.h
25467
25468 _ACEOF
25469
25470
25471 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25472 echo "obj-m := conftest.o" >build/Makefile
25473 modpost_flag=''
25474 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25475 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25477 (eval $ac_try) 2>&5
25478 ac_status=$?
25479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25480 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25482 (eval $ac_try) 2>&5
25483 ac_status=$?
25484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25485 test $ac_status = 0; }; }; then :
25486
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25488 $as_echo "yes" >&6; }
25489
25490 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
25491
25492
25493 else
25494 $as_echo "$as_me: failed program was:" >&5
25495 sed 's/^/| /' conftest.$ac_ext >&5
25496
25497 as_fn_error $? "no - Please file a bug report at
25498 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
25499
25500
25501
25502 fi
25503 rm -Rf build
25504
25505
25506
25507
25508
25509 fi
25510 rm -Rf build
25511
25512
25513
25514
25515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
25516 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
25517
25518
25519 cat confdefs.h - <<_ACEOF >conftest.c
25520
25521
25522 #include <linux/cred.h>
25523 #include <linux/fs.h>
25524 #include <linux/posix_acl_xattr.h>
25525
25526 int
25527 main (void)
25528 {
25529
25530 posix_acl_from_xattr(&init_user_ns, NULL, 0);
25531
25532 ;
25533 return 0;
25534 }
25535
25536 _ACEOF
25537
25538
25539
25540 cat - <<_ACEOF >conftest.h
25541
25542 _ACEOF
25543
25544
25545 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25546 echo "obj-m := conftest.o" >build/Makefile
25547 modpost_flag=''
25548 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25549 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25551 (eval $ac_try) 2>&5
25552 ac_status=$?
25553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25554 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25556 (eval $ac_try) 2>&5
25557 ac_status=$?
25558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25559 test $ac_status = 0; }; }; then :
25560
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25562 $as_echo "yes" >&6; }
25563
25564 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
25565
25566
25567 else
25568 $as_echo "$as_me: failed program was:" >&5
25569 sed 's/^/| /' conftest.$ac_ext >&5
25570
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25572 $as_echo "no" >&6; }
25573
25574
25575
25576 fi
25577 rm -Rf build
25578
25579
25580
25581
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
25583 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
25584
25585
25586 cat confdefs.h - <<_ACEOF >conftest.c
25587
25588
25589 #include <linux/cred.h>
25590 #include <linux/fs.h>
25591 #include <linux/posix_acl.h>
25592
25593 int
25594 main (void)
25595 {
25596
25597 struct posix_acl* tmp = posix_acl_alloc(1, 0);
25598 posix_acl_release(tmp);
25599
25600 ;
25601 return 0;
25602 }
25603
25604 _ACEOF
25605
25606
25607
25608 cat - <<_ACEOF >conftest.h
25609
25610 _ACEOF
25611
25612
25613 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25614 echo "obj-m := conftest.o" >build/Makefile
25615 modpost_flag=''
25616 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25617 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25619 (eval $ac_try) 2>&5
25620 ac_status=$?
25621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25622 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25624 (eval $ac_try) 2>&5
25625 ac_status=$?
25626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25627 test $ac_status = 0; }; }; then :
25628
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25630 $as_echo "yes" >&6; }
25631
25632 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
25633
25634
25635 else
25636 $as_echo "$as_me: failed program was:" >&5
25637 sed 's/^/| /' conftest.$ac_ext >&5
25638
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25640 $as_echo "no" >&6; }
25641
25642
25643
25644 fi
25645 rm -Rf build
25646
25647
25648
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
25650 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
25651
25652
25653 cat confdefs.h - <<_ACEOF >conftest.c
25654
25655
25656 #include <linux/cred.h>
25657 #include <linux/fs.h>
25658 #include <linux/posix_acl.h>
25659
25660 MODULE_LICENSE("$ZFS_META_LICENSE");
25661
25662 int
25663 main (void)
25664 {
25665
25666 struct posix_acl* tmp = posix_acl_alloc(1, 0);
25667 posix_acl_release(tmp);
25668
25669 ;
25670 return 0;
25671 }
25672
25673 _ACEOF
25674
25675
25676
25677 cat - <<_ACEOF >conftest.h
25678
25679 _ACEOF
25680
25681
25682 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25683 echo "obj-m := conftest.o" >build/Makefile
25684 modpost_flag=''
25685 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25686 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25688 (eval $ac_try) 2>&5
25689 ac_status=$?
25690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25691 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25693 (eval $ac_try) 2>&5
25694 ac_status=$?
25695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25696 test $ac_status = 0; }; }; then :
25697
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25699 $as_echo "no" >&6; }
25700
25701 else
25702 $as_echo "$as_me: failed program was:" >&5
25703 sed 's/^/| /' conftest.$ac_ext >&5
25704
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25706 $as_echo "yes" >&6; }
25707
25708 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
25709
25710
25711
25712
25713 fi
25714 rm -Rf build
25715
25716
25717
25718
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
25720 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
25721
25722
25723 cat confdefs.h - <<_ACEOF >conftest.c
25724
25725
25726 #include <linux/fs.h>
25727 #include <linux/posix_acl.h>
25728
25729 int
25730 main (void)
25731 {
25732
25733 posix_acl_chmod(NULL, 0, 0)
25734
25735 ;
25736 return 0;
25737 }
25738
25739 _ACEOF
25740
25741
25742
25743 cat - <<_ACEOF >conftest.h
25744
25745 _ACEOF
25746
25747
25748 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25749 echo "obj-m := conftest.o" >build/Makefile
25750 modpost_flag=''
25751 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25752 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25754 (eval $ac_try) 2>&5
25755 ac_status=$?
25756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25757 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25759 (eval $ac_try) 2>&5
25760 ac_status=$?
25761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25762 test $ac_status = 0; }; }; then :
25763
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25765 $as_echo "yes" >&6; }
25766
25767 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
25768
25769
25770 else
25771 $as_echo "$as_me: failed program was:" >&5
25772 sed 's/^/| /' conftest.$ac_ext >&5
25773
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25775 $as_echo "no" >&6; }
25776
25777
25778
25779 fi
25780 rm -Rf build
25781
25782
25783
25784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
25785 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
25786
25787
25788 cat confdefs.h - <<_ACEOF >conftest.c
25789
25790
25791 #include <linux/fs.h>
25792 #include <linux/posix_acl.h>
25793
25794 int
25795 main (void)
25796 {
25797
25798 __posix_acl_chmod(NULL, 0, 0)
25799
25800 ;
25801 return 0;
25802 }
25803
25804 _ACEOF
25805
25806
25807
25808 cat - <<_ACEOF >conftest.h
25809
25810 _ACEOF
25811
25812
25813 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25814 echo "obj-m := conftest.o" >build/Makefile
25815 modpost_flag=''
25816 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25817 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25819 (eval $ac_try) 2>&5
25820 ac_status=$?
25821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25822 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25824 (eval $ac_try) 2>&5
25825 ac_status=$?
25826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25827 test $ac_status = 0; }; }; then :
25828
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25830 $as_echo "yes" >&6; }
25831
25832 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
25833
25834
25835 else
25836 $as_echo "$as_me: failed program was:" >&5
25837 sed 's/^/| /' conftest.$ac_ext >&5
25838
25839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25840 $as_echo "no" >&6; }
25841
25842
25843
25844 fi
25845 rm -Rf build
25846
25847
25848
25849
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode has i_acl and i_default_acl" >&5
25851 $as_echo_n "checking whether inode has i_acl and i_default_acl... " >&6; }
25852
25853
25854 cat confdefs.h - <<_ACEOF >conftest.c
25855
25856
25857 #include <linux/fs.h>
25858
25859 int
25860 main (void)
25861 {
25862
25863 struct inode ino;
25864 ino.i_acl = NULL;
25865 ino.i_default_acl = NULL;
25866
25867 ;
25868 return 0;
25869 }
25870
25871 _ACEOF
25872
25873
25874
25875 cat - <<_ACEOF >conftest.h
25876
25877 _ACEOF
25878
25879
25880 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25881 echo "obj-m := conftest.o" >build/Makefile
25882 modpost_flag=''
25883 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25884 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25886 (eval $ac_try) 2>&5
25887 ac_status=$?
25888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25889 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25891 (eval $ac_try) 2>&5
25892 ac_status=$?
25893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25894 test $ac_status = 0; }; }; then :
25895
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25897 $as_echo "yes" >&6; }
25898
25899 $as_echo "#define HAVE_POSIX_ACL_CACHING 1" >>confdefs.h
25900
25901
25902 else
25903 $as_echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25905
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25907 $as_echo "no" >&6; }
25908
25909
25910
25911 fi
25912 rm -Rf build
25913
25914
25915
25916
25917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
25918 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
25919
25920
25921 cat confdefs.h - <<_ACEOF >conftest.c
25922
25923
25924 #include <linux/fs.h>
25925 #include <linux/posix_acl.h>
25926
25927 int
25928 main (void)
25929 {
25930
25931 umode_t tmp;
25932 posix_acl_equiv_mode(NULL,&tmp);
25933
25934 ;
25935 return 0;
25936 }
25937
25938 _ACEOF
25939
25940
25941
25942 cat - <<_ACEOF >conftest.h
25943
25944 _ACEOF
25945
25946
25947 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25948 echo "obj-m := conftest.o" >build/Makefile
25949 modpost_flag=''
25950 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25951 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25953 (eval $ac_try) 2>&5
25954 ac_status=$?
25955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25956 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25958 (eval $ac_try) 2>&5
25959 ac_status=$?
25960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25961 test $ac_status = 0; }; }; then :
25962
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25964 $as_echo "yes" >&6; }
25965
25966 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
25967
25968
25969 else
25970 $as_echo "$as_me: failed program was:" >&5
25971 sed 's/^/| /' conftest.$ac_ext >&5
25972
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25974 $as_echo "no" >&6; }
25975
25976
25977
25978 fi
25979 rm -Rf build
25980
25981
25982
25983
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
25985 $as_echo_n "checking whether iops->permission() exists... " >&6; }
25986
25987
25988 cat confdefs.h - <<_ACEOF >conftest.c
25989
25990
25991 #include <linux/fs.h>
25992
25993 int permission_fn(struct inode *inode, int mask) { return 0; }
25994
25995 static const struct inode_operations
25996 iops __attribute__ ((unused)) = {
25997 .permission = permission_fn,
25998 };
25999
26000 int
26001 main (void)
26002 {
26003
26004
26005 ;
26006 return 0;
26007 }
26008
26009 _ACEOF
26010
26011
26012
26013 cat - <<_ACEOF >conftest.h
26014
26015 _ACEOF
26016
26017
26018 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26019 echo "obj-m := conftest.o" >build/Makefile
26020 modpost_flag=''
26021 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26022 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26024 (eval $ac_try) 2>&5
26025 ac_status=$?
26026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26027 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26029 (eval $ac_try) 2>&5
26030 ac_status=$?
26031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26032 test $ac_status = 0; }; }; then :
26033
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26035 $as_echo "yes" >&6; }
26036
26037 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
26038
26039
26040 else
26041 $as_echo "$as_me: failed program was:" >&5
26042 sed 's/^/| /' conftest.$ac_ext >&5
26043
26044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26045 $as_echo "no" >&6; }
26046
26047
26048
26049 fi
26050 rm -Rf build
26051
26052
26053
26054
26055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
26056 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
26057
26058
26059 cat confdefs.h - <<_ACEOF >conftest.c
26060
26061
26062 #include <linux/fs.h>
26063
26064 int permission_fn(struct inode *inode, int mask,
26065 struct nameidata *nd) { return 0; }
26066
26067 static const struct inode_operations
26068 iops __attribute__ ((unused)) = {
26069 .permission = permission_fn,
26070 };
26071
26072 int
26073 main (void)
26074 {
26075
26076
26077 ;
26078 return 0;
26079 }
26080
26081 _ACEOF
26082
26083
26084
26085 cat - <<_ACEOF >conftest.h
26086
26087 _ACEOF
26088
26089
26090 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26091 echo "obj-m := conftest.o" >build/Makefile
26092 modpost_flag=''
26093 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26094 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26096 (eval $ac_try) 2>&5
26097 ac_status=$?
26098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26099 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26101 (eval $ac_try) 2>&5
26102 ac_status=$?
26103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26104 test $ac_status = 0; }; }; then :
26105
26106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26107 $as_echo "yes" >&6; }
26108
26109 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
26110
26111
26112 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
26113
26114
26115 else
26116 $as_echo "$as_me: failed program was:" >&5
26117 sed 's/^/| /' conftest.$ac_ext >&5
26118
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26120 $as_echo "no" >&6; }
26121
26122
26123
26124 fi
26125 rm -Rf build
26126
26127
26128
26129
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
26131 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
26132
26133
26134 cat confdefs.h - <<_ACEOF >conftest.c
26135
26136
26137 #include <linux/fs.h>
26138
26139 int check_acl_fn(struct inode *inode, int mask) { return 0; }
26140
26141 static const struct inode_operations
26142 iops __attribute__ ((unused)) = {
26143 .check_acl = check_acl_fn,
26144 };
26145
26146 int
26147 main (void)
26148 {
26149
26150
26151 ;
26152 return 0;
26153 }
26154
26155 _ACEOF
26156
26157
26158
26159 cat - <<_ACEOF >conftest.h
26160
26161 _ACEOF
26162
26163
26164 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26165 echo "obj-m := conftest.o" >build/Makefile
26166 modpost_flag=''
26167 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26168 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26170 (eval $ac_try) 2>&5
26171 ac_status=$?
26172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26173 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26175 (eval $ac_try) 2>&5
26176 ac_status=$?
26177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26178 test $ac_status = 0; }; }; then :
26179
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26181 $as_echo "yes" >&6; }
26182
26183 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
26184
26185
26186 else
26187 $as_echo "$as_me: failed program was:" >&5
26188 sed 's/^/| /' conftest.$ac_ext >&5
26189
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26191 $as_echo "no" >&6; }
26192
26193
26194
26195 fi
26196 rm -Rf build
26197
26198
26199
26200
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
26202 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
26203
26204
26205 cat confdefs.h - <<_ACEOF >conftest.c
26206
26207
26208 #include <linux/fs.h>
26209
26210 int check_acl_fn(struct inode *inode, int mask,
26211 unsigned int flags) { return 0; }
26212
26213 static const struct inode_operations
26214 iops __attribute__ ((unused)) = {
26215 .check_acl = check_acl_fn,
26216 };
26217
26218 int
26219 main (void)
26220 {
26221
26222
26223 ;
26224 return 0;
26225 }
26226
26227 _ACEOF
26228
26229
26230
26231 cat - <<_ACEOF >conftest.h
26232
26233 _ACEOF
26234
26235
26236 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26237 echo "obj-m := conftest.o" >build/Makefile
26238 modpost_flag=''
26239 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26240 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26242 (eval $ac_try) 2>&5
26243 ac_status=$?
26244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26245 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26247 (eval $ac_try) 2>&5
26248 ac_status=$?
26249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26250 test $ac_status = 0; }; }; then :
26251
26252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26253 $as_echo "yes" >&6; }
26254
26255 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
26256
26257
26258 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
26259
26260
26261 else
26262 $as_echo "$as_me: failed program was:" >&5
26263 sed 's/^/| /' conftest.$ac_ext >&5
26264
26265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26266 $as_echo "no" >&6; }
26267
26268
26269
26270 fi
26271 rm -Rf build
26272
26273
26274
26275
26276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
26277 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
26278
26279
26280 cat confdefs.h - <<_ACEOF >conftest.c
26281
26282
26283 #include <linux/fs.h>
26284
26285 struct posix_acl *get_acl_fn(struct inode *inode, int type)
26286 { return NULL; }
26287
26288 static const struct inode_operations
26289 iops __attribute__ ((unused)) = {
26290 .get_acl = get_acl_fn,
26291 };
26292
26293 int
26294 main (void)
26295 {
26296
26297
26298 ;
26299 return 0;
26300 }
26301
26302 _ACEOF
26303
26304
26305
26306 cat - <<_ACEOF >conftest.h
26307
26308 _ACEOF
26309
26310
26311 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26312 echo "obj-m := conftest.o" >build/Makefile
26313 modpost_flag=''
26314 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26315 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26317 (eval $ac_try) 2>&5
26318 ac_status=$?
26319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26320 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26322 (eval $ac_try) 2>&5
26323 ac_status=$?
26324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26325 test $ac_status = 0; }; }; then :
26326
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26328 $as_echo "yes" >&6; }
26329
26330 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
26331
26332
26333 else
26334 $as_echo "$as_me: failed program was:" >&5
26335 sed 's/^/| /' conftest.$ac_ext >&5
26336
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26338 $as_echo "no" >&6; }
26339
26340
26341
26342 fi
26343 rm -Rf build
26344
26345
26346
26347
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_umask exists" >&5
26349 $as_echo_n "checking whether current_umask exists... " >&6; }
26350
26351
26352 cat confdefs.h - <<_ACEOF >conftest.c
26353
26354
26355 #include <linux/fs.h>
26356
26357 int
26358 main (void)
26359 {
26360
26361 current_umask();
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\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26382 (eval $ac_try) 2>&5
26383 ac_status=$?
26384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26385 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26387 (eval $ac_try) 2>&5
26388 ac_status=$?
26389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26390 test $ac_status = 0; }; }; then :
26391
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26393 $as_echo "yes" >&6; }
26394
26395 $as_echo "#define HAVE_CURRENT_UMASK 1" >>confdefs.h
26396
26397
26398 else
26399 $as_echo "$as_me: failed program was:" >&5
26400 sed 's/^/| /' conftest.$ac_ext >&5
26401
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26403 $as_echo "no" >&6; }
26404
26405
26406
26407 fi
26408 rm -Rf build
26409
26410
26411
26412
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
26414 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
26415
26416
26417
26418 cat confdefs.h - <<_ACEOF >conftest.c
26419
26420
26421 #include <linux/fs.h>
26422
26423 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
26424 static struct super_operations sops __attribute__ ((unused)) = {
26425 .show_options = show_options,
26426 };
26427
26428 int
26429 main (void)
26430 {
26431
26432
26433 ;
26434 return 0;
26435 }
26436
26437 _ACEOF
26438
26439
26440
26441 cat - <<_ACEOF >conftest.h
26442
26443 _ACEOF
26444
26445
26446 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26447 echo "obj-m := conftest.o" >build/Makefile
26448 modpost_flag=''
26449 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26450 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26452 (eval $ac_try) 2>&5
26453 ac_status=$?
26454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26455 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26457 (eval $ac_try) 2>&5
26458 ac_status=$?
26459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26460 test $ac_status = 0; }; }; then :
26461
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26463 $as_echo "yes" >&6; }
26464
26465 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
26466
26467
26468 else
26469 $as_echo "$as_me: failed program was:" >&5
26470 sed 's/^/| /' conftest.$ac_ext >&5
26471
26472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26473 $as_echo "no" >&6; }
26474
26475
26476
26477 fi
26478 rm -Rf build
26479
26480
26481
26482
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
26484 $as_echo_n "checking whether file_inode() is available... " >&6; }
26485
26486
26487 cat confdefs.h - <<_ACEOF >conftest.c
26488
26489
26490 #include <linux/fs.h>
26491
26492 int
26493 main (void)
26494 {
26495
26496 struct file *f = NULL;
26497 file_inode(f);
26498
26499 ;
26500 return 0;
26501 }
26502
26503 _ACEOF
26504
26505
26506
26507 cat - <<_ACEOF >conftest.h
26508
26509 _ACEOF
26510
26511
26512 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26513 echo "obj-m := conftest.o" >build/Makefile
26514 modpost_flag=''
26515 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26516 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26518 (eval $ac_try) 2>&5
26519 ac_status=$?
26520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26521 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26523 (eval $ac_try) 2>&5
26524 ac_status=$?
26525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26526 test $ac_status = 0; }; }; then :
26527
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26529 $as_echo "yes" >&6; }
26530
26531 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
26532
26533
26534 else
26535 $as_echo "$as_me: failed program was:" >&5
26536 sed 's/^/| /' conftest.$ac_ext >&5
26537
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26539 $as_echo "no" >&6; }
26540
26541
26542
26543 fi
26544 rm -Rf build
26545
26546
26547
26548
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
26550 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
26551
26552
26553
26554 cat confdefs.h - <<_ACEOF >conftest.c
26555
26556
26557 #include <linux/fs.h>
26558
26559 int test_fsync(struct file *f, struct dentry *dentry, int x)
26560 { return 0; }
26561
26562 static const struct file_operations
26563 fops __attribute__ ((unused)) = {
26564 .fsync = test_fsync,
26565 };
26566
26567 int
26568 main (void)
26569 {
26570
26571
26572 ;
26573 return 0;
26574 }
26575
26576 _ACEOF
26577
26578
26579
26580 cat - <<_ACEOF >conftest.h
26581
26582 _ACEOF
26583
26584
26585 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26586 echo "obj-m := conftest.o" >build/Makefile
26587 modpost_flag=''
26588 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26589 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26591 (eval $ac_try) 2>&5
26592 ac_status=$?
26593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26594 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26596 (eval $ac_try) 2>&5
26597 ac_status=$?
26598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26599 test $ac_status = 0; }; }; then :
26600
26601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
26602 $as_echo "dentry" >&6; }
26603
26604 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
26605
26606
26607 else
26608 $as_echo "$as_me: failed program was:" >&5
26609 sed 's/^/| /' conftest.$ac_ext >&5
26610
26611
26612
26613
26614 fi
26615 rm -Rf build
26616
26617
26618
26619
26620
26621
26622 cat confdefs.h - <<_ACEOF >conftest.c
26623
26624
26625 #include <linux/fs.h>
26626
26627 int test_fsync(struct file *f, int x) { return 0; }
26628
26629 static const struct file_operations
26630 fops __attribute__ ((unused)) = {
26631 .fsync = test_fsync,
26632 };
26633
26634 int
26635 main (void)
26636 {
26637
26638
26639 ;
26640 return 0;
26641 }
26642
26643 _ACEOF
26644
26645
26646
26647 cat - <<_ACEOF >conftest.h
26648
26649 _ACEOF
26650
26651
26652 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26653 echo "obj-m := conftest.o" >build/Makefile
26654 modpost_flag=''
26655 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26656 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26658 (eval $ac_try) 2>&5
26659 ac_status=$?
26660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26661 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26663 (eval $ac_try) 2>&5
26664 ac_status=$?
26665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26666 test $ac_status = 0; }; }; then :
26667
26668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
26669 $as_echo "no dentry" >&6; }
26670
26671 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
26672
26673
26674 else
26675 $as_echo "$as_me: failed program was:" >&5
26676 sed 's/^/| /' conftest.$ac_ext >&5
26677
26678
26679
26680
26681 fi
26682 rm -Rf build
26683
26684
26685
26686
26687
26688
26689 cat confdefs.h - <<_ACEOF >conftest.c
26690
26691
26692 #include <linux/fs.h>
26693
26694 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
26695 { return 0; }
26696
26697 static const struct file_operations
26698 fops __attribute__ ((unused)) = {
26699 .fsync = test_fsync,
26700 };
26701
26702 int
26703 main (void)
26704 {
26705
26706
26707 ;
26708 return 0;
26709 }
26710
26711 _ACEOF
26712
26713
26714
26715 cat - <<_ACEOF >conftest.h
26716
26717 _ACEOF
26718
26719
26720 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26721 echo "obj-m := conftest.o" >build/Makefile
26722 modpost_flag=''
26723 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26724 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26726 (eval $ac_try) 2>&5
26727 ac_status=$?
26728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26729 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26731 (eval $ac_try) 2>&5
26732 ac_status=$?
26733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26734 test $ac_status = 0; }; }; then :
26735
26736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
26737 $as_echo "range" >&6; }
26738
26739 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
26740
26741
26742 else
26743 $as_echo "$as_me: failed program was:" >&5
26744 sed 's/^/| /' conftest.$ac_ext >&5
26745
26746
26747
26748
26749 fi
26750 rm -Rf build
26751
26752
26753
26754
26755
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
26757 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
26758
26759
26760 cat confdefs.h - <<_ACEOF >conftest.c
26761
26762
26763 #include <linux/fs.h>
26764 void evict_inode (struct inode * t) { return; }
26765 static struct super_operations sops __attribute__ ((unused)) = {
26766 .evict_inode = evict_inode,
26767 };
26768
26769 int
26770 main (void)
26771 {
26772
26773
26774 ;
26775 return 0;
26776 }
26777
26778 _ACEOF
26779
26780
26781
26782 cat - <<_ACEOF >conftest.h
26783
26784 _ACEOF
26785
26786
26787 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26788 echo "obj-m := conftest.o" >build/Makefile
26789 modpost_flag=''
26790 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26791 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26793 (eval $ac_try) 2>&5
26794 ac_status=$?
26795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26796 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26798 (eval $ac_try) 2>&5
26799 ac_status=$?
26800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26801 test $ac_status = 0; }; }; then :
26802
26803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26804 $as_echo "yes" >&6; }
26805
26806 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
26807
26808
26809 else
26810 $as_echo "$as_me: failed program was:" >&5
26811 sed 's/^/| /' conftest.$ac_ext >&5
26812
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26814 $as_echo "no" >&6; }
26815
26816
26817
26818 fi
26819 rm -Rf build
26820
26821
26822
26823
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
26825 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
26826
26827
26828 cat confdefs.h - <<_ACEOF >conftest.c
26829
26830
26831 #include <linux/fs.h>
26832
26833 void dirty_inode(struct inode *a, int b) { return; }
26834
26835 static const struct super_operations
26836 sops __attribute__ ((unused)) = {
26837 .dirty_inode = dirty_inode,
26838 };
26839
26840 int
26841 main (void)
26842 {
26843
26844
26845 ;
26846 return 0;
26847 }
26848
26849 _ACEOF
26850
26851
26852
26853 cat - <<_ACEOF >conftest.h
26854
26855 _ACEOF
26856
26857
26858 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26859 echo "obj-m := conftest.o" >build/Makefile
26860 modpost_flag=''
26861 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26862 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26864 (eval $ac_try) 2>&5
26865 ac_status=$?
26866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26867 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26869 (eval $ac_try) 2>&5
26870 ac_status=$?
26871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26872 test $ac_status = 0; }; }; then :
26873
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26875 $as_echo "yes" >&6; }
26876
26877 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
26878
26879
26880 else
26881 $as_echo "$as_me: failed program was:" >&5
26882 sed 's/^/| /' conftest.$ac_ext >&5
26883
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26885 $as_echo "no" >&6; }
26886
26887
26888
26889 fi
26890 rm -Rf build
26891
26892
26893
26894
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
26896 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
26897
26898
26899 cat confdefs.h - <<_ACEOF >conftest.c
26900
26901
26902 #include <linux/fs.h>
26903
26904 int nr_cached_objects(struct super_block *sb) { return 0; }
26905
26906 static const struct super_operations
26907 sops __attribute__ ((unused)) = {
26908 .nr_cached_objects = nr_cached_objects,
26909 };
26910
26911 int
26912 main (void)
26913 {
26914
26915
26916 ;
26917 return 0;
26918 }
26919
26920 _ACEOF
26921
26922
26923
26924 cat - <<_ACEOF >conftest.h
26925
26926 _ACEOF
26927
26928
26929 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26930 echo "obj-m := conftest.o" >build/Makefile
26931 modpost_flag=''
26932 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26933 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26935 (eval $ac_try) 2>&5
26936 ac_status=$?
26937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26938 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26940 (eval $ac_try) 2>&5
26941 ac_status=$?
26942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26943 test $ac_status = 0; }; }; then :
26944
26945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26946 $as_echo "yes" >&6; }
26947
26948 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
26949
26950
26951 else
26952 $as_echo "$as_me: failed program was:" >&5
26953 sed 's/^/| /' conftest.$ac_ext >&5
26954
26955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26956 $as_echo "no" >&6; }
26957
26958
26959
26960 fi
26961 rm -Rf build
26962
26963
26964
26965
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
26967 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
26968
26969
26970 cat confdefs.h - <<_ACEOF >conftest.c
26971
26972
26973 #include <linux/fs.h>
26974
26975 void free_cached_objects(struct super_block *sb, int x)
26976 { return; }
26977
26978 static const struct super_operations
26979 sops __attribute__ ((unused)) = {
26980 .free_cached_objects = free_cached_objects,
26981 };
26982
26983 int
26984 main (void)
26985 {
26986
26987
26988 ;
26989 return 0;
26990 }
26991
26992 _ACEOF
26993
26994
26995
26996 cat - <<_ACEOF >conftest.h
26997
26998 _ACEOF
26999
27000
27001 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27002 echo "obj-m := conftest.o" >build/Makefile
27003 modpost_flag=''
27004 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27005 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27007 (eval $ac_try) 2>&5
27008 ac_status=$?
27009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27010 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27012 (eval $ac_try) 2>&5
27013 ac_status=$?
27014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27015 test $ac_status = 0; }; }; then :
27016
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27018 $as_echo "yes" >&6; }
27019
27020 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
27021
27022
27023 else
27024 $as_echo "$as_me: failed program was:" >&5
27025 sed 's/^/| /' conftest.$ac_ext >&5
27026
27027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27028 $as_echo "no" >&6; }
27029
27030
27031
27032 fi
27033 rm -Rf build
27034
27035
27036
27037
27038
27039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
27040 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
27041
27042
27043 cat confdefs.h - <<_ACEOF >conftest.c
27044
27045
27046 #include <linux/fs.h>
27047
27048 long test_fallocate(struct file *file, int mode,
27049 loff_t offset, loff_t len) { return 0; }
27050
27051 static const struct file_operations
27052 fops __attribute__ ((unused)) = {
27053 .fallocate = test_fallocate,
27054 };
27055
27056 int
27057 main (void)
27058 {
27059
27060
27061 ;
27062 return 0;
27063 }
27064
27065 _ACEOF
27066
27067
27068
27069 cat - <<_ACEOF >conftest.h
27070
27071 _ACEOF
27072
27073
27074 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27075 echo "obj-m := conftest.o" >build/Makefile
27076 modpost_flag=''
27077 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27078 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27080 (eval $ac_try) 2>&5
27081 ac_status=$?
27082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27083 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27085 (eval $ac_try) 2>&5
27086 ac_status=$?
27087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27088 test $ac_status = 0; }; }; then :
27089
27090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27091 $as_echo "yes" >&6; }
27092
27093 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
27094
27095
27096 else
27097 $as_echo "$as_me: failed program was:" >&5
27098 sed 's/^/| /' conftest.$ac_ext >&5
27099
27100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27101 $as_echo "no" >&6; }
27102
27103
27104
27105 fi
27106 rm -Rf build
27107
27108
27109
27110
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
27112 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
27113
27114
27115 cat confdefs.h - <<_ACEOF >conftest.c
27116
27117
27118 #include <linux/fs.h>
27119
27120 long test_fallocate(struct inode *inode, int mode,
27121 loff_t offset, loff_t len) { return 0; }
27122
27123 static const struct inode_operations
27124 fops __attribute__ ((unused)) = {
27125 .fallocate = test_fallocate,
27126 };
27127
27128 int
27129 main (void)
27130 {
27131
27132
27133 ;
27134 return 0;
27135 }
27136
27137 _ACEOF
27138
27139
27140
27141 cat - <<_ACEOF >conftest.h
27142
27143 _ACEOF
27144
27145
27146 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27147 echo "obj-m := conftest.o" >build/Makefile
27148 modpost_flag=''
27149 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27150 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27152 (eval $ac_try) 2>&5
27153 ac_status=$?
27154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27155 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27157 (eval $ac_try) 2>&5
27158 ac_status=$?
27159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27160 test $ac_status = 0; }; }; then :
27161
27162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27163 $as_echo "yes" >&6; }
27164
27165 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
27166
27167
27168 else
27169 $as_echo "$as_me: failed program was:" >&5
27170 sed 's/^/| /' conftest.$ac_ext >&5
27171
27172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27173 $as_echo "no" >&6; }
27174
27175
27176
27177 fi
27178 rm -Rf build
27179
27180
27181
27182
27183
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
27185 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
27186
27187
27188 cat confdefs.h - <<_ACEOF >conftest.c
27189
27190
27191 #include <linux/fs.h>
27192
27193 int mkdir(struct inode *inode, struct dentry *dentry,
27194 umode_t umode) { return 0; }
27195
27196 static const struct inode_operations
27197 iops __attribute__ ((unused)) = {
27198 .mkdir = mkdir,
27199 };
27200
27201 int
27202 main (void)
27203 {
27204
27205
27206 ;
27207 return 0;
27208 }
27209
27210 _ACEOF
27211
27212
27213
27214 cat - <<_ACEOF >conftest.h
27215
27216 _ACEOF
27217
27218
27219 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27220 echo "obj-m := conftest.o" >build/Makefile
27221 modpost_flag=''
27222 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27223 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27225 (eval $ac_try) 2>&5
27226 ac_status=$?
27227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27228 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27230 (eval $ac_try) 2>&5
27231 ac_status=$?
27232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27233 test $ac_status = 0; }; }; then :
27234
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27236 $as_echo "yes" >&6; }
27237
27238 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
27239
27240
27241 else
27242 $as_echo "$as_me: failed program was:" >&5
27243 sed 's/^/| /' conftest.$ac_ext >&5
27244
27245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27246 $as_echo "no" >&6; }
27247
27248
27249
27250 fi
27251 rm -Rf build
27252
27253
27254
27255
27256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
27257 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
27258
27259
27260 cat confdefs.h - <<_ACEOF >conftest.c
27261
27262
27263 #include <linux/fs.h>
27264
27265 struct dentry *inode_lookup(struct inode *inode,
27266 struct dentry *dentry, struct nameidata *nidata)
27267 { return NULL; }
27268
27269 static const struct inode_operations iops
27270 __attribute__ ((unused)) = {
27271 .lookup = inode_lookup,
27272 };
27273
27274 int
27275 main (void)
27276 {
27277
27278
27279 ;
27280 return 0;
27281 }
27282
27283 _ACEOF
27284
27285
27286
27287 cat - <<_ACEOF >conftest.h
27288
27289 _ACEOF
27290
27291
27292 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27293 echo "obj-m := conftest.o" >build/Makefile
27294 modpost_flag=''
27295 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27296 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27298 (eval $ac_try) 2>&5
27299 ac_status=$?
27300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27301 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27303 (eval $ac_try) 2>&5
27304 ac_status=$?
27305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27306 test $ac_status = 0; }; }; then :
27307
27308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27309 $as_echo "yes" >&6; }
27310
27311 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
27312
27313
27314 else
27315 $as_echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27317
27318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27319 $as_echo "no" >&6; }
27320
27321
27322
27323 fi
27324 rm -Rf build
27325
27326
27327
27328
27329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
27330 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
27331
27332
27333 cat confdefs.h - <<_ACEOF >conftest.c
27334
27335
27336 #include <linux/fs.h>
27337
27338 #ifdef HAVE_MKDIR_UMODE_T
27339 int inode_create(struct inode *inode ,struct dentry *dentry,
27340 umode_t umode, struct nameidata *nidata) { return 0; }
27341 #else
27342 int inode_create(struct inode *inode,struct dentry *dentry,
27343 int umode, struct nameidata * nidata) { return 0; }
27344 #endif
27345
27346 static const struct inode_operations
27347 iops __attribute__ ((unused)) = {
27348 .create = inode_create,
27349 };
27350
27351 int
27352 main (void)
27353 {
27354
27355
27356 ;
27357 return 0;
27358 }
27359
27360 _ACEOF
27361
27362
27363
27364 cat - <<_ACEOF >conftest.h
27365
27366 _ACEOF
27367
27368
27369 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27370 echo "obj-m := conftest.o" >build/Makefile
27371 modpost_flag=''
27372 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27373 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27375 (eval $ac_try) 2>&5
27376 ac_status=$?
27377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27378 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27380 (eval $ac_try) 2>&5
27381 ac_status=$?
27382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27383 test $ac_status = 0; }; }; then :
27384
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27386 $as_echo "yes" >&6; }
27387
27388 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
27389
27390
27391 else
27392 $as_echo "$as_me: failed program was:" >&5
27393 sed 's/^/| /' conftest.$ac_ext >&5
27394
27395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27396 $as_echo "no" >&6; }
27397
27398
27399
27400 fi
27401 rm -Rf build
27402
27403
27404
27405
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
27407 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
27408
27409
27410 cat confdefs.h - <<_ACEOF >conftest.c
27411
27412
27413 #include <linux/fs.h>
27414 const char *get_link(struct dentry *de, struct inode *ip,
27415 struct delayed_call *done) { return "symlink"; }
27416 static struct inode_operations
27417 iops __attribute__ ((unused)) = {
27418 .get_link = get_link,
27419 };
27420
27421 int
27422 main (void)
27423 {
27424
27425
27426 ;
27427 return 0;
27428 }
27429
27430 _ACEOF
27431
27432
27433
27434 cat - <<_ACEOF >conftest.h
27435
27436 _ACEOF
27437
27438
27439 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27440 echo "obj-m := conftest.o" >build/Makefile
27441 modpost_flag=''
27442 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27443 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27445 (eval $ac_try) 2>&5
27446 ac_status=$?
27447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27448 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27450 (eval $ac_try) 2>&5
27451 ac_status=$?
27452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27453 test $ac_status = 0; }; }; then :
27454
27455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27456 $as_echo "yes" >&6; }
27457
27458 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
27459
27460
27461 else
27462 $as_echo "$as_me: failed program was:" >&5
27463 sed 's/^/| /' conftest.$ac_ext >&5
27464
27465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27466 $as_echo "no" >&6; }
27467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
27468 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
27469
27470
27471 cat confdefs.h - <<_ACEOF >conftest.c
27472
27473
27474 #include <linux/fs.h>
27475 const char *get_link(struct dentry *de, struct
27476 inode *ip, void **cookie) { return "symlink"; }
27477 static struct inode_operations
27478 iops __attribute__ ((unused)) = {
27479 .get_link = get_link,
27480 };
27481
27482 int
27483 main (void)
27484 {
27485
27486
27487 ;
27488 return 0;
27489 }
27490
27491 _ACEOF
27492
27493
27494
27495 cat - <<_ACEOF >conftest.h
27496
27497 _ACEOF
27498
27499
27500 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27501 echo "obj-m := conftest.o" >build/Makefile
27502 modpost_flag=''
27503 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27504 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27506 (eval $ac_try) 2>&5
27507 ac_status=$?
27508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27509 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27511 (eval $ac_try) 2>&5
27512 ac_status=$?
27513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27514 test $ac_status = 0; }; }; then :
27515
27516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27517 $as_echo "yes" >&6; }
27518
27519 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
27520
27521
27522 else
27523 $as_echo "$as_me: failed program was:" >&5
27524 sed 's/^/| /' conftest.$ac_ext >&5
27525
27526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27527 $as_echo "no" >&6; }
27528
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
27530 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
27531
27532
27533 cat confdefs.h - <<_ACEOF >conftest.c
27534
27535
27536 #include <linux/fs.h>
27537 const char *follow_link(struct dentry *de,
27538 void **cookie) { return "symlink"; }
27539 static struct inode_operations
27540 iops __attribute__ ((unused)) = {
27541 .follow_link = follow_link,
27542 };
27543
27544 int
27545 main (void)
27546 {
27547
27548
27549 ;
27550 return 0;
27551 }
27552
27553 _ACEOF
27554
27555
27556
27557 cat - <<_ACEOF >conftest.h
27558
27559 _ACEOF
27560
27561
27562 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27563 echo "obj-m := conftest.o" >build/Makefile
27564 modpost_flag=''
27565 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27566 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27568 (eval $ac_try) 2>&5
27569 ac_status=$?
27570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27571 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27573 (eval $ac_try) 2>&5
27574 ac_status=$?
27575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27576 test $ac_status = 0; }; }; then :
27577
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27579 $as_echo "yes" >&6; }
27580
27581 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
27582
27583
27584 else
27585 $as_echo "$as_me: failed program was:" >&5
27586 sed 's/^/| /' conftest.$ac_ext >&5
27587
27588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27589 $as_echo "no" >&6; }
27590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
27591 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
27592
27593
27594 cat confdefs.h - <<_ACEOF >conftest.c
27595
27596
27597 #include <linux/fs.h>
27598 void *follow_link(struct dentry *de, struct
27599 nameidata *nd) { return (void *)NULL; }
27600 static struct inode_operations
27601 iops __attribute__ ((unused)) = {
27602 .follow_link = follow_link,
27603 };
27604
27605 int
27606 main (void)
27607 {
27608
27609
27610 ;
27611 return 0;
27612 }
27613
27614 _ACEOF
27615
27616
27617
27618 cat - <<_ACEOF >conftest.h
27619
27620 _ACEOF
27621
27622
27623 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27624 echo "obj-m := conftest.o" >build/Makefile
27625 modpost_flag=''
27626 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27627 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27629 (eval $ac_try) 2>&5
27630 ac_status=$?
27631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27632 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27634 (eval $ac_try) 2>&5
27635 ac_status=$?
27636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27637 test $ac_status = 0; }; }; then :
27638
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27640 $as_echo "yes" >&6; }
27641
27642 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
27643
27644
27645 else
27646 $as_echo "$as_me: failed program was:" >&5
27647 sed 's/^/| /' conftest.$ac_ext >&5
27648
27649 as_fn_error $? "no; please file a bug report" "$LINENO" 5
27650
27651
27652
27653 fi
27654 rm -Rf build
27655
27656
27657
27658
27659
27660 fi
27661 rm -Rf build
27662
27663
27664
27665
27666
27667
27668 fi
27669 rm -Rf build
27670
27671
27672
27673
27674
27675 fi
27676 rm -Rf build
27677
27678
27679
27680
27681
27682
27683 cat confdefs.h - <<_ACEOF >conftest.c
27684
27685
27686 #if !defined(HAVE_GET_LINK_DELAYED)
27687 #error "Expecting get_link() delayed done"
27688 #endif
27689
27690 int
27691 main (void)
27692 {
27693
27694
27695 ;
27696 return 0;
27697 }
27698
27699 _ACEOF
27700
27701
27702
27703 cat - <<_ACEOF >conftest.h
27704
27705 _ACEOF
27706
27707
27708 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27709 echo "obj-m := conftest.o" >build/Makefile
27710 modpost_flag=''
27711 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27712 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27714 (eval $ac_try) 2>&5
27715 ac_status=$?
27716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27717 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27719 (eval $ac_try) 2>&5
27720 ac_status=$?
27721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27722 test $ac_status = 0; }; }; then :
27723
27724
27725 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
27726
27727
27728 else
27729 $as_echo "$as_me: failed program was:" >&5
27730 sed 's/^/| /' conftest.$ac_ext >&5
27731
27732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
27733 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
27734
27735
27736 cat confdefs.h - <<_ACEOF >conftest.c
27737
27738
27739 #include <linux/fs.h>
27740 void put_link(struct inode *ip, void *cookie)
27741 { return; }
27742 static struct inode_operations
27743 iops __attribute__ ((unused)) = {
27744 .put_link = put_link,
27745 };
27746
27747 int
27748 main (void)
27749 {
27750
27751
27752 ;
27753 return 0;
27754 }
27755
27756 _ACEOF
27757
27758
27759
27760 cat - <<_ACEOF >conftest.h
27761
27762 _ACEOF
27763
27764
27765 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27766 echo "obj-m := conftest.o" >build/Makefile
27767 modpost_flag=''
27768 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27769 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27771 (eval $ac_try) 2>&5
27772 ac_status=$?
27773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27774 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27776 (eval $ac_try) 2>&5
27777 ac_status=$?
27778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27779 test $ac_status = 0; }; }; then :
27780
27781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27782 $as_echo "yes" >&6; }
27783
27784 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
27785
27786
27787 else
27788 $as_echo "$as_me: failed program was:" >&5
27789 sed 's/^/| /' conftest.$ac_ext >&5
27790
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27792 $as_echo "no" >&6; }
27793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
27794 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
27795
27796
27797 cat confdefs.h - <<_ACEOF >conftest.c
27798
27799
27800 #include <linux/fs.h>
27801 void put_link(struct dentry *de, struct
27802 nameidata *nd, void *ptr) { return; }
27803 static struct inode_operations
27804 iops __attribute__ ((unused)) = {
27805 .put_link = put_link,
27806 };
27807
27808 int
27809 main (void)
27810 {
27811
27812
27813 ;
27814 return 0;
27815 }
27816
27817 _ACEOF
27818
27819
27820
27821 cat - <<_ACEOF >conftest.h
27822
27823 _ACEOF
27824
27825
27826 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27827 echo "obj-m := conftest.o" >build/Makefile
27828 modpost_flag=''
27829 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27830 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27832 (eval $ac_try) 2>&5
27833 ac_status=$?
27834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27835 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27837 (eval $ac_try) 2>&5
27838 ac_status=$?
27839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27840 test $ac_status = 0; }; }; then :
27841
27842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27843 $as_echo "yes" >&6; }
27844
27845 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
27846
27847
27848 else
27849 $as_echo "$as_me: failed program was:" >&5
27850 sed 's/^/| /' conftest.$ac_ext >&5
27851
27852 as_fn_error $? "no; please file a bug report" "$LINENO" 5
27853
27854
27855
27856 fi
27857 rm -Rf build
27858
27859
27860
27861
27862
27863 fi
27864 rm -Rf build
27865
27866
27867
27868
27869
27870 fi
27871 rm -Rf build
27872
27873
27874
27875
27876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
27877 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
27878
27879
27880 cat confdefs.h - <<_ACEOF >conftest.c
27881
27882
27883 #include <linux/fs.h>
27884 void truncate_range(struct inode *inode, loff_t start,
27885 loff_t end) { return; }
27886 static struct inode_operations iops __attribute__ ((unused)) = {
27887 .truncate_range = truncate_range,
27888 };
27889
27890 int
27891 main (void)
27892 {
27893
27894
27895 ;
27896 return 0;
27897 }
27898
27899 _ACEOF
27900
27901
27902
27903 cat - <<_ACEOF >conftest.h
27904
27905 _ACEOF
27906
27907
27908 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27909 echo "obj-m := conftest.o" >build/Makefile
27910 modpost_flag=''
27911 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27912 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27914 (eval $ac_try) 2>&5
27915 ac_status=$?
27916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27917 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27919 (eval $ac_try) 2>&5
27920 ac_status=$?
27921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27922 test $ac_status = 0; }; }; then :
27923
27924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27925 $as_echo "yes" >&6; }
27926
27927 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
27928
27929
27930 else
27931 $as_echo "$as_me: failed program was:" >&5
27932 sed 's/^/| /' conftest.$ac_ext >&5
27933
27934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27935 $as_echo "no" >&6; }
27936
27937
27938
27939 fi
27940 rm -Rf build
27941
27942
27943
27944
27945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
27946 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
27947
27948
27949 cat confdefs.h - <<_ACEOF >conftest.c
27950
27951
27952 #include <linux/dcache.h>
27953 struct vfsmount *d_automount(struct path *p) { return NULL; }
27954 struct dentry_operations dops __attribute__ ((unused)) = {
27955 .d_automount = d_automount,
27956 };
27957
27958 int
27959 main (void)
27960 {
27961
27962
27963 ;
27964 return 0;
27965 }
27966
27967 _ACEOF
27968
27969
27970
27971 cat - <<_ACEOF >conftest.h
27972
27973 _ACEOF
27974
27975
27976 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27977 echo "obj-m := conftest.o" >build/Makefile
27978 modpost_flag=''
27979 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27980 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27982 (eval $ac_try) 2>&5
27983 ac_status=$?
27984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27985 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27987 (eval $ac_try) 2>&5
27988 ac_status=$?
27989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27990 test $ac_status = 0; }; }; then :
27991
27992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27993 $as_echo "yes" >&6; }
27994
27995 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
27996
27997
27998 else
27999 $as_echo "$as_me: failed program was:" >&5
28000 sed 's/^/| /' conftest.$ac_ext >&5
28001
28002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28003 $as_echo "no" >&6; }
28004
28005
28006
28007 fi
28008 rm -Rf build
28009
28010
28011
28012
28013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
28014 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
28015
28016
28017 cat confdefs.h - <<_ACEOF >conftest.c
28018
28019
28020 #include <linux/exportfs.h>
28021 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
28022 struct inode *parent) { return 0; }
28023 static struct export_operations eops __attribute__ ((unused))={
28024 .encode_fh = encode_fh,
28025 };
28026
28027 int
28028 main (void)
28029 {
28030
28031
28032 ;
28033 return 0;
28034 }
28035
28036 _ACEOF
28037
28038
28039
28040 cat - <<_ACEOF >conftest.h
28041
28042 _ACEOF
28043
28044
28045 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28046 echo "obj-m := conftest.o" >build/Makefile
28047 modpost_flag=''
28048 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28049 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28051 (eval $ac_try) 2>&5
28052 ac_status=$?
28053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28054 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28056 (eval $ac_try) 2>&5
28057 ac_status=$?
28058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28059 test $ac_status = 0; }; }; then :
28060
28061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28062 $as_echo "yes" >&6; }
28063
28064 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
28065
28066
28067 else
28068 $as_echo "$as_me: failed program was:" >&5
28069 sed 's/^/| /' conftest.$ac_ext >&5
28070
28071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28072 $as_echo "no" >&6; }
28073
28074
28075
28076 fi
28077 rm -Rf build
28078
28079
28080
28081
28082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
28083 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
28084
28085
28086 cat confdefs.h - <<_ACEOF >conftest.c
28087
28088
28089 #include <linux/exportfs.h>
28090 int commit_metadata(struct inode *inode) { return 0; }
28091 static struct export_operations eops __attribute__ ((unused))={
28092 .commit_metadata = commit_metadata,
28093 };
28094
28095 int
28096 main (void)
28097 {
28098
28099
28100 ;
28101 return 0;
28102 }
28103
28104 _ACEOF
28105
28106
28107
28108 cat - <<_ACEOF >conftest.h
28109
28110 _ACEOF
28111
28112
28113 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28114 echo "obj-m := conftest.o" >build/Makefile
28115 modpost_flag=''
28116 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28117 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28119 (eval $ac_try) 2>&5
28120 ac_status=$?
28121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28122 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28124 (eval $ac_try) 2>&5
28125 ac_status=$?
28126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28127 test $ac_status = 0; }; }; then :
28128
28129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28130 $as_echo "yes" >&6; }
28131
28132 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
28133
28134
28135 else
28136 $as_echo "$as_me: failed program was:" >&5
28137 sed 's/^/| /' conftest.$ac_ext >&5
28138
28139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28140 $as_echo "no" >&6; }
28141
28142
28143
28144 fi
28145 rm -Rf build
28146
28147
28148
28149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
28150 $as_echo_n "checking whether clear_inode() is available... " >&6; }
28151
28152
28153
28154 cat confdefs.h - <<_ACEOF >conftest.c
28155
28156
28157 #include <linux/fs.h>
28158
28159 int
28160 main (void)
28161 {
28162
28163 clear_inode(NULL);
28164
28165 ;
28166 return 0;
28167 }
28168
28169 _ACEOF
28170
28171
28172
28173 cat - <<_ACEOF >conftest.h
28174
28175 _ACEOF
28176
28177
28178 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28179 echo "obj-m := conftest.o" >build/Makefile
28180 modpost_flag=''
28181 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28182 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28184 (eval $ac_try) 2>&5
28185 ac_status=$?
28186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28187 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28189 (eval $ac_try) 2>&5
28190 ac_status=$?
28191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28192 test $ac_status = 0; }; }; then :
28193 rc=0
28194 else
28195 $as_echo "$as_me: failed program was:" >&5
28196 sed 's/^/| /' conftest.$ac_ext >&5
28197 rc=1
28198
28199
28200 fi
28201 rm -Rf build
28202
28203
28204 if test $rc -ne 0; then :
28205
28206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28207 $as_echo "no" >&6; }
28208
28209 else
28210 if test "x$enable_linux_builtin" != xyes; then
28211
28212 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
28213 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28214 rc=$?
28215 if test $rc -ne 0; then
28216 export=0
28217 for file in fs/inode.c; do
28218 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
28219 "$LINUX/$file" 2>/dev/null
28220 rc=$?
28221 if test $rc -eq 0; then
28222 export=1
28223 break;
28224 fi
28225 done
28226 if test $export -eq 0; then :
28227 rc=1
28228 else :
28229 rc=0
28230 fi
28231 else :
28232 rc=0
28233 fi
28234
28235 fi
28236 if test $rc -ne 0; then :
28237
28238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28239 $as_echo "no" >&6; }
28240
28241 else :
28242
28243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28244 $as_echo "yes" >&6; }
28245
28246 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
28247
28248
28249 fi
28250 fi
28251
28252
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
28254 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
28255
28256
28257
28258 cat confdefs.h - <<_ACEOF >conftest.c
28259
28260
28261 #include <linux/fs.h>
28262
28263 int
28264 main (void)
28265 {
28266
28267 insert_inode_locked(NULL);
28268
28269 ;
28270 return 0;
28271 }
28272
28273 _ACEOF
28274
28275
28276
28277 cat - <<_ACEOF >conftest.h
28278
28279 _ACEOF
28280
28281
28282 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28283 echo "obj-m := conftest.o" >build/Makefile
28284 modpost_flag=''
28285 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28286 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28288 (eval $ac_try) 2>&5
28289 ac_status=$?
28290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28291 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28293 (eval $ac_try) 2>&5
28294 ac_status=$?
28295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28296 test $ac_status = 0; }; }; then :
28297 rc=0
28298 else
28299 $as_echo "$as_me: failed program was:" >&5
28300 sed 's/^/| /' conftest.$ac_ext >&5
28301 rc=1
28302
28303
28304 fi
28305 rm -Rf build
28306
28307
28308 if test $rc -ne 0; then :
28309
28310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28311 $as_echo "no" >&6; }
28312
28313 else
28314 if test "x$enable_linux_builtin" != xyes; then
28315
28316 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
28317 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28318 rc=$?
28319 if test $rc -ne 0; then
28320 export=0
28321 for file in fs/inode.c; do
28322 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
28323 "$LINUX/$file" 2>/dev/null
28324 rc=$?
28325 if test $rc -eq 0; then
28326 export=1
28327 break;
28328 fi
28329 done
28330 if test $export -eq 0; then :
28331 rc=1
28332 else :
28333 rc=0
28334 fi
28335 else :
28336 rc=0
28337 fi
28338
28339 fi
28340 if test $rc -ne 0; then :
28341
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28343 $as_echo "no" >&6; }
28344
28345 else :
28346
28347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28348 $as_echo "yes" >&6; }
28349
28350 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
28351
28352
28353 fi
28354 fi
28355
28356
28357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
28358 $as_echo_n "checking whether d_make_root() is available... " >&6; }
28359
28360
28361
28362 cat confdefs.h - <<_ACEOF >conftest.c
28363
28364
28365 #include <linux/dcache.h>
28366
28367 int
28368 main (void)
28369 {
28370
28371 d_make_root(NULL);
28372
28373 ;
28374 return 0;
28375 }
28376
28377 _ACEOF
28378
28379
28380
28381 cat - <<_ACEOF >conftest.h
28382
28383 _ACEOF
28384
28385
28386 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28387 echo "obj-m := conftest.o" >build/Makefile
28388 modpost_flag=''
28389 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28390 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28392 (eval $ac_try) 2>&5
28393 ac_status=$?
28394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28395 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28397 (eval $ac_try) 2>&5
28398 ac_status=$?
28399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28400 test $ac_status = 0; }; }; then :
28401 rc=0
28402 else
28403 $as_echo "$as_me: failed program was:" >&5
28404 sed 's/^/| /' conftest.$ac_ext >&5
28405 rc=1
28406
28407
28408 fi
28409 rm -Rf build
28410
28411
28412 if test $rc -ne 0; then :
28413
28414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28415 $as_echo "no" >&6; }
28416
28417 else
28418 if test "x$enable_linux_builtin" != xyes; then
28419
28420 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
28421 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28422 rc=$?
28423 if test $rc -ne 0; then
28424 export=0
28425 for file in fs/dcache.c; do
28426 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
28427 "$LINUX/$file" 2>/dev/null
28428 rc=$?
28429 if test $rc -eq 0; then
28430 export=1
28431 break;
28432 fi
28433 done
28434 if test $export -eq 0; then :
28435 rc=1
28436 else :
28437 rc=0
28438 fi
28439 else :
28440 rc=0
28441 fi
28442
28443 fi
28444 if test $rc -ne 0; then :
28445
28446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28447 $as_echo "no" >&6; }
28448
28449 else :
28450
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28452 $as_echo "yes" >&6; }
28453
28454 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
28455
28456
28457 fi
28458 fi
28459
28460
28461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
28462 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
28463
28464
28465
28466 cat confdefs.h - <<_ACEOF >conftest.c
28467
28468
28469 #include <linux/dcache.h>
28470
28471 int
28472 main (void)
28473 {
28474
28475 d_obtain_alias(NULL);
28476
28477 ;
28478 return 0;
28479 }
28480
28481 _ACEOF
28482
28483
28484
28485 cat - <<_ACEOF >conftest.h
28486
28487 _ACEOF
28488
28489
28490 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28491 echo "obj-m := conftest.o" >build/Makefile
28492 modpost_flag=''
28493 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28494 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28496 (eval $ac_try) 2>&5
28497 ac_status=$?
28498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28499 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28501 (eval $ac_try) 2>&5
28502 ac_status=$?
28503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28504 test $ac_status = 0; }; }; then :
28505 rc=0
28506 else
28507 $as_echo "$as_me: failed program was:" >&5
28508 sed 's/^/| /' conftest.$ac_ext >&5
28509 rc=1
28510
28511
28512 fi
28513 rm -Rf build
28514
28515
28516 if test $rc -ne 0; then :
28517
28518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28519 $as_echo "no" >&6; }
28520
28521 else
28522 if test "x$enable_linux_builtin" != xyes; then
28523
28524 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
28525 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28526 rc=$?
28527 if test $rc -ne 0; then
28528 export=0
28529 for file in fs/dcache.c; do
28530 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
28531 "$LINUX/$file" 2>/dev/null
28532 rc=$?
28533 if test $rc -eq 0; then
28534 export=1
28535 break;
28536 fi
28537 done
28538 if test $export -eq 0; then :
28539 rc=1
28540 else :
28541 rc=0
28542 fi
28543 else :
28544 rc=0
28545 fi
28546
28547 fi
28548 if test $rc -ne 0; then :
28549
28550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28551 $as_echo "no" >&6; }
28552
28553 else :
28554
28555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28556 $as_echo "yes" >&6; }
28557
28558 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
28559
28560
28561 fi
28562 fi
28563
28564
28565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
28566 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
28567
28568
28569
28570 cat confdefs.h - <<_ACEOF >conftest.c
28571
28572
28573 #include <linux/dcache.h>
28574
28575 int
28576 main (void)
28577 {
28578
28579 struct inode *ip = NULL;
28580 d_prune_aliases(ip);
28581
28582 ;
28583 return 0;
28584 }
28585
28586 _ACEOF
28587
28588
28589
28590 cat - <<_ACEOF >conftest.h
28591
28592 _ACEOF
28593
28594
28595 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28596 echo "obj-m := conftest.o" >build/Makefile
28597 modpost_flag=''
28598 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28599 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28601 (eval $ac_try) 2>&5
28602 ac_status=$?
28603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28604 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28606 (eval $ac_try) 2>&5
28607 ac_status=$?
28608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28609 test $ac_status = 0; }; }; then :
28610 rc=0
28611 else
28612 $as_echo "$as_me: failed program was:" >&5
28613 sed 's/^/| /' conftest.$ac_ext >&5
28614 rc=1
28615
28616
28617 fi
28618 rm -Rf build
28619
28620
28621 if test $rc -ne 0; then :
28622
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28624 $as_echo "no" >&6; }
28625
28626 else
28627 if test "x$enable_linux_builtin" != xyes; then
28628
28629 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
28630 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28631 rc=$?
28632 if test $rc -ne 0; then
28633 export=0
28634 for file in fs/dcache.c; do
28635 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
28636 "$LINUX/$file" 2>/dev/null
28637 rc=$?
28638 if test $rc -eq 0; then
28639 export=1
28640 break;
28641 fi
28642 done
28643 if test $export -eq 0; then :
28644 rc=1
28645 else :
28646 rc=0
28647 fi
28648 else :
28649 rc=0
28650 fi
28651
28652 fi
28653 if test $rc -ne 0; then :
28654
28655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28656 $as_echo "no" >&6; }
28657
28658 else :
28659
28660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28661 $as_echo "yes" >&6; }
28662
28663 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
28664
28665
28666 fi
28667 fi
28668
28669
28670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
28671 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
28672
28673
28674
28675 cat confdefs.h - <<_ACEOF >conftest.c
28676
28677
28678 #include <linux/dcache.h>
28679
28680 int
28681 main (void)
28682 {
28683
28684 d_set_d_op(NULL, NULL);
28685
28686 ;
28687 return 0;
28688 }
28689
28690 _ACEOF
28691
28692
28693
28694 cat - <<_ACEOF >conftest.h
28695
28696 _ACEOF
28697
28698
28699 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28700 echo "obj-m := conftest.o" >build/Makefile
28701 modpost_flag=''
28702 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28703 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28705 (eval $ac_try) 2>&5
28706 ac_status=$?
28707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28708 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28710 (eval $ac_try) 2>&5
28711 ac_status=$?
28712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28713 test $ac_status = 0; }; }; then :
28714 rc=0
28715 else
28716 $as_echo "$as_me: failed program was:" >&5
28717 sed 's/^/| /' conftest.$ac_ext >&5
28718 rc=1
28719
28720
28721 fi
28722 rm -Rf build
28723
28724
28725 if test $rc -ne 0; then :
28726
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28728 $as_echo "no" >&6; }
28729
28730 else
28731 if test "x$enable_linux_builtin" != xyes; then
28732
28733 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
28734 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28735 rc=$?
28736 if test $rc -ne 0; then
28737 export=0
28738 for file in fs/dcache.c; do
28739 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
28740 "$LINUX/$file" 2>/dev/null
28741 rc=$?
28742 if test $rc -eq 0; then
28743 export=1
28744 break;
28745 fi
28746 done
28747 if test $export -eq 0; then :
28748 rc=1
28749 else :
28750 rc=0
28751 fi
28752 else :
28753 rc=0
28754 fi
28755
28756 fi
28757 if test $rc -ne 0; then :
28758
28759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28760 $as_echo "no" >&6; }
28761
28762 else :
28763
28764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28765 $as_echo "yes" >&6; }
28766
28767 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
28768
28769
28770 fi
28771 fi
28772
28773
28774
28775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
28776 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
28777
28778
28779 cat confdefs.h - <<_ACEOF >conftest.c
28780
28781
28782 #include <linux/dcache.h>
28783
28784 int revalidate (struct dentry *dentry,
28785 struct nameidata *nidata) { return 0; }
28786
28787 static const struct dentry_operations
28788 dops __attribute__ ((unused)) = {
28789 .d_revalidate = revalidate,
28790 };
28791
28792 int
28793 main (void)
28794 {
28795
28796
28797 ;
28798 return 0;
28799 }
28800
28801 _ACEOF
28802
28803
28804
28805 cat - <<_ACEOF >conftest.h
28806
28807 _ACEOF
28808
28809
28810 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28811 echo "obj-m := conftest.o" >build/Makefile
28812 modpost_flag=''
28813 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28814 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28816 (eval $ac_try) 2>&5
28817 ac_status=$?
28818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28819 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28821 (eval $ac_try) 2>&5
28822 ac_status=$?
28823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28824 test $ac_status = 0; }; }; then :
28825
28826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28827 $as_echo "yes" >&6; }
28828
28829 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
28830
28831
28832 else
28833 $as_echo "$as_me: failed program was:" >&5
28834 sed 's/^/| /' conftest.$ac_ext >&5
28835
28836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28837 $as_echo "no" >&6; }
28838
28839
28840
28841 fi
28842 rm -Rf build
28843
28844
28845
28846
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
28848 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
28849
28850
28851 cat confdefs.h - <<_ACEOF >conftest.c
28852
28853
28854 #include <linux/dcache.h>
28855
28856 const struct dentry_operations test_d_op = {
28857 .d_revalidate = NULL,
28858 };
28859
28860 int
28861 main (void)
28862 {
28863
28864 struct dentry d __attribute__ ((unused));
28865
28866 d.d_op = &test_d_op;
28867
28868 ;
28869 return 0;
28870 }
28871
28872 _ACEOF
28873
28874
28875
28876 cat - <<_ACEOF >conftest.h
28877
28878 _ACEOF
28879
28880
28881 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28882 echo "obj-m := conftest.o" >build/Makefile
28883 modpost_flag=''
28884 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28885 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28887 (eval $ac_try) 2>&5
28888 ac_status=$?
28889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28890 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28892 (eval $ac_try) 2>&5
28893 ac_status=$?
28894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28895 test $ac_status = 0; }; }; then :
28896
28897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28898 $as_echo "yes" >&6; }
28899
28900 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
28901
28902
28903 else
28904 $as_echo "$as_me: failed program was:" >&5
28905 sed 's/^/| /' conftest.$ac_ext >&5
28906
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28908 $as_echo "no" >&6; }
28909
28910
28911
28912 fi
28913 rm -Rf build
28914
28915
28916
28917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
28918 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
28919
28920
28921
28922 cat confdefs.h - <<_ACEOF >conftest.c
28923
28924
28925 #include <linux/fs.h>
28926
28927 int
28928 main (void)
28929 {
28930
28931 check_disk_size_change(NULL, NULL);
28932
28933 ;
28934 return 0;
28935 }
28936
28937 _ACEOF
28938
28939
28940
28941 cat - <<_ACEOF >conftest.h
28942
28943 _ACEOF
28944
28945
28946 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28947 echo "obj-m := conftest.o" >build/Makefile
28948 modpost_flag=''
28949 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28950 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28952 (eval $ac_try) 2>&5
28953 ac_status=$?
28954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28955 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28957 (eval $ac_try) 2>&5
28958 ac_status=$?
28959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28960 test $ac_status = 0; }; }; then :
28961 rc=0
28962 else
28963 $as_echo "$as_me: failed program was:" >&5
28964 sed 's/^/| /' conftest.$ac_ext >&5
28965 rc=1
28966
28967
28968 fi
28969 rm -Rf build
28970
28971
28972 if test $rc -ne 0; then :
28973
28974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28975 $as_echo "no" >&6; }
28976
28977 else
28978 if test "x$enable_linux_builtin" != xyes; then
28979
28980 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
28981 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28982 rc=$?
28983 if test $rc -ne 0; then
28984 export=0
28985 for file in fs/block_dev.c; do
28986 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
28987 "$LINUX/$file" 2>/dev/null
28988 rc=$?
28989 if test $rc -eq 0; then
28990 export=1
28991 break;
28992 fi
28993 done
28994 if test $export -eq 0; then :
28995 rc=1
28996 else :
28997 rc=0
28998 fi
28999 else :
29000 rc=0
29001 fi
29002
29003 fi
29004 if test $rc -ne 0; then :
29005
29006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29007 $as_echo "no" >&6; }
29008
29009 else :
29010
29011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29012 $as_echo "yes" >&6; }
29013
29014 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
29015
29016
29017 fi
29018 fi
29019
29020
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
29022 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
29023
29024
29025
29026 cat confdefs.h - <<_ACEOF >conftest.c
29027
29028
29029 #include <linux/mm.h>
29030
29031 int
29032 main (void)
29033 {
29034
29035 truncate_setsize(NULL, 0);
29036
29037 ;
29038 return 0;
29039 }
29040
29041 _ACEOF
29042
29043
29044
29045 cat - <<_ACEOF >conftest.h
29046
29047 _ACEOF
29048
29049
29050 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29051 echo "obj-m := conftest.o" >build/Makefile
29052 modpost_flag=''
29053 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29054 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29056 (eval $ac_try) 2>&5
29057 ac_status=$?
29058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29059 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29061 (eval $ac_try) 2>&5
29062 ac_status=$?
29063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29064 test $ac_status = 0; }; }; then :
29065 rc=0
29066 else
29067 $as_echo "$as_me: failed program was:" >&5
29068 sed 's/^/| /' conftest.$ac_ext >&5
29069 rc=1
29070
29071
29072 fi
29073 rm -Rf build
29074
29075
29076 if test $rc -ne 0; then :
29077
29078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29079 $as_echo "no" >&6; }
29080
29081 else
29082 if test "x$enable_linux_builtin" != xyes; then
29083
29084 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
29085 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29086 rc=$?
29087 if test $rc -ne 0; then
29088 export=0
29089 for file in mm/truncate.c; do
29090 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
29091 "$LINUX/$file" 2>/dev/null
29092 rc=$?
29093 if test $rc -eq 0; then
29094 export=1
29095 break;
29096 fi
29097 done
29098 if test $export -eq 0; then :
29099 rc=1
29100 else :
29101 rc=0
29102 fi
29103 else :
29104 rc=0
29105 fi
29106
29107 fi
29108 if test $rc -ne 0; then :
29109
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29111 $as_echo "no" >&6; }
29112
29113 else :
29114
29115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29116 $as_echo "yes" >&6; }
29117
29118 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
29119
29120
29121 fi
29122 fi
29123
29124
29125
29126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
29127 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
29128
29129
29130 cat confdefs.h - <<_ACEOF >conftest.c
29131
29132
29133 #include <linux/security.h>
29134
29135 int
29136 main (void)
29137 {
29138
29139 struct inode *ip __attribute__ ((unused)) = NULL;
29140 struct inode *dip __attribute__ ((unused)) = NULL;
29141 const struct qstr *str __attribute__ ((unused)) = NULL;
29142 char *name __attribute__ ((unused)) = NULL;
29143 void *value __attribute__ ((unused)) = NULL;
29144 size_t len __attribute__ ((unused)) = 0;
29145
29146 security_inode_init_security(ip, dip, str, &name, &value, &len);
29147
29148 ;
29149 return 0;
29150 }
29151
29152 _ACEOF
29153
29154
29155
29156 cat - <<_ACEOF >conftest.h
29157
29158 _ACEOF
29159
29160
29161 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29162 echo "obj-m := conftest.o" >build/Makefile
29163 modpost_flag=''
29164 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29165 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29167 (eval $ac_try) 2>&5
29168 ac_status=$?
29169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29170 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29172 (eval $ac_try) 2>&5
29173 ac_status=$?
29174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29175 test $ac_status = 0; }; }; then :
29176
29177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29178 $as_echo "yes" >&6; }
29179
29180 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
29181
29182
29183 else
29184 $as_echo "$as_me: failed program was:" >&5
29185 sed 's/^/| /' conftest.$ac_ext >&5
29186
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29188 $as_echo "no" >&6; }
29189
29190
29191
29192 fi
29193 rm -Rf build
29194
29195
29196
29197
29198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
29199 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
29200
29201
29202 cat confdefs.h - <<_ACEOF >conftest.c
29203
29204
29205 #include <linux/security.h>
29206
29207 int
29208 main (void)
29209 {
29210
29211 struct inode *ip __attribute__ ((unused)) = NULL;
29212 struct inode *dip __attribute__ ((unused)) = NULL;
29213 const struct qstr *str __attribute__ ((unused)) = NULL;
29214 initxattrs func __attribute__ ((unused)) = NULL;
29215
29216 security_inode_init_security(ip, dip, str, func, NULL);
29217
29218 ;
29219 return 0;
29220 }
29221
29222 _ACEOF
29223
29224
29225
29226 cat - <<_ACEOF >conftest.h
29227
29228 _ACEOF
29229
29230
29231 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29232 echo "obj-m := conftest.o" >build/Makefile
29233 modpost_flag=''
29234 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29235 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29237 (eval $ac_try) 2>&5
29238 ac_status=$?
29239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29240 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29242 (eval $ac_try) 2>&5
29243 ac_status=$?
29244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29245 test $ac_status = 0; }; }; then :
29246
29247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29248 $as_echo "yes" >&6; }
29249
29250 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
29251
29252
29253 else
29254 $as_echo "$as_me: failed program was:" >&5
29255 sed 's/^/| /' conftest.$ac_ext >&5
29256
29257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29258 $as_echo "no" >&6; }
29259
29260
29261
29262 fi
29263 rm -Rf build
29264
29265
29266
29267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
29268 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
29269
29270
29271
29272 cat confdefs.h - <<_ACEOF >conftest.c
29273
29274
29275 #include <linux/fs.h>
29276
29277 int
29278 main (void)
29279 {
29280
29281 mount_nodev(NULL, 0, NULL, NULL);
29282
29283 ;
29284 return 0;
29285 }
29286
29287 _ACEOF
29288
29289
29290
29291 cat - <<_ACEOF >conftest.h
29292
29293 _ACEOF
29294
29295
29296 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29297 echo "obj-m := conftest.o" >build/Makefile
29298 modpost_flag=''
29299 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29300 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29302 (eval $ac_try) 2>&5
29303 ac_status=$?
29304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29305 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29307 (eval $ac_try) 2>&5
29308 ac_status=$?
29309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29310 test $ac_status = 0; }; }; then :
29311 rc=0
29312 else
29313 $as_echo "$as_me: failed program was:" >&5
29314 sed 's/^/| /' conftest.$ac_ext >&5
29315 rc=1
29316
29317
29318 fi
29319 rm -Rf build
29320
29321
29322 if test $rc -ne 0; then :
29323
29324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29325 $as_echo "no" >&6; }
29326
29327 else
29328 if test "x$enable_linux_builtin" != xyes; then
29329
29330 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
29331 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29332 rc=$?
29333 if test $rc -ne 0; then
29334 export=0
29335 for file in fs/super.c; do
29336 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
29337 "$LINUX/$file" 2>/dev/null
29338 rc=$?
29339 if test $rc -eq 0; then
29340 export=1
29341 break;
29342 fi
29343 done
29344 if test $export -eq 0; then :
29345 rc=1
29346 else :
29347 rc=0
29348 fi
29349 else :
29350 rc=0
29351 fi
29352
29353 fi
29354 if test $rc -ne 0; then :
29355
29356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29357 $as_echo "no" >&6; }
29358
29359 else :
29360
29361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29362 $as_echo "yes" >&6; }
29363
29364 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
29365
29366
29367 fi
29368 fi
29369
29370
29371
29372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
29373 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
29374
29375
29376 cat confdefs.h - <<_ACEOF >conftest.c
29377
29378
29379 #include <linux/fs.h>
29380
29381 int shrink(struct shrinker *s, struct shrink_control *sc)
29382 { return 0; }
29383
29384 static const struct super_block
29385 sb __attribute__ ((unused)) = {
29386 .s_shrink.shrink = shrink,
29387 .s_shrink.seeks = DEFAULT_SEEKS,
29388 .s_shrink.batch = 0,
29389 };
29390
29391 int
29392 main (void)
29393 {
29394
29395
29396 ;
29397 return 0;
29398 }
29399
29400 _ACEOF
29401
29402
29403
29404 cat - <<_ACEOF >conftest.h
29405
29406 _ACEOF
29407
29408
29409 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29410 echo "obj-m := conftest.o" >build/Makefile
29411 modpost_flag=''
29412 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29413 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29415 (eval $ac_try) 2>&5
29416 ac_status=$?
29417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29418 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29420 (eval $ac_try) 2>&5
29421 ac_status=$?
29422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29423 test $ac_status = 0; }; }; then :
29424
29425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29426 $as_echo "yes" >&6; }
29427
29428 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
29429
29430
29431
29432 else
29433 $as_echo "$as_me: failed program was:" >&5
29434 sed 's/^/| /' conftest.$ac_ext >&5
29435
29436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29437 $as_echo "no" >&6; }
29438
29439
29440
29441 fi
29442 rm -Rf build
29443
29444
29445
29446
29447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
29448 $as_echo_n "checking whether shrink_control has nid... " >&6; }
29449
29450
29451 cat confdefs.h - <<_ACEOF >conftest.c
29452
29453
29454 #include <linux/fs.h>
29455
29456 int
29457 main (void)
29458 {
29459
29460 struct shrink_control sc __attribute__ ((unused));
29461 unsigned long scnidsize __attribute__ ((unused)) =
29462 sizeof(sc.nid);
29463
29464 ;
29465 return 0;
29466 }
29467
29468 _ACEOF
29469
29470
29471
29472 cat - <<_ACEOF >conftest.h
29473
29474 _ACEOF
29475
29476
29477 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29478 echo "obj-m := conftest.o" >build/Makefile
29479 modpost_flag=''
29480 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29481 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29483 (eval $ac_try) 2>&5
29484 ac_status=$?
29485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29486 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29488 (eval $ac_try) 2>&5
29489 ac_status=$?
29490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29491 test $ac_status = 0; }; }; then :
29492
29493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29494 $as_echo "yes" >&6; }
29495
29496 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
29497
29498
29499 else
29500 $as_echo "$as_me: failed program was:" >&5
29501 sed 's/^/| /' conftest.$ac_ext >&5
29502
29503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29504 $as_echo "no" >&6; }
29505
29506
29507
29508 fi
29509 rm -Rf build
29510
29511
29512
29513
29514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
29515 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
29516
29517
29518 cat confdefs.h - <<_ACEOF >conftest.c
29519
29520
29521 #include <linux/fs.h>
29522
29523 int
29524 main (void)
29525 {
29526
29527 struct super_block sb __attribute__ ((unused));
29528
29529 INIT_LIST_HEAD(&sb.s_instances);
29530
29531 ;
29532 return 0;
29533 }
29534
29535 _ACEOF
29536
29537
29538
29539 cat - <<_ACEOF >conftest.h
29540
29541 _ACEOF
29542
29543
29544 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29545 echo "obj-m := conftest.o" >build/Makefile
29546 modpost_flag=''
29547 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29548 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29550 (eval $ac_try) 2>&5
29551 ac_status=$?
29552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29553 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29555 (eval $ac_try) 2>&5
29556 ac_status=$?
29557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29558 test $ac_status = 0; }; }; then :
29559
29560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29561 $as_echo "yes" >&6; }
29562
29563 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
29564
29565
29566 else
29567 $as_echo "$as_me: failed program was:" >&5
29568 sed 's/^/| /' conftest.$ac_ext >&5
29569
29570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29571 $as_echo "no" >&6; }
29572
29573
29574
29575 fi
29576 rm -Rf build
29577
29578
29579
29580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
29581 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
29582
29583
29584 cat confdefs.h - <<_ACEOF >conftest.c
29585
29586
29587 #include <linux/fs.h>
29588
29589 int
29590 main (void)
29591 {
29592
29593 struct super_block sb __attribute__ ((unused));
29594 sb.s_d_op = NULL;
29595
29596 ;
29597 return 0;
29598 }
29599
29600 _ACEOF
29601
29602
29603
29604 cat - <<_ACEOF >conftest.h
29605
29606 _ACEOF
29607
29608
29609 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29610 echo "obj-m := conftest.o" >build/Makefile
29611 modpost_flag=''
29612 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29613 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29615 (eval $ac_try) 2>&5
29616 ac_status=$?
29617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29618 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29620 (eval $ac_try) 2>&5
29621 ac_status=$?
29622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29623 test $ac_status = 0; }; }; then :
29624
29625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29626 $as_echo "yes" >&6; }
29627
29628 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
29629
29630
29631 else
29632 $as_echo "$as_me: failed program was:" >&5
29633 sed 's/^/| /' conftest.$ac_ext >&5
29634
29635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29636 $as_echo "no" >&6; }
29637
29638
29639
29640 fi
29641 rm -Rf build
29642
29643
29644
29645
29646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
29647 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
29648
29649
29650
29651 cat confdefs.h - <<_ACEOF >conftest.c
29652
29653
29654 #include <linux/backing-dev.h>
29655 struct backing_dev_info bdi;
29656
29657 int
29658 main (void)
29659 {
29660
29661 char *name = "bdi";
29662 int error __attribute__((unused)) =
29663 bdi_setup_and_register(&bdi, name);
29664
29665 ;
29666 return 0;
29667 }
29668
29669 _ACEOF
29670
29671
29672
29673 cat - <<_ACEOF >conftest.h
29674
29675 _ACEOF
29676
29677
29678 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29679 echo "obj-m := conftest.o" >build/Makefile
29680 modpost_flag=''
29681 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29682 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29684 (eval $ac_try) 2>&5
29685 ac_status=$?
29686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29687 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29689 (eval $ac_try) 2>&5
29690 ac_status=$?
29691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29692 test $ac_status = 0; }; }; then :
29693 rc=0
29694 else
29695 $as_echo "$as_me: failed program was:" >&5
29696 sed 's/^/| /' conftest.$ac_ext >&5
29697 rc=1
29698
29699
29700 fi
29701 rm -Rf build
29702
29703
29704 if test $rc -ne 0; then :
29705
29706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29707 $as_echo "no" >&6; }
29708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
29709 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
29710
29711
29712
29713 cat confdefs.h - <<_ACEOF >conftest.c
29714
29715
29716 #include <linux/backing-dev.h>
29717 struct backing_dev_info bdi;
29718
29719 int
29720 main (void)
29721 {
29722
29723 char *name = "bdi";
29724 unsigned int cap = BDI_CAP_MAP_COPY;
29725 int error __attribute__((unused)) =
29726 bdi_setup_and_register(&bdi, name, cap);
29727
29728 ;
29729 return 0;
29730 }
29731
29732 _ACEOF
29733
29734
29735
29736 cat - <<_ACEOF >conftest.h
29737
29738 _ACEOF
29739
29740
29741 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29742 echo "obj-m := conftest.o" >build/Makefile
29743 modpost_flag=''
29744 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29745 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29747 (eval $ac_try) 2>&5
29748 ac_status=$?
29749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29750 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29752 (eval $ac_try) 2>&5
29753 ac_status=$?
29754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29755 test $ac_status = 0; }; }; then :
29756 rc=0
29757 else
29758 $as_echo "$as_me: failed program was:" >&5
29759 sed 's/^/| /' conftest.$ac_ext >&5
29760 rc=1
29761
29762
29763 fi
29764 rm -Rf build
29765
29766
29767 if test $rc -ne 0; then :
29768
29769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29770 $as_echo "no" >&6; }
29771
29772 else
29773 if test "x$enable_linux_builtin" != xyes; then
29774
29775 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
29776 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29777 rc=$?
29778 if test $rc -ne 0; then
29779 export=0
29780 for file in mm/backing-dev.c; do
29781 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
29782 "$LINUX/$file" 2>/dev/null
29783 rc=$?
29784 if test $rc -eq 0; then
29785 export=1
29786 break;
29787 fi
29788 done
29789 if test $export -eq 0; then :
29790 rc=1
29791 else :
29792 rc=0
29793 fi
29794 else :
29795 rc=0
29796 fi
29797
29798 fi
29799 if test $rc -ne 0; then :
29800
29801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29802 $as_echo "no" >&6; }
29803
29804 else :
29805
29806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29807 $as_echo "yes" >&6; }
29808
29809 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
29810
29811
29812 fi
29813 fi
29814
29815
29816 else
29817 if test "x$enable_linux_builtin" != xyes; then
29818
29819 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
29820 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29821 rc=$?
29822 if test $rc -ne 0; then
29823 export=0
29824 for file in mm/backing-dev.c; do
29825 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
29826 "$LINUX/$file" 2>/dev/null
29827 rc=$?
29828 if test $rc -eq 0; then
29829 export=1
29830 break;
29831 fi
29832 done
29833 if test $export -eq 0; then :
29834 rc=1
29835 else :
29836 rc=0
29837 fi
29838 else :
29839 rc=0
29840 fi
29841
29842 fi
29843 if test $rc -ne 0; then :
29844
29845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29846 $as_echo "no" >&6; }
29847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
29848 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
29849
29850
29851
29852 cat confdefs.h - <<_ACEOF >conftest.c
29853
29854
29855 #include <linux/backing-dev.h>
29856 struct backing_dev_info bdi;
29857
29858 int
29859 main (void)
29860 {
29861
29862 char *name = "bdi";
29863 unsigned int cap = BDI_CAP_MAP_COPY;
29864 int error __attribute__((unused)) =
29865 bdi_setup_and_register(&bdi, name, cap);
29866
29867 ;
29868 return 0;
29869 }
29870
29871 _ACEOF
29872
29873
29874
29875 cat - <<_ACEOF >conftest.h
29876
29877 _ACEOF
29878
29879
29880 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29881 echo "obj-m := conftest.o" >build/Makefile
29882 modpost_flag=''
29883 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29884 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29886 (eval $ac_try) 2>&5
29887 ac_status=$?
29888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29889 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29891 (eval $ac_try) 2>&5
29892 ac_status=$?
29893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29894 test $ac_status = 0; }; }; then :
29895 rc=0
29896 else
29897 $as_echo "$as_me: failed program was:" >&5
29898 sed 's/^/| /' conftest.$ac_ext >&5
29899 rc=1
29900
29901
29902 fi
29903 rm -Rf build
29904
29905
29906 if test $rc -ne 0; then :
29907
29908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29909 $as_echo "no" >&6; }
29910
29911 else
29912 if test "x$enable_linux_builtin" != xyes; then
29913
29914 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
29915 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29916 rc=$?
29917 if test $rc -ne 0; then
29918 export=0
29919 for file in mm/backing-dev.c; do
29920 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
29921 "$LINUX/$file" 2>/dev/null
29922 rc=$?
29923 if test $rc -eq 0; then
29924 export=1
29925 break;
29926 fi
29927 done
29928 if test $export -eq 0; then :
29929 rc=1
29930 else :
29931 rc=0
29932 fi
29933 else :
29934 rc=0
29935 fi
29936
29937 fi
29938 if test $rc -ne 0; then :
29939
29940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29941 $as_echo "no" >&6; }
29942
29943 else :
29944
29945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29946 $as_echo "yes" >&6; }
29947
29948 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
29949
29950
29951 fi
29952 fi
29953
29954
29955 else :
29956
29957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29958 $as_echo "yes" >&6; }
29959
29960 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
29961
29962
29963 fi
29964 fi
29965
29966
29967
29968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
29969 $as_echo_n "checking whether set_nlink() is available... " >&6; }
29970
29971
29972 cat confdefs.h - <<_ACEOF >conftest.c
29973
29974
29975 #include <linux/fs.h>
29976
29977 int
29978 main (void)
29979 {
29980
29981 struct inode node;
29982 unsigned int link = 0;
29983 (void) set_nlink(&node, link);
29984
29985 ;
29986 return 0;
29987 }
29988
29989 _ACEOF
29990
29991
29992
29993 cat - <<_ACEOF >conftest.h
29994
29995 _ACEOF
29996
29997
29998 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29999 echo "obj-m := conftest.o" >build/Makefile
30000 modpost_flag=''
30001 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30002 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30004 (eval $ac_try) 2>&5
30005 ac_status=$?
30006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30007 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30009 (eval $ac_try) 2>&5
30010 ac_status=$?
30011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30012 test $ac_status = 0; }; }; then :
30013
30014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30015 $as_echo "yes" >&6; }
30016
30017 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
30018
30019
30020 else
30021 $as_echo "$as_me: failed program was:" >&5
30022 sed 's/^/| /' conftest.$ac_ext >&5
30023
30024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30025 $as_echo "no" >&6; }
30026
30027
30028
30029 fi
30030 rm -Rf build
30031
30032
30033
30034
30035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
30036 $as_echo_n "checking whether elevator_change() is available... " >&6; }
30037 tmp_flags="$EXTRA_KCFLAGS"
30038 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
30039
30040
30041 cat confdefs.h - <<_ACEOF >conftest.c
30042
30043
30044 #include <linux/blkdev.h>
30045 #include <linux/elevator.h>
30046
30047 int
30048 main (void)
30049 {
30050
30051 int ret;
30052 struct request_queue *q = NULL;
30053 char *elevator = NULL;
30054 ret = elevator_change(q, elevator);
30055
30056 ;
30057 return 0;
30058 }
30059
30060 _ACEOF
30061
30062
30063
30064 cat - <<_ACEOF >conftest.h
30065
30066 _ACEOF
30067
30068
30069 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30070 echo "obj-m := conftest.o" >build/Makefile
30071 modpost_flag=''
30072 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30073 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30075 (eval $ac_try) 2>&5
30076 ac_status=$?
30077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30078 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30080 (eval $ac_try) 2>&5
30081 ac_status=$?
30082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30083 test $ac_status = 0; }; }; then :
30084
30085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30086 $as_echo "yes" >&6; }
30087
30088 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
30089
30090
30091 else
30092 $as_echo "$as_me: failed program was:" >&5
30093 sed 's/^/| /' conftest.$ac_ext >&5
30094
30095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30096 $as_echo "no" >&6; }
30097
30098
30099
30100 fi
30101 rm -Rf build
30102
30103
30104 EXTRA_KCFLAGS="$tmp_flags"
30105
30106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
30107 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
30108
30109
30110 cat confdefs.h - <<_ACEOF >conftest.c
30111
30112
30113 #include <linux/fs.h>
30114
30115 int
30116 main (void)
30117 {
30118
30119 struct file_system_type *type = NULL;
30120 int (*test)(struct super_block *,void *) = NULL;
30121 int (*set)(struct super_block *,void *) = NULL;
30122 int flags = 0;
30123 void *data = NULL;
30124 (void) sget(type, test, set, flags, data);
30125
30126 ;
30127 return 0;
30128 }
30129
30130 _ACEOF
30131
30132
30133
30134 cat - <<_ACEOF >conftest.h
30135
30136 _ACEOF
30137
30138
30139 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30140 echo "obj-m := conftest.o" >build/Makefile
30141 modpost_flag=''
30142 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30143 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30145 (eval $ac_try) 2>&5
30146 ac_status=$?
30147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30148 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30150 (eval $ac_try) 2>&5
30151 ac_status=$?
30152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30153 test $ac_status = 0; }; }; then :
30154
30155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30156 $as_echo "yes" >&6; }
30157
30158 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
30159
30160
30161 else
30162 $as_echo "$as_me: failed program was:" >&5
30163 sed 's/^/| /' conftest.$ac_ext >&5
30164
30165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30166 $as_echo "no" >&6; }
30167
30168
30169
30170 fi
30171 rm -Rf build
30172
30173
30174
30175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
30176 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
30177
30178
30179
30180 cat confdefs.h - <<_ACEOF >conftest.c
30181
30182
30183 #include <linux/fs.h>
30184
30185 int
30186 main (void)
30187 {
30188
30189 struct file *fp __attribute__ ((unused)) = NULL;
30190 struct inode *ip __attribute__ ((unused)) = NULL;
30191 loff_t offset __attribute__ ((unused)) = 0;
30192 loff_t maxsize __attribute__ ((unused)) = 0;
30193
30194 lseek_execute(fp, ip, offset, maxsize);
30195
30196 ;
30197 return 0;
30198 }
30199
30200 _ACEOF
30201
30202
30203
30204 cat - <<_ACEOF >conftest.h
30205
30206 _ACEOF
30207
30208
30209 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30210 echo "obj-m := conftest.o" >build/Makefile
30211 modpost_flag=''
30212 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30213 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30215 (eval $ac_try) 2>&5
30216 ac_status=$?
30217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30218 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30220 (eval $ac_try) 2>&5
30221 ac_status=$?
30222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30223 test $ac_status = 0; }; }; then :
30224 rc=0
30225 else
30226 $as_echo "$as_me: failed program was:" >&5
30227 sed 's/^/| /' conftest.$ac_ext >&5
30228 rc=1
30229
30230
30231 fi
30232 rm -Rf build
30233
30234
30235 if test $rc -ne 0; then :
30236
30237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30238 $as_echo "no" >&6; }
30239
30240 else
30241 if test "x$enable_linux_builtin" != xyes; then
30242
30243 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
30244 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
30245 rc=$?
30246 if test $rc -ne 0; then
30247 export=0
30248 for file in fs/read_write.c; do
30249 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
30250 "$LINUX/$file" 2>/dev/null
30251 rc=$?
30252 if test $rc -eq 0; then
30253 export=1
30254 break;
30255 fi
30256 done
30257 if test $export -eq 0; then :
30258 rc=1
30259 else :
30260 rc=0
30261 fi
30262 else :
30263 rc=0
30264 fi
30265
30266 fi
30267 if test $rc -ne 0; then :
30268
30269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30270 $as_echo "no" >&6; }
30271
30272 else :
30273
30274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30275 $as_echo "yes" >&6; }
30276
30277 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
30278
30279
30280 fi
30281 fi
30282
30283
30284
30285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
30286 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
30287
30288
30289 cat confdefs.h - <<_ACEOF >conftest.c
30290
30291
30292 #include <linux/fs.h>
30293 int iterate(struct file *filp, struct dir_context * context)
30294 { return 0; }
30295
30296 static const struct file_operations fops
30297 __attribute__ ((unused)) = {
30298 .iterate = iterate,
30299 };
30300
30301 int
30302 main (void)
30303 {
30304
30305
30306 ;
30307 return 0;
30308 }
30309
30310 _ACEOF
30311
30312
30313
30314 cat - <<_ACEOF >conftest.h
30315
30316 _ACEOF
30317
30318
30319 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30320 echo "obj-m := conftest.o" >build/Makefile
30321 modpost_flag=''
30322 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30323 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30325 (eval $ac_try) 2>&5
30326 ac_status=$?
30327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30328 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30330 (eval $ac_try) 2>&5
30331 ac_status=$?
30332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30333 test $ac_status = 0; }; }; then :
30334
30335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30336 $as_echo "yes" >&6; }
30337
30338 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
30339
30340
30341 else
30342 $as_echo "$as_me: failed program was:" >&5
30343 sed 's/^/| /' conftest.$ac_ext >&5
30344
30345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30346 $as_echo "no" >&6; }
30347
30348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
30349 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
30350
30351
30352 cat confdefs.h - <<_ACEOF >conftest.c
30353
30354
30355 #include <linux/fs.h>
30356 int readdir(struct file *filp, void *entry, filldir_t func)
30357 { return 0; }
30358
30359 static const struct file_operations fops
30360 __attribute__ ((unused)) = {
30361 .readdir = readdir,
30362 };
30363
30364 int
30365 main (void)
30366 {
30367
30368
30369 ;
30370 return 0;
30371 }
30372
30373 _ACEOF
30374
30375
30376
30377 cat - <<_ACEOF >conftest.h
30378
30379 _ACEOF
30380
30381
30382 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30383 echo "obj-m := conftest.o" >build/Makefile
30384 modpost_flag=''
30385 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30386 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30388 (eval $ac_try) 2>&5
30389 ac_status=$?
30390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30391 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30393 (eval $ac_try) 2>&5
30394 ac_status=$?
30395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30396 test $ac_status = 0; }; }; then :
30397
30398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30399 $as_echo "yes" >&6; }
30400
30401 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
30402
30403
30404 else
30405 $as_echo "$as_me: failed program was:" >&5
30406 sed 's/^/| /' conftest.$ac_ext >&5
30407
30408 as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5
30409
30410
30411
30412 fi
30413 rm -Rf build
30414
30415
30416
30417
30418
30419
30420 fi
30421 rm -Rf build
30422
30423
30424
30425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
30426 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
30427
30428
30429 cat confdefs.h - <<_ACEOF >conftest.c
30430
30431
30432 #include <linux/fs.h>
30433
30434 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
30435 { return 0; }
30436 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
30437 { return 0; }
30438
30439 static const struct file_operations
30440 fops __attribute__ ((unused)) = {
30441 .read_iter = test_read,
30442 .write_iter = test_write,
30443 };
30444
30445 int
30446 main (void)
30447 {
30448
30449
30450 ;
30451 return 0;
30452 }
30453
30454 _ACEOF
30455
30456
30457
30458 cat - <<_ACEOF >conftest.h
30459
30460 _ACEOF
30461
30462
30463 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30464 echo "obj-m := conftest.o" >build/Makefile
30465 modpost_flag=''
30466 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30467 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30469 (eval $ac_try) 2>&5
30470 ac_status=$?
30471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30472 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30474 (eval $ac_try) 2>&5
30475 ac_status=$?
30476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30477 test $ac_status = 0; }; }; then :
30478
30479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30480 $as_echo "yes" >&6; }
30481
30482 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
30483
30484
30485 else
30486 $as_echo "$as_me: failed program was:" >&5
30487 sed 's/^/| /' conftest.$ac_ext >&5
30488
30489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30490 $as_echo "no" >&6; }
30491
30492
30493
30494 fi
30495 rm -Rf build
30496
30497
30498
30499
30500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
30501 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
30502
30503
30504 cat confdefs.h - <<_ACEOF >conftest.c
30505
30506
30507 #include <linux/pagemap.h>
30508
30509 int
30510 main (void)
30511 {
30512
30513 struct page page;
30514 kmap_atomic(&page);
30515
30516 ;
30517 return 0;
30518 }
30519
30520 _ACEOF
30521
30522
30523
30524 cat - <<_ACEOF >conftest.h
30525
30526 _ACEOF
30527
30528
30529 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30530 echo "obj-m := conftest.o" >build/Makefile
30531 modpost_flag=''
30532 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30533 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30535 (eval $ac_try) 2>&5
30536 ac_status=$?
30537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30538 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30540 (eval $ac_try) 2>&5
30541 ac_status=$?
30542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30543 test $ac_status = 0; }; }; then :
30544
30545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30546 $as_echo "yes" >&6; }
30547
30548 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
30549
30550
30551 else
30552 $as_echo "$as_me: failed program was:" >&5
30553 sed 's/^/| /' conftest.$ac_ext >&5
30554
30555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30556 $as_echo "no" >&6; }
30557
30558
30559
30560 fi
30561 rm -Rf build
30562
30563
30564
30565
30566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
30567 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
30568
30569
30570 cat confdefs.h - <<_ACEOF >conftest.c
30571
30572
30573 #include <linux/namei.h>
30574
30575 int
30576 main (void)
30577 {
30578
30579 struct path *p = NULL;
30580 follow_down_one(p);
30581
30582 ;
30583 return 0;
30584 }
30585
30586 _ACEOF
30587
30588
30589
30590 cat - <<_ACEOF >conftest.h
30591
30592 _ACEOF
30593
30594
30595 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30596 echo "obj-m := conftest.o" >build/Makefile
30597 modpost_flag=''
30598 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30599 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30601 (eval $ac_try) 2>&5
30602 ac_status=$?
30603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30604 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30606 (eval $ac_try) 2>&5
30607 ac_status=$?
30608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30609 test $ac_status = 0; }; }; then :
30610
30611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30612 $as_echo "yes" >&6; }
30613
30614 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
30615
30616
30617 else
30618 $as_echo "$as_me: failed program was:" >&5
30619 sed 's/^/| /' conftest.$ac_ext >&5
30620
30621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30622 $as_echo "no" >&6; }
30623
30624
30625
30626 fi
30627 rm -Rf build
30628
30629
30630
30631
30632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
30633 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
30634
30635
30636 cat confdefs.h - <<_ACEOF >conftest.c
30637
30638
30639 #include <linux/blkdev.h>
30640
30641 int make_request(struct request_queue *q, struct bio *bio)
30642 {
30643 return (0);
30644 }
30645
30646 int
30647 main (void)
30648 {
30649
30650 blk_queue_make_request(NULL, &make_request);
30651
30652 ;
30653 return 0;
30654 }
30655
30656 _ACEOF
30657
30658
30659
30660 cat - <<_ACEOF >conftest.h
30661
30662 _ACEOF
30663
30664
30665 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30666 echo "obj-m := conftest.o" >build/Makefile
30667 modpost_flag=''
30668 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30669 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30671 (eval $ac_try) 2>&5
30672 ac_status=$?
30673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30674 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30676 (eval $ac_try) 2>&5
30677 ac_status=$?
30678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30679 test $ac_status = 0; }; }; then :
30680
30681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30682 $as_echo "yes" >&6; }
30683
30684 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
30685
30686
30687 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
30688
30689
30690 else
30691 $as_echo "$as_me: failed program was:" >&5
30692 sed 's/^/| /' conftest.$ac_ext >&5
30693
30694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30695 $as_echo "no" >&6; }
30696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
30697 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
30698
30699
30700 cat confdefs.h - <<_ACEOF >conftest.c
30701
30702
30703 #include <linux/blkdev.h>
30704
30705 void make_request(struct request_queue *q, struct bio *bio)
30706 {
30707 return;
30708 }
30709
30710 int
30711 main (void)
30712 {
30713
30714 blk_queue_make_request(NULL, &make_request);
30715
30716 ;
30717 return 0;
30718 }
30719
30720 _ACEOF
30721
30722
30723
30724 cat - <<_ACEOF >conftest.h
30725
30726 _ACEOF
30727
30728
30729 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30730 echo "obj-m := conftest.o" >build/Makefile
30731 modpost_flag=''
30732 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30733 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30735 (eval $ac_try) 2>&5
30736 ac_status=$?
30737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30738 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30740 (eval $ac_try) 2>&5
30741 ac_status=$?
30742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30743 test $ac_status = 0; }; }; then :
30744
30745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30746 $as_echo "yes" >&6; }
30747
30748 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
30749
30750
30751 else
30752 $as_echo "$as_me: failed program was:" >&5
30753 sed 's/^/| /' conftest.$ac_ext >&5
30754
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30756 $as_echo "no" >&6; }
30757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
30758 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
30759
30760
30761 cat confdefs.h - <<_ACEOF >conftest.c
30762
30763
30764 #include <linux/blkdev.h>
30765
30766 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
30767 {
30768 return (BLK_QC_T_NONE);
30769 }
30770
30771 int
30772 main (void)
30773 {
30774
30775 blk_queue_make_request(NULL, &make_request);
30776
30777 ;
30778 return 0;
30779 }
30780
30781 _ACEOF
30782
30783
30784
30785 cat - <<_ACEOF >conftest.h
30786
30787 _ACEOF
30788
30789
30790 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30791 echo "obj-m := conftest.o" >build/Makefile
30792 modpost_flag=''
30793 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30794 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30796 (eval $ac_try) 2>&5
30797 ac_status=$?
30798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30799 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30801 (eval $ac_try) 2>&5
30802 ac_status=$?
30803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30804 test $ac_status = 0; }; }; then :
30805
30806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30807 $as_echo "yes" >&6; }
30808
30809 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
30810
30811
30812 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
30813
30814
30815 else
30816 $as_echo "$as_me: failed program was:" >&5
30817 sed 's/^/| /' conftest.$ac_ext >&5
30818
30819 as_fn_error $? "no - Please file a bug report at
30820 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
30821
30822
30823
30824 fi
30825 rm -Rf build
30826
30827
30828
30829
30830
30831 fi
30832 rm -Rf build
30833
30834
30835
30836
30837
30838 fi
30839 rm -Rf build
30840
30841
30842
30843
30844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
30845 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
30846
30847
30848
30849 cat confdefs.h - <<_ACEOF >conftest.c
30850
30851
30852 #include <linux/bio.h>
30853
30854 void (*generic_start_io_acct_f)(int, unsigned long,
30855 struct hd_struct *) = &generic_start_io_acct;
30856 void (*generic_end_io_acct_f)(int, struct hd_struct *,
30857 unsigned long) = &generic_end_io_acct;
30858
30859 int
30860 main (void)
30861 {
30862
30863 generic_start_io_acct(0, 0, NULL);
30864 generic_end_io_acct(0, NULL, 0);
30865
30866 ;
30867 return 0;
30868 }
30869
30870 _ACEOF
30871
30872
30873
30874 cat - <<_ACEOF >conftest.h
30875
30876 _ACEOF
30877
30878
30879 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30880 echo "obj-m := conftest.o" >build/Makefile
30881 modpost_flag=''
30882 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30883 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30885 (eval $ac_try) 2>&5
30886 ac_status=$?
30887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30888 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30890 (eval $ac_try) 2>&5
30891 ac_status=$?
30892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30893 test $ac_status = 0; }; }; then :
30894 rc=0
30895 else
30896 $as_echo "$as_me: failed program was:" >&5
30897 sed 's/^/| /' conftest.$ac_ext >&5
30898 rc=1
30899
30900
30901 fi
30902 rm -Rf build
30903
30904
30905 if test $rc -ne 0; then :
30906
30907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30908 $as_echo "no" >&6; }
30909
30910 else
30911 if test "x$enable_linux_builtin" != xyes; then
30912
30913 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
30914 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
30915 rc=$?
30916 if test $rc -ne 0; then
30917 export=0
30918 for file in block/bio.c; do
30919 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
30920 "$LINUX/$file" 2>/dev/null
30921 rc=$?
30922 if test $rc -eq 0; then
30923 export=1
30924 break;
30925 fi
30926 done
30927 if test $export -eq 0; then :
30928 rc=1
30929 else :
30930 rc=0
30931 fi
30932 else :
30933 rc=0
30934 fi
30935
30936 fi
30937 if test $rc -ne 0; then :
30938
30939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30940 $as_echo "no" >&6; }
30941
30942 else :
30943
30944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30945 $as_echo "yes" >&6; }
30946
30947 $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
30948
30949
30950 fi
30951 fi
30952
30953
30954
30955 if test "$LINUX_OBJ" != "$LINUX"; then :
30956
30957 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
30958
30959 fi
30960
30961
30962
30963 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
30964 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
30965 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
30966 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
30967
30968
30969
30970
30971
30972
30973 # Check whether --with-mounthelperdir was given.
30974 if test "${with_mounthelperdir+set}" = set; then :
30975 withval=$with_mounthelperdir; mounthelperdir=$withval
30976 else
30977 mounthelperdir=/sbin
30978 fi
30979
30980
30981
30982
30983
30984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
30985 $as_echo_n "checking for udev directories... " >&6; }
30986
30987 # Check whether --with-udevdir was given.
30988 if test "${with_udevdir+set}" = set; then :
30989 withval=$with_udevdir; udevdir=$withval
30990 else
30991 udevdir=check
30992 fi
30993
30994
30995 if test "x$udevdir" = xcheck; then :
30996
30997 path1=/lib/udev
30998 path2=/usr/lib/udev
30999 default=$path2
31000
31001 if test -d "$path1"; then :
31002 udevdir="$path1"
31003 else
31004
31005 if test -d "$path2"; then :
31006 udevdir="$path2"
31007 else
31008 udevdir="$default"
31009 fi
31010
31011 fi
31012
31013 fi
31014
31015
31016 # Check whether --with-udevruledir was given.
31017 if test "${with_udevruledir+set}" = set; then :
31018 withval=$with_udevruledir; udevruledir=$withval
31019 else
31020 udevruledir="${udevdir}/rules.d"
31021 fi
31022
31023
31024
31025
31026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
31027 $as_echo "$udevdir;$udevruledir" >&6; }
31028
31029
31030 # Check whether --enable-systemd was given.
31031 if test "${enable_systemd+set}" = set; then :
31032 enableval=$enable_systemd;
31033 else
31034 enable_systemd=yes
31035 fi
31036
31037
31038
31039 # Check whether --with-systemdunitdir was given.
31040 if test "${with_systemdunitdir+set}" = set; then :
31041 withval=$with_systemdunitdir; systemdunitdir=$withval
31042 else
31043 systemdunitdir=/usr/lib/systemd/system
31044 fi
31045
31046
31047
31048 # Check whether --with-systemdpresetdir was given.
31049 if test "${with_systemdpresetdir+set}" = set; then :
31050 withval=$with_systemdpresetdir; systemdpresetdir=$withval
31051 else
31052 systemdpresetdir=/usr/lib/systemd/system-preset
31053 fi
31054
31055
31056
31057 # Check whether --with-systemdmodulesloaddir was given.
31058 if test "${with_systemdmodulesloaddir+set}" = set; then :
31059 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
31060 else
31061 systemdmodulesloaddir=/usr/lib/modules-load.d
31062 fi
31063
31064
31065
31066 if test "x$enable_systemd" = xyes; then :
31067
31068 ZFS_INIT_SYSTEMD=systemd
31069 ZFS_MODULE_LOAD=modules-load.d
31070 modulesloaddir=$systemdmodulesloaddir
31071
31072 fi
31073
31074
31075
31076
31077
31078
31079
31080
31081 # Check whether --enable-sysvinit was given.
31082 if test "${enable_sysvinit+set}" = set; then :
31083 enableval=$enable_sysvinit;
31084 else
31085 enable_sysvinit=yes
31086 fi
31087
31088
31089 if test "x$enable_sysvinit" = xyes; then :
31090 ZFS_INIT_SYSV=init.d
31091 fi
31092
31093
31094
31095
31096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
31097 $as_echo_n "checking for dracut directory... " >&6; }
31098
31099 # Check whether --with-dracutdir was given.
31100 if test "${with_dracutdir+set}" = set; then :
31101 withval=$with_dracutdir; dracutdir=$withval
31102 else
31103 dracutdir=check
31104 fi
31105
31106
31107 if test "x$dracutdir" = xcheck; then :
31108
31109 path1=/usr/share/dracut
31110 path2=/usr/lib/dracut
31111 default=$path2
31112
31113 if test -d "$path1"; then :
31114 dracutdir="$path1"
31115 else
31116
31117 if test -d "$path2"; then :
31118 dracutdir="$path2"
31119 else
31120 dracutdir="$default"
31121 fi
31122
31123 fi
31124
31125 fi
31126
31127
31128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
31129 $as_echo "$dracutdir" >&6; }
31130
31131
31132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
31133 $as_echo_n "checking for target asm dir... " >&6; }
31134 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
31135
31136 case $TARGET_ARCH in
31137 i386|x86_64)
31138 TARGET_ASM_DIR=asm-${TARGET_ARCH}
31139 ;;
31140 *)
31141 TARGET_ASM_DIR=asm-generic
31142 ;;
31143 esac
31144
31145
31146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
31147 $as_echo "$TARGET_ASM_DIR" >&6; }
31148
31149
31150 ZLIB=
31151
31152 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
31153 if test "x$ac_cv_header_zlib_h" = xyes; then :
31154
31155 else
31156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31158 as_fn_error $? "
31159 *** zlib.h missing, zlib-devel package required
31160 See \`config.log' for more details" "$LINENO" 5; }
31161 fi
31162
31163
31164
31165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
31166 $as_echo_n "checking for compress2 in -lz... " >&6; }
31167 if ${ac_cv_lib_z_compress2+:} false; then :
31168 $as_echo_n "(cached) " >&6
31169 else
31170 ac_check_lib_save_LIBS=$LIBS
31171 LIBS="-lz $LIBS"
31172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31173 /* end confdefs.h. */
31174
31175 /* Override any GCC internal prototype to avoid an error.
31176 Use char because int might match the return type of a GCC
31177 builtin and then its argument prototype would still apply. */
31178 #ifdef __cplusplus
31179 extern "C"
31180 #endif
31181 char compress2 ();
31182 int
31183 main ()
31184 {
31185 return compress2 ();
31186 ;
31187 return 0;
31188 }
31189 _ACEOF
31190 if ac_fn_c_try_link "$LINENO"; then :
31191 ac_cv_lib_z_compress2=yes
31192 else
31193 ac_cv_lib_z_compress2=no
31194 fi
31195 rm -f core conftest.err conftest.$ac_objext \
31196 conftest$ac_exeext conftest.$ac_ext
31197 LIBS=$ac_check_lib_save_LIBS
31198 fi
31199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
31200 $as_echo "$ac_cv_lib_z_compress2" >&6; }
31201 if test "x$ac_cv_lib_z_compress2" = xyes; then :
31202 cat >>confdefs.h <<_ACEOF
31203 #define HAVE_LIBZ 1
31204 _ACEOF
31205
31206 LIBS="-lz $LIBS"
31207
31208 else
31209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31211 as_fn_error $? "
31212 *** compress2() missing, zlib-devel package required
31213 See \`config.log' for more details" "$LINENO" 5; }
31214 fi
31215
31216
31217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
31218 $as_echo_n "checking for uncompress in -lz... " >&6; }
31219 if ${ac_cv_lib_z_uncompress+:} false; then :
31220 $as_echo_n "(cached) " >&6
31221 else
31222 ac_check_lib_save_LIBS=$LIBS
31223 LIBS="-lz $LIBS"
31224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31225 /* end confdefs.h. */
31226
31227 /* Override any GCC internal prototype to avoid an error.
31228 Use char because int might match the return type of a GCC
31229 builtin and then its argument prototype would still apply. */
31230 #ifdef __cplusplus
31231 extern "C"
31232 #endif
31233 char uncompress ();
31234 int
31235 main ()
31236 {
31237 return uncompress ();
31238 ;
31239 return 0;
31240 }
31241 _ACEOF
31242 if ac_fn_c_try_link "$LINENO"; then :
31243 ac_cv_lib_z_uncompress=yes
31244 else
31245 ac_cv_lib_z_uncompress=no
31246 fi
31247 rm -f core conftest.err conftest.$ac_objext \
31248 conftest$ac_exeext conftest.$ac_ext
31249 LIBS=$ac_check_lib_save_LIBS
31250 fi
31251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
31252 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
31253 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
31254 cat >>confdefs.h <<_ACEOF
31255 #define HAVE_LIBZ 1
31256 _ACEOF
31257
31258 LIBS="-lz $LIBS"
31259
31260 else
31261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31263 as_fn_error $? "
31264 *** uncompress() missing, zlib-devel package required
31265 See \`config.log' for more details" "$LINENO" 5; }
31266 fi
31267
31268
31269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
31270 $as_echo_n "checking for crc32 in -lz... " >&6; }
31271 if ${ac_cv_lib_z_crc32+:} false; then :
31272 $as_echo_n "(cached) " >&6
31273 else
31274 ac_check_lib_save_LIBS=$LIBS
31275 LIBS="-lz $LIBS"
31276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31277 /* end confdefs.h. */
31278
31279 /* Override any GCC internal prototype to avoid an error.
31280 Use char because int might match the return type of a GCC
31281 builtin and then its argument prototype would still apply. */
31282 #ifdef __cplusplus
31283 extern "C"
31284 #endif
31285 char crc32 ();
31286 int
31287 main ()
31288 {
31289 return crc32 ();
31290 ;
31291 return 0;
31292 }
31293 _ACEOF
31294 if ac_fn_c_try_link "$LINENO"; then :
31295 ac_cv_lib_z_crc32=yes
31296 else
31297 ac_cv_lib_z_crc32=no
31298 fi
31299 rm -f core conftest.err conftest.$ac_objext \
31300 conftest$ac_exeext conftest.$ac_ext
31301 LIBS=$ac_check_lib_save_LIBS
31302 fi
31303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
31304 $as_echo "$ac_cv_lib_z_crc32" >&6; }
31305 if test "x$ac_cv_lib_z_crc32" = xyes; then :
31306 cat >>confdefs.h <<_ACEOF
31307 #define HAVE_LIBZ 1
31308 _ACEOF
31309
31310 LIBS="-lz $LIBS"
31311
31312 else
31313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31315 as_fn_error $? "
31316 *** crc32() missing, zlib-devel package required
31317 See \`config.log' for more details" "$LINENO" 5; }
31318 fi
31319
31320
31321 ZLIB="-lz"
31322
31323
31324 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
31325
31326
31327
31328 LIBUUID=
31329
31330 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
31331 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
31332
31333 else
31334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31336 as_fn_error $? "
31337 *** uuid/uuid.h missing, libuuid-devel package required
31338 See \`config.log' for more details" "$LINENO" 5; }
31339 fi
31340
31341
31342
31343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
31344 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
31345 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
31346 $as_echo_n "(cached) " >&6
31347 else
31348 ac_check_lib_save_LIBS=$LIBS
31349 LIBS="-luuid $LIBS"
31350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31351 /* end confdefs.h. */
31352
31353 /* Override any GCC internal prototype to avoid an error.
31354 Use char because int might match the return type of a GCC
31355 builtin and then its argument prototype would still apply. */
31356 #ifdef __cplusplus
31357 extern "C"
31358 #endif
31359 char uuid_generate ();
31360 int
31361 main ()
31362 {
31363 return uuid_generate ();
31364 ;
31365 return 0;
31366 }
31367 _ACEOF
31368 if ac_fn_c_try_link "$LINENO"; then :
31369 ac_cv_lib_uuid_uuid_generate=yes
31370 else
31371 ac_cv_lib_uuid_uuid_generate=no
31372 fi
31373 rm -f core conftest.err conftest.$ac_objext \
31374 conftest$ac_exeext conftest.$ac_ext
31375 LIBS=$ac_check_lib_save_LIBS
31376 fi
31377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
31378 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
31379 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
31380 cat >>confdefs.h <<_ACEOF
31381 #define HAVE_LIBUUID 1
31382 _ACEOF
31383
31384 LIBS="-luuid $LIBS"
31385
31386 else
31387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31389 as_fn_error $? "
31390 *** uuid_generate() missing, libuuid-devel package required
31391 See \`config.log' for more details" "$LINENO" 5; }
31392 fi
31393
31394
31395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
31396 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
31397 if ${ac_cv_lib_uuid_uuid_is_null+:} false; then :
31398 $as_echo_n "(cached) " >&6
31399 else
31400 ac_check_lib_save_LIBS=$LIBS
31401 LIBS="-luuid $LIBS"
31402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31403 /* end confdefs.h. */
31404
31405 /* Override any GCC internal prototype to avoid an error.
31406 Use char because int might match the return type of a GCC
31407 builtin and then its argument prototype would still apply. */
31408 #ifdef __cplusplus
31409 extern "C"
31410 #endif
31411 char uuid_is_null ();
31412 int
31413 main ()
31414 {
31415 return uuid_is_null ();
31416 ;
31417 return 0;
31418 }
31419 _ACEOF
31420 if ac_fn_c_try_link "$LINENO"; then :
31421 ac_cv_lib_uuid_uuid_is_null=yes
31422 else
31423 ac_cv_lib_uuid_uuid_is_null=no
31424 fi
31425 rm -f core conftest.err conftest.$ac_objext \
31426 conftest$ac_exeext conftest.$ac_ext
31427 LIBS=$ac_check_lib_save_LIBS
31428 fi
31429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
31430 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
31431 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes; then :
31432 cat >>confdefs.h <<_ACEOF
31433 #define HAVE_LIBUUID 1
31434 _ACEOF
31435
31436 LIBS="-luuid $LIBS"
31437
31438 else
31439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31441 as_fn_error $? "
31442 *** uuid_is_null() missing, libuuid-devel package required
31443 See \`config.log' for more details" "$LINENO" 5; }
31444 fi
31445
31446
31447 LIBUUID="-luuid"
31448
31449
31450 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
31451
31452
31453
31454
31455 # Check whether --with-blkid was given.
31456 if test "${with_blkid+set}" = set; then :
31457 withval=$with_blkid;
31458 else
31459 with_blkid=check
31460 fi
31461
31462
31463 LIBBLKID=
31464 if test "x$with_blkid" = xyes; then :
31465
31466 LIBBLKID="-lblkid"
31467
31468
31469 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
31470
31471
31472 fi
31473
31474 if test "x$with_blkid" = xcheck; then :
31475
31476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
31477 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
31478 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
31479 $as_echo_n "(cached) " >&6
31480 else
31481 ac_check_lib_save_LIBS=$LIBS
31482 LIBS="-lblkid $LIBS"
31483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31484 /* end confdefs.h. */
31485
31486 /* Override any GCC internal prototype to avoid an error.
31487 Use char because int might match the return type of a GCC
31488 builtin and then its argument prototype would still apply. */
31489 #ifdef __cplusplus
31490 extern "C"
31491 #endif
31492 char blkid_get_cache ();
31493 int
31494 main ()
31495 {
31496 return blkid_get_cache ();
31497 ;
31498 return 0;
31499 }
31500 _ACEOF
31501 if ac_fn_c_try_link "$LINENO"; then :
31502 ac_cv_lib_blkid_blkid_get_cache=yes
31503 else
31504 ac_cv_lib_blkid_blkid_get_cache=no
31505 fi
31506 rm -f core conftest.err conftest.$ac_objext \
31507 conftest$ac_exeext conftest.$ac_ext
31508 LIBS=$ac_check_lib_save_LIBS
31509 fi
31510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
31511 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
31512 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
31513
31514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
31515 $as_echo_n "checking for blkid zfs support... " >&6; }
31516
31517 ZFS_DEV=`mktemp`
31518 truncate -s 64M $ZFS_DEV
31519 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
31520 dd of=$ZFS_DEV bs=1k count=8 \
31521 seek=128 conv=notrunc &>/dev/null \
31522 >/dev/null 2>/dev/null
31523 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
31524 dd of=$ZFS_DEV bs=1k count=8 \
31525 seek=132 conv=notrunc &>/dev/null \
31526 >/dev/null 2>/dev/null
31527 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
31528 dd of=$ZFS_DEV bs=1k count=8 \
31529 seek=136 conv=notrunc &>/dev/null \
31530 >/dev/null 2>/dev/null
31531 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
31532 dd of=$ZFS_DEV bs=1k count=8 \
31533 seek=140 conv=notrunc &>/dev/null \
31534 >/dev/null 2>/dev/null
31535
31536 saved_LIBS="$LIBS"
31537 LIBS="-lblkid"
31538
31539 if test "$cross_compiling" = yes; then :
31540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31542 as_fn_error $? "cannot run test program while cross compiling
31543 See \`config.log' for more details" "$LINENO" 5; }
31544 else
31545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31546 /* end confdefs.h. */
31547
31548 #include <stdio.h>
31549 #include <stdlib.h>
31550 #include <blkid/blkid.h>
31551
31552 int
31553 main ()
31554 {
31555
31556 blkid_cache cache;
31557 char *value;
31558
31559 if (blkid_get_cache(&cache, NULL) < 0)
31560 return 1;
31561
31562 value = blkid_get_tag_value(cache, "TYPE",
31563 "$ZFS_DEV");
31564 if (!value) {
31565 blkid_put_cache(cache);
31566 return 2;
31567 }
31568
31569 if (strcmp(value, "zfs_member")) {
31570 free(value);
31571 blkid_put_cache(cache);
31572 return 0;
31573 }
31574
31575 free(value);
31576 blkid_put_cache(cache);
31577
31578 ;
31579 return 0;
31580 }
31581 _ACEOF
31582 if ac_fn_c_try_run "$LINENO"; then :
31583
31584 rm -f $ZFS_DEV
31585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31586 $as_echo "yes" >&6; }
31587 LIBBLKID="-lblkid"
31588
31589
31590 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
31591
31592
31593 else
31594
31595 rm -f $ZFS_DEV
31596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31597 $as_echo "no" >&6; }
31598 if test "x$with_blkid" != xcheck; then :
31599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31601 as_fn_error $? "--with-blkid given but unavailable
31602 See \`config.log' for more details" "$LINENO" 5; }
31603 fi
31604
31605 fi
31606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31607 conftest.$ac_objext conftest.beam conftest.$ac_ext
31608 fi
31609
31610
31611 LIBS="$saved_LIBS"
31612
31613 else
31614
31615 if test "x$with_blkid" != xcheck; then :
31616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31618 as_fn_error $? "--with-blkid given but unavailable
31619 See \`config.log' for more details" "$LINENO" 5; }
31620 fi
31621
31622
31623 fi
31624
31625
31626 fi
31627
31628
31629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
31630 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
31631
31632 saved_flags="$CFLAGS"
31633 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
31634
31635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31636 /* end confdefs.h. */
31637
31638 int
31639 main ()
31640 {
31641
31642 ;
31643 return 0;
31644 }
31645 _ACEOF
31646 if ac_fn_c_try_compile "$LINENO"; then :
31647
31648 FRAME_LARGER_THAN=-Wframe-larger-than=1024
31649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31650 $as_echo "yes" >&6; }
31651
31652 else
31653
31654 FRAME_LARGER_THAN=
31655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31656 $as_echo "no" >&6; }
31657
31658 fi
31659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31660
31661 CFLAGS="$saved_flags"
31662
31663
31664
31665 if test "x$runstatedir" = x; then
31666 runstatedir='${localstatedir}/run'
31667
31668 fi
31669
31670 for ac_func in mlockall
31671 do :
31672 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
31673 if test "x$ac_cv_func_mlockall" = xyes; then :
31674 cat >>confdefs.h <<_ACEOF
31675 #define HAVE_MLOCKALL 1
31676 _ACEOF
31677
31678 fi
31679 done
31680
31681 ;;
31682 srpm) ;;
31683 *)
31684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
31685 $as_echo "Error!" >&6; }
31686 as_fn_error $? "Bad value \"$ZFS_CONFIG\" for --with-config,
31687 user kernel|user|all|srpm" "$LINENO" 5 ;;
31688 esac
31689
31690 if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then
31691 CONFIG_USER_TRUE=
31692 CONFIG_USER_FALSE='#'
31693 else
31694 CONFIG_USER_TRUE='#'
31695 CONFIG_USER_FALSE=
31696 fi
31697
31698 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
31699 test "x$enable_linux_builtin" != xyes ; then
31700 CONFIG_KERNEL_TRUE=
31701 CONFIG_KERNEL_FALSE='#'
31702 else
31703 CONFIG_KERNEL_TRUE='#'
31704 CONFIG_KERNEL_FALSE=
31705 fi
31706
31707
31708
31709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
31710 $as_echo_n "checking whether debugging is enabled... " >&6; }
31711 # Check whether --enable-debug was given.
31712 if test "${enable_debug+set}" = set; then :
31713 enableval=$enable_debug;
31714 else
31715 enable_debug=no
31716 fi
31717
31718
31719 if test "x$enable_debug" = xyes; then :
31720
31721 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
31722 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
31723 DEBUG_CFLAGS="-DDEBUG -Werror"
31724 DEBUG_STACKFLAGS="-fstack-check"
31725 DEBUG_ZFS="_with_debug"
31726
31727 $as_echo "#define ZFS_DEBUG 1" >>confdefs.h
31728
31729
31730 else
31731
31732 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
31733 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
31734 DEBUG_CFLAGS="-DNDEBUG"
31735 DEBUG_STACKFLAGS=""
31736 DEBUG_ZFS="_without_debug"
31737
31738 fi
31739
31740
31741
31742
31743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
31744 $as_echo "$enable_debug" >&6; }
31745
31746
31747 # Check whether --enable-debug-dmu-tx was given.
31748 if test "${enable_debug_dmu_tx+set}" = set; then :
31749 enableval=$enable_debug_dmu_tx;
31750 else
31751 enable_debug_dmu_tx=no
31752 fi
31753
31754
31755 if test "x$enable_debug_dmu_tx" = xyes; then :
31756
31757 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
31758 DEBUG_DMU_TX="_with_debug_dmu_tx"
31759
31760 $as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h
31761
31762
31763 else
31764
31765 DEBUG_DMU_TX="_without_debug_dmu_tx"
31766
31767 fi
31768
31769
31770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5
31771 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
31772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5
31773 $as_echo "$enable_debug_dmu_tx" >&6; }
31774
31775
31776 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/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/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/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 contrib/Makefile contrib/bash_completion.d/Makefile contrib/dracut/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 include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/common.sh 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"
31777
31778
31779 cat >confcache <<\_ACEOF
31780 # This file is a shell script that caches the results of configure
31781 # tests run on this system so they can be shared between configure
31782 # scripts and configure runs, see configure's option --config-cache.
31783 # It is not useful on other systems. If it contains results you don't
31784 # want to keep, you may remove or edit it.
31785 #
31786 # config.status only pays attention to the cache file if you give it
31787 # the --recheck option to rerun configure.
31788 #
31789 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31790 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31791 # following values.
31792
31793 _ACEOF
31794
31795 # The following way of writing the cache mishandles newlines in values,
31796 # but we know of no workaround that is simple, portable, and efficient.
31797 # So, we kill variables containing newlines.
31798 # Ultrix sh set writes to stderr and can't be redirected directly,
31799 # and sets the high bit in the cache file unless we assign to the vars.
31800 (
31801 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31802 eval ac_val=\$$ac_var
31803 case $ac_val in #(
31804 *${as_nl}*)
31805 case $ac_var in #(
31806 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31807 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31808 esac
31809 case $ac_var in #(
31810 _ | IFS | as_nl) ;; #(
31811 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31812 *) { eval $ac_var=; unset $ac_var;} ;;
31813 esac ;;
31814 esac
31815 done
31816
31817 (set) 2>&1 |
31818 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31819 *${as_nl}ac_space=\ *)
31820 # `set' does not quote correctly, so add quotes: double-quote
31821 # substitution turns \\\\ into \\, and sed turns \\ into \.
31822 sed -n \
31823 "s/'/'\\\\''/g;
31824 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31825 ;; #(
31826 *)
31827 # `set' quotes correctly as required by POSIX, so do not add quotes.
31828 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31829 ;;
31830 esac |
31831 sort
31832 ) |
31833 sed '
31834 /^ac_cv_env_/b end
31835 t clear
31836 :clear
31837 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31838 t end
31839 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31840 :end' >>confcache
31841 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31842 if test -w "$cache_file"; then
31843 if test "x$cache_file" != "x/dev/null"; then
31844 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31845 $as_echo "$as_me: updating cache $cache_file" >&6;}
31846 if test ! -f "$cache_file" || test -h "$cache_file"; then
31847 cat confcache >"$cache_file"
31848 else
31849 case $cache_file in #(
31850 */* | ?:*)
31851 mv -f confcache "$cache_file"$$ &&
31852 mv -f "$cache_file"$$ "$cache_file" ;; #(
31853 *)
31854 mv -f confcache "$cache_file" ;;
31855 esac
31856 fi
31857 fi
31858 else
31859 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31860 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31861 fi
31862 fi
31863 rm -f confcache
31864
31865 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31866 # Let make expand exec_prefix.
31867 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31868
31869 DEFS=-DHAVE_CONFIG_H
31870
31871 ac_libobjs=
31872 ac_ltlibobjs=
31873 U=
31874 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31875 # 1. Remove the extension, and $U if already installed.
31876 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31877 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31878 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31879 # will be set to the directory where LIBOBJS objects are built.
31880 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31881 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31882 done
31883 LIBOBJS=$ac_libobjs
31884
31885 LTLIBOBJS=$ac_ltlibobjs
31886
31887
31888 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31889 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31891 fi
31892 if test -n "$EXEEXT"; then
31893 am__EXEEXT_TRUE=
31894 am__EXEEXT_FALSE='#'
31895 else
31896 am__EXEEXT_TRUE='#'
31897 am__EXEEXT_FALSE=
31898 fi
31899
31900 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31901 as_fn_error $? "conditional \"AMDEP\" was never defined.
31902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31903 fi
31904 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31905 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
31906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31907 fi
31908 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
31909 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
31910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31911 fi
31912 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
31913 as_fn_error $? "conditional \"CONFIG_USER\" was never defined.
31914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31915 fi
31916 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
31917 as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined.
31918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31919 fi
31920
31921 : "${CONFIG_STATUS=./config.status}"
31922 ac_write_fail=0
31923 ac_clean_files_save=$ac_clean_files
31924 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31925 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31926 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31927 as_write_fail=0
31928 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31929 #! $SHELL
31930 # Generated by $as_me.
31931 # Run this file to recreate the current configuration.
31932 # Compiler output produced by configure, useful for debugging
31933 # configure, is in config.log if it exists.
31934
31935 debug=false
31936 ac_cs_recheck=false
31937 ac_cs_silent=false
31938
31939 SHELL=\${CONFIG_SHELL-$SHELL}
31940 export SHELL
31941 _ASEOF
31942 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31943 ## -------------------- ##
31944 ## M4sh Initialization. ##
31945 ## -------------------- ##
31946
31947 # Be more Bourne compatible
31948 DUALCASE=1; export DUALCASE # for MKS sh
31949 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31950 emulate sh
31951 NULLCMD=:
31952 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31953 # is contrary to our usage. Disable this feature.
31954 alias -g '${1+"$@"}'='"$@"'
31955 setopt NO_GLOB_SUBST
31956 else
31957 case `(set -o) 2>/dev/null` in #(
31958 *posix*) :
31959 set -o posix ;; #(
31960 *) :
31961 ;;
31962 esac
31963 fi
31964
31965
31966 as_nl='
31967 '
31968 export as_nl
31969 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31970 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31971 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31972 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31973 # Prefer a ksh shell builtin over an external printf program on Solaris,
31974 # but without wasting forks for bash or zsh.
31975 if test -z "$BASH_VERSION$ZSH_VERSION" \
31976 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31977 as_echo='print -r --'
31978 as_echo_n='print -rn --'
31979 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31980 as_echo='printf %s\n'
31981 as_echo_n='printf %s'
31982 else
31983 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31984 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31985 as_echo_n='/usr/ucb/echo -n'
31986 else
31987 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31988 as_echo_n_body='eval
31989 arg=$1;
31990 case $arg in #(
31991 *"$as_nl"*)
31992 expr "X$arg" : "X\\(.*\\)$as_nl";
31993 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31994 esac;
31995 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31996 '
31997 export as_echo_n_body
31998 as_echo_n='sh -c $as_echo_n_body as_echo'
31999 fi
32000 export as_echo_body
32001 as_echo='sh -c $as_echo_body as_echo'
32002 fi
32003
32004 # The user is always right.
32005 if test "${PATH_SEPARATOR+set}" != set; then
32006 PATH_SEPARATOR=:
32007 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32008 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32009 PATH_SEPARATOR=';'
32010 }
32011 fi
32012
32013
32014 # IFS
32015 # We need space, tab and new line, in precisely that order. Quoting is
32016 # there to prevent editors from complaining about space-tab.
32017 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32018 # splitting by setting IFS to empty value.)
32019 IFS=" "" $as_nl"
32020
32021 # Find who we are. Look in the path if we contain no directory separator.
32022 as_myself=
32023 case $0 in #((
32024 *[\\/]* ) as_myself=$0 ;;
32025 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32026 for as_dir in $PATH
32027 do
32028 IFS=$as_save_IFS
32029 test -z "$as_dir" && as_dir=.
32030 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32031 done
32032 IFS=$as_save_IFS
32033
32034 ;;
32035 esac
32036 # We did not find ourselves, most probably we were run as `sh COMMAND'
32037 # in which case we are not to be found in the path.
32038 if test "x$as_myself" = x; then
32039 as_myself=$0
32040 fi
32041 if test ! -f "$as_myself"; then
32042 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32043 exit 1
32044 fi
32045
32046 # Unset variables that we do not need and which cause bugs (e.g. in
32047 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32048 # suppresses any "Segmentation fault" message there. '((' could
32049 # trigger a bug in pdksh 5.2.14.
32050 for as_var in BASH_ENV ENV MAIL MAILPATH
32051 do eval test x\${$as_var+set} = xset \
32052 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32053 done
32054 PS1='$ '
32055 PS2='> '
32056 PS4='+ '
32057
32058 # NLS nuisances.
32059 LC_ALL=C
32060 export LC_ALL
32061 LANGUAGE=C
32062 export LANGUAGE
32063
32064 # CDPATH.
32065 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32066
32067
32068 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32069 # ----------------------------------------
32070 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32071 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32072 # script with STATUS, using 1 if that was 0.
32073 as_fn_error ()
32074 {
32075 as_status=$1; test $as_status -eq 0 && as_status=1
32076 if test "$4"; then
32077 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32078 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32079 fi
32080 $as_echo "$as_me: error: $2" >&2
32081 as_fn_exit $as_status
32082 } # as_fn_error
32083
32084
32085 # as_fn_set_status STATUS
32086 # -----------------------
32087 # Set $? to STATUS, without forking.
32088 as_fn_set_status ()
32089 {
32090 return $1
32091 } # as_fn_set_status
32092
32093 # as_fn_exit STATUS
32094 # -----------------
32095 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32096 as_fn_exit ()
32097 {
32098 set +e
32099 as_fn_set_status $1
32100 exit $1
32101 } # as_fn_exit
32102
32103 # as_fn_unset VAR
32104 # ---------------
32105 # Portably unset VAR.
32106 as_fn_unset ()
32107 {
32108 { eval $1=; unset $1;}
32109 }
32110 as_unset=as_fn_unset
32111 # as_fn_append VAR VALUE
32112 # ----------------------
32113 # Append the text in VALUE to the end of the definition contained in VAR. Take
32114 # advantage of any shell optimizations that allow amortized linear growth over
32115 # repeated appends, instead of the typical quadratic growth present in naive
32116 # implementations.
32117 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32118 eval 'as_fn_append ()
32119 {
32120 eval $1+=\$2
32121 }'
32122 else
32123 as_fn_append ()
32124 {
32125 eval $1=\$$1\$2
32126 }
32127 fi # as_fn_append
32128
32129 # as_fn_arith ARG...
32130 # ------------------
32131 # Perform arithmetic evaluation on the ARGs, and store the result in the
32132 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32133 # must be portable across $(()) and expr.
32134 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32135 eval 'as_fn_arith ()
32136 {
32137 as_val=$(( $* ))
32138 }'
32139 else
32140 as_fn_arith ()
32141 {
32142 as_val=`expr "$@" || test $? -eq 1`
32143 }
32144 fi # as_fn_arith
32145
32146
32147 if expr a : '\(a\)' >/dev/null 2>&1 &&
32148 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32149 as_expr=expr
32150 else
32151 as_expr=false
32152 fi
32153
32154 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32155 as_basename=basename
32156 else
32157 as_basename=false
32158 fi
32159
32160 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32161 as_dirname=dirname
32162 else
32163 as_dirname=false
32164 fi
32165
32166 as_me=`$as_basename -- "$0" ||
32167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32168 X"$0" : 'X\(//\)$' \| \
32169 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32170 $as_echo X/"$0" |
32171 sed '/^.*\/\([^/][^/]*\)\/*$/{
32172 s//\1/
32173 q
32174 }
32175 /^X\/\(\/\/\)$/{
32176 s//\1/
32177 q
32178 }
32179 /^X\/\(\/\).*/{
32180 s//\1/
32181 q
32182 }
32183 s/.*/./; q'`
32184
32185 # Avoid depending upon Character Ranges.
32186 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32187 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32188 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32189 as_cr_digits='0123456789'
32190 as_cr_alnum=$as_cr_Letters$as_cr_digits
32191
32192 ECHO_C= ECHO_N= ECHO_T=
32193 case `echo -n x` in #(((((
32194 -n*)
32195 case `echo 'xy\c'` in
32196 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32197 xy) ECHO_C='\c';;
32198 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32199 ECHO_T=' ';;
32200 esac;;
32201 *)
32202 ECHO_N='-n';;
32203 esac
32204
32205 rm -f conf$$ conf$$.exe conf$$.file
32206 if test -d conf$$.dir; then
32207 rm -f conf$$.dir/conf$$.file
32208 else
32209 rm -f conf$$.dir
32210 mkdir conf$$.dir 2>/dev/null
32211 fi
32212 if (echo >conf$$.file) 2>/dev/null; then
32213 if ln -s conf$$.file conf$$ 2>/dev/null; then
32214 as_ln_s='ln -s'
32215 # ... but there are two gotchas:
32216 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32217 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32218 # In both cases, we have to default to `cp -p'.
32219 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32220 as_ln_s='cp -p'
32221 elif ln conf$$.file conf$$ 2>/dev/null; then
32222 as_ln_s=ln
32223 else
32224 as_ln_s='cp -p'
32225 fi
32226 else
32227 as_ln_s='cp -p'
32228 fi
32229 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32230 rmdir conf$$.dir 2>/dev/null
32231
32232
32233 # as_fn_mkdir_p
32234 # -------------
32235 # Create "$as_dir" as a directory, including parents if necessary.
32236 as_fn_mkdir_p ()
32237 {
32238
32239 case $as_dir in #(
32240 -*) as_dir=./$as_dir;;
32241 esac
32242 test -d "$as_dir" || eval $as_mkdir_p || {
32243 as_dirs=
32244 while :; do
32245 case $as_dir in #(
32246 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32247 *) as_qdir=$as_dir;;
32248 esac
32249 as_dirs="'$as_qdir' $as_dirs"
32250 as_dir=`$as_dirname -- "$as_dir" ||
32251 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32252 X"$as_dir" : 'X\(//\)[^/]' \| \
32253 X"$as_dir" : 'X\(//\)$' \| \
32254 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32255 $as_echo X"$as_dir" |
32256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32257 s//\1/
32258 q
32259 }
32260 /^X\(\/\/\)[^/].*/{
32261 s//\1/
32262 q
32263 }
32264 /^X\(\/\/\)$/{
32265 s//\1/
32266 q
32267 }
32268 /^X\(\/\).*/{
32269 s//\1/
32270 q
32271 }
32272 s/.*/./; q'`
32273 test -d "$as_dir" && break
32274 done
32275 test -z "$as_dirs" || eval "mkdir $as_dirs"
32276 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32277
32278
32279 } # as_fn_mkdir_p
32280 if mkdir -p . 2>/dev/null; then
32281 as_mkdir_p='mkdir -p "$as_dir"'
32282 else
32283 test -d ./-p && rmdir ./-p
32284 as_mkdir_p=false
32285 fi
32286
32287 if test -x / >/dev/null 2>&1; then
32288 as_test_x='test -x'
32289 else
32290 if ls -dL / >/dev/null 2>&1; then
32291 as_ls_L_option=L
32292 else
32293 as_ls_L_option=
32294 fi
32295 as_test_x='
32296 eval sh -c '\''
32297 if test -d "$1"; then
32298 test -d "$1/.";
32299 else
32300 case $1 in #(
32301 -*)set "./$1";;
32302 esac;
32303 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
32304 ???[sx]*):;;*)false;;esac;fi
32305 '\'' sh
32306 '
32307 fi
32308 as_executable_p=$as_test_x
32309
32310 # Sed expression to map a string onto a valid CPP name.
32311 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32312
32313 # Sed expression to map a string onto a valid variable name.
32314 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32315
32316
32317 exec 6>&1
32318 ## ----------------------------------- ##
32319 ## Main body of $CONFIG_STATUS script. ##
32320 ## ----------------------------------- ##
32321 _ASEOF
32322 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32323
32324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32325 # Save the log message, to keep $0 and so on meaningful, and to
32326 # report actual input values of CONFIG_FILES etc. instead of their
32327 # values after options handling.
32328 ac_log="
32329 This file was extended by zfs $as_me 0.6.5.6, which was
32330 generated by GNU Autoconf 2.68. Invocation command line was
32331
32332 CONFIG_FILES = $CONFIG_FILES
32333 CONFIG_HEADERS = $CONFIG_HEADERS
32334 CONFIG_LINKS = $CONFIG_LINKS
32335 CONFIG_COMMANDS = $CONFIG_COMMANDS
32336 $ $0 $@
32337
32338 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32339 "
32340
32341 _ACEOF
32342
32343 case $ac_config_files in *"
32344 "*) set x $ac_config_files; shift; ac_config_files=$*;;
32345 esac
32346
32347 case $ac_config_headers in *"
32348 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32349 esac
32350
32351
32352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32353 # Files that config.status was made for.
32354 config_files="$ac_config_files"
32355 config_headers="$ac_config_headers"
32356 config_commands="$ac_config_commands"
32357
32358 _ACEOF
32359
32360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32361 ac_cs_usage="\
32362 \`$as_me' instantiates files and other configuration actions
32363 from templates according to the current configuration. Unless the files
32364 and actions are specified as TAGs, all are instantiated by default.
32365
32366 Usage: $0 [OPTION]... [TAG]...
32367
32368 -h, --help print this help, then exit
32369 -V, --version print version number and configuration settings, then exit
32370 --config print configuration, then exit
32371 -q, --quiet, --silent
32372 do not print progress messages
32373 -d, --debug don't remove temporary files
32374 --recheck update $as_me by reconfiguring in the same conditions
32375 --file=FILE[:TEMPLATE]
32376 instantiate the configuration file FILE
32377 --header=FILE[:TEMPLATE]
32378 instantiate the configuration header FILE
32379
32380 Configuration files:
32381 $config_files
32382
32383 Configuration headers:
32384 $config_headers
32385
32386 Configuration commands:
32387 $config_commands
32388
32389 Report bugs to the package provider."
32390
32391 _ACEOF
32392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32393 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32394 ac_cs_version="\\
32395 zfs config.status 0.6.5.6
32396 configured by $0, generated by GNU Autoconf 2.68,
32397 with options \\"\$ac_cs_config\\"
32398
32399 Copyright (C) 2010 Free Software Foundation, Inc.
32400 This config.status script is free software; the Free Software Foundation
32401 gives unlimited permission to copy, distribute and modify it."
32402
32403 ac_pwd='$ac_pwd'
32404 srcdir='$srcdir'
32405 INSTALL='$INSTALL'
32406 MKDIR_P='$MKDIR_P'
32407 AWK='$AWK'
32408 test -n "\$AWK" || AWK=awk
32409 _ACEOF
32410
32411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32412 # The default lists apply if the user does not specify any file.
32413 ac_need_defaults=:
32414 while test $# != 0
32415 do
32416 case $1 in
32417 --*=?*)
32418 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32419 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32420 ac_shift=:
32421 ;;
32422 --*=)
32423 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32424 ac_optarg=
32425 ac_shift=:
32426 ;;
32427 *)
32428 ac_option=$1
32429 ac_optarg=$2
32430 ac_shift=shift
32431 ;;
32432 esac
32433
32434 case $ac_option in
32435 # Handling of the options.
32436 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32437 ac_cs_recheck=: ;;
32438 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32439 $as_echo "$ac_cs_version"; exit ;;
32440 --config | --confi | --conf | --con | --co | --c )
32441 $as_echo "$ac_cs_config"; exit ;;
32442 --debug | --debu | --deb | --de | --d | -d )
32443 debug=: ;;
32444 --file | --fil | --fi | --f )
32445 $ac_shift
32446 case $ac_optarg in
32447 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32448 '') as_fn_error $? "missing file argument" ;;
32449 esac
32450 as_fn_append CONFIG_FILES " '$ac_optarg'"
32451 ac_need_defaults=false;;
32452 --header | --heade | --head | --hea )
32453 $ac_shift
32454 case $ac_optarg in
32455 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32456 esac
32457 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
32458 ac_need_defaults=false;;
32459 --he | --h)
32460 # Conflict between --help and --header
32461 as_fn_error $? "ambiguous option: \`$1'
32462 Try \`$0 --help' for more information.";;
32463 --help | --hel | -h )
32464 $as_echo "$ac_cs_usage"; exit ;;
32465 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32466 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32467 ac_cs_silent=: ;;
32468
32469 # This is an error.
32470 -*) as_fn_error $? "unrecognized option: \`$1'
32471 Try \`$0 --help' for more information." ;;
32472
32473 *) as_fn_append ac_config_targets " $1"
32474 ac_need_defaults=false ;;
32475
32476 esac
32477 shift
32478 done
32479
32480 ac_configure_extra_args=
32481
32482 if $ac_cs_silent; then
32483 exec 6>/dev/null
32484 ac_configure_extra_args="$ac_configure_extra_args --silent"
32485 fi
32486
32487 _ACEOF
32488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32489 if \$ac_cs_recheck; then
32490 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32491 shift
32492 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32493 CONFIG_SHELL='$SHELL'
32494 export CONFIG_SHELL
32495 exec "\$@"
32496 fi
32497
32498 _ACEOF
32499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32500 exec 5>>config.log
32501 {
32502 echo
32503 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32504 ## Running $as_me. ##
32505 _ASBOX
32506 $as_echo "$ac_log"
32507 } >&5
32508
32509 _ACEOF
32510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32511 #
32512 # INIT-COMMANDS
32513 #
32514 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32515
32516
32517 # The HP-UX ksh and POSIX shell print the target directory to stdout
32518 # if CDPATH is set.
32519 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32520
32521 sed_quote_subst='$sed_quote_subst'
32522 double_quote_subst='$double_quote_subst'
32523 delay_variable_subst='$delay_variable_subst'
32524 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
32525 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
32526 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
32527 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
32528 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
32529 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
32530 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
32531 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
32532 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
32533 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
32534 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
32535 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
32536 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
32537 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
32538 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
32539 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
32540 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
32541 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
32542 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
32543 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
32544 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
32545 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
32546 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
32547 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
32548 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
32549 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
32550 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
32551 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
32552 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
32553 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
32554 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
32555 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
32556 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
32557 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
32558 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
32559 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
32560 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
32561 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
32562 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
32563 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
32564 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
32565 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
32566 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
32567 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
32568 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
32569 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32570 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32571 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
32572 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
32573 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
32574 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
32575 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
32576 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
32577 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
32578 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
32579 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
32580 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
32581 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
32582 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
32583 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
32584 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
32585 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
32586 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
32587 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
32588 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
32589 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
32590 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
32591 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
32592 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
32593 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
32594 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
32595 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
32596 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
32597 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
32598 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
32599 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32600 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
32601 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
32602 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
32603 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
32604 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
32605 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
32606 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32607 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
32608 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32609 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
32610 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32611 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
32612 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
32613 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
32614 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
32615 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
32616 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
32617 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
32618 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
32619 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
32620 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
32621 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
32622 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
32623 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
32624 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
32625 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
32626 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32627 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32628 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
32629 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32630 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32631 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32632 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32633 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32634 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32635 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32636 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32637 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32638 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32639 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32640 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32641 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32642 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32643 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32644 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32645 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32646 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32647 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
32648 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32649 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32650 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32651 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32652 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32653 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32654
32655 LTCC='$LTCC'
32656 LTCFLAGS='$LTCFLAGS'
32657 compiler='$compiler_DEFAULT'
32658
32659 # A function that is used when there is no print builtin or printf.
32660 func_fallback_echo ()
32661 {
32662 eval 'cat <<_LTECHO_EOF
32663 \$1
32664 _LTECHO_EOF'
32665 }
32666
32667 # Quote evaled strings.
32668 for var in SHELL \
32669 ECHO \
32670 PATH_SEPARATOR \
32671 SED \
32672 GREP \
32673 EGREP \
32674 FGREP \
32675 LD \
32676 NM \
32677 LN_S \
32678 lt_SP2NL \
32679 lt_NL2SP \
32680 reload_flag \
32681 OBJDUMP \
32682 deplibs_check_method \
32683 file_magic_cmd \
32684 file_magic_glob \
32685 want_nocaseglob \
32686 DLLTOOL \
32687 sharedlib_from_linklib_cmd \
32688 AR \
32689 AR_FLAGS \
32690 archiver_list_spec \
32691 STRIP \
32692 RANLIB \
32693 CC \
32694 CFLAGS \
32695 compiler \
32696 lt_cv_sys_global_symbol_pipe \
32697 lt_cv_sys_global_symbol_to_cdecl \
32698 lt_cv_sys_global_symbol_to_c_name_address \
32699 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32700 nm_file_list_spec \
32701 lt_prog_compiler_no_builtin_flag \
32702 lt_prog_compiler_pic \
32703 lt_prog_compiler_wl \
32704 lt_prog_compiler_static \
32705 lt_cv_prog_compiler_c_o \
32706 need_locks \
32707 MANIFEST_TOOL \
32708 DSYMUTIL \
32709 NMEDIT \
32710 LIPO \
32711 OTOOL \
32712 OTOOL64 \
32713 shrext_cmds \
32714 export_dynamic_flag_spec \
32715 whole_archive_flag_spec \
32716 compiler_needs_object \
32717 with_gnu_ld \
32718 allow_undefined_flag \
32719 no_undefined_flag \
32720 hardcode_libdir_flag_spec \
32721 hardcode_libdir_separator \
32722 exclude_expsyms \
32723 include_expsyms \
32724 file_list_spec \
32725 variables_saved_for_relink \
32726 libname_spec \
32727 library_names_spec \
32728 soname_spec \
32729 install_override_mode \
32730 finish_eval \
32731 old_striplib \
32732 striplib; do
32733 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32734 *[\\\\\\\`\\"\\\$]*)
32735 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
32736 ;;
32737 *)
32738 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32739 ;;
32740 esac
32741 done
32742
32743 # Double-quote double-evaled strings.
32744 for var in reload_cmds \
32745 old_postinstall_cmds \
32746 old_postuninstall_cmds \
32747 old_archive_cmds \
32748 extract_expsyms_cmds \
32749 old_archive_from_new_cmds \
32750 old_archive_from_expsyms_cmds \
32751 archive_cmds \
32752 archive_expsym_cmds \
32753 module_cmds \
32754 module_expsym_cmds \
32755 export_symbols_cmds \
32756 prelink_cmds \
32757 postlink_cmds \
32758 postinstall_cmds \
32759 postuninstall_cmds \
32760 finish_cmds \
32761 sys_lib_search_path_spec \
32762 sys_lib_dlsearch_path_spec; do
32763 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32764 *[\\\\\\\`\\"\\\$]*)
32765 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32766 ;;
32767 *)
32768 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32769 ;;
32770 esac
32771 done
32772
32773 ac_aux_dir='$ac_aux_dir'
32774 xsi_shell='$xsi_shell'
32775 lt_shell_append='$lt_shell_append'
32776
32777 # See if we are running on zsh, and set the options which allow our
32778 # commands through without removal of \ escapes INIT.
32779 if test -n "\${ZSH_VERSION+set}" ; then
32780 setopt NO_GLOB_SUBST
32781 fi
32782
32783
32784 PACKAGE='$PACKAGE'
32785 VERSION='$VERSION'
32786 TIMESTAMP='$TIMESTAMP'
32787 RM='$RM'
32788 ofile='$ofile'
32789
32790
32791
32792
32793 _ACEOF
32794
32795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32796
32797 # Handling of arguments.
32798 for ac_config_target in $ac_config_targets
32799 do
32800 case $ac_config_target in
32801 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
32802 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32803 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32804 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32805 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
32806 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
32807 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
32808 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
32809 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
32810 "etc/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/Makefile" ;;
32811 "etc/systemd/system/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/system/Makefile" ;;
32812 "etc/modules-load.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/modules-load.d/Makefile" ;;
32813 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
32814 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
32815 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
32816 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
32817 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
32818 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
32819 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
32820 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
32821 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
32822 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
32823 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
32824 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
32825 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
32826 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
32827 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
32828 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
32829 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
32830 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
32831 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
32832 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
32833 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
32834 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
32835 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
32836 "lib/libzfs/libzfs.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs.pc" ;;
32837 "lib/libzfs/libzfs_core.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs_core.pc" ;;
32838 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
32839 "lib/libzfs_core/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs_core/Makefile" ;;
32840 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
32841 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
32842 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
32843 "cmd/zhack/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zhack/Makefile" ;;
32844 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
32845 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
32846 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
32847 "cmd/zstreamdump/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
32848 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
32849 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
32850 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
32851 "cmd/fsck_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
32852 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
32853 "cmd/vdev_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
32854 "cmd/arcstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arcstat/Makefile" ;;
32855 "cmd/dbufstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/dbufstat/Makefile" ;;
32856 "cmd/arc_summary/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arc_summary/Makefile" ;;
32857 "cmd/zed/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zed/Makefile" ;;
32858 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
32859 "contrib/bash_completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/bash_completion.d/Makefile" ;;
32860 "contrib/dracut/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/Makefile" ;;
32861 "contrib/dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/90zfs/Makefile" ;;
32862 "contrib/initramfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/initramfs/Makefile" ;;
32863 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
32864 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
32865 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
32866 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
32867 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
32868 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
32869 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
32870 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
32871 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
32872 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
32873 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
32874 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
32875 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
32876 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32877 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
32878 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
32879 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
32880 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
32881 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
32882 "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;;
32883 "rpm/redhat/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs.spec" ;;
32884 "rpm/redhat/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-kmod.spec" ;;
32885 "rpm/redhat/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-dkms.spec" ;;
32886 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
32887 "rpm/generic/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs.spec" ;;
32888 "rpm/generic/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
32889 "rpm/generic/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
32890 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
32891 "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;;
32892
32893 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32894 esac
32895 done
32896
32897
32898 # If the user did not use the arguments to specify the items to instantiate,
32899 # then the envvar interface is used. Set only those that are not.
32900 # We use the long form for the default assignment because of an extremely
32901 # bizarre bug on SunOS 4.1.3.
32902 if $ac_need_defaults; then
32903 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32904 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32905 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32906 fi
32907
32908 # Have a temporary directory for convenience. Make it in the build tree
32909 # simply because there is no reason against having it here, and in addition,
32910 # creating and moving files from /tmp can sometimes cause problems.
32911 # Hook for its removal unless debugging.
32912 # Note that there is a small window in which the directory will not be cleaned:
32913 # after its creation but before its name has been assigned to `$tmp'.
32914 $debug ||
32915 {
32916 tmp= ac_tmp=
32917 trap 'exit_status=$?
32918 : "${ac_tmp:=$tmp}"
32919 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32920 ' 0
32921 trap 'as_fn_exit 1' 1 2 13 15
32922 }
32923 # Create a (secure) tmp directory for tmp files.
32924
32925 {
32926 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32927 test -d "$tmp"
32928 } ||
32929 {
32930 tmp=./conf$$-$RANDOM
32931 (umask 077 && mkdir "$tmp")
32932 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32933 ac_tmp=$tmp
32934
32935 # Set up the scripts for CONFIG_FILES section.
32936 # No need to generate them if there are no CONFIG_FILES.
32937 # This happens for instance with `./config.status config.h'.
32938 if test -n "$CONFIG_FILES"; then
32939
32940
32941 ac_cr=`echo X | tr X '\015'`
32942 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32943 # But we know of no other shell where ac_cr would be empty at this
32944 # point, so we can use a bashism as a fallback.
32945 if test "x$ac_cr" = x; then
32946 eval ac_cr=\$\'\\r\'
32947 fi
32948 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32949 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32950 ac_cs_awk_cr='\\r'
32951 else
32952 ac_cs_awk_cr=$ac_cr
32953 fi
32954
32955 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32956 _ACEOF
32957
32958
32959 {
32960 echo "cat >conf$$subs.awk <<_ACEOF" &&
32961 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32962 echo "_ACEOF"
32963 } >conf$$subs.sh ||
32964 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32965 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32966 ac_delim='%!_!# '
32967 for ac_last_try in false false false false false :; do
32968 . ./conf$$subs.sh ||
32969 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32970
32971 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32972 if test $ac_delim_n = $ac_delim_num; then
32973 break
32974 elif $ac_last_try; then
32975 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32976 else
32977 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32978 fi
32979 done
32980 rm -f conf$$subs.sh
32981
32982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32983 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32984 _ACEOF
32985 sed -n '
32986 h
32987 s/^/S["/; s/!.*/"]=/
32988 p
32989 g
32990 s/^[^!]*!//
32991 :repl
32992 t repl
32993 s/'"$ac_delim"'$//
32994 t delim
32995 :nl
32996 h
32997 s/\(.\{148\}\)..*/\1/
32998 t more1
32999 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33000 p
33001 n
33002 b repl
33003 :more1
33004 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33005 p
33006 g
33007 s/.\{148\}//
33008 t nl
33009 :delim
33010 h
33011 s/\(.\{148\}\)..*/\1/
33012 t more2
33013 s/["\\]/\\&/g; s/^/"/; s/$/"/
33014 p
33015 b
33016 :more2
33017 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33018 p
33019 g
33020 s/.\{148\}//
33021 t delim
33022 ' <conf$$subs.awk | sed '
33023 /^[^""]/{
33024 N
33025 s/\n//
33026 }
33027 ' >>$CONFIG_STATUS || ac_write_fail=1
33028 rm -f conf$$subs.awk
33029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33030 _ACAWK
33031 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33032 for (key in S) S_is_set[key] = 1
33033 FS = "\a"
33034
33035 }
33036 {
33037 line = $ 0
33038 nfields = split(line, field, "@")
33039 substed = 0
33040 len = length(field[1])
33041 for (i = 2; i < nfields; i++) {
33042 key = field[i]
33043 keylen = length(key)
33044 if (S_is_set[key]) {
33045 value = S[key]
33046 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33047 len += length(value) + length(field[++i])
33048 substed = 1
33049 } else
33050 len += 1 + keylen
33051 }
33052
33053 print line
33054 }
33055
33056 _ACAWK
33057 _ACEOF
33058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33059 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33060 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33061 else
33062 cat
33063 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33064 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33065 _ACEOF
33066
33067 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33068 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33069 # trailing colons and then remove the whole line if VPATH becomes empty
33070 # (actually we leave an empty line to preserve line numbers).
33071 if test "x$srcdir" = x.; then
33072 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33073 h
33074 s///
33075 s/^/:/
33076 s/[ ]*$/:/
33077 s/:\$(srcdir):/:/g
33078 s/:\${srcdir}:/:/g
33079 s/:@srcdir@:/:/g
33080 s/^:*//
33081 s/:*$//
33082 x
33083 s/\(=[ ]*\).*/\1/
33084 G
33085 s/\n//
33086 s/^[^=]*=[ ]*$//
33087 }'
33088 fi
33089
33090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33091 fi # test -n "$CONFIG_FILES"
33092
33093 # Set up the scripts for CONFIG_HEADERS section.
33094 # No need to generate them if there are no CONFIG_HEADERS.
33095 # This happens for instance with `./config.status Makefile'.
33096 if test -n "$CONFIG_HEADERS"; then
33097 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33098 BEGIN {
33099 _ACEOF
33100
33101 # Transform confdefs.h into an awk script `defines.awk', embedded as
33102 # here-document in config.status, that substitutes the proper values into
33103 # config.h.in to produce config.h.
33104
33105 # Create a delimiter string that does not exist in confdefs.h, to ease
33106 # handling of long lines.
33107 ac_delim='%!_!# '
33108 for ac_last_try in false false :; do
33109 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33110 if test -z "$ac_tt"; then
33111 break
33112 elif $ac_last_try; then
33113 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33114 else
33115 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33116 fi
33117 done
33118
33119 # For the awk script, D is an array of macro values keyed by name,
33120 # likewise P contains macro parameters if any. Preserve backslash
33121 # newline sequences.
33122
33123 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33124 sed -n '
33125 s/.\{148\}/&'"$ac_delim"'/g
33126 t rset
33127 :rset
33128 s/^[ ]*#[ ]*define[ ][ ]*/ /
33129 t def
33130 d
33131 :def
33132 s/\\$//
33133 t bsnl
33134 s/["\\]/\\&/g
33135 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33136 D["\1"]=" \3"/p
33137 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33138 d
33139 :bsnl
33140 s/["\\]/\\&/g
33141 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33142 D["\1"]=" \3\\\\\\n"\\/p
33143 t cont
33144 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33145 t cont
33146 d
33147 :cont
33148 n
33149 s/.\{148\}/&'"$ac_delim"'/g
33150 t clear
33151 :clear
33152 s/\\$//
33153 t bsnlc
33154 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33155 d
33156 :bsnlc
33157 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33158 b cont
33159 ' <confdefs.h | sed '
33160 s/'"$ac_delim"'/"\\\
33161 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33162
33163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33164 for (key in D) D_is_set[key] = 1
33165 FS = "\a"
33166 }
33167 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33168 line = \$ 0
33169 split(line, arg, " ")
33170 if (arg[1] == "#") {
33171 defundef = arg[2]
33172 mac1 = arg[3]
33173 } else {
33174 defundef = substr(arg[1], 2)
33175 mac1 = arg[2]
33176 }
33177 split(mac1, mac2, "(") #)
33178 macro = mac2[1]
33179 prefix = substr(line, 1, index(line, defundef) - 1)
33180 if (D_is_set[macro]) {
33181 # Preserve the white space surrounding the "#".
33182 print prefix "define", macro P[macro] D[macro]
33183 next
33184 } else {
33185 # Replace #undef with comments. This is necessary, for example,
33186 # in the case of _POSIX_SOURCE, which is predefined and required
33187 # on some systems where configure will not decide to define it.
33188 if (defundef == "undef") {
33189 print "/*", prefix defundef, macro, "*/"
33190 next
33191 }
33192 }
33193 }
33194 { print }
33195 _ACAWK
33196 _ACEOF
33197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33198 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33199 fi # test -n "$CONFIG_HEADERS"
33200
33201
33202 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
33203 shift
33204 for ac_tag
33205 do
33206 case $ac_tag in
33207 :[FHLC]) ac_mode=$ac_tag; continue;;
33208 esac
33209 case $ac_mode$ac_tag in
33210 :[FHL]*:*);;
33211 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33212 :[FH]-) ac_tag=-:-;;
33213 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33214 esac
33215 ac_save_IFS=$IFS
33216 IFS=:
33217 set x $ac_tag
33218 IFS=$ac_save_IFS
33219 shift
33220 ac_file=$1
33221 shift
33222
33223 case $ac_mode in
33224 :L) ac_source=$1;;
33225 :[FH])
33226 ac_file_inputs=
33227 for ac_f
33228 do
33229 case $ac_f in
33230 -) ac_f="$ac_tmp/stdin";;
33231 *) # Look for the file first in the build tree, then in the source tree
33232 # (if the path is not absolute). The absolute path cannot be DOS-style,
33233 # because $ac_f cannot contain `:'.
33234 test -f "$ac_f" ||
33235 case $ac_f in
33236 [\\/$]*) false;;
33237 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33238 esac ||
33239 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33240 esac
33241 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33242 as_fn_append ac_file_inputs " '$ac_f'"
33243 done
33244
33245 # Let's still pretend it is `configure' which instantiates (i.e., don't
33246 # use $as_me), people would be surprised to read:
33247 # /* config.h. Generated by config.status. */
33248 configure_input='Generated from '`
33249 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33250 `' by configure.'
33251 if test x"$ac_file" != x-; then
33252 configure_input="$ac_file. $configure_input"
33253 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33254 $as_echo "$as_me: creating $ac_file" >&6;}
33255 fi
33256 # Neutralize special characters interpreted by sed in replacement strings.
33257 case $configure_input in #(
33258 *\&* | *\|* | *\\* )
33259 ac_sed_conf_input=`$as_echo "$configure_input" |
33260 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33261 *) ac_sed_conf_input=$configure_input;;
33262 esac
33263
33264 case $ac_tag in
33265 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33266 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33267 esac
33268 ;;
33269 esac
33270
33271 ac_dir=`$as_dirname -- "$ac_file" ||
33272 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33273 X"$ac_file" : 'X\(//\)[^/]' \| \
33274 X"$ac_file" : 'X\(//\)$' \| \
33275 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33276 $as_echo X"$ac_file" |
33277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33278 s//\1/
33279 q
33280 }
33281 /^X\(\/\/\)[^/].*/{
33282 s//\1/
33283 q
33284 }
33285 /^X\(\/\/\)$/{
33286 s//\1/
33287 q
33288 }
33289 /^X\(\/\).*/{
33290 s//\1/
33291 q
33292 }
33293 s/.*/./; q'`
33294 as_dir="$ac_dir"; as_fn_mkdir_p
33295 ac_builddir=.
33296
33297 case "$ac_dir" in
33298 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33299 *)
33300 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33301 # A ".." for each directory in $ac_dir_suffix.
33302 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33303 case $ac_top_builddir_sub in
33304 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33305 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33306 esac ;;
33307 esac
33308 ac_abs_top_builddir=$ac_pwd
33309 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33310 # for backward compatibility:
33311 ac_top_builddir=$ac_top_build_prefix
33312
33313 case $srcdir in
33314 .) # We are building in place.
33315 ac_srcdir=.
33316 ac_top_srcdir=$ac_top_builddir_sub
33317 ac_abs_top_srcdir=$ac_pwd ;;
33318 [\\/]* | ?:[\\/]* ) # Absolute name.
33319 ac_srcdir=$srcdir$ac_dir_suffix;
33320 ac_top_srcdir=$srcdir
33321 ac_abs_top_srcdir=$srcdir ;;
33322 *) # Relative name.
33323 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33324 ac_top_srcdir=$ac_top_build_prefix$srcdir
33325 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33326 esac
33327 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33328
33329
33330 case $ac_mode in
33331 :F)
33332 #
33333 # CONFIG_FILE
33334 #
33335
33336 case $INSTALL in
33337 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33338 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33339 esac
33340 ac_MKDIR_P=$MKDIR_P
33341 case $MKDIR_P in
33342 [\\/$]* | ?:[\\/]* ) ;;
33343 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33344 esac
33345 _ACEOF
33346
33347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33348 # If the template does not know about datarootdir, expand it.
33349 # FIXME: This hack should be removed a few years after 2.60.
33350 ac_datarootdir_hack=; ac_datarootdir_seen=
33351 ac_sed_dataroot='
33352 /datarootdir/ {
33353 p
33354 q
33355 }
33356 /@datadir@/p
33357 /@docdir@/p
33358 /@infodir@/p
33359 /@localedir@/p
33360 /@mandir@/p'
33361 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33362 *datarootdir*) ac_datarootdir_seen=yes;;
33363 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33365 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33366 _ACEOF
33367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33368 ac_datarootdir_hack='
33369 s&@datadir@&$datadir&g
33370 s&@docdir@&$docdir&g
33371 s&@infodir@&$infodir&g
33372 s&@localedir@&$localedir&g
33373 s&@mandir@&$mandir&g
33374 s&\\\${datarootdir}&$datarootdir&g' ;;
33375 esac
33376 _ACEOF
33377
33378 # Neutralize VPATH when `$srcdir' = `.'.
33379 # Shell code in configure.ac might set extrasub.
33380 # FIXME: do we really want to maintain this feature?
33381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33382 ac_sed_extra="$ac_vpsub
33383 $extrasub
33384 _ACEOF
33385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33386 :t
33387 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33388 s|@configure_input@|$ac_sed_conf_input|;t t
33389 s&@top_builddir@&$ac_top_builddir_sub&;t t
33390 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33391 s&@srcdir@&$ac_srcdir&;t t
33392 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33393 s&@top_srcdir@&$ac_top_srcdir&;t t
33394 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33395 s&@builddir@&$ac_builddir&;t t
33396 s&@abs_builddir@&$ac_abs_builddir&;t t
33397 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33398 s&@INSTALL@&$ac_INSTALL&;t t
33399 s&@MKDIR_P@&$ac_MKDIR_P&;t t
33400 $ac_datarootdir_hack
33401 "
33402 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
33403 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33404
33405 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33406 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33407 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33408 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33410 which seems to be undefined. Please make sure it is defined" >&5
33411 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33412 which seems to be undefined. Please make sure it is defined" >&2;}
33413
33414 rm -f "$ac_tmp/stdin"
33415 case $ac_file in
33416 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33417 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33418 esac \
33419 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33420 ;;
33421 :H)
33422 #
33423 # CONFIG_HEADER
33424 #
33425 if test x"$ac_file" != x-; then
33426 {
33427 $as_echo "/* $configure_input */" \
33428 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33429 } >"$ac_tmp/config.h" \
33430 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33431 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33432 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33433 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33434 else
33435 rm -f "$ac_file"
33436 mv "$ac_tmp/config.h" "$ac_file" \
33437 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33438 fi
33439 else
33440 $as_echo "/* $configure_input */" \
33441 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33442 || as_fn_error $? "could not create -" "$LINENO" 5
33443 fi
33444 # Compute "$ac_file"'s index in $config_headers.
33445 _am_arg="$ac_file"
33446 _am_stamp_count=1
33447 for _am_header in $config_headers :; do
33448 case $_am_header in
33449 $_am_arg | $_am_arg:* )
33450 break ;;
33451 * )
33452 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33453 esac
33454 done
33455 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33456 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33457 X"$_am_arg" : 'X\(//\)[^/]' \| \
33458 X"$_am_arg" : 'X\(//\)$' \| \
33459 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33460 $as_echo X"$_am_arg" |
33461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33462 s//\1/
33463 q
33464 }
33465 /^X\(\/\/\)[^/].*/{
33466 s//\1/
33467 q
33468 }
33469 /^X\(\/\/\)$/{
33470 s//\1/
33471 q
33472 }
33473 /^X\(\/\).*/{
33474 s//\1/
33475 q
33476 }
33477 s/.*/./; q'`/stamp-h$_am_stamp_count
33478 ;;
33479
33480 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33481 $as_echo "$as_me: executing $ac_file commands" >&6;}
33482 ;;
33483 esac
33484
33485
33486 case $ac_file$ac_mode in
33487 "zfs_config.h":H)
33488 (mv zfs_config.h zfs_config.h.tmp &&
33489 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
33490 rm zfs_config.h.tmp) || exit 1 ;;
33491 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
33492 # Autoconf 2.62 quotes --file arguments for eval, but not when files
33493 # are listed without --file. Let's play safe and only enable the eval
33494 # if we detect the quoting.
33495 case $CONFIG_FILES in
33496 *\'*) eval set x "$CONFIG_FILES" ;;
33497 *) set x $CONFIG_FILES ;;
33498 esac
33499 shift
33500 for mf
33501 do
33502 # Strip MF so we end up with the name of the file.
33503 mf=`echo "$mf" | sed -e 's/:.*$//'`
33504 # Check whether this is an Automake generated Makefile or not.
33505 # We used to match only the files named `Makefile.in', but
33506 # some people rename them; so instead we look at the file content.
33507 # Grep'ing the first line is not enough: some people post-process
33508 # each Makefile.in and add a new line on top of each file to say so.
33509 # Grep'ing the whole file is not good either: AIX grep has a line
33510 # limit of 2048, but all sed's we know have understand at least 4000.
33511 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
33512 dirpart=`$as_dirname -- "$mf" ||
33513 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33514 X"$mf" : 'X\(//\)[^/]' \| \
33515 X"$mf" : 'X\(//\)$' \| \
33516 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33517 $as_echo X"$mf" |
33518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33519 s//\1/
33520 q
33521 }
33522 /^X\(\/\/\)[^/].*/{
33523 s//\1/
33524 q
33525 }
33526 /^X\(\/\/\)$/{
33527 s//\1/
33528 q
33529 }
33530 /^X\(\/\).*/{
33531 s//\1/
33532 q
33533 }
33534 s/.*/./; q'`
33535 else
33536 continue
33537 fi
33538 # Extract the definition of DEPDIR, am__include, and am__quote
33539 # from the Makefile without running `make'.
33540 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33541 test -z "$DEPDIR" && continue
33542 am__include=`sed -n 's/^am__include = //p' < "$mf"`
33543 test -z "am__include" && continue
33544 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33545 # When using ansi2knr, U may be empty or an underscore; expand it
33546 U=`sed -n 's/^U = //p' < "$mf"`
33547 # Find all dependency output files, they are included files with
33548 # $(DEPDIR) in their names. We invoke sed twice because it is the
33549 # simplest approach to changing $(DEPDIR) to its actual value in the
33550 # expansion.
33551 for file in `sed -n "
33552 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33553 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33554 # Make sure the directory exists.
33555 test -f "$dirpart/$file" && continue
33556 fdir=`$as_dirname -- "$file" ||
33557 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33558 X"$file" : 'X\(//\)[^/]' \| \
33559 X"$file" : 'X\(//\)$' \| \
33560 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33561 $as_echo X"$file" |
33562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33563 s//\1/
33564 q
33565 }
33566 /^X\(\/\/\)[^/].*/{
33567 s//\1/
33568 q
33569 }
33570 /^X\(\/\/\)$/{
33571 s//\1/
33572 q
33573 }
33574 /^X\(\/\).*/{
33575 s//\1/
33576 q
33577 }
33578 s/.*/./; q'`
33579 as_dir=$dirpart/$fdir; as_fn_mkdir_p
33580 # echo "creating $dirpart/$file"
33581 echo '# dummy' > "$dirpart/$file"
33582 done
33583 done
33584 }
33585 ;;
33586 "libtool":C)
33587
33588 # See if we are running on zsh, and set the options which allow our
33589 # commands through without removal of \ escapes.
33590 if test -n "${ZSH_VERSION+set}" ; then
33591 setopt NO_GLOB_SUBST
33592 fi
33593
33594 cfgfile="${ofile}T"
33595 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33596 $RM "$cfgfile"
33597
33598 cat <<_LT_EOF >> "$cfgfile"
33599 #! $SHELL
33600
33601 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33602 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33603 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33604 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
33605 #
33606 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33607 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
33608 # Foundation, Inc.
33609 # Written by Gordon Matzigkeit, 1996
33610 #
33611 # This file is part of GNU Libtool.
33612 #
33613 # GNU Libtool is free software; you can redistribute it and/or
33614 # modify it under the terms of the GNU General Public License as
33615 # published by the Free Software Foundation; either version 2 of
33616 # the License, or (at your option) any later version.
33617 #
33618 # As a special exception to the GNU General Public License,
33619 # if you distribute this file as part of a program or library that
33620 # is built using GNU Libtool, you may include this file under the
33621 # same distribution terms that you use for the rest of that program.
33622 #
33623 # GNU Libtool is distributed in the hope that it will be useful,
33624 # but WITHOUT ANY WARRANTY; without even the implied warranty of
33625 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33626 # GNU General Public License for more details.
33627 #
33628 # You should have received a copy of the GNU General Public License
33629 # along with GNU Libtool; see the file COPYING. If not, a copy
33630 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33631 # obtained by writing to the Free Software Foundation, Inc.,
33632 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33633
33634
33635 # The names of the tagged configurations supported by this script.
33636 available_tags=""
33637
33638 # ### BEGIN LIBTOOL CONFIG
33639
33640 # Which release of libtool.m4 was used?
33641 macro_version=$macro_version
33642 macro_revision=$macro_revision
33643
33644 # Whether or not to build shared libraries.
33645 build_libtool_libs=$enable_shared
33646
33647 # Whether or not to build static libraries.
33648 build_old_libs=$enable_static
33649
33650 # What type of objects to build.
33651 pic_mode=$pic_mode
33652
33653 # Whether or not to optimize for fast installation.
33654 fast_install=$enable_fast_install
33655
33656 # Shell to use when invoking shell scripts.
33657 SHELL=$lt_SHELL
33658
33659 # An echo program that protects backslashes.
33660 ECHO=$lt_ECHO
33661
33662 # The PATH separator for the build system.
33663 PATH_SEPARATOR=$lt_PATH_SEPARATOR
33664
33665 # The host system.
33666 host_alias=$host_alias
33667 host=$host
33668 host_os=$host_os
33669
33670 # The build system.
33671 build_alias=$build_alias
33672 build=$build
33673 build_os=$build_os
33674
33675 # A sed program that does not truncate output.
33676 SED=$lt_SED
33677
33678 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33679 Xsed="\$SED -e 1s/^X//"
33680
33681 # A grep program that handles long lines.
33682 GREP=$lt_GREP
33683
33684 # An ERE matcher.
33685 EGREP=$lt_EGREP
33686
33687 # A literal string matcher.
33688 FGREP=$lt_FGREP
33689
33690 # A BSD- or MS-compatible name lister.
33691 NM=$lt_NM
33692
33693 # Whether we need soft or hard links.
33694 LN_S=$lt_LN_S
33695
33696 # What is the maximum length of a command?
33697 max_cmd_len=$max_cmd_len
33698
33699 # Object file suffix (normally "o").
33700 objext=$ac_objext
33701
33702 # Executable file suffix (normally "").
33703 exeext=$exeext
33704
33705 # whether the shell understands "unset".
33706 lt_unset=$lt_unset
33707
33708 # turn spaces into newlines.
33709 SP2NL=$lt_lt_SP2NL
33710
33711 # turn newlines into spaces.
33712 NL2SP=$lt_lt_NL2SP
33713
33714 # convert \$build file names to \$host format.
33715 to_host_file_cmd=$lt_cv_to_host_file_cmd
33716
33717 # convert \$build files to toolchain format.
33718 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
33719
33720 # An object symbol dumper.
33721 OBJDUMP=$lt_OBJDUMP
33722
33723 # Method to check whether dependent libraries are shared objects.
33724 deplibs_check_method=$lt_deplibs_check_method
33725
33726 # Command to use when deplibs_check_method = "file_magic".
33727 file_magic_cmd=$lt_file_magic_cmd
33728
33729 # How to find potential files when deplibs_check_method = "file_magic".
33730 file_magic_glob=$lt_file_magic_glob
33731
33732 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
33733 want_nocaseglob=$lt_want_nocaseglob
33734
33735 # DLL creation program.
33736 DLLTOOL=$lt_DLLTOOL
33737
33738 # Command to associate shared and link libraries.
33739 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
33740
33741 # The archiver.
33742 AR=$lt_AR
33743
33744 # Flags to create an archive.
33745 AR_FLAGS=$lt_AR_FLAGS
33746
33747 # How to feed a file listing to the archiver.
33748 archiver_list_spec=$lt_archiver_list_spec
33749
33750 # A symbol stripping program.
33751 STRIP=$lt_STRIP
33752
33753 # Commands used to install an old-style archive.
33754 RANLIB=$lt_RANLIB
33755 old_postinstall_cmds=$lt_old_postinstall_cmds
33756 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33757
33758 # Whether to use a lock for old archive extraction.
33759 lock_old_archive_extraction=$lock_old_archive_extraction
33760
33761 # A C compiler.
33762 LTCC=$lt_CC
33763
33764 # LTCC compiler flags.
33765 LTCFLAGS=$lt_CFLAGS
33766
33767 # Take the output of nm and produce a listing of raw symbols and C names.
33768 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33769
33770 # Transform the output of nm in a proper C declaration.
33771 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33772
33773 # Transform the output of nm in a C name address pair.
33774 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33775
33776 # Transform the output of nm in a C name address pair when lib prefix is needed.
33777 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33778
33779 # Specify filename containing input files for \$NM.
33780 nm_file_list_spec=$lt_nm_file_list_spec
33781
33782 # The root where to search for dependent libraries,and in which our libraries should be installed.
33783 lt_sysroot=$lt_sysroot
33784
33785 # The name of the directory that contains temporary libtool files.
33786 objdir=$objdir
33787
33788 # Used to examine libraries when file_magic_cmd begins with "file".
33789 MAGIC_CMD=$MAGIC_CMD
33790
33791 # Must we lock files when doing compilation?
33792 need_locks=$lt_need_locks
33793
33794 # Manifest tool.
33795 MANIFEST_TOOL=$lt_MANIFEST_TOOL
33796
33797 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33798 DSYMUTIL=$lt_DSYMUTIL
33799
33800 # Tool to change global to local symbols on Mac OS X.
33801 NMEDIT=$lt_NMEDIT
33802
33803 # Tool to manipulate fat objects and archives on Mac OS X.
33804 LIPO=$lt_LIPO
33805
33806 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33807 OTOOL=$lt_OTOOL
33808
33809 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33810 OTOOL64=$lt_OTOOL64
33811
33812 # Old archive suffix (normally "a").
33813 libext=$libext
33814
33815 # Shared library suffix (normally ".so").
33816 shrext_cmds=$lt_shrext_cmds
33817
33818 # The commands to extract the exported symbol list from a shared archive.
33819 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33820
33821 # Variables whose values should be saved in libtool wrapper scripts and
33822 # restored at link time.
33823 variables_saved_for_relink=$lt_variables_saved_for_relink
33824
33825 # Do we need the "lib" prefix for modules?
33826 need_lib_prefix=$need_lib_prefix
33827
33828 # Do we need a version for libraries?
33829 need_version=$need_version
33830
33831 # Library versioning type.
33832 version_type=$version_type
33833
33834 # Shared library runtime path variable.
33835 runpath_var=$runpath_var
33836
33837 # Shared library path variable.
33838 shlibpath_var=$shlibpath_var
33839
33840 # Is shlibpath searched before the hard-coded library search path?
33841 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33842
33843 # Format of library name prefix.
33844 libname_spec=$lt_libname_spec
33845
33846 # List of archive names. First name is the real one, the rest are links.
33847 # The last name is the one that the linker finds with -lNAME
33848 library_names_spec=$lt_library_names_spec
33849
33850 # The coded name of the library, if different from the real name.
33851 soname_spec=$lt_soname_spec
33852
33853 # Permission mode override for installation of shared libraries.
33854 install_override_mode=$lt_install_override_mode
33855
33856 # Command to use after installation of a shared archive.
33857 postinstall_cmds=$lt_postinstall_cmds
33858
33859 # Command to use after uninstallation of a shared archive.
33860 postuninstall_cmds=$lt_postuninstall_cmds
33861
33862 # Commands used to finish a libtool library installation in a directory.
33863 finish_cmds=$lt_finish_cmds
33864
33865 # As "finish_cmds", except a single script fragment to be evaled but
33866 # not shown.
33867 finish_eval=$lt_finish_eval
33868
33869 # Whether we should hardcode library paths into libraries.
33870 hardcode_into_libs=$hardcode_into_libs
33871
33872 # Compile-time system search path for libraries.
33873 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33874
33875 # Run-time system search path for libraries.
33876 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33877
33878 # Whether dlopen is supported.
33879 dlopen_support=$enable_dlopen
33880
33881 # Whether dlopen of programs is supported.
33882 dlopen_self=$enable_dlopen_self
33883
33884 # Whether dlopen of statically linked programs is supported.
33885 dlopen_self_static=$enable_dlopen_self_static
33886
33887 # Commands to strip libraries.
33888 old_striplib=$lt_old_striplib
33889 striplib=$lt_striplib
33890
33891
33892 # The linker used to build libraries.
33893 LD=$lt_LD
33894
33895 # How to create reloadable object files.
33896 reload_flag=$lt_reload_flag
33897 reload_cmds=$lt_reload_cmds
33898
33899 # Commands used to build an old-style archive.
33900 old_archive_cmds=$lt_old_archive_cmds
33901
33902 # A language specific compiler.
33903 CC=$lt_compiler
33904
33905 # Is the compiler the GNU compiler?
33906 with_gcc=$GCC
33907
33908 # Compiler flag to turn off builtin functions.
33909 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33910
33911 # Additional compiler flags for building library objects.
33912 pic_flag=$lt_lt_prog_compiler_pic
33913
33914 # How to pass a linker flag through the compiler.
33915 wl=$lt_lt_prog_compiler_wl
33916
33917 # Compiler flag to prevent dynamic linking.
33918 link_static_flag=$lt_lt_prog_compiler_static
33919
33920 # Does compiler simultaneously support -c and -o options?
33921 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33922
33923 # Whether or not to add -lc for building shared libraries.
33924 build_libtool_need_lc=$archive_cmds_need_lc
33925
33926 # Whether or not to disallow shared libs when runtime libs are static.
33927 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33928
33929 # Compiler flag to allow reflexive dlopens.
33930 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33931
33932 # Compiler flag to generate shared objects directly from archives.
33933 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33934
33935 # Whether the compiler copes with passing no objects directly.
33936 compiler_needs_object=$lt_compiler_needs_object
33937
33938 # Create an old-style archive from a shared archive.
33939 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33940
33941 # Create a temporary old-style archive to link instead of a shared archive.
33942 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33943
33944 # Commands used to build a shared archive.
33945 archive_cmds=$lt_archive_cmds
33946 archive_expsym_cmds=$lt_archive_expsym_cmds
33947
33948 # Commands used to build a loadable module if different from building
33949 # a shared archive.
33950 module_cmds=$lt_module_cmds
33951 module_expsym_cmds=$lt_module_expsym_cmds
33952
33953 # Whether we are building with GNU ld or not.
33954 with_gnu_ld=$lt_with_gnu_ld
33955
33956 # Flag that allows shared libraries with undefined symbols to be built.
33957 allow_undefined_flag=$lt_allow_undefined_flag
33958
33959 # Flag that enforces no undefined symbols.
33960 no_undefined_flag=$lt_no_undefined_flag
33961
33962 # Flag to hardcode \$libdir into a binary during linking.
33963 # This must work even if \$libdir does not exist
33964 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33965
33966 # Whether we need a single "-rpath" flag with a separated argument.
33967 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33968
33969 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33970 # DIR into the resulting binary.
33971 hardcode_direct=$hardcode_direct
33972
33973 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33974 # DIR into the resulting binary and the resulting library dependency is
33975 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33976 # library is relocated.
33977 hardcode_direct_absolute=$hardcode_direct_absolute
33978
33979 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33980 # into the resulting binary.
33981 hardcode_minus_L=$hardcode_minus_L
33982
33983 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33984 # into the resulting binary.
33985 hardcode_shlibpath_var=$hardcode_shlibpath_var
33986
33987 # Set to "yes" if building a shared library automatically hardcodes DIR
33988 # into the library and all subsequent libraries and executables linked
33989 # against it.
33990 hardcode_automatic=$hardcode_automatic
33991
33992 # Set to yes if linker adds runtime paths of dependent libraries
33993 # to runtime path list.
33994 inherit_rpath=$inherit_rpath
33995
33996 # Whether libtool must link a program against all its dependency libraries.
33997 link_all_deplibs=$link_all_deplibs
33998
33999 # Set to "yes" if exported symbols are required.
34000 always_export_symbols=$always_export_symbols
34001
34002 # The commands to list exported symbols.
34003 export_symbols_cmds=$lt_export_symbols_cmds
34004
34005 # Symbols that should not be listed in the preloaded symbols.
34006 exclude_expsyms=$lt_exclude_expsyms
34007
34008 # Symbols that must always be exported.
34009 include_expsyms=$lt_include_expsyms
34010
34011 # Commands necessary for linking programs (against libraries) with templates.
34012 prelink_cmds=$lt_prelink_cmds
34013
34014 # Commands necessary for finishing linking programs.
34015 postlink_cmds=$lt_postlink_cmds
34016
34017 # Specify filename containing input files.
34018 file_list_spec=$lt_file_list_spec
34019
34020 # How to hardcode a shared library path into an executable.
34021 hardcode_action=$hardcode_action
34022
34023 # ### END LIBTOOL CONFIG
34024
34025 _LT_EOF
34026
34027 case $host_os in
34028 aix3*)
34029 cat <<\_LT_EOF >> "$cfgfile"
34030 # AIX sometimes has problems with the GCC collect2 program. For some
34031 # reason, if we set the COLLECT_NAMES environment variable, the problems
34032 # vanish in a puff of smoke.
34033 if test "X${COLLECT_NAMES+set}" != Xset; then
34034 COLLECT_NAMES=
34035 export COLLECT_NAMES
34036 fi
34037 _LT_EOF
34038 ;;
34039 esac
34040
34041
34042 ltmain="$ac_aux_dir/ltmain.sh"
34043
34044
34045 # We use sed instead of cat because bash on DJGPP gets confused if
34046 # if finds mixed CR/LF and LF-only lines. Since sed operates in
34047 # text mode, it properly converts lines to CR/LF. This bash problem
34048 # is reportedly fixed, but why not run on old versions too?
34049 sed '$q' "$ltmain" >> "$cfgfile" \
34050 || (rm -f "$cfgfile"; exit 1)
34051
34052 if test x"$xsi_shell" = xyes; then
34053 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
34054 func_dirname ()\
34055 {\
34056 \ case ${1} in\
34057 \ */*) func_dirname_result="${1%/*}${2}" ;;\
34058 \ * ) func_dirname_result="${3}" ;;\
34059 \ esac\
34060 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
34061 && mv -f "$cfgfile.tmp" "$cfgfile" \
34062 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34063 test 0 -eq $? || _lt_function_replace_fail=:
34064
34065
34066 sed -e '/^func_basename ()$/,/^} # func_basename /c\
34067 func_basename ()\
34068 {\
34069 \ func_basename_result="${1##*/}"\
34070 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
34071 && mv -f "$cfgfile.tmp" "$cfgfile" \
34072 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34073 test 0 -eq $? || _lt_function_replace_fail=:
34074
34075
34076 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
34077 func_dirname_and_basename ()\
34078 {\
34079 \ case ${1} in\
34080 \ */*) func_dirname_result="${1%/*}${2}" ;;\
34081 \ * ) func_dirname_result="${3}" ;;\
34082 \ esac\
34083 \ func_basename_result="${1##*/}"\
34084 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
34085 && mv -f "$cfgfile.tmp" "$cfgfile" \
34086 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34087 test 0 -eq $? || _lt_function_replace_fail=:
34088
34089
34090 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
34091 func_stripname ()\
34092 {\
34093 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
34094 \ # positional parameters, so assign one to ordinary parameter first.\
34095 \ func_stripname_result=${3}\
34096 \ func_stripname_result=${func_stripname_result#"${1}"}\
34097 \ func_stripname_result=${func_stripname_result%"${2}"}\
34098 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
34099 && mv -f "$cfgfile.tmp" "$cfgfile" \
34100 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34101 test 0 -eq $? || _lt_function_replace_fail=:
34102
34103
34104 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
34105 func_split_long_opt ()\
34106 {\
34107 \ func_split_long_opt_name=${1%%=*}\
34108 \ func_split_long_opt_arg=${1#*=}\
34109 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
34110 && mv -f "$cfgfile.tmp" "$cfgfile" \
34111 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34112 test 0 -eq $? || _lt_function_replace_fail=:
34113
34114
34115 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
34116 func_split_short_opt ()\
34117 {\
34118 \ func_split_short_opt_arg=${1#??}\
34119 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
34120 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
34121 && mv -f "$cfgfile.tmp" "$cfgfile" \
34122 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34123 test 0 -eq $? || _lt_function_replace_fail=:
34124
34125
34126 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
34127 func_lo2o ()\
34128 {\
34129 \ case ${1} in\
34130 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
34131 \ *) func_lo2o_result=${1} ;;\
34132 \ esac\
34133 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
34134 && mv -f "$cfgfile.tmp" "$cfgfile" \
34135 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34136 test 0 -eq $? || _lt_function_replace_fail=:
34137
34138
34139 sed -e '/^func_xform ()$/,/^} # func_xform /c\
34140 func_xform ()\
34141 {\
34142 func_xform_result=${1%.*}.lo\
34143 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
34144 && mv -f "$cfgfile.tmp" "$cfgfile" \
34145 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34146 test 0 -eq $? || _lt_function_replace_fail=:
34147
34148
34149 sed -e '/^func_arith ()$/,/^} # func_arith /c\
34150 func_arith ()\
34151 {\
34152 func_arith_result=$(( $* ))\
34153 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
34154 && mv -f "$cfgfile.tmp" "$cfgfile" \
34155 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34156 test 0 -eq $? || _lt_function_replace_fail=:
34157
34158
34159 sed -e '/^func_len ()$/,/^} # func_len /c\
34160 func_len ()\
34161 {\
34162 func_len_result=${#1}\
34163 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
34164 && mv -f "$cfgfile.tmp" "$cfgfile" \
34165 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34166 test 0 -eq $? || _lt_function_replace_fail=:
34167
34168 fi
34169
34170 if test x"$lt_shell_append" = xyes; then
34171 sed -e '/^func_append ()$/,/^} # func_append /c\
34172 func_append ()\
34173 {\
34174 eval "${1}+=\\${2}"\
34175 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
34176 && mv -f "$cfgfile.tmp" "$cfgfile" \
34177 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34178 test 0 -eq $? || _lt_function_replace_fail=:
34179
34180
34181 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
34182 func_append_quoted ()\
34183 {\
34184 \ func_quote_for_eval "${2}"\
34185 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
34186 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
34187 && mv -f "$cfgfile.tmp" "$cfgfile" \
34188 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34189 test 0 -eq $? || _lt_function_replace_fail=:
34190
34191
34192 # Save a `func_append' function call where possible by direct use of '+='
34193 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
34194 && mv -f "$cfgfile.tmp" "$cfgfile" \
34195 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34196 test 0 -eq $? || _lt_function_replace_fail=:
34197 else
34198 # Save a `func_append' function call even when '+=' is not available
34199 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
34200 && mv -f "$cfgfile.tmp" "$cfgfile" \
34201 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34202 test 0 -eq $? || _lt_function_replace_fail=:
34203 fi
34204
34205 if test x"$_lt_function_replace_fail" = x":"; then
34206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
34207 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
34208 fi
34209
34210
34211 mv -f "$cfgfile" "$ofile" ||
34212 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34213 chmod +x "$ofile"
34214
34215 ;;
34216
34217 esac
34218 done # for ac_tag
34219
34220
34221 as_fn_exit 0
34222 _ACEOF
34223 ac_clean_files=$ac_clean_files_save
34224
34225 test $ac_write_fail = 0 ||
34226 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34227
34228
34229 # configure is writing to config.log, and then calls config.status.
34230 # config.status does its own redirection, appending to config.log.
34231 # Unfortunately, on DOS this fails, as config.log is still kept open
34232 # by configure, so config.status won't be able to write to it; its
34233 # output is simply discarded. So we exec the FD to /dev/null,
34234 # effectively closing config.log, so it can be properly (re)opened and
34235 # appended to by config.status. When coming back to configure, we
34236 # need to make the FD available again.
34237 if test "$no_create" != yes; then
34238 ac_cs_success=:
34239 ac_config_status_args=
34240 test "$silent" = yes &&
34241 ac_config_status_args="$ac_config_status_args --quiet"
34242 exec 5>/dev/null
34243 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34244 exec 5>>config.log
34245 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34246 # would make configure fail if this is the last instruction.
34247 $ac_cs_success || as_fn_exit 1
34248 fi
34249 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34251 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34252 fi
34253