]> git.proxmox.com Git - mirror_zfs-debian.git/blob - configure
Imported Upstream version 0.6.4.2
[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.4.2.
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.4.2'
571 PACKAGE_STRING='zfs 0.6.4.2'
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_UNUSED_BUT_SET_VARIABLE
649 ZFS_CONFIG
650 TARGET_ASM_DIR
651 ALIEN_VERSION
652 ALIEN
653 HAVE_ALIEN
654 DPKGBUILD_VERSION
655 DPKGBUILD
656 HAVE_DPKGBUILD
657 DPKG_VERSION
658 DPKG
659 HAVE_DPKG
660 SRPM_DEFINE_COMMON
661 SRPM_DEFINE_DKMS
662 SRPM_DEFINE_KMOD
663 SRPM_DEFINE_UTIL
664 RPM_DEFINE_COMMON
665 RPM_DEFINE_DKMS
666 RPM_DEFINE_KMOD
667 RPM_DEFINE_UTIL
668 RPM_SPEC_DIR
669 RPMBUILD_VERSION
670 RPMBUILD
671 HAVE_RPMBUILD
672 RPM_VERSION
673 RPM
674 HAVE_RPM
675 DEFAULT_INIT_SCRIPT
676 DEFAULT_INIT_DIR
677 DEFAULT_PACKAGE
678 VENDOR
679 am__fastdepCCAS_FALSE
680 am__fastdepCCAS_TRUE
681 CCASDEPMODE
682 CCASFLAGS
683 CCAS
684 CPP
685 OTOOL64
686 OTOOL
687 LIPO
688 NMEDIT
689 DSYMUTIL
690 MANIFEST_TOOL
691 RANLIB
692 ac_ct_AR
693 AR
694 DLLTOOL
695 OBJDUMP
696 LN_S
697 NM
698 ac_ct_DUMPBIN
699 DUMPBIN
700 LD
701 FGREP
702 EGREP
703 GREP
704 SED
705 LIBTOOL
706 am__fastdepCC_FALSE
707 am__fastdepCC_TRUE
708 CCDEPMODE
709 am__nodep
710 AMDEPBACKSLASH
711 AMDEP_FALSE
712 AMDEP_TRUE
713 am__quote
714 am__include
715 DEPDIR
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
722 CC
723 am__untar
724 am__tar
725 AMTAR
726 am__leading_dot
727 SET_MAKE
728 mkdir_p
729 MKDIR_P
730 INSTALL_STRIP_PROGRAM
731 STRIP
732 install_sh
733 MAKEINFO
734 AUTOHEADER
735 AUTOMAKE
736 AUTOCONF
737 ACLOCAL
738 VERSION
739 PACKAGE
740 CYGPATH_W
741 am__isrc
742 INSTALL_DATA
743 INSTALL_SCRIPT
744 INSTALL_PROGRAM
745 AM_BACKSLASH
746 AM_DEFAULT_VERBOSITY
747 AM_DEFAULT_V
748 AM_V
749 MAINT
750 MAINTAINER_MODE_FALSE
751 MAINTAINER_MODE_TRUE
752 target_os
753 target_vendor
754 target_cpu
755 target
756 host_os
757 host_vendor
758 host_cpu
759 host
760 build_os
761 build_vendor
762 build_cpu
763 build
764 ZFS_META_LT_AGE
765 ZFS_META_LT_REVISION
766 ZFS_META_LT_CURRENT
767 ZFS_META_AUTHOR
768 ZFS_META_DATA
769 ZFS_META_ALIAS
770 ZFS_META_LICENSE
771 RELEASE
772 ZFS_META_RELEASE
773 ZFS_META_VERSION
774 ZFS_META_NAME
775 AWK
776 target_alias
777 host_alias
778 build_alias
779 LIBS
780 ECHO_T
781 ECHO_N
782 ECHO_C
783 DEFS
784 mandir
785 localedir
786 libdir
787 psdir
788 pdfdir
789 dvidir
790 htmldir
791 infodir
792 docdir
793 oldincludedir
794 includedir
795 localstatedir
796 sharedstatedir
797 sysconfdir
798 datadir
799 datarootdir
800 libexecdir
801 sbindir
802 bindir
803 program_transform_name
804 prefix
805 exec_prefix
806 PACKAGE_URL
807 PACKAGE_BUGREPORT
808 PACKAGE_STRING
809 PACKAGE_VERSION
810 PACKAGE_TARNAME
811 PACKAGE_NAME
812 PATH_SEPARATOR
813 SHELL'
814 ac_subst_files=''
815 ac_user_opts='
816 enable_option_checking
817 enable_maintainer_mode
818 enable_silent_rules
819 enable_dependency_tracking
820 enable_shared
821 enable_static
822 with_pic
823 enable_fast_install
824 with_gnu_ld
825 with_sysroot
826 enable_libtool_lock
827 with_spec
828 with_config
829 enable_linux_builtin
830 with_linux
831 with_linux_obj
832 with_spl
833 with_spl_obj
834 with_spl_timeout
835 with_mounthelperdir
836 with_udevdir
837 with_udevruledir
838 enable_systemd
839 with_systemdunitdir
840 with_systemdpresetdir
841 with_systemdmodulesloaddir
842 enable_sysvinit
843 with_dracutdir
844 with_blkid
845 enable_debug
846 enable_debug_dmu_tx
847 '
848 ac_precious_vars='build_alias
849 host_alias
850 target_alias
851 CC
852 CFLAGS
853 LDFLAGS
854 LIBS
855 CPPFLAGS
856 CPP
857 CCAS
858 CCASFLAGS'
859
860
861 # Initialize some variables set by options.
862 ac_init_help=
863 ac_init_version=false
864 ac_unrecognized_opts=
865 ac_unrecognized_sep=
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
868 cache_file=/dev/null
869 exec_prefix=NONE
870 no_create=
871 no_recursion=
872 prefix=NONE
873 program_prefix=NONE
874 program_suffix=NONE
875 program_transform_name=s,x,x,
876 silent=
877 site=
878 srcdir=
879 verbose=
880 x_includes=NONE
881 x_libraries=NONE
882
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir='${exec_prefix}/bin'
890 sbindir='${exec_prefix}/sbin'
891 libexecdir='${exec_prefix}/libexec'
892 datarootdir='${prefix}/share'
893 datadir='${datarootdir}'
894 sysconfdir='${prefix}/etc'
895 sharedstatedir='${prefix}/com'
896 localstatedir='${prefix}/var'
897 includedir='${prefix}/include'
898 oldincludedir='/usr/include'
899 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
900 infodir='${datarootdir}/info'
901 htmldir='${docdir}'
902 dvidir='${docdir}'
903 pdfdir='${docdir}'
904 psdir='${docdir}'
905 libdir='${exec_prefix}/lib'
906 localedir='${datarootdir}/locale'
907 mandir='${datarootdir}/man'
908
909 ac_prev=
910 ac_dashdash=
911 for ac_option
912 do
913 # If the previous option needs an argument, assign it.
914 if test -n "$ac_prev"; then
915 eval $ac_prev=\$ac_option
916 ac_prev=
917 continue
918 fi
919
920 case $ac_option in
921 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922 *=) ac_optarg= ;;
923 *) ac_optarg=yes ;;
924 esac
925
926 # Accept the important Cygnus configure options, so we can diagnose typos.
927
928 case $ac_dashdash$ac_option in
929 --)
930 ac_dashdash=yes ;;
931
932 -bindir | --bindir | --bindi | --bind | --bin | --bi)
933 ac_prev=bindir ;;
934 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
935 bindir=$ac_optarg ;;
936
937 -build | --build | --buil | --bui | --bu)
938 ac_prev=build_alias ;;
939 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
940 build_alias=$ac_optarg ;;
941
942 -cache-file | --cache-file | --cache-fil | --cache-fi \
943 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
944 ac_prev=cache_file ;;
945 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
946 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
947 cache_file=$ac_optarg ;;
948
949 --config-cache | -C)
950 cache_file=config.cache ;;
951
952 -datadir | --datadir | --datadi | --datad)
953 ac_prev=datadir ;;
954 -datadir=* | --datadir=* | --datadi=* | --datad=*)
955 datadir=$ac_optarg ;;
956
957 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
958 | --dataroo | --dataro | --datar)
959 ac_prev=datarootdir ;;
960 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
961 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
962 datarootdir=$ac_optarg ;;
963
964 -disable-* | --disable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: $ac_useropt"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
972 *"
973 "enable_$ac_useropt"
974 "*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=no ;;
979
980 -docdir | --docdir | --docdi | --doc | --do)
981 ac_prev=docdir ;;
982 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983 docdir=$ac_optarg ;;
984
985 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986 ac_prev=dvidir ;;
987 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988 dvidir=$ac_optarg ;;
989
990 -enable-* | --enable-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 as_fn_error $? "invalid feature name: $ac_useropt"
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999 "enable_$ac_useropt"
1000 "*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=\$ac_optarg ;;
1005
1006 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008 | --exec | --exe | --ex)
1009 ac_prev=exec_prefix ;;
1010 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012 | --exec=* | --exe=* | --ex=*)
1013 exec_prefix=$ac_optarg ;;
1014
1015 -gas | --gas | --ga | --g)
1016 # Obsolete; use --with-gas.
1017 with_gas=yes ;;
1018
1019 -help | --help | --hel | --he | -h)
1020 ac_init_help=long ;;
1021 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022 ac_init_help=recursive ;;
1023 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024 ac_init_help=short ;;
1025
1026 -host | --host | --hos | --ho)
1027 ac_prev=host_alias ;;
1028 -host=* | --host=* | --hos=* | --ho=*)
1029 host_alias=$ac_optarg ;;
1030
1031 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032 ac_prev=htmldir ;;
1033 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034 | --ht=*)
1035 htmldir=$ac_optarg ;;
1036
1037 -includedir | --includedir | --includedi | --included | --include \
1038 | --includ | --inclu | --incl | --inc)
1039 ac_prev=includedir ;;
1040 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041 | --includ=* | --inclu=* | --incl=* | --inc=*)
1042 includedir=$ac_optarg ;;
1043
1044 -infodir | --infodir | --infodi | --infod | --info | --inf)
1045 ac_prev=infodir ;;
1046 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047 infodir=$ac_optarg ;;
1048
1049 -libdir | --libdir | --libdi | --libd)
1050 ac_prev=libdir ;;
1051 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052 libdir=$ac_optarg ;;
1053
1054 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055 | --libexe | --libex | --libe)
1056 ac_prev=libexecdir ;;
1057 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058 | --libexe=* | --libex=* | --libe=*)
1059 libexecdir=$ac_optarg ;;
1060
1061 -localedir | --localedir | --localedi | --localed | --locale)
1062 ac_prev=localedir ;;
1063 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064 localedir=$ac_optarg ;;
1065
1066 -localstatedir | --localstatedir | --localstatedi | --localstated \
1067 | --localstate | --localstat | --localsta | --localst | --locals)
1068 ac_prev=localstatedir ;;
1069 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071 localstatedir=$ac_optarg ;;
1072
1073 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074 ac_prev=mandir ;;
1075 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076 mandir=$ac_optarg ;;
1077
1078 -nfp | --nfp | --nf)
1079 # Obsolete; use --without-fp.
1080 with_fp=no ;;
1081
1082 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083 | --no-cr | --no-c | -n)
1084 no_create=yes ;;
1085
1086 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088 no_recursion=yes ;;
1089
1090 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092 | --oldin | --oldi | --old | --ol | --o)
1093 ac_prev=oldincludedir ;;
1094 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097 oldincludedir=$ac_optarg ;;
1098
1099 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100 ac_prev=prefix ;;
1101 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102 prefix=$ac_optarg ;;
1103
1104 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105 | --program-pre | --program-pr | --program-p)
1106 ac_prev=program_prefix ;;
1107 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109 program_prefix=$ac_optarg ;;
1110
1111 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112 | --program-suf | --program-su | --program-s)
1113 ac_prev=program_suffix ;;
1114 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116 program_suffix=$ac_optarg ;;
1117
1118 -program-transform-name | --program-transform-name \
1119 | --program-transform-nam | --program-transform-na \
1120 | --program-transform-n | --program-transform- \
1121 | --program-transform | --program-transfor \
1122 | --program-transfo | --program-transf \
1123 | --program-trans | --program-tran \
1124 | --progr-tra | --program-tr | --program-t)
1125 ac_prev=program_transform_name ;;
1126 -program-transform-name=* | --program-transform-name=* \
1127 | --program-transform-nam=* | --program-transform-na=* \
1128 | --program-transform-n=* | --program-transform-=* \
1129 | --program-transform=* | --program-transfor=* \
1130 | --program-transfo=* | --program-transf=* \
1131 | --program-trans=* | --program-tran=* \
1132 | --progr-tra=* | --program-tr=* | --program-t=*)
1133 program_transform_name=$ac_optarg ;;
1134
1135 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136 ac_prev=pdfdir ;;
1137 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138 pdfdir=$ac_optarg ;;
1139
1140 -psdir | --psdir | --psdi | --psd | --ps)
1141 ac_prev=psdir ;;
1142 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143 psdir=$ac_optarg ;;
1144
1145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146 | -silent | --silent | --silen | --sile | --sil)
1147 silent=yes ;;
1148
1149 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 ac_prev=sbindir ;;
1151 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 | --sbi=* | --sb=*)
1153 sbindir=$ac_optarg ;;
1154
1155 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157 | --sharedst | --shareds | --shared | --share | --shar \
1158 | --sha | --sh)
1159 ac_prev=sharedstatedir ;;
1160 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 | --sha=* | --sh=*)
1164 sharedstatedir=$ac_optarg ;;
1165
1166 -site | --site | --sit)
1167 ac_prev=site ;;
1168 -site=* | --site=* | --sit=*)
1169 site=$ac_optarg ;;
1170
1171 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 ac_prev=srcdir ;;
1173 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174 srcdir=$ac_optarg ;;
1175
1176 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177 | --syscon | --sysco | --sysc | --sys | --sy)
1178 ac_prev=sysconfdir ;;
1179 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181 sysconfdir=$ac_optarg ;;
1182
1183 -target | --target | --targe | --targ | --tar | --ta | --t)
1184 ac_prev=target_alias ;;
1185 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186 target_alias=$ac_optarg ;;
1187
1188 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189 verbose=yes ;;
1190
1191 -version | --version | --versio | --versi | --vers | -V)
1192 ac_init_version=: ;;
1193
1194 -with-* | --with-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error $? "invalid package name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=\$ac_optarg ;;
1209
1210 -without-* | --without-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 as_fn_error $? "invalid package name: $ac_useropt"
1215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1218 *"
1219 "with_$ac_useropt"
1220 "*) ;;
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1223 esac
1224 eval with_$ac_useropt=no ;;
1225
1226 --x)
1227 # Obsolete; use --with-x.
1228 with_x=yes ;;
1229
1230 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231 | --x-incl | --x-inc | --x-in | --x-i)
1232 ac_prev=x_includes ;;
1233 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1235 x_includes=$ac_optarg ;;
1236
1237 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239 ac_prev=x_libraries ;;
1240 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1242 x_libraries=$ac_optarg ;;
1243
1244 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1245 Try \`$0 --help' for more information"
1246 ;;
1247
1248 *=*)
1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1250 # Reject names that are not valid shell variable names.
1251 case $ac_envvar in #(
1252 '' | [0-9]* | *[!_$as_cr_alnum]* )
1253 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1254 esac
1255 eval $ac_envvar=\$ac_optarg
1256 export $ac_envvar ;;
1257
1258 *)
1259 # FIXME: should be removed in autoconf 3.0.
1260 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1263 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1264 ;;
1265
1266 esac
1267 done
1268
1269 if test -n "$ac_prev"; then
1270 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1271 as_fn_error $? "missing argument to $ac_option"
1272 fi
1273
1274 if test -n "$ac_unrecognized_opts"; then
1275 case $enable_option_checking in
1276 no) ;;
1277 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1278 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1279 esac
1280 fi
1281
1282 # Check all directory arguments for consistency.
1283 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
1287 do
1288 eval ac_val=\$$ac_var
1289 # Remove trailing slashes.
1290 case $ac_val in
1291 */ )
1292 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1293 eval $ac_var=\$ac_val;;
1294 esac
1295 # Be sure to have absolute directory names.
1296 case $ac_val in
1297 [\\/$]* | ?:[\\/]* ) continue;;
1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 esac
1300 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1301 done
1302
1303 # There might be people who depend on the old broken behavior: `$host'
1304 # used to hold the argument of --host etc.
1305 # FIXME: To remove some day.
1306 build=$build_alias
1307 host=$host_alias
1308 target=$target_alias
1309
1310 # FIXME: To remove some day.
1311 if test "x$host_alias" != x; then
1312 if test "x$build_alias" = x; then
1313 cross_compiling=maybe
1314 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1315 If a cross compiler is detected then cross compile mode will be used" >&2
1316 elif test "x$build_alias" != "x$host_alias"; then
1317 cross_compiling=yes
1318 fi
1319 fi
1320
1321 ac_tool_prefix=
1322 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323
1324 test "$silent" = yes && exec 6>/dev/null
1325
1326
1327 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328 ac_ls_di=`ls -di .` &&
1329 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330 as_fn_error $? "working directory cannot be determined"
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332 as_fn_error $? "pwd does not report name of working directory"
1333
1334
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337 ac_srcdir_defaulted=yes
1338 # Try the directory containing this script, then the parent directory.
1339 ac_confdir=`$as_dirname -- "$as_myself" ||
1340 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341 X"$as_myself" : 'X\(//\)[^/]' \| \
1342 X"$as_myself" : 'X\(//\)$' \| \
1343 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1344 $as_echo X"$as_myself" |
1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)[^/].*/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\/\)$/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\).*/{
1358 s//\1/
1359 q
1360 }
1361 s/.*/./; q'`
1362 srcdir=$ac_confdir
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 srcdir=..
1365 fi
1366 else
1367 ac_srcdir_defaulted=no
1368 fi
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1372 fi
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 ac_abs_confdir=`(
1375 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1376 pwd)`
1377 # When building in place, set srcdir=.
1378 if test "$ac_abs_confdir" = "$ac_pwd"; then
1379 srcdir=.
1380 fi
1381 # Remove unnecessary trailing slashes from srcdir.
1382 # Double slashes in file names in object file debugging info
1383 # mess up M-x gdb in Emacs.
1384 case $srcdir in
1385 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386 esac
1387 for ac_var in $ac_precious_vars; do
1388 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_env_${ac_var}_value=\$${ac_var}
1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 done
1393
1394 #
1395 # Report the --help message.
1396 #
1397 if test "$ac_init_help" = "long"; then
1398 # Omit some internal or obsolete options to make the list less imposing.
1399 # This message is too long to be a string in the A/UX 3.1 sh.
1400 cat <<_ACEOF
1401 \`configure' configures zfs 0.6.4.2 to adapt to many kinds of systems.
1402
1403 Usage: $0 [OPTION]... [VAR=VALUE]...
1404
1405 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406 VAR=VALUE. See below for descriptions of some of the useful variables.
1407
1408 Defaults for the options are specified in brackets.
1409
1410 Configuration:
1411 -h, --help display this help and exit
1412 --help=short display options specific to this package
1413 --help=recursive display the short help of all the included packages
1414 -V, --version display version information and exit
1415 -q, --quiet, --silent do not print \`checking ...' messages
1416 --cache-file=FILE cache test results in FILE [disabled]
1417 -C, --config-cache alias for \`--cache-file=config.cache'
1418 -n, --no-create do not create output files
1419 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1420
1421 Installation directories:
1422 --prefix=PREFIX install architecture-independent files in PREFIX
1423 [$ac_default_prefix]
1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1425 [PREFIX]
1426
1427 By default, \`make install' will install all the files in
1428 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1429 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430 for instance \`--prefix=\$HOME'.
1431
1432 For better control, use the options below.
1433
1434 Fine tuning of the installation directories:
1435 --bindir=DIR user executables [EPREFIX/bin]
1436 --sbindir=DIR system admin executables [EPREFIX/sbin]
1437 --libexecdir=DIR program executables [EPREFIX/libexec]
1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1441 --libdir=DIR object code libraries [EPREFIX/lib]
1442 --includedir=DIR C header files [PREFIX/include]
1443 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1444 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1445 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1446 --infodir=DIR info documentation [DATAROOTDIR/info]
1447 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1448 --mandir=DIR man documentation [DATAROOTDIR/man]
1449 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1450 --htmldir=DIR html documentation [DOCDIR]
1451 --dvidir=DIR dvi documentation [DOCDIR]
1452 --pdfdir=DIR pdf documentation [DOCDIR]
1453 --psdir=DIR ps documentation [DOCDIR]
1454 _ACEOF
1455
1456 cat <<\_ACEOF
1457
1458 Program names:
1459 --program-prefix=PREFIX prepend PREFIX to installed program names
1460 --program-suffix=SUFFIX append SUFFIX to installed program names
1461 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1462
1463 System types:
1464 --build=BUILD configure for building on BUILD [guessed]
1465 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466 --target=TARGET configure for building compilers for TARGET [HOST]
1467 _ACEOF
1468 fi
1469
1470 if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1472 short | recursive ) echo "Configuration of zfs 0.6.4.2:";;
1473 esac
1474 cat <<\_ACEOF
1475
1476 Optional Features:
1477 --disable-option-checking ignore unrecognized --enable/--with options
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --enable-maintainer-mode enable make rules and dependencies not useful
1481 (and sometimes confusing) to the casual installer
1482 --enable-silent-rules less verbose build output (undo: `make V=1')
1483 --disable-silent-rules verbose build output (undo: `make V=0')
1484 --disable-dependency-tracking speeds up one-time build
1485 --enable-dependency-tracking do not reject slow dependency extractors
1486 --enable-shared[=PKGS] build shared libraries [default=yes]
1487 --enable-static[=PKGS] build static libraries [default=yes]
1488 --enable-fast-install[=PKGS]
1489 optimize for fast installation [default=yes]
1490 --disable-libtool-lock avoid locking (might break parallel builds)
1491 --enable-linux-builtin Configure for builtin in-tree kernel modules
1492 [default=no]
1493 --enable-systemd install systemd unit/preset files [[default: yes]]
1494 --enable-sysvinit install SysV init scripts [default: yes]
1495 --enable-debug Enable generic debug support [default=no]
1496 --enable-debug-dmu-tx Enable dmu tx validation [default=no]
1497
1498 Optional Packages:
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1502 both]
1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1504 --with-sysroot=DIR Search for dependent libraries within DIR
1505 (or the compiler's sysroot if not specified).
1506 --with-spec=SPEC Spec files 'generic|redhat'
1507 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1508 --with-linux=PATH Path to kernel source
1509 --with-linux-obj=PATH Path to kernel build objects
1510 --with-spl=PATH Path to spl source
1511 --with-spl-obj=PATH Path to spl build objects
1512 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1513 --with-mounthelperdir=DIR
1514 install mount.zfs in dir [[/sbin]]
1515 --with-udevdir=DIR install udev helpers [default=check]
1516 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
1517 --with-systemdunitdir=DIR
1518 install systemd unit files in dir
1519 [[/usr/lib/systemd/system]]
1520 --with-systemdpresetdir=DIR
1521 install systemd preset files in dir
1522 [[/usr/lib/systemd/system-preset]]
1523 --with-systemdmodulesloaddir=DIR
1524 install systemd module load files into dir
1525 [[/usr/lib/modules-load.d]]
1526 --with-dracutdir=DIR install dracut helpers [default=check]
1527 --with-blkid support blkid caching [default=check]
1528
1529 Some influential environment variables:
1530 CC C compiler command
1531 CFLAGS C compiler flags
1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1533 nonstandard directory <lib dir>
1534 LIBS libraries to pass to the linker, e.g. -l<library>
1535 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1536 you have headers in a nonstandard directory <include dir>
1537 CPP C preprocessor
1538 CCAS assembler compiler command (defaults to CC)
1539 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1540
1541 Use these variables to override the choices made by `configure' or to help
1542 it to find libraries and programs with nonstandard names/locations.
1543
1544 Report bugs to the package provider.
1545 _ACEOF
1546 ac_status=$?
1547 fi
1548
1549 if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554 continue
1555 ac_builddir=.
1556
1557 case "$ac_dir" in
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *)
1560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561 # A ".." for each directory in $ac_dir_suffix.
1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 esac ;;
1567 esac
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1572
1573 case $srcdir in
1574 .) # We are building in place.
1575 ac_srcdir=.
1576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
1579 ac_srcdir=$srcdir$ac_dir_suffix;
1580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1582 *) # Relative name.
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 esac
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588
1589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure" --help=recursive
1597 else
1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 fi || ac_status=$?
1600 cd "$ac_pwd" || { ac_status=$?; break; }
1601 done
1602 fi
1603
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1606 cat <<\_ACEOF
1607 zfs configure 0.6.4.2
1608 generated by GNU Autoconf 2.68
1609
1610 Copyright (C) 2010 Free Software Foundation, Inc.
1611 This configure script is free software; the Free Software Foundation
1612 gives unlimited permission to copy, distribute and modify it.
1613 _ACEOF
1614 exit
1615 fi
1616
1617 ## ------------------------ ##
1618 ## Autoconf initialization. ##
1619 ## ------------------------ ##
1620
1621 # ac_fn_c_try_compile LINENO
1622 # --------------------------
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_compile ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext
1628 if { { ac_try="$ac_compile"
1629 case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_compile") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1641 fi
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest.$ac_objext; then :
1647 ac_retval=0
1648 else
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1651
1652 ac_retval=1
1653 fi
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1656
1657 } # ac_fn_c_try_compile
1658
1659 # ac_fn_c_try_link LINENO
1660 # -----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_link ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 rm -f conftest.$ac_objext conftest$ac_exeext
1666 if { { ac_try="$ac_link"
1667 case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>conftest.err
1674 ac_status=$?
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1679 fi
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest$ac_exeext && {
1685 test "$cross_compiling" = yes ||
1686 $as_test_x conftest$ac_exeext
1687 }; then :
1688 ac_retval=0
1689 else
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1692
1693 ac_retval=1
1694 fi
1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697 # interfere with the next link command; also delete a directory that is
1698 # left behind by Apple's compiler. We do this before executing the actions.
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1702
1703 } # ac_fn_c_try_link
1704
1705 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1706 # -------------------------------------------------------
1707 # Tests whether HEADER exists and can be compiled using the include files in
1708 # INCLUDES, setting the cache variable VAR accordingly.
1709 ac_fn_c_check_header_compile ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715 $as_echo_n "(cached) " >&6
1716 else
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1719 $4
1720 #include <$2>
1721 _ACEOF
1722 if ac_fn_c_try_compile "$LINENO"; then :
1723 eval "$3=yes"
1724 else
1725 eval "$3=no"
1726 fi
1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728 fi
1729 eval ac_res=\$$3
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 $as_echo "$ac_res" >&6; }
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733
1734 } # ac_fn_c_check_header_compile
1735
1736 # ac_fn_c_try_cpp LINENO
1737 # ----------------------
1738 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1739 ac_fn_c_try_cpp ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_cpp conftest.$ac_ext"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } > conftest.i && {
1758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 }; then :
1761 ac_retval=0
1762 else
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=1
1767 fi
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1770
1771 } # ac_fn_c_try_cpp
1772
1773 # ac_fn_c_try_run LINENO
1774 # ----------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776 # that executables *can* be run.
1777 ac_fn_c_try_run ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 if { { ac_try="$ac_link"
1781 case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>&5
1788 ac_status=$?
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1791 { { case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_try") 2>&5
1798 ac_status=$?
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; }; }; then :
1801 ac_retval=0
1802 else
1803 $as_echo "$as_me: program exited with status $ac_status" >&5
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_retval=$ac_status
1808 fi
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1812
1813 } # ac_fn_c_try_run
1814
1815 # ac_fn_c_check_func LINENO FUNC VAR
1816 # ----------------------------------
1817 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1818 ac_fn_c_check_func ()
1819 {
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \${$3+:} false; then :
1824 $as_echo_n "(cached) " >&6
1825 else
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1830 #define $2 innocuous_$2
1831
1832 /* System header to define __stub macros and hopefully few prototypes,
1833 which can conflict with char $2 (); below.
1834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1835 <limits.h> exists even on freestanding compilers. */
1836
1837 #ifdef __STDC__
1838 # include <limits.h>
1839 #else
1840 # include <assert.h>
1841 #endif
1842
1843 #undef $2
1844
1845 /* Override any GCC internal prototype to avoid an error.
1846 Use char because int might match the return type of a GCC
1847 builtin and then its argument prototype would still apply. */
1848 #ifdef __cplusplus
1849 extern "C"
1850 #endif
1851 char $2 ();
1852 /* The GNU C library defines this for functions which it implements
1853 to always fail with ENOSYS. Some functions are actually named
1854 something starting with __ and the normal name is an alias. */
1855 #if defined __stub_$2 || defined __stub___$2
1856 choke me
1857 #endif
1858
1859 int
1860 main ()
1861 {
1862 return $2 ();
1863 ;
1864 return 0;
1865 }
1866 _ACEOF
1867 if ac_fn_c_try_link "$LINENO"; then :
1868 eval "$3=yes"
1869 else
1870 eval "$3=no"
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext \
1873 conftest$ac_exeext conftest.$ac_ext
1874 fi
1875 eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879
1880 } # ac_fn_c_check_func
1881
1882 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1883 # -------------------------------------------------------
1884 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1885 # the include files in INCLUDES and setting the cache variable VAR
1886 # accordingly.
1887 ac_fn_c_check_header_mongrel ()
1888 {
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if eval \${$3+:} false; then :
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892 $as_echo_n "checking for $2... " >&6; }
1893 if eval \${$3+:} false; then :
1894 $as_echo_n "(cached) " >&6
1895 fi
1896 eval ac_res=\$$3
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 else
1900 # Is the header compilable?
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1902 $as_echo_n "checking $2 usability... " >&6; }
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 $4
1906 #include <$2>
1907 _ACEOF
1908 if ac_fn_c_try_compile "$LINENO"; then :
1909 ac_header_compiler=yes
1910 else
1911 ac_header_compiler=no
1912 fi
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1915 $as_echo "$ac_header_compiler" >&6; }
1916
1917 # Is the header present?
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1919 $as_echo_n "checking $2 presence... " >&6; }
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 #include <$2>
1923 _ACEOF
1924 if ac_fn_c_try_cpp "$LINENO"; then :
1925 ac_header_preproc=yes
1926 else
1927 ac_header_preproc=no
1928 fi
1929 rm -f conftest.err conftest.i conftest.$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1931 $as_echo "$ac_header_preproc" >&6; }
1932
1933 # So? What about this header?
1934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1935 yes:no: )
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1937 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1939 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1940 ;;
1941 no:yes:* )
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1943 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1945 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1947 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1949 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1951 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1952 ;;
1953 esac
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if eval \${$3+:} false; then :
1957 $as_echo_n "(cached) " >&6
1958 else
1959 eval "$3=\$ac_header_compiler"
1960 fi
1961 eval ac_res=\$$3
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964 fi
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966
1967 } # ac_fn_c_check_header_mongrel
1968 cat >config.log <<_ACEOF
1969 This file contains any messages produced by compilers while
1970 running configure, to aid debugging if configure makes a mistake.
1971
1972 It was created by zfs $as_me 0.6.4.2, which was
1973 generated by GNU Autoconf 2.68. Invocation command line was
1974
1975 $ $0 $@
1976
1977 _ACEOF
1978 exec 5>>config.log
1979 {
1980 cat <<_ASUNAME
1981 ## --------- ##
1982 ## Platform. ##
1983 ## --------- ##
1984
1985 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1986 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1987 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1988 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1989 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1990
1991 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1992 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1993
1994 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1995 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1996 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1997 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1998 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1999 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2000 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2001
2002 _ASUNAME
2003
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007 IFS=$as_save_IFS
2008 test -z "$as_dir" && as_dir=.
2009 $as_echo "PATH: $as_dir"
2010 done
2011 IFS=$as_save_IFS
2012
2013 } >&5
2014
2015 cat >&5 <<_ACEOF
2016
2017
2018 ## ----------- ##
2019 ## Core tests. ##
2020 ## ----------- ##
2021
2022 _ACEOF
2023
2024
2025 # Keep a trace of the command line.
2026 # Strip out --no-create and --no-recursion so they do not pile up.
2027 # Strip out --silent because we don't want to record it for future runs.
2028 # Also quote any args containing shell meta-characters.
2029 # Make two passes to allow for proper duplicate-argument suppression.
2030 ac_configure_args=
2031 ac_configure_args0=
2032 ac_configure_args1=
2033 ac_must_keep_next=false
2034 for ac_pass in 1 2
2035 do
2036 for ac_arg
2037 do
2038 case $ac_arg in
2039 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2041 | -silent | --silent | --silen | --sile | --sil)
2042 continue ;;
2043 *\'*)
2044 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2045 esac
2046 case $ac_pass in
2047 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2048 2)
2049 as_fn_append ac_configure_args1 " '$ac_arg'"
2050 if test $ac_must_keep_next = true; then
2051 ac_must_keep_next=false # Got value, back to normal.
2052 else
2053 case $ac_arg in
2054 *=* | --config-cache | -C | -disable-* | --disable-* \
2055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2057 | -with-* | --with-* | -without-* | --without-* | --x)
2058 case "$ac_configure_args0 " in
2059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2060 esac
2061 ;;
2062 -* ) ac_must_keep_next=true ;;
2063 esac
2064 fi
2065 as_fn_append ac_configure_args " '$ac_arg'"
2066 ;;
2067 esac
2068 done
2069 done
2070 { ac_configure_args0=; unset ac_configure_args0;}
2071 { ac_configure_args1=; unset ac_configure_args1;}
2072
2073 # When interrupted or exit'd, cleanup temporary files, and complete
2074 # config.log. We remove comments because anyway the quotes in there
2075 # would cause problems or look ugly.
2076 # WARNING: Use '\'' to represent an apostrophe within the trap.
2077 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2078 trap 'exit_status=$?
2079 # Save into config.log some information that might help in debugging.
2080 {
2081 echo
2082
2083 $as_echo "## ---------------- ##
2084 ## Cache variables. ##
2085 ## ---------------- ##"
2086 echo
2087 # The following way of writing the cache mishandles newlines in values,
2088 (
2089 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2090 eval ac_val=\$$ac_var
2091 case $ac_val in #(
2092 *${as_nl}*)
2093 case $ac_var in #(
2094 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2095 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2096 esac
2097 case $ac_var in #(
2098 _ | IFS | as_nl) ;; #(
2099 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2100 *) { eval $ac_var=; unset $ac_var;} ;;
2101 esac ;;
2102 esac
2103 done
2104 (set) 2>&1 |
2105 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2106 *${as_nl}ac_space=\ *)
2107 sed -n \
2108 "s/'\''/'\''\\\\'\'''\''/g;
2109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2110 ;; #(
2111 *)
2112 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2113 ;;
2114 esac |
2115 sort
2116 )
2117 echo
2118
2119 $as_echo "## ----------------- ##
2120 ## Output variables. ##
2121 ## ----------------- ##"
2122 echo
2123 for ac_var in $ac_subst_vars
2124 do
2125 eval ac_val=\$$ac_var
2126 case $ac_val in
2127 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2128 esac
2129 $as_echo "$ac_var='\''$ac_val'\''"
2130 done | sort
2131 echo
2132
2133 if test -n "$ac_subst_files"; then
2134 $as_echo "## ------------------- ##
2135 ## File substitutions. ##
2136 ## ------------------- ##"
2137 echo
2138 for ac_var in $ac_subst_files
2139 do
2140 eval ac_val=\$$ac_var
2141 case $ac_val in
2142 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2143 esac
2144 $as_echo "$ac_var='\''$ac_val'\''"
2145 done | sort
2146 echo
2147 fi
2148
2149 if test -s confdefs.h; then
2150 $as_echo "## ----------- ##
2151 ## confdefs.h. ##
2152 ## ----------- ##"
2153 echo
2154 cat confdefs.h
2155 echo
2156 fi
2157 test "$ac_signal" != 0 &&
2158 $as_echo "$as_me: caught signal $ac_signal"
2159 $as_echo "$as_me: exit $exit_status"
2160 } >&5
2161 rm -f core *.core core.conftest.* &&
2162 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2163 exit $exit_status
2164 ' 0
2165 for ac_signal in 1 2 13 15; do
2166 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2167 done
2168 ac_signal=0
2169
2170 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2171 rm -f -r conftest* confdefs.h
2172
2173 $as_echo "/* confdefs.h */" > confdefs.h
2174
2175 # Predefined preprocessor variables.
2176
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_NAME "$PACKAGE_NAME"
2179 _ACEOF
2180
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2183 _ACEOF
2184
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2187 _ACEOF
2188
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_STRING "$PACKAGE_STRING"
2191 _ACEOF
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2195 _ACEOF
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_URL "$PACKAGE_URL"
2199 _ACEOF
2200
2201
2202 # Let the site file select an alternate cache file if it wants to.
2203 # Prefer an explicitly selected file to automatically selected ones.
2204 ac_site_file1=NONE
2205 ac_site_file2=NONE
2206 if test -n "$CONFIG_SITE"; then
2207 # We do not want a PATH search for config.site.
2208 case $CONFIG_SITE in #((
2209 -*) ac_site_file1=./$CONFIG_SITE;;
2210 */*) ac_site_file1=$CONFIG_SITE;;
2211 *) ac_site_file1=./$CONFIG_SITE;;
2212 esac
2213 elif test "x$prefix" != xNONE; then
2214 ac_site_file1=$prefix/share/config.site
2215 ac_site_file2=$prefix/etc/config.site
2216 else
2217 ac_site_file1=$ac_default_prefix/share/config.site
2218 ac_site_file2=$ac_default_prefix/etc/config.site
2219 fi
2220 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2221 do
2222 test "x$ac_site_file" = xNONE && continue
2223 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2225 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2226 sed 's/^/| /' "$ac_site_file" >&5
2227 . "$ac_site_file" \
2228 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2230 as_fn_error $? "failed to load site script $ac_site_file
2231 See \`config.log' for more details" "$LINENO" 5; }
2232 fi
2233 done
2234
2235 if test -r "$cache_file"; then
2236 # Some versions of bash will fail to source /dev/null (special files
2237 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2238 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2240 $as_echo "$as_me: loading cache $cache_file" >&6;}
2241 case $cache_file in
2242 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2243 *) . "./$cache_file";;
2244 esac
2245 fi
2246 else
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2248 $as_echo "$as_me: creating cache $cache_file" >&6;}
2249 >$cache_file
2250 fi
2251
2252 # Check that the precious variables saved in the cache have kept the same
2253 # value.
2254 ac_cache_corrupted=false
2255 for ac_var in $ac_precious_vars; do
2256 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2257 eval ac_new_set=\$ac_env_${ac_var}_set
2258 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2259 eval ac_new_val=\$ac_env_${ac_var}_value
2260 case $ac_old_set,$ac_new_set in
2261 set,)
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2263 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2264 ac_cache_corrupted=: ;;
2265 ,set)
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2267 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2268 ac_cache_corrupted=: ;;
2269 ,);;
2270 *)
2271 if test "x$ac_old_val" != "x$ac_new_val"; then
2272 # differences in whitespace do not lead to failure.
2273 ac_old_val_w=`echo x $ac_old_val`
2274 ac_new_val_w=`echo x $ac_new_val`
2275 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2277 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2278 ac_cache_corrupted=:
2279 else
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2281 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2282 eval $ac_var=\$ac_old_val
2283 fi
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2285 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2287 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2288 fi;;
2289 esac
2290 # Pass precious variables to config.status.
2291 if test "$ac_new_set" = set; then
2292 case $ac_new_val in
2293 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2294 *) ac_arg=$ac_var=$ac_new_val ;;
2295 esac
2296 case " $ac_configure_args " in
2297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2298 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2299 esac
2300 fi
2301 done
2302 if $ac_cache_corrupted; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2306 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2307 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2308 fi
2309 ## -------------------- ##
2310 ## Main body of script. ##
2311 ## -------------------- ##
2312
2313 ac_ext=c
2314 ac_cpp='$CPP $CPPFLAGS'
2315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2318
2319
2320 ac_ext=c
2321 ac_cpp='$CPP $CPPFLAGS'
2322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2325
2326
2327
2328
2329
2330 for ac_prog in gawk mawk nawk awk
2331 do
2332 # Extract the first word of "$ac_prog", so it can be a program name with args.
2333 set dummy $ac_prog; ac_word=$2
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2335 $as_echo_n "checking for $ac_word... " >&6; }
2336 if ${ac_cv_prog_AWK+:} false; then :
2337 $as_echo_n "(cached) " >&6
2338 else
2339 if test -n "$AWK"; then
2340 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2344 do
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_AWK="$ac_prog"
2350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 2
2352 fi
2353 done
2354 done
2355 IFS=$as_save_IFS
2356
2357 fi
2358 fi
2359 AWK=$ac_cv_prog_AWK
2360 if test -n "$AWK"; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2362 $as_echo "$AWK" >&6; }
2363 else
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2365 $as_echo "no" >&6; }
2366 fi
2367
2368
2369 test -n "$AWK" && break
2370 done
2371
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2373 $as_echo_n "checking metadata... " >&6; }
2374
2375 META="$srcdir/META"
2376 _zfs_ac_meta_type="none"
2377 if test -f "$META"; then
2378 _zfs_ac_meta_type="META file"
2379
2380 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2381 if test -n "$ZFS_META_NAME"; then
2382
2383 cat >>confdefs.h <<_ACEOF
2384 #define ZFS_META_NAME "$ZFS_META_NAME"
2385 _ACEOF
2386
2387
2388 fi
2389
2390 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2391 if test -n "$ZFS_META_VERSION"; then
2392
2393 cat >>confdefs.h <<_ACEOF
2394 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2395 _ACEOF
2396
2397
2398 fi
2399
2400 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2401 if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2402 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2403 _alias=$(git describe --match=${_match} 2>/dev/null)
2404 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2405 if test -n "${_release}"; then
2406 ZFS_META_RELEASE=${_release}
2407 _zfs_ac_meta_type="git describe"
2408 fi
2409 fi
2410
2411 if test -n "$ZFS_META_RELEASE"; then
2412
2413 cat >>confdefs.h <<_ACEOF
2414 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2415 _ACEOF
2416
2417
2418
2419 RELEASE="$ZFS_META_RELEASE"
2420
2421 fi
2422
2423 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2424 if test -n "$ZFS_META_LICENSE"; then
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2428 _ACEOF
2429
2430
2431 fi
2432
2433 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2434 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2435 test -n "$ZFS_META_RELEASE" &&
2436 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2437
2438 cat >>confdefs.h <<_ACEOF
2439 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2440 _ACEOF
2441
2442
2443 fi
2444
2445 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2446 if test -n "$ZFS_META_DATA"; then
2447
2448 cat >>confdefs.h <<_ACEOF
2449 #define ZFS_META_DATA "$ZFS_META_DATA"
2450 _ACEOF
2451
2452
2453 fi
2454
2455 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2456 if test -n "$ZFS_META_AUTHOR"; then
2457
2458 cat >>confdefs.h <<_ACEOF
2459 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2460 _ACEOF
2461
2462
2463 fi
2464
2465
2466 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2467 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2468 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2469 if test -n "$ZFS_META_LT_CURRENT" \
2470 -o -n "$ZFS_META_LT_REVISION" \
2471 -o -n "$ZFS_META_LT_AGE"; then
2472 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2473 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2474 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2475
2476 cat >>confdefs.h <<_ACEOF
2477 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2478 _ACEOF
2479
2480
2481 cat >>confdefs.h <<_ACEOF
2482 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2483 _ACEOF
2484
2485
2486 cat >>confdefs.h <<_ACEOF
2487 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2488 _ACEOF
2489
2490
2491
2492
2493 fi
2494 fi
2495
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2497 $as_echo "$_zfs_ac_meta_type" >&6; }
2498
2499
2500 ac_aux_dir=
2501 for ac_dir in config "$srcdir"/config; do
2502 if test -f "$ac_dir/install-sh"; then
2503 ac_aux_dir=$ac_dir
2504 ac_install_sh="$ac_aux_dir/install-sh -c"
2505 break
2506 elif test -f "$ac_dir/install.sh"; then
2507 ac_aux_dir=$ac_dir
2508 ac_install_sh="$ac_aux_dir/install.sh -c"
2509 break
2510 elif test -f "$ac_dir/shtool"; then
2511 ac_aux_dir=$ac_dir
2512 ac_install_sh="$ac_aux_dir/shtool install -c"
2513 break
2514 fi
2515 done
2516 if test -z "$ac_aux_dir"; then
2517 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2518 fi
2519
2520 # These three variables are undocumented and unsupported,
2521 # and are intended to be withdrawn in a future Autoconf release.
2522 # They can cause serious problems if a builder's source tree is in a directory
2523 # whose full name contains unusual characters.
2524 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2525 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2526 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2527
2528
2529
2530 # Make sure we can run config.sub.
2531 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2532 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2533
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2535 $as_echo_n "checking build system type... " >&6; }
2536 if ${ac_cv_build+:} false; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 ac_build_alias=$build_alias
2540 test "x$ac_build_alias" = x &&
2541 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2542 test "x$ac_build_alias" = x &&
2543 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2544 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2545 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2546
2547 fi
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2549 $as_echo "$ac_cv_build" >&6; }
2550 case $ac_cv_build in
2551 *-*-*) ;;
2552 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2553 esac
2554 build=$ac_cv_build
2555 ac_save_IFS=$IFS; IFS='-'
2556 set x $ac_cv_build
2557 shift
2558 build_cpu=$1
2559 build_vendor=$2
2560 shift; shift
2561 # Remember, the first character of IFS is used to create $*,
2562 # except with old shells:
2563 build_os=$*
2564 IFS=$ac_save_IFS
2565 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2566
2567
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2569 $as_echo_n "checking host system type... " >&6; }
2570 if ${ac_cv_host+:} false; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 if test "x$host_alias" = x; then
2574 ac_cv_host=$ac_cv_build
2575 else
2576 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2577 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2578 fi
2579
2580 fi
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2582 $as_echo "$ac_cv_host" >&6; }
2583 case $ac_cv_host in
2584 *-*-*) ;;
2585 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2586 esac
2587 host=$ac_cv_host
2588 ac_save_IFS=$IFS; IFS='-'
2589 set x $ac_cv_host
2590 shift
2591 host_cpu=$1
2592 host_vendor=$2
2593 shift; shift
2594 # Remember, the first character of IFS is used to create $*,
2595 # except with old shells:
2596 host_os=$*
2597 IFS=$ac_save_IFS
2598 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2599
2600
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2602 $as_echo_n "checking target system type... " >&6; }
2603 if ${ac_cv_target+:} false; then :
2604 $as_echo_n "(cached) " >&6
2605 else
2606 if test "x$target_alias" = x; then
2607 ac_cv_target=$ac_cv_host
2608 else
2609 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2610 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2611 fi
2612
2613 fi
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2615 $as_echo "$ac_cv_target" >&6; }
2616 case $ac_cv_target in
2617 *-*-*) ;;
2618 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2619 esac
2620 target=$ac_cv_target
2621 ac_save_IFS=$IFS; IFS='-'
2622 set x $ac_cv_target
2623 shift
2624 target_cpu=$1
2625 target_vendor=$2
2626 shift; shift
2627 # Remember, the first character of IFS is used to create $*,
2628 # except with old shells:
2629 target_os=$*
2630 IFS=$ac_save_IFS
2631 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2632
2633
2634 # The aliases save the names the user supplied, while $host etc.
2635 # will get canonicalized.
2636 test -n "$target_alias" &&
2637 test "$program_prefix$program_suffix$program_transform_name" = \
2638 NONENONEs,x,x, &&
2639 program_prefix=${target_alias}-
2640
2641
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2643 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2644 # Check whether --enable-maintainer-mode was given.
2645 if test "${enable_maintainer_mode+set}" = set; then :
2646 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2647 else
2648 USE_MAINTAINER_MODE=no
2649 fi
2650
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2652 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2653 if test $USE_MAINTAINER_MODE = yes; then
2654 MAINTAINER_MODE_TRUE=
2655 MAINTAINER_MODE_FALSE='#'
2656 else
2657 MAINTAINER_MODE_TRUE='#'
2658 MAINTAINER_MODE_FALSE=
2659 fi
2660
2661 MAINT=$MAINTAINER_MODE_TRUE
2662
2663
2664 # Check whether --enable-silent-rules was given.
2665 if test "${enable_silent_rules+set}" = set; then :
2666 enableval=$enable_silent_rules;
2667 fi
2668
2669 case $enable_silent_rules in
2670 yes) AM_DEFAULT_VERBOSITY=0;;
2671 no) AM_DEFAULT_VERBOSITY=1;;
2672 *) AM_DEFAULT_VERBOSITY=0;;
2673 esac
2674 am_make=${MAKE-make}
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2676 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2677 if ${am_cv_make_support_nested_variables+:} false; then :
2678 $as_echo_n "(cached) " >&6
2679 else
2680 if $as_echo 'TRUE=$(BAR$(V))
2681 BAR0=false
2682 BAR1=true
2683 V=1
2684 am__doit:
2685 @$(TRUE)
2686 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2687 am_cv_make_support_nested_variables=yes
2688 else
2689 am_cv_make_support_nested_variables=no
2690 fi
2691 fi
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2693 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2694 if test $am_cv_make_support_nested_variables = yes; then
2695 AM_V='$(V)'
2696 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2697 else
2698 AM_V=$AM_DEFAULT_VERBOSITY
2699 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2700 fi
2701 AM_BACKSLASH='\'
2702
2703 am__api_version='1.11'
2704
2705 # Find a good install program. We prefer a C program (faster),
2706 # so one script is as good as another. But avoid the broken or
2707 # incompatible versions:
2708 # SysV /etc/install, /usr/sbin/install
2709 # SunOS /usr/etc/install
2710 # IRIX /sbin/install
2711 # AIX /bin/install
2712 # AmigaOS /C/install, which installs bootblocks on floppy discs
2713 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2716 # OS/2's system install, which has a completely different semantic
2717 # ./install, which can be erroneously created by make from ./install.sh.
2718 # Reject install programs that cannot install multiple files.
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2720 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2721 if test -z "$INSTALL"; then
2722 if ${ac_cv_path_install+:} false; then :
2723 $as_echo_n "(cached) " >&6
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2727 do
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 # Account for people who put trailing slashes in PATH elements.
2731 case $as_dir/ in #((
2732 ./ | .// | /[cC]/* | \
2733 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2734 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2735 /usr/ucb/* ) ;;
2736 *)
2737 # OSF1 and SCO ODT 3.0 have their own names for install.
2738 # Don't use installbsd from OSF since it installs stuff as root
2739 # by default.
2740 for ac_prog in ginstall scoinst install; do
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2743 if test $ac_prog = install &&
2744 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2745 # AIX install. It has an incompatible calling convention.
2746 :
2747 elif test $ac_prog = install &&
2748 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2749 # program-specific install script used by HP pwplus--don't use.
2750 :
2751 else
2752 rm -rf conftest.one conftest.two conftest.dir
2753 echo one > conftest.one
2754 echo two > conftest.two
2755 mkdir conftest.dir
2756 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2757 test -s conftest.one && test -s conftest.two &&
2758 test -s conftest.dir/conftest.one &&
2759 test -s conftest.dir/conftest.two
2760 then
2761 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2762 break 3
2763 fi
2764 fi
2765 fi
2766 done
2767 done
2768 ;;
2769 esac
2770
2771 done
2772 IFS=$as_save_IFS
2773
2774 rm -rf conftest.one conftest.two conftest.dir
2775
2776 fi
2777 if test "${ac_cv_path_install+set}" = set; then
2778 INSTALL=$ac_cv_path_install
2779 else
2780 # As a last resort, use the slow shell script. Don't cache a
2781 # value for INSTALL within a source directory, because that will
2782 # break other packages using the cache if that directory is
2783 # removed, or if the value is a relative name.
2784 INSTALL=$ac_install_sh
2785 fi
2786 fi
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2788 $as_echo "$INSTALL" >&6; }
2789
2790 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2791 # It thinks the first close brace ends the variable substitution.
2792 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2793
2794 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2795
2796 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2797
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2799 $as_echo_n "checking whether build environment is sane... " >&6; }
2800 # Just in case
2801 sleep 1
2802 echo timestamp > conftest.file
2803 # Reject unsafe characters in $srcdir or the absolute working directory
2804 # name. Accept space and tab only in the latter.
2805 am_lf='
2806 '
2807 case `pwd` in
2808 *[\\\"\#\$\&\'\`$am_lf]*)
2809 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2810 esac
2811 case $srcdir in
2812 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2813 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2814 esac
2815
2816 # Do `set' in a subshell so we don't clobber the current shell's
2817 # arguments. Must try -L first in case configure is actually a
2818 # symlink; some systems play weird games with the mod time of symlinks
2819 # (eg FreeBSD returns the mod time of the symlink's containing
2820 # directory).
2821 if (
2822 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2823 if test "$*" = "X"; then
2824 # -L didn't work.
2825 set X `ls -t "$srcdir/configure" conftest.file`
2826 fi
2827 rm -f conftest.file
2828 if test "$*" != "X $srcdir/configure conftest.file" \
2829 && test "$*" != "X conftest.file $srcdir/configure"; then
2830
2831 # If neither matched, then we have a broken ls. This can happen
2832 # if, for instance, CONFIG_SHELL is bash and it inherits a
2833 # broken ls alias from the environment. This has actually
2834 # happened. Such a system could not be considered "sane".
2835 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2836 alias in your environment" "$LINENO" 5
2837 fi
2838
2839 test "$2" = conftest.file
2840 )
2841 then
2842 # Ok.
2843 :
2844 else
2845 as_fn_error $? "newly created file is older than distributed files!
2846 Check your system clock" "$LINENO" 5
2847 fi
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2849 $as_echo "yes" >&6; }
2850 test "$program_prefix" != NONE &&
2851 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2852 # Use a double $ so make ignores it.
2853 test "$program_suffix" != NONE &&
2854 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2855 # Double any \ or $.
2856 # By default was `s,x,x', remove it if useless.
2857 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2858 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2859
2860 # expand $ac_aux_dir to an absolute path
2861 am_aux_dir=`cd $ac_aux_dir && pwd`
2862
2863 if test x"${MISSING+set}" != xset; then
2864 case $am_aux_dir in
2865 *\ * | *\ *)
2866 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2867 *)
2868 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2869 esac
2870 fi
2871 # Use eval to expand $SHELL
2872 if eval "$MISSING --run true"; then
2873 am_missing_run="$MISSING --run "
2874 else
2875 am_missing_run=
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2877 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2878 fi
2879
2880 if test x"${install_sh}" != xset; then
2881 case $am_aux_dir in
2882 *\ * | *\ *)
2883 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2884 *)
2885 install_sh="\${SHELL} $am_aux_dir/install-sh"
2886 esac
2887 fi
2888
2889 # Installed binaries are usually stripped using `strip' when the user
2890 # run `make install-strip'. However `strip' might not be the right
2891 # tool to use in cross-compilation environments, therefore Automake
2892 # will honor the `STRIP' environment variable to overrule this program.
2893 if test "$cross_compiling" != no; then
2894 if test -n "$ac_tool_prefix"; then
2895 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2896 set dummy ${ac_tool_prefix}strip; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_STRIP+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test -n "$STRIP"; then
2903 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2915 fi
2916 done
2917 done
2918 IFS=$as_save_IFS
2919
2920 fi
2921 fi
2922 STRIP=$ac_cv_prog_STRIP
2923 if test -n "$STRIP"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2925 $as_echo "$STRIP" >&6; }
2926 else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2929 fi
2930
2931
2932 fi
2933 if test -z "$ac_cv_prog_STRIP"; then
2934 ac_ct_STRIP=$STRIP
2935 # Extract the first word of "strip", so it can be a program name with args.
2936 set dummy strip; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2940 $as_echo_n "(cached) " >&6
2941 else
2942 if test -n "$ac_ct_STRIP"; then
2943 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 ac_cv_prog_ac_ct_STRIP="strip"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
2955 fi
2956 done
2957 done
2958 IFS=$as_save_IFS
2959
2960 fi
2961 fi
2962 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2963 if test -n "$ac_ct_STRIP"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2965 $as_echo "$ac_ct_STRIP" >&6; }
2966 else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2969 fi
2970
2971 if test "x$ac_ct_STRIP" = x; then
2972 STRIP=":"
2973 else
2974 case $cross_compiling:$ac_tool_warned in
2975 yes:)
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2978 ac_tool_warned=yes ;;
2979 esac
2980 STRIP=$ac_ct_STRIP
2981 fi
2982 else
2983 STRIP="$ac_cv_prog_STRIP"
2984 fi
2985
2986 fi
2987 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2988
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2990 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2991 if test -z "$MKDIR_P"; then
2992 if ${ac_cv_path_mkdir+:} false; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2997 do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_prog in mkdir gmkdir; do
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3003 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3004 'mkdir (GNU coreutils) '* | \
3005 'mkdir (coreutils) '* | \
3006 'mkdir (fileutils) '4.1*)
3007 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3008 break 3;;
3009 esac
3010 done
3011 done
3012 done
3013 IFS=$as_save_IFS
3014
3015 fi
3016
3017 test -d ./--version && rmdir ./--version
3018 if test "${ac_cv_path_mkdir+set}" = set; then
3019 MKDIR_P="$ac_cv_path_mkdir -p"
3020 else
3021 # As a last resort, use the slow shell script. Don't cache a
3022 # value for MKDIR_P within a source directory, because that will
3023 # break other packages using the cache if that directory is
3024 # removed, or if the value is a relative name.
3025 MKDIR_P="$ac_install_sh -d"
3026 fi
3027 fi
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3029 $as_echo "$MKDIR_P" >&6; }
3030
3031 mkdir_p="$MKDIR_P"
3032 case $mkdir_p in
3033 [\\/$]* | ?:[\\/]*) ;;
3034 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3035 esac
3036
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3038 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3039 set x ${MAKE-make}
3040 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3041 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3042 $as_echo_n "(cached) " >&6
3043 else
3044 cat >conftest.make <<\_ACEOF
3045 SHELL = /bin/sh
3046 all:
3047 @echo '@@@%%%=$(MAKE)=@@@%%%'
3048 _ACEOF
3049 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3050 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3051 *@@@%%%=?*=@@@%%%*)
3052 eval ac_cv_prog_make_${ac_make}_set=yes;;
3053 *)
3054 eval ac_cv_prog_make_${ac_make}_set=no;;
3055 esac
3056 rm -f conftest.make
3057 fi
3058 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3060 $as_echo "yes" >&6; }
3061 SET_MAKE=
3062 else
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3065 SET_MAKE="MAKE=${MAKE-make}"
3066 fi
3067
3068 rm -rf .tst 2>/dev/null
3069 mkdir .tst 2>/dev/null
3070 if test -d .tst; then
3071 am__leading_dot=.
3072 else
3073 am__leading_dot=_
3074 fi
3075 rmdir .tst 2>/dev/null
3076
3077 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3078 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3079 # is not polluted with repeated "-I."
3080 am__isrc=' -I$(srcdir)'
3081 # test to see if srcdir already configured
3082 if test -f $srcdir/config.status; then
3083 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3084 fi
3085 fi
3086
3087 # test whether we have cygpath
3088 if test -z "$CYGPATH_W"; then
3089 if (cygpath --version) >/dev/null 2>/dev/null; then
3090 CYGPATH_W='cygpath -w'
3091 else
3092 CYGPATH_W=echo
3093 fi
3094 fi
3095
3096
3097 # Define the identity of the package.
3098 PACKAGE='zfs'
3099 VERSION='0.6.4.2'
3100
3101
3102 cat >>confdefs.h <<_ACEOF
3103 #define PACKAGE "$PACKAGE"
3104 _ACEOF
3105
3106
3107 cat >>confdefs.h <<_ACEOF
3108 #define VERSION "$VERSION"
3109 _ACEOF
3110
3111 # Some tools Automake needs.
3112
3113 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3114
3115
3116 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3117
3118
3119 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3120
3121
3122 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3123
3124
3125 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3126
3127 # We need awk for the "check" target. The system "awk" is bad on
3128 # some platforms.
3129 # Always define AMTAR for backward compatibility. Yes, it's still used
3130 # in the wild :-( We should find a proper way to deprecate it ...
3131 AMTAR='$${TAR-tar}'
3132
3133 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3134
3135
3136
3137
3138
3139 ac_config_headers="$ac_config_headers zfs_config.h"
3140
3141
3142
3143 ac_ext=c
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148 if test -n "$ac_tool_prefix"; then
3149 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3150 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if ${ac_cv_prog_CC+:} false; then :
3154 $as_echo_n "(cached) " >&6
3155 else
3156 if test -n "$CC"; then
3157 ac_cv_prog_CC="$CC" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3161 do
3162 IFS=$as_save_IFS
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 break 2
3169 fi
3170 done
3171 done
3172 IFS=$as_save_IFS
3173
3174 fi
3175 fi
3176 CC=$ac_cv_prog_CC
3177 if test -n "$CC"; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3179 $as_echo "$CC" >&6; }
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3183 fi
3184
3185
3186 fi
3187 if test -z "$ac_cv_prog_CC"; then
3188 ac_ct_CC=$CC
3189 # Extract the first word of "gcc", so it can be a program name with args.
3190 set dummy gcc; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3194 $as_echo_n "(cached) " >&6
3195 else
3196 if test -n "$ac_ct_CC"; then
3197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202 IFS=$as_save_IFS
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206 ac_cv_prog_ac_ct_CC="gcc"
3207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 break 2
3209 fi
3210 done
3211 done
3212 IFS=$as_save_IFS
3213
3214 fi
3215 fi
3216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3217 if test -n "$ac_ct_CC"; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3219 $as_echo "$ac_ct_CC" >&6; }
3220 else
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3223 fi
3224
3225 if test "x$ac_ct_CC" = x; then
3226 CC=""
3227 else
3228 case $cross_compiling:$ac_tool_warned in
3229 yes:)
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3232 ac_tool_warned=yes ;;
3233 esac
3234 CC=$ac_ct_CC
3235 fi
3236 else
3237 CC="$ac_cv_prog_CC"
3238 fi
3239
3240 if test -z "$CC"; then
3241 if test -n "$ac_tool_prefix"; then
3242 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3243 set dummy ${ac_tool_prefix}cc; ac_word=$2
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245 $as_echo_n "checking for $ac_word... " >&6; }
3246 if ${ac_cv_prog_CC+:} false; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 if test -n "$CC"; then
3250 ac_cv_prog_CC="$CC" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259 ac_cv_prog_CC="${ac_tool_prefix}cc"
3260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 break 2
3262 fi
3263 done
3264 done
3265 IFS=$as_save_IFS
3266
3267 fi
3268 fi
3269 CC=$ac_cv_prog_CC
3270 if test -n "$CC"; then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3272 $as_echo "$CC" >&6; }
3273 else
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3276 fi
3277
3278
3279 fi
3280 fi
3281 if test -z "$CC"; then
3282 # Extract the first word of "cc", so it can be a program name with args.
3283 set dummy cc; ac_word=$2
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if ${ac_cv_prog_CC+:} false; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 if test -n "$CC"; then
3290 ac_cv_prog_CC="$CC" # Let the user override the test.
3291 else
3292 ac_prog_rejected=no
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH
3295 do
3296 IFS=$as_save_IFS
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3301 ac_prog_rejected=yes
3302 continue
3303 fi
3304 ac_cv_prog_CC="cc"
3305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 break 2
3307 fi
3308 done
3309 done
3310 IFS=$as_save_IFS
3311
3312 if test $ac_prog_rejected = yes; then
3313 # We found a bogon in the path, so make sure we never use it.
3314 set dummy $ac_cv_prog_CC
3315 shift
3316 if test $# != 0; then
3317 # We chose a different compiler from the bogus one.
3318 # However, it has the same basename, so the bogon will be chosen
3319 # first if we set CC to just the basename; use the full file name.
3320 shift
3321 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3322 fi
3323 fi
3324 fi
3325 fi
3326 CC=$ac_cv_prog_CC
3327 if test -n "$CC"; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3329 $as_echo "$CC" >&6; }
3330 else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 fi
3334
3335
3336 fi
3337 if test -z "$CC"; then
3338 if test -n "$ac_tool_prefix"; then
3339 for ac_prog in cl.exe
3340 do
3341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344 $as_echo_n "checking for $ac_word... " >&6; }
3345 if ${ac_cv_prog_CC+:} false; then :
3346 $as_echo_n "(cached) " >&6
3347 else
3348 if test -n "$CC"; then
3349 ac_cv_prog_CC="$CC" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3353 do
3354 IFS=$as_save_IFS
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 break 2
3361 fi
3362 done
3363 done
3364 IFS=$as_save_IFS
3365
3366 fi
3367 fi
3368 CC=$ac_cv_prog_CC
3369 if test -n "$CC"; then
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3371 $as_echo "$CC" >&6; }
3372 else
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3375 fi
3376
3377
3378 test -n "$CC" && break
3379 done
3380 fi
3381 if test -z "$CC"; then
3382 ac_ct_CC=$CC
3383 for ac_prog in cl.exe
3384 do
3385 # Extract the first word of "$ac_prog", so it can be a program name with args.
3386 set dummy $ac_prog; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 if test -n "$ac_ct_CC"; then
3393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398 IFS=$as_save_IFS
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402 ac_cv_prog_ac_ct_CC="$ac_prog"
3403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 break 2
3405 fi
3406 done
3407 done
3408 IFS=$as_save_IFS
3409
3410 fi
3411 fi
3412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3413 if test -n "$ac_ct_CC"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3415 $as_echo "$ac_ct_CC" >&6; }
3416 else
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3419 fi
3420
3421
3422 test -n "$ac_ct_CC" && break
3423 done
3424
3425 if test "x$ac_ct_CC" = x; then
3426 CC=""
3427 else
3428 case $cross_compiling:$ac_tool_warned in
3429 yes:)
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3432 ac_tool_warned=yes ;;
3433 esac
3434 CC=$ac_ct_CC
3435 fi
3436 fi
3437
3438 fi
3439
3440
3441 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443 as_fn_error $? "no acceptable C compiler found in \$PATH
3444 See \`config.log' for more details" "$LINENO" 5; }
3445
3446 # Provide some information about the compiler.
3447 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3448 set X $ac_compile
3449 ac_compiler=$2
3450 for ac_option in --version -v -V -qversion; do
3451 { { ac_try="$ac_compiler $ac_option >&5"
3452 case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3455 esac
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3459 ac_status=$?
3460 if test -s conftest.err; then
3461 sed '10a\
3462 ... rest of stderr output deleted ...
3463 10q' conftest.err >conftest.er1
3464 cat conftest.er1 >&5
3465 fi
3466 rm -f conftest.er1 conftest.err
3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }
3469 done
3470
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3473
3474 int
3475 main ()
3476 {
3477
3478 ;
3479 return 0;
3480 }
3481 _ACEOF
3482 ac_clean_files_save=$ac_clean_files
3483 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3484 # Try to create an executable without -o first, disregard a.out.
3485 # It will help us diagnose broken compilers, and finding out an intuition
3486 # of exeext.
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3488 $as_echo_n "checking whether the C compiler works... " >&6; }
3489 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3490
3491 # The possible output files:
3492 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3493
3494 ac_rmfiles=
3495 for ac_file in $ac_files
3496 do
3497 case $ac_file in
3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3499 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3500 esac
3501 done
3502 rm -f $ac_rmfiles
3503
3504 if { { ac_try="$ac_link_default"
3505 case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508 esac
3509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510 $as_echo "$ac_try_echo"; } >&5
3511 (eval "$ac_link_default") 2>&5
3512 ac_status=$?
3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }; then :
3515 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3516 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3517 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3518 # so that the user can short-circuit this test for compilers unknown to
3519 # Autoconf.
3520 for ac_file in $ac_files ''
3521 do
3522 test -f "$ac_file" || continue
3523 case $ac_file in
3524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3525 ;;
3526 [ab].out )
3527 # We found the default executable, but exeext='' is most
3528 # certainly right.
3529 break;;
3530 *.* )
3531 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3532 then :; else
3533 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3534 fi
3535 # We set ac_cv_exeext here because the later test for it is not
3536 # safe: cross compilers may not add the suffix if given an `-o'
3537 # argument, so we may need to know it at that point already.
3538 # Even if this section looks crufty: it has the advantage of
3539 # actually working.
3540 break;;
3541 * )
3542 break;;
3543 esac
3544 done
3545 test "$ac_cv_exeext" = no && ac_cv_exeext=
3546
3547 else
3548 ac_file=''
3549 fi
3550 if test -z "$ac_file"; then :
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 $as_echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error 77 "C compiler cannot create executables
3559 See \`config.log' for more details" "$LINENO" 5; }
3560 else
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3562 $as_echo "yes" >&6; }
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3565 $as_echo_n "checking for C compiler default output file name... " >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3567 $as_echo "$ac_file" >&6; }
3568 ac_exeext=$ac_cv_exeext
3569
3570 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3571 ac_clean_files=$ac_clean_files_save
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3573 $as_echo_n "checking for suffix of executables... " >&6; }
3574 if { { ac_try="$ac_link"
3575 case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_link") 2>&5
3582 ac_status=$?
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }; then :
3585 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3586 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3587 # work properly (i.e., refer to `conftest.exe'), while it won't with
3588 # `rm'.
3589 for ac_file in conftest.exe conftest conftest.*; do
3590 test -f "$ac_file" || continue
3591 case $ac_file in
3592 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3593 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3594 break;;
3595 * ) break;;
3596 esac
3597 done
3598 else
3599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3602 See \`config.log' for more details" "$LINENO" 5; }
3603 fi
3604 rm -f conftest conftest$ac_cv_exeext
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3606 $as_echo "$ac_cv_exeext" >&6; }
3607
3608 rm -f conftest.$ac_ext
3609 EXEEXT=$ac_cv_exeext
3610 ac_exeext=$EXEEXT
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3613 #include <stdio.h>
3614 int
3615 main ()
3616 {
3617 FILE *f = fopen ("conftest.out", "w");
3618 return ferror (f) || fclose (f) != 0;
3619
3620 ;
3621 return 0;
3622 }
3623 _ACEOF
3624 ac_clean_files="$ac_clean_files conftest.out"
3625 # Check that the compiler produces executables we can run. If not, either
3626 # the compiler is broken, or we cross compile.
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3628 $as_echo_n "checking whether we are cross compiling... " >&6; }
3629 if test "$cross_compiling" != yes; then
3630 { { ac_try="$ac_link"
3631 case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3634 esac
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637 (eval "$ac_link") 2>&5
3638 ac_status=$?
3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640 test $ac_status = 0; }
3641 if { ac_try='./conftest$ac_cv_exeext'
3642 { { case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645 esac
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648 (eval "$ac_try") 2>&5
3649 ac_status=$?
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }; }; then
3652 cross_compiling=no
3653 else
3654 if test "$cross_compiling" = maybe; then
3655 cross_compiling=yes
3656 else
3657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3659 as_fn_error $? "cannot run C compiled programs.
3660 If you meant to cross compile, use \`--host'.
3661 See \`config.log' for more details" "$LINENO" 5; }
3662 fi
3663 fi
3664 fi
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3666 $as_echo "$cross_compiling" >&6; }
3667
3668 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3669 ac_clean_files=$ac_clean_files_save
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3671 $as_echo_n "checking for suffix of object files... " >&6; }
3672 if ${ac_cv_objext+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3677
3678 int
3679 main ()
3680 {
3681
3682 ;
3683 return 0;
3684 }
3685 _ACEOF
3686 rm -f conftest.o conftest.obj
3687 if { { ac_try="$ac_compile"
3688 case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691 esac
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 $as_echo "$ac_try_echo"; } >&5
3694 (eval "$ac_compile") 2>&5
3695 ac_status=$?
3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }; then :
3698 for ac_file in conftest.o conftest.obj conftest.*; do
3699 test -f "$ac_file" || continue;
3700 case $ac_file in
3701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3702 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3703 break;;
3704 esac
3705 done
3706 else
3707 $as_echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3709
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error $? "cannot compute suffix of object files: cannot compile
3713 See \`config.log' for more details" "$LINENO" 5; }
3714 fi
3715 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3716 fi
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3718 $as_echo "$ac_cv_objext" >&6; }
3719 OBJEXT=$ac_cv_objext
3720 ac_objext=$OBJEXT
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3722 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3723 if ${ac_cv_c_compiler_gnu+:} false; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728
3729 int
3730 main ()
3731 {
3732 #ifndef __GNUC__
3733 choke me
3734 #endif
3735
3736 ;
3737 return 0;
3738 }
3739 _ACEOF
3740 if ac_fn_c_try_compile "$LINENO"; then :
3741 ac_compiler_gnu=yes
3742 else
3743 ac_compiler_gnu=no
3744 fi
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3747
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3750 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3751 if test $ac_compiler_gnu = yes; then
3752 GCC=yes
3753 else
3754 GCC=
3755 fi
3756 ac_test_CFLAGS=${CFLAGS+set}
3757 ac_save_CFLAGS=$CFLAGS
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3759 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3760 if ${ac_cv_prog_cc_g+:} false; then :
3761 $as_echo_n "(cached) " >&6
3762 else
3763 ac_save_c_werror_flag=$ac_c_werror_flag
3764 ac_c_werror_flag=yes
3765 ac_cv_prog_cc_g=no
3766 CFLAGS="-g"
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3769
3770 int
3771 main ()
3772 {
3773
3774 ;
3775 return 0;
3776 }
3777 _ACEOF
3778 if ac_fn_c_try_compile "$LINENO"; then :
3779 ac_cv_prog_cc_g=yes
3780 else
3781 CFLAGS=""
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3784
3785 int
3786 main ()
3787 {
3788
3789 ;
3790 return 0;
3791 }
3792 _ACEOF
3793 if ac_fn_c_try_compile "$LINENO"; then :
3794
3795 else
3796 ac_c_werror_flag=$ac_save_c_werror_flag
3797 CFLAGS="-g"
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3800
3801 int
3802 main ()
3803 {
3804
3805 ;
3806 return 0;
3807 }
3808 _ACEOF
3809 if ac_fn_c_try_compile "$LINENO"; then :
3810 ac_cv_prog_cc_g=yes
3811 fi
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 fi
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 fi
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 ac_c_werror_flag=$ac_save_c_werror_flag
3818 fi
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3820 $as_echo "$ac_cv_prog_cc_g" >&6; }
3821 if test "$ac_test_CFLAGS" = set; then
3822 CFLAGS=$ac_save_CFLAGS
3823 elif test $ac_cv_prog_cc_g = yes; then
3824 if test "$GCC" = yes; then
3825 CFLAGS="-g -O2"
3826 else
3827 CFLAGS="-g"
3828 fi
3829 else
3830 if test "$GCC" = yes; then
3831 CFLAGS="-O2"
3832 else
3833 CFLAGS=
3834 fi
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3837 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3838 if ${ac_cv_prog_cc_c89+:} false; then :
3839 $as_echo_n "(cached) " >&6
3840 else
3841 ac_cv_prog_cc_c89=no
3842 ac_save_CC=$CC
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3845 #include <stdarg.h>
3846 #include <stdio.h>
3847 #include <sys/types.h>
3848 #include <sys/stat.h>
3849 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3850 struct buf { int x; };
3851 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3852 static char *e (p, i)
3853 char **p;
3854 int i;
3855 {
3856 return p[i];
3857 }
3858 static char *f (char * (*g) (char **, int), char **p, ...)
3859 {
3860 char *s;
3861 va_list v;
3862 va_start (v,p);
3863 s = g (p, va_arg (v,int));
3864 va_end (v);
3865 return s;
3866 }
3867
3868 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3869 function prototypes and stuff, but not '\xHH' hex character constants.
3870 These don't provoke an error unfortunately, instead are silently treated
3871 as 'x'. The following induces an error, until -std is added to get
3872 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3873 array size at least. It's necessary to write '\x00'==0 to get something
3874 that's true only with -std. */
3875 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3876
3877 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3878 inside strings and character constants. */
3879 #define FOO(x) 'x'
3880 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3881
3882 int test (int i, double x);
3883 struct s1 {int (*f) (int a);};
3884 struct s2 {int (*f) (double a);};
3885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3886 int argc;
3887 char **argv;
3888 int
3889 main ()
3890 {
3891 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3892 ;
3893 return 0;
3894 }
3895 _ACEOF
3896 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3897 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3898 do
3899 CC="$ac_save_CC $ac_arg"
3900 if ac_fn_c_try_compile "$LINENO"; then :
3901 ac_cv_prog_cc_c89=$ac_arg
3902 fi
3903 rm -f core conftest.err conftest.$ac_objext
3904 test "x$ac_cv_prog_cc_c89" != "xno" && break
3905 done
3906 rm -f conftest.$ac_ext
3907 CC=$ac_save_CC
3908
3909 fi
3910 # AC_CACHE_VAL
3911 case "x$ac_cv_prog_cc_c89" in
3912 x)
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3914 $as_echo "none needed" >&6; } ;;
3915 xno)
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3917 $as_echo "unsupported" >&6; } ;;
3918 *)
3919 CC="$CC $ac_cv_prog_cc_c89"
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3921 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3922 esac
3923 if test "x$ac_cv_prog_cc_c89" != xno; then :
3924
3925 fi
3926
3927 ac_ext=c
3928 ac_cpp='$CPP $CPPFLAGS'
3929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3932 DEPDIR="${am__leading_dot}deps"
3933
3934 ac_config_commands="$ac_config_commands depfiles"
3935
3936
3937 am_make=${MAKE-make}
3938 cat > confinc << 'END'
3939 am__doit:
3940 @echo this is the am__doit target
3941 .PHONY: am__doit
3942 END
3943 # If we don't find an include directive, just comment out the code.
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3945 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3946 am__include="#"
3947 am__quote=
3948 _am_result=none
3949 # First try GNU make style include.
3950 echo "include confinc" > confmf
3951 # Ignore all kinds of additional output from `make'.
3952 case `$am_make -s -f confmf 2> /dev/null` in #(
3953 *the\ am__doit\ target*)
3954 am__include=include
3955 am__quote=
3956 _am_result=GNU
3957 ;;
3958 esac
3959 # Now try BSD make style include.
3960 if test "$am__include" = "#"; then
3961 echo '.include "confinc"' > confmf
3962 case `$am_make -s -f confmf 2> /dev/null` in #(
3963 *the\ am__doit\ target*)
3964 am__include=.include
3965 am__quote="\""
3966 _am_result=BSD
3967 ;;
3968 esac
3969 fi
3970
3971
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3973 $as_echo "$_am_result" >&6; }
3974 rm -f confinc confmf
3975
3976 # Check whether --enable-dependency-tracking was given.
3977 if test "${enable_dependency_tracking+set}" = set; then :
3978 enableval=$enable_dependency_tracking;
3979 fi
3980
3981 if test "x$enable_dependency_tracking" != xno; then
3982 am_depcomp="$ac_aux_dir/depcomp"
3983 AMDEPBACKSLASH='\'
3984 am__nodep='_no'
3985 fi
3986 if test "x$enable_dependency_tracking" != xno; then
3987 AMDEP_TRUE=
3988 AMDEP_FALSE='#'
3989 else
3990 AMDEP_TRUE='#'
3991 AMDEP_FALSE=
3992 fi
3993
3994
3995
3996 depcc="$CC" am_compiler_list=
3997
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3999 $as_echo_n "checking dependency style of $depcc... " >&6; }
4000 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4004 # We make a subdir and do the tests there. Otherwise we can end up
4005 # making bogus files that we don't know about and never remove. For
4006 # instance it was reported that on HP-UX the gcc test will end up
4007 # making a dummy file named `D' -- because `-MD' means `put the output
4008 # in D'.
4009 rm -rf conftest.dir
4010 mkdir conftest.dir
4011 # Copy depcomp to subdir because otherwise we won't find it if we're
4012 # using a relative directory.
4013 cp "$am_depcomp" conftest.dir
4014 cd conftest.dir
4015 # We will build objects and dependencies in a subdirectory because
4016 # it helps to detect inapplicable dependency modes. For instance
4017 # both Tru64's cc and ICC support -MD to output dependencies as a
4018 # side effect of compilation, but ICC will put the dependencies in
4019 # the current directory while Tru64 will put them in the object
4020 # directory.
4021 mkdir sub
4022
4023 am_cv_CC_dependencies_compiler_type=none
4024 if test "$am_compiler_list" = ""; then
4025 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4026 fi
4027 am__universal=false
4028 case " $depcc " in #(
4029 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4030 esac
4031
4032 for depmode in $am_compiler_list; do
4033 # Setup a source with many dependencies, because some compilers
4034 # like to wrap large dependency lists on column 80 (with \), and
4035 # we should not choose a depcomp mode which is confused by this.
4036 #
4037 # We need to recreate these files for each test, as the compiler may
4038 # overwrite some of them when testing with obscure command lines.
4039 # This happens at least with the AIX C compiler.
4040 : > sub/conftest.c
4041 for i in 1 2 3 4 5 6; do
4042 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4043 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4044 # Solaris 8's {/usr,}/bin/sh.
4045 touch sub/conftst$i.h
4046 done
4047 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4048
4049 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4050 # mode. It turns out that the SunPro C++ compiler does not properly
4051 # handle `-M -o', and we need to detect this. Also, some Intel
4052 # versions had trouble with output in subdirs
4053 am__obj=sub/conftest.${OBJEXT-o}
4054 am__minus_obj="-o $am__obj"
4055 case $depmode in
4056 gcc)
4057 # This depmode causes a compiler race in universal mode.
4058 test "$am__universal" = false || continue
4059 ;;
4060 nosideeffect)
4061 # after this tag, mechanisms are not by side-effect, so they'll
4062 # only be used when explicitly requested
4063 if test "x$enable_dependency_tracking" = xyes; then
4064 continue
4065 else
4066 break
4067 fi
4068 ;;
4069 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4070 # This compiler won't grok `-c -o', but also, the minuso test has
4071 # not run yet. These depmodes are late enough in the game, and
4072 # so weak that their functioning should not be impacted.
4073 am__obj=conftest.${OBJEXT-o}
4074 am__minus_obj=
4075 ;;
4076 none) break ;;
4077 esac
4078 if depmode=$depmode \
4079 source=sub/conftest.c object=$am__obj \
4080 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4081 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4082 >/dev/null 2>conftest.err &&
4083 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4084 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4085 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4086 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4087 # icc doesn't choke on unknown options, it will just issue warnings
4088 # or remarks (even with -Werror). So we grep stderr for any message
4089 # that says an option was ignored or not supported.
4090 # When given -MP, icc 7.0 and 7.1 complain thusly:
4091 # icc: Command line warning: ignoring option '-M'; no argument required
4092 # The diagnosis changed in icc 8.0:
4093 # icc: Command line remark: option '-MP' not supported
4094 if (grep 'ignoring option' conftest.err ||
4095 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4096 am_cv_CC_dependencies_compiler_type=$depmode
4097 break
4098 fi
4099 fi
4100 done
4101
4102 cd ..
4103 rm -rf conftest.dir
4104 else
4105 am_cv_CC_dependencies_compiler_type=none
4106 fi
4107
4108 fi
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4110 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4111 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4112
4113 if
4114 test "x$enable_dependency_tracking" != xno \
4115 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4116 am__fastdepCC_TRUE=
4117 am__fastdepCC_FALSE='#'
4118 else
4119 am__fastdepCC_TRUE='#'
4120 am__fastdepCC_FALSE=
4121 fi
4122
4123
4124 case `pwd` in
4125 *\ * | *\ *)
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4127 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4128 esac
4129
4130
4131
4132 macro_version='2.4.2'
4133 macro_revision='1.3337'
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147 ltmain="$ac_aux_dir/ltmain.sh"
4148
4149 # Backslashify metacharacters that are still active within
4150 # double-quoted strings.
4151 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4152
4153 # Same as above, but do not quote variable references.
4154 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4155
4156 # Sed substitution to delay expansion of an escaped shell variable in a
4157 # double_quote_subst'ed string.
4158 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4159
4160 # Sed substitution to delay expansion of an escaped single quote.
4161 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4162
4163 # Sed substitution to avoid accidental globbing in evaled expressions
4164 no_glob_subst='s/\*/\\\*/g'
4165
4166 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4167 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4168 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4169
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4171 $as_echo_n "checking how to print strings... " >&6; }
4172 # Test print first, because it will be a builtin if present.
4173 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4174 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4175 ECHO='print -r --'
4176 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4177 ECHO='printf %s\n'
4178 else
4179 # Use this function as a fallback that always works.
4180 func_fallback_echo ()
4181 {
4182 eval 'cat <<_LTECHO_EOF
4183 $1
4184 _LTECHO_EOF'
4185 }
4186 ECHO='func_fallback_echo'
4187 fi
4188
4189 # func_echo_all arg...
4190 # Invoke $ECHO with all args, space-separated.
4191 func_echo_all ()
4192 {
4193 $ECHO ""
4194 }
4195
4196 case "$ECHO" in
4197 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4198 $as_echo "printf" >&6; } ;;
4199 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4200 $as_echo "print -r" >&6; } ;;
4201 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4202 $as_echo "cat" >&6; } ;;
4203 esac
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4219 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4220 if ${ac_cv_path_SED+:} false; then :
4221 $as_echo_n "(cached) " >&6
4222 else
4223 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4224 for ac_i in 1 2 3 4 5 6 7; do
4225 ac_script="$ac_script$as_nl$ac_script"
4226 done
4227 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4228 { ac_script=; unset ac_script;}
4229 if test -z "$SED"; then
4230 ac_path_SED_found=false
4231 # Loop through the user's path and test for each of PROGNAME-LIST
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4234 do
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_prog in sed gsed; do
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4240 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4241 # Check for GNU ac_path_SED and select it if it is found.
4242 # Check for GNU $ac_path_SED
4243 case `"$ac_path_SED" --version 2>&1` in
4244 *GNU*)
4245 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4246 *)
4247 ac_count=0
4248 $as_echo_n 0123456789 >"conftest.in"
4249 while :
4250 do
4251 cat "conftest.in" "conftest.in" >"conftest.tmp"
4252 mv "conftest.tmp" "conftest.in"
4253 cp "conftest.in" "conftest.nl"
4254 $as_echo '' >> "conftest.nl"
4255 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4257 as_fn_arith $ac_count + 1 && ac_count=$as_val
4258 if test $ac_count -gt ${ac_path_SED_max-0}; then
4259 # Best one so far, save it but keep looking for a better one
4260 ac_cv_path_SED="$ac_path_SED"
4261 ac_path_SED_max=$ac_count
4262 fi
4263 # 10*(2^10) chars as input seems more than enough
4264 test $ac_count -gt 10 && break
4265 done
4266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4267 esac
4268
4269 $ac_path_SED_found && break 3
4270 done
4271 done
4272 done
4273 IFS=$as_save_IFS
4274 if test -z "$ac_cv_path_SED"; then
4275 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4276 fi
4277 else
4278 ac_cv_path_SED=$SED
4279 fi
4280
4281 fi
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4283 $as_echo "$ac_cv_path_SED" >&6; }
4284 SED="$ac_cv_path_SED"
4285 rm -f conftest.sed
4286
4287 test -z "$SED" && SED=sed
4288 Xsed="$SED -e 1s/^X//"
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4301 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4302 if ${ac_cv_path_GREP+:} false; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 if test -z "$GREP"; then
4306 ac_path_GREP_found=false
4307 # Loop through the user's path and test for each of PROGNAME-LIST
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4310 do
4311 IFS=$as_save_IFS
4312 test -z "$as_dir" && as_dir=.
4313 for ac_prog in grep ggrep; do
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4316 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4317 # Check for GNU ac_path_GREP and select it if it is found.
4318 # Check for GNU $ac_path_GREP
4319 case `"$ac_path_GREP" --version 2>&1` in
4320 *GNU*)
4321 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4322 *)
4323 ac_count=0
4324 $as_echo_n 0123456789 >"conftest.in"
4325 while :
4326 do
4327 cat "conftest.in" "conftest.in" >"conftest.tmp"
4328 mv "conftest.tmp" "conftest.in"
4329 cp "conftest.in" "conftest.nl"
4330 $as_echo 'GREP' >> "conftest.nl"
4331 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4333 as_fn_arith $ac_count + 1 && ac_count=$as_val
4334 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4335 # Best one so far, save it but keep looking for a better one
4336 ac_cv_path_GREP="$ac_path_GREP"
4337 ac_path_GREP_max=$ac_count
4338 fi
4339 # 10*(2^10) chars as input seems more than enough
4340 test $ac_count -gt 10 && break
4341 done
4342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4343 esac
4344
4345 $ac_path_GREP_found && break 3
4346 done
4347 done
4348 done
4349 IFS=$as_save_IFS
4350 if test -z "$ac_cv_path_GREP"; then
4351 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4352 fi
4353 else
4354 ac_cv_path_GREP=$GREP
4355 fi
4356
4357 fi
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4359 $as_echo "$ac_cv_path_GREP" >&6; }
4360 GREP="$ac_cv_path_GREP"
4361
4362
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4364 $as_echo_n "checking for egrep... " >&6; }
4365 if ${ac_cv_path_EGREP+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4369 then ac_cv_path_EGREP="$GREP -E"
4370 else
4371 if test -z "$EGREP"; then
4372 ac_path_EGREP_found=false
4373 # Loop through the user's path and test for each of PROGNAME-LIST
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4376 do
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_prog in egrep; do
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4382 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4383 # Check for GNU ac_path_EGREP and select it if it is found.
4384 # Check for GNU $ac_path_EGREP
4385 case `"$ac_path_EGREP" --version 2>&1` in
4386 *GNU*)
4387 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4388 *)
4389 ac_count=0
4390 $as_echo_n 0123456789 >"conftest.in"
4391 while :
4392 do
4393 cat "conftest.in" "conftest.in" >"conftest.tmp"
4394 mv "conftest.tmp" "conftest.in"
4395 cp "conftest.in" "conftest.nl"
4396 $as_echo 'EGREP' >> "conftest.nl"
4397 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4398 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4399 as_fn_arith $ac_count + 1 && ac_count=$as_val
4400 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4401 # Best one so far, save it but keep looking for a better one
4402 ac_cv_path_EGREP="$ac_path_EGREP"
4403 ac_path_EGREP_max=$ac_count
4404 fi
4405 # 10*(2^10) chars as input seems more than enough
4406 test $ac_count -gt 10 && break
4407 done
4408 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4409 esac
4410
4411 $ac_path_EGREP_found && break 3
4412 done
4413 done
4414 done
4415 IFS=$as_save_IFS
4416 if test -z "$ac_cv_path_EGREP"; then
4417 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4418 fi
4419 else
4420 ac_cv_path_EGREP=$EGREP
4421 fi
4422
4423 fi
4424 fi
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4426 $as_echo "$ac_cv_path_EGREP" >&6; }
4427 EGREP="$ac_cv_path_EGREP"
4428
4429
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4431 $as_echo_n "checking for fgrep... " >&6; }
4432 if ${ac_cv_path_FGREP+:} false; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4436 then ac_cv_path_FGREP="$GREP -F"
4437 else
4438 if test -z "$FGREP"; then
4439 ac_path_FGREP_found=false
4440 # Loop through the user's path and test for each of PROGNAME-LIST
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4443 do
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
4446 for ac_prog in fgrep; do
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4449 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4450 # Check for GNU ac_path_FGREP and select it if it is found.
4451 # Check for GNU $ac_path_FGREP
4452 case `"$ac_path_FGREP" --version 2>&1` in
4453 *GNU*)
4454 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4455 *)
4456 ac_count=0
4457 $as_echo_n 0123456789 >"conftest.in"
4458 while :
4459 do
4460 cat "conftest.in" "conftest.in" >"conftest.tmp"
4461 mv "conftest.tmp" "conftest.in"
4462 cp "conftest.in" "conftest.nl"
4463 $as_echo 'FGREP' >> "conftest.nl"
4464 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4466 as_fn_arith $ac_count + 1 && ac_count=$as_val
4467 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4468 # Best one so far, save it but keep looking for a better one
4469 ac_cv_path_FGREP="$ac_path_FGREP"
4470 ac_path_FGREP_max=$ac_count
4471 fi
4472 # 10*(2^10) chars as input seems more than enough
4473 test $ac_count -gt 10 && break
4474 done
4475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4476 esac
4477
4478 $ac_path_FGREP_found && break 3
4479 done
4480 done
4481 done
4482 IFS=$as_save_IFS
4483 if test -z "$ac_cv_path_FGREP"; then
4484 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4485 fi
4486 else
4487 ac_cv_path_FGREP=$FGREP
4488 fi
4489
4490 fi
4491 fi
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4493 $as_echo "$ac_cv_path_FGREP" >&6; }
4494 FGREP="$ac_cv_path_FGREP"
4495
4496
4497 test -z "$GREP" && GREP=grep
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517 # Check whether --with-gnu-ld was given.
4518 if test "${with_gnu_ld+set}" = set; then :
4519 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4520 else
4521 with_gnu_ld=no
4522 fi
4523
4524 ac_prog=ld
4525 if test "$GCC" = yes; then
4526 # Check if gcc -print-prog-name=ld gives a path.
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4528 $as_echo_n "checking for ld used by $CC... " >&6; }
4529 case $host in
4530 *-*-mingw*)
4531 # gcc leaves a trailing carriage return which upsets mingw
4532 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4533 *)
4534 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4535 esac
4536 case $ac_prog in
4537 # Accept absolute paths.
4538 [\\/]* | ?:[\\/]*)
4539 re_direlt='/[^/][^/]*/\.\./'
4540 # Canonicalize the pathname of ld
4541 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4542 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4543 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4544 done
4545 test -z "$LD" && LD="$ac_prog"
4546 ;;
4547 "")
4548 # If it fails, then pretend we aren't using GCC.
4549 ac_prog=ld
4550 ;;
4551 *)
4552 # If it is relative, then search for the first ld in PATH.
4553 with_gnu_ld=unknown
4554 ;;
4555 esac
4556 elif test "$with_gnu_ld" = yes; then
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4558 $as_echo_n "checking for GNU ld... " >&6; }
4559 else
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4561 $as_echo_n "checking for non-GNU ld... " >&6; }
4562 fi
4563 if ${lt_cv_path_LD+:} false; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 if test -z "$LD"; then
4567 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4568 for ac_dir in $PATH; do
4569 IFS="$lt_save_ifs"
4570 test -z "$ac_dir" && ac_dir=.
4571 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4572 lt_cv_path_LD="$ac_dir/$ac_prog"
4573 # Check to see if the program is GNU ld. I'd rather use --version,
4574 # but apparently some variants of GNU ld only accept -v.
4575 # Break only if it was the GNU/non-GNU ld that we prefer.
4576 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4577 *GNU* | *'with BFD'*)
4578 test "$with_gnu_ld" != no && break
4579 ;;
4580 *)
4581 test "$with_gnu_ld" != yes && break
4582 ;;
4583 esac
4584 fi
4585 done
4586 IFS="$lt_save_ifs"
4587 else
4588 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4589 fi
4590 fi
4591
4592 LD="$lt_cv_path_LD"
4593 if test -n "$LD"; then
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4595 $as_echo "$LD" >&6; }
4596 else
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 $as_echo "no" >&6; }
4599 fi
4600 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4602 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4603 if ${lt_cv_prog_gnu_ld+:} false; then :
4604 $as_echo_n "(cached) " >&6
4605 else
4606 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4607 case `$LD -v 2>&1 </dev/null` in
4608 *GNU* | *'with BFD'*)
4609 lt_cv_prog_gnu_ld=yes
4610 ;;
4611 *)
4612 lt_cv_prog_gnu_ld=no
4613 ;;
4614 esac
4615 fi
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4617 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4618 with_gnu_ld=$lt_cv_prog_gnu_ld
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4629 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4630 if ${lt_cv_path_NM+:} false; then :
4631 $as_echo_n "(cached) " >&6
4632 else
4633 if test -n "$NM"; then
4634 # Let the user override the test.
4635 lt_cv_path_NM="$NM"
4636 else
4637 lt_nm_to_check="${ac_tool_prefix}nm"
4638 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4639 lt_nm_to_check="$lt_nm_to_check nm"
4640 fi
4641 for lt_tmp_nm in $lt_nm_to_check; do
4642 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4643 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4644 IFS="$lt_save_ifs"
4645 test -z "$ac_dir" && ac_dir=.
4646 tmp_nm="$ac_dir/$lt_tmp_nm"
4647 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4648 # Check to see if the nm accepts a BSD-compat flag.
4649 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4650 # nm: unknown option "B" ignored
4651 # Tru64's nm complains that /dev/null is an invalid object file
4652 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4653 */dev/null* | *'Invalid file or object type'*)
4654 lt_cv_path_NM="$tmp_nm -B"
4655 break
4656 ;;
4657 *)
4658 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4659 */dev/null*)
4660 lt_cv_path_NM="$tmp_nm -p"
4661 break
4662 ;;
4663 *)
4664 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4665 continue # so that we can try to find one that supports BSD flags
4666 ;;
4667 esac
4668 ;;
4669 esac
4670 fi
4671 done
4672 IFS="$lt_save_ifs"
4673 done
4674 : ${lt_cv_path_NM=no}
4675 fi
4676 fi
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4678 $as_echo "$lt_cv_path_NM" >&6; }
4679 if test "$lt_cv_path_NM" != "no"; then
4680 NM="$lt_cv_path_NM"
4681 else
4682 # Didn't find any BSD compatible name lister, look for dumpbin.
4683 if test -n "$DUMPBIN"; then :
4684 # Let the user override the test.
4685 else
4686 if test -n "$ac_tool_prefix"; then
4687 for ac_prog in dumpbin "link -dump"
4688 do
4689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692 $as_echo_n "checking for $ac_word... " >&6; }
4693 if ${ac_cv_prog_DUMPBIN+:} false; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696 if test -n "$DUMPBIN"; then
4697 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4698 else
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4701 do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4706 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4709 fi
4710 done
4711 done
4712 IFS=$as_save_IFS
4713
4714 fi
4715 fi
4716 DUMPBIN=$ac_cv_prog_DUMPBIN
4717 if test -n "$DUMPBIN"; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4719 $as_echo "$DUMPBIN" >&6; }
4720 else
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722 $as_echo "no" >&6; }
4723 fi
4724
4725
4726 test -n "$DUMPBIN" && break
4727 done
4728 fi
4729 if test -z "$DUMPBIN"; then
4730 ac_ct_DUMPBIN=$DUMPBIN
4731 for ac_prog in dumpbin "link -dump"
4732 do
4733 # Extract the first word of "$ac_prog", so it can be a program name with args.
4734 set dummy $ac_prog; ac_word=$2
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736 $as_echo_n "checking for $ac_word... " >&6; }
4737 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4738 $as_echo_n "(cached) " >&6
4739 else
4740 if test -n "$ac_ct_DUMPBIN"; then
4741 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4742 else
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4745 do
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 break 2
4753 fi
4754 done
4755 done
4756 IFS=$as_save_IFS
4757
4758 fi
4759 fi
4760 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4761 if test -n "$ac_ct_DUMPBIN"; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4763 $as_echo "$ac_ct_DUMPBIN" >&6; }
4764 else
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4767 fi
4768
4769
4770 test -n "$ac_ct_DUMPBIN" && break
4771 done
4772
4773 if test "x$ac_ct_DUMPBIN" = x; then
4774 DUMPBIN=":"
4775 else
4776 case $cross_compiling:$ac_tool_warned in
4777 yes:)
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4780 ac_tool_warned=yes ;;
4781 esac
4782 DUMPBIN=$ac_ct_DUMPBIN
4783 fi
4784 fi
4785
4786 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4787 *COFF*)
4788 DUMPBIN="$DUMPBIN -symbols"
4789 ;;
4790 *)
4791 DUMPBIN=:
4792 ;;
4793 esac
4794 fi
4795
4796 if test "$DUMPBIN" != ":"; then
4797 NM="$DUMPBIN"
4798 fi
4799 fi
4800 test -z "$NM" && NM=nm
4801
4802
4803
4804
4805
4806
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4808 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4809 if ${lt_cv_nm_interface+:} false; then :
4810 $as_echo_n "(cached) " >&6
4811 else
4812 lt_cv_nm_interface="BSD nm"
4813 echo "int some_variable = 0;" > conftest.$ac_ext
4814 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4815 (eval "$ac_compile" 2>conftest.err)
4816 cat conftest.err >&5
4817 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4818 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4819 cat conftest.err >&5
4820 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4821 cat conftest.out >&5
4822 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4823 lt_cv_nm_interface="MS dumpbin"
4824 fi
4825 rm -f conftest*
4826 fi
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4828 $as_echo "$lt_cv_nm_interface" >&6; }
4829
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4831 $as_echo_n "checking whether ln -s works... " >&6; }
4832 LN_S=$as_ln_s
4833 if test "$LN_S" = "ln -s"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4835 $as_echo "yes" >&6; }
4836 else
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4838 $as_echo "no, using $LN_S" >&6; }
4839 fi
4840
4841 # find the maximum length of command line arguments
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4843 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4844 if ${lt_cv_sys_max_cmd_len+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 i=0
4848 teststring="ABCD"
4849
4850 case $build_os in
4851 msdosdjgpp*)
4852 # On DJGPP, this test can blow up pretty badly due to problems in libc
4853 # (any single argument exceeding 2000 bytes causes a buffer overrun
4854 # during glob expansion). Even if it were fixed, the result of this
4855 # check would be larger than it should be.
4856 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4857 ;;
4858
4859 gnu*)
4860 # Under GNU Hurd, this test is not required because there is
4861 # no limit to the length of command line arguments.
4862 # Libtool will interpret -1 as no limit whatsoever
4863 lt_cv_sys_max_cmd_len=-1;
4864 ;;
4865
4866 cygwin* | mingw* | cegcc*)
4867 # On Win9x/ME, this test blows up -- it succeeds, but takes
4868 # about 5 minutes as the teststring grows exponentially.
4869 # Worse, since 9x/ME are not pre-emptively multitasking,
4870 # you end up with a "frozen" computer, even though with patience
4871 # the test eventually succeeds (with a max line length of 256k).
4872 # Instead, let's just punt: use the minimum linelength reported by
4873 # all of the supported platforms: 8192 (on NT/2K/XP).
4874 lt_cv_sys_max_cmd_len=8192;
4875 ;;
4876
4877 mint*)
4878 # On MiNT this can take a long time and run out of memory.
4879 lt_cv_sys_max_cmd_len=8192;
4880 ;;
4881
4882 amigaos*)
4883 # On AmigaOS with pdksh, this test takes hours, literally.
4884 # So we just punt and use a minimum line length of 8192.
4885 lt_cv_sys_max_cmd_len=8192;
4886 ;;
4887
4888 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4889 # This has been around since 386BSD, at least. Likely further.
4890 if test -x /sbin/sysctl; then
4891 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4892 elif test -x /usr/sbin/sysctl; then
4893 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4894 else
4895 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4896 fi
4897 # And add a safety zone
4898 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4899 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4900 ;;
4901
4902 interix*)
4903 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4904 lt_cv_sys_max_cmd_len=196608
4905 ;;
4906
4907 os2*)
4908 # The test takes a long time on OS/2.
4909 lt_cv_sys_max_cmd_len=8192
4910 ;;
4911
4912 osf*)
4913 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4914 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4915 # nice to cause kernel panics so lets avoid the loop below.
4916 # First set a reasonable default.
4917 lt_cv_sys_max_cmd_len=16384
4918 #
4919 if test -x /sbin/sysconfig; then
4920 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4921 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4922 esac
4923 fi
4924 ;;
4925 sco3.2v5*)
4926 lt_cv_sys_max_cmd_len=102400
4927 ;;
4928 sysv5* | sco5v6* | sysv4.2uw2*)
4929 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4930 if test -n "$kargmax"; then
4931 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4932 else
4933 lt_cv_sys_max_cmd_len=32768
4934 fi
4935 ;;
4936 *)
4937 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4938 if test -n "$lt_cv_sys_max_cmd_len"; then
4939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4940 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4941 else
4942 # Make teststring a little bigger before we do anything with it.
4943 # a 1K string should be a reasonable start.
4944 for i in 1 2 3 4 5 6 7 8 ; do
4945 teststring=$teststring$teststring
4946 done
4947 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4948 # If test is not a shell built-in, we'll probably end up computing a
4949 # maximum length that is only half of the actual maximum length, but
4950 # we can't tell.
4951 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4952 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4953 test $i != 17 # 1/2 MB should be enough
4954 do
4955 i=`expr $i + 1`
4956 teststring=$teststring$teststring
4957 done
4958 # Only check the string length outside the loop.
4959 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4960 teststring=
4961 # Add a significant safety factor because C++ compilers can tack on
4962 # massive amounts of additional arguments before passing them to the
4963 # linker. It appears as though 1/2 is a usable value.
4964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4965 fi
4966 ;;
4967 esac
4968
4969 fi
4970
4971 if test -n $lt_cv_sys_max_cmd_len ; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4973 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4974 else
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4976 $as_echo "none" >&6; }
4977 fi
4978 max_cmd_len=$lt_cv_sys_max_cmd_len
4979
4980
4981
4982
4983
4984
4985 : ${CP="cp -f"}
4986 : ${MV="mv -f"}
4987 : ${RM="rm -f"}
4988
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4990 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4991 # Try some XSI features
4992 xsi_shell=no
4993 ( _lt_dummy="a/b/c"
4994 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4995 = c,a/b,b/c, \
4996 && eval 'test $(( 1 + 1 )) -eq 2 \
4997 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4998 && xsi_shell=yes
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5000 $as_echo "$xsi_shell" >&6; }
5001
5002
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5004 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5005 lt_shell_append=no
5006 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5007 >/dev/null 2>&1 \
5008 && lt_shell_append=yes
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5010 $as_echo "$lt_shell_append" >&6; }
5011
5012
5013 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5014 lt_unset=unset
5015 else
5016 lt_unset=false
5017 fi
5018
5019
5020
5021
5022
5023 # test EBCDIC or ASCII
5024 case `echo X|tr X '\101'` in
5025 A) # ASCII based system
5026 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5027 lt_SP2NL='tr \040 \012'
5028 lt_NL2SP='tr \015\012 \040\040'
5029 ;;
5030 *) # EBCDIC based system
5031 lt_SP2NL='tr \100 \n'
5032 lt_NL2SP='tr \r\n \100\100'
5033 ;;
5034 esac
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5045 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5046 if ${lt_cv_to_host_file_cmd+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 case $host in
5050 *-*-mingw* )
5051 case $build in
5052 *-*-mingw* ) # actually msys
5053 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5054 ;;
5055 *-*-cygwin* )
5056 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5057 ;;
5058 * ) # otherwise, assume *nix
5059 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5060 ;;
5061 esac
5062 ;;
5063 *-*-cygwin* )
5064 case $build in
5065 *-*-mingw* ) # actually msys
5066 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5067 ;;
5068 *-*-cygwin* )
5069 lt_cv_to_host_file_cmd=func_convert_file_noop
5070 ;;
5071 * ) # otherwise, assume *nix
5072 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5073 ;;
5074 esac
5075 ;;
5076 * ) # unhandled hosts (and "normal" native builds)
5077 lt_cv_to_host_file_cmd=func_convert_file_noop
5078 ;;
5079 esac
5080
5081 fi
5082
5083 to_host_file_cmd=$lt_cv_to_host_file_cmd
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5085 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5086
5087
5088
5089
5090
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5092 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5093 if ${lt_cv_to_tool_file_cmd+:} false; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 #assume ordinary cross tools, or native build.
5097 lt_cv_to_tool_file_cmd=func_convert_file_noop
5098 case $host in
5099 *-*-mingw* )
5100 case $build in
5101 *-*-mingw* ) # actually msys
5102 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5103 ;;
5104 esac
5105 ;;
5106 esac
5107
5108 fi
5109
5110 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5112 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5113
5114
5115
5116
5117
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5119 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5120 if ${lt_cv_ld_reload_flag+:} false; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 lt_cv_ld_reload_flag='-r'
5124 fi
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5126 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5127 reload_flag=$lt_cv_ld_reload_flag
5128 case $reload_flag in
5129 "" | " "*) ;;
5130 *) reload_flag=" $reload_flag" ;;
5131 esac
5132 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5133 case $host_os in
5134 cygwin* | mingw* | pw32* | cegcc*)
5135 if test "$GCC" != yes; then
5136 reload_cmds=false
5137 fi
5138 ;;
5139 darwin*)
5140 if test "$GCC" = yes; then
5141 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5142 else
5143 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5144 fi
5145 ;;
5146 esac
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156 if test -n "$ac_tool_prefix"; then
5157 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5158 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160 $as_echo_n "checking for $ac_word... " >&6; }
5161 if ${ac_cv_prog_OBJDUMP+:} false; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 if test -n "$OBJDUMP"; then
5165 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5166 else
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5174 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5177 fi
5178 done
5179 done
5180 IFS=$as_save_IFS
5181
5182 fi
5183 fi
5184 OBJDUMP=$ac_cv_prog_OBJDUMP
5185 if test -n "$OBJDUMP"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5187 $as_echo "$OBJDUMP" >&6; }
5188 else
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5191 fi
5192
5193
5194 fi
5195 if test -z "$ac_cv_prog_OBJDUMP"; then
5196 ac_ct_OBJDUMP=$OBJDUMP
5197 # Extract the first word of "objdump", so it can be a program name with args.
5198 set dummy objdump; ac_word=$2
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200 $as_echo_n "checking for $ac_word... " >&6; }
5201 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 if test -n "$ac_ct_OBJDUMP"; then
5205 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5206 else
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5209 do
5210 IFS=$as_save_IFS
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5214 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 break 2
5217 fi
5218 done
5219 done
5220 IFS=$as_save_IFS
5221
5222 fi
5223 fi
5224 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5225 if test -n "$ac_ct_OBJDUMP"; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5227 $as_echo "$ac_ct_OBJDUMP" >&6; }
5228 else
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5231 fi
5232
5233 if test "x$ac_ct_OBJDUMP" = x; then
5234 OBJDUMP="false"
5235 else
5236 case $cross_compiling:$ac_tool_warned in
5237 yes:)
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5240 ac_tool_warned=yes ;;
5241 esac
5242 OBJDUMP=$ac_ct_OBJDUMP
5243 fi
5244 else
5245 OBJDUMP="$ac_cv_prog_OBJDUMP"
5246 fi
5247
5248 test -z "$OBJDUMP" && OBJDUMP=objdump
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5259 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5260 if ${lt_cv_deplibs_check_method+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 lt_cv_file_magic_cmd='$MAGIC_CMD'
5264 lt_cv_file_magic_test_file=
5265 lt_cv_deplibs_check_method='unknown'
5266 # Need to set the preceding variable on all platforms that support
5267 # interlibrary dependencies.
5268 # 'none' -- dependencies not supported.
5269 # `unknown' -- same as none, but documents that we really don't know.
5270 # 'pass_all' -- all dependencies passed with no checks.
5271 # 'test_compile' -- check by making test program.
5272 # 'file_magic [[regex]]' -- check by looking for files in library path
5273 # which responds to the $file_magic_cmd with a given extended regex.
5274 # If you have `file' or equivalent on your system and you're not sure
5275 # whether `pass_all' will *always* work, you probably want this one.
5276
5277 case $host_os in
5278 aix[4-9]*)
5279 lt_cv_deplibs_check_method=pass_all
5280 ;;
5281
5282 beos*)
5283 lt_cv_deplibs_check_method=pass_all
5284 ;;
5285
5286 bsdi[45]*)
5287 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5288 lt_cv_file_magic_cmd='/usr/bin/file -L'
5289 lt_cv_file_magic_test_file=/shlib/libc.so
5290 ;;
5291
5292 cygwin*)
5293 # func_win32_libid is a shell function defined in ltmain.sh
5294 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5295 lt_cv_file_magic_cmd='func_win32_libid'
5296 ;;
5297
5298 mingw* | pw32*)
5299 # Base MSYS/MinGW do not provide the 'file' command needed by
5300 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5301 # unless we find 'file', for example because we are cross-compiling.
5302 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5303 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5304 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5305 lt_cv_file_magic_cmd='func_win32_libid'
5306 else
5307 # Keep this pattern in sync with the one in func_win32_libid.
5308 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5309 lt_cv_file_magic_cmd='$OBJDUMP -f'
5310 fi
5311 ;;
5312
5313 cegcc*)
5314 # use the weaker test based on 'objdump'. See mingw*.
5315 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5316 lt_cv_file_magic_cmd='$OBJDUMP -f'
5317 ;;
5318
5319 darwin* | rhapsody*)
5320 lt_cv_deplibs_check_method=pass_all
5321 ;;
5322
5323 freebsd* | dragonfly*)
5324 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5325 case $host_cpu in
5326 i*86 )
5327 # Not sure whether the presence of OpenBSD here was a mistake.
5328 # Let's accept both of them until this is cleared up.
5329 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5330 lt_cv_file_magic_cmd=/usr/bin/file
5331 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5332 ;;
5333 esac
5334 else
5335 lt_cv_deplibs_check_method=pass_all
5336 fi
5337 ;;
5338
5339 gnu*)
5340 lt_cv_deplibs_check_method=pass_all
5341 ;;
5342
5343 haiku*)
5344 lt_cv_deplibs_check_method=pass_all
5345 ;;
5346
5347 hpux10.20* | hpux11*)
5348 lt_cv_file_magic_cmd=/usr/bin/file
5349 case $host_cpu in
5350 ia64*)
5351 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5352 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5353 ;;
5354 hppa*64*)
5355 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]'
5356 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5357 ;;
5358 *)
5359 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5360 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5361 ;;
5362 esac
5363 ;;
5364
5365 interix[3-9]*)
5366 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5367 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5368 ;;
5369
5370 irix5* | irix6* | nonstopux*)
5371 case $LD in
5372 *-32|*"-32 ") libmagic=32-bit;;
5373 *-n32|*"-n32 ") libmagic=N32;;
5374 *-64|*"-64 ") libmagic=64-bit;;
5375 *) libmagic=never-match;;
5376 esac
5377 lt_cv_deplibs_check_method=pass_all
5378 ;;
5379
5380 # This must be glibc/ELF.
5381 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5382 lt_cv_deplibs_check_method=pass_all
5383 ;;
5384
5385 netbsd* | netbsdelf*-gnu)
5386 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5388 else
5389 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5390 fi
5391 ;;
5392
5393 newos6*)
5394 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5395 lt_cv_file_magic_cmd=/usr/bin/file
5396 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5397 ;;
5398
5399 *nto* | *qnx*)
5400 lt_cv_deplibs_check_method=pass_all
5401 ;;
5402
5403 openbsd*)
5404 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5406 else
5407 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5408 fi
5409 ;;
5410
5411 osf3* | osf4* | osf5*)
5412 lt_cv_deplibs_check_method=pass_all
5413 ;;
5414
5415 rdos*)
5416 lt_cv_deplibs_check_method=pass_all
5417 ;;
5418
5419 solaris*)
5420 lt_cv_deplibs_check_method=pass_all
5421 ;;
5422
5423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5424 lt_cv_deplibs_check_method=pass_all
5425 ;;
5426
5427 sysv4 | sysv4.3*)
5428 case $host_vendor in
5429 motorola)
5430 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]'
5431 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5432 ;;
5433 ncr)
5434 lt_cv_deplibs_check_method=pass_all
5435 ;;
5436 sequent)
5437 lt_cv_file_magic_cmd='/bin/file'
5438 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5439 ;;
5440 sni)
5441 lt_cv_file_magic_cmd='/bin/file'
5442 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5443 lt_cv_file_magic_test_file=/lib/libc.so
5444 ;;
5445 siemens)
5446 lt_cv_deplibs_check_method=pass_all
5447 ;;
5448 pc)
5449 lt_cv_deplibs_check_method=pass_all
5450 ;;
5451 esac
5452 ;;
5453
5454 tpf*)
5455 lt_cv_deplibs_check_method=pass_all
5456 ;;
5457 esac
5458
5459 fi
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5461 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5462
5463 file_magic_glob=
5464 want_nocaseglob=no
5465 if test "$build" = "$host"; then
5466 case $host_os in
5467 mingw* | pw32*)
5468 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5469 want_nocaseglob=yes
5470 else
5471 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5472 fi
5473 ;;
5474 esac
5475 fi
5476
5477 file_magic_cmd=$lt_cv_file_magic_cmd
5478 deplibs_check_method=$lt_cv_deplibs_check_method
5479 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502 if test -n "$ac_tool_prefix"; then
5503 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5504 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if ${ac_cv_prog_DLLTOOL+:} false; then :
5508 $as_echo_n "(cached) " >&6
5509 else
5510 if test -n "$DLLTOOL"; then
5511 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 break 2
5523 fi
5524 done
5525 done
5526 IFS=$as_save_IFS
5527
5528 fi
5529 fi
5530 DLLTOOL=$ac_cv_prog_DLLTOOL
5531 if test -n "$DLLTOOL"; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5533 $as_echo "$DLLTOOL" >&6; }
5534 else
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5537 fi
5538
5539
5540 fi
5541 if test -z "$ac_cv_prog_DLLTOOL"; then
5542 ac_ct_DLLTOOL=$DLLTOOL
5543 # Extract the first word of "dlltool", so it can be a program name with args.
5544 set dummy dlltool; ac_word=$2
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546 $as_echo_n "checking for $ac_word... " >&6; }
5547 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5548 $as_echo_n "(cached) " >&6
5549 else
5550 if test -n "$ac_ct_DLLTOOL"; then
5551 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5552 else
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH
5555 do
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5560 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 break 2
5563 fi
5564 done
5565 done
5566 IFS=$as_save_IFS
5567
5568 fi
5569 fi
5570 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5571 if test -n "$ac_ct_DLLTOOL"; then
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5573 $as_echo "$ac_ct_DLLTOOL" >&6; }
5574 else
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 $as_echo "no" >&6; }
5577 fi
5578
5579 if test "x$ac_ct_DLLTOOL" = x; then
5580 DLLTOOL="false"
5581 else
5582 case $cross_compiling:$ac_tool_warned in
5583 yes:)
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5586 ac_tool_warned=yes ;;
5587 esac
5588 DLLTOOL=$ac_ct_DLLTOOL
5589 fi
5590 else
5591 DLLTOOL="$ac_cv_prog_DLLTOOL"
5592 fi
5593
5594 test -z "$DLLTOOL" && DLLTOOL=dlltool
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5606 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5607 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 lt_cv_sharedlib_from_linklib_cmd='unknown'
5611
5612 case $host_os in
5613 cygwin* | mingw* | pw32* | cegcc*)
5614 # two different shell functions defined in ltmain.sh
5615 # decide which to use based on capabilities of $DLLTOOL
5616 case `$DLLTOOL --help 2>&1` in
5617 *--identify-strict*)
5618 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5619 ;;
5620 *)
5621 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5622 ;;
5623 esac
5624 ;;
5625 *)
5626 # fallback: assume linklib IS sharedlib
5627 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5628 ;;
5629 esac
5630
5631 fi
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5633 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5634 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5635 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5636
5637
5638
5639
5640
5641
5642
5643
5644 if test -n "$ac_tool_prefix"; then
5645 for ac_prog in ar
5646 do
5647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5648 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if ${ac_cv_prog_AR+:} false; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 if test -n "$AR"; then
5655 ac_cv_prog_AR="$AR" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5659 do
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5664 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5667 fi
5668 done
5669 done
5670 IFS=$as_save_IFS
5671
5672 fi
5673 fi
5674 AR=$ac_cv_prog_AR
5675 if test -n "$AR"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5677 $as_echo "$AR" >&6; }
5678 else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5681 fi
5682
5683
5684 test -n "$AR" && break
5685 done
5686 fi
5687 if test -z "$AR"; then
5688 ac_ct_AR=$AR
5689 for ac_prog in ar
5690 do
5691 # Extract the first word of "$ac_prog", so it can be a program name with args.
5692 set dummy $ac_prog; ac_word=$2
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5696 $as_echo_n "(cached) " >&6
5697 else
5698 if test -n "$ac_ct_AR"; then
5699 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5700 else
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708 ac_cv_prog_ac_ct_AR="$ac_prog"
5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710 break 2
5711 fi
5712 done
5713 done
5714 IFS=$as_save_IFS
5715
5716 fi
5717 fi
5718 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5719 if test -n "$ac_ct_AR"; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5721 $as_echo "$ac_ct_AR" >&6; }
5722 else
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5725 fi
5726
5727
5728 test -n "$ac_ct_AR" && break
5729 done
5730
5731 if test "x$ac_ct_AR" = x; then
5732 AR="false"
5733 else
5734 case $cross_compiling:$ac_tool_warned in
5735 yes:)
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5738 ac_tool_warned=yes ;;
5739 esac
5740 AR=$ac_ct_AR
5741 fi
5742 fi
5743
5744 : ${AR=ar}
5745 : ${AR_FLAGS=cru}
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5758 $as_echo_n "checking for archiver @FILE support... " >&6; }
5759 if ${lt_cv_ar_at_file+:} false; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 lt_cv_ar_at_file=no
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765
5766 int
5767 main ()
5768 {
5769
5770 ;
5771 return 0;
5772 }
5773 _ACEOF
5774 if ac_fn_c_try_compile "$LINENO"; then :
5775 echo conftest.$ac_objext > conftest.lst
5776 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5778 (eval $lt_ar_try) 2>&5
5779 ac_status=$?
5780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781 test $ac_status = 0; }
5782 if test "$ac_status" -eq 0; then
5783 # Ensure the archiver fails upon bogus file names.
5784 rm -f conftest.$ac_objext libconftest.a
5785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5786 (eval $lt_ar_try) 2>&5
5787 ac_status=$?
5788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5789 test $ac_status = 0; }
5790 if test "$ac_status" -ne 0; then
5791 lt_cv_ar_at_file=@
5792 fi
5793 fi
5794 rm -f conftest.* libconftest.a
5795
5796 fi
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798
5799 fi
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5801 $as_echo "$lt_cv_ar_at_file" >&6; }
5802
5803 if test "x$lt_cv_ar_at_file" = xno; then
5804 archiver_list_spec=
5805 else
5806 archiver_list_spec=$lt_cv_ar_at_file
5807 fi
5808
5809
5810
5811
5812
5813
5814
5815 if test -n "$ac_tool_prefix"; then
5816 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5817 set dummy ${ac_tool_prefix}strip; ac_word=$2
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5819 $as_echo_n "checking for $ac_word... " >&6; }
5820 if ${ac_cv_prog_STRIP+:} false; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 if test -n "$STRIP"; then
5824 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5825 else
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 for as_dir in $PATH
5828 do
5829 IFS=$as_save_IFS
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5833 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 break 2
5836 fi
5837 done
5838 done
5839 IFS=$as_save_IFS
5840
5841 fi
5842 fi
5843 STRIP=$ac_cv_prog_STRIP
5844 if test -n "$STRIP"; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5846 $as_echo "$STRIP" >&6; }
5847 else
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849 $as_echo "no" >&6; }
5850 fi
5851
5852
5853 fi
5854 if test -z "$ac_cv_prog_STRIP"; then
5855 ac_ct_STRIP=$STRIP
5856 # Extract the first word of "strip", so it can be a program name with args.
5857 set dummy strip; ac_word=$2
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859 $as_echo_n "checking for $ac_word... " >&6; }
5860 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5861 $as_echo_n "(cached) " >&6
5862 else
5863 if test -n "$ac_ct_STRIP"; then
5864 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5865 else
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 for as_dir in $PATH
5868 do
5869 IFS=$as_save_IFS
5870 test -z "$as_dir" && as_dir=.
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5873 ac_cv_prog_ac_ct_STRIP="strip"
5874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 break 2
5876 fi
5877 done
5878 done
5879 IFS=$as_save_IFS
5880
5881 fi
5882 fi
5883 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5884 if test -n "$ac_ct_STRIP"; then
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5886 $as_echo "$ac_ct_STRIP" >&6; }
5887 else
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889 $as_echo "no" >&6; }
5890 fi
5891
5892 if test "x$ac_ct_STRIP" = x; then
5893 STRIP=":"
5894 else
5895 case $cross_compiling:$ac_tool_warned in
5896 yes:)
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5899 ac_tool_warned=yes ;;
5900 esac
5901 STRIP=$ac_ct_STRIP
5902 fi
5903 else
5904 STRIP="$ac_cv_prog_STRIP"
5905 fi
5906
5907 test -z "$STRIP" && STRIP=:
5908
5909
5910
5911
5912
5913
5914 if test -n "$ac_tool_prefix"; then
5915 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5916 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if ${ac_cv_prog_RANLIB+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 if test -n "$RANLIB"; then
5923 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5932 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936 done
5937 done
5938 IFS=$as_save_IFS
5939
5940 fi
5941 fi
5942 RANLIB=$ac_cv_prog_RANLIB
5943 if test -n "$RANLIB"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5945 $as_echo "$RANLIB" >&6; }
5946 else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5949 fi
5950
5951
5952 fi
5953 if test -z "$ac_cv_prog_RANLIB"; then
5954 ac_ct_RANLIB=$RANLIB
5955 # Extract the first word of "ranlib", so it can be a program name with args.
5956 set dummy ranlib; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5960 $as_echo_n "(cached) " >&6
5961 else
5962 if test -n "$ac_ct_RANLIB"; then
5963 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5972 ac_cv_prog_ac_ct_RANLIB="ranlib"
5973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974 break 2
5975 fi
5976 done
5977 done
5978 IFS=$as_save_IFS
5979
5980 fi
5981 fi
5982 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5983 if test -n "$ac_ct_RANLIB"; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5985 $as_echo "$ac_ct_RANLIB" >&6; }
5986 else
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5989 fi
5990
5991 if test "x$ac_ct_RANLIB" = x; then
5992 RANLIB=":"
5993 else
5994 case $cross_compiling:$ac_tool_warned in
5995 yes:)
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5998 ac_tool_warned=yes ;;
5999 esac
6000 RANLIB=$ac_ct_RANLIB
6001 fi
6002 else
6003 RANLIB="$ac_cv_prog_RANLIB"
6004 fi
6005
6006 test -z "$RANLIB" && RANLIB=:
6007
6008
6009
6010
6011
6012
6013 # Determine commands to create old-style static archives.
6014 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6015 old_postinstall_cmds='chmod 644 $oldlib'
6016 old_postuninstall_cmds=
6017
6018 if test -n "$RANLIB"; then
6019 case $host_os in
6020 openbsd*)
6021 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6022 ;;
6023 *)
6024 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6025 ;;
6026 esac
6027 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6028 fi
6029
6030 case $host_os in
6031 darwin*)
6032 lock_old_archive_extraction=yes ;;
6033 *)
6034 lock_old_archive_extraction=no ;;
6035 esac
6036
6037
6038
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 # If no C compiler was specified, use CC.
6076 LTCC=${LTCC-"$CC"}
6077
6078 # If no C compiler flags were specified, use CFLAGS.
6079 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6080
6081 # Allow CC to be a program name with arguments.
6082 compiler=$CC
6083
6084
6085 # Check for command to grab the raw symbol name followed by C symbol from nm.
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6087 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6088 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6089 $as_echo_n "(cached) " >&6
6090 else
6091
6092 # These are sane defaults that work on at least a few old systems.
6093 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6094
6095 # Character class describing NM global symbol codes.
6096 symcode='[BCDEGRST]'
6097
6098 # Regexp to match symbols that can be accessed directly from C.
6099 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6100
6101 # Define system-specific variables.
6102 case $host_os in
6103 aix*)
6104 symcode='[BCDT]'
6105 ;;
6106 cygwin* | mingw* | pw32* | cegcc*)
6107 symcode='[ABCDGISTW]'
6108 ;;
6109 hpux*)
6110 if test "$host_cpu" = ia64; then
6111 symcode='[ABCDEGRST]'
6112 fi
6113 ;;
6114 irix* | nonstopux*)
6115 symcode='[BCDEGRST]'
6116 ;;
6117 osf*)
6118 symcode='[BCDEGQRST]'
6119 ;;
6120 solaris*)
6121 symcode='[BDRT]'
6122 ;;
6123 sco3.2v5*)
6124 symcode='[DT]'
6125 ;;
6126 sysv4.2uw2*)
6127 symcode='[DT]'
6128 ;;
6129 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6130 symcode='[ABDT]'
6131 ;;
6132 sysv4)
6133 symcode='[DFNSTU]'
6134 ;;
6135 esac
6136
6137 # If we're using GNU nm, then use its standard symbol codes.
6138 case `$NM -V 2>&1` in
6139 *GNU* | *'with BFD'*)
6140 symcode='[ABCDGIRSTW]' ;;
6141 esac
6142
6143 # Transform an extracted symbol line into a proper C declaration.
6144 # Some systems (esp. on ia64) link data and code symbols differently,
6145 # so use this general approach.
6146 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6147
6148 # Transform an extracted symbol line into symbol name and symbol address
6149 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6150 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'"
6151
6152 # Handle CRLF in mingw tool chain
6153 opt_cr=
6154 case $build_os in
6155 mingw*)
6156 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6157 ;;
6158 esac
6159
6160 # Try without a prefix underscore, then with it.
6161 for ac_symprfx in "" "_"; do
6162
6163 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6164 symxfrm="\\1 $ac_symprfx\\2 \\2"
6165
6166 # Write the raw and C identifiers.
6167 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6168 # Fake it for dumpbin and say T for any non-static function
6169 # and D for any global variable.
6170 # Also find C++ and __fastcall symbols from MSVC++,
6171 # which start with @ or ?.
6172 lt_cv_sys_global_symbol_pipe="$AWK '"\
6173 " {last_section=section; section=\$ 3};"\
6174 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6175 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6176 " \$ 0!~/External *\|/{next};"\
6177 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6178 " {if(hide[section]) next};"\
6179 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6180 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6181 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6182 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6183 " ' prfx=^$ac_symprfx"
6184 else
6185 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6186 fi
6187 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6188
6189 # Check to see that the pipe works correctly.
6190 pipe_works=no
6191
6192 rm -f conftest*
6193 cat > conftest.$ac_ext <<_LT_EOF
6194 #ifdef __cplusplus
6195 extern "C" {
6196 #endif
6197 char nm_test_var;
6198 void nm_test_func(void);
6199 void nm_test_func(void){}
6200 #ifdef __cplusplus
6201 }
6202 #endif
6203 int main(){nm_test_var='a';nm_test_func();return(0);}
6204 _LT_EOF
6205
6206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6207 (eval $ac_compile) 2>&5
6208 ac_status=$?
6209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6210 test $ac_status = 0; }; then
6211 # Now try to grab the symbols.
6212 nlist=conftest.nm
6213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6214 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6215 ac_status=$?
6216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6217 test $ac_status = 0; } && test -s "$nlist"; then
6218 # Try sorting and uniquifying the output.
6219 if sort "$nlist" | uniq > "$nlist"T; then
6220 mv -f "$nlist"T "$nlist"
6221 else
6222 rm -f "$nlist"T
6223 fi
6224
6225 # Make sure that we snagged all the symbols we need.
6226 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6227 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6228 cat <<_LT_EOF > conftest.$ac_ext
6229 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6230 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6231 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6232 relocations are performed -- see ld's documentation on pseudo-relocs. */
6233 # define LT_DLSYM_CONST
6234 #elif defined(__osf__)
6235 /* This system does not cope well with relocations in const data. */
6236 # define LT_DLSYM_CONST
6237 #else
6238 # define LT_DLSYM_CONST const
6239 #endif
6240
6241 #ifdef __cplusplus
6242 extern "C" {
6243 #endif
6244
6245 _LT_EOF
6246 # Now generate the symbol file.
6247 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6248
6249 cat <<_LT_EOF >> conftest.$ac_ext
6250
6251 /* The mapping between symbol names and symbols. */
6252 LT_DLSYM_CONST struct {
6253 const char *name;
6254 void *address;
6255 }
6256 lt__PROGRAM__LTX_preloaded_symbols[] =
6257 {
6258 { "@PROGRAM@", (void *) 0 },
6259 _LT_EOF
6260 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6261 cat <<\_LT_EOF >> conftest.$ac_ext
6262 {0, (void *) 0}
6263 };
6264
6265 /* This works around a problem in FreeBSD linker */
6266 #ifdef FREEBSD_WORKAROUND
6267 static const void *lt_preloaded_setup() {
6268 return lt__PROGRAM__LTX_preloaded_symbols;
6269 }
6270 #endif
6271
6272 #ifdef __cplusplus
6273 }
6274 #endif
6275 _LT_EOF
6276 # Now try linking the two files.
6277 mv conftest.$ac_objext conftstm.$ac_objext
6278 lt_globsym_save_LIBS=$LIBS
6279 lt_globsym_save_CFLAGS=$CFLAGS
6280 LIBS="conftstm.$ac_objext"
6281 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6283 (eval $ac_link) 2>&5
6284 ac_status=$?
6285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6286 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6287 pipe_works=yes
6288 fi
6289 LIBS=$lt_globsym_save_LIBS
6290 CFLAGS=$lt_globsym_save_CFLAGS
6291 else
6292 echo "cannot find nm_test_func in $nlist" >&5
6293 fi
6294 else
6295 echo "cannot find nm_test_var in $nlist" >&5
6296 fi
6297 else
6298 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6299 fi
6300 else
6301 echo "$progname: failed program was:" >&5
6302 cat conftest.$ac_ext >&5
6303 fi
6304 rm -rf conftest* conftst*
6305
6306 # Do not use the global_symbol_pipe unless it works.
6307 if test "$pipe_works" = yes; then
6308 break
6309 else
6310 lt_cv_sys_global_symbol_pipe=
6311 fi
6312 done
6313
6314 fi
6315
6316 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6317 lt_cv_sys_global_symbol_to_cdecl=
6318 fi
6319 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6321 $as_echo "failed" >&6; }
6322 else
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6324 $as_echo "ok" >&6; }
6325 fi
6326
6327 # Response file support.
6328 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6329 nm_file_list_spec='@'
6330 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6331 nm_file_list_spec='@'
6332 fi
6333
6334
6335
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6361 $as_echo_n "checking for sysroot... " >&6; }
6362
6363 # Check whether --with-sysroot was given.
6364 if test "${with_sysroot+set}" = set; then :
6365 withval=$with_sysroot;
6366 else
6367 with_sysroot=no
6368 fi
6369
6370
6371 lt_sysroot=
6372 case ${with_sysroot} in #(
6373 yes)
6374 if test "$GCC" = yes; then
6375 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6376 fi
6377 ;; #(
6378 /*)
6379 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6380 ;; #(
6381 no|'')
6382 ;; #(
6383 *)
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6385 $as_echo "${with_sysroot}" >&6; }
6386 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6387 ;;
6388 esac
6389
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6391 $as_echo "${lt_sysroot:-no}" >&6; }
6392
6393
6394
6395
6396
6397 # Check whether --enable-libtool-lock was given.
6398 if test "${enable_libtool_lock+set}" = set; then :
6399 enableval=$enable_libtool_lock;
6400 fi
6401
6402 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6403
6404 # Some flags need to be propagated to the compiler or linker for good
6405 # libtool support.
6406 case $host in
6407 ia64-*-hpux*)
6408 # Find out which ABI we are using.
6409 echo 'int i;' > conftest.$ac_ext
6410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6411 (eval $ac_compile) 2>&5
6412 ac_status=$?
6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6414 test $ac_status = 0; }; then
6415 case `/usr/bin/file conftest.$ac_objext` in
6416 *ELF-32*)
6417 HPUX_IA64_MODE="32"
6418 ;;
6419 *ELF-64*)
6420 HPUX_IA64_MODE="64"
6421 ;;
6422 esac
6423 fi
6424 rm -rf conftest*
6425 ;;
6426 *-*-irix6*)
6427 # Find out which ABI we are using.
6428 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6430 (eval $ac_compile) 2>&5
6431 ac_status=$?
6432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6433 test $ac_status = 0; }; then
6434 if test "$lt_cv_prog_gnu_ld" = yes; then
6435 case `/usr/bin/file conftest.$ac_objext` in
6436 *32-bit*)
6437 LD="${LD-ld} -melf32bsmip"
6438 ;;
6439 *N32*)
6440 LD="${LD-ld} -melf32bmipn32"
6441 ;;
6442 *64-bit*)
6443 LD="${LD-ld} -melf64bmip"
6444 ;;
6445 esac
6446 else
6447 case `/usr/bin/file conftest.$ac_objext` in
6448 *32-bit*)
6449 LD="${LD-ld} -32"
6450 ;;
6451 *N32*)
6452 LD="${LD-ld} -n32"
6453 ;;
6454 *64-bit*)
6455 LD="${LD-ld} -64"
6456 ;;
6457 esac
6458 fi
6459 fi
6460 rm -rf conftest*
6461 ;;
6462
6463 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6464 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6465 # Find out which ABI we are using.
6466 echo 'int i;' > conftest.$ac_ext
6467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6468 (eval $ac_compile) 2>&5
6469 ac_status=$?
6470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6471 test $ac_status = 0; }; then
6472 case `/usr/bin/file conftest.o` in
6473 *32-bit*)
6474 case $host in
6475 x86_64-*kfreebsd*-gnu)
6476 LD="${LD-ld} -m elf_i386_fbsd"
6477 ;;
6478 x86_64-*linux*)
6479 LD="${LD-ld} -m elf_i386"
6480 ;;
6481 ppc64-*linux*|powerpc64-*linux*)
6482 LD="${LD-ld} -m elf32ppclinux"
6483 ;;
6484 s390x-*linux*)
6485 LD="${LD-ld} -m elf_s390"
6486 ;;
6487 sparc64-*linux*)
6488 LD="${LD-ld} -m elf32_sparc"
6489 ;;
6490 esac
6491 ;;
6492 *64-bit*)
6493 case $host in
6494 x86_64-*kfreebsd*-gnu)
6495 LD="${LD-ld} -m elf_x86_64_fbsd"
6496 ;;
6497 x86_64-*linux*)
6498 LD="${LD-ld} -m elf_x86_64"
6499 ;;
6500 ppc*-*linux*|powerpc*-*linux*)
6501 LD="${LD-ld} -m elf64ppc"
6502 ;;
6503 s390*-*linux*|s390*-*tpf*)
6504 LD="${LD-ld} -m elf64_s390"
6505 ;;
6506 sparc*-*linux*)
6507 LD="${LD-ld} -m elf64_sparc"
6508 ;;
6509 esac
6510 ;;
6511 esac
6512 fi
6513 rm -rf conftest*
6514 ;;
6515
6516 *-*-sco3.2v5*)
6517 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6518 SAVE_CFLAGS="$CFLAGS"
6519 CFLAGS="$CFLAGS -belf"
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6521 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6522 if ${lt_cv_cc_needs_belf+:} false; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525 ac_ext=c
6526 ac_cpp='$CPP $CPPFLAGS'
6527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6530
6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6533
6534 int
6535 main ()
6536 {
6537
6538 ;
6539 return 0;
6540 }
6541 _ACEOF
6542 if ac_fn_c_try_link "$LINENO"; then :
6543 lt_cv_cc_needs_belf=yes
6544 else
6545 lt_cv_cc_needs_belf=no
6546 fi
6547 rm -f core conftest.err conftest.$ac_objext \
6548 conftest$ac_exeext conftest.$ac_ext
6549 ac_ext=c
6550 ac_cpp='$CPP $CPPFLAGS'
6551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6554
6555 fi
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6557 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6558 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6559 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6560 CFLAGS="$SAVE_CFLAGS"
6561 fi
6562 ;;
6563 *-*solaris*)
6564 # Find out which ABI we are using.
6565 echo 'int i;' > conftest.$ac_ext
6566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6567 (eval $ac_compile) 2>&5
6568 ac_status=$?
6569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6570 test $ac_status = 0; }; then
6571 case `/usr/bin/file conftest.o` in
6572 *64-bit*)
6573 case $lt_cv_prog_gnu_ld in
6574 yes*)
6575 case $host in
6576 i?86-*-solaris*)
6577 LD="${LD-ld} -m elf_x86_64"
6578 ;;
6579 sparc*-*-solaris*)
6580 LD="${LD-ld} -m elf64_sparc"
6581 ;;
6582 esac
6583 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6584 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6585 LD="${LD-ld}_sol2"
6586 fi
6587 ;;
6588 *)
6589 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6590 LD="${LD-ld} -64"
6591 fi
6592 ;;
6593 esac
6594 ;;
6595 esac
6596 fi
6597 rm -rf conftest*
6598 ;;
6599 esac
6600
6601 need_locks="$enable_libtool_lock"
6602
6603 if test -n "$ac_tool_prefix"; then
6604 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6605 set dummy ${ac_tool_prefix}mt; ac_word=$2
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6609 $as_echo_n "(cached) " >&6
6610 else
6611 if test -n "$MANIFEST_TOOL"; then
6612 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617 IFS=$as_save_IFS
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 break 2
6624 fi
6625 done
6626 done
6627 IFS=$as_save_IFS
6628
6629 fi
6630 fi
6631 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6632 if test -n "$MANIFEST_TOOL"; then
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6634 $as_echo "$MANIFEST_TOOL" >&6; }
6635 else
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637 $as_echo "no" >&6; }
6638 fi
6639
6640
6641 fi
6642 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6643 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6644 # Extract the first word of "mt", so it can be a program name with args.
6645 set dummy mt; ac_word=$2
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6647 $as_echo_n "checking for $ac_word... " >&6; }
6648 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 if test -n "$ac_ct_MANIFEST_TOOL"; then
6652 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6653 else
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 for as_dir in $PATH
6656 do
6657 IFS=$as_save_IFS
6658 test -z "$as_dir" && as_dir=.
6659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6661 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 break 2
6664 fi
6665 done
6666 done
6667 IFS=$as_save_IFS
6668
6669 fi
6670 fi
6671 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6672 if test -n "$ac_ct_MANIFEST_TOOL"; then
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6674 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6675 else
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677 $as_echo "no" >&6; }
6678 fi
6679
6680 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6681 MANIFEST_TOOL=":"
6682 else
6683 case $cross_compiling:$ac_tool_warned in
6684 yes:)
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6687 ac_tool_warned=yes ;;
6688 esac
6689 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6690 fi
6691 else
6692 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6693 fi
6694
6695 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6697 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6698 if ${lt_cv_path_mainfest_tool+:} false; then :
6699 $as_echo_n "(cached) " >&6
6700 else
6701 lt_cv_path_mainfest_tool=no
6702 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6703 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6704 cat conftest.err >&5
6705 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6706 lt_cv_path_mainfest_tool=yes
6707 fi
6708 rm -f conftest*
6709 fi
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6711 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6712 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6713 MANIFEST_TOOL=:
6714 fi
6715
6716
6717
6718
6719
6720
6721 case $host_os in
6722 rhapsody* | darwin*)
6723 if test -n "$ac_tool_prefix"; then
6724 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6725 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 if test -n "$DSYMUTIL"; then
6732 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6733 else
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 for as_dir in $PATH
6736 do
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6741 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 break 2
6744 fi
6745 done
6746 done
6747 IFS=$as_save_IFS
6748
6749 fi
6750 fi
6751 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6752 if test -n "$DSYMUTIL"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6754 $as_echo "$DSYMUTIL" >&6; }
6755 else
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757 $as_echo "no" >&6; }
6758 fi
6759
6760
6761 fi
6762 if test -z "$ac_cv_prog_DSYMUTIL"; then
6763 ac_ct_DSYMUTIL=$DSYMUTIL
6764 # Extract the first word of "dsymutil", so it can be a program name with args.
6765 set dummy dsymutil; ac_word=$2
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767 $as_echo_n "checking for $ac_word... " >&6; }
6768 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 if test -n "$ac_ct_DSYMUTIL"; then
6772 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6773 else
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6776 do
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6784 fi
6785 done
6786 done
6787 IFS=$as_save_IFS
6788
6789 fi
6790 fi
6791 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6792 if test -n "$ac_ct_DSYMUTIL"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6794 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6795 else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6798 fi
6799
6800 if test "x$ac_ct_DSYMUTIL" = x; then
6801 DSYMUTIL=":"
6802 else
6803 case $cross_compiling:$ac_tool_warned in
6804 yes:)
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807 ac_tool_warned=yes ;;
6808 esac
6809 DSYMUTIL=$ac_ct_DSYMUTIL
6810 fi
6811 else
6812 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6813 fi
6814
6815 if test -n "$ac_tool_prefix"; then
6816 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6817 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819 $as_echo_n "checking for $ac_word... " >&6; }
6820 if ${ac_cv_prog_NMEDIT+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 if test -n "$NMEDIT"; then
6824 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6825 else
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6828 do
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6833 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 break 2
6836 fi
6837 done
6838 done
6839 IFS=$as_save_IFS
6840
6841 fi
6842 fi
6843 NMEDIT=$ac_cv_prog_NMEDIT
6844 if test -n "$NMEDIT"; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6846 $as_echo "$NMEDIT" >&6; }
6847 else
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849 $as_echo "no" >&6; }
6850 fi
6851
6852
6853 fi
6854 if test -z "$ac_cv_prog_NMEDIT"; then
6855 ac_ct_NMEDIT=$NMEDIT
6856 # Extract the first word of "nmedit", so it can be a program name with args.
6857 set dummy nmedit; ac_word=$2
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 $as_echo_n "checking for $ac_word... " >&6; }
6860 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 if test -n "$ac_ct_NMEDIT"; then
6864 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6865 else
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6868 do
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6876 fi
6877 done
6878 done
6879 IFS=$as_save_IFS
6880
6881 fi
6882 fi
6883 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6884 if test -n "$ac_ct_NMEDIT"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6886 $as_echo "$ac_ct_NMEDIT" >&6; }
6887 else
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 $as_echo "no" >&6; }
6890 fi
6891
6892 if test "x$ac_ct_NMEDIT" = x; then
6893 NMEDIT=":"
6894 else
6895 case $cross_compiling:$ac_tool_warned in
6896 yes:)
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6899 ac_tool_warned=yes ;;
6900 esac
6901 NMEDIT=$ac_ct_NMEDIT
6902 fi
6903 else
6904 NMEDIT="$ac_cv_prog_NMEDIT"
6905 fi
6906
6907 if test -n "$ac_tool_prefix"; then
6908 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6909 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if ${ac_cv_prog_LIPO+:} false; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 if test -n "$LIPO"; then
6916 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6917 else
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6920 do
6921 IFS=$as_save_IFS
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 break 2
6928 fi
6929 done
6930 done
6931 IFS=$as_save_IFS
6932
6933 fi
6934 fi
6935 LIPO=$ac_cv_prog_LIPO
6936 if test -n "$LIPO"; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6938 $as_echo "$LIPO" >&6; }
6939 else
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 $as_echo "no" >&6; }
6942 fi
6943
6944
6945 fi
6946 if test -z "$ac_cv_prog_LIPO"; then
6947 ac_ct_LIPO=$LIPO
6948 # Extract the first word of "lipo", so it can be a program name with args.
6949 set dummy lipo; ac_word=$2
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951 $as_echo_n "checking for $ac_word... " >&6; }
6952 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 if test -n "$ac_ct_LIPO"; then
6956 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6957 else
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6960 do
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_prog_ac_ct_LIPO="lipo"
6966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 break 2
6968 fi
6969 done
6970 done
6971 IFS=$as_save_IFS
6972
6973 fi
6974 fi
6975 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6976 if test -n "$ac_ct_LIPO"; then
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6978 $as_echo "$ac_ct_LIPO" >&6; }
6979 else
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981 $as_echo "no" >&6; }
6982 fi
6983
6984 if test "x$ac_ct_LIPO" = x; then
6985 LIPO=":"
6986 else
6987 case $cross_compiling:$ac_tool_warned in
6988 yes:)
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6991 ac_tool_warned=yes ;;
6992 esac
6993 LIPO=$ac_ct_LIPO
6994 fi
6995 else
6996 LIPO="$ac_cv_prog_LIPO"
6997 fi
6998
6999 if test -n "$ac_tool_prefix"; then
7000 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7001 set dummy ${ac_tool_prefix}otool; ac_word=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if ${ac_cv_prog_OTOOL+:} false; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 if test -n "$OTOOL"; then
7008 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7009 else
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7012 do
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7017 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7020 fi
7021 done
7022 done
7023 IFS=$as_save_IFS
7024
7025 fi
7026 fi
7027 OTOOL=$ac_cv_prog_OTOOL
7028 if test -n "$OTOOL"; then
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7030 $as_echo "$OTOOL" >&6; }
7031 else
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033 $as_echo "no" >&6; }
7034 fi
7035
7036
7037 fi
7038 if test -z "$ac_cv_prog_OTOOL"; then
7039 ac_ct_OTOOL=$OTOOL
7040 # Extract the first word of "otool", so it can be a program name with args.
7041 set dummy otool; ac_word=$2
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043 $as_echo_n "checking for $ac_word... " >&6; }
7044 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7045 $as_echo_n "(cached) " >&6
7046 else
7047 if test -n "$ac_ct_OTOOL"; then
7048 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7049 else
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 for as_dir in $PATH
7052 do
7053 IFS=$as_save_IFS
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7057 ac_cv_prog_ac_ct_OTOOL="otool"
7058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 break 2
7060 fi
7061 done
7062 done
7063 IFS=$as_save_IFS
7064
7065 fi
7066 fi
7067 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7068 if test -n "$ac_ct_OTOOL"; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7070 $as_echo "$ac_ct_OTOOL" >&6; }
7071 else
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 $as_echo "no" >&6; }
7074 fi
7075
7076 if test "x$ac_ct_OTOOL" = x; then
7077 OTOOL=":"
7078 else
7079 case $cross_compiling:$ac_tool_warned in
7080 yes:)
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7083 ac_tool_warned=yes ;;
7084 esac
7085 OTOOL=$ac_ct_OTOOL
7086 fi
7087 else
7088 OTOOL="$ac_cv_prog_OTOOL"
7089 fi
7090
7091 if test -n "$ac_tool_prefix"; then
7092 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7093 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095 $as_echo_n "checking for $ac_word... " >&6; }
7096 if ${ac_cv_prog_OTOOL64+:} false; then :
7097 $as_echo_n "(cached) " >&6
7098 else
7099 if test -n "$OTOOL64"; then
7100 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7101 else
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7104 do
7105 IFS=$as_save_IFS
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7109 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111 break 2
7112 fi
7113 done
7114 done
7115 IFS=$as_save_IFS
7116
7117 fi
7118 fi
7119 OTOOL64=$ac_cv_prog_OTOOL64
7120 if test -n "$OTOOL64"; then
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7122 $as_echo "$OTOOL64" >&6; }
7123 else
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 $as_echo "no" >&6; }
7126 fi
7127
7128
7129 fi
7130 if test -z "$ac_cv_prog_OTOOL64"; then
7131 ac_ct_OTOOL64=$OTOOL64
7132 # Extract the first word of "otool64", so it can be a program name with args.
7133 set dummy otool64; ac_word=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135 $as_echo_n "checking for $ac_word... " >&6; }
7136 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 if test -n "$ac_ct_OTOOL64"; then
7140 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7141 else
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145 IFS=$as_save_IFS
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_prog_ac_ct_OTOOL64="otool64"
7150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 break 2
7152 fi
7153 done
7154 done
7155 IFS=$as_save_IFS
7156
7157 fi
7158 fi
7159 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7160 if test -n "$ac_ct_OTOOL64"; then
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7162 $as_echo "$ac_ct_OTOOL64" >&6; }
7163 else
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165 $as_echo "no" >&6; }
7166 fi
7167
7168 if test "x$ac_ct_OTOOL64" = x; then
7169 OTOOL64=":"
7170 else
7171 case $cross_compiling:$ac_tool_warned in
7172 yes:)
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7175 ac_tool_warned=yes ;;
7176 esac
7177 OTOOL64=$ac_ct_OTOOL64
7178 fi
7179 else
7180 OTOOL64="$ac_cv_prog_OTOOL64"
7181 fi
7182
7183
7184
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7210 $as_echo_n "checking for -single_module linker flag... " >&6; }
7211 if ${lt_cv_apple_cc_single_mod+:} false; then :
7212 $as_echo_n "(cached) " >&6
7213 else
7214 lt_cv_apple_cc_single_mod=no
7215 if test -z "${LT_MULTI_MODULE}"; then
7216 # By default we will add the -single_module flag. You can override
7217 # by either setting the environment variable LT_MULTI_MODULE
7218 # non-empty at configure time, or by adding -multi_module to the
7219 # link flags.
7220 rm -rf libconftest.dylib*
7221 echo "int foo(void){return 1;}" > conftest.c
7222 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7223 -dynamiclib -Wl,-single_module conftest.c" >&5
7224 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7225 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7226 _lt_result=$?
7227 # If there is a non-empty error log, and "single_module"
7228 # appears in it, assume the flag caused a linker warning
7229 if test -s conftest.err && $GREP single_module conftest.err; then
7230 cat conftest.err >&5
7231 # Otherwise, if the output was created with a 0 exit code from
7232 # the compiler, it worked.
7233 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7234 lt_cv_apple_cc_single_mod=yes
7235 else
7236 cat conftest.err >&5
7237 fi
7238 rm -rf libconftest.dylib*
7239 rm -f conftest.*
7240 fi
7241 fi
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7243 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7244
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7246 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7247 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7248 $as_echo_n "(cached) " >&6
7249 else
7250 lt_cv_ld_exported_symbols_list=no
7251 save_LDFLAGS=$LDFLAGS
7252 echo "_main" > conftest.sym
7253 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7256
7257 int
7258 main ()
7259 {
7260
7261 ;
7262 return 0;
7263 }
7264 _ACEOF
7265 if ac_fn_c_try_link "$LINENO"; then :
7266 lt_cv_ld_exported_symbols_list=yes
7267 else
7268 lt_cv_ld_exported_symbols_list=no
7269 fi
7270 rm -f core conftest.err conftest.$ac_objext \
7271 conftest$ac_exeext conftest.$ac_ext
7272 LDFLAGS="$save_LDFLAGS"
7273
7274 fi
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7276 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7277
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7279 $as_echo_n "checking for -force_load linker flag... " >&6; }
7280 if ${lt_cv_ld_force_load+:} false; then :
7281 $as_echo_n "(cached) " >&6
7282 else
7283 lt_cv_ld_force_load=no
7284 cat > conftest.c << _LT_EOF
7285 int forced_loaded() { return 2;}
7286 _LT_EOF
7287 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7288 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7289 echo "$AR cru libconftest.a conftest.o" >&5
7290 $AR cru libconftest.a conftest.o 2>&5
7291 echo "$RANLIB libconftest.a" >&5
7292 $RANLIB libconftest.a 2>&5
7293 cat > conftest.c << _LT_EOF
7294 int main() { return 0;}
7295 _LT_EOF
7296 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7297 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7298 _lt_result=$?
7299 if test -s conftest.err && $GREP force_load conftest.err; then
7300 cat conftest.err >&5
7301 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7302 lt_cv_ld_force_load=yes
7303 else
7304 cat conftest.err >&5
7305 fi
7306 rm -f conftest.err libconftest.a conftest conftest.c
7307 rm -rf conftest.dSYM
7308
7309 fi
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7311 $as_echo "$lt_cv_ld_force_load" >&6; }
7312 case $host_os in
7313 rhapsody* | darwin1.[012])
7314 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7315 darwin1.*)
7316 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7317 darwin*) # darwin 5.x on
7318 # if running on 10.5 or later, the deployment target defaults
7319 # to the OS version, if on x86, and 10.4, the deployment
7320 # target defaults to 10.4. Don't you love it?
7321 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7322 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7323 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7324 10.[012]*)
7325 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7326 10.*)
7327 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7328 esac
7329 ;;
7330 esac
7331 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7332 _lt_dar_single_mod='$single_module'
7333 fi
7334 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7335 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7336 else
7337 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7338 fi
7339 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7340 _lt_dsymutil='~$DSYMUTIL $lib || :'
7341 else
7342 _lt_dsymutil=
7343 fi
7344 ;;
7345 esac
7346
7347 ac_ext=c
7348 ac_cpp='$CPP $CPPFLAGS'
7349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7353 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7354 # On Suns, sometimes $CPP names a directory.
7355 if test -n "$CPP" && test -d "$CPP"; then
7356 CPP=
7357 fi
7358 if test -z "$CPP"; then
7359 if ${ac_cv_prog_CPP+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 # Double quotes because CPP needs to be expanded
7363 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7364 do
7365 ac_preproc_ok=false
7366 for ac_c_preproc_warn_flag in '' yes
7367 do
7368 # Use a header file that comes with gcc, so configuring glibc
7369 # with a fresh cross-compiler works.
7370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7371 # <limits.h> exists even on freestanding compilers.
7372 # On the NeXT, cc -E runs the code through the compiler's parser,
7373 # not just through cpp. "Syntax error" is here to catch this case.
7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375 /* end confdefs.h. */
7376 #ifdef __STDC__
7377 # include <limits.h>
7378 #else
7379 # include <assert.h>
7380 #endif
7381 Syntax error
7382 _ACEOF
7383 if ac_fn_c_try_cpp "$LINENO"; then :
7384
7385 else
7386 # Broken: fails on valid input.
7387 continue
7388 fi
7389 rm -f conftest.err conftest.i conftest.$ac_ext
7390
7391 # OK, works on sane cases. Now check whether nonexistent headers
7392 # can be detected and how.
7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7395 #include <ac_nonexistent.h>
7396 _ACEOF
7397 if ac_fn_c_try_cpp "$LINENO"; then :
7398 # Broken: success on invalid input.
7399 continue
7400 else
7401 # Passes both tests.
7402 ac_preproc_ok=:
7403 break
7404 fi
7405 rm -f conftest.err conftest.i conftest.$ac_ext
7406
7407 done
7408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7409 rm -f conftest.i conftest.err conftest.$ac_ext
7410 if $ac_preproc_ok; then :
7411 break
7412 fi
7413
7414 done
7415 ac_cv_prog_CPP=$CPP
7416
7417 fi
7418 CPP=$ac_cv_prog_CPP
7419 else
7420 ac_cv_prog_CPP=$CPP
7421 fi
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7423 $as_echo "$CPP" >&6; }
7424 ac_preproc_ok=false
7425 for ac_c_preproc_warn_flag in '' yes
7426 do
7427 # Use a header file that comes with gcc, so configuring glibc
7428 # with a fresh cross-compiler works.
7429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7430 # <limits.h> exists even on freestanding compilers.
7431 # On the NeXT, cc -E runs the code through the compiler's parser,
7432 # not just through cpp. "Syntax error" is here to catch this case.
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7435 #ifdef __STDC__
7436 # include <limits.h>
7437 #else
7438 # include <assert.h>
7439 #endif
7440 Syntax error
7441 _ACEOF
7442 if ac_fn_c_try_cpp "$LINENO"; then :
7443
7444 else
7445 # Broken: fails on valid input.
7446 continue
7447 fi
7448 rm -f conftest.err conftest.i conftest.$ac_ext
7449
7450 # OK, works on sane cases. Now check whether nonexistent headers
7451 # can be detected and how.
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7454 #include <ac_nonexistent.h>
7455 _ACEOF
7456 if ac_fn_c_try_cpp "$LINENO"; then :
7457 # Broken: success on invalid input.
7458 continue
7459 else
7460 # Passes both tests.
7461 ac_preproc_ok=:
7462 break
7463 fi
7464 rm -f conftest.err conftest.i conftest.$ac_ext
7465
7466 done
7467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7468 rm -f conftest.i conftest.err conftest.$ac_ext
7469 if $ac_preproc_ok; then :
7470
7471 else
7472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7474 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7475 See \`config.log' for more details" "$LINENO" 5; }
7476 fi
7477
7478 ac_ext=c
7479 ac_cpp='$CPP $CPPFLAGS'
7480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7483
7484
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7486 $as_echo_n "checking for ANSI C header files... " >&6; }
7487 if ${ac_cv_header_stdc+:} false; then :
7488 $as_echo_n "(cached) " >&6
7489 else
7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491 /* end confdefs.h. */
7492 #include <stdlib.h>
7493 #include <stdarg.h>
7494 #include <string.h>
7495 #include <float.h>
7496
7497 int
7498 main ()
7499 {
7500
7501 ;
7502 return 0;
7503 }
7504 _ACEOF
7505 if ac_fn_c_try_compile "$LINENO"; then :
7506 ac_cv_header_stdc=yes
7507 else
7508 ac_cv_header_stdc=no
7509 fi
7510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511
7512 if test $ac_cv_header_stdc = yes; then
7513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h. */
7516 #include <string.h>
7517
7518 _ACEOF
7519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7520 $EGREP "memchr" >/dev/null 2>&1; then :
7521
7522 else
7523 ac_cv_header_stdc=no
7524 fi
7525 rm -f conftest*
7526
7527 fi
7528
7529 if test $ac_cv_header_stdc = yes; then
7530 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7533 #include <stdlib.h>
7534
7535 _ACEOF
7536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7537 $EGREP "free" >/dev/null 2>&1; then :
7538
7539 else
7540 ac_cv_header_stdc=no
7541 fi
7542 rm -f conftest*
7543
7544 fi
7545
7546 if test $ac_cv_header_stdc = yes; then
7547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7548 if test "$cross_compiling" = yes; then :
7549 :
7550 else
7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552 /* end confdefs.h. */
7553 #include <ctype.h>
7554 #include <stdlib.h>
7555 #if ((' ' & 0x0FF) == 0x020)
7556 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7557 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7558 #else
7559 # define ISLOWER(c) \
7560 (('a' <= (c) && (c) <= 'i') \
7561 || ('j' <= (c) && (c) <= 'r') \
7562 || ('s' <= (c) && (c) <= 'z'))
7563 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7564 #endif
7565
7566 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7567 int
7568 main ()
7569 {
7570 int i;
7571 for (i = 0; i < 256; i++)
7572 if (XOR (islower (i), ISLOWER (i))
7573 || toupper (i) != TOUPPER (i))
7574 return 2;
7575 return 0;
7576 }
7577 _ACEOF
7578 if ac_fn_c_try_run "$LINENO"; then :
7579
7580 else
7581 ac_cv_header_stdc=no
7582 fi
7583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7584 conftest.$ac_objext conftest.beam conftest.$ac_ext
7585 fi
7586
7587 fi
7588 fi
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7590 $as_echo "$ac_cv_header_stdc" >&6; }
7591 if test $ac_cv_header_stdc = yes; then
7592
7593 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7594
7595 fi
7596
7597 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7598 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7599 inttypes.h stdint.h unistd.h
7600 do :
7601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7602 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7603 "
7604 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7605 cat >>confdefs.h <<_ACEOF
7606 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7607 _ACEOF
7608
7609 fi
7610
7611 done
7612
7613
7614 for ac_header in dlfcn.h
7615 do :
7616 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7617 "
7618 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7619 cat >>confdefs.h <<_ACEOF
7620 #define HAVE_DLFCN_H 1
7621 _ACEOF
7622
7623 fi
7624
7625 done
7626
7627
7628
7629
7630
7631 # Set options
7632
7633
7634
7635 enable_dlopen=no
7636
7637
7638 enable_win32_dll=no
7639
7640
7641 # Check whether --enable-shared was given.
7642 if test "${enable_shared+set}" = set; then :
7643 enableval=$enable_shared; p=${PACKAGE-default}
7644 case $enableval in
7645 yes) enable_shared=yes ;;
7646 no) enable_shared=no ;;
7647 *)
7648 enable_shared=no
7649 # Look at the argument we got. We use all the common list separators.
7650 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7651 for pkg in $enableval; do
7652 IFS="$lt_save_ifs"
7653 if test "X$pkg" = "X$p"; then
7654 enable_shared=yes
7655 fi
7656 done
7657 IFS="$lt_save_ifs"
7658 ;;
7659 esac
7660 else
7661 enable_shared=yes
7662 fi
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672 # Check whether --enable-static was given.
7673 if test "${enable_static+set}" = set; then :
7674 enableval=$enable_static; p=${PACKAGE-default}
7675 case $enableval in
7676 yes) enable_static=yes ;;
7677 no) enable_static=no ;;
7678 *)
7679 enable_static=no
7680 # Look at the argument we got. We use all the common list separators.
7681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7682 for pkg in $enableval; do
7683 IFS="$lt_save_ifs"
7684 if test "X$pkg" = "X$p"; then
7685 enable_static=yes
7686 fi
7687 done
7688 IFS="$lt_save_ifs"
7689 ;;
7690 esac
7691 else
7692 enable_static=yes
7693 fi
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704 # Check whether --with-pic was given.
7705 if test "${with_pic+set}" = set; then :
7706 withval=$with_pic; lt_p=${PACKAGE-default}
7707 case $withval in
7708 yes|no) pic_mode=$withval ;;
7709 *)
7710 pic_mode=default
7711 # Look at the argument we got. We use all the common list separators.
7712 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7713 for lt_pkg in $withval; do
7714 IFS="$lt_save_ifs"
7715 if test "X$lt_pkg" = "X$lt_p"; then
7716 pic_mode=yes
7717 fi
7718 done
7719 IFS="$lt_save_ifs"
7720 ;;
7721 esac
7722 else
7723 pic_mode=default
7724 fi
7725
7726
7727 test -z "$pic_mode" && pic_mode=default
7728
7729
7730
7731
7732
7733
7734
7735 # Check whether --enable-fast-install was given.
7736 if test "${enable_fast_install+set}" = set; then :
7737 enableval=$enable_fast_install; p=${PACKAGE-default}
7738 case $enableval in
7739 yes) enable_fast_install=yes ;;
7740 no) enable_fast_install=no ;;
7741 *)
7742 enable_fast_install=no
7743 # Look at the argument we got. We use all the common list separators.
7744 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7745 for pkg in $enableval; do
7746 IFS="$lt_save_ifs"
7747 if test "X$pkg" = "X$p"; then
7748 enable_fast_install=yes
7749 fi
7750 done
7751 IFS="$lt_save_ifs"
7752 ;;
7753 esac
7754 else
7755 enable_fast_install=yes
7756 fi
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768 # This can be used to rebuild libtool when needed
7769 LIBTOOL_DEPS="$ltmain"
7770
7771 # Always use our own libtool.
7772 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7773
7774
7775
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 test -z "$LN_S" && LN_S="ln -s"
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818 if test -n "${ZSH_VERSION+set}" ; then
7819 setopt NO_GLOB_SUBST
7820 fi
7821
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7823 $as_echo_n "checking for objdir... " >&6; }
7824 if ${lt_cv_objdir+:} false; then :
7825 $as_echo_n "(cached) " >&6
7826 else
7827 rm -f .libs 2>/dev/null
7828 mkdir .libs 2>/dev/null
7829 if test -d .libs; then
7830 lt_cv_objdir=.libs
7831 else
7832 # MS-DOS does not allow filenames that begin with a dot.
7833 lt_cv_objdir=_libs
7834 fi
7835 rmdir .libs 2>/dev/null
7836 fi
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7838 $as_echo "$lt_cv_objdir" >&6; }
7839 objdir=$lt_cv_objdir
7840
7841
7842
7843
7844
7845 cat >>confdefs.h <<_ACEOF
7846 #define LT_OBJDIR "$lt_cv_objdir/"
7847 _ACEOF
7848
7849
7850
7851
7852 case $host_os in
7853 aix3*)
7854 # AIX sometimes has problems with the GCC collect2 program. For some
7855 # reason, if we set the COLLECT_NAMES environment variable, the problems
7856 # vanish in a puff of smoke.
7857 if test "X${COLLECT_NAMES+set}" != Xset; then
7858 COLLECT_NAMES=
7859 export COLLECT_NAMES
7860 fi
7861 ;;
7862 esac
7863
7864 # Global variables:
7865 ofile=libtool
7866 can_build_shared=yes
7867
7868 # All known linkers require a `.a' archive for static linking (except MSVC,
7869 # which needs '.lib').
7870 libext=a
7871
7872 with_gnu_ld="$lt_cv_prog_gnu_ld"
7873
7874 old_CC="$CC"
7875 old_CFLAGS="$CFLAGS"
7876
7877 # Set sane defaults for various variables
7878 test -z "$CC" && CC=cc
7879 test -z "$LTCC" && LTCC=$CC
7880 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7881 test -z "$LD" && LD=ld
7882 test -z "$ac_objext" && ac_objext=o
7883
7884 for cc_temp in $compiler""; do
7885 case $cc_temp in
7886 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7887 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7888 \-*) ;;
7889 *) break;;
7890 esac
7891 done
7892 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7893
7894
7895 # Only perform the check for file, if the check method requires it
7896 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7897 case $deplibs_check_method in
7898 file_magic*)
7899 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7901 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7902 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7903 $as_echo_n "(cached) " >&6
7904 else
7905 case $MAGIC_CMD in
7906 [\\/*] | ?:[\\/]*)
7907 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7908 ;;
7909 *)
7910 lt_save_MAGIC_CMD="$MAGIC_CMD"
7911 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7912 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7913 for ac_dir in $ac_dummy; do
7914 IFS="$lt_save_ifs"
7915 test -z "$ac_dir" && ac_dir=.
7916 if test -f $ac_dir/${ac_tool_prefix}file; then
7917 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7918 if test -n "$file_magic_test_file"; then
7919 case $deplibs_check_method in
7920 "file_magic "*)
7921 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7922 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7923 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7924 $EGREP "$file_magic_regex" > /dev/null; then
7925 :
7926 else
7927 cat <<_LT_EOF 1>&2
7928
7929 *** Warning: the command libtool uses to detect shared libraries,
7930 *** $file_magic_cmd, produces output that libtool cannot recognize.
7931 *** The result is that libtool may fail to recognize shared libraries
7932 *** as such. This will affect the creation of libtool libraries that
7933 *** depend on shared libraries, but programs linked with such libtool
7934 *** libraries will work regardless of this problem. Nevertheless, you
7935 *** may want to report the problem to your system manager and/or to
7936 *** bug-libtool@gnu.org
7937
7938 _LT_EOF
7939 fi ;;
7940 esac
7941 fi
7942 break
7943 fi
7944 done
7945 IFS="$lt_save_ifs"
7946 MAGIC_CMD="$lt_save_MAGIC_CMD"
7947 ;;
7948 esac
7949 fi
7950
7951 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7952 if test -n "$MAGIC_CMD"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7954 $as_echo "$MAGIC_CMD" >&6; }
7955 else
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }
7958 fi
7959
7960
7961
7962
7963
7964 if test -z "$lt_cv_path_MAGIC_CMD"; then
7965 if test -n "$ac_tool_prefix"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7967 $as_echo_n "checking for file... " >&6; }
7968 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 case $MAGIC_CMD in
7972 [\\/*] | ?:[\\/]*)
7973 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7974 ;;
7975 *)
7976 lt_save_MAGIC_CMD="$MAGIC_CMD"
7977 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7978 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7979 for ac_dir in $ac_dummy; do
7980 IFS="$lt_save_ifs"
7981 test -z "$ac_dir" && ac_dir=.
7982 if test -f $ac_dir/file; then
7983 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7984 if test -n "$file_magic_test_file"; then
7985 case $deplibs_check_method in
7986 "file_magic "*)
7987 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7988 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7989 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7990 $EGREP "$file_magic_regex" > /dev/null; then
7991 :
7992 else
7993 cat <<_LT_EOF 1>&2
7994
7995 *** Warning: the command libtool uses to detect shared libraries,
7996 *** $file_magic_cmd, produces output that libtool cannot recognize.
7997 *** The result is that libtool may fail to recognize shared libraries
7998 *** as such. This will affect the creation of libtool libraries that
7999 *** depend on shared libraries, but programs linked with such libtool
8000 *** libraries will work regardless of this problem. Nevertheless, you
8001 *** may want to report the problem to your system manager and/or to
8002 *** bug-libtool@gnu.org
8003
8004 _LT_EOF
8005 fi ;;
8006 esac
8007 fi
8008 break
8009 fi
8010 done
8011 IFS="$lt_save_ifs"
8012 MAGIC_CMD="$lt_save_MAGIC_CMD"
8013 ;;
8014 esac
8015 fi
8016
8017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8018 if test -n "$MAGIC_CMD"; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8020 $as_echo "$MAGIC_CMD" >&6; }
8021 else
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023 $as_echo "no" >&6; }
8024 fi
8025
8026
8027 else
8028 MAGIC_CMD=:
8029 fi
8030 fi
8031
8032 fi
8033 ;;
8034 esac
8035
8036 # Use C for the default configuration in the libtool script
8037
8038 lt_save_CC="$CC"
8039 ac_ext=c
8040 ac_cpp='$CPP $CPPFLAGS'
8041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8044
8045
8046 # Source file extension for C test sources.
8047 ac_ext=c
8048
8049 # Object file extension for compiled C test sources.
8050 objext=o
8051 objext=$objext
8052
8053 # Code to be used in simple compile tests
8054 lt_simple_compile_test_code="int some_variable = 0;"
8055
8056 # Code to be used in simple link tests
8057 lt_simple_link_test_code='int main(){return(0);}'
8058
8059
8060
8061
8062
8063
8064
8065 # If no C compiler was specified, use CC.
8066 LTCC=${LTCC-"$CC"}
8067
8068 # If no C compiler flags were specified, use CFLAGS.
8069 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8070
8071 # Allow CC to be a program name with arguments.
8072 compiler=$CC
8073
8074 # Save the default compiler, since it gets overwritten when the other
8075 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8076 compiler_DEFAULT=$CC
8077
8078 # save warnings/boilerplate of simple test code
8079 ac_outfile=conftest.$ac_objext
8080 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8081 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8082 _lt_compiler_boilerplate=`cat conftest.err`
8083 $RM conftest*
8084
8085 ac_outfile=conftest.$ac_objext
8086 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8087 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8088 _lt_linker_boilerplate=`cat conftest.err`
8089 $RM -r conftest*
8090
8091
8092 ## CAVEAT EMPTOR:
8093 ## There is no encapsulation within the following macros, do not change
8094 ## the running order or otherwise move them around unless you know exactly
8095 ## what you are doing...
8096 if test -n "$compiler"; then
8097
8098 lt_prog_compiler_no_builtin_flag=
8099
8100 if test "$GCC" = yes; then
8101 case $cc_basename in
8102 nvcc*)
8103 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8104 *)
8105 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8106 esac
8107
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8109 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8110 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 lt_cv_prog_compiler_rtti_exceptions=no
8114 ac_outfile=conftest.$ac_objext
8115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8116 lt_compiler_flag="-fno-rtti -fno-exceptions"
8117 # Insert the option either (1) after the last *FLAGS variable, or
8118 # (2) before a word containing "conftest.", or (3) at the end.
8119 # Note that $ac_compile itself does not contain backslashes and begins
8120 # with a dollar sign (not a hyphen), so the echo should work correctly.
8121 # The option is referenced via a variable to avoid confusing sed.
8122 lt_compile=`echo "$ac_compile" | $SED \
8123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8125 -e 's:$: $lt_compiler_flag:'`
8126 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8127 (eval "$lt_compile" 2>conftest.err)
8128 ac_status=$?
8129 cat conftest.err >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 if (exit $ac_status) && test -s "$ac_outfile"; then
8132 # The compiler can only warn and ignore the option if not recognized
8133 # So say no if there are warnings other than the usual output.
8134 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8136 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8137 lt_cv_prog_compiler_rtti_exceptions=yes
8138 fi
8139 fi
8140 $RM conftest*
8141
8142 fi
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8144 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8145
8146 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8147 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8148 else
8149 :
8150 fi
8151
8152 fi
8153
8154
8155
8156
8157
8158
8159 lt_prog_compiler_wl=
8160 lt_prog_compiler_pic=
8161 lt_prog_compiler_static=
8162
8163
8164 if test "$GCC" = yes; then
8165 lt_prog_compiler_wl='-Wl,'
8166 lt_prog_compiler_static='-static'
8167
8168 case $host_os in
8169 aix*)
8170 # All AIX code is PIC.
8171 if test "$host_cpu" = ia64; then
8172 # AIX 5 now supports IA64 processor
8173 lt_prog_compiler_static='-Bstatic'
8174 fi
8175 ;;
8176
8177 amigaos*)
8178 case $host_cpu in
8179 powerpc)
8180 # see comment about AmigaOS4 .so support
8181 lt_prog_compiler_pic='-fPIC'
8182 ;;
8183 m68k)
8184 # FIXME: we need at least 68020 code to build shared libraries, but
8185 # adding the `-m68020' flag to GCC prevents building anything better,
8186 # like `-m68040'.
8187 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8188 ;;
8189 esac
8190 ;;
8191
8192 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8193 # PIC is the default for these OSes.
8194 ;;
8195
8196 mingw* | cygwin* | pw32* | os2* | cegcc*)
8197 # This hack is so that the source file can tell whether it is being
8198 # built for inclusion in a dll (and should export symbols for example).
8199 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8200 # (--disable-auto-import) libraries
8201 lt_prog_compiler_pic='-DDLL_EXPORT'
8202 ;;
8203
8204 darwin* | rhapsody*)
8205 # PIC is the default on this platform
8206 # Common symbols not allowed in MH_DYLIB files
8207 lt_prog_compiler_pic='-fno-common'
8208 ;;
8209
8210 haiku*)
8211 # PIC is the default for Haiku.
8212 # The "-static" flag exists, but is broken.
8213 lt_prog_compiler_static=
8214 ;;
8215
8216 hpux*)
8217 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8218 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8219 # sets the default TLS model and affects inlining.
8220 case $host_cpu in
8221 hppa*64*)
8222 # +Z the default
8223 ;;
8224 *)
8225 lt_prog_compiler_pic='-fPIC'
8226 ;;
8227 esac
8228 ;;
8229
8230 interix[3-9]*)
8231 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8232 # Instead, we relocate shared libraries at runtime.
8233 ;;
8234
8235 msdosdjgpp*)
8236 # Just because we use GCC doesn't mean we suddenly get shared libraries
8237 # on systems that don't support them.
8238 lt_prog_compiler_can_build_shared=no
8239 enable_shared=no
8240 ;;
8241
8242 *nto* | *qnx*)
8243 # QNX uses GNU C++, but need to define -shared option too, otherwise
8244 # it will coredump.
8245 lt_prog_compiler_pic='-fPIC -shared'
8246 ;;
8247
8248 sysv4*MP*)
8249 if test -d /usr/nec; then
8250 lt_prog_compiler_pic=-Kconform_pic
8251 fi
8252 ;;
8253
8254 *)
8255 lt_prog_compiler_pic='-fPIC'
8256 ;;
8257 esac
8258
8259 case $cc_basename in
8260 nvcc*) # Cuda Compiler Driver 2.2
8261 lt_prog_compiler_wl='-Xlinker '
8262 if test -n "$lt_prog_compiler_pic"; then
8263 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8264 fi
8265 ;;
8266 esac
8267 else
8268 # PORTME Check for flag to pass linker flags through the system compiler.
8269 case $host_os in
8270 aix*)
8271 lt_prog_compiler_wl='-Wl,'
8272 if test "$host_cpu" = ia64; then
8273 # AIX 5 now supports IA64 processor
8274 lt_prog_compiler_static='-Bstatic'
8275 else
8276 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8277 fi
8278 ;;
8279
8280 mingw* | cygwin* | pw32* | os2* | cegcc*)
8281 # This hack is so that the source file can tell whether it is being
8282 # built for inclusion in a dll (and should export symbols for example).
8283 lt_prog_compiler_pic='-DDLL_EXPORT'
8284 ;;
8285
8286 hpux9* | hpux10* | hpux11*)
8287 lt_prog_compiler_wl='-Wl,'
8288 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8289 # not for PA HP-UX.
8290 case $host_cpu in
8291 hppa*64*|ia64*)
8292 # +Z the default
8293 ;;
8294 *)
8295 lt_prog_compiler_pic='+Z'
8296 ;;
8297 esac
8298 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8299 lt_prog_compiler_static='${wl}-a ${wl}archive'
8300 ;;
8301
8302 irix5* | irix6* | nonstopux*)
8303 lt_prog_compiler_wl='-Wl,'
8304 # PIC (with -KPIC) is the default.
8305 lt_prog_compiler_static='-non_shared'
8306 ;;
8307
8308 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8309 case $cc_basename in
8310 # old Intel for x86_64 which still supported -KPIC.
8311 ecc*)
8312 lt_prog_compiler_wl='-Wl,'
8313 lt_prog_compiler_pic='-KPIC'
8314 lt_prog_compiler_static='-static'
8315 ;;
8316 # icc used to be incompatible with GCC.
8317 # ICC 10 doesn't accept -KPIC any more.
8318 icc* | ifort*)
8319 lt_prog_compiler_wl='-Wl,'
8320 lt_prog_compiler_pic='-fPIC'
8321 lt_prog_compiler_static='-static'
8322 ;;
8323 # Lahey Fortran 8.1.
8324 lf95*)
8325 lt_prog_compiler_wl='-Wl,'
8326 lt_prog_compiler_pic='--shared'
8327 lt_prog_compiler_static='--static'
8328 ;;
8329 nagfor*)
8330 # NAG Fortran compiler
8331 lt_prog_compiler_wl='-Wl,-Wl,,'
8332 lt_prog_compiler_pic='-PIC'
8333 lt_prog_compiler_static='-Bstatic'
8334 ;;
8335 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8336 # Portland Group compilers (*not* the Pentium gcc compiler,
8337 # which looks to be a dead project)
8338 lt_prog_compiler_wl='-Wl,'
8339 lt_prog_compiler_pic='-fpic'
8340 lt_prog_compiler_static='-Bstatic'
8341 ;;
8342 ccc*)
8343 lt_prog_compiler_wl='-Wl,'
8344 # All Alpha code is PIC.
8345 lt_prog_compiler_static='-non_shared'
8346 ;;
8347 xl* | bgxl* | bgf* | mpixl*)
8348 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8349 lt_prog_compiler_wl='-Wl,'
8350 lt_prog_compiler_pic='-qpic'
8351 lt_prog_compiler_static='-qstaticlink'
8352 ;;
8353 *)
8354 case `$CC -V 2>&1 | sed 5q` in
8355 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8356 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8357 lt_prog_compiler_pic='-KPIC'
8358 lt_prog_compiler_static='-Bstatic'
8359 lt_prog_compiler_wl=''
8360 ;;
8361 *Sun\ F* | *Sun*Fortran*)
8362 lt_prog_compiler_pic='-KPIC'
8363 lt_prog_compiler_static='-Bstatic'
8364 lt_prog_compiler_wl='-Qoption ld '
8365 ;;
8366 *Sun\ C*)
8367 # Sun C 5.9
8368 lt_prog_compiler_pic='-KPIC'
8369 lt_prog_compiler_static='-Bstatic'
8370 lt_prog_compiler_wl='-Wl,'
8371 ;;
8372 *Intel*\ [CF]*Compiler*)
8373 lt_prog_compiler_wl='-Wl,'
8374 lt_prog_compiler_pic='-fPIC'
8375 lt_prog_compiler_static='-static'
8376 ;;
8377 *Portland\ Group*)
8378 lt_prog_compiler_wl='-Wl,'
8379 lt_prog_compiler_pic='-fpic'
8380 lt_prog_compiler_static='-Bstatic'
8381 ;;
8382 esac
8383 ;;
8384 esac
8385 ;;
8386
8387 newsos6)
8388 lt_prog_compiler_pic='-KPIC'
8389 lt_prog_compiler_static='-Bstatic'
8390 ;;
8391
8392 *nto* | *qnx*)
8393 # QNX uses GNU C++, but need to define -shared option too, otherwise
8394 # it will coredump.
8395 lt_prog_compiler_pic='-fPIC -shared'
8396 ;;
8397
8398 osf3* | osf4* | osf5*)
8399 lt_prog_compiler_wl='-Wl,'
8400 # All OSF/1 code is PIC.
8401 lt_prog_compiler_static='-non_shared'
8402 ;;
8403
8404 rdos*)
8405 lt_prog_compiler_static='-non_shared'
8406 ;;
8407
8408 solaris*)
8409 lt_prog_compiler_pic='-KPIC'
8410 lt_prog_compiler_static='-Bstatic'
8411 case $cc_basename in
8412 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8413 lt_prog_compiler_wl='-Qoption ld ';;
8414 *)
8415 lt_prog_compiler_wl='-Wl,';;
8416 esac
8417 ;;
8418
8419 sunos4*)
8420 lt_prog_compiler_wl='-Qoption ld '
8421 lt_prog_compiler_pic='-PIC'
8422 lt_prog_compiler_static='-Bstatic'
8423 ;;
8424
8425 sysv4 | sysv4.2uw2* | sysv4.3*)
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_pic='-KPIC'
8428 lt_prog_compiler_static='-Bstatic'
8429 ;;
8430
8431 sysv4*MP*)
8432 if test -d /usr/nec ;then
8433 lt_prog_compiler_pic='-Kconform_pic'
8434 lt_prog_compiler_static='-Bstatic'
8435 fi
8436 ;;
8437
8438 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8439 lt_prog_compiler_wl='-Wl,'
8440 lt_prog_compiler_pic='-KPIC'
8441 lt_prog_compiler_static='-Bstatic'
8442 ;;
8443
8444 unicos*)
8445 lt_prog_compiler_wl='-Wl,'
8446 lt_prog_compiler_can_build_shared=no
8447 ;;
8448
8449 uts4*)
8450 lt_prog_compiler_pic='-pic'
8451 lt_prog_compiler_static='-Bstatic'
8452 ;;
8453
8454 *)
8455 lt_prog_compiler_can_build_shared=no
8456 ;;
8457 esac
8458 fi
8459
8460 case $host_os in
8461 # For platforms which do not support PIC, -DPIC is meaningless:
8462 *djgpp*)
8463 lt_prog_compiler_pic=
8464 ;;
8465 *)
8466 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8467 ;;
8468 esac
8469
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8471 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8472 if ${lt_cv_prog_compiler_pic+:} false; then :
8473 $as_echo_n "(cached) " >&6
8474 else
8475 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8476 fi
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8478 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8479 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8480
8481 #
8482 # Check to make sure the PIC flag actually works.
8483 #
8484 if test -n "$lt_prog_compiler_pic"; then
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8486 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8487 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 lt_cv_prog_compiler_pic_works=no
8491 ac_outfile=conftest.$ac_objext
8492 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8493 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8494 # Insert the option either (1) after the last *FLAGS variable, or
8495 # (2) before a word containing "conftest.", or (3) at the end.
8496 # Note that $ac_compile itself does not contain backslashes and begins
8497 # with a dollar sign (not a hyphen), so the echo should work correctly.
8498 # The option is referenced via a variable to avoid confusing sed.
8499 lt_compile=`echo "$ac_compile" | $SED \
8500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8502 -e 's:$: $lt_compiler_flag:'`
8503 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8504 (eval "$lt_compile" 2>conftest.err)
8505 ac_status=$?
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 if (exit $ac_status) && test -s "$ac_outfile"; then
8509 # The compiler can only warn and ignore the option if not recognized
8510 # So say no if there are warnings other than the usual output.
8511 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8513 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8514 lt_cv_prog_compiler_pic_works=yes
8515 fi
8516 fi
8517 $RM conftest*
8518
8519 fi
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8521 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8522
8523 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8524 case $lt_prog_compiler_pic in
8525 "" | " "*) ;;
8526 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8527 esac
8528 else
8529 lt_prog_compiler_pic=
8530 lt_prog_compiler_can_build_shared=no
8531 fi
8532
8533 fi
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545 #
8546 # Check to make sure the static flag actually works.
8547 #
8548 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8550 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8551 if ${lt_cv_prog_compiler_static_works+:} false; then :
8552 $as_echo_n "(cached) " >&6
8553 else
8554 lt_cv_prog_compiler_static_works=no
8555 save_LDFLAGS="$LDFLAGS"
8556 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8557 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8558 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8559 # The linker can only warn and ignore the option if not recognized
8560 # So say no if there are warnings
8561 if test -s conftest.err; then
8562 # Append any errors to the config.log.
8563 cat conftest.err 1>&5
8564 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8565 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8566 if diff conftest.exp conftest.er2 >/dev/null; then
8567 lt_cv_prog_compiler_static_works=yes
8568 fi
8569 else
8570 lt_cv_prog_compiler_static_works=yes
8571 fi
8572 fi
8573 $RM -r conftest*
8574 LDFLAGS="$save_LDFLAGS"
8575
8576 fi
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8578 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8579
8580 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8581 :
8582 else
8583 lt_prog_compiler_static=
8584 fi
8585
8586
8587
8588
8589
8590
8591
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8593 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8594 if ${lt_cv_prog_compiler_c_o+:} false; then :
8595 $as_echo_n "(cached) " >&6
8596 else
8597 lt_cv_prog_compiler_c_o=no
8598 $RM -r conftest 2>/dev/null
8599 mkdir conftest
8600 cd conftest
8601 mkdir out
8602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8603
8604 lt_compiler_flag="-o out/conftest2.$ac_objext"
8605 # Insert the option either (1) after the last *FLAGS variable, or
8606 # (2) before a word containing "conftest.", or (3) at the end.
8607 # Note that $ac_compile itself does not contain backslashes and begins
8608 # with a dollar sign (not a hyphen), so the echo should work correctly.
8609 lt_compile=`echo "$ac_compile" | $SED \
8610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8612 -e 's:$: $lt_compiler_flag:'`
8613 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8614 (eval "$lt_compile" 2>out/conftest.err)
8615 ac_status=$?
8616 cat out/conftest.err >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8619 then
8620 # The compiler can only warn and ignore the option if not recognized
8621 # So say no if there are warnings
8622 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8623 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8624 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8625 lt_cv_prog_compiler_c_o=yes
8626 fi
8627 fi
8628 chmod u+w . 2>&5
8629 $RM conftest*
8630 # SGI C++ compiler will create directory out/ii_files/ for
8631 # template instantiation
8632 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8633 $RM out/* && rmdir out
8634 cd ..
8635 $RM -r conftest
8636 $RM conftest*
8637
8638 fi
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8640 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8641
8642
8643
8644
8645
8646
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8648 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8649 if ${lt_cv_prog_compiler_c_o+:} false; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 lt_cv_prog_compiler_c_o=no
8653 $RM -r conftest 2>/dev/null
8654 mkdir conftest
8655 cd conftest
8656 mkdir out
8657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8658
8659 lt_compiler_flag="-o out/conftest2.$ac_objext"
8660 # Insert the option either (1) after the last *FLAGS variable, or
8661 # (2) before a word containing "conftest.", or (3) at the end.
8662 # Note that $ac_compile itself does not contain backslashes and begins
8663 # with a dollar sign (not a hyphen), so the echo should work correctly.
8664 lt_compile=`echo "$ac_compile" | $SED \
8665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8667 -e 's:$: $lt_compiler_flag:'`
8668 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8669 (eval "$lt_compile" 2>out/conftest.err)
8670 ac_status=$?
8671 cat out/conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8674 then
8675 # The compiler can only warn and ignore the option if not recognized
8676 # So say no if there are warnings
8677 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8678 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8679 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8680 lt_cv_prog_compiler_c_o=yes
8681 fi
8682 fi
8683 chmod u+w . 2>&5
8684 $RM conftest*
8685 # SGI C++ compiler will create directory out/ii_files/ for
8686 # template instantiation
8687 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8688 $RM out/* && rmdir out
8689 cd ..
8690 $RM -r conftest
8691 $RM conftest*
8692
8693 fi
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8695 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8696
8697
8698
8699
8700 hard_links="nottested"
8701 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8702 # do not overwrite the value of need_locks provided by the user
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8704 $as_echo_n "checking if we can lock with hard links... " >&6; }
8705 hard_links=yes
8706 $RM conftest*
8707 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8708 touch conftest.a
8709 ln conftest.a conftest.b 2>&5 || hard_links=no
8710 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8712 $as_echo "$hard_links" >&6; }
8713 if test "$hard_links" = no; then
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8715 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8716 need_locks=warn
8717 fi
8718 else
8719 need_locks=no
8720 fi
8721
8722
8723
8724
8725
8726
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8728 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8729
8730 runpath_var=
8731 allow_undefined_flag=
8732 always_export_symbols=no
8733 archive_cmds=
8734 archive_expsym_cmds=
8735 compiler_needs_object=no
8736 enable_shared_with_static_runtimes=no
8737 export_dynamic_flag_spec=
8738 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8739 hardcode_automatic=no
8740 hardcode_direct=no
8741 hardcode_direct_absolute=no
8742 hardcode_libdir_flag_spec=
8743 hardcode_libdir_separator=
8744 hardcode_minus_L=no
8745 hardcode_shlibpath_var=unsupported
8746 inherit_rpath=no
8747 link_all_deplibs=unknown
8748 module_cmds=
8749 module_expsym_cmds=
8750 old_archive_from_new_cmds=
8751 old_archive_from_expsyms_cmds=
8752 thread_safe_flag_spec=
8753 whole_archive_flag_spec=
8754 # include_expsyms should be a list of space-separated symbols to be *always*
8755 # included in the symbol list
8756 include_expsyms=
8757 # exclude_expsyms can be an extended regexp of symbols to exclude
8758 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8759 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8760 # as well as any symbol that contains `d'.
8761 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8762 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8763 # platforms (ab)use it in PIC code, but their linkers get confused if
8764 # the symbol is explicitly referenced. Since portable code cannot
8765 # rely on this symbol name, it's probably fine to never include it in
8766 # preloaded symbol tables.
8767 # Exclude shared library initialization/finalization symbols.
8768 extract_expsyms_cmds=
8769
8770 case $host_os in
8771 cygwin* | mingw* | pw32* | cegcc*)
8772 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8773 # When not using gcc, we currently assume that we are using
8774 # Microsoft Visual C++.
8775 if test "$GCC" != yes; then
8776 with_gnu_ld=no
8777 fi
8778 ;;
8779 interix*)
8780 # we just hope/assume this is gcc and not c89 (= MSVC++)
8781 with_gnu_ld=yes
8782 ;;
8783 openbsd*)
8784 with_gnu_ld=no
8785 ;;
8786 linux* | k*bsd*-gnu | gnu*)
8787 link_all_deplibs=no
8788 ;;
8789 esac
8790
8791 ld_shlibs=yes
8792
8793 # On some targets, GNU ld is compatible enough with the native linker
8794 # that we're better off using the native interface for both.
8795 lt_use_gnu_ld_interface=no
8796 if test "$with_gnu_ld" = yes; then
8797 case $host_os in
8798 aix*)
8799 # The AIX port of GNU ld has always aspired to compatibility
8800 # with the native linker. However, as the warning in the GNU ld
8801 # block says, versions before 2.19.5* couldn't really create working
8802 # shared libraries, regardless of the interface used.
8803 case `$LD -v 2>&1` in
8804 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8805 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8806 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8807 *)
8808 lt_use_gnu_ld_interface=yes
8809 ;;
8810 esac
8811 ;;
8812 *)
8813 lt_use_gnu_ld_interface=yes
8814 ;;
8815 esac
8816 fi
8817
8818 if test "$lt_use_gnu_ld_interface" = yes; then
8819 # If archive_cmds runs LD, not CC, wlarc should be empty
8820 wlarc='${wl}'
8821
8822 # Set some defaults for GNU ld with shared library support. These
8823 # are reset later if shared libraries are not supported. Putting them
8824 # here allows them to be overridden if necessary.
8825 runpath_var=LD_RUN_PATH
8826 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8827 export_dynamic_flag_spec='${wl}--export-dynamic'
8828 # ancient GNU ld didn't support --whole-archive et. al.
8829 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8830 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8831 else
8832 whole_archive_flag_spec=
8833 fi
8834 supports_anon_versioning=no
8835 case `$LD -v 2>&1` in
8836 *GNU\ gold*) supports_anon_versioning=yes ;;
8837 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8838 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8839 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8840 *\ 2.11.*) ;; # other 2.11 versions
8841 *) supports_anon_versioning=yes ;;
8842 esac
8843
8844 # See if GNU ld supports shared libraries.
8845 case $host_os in
8846 aix[3-9]*)
8847 # On AIX/PPC, the GNU linker is very broken
8848 if test "$host_cpu" != ia64; then
8849 ld_shlibs=no
8850 cat <<_LT_EOF 1>&2
8851
8852 *** Warning: the GNU linker, at least up to release 2.19, is reported
8853 *** to be unable to reliably create shared libraries on AIX.
8854 *** Therefore, libtool is disabling shared libraries support. If you
8855 *** really care for shared libraries, you may want to install binutils
8856 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8857 *** You will then need to restart the configuration process.
8858
8859 _LT_EOF
8860 fi
8861 ;;
8862
8863 amigaos*)
8864 case $host_cpu in
8865 powerpc)
8866 # see comment about AmigaOS4 .so support
8867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8868 archive_expsym_cmds=''
8869 ;;
8870 m68k)
8871 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)'
8872 hardcode_libdir_flag_spec='-L$libdir'
8873 hardcode_minus_L=yes
8874 ;;
8875 esac
8876 ;;
8877
8878 beos*)
8879 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8880 allow_undefined_flag=unsupported
8881 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8882 # support --undefined. This deserves some investigation. FIXME
8883 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8884 else
8885 ld_shlibs=no
8886 fi
8887 ;;
8888
8889 cygwin* | mingw* | pw32* | cegcc*)
8890 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8891 # as there is no search path for DLLs.
8892 hardcode_libdir_flag_spec='-L$libdir'
8893 export_dynamic_flag_spec='${wl}--export-all-symbols'
8894 allow_undefined_flag=unsupported
8895 always_export_symbols=no
8896 enable_shared_with_static_runtimes=yes
8897 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'
8898 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8899
8900 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8902 # If the export-symbols file already is a .def file (1st line
8903 # is EXPORTS), use it as is; otherwise, prepend...
8904 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8905 cp $export_symbols $output_objdir/$soname.def;
8906 else
8907 echo EXPORTS > $output_objdir/$soname.def;
8908 cat $export_symbols >> $output_objdir/$soname.def;
8909 fi~
8910 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8911 else
8912 ld_shlibs=no
8913 fi
8914 ;;
8915
8916 haiku*)
8917 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8918 link_all_deplibs=yes
8919 ;;
8920
8921 interix[3-9]*)
8922 hardcode_direct=no
8923 hardcode_shlibpath_var=no
8924 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8925 export_dynamic_flag_spec='${wl}-E'
8926 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8927 # Instead, shared libraries are loaded at an image base (0x10000000 by
8928 # default) and relocated if they conflict, which is a slow very memory
8929 # consuming and fragmenting process. To avoid this, we pick a random,
8930 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8931 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8932 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8933 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'
8934 ;;
8935
8936 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8937 tmp_diet=no
8938 if test "$host_os" = linux-dietlibc; then
8939 case $cc_basename in
8940 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8941 esac
8942 fi
8943 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8944 && test "$tmp_diet" = no
8945 then
8946 tmp_addflag=' $pic_flag'
8947 tmp_sharedflag='-shared'
8948 case $cc_basename,$host_cpu in
8949 pgcc*) # Portland Group C compiler
8950 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'
8951 tmp_addflag=' $pic_flag'
8952 ;;
8953 pgf77* | pgf90* | pgf95* | pgfortran*)
8954 # Portland Group f77 and f90 compilers
8955 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'
8956 tmp_addflag=' $pic_flag -Mnomain' ;;
8957 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8958 tmp_addflag=' -i_dynamic' ;;
8959 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8960 tmp_addflag=' -i_dynamic -nofor_main' ;;
8961 ifc* | ifort*) # Intel Fortran compiler
8962 tmp_addflag=' -nofor_main' ;;
8963 lf95*) # Lahey Fortran 8.1
8964 whole_archive_flag_spec=
8965 tmp_sharedflag='--shared' ;;
8966 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8967 tmp_sharedflag='-qmkshrobj'
8968 tmp_addflag= ;;
8969 nvcc*) # Cuda Compiler Driver 2.2
8970 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'
8971 compiler_needs_object=yes
8972 ;;
8973 esac
8974 case `$CC -V 2>&1 | sed 5q` in
8975 *Sun\ C*) # Sun C 5.9
8976 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'
8977 compiler_needs_object=yes
8978 tmp_sharedflag='-G' ;;
8979 *Sun\ F*) # Sun Fortran 8.3
8980 tmp_sharedflag='-G' ;;
8981 esac
8982 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8983
8984 if test "x$supports_anon_versioning" = xyes; then
8985 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8986 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8987 echo "local: *; };" >> $output_objdir/$libname.ver~
8988 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8989 fi
8990
8991 case $cc_basename in
8992 xlf* | bgf* | bgxlf* | mpixlf*)
8993 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8994 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8995 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8996 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8997 if test "x$supports_anon_versioning" = xyes; then
8998 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8999 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9000 echo "local: *; };" >> $output_objdir/$libname.ver~
9001 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9002 fi
9003 ;;
9004 esac
9005 else
9006 ld_shlibs=no
9007 fi
9008 ;;
9009
9010 netbsd* | netbsdelf*-gnu)
9011 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9012 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9013 wlarc=
9014 else
9015 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9016 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9017 fi
9018 ;;
9019
9020 solaris*)
9021 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9022 ld_shlibs=no
9023 cat <<_LT_EOF 1>&2
9024
9025 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9026 *** create shared libraries on Solaris systems. Therefore, libtool
9027 *** is disabling shared libraries support. We urge you to upgrade GNU
9028 *** binutils to release 2.9.1 or newer. Another option is to modify
9029 *** your PATH or compiler configuration so that the native linker is
9030 *** used, and then restart.
9031
9032 _LT_EOF
9033 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9034 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9035 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9036 else
9037 ld_shlibs=no
9038 fi
9039 ;;
9040
9041 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9042 case `$LD -v 2>&1` in
9043 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9044 ld_shlibs=no
9045 cat <<_LT_EOF 1>&2
9046
9047 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9048 *** reliably create shared libraries on SCO systems. Therefore, libtool
9049 *** is disabling shared libraries support. We urge you to upgrade GNU
9050 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9051 *** your PATH or compiler configuration so that the native linker is
9052 *** used, and then restart.
9053
9054 _LT_EOF
9055 ;;
9056 *)
9057 # For security reasons, it is highly recommended that you always
9058 # use absolute paths for naming shared libraries, and exclude the
9059 # DT_RUNPATH tag from executables and libraries. But doing so
9060 # requires that you compile everything twice, which is a pain.
9061 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9062 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9064 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9065 else
9066 ld_shlibs=no
9067 fi
9068 ;;
9069 esac
9070 ;;
9071
9072 sunos4*)
9073 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9074 wlarc=
9075 hardcode_direct=yes
9076 hardcode_shlibpath_var=no
9077 ;;
9078
9079 *)
9080 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9081 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9082 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9083 else
9084 ld_shlibs=no
9085 fi
9086 ;;
9087 esac
9088
9089 if test "$ld_shlibs" = no; then
9090 runpath_var=
9091 hardcode_libdir_flag_spec=
9092 export_dynamic_flag_spec=
9093 whole_archive_flag_spec=
9094 fi
9095 else
9096 # PORTME fill in a description of your system's linker (not GNU ld)
9097 case $host_os in
9098 aix3*)
9099 allow_undefined_flag=unsupported
9100 always_export_symbols=yes
9101 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'
9102 # Note: this linker hardcodes the directories in LIBPATH if there
9103 # are no directories specified by -L.
9104 hardcode_minus_L=yes
9105 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9106 # Neither direct hardcoding nor static linking is supported with a
9107 # broken collect2.
9108 hardcode_direct=unsupported
9109 fi
9110 ;;
9111
9112 aix[4-9]*)
9113 if test "$host_cpu" = ia64; then
9114 # On IA64, the linker does run time linking by default, so we don't
9115 # have to do anything special.
9116 aix_use_runtimelinking=no
9117 exp_sym_flag='-Bexport'
9118 no_entry_flag=""
9119 else
9120 # If we're using GNU nm, then we don't want the "-C" option.
9121 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9122 # Also, AIX nm treats weak defined symbols like other global
9123 # defined symbols, whereas GNU nm marks them as "W".
9124 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9125 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'
9126 else
9127 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'
9128 fi
9129 aix_use_runtimelinking=no
9130
9131 # Test if we are trying to use run time linking or normal
9132 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9133 # need to do runtime linking.
9134 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9135 for ld_flag in $LDFLAGS; do
9136 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9137 aix_use_runtimelinking=yes
9138 break
9139 fi
9140 done
9141 ;;
9142 esac
9143
9144 exp_sym_flag='-bexport'
9145 no_entry_flag='-bnoentry'
9146 fi
9147
9148 # When large executables or shared objects are built, AIX ld can
9149 # have problems creating the table of contents. If linking a library
9150 # or program results in "error TOC overflow" add -mminimal-toc to
9151 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9152 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9153
9154 archive_cmds=''
9155 hardcode_direct=yes
9156 hardcode_direct_absolute=yes
9157 hardcode_libdir_separator=':'
9158 link_all_deplibs=yes
9159 file_list_spec='${wl}-f,'
9160
9161 if test "$GCC" = yes; then
9162 case $host_os in aix4.[012]|aix4.[012].*)
9163 # We only want to do this on AIX 4.2 and lower, the check
9164 # below for broken collect2 doesn't work under 4.3+
9165 collect2name=`${CC} -print-prog-name=collect2`
9166 if test -f "$collect2name" &&
9167 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9168 then
9169 # We have reworked collect2
9170 :
9171 else
9172 # We have old collect2
9173 hardcode_direct=unsupported
9174 # It fails to find uninstalled libraries when the uninstalled
9175 # path is not listed in the libpath. Setting hardcode_minus_L
9176 # to unsupported forces relinking
9177 hardcode_minus_L=yes
9178 hardcode_libdir_flag_spec='-L$libdir'
9179 hardcode_libdir_separator=
9180 fi
9181 ;;
9182 esac
9183 shared_flag='-shared'
9184 if test "$aix_use_runtimelinking" = yes; then
9185 shared_flag="$shared_flag "'${wl}-G'
9186 fi
9187 link_all_deplibs=no
9188 else
9189 # not using gcc
9190 if test "$host_cpu" = ia64; then
9191 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9192 # chokes on -Wl,-G. The following line is correct:
9193 shared_flag='-G'
9194 else
9195 if test "$aix_use_runtimelinking" = yes; then
9196 shared_flag='${wl}-G'
9197 else
9198 shared_flag='${wl}-bM:SRE'
9199 fi
9200 fi
9201 fi
9202
9203 export_dynamic_flag_spec='${wl}-bexpall'
9204 # It seems that -bexpall does not export symbols beginning with
9205 # underscore (_), so it is better to generate a list of symbols to export.
9206 always_export_symbols=yes
9207 if test "$aix_use_runtimelinking" = yes; then
9208 # Warning - without using the other runtime loading flags (-brtl),
9209 # -berok will link without error, but may produce a broken library.
9210 allow_undefined_flag='-berok'
9211 # Determine the default libpath from the value encoded in an
9212 # empty executable.
9213 if test "${lt_cv_aix_libpath+set}" = set; then
9214 aix_libpath=$lt_cv_aix_libpath
9215 else
9216 if ${lt_cv_aix_libpath_+:} false; then :
9217 $as_echo_n "(cached) " >&6
9218 else
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9221
9222 int
9223 main ()
9224 {
9225
9226 ;
9227 return 0;
9228 }
9229 _ACEOF
9230 if ac_fn_c_try_link "$LINENO"; then :
9231
9232 lt_aix_libpath_sed='
9233 /Import File Strings/,/^$/ {
9234 /^0/ {
9235 s/^0 *\([^ ]*\) *$/\1/
9236 p
9237 }
9238 }'
9239 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9240 # Check for a 64-bit object if we didn't find anything.
9241 if test -z "$lt_cv_aix_libpath_"; then
9242 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9243 fi
9244 fi
9245 rm -f core conftest.err conftest.$ac_objext \
9246 conftest$ac_exeext conftest.$ac_ext
9247 if test -z "$lt_cv_aix_libpath_"; then
9248 lt_cv_aix_libpath_="/usr/lib:/lib"
9249 fi
9250
9251 fi
9252
9253 aix_libpath=$lt_cv_aix_libpath_
9254 fi
9255
9256 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9257 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"
9258 else
9259 if test "$host_cpu" = ia64; then
9260 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9261 allow_undefined_flag="-z nodefs"
9262 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"
9263 else
9264 # Determine the default libpath from the value encoded in an
9265 # empty executable.
9266 if test "${lt_cv_aix_libpath+set}" = set; then
9267 aix_libpath=$lt_cv_aix_libpath
9268 else
9269 if ${lt_cv_aix_libpath_+:} false; then :
9270 $as_echo_n "(cached) " >&6
9271 else
9272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273 /* end confdefs.h. */
9274
9275 int
9276 main ()
9277 {
9278
9279 ;
9280 return 0;
9281 }
9282 _ACEOF
9283 if ac_fn_c_try_link "$LINENO"; then :
9284
9285 lt_aix_libpath_sed='
9286 /Import File Strings/,/^$/ {
9287 /^0/ {
9288 s/^0 *\([^ ]*\) *$/\1/
9289 p
9290 }
9291 }'
9292 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9293 # Check for a 64-bit object if we didn't find anything.
9294 if test -z "$lt_cv_aix_libpath_"; then
9295 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9296 fi
9297 fi
9298 rm -f core conftest.err conftest.$ac_objext \
9299 conftest$ac_exeext conftest.$ac_ext
9300 if test -z "$lt_cv_aix_libpath_"; then
9301 lt_cv_aix_libpath_="/usr/lib:/lib"
9302 fi
9303
9304 fi
9305
9306 aix_libpath=$lt_cv_aix_libpath_
9307 fi
9308
9309 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9310 # Warning - without using the other run time loading flags,
9311 # -berok will link without error, but may produce a broken library.
9312 no_undefined_flag=' ${wl}-bernotok'
9313 allow_undefined_flag=' ${wl}-berok'
9314 if test "$with_gnu_ld" = yes; then
9315 # We only use this code for GNU lds that support --whole-archive.
9316 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9317 else
9318 # Exported symbols can be pulled into shared objects from archives
9319 whole_archive_flag_spec='$convenience'
9320 fi
9321 archive_cmds_need_lc=yes
9322 # This is similar to how AIX traditionally builds its shared libraries.
9323 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'
9324 fi
9325 fi
9326 ;;
9327
9328 amigaos*)
9329 case $host_cpu in
9330 powerpc)
9331 # see comment about AmigaOS4 .so support
9332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9333 archive_expsym_cmds=''
9334 ;;
9335 m68k)
9336 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)'
9337 hardcode_libdir_flag_spec='-L$libdir'
9338 hardcode_minus_L=yes
9339 ;;
9340 esac
9341 ;;
9342
9343 bsdi[45]*)
9344 export_dynamic_flag_spec=-rdynamic
9345 ;;
9346
9347 cygwin* | mingw* | pw32* | cegcc*)
9348 # When not using gcc, we currently assume that we are using
9349 # Microsoft Visual C++.
9350 # hardcode_libdir_flag_spec is actually meaningless, as there is
9351 # no search path for DLLs.
9352 case $cc_basename in
9353 cl*)
9354 # Native MSVC
9355 hardcode_libdir_flag_spec=' '
9356 allow_undefined_flag=unsupported
9357 always_export_symbols=yes
9358 file_list_spec='@'
9359 # Tell ltmain to make .lib files, not .a files.
9360 libext=lib
9361 # Tell ltmain to make .dll files, not .so files.
9362 shrext_cmds=".dll"
9363 # FIXME: Setting linknames here is a bad hack.
9364 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9365 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9366 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9367 else
9368 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9369 fi~
9370 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9371 linknames='
9372 # The linker will not automatically build a static lib if we build a DLL.
9373 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9374 enable_shared_with_static_runtimes=yes
9375 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9376 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9377 # Don't use ranlib
9378 old_postinstall_cmds='chmod 644 $oldlib'
9379 postlink_cmds='lt_outputfile="@OUTPUT@"~
9380 lt_tool_outputfile="@TOOL_OUTPUT@"~
9381 case $lt_outputfile in
9382 *.exe|*.EXE) ;;
9383 *)
9384 lt_outputfile="$lt_outputfile.exe"
9385 lt_tool_outputfile="$lt_tool_outputfile.exe"
9386 ;;
9387 esac~
9388 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9389 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9390 $RM "$lt_outputfile.manifest";
9391 fi'
9392 ;;
9393 *)
9394 # Assume MSVC wrapper
9395 hardcode_libdir_flag_spec=' '
9396 allow_undefined_flag=unsupported
9397 # Tell ltmain to make .lib files, not .a files.
9398 libext=lib
9399 # Tell ltmain to make .dll files, not .so files.
9400 shrext_cmds=".dll"
9401 # FIXME: Setting linknames here is a bad hack.
9402 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9403 # The linker will automatically build a .lib file if we build a DLL.
9404 old_archive_from_new_cmds='true'
9405 # FIXME: Should let the user specify the lib program.
9406 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9407 enable_shared_with_static_runtimes=yes
9408 ;;
9409 esac
9410 ;;
9411
9412 darwin* | rhapsody*)
9413
9414
9415 archive_cmds_need_lc=no
9416 hardcode_direct=no
9417 hardcode_automatic=yes
9418 hardcode_shlibpath_var=unsupported
9419 if test "$lt_cv_ld_force_load" = "yes"; then
9420 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\"`'
9421
9422 else
9423 whole_archive_flag_spec=''
9424 fi
9425 link_all_deplibs=yes
9426 allow_undefined_flag="$_lt_dar_allow_undefined"
9427 case $cc_basename in
9428 ifort*) _lt_dar_can_shared=yes ;;
9429 *) _lt_dar_can_shared=$GCC ;;
9430 esac
9431 if test "$_lt_dar_can_shared" = "yes"; then
9432 output_verbose_link_cmd=func_echo_all
9433 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9434 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9435 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}"
9436 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}"
9437
9438 else
9439 ld_shlibs=no
9440 fi
9441
9442 ;;
9443
9444 dgux*)
9445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446 hardcode_libdir_flag_spec='-L$libdir'
9447 hardcode_shlibpath_var=no
9448 ;;
9449
9450 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9451 # support. Future versions do this automatically, but an explicit c++rt0.o
9452 # does not break anything, and helps significantly (at the cost of a little
9453 # extra space).
9454 freebsd2.2*)
9455 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9456 hardcode_libdir_flag_spec='-R$libdir'
9457 hardcode_direct=yes
9458 hardcode_shlibpath_var=no
9459 ;;
9460
9461 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9462 freebsd2.*)
9463 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9464 hardcode_direct=yes
9465 hardcode_minus_L=yes
9466 hardcode_shlibpath_var=no
9467 ;;
9468
9469 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9470 freebsd* | dragonfly*)
9471 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9472 hardcode_libdir_flag_spec='-R$libdir'
9473 hardcode_direct=yes
9474 hardcode_shlibpath_var=no
9475 ;;
9476
9477 hpux9*)
9478 if test "$GCC" = yes; then
9479 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'
9480 else
9481 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'
9482 fi
9483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9484 hardcode_libdir_separator=:
9485 hardcode_direct=yes
9486
9487 # hardcode_minus_L: Not really in the search PATH,
9488 # but as the default location of the library.
9489 hardcode_minus_L=yes
9490 export_dynamic_flag_spec='${wl}-E'
9491 ;;
9492
9493 hpux10*)
9494 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9495 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9496 else
9497 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9498 fi
9499 if test "$with_gnu_ld" = no; then
9500 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9501 hardcode_libdir_separator=:
9502 hardcode_direct=yes
9503 hardcode_direct_absolute=yes
9504 export_dynamic_flag_spec='${wl}-E'
9505 # hardcode_minus_L: Not really in the search PATH,
9506 # but as the default location of the library.
9507 hardcode_minus_L=yes
9508 fi
9509 ;;
9510
9511 hpux11*)
9512 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9513 case $host_cpu in
9514 hppa*64*)
9515 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9516 ;;
9517 ia64*)
9518 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9519 ;;
9520 *)
9521 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9522 ;;
9523 esac
9524 else
9525 case $host_cpu in
9526 hppa*64*)
9527 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9528 ;;
9529 ia64*)
9530 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9531 ;;
9532 *)
9533
9534 # Older versions of the 11.00 compiler do not understand -b yet
9535 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9537 $as_echo_n "checking if $CC understands -b... " >&6; }
9538 if ${lt_cv_prog_compiler__b+:} false; then :
9539 $as_echo_n "(cached) " >&6
9540 else
9541 lt_cv_prog_compiler__b=no
9542 save_LDFLAGS="$LDFLAGS"
9543 LDFLAGS="$LDFLAGS -b"
9544 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9545 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9546 # The linker can only warn and ignore the option if not recognized
9547 # So say no if there are warnings
9548 if test -s conftest.err; then
9549 # Append any errors to the config.log.
9550 cat conftest.err 1>&5
9551 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9552 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9553 if diff conftest.exp conftest.er2 >/dev/null; then
9554 lt_cv_prog_compiler__b=yes
9555 fi
9556 else
9557 lt_cv_prog_compiler__b=yes
9558 fi
9559 fi
9560 $RM -r conftest*
9561 LDFLAGS="$save_LDFLAGS"
9562
9563 fi
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9565 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9566
9567 if test x"$lt_cv_prog_compiler__b" = xyes; then
9568 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9569 else
9570 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9571 fi
9572
9573 ;;
9574 esac
9575 fi
9576 if test "$with_gnu_ld" = no; then
9577 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9578 hardcode_libdir_separator=:
9579
9580 case $host_cpu in
9581 hppa*64*|ia64*)
9582 hardcode_direct=no
9583 hardcode_shlibpath_var=no
9584 ;;
9585 *)
9586 hardcode_direct=yes
9587 hardcode_direct_absolute=yes
9588 export_dynamic_flag_spec='${wl}-E'
9589
9590 # hardcode_minus_L: Not really in the search PATH,
9591 # but as the default location of the library.
9592 hardcode_minus_L=yes
9593 ;;
9594 esac
9595 fi
9596 ;;
9597
9598 irix5* | irix6* | nonstopux*)
9599 if test "$GCC" = yes; then
9600 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'
9601 # Try to use the -exported_symbol ld option, if it does not
9602 # work, assume that -exports_file does not work either and
9603 # implicitly export all symbols.
9604 # This should be the same for all languages, so no per-tag cache variable.
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9606 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9607 if ${lt_cv_irix_exported_symbol+:} false; then :
9608 $as_echo_n "(cached) " >&6
9609 else
9610 save_LDFLAGS="$LDFLAGS"
9611 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h. */
9614 int foo (void) { return 0; }
9615 _ACEOF
9616 if ac_fn_c_try_link "$LINENO"; then :
9617 lt_cv_irix_exported_symbol=yes
9618 else
9619 lt_cv_irix_exported_symbol=no
9620 fi
9621 rm -f core conftest.err conftest.$ac_objext \
9622 conftest$ac_exeext conftest.$ac_ext
9623 LDFLAGS="$save_LDFLAGS"
9624 fi
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9626 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9627 if test "$lt_cv_irix_exported_symbol" = yes; then
9628 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'
9629 fi
9630 else
9631 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'
9632 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'
9633 fi
9634 archive_cmds_need_lc='no'
9635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9636 hardcode_libdir_separator=:
9637 inherit_rpath=yes
9638 link_all_deplibs=yes
9639 ;;
9640
9641 netbsd* | netbsdelf*-gnu)
9642 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9643 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9644 else
9645 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9646 fi
9647 hardcode_libdir_flag_spec='-R$libdir'
9648 hardcode_direct=yes
9649 hardcode_shlibpath_var=no
9650 ;;
9651
9652 newsos6)
9653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9654 hardcode_direct=yes
9655 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9656 hardcode_libdir_separator=:
9657 hardcode_shlibpath_var=no
9658 ;;
9659
9660 *nto* | *qnx*)
9661 ;;
9662
9663 openbsd*)
9664 if test -f /usr/libexec/ld.so; then
9665 hardcode_direct=yes
9666 hardcode_shlibpath_var=no
9667 hardcode_direct_absolute=yes
9668 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9669 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9670 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9671 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9672 export_dynamic_flag_spec='${wl}-E'
9673 else
9674 case $host_os in
9675 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9676 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9677 hardcode_libdir_flag_spec='-R$libdir'
9678 ;;
9679 *)
9680 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9681 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9682 ;;
9683 esac
9684 fi
9685 else
9686 ld_shlibs=no
9687 fi
9688 ;;
9689
9690 os2*)
9691 hardcode_libdir_flag_spec='-L$libdir'
9692 hardcode_minus_L=yes
9693 allow_undefined_flag=unsupported
9694 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'
9695 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9696 ;;
9697
9698 osf3*)
9699 if test "$GCC" = yes; then
9700 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9701 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'
9702 else
9703 allow_undefined_flag=' -expect_unresolved \*'
9704 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'
9705 fi
9706 archive_cmds_need_lc='no'
9707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9708 hardcode_libdir_separator=:
9709 ;;
9710
9711 osf4* | osf5*) # as osf3* with the addition of -msym flag
9712 if test "$GCC" = yes; then
9713 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9714 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'
9715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9716 else
9717 allow_undefined_flag=' -expect_unresolved \*'
9718 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'
9719 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~
9720 $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'
9721
9722 # Both c and cxx compiler support -rpath directly
9723 hardcode_libdir_flag_spec='-rpath $libdir'
9724 fi
9725 archive_cmds_need_lc='no'
9726 hardcode_libdir_separator=:
9727 ;;
9728
9729 solaris*)
9730 no_undefined_flag=' -z defs'
9731 if test "$GCC" = yes; then
9732 wlarc='${wl}'
9733 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9734 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9735 $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'
9736 else
9737 case `$CC -V 2>&1` in
9738 *"Compilers 5.0"*)
9739 wlarc=''
9740 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9742 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9743 ;;
9744 *)
9745 wlarc='${wl}'
9746 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9747 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9748 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9749 ;;
9750 esac
9751 fi
9752 hardcode_libdir_flag_spec='-R$libdir'
9753 hardcode_shlibpath_var=no
9754 case $host_os in
9755 solaris2.[0-5] | solaris2.[0-5].*) ;;
9756 *)
9757 # The compiler driver will combine and reorder linker options,
9758 # but understands `-z linker_flag'. GCC discards it without `$wl',
9759 # but is careful enough not to reorder.
9760 # Supported since Solaris 2.6 (maybe 2.5.1?)
9761 if test "$GCC" = yes; then
9762 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9763 else
9764 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9765 fi
9766 ;;
9767 esac
9768 link_all_deplibs=yes
9769 ;;
9770
9771 sunos4*)
9772 if test "x$host_vendor" = xsequent; then
9773 # Use $CC to link under sequent, because it throws in some extra .o
9774 # files that make .init and .fini sections work.
9775 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9776 else
9777 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9778 fi
9779 hardcode_libdir_flag_spec='-L$libdir'
9780 hardcode_direct=yes
9781 hardcode_minus_L=yes
9782 hardcode_shlibpath_var=no
9783 ;;
9784
9785 sysv4)
9786 case $host_vendor in
9787 sni)
9788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9789 hardcode_direct=yes # is this really true???
9790 ;;
9791 siemens)
9792 ## LD is ld it makes a PLAMLIB
9793 ## CC just makes a GrossModule.
9794 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9795 reload_cmds='$CC -r -o $output$reload_objs'
9796 hardcode_direct=no
9797 ;;
9798 motorola)
9799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9800 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9801 ;;
9802 esac
9803 runpath_var='LD_RUN_PATH'
9804 hardcode_shlibpath_var=no
9805 ;;
9806
9807 sysv4.3*)
9808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9809 hardcode_shlibpath_var=no
9810 export_dynamic_flag_spec='-Bexport'
9811 ;;
9812
9813 sysv4*MP*)
9814 if test -d /usr/nec; then
9815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9816 hardcode_shlibpath_var=no
9817 runpath_var=LD_RUN_PATH
9818 hardcode_runpath_var=yes
9819 ld_shlibs=yes
9820 fi
9821 ;;
9822
9823 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9824 no_undefined_flag='${wl}-z,text'
9825 archive_cmds_need_lc=no
9826 hardcode_shlibpath_var=no
9827 runpath_var='LD_RUN_PATH'
9828
9829 if test "$GCC" = yes; then
9830 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9831 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9832 else
9833 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9834 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9835 fi
9836 ;;
9837
9838 sysv5* | sco3.2v5* | sco5v6*)
9839 # Note: We can NOT use -z defs as we might desire, because we do not
9840 # link with -lc, and that would cause any symbols used from libc to
9841 # always be unresolved, which means just about no library would
9842 # ever link correctly. If we're not using GNU ld we use -z text
9843 # though, which does catch some bad symbols but isn't as heavy-handed
9844 # as -z defs.
9845 no_undefined_flag='${wl}-z,text'
9846 allow_undefined_flag='${wl}-z,nodefs'
9847 archive_cmds_need_lc=no
9848 hardcode_shlibpath_var=no
9849 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9850 hardcode_libdir_separator=':'
9851 link_all_deplibs=yes
9852 export_dynamic_flag_spec='${wl}-Bexport'
9853 runpath_var='LD_RUN_PATH'
9854
9855 if test "$GCC" = yes; then
9856 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9857 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9858 else
9859 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9860 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9861 fi
9862 ;;
9863
9864 uts4*)
9865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9866 hardcode_libdir_flag_spec='-L$libdir'
9867 hardcode_shlibpath_var=no
9868 ;;
9869
9870 *)
9871 ld_shlibs=no
9872 ;;
9873 esac
9874
9875 if test x$host_vendor = xsni; then
9876 case $host in
9877 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9878 export_dynamic_flag_spec='${wl}-Blargedynsym'
9879 ;;
9880 esac
9881 fi
9882 fi
9883
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9885 $as_echo "$ld_shlibs" >&6; }
9886 test "$ld_shlibs" = no && can_build_shared=no
9887
9888 with_gnu_ld=$with_gnu_ld
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904 #
9905 # Do we need to explicitly link libc?
9906 #
9907 case "x$archive_cmds_need_lc" in
9908 x|xyes)
9909 # Assume -lc should be added
9910 archive_cmds_need_lc=yes
9911
9912 if test "$enable_shared" = yes && test "$GCC" = yes; then
9913 case $archive_cmds in
9914 *'~'*)
9915 # FIXME: we may have to deal with multi-command sequences.
9916 ;;
9917 '$CC '*)
9918 # Test whether the compiler implicitly links with -lc since on some
9919 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9920 # to ld, don't add -lc before -lgcc.
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9922 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9923 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9924 $as_echo_n "(cached) " >&6
9925 else
9926 $RM conftest*
9927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9928
9929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9930 (eval $ac_compile) 2>&5
9931 ac_status=$?
9932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9933 test $ac_status = 0; } 2>conftest.err; then
9934 soname=conftest
9935 lib=conftest
9936 libobjs=conftest.$ac_objext
9937 deplibs=
9938 wl=$lt_prog_compiler_wl
9939 pic_flag=$lt_prog_compiler_pic
9940 compiler_flags=-v
9941 linker_flags=-v
9942 verstring=
9943 output_objdir=.
9944 libname=conftest
9945 lt_save_allow_undefined_flag=$allow_undefined_flag
9946 allow_undefined_flag=
9947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9948 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9949 ac_status=$?
9950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9951 test $ac_status = 0; }
9952 then
9953 lt_cv_archive_cmds_need_lc=no
9954 else
9955 lt_cv_archive_cmds_need_lc=yes
9956 fi
9957 allow_undefined_flag=$lt_save_allow_undefined_flag
9958 else
9959 cat conftest.err 1>&5
9960 fi
9961 $RM conftest*
9962
9963 fi
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9965 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9966 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9967 ;;
9968 esac
9969 fi
9970 ;;
9971 esac
9972
9973
9974
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10125 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10126
10127 if test "$GCC" = yes; then
10128 case $host_os in
10129 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10130 *) lt_awk_arg="/^libraries:/" ;;
10131 esac
10132 case $host_os in
10133 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10134 *) lt_sed_strip_eq="s,=/,/,g" ;;
10135 esac
10136 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10137 case $lt_search_path_spec in
10138 *\;*)
10139 # if the path contains ";" then we assume it to be the separator
10140 # otherwise default to the standard path separator (i.e. ":") - it is
10141 # assumed that no part of a normal pathname contains ";" but that should
10142 # okay in the real world where ";" in dirpaths is itself problematic.
10143 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10144 ;;
10145 *)
10146 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10147 ;;
10148 esac
10149 # Ok, now we have the path, separated by spaces, we can step through it
10150 # and add multilib dir if necessary.
10151 lt_tmp_lt_search_path_spec=
10152 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10153 for lt_sys_path in $lt_search_path_spec; do
10154 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10155 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10156 else
10157 test -d "$lt_sys_path" && \
10158 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10159 fi
10160 done
10161 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10162 BEGIN {RS=" "; FS="/|\n";} {
10163 lt_foo="";
10164 lt_count=0;
10165 for (lt_i = NF; lt_i > 0; lt_i--) {
10166 if ($lt_i != "" && $lt_i != ".") {
10167 if ($lt_i == "..") {
10168 lt_count++;
10169 } else {
10170 if (lt_count == 0) {
10171 lt_foo="/" $lt_i lt_foo;
10172 } else {
10173 lt_count--;
10174 }
10175 }
10176 }
10177 }
10178 if (lt_foo != "") { lt_freq[lt_foo]++; }
10179 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10180 }'`
10181 # AWK program above erroneously prepends '/' to C:/dos/paths
10182 # for these hosts.
10183 case $host_os in
10184 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10185 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10186 esac
10187 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10188 else
10189 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10190 fi
10191 library_names_spec=
10192 libname_spec='lib$name'
10193 soname_spec=
10194 shrext_cmds=".so"
10195 postinstall_cmds=
10196 postuninstall_cmds=
10197 finish_cmds=
10198 finish_eval=
10199 shlibpath_var=
10200 shlibpath_overrides_runpath=unknown
10201 version_type=none
10202 dynamic_linker="$host_os ld.so"
10203 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10204 need_lib_prefix=unknown
10205 hardcode_into_libs=no
10206
10207 # when you set need_version to no, make sure it does not cause -set_version
10208 # flags to be left without arguments
10209 need_version=unknown
10210
10211 case $host_os in
10212 aix3*)
10213 version_type=linux # correct to gnu/linux during the next big refactor
10214 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10215 shlibpath_var=LIBPATH
10216
10217 # AIX 3 has no versioning support, so we append a major version to the name.
10218 soname_spec='${libname}${release}${shared_ext}$major'
10219 ;;
10220
10221 aix[4-9]*)
10222 version_type=linux # correct to gnu/linux during the next big refactor
10223 need_lib_prefix=no
10224 need_version=no
10225 hardcode_into_libs=yes
10226 if test "$host_cpu" = ia64; then
10227 # AIX 5 supports IA64
10228 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10229 shlibpath_var=LD_LIBRARY_PATH
10230 else
10231 # With GCC up to 2.95.x, collect2 would create an import file
10232 # for dependence libraries. The import file would start with
10233 # the line `#! .'. This would cause the generated library to
10234 # depend on `.', always an invalid library. This was fixed in
10235 # development snapshots of GCC prior to 3.0.
10236 case $host_os in
10237 aix4 | aix4.[01] | aix4.[01].*)
10238 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10239 echo ' yes '
10240 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10241 :
10242 else
10243 can_build_shared=no
10244 fi
10245 ;;
10246 esac
10247 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10248 # soname into executable. Probably we can add versioning support to
10249 # collect2, so additional links can be useful in future.
10250 if test "$aix_use_runtimelinking" = yes; then
10251 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10252 # instead of lib<name>.a to let people know that these are not
10253 # typical AIX shared libraries.
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10255 else
10256 # We preserve .a as extension for shared libraries through AIX4.2
10257 # and later when we are not doing run time linking.
10258 library_names_spec='${libname}${release}.a $libname.a'
10259 soname_spec='${libname}${release}${shared_ext}$major'
10260 fi
10261 shlibpath_var=LIBPATH
10262 fi
10263 ;;
10264
10265 amigaos*)
10266 case $host_cpu in
10267 powerpc)
10268 # Since July 2007 AmigaOS4 officially supports .so libraries.
10269 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10271 ;;
10272 m68k)
10273 library_names_spec='$libname.ixlibrary $libname.a'
10274 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10275 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'
10276 ;;
10277 esac
10278 ;;
10279
10280 beos*)
10281 library_names_spec='${libname}${shared_ext}'
10282 dynamic_linker="$host_os ld.so"
10283 shlibpath_var=LIBRARY_PATH
10284 ;;
10285
10286 bsdi[45]*)
10287 version_type=linux # correct to gnu/linux during the next big refactor
10288 need_version=no
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290 soname_spec='${libname}${release}${shared_ext}$major'
10291 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10292 shlibpath_var=LD_LIBRARY_PATH
10293 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10294 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10295 # the default ld.so.conf also contains /usr/contrib/lib and
10296 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10297 # libtool to hard-code these into programs
10298 ;;
10299
10300 cygwin* | mingw* | pw32* | cegcc*)
10301 version_type=windows
10302 shrext_cmds=".dll"
10303 need_version=no
10304 need_lib_prefix=no
10305
10306 case $GCC,$cc_basename in
10307 yes,*)
10308 # gcc
10309 library_names_spec='$libname.dll.a'
10310 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10311 postinstall_cmds='base_file=`basename \${file}`~
10312 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10313 dldir=$destdir/`dirname \$dlpath`~
10314 test -d \$dldir || mkdir -p \$dldir~
10315 $install_prog $dir/$dlname \$dldir/$dlname~
10316 chmod a+x \$dldir/$dlname~
10317 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10318 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10319 fi'
10320 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10321 dlpath=$dir/\$dldll~
10322 $RM \$dlpath'
10323 shlibpath_overrides_runpath=yes
10324
10325 case $host_os in
10326 cygwin*)
10327 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10328 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10329
10330 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10331 ;;
10332 mingw* | cegcc*)
10333 # MinGW DLLs use traditional 'lib' prefix
10334 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10335 ;;
10336 pw32*)
10337 # pw32 DLLs use 'pw' prefix rather than 'lib'
10338 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10339 ;;
10340 esac
10341 dynamic_linker='Win32 ld.exe'
10342 ;;
10343
10344 *,cl*)
10345 # Native MSVC
10346 libname_spec='$name'
10347 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10348 library_names_spec='${libname}.dll.lib'
10349
10350 case $build_os in
10351 mingw*)
10352 sys_lib_search_path_spec=
10353 lt_save_ifs=$IFS
10354 IFS=';'
10355 for lt_path in $LIB
10356 do
10357 IFS=$lt_save_ifs
10358 # Let DOS variable expansion print the short 8.3 style file name.
10359 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10360 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10361 done
10362 IFS=$lt_save_ifs
10363 # Convert to MSYS style.
10364 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10365 ;;
10366 cygwin*)
10367 # Convert to unix form, then to dos form, then back to unix form
10368 # but this time dos style (no spaces!) so that the unix form looks
10369 # like /cygdrive/c/PROGRA~1:/cygdr...
10370 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10371 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10372 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10373 ;;
10374 *)
10375 sys_lib_search_path_spec="$LIB"
10376 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10377 # It is most probably a Windows format PATH.
10378 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10379 else
10380 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10381 fi
10382 # FIXME: find the short name or the path components, as spaces are
10383 # common. (e.g. "Program Files" -> "PROGRA~1")
10384 ;;
10385 esac
10386
10387 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10388 postinstall_cmds='base_file=`basename \${file}`~
10389 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10390 dldir=$destdir/`dirname \$dlpath`~
10391 test -d \$dldir || mkdir -p \$dldir~
10392 $install_prog $dir/$dlname \$dldir/$dlname'
10393 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10394 dlpath=$dir/\$dldll~
10395 $RM \$dlpath'
10396 shlibpath_overrides_runpath=yes
10397 dynamic_linker='Win32 link.exe'
10398 ;;
10399
10400 *)
10401 # Assume MSVC wrapper
10402 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10403 dynamic_linker='Win32 ld.exe'
10404 ;;
10405 esac
10406 # FIXME: first we should search . and the directory the executable is in
10407 shlibpath_var=PATH
10408 ;;
10409
10410 darwin* | rhapsody*)
10411 dynamic_linker="$host_os dyld"
10412 version_type=darwin
10413 need_lib_prefix=no
10414 need_version=no
10415 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10416 soname_spec='${libname}${release}${major}$shared_ext'
10417 shlibpath_overrides_runpath=yes
10418 shlibpath_var=DYLD_LIBRARY_PATH
10419 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10420
10421 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10422 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10423 ;;
10424
10425 dgux*)
10426 version_type=linux # correct to gnu/linux during the next big refactor
10427 need_lib_prefix=no
10428 need_version=no
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10430 soname_spec='${libname}${release}${shared_ext}$major'
10431 shlibpath_var=LD_LIBRARY_PATH
10432 ;;
10433
10434 freebsd* | dragonfly*)
10435 # DragonFly does not have aout. When/if they implement a new
10436 # versioning mechanism, adjust this.
10437 if test -x /usr/bin/objformat; then
10438 objformat=`/usr/bin/objformat`
10439 else
10440 case $host_os in
10441 freebsd[23].*) objformat=aout ;;
10442 *) objformat=elf ;;
10443 esac
10444 fi
10445 version_type=freebsd-$objformat
10446 case $version_type in
10447 freebsd-elf*)
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10449 need_version=no
10450 need_lib_prefix=no
10451 ;;
10452 freebsd-*)
10453 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10454 need_version=yes
10455 ;;
10456 esac
10457 shlibpath_var=LD_LIBRARY_PATH
10458 case $host_os in
10459 freebsd2.*)
10460 shlibpath_overrides_runpath=yes
10461 ;;
10462 freebsd3.[01]* | freebsdelf3.[01]*)
10463 shlibpath_overrides_runpath=yes
10464 hardcode_into_libs=yes
10465 ;;
10466 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10467 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10468 shlibpath_overrides_runpath=no
10469 hardcode_into_libs=yes
10470 ;;
10471 *) # from 4.6 on, and DragonFly
10472 shlibpath_overrides_runpath=yes
10473 hardcode_into_libs=yes
10474 ;;
10475 esac
10476 ;;
10477
10478 gnu*)
10479 version_type=linux # correct to gnu/linux during the next big refactor
10480 need_lib_prefix=no
10481 need_version=no
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10483 soname_spec='${libname}${release}${shared_ext}$major'
10484 shlibpath_var=LD_LIBRARY_PATH
10485 shlibpath_overrides_runpath=no
10486 hardcode_into_libs=yes
10487 ;;
10488
10489 haiku*)
10490 version_type=linux # correct to gnu/linux during the next big refactor
10491 need_lib_prefix=no
10492 need_version=no
10493 dynamic_linker="$host_os runtime_loader"
10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10495 soname_spec='${libname}${release}${shared_ext}$major'
10496 shlibpath_var=LIBRARY_PATH
10497 shlibpath_overrides_runpath=yes
10498 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10499 hardcode_into_libs=yes
10500 ;;
10501
10502 hpux9* | hpux10* | hpux11*)
10503 # Give a soname corresponding to the major version so that dld.sl refuses to
10504 # link against other versions.
10505 version_type=sunos
10506 need_lib_prefix=no
10507 need_version=no
10508 case $host_cpu in
10509 ia64*)
10510 shrext_cmds='.so'
10511 hardcode_into_libs=yes
10512 dynamic_linker="$host_os dld.so"
10513 shlibpath_var=LD_LIBRARY_PATH
10514 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10516 soname_spec='${libname}${release}${shared_ext}$major'
10517 if test "X$HPUX_IA64_MODE" = X32; then
10518 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10519 else
10520 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10521 fi
10522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10523 ;;
10524 hppa*64*)
10525 shrext_cmds='.sl'
10526 hardcode_into_libs=yes
10527 dynamic_linker="$host_os dld.sl"
10528 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10531 soname_spec='${libname}${release}${shared_ext}$major'
10532 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10534 ;;
10535 *)
10536 shrext_cmds='.sl'
10537 dynamic_linker="$host_os dld.sl"
10538 shlibpath_var=SHLIB_PATH
10539 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541 soname_spec='${libname}${release}${shared_ext}$major'
10542 ;;
10543 esac
10544 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10545 postinstall_cmds='chmod 555 $lib'
10546 # or fails outright, so override atomically:
10547 install_override_mode=555
10548 ;;
10549
10550 interix[3-9]*)
10551 version_type=linux # correct to gnu/linux during the next big refactor
10552 need_lib_prefix=no
10553 need_version=no
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10555 soname_spec='${libname}${release}${shared_ext}$major'
10556 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 shlibpath_overrides_runpath=no
10559 hardcode_into_libs=yes
10560 ;;
10561
10562 irix5* | irix6* | nonstopux*)
10563 case $host_os in
10564 nonstopux*) version_type=nonstopux ;;
10565 *)
10566 if test "$lt_cv_prog_gnu_ld" = yes; then
10567 version_type=linux # correct to gnu/linux during the next big refactor
10568 else
10569 version_type=irix
10570 fi ;;
10571 esac
10572 need_lib_prefix=no
10573 need_version=no
10574 soname_spec='${libname}${release}${shared_ext}$major'
10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10576 case $host_os in
10577 irix5* | nonstopux*)
10578 libsuff= shlibsuff=
10579 ;;
10580 *)
10581 case $LD in # libtool.m4 will add one of these switches to LD
10582 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10583 libsuff= shlibsuff= libmagic=32-bit;;
10584 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10585 libsuff=32 shlibsuff=N32 libmagic=N32;;
10586 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10587 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10588 *) libsuff= shlibsuff= libmagic=never-match;;
10589 esac
10590 ;;
10591 esac
10592 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10593 shlibpath_overrides_runpath=no
10594 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10595 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10596 hardcode_into_libs=yes
10597 ;;
10598
10599 # No shared lib support for Linux oldld, aout, or coff.
10600 linux*oldld* | linux*aout* | linux*coff*)
10601 dynamic_linker=no
10602 ;;
10603
10604 # This must be glibc/ELF.
10605 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10606 version_type=linux # correct to gnu/linux during the next big refactor
10607 need_lib_prefix=no
10608 need_version=no
10609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10610 soname_spec='${libname}${release}${shared_ext}$major'
10611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10612 shlibpath_var=LD_LIBRARY_PATH
10613 shlibpath_overrides_runpath=no
10614
10615 # Some binutils ld are patched to set DT_RUNPATH
10616 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619 lt_cv_shlibpath_overrides_runpath=no
10620 save_LDFLAGS=$LDFLAGS
10621 save_libdir=$libdir
10622 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10623 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h. */
10626
10627 int
10628 main ()
10629 {
10630
10631 ;
10632 return 0;
10633 }
10634 _ACEOF
10635 if ac_fn_c_try_link "$LINENO"; then :
10636 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10637 lt_cv_shlibpath_overrides_runpath=yes
10638 fi
10639 fi
10640 rm -f core conftest.err conftest.$ac_objext \
10641 conftest$ac_exeext conftest.$ac_ext
10642 LDFLAGS=$save_LDFLAGS
10643 libdir=$save_libdir
10644
10645 fi
10646
10647 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10648
10649 # This implies no fast_install, which is unacceptable.
10650 # Some rework will be needed to allow for fast_install
10651 # before this can be enabled.
10652 hardcode_into_libs=yes
10653
10654 # Append ld.so.conf contents to the search path
10655 if test -f /etc/ld.so.conf; then
10656 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' ' '`
10657 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10658 fi
10659
10660 # We used to test for /lib/ld.so.1 and disable shared libraries on
10661 # powerpc, because MkLinux only supported shared libraries with the
10662 # GNU dynamic linker. Since this was broken with cross compilers,
10663 # most powerpc-linux boxes support dynamic linking these days and
10664 # people can always --disable-shared, the test was removed, and we
10665 # assume the GNU/Linux dynamic linker is in use.
10666 dynamic_linker='GNU/Linux ld.so'
10667 ;;
10668
10669 netbsdelf*-gnu)
10670 version_type=linux
10671 need_lib_prefix=no
10672 need_version=no
10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10674 soname_spec='${libname}${release}${shared_ext}$major'
10675 shlibpath_var=LD_LIBRARY_PATH
10676 shlibpath_overrides_runpath=no
10677 hardcode_into_libs=yes
10678 dynamic_linker='NetBSD ld.elf_so'
10679 ;;
10680
10681 netbsd*)
10682 version_type=sunos
10683 need_lib_prefix=no
10684 need_version=no
10685 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10688 dynamic_linker='NetBSD (a.out) ld.so'
10689 else
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10691 soname_spec='${libname}${release}${shared_ext}$major'
10692 dynamic_linker='NetBSD ld.elf_so'
10693 fi
10694 shlibpath_var=LD_LIBRARY_PATH
10695 shlibpath_overrides_runpath=yes
10696 hardcode_into_libs=yes
10697 ;;
10698
10699 newsos6)
10700 version_type=linux # correct to gnu/linux during the next big refactor
10701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10702 shlibpath_var=LD_LIBRARY_PATH
10703 shlibpath_overrides_runpath=yes
10704 ;;
10705
10706 *nto* | *qnx*)
10707 version_type=qnx
10708 need_lib_prefix=no
10709 need_version=no
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10711 soname_spec='${libname}${release}${shared_ext}$major'
10712 shlibpath_var=LD_LIBRARY_PATH
10713 shlibpath_overrides_runpath=no
10714 hardcode_into_libs=yes
10715 dynamic_linker='ldqnx.so'
10716 ;;
10717
10718 openbsd*)
10719 version_type=sunos
10720 sys_lib_dlsearch_path_spec="/usr/lib"
10721 need_lib_prefix=no
10722 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10723 case $host_os in
10724 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10725 *) need_version=no ;;
10726 esac
10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10728 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10729 shlibpath_var=LD_LIBRARY_PATH
10730 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10731 case $host_os in
10732 openbsd2.[89] | openbsd2.[89].*)
10733 shlibpath_overrides_runpath=no
10734 ;;
10735 *)
10736 shlibpath_overrides_runpath=yes
10737 ;;
10738 esac
10739 else
10740 shlibpath_overrides_runpath=yes
10741 fi
10742 ;;
10743
10744 os2*)
10745 libname_spec='$name'
10746 shrext_cmds=".dll"
10747 need_lib_prefix=no
10748 library_names_spec='$libname${shared_ext} $libname.a'
10749 dynamic_linker='OS/2 ld.exe'
10750 shlibpath_var=LIBPATH
10751 ;;
10752
10753 osf3* | osf4* | osf5*)
10754 version_type=osf
10755 need_lib_prefix=no
10756 need_version=no
10757 soname_spec='${libname}${release}${shared_ext}$major'
10758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10761 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10762 ;;
10763
10764 rdos*)
10765 dynamic_linker=no
10766 ;;
10767
10768 solaris*)
10769 version_type=linux # correct to gnu/linux during the next big refactor
10770 need_lib_prefix=no
10771 need_version=no
10772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773 soname_spec='${libname}${release}${shared_ext}$major'
10774 shlibpath_var=LD_LIBRARY_PATH
10775 shlibpath_overrides_runpath=yes
10776 hardcode_into_libs=yes
10777 # ldd complains unless libraries are executable
10778 postinstall_cmds='chmod +x $lib'
10779 ;;
10780
10781 sunos4*)
10782 version_type=sunos
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10784 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10785 shlibpath_var=LD_LIBRARY_PATH
10786 shlibpath_overrides_runpath=yes
10787 if test "$with_gnu_ld" = yes; then
10788 need_lib_prefix=no
10789 fi
10790 need_version=yes
10791 ;;
10792
10793 sysv4 | sysv4.3*)
10794 version_type=linux # correct to gnu/linux during the next big refactor
10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10796 soname_spec='${libname}${release}${shared_ext}$major'
10797 shlibpath_var=LD_LIBRARY_PATH
10798 case $host_vendor in
10799 sni)
10800 shlibpath_overrides_runpath=no
10801 need_lib_prefix=no
10802 runpath_var=LD_RUN_PATH
10803 ;;
10804 siemens)
10805 need_lib_prefix=no
10806 ;;
10807 motorola)
10808 need_lib_prefix=no
10809 need_version=no
10810 shlibpath_overrides_runpath=no
10811 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10812 ;;
10813 esac
10814 ;;
10815
10816 sysv4*MP*)
10817 if test -d /usr/nec ;then
10818 version_type=linux # correct to gnu/linux during the next big refactor
10819 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10820 soname_spec='$libname${shared_ext}.$major'
10821 shlibpath_var=LD_LIBRARY_PATH
10822 fi
10823 ;;
10824
10825 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10826 version_type=freebsd-elf
10827 need_lib_prefix=no
10828 need_version=no
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10830 soname_spec='${libname}${release}${shared_ext}$major'
10831 shlibpath_var=LD_LIBRARY_PATH
10832 shlibpath_overrides_runpath=yes
10833 hardcode_into_libs=yes
10834 if test "$with_gnu_ld" = yes; then
10835 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10836 else
10837 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10838 case $host_os in
10839 sco3.2v5*)
10840 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10841 ;;
10842 esac
10843 fi
10844 sys_lib_dlsearch_path_spec='/usr/lib'
10845 ;;
10846
10847 tpf*)
10848 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10849 version_type=linux # correct to gnu/linux during the next big refactor
10850 need_lib_prefix=no
10851 need_version=no
10852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10853 shlibpath_var=LD_LIBRARY_PATH
10854 shlibpath_overrides_runpath=no
10855 hardcode_into_libs=yes
10856 ;;
10857
10858 uts4*)
10859 version_type=linux # correct to gnu/linux during the next big refactor
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10861 soname_spec='${libname}${release}${shared_ext}$major'
10862 shlibpath_var=LD_LIBRARY_PATH
10863 ;;
10864
10865 *)
10866 dynamic_linker=no
10867 ;;
10868 esac
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10870 $as_echo "$dynamic_linker" >&6; }
10871 test "$dynamic_linker" = no && can_build_shared=no
10872
10873 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10874 if test "$GCC" = yes; then
10875 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10876 fi
10877
10878 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10879 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10880 fi
10881 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10882 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10883 fi
10884
10885
10886
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10977 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10978 hardcode_action=
10979 if test -n "$hardcode_libdir_flag_spec" ||
10980 test -n "$runpath_var" ||
10981 test "X$hardcode_automatic" = "Xyes" ; then
10982
10983 # We can hardcode non-existent directories.
10984 if test "$hardcode_direct" != no &&
10985 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10986 # have to relink, otherwise we might link with an installed library
10987 # when we should be linking with a yet-to-be-installed one
10988 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10989 test "$hardcode_minus_L" != no; then
10990 # Linking always hardcodes the temporary library directory.
10991 hardcode_action=relink
10992 else
10993 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10994 hardcode_action=immediate
10995 fi
10996 else
10997 # We cannot hardcode anything, or else we can only hardcode existing
10998 # directories.
10999 hardcode_action=unsupported
11000 fi
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11002 $as_echo "$hardcode_action" >&6; }
11003
11004 if test "$hardcode_action" = relink ||
11005 test "$inherit_rpath" = yes; then
11006 # Fast installation is not supported
11007 enable_fast_install=no
11008 elif test "$shlibpath_overrides_runpath" = yes ||
11009 test "$enable_shared" = no; then
11010 # Fast installation is not necessary
11011 enable_fast_install=needless
11012 fi
11013
11014
11015
11016
11017
11018
11019 if test "x$enable_dlopen" != xyes; then
11020 enable_dlopen=unknown
11021 enable_dlopen_self=unknown
11022 enable_dlopen_self_static=unknown
11023 else
11024 lt_cv_dlopen=no
11025 lt_cv_dlopen_libs=
11026
11027 case $host_os in
11028 beos*)
11029 lt_cv_dlopen="load_add_on"
11030 lt_cv_dlopen_libs=
11031 lt_cv_dlopen_self=yes
11032 ;;
11033
11034 mingw* | pw32* | cegcc*)
11035 lt_cv_dlopen="LoadLibrary"
11036 lt_cv_dlopen_libs=
11037 ;;
11038
11039 cygwin*)
11040 lt_cv_dlopen="dlopen"
11041 lt_cv_dlopen_libs=
11042 ;;
11043
11044 darwin*)
11045 # if libdl is installed we need to link against it
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11047 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11048 if ${ac_cv_lib_dl_dlopen+:} false; then :
11049 $as_echo_n "(cached) " >&6
11050 else
11051 ac_check_lib_save_LIBS=$LIBS
11052 LIBS="-ldl $LIBS"
11053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h. */
11055
11056 /* Override any GCC internal prototype to avoid an error.
11057 Use char because int might match the return type of a GCC
11058 builtin and then its argument prototype would still apply. */
11059 #ifdef __cplusplus
11060 extern "C"
11061 #endif
11062 char dlopen ();
11063 int
11064 main ()
11065 {
11066 return dlopen ();
11067 ;
11068 return 0;
11069 }
11070 _ACEOF
11071 if ac_fn_c_try_link "$LINENO"; then :
11072 ac_cv_lib_dl_dlopen=yes
11073 else
11074 ac_cv_lib_dl_dlopen=no
11075 fi
11076 rm -f core conftest.err conftest.$ac_objext \
11077 conftest$ac_exeext conftest.$ac_ext
11078 LIBS=$ac_check_lib_save_LIBS
11079 fi
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11081 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11082 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11083 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11084 else
11085
11086 lt_cv_dlopen="dyld"
11087 lt_cv_dlopen_libs=
11088 lt_cv_dlopen_self=yes
11089
11090 fi
11091
11092 ;;
11093
11094 *)
11095 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11096 if test "x$ac_cv_func_shl_load" = xyes; then :
11097 lt_cv_dlopen="shl_load"
11098 else
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11100 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11101 if ${ac_cv_lib_dld_shl_load+:} false; then :
11102 $as_echo_n "(cached) " >&6
11103 else
11104 ac_check_lib_save_LIBS=$LIBS
11105 LIBS="-ldld $LIBS"
11106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h. */
11108
11109 /* Override any GCC internal prototype to avoid an error.
11110 Use char because int might match the return type of a GCC
11111 builtin and then its argument prototype would still apply. */
11112 #ifdef __cplusplus
11113 extern "C"
11114 #endif
11115 char shl_load ();
11116 int
11117 main ()
11118 {
11119 return shl_load ();
11120 ;
11121 return 0;
11122 }
11123 _ACEOF
11124 if ac_fn_c_try_link "$LINENO"; then :
11125 ac_cv_lib_dld_shl_load=yes
11126 else
11127 ac_cv_lib_dld_shl_load=no
11128 fi
11129 rm -f core conftest.err conftest.$ac_objext \
11130 conftest$ac_exeext conftest.$ac_ext
11131 LIBS=$ac_check_lib_save_LIBS
11132 fi
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11134 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11135 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11136 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11137 else
11138 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11139 if test "x$ac_cv_func_dlopen" = xyes; then :
11140 lt_cv_dlopen="dlopen"
11141 else
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11143 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11144 if ${ac_cv_lib_dl_dlopen+:} false; then :
11145 $as_echo_n "(cached) " >&6
11146 else
11147 ac_check_lib_save_LIBS=$LIBS
11148 LIBS="-ldl $LIBS"
11149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150 /* end confdefs.h. */
11151
11152 /* Override any GCC internal prototype to avoid an error.
11153 Use char because int might match the return type of a GCC
11154 builtin and then its argument prototype would still apply. */
11155 #ifdef __cplusplus
11156 extern "C"
11157 #endif
11158 char dlopen ();
11159 int
11160 main ()
11161 {
11162 return dlopen ();
11163 ;
11164 return 0;
11165 }
11166 _ACEOF
11167 if ac_fn_c_try_link "$LINENO"; then :
11168 ac_cv_lib_dl_dlopen=yes
11169 else
11170 ac_cv_lib_dl_dlopen=no
11171 fi
11172 rm -f core conftest.err conftest.$ac_objext \
11173 conftest$ac_exeext conftest.$ac_ext
11174 LIBS=$ac_check_lib_save_LIBS
11175 fi
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11177 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11178 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11179 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11180 else
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11182 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11183 if ${ac_cv_lib_svld_dlopen+:} false; then :
11184 $as_echo_n "(cached) " >&6
11185 else
11186 ac_check_lib_save_LIBS=$LIBS
11187 LIBS="-lsvld $LIBS"
11188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11189 /* end confdefs.h. */
11190
11191 /* Override any GCC internal prototype to avoid an error.
11192 Use char because int might match the return type of a GCC
11193 builtin and then its argument prototype would still apply. */
11194 #ifdef __cplusplus
11195 extern "C"
11196 #endif
11197 char dlopen ();
11198 int
11199 main ()
11200 {
11201 return dlopen ();
11202 ;
11203 return 0;
11204 }
11205 _ACEOF
11206 if ac_fn_c_try_link "$LINENO"; then :
11207 ac_cv_lib_svld_dlopen=yes
11208 else
11209 ac_cv_lib_svld_dlopen=no
11210 fi
11211 rm -f core conftest.err conftest.$ac_objext \
11212 conftest$ac_exeext conftest.$ac_ext
11213 LIBS=$ac_check_lib_save_LIBS
11214 fi
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11216 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11217 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11218 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11219 else
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11221 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11222 if ${ac_cv_lib_dld_dld_link+:} false; then :
11223 $as_echo_n "(cached) " >&6
11224 else
11225 ac_check_lib_save_LIBS=$LIBS
11226 LIBS="-ldld $LIBS"
11227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11228 /* end confdefs.h. */
11229
11230 /* Override any GCC internal prototype to avoid an error.
11231 Use char because int might match the return type of a GCC
11232 builtin and then its argument prototype would still apply. */
11233 #ifdef __cplusplus
11234 extern "C"
11235 #endif
11236 char dld_link ();
11237 int
11238 main ()
11239 {
11240 return dld_link ();
11241 ;
11242 return 0;
11243 }
11244 _ACEOF
11245 if ac_fn_c_try_link "$LINENO"; then :
11246 ac_cv_lib_dld_dld_link=yes
11247 else
11248 ac_cv_lib_dld_dld_link=no
11249 fi
11250 rm -f core conftest.err conftest.$ac_objext \
11251 conftest$ac_exeext conftest.$ac_ext
11252 LIBS=$ac_check_lib_save_LIBS
11253 fi
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11255 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11256 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11257 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11258 fi
11259
11260
11261 fi
11262
11263
11264 fi
11265
11266
11267 fi
11268
11269
11270 fi
11271
11272
11273 fi
11274
11275 ;;
11276 esac
11277
11278 if test "x$lt_cv_dlopen" != xno; then
11279 enable_dlopen=yes
11280 else
11281 enable_dlopen=no
11282 fi
11283
11284 case $lt_cv_dlopen in
11285 dlopen)
11286 save_CPPFLAGS="$CPPFLAGS"
11287 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11288
11289 save_LDFLAGS="$LDFLAGS"
11290 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11291
11292 save_LIBS="$LIBS"
11293 LIBS="$lt_cv_dlopen_libs $LIBS"
11294
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11296 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11297 if ${lt_cv_dlopen_self+:} false; then :
11298 $as_echo_n "(cached) " >&6
11299 else
11300 if test "$cross_compiling" = yes; then :
11301 lt_cv_dlopen_self=cross
11302 else
11303 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11304 lt_status=$lt_dlunknown
11305 cat > conftest.$ac_ext <<_LT_EOF
11306 #line $LINENO "configure"
11307 #include "confdefs.h"
11308
11309 #if HAVE_DLFCN_H
11310 #include <dlfcn.h>
11311 #endif
11312
11313 #include <stdio.h>
11314
11315 #ifdef RTLD_GLOBAL
11316 # define LT_DLGLOBAL RTLD_GLOBAL
11317 #else
11318 # ifdef DL_GLOBAL
11319 # define LT_DLGLOBAL DL_GLOBAL
11320 # else
11321 # define LT_DLGLOBAL 0
11322 # endif
11323 #endif
11324
11325 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11326 find out it does not work in some platform. */
11327 #ifndef LT_DLLAZY_OR_NOW
11328 # ifdef RTLD_LAZY
11329 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11330 # else
11331 # ifdef DL_LAZY
11332 # define LT_DLLAZY_OR_NOW DL_LAZY
11333 # else
11334 # ifdef RTLD_NOW
11335 # define LT_DLLAZY_OR_NOW RTLD_NOW
11336 # else
11337 # ifdef DL_NOW
11338 # define LT_DLLAZY_OR_NOW DL_NOW
11339 # else
11340 # define LT_DLLAZY_OR_NOW 0
11341 # endif
11342 # endif
11343 # endif
11344 # endif
11345 #endif
11346
11347 /* When -fvisbility=hidden is used, assume the code has been annotated
11348 correspondingly for the symbols needed. */
11349 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11350 int fnord () __attribute__((visibility("default")));
11351 #endif
11352
11353 int fnord () { return 42; }
11354 int main ()
11355 {
11356 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11357 int status = $lt_dlunknown;
11358
11359 if (self)
11360 {
11361 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11362 else
11363 {
11364 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11365 else puts (dlerror ());
11366 }
11367 /* dlclose (self); */
11368 }
11369 else
11370 puts (dlerror ());
11371
11372 return status;
11373 }
11374 _LT_EOF
11375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11376 (eval $ac_link) 2>&5
11377 ac_status=$?
11378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11379 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11380 (./conftest; exit; ) >&5 2>/dev/null
11381 lt_status=$?
11382 case x$lt_status in
11383 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11384 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11385 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11386 esac
11387 else :
11388 # compilation failed
11389 lt_cv_dlopen_self=no
11390 fi
11391 fi
11392 rm -fr conftest*
11393
11394
11395 fi
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11397 $as_echo "$lt_cv_dlopen_self" >&6; }
11398
11399 if test "x$lt_cv_dlopen_self" = xyes; then
11400 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11402 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11403 if ${lt_cv_dlopen_self_static+:} false; then :
11404 $as_echo_n "(cached) " >&6
11405 else
11406 if test "$cross_compiling" = yes; then :
11407 lt_cv_dlopen_self_static=cross
11408 else
11409 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11410 lt_status=$lt_dlunknown
11411 cat > conftest.$ac_ext <<_LT_EOF
11412 #line $LINENO "configure"
11413 #include "confdefs.h"
11414
11415 #if HAVE_DLFCN_H
11416 #include <dlfcn.h>
11417 #endif
11418
11419 #include <stdio.h>
11420
11421 #ifdef RTLD_GLOBAL
11422 # define LT_DLGLOBAL RTLD_GLOBAL
11423 #else
11424 # ifdef DL_GLOBAL
11425 # define LT_DLGLOBAL DL_GLOBAL
11426 # else
11427 # define LT_DLGLOBAL 0
11428 # endif
11429 #endif
11430
11431 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11432 find out it does not work in some platform. */
11433 #ifndef LT_DLLAZY_OR_NOW
11434 # ifdef RTLD_LAZY
11435 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11436 # else
11437 # ifdef DL_LAZY
11438 # define LT_DLLAZY_OR_NOW DL_LAZY
11439 # else
11440 # ifdef RTLD_NOW
11441 # define LT_DLLAZY_OR_NOW RTLD_NOW
11442 # else
11443 # ifdef DL_NOW
11444 # define LT_DLLAZY_OR_NOW DL_NOW
11445 # else
11446 # define LT_DLLAZY_OR_NOW 0
11447 # endif
11448 # endif
11449 # endif
11450 # endif
11451 #endif
11452
11453 /* When -fvisbility=hidden is used, assume the code has been annotated
11454 correspondingly for the symbols needed. */
11455 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11456 int fnord () __attribute__((visibility("default")));
11457 #endif
11458
11459 int fnord () { return 42; }
11460 int main ()
11461 {
11462 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11463 int status = $lt_dlunknown;
11464
11465 if (self)
11466 {
11467 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11468 else
11469 {
11470 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11471 else puts (dlerror ());
11472 }
11473 /* dlclose (self); */
11474 }
11475 else
11476 puts (dlerror ());
11477
11478 return status;
11479 }
11480 _LT_EOF
11481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11482 (eval $ac_link) 2>&5
11483 ac_status=$?
11484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11485 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11486 (./conftest; exit; ) >&5 2>/dev/null
11487 lt_status=$?
11488 case x$lt_status in
11489 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11490 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11491 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11492 esac
11493 else :
11494 # compilation failed
11495 lt_cv_dlopen_self_static=no
11496 fi
11497 fi
11498 rm -fr conftest*
11499
11500
11501 fi
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11503 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11504 fi
11505
11506 CPPFLAGS="$save_CPPFLAGS"
11507 LDFLAGS="$save_LDFLAGS"
11508 LIBS="$save_LIBS"
11509 ;;
11510 esac
11511
11512 case $lt_cv_dlopen_self in
11513 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11514 *) enable_dlopen_self=unknown ;;
11515 esac
11516
11517 case $lt_cv_dlopen_self_static in
11518 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11519 *) enable_dlopen_self_static=unknown ;;
11520 esac
11521 fi
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539 striplib=
11540 old_striplib=
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11542 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11543 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11544 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11545 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11547 $as_echo "yes" >&6; }
11548 else
11549 # FIXME - insert some real tests, host_os isn't really good enough
11550 case $host_os in
11551 darwin*)
11552 if test -n "$STRIP" ; then
11553 striplib="$STRIP -x"
11554 old_striplib="$STRIP -S"
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11556 $as_echo "yes" >&6; }
11557 else
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11559 $as_echo "no" >&6; }
11560 fi
11561 ;;
11562 *)
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11564 $as_echo "no" >&6; }
11565 ;;
11566 esac
11567 fi
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580 # Report which library types will actually be built
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11582 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11584 $as_echo "$can_build_shared" >&6; }
11585
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11587 $as_echo_n "checking whether to build shared libraries... " >&6; }
11588 test "$can_build_shared" = "no" && enable_shared=no
11589
11590 # On AIX, shared libraries and static libraries use the same namespace, and
11591 # are all built from PIC.
11592 case $host_os in
11593 aix3*)
11594 test "$enable_shared" = yes && enable_static=no
11595 if test -n "$RANLIB"; then
11596 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11597 postinstall_cmds='$RANLIB $lib'
11598 fi
11599 ;;
11600
11601 aix[4-9]*)
11602 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11603 test "$enable_shared" = yes && enable_static=no
11604 fi
11605 ;;
11606 esac
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11608 $as_echo "$enable_shared" >&6; }
11609
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11611 $as_echo_n "checking whether to build static libraries... " >&6; }
11612 # Make sure either enable_shared or enable_static is yes.
11613 test "$enable_shared" = yes || enable_static=yes
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11615 $as_echo "$enable_static" >&6; }
11616
11617
11618
11619
11620 fi
11621 ac_ext=c
11622 ac_cpp='$CPP $CPPFLAGS'
11623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11626
11627 CC="$lt_save_CC"
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643 ac_config_commands="$ac_config_commands libtool"
11644
11645
11646
11647
11648 # Only expand once:
11649
11650
11651 # By default we simply use the C compiler to build assembly code.
11652
11653 test "${CCAS+set}" = set || CCAS=$CC
11654 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11655
11656
11657
11658 depcc="$CCAS" am_compiler_list=
11659
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11661 $as_echo_n "checking dependency style of $depcc... " >&6; }
11662 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
11663 $as_echo_n "(cached) " >&6
11664 else
11665 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11666 # We make a subdir and do the tests there. Otherwise we can end up
11667 # making bogus files that we don't know about and never remove. For
11668 # instance it was reported that on HP-UX the gcc test will end up
11669 # making a dummy file named `D' -- because `-MD' means `put the output
11670 # in D'.
11671 rm -rf conftest.dir
11672 mkdir conftest.dir
11673 # Copy depcomp to subdir because otherwise we won't find it if we're
11674 # using a relative directory.
11675 cp "$am_depcomp" conftest.dir
11676 cd conftest.dir
11677 # We will build objects and dependencies in a subdirectory because
11678 # it helps to detect inapplicable dependency modes. For instance
11679 # both Tru64's cc and ICC support -MD to output dependencies as a
11680 # side effect of compilation, but ICC will put the dependencies in
11681 # the current directory while Tru64 will put them in the object
11682 # directory.
11683 mkdir sub
11684
11685 am_cv_CCAS_dependencies_compiler_type=none
11686 if test "$am_compiler_list" = ""; then
11687 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11688 fi
11689 am__universal=false
11690
11691
11692 for depmode in $am_compiler_list; do
11693 # Setup a source with many dependencies, because some compilers
11694 # like to wrap large dependency lists on column 80 (with \), and
11695 # we should not choose a depcomp mode which is confused by this.
11696 #
11697 # We need to recreate these files for each test, as the compiler may
11698 # overwrite some of them when testing with obscure command lines.
11699 # This happens at least with the AIX C compiler.
11700 : > sub/conftest.c
11701 for i in 1 2 3 4 5 6; do
11702 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11703 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11704 # Solaris 8's {/usr,}/bin/sh.
11705 touch sub/conftst$i.h
11706 done
11707 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11708
11709 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11710 # mode. It turns out that the SunPro C++ compiler does not properly
11711 # handle `-M -o', and we need to detect this. Also, some Intel
11712 # versions had trouble with output in subdirs
11713 am__obj=sub/conftest.${OBJEXT-o}
11714 am__minus_obj="-o $am__obj"
11715 case $depmode in
11716 gcc)
11717 # This depmode causes a compiler race in universal mode.
11718 test "$am__universal" = false || continue
11719 ;;
11720 nosideeffect)
11721 # after this tag, mechanisms are not by side-effect, so they'll
11722 # only be used when explicitly requested
11723 if test "x$enable_dependency_tracking" = xyes; then
11724 continue
11725 else
11726 break
11727 fi
11728 ;;
11729 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11730 # This compiler won't grok `-c -o', but also, the minuso test has
11731 # not run yet. These depmodes are late enough in the game, and
11732 # so weak that their functioning should not be impacted.
11733 am__obj=conftest.${OBJEXT-o}
11734 am__minus_obj=
11735 ;;
11736 none) break ;;
11737 esac
11738 if depmode=$depmode \
11739 source=sub/conftest.c object=$am__obj \
11740 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11741 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11742 >/dev/null 2>conftest.err &&
11743 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11744 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11745 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11746 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11747 # icc doesn't choke on unknown options, it will just issue warnings
11748 # or remarks (even with -Werror). So we grep stderr for any message
11749 # that says an option was ignored or not supported.
11750 # When given -MP, icc 7.0 and 7.1 complain thusly:
11751 # icc: Command line warning: ignoring option '-M'; no argument required
11752 # The diagnosis changed in icc 8.0:
11753 # icc: Command line remark: option '-MP' not supported
11754 if (grep 'ignoring option' conftest.err ||
11755 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11756 am_cv_CCAS_dependencies_compiler_type=$depmode
11757 break
11758 fi
11759 fi
11760 done
11761
11762 cd ..
11763 rm -rf conftest.dir
11764 else
11765 am_cv_CCAS_dependencies_compiler_type=none
11766 fi
11767
11768 fi
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11770 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11771 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11772
11773 if
11774 test "x$enable_dependency_tracking" != xno \
11775 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11776 am__fastdepCCAS_TRUE=
11777 am__fastdepCCAS_FALSE='#'
11778 else
11779 am__fastdepCCAS_TRUE='#'
11780 am__fastdepCCAS_FALSE=
11781 fi
11782
11783
11784
11785
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
11787 $as_echo_n "checking zfs author... " >&6; }
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
11789 $as_echo "$ZFS_META_AUTHOR" >&6; }
11790
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
11792 $as_echo_n "checking zfs license... " >&6; }
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
11794 $as_echo "$ZFS_META_LICENSE" >&6; }
11795
11796
11797
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
11799 $as_echo_n "checking linux distribution... " >&6; }
11800 if test -f /etc/toss-release ; then
11801 VENDOR=toss ;
11802 elif test -f /etc/fedora-release ; then
11803 VENDOR=fedora ;
11804 elif test -f /etc/redhat-release ; then
11805 VENDOR=redhat ;
11806 elif test -f /etc/gentoo-release ; then
11807 VENDOR=gentoo ;
11808 elif test -f /etc/arch-release ; then
11809 VENDOR=arch ;
11810 elif test -f /etc/SuSE-release ; then
11811 VENDOR=sles ;
11812 elif test -f /etc/slackware-version ; then
11813 VENDOR=slackware ;
11814 elif test -f /etc/lunar.release ; then
11815 VENDOR=lunar ;
11816 elif test -f /etc/lsb-release ; then
11817 VENDOR=ubuntu ;
11818 elif test -f /etc/debian_version ; then
11819 VENDOR=debian ;
11820 else
11821 VENDOR= ;
11822 fi
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
11824 $as_echo "$VENDOR" >&6; }
11825
11826
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
11828 $as_echo_n "checking default package type... " >&6; }
11829 case "$VENDOR" in
11830 toss) DEFAULT_PACKAGE=rpm ;;
11831 redhat) DEFAULT_PACKAGE=rpm ;;
11832 fedora) DEFAULT_PACKAGE=rpm ;;
11833 gentoo) DEFAULT_PACKAGE=tgz ;;
11834 arch) DEFAULT_PACKAGE=tgz ;;
11835 sles) DEFAULT_PACKAGE=rpm ;;
11836 slackware) DEFAULT_PACKAGE=tgz ;;
11837 lunar) DEFAULT_PACKAGE=tgz ;;
11838 ubuntu) DEFAULT_PACKAGE=deb ;;
11839 debian) DEFAULT_PACKAGE=deb ;;
11840 *) DEFAULT_PACKAGE=rpm ;;
11841 esac
11842
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
11844 $as_echo "$DEFAULT_PACKAGE" >&6; }
11845
11846
11847 DEFAULT_INIT_DIR=$sysconfdir/init.d
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
11849 $as_echo_n "checking default init directory... " >&6; }
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
11851 $as_echo "$DEFAULT_INIT_DIR" >&6; }
11852
11853
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
11855 $as_echo_n "checking default init script type... " >&6; }
11856 case "$VENDOR" in
11857 toss) DEFAULT_INIT_SCRIPT=redhat ;;
11858 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
11859 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
11860 gentoo) DEFAULT_INIT_SCRIPT=gentoo ;;
11861 arch) DEFAULT_INIT_SCRIPT=lsb ;;
11862 sles) DEFAULT_INIT_SCRIPT=lsb ;;
11863 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
11864 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
11865 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
11866 debian) DEFAULT_INIT_SCRIPT=lsb ;;
11867 *) DEFAULT_INIT_SCRIPT=lsb ;;
11868 esac
11869
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
11871 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11872
11873
11874
11875 RPM=rpm
11876 RPMBUILD=rpmbuild
11877
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
11879 $as_echo_n "checking whether $RPM is available... " >&6; }
11880 if tmp=$($RPM --version 2>/dev/null); then :
11881
11882 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11883 HAVE_RPM=yes
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
11885 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11886
11887 else
11888
11889 HAVE_RPM=no
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
11891 $as_echo "$HAVE_RPM" >&6; }
11892
11893 fi
11894
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
11896 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11897 if tmp=$($RPMBUILD --version 2>/dev/null); then :
11898
11899 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11900 HAVE_RPMBUILD=yes
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11902 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11903
11904 else
11905
11906 HAVE_RPMBUILD=no
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
11908 $as_echo "$HAVE_RPMBUILD" >&6; }
11909
11910 fi
11911
11912 RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"'
11913 RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)"'
11914 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
11915 RPM_DEFINE_DKMS=
11916
11917 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
11918 SRPM_DEFINE_UTIL=
11919 SRPM_DEFINE_KMOD=
11920 SRPM_DEFINE_DKMS=
11921
11922 RPM_SPEC_DIR="rpm/generic"
11923
11924 # Check whether --with-spec was given.
11925 if test "${with_spec+set}" = set; then :
11926 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
11927 fi
11928
11929
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
11931 $as_echo_n "checking whether spec files are available... " >&6; }
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
11933 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954 DPKG=dpkg
11955 DPKGBUILD=dpkg-buildpackage
11956
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
11958 $as_echo_n "checking whether $DPKG is available... " >&6; }
11959 if tmp=$($DPKG --version 2>/dev/null); then :
11960
11961 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11962 HAVE_DPKG=yes
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11964 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11965
11966 else
11967
11968 HAVE_DPKG=no
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
11970 $as_echo "$HAVE_DPKG" >&6; }
11971
11972 fi
11973
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
11975 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11976 if tmp=$($DPKGBUILD --version 2>/dev/null); then :
11977
11978 DPKGBUILD_VERSION=$(echo $tmp | \
11979 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11980 HAVE_DPKGBUILD=yes
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11982 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11983
11984 else
11985
11986 HAVE_DPKGBUILD=no
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
11988 $as_echo "$HAVE_DPKGBUILD" >&6; }
11989
11990 fi
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001 ALIEN=alien
12002
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12004 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12005 if tmp=$($ALIEN --version 2>/dev/null); then :
12006
12007 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
12008 HAVE_ALIEN=yes
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12010 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12011
12012 else
12013
12014 HAVE_ALIEN=no
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12016 $as_echo "$HAVE_ALIEN" >&6; }
12017
12018 fi
12019
12020
12021
12022
12023
12024
12025
12026 TARGET_ASM_DIR=asm-generic
12027
12028
12029 ZFS_CONFIG=all
12030
12031 # Check whether --with-config was given.
12032 if test "${with_config+set}" = set; then :
12033 withval=$with_config; ZFS_CONFIG="$withval"
12034 fi
12035
12036 # Check whether --enable-linux-builtin was given.
12037 if test "${enable_linux_builtin+set}" = set; then :
12038 enableval=$enable_linux_builtin;
12039 else
12040 enable_linux_builtin=no
12041 fi
12042
12043
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
12045 $as_echo_n "checking zfs config... " >&6; }
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
12047 $as_echo "$ZFS_CONFIG" >&6; };
12048
12049
12050
12051
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
12053 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12054
12055 saved_flags="$CFLAGS"
12056 CFLAGS="$CFLAGS -Wunused-but-set-variable"
12057
12058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12059 /* end confdefs.h. */
12060
12061 int
12062 main ()
12063 {
12064
12065 ;
12066 return 0;
12067 }
12068 _ACEOF
12069 if ac_fn_c_try_compile "$LINENO"; then :
12070
12071 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12073 $as_echo "yes" >&6; }
12074
12075 else
12076
12077 NO_UNUSED_BUT_SET_VARIABLE=
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079 $as_echo "no" >&6; }
12080
12081 fi
12082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12083
12084 CFLAGS="$saved_flags"
12085
12086
12087
12088
12089 case "$ZFS_CONFIG" in
12090 kernel)
12091
12092
12093 # Check whether --with-linux was given.
12094 if test "${with_linux+set}" = set; then :
12095 withval=$with_linux; kernelsrc="$withval"
12096 fi
12097
12098
12099
12100 # Check whether --with-linux-obj was given.
12101 if test "${with_linux_obj+set}" = set; then :
12102 withval=$with_linux_obj; kernelbuild="$withval"
12103 fi
12104
12105
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
12107 $as_echo_n "checking kernel source directory... " >&6; }
12108 if test -z "$kernelsrc"; then :
12109
12110 if test -e "/lib/modules/$(uname -r)/source"; then :
12111
12112 headersdir="/lib/modules/$(uname -r)/source"
12113 sourcelink=$(readlink -f "$headersdir")
12114
12115 elif test -e "/lib/modules/$(uname -r)/build"; then :
12116
12117 headersdir="/lib/modules/$(uname -r)/build"
12118 sourcelink=$(readlink -f "$headersdir")
12119
12120 else
12121
12122 sourcelink=$(ls -1d /usr/src/kernels/* \
12123 /usr/src/linux-* \
12124 2>/dev/null | grep -v obj | tail -1)
12125
12126 fi
12127
12128 if test -n "$sourcelink" && test -e ${sourcelink}; then :
12129
12130 kernelsrc=`readlink -f ${sourcelink}`
12131
12132 else
12133
12134 kernelsrc="Not found"
12135
12136 fi
12137
12138 else
12139
12140 if test "$kernelsrc" = "NONE"; then :
12141
12142 kernsrcver=NONE
12143
12144 fi
12145
12146 fi
12147
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
12149 $as_echo "$kernelsrc" >&6; }
12150 if test ! -d "$kernelsrc"; then :
12151
12152 as_fn_error $? "
12153 *** Please make sure the kernel devel package for your distribution
12154 *** is installed and then try again. If that fails, you can specify the
12155 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
12156
12157 fi
12158
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
12160 $as_echo_n "checking kernel build directory... " >&6; }
12161 if test -z "$kernelbuild"; then :
12162
12163 if test -e "/lib/modules/$(uname -r)/build"; then :
12164
12165 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
12166
12167 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
12168
12169 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12170
12171 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
12172
12173 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
12174
12175 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
12176
12177 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
12178
12179 else
12180
12181 kernelbuild=${kernelsrc}
12182
12183 fi
12184
12185 fi
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
12187 $as_echo "$kernelbuild" >&6; }
12188
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
12190 $as_echo_n "checking kernel source version... " >&6; }
12191 utsrelease1=$kernelbuild/include/linux/version.h
12192 utsrelease2=$kernelbuild/include/linux/utsrelease.h
12193 utsrelease3=$kernelbuild/include/generated/utsrelease.h
12194 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
12195
12196 utsrelease=linux/version.h
12197
12198 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
12199
12200 utsrelease=linux/utsrelease.h
12201
12202 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
12203
12204 utsrelease=generated/utsrelease.h
12205
12206 fi
12207
12208 if test "$utsrelease"; then :
12209
12210 kernsrcver=`(echo "#include <$utsrelease>";
12211 echo "kernsrcver=UTS_RELEASE") |
12212 cpp -I $kernelbuild/include |
12213 grep "^kernsrcver=" | cut -d \" -f 2`
12214
12215 if test -z "$kernsrcver"; then :
12216
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12218 $as_echo "Not found" >&6; }
12219 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
12220
12221 fi
12222
12223 else
12224
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12226 $as_echo "Not found" >&6; }
12227 if test "x$enable_linux_builtin" != xyes; then
12228 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
12229 else
12230 as_fn_error $? "
12231 *** Cannot find UTS_RELEASE definition.
12232 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
12233 fi
12234
12235 fi
12236
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
12238 $as_echo "$kernsrcver" >&6; }
12239
12240 LINUX=${kernelsrc}
12241 LINUX_OBJ=${kernelbuild}
12242 LINUX_VERSION=${kernsrcver}
12243
12244
12245
12246
12247
12248
12249 modpost=$LINUX/scripts/Makefile.modpost
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
12251 $as_echo_n "checking kernel file name for module symbols... " >&6; }
12252 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
12253
12254 if grep -q Modules.symvers $modpost; then :
12255
12256 LINUX_SYMBOLS=Modules.symvers
12257
12258 else
12259
12260 LINUX_SYMBOLS=Module.symvers
12261
12262 fi
12263
12264 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
12265
12266 as_fn_error $? "
12267 *** Please make sure the kernel devel package for your distribution
12268 *** is installed. If you are building with a custom kernel, make sure the
12269 *** kernel is configured, built, and the '--with-linux=PATH' configure
12270 *** option refers to the location of the kernel source." "$LINENO" 5
12271
12272 fi
12273
12274 else
12275
12276 LINUX_SYMBOLS=NONE
12277
12278 fi
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
12280 $as_echo "$LINUX_SYMBOLS" >&6; }
12281
12282
12283
12284
12285
12286 # Check whether --with-spl was given.
12287 if test "${with_spl+set}" = set; then :
12288 withval=$with_spl; splsrc="$withval"
12289 fi
12290
12291
12292
12293 # Check whether --with-spl-obj was given.
12294 if test "${with_spl_obj+set}" = set; then :
12295 withval=$with_spl_obj; splbuild="$withval"
12296 fi
12297
12298
12299
12300 # Check whether --with-spl-timeout was given.
12301 if test "${with_spl_timeout+set}" = set; then :
12302 withval=$with_spl_timeout; timeout="$withval"
12303 else
12304 timeout=0
12305 fi
12306
12307
12308 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
12309 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
12310 splsrc2="/usr/local/src/spl-${VERSION}"
12311 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
12312 splsrc4="/usr/src/spl-${VERSION}"
12313 splsrc5="../spl/"
12314 splsrc6="$LINUX"
12315
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
12317 $as_echo_n "checking spl source directory... " >&6; }
12318 if test -z "${splsrc}"; then :
12319
12320 if test -e "${splsrc0}/spl.release.in"; then :
12321
12322 splsrc=${splsrc0}
12323
12324 elif test -e "${splsrc1}/spl.release.in"; then :
12325
12326 splsrc=${splsrc1}
12327
12328 elif test -e "${splsrc2}/spl.release.in"; then :
12329
12330 splsrc=${splsrc2}
12331
12332 elif test -e "${splsrc3}/spl.release.in"; then :
12333
12334 splsrc=$(readlink -f "${splsrc3}")
12335
12336 elif test -e "${splsrc4}/spl.release.in" ; then :
12337
12338 splsrc=${splsrc4}
12339
12340 elif test -e "${splsrc5}/spl.release.in"; then :
12341
12342 splsrc=$(readlink -f "${splsrc5}")
12343
12344 elif test -e "${splsrc6}/spl.release.in" ; then :
12345
12346 splsrc=${splsrc6}
12347
12348 else
12349
12350 splsrc="Not found"
12351
12352 fi
12353
12354 else
12355
12356 if test "$splsrc" = "NONE"; then :
12357
12358 splbuild=NONE
12359 splsrcver=NONE
12360
12361 fi
12362
12363 fi
12364
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
12366 $as_echo "$splsrc" >&6; }
12367 if test ! -e "$splsrc/spl.release.in"; then :
12368
12369 as_fn_error $? "
12370 *** Please make sure the kmod spl devel package for your distribution
12371 *** is installed then try again. If that fails you can specify the
12372 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
12373
12374 fi
12375
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
12377 $as_echo_n "checking spl build directory... " >&6; }
12378 while true; do
12379 if test -z "$splbuild"; then :
12380
12381 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
12382
12383 splbuild="${splsrc}/${LINUX_VERSION}"
12384
12385 elif test -e "${splsrc}/spl_config.h" ; then :
12386
12387 splbuild="${splsrc}"
12388
12389 else
12390
12391 splbuild="Not found"
12392
12393 fi
12394
12395 fi
12396 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
12397
12398 break;
12399
12400 else
12401
12402 sleep 1
12403 timeout=$((timeout-1))
12404
12405 fi
12406 done
12407
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
12409 $as_echo "$splbuild" >&6; }
12410 if ! test -e "$splbuild/spl_config.h"; then :
12411
12412 as_fn_error $? "
12413 *** Please make sure the kmod spl devel <kernel> package for your
12414 *** distribution is installed then try again. If that fails you
12415 *** can specify the location of the spl objects with the
12416 *** '--with-spl-obj=PATH' option." "$LINENO" 5
12417
12418 fi
12419
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
12421 $as_echo_n "checking spl source version... " >&6; }
12422 if test -r $splbuild/spl_config.h &&
12423 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
12424
12425
12426 splsrcver=`(echo "#include <spl_config.h>";
12427 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
12428 cpp -I $splbuild |
12429 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
12430
12431 fi
12432
12433 if test -z "$splsrcver"; then :
12434
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12436 $as_echo "Not found" >&6; }
12437 as_fn_error $? "
12438 *** Cannot determine the version of the spl source.
12439 *** Please prepare the spl source before running this script" "$LINENO" 5
12440
12441 fi
12442
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
12444 $as_echo "$splsrcver" >&6; }
12445
12446 SPL=${splsrc}
12447 SPL_OBJ=${splbuild}
12448 SPL_VERSION=${splsrcver}
12449
12450
12451
12452
12453
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
12455 $as_echo_n "checking spl file name for module symbols... " >&6; }
12456 SPL_SYMBOLS=NONE
12457
12458 while true; do
12459 if test -r $SPL_OBJ/Module.symvers; then :
12460
12461 SPL_SYMBOLS=Module.symvers
12462
12463 elif test -r $SPL_OBJ/Modules.symvers; then :
12464
12465 SPL_SYMBOLS=Modules.symvers
12466
12467 elif test -r $SPL_OBJ/module/Module.symvers; then :
12468
12469 SPL_SYMBOLS=Module.symvers
12470
12471 elif test -r $SPL_OBJ/module/Modules.symvers; then :
12472
12473 SPL_SYMBOLS=Modules.symvers
12474
12475 fi
12476
12477 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
12478
12479 break;
12480
12481 else
12482
12483 sleep 1
12484 timeout=$((timeout-1))
12485
12486 fi
12487 done
12488
12489 if test "$SPL_SYMBOLS" = NONE; then :
12490
12491 SPL_SYMBOLS=$LINUX_SYMBOLS
12492
12493 fi
12494
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
12496 $as_echo "$SPL_SYMBOLS" >&6; }
12497
12498
12499
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
12501 $as_echo_n "checking whether modules can be built... " >&6; }
12502
12503
12504 cat confdefs.h - <<_ACEOF >conftest.c
12505
12506
12507 int
12508 main (void)
12509 {
12510
12511 ;
12512 return 0;
12513 }
12514
12515 _ACEOF
12516
12517
12518
12519 cat - <<_ACEOF >conftest.h
12520
12521 _ACEOF
12522
12523
12524 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12525 echo "obj-m := conftest.o" >build/Makefile
12526 modpost_flag=''
12527 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12528 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12530 (eval $ac_try) 2>&5
12531 ac_status=$?
12532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12533 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12535 (eval $ac_try) 2>&5
12536 ac_status=$?
12537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12538 test $ac_status = 0; }; }; then :
12539
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12541 $as_echo "yes" >&6; }
12542
12543 else
12544 $as_echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.$ac_ext >&5
12546
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548 $as_echo "no" >&6; }
12549 if test "x$enable_linux_builtin" != xyes; then
12550 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
12551 else
12552 as_fn_error $? "
12553 *** Unable to build an empty module.
12554 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
12555 fi
12556
12557
12558
12559 fi
12560 rm -Rf build
12561
12562
12563
12564
12565 if test "$cross_compiling" = yes; then :
12566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12568 as_fn_error $? "cannot run test program while cross compiling
12569 See \`config.log' for more details" "$LINENO" 5; }
12570 else
12571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h. */
12573
12574
12575 #include "$LINUX/include/linux/license.h"
12576
12577 int
12578 main ()
12579 {
12580
12581 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
12582
12583 ;
12584 return 0;
12585 }
12586
12587 _ACEOF
12588 if ac_fn_c_try_run "$LINENO"; then :
12589
12590
12591 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
12592
12593
12594 fi
12595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12596 conftest.$ac_objext conftest.beam conftest.$ac_ext
12597 fi
12598
12599
12600
12601
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12603 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12604
12605
12606 cat confdefs.h - <<_ACEOF >conftest.c
12607
12608
12609 #include <linux/module.h>
12610
12611 int
12612 main (void)
12613 {
12614
12615 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12616 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12617 #endif
12618
12619 ;
12620 return 0;
12621 }
12622
12623 _ACEOF
12624
12625
12626
12627 cat - <<_ACEOF >conftest.h
12628
12629 _ACEOF
12630
12631
12632 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12633 echo "obj-m := conftest.o" >build/Makefile
12634 modpost_flag=''
12635 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12636 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12638 (eval $ac_try) 2>&5
12639 ac_status=$?
12640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12641 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12643 (eval $ac_try) 2>&5
12644 ac_status=$?
12645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12646 test $ac_status = 0; }; }; then :
12647
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12649 $as_echo "yes" >&6; }
12650
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
12652 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
12653 tmp_flags="$EXTRA_KCFLAGS"
12654
12655
12656 cat confdefs.h - <<_ACEOF >conftest.c
12657
12658
12659 #include <linux/module.h>
12660 #include <linux/mutex.h>
12661
12662 MODULE_LICENSE("$ZFS_META_LICENSE");
12663
12664 int
12665 main (void)
12666 {
12667
12668 struct mutex lock;
12669
12670 mutex_init(&lock);
12671 mutex_lock(&lock);
12672 mutex_unlock(&lock);
12673
12674 ;
12675 return 0;
12676 }
12677
12678 _ACEOF
12679
12680
12681
12682 cat - <<_ACEOF >conftest.h
12683
12684 _ACEOF
12685
12686
12687 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12688 echo "obj-m := conftest.o" >build/Makefile
12689 modpost_flag=''
12690 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12691 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12693 (eval $ac_try) 2>&5
12694 ac_status=$?
12695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12696 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12698 (eval $ac_try) 2>&5
12699 ac_status=$?
12700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12701 test $ac_status = 0; }; }; then :
12702
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704 $as_echo "no" >&6; }
12705
12706 else
12707 $as_echo "$as_me: failed program was:" >&5
12708 sed 's/^/| /' conftest.$ac_ext >&5
12709
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12711 $as_echo "yes" >&6; }
12712 as_fn_error $? "
12713 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
12714 *** with the CDDL license and will prevent the module linking stage
12715 *** from succeeding. You must rebuild your kernel without this
12716 *** option enabled." "$LINENO" 5
12717
12718
12719
12720 fi
12721 rm -Rf build
12722
12723
12724 EXTRA_KCFLAGS="$tmp_flags"
12725
12726
12727 else
12728 $as_echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.$ac_ext >&5
12730
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12732 $as_echo "no" >&6; }
12733
12734
12735
12736
12737 fi
12738 rm -Rf build
12739
12740
12741
12742
12743
12744
12745 tmp_flags="$EXTRA_KCFLAGS"
12746 EXTRA_KCFLAGS="-I\$(src)"
12747
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
12749 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
12750
12751
12752 cat confdefs.h - <<_ACEOF >conftest.c
12753
12754
12755 #include <linux/module.h>
12756 MODULE_LICENSE(ZFS_META_LICENSE);
12757
12758 #define CREATE_TRACE_POINTS
12759 #include "conftest.h"
12760
12761 int
12762 main (void)
12763 {
12764
12765 trace_zfs_autoconf_event_one(1UL);
12766 trace_zfs_autoconf_event_two(2UL);
12767
12768 ;
12769 return 0;
12770 }
12771
12772 _ACEOF
12773
12774
12775
12776 cat - <<_ACEOF >conftest.h
12777
12778 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
12779 #define _CONFTEST_H
12780
12781 #undef TRACE_SYSTEM
12782 #define TRACE_SYSTEM zfs
12783 #include <linux/tracepoint.h>
12784
12785 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
12786 TP_PROTO(unsigned long i),
12787 TP_ARGS(i),
12788 TP_STRUCT__entry(
12789 __field(unsigned long, i)
12790 ),
12791 TP_fast_assign(
12792 __entry->i = i;
12793 ),
12794 TP_printk("i = %lu", __entry->i)
12795 );
12796
12797 #define DEFINE_AUTOCONF_EVENT(name) \
12798 DEFINE_EVENT(zfs_autoconf_event_class, name, \
12799 TP_PROTO(unsigned long i), \
12800 TP_ARGS(i))
12801 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
12802 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
12803
12804 #endif /* _CONFTEST_H */
12805
12806 #undef TRACE_INCLUDE_PATH
12807 #define TRACE_INCLUDE_PATH .
12808 #define TRACE_INCLUDE_FILE conftest
12809 #include <trace/define_trace.h>
12810
12811 _ACEOF
12812
12813
12814 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12815 echo "obj-m := conftest.o" >build/Makefile
12816 modpost_flag=''
12817 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12818 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12820 (eval $ac_try) 2>&5
12821 ac_status=$?
12822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12823 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12825 (eval $ac_try) 2>&5
12826 ac_status=$?
12827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12828 test $ac_status = 0; }; }; then :
12829
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12831 $as_echo "yes" >&6; }
12832
12833 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
12834
12835
12836 else
12837 $as_echo "$as_me: failed program was:" >&5
12838 sed 's/^/| /' conftest.$ac_ext >&5
12839
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12841 $as_echo "no" >&6; }
12842
12843
12844
12845 fi
12846 rm -Rf build
12847
12848
12849 EXTRA_KCFLAGS="$tmp_flags"
12850
12851
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
12853 $as_echo_n "checking block device operation prototypes... " >&6; }
12854 tmp_flags="$EXTRA_KCFLAGS"
12855 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
12856
12857
12858 cat confdefs.h - <<_ACEOF >conftest.c
12859
12860
12861 #include <linux/blkdev.h>
12862
12863 int blk_open(struct block_device *bdev, fmode_t mode)
12864 { return 0; }
12865 int blk_ioctl(struct block_device *bdev, fmode_t mode,
12866 unsigned x, unsigned long y) { return 0; }
12867 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
12868 unsigned x, unsigned long y) { return 0; }
12869
12870 static const struct block_device_operations
12871 bops __attribute__ ((unused)) = {
12872 .open = blk_open,
12873 .release = NULL,
12874 .ioctl = blk_ioctl,
12875 .compat_ioctl = blk_compat_ioctl,
12876 };
12877
12878 int
12879 main (void)
12880 {
12881
12882
12883 ;
12884 return 0;
12885 }
12886
12887 _ACEOF
12888
12889
12890
12891 cat - <<_ACEOF >conftest.h
12892
12893 _ACEOF
12894
12895
12896 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12897 echo "obj-m := conftest.o" >build/Makefile
12898 modpost_flag=''
12899 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12900 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12902 (eval $ac_try) 2>&5
12903 ac_status=$?
12904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12905 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12907 (eval $ac_try) 2>&5
12908 ac_status=$?
12909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12910 test $ac_status = 0; }; }; then :
12911
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
12913 $as_echo "struct block_device" >&6; }
12914
12915 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
12916
12917
12918 else
12919 $as_echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12921
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
12923 $as_echo "struct inode" >&6; }
12924
12925
12926
12927 fi
12928 rm -Rf build
12929
12930
12931 EXTRA_KCFLAGS="$tmp_flags"
12932
12933
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
12935 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
12936 tmp_flags="$EXTRA_KCFLAGS"
12937 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
12938
12939
12940 cat confdefs.h - <<_ACEOF >conftest.c
12941
12942
12943 #include <linux/blkdev.h>
12944
12945 void blk_release(struct gendisk *g, fmode_t mode) { return; }
12946
12947 static const struct block_device_operations
12948 bops __attribute__ ((unused)) = {
12949 .open = NULL,
12950 .release = blk_release,
12951 .ioctl = NULL,
12952 .compat_ioctl = NULL,
12953 };
12954
12955 int
12956 main (void)
12957 {
12958
12959
12960 ;
12961 return 0;
12962 }
12963
12964 _ACEOF
12965
12966
12967
12968 cat - <<_ACEOF >conftest.h
12969
12970 _ACEOF
12971
12972
12973 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12974 echo "obj-m := conftest.o" >build/Makefile
12975 modpost_flag=''
12976 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12977 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12979 (eval $ac_try) 2>&5
12980 ac_status=$?
12981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12982 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12984 (eval $ac_try) 2>&5
12985 ac_status=$?
12986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12987 test $ac_status = 0; }; }; then :
12988
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
12990 $as_echo "void" >&6; }
12991
12992 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
12993
12994
12995 else
12996 $as_echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
12998
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
13000 $as_echo "int" >&6; }
13001
13002
13003
13004 fi
13005 rm -Rf build
13006
13007
13008 EXTRA_KCFLAGS="$tmp_flags"
13009
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
13011 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
13012
13013
13014 cat confdefs.h - <<_ACEOF >conftest.c
13015
13016
13017 #include <linux/types.h>
13018
13019 int
13020 main (void)
13021 {
13022
13023 fmode_t *ptr __attribute__ ((unused));
13024
13025 ;
13026 return 0;
13027 }
13028
13029 _ACEOF
13030
13031
13032
13033 cat - <<_ACEOF >conftest.h
13034
13035 _ACEOF
13036
13037
13038 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13039 echo "obj-m := conftest.o" >build/Makefile
13040 modpost_flag=''
13041 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13042 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13044 (eval $ac_try) 2>&5
13045 ac_status=$?
13046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13047 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13049 (eval $ac_try) 2>&5
13050 ac_status=$?
13051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13052 test $ac_status = 0; }; }; then :
13053
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13055 $as_echo "yes" >&6; }
13056
13057 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
13058
13059
13060 else
13061 $as_echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13063
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065 $as_echo "no" >&6; }
13066
13067
13068
13069 fi
13070 rm -Rf build
13071
13072
13073
13074
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
13076 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
13077
13078
13079 cat confdefs.h - <<_ACEOF >conftest.c
13080
13081
13082 #include <linux/kobject.h>
13083
13084 int
13085 main (void)
13086 {
13087
13088 int val __attribute__ ((unused));
13089 val = KOBJ_NAME_LEN;
13090
13091 ;
13092 return 0;
13093 }
13094
13095 _ACEOF
13096
13097
13098
13099 cat - <<_ACEOF >conftest.h
13100
13101 _ACEOF
13102
13103
13104 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13105 echo "obj-m := conftest.o" >build/Makefile
13106 modpost_flag=''
13107 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13108 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13110 (eval $ac_try) 2>&5
13111 ac_status=$?
13112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13113 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13115 (eval $ac_try) 2>&5
13116 ac_status=$?
13117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13118 test $ac_status = 0; }; }; then :
13119
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13121 $as_echo "yes" >&6; }
13122
13123 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
13124
13125
13126 else
13127 $as_echo "$as_me: failed program was:" >&5
13128 sed 's/^/| /' conftest.$ac_ext >&5
13129
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13131 $as_echo "no" >&6; }
13132
13133
13134
13135 fi
13136 rm -Rf build
13137
13138
13139
13140
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
13142 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
13143
13144
13145 cat confdefs.h - <<_ACEOF >conftest.c
13146
13147
13148 #include <linux/fs.h>
13149
13150 int
13151 main (void)
13152 {
13153
13154 struct block_device *bdev = NULL;
13155 (void) blkdev_get(bdev, 0, NULL);
13156
13157 ;
13158 return 0;
13159 }
13160
13161 _ACEOF
13162
13163
13164
13165 cat - <<_ACEOF >conftest.h
13166
13167 _ACEOF
13168
13169
13170 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13171 echo "obj-m := conftest.o" >build/Makefile
13172 modpost_flag=''
13173 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13174 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13176 (eval $ac_try) 2>&5
13177 ac_status=$?
13178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13179 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
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; }; }; then :
13185
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13187 $as_echo "yes" >&6; }
13188
13189 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
13190
13191
13192 else
13193 $as_echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13195
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197 $as_echo "no" >&6; }
13198
13199
13200
13201 fi
13202 rm -Rf build
13203
13204
13205
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
13207 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
13208
13209
13210
13211 cat confdefs.h - <<_ACEOF >conftest.c
13212
13213
13214 #include <linux/fs.h>
13215
13216 int
13217 main (void)
13218 {
13219
13220 blkdev_get_by_path(NULL, 0, NULL);
13221
13222 ;
13223 return 0;
13224 }
13225
13226 _ACEOF
13227
13228
13229
13230 cat - <<_ACEOF >conftest.h
13231
13232 _ACEOF
13233
13234
13235 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13236 echo "obj-m := conftest.o" >build/Makefile
13237 modpost_flag=''
13238 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13239 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13241 (eval $ac_try) 2>&5
13242 ac_status=$?
13243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13244 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
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; }; }; then :
13250 rc=0
13251 else
13252 $as_echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13254 rc=1
13255
13256
13257 fi
13258 rm -Rf build
13259
13260
13261 if test $rc -ne 0; then :
13262
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264 $as_echo "no" >&6; }
13265
13266 else
13267 if test "x$enable_linux_builtin" != xyes; then
13268
13269 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
13270 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
13271 rc=$?
13272 if test $rc -ne 0; then
13273 export=0
13274 for file in fs/block_dev.c; do
13275 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
13276 "$LINUX/$file" 2>/dev/null
13277 rc=$?
13278 if test $rc -eq 0; then
13279 export=1
13280 break;
13281 fi
13282 done
13283 if test $export -eq 0; then :
13284 rc=1
13285 else :
13286 rc=0
13287 fi
13288 else :
13289 rc=0
13290 fi
13291
13292 fi
13293 if test $rc -ne 0; then :
13294
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296 $as_echo "no" >&6; }
13297
13298 else :
13299
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13301 $as_echo "yes" >&6; }
13302
13303 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
13304
13305
13306 fi
13307 fi
13308
13309
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
13311 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
13312
13313
13314
13315 cat confdefs.h - <<_ACEOF >conftest.c
13316
13317
13318 #include <linux/fs.h>
13319
13320 int
13321 main (void)
13322 {
13323
13324 open_bdev_exclusive(NULL, 0, NULL);
13325
13326 ;
13327 return 0;
13328 }
13329
13330 _ACEOF
13331
13332
13333
13334 cat - <<_ACEOF >conftest.h
13335
13336 _ACEOF
13337
13338
13339 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13340 echo "obj-m := conftest.o" >build/Makefile
13341 modpost_flag=''
13342 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13343 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13345 (eval $ac_try) 2>&5
13346 ac_status=$?
13347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13348 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13350 (eval $ac_try) 2>&5
13351 ac_status=$?
13352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13353 test $ac_status = 0; }; }; then :
13354 rc=0
13355 else
13356 $as_echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13358 rc=1
13359
13360
13361 fi
13362 rm -Rf build
13363
13364
13365 if test $rc -ne 0; then :
13366
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368 $as_echo "no" >&6; }
13369
13370 else
13371 if test "x$enable_linux_builtin" != xyes; then
13372
13373 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
13374 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
13375 rc=$?
13376 if test $rc -ne 0; then
13377 export=0
13378 for file in fs/block_dev.c; do
13379 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
13380 "$LINUX/$file" 2>/dev/null
13381 rc=$?
13382 if test $rc -eq 0; then
13383 export=1
13384 break;
13385 fi
13386 done
13387 if test $export -eq 0; then :
13388 rc=1
13389 else :
13390 rc=0
13391 fi
13392 else :
13393 rc=0
13394 fi
13395
13396 fi
13397 if test $rc -ne 0; then :
13398
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13400 $as_echo "no" >&6; }
13401
13402 else :
13403
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13405 $as_echo "yes" >&6; }
13406
13407 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
13408
13409
13410 fi
13411 fi
13412
13413
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
13415 $as_echo_n "checking whether lookup_bdev() is available... " >&6; }
13416
13417
13418
13419 cat confdefs.h - <<_ACEOF >conftest.c
13420
13421
13422 #include <linux/fs.h>
13423
13424 int
13425 main (void)
13426 {
13427
13428 lookup_bdev(NULL);
13429
13430 ;
13431 return 0;
13432 }
13433
13434 _ACEOF
13435
13436
13437
13438 cat - <<_ACEOF >conftest.h
13439
13440 _ACEOF
13441
13442
13443 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13444 echo "obj-m := conftest.o" >build/Makefile
13445 modpost_flag=''
13446 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13447 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13449 (eval $ac_try) 2>&5
13450 ac_status=$?
13451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13452 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13454 (eval $ac_try) 2>&5
13455 ac_status=$?
13456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13457 test $ac_status = 0; }; }; then :
13458 rc=0
13459 else
13460 $as_echo "$as_me: failed program was:" >&5
13461 sed 's/^/| /' conftest.$ac_ext >&5
13462 rc=1
13463
13464
13465 fi
13466 rm -Rf build
13467
13468
13469 if test $rc -ne 0; then :
13470
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13472 $as_echo "no" >&6; }
13473
13474 else
13475 if test "x$enable_linux_builtin" != xyes; then
13476
13477 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
13478 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
13479 rc=$?
13480 if test $rc -ne 0; then
13481 export=0
13482 for file in fs/block_dev.c; do
13483 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
13484 "$LINUX/$file" 2>/dev/null
13485 rc=$?
13486 if test $rc -eq 0; then
13487 export=1
13488 break;
13489 fi
13490 done
13491 if test $export -eq 0; then :
13492 rc=1
13493 else :
13494 rc=0
13495 fi
13496 else :
13497 rc=0
13498 fi
13499
13500 fi
13501 if test $rc -ne 0; then :
13502
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13504 $as_echo "no" >&6; }
13505
13506 else :
13507
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13509 $as_echo "yes" >&6; }
13510
13511 $as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
13512
13513
13514 fi
13515 fi
13516
13517
13518
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
13520 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
13521
13522
13523 cat confdefs.h - <<_ACEOF >conftest.c
13524
13525
13526 #include <linux/buffer_head.h>
13527
13528 int
13529 main (void)
13530 {
13531
13532 struct block_device *bdev = NULL;
13533 invalidate_bdev(bdev);
13534
13535 ;
13536 return 0;
13537 }
13538
13539 _ACEOF
13540
13541
13542
13543 cat - <<_ACEOF >conftest.h
13544
13545 _ACEOF
13546
13547
13548 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13549 echo "obj-m := conftest.o" >build/Makefile
13550 modpost_flag=''
13551 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13552 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13554 (eval $ac_try) 2>&5
13555 ac_status=$?
13556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13557 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13559 (eval $ac_try) 2>&5
13560 ac_status=$?
13561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13562 test $ac_status = 0; }; }; then :
13563
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13565 $as_echo "yes" >&6; }
13566
13567 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
13568
13569
13570 else
13571 $as_echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.$ac_ext >&5
13573
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13575 $as_echo "no" >&6; }
13576
13577
13578
13579 fi
13580 rm -Rf build
13581
13582
13583
13584
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
13586 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
13587 tmp_flags="$EXTRA_KCFLAGS"
13588 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13589
13590
13591 cat confdefs.h - <<_ACEOF >conftest.c
13592
13593
13594 #include <linux/blkdev.h>
13595
13596 int
13597 main (void)
13598 {
13599
13600 struct block_device *bdev = NULL;
13601 bdev_logical_block_size(bdev);
13602
13603 ;
13604 return 0;
13605 }
13606
13607 _ACEOF
13608
13609
13610
13611 cat - <<_ACEOF >conftest.h
13612
13613 _ACEOF
13614
13615
13616 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13617 echo "obj-m := conftest.o" >build/Makefile
13618 modpost_flag=''
13619 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13620 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13622 (eval $ac_try) 2>&5
13623 ac_status=$?
13624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13625 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13627 (eval $ac_try) 2>&5
13628 ac_status=$?
13629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13630 test $ac_status = 0; }; }; then :
13631
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13633 $as_echo "yes" >&6; }
13634
13635 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
13636
13637
13638 else
13639 $as_echo "$as_me: failed program was:" >&5
13640 sed 's/^/| /' conftest.$ac_ext >&5
13641
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13643 $as_echo "no" >&6; }
13644
13645
13646
13647 fi
13648 rm -Rf build
13649
13650
13651 EXTRA_KCFLAGS="$tmp_flags"
13652
13653
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
13655 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
13656 tmp_flags="$EXTRA_KCFLAGS"
13657 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13658
13659
13660 cat confdefs.h - <<_ACEOF >conftest.c
13661
13662
13663 #include <linux/blkdev.h>
13664
13665 int
13666 main (void)
13667 {
13668
13669 struct block_device *bdev = NULL;
13670 bdev_physical_block_size(bdev);
13671
13672 ;
13673 return 0;
13674 }
13675
13676 _ACEOF
13677
13678
13679
13680 cat - <<_ACEOF >conftest.h
13681
13682 _ACEOF
13683
13684
13685 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13686 echo "obj-m := conftest.o" >build/Makefile
13687 modpost_flag=''
13688 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13689 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13691 (eval $ac_try) 2>&5
13692 ac_status=$?
13693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13694 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13696 (eval $ac_try) 2>&5
13697 ac_status=$?
13698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13699 test $ac_status = 0; }; }; then :
13700
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13702 $as_echo "yes" >&6; }
13703
13704 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
13705
13706
13707 else
13708 $as_echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13710
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13712 $as_echo "no" >&6; }
13713
13714
13715
13716 fi
13717 rm -Rf build
13718
13719
13720 EXTRA_KCFLAGS="$tmp_flags"
13721
13722
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
13724 $as_echo_n "checking whether bio has bi_iter... " >&6; }
13725
13726
13727 cat confdefs.h - <<_ACEOF >conftest.c
13728
13729
13730 #include <linux/bio.h>
13731
13732 int
13733 main (void)
13734 {
13735
13736 struct bio bio;
13737 bio.bi_iter.bi_sector = 0;
13738
13739 ;
13740 return 0;
13741 }
13742
13743 _ACEOF
13744
13745
13746
13747 cat - <<_ACEOF >conftest.h
13748
13749 _ACEOF
13750
13751
13752 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13753 echo "obj-m := conftest.o" >build/Makefile
13754 modpost_flag=''
13755 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13756 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13758 (eval $ac_try) 2>&5
13759 ac_status=$?
13760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13761 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13763 (eval $ac_try) 2>&5
13764 ac_status=$?
13765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13766 test $ac_status = 0; }; }; then :
13767
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13769 $as_echo "yes" >&6; }
13770
13771 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
13772
13773
13774 else
13775 $as_echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13777
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13779 $as_echo "no" >&6; }
13780
13781
13782
13783 fi
13784 rm -Rf build
13785
13786
13787
13788
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST is defined" >&5
13790 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
13791
13792
13793 cat confdefs.h - <<_ACEOF >conftest.c
13794
13795
13796 #include <linux/bio.h>
13797
13798 int
13799 main (void)
13800 {
13801
13802 int flags __attribute__ ((unused));
13803 flags = (1 << BIO_RW_FAILFAST);
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_BIO_RW_FAILFAST 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
13854
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
13856 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
13857
13858
13859 cat confdefs.h - <<_ACEOF >conftest.c
13860
13861
13862 #include <linux/bio.h>
13863
13864 int
13865 main (void)
13866 {
13867
13868 int flags __attribute__ ((unused));
13869 flags = ((1 << BIO_RW_FAILFAST_DEV) |
13870 (1 << BIO_RW_FAILFAST_TRANSPORT) |
13871 (1 << BIO_RW_FAILFAST_DRIVER));
13872
13873 ;
13874 return 0;
13875 }
13876
13877 _ACEOF
13878
13879
13880
13881 cat - <<_ACEOF >conftest.h
13882
13883 _ACEOF
13884
13885
13886 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13887 echo "obj-m := conftest.o" >build/Makefile
13888 modpost_flag=''
13889 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13890 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13892 (eval $ac_try) 2>&5
13893 ac_status=$?
13894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13895 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13897 (eval $ac_try) 2>&5
13898 ac_status=$?
13899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13900 test $ac_status = 0; }; }; then :
13901
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13903 $as_echo "yes" >&6; }
13904
13905 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
13906
13907
13908 else
13909 $as_echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13911
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13913 $as_echo "no" >&6; }
13914
13915
13916
13917 fi
13918 rm -Rf build
13919
13920
13921
13922
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
13924 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
13925
13926
13927 cat confdefs.h - <<_ACEOF >conftest.c
13928
13929
13930 #include <linux/bio.h>
13931
13932 int
13933 main (void)
13934 {
13935
13936 int flags __attribute__ ((unused));
13937 flags = REQ_FAILFAST_MASK;
13938
13939 ;
13940 return 0;
13941 }
13942
13943 _ACEOF
13944
13945
13946
13947 cat - <<_ACEOF >conftest.h
13948
13949 _ACEOF
13950
13951
13952 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13953 echo "obj-m := conftest.o" >build/Makefile
13954 modpost_flag=''
13955 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13956 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13958 (eval $ac_try) 2>&5
13959 ac_status=$?
13960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13961 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13963 (eval $ac_try) 2>&5
13964 ac_status=$?
13965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13966 test $ac_status = 0; }; }; then :
13967
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13969 $as_echo "yes" >&6; }
13970
13971 $as_echo "#define HAVE_BIO_REQ_FAILFAST_MASK 1" >>confdefs.h
13972
13973
13974 else
13975 $as_echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13977
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13979 $as_echo "no" >&6; }
13980
13981
13982
13983 fi
13984 rm -Rf build
13985
13986
13987
13988
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 2 args" >&5
13990 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
13991
13992
13993 cat confdefs.h - <<_ACEOF >conftest.c
13994
13995
13996 #include <linux/bio.h>
13997
13998 void wanted_end_io(struct bio *bio, int x) { return; }
13999
14000 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
14001
14002 int
14003 main (void)
14004 {
14005
14006
14007 ;
14008 return 0;
14009 }
14010
14011 _ACEOF
14012
14013
14014
14015 cat - <<_ACEOF >conftest.h
14016
14017 _ACEOF
14018
14019
14020 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14021 echo "obj-m := conftest.o" >build/Makefile
14022 modpost_flag=''
14023 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14024 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14026 (eval $ac_try) 2>&5
14027 ac_status=$?
14028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14029 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14031 (eval $ac_try) 2>&5
14032 ac_status=$?
14033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14034 test $ac_status = 0; }; }; then :
14035
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14037 $as_echo "yes" >&6; }
14038
14039 $as_echo "#define HAVE_2ARGS_BIO_END_IO_T 1" >>confdefs.h
14040
14041
14042 else
14043 $as_echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14045
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14047 $as_echo "no" >&6; }
14048
14049
14050
14051 fi
14052 rm -Rf build
14053
14054
14055
14056
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNC is defined" >&5
14058 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
14059
14060
14061 cat confdefs.h - <<_ACEOF >conftest.c
14062
14063
14064 #include <linux/bio.h>
14065
14066 int
14067 main (void)
14068 {
14069
14070 int flags __attribute__ ((unused));
14071 flags = BIO_RW_SYNC;
14072
14073 ;
14074 return 0;
14075 }
14076
14077 _ACEOF
14078
14079
14080
14081 cat - <<_ACEOF >conftest.h
14082
14083 _ACEOF
14084
14085
14086 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14087 echo "obj-m := conftest.o" >build/Makefile
14088 modpost_flag=''
14089 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14090 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14092 (eval $ac_try) 2>&5
14093 ac_status=$?
14094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14095 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14097 (eval $ac_try) 2>&5
14098 ac_status=$?
14099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14100 test $ac_status = 0; }; }; then :
14101
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14103 $as_echo "yes" >&6; }
14104
14105 $as_echo "#define HAVE_BIO_RW_SYNC 1" >>confdefs.h
14106
14107
14108 else
14109 $as_echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14111
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14113 $as_echo "no" >&6; }
14114
14115
14116
14117 fi
14118 rm -Rf build
14119
14120
14121
14122
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNCIO is defined" >&5
14124 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
14125
14126
14127 cat confdefs.h - <<_ACEOF >conftest.c
14128
14129
14130 #include <linux/bio.h>
14131
14132 int
14133 main (void)
14134 {
14135
14136 int flags __attribute__ ((unused));
14137 flags = BIO_RW_SYNCIO;
14138
14139 ;
14140 return 0;
14141 }
14142
14143 _ACEOF
14144
14145
14146
14147 cat - <<_ACEOF >conftest.h
14148
14149 _ACEOF
14150
14151
14152 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14153 echo "obj-m := conftest.o" >build/Makefile
14154 modpost_flag=''
14155 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14156 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14158 (eval $ac_try) 2>&5
14159 ac_status=$?
14160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14161 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14163 (eval $ac_try) 2>&5
14164 ac_status=$?
14165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14166 test $ac_status = 0; }; }; then :
14167
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14169 $as_echo "yes" >&6; }
14170
14171 $as_echo "#define HAVE_BIO_RW_SYNCIO 1" >>confdefs.h
14172
14173
14174 else
14175 $as_echo "$as_me: failed program was:" >&5
14176 sed 's/^/| /' conftest.$ac_ext >&5
14177
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14179 $as_echo "no" >&6; }
14180
14181
14182
14183 fi
14184 rm -Rf build
14185
14186
14187
14188
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_SYNC is defined" >&5
14190 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
14191
14192
14193 cat confdefs.h - <<_ACEOF >conftest.c
14194
14195
14196 #include <linux/bio.h>
14197
14198 int
14199 main (void)
14200 {
14201
14202 int flags __attribute__ ((unused));
14203 flags = REQ_SYNC;
14204
14205 ;
14206 return 0;
14207 }
14208
14209 _ACEOF
14210
14211
14212
14213 cat - <<_ACEOF >conftest.h
14214
14215 _ACEOF
14216
14217
14218 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14219 echo "obj-m := conftest.o" >build/Makefile
14220 modpost_flag=''
14221 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14222 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14224 (eval $ac_try) 2>&5
14225 ac_status=$?
14226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14227 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14229 (eval $ac_try) 2>&5
14230 ac_status=$?
14231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14232 test $ac_status = 0; }; }; then :
14233
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14235 $as_echo "yes" >&6; }
14236
14237 $as_echo "#define HAVE_REQ_SYNC 1" >>confdefs.h
14238
14239
14240 else
14241 $as_echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.$ac_ext >&5
14243
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14245 $as_echo "no" >&6; }
14246
14247
14248
14249 fi
14250 rm -Rf build
14251
14252
14253
14254
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is available" >&5
14256 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
14257 tmp_flags="$EXTRA_KCFLAGS"
14258 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14259
14260
14261 cat confdefs.h - <<_ACEOF >conftest.c
14262
14263
14264 #include <linux/blkdev.h>
14265
14266 int
14267 main (void)
14268 {
14269
14270 struct request *req = NULL;
14271 (void) blk_end_request(req, 0, 0);
14272
14273 ;
14274 return 0;
14275 }
14276
14277 _ACEOF
14278
14279
14280
14281 cat - <<_ACEOF >conftest.h
14282
14283 _ACEOF
14284
14285
14286 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14287 echo "obj-m := conftest.o" >build/Makefile
14288 modpost_flag=''
14289 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14290 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14292 (eval $ac_try) 2>&5
14293 ac_status=$?
14294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14295 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14297 (eval $ac_try) 2>&5
14298 ac_status=$?
14299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14300 test $ac_status = 0; }; }; then :
14301
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14303 $as_echo "yes" >&6; }
14304
14305 $as_echo "#define HAVE_BLK_END_REQUEST 1" >>confdefs.h
14306
14307
14308 else
14309 $as_echo "$as_me: failed program was:" >&5
14310 sed 's/^/| /' conftest.$ac_ext >&5
14311
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313 $as_echo "no" >&6; }
14314
14315
14316
14317 fi
14318 rm -Rf build
14319
14320
14321
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is GPL-only" >&5
14323 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
14324
14325
14326 cat confdefs.h - <<_ACEOF >conftest.c
14327
14328
14329 #include <linux/module.h>
14330 #include <linux/blkdev.h>
14331
14332 MODULE_LICENSE("$ZFS_META_LICENSE");
14333
14334 int
14335 main (void)
14336 {
14337
14338 struct request *req = NULL;
14339 (void) blk_end_request(req, 0, 0);
14340
14341 ;
14342 return 0;
14343 }
14344
14345 _ACEOF
14346
14347
14348
14349 cat - <<_ACEOF >conftest.h
14350
14351 _ACEOF
14352
14353
14354 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14355 echo "obj-m := conftest.o" >build/Makefile
14356 modpost_flag=''
14357 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14358 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14360 (eval $ac_try) 2>&5
14361 ac_status=$?
14362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14363 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14365 (eval $ac_try) 2>&5
14366 ac_status=$?
14367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14368 test $ac_status = 0; }; }; then :
14369
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14371 $as_echo "no" >&6; }
14372
14373 else
14374 $as_echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.$ac_ext >&5
14376
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14378 $as_echo "yes" >&6; }
14379
14380 $as_echo "#define HAVE_BLK_END_REQUEST_GPL_ONLY 1" >>confdefs.h
14381
14382
14383
14384
14385 fi
14386 rm -Rf build
14387
14388
14389 EXTRA_KCFLAGS="$tmp_flags"
14390
14391
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
14393 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
14394 tmp_flags="$EXTRA_KCFLAGS"
14395 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14396
14397
14398 cat confdefs.h - <<_ACEOF >conftest.c
14399
14400
14401 #include <linux/blkdev.h>
14402
14403 int
14404 main (void)
14405 {
14406
14407 struct request_queue *q = NULL;
14408 (void) blk_queue_flush(q, REQ_FLUSH);
14409
14410 ;
14411 return 0;
14412 }
14413
14414 _ACEOF
14415
14416
14417
14418 cat - <<_ACEOF >conftest.h
14419
14420 _ACEOF
14421
14422
14423 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14424 echo "obj-m := conftest.o" >build/Makefile
14425 modpost_flag=''
14426 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14427 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14429 (eval $ac_try) 2>&5
14430 ac_status=$?
14431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14432 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14434 (eval $ac_try) 2>&5
14435 ac_status=$?
14436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14437 test $ac_status = 0; }; }; then :
14438
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14440 $as_echo "yes" >&6; }
14441
14442 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
14443
14444
14445 else
14446 $as_echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14448
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14450 $as_echo "no" >&6; }
14451
14452
14453
14454 fi
14455 rm -Rf build
14456
14457
14458
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
14460 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
14461
14462
14463 cat confdefs.h - <<_ACEOF >conftest.c
14464
14465
14466 #include <linux/module.h>
14467 #include <linux/blkdev.h>
14468
14469 MODULE_LICENSE("$ZFS_META_LICENSE");
14470
14471 int
14472 main (void)
14473 {
14474
14475 struct request_queue *q = NULL;
14476 (void) blk_queue_flush(q, REQ_FLUSH);
14477
14478 ;
14479 return 0;
14480 }
14481
14482 _ACEOF
14483
14484
14485
14486 cat - <<_ACEOF >conftest.h
14487
14488 _ACEOF
14489
14490
14491 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14492 echo "obj-m := conftest.o" >build/Makefile
14493 modpost_flag=''
14494 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14495 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14497 (eval $ac_try) 2>&5
14498 ac_status=$?
14499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14500 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14502 (eval $ac_try) 2>&5
14503 ac_status=$?
14504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14505 test $ac_status = 0; }; }; then :
14506
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14508 $as_echo "no" >&6; }
14509
14510 else
14511 $as_echo "$as_me: failed program was:" >&5
14512 sed 's/^/| /' conftest.$ac_ext >&5
14513
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14515 $as_echo "yes" >&6; }
14516
14517 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
14518
14519
14520
14521
14522 fi
14523 rm -Rf build
14524
14525
14526 EXTRA_KCFLAGS="$tmp_flags"
14527
14528
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
14530 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
14531 tmp_flags="$EXTRA_KCFLAGS"
14532 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14533
14534
14535 cat confdefs.h - <<_ACEOF >conftest.c
14536
14537
14538 #include <linux/blkdev.h>
14539
14540 int
14541 main (void)
14542 {
14543
14544 struct request_queue *q = NULL;
14545 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
14546
14547 ;
14548 return 0;
14549 }
14550
14551 _ACEOF
14552
14553
14554
14555 cat - <<_ACEOF >conftest.h
14556
14557 _ACEOF
14558
14559
14560 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14561 echo "obj-m := conftest.o" >build/Makefile
14562 modpost_flag=''
14563 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14564 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14566 (eval $ac_try) 2>&5
14567 ac_status=$?
14568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14569 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14571 (eval $ac_try) 2>&5
14572 ac_status=$?
14573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14574 test $ac_status = 0; }; }; then :
14575
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14577 $as_echo "yes" >&6; }
14578
14579 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
14580
14581
14582 else
14583 $as_echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14585
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14587 $as_echo "no" >&6; }
14588
14589
14590
14591 fi
14592 rm -Rf build
14593
14594
14595 EXTRA_KCFLAGS="$tmp_flags"
14596
14597
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
14599 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
14600 tmp_flags="$EXTRA_KCFLAGS"
14601 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14602
14603
14604 cat confdefs.h - <<_ACEOF >conftest.c
14605
14606
14607 #include <linux/blkdev.h>
14608
14609 int
14610 main (void)
14611 {
14612
14613 struct request_queue *q = NULL;
14614 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
14615
14616 ;
14617 return 0;
14618 }
14619
14620 _ACEOF
14621
14622
14623
14624 cat - <<_ACEOF >conftest.h
14625
14626 _ACEOF
14627
14628
14629 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14630 echo "obj-m := conftest.o" >build/Makefile
14631 modpost_flag=''
14632 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14633 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14635 (eval $ac_try) 2>&5
14636 ac_status=$?
14637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14638 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14640 (eval $ac_try) 2>&5
14641 ac_status=$?
14642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14643 test $ac_status = 0; }; }; then :
14644
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14646 $as_echo "yes" >&6; }
14647
14648 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
14649
14650
14651 else
14652 $as_echo "$as_me: failed program was:" >&5
14653 sed 's/^/| /' conftest.$ac_ext >&5
14654
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14656 $as_echo "no" >&6; }
14657
14658
14659
14660 fi
14661 rm -Rf build
14662
14663
14664 EXTRA_KCFLAGS="$tmp_flags"
14665
14666
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_physical_block_size() is available" >&5
14668 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
14669 tmp_flags="$EXTRA_KCFLAGS"
14670 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14671
14672
14673 cat confdefs.h - <<_ACEOF >conftest.c
14674
14675
14676 #include <linux/blkdev.h>
14677
14678 int
14679 main (void)
14680 {
14681
14682 struct request_queue *q = NULL;
14683 unsigned short block_size = 1;
14684 (void) blk_queue_physical_block_size(q, block_size);
14685
14686 ;
14687 return 0;
14688 }
14689
14690 _ACEOF
14691
14692
14693
14694 cat - <<_ACEOF >conftest.h
14695
14696 _ACEOF
14697
14698
14699 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14700 echo "obj-m := conftest.o" >build/Makefile
14701 modpost_flag=''
14702 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14703 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14705 (eval $ac_try) 2>&5
14706 ac_status=$?
14707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14708 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14710 (eval $ac_try) 2>&5
14711 ac_status=$?
14712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14713 test $ac_status = 0; }; }; then :
14714
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14716 $as_echo "yes" >&6; }
14717
14718 $as_echo "#define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
14719
14720
14721 else
14722 $as_echo "$as_me: failed program was:" >&5
14723 sed 's/^/| /' conftest.$ac_ext >&5
14724
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14726 $as_echo "no" >&6; }
14727
14728
14729
14730 fi
14731 rm -Rf build
14732
14733
14734 EXTRA_KCFLAGS="$tmp_flags"
14735
14736
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_io_opt() is available" >&5
14738 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
14739 tmp_flags="$EXTRA_KCFLAGS"
14740 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14741
14742
14743 cat confdefs.h - <<_ACEOF >conftest.c
14744
14745
14746 #include <linux/blkdev.h>
14747
14748 int
14749 main (void)
14750 {
14751
14752 struct request_queue *q = NULL;
14753 unsigned int opt = 1;
14754 (void) blk_queue_io_opt(q, opt);
14755
14756 ;
14757 return 0;
14758 }
14759
14760 _ACEOF
14761
14762
14763
14764 cat - <<_ACEOF >conftest.h
14765
14766 _ACEOF
14767
14768
14769 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14770 echo "obj-m := conftest.o" >build/Makefile
14771 modpost_flag=''
14772 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14773 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14775 (eval $ac_try) 2>&5
14776 ac_status=$?
14777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14778 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14780 (eval $ac_try) 2>&5
14781 ac_status=$?
14782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14783 test $ac_status = 0; }; }; then :
14784
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14786 $as_echo "yes" >&6; }
14787
14788 $as_echo "#define HAVE_BLK_QUEUE_IO_OPT 1" >>confdefs.h
14789
14790
14791 else
14792 $as_echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14794
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14796 $as_echo "no" >&6; }
14797
14798
14799
14800 fi
14801 rm -Rf build
14802
14803
14804 EXTRA_KCFLAGS="$tmp_flags"
14805
14806
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_nonrot() is available" >&5
14808 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
14809 tmp_flags="$EXTRA_KCFLAGS"
14810 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14811
14812
14813 cat confdefs.h - <<_ACEOF >conftest.c
14814
14815
14816 #include <linux/blkdev.h>
14817
14818 int
14819 main (void)
14820 {
14821
14822 struct request_queue *q = NULL;
14823 (void) blk_queue_nonrot(q);
14824
14825 ;
14826 return 0;
14827 }
14828
14829 _ACEOF
14830
14831
14832
14833 cat - <<_ACEOF >conftest.h
14834
14835 _ACEOF
14836
14837
14838 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14839 echo "obj-m := conftest.o" >build/Makefile
14840 modpost_flag=''
14841 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14842 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14844 (eval $ac_try) 2>&5
14845 ac_status=$?
14846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14847 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14849 (eval $ac_try) 2>&5
14850 ac_status=$?
14851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14852 test $ac_status = 0; }; }; then :
14853
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14855 $as_echo "yes" >&6; }
14856
14857 $as_echo "#define HAVE_BLK_QUEUE_NONROT 1" >>confdefs.h
14858
14859
14860 else
14861 $as_echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14863
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14865 $as_echo "no" >&6; }
14866
14867
14868
14869 fi
14870 rm -Rf build
14871
14872
14873 EXTRA_KCFLAGS="$tmp_flags"
14874
14875
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_discard() is available" >&5
14877 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
14878 tmp_flags="$EXTRA_KCFLAGS"
14879 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14880
14881
14882 cat confdefs.h - <<_ACEOF >conftest.c
14883
14884
14885 #include <linux/blkdev.h>
14886
14887 int
14888 main (void)
14889 {
14890
14891 struct request_queue *q = NULL;
14892 (void) blk_queue_discard(q);
14893
14894 ;
14895 return 0;
14896 }
14897
14898 _ACEOF
14899
14900
14901
14902 cat - <<_ACEOF >conftest.h
14903
14904 _ACEOF
14905
14906
14907 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14908 echo "obj-m := conftest.o" >build/Makefile
14909 modpost_flag=''
14910 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14911 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14913 (eval $ac_try) 2>&5
14914 ac_status=$?
14915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14916 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14918 (eval $ac_try) 2>&5
14919 ac_status=$?
14920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14921 test $ac_status = 0; }; }; then :
14922
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14924 $as_echo "yes" >&6; }
14925
14926 $as_echo "#define HAVE_BLK_QUEUE_DISCARD 1" >>confdefs.h
14927
14928
14929 else
14930 $as_echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14932
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14934 $as_echo "no" >&6; }
14935
14936
14937
14938 fi
14939 rm -Rf build
14940
14941
14942 EXTRA_KCFLAGS="$tmp_flags"
14943
14944
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_fetch_request() is available" >&5
14946 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
14947 tmp_flags="$EXTRA_KCFLAGS"
14948 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14949
14950
14951 cat confdefs.h - <<_ACEOF >conftest.c
14952
14953
14954 #include <linux/blkdev.h>
14955
14956 int
14957 main (void)
14958 {
14959
14960 struct request_queue *q = NULL;
14961 (void) blk_fetch_request(q);
14962
14963 ;
14964 return 0;
14965 }
14966
14967 _ACEOF
14968
14969
14970
14971 cat - <<_ACEOF >conftest.h
14972
14973 _ACEOF
14974
14975
14976 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14977 echo "obj-m := conftest.o" >build/Makefile
14978 modpost_flag=''
14979 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14980 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14982 (eval $ac_try) 2>&5
14983 ac_status=$?
14984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14985 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14987 (eval $ac_try) 2>&5
14988 ac_status=$?
14989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14990 test $ac_status = 0; }; }; then :
14991
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14993 $as_echo "yes" >&6; }
14994
14995 $as_echo "#define HAVE_BLK_FETCH_REQUEST 1" >>confdefs.h
14996
14997
14998 else
14999 $as_echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15001
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15003 $as_echo "no" >&6; }
15004
15005
15006
15007 fi
15008 rm -Rf build
15009
15010
15011 EXTRA_KCFLAGS="$tmp_flags"
15012
15013
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_requeue_request() is available" >&5
15015 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
15016 tmp_flags="$EXTRA_KCFLAGS"
15017 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15018
15019
15020 cat confdefs.h - <<_ACEOF >conftest.c
15021
15022
15023 #include <linux/blkdev.h>
15024
15025 int
15026 main (void)
15027 {
15028
15029 struct request_queue *q = NULL;
15030 struct request *req = NULL;
15031 blk_requeue_request(q, req);
15032
15033 ;
15034 return 0;
15035 }
15036
15037 _ACEOF
15038
15039
15040
15041 cat - <<_ACEOF >conftest.h
15042
15043 _ACEOF
15044
15045
15046 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15047 echo "obj-m := conftest.o" >build/Makefile
15048 modpost_flag=''
15049 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15050 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15052 (eval $ac_try) 2>&5
15053 ac_status=$?
15054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15055 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15057 (eval $ac_try) 2>&5
15058 ac_status=$?
15059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15060 test $ac_status = 0; }; }; then :
15061
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15063 $as_echo "yes" >&6; }
15064
15065 $as_echo "#define HAVE_BLK_REQUEUE_REQUEST 1" >>confdefs.h
15066
15067
15068 else
15069 $as_echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15071
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15073 $as_echo "no" >&6; }
15074
15075
15076
15077 fi
15078 rm -Rf build
15079
15080
15081 EXTRA_KCFLAGS="$tmp_flags"
15082
15083
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is available" >&5
15085 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
15086 tmp_flags="$EXTRA_KCFLAGS"
15087 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15088
15089
15090 cat confdefs.h - <<_ACEOF >conftest.c
15091
15092
15093 #include <linux/blkdev.h>
15094
15095 int
15096 main (void)
15097 {
15098
15099 struct request *req = NULL;
15100 (void) blk_rq_bytes(req);
15101
15102 ;
15103 return 0;
15104 }
15105
15106 _ACEOF
15107
15108
15109
15110 cat - <<_ACEOF >conftest.h
15111
15112 _ACEOF
15113
15114
15115 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15116 echo "obj-m := conftest.o" >build/Makefile
15117 modpost_flag=''
15118 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15119 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15121 (eval $ac_try) 2>&5
15122 ac_status=$?
15123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15124 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15126 (eval $ac_try) 2>&5
15127 ac_status=$?
15128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15129 test $ac_status = 0; }; }; then :
15130
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15132 $as_echo "yes" >&6; }
15133
15134 $as_echo "#define HAVE_BLK_RQ_BYTES 1" >>confdefs.h
15135
15136
15137 else
15138 $as_echo "$as_me: failed program was:" >&5
15139 sed 's/^/| /' conftest.$ac_ext >&5
15140
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15142 $as_echo "no" >&6; }
15143
15144
15145
15146 fi
15147 rm -Rf build
15148
15149
15150
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is GPL-only" >&5
15152 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
15153
15154
15155 cat confdefs.h - <<_ACEOF >conftest.c
15156
15157
15158 #include <linux/module.h>
15159 #include <linux/blkdev.h>
15160
15161 MODULE_LICENSE("$ZFS_META_LICENSE");
15162
15163 int
15164 main (void)
15165 {
15166
15167 struct request *req = NULL;
15168 (void) blk_rq_bytes(req);
15169
15170 ;
15171 return 0;
15172 }
15173
15174 _ACEOF
15175
15176
15177
15178 cat - <<_ACEOF >conftest.h
15179
15180 _ACEOF
15181
15182
15183 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15184 echo "obj-m := conftest.o" >build/Makefile
15185 modpost_flag=''
15186 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15187 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15192 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15194 (eval $ac_try) 2>&5
15195 ac_status=$?
15196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15197 test $ac_status = 0; }; }; then :
15198
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15200 $as_echo "no" >&6; }
15201
15202 else
15203 $as_echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15205
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15207 $as_echo "yes" >&6; }
15208
15209 $as_echo "#define HAVE_BLK_RQ_BYTES_GPL_ONLY 1" >>confdefs.h
15210
15211
15212
15213
15214 fi
15215 rm -Rf build
15216
15217
15218 EXTRA_KCFLAGS="$tmp_flags"
15219
15220
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_pos() is available" >&5
15222 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
15223 tmp_flags="$EXTRA_KCFLAGS"
15224 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15225
15226
15227 cat confdefs.h - <<_ACEOF >conftest.c
15228
15229
15230 #include <linux/blkdev.h>
15231
15232 int
15233 main (void)
15234 {
15235
15236 struct request *req = NULL;
15237 (void) blk_rq_pos(req);
15238
15239 ;
15240 return 0;
15241 }
15242
15243 _ACEOF
15244
15245
15246
15247 cat - <<_ACEOF >conftest.h
15248
15249 _ACEOF
15250
15251
15252 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15253 echo "obj-m := conftest.o" >build/Makefile
15254 modpost_flag=''
15255 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15256 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15258 (eval $ac_try) 2>&5
15259 ac_status=$?
15260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15261 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15263 (eval $ac_try) 2>&5
15264 ac_status=$?
15265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15266 test $ac_status = 0; }; }; then :
15267
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15269 $as_echo "yes" >&6; }
15270
15271 $as_echo "#define HAVE_BLK_RQ_POS 1" >>confdefs.h
15272
15273
15274 else
15275 $as_echo "$as_me: failed program was:" >&5
15276 sed 's/^/| /' conftest.$ac_ext >&5
15277
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15279 $as_echo "no" >&6; }
15280
15281
15282
15283 fi
15284 rm -Rf build
15285
15286
15287 EXTRA_KCFLAGS="$tmp_flags"
15288
15289
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_sectors() is available" >&5
15291 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
15292 tmp_flags="$EXTRA_KCFLAGS"
15293 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15294
15295
15296 cat confdefs.h - <<_ACEOF >conftest.c
15297
15298
15299 #include <linux/blkdev.h>
15300
15301 int
15302 main (void)
15303 {
15304
15305 struct request *req = NULL;
15306 (void) blk_rq_sectors(req);
15307
15308 ;
15309 return 0;
15310 }
15311
15312 _ACEOF
15313
15314
15315
15316 cat - <<_ACEOF >conftest.h
15317
15318 _ACEOF
15319
15320
15321 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15322 echo "obj-m := conftest.o" >build/Makefile
15323 modpost_flag=''
15324 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15325 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15327 (eval $ac_try) 2>&5
15328 ac_status=$?
15329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15330 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15332 (eval $ac_try) 2>&5
15333 ac_status=$?
15334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15335 test $ac_status = 0; }; }; then :
15336
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15338 $as_echo "yes" >&6; }
15339
15340 $as_echo "#define HAVE_BLK_RQ_SECTORS 1" >>confdefs.h
15341
15342
15343 else
15344 $as_echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.$ac_ext >&5
15346
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15348 $as_echo "no" >&6; }
15349
15350
15351
15352 fi
15353 rm -Rf build
15354
15355
15356 EXTRA_KCFLAGS="$tmp_flags"
15357
15358
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
15360 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
15361 tmp_flags="$EXTRA_KCFLAGS"
15362 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15363
15364
15365 cat confdefs.h - <<_ACEOF >conftest.c
15366
15367
15368 #include <linux/blkdev.h>
15369
15370 int
15371 main (void)
15372 {
15373
15374 struct gendisk *disk = NULL;
15375 (void) get_disk_ro(disk);
15376
15377 ;
15378 return 0;
15379 }
15380
15381 _ACEOF
15382
15383
15384
15385 cat - <<_ACEOF >conftest.h
15386
15387 _ACEOF
15388
15389
15390 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15391 echo "obj-m := conftest.o" >build/Makefile
15392 modpost_flag=''
15393 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15394 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15396 (eval $ac_try) 2>&5
15397 ac_status=$?
15398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15399 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15401 (eval $ac_try) 2>&5
15402 ac_status=$?
15403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15404 test $ac_status = 0; }; }; then :
15405
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15407 $as_echo "yes" >&6; }
15408
15409 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
15410
15411
15412 else
15413 $as_echo "$as_me: failed program was:" >&5
15414 sed 's/^/| /' conftest.$ac_ext >&5
15415
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15417 $as_echo "no" >&6; }
15418
15419
15420
15421 fi
15422 rm -Rf build
15423
15424
15425 EXTRA_KCFLAGS="$tmp_flags"
15426
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
15428 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
15429
15430
15431
15432 cat confdefs.h - <<_ACEOF >conftest.c
15433
15434
15435 #include <linux/genhd.h>
15436
15437 int
15438 main (void)
15439 {
15440
15441 get_gendisk(0, NULL);
15442
15443 ;
15444 return 0;
15445 }
15446
15447 _ACEOF
15448
15449
15450
15451 cat - <<_ACEOF >conftest.h
15452
15453 _ACEOF
15454
15455
15456 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15457 echo "obj-m := conftest.o" >build/Makefile
15458 modpost_flag=''
15459 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15460 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15462 (eval $ac_try) 2>&5
15463 ac_status=$?
15464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15465 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15467 (eval $ac_try) 2>&5
15468 ac_status=$?
15469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15470 test $ac_status = 0; }; }; then :
15471 rc=0
15472 else
15473 $as_echo "$as_me: failed program was:" >&5
15474 sed 's/^/| /' conftest.$ac_ext >&5
15475 rc=1
15476
15477
15478 fi
15479 rm -Rf build
15480
15481
15482 if test $rc -ne 0; then :
15483
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15485 $as_echo "no" >&6; }
15486
15487 else
15488 if test "x$enable_linux_builtin" != xyes; then
15489
15490 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
15491 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15492 rc=$?
15493 if test $rc -ne 0; then
15494 export=0
15495 for file in block/genhd.c; do
15496 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
15497 "$LINUX/$file" 2>/dev/null
15498 rc=$?
15499 if test $rc -eq 0; then
15500 export=1
15501 break;
15502 fi
15503 done
15504 if test $export -eq 0; then :
15505 rc=1
15506 else :
15507 rc=0
15508 fi
15509 else :
15510 rc=0
15511 fi
15512
15513 fi
15514 if test $rc -ne 0; then :
15515
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15517 $as_echo "no" >&6; }
15518
15519 else :
15520
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15522 $as_echo "yes" >&6; }
15523
15524 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
15525
15526
15527 fi
15528 fi
15529
15530
15531
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_is_sync() is available" >&5
15533 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
15534 tmp_flags="$EXTRA_KCFLAGS"
15535 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15536
15537
15538 cat confdefs.h - <<_ACEOF >conftest.c
15539
15540
15541 #include <linux/blkdev.h>
15542
15543 int
15544 main (void)
15545 {
15546
15547 struct request *req = NULL;
15548 (void) rq_is_sync(req);
15549
15550 ;
15551 return 0;
15552 }
15553
15554 _ACEOF
15555
15556
15557
15558 cat - <<_ACEOF >conftest.h
15559
15560 _ACEOF
15561
15562
15563 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15564 echo "obj-m := conftest.o" >build/Makefile
15565 modpost_flag=''
15566 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15567 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15569 (eval $ac_try) 2>&5
15570 ac_status=$?
15571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15572 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15574 (eval $ac_try) 2>&5
15575 ac_status=$?
15576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15577 test $ac_status = 0; }; }; then :
15578
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15580 $as_echo "yes" >&6; }
15581
15582 $as_echo "#define HAVE_RQ_IS_SYNC 1" >>confdefs.h
15583
15584
15585 else
15586 $as_echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15588
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15590 $as_echo "no" >&6; }
15591
15592
15593
15594 fi
15595 rm -Rf build
15596
15597
15598 EXTRA_KCFLAGS="$tmp_flags"
15599
15600
15601 tmp_flags="$EXTRA_KCFLAGS"
15602 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15603
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_for_each_segment() wants bio_vec *" >&5
15605 $as_echo_n "checking whether rq_for_each_segment() wants bio_vec *... " >&6; }
15606
15607
15608 cat confdefs.h - <<_ACEOF >conftest.c
15609
15610
15611 #include <linux/blkdev.h>
15612
15613 int
15614 main (void)
15615 {
15616
15617 struct bio_vec *bv;
15618 struct req_iterator iter;
15619 struct request *req = NULL;
15620 rq_for_each_segment(bv, req, iter) { }
15621
15622 ;
15623 return 0;
15624 }
15625
15626 _ACEOF
15627
15628
15629
15630 cat - <<_ACEOF >conftest.h
15631
15632 _ACEOF
15633
15634
15635 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15636 echo "obj-m := conftest.o" >build/Makefile
15637 modpost_flag=''
15638 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15639 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15641 (eval $ac_try) 2>&5
15642 ac_status=$?
15643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15644 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15646 (eval $ac_try) 2>&5
15647 ac_status=$?
15648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15649 test $ac_status = 0; }; }; then :
15650
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15652 $as_echo "yes" >&6; }
15653
15654 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT 1" >>confdefs.h
15655
15656
15657 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT_BVP 1" >>confdefs.h
15658
15659
15660 else
15661 $as_echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15663
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15665 $as_echo "no" >&6; }
15666
15667
15668
15669 fi
15670 rm -Rf build
15671
15672
15673
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_for_each_segment() wants bio_vec" >&5
15675 $as_echo_n "checking whether rq_for_each_segment() wants bio_vec... " >&6; }
15676
15677
15678 cat confdefs.h - <<_ACEOF >conftest.c
15679
15680
15681 #include <linux/blkdev.h>
15682
15683 int
15684 main (void)
15685 {
15686
15687 struct bio_vec bv;
15688 struct req_iterator iter;
15689 struct request *req = NULL;
15690 rq_for_each_segment(bv, req, iter) { }
15691
15692 ;
15693 return 0;
15694 }
15695
15696 _ACEOF
15697
15698
15699
15700 cat - <<_ACEOF >conftest.h
15701
15702 _ACEOF
15703
15704
15705 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15706 echo "obj-m := conftest.o" >build/Makefile
15707 modpost_flag=''
15708 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15709 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15711 (eval $ac_try) 2>&5
15712 ac_status=$?
15713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15714 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15716 (eval $ac_try) 2>&5
15717 ac_status=$?
15718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15719 test $ac_status = 0; }; }; then :
15720
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15722 $as_echo "yes" >&6; }
15723
15724 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT 1" >>confdefs.h
15725
15726
15727 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT_BV 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_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15735 $as_echo "no" >&6; }
15736
15737
15738
15739 fi
15740 rm -Rf build
15741
15742
15743
15744 EXTRA_KCFLAGS="$tmp_flags"
15745
15746
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
15748 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
15749
15750
15751 cat confdefs.h - <<_ACEOF >conftest.c
15752
15753
15754 #include <linux/blkdev.h>
15755
15756 int
15757 main (void)
15758 {
15759
15760 struct queue_limits ql __attribute__ ((unused));
15761
15762 ql.discard_granularity = 0;
15763
15764 ;
15765 return 0;
15766 }
15767
15768 _ACEOF
15769
15770
15771
15772 cat - <<_ACEOF >conftest.h
15773
15774 _ACEOF
15775
15776
15777 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15778 echo "obj-m := conftest.o" >build/Makefile
15779 modpost_flag=''
15780 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15781 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15783 (eval $ac_try) 2>&5
15784 ac_status=$?
15785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15786 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
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; }; }; then :
15792
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15794 $as_echo "yes" >&6; }
15795
15796 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
15797
15798
15799 else
15800 $as_echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15802
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15804 $as_echo "no" >&6; }
15805
15806
15807
15808 fi
15809 rm -Rf build
15810
15811
15812
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_hander" >&5
15814 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
15815
15816
15817 cat confdefs.h - <<_ACEOF >conftest.c
15818
15819
15820 #include <linux/fs.h>
15821 #include <linux/xattr.h>
15822
15823 const struct xattr_handler xattr_test_handler = {
15824 .prefix = "test",
15825 .get = NULL,
15826 .set = NULL,
15827 };
15828
15829 const struct xattr_handler *xattr_handlers[] = {
15830 &xattr_test_handler,
15831 };
15832
15833 const struct super_block sb __attribute__ ((unused)) = {
15834 .s_xattr = xattr_handlers,
15835 };
15836
15837 int
15838 main (void)
15839 {
15840
15841
15842 ;
15843 return 0;
15844 }
15845
15846 _ACEOF
15847
15848
15849
15850 cat - <<_ACEOF >conftest.h
15851
15852 _ACEOF
15853
15854
15855 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15856 echo "obj-m := conftest.o" >build/Makefile
15857 modpost_flag=''
15858 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15859 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15866 (eval $ac_try) 2>&5
15867 ac_status=$?
15868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15869 test $ac_status = 0; }; }; then :
15870
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15872 $as_echo "yes" >&6; }
15873
15874 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
15875
15876
15877 else
15878 $as_echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.$ac_ext >&5
15880
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15882 $as_echo "no" >&6; }
15883
15884
15885
15886 fi
15887 rm -Rf build
15888
15889
15890
15891
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
15893 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
15894
15895
15896 cat confdefs.h - <<_ACEOF >conftest.c
15897
15898
15899 #include <linux/xattr.h>
15900
15901 int get(struct dentry *dentry, const char *name,
15902 void *buffer, size_t size, int handler_flags) { return 0; }
15903 static const struct xattr_handler
15904 xops __attribute__ ((unused)) = {
15905 .get = get,
15906 };
15907
15908 int
15909 main (void)
15910 {
15911
15912
15913 ;
15914 return 0;
15915 }
15916
15917 _ACEOF
15918
15919
15920
15921 cat - <<_ACEOF >conftest.h
15922
15923 _ACEOF
15924
15925
15926 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15927 echo "obj-m := conftest.o" >build/Makefile
15928 modpost_flag=''
15929 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15930 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15932 (eval $ac_try) 2>&5
15933 ac_status=$?
15934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15935 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15937 (eval $ac_try) 2>&5
15938 ac_status=$?
15939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15940 test $ac_status = 0; }; }; then :
15941
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15943 $as_echo "yes" >&6; }
15944
15945 $as_echo "#define HAVE_DENTRY_XATTR_GET 1" >>confdefs.h
15946
15947
15948 else
15949 $as_echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15951
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15953 $as_echo "no" >&6; }
15954
15955
15956
15957 fi
15958 rm -Rf build
15959
15960
15961
15962
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
15964 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
15965
15966
15967 cat confdefs.h - <<_ACEOF >conftest.c
15968
15969
15970 #include <linux/xattr.h>
15971
15972 int set(struct dentry *dentry, const char *name,
15973 const void *buffer, size_t size, int flags,
15974 int handler_flags) { return 0; }
15975 static const struct xattr_handler
15976 xops __attribute__ ((unused)) = {
15977 .set = set,
15978 };
15979
15980 int
15981 main (void)
15982 {
15983
15984
15985 ;
15986 return 0;
15987 }
15988
15989 _ACEOF
15990
15991
15992
15993 cat - <<_ACEOF >conftest.h
15994
15995 _ACEOF
15996
15997
15998 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15999 echo "obj-m := conftest.o" >build/Makefile
16000 modpost_flag=''
16001 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16002 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16004 (eval $ac_try) 2>&5
16005 ac_status=$?
16006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16007 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16009 (eval $ac_try) 2>&5
16010 ac_status=$?
16011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16012 test $ac_status = 0; }; }; then :
16013
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16015 $as_echo "yes" >&6; }
16016
16017 $as_echo "#define HAVE_DENTRY_XATTR_SET 1" >>confdefs.h
16018
16019
16020 else
16021 $as_echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16023
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16025 $as_echo "no" >&6; }
16026
16027
16028
16029 fi
16030 rm -Rf build
16031
16032
16033
16034
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
16036 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
16037
16038
16039 cat confdefs.h - <<_ACEOF >conftest.c
16040
16041
16042 #include <linux/xattr.h>
16043
16044 size_t list(struct dentry *dentry, char *list, size_t list_size,
16045 const char *name, size_t name_len, int handler_flags)
16046 { return 0; }
16047 static const struct xattr_handler
16048 xops __attribute__ ((unused)) = {
16049 .list = list,
16050 };
16051
16052 int
16053 main (void)
16054 {
16055
16056
16057 ;
16058 return 0;
16059 }
16060
16061 _ACEOF
16062
16063
16064
16065 cat - <<_ACEOF >conftest.h
16066
16067 _ACEOF
16068
16069
16070 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16071 echo "obj-m := conftest.o" >build/Makefile
16072 modpost_flag=''
16073 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16074 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16076 (eval $ac_try) 2>&5
16077 ac_status=$?
16078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16079 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16081 (eval $ac_try) 2>&5
16082 ac_status=$?
16083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16084 test $ac_status = 0; }; }; then :
16085
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16087 $as_echo "yes" >&6; }
16088
16089 $as_echo "#define HAVE_DENTRY_XATTR_LIST 1" >>confdefs.h
16090
16091
16092 else
16093 $as_echo "$as_me: failed program was:" >&5
16094 sed 's/^/| /' conftest.$ac_ext >&5
16095
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16097 $as_echo "no" >&6; }
16098
16099
16100
16101 fi
16102 rm -Rf build
16103
16104
16105
16106
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
16108 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
16109
16110
16111 cat confdefs.h - <<_ACEOF >conftest.c
16112
16113
16114 #include <linux/fs.h>
16115
16116 int
16117 main (void)
16118 {
16119
16120 struct inode *ip = NULL;
16121 (void) inode_owner_or_capable(ip);
16122
16123 ;
16124 return 0;
16125 }
16126
16127 _ACEOF
16128
16129
16130
16131 cat - <<_ACEOF >conftest.h
16132
16133 _ACEOF
16134
16135
16136 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16137 echo "obj-m := conftest.o" >build/Makefile
16138 modpost_flag=''
16139 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16140 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16142 (eval $ac_try) 2>&5
16143 ac_status=$?
16144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16145 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16147 (eval $ac_try) 2>&5
16148 ac_status=$?
16149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16150 test $ac_status = 0; }; }; then :
16151
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16153 $as_echo "yes" >&6; }
16154
16155 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
16156
16157
16158 else
16159 $as_echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16161
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16163 $as_echo "no" >&6; }
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
16165 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
16166
16167
16168 cat confdefs.h - <<_ACEOF >conftest.c
16169
16170
16171 #include <linux/fs.h>
16172 #include <linux/sched.h>
16173
16174 int
16175 main (void)
16176 {
16177
16178 struct inode *ip = NULL;
16179 (void) is_owner_or_cap(ip);
16180
16181 ;
16182 return 0;
16183 }
16184
16185 _ACEOF
16186
16187
16188
16189 cat - <<_ACEOF >conftest.h
16190
16191 _ACEOF
16192
16193
16194 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16195 echo "obj-m := conftest.o" >build/Makefile
16196 modpost_flag=''
16197 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16198 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16200 (eval $ac_try) 2>&5
16201 ac_status=$?
16202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16203 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16205 (eval $ac_try) 2>&5
16206 ac_status=$?
16207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16208 test $ac_status = 0; }; }; then :
16209
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16211 $as_echo "yes" >&6; }
16212
16213 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
16214
16215
16216 else
16217 $as_echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16219
16220 as_fn_error $? "no - Please file a bug report at
16221 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
16222
16223
16224
16225 fi
16226 rm -Rf build
16227
16228
16229
16230
16231
16232 fi
16233 rm -Rf build
16234
16235
16236
16237
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
16239 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
16240
16241
16242 cat confdefs.h - <<_ACEOF >conftest.c
16243
16244
16245 #include <linux/cred.h>
16246 #include <linux/fs.h>
16247 #include <linux/posix_acl_xattr.h>
16248
16249 int
16250 main (void)
16251 {
16252
16253 posix_acl_from_xattr(&init_user_ns, NULL, 0);
16254
16255 ;
16256 return 0;
16257 }
16258
16259 _ACEOF
16260
16261
16262
16263 cat - <<_ACEOF >conftest.h
16264
16265 _ACEOF
16266
16267
16268 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16269 echo "obj-m := conftest.o" >build/Makefile
16270 modpost_flag=''
16271 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16272 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16274 (eval $ac_try) 2>&5
16275 ac_status=$?
16276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16277 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16279 (eval $ac_try) 2>&5
16280 ac_status=$?
16281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16282 test $ac_status = 0; }; }; then :
16283
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16285 $as_echo "yes" >&6; }
16286
16287 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
16288
16289
16290 else
16291 $as_echo "$as_me: failed program was:" >&5
16292 sed 's/^/| /' conftest.$ac_ext >&5
16293
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16295 $as_echo "no" >&6; }
16296
16297
16298
16299 fi
16300 rm -Rf build
16301
16302
16303
16304
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
16306 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
16307
16308
16309 cat confdefs.h - <<_ACEOF >conftest.c
16310
16311
16312 #include <linux/cred.h>
16313 #include <linux/fs.h>
16314 #include <linux/posix_acl.h>
16315
16316 int
16317 main (void)
16318 {
16319
16320 struct posix_acl* tmp = posix_acl_alloc(1, 0);
16321 posix_acl_release(tmp);
16322
16323 ;
16324 return 0;
16325 }
16326
16327 _ACEOF
16328
16329
16330
16331 cat - <<_ACEOF >conftest.h
16332
16333 _ACEOF
16334
16335
16336 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16337 echo "obj-m := conftest.o" >build/Makefile
16338 modpost_flag=''
16339 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16340 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16342 (eval $ac_try) 2>&5
16343 ac_status=$?
16344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16345 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16347 (eval $ac_try) 2>&5
16348 ac_status=$?
16349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16350 test $ac_status = 0; }; }; then :
16351
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16353 $as_echo "yes" >&6; }
16354
16355 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
16356
16357
16358 else
16359 $as_echo "$as_me: failed program was:" >&5
16360 sed 's/^/| /' conftest.$ac_ext >&5
16361
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16363 $as_echo "no" >&6; }
16364
16365
16366
16367 fi
16368 rm -Rf build
16369
16370
16371
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
16373 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
16374
16375
16376 cat confdefs.h - <<_ACEOF >conftest.c
16377
16378
16379 #include <linux/cred.h>
16380 #include <linux/fs.h>
16381 #include <linux/posix_acl.h>
16382
16383 MODULE_LICENSE("$ZFS_META_LICENSE");
16384
16385 int
16386 main (void)
16387 {
16388
16389 struct posix_acl* tmp = posix_acl_alloc(1, 0);
16390 posix_acl_release(tmp);
16391
16392 ;
16393 return 0;
16394 }
16395
16396 _ACEOF
16397
16398
16399
16400 cat - <<_ACEOF >conftest.h
16401
16402 _ACEOF
16403
16404
16405 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16406 echo "obj-m := conftest.o" >build/Makefile
16407 modpost_flag=''
16408 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16409 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16411 (eval $ac_try) 2>&5
16412 ac_status=$?
16413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16414 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16416 (eval $ac_try) 2>&5
16417 ac_status=$?
16418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16419 test $ac_status = 0; }; }; then :
16420
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16422 $as_echo "no" >&6; }
16423
16424 else
16425 $as_echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.$ac_ext >&5
16427
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16429 $as_echo "yes" >&6; }
16430
16431 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
16432
16433
16434
16435
16436 fi
16437 rm -Rf build
16438
16439
16440
16441
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
16443 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
16444
16445
16446 cat confdefs.h - <<_ACEOF >conftest.c
16447
16448
16449 #include <linux/fs.h>
16450 #include <linux/posix_acl.h>
16451
16452 int
16453 main (void)
16454 {
16455
16456 posix_acl_chmod(NULL, 0, 0)
16457
16458 ;
16459 return 0;
16460 }
16461
16462 _ACEOF
16463
16464
16465
16466 cat - <<_ACEOF >conftest.h
16467
16468 _ACEOF
16469
16470
16471 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16472 echo "obj-m := conftest.o" >build/Makefile
16473 modpost_flag=''
16474 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16475 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16477 (eval $ac_try) 2>&5
16478 ac_status=$?
16479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16480 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16482 (eval $ac_try) 2>&5
16483 ac_status=$?
16484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16485 test $ac_status = 0; }; }; then :
16486
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16488 $as_echo "yes" >&6; }
16489
16490 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
16491
16492
16493 else
16494 $as_echo "$as_me: failed program was:" >&5
16495 sed 's/^/| /' conftest.$ac_ext >&5
16496
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16498 $as_echo "no" >&6; }
16499
16500
16501
16502 fi
16503 rm -Rf build
16504
16505
16506
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
16508 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
16509
16510
16511 cat confdefs.h - <<_ACEOF >conftest.c
16512
16513
16514 #include <linux/fs.h>
16515 #include <linux/posix_acl.h>
16516
16517 int
16518 main (void)
16519 {
16520
16521 __posix_acl_chmod(NULL, 0, 0)
16522
16523 ;
16524 return 0;
16525 }
16526
16527 _ACEOF
16528
16529
16530
16531 cat - <<_ACEOF >conftest.h
16532
16533 _ACEOF
16534
16535
16536 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16537 echo "obj-m := conftest.o" >build/Makefile
16538 modpost_flag=''
16539 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16540 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16542 (eval $ac_try) 2>&5
16543 ac_status=$?
16544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16545 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16547 (eval $ac_try) 2>&5
16548 ac_status=$?
16549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16550 test $ac_status = 0; }; }; then :
16551
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16553 $as_echo "yes" >&6; }
16554
16555 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
16556
16557
16558 else
16559 $as_echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16561
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16563 $as_echo "no" >&6; }
16564
16565
16566
16567 fi
16568 rm -Rf build
16569
16570
16571
16572
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode has i_acl and i_default_acl" >&5
16574 $as_echo_n "checking whether inode has i_acl and i_default_acl... " >&6; }
16575
16576
16577 cat confdefs.h - <<_ACEOF >conftest.c
16578
16579
16580 #include <linux/fs.h>
16581
16582 int
16583 main (void)
16584 {
16585
16586 struct inode ino;
16587 ino.i_acl = NULL;
16588 ino.i_default_acl = NULL;
16589
16590 ;
16591 return 0;
16592 }
16593
16594 _ACEOF
16595
16596
16597
16598 cat - <<_ACEOF >conftest.h
16599
16600 _ACEOF
16601
16602
16603 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16604 echo "obj-m := conftest.o" >build/Makefile
16605 modpost_flag=''
16606 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16607 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16609 (eval $ac_try) 2>&5
16610 ac_status=$?
16611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16612 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16614 (eval $ac_try) 2>&5
16615 ac_status=$?
16616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16617 test $ac_status = 0; }; }; then :
16618
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16620 $as_echo "yes" >&6; }
16621
16622 $as_echo "#define HAVE_POSIX_ACL_CACHING 1" >>confdefs.h
16623
16624
16625 else
16626 $as_echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16628
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16630 $as_echo "no" >&6; }
16631
16632
16633
16634 fi
16635 rm -Rf build
16636
16637
16638
16639
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
16641 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
16642
16643
16644 cat confdefs.h - <<_ACEOF >conftest.c
16645
16646
16647 #include <linux/fs.h>
16648 #include <linux/posix_acl.h>
16649
16650 int
16651 main (void)
16652 {
16653
16654 umode_t tmp;
16655 posix_acl_equiv_mode(NULL,&tmp);
16656
16657 ;
16658 return 0;
16659 }
16660
16661 _ACEOF
16662
16663
16664
16665 cat - <<_ACEOF >conftest.h
16666
16667 _ACEOF
16668
16669
16670 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16671 echo "obj-m := conftest.o" >build/Makefile
16672 modpost_flag=''
16673 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16674 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16676 (eval $ac_try) 2>&5
16677 ac_status=$?
16678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16679 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16681 (eval $ac_try) 2>&5
16682 ac_status=$?
16683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16684 test $ac_status = 0; }; }; then :
16685
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16687 $as_echo "yes" >&6; }
16688
16689 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
16690
16691
16692 else
16693 $as_echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.$ac_ext >&5
16695
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16697 $as_echo "no" >&6; }
16698
16699
16700
16701 fi
16702 rm -Rf build
16703
16704
16705
16706
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
16708 $as_echo_n "checking whether iops->permission() exists... " >&6; }
16709
16710
16711 cat confdefs.h - <<_ACEOF >conftest.c
16712
16713
16714 #include <linux/fs.h>
16715
16716 int permission_fn(struct inode *inode, int mask) { return 0; }
16717
16718 static const struct inode_operations
16719 iops __attribute__ ((unused)) = {
16720 .permission = permission_fn,
16721 };
16722
16723 int
16724 main (void)
16725 {
16726
16727
16728 ;
16729 return 0;
16730 }
16731
16732 _ACEOF
16733
16734
16735
16736 cat - <<_ACEOF >conftest.h
16737
16738 _ACEOF
16739
16740
16741 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16742 echo "obj-m := conftest.o" >build/Makefile
16743 modpost_flag=''
16744 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16745 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16747 (eval $ac_try) 2>&5
16748 ac_status=$?
16749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16750 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16752 (eval $ac_try) 2>&5
16753 ac_status=$?
16754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16755 test $ac_status = 0; }; }; then :
16756
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16758 $as_echo "yes" >&6; }
16759
16760 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
16761
16762
16763 else
16764 $as_echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16766
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16768 $as_echo "no" >&6; }
16769
16770
16771
16772 fi
16773 rm -Rf build
16774
16775
16776
16777
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
16779 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
16780
16781
16782 cat confdefs.h - <<_ACEOF >conftest.c
16783
16784
16785 #include <linux/fs.h>
16786
16787 int permission_fn(struct inode *inode, int mask,
16788 struct nameidata *nd) { return 0; }
16789
16790 static const struct inode_operations
16791 iops __attribute__ ((unused)) = {
16792 .permission = permission_fn,
16793 };
16794
16795 int
16796 main (void)
16797 {
16798
16799
16800 ;
16801 return 0;
16802 }
16803
16804 _ACEOF
16805
16806
16807
16808 cat - <<_ACEOF >conftest.h
16809
16810 _ACEOF
16811
16812
16813 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16814 echo "obj-m := conftest.o" >build/Makefile
16815 modpost_flag=''
16816 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16817 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16819 (eval $ac_try) 2>&5
16820 ac_status=$?
16821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16822 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16824 (eval $ac_try) 2>&5
16825 ac_status=$?
16826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16827 test $ac_status = 0; }; }; then :
16828
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16830 $as_echo "yes" >&6; }
16831
16832 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
16833
16834
16835 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
16836
16837
16838 else
16839 $as_echo "$as_me: failed program was:" >&5
16840 sed 's/^/| /' conftest.$ac_ext >&5
16841
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16843 $as_echo "no" >&6; }
16844
16845
16846
16847 fi
16848 rm -Rf build
16849
16850
16851
16852
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
16854 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
16855
16856
16857 cat confdefs.h - <<_ACEOF >conftest.c
16858
16859
16860 #include <linux/fs.h>
16861
16862 int check_acl_fn(struct inode *inode, int mask) { return 0; }
16863
16864 static const struct inode_operations
16865 iops __attribute__ ((unused)) = {
16866 .check_acl = check_acl_fn,
16867 };
16868
16869 int
16870 main (void)
16871 {
16872
16873
16874 ;
16875 return 0;
16876 }
16877
16878 _ACEOF
16879
16880
16881
16882 cat - <<_ACEOF >conftest.h
16883
16884 _ACEOF
16885
16886
16887 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16888 echo "obj-m := conftest.o" >build/Makefile
16889 modpost_flag=''
16890 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16891 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16893 (eval $ac_try) 2>&5
16894 ac_status=$?
16895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16896 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16898 (eval $ac_try) 2>&5
16899 ac_status=$?
16900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16901 test $ac_status = 0; }; }; then :
16902
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16904 $as_echo "yes" >&6; }
16905
16906 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
16907
16908
16909 else
16910 $as_echo "$as_me: failed program was:" >&5
16911 sed 's/^/| /' conftest.$ac_ext >&5
16912
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16914 $as_echo "no" >&6; }
16915
16916
16917
16918 fi
16919 rm -Rf build
16920
16921
16922
16923
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
16925 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
16926
16927
16928 cat confdefs.h - <<_ACEOF >conftest.c
16929
16930
16931 #include <linux/fs.h>
16932
16933 int check_acl_fn(struct inode *inode, int mask,
16934 unsigned int flags) { return 0; }
16935
16936 static const struct inode_operations
16937 iops __attribute__ ((unused)) = {
16938 .check_acl = check_acl_fn,
16939 };
16940
16941 int
16942 main (void)
16943 {
16944
16945
16946 ;
16947 return 0;
16948 }
16949
16950 _ACEOF
16951
16952
16953
16954 cat - <<_ACEOF >conftest.h
16955
16956 _ACEOF
16957
16958
16959 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16960 echo "obj-m := conftest.o" >build/Makefile
16961 modpost_flag=''
16962 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16963 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16965 (eval $ac_try) 2>&5
16966 ac_status=$?
16967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16968 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16970 (eval $ac_try) 2>&5
16971 ac_status=$?
16972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16973 test $ac_status = 0; }; }; then :
16974
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16976 $as_echo "yes" >&6; }
16977
16978 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
16979
16980
16981 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
16982
16983
16984 else
16985 $as_echo "$as_me: failed program was:" >&5
16986 sed 's/^/| /' conftest.$ac_ext >&5
16987
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16989 $as_echo "no" >&6; }
16990
16991
16992
16993 fi
16994 rm -Rf build
16995
16996
16997
16998
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
17000 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
17001
17002
17003 cat confdefs.h - <<_ACEOF >conftest.c
17004
17005
17006 #include <linux/fs.h>
17007
17008 struct posix_acl *get_acl_fn(struct inode *inode, int type)
17009 { return NULL; }
17010
17011 static const struct inode_operations
17012 iops __attribute__ ((unused)) = {
17013 .get_acl = get_acl_fn,
17014 };
17015
17016 int
17017 main (void)
17018 {
17019
17020
17021 ;
17022 return 0;
17023 }
17024
17025 _ACEOF
17026
17027
17028
17029 cat - <<_ACEOF >conftest.h
17030
17031 _ACEOF
17032
17033
17034 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17035 echo "obj-m := conftest.o" >build/Makefile
17036 modpost_flag=''
17037 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17038 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17040 (eval $ac_try) 2>&5
17041 ac_status=$?
17042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17043 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17045 (eval $ac_try) 2>&5
17046 ac_status=$?
17047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17048 test $ac_status = 0; }; }; then :
17049
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17051 $as_echo "yes" >&6; }
17052
17053 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
17054
17055
17056 else
17057 $as_echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17059
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17061 $as_echo "no" >&6; }
17062
17063
17064
17065 fi
17066 rm -Rf build
17067
17068
17069
17070
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_umask exists" >&5
17072 $as_echo_n "checking whether current_umask exists... " >&6; }
17073
17074
17075 cat confdefs.h - <<_ACEOF >conftest.c
17076
17077
17078 #include <linux/fs.h>
17079
17080 int
17081 main (void)
17082 {
17083
17084 current_umask();
17085
17086 ;
17087 return 0;
17088 }
17089
17090 _ACEOF
17091
17092
17093
17094 cat - <<_ACEOF >conftest.h
17095
17096 _ACEOF
17097
17098
17099 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17100 echo "obj-m := conftest.o" >build/Makefile
17101 modpost_flag=''
17102 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17103 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17105 (eval $ac_try) 2>&5
17106 ac_status=$?
17107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17108 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17110 (eval $ac_try) 2>&5
17111 ac_status=$?
17112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17113 test $ac_status = 0; }; }; then :
17114
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17116 $as_echo "yes" >&6; }
17117
17118 $as_echo "#define HAVE_CURRENT_UMASK 1" >>confdefs.h
17119
17120
17121 else
17122 $as_echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17124
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17126 $as_echo "no" >&6; }
17127
17128
17129
17130 fi
17131 rm -Rf build
17132
17133
17134
17135
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
17137 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
17138
17139
17140
17141 cat confdefs.h - <<_ACEOF >conftest.c
17142
17143
17144 #include <linux/fs.h>
17145
17146 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
17147 static struct super_operations sops __attribute__ ((unused)) = {
17148 .show_options = show_options,
17149 };
17150
17151 int
17152 main (void)
17153 {
17154
17155
17156 ;
17157 return 0;
17158 }
17159
17160 _ACEOF
17161
17162
17163
17164 cat - <<_ACEOF >conftest.h
17165
17166 _ACEOF
17167
17168
17169 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17170 echo "obj-m := conftest.o" >build/Makefile
17171 modpost_flag=''
17172 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17173 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17175 (eval $ac_try) 2>&5
17176 ac_status=$?
17177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17178 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17180 (eval $ac_try) 2>&5
17181 ac_status=$?
17182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17183 test $ac_status = 0; }; }; then :
17184
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17186 $as_echo "yes" >&6; }
17187
17188 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
17189
17190
17191 else
17192 $as_echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.$ac_ext >&5
17194
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17196 $as_echo "no" >&6; }
17197
17198
17199
17200 fi
17201 rm -Rf build
17202
17203
17204
17205
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
17207 $as_echo_n "checking whether file_inode() is available... " >&6; }
17208
17209
17210 cat confdefs.h - <<_ACEOF >conftest.c
17211
17212
17213 #include <linux/fs.h>
17214
17215 int
17216 main (void)
17217 {
17218
17219 struct file *f = NULL;
17220 file_inode(f);
17221
17222 ;
17223 return 0;
17224 }
17225
17226 _ACEOF
17227
17228
17229
17230 cat - <<_ACEOF >conftest.h
17231
17232 _ACEOF
17233
17234
17235 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17236 echo "obj-m := conftest.o" >build/Makefile
17237 modpost_flag=''
17238 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17239 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17241 (eval $ac_try) 2>&5
17242 ac_status=$?
17243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17244 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17246 (eval $ac_try) 2>&5
17247 ac_status=$?
17248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17249 test $ac_status = 0; }; }; then :
17250
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17252 $as_echo "yes" >&6; }
17253
17254 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
17255
17256
17257 else
17258 $as_echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.$ac_ext >&5
17260
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17262 $as_echo "no" >&6; }
17263
17264
17265
17266 fi
17267 rm -Rf build
17268
17269
17270
17271
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
17273 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
17274
17275
17276
17277 cat confdefs.h - <<_ACEOF >conftest.c
17278
17279
17280 #include <linux/fs.h>
17281
17282 int test_fsync(struct file *f, struct dentry *dentry, int x)
17283 { return 0; }
17284
17285 static const struct file_operations
17286 fops __attribute__ ((unused)) = {
17287 .fsync = test_fsync,
17288 };
17289
17290 int
17291 main (void)
17292 {
17293
17294
17295 ;
17296 return 0;
17297 }
17298
17299 _ACEOF
17300
17301
17302
17303 cat - <<_ACEOF >conftest.h
17304
17305 _ACEOF
17306
17307
17308 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17309 echo "obj-m := conftest.o" >build/Makefile
17310 modpost_flag=''
17311 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17312 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17314 (eval $ac_try) 2>&5
17315 ac_status=$?
17316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17317 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17319 (eval $ac_try) 2>&5
17320 ac_status=$?
17321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17322 test $ac_status = 0; }; }; then :
17323
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
17325 $as_echo "dentry" >&6; }
17326
17327 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
17328
17329
17330 else
17331 $as_echo "$as_me: failed program was:" >&5
17332 sed 's/^/| /' conftest.$ac_ext >&5
17333
17334
17335
17336
17337 fi
17338 rm -Rf build
17339
17340
17341
17342
17343
17344
17345 cat confdefs.h - <<_ACEOF >conftest.c
17346
17347
17348 #include <linux/fs.h>
17349
17350 int test_fsync(struct file *f, int x) { return 0; }
17351
17352 static const struct file_operations
17353 fops __attribute__ ((unused)) = {
17354 .fsync = test_fsync,
17355 };
17356
17357 int
17358 main (void)
17359 {
17360
17361
17362 ;
17363 return 0;
17364 }
17365
17366 _ACEOF
17367
17368
17369
17370 cat - <<_ACEOF >conftest.h
17371
17372 _ACEOF
17373
17374
17375 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17376 echo "obj-m := conftest.o" >build/Makefile
17377 modpost_flag=''
17378 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17379 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17381 (eval $ac_try) 2>&5
17382 ac_status=$?
17383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17384 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17386 (eval $ac_try) 2>&5
17387 ac_status=$?
17388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17389 test $ac_status = 0; }; }; then :
17390
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
17392 $as_echo "no dentry" >&6; }
17393
17394 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
17395
17396
17397 else
17398 $as_echo "$as_me: failed program was:" >&5
17399 sed 's/^/| /' conftest.$ac_ext >&5
17400
17401
17402
17403
17404 fi
17405 rm -Rf build
17406
17407
17408
17409
17410
17411
17412 cat confdefs.h - <<_ACEOF >conftest.c
17413
17414
17415 #include <linux/fs.h>
17416
17417 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
17418 { return 0; }
17419
17420 static const struct file_operations
17421 fops __attribute__ ((unused)) = {
17422 .fsync = test_fsync,
17423 };
17424
17425 int
17426 main (void)
17427 {
17428
17429
17430 ;
17431 return 0;
17432 }
17433
17434 _ACEOF
17435
17436
17437
17438 cat - <<_ACEOF >conftest.h
17439
17440 _ACEOF
17441
17442
17443 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17444 echo "obj-m := conftest.o" >build/Makefile
17445 modpost_flag=''
17446 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17447 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17449 (eval $ac_try) 2>&5
17450 ac_status=$?
17451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17452 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17454 (eval $ac_try) 2>&5
17455 ac_status=$?
17456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17457 test $ac_status = 0; }; }; then :
17458
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
17460 $as_echo "range" >&6; }
17461
17462 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
17463
17464
17465 else
17466 $as_echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17468
17469
17470
17471
17472 fi
17473 rm -Rf build
17474
17475
17476
17477
17478
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
17480 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
17481
17482
17483 cat confdefs.h - <<_ACEOF >conftest.c
17484
17485
17486 #include <linux/fs.h>
17487 void evict_inode (struct inode * t) { return; }
17488 static struct super_operations sops __attribute__ ((unused)) = {
17489 .evict_inode = evict_inode,
17490 };
17491
17492 int
17493 main (void)
17494 {
17495
17496
17497 ;
17498 return 0;
17499 }
17500
17501 _ACEOF
17502
17503
17504
17505 cat - <<_ACEOF >conftest.h
17506
17507 _ACEOF
17508
17509
17510 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17511 echo "obj-m := conftest.o" >build/Makefile
17512 modpost_flag=''
17513 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17514 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17516 (eval $ac_try) 2>&5
17517 ac_status=$?
17518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17519 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17521 (eval $ac_try) 2>&5
17522 ac_status=$?
17523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17524 test $ac_status = 0; }; }; then :
17525
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17527 $as_echo "yes" >&6; }
17528
17529 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
17530
17531
17532 else
17533 $as_echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17535
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17537 $as_echo "no" >&6; }
17538
17539
17540
17541 fi
17542 rm -Rf build
17543
17544
17545
17546
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
17548 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
17549
17550
17551 cat confdefs.h - <<_ACEOF >conftest.c
17552
17553
17554 #include <linux/fs.h>
17555
17556 void dirty_inode(struct inode *a, int b) { return; }
17557
17558 static const struct super_operations
17559 sops __attribute__ ((unused)) = {
17560 .dirty_inode = dirty_inode,
17561 };
17562
17563 int
17564 main (void)
17565 {
17566
17567
17568 ;
17569 return 0;
17570 }
17571
17572 _ACEOF
17573
17574
17575
17576 cat - <<_ACEOF >conftest.h
17577
17578 _ACEOF
17579
17580
17581 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17582 echo "obj-m := conftest.o" >build/Makefile
17583 modpost_flag=''
17584 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17585 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17587 (eval $ac_try) 2>&5
17588 ac_status=$?
17589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17590 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17592 (eval $ac_try) 2>&5
17593 ac_status=$?
17594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17595 test $ac_status = 0; }; }; then :
17596
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17598 $as_echo "yes" >&6; }
17599
17600 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
17601
17602
17603 else
17604 $as_echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17606
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17608 $as_echo "no" >&6; }
17609
17610
17611
17612 fi
17613 rm -Rf build
17614
17615
17616
17617
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
17619 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
17620
17621
17622 cat confdefs.h - <<_ACEOF >conftest.c
17623
17624
17625 #include <linux/fs.h>
17626
17627 int nr_cached_objects(struct super_block *sb) { return 0; }
17628
17629 static const struct super_operations
17630 sops __attribute__ ((unused)) = {
17631 .nr_cached_objects = nr_cached_objects,
17632 };
17633
17634 int
17635 main (void)
17636 {
17637
17638
17639 ;
17640 return 0;
17641 }
17642
17643 _ACEOF
17644
17645
17646
17647 cat - <<_ACEOF >conftest.h
17648
17649 _ACEOF
17650
17651
17652 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17653 echo "obj-m := conftest.o" >build/Makefile
17654 modpost_flag=''
17655 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17656 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17658 (eval $ac_try) 2>&5
17659 ac_status=$?
17660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17661 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17663 (eval $ac_try) 2>&5
17664 ac_status=$?
17665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17666 test $ac_status = 0; }; }; then :
17667
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17669 $as_echo "yes" >&6; }
17670
17671 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
17672
17673
17674 else
17675 $as_echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17677
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17679 $as_echo "no" >&6; }
17680
17681
17682
17683 fi
17684 rm -Rf build
17685
17686
17687
17688
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
17690 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
17691
17692
17693 cat confdefs.h - <<_ACEOF >conftest.c
17694
17695
17696 #include <linux/fs.h>
17697
17698 void free_cached_objects(struct super_block *sb, int x)
17699 { return; }
17700
17701 static const struct super_operations
17702 sops __attribute__ ((unused)) = {
17703 .free_cached_objects = free_cached_objects,
17704 };
17705
17706 int
17707 main (void)
17708 {
17709
17710
17711 ;
17712 return 0;
17713 }
17714
17715 _ACEOF
17716
17717
17718
17719 cat - <<_ACEOF >conftest.h
17720
17721 _ACEOF
17722
17723
17724 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17725 echo "obj-m := conftest.o" >build/Makefile
17726 modpost_flag=''
17727 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17728 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17733 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17735 (eval $ac_try) 2>&5
17736 ac_status=$?
17737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17738 test $ac_status = 0; }; }; then :
17739
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17741 $as_echo "yes" >&6; }
17742
17743 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
17744
17745
17746 else
17747 $as_echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17749
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17751 $as_echo "no" >&6; }
17752
17753
17754
17755 fi
17756 rm -Rf build
17757
17758
17759
17760
17761
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
17763 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
17764
17765
17766 cat confdefs.h - <<_ACEOF >conftest.c
17767
17768
17769 #include <linux/fs.h>
17770
17771 long test_fallocate(struct file *file, int mode,
17772 loff_t offset, loff_t len) { return 0; }
17773
17774 static const struct file_operations
17775 fops __attribute__ ((unused)) = {
17776 .fallocate = test_fallocate,
17777 };
17778
17779 int
17780 main (void)
17781 {
17782
17783
17784 ;
17785 return 0;
17786 }
17787
17788 _ACEOF
17789
17790
17791
17792 cat - <<_ACEOF >conftest.h
17793
17794 _ACEOF
17795
17796
17797 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17798 echo "obj-m := conftest.o" >build/Makefile
17799 modpost_flag=''
17800 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17801 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17803 (eval $ac_try) 2>&5
17804 ac_status=$?
17805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17806 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17808 (eval $ac_try) 2>&5
17809 ac_status=$?
17810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17811 test $ac_status = 0; }; }; then :
17812
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17814 $as_echo "yes" >&6; }
17815
17816 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
17817
17818
17819 else
17820 $as_echo "$as_me: failed program was:" >&5
17821 sed 's/^/| /' conftest.$ac_ext >&5
17822
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17824 $as_echo "no" >&6; }
17825
17826
17827
17828 fi
17829 rm -Rf build
17830
17831
17832
17833
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
17835 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
17836
17837
17838 cat confdefs.h - <<_ACEOF >conftest.c
17839
17840
17841 #include <linux/fs.h>
17842
17843 long test_fallocate(struct inode *inode, int mode,
17844 loff_t offset, loff_t len) { return 0; }
17845
17846 static const struct inode_operations
17847 fops __attribute__ ((unused)) = {
17848 .fallocate = test_fallocate,
17849 };
17850
17851 int
17852 main (void)
17853 {
17854
17855
17856 ;
17857 return 0;
17858 }
17859
17860 _ACEOF
17861
17862
17863
17864 cat - <<_ACEOF >conftest.h
17865
17866 _ACEOF
17867
17868
17869 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17870 echo "obj-m := conftest.o" >build/Makefile
17871 modpost_flag=''
17872 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17873 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17875 (eval $ac_try) 2>&5
17876 ac_status=$?
17877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17878 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17880 (eval $ac_try) 2>&5
17881 ac_status=$?
17882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17883 test $ac_status = 0; }; }; then :
17884
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17886 $as_echo "yes" >&6; }
17887
17888 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
17889
17890
17891 else
17892 $as_echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17894
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17896 $as_echo "no" >&6; }
17897
17898
17899
17900 fi
17901 rm -Rf build
17902
17903
17904
17905
17906
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
17908 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
17909
17910
17911 cat confdefs.h - <<_ACEOF >conftest.c
17912
17913
17914 #include <linux/fs.h>
17915
17916 int mkdir(struct inode *inode, struct dentry *dentry,
17917 umode_t umode) { return 0; }
17918
17919 static const struct inode_operations
17920 iops __attribute__ ((unused)) = {
17921 .mkdir = mkdir,
17922 };
17923
17924 int
17925 main (void)
17926 {
17927
17928
17929 ;
17930 return 0;
17931 }
17932
17933 _ACEOF
17934
17935
17936
17937 cat - <<_ACEOF >conftest.h
17938
17939 _ACEOF
17940
17941
17942 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17943 echo "obj-m := conftest.o" >build/Makefile
17944 modpost_flag=''
17945 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17946 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17948 (eval $ac_try) 2>&5
17949 ac_status=$?
17950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17951 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17956 test $ac_status = 0; }; }; then :
17957
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17959 $as_echo "yes" >&6; }
17960
17961 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
17962
17963
17964 else
17965 $as_echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17967
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17969 $as_echo "no" >&6; }
17970
17971
17972
17973 fi
17974 rm -Rf build
17975
17976
17977
17978
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() takes struct nameidata" >&5
17980 $as_echo_n "checking whether iops->lookup() takes struct nameidata... " >&6; }
17981
17982
17983 cat confdefs.h - <<_ACEOF >conftest.c
17984
17985
17986 #include <linux/fs.h>
17987
17988 struct dentry *inode_lookup(struct inode *inode,
17989 struct dentry *dentry, struct nameidata *nidata)
17990 { return NULL; }
17991
17992 static const struct inode_operations iops
17993 __attribute__ ((unused)) = {
17994 .lookup = inode_lookup,
17995 };
17996
17997 int
17998 main (void)
17999 {
18000
18001
18002 ;
18003 return 0;
18004 }
18005
18006 _ACEOF
18007
18008
18009
18010 cat - <<_ACEOF >conftest.h
18011
18012 _ACEOF
18013
18014
18015 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18016 echo "obj-m := conftest.o" >build/Makefile
18017 modpost_flag=''
18018 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18019 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18021 (eval $ac_try) 2>&5
18022 ac_status=$?
18023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18024 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18026 (eval $ac_try) 2>&5
18027 ac_status=$?
18028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18029 test $ac_status = 0; }; }; then :
18030
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18032 $as_echo "yes" >&6; }
18033
18034 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
18035
18036
18037 else
18038 $as_echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18040
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18042 $as_echo "no" >&6; }
18043
18044
18045
18046 fi
18047 rm -Rf build
18048
18049
18050
18051
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() takes struct nameidata" >&5
18053 $as_echo_n "checking whether iops->create() takes struct nameidata... " >&6; }
18054
18055
18056 cat confdefs.h - <<_ACEOF >conftest.c
18057
18058
18059 #include <linux/fs.h>
18060
18061 #ifdef HAVE_MKDIR_UMODE_T
18062 int inode_create(struct inode *inode ,struct dentry *dentry,
18063 umode_t umode, struct nameidata *nidata) { return 0; }
18064 #else
18065 int inode_create(struct inode *inode,struct dentry *dentry,
18066 int umode, struct nameidata * nidata) { return 0; }
18067 #endif
18068
18069 static const struct inode_operations
18070 iops __attribute__ ((unused)) = {
18071 .create = inode_create,
18072 };
18073
18074 int
18075 main (void)
18076 {
18077
18078
18079 ;
18080 return 0;
18081 }
18082
18083 _ACEOF
18084
18085
18086
18087 cat - <<_ACEOF >conftest.h
18088
18089 _ACEOF
18090
18091
18092 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18093 echo "obj-m := conftest.o" >build/Makefile
18094 modpost_flag=''
18095 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18096 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18098 (eval $ac_try) 2>&5
18099 ac_status=$?
18100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18101 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18103 (eval $ac_try) 2>&5
18104 ac_status=$?
18105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18106 test $ac_status = 0; }; }; then :
18107
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18109 $as_echo "yes" >&6; }
18110
18111 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
18112
18113
18114 else
18115 $as_echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.$ac_ext >&5
18117
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18119 $as_echo "no" >&6; }
18120
18121
18122
18123 fi
18124 rm -Rf build
18125
18126
18127
18128
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
18130 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
18131
18132
18133 cat confdefs.h - <<_ACEOF >conftest.c
18134
18135
18136 #include <linux/fs.h>
18137 void truncate_range(struct inode *inode, loff_t start,
18138 loff_t end) { return; }
18139 static struct inode_operations iops __attribute__ ((unused)) = {
18140 .truncate_range = truncate_range,
18141 };
18142
18143 int
18144 main (void)
18145 {
18146
18147
18148 ;
18149 return 0;
18150 }
18151
18152 _ACEOF
18153
18154
18155
18156 cat - <<_ACEOF >conftest.h
18157
18158 _ACEOF
18159
18160
18161 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18162 echo "obj-m := conftest.o" >build/Makefile
18163 modpost_flag=''
18164 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18165 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18167 (eval $ac_try) 2>&5
18168 ac_status=$?
18169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18170 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18172 (eval $ac_try) 2>&5
18173 ac_status=$?
18174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18175 test $ac_status = 0; }; }; then :
18176
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18178 $as_echo "yes" >&6; }
18179
18180 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
18181
18182
18183 else
18184 $as_echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18186
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18188 $as_echo "no" >&6; }
18189
18190
18191
18192 fi
18193 rm -Rf build
18194
18195
18196
18197
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
18199 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
18200
18201
18202 cat confdefs.h - <<_ACEOF >conftest.c
18203
18204
18205 #include <linux/dcache.h>
18206 struct vfsmount *d_automount(struct path *p) { return NULL; }
18207 struct dentry_operations dops __attribute__ ((unused)) = {
18208 .d_automount = d_automount,
18209 };
18210
18211 int
18212 main (void)
18213 {
18214
18215
18216 ;
18217 return 0;
18218 }
18219
18220 _ACEOF
18221
18222
18223
18224 cat - <<_ACEOF >conftest.h
18225
18226 _ACEOF
18227
18228
18229 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18230 echo "obj-m := conftest.o" >build/Makefile
18231 modpost_flag=''
18232 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18233 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18235 (eval $ac_try) 2>&5
18236 ac_status=$?
18237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18238 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18240 (eval $ac_try) 2>&5
18241 ac_status=$?
18242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18243 test $ac_status = 0; }; }; then :
18244
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18246 $as_echo "yes" >&6; }
18247
18248 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
18249
18250
18251 else
18252 $as_echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.$ac_ext >&5
18254
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18256 $as_echo "no" >&6; }
18257
18258
18259
18260 fi
18261 rm -Rf build
18262
18263
18264
18265
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
18267 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
18268
18269
18270 cat confdefs.h - <<_ACEOF >conftest.c
18271
18272
18273 #include <linux/exportfs.h>
18274 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
18275 struct inode *parent) { return 0; }
18276 static struct export_operations eops __attribute__ ((unused))={
18277 .encode_fh = encode_fh,
18278 };
18279
18280 int
18281 main (void)
18282 {
18283
18284
18285 ;
18286 return 0;
18287 }
18288
18289 _ACEOF
18290
18291
18292
18293 cat - <<_ACEOF >conftest.h
18294
18295 _ACEOF
18296
18297
18298 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18299 echo "obj-m := conftest.o" >build/Makefile
18300 modpost_flag=''
18301 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18302 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18304 (eval $ac_try) 2>&5
18305 ac_status=$?
18306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18307 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18309 (eval $ac_try) 2>&5
18310 ac_status=$?
18311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18312 test $ac_status = 0; }; }; then :
18313
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18315 $as_echo "yes" >&6; }
18316
18317 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
18318
18319
18320 else
18321 $as_echo "$as_me: failed program was:" >&5
18322 sed 's/^/| /' conftest.$ac_ext >&5
18323
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18325 $as_echo "no" >&6; }
18326
18327
18328
18329 fi
18330 rm -Rf build
18331
18332
18333
18334
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
18336 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
18337
18338
18339 cat confdefs.h - <<_ACEOF >conftest.c
18340
18341
18342 #include <linux/exportfs.h>
18343 int commit_metadata(struct inode *inode) { return 0; }
18344 static struct export_operations eops __attribute__ ((unused))={
18345 .commit_metadata = commit_metadata,
18346 };
18347
18348 int
18349 main (void)
18350 {
18351
18352
18353 ;
18354 return 0;
18355 }
18356
18357 _ACEOF
18358
18359
18360
18361 cat - <<_ACEOF >conftest.h
18362
18363 _ACEOF
18364
18365
18366 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18367 echo "obj-m := conftest.o" >build/Makefile
18368 modpost_flag=''
18369 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18370 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18372 (eval $ac_try) 2>&5
18373 ac_status=$?
18374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18375 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18377 (eval $ac_try) 2>&5
18378 ac_status=$?
18379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18380 test $ac_status = 0; }; }; then :
18381
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18383 $as_echo "yes" >&6; }
18384
18385 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
18386
18387
18388 else
18389 $as_echo "$as_me: failed program was:" >&5
18390 sed 's/^/| /' conftest.$ac_ext >&5
18391
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18393 $as_echo "no" >&6; }
18394
18395
18396
18397 fi
18398 rm -Rf build
18399
18400
18401
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
18403 $as_echo_n "checking whether clear_inode() is available... " >&6; }
18404
18405
18406
18407 cat confdefs.h - <<_ACEOF >conftest.c
18408
18409
18410 #include <linux/fs.h>
18411
18412 int
18413 main (void)
18414 {
18415
18416 clear_inode(NULL);
18417
18418 ;
18419 return 0;
18420 }
18421
18422 _ACEOF
18423
18424
18425
18426 cat - <<_ACEOF >conftest.h
18427
18428 _ACEOF
18429
18430
18431 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18432 echo "obj-m := conftest.o" >build/Makefile
18433 modpost_flag=''
18434 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18435 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18437 (eval $ac_try) 2>&5
18438 ac_status=$?
18439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18440 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18442 (eval $ac_try) 2>&5
18443 ac_status=$?
18444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18445 test $ac_status = 0; }; }; then :
18446 rc=0
18447 else
18448 $as_echo "$as_me: failed program was:" >&5
18449 sed 's/^/| /' conftest.$ac_ext >&5
18450 rc=1
18451
18452
18453 fi
18454 rm -Rf build
18455
18456
18457 if test $rc -ne 0; then :
18458
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18460 $as_echo "no" >&6; }
18461
18462 else
18463 if test "x$enable_linux_builtin" != xyes; then
18464
18465 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
18466 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18467 rc=$?
18468 if test $rc -ne 0; then
18469 export=0
18470 for file in fs/inode.c; do
18471 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
18472 "$LINUX/$file" 2>/dev/null
18473 rc=$?
18474 if test $rc -eq 0; then
18475 export=1
18476 break;
18477 fi
18478 done
18479 if test $export -eq 0; then :
18480 rc=1
18481 else :
18482 rc=0
18483 fi
18484 else :
18485 rc=0
18486 fi
18487
18488 fi
18489 if test $rc -ne 0; then :
18490
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18492 $as_echo "no" >&6; }
18493
18494 else :
18495
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18497 $as_echo "yes" >&6; }
18498
18499 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
18500
18501
18502 fi
18503 fi
18504
18505
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
18507 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
18508
18509
18510
18511 cat confdefs.h - <<_ACEOF >conftest.c
18512
18513
18514 #include <linux/fs.h>
18515
18516 int
18517 main (void)
18518 {
18519
18520 insert_inode_locked(NULL);
18521
18522 ;
18523 return 0;
18524 }
18525
18526 _ACEOF
18527
18528
18529
18530 cat - <<_ACEOF >conftest.h
18531
18532 _ACEOF
18533
18534
18535 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18536 echo "obj-m := conftest.o" >build/Makefile
18537 modpost_flag=''
18538 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18539 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18541 (eval $ac_try) 2>&5
18542 ac_status=$?
18543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18544 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18546 (eval $ac_try) 2>&5
18547 ac_status=$?
18548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18549 test $ac_status = 0; }; }; then :
18550 rc=0
18551 else
18552 $as_echo "$as_me: failed program was:" >&5
18553 sed 's/^/| /' conftest.$ac_ext >&5
18554 rc=1
18555
18556
18557 fi
18558 rm -Rf build
18559
18560
18561 if test $rc -ne 0; then :
18562
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18564 $as_echo "no" >&6; }
18565
18566 else
18567 if test "x$enable_linux_builtin" != xyes; then
18568
18569 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
18570 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18571 rc=$?
18572 if test $rc -ne 0; then
18573 export=0
18574 for file in fs/inode.c; do
18575 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
18576 "$LINUX/$file" 2>/dev/null
18577 rc=$?
18578 if test $rc -eq 0; then
18579 export=1
18580 break;
18581 fi
18582 done
18583 if test $export -eq 0; then :
18584 rc=1
18585 else :
18586 rc=0
18587 fi
18588 else :
18589 rc=0
18590 fi
18591
18592 fi
18593 if test $rc -ne 0; then :
18594
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18596 $as_echo "no" >&6; }
18597
18598 else :
18599
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18601 $as_echo "yes" >&6; }
18602
18603 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
18604
18605
18606 fi
18607 fi
18608
18609
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
18611 $as_echo_n "checking whether d_make_root() is available... " >&6; }
18612
18613
18614
18615 cat confdefs.h - <<_ACEOF >conftest.c
18616
18617
18618 #include <linux/dcache.h>
18619
18620 int
18621 main (void)
18622 {
18623
18624 d_make_root(NULL);
18625
18626 ;
18627 return 0;
18628 }
18629
18630 _ACEOF
18631
18632
18633
18634 cat - <<_ACEOF >conftest.h
18635
18636 _ACEOF
18637
18638
18639 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18640 echo "obj-m := conftest.o" >build/Makefile
18641 modpost_flag=''
18642 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18643 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18645 (eval $ac_try) 2>&5
18646 ac_status=$?
18647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18648 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18650 (eval $ac_try) 2>&5
18651 ac_status=$?
18652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18653 test $ac_status = 0; }; }; then :
18654 rc=0
18655 else
18656 $as_echo "$as_me: failed program was:" >&5
18657 sed 's/^/| /' conftest.$ac_ext >&5
18658 rc=1
18659
18660
18661 fi
18662 rm -Rf build
18663
18664
18665 if test $rc -ne 0; then :
18666
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18668 $as_echo "no" >&6; }
18669
18670 else
18671 if test "x$enable_linux_builtin" != xyes; then
18672
18673 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
18674 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18675 rc=$?
18676 if test $rc -ne 0; then
18677 export=0
18678 for file in fs/dcache.c; do
18679 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
18680 "$LINUX/$file" 2>/dev/null
18681 rc=$?
18682 if test $rc -eq 0; then
18683 export=1
18684 break;
18685 fi
18686 done
18687 if test $export -eq 0; then :
18688 rc=1
18689 else :
18690 rc=0
18691 fi
18692 else :
18693 rc=0
18694 fi
18695
18696 fi
18697 if test $rc -ne 0; then :
18698
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18700 $as_echo "no" >&6; }
18701
18702 else :
18703
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18705 $as_echo "yes" >&6; }
18706
18707 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
18708
18709
18710 fi
18711 fi
18712
18713
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
18715 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
18716
18717
18718
18719 cat confdefs.h - <<_ACEOF >conftest.c
18720
18721
18722 #include <linux/dcache.h>
18723
18724 int
18725 main (void)
18726 {
18727
18728 d_obtain_alias(NULL);
18729
18730 ;
18731 return 0;
18732 }
18733
18734 _ACEOF
18735
18736
18737
18738 cat - <<_ACEOF >conftest.h
18739
18740 _ACEOF
18741
18742
18743 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18744 echo "obj-m := conftest.o" >build/Makefile
18745 modpost_flag=''
18746 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18747 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18749 (eval $ac_try) 2>&5
18750 ac_status=$?
18751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18752 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18754 (eval $ac_try) 2>&5
18755 ac_status=$?
18756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18757 test $ac_status = 0; }; }; then :
18758 rc=0
18759 else
18760 $as_echo "$as_me: failed program was:" >&5
18761 sed 's/^/| /' conftest.$ac_ext >&5
18762 rc=1
18763
18764
18765 fi
18766 rm -Rf build
18767
18768
18769 if test $rc -ne 0; then :
18770
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18772 $as_echo "no" >&6; }
18773
18774 else
18775 if test "x$enable_linux_builtin" != xyes; then
18776
18777 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
18778 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18779 rc=$?
18780 if test $rc -ne 0; then
18781 export=0
18782 for file in fs/dcache.c; do
18783 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
18784 "$LINUX/$file" 2>/dev/null
18785 rc=$?
18786 if test $rc -eq 0; then
18787 export=1
18788 break;
18789 fi
18790 done
18791 if test $export -eq 0; then :
18792 rc=1
18793 else :
18794 rc=0
18795 fi
18796 else :
18797 rc=0
18798 fi
18799
18800 fi
18801 if test $rc -ne 0; then :
18802
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18804 $as_echo "no" >&6; }
18805
18806 else :
18807
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18809 $as_echo "yes" >&6; }
18810
18811 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
18812
18813
18814 fi
18815 fi
18816
18817
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
18819 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
18820
18821
18822
18823 cat confdefs.h - <<_ACEOF >conftest.c
18824
18825
18826 #include <linux/dcache.h>
18827
18828 int
18829 main (void)
18830 {
18831
18832 struct inode *ip = NULL;
18833 d_prune_aliases(ip);
18834
18835 ;
18836 return 0;
18837 }
18838
18839 _ACEOF
18840
18841
18842
18843 cat - <<_ACEOF >conftest.h
18844
18845 _ACEOF
18846
18847
18848 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18849 echo "obj-m := conftest.o" >build/Makefile
18850 modpost_flag=''
18851 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18852 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18854 (eval $ac_try) 2>&5
18855 ac_status=$?
18856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18857 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18859 (eval $ac_try) 2>&5
18860 ac_status=$?
18861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18862 test $ac_status = 0; }; }; then :
18863 rc=0
18864 else
18865 $as_echo "$as_me: failed program was:" >&5
18866 sed 's/^/| /' conftest.$ac_ext >&5
18867 rc=1
18868
18869
18870 fi
18871 rm -Rf build
18872
18873
18874 if test $rc -ne 0; then :
18875
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18877 $as_echo "no" >&6; }
18878
18879 else
18880 if test "x$enable_linux_builtin" != xyes; then
18881
18882 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
18883 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18884 rc=$?
18885 if test $rc -ne 0; then
18886 export=0
18887 for file in fs/dcache.c; do
18888 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
18889 "$LINUX/$file" 2>/dev/null
18890 rc=$?
18891 if test $rc -eq 0; then
18892 export=1
18893 break;
18894 fi
18895 done
18896 if test $export -eq 0; then :
18897 rc=1
18898 else :
18899 rc=0
18900 fi
18901 else :
18902 rc=0
18903 fi
18904
18905 fi
18906 if test $rc -ne 0; then :
18907
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18909 $as_echo "no" >&6; }
18910
18911 else :
18912
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18914 $as_echo "yes" >&6; }
18915
18916 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
18917
18918
18919 fi
18920 fi
18921
18922
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
18924 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
18925
18926
18927
18928 cat confdefs.h - <<_ACEOF >conftest.c
18929
18930
18931 #include <linux/dcache.h>
18932
18933 int
18934 main (void)
18935 {
18936
18937 d_set_d_op(NULL, NULL);
18938
18939 ;
18940 return 0;
18941 }
18942
18943 _ACEOF
18944
18945
18946
18947 cat - <<_ACEOF >conftest.h
18948
18949 _ACEOF
18950
18951
18952 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18953 echo "obj-m := conftest.o" >build/Makefile
18954 modpost_flag=''
18955 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18956 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18958 (eval $ac_try) 2>&5
18959 ac_status=$?
18960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18961 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18963 (eval $ac_try) 2>&5
18964 ac_status=$?
18965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18966 test $ac_status = 0; }; }; then :
18967 rc=0
18968 else
18969 $as_echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18971 rc=1
18972
18973
18974 fi
18975 rm -Rf build
18976
18977
18978 if test $rc -ne 0; then :
18979
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18981 $as_echo "no" >&6; }
18982
18983 else
18984 if test "x$enable_linux_builtin" != xyes; then
18985
18986 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
18987 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18988 rc=$?
18989 if test $rc -ne 0; then
18990 export=0
18991 for file in fs/dcache.c; do
18992 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
18993 "$LINUX/$file" 2>/dev/null
18994 rc=$?
18995 if test $rc -eq 0; then
18996 export=1
18997 break;
18998 fi
18999 done
19000 if test $export -eq 0; then :
19001 rc=1
19002 else :
19003 rc=0
19004 fi
19005 else :
19006 rc=0
19007 fi
19008
19009 fi
19010 if test $rc -ne 0; then :
19011
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19013 $as_echo "no" >&6; }
19014
19015 else :
19016
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19018 $as_echo "yes" >&6; }
19019
19020 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
19021
19022
19023 fi
19024 fi
19025
19026
19027
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
19029 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
19030
19031
19032 cat confdefs.h - <<_ACEOF >conftest.c
19033
19034
19035 #include <linux/dcache.h>
19036
19037 int revalidate (struct dentry *dentry,
19038 struct nameidata *nidata) { return 0; }
19039
19040 static const struct dentry_operations
19041 dops __attribute__ ((unused)) = {
19042 .d_revalidate = revalidate,
19043 };
19044
19045 int
19046 main (void)
19047 {
19048
19049
19050 ;
19051 return 0;
19052 }
19053
19054 _ACEOF
19055
19056
19057
19058 cat - <<_ACEOF >conftest.h
19059
19060 _ACEOF
19061
19062
19063 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19064 echo "obj-m := conftest.o" >build/Makefile
19065 modpost_flag=''
19066 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19067 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19069 (eval $ac_try) 2>&5
19070 ac_status=$?
19071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19072 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19074 (eval $ac_try) 2>&5
19075 ac_status=$?
19076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19077 test $ac_status = 0; }; }; then :
19078
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19080 $as_echo "yes" >&6; }
19081
19082 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
19083
19084
19085 else
19086 $as_echo "$as_me: failed program was:" >&5
19087 sed 's/^/| /' conftest.$ac_ext >&5
19088
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19090 $as_echo "no" >&6; }
19091
19092
19093
19094 fi
19095 rm -Rf build
19096
19097
19098
19099
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
19101 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
19102
19103
19104 cat confdefs.h - <<_ACEOF >conftest.c
19105
19106
19107 #include <linux/dcache.h>
19108
19109 const struct dentry_operations test_d_op = {
19110 .d_revalidate = NULL,
19111 };
19112
19113 int
19114 main (void)
19115 {
19116
19117 struct dentry d __attribute__ ((unused));
19118
19119 d.d_op = &test_d_op;
19120
19121 ;
19122 return 0;
19123 }
19124
19125 _ACEOF
19126
19127
19128
19129 cat - <<_ACEOF >conftest.h
19130
19131 _ACEOF
19132
19133
19134 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19135 echo "obj-m := conftest.o" >build/Makefile
19136 modpost_flag=''
19137 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19138 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19140 (eval $ac_try) 2>&5
19141 ac_status=$?
19142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19143 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19145 (eval $ac_try) 2>&5
19146 ac_status=$?
19147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19148 test $ac_status = 0; }; }; then :
19149
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19151 $as_echo "yes" >&6; }
19152
19153 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
19154
19155
19156 else
19157 $as_echo "$as_me: failed program was:" >&5
19158 sed 's/^/| /' conftest.$ac_ext >&5
19159
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19161 $as_echo "no" >&6; }
19162
19163
19164
19165 fi
19166 rm -Rf build
19167
19168
19169
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
19171 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
19172
19173
19174
19175 cat confdefs.h - <<_ACEOF >conftest.c
19176
19177
19178 #include <linux/fs.h>
19179
19180 int
19181 main (void)
19182 {
19183
19184 check_disk_size_change(NULL, NULL);
19185
19186 ;
19187 return 0;
19188 }
19189
19190 _ACEOF
19191
19192
19193
19194 cat - <<_ACEOF >conftest.h
19195
19196 _ACEOF
19197
19198
19199 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19200 echo "obj-m := conftest.o" >build/Makefile
19201 modpost_flag=''
19202 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19203 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19205 (eval $ac_try) 2>&5
19206 ac_status=$?
19207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19208 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19210 (eval $ac_try) 2>&5
19211 ac_status=$?
19212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19213 test $ac_status = 0; }; }; then :
19214 rc=0
19215 else
19216 $as_echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19218 rc=1
19219
19220
19221 fi
19222 rm -Rf build
19223
19224
19225 if test $rc -ne 0; then :
19226
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19228 $as_echo "no" >&6; }
19229
19230 else
19231 if test "x$enable_linux_builtin" != xyes; then
19232
19233 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
19234 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19235 rc=$?
19236 if test $rc -ne 0; then
19237 export=0
19238 for file in fs/block_dev.c; do
19239 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
19240 "$LINUX/$file" 2>/dev/null
19241 rc=$?
19242 if test $rc -eq 0; then
19243 export=1
19244 break;
19245 fi
19246 done
19247 if test $export -eq 0; then :
19248 rc=1
19249 else :
19250 rc=0
19251 fi
19252 else :
19253 rc=0
19254 fi
19255
19256 fi
19257 if test $rc -ne 0; then :
19258
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19260 $as_echo "no" >&6; }
19261
19262 else :
19263
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19265 $as_echo "yes" >&6; }
19266
19267 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
19268
19269
19270 fi
19271 fi
19272
19273
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
19275 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
19276
19277
19278
19279 cat confdefs.h - <<_ACEOF >conftest.c
19280
19281
19282 #include <linux/mm.h>
19283
19284 int
19285 main (void)
19286 {
19287
19288 truncate_setsize(NULL, 0);
19289
19290 ;
19291 return 0;
19292 }
19293
19294 _ACEOF
19295
19296
19297
19298 cat - <<_ACEOF >conftest.h
19299
19300 _ACEOF
19301
19302
19303 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19304 echo "obj-m := conftest.o" >build/Makefile
19305 modpost_flag=''
19306 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19307 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19309 (eval $ac_try) 2>&5
19310 ac_status=$?
19311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19312 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19314 (eval $ac_try) 2>&5
19315 ac_status=$?
19316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19317 test $ac_status = 0; }; }; then :
19318 rc=0
19319 else
19320 $as_echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19322 rc=1
19323
19324
19325 fi
19326 rm -Rf build
19327
19328
19329 if test $rc -ne 0; then :
19330
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19332 $as_echo "no" >&6; }
19333
19334 else
19335 if test "x$enable_linux_builtin" != xyes; then
19336
19337 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
19338 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19339 rc=$?
19340 if test $rc -ne 0; then
19341 export=0
19342 for file in mm/truncate.c; do
19343 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
19344 "$LINUX/$file" 2>/dev/null
19345 rc=$?
19346 if test $rc -eq 0; then
19347 export=1
19348 break;
19349 fi
19350 done
19351 if test $export -eq 0; then :
19352 rc=1
19353 else :
19354 rc=0
19355 fi
19356 else :
19357 rc=0
19358 fi
19359
19360 fi
19361 if test $rc -ne 0; then :
19362
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19364 $as_echo "no" >&6; }
19365
19366 else :
19367
19368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19369 $as_echo "yes" >&6; }
19370
19371 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
19372
19373
19374 fi
19375 fi
19376
19377
19378
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
19380 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
19381
19382
19383 cat confdefs.h - <<_ACEOF >conftest.c
19384
19385
19386 #include <linux/security.h>
19387
19388 int
19389 main (void)
19390 {
19391
19392 struct inode *ip __attribute__ ((unused)) = NULL;
19393 struct inode *dip __attribute__ ((unused)) = NULL;
19394 const struct qstr *str __attribute__ ((unused)) = NULL;
19395 char *name __attribute__ ((unused)) = NULL;
19396 void *value __attribute__ ((unused)) = NULL;
19397 size_t len __attribute__ ((unused)) = 0;
19398
19399 security_inode_init_security(ip, dip, str, &name, &value, &len);
19400
19401 ;
19402 return 0;
19403 }
19404
19405 _ACEOF
19406
19407
19408
19409 cat - <<_ACEOF >conftest.h
19410
19411 _ACEOF
19412
19413
19414 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19415 echo "obj-m := conftest.o" >build/Makefile
19416 modpost_flag=''
19417 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19418 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19420 (eval $ac_try) 2>&5
19421 ac_status=$?
19422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19423 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19425 (eval $ac_try) 2>&5
19426 ac_status=$?
19427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19428 test $ac_status = 0; }; }; then :
19429
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19431 $as_echo "yes" >&6; }
19432
19433 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
19434
19435
19436 else
19437 $as_echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19439
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19441 $as_echo "no" >&6; }
19442
19443
19444
19445 fi
19446 rm -Rf build
19447
19448
19449
19450
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
19452 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
19453
19454
19455 cat confdefs.h - <<_ACEOF >conftest.c
19456
19457
19458 #include <linux/security.h>
19459
19460 int
19461 main (void)
19462 {
19463
19464 struct inode *ip __attribute__ ((unused)) = NULL;
19465 struct inode *dip __attribute__ ((unused)) = NULL;
19466 const struct qstr *str __attribute__ ((unused)) = NULL;
19467 initxattrs func __attribute__ ((unused)) = NULL;
19468
19469 security_inode_init_security(ip, dip, str, func, NULL);
19470
19471 ;
19472 return 0;
19473 }
19474
19475 _ACEOF
19476
19477
19478
19479 cat - <<_ACEOF >conftest.h
19480
19481 _ACEOF
19482
19483
19484 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19485 echo "obj-m := conftest.o" >build/Makefile
19486 modpost_flag=''
19487 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19488 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19490 (eval $ac_try) 2>&5
19491 ac_status=$?
19492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19493 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19495 (eval $ac_try) 2>&5
19496 ac_status=$?
19497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19498 test $ac_status = 0; }; }; then :
19499
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19501 $as_echo "yes" >&6; }
19502
19503 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
19504
19505
19506 else
19507 $as_echo "$as_me: failed program was:" >&5
19508 sed 's/^/| /' conftest.$ac_ext >&5
19509
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19511 $as_echo "no" >&6; }
19512
19513
19514
19515 fi
19516 rm -Rf build
19517
19518
19519
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
19521 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
19522
19523
19524
19525 cat confdefs.h - <<_ACEOF >conftest.c
19526
19527
19528 #include <linux/fs.h>
19529
19530 int
19531 main (void)
19532 {
19533
19534 mount_nodev(NULL, 0, NULL, NULL);
19535
19536 ;
19537 return 0;
19538 }
19539
19540 _ACEOF
19541
19542
19543
19544 cat - <<_ACEOF >conftest.h
19545
19546 _ACEOF
19547
19548
19549 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19550 echo "obj-m := conftest.o" >build/Makefile
19551 modpost_flag=''
19552 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19553 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19555 (eval $ac_try) 2>&5
19556 ac_status=$?
19557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19558 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19560 (eval $ac_try) 2>&5
19561 ac_status=$?
19562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19563 test $ac_status = 0; }; }; then :
19564 rc=0
19565 else
19566 $as_echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19568 rc=1
19569
19570
19571 fi
19572 rm -Rf build
19573
19574
19575 if test $rc -ne 0; then :
19576
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19578 $as_echo "no" >&6; }
19579
19580 else
19581 if test "x$enable_linux_builtin" != xyes; then
19582
19583 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
19584 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19585 rc=$?
19586 if test $rc -ne 0; then
19587 export=0
19588 for file in fs/super.c; do
19589 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
19590 "$LINUX/$file" 2>/dev/null
19591 rc=$?
19592 if test $rc -eq 0; then
19593 export=1
19594 break;
19595 fi
19596 done
19597 if test $export -eq 0; then :
19598 rc=1
19599 else :
19600 rc=0
19601 fi
19602 else :
19603 rc=0
19604 fi
19605
19606 fi
19607 if test $rc -ne 0; then :
19608
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19610 $as_echo "no" >&6; }
19611
19612 else :
19613
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19615 $as_echo "yes" >&6; }
19616
19617 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
19618
19619
19620 fi
19621 fi
19622
19623
19624
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
19626 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
19627
19628
19629 cat confdefs.h - <<_ACEOF >conftest.c
19630
19631
19632 #include <linux/fs.h>
19633
19634 int shrink(struct shrinker *s, struct shrink_control *sc)
19635 { return 0; }
19636
19637 static const struct super_block
19638 sb __attribute__ ((unused)) = {
19639 .s_shrink.shrink = shrink,
19640 .s_shrink.seeks = DEFAULT_SEEKS,
19641 .s_shrink.batch = 0,
19642 };
19643
19644 int
19645 main (void)
19646 {
19647
19648
19649 ;
19650 return 0;
19651 }
19652
19653 _ACEOF
19654
19655
19656
19657 cat - <<_ACEOF >conftest.h
19658
19659 _ACEOF
19660
19661
19662 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19663 echo "obj-m := conftest.o" >build/Makefile
19664 modpost_flag=''
19665 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19666 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19668 (eval $ac_try) 2>&5
19669 ac_status=$?
19670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19671 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19673 (eval $ac_try) 2>&5
19674 ac_status=$?
19675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19676 test $ac_status = 0; }; }; then :
19677
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19679 $as_echo "yes" >&6; }
19680
19681 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
19682
19683
19684
19685 else
19686 $as_echo "$as_me: failed program was:" >&5
19687 sed 's/^/| /' conftest.$ac_ext >&5
19688
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19690 $as_echo "no" >&6; }
19691
19692
19693
19694 fi
19695 rm -Rf build
19696
19697
19698
19699
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
19701 $as_echo_n "checking whether shrink_control has nid... " >&6; }
19702
19703
19704 cat confdefs.h - <<_ACEOF >conftest.c
19705
19706
19707 #include <linux/fs.h>
19708
19709 int
19710 main (void)
19711 {
19712
19713 struct shrink_control sc __attribute__ ((unused));
19714 unsigned long scnidsize __attribute__ ((unused)) =
19715 sizeof(sc.nid);
19716
19717 ;
19718 return 0;
19719 }
19720
19721 _ACEOF
19722
19723
19724
19725 cat - <<_ACEOF >conftest.h
19726
19727 _ACEOF
19728
19729
19730 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19731 echo "obj-m := conftest.o" >build/Makefile
19732 modpost_flag=''
19733 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19734 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19736 (eval $ac_try) 2>&5
19737 ac_status=$?
19738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19739 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19741 (eval $ac_try) 2>&5
19742 ac_status=$?
19743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19744 test $ac_status = 0; }; }; then :
19745
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19747 $as_echo "yes" >&6; }
19748
19749 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
19750
19751
19752 else
19753 $as_echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19755
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19757 $as_echo "no" >&6; }
19758
19759
19760
19761 fi
19762 rm -Rf build
19763
19764
19765
19766
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
19768 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
19769
19770
19771 cat confdefs.h - <<_ACEOF >conftest.c
19772
19773
19774 #include <linux/fs.h>
19775
19776 int
19777 main (void)
19778 {
19779
19780 struct super_block sb __attribute__ ((unused));
19781
19782 INIT_LIST_HEAD(&sb.s_instances);
19783
19784 ;
19785 return 0;
19786 }
19787
19788 _ACEOF
19789
19790
19791
19792 cat - <<_ACEOF >conftest.h
19793
19794 _ACEOF
19795
19796
19797 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19798 echo "obj-m := conftest.o" >build/Makefile
19799 modpost_flag=''
19800 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19801 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19803 (eval $ac_try) 2>&5
19804 ac_status=$?
19805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19806 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19808 (eval $ac_try) 2>&5
19809 ac_status=$?
19810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19811 test $ac_status = 0; }; }; then :
19812
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19814 $as_echo "yes" >&6; }
19815
19816 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
19817
19818
19819 else
19820 $as_echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.$ac_ext >&5
19822
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19824 $as_echo "no" >&6; }
19825
19826
19827
19828 fi
19829 rm -Rf build
19830
19831
19832
19833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
19834 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
19835
19836
19837 cat confdefs.h - <<_ACEOF >conftest.c
19838
19839
19840 #include <linux/fs.h>
19841
19842 int
19843 main (void)
19844 {
19845
19846 struct super_block sb __attribute__ ((unused));
19847 sb.s_d_op = NULL;
19848
19849 ;
19850 return 0;
19851 }
19852
19853 _ACEOF
19854
19855
19856
19857 cat - <<_ACEOF >conftest.h
19858
19859 _ACEOF
19860
19861
19862 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19863 echo "obj-m := conftest.o" >build/Makefile
19864 modpost_flag=''
19865 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19866 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19868 (eval $ac_try) 2>&5
19869 ac_status=$?
19870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19871 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19873 (eval $ac_try) 2>&5
19874 ac_status=$?
19875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19876 test $ac_status = 0; }; }; then :
19877
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19879 $as_echo "yes" >&6; }
19880
19881 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
19882
19883
19884 else
19885 $as_echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.$ac_ext >&5
19887
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19889 $as_echo "no" >&6; }
19890
19891
19892
19893 fi
19894 rm -Rf build
19895
19896
19897
19898
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
19900 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
19901
19902
19903
19904 cat confdefs.h - <<_ACEOF >conftest.c
19905
19906
19907 #include <linux/backing-dev.h>
19908
19909 int
19910 main (void)
19911 {
19912
19913 struct backing_dev_info bdi;
19914 char *name = "bdi";
19915 int error __attribute__((unused)) =
19916 bdi_setup_and_register(&bdi, name);
19917
19918 ;
19919 return 0;
19920 }
19921
19922 _ACEOF
19923
19924
19925
19926 cat - <<_ACEOF >conftest.h
19927
19928 _ACEOF
19929
19930
19931 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19932 echo "obj-m := conftest.o" >build/Makefile
19933 modpost_flag=''
19934 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19935 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19937 (eval $ac_try) 2>&5
19938 ac_status=$?
19939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19940 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19942 (eval $ac_try) 2>&5
19943 ac_status=$?
19944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19945 test $ac_status = 0; }; }; then :
19946 rc=0
19947 else
19948 $as_echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19950 rc=1
19951
19952
19953 fi
19954 rm -Rf build
19955
19956
19957 if test $rc -ne 0; then :
19958
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19960 $as_echo "no" >&6; }
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
19962 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
19963
19964
19965
19966 cat confdefs.h - <<_ACEOF >conftest.c
19967
19968
19969 #include <linux/backing-dev.h>
19970
19971 int
19972 main (void)
19973 {
19974
19975 struct backing_dev_info bdi;
19976 char *name = "bdi";
19977 unsigned int cap = BDI_CAP_MAP_COPY;
19978 int error __attribute__((unused)) =
19979 bdi_setup_and_register(&bdi, name, cap);
19980
19981 ;
19982 return 0;
19983 }
19984
19985 _ACEOF
19986
19987
19988
19989 cat - <<_ACEOF >conftest.h
19990
19991 _ACEOF
19992
19993
19994 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19995 echo "obj-m := conftest.o" >build/Makefile
19996 modpost_flag=''
19997 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19998 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20000 (eval $ac_try) 2>&5
20001 ac_status=$?
20002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20003 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20005 (eval $ac_try) 2>&5
20006 ac_status=$?
20007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20008 test $ac_status = 0; }; }; then :
20009 rc=0
20010 else
20011 $as_echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20013 rc=1
20014
20015
20016 fi
20017 rm -Rf build
20018
20019
20020 if test $rc -ne 0; then :
20021
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20023 $as_echo "no" >&6; }
20024
20025 else
20026 if test "x$enable_linux_builtin" != xyes; then
20027
20028 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
20029 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20030 rc=$?
20031 if test $rc -ne 0; then
20032 export=0
20033 for file in mm/backing-dev.c; do
20034 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
20035 "$LINUX/$file" 2>/dev/null
20036 rc=$?
20037 if test $rc -eq 0; then
20038 export=1
20039 break;
20040 fi
20041 done
20042 if test $export -eq 0; then :
20043 rc=1
20044 else :
20045 rc=0
20046 fi
20047 else :
20048 rc=0
20049 fi
20050
20051 fi
20052 if test $rc -ne 0; then :
20053
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20055 $as_echo "no" >&6; }
20056
20057 else :
20058
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20060 $as_echo "yes" >&6; }
20061
20062 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
20063
20064
20065 fi
20066 fi
20067
20068
20069 else
20070 if test "x$enable_linux_builtin" != xyes; then
20071
20072 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
20073 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20074 rc=$?
20075 if test $rc -ne 0; then
20076 export=0
20077 for file in mm/backing-dev.c; do
20078 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
20079 "$LINUX/$file" 2>/dev/null
20080 rc=$?
20081 if test $rc -eq 0; then
20082 export=1
20083 break;
20084 fi
20085 done
20086 if test $export -eq 0; then :
20087 rc=1
20088 else :
20089 rc=0
20090 fi
20091 else :
20092 rc=0
20093 fi
20094
20095 fi
20096 if test $rc -ne 0; then :
20097
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20099 $as_echo "no" >&6; }
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
20101 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
20102
20103
20104
20105 cat confdefs.h - <<_ACEOF >conftest.c
20106
20107
20108 #include <linux/backing-dev.h>
20109
20110 int
20111 main (void)
20112 {
20113
20114 struct backing_dev_info bdi;
20115 char *name = "bdi";
20116 unsigned int cap = BDI_CAP_MAP_COPY;
20117 int error __attribute__((unused)) =
20118 bdi_setup_and_register(&bdi, name, cap);
20119
20120 ;
20121 return 0;
20122 }
20123
20124 _ACEOF
20125
20126
20127
20128 cat - <<_ACEOF >conftest.h
20129
20130 _ACEOF
20131
20132
20133 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20134 echo "obj-m := conftest.o" >build/Makefile
20135 modpost_flag=''
20136 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20137 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20139 (eval $ac_try) 2>&5
20140 ac_status=$?
20141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20142 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20144 (eval $ac_try) 2>&5
20145 ac_status=$?
20146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20147 test $ac_status = 0; }; }; then :
20148 rc=0
20149 else
20150 $as_echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20152 rc=1
20153
20154
20155 fi
20156 rm -Rf build
20157
20158
20159 if test $rc -ne 0; then :
20160
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20162 $as_echo "no" >&6; }
20163
20164 else
20165 if test "x$enable_linux_builtin" != xyes; then
20166
20167 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
20168 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20169 rc=$?
20170 if test $rc -ne 0; then
20171 export=0
20172 for file in mm/backing-dev.c; do
20173 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
20174 "$LINUX/$file" 2>/dev/null
20175 rc=$?
20176 if test $rc -eq 0; then
20177 export=1
20178 break;
20179 fi
20180 done
20181 if test $export -eq 0; then :
20182 rc=1
20183 else :
20184 rc=0
20185 fi
20186 else :
20187 rc=0
20188 fi
20189
20190 fi
20191 if test $rc -ne 0; then :
20192
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20194 $as_echo "no" >&6; }
20195
20196 else :
20197
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20199 $as_echo "yes" >&6; }
20200
20201 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
20202
20203
20204 fi
20205 fi
20206
20207
20208 else :
20209
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20211 $as_echo "yes" >&6; }
20212
20213 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
20214
20215
20216 fi
20217 fi
20218
20219
20220
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
20222 $as_echo_n "checking whether set_nlink() is available... " >&6; }
20223
20224
20225 cat confdefs.h - <<_ACEOF >conftest.c
20226
20227
20228 #include <linux/fs.h>
20229
20230 int
20231 main (void)
20232 {
20233
20234 struct inode node;
20235 unsigned int link = 0;
20236 (void) set_nlink(&node, link);
20237
20238 ;
20239 return 0;
20240 }
20241
20242 _ACEOF
20243
20244
20245
20246 cat - <<_ACEOF >conftest.h
20247
20248 _ACEOF
20249
20250
20251 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20252 echo "obj-m := conftest.o" >build/Makefile
20253 modpost_flag=''
20254 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20255 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20257 (eval $ac_try) 2>&5
20258 ac_status=$?
20259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20260 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20262 (eval $ac_try) 2>&5
20263 ac_status=$?
20264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20265 test $ac_status = 0; }; }; then :
20266
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20268 $as_echo "yes" >&6; }
20269
20270 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
20271
20272
20273 else
20274 $as_echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20276
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20278 $as_echo "no" >&6; }
20279
20280
20281
20282 fi
20283 rm -Rf build
20284
20285
20286
20287
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
20289 $as_echo_n "checking whether elevator_change() is available... " >&6; }
20290 tmp_flags="$EXTRA_KCFLAGS"
20291 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20292
20293
20294 cat confdefs.h - <<_ACEOF >conftest.c
20295
20296
20297 #include <linux/blkdev.h>
20298 #include <linux/elevator.h>
20299
20300 int
20301 main (void)
20302 {
20303
20304 int ret;
20305 struct request_queue *q = NULL;
20306 char *elevator = NULL;
20307 ret = elevator_change(q, elevator);
20308
20309 ;
20310 return 0;
20311 }
20312
20313 _ACEOF
20314
20315
20316
20317 cat - <<_ACEOF >conftest.h
20318
20319 _ACEOF
20320
20321
20322 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20323 echo "obj-m := conftest.o" >build/Makefile
20324 modpost_flag=''
20325 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20326 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20328 (eval $ac_try) 2>&5
20329 ac_status=$?
20330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20331 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20333 (eval $ac_try) 2>&5
20334 ac_status=$?
20335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20336 test $ac_status = 0; }; }; then :
20337
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20339 $as_echo "yes" >&6; }
20340
20341 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
20342
20343
20344 else
20345 $as_echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20347
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20349 $as_echo "no" >&6; }
20350
20351
20352
20353 fi
20354 rm -Rf build
20355
20356
20357 EXTRA_KCFLAGS="$tmp_flags"
20358
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
20360 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
20361
20362
20363 cat confdefs.h - <<_ACEOF >conftest.c
20364
20365
20366 #include <linux/fs.h>
20367
20368 int
20369 main (void)
20370 {
20371
20372 struct file_system_type *type = NULL;
20373 int (*test)(struct super_block *,void *) = NULL;
20374 int (*set)(struct super_block *,void *) = NULL;
20375 int flags = 0;
20376 void *data = NULL;
20377 (void) sget(type, test, set, flags, data);
20378
20379 ;
20380 return 0;
20381 }
20382
20383 _ACEOF
20384
20385
20386
20387 cat - <<_ACEOF >conftest.h
20388
20389 _ACEOF
20390
20391
20392 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20393 echo "obj-m := conftest.o" >build/Makefile
20394 modpost_flag=''
20395 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20396 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20398 (eval $ac_try) 2>&5
20399 ac_status=$?
20400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20401 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20403 (eval $ac_try) 2>&5
20404 ac_status=$?
20405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20406 test $ac_status = 0; }; }; then :
20407
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20409 $as_echo "yes" >&6; }
20410
20411 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
20412
20413
20414 else
20415 $as_echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20417
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20419 $as_echo "no" >&6; }
20420
20421
20422
20423 fi
20424 rm -Rf build
20425
20426
20427
20428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
20429 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
20430
20431
20432
20433 cat confdefs.h - <<_ACEOF >conftest.c
20434
20435
20436 #include <linux/fs.h>
20437
20438 int
20439 main (void)
20440 {
20441
20442 struct file *fp __attribute__ ((unused)) = NULL;
20443 struct inode *ip __attribute__ ((unused)) = NULL;
20444 loff_t offset __attribute__ ((unused)) = 0;
20445 loff_t maxsize __attribute__ ((unused)) = 0;
20446
20447 lseek_execute(fp, ip, offset, maxsize);
20448
20449 ;
20450 return 0;
20451 }
20452
20453 _ACEOF
20454
20455
20456
20457 cat - <<_ACEOF >conftest.h
20458
20459 _ACEOF
20460
20461
20462 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20463 echo "obj-m := conftest.o" >build/Makefile
20464 modpost_flag=''
20465 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20466 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20468 (eval $ac_try) 2>&5
20469 ac_status=$?
20470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20471 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20473 (eval $ac_try) 2>&5
20474 ac_status=$?
20475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20476 test $ac_status = 0; }; }; then :
20477 rc=0
20478 else
20479 $as_echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20481 rc=1
20482
20483
20484 fi
20485 rm -Rf build
20486
20487
20488 if test $rc -ne 0; then :
20489
20490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20491 $as_echo "no" >&6; }
20492
20493 else
20494 if test "x$enable_linux_builtin" != xyes; then
20495
20496 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
20497 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20498 rc=$?
20499 if test $rc -ne 0; then
20500 export=0
20501 for file in fs/read_write.c; do
20502 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
20503 "$LINUX/$file" 2>/dev/null
20504 rc=$?
20505 if test $rc -eq 0; then
20506 export=1
20507 break;
20508 fi
20509 done
20510 if test $export -eq 0; then :
20511 rc=1
20512 else :
20513 rc=0
20514 fi
20515 else :
20516 rc=0
20517 fi
20518
20519 fi
20520 if test $rc -ne 0; then :
20521
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20523 $as_echo "no" >&6; }
20524
20525 else :
20526
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20528 $as_echo "yes" >&6; }
20529
20530 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
20531
20532
20533 fi
20534 fi
20535
20536
20537
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
20539 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
20540
20541
20542 cat confdefs.h - <<_ACEOF >conftest.c
20543
20544
20545 #include <linux/fs.h>
20546 int iterate(struct file *filp, struct dir_context * context)
20547 { return 0; }
20548
20549 static const struct file_operations fops
20550 __attribute__ ((unused)) = {
20551 .iterate = iterate,
20552 };
20553
20554 int
20555 main (void)
20556 {
20557
20558
20559 ;
20560 return 0;
20561 }
20562
20563 _ACEOF
20564
20565
20566
20567 cat - <<_ACEOF >conftest.h
20568
20569 _ACEOF
20570
20571
20572 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20573 echo "obj-m := conftest.o" >build/Makefile
20574 modpost_flag=''
20575 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20576 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20578 (eval $ac_try) 2>&5
20579 ac_status=$?
20580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20581 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20583 (eval $ac_try) 2>&5
20584 ac_status=$?
20585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20586 test $ac_status = 0; }; }; then :
20587
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20589 $as_echo "yes" >&6; }
20590
20591 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
20592
20593
20594 else
20595 $as_echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20597
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20599 $as_echo "no" >&6; }
20600
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
20602 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
20603
20604
20605 cat confdefs.h - <<_ACEOF >conftest.c
20606
20607
20608 #include <linux/fs.h>
20609 int readdir(struct file *filp, void *entry, filldir_t func)
20610 { return 0; }
20611
20612 static const struct file_operations fops
20613 __attribute__ ((unused)) = {
20614 .readdir = readdir,
20615 };
20616
20617 int
20618 main (void)
20619 {
20620
20621
20622 ;
20623 return 0;
20624 }
20625
20626 _ACEOF
20627
20628
20629
20630 cat - <<_ACEOF >conftest.h
20631
20632 _ACEOF
20633
20634
20635 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20636 echo "obj-m := conftest.o" >build/Makefile
20637 modpost_flag=''
20638 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20639 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20641 (eval $ac_try) 2>&5
20642 ac_status=$?
20643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20644 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20646 (eval $ac_try) 2>&5
20647 ac_status=$?
20648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20649 test $ac_status = 0; }; }; then :
20650
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20652 $as_echo "yes" >&6; }
20653
20654 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
20655
20656
20657 else
20658 $as_echo "$as_me: failed program was:" >&5
20659 sed 's/^/| /' conftest.$ac_ext >&5
20660
20661 as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5
20662
20663
20664
20665 fi
20666 rm -Rf build
20667
20668
20669
20670
20671
20672
20673 fi
20674 rm -Rf build
20675
20676
20677
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
20679 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
20680
20681
20682 cat confdefs.h - <<_ACEOF >conftest.c
20683
20684
20685 #include <linux/fs.h>
20686
20687 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
20688 { return 0; }
20689 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
20690 { return 0; }
20691
20692 static const struct file_operations
20693 fops __attribute__ ((unused)) = {
20694 .read_iter = test_read,
20695 .write_iter = test_write,
20696 };
20697
20698 int
20699 main (void)
20700 {
20701
20702
20703 ;
20704 return 0;
20705 }
20706
20707 _ACEOF
20708
20709
20710
20711 cat - <<_ACEOF >conftest.h
20712
20713 _ACEOF
20714
20715
20716 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20717 echo "obj-m := conftest.o" >build/Makefile
20718 modpost_flag=''
20719 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20720 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20722 (eval $ac_try) 2>&5
20723 ac_status=$?
20724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20725 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20727 (eval $ac_try) 2>&5
20728 ac_status=$?
20729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20730 test $ac_status = 0; }; }; then :
20731
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20733 $as_echo "yes" >&6; }
20734
20735 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
20736
20737
20738 else
20739 $as_echo "$as_me: failed program was:" >&5
20740 sed 's/^/| /' conftest.$ac_ext >&5
20741
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20743 $as_echo "no" >&6; }
20744
20745
20746
20747 fi
20748 rm -Rf build
20749
20750
20751
20752
20753 if test "$LINUX_OBJ" != "$LINUX"; then :
20754
20755 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
20756
20757 fi
20758
20759
20760
20761 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
20762 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
20763 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
20764
20765
20766 ;;
20767 user)
20768
20769
20770 # Check whether --with-mounthelperdir was given.
20771 if test "${with_mounthelperdir+set}" = set; then :
20772 withval=$with_mounthelperdir; mounthelperdir=$withval
20773 else
20774 mounthelperdir=$sbindir
20775 fi
20776
20777
20778
20779
20780
20781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
20782 $as_echo_n "checking for udev directories... " >&6; }
20783
20784 # Check whether --with-udevdir was given.
20785 if test "${with_udevdir+set}" = set; then :
20786 withval=$with_udevdir; udevdir=$withval
20787 else
20788 udevdir=check
20789 fi
20790
20791
20792 if test "x$udevdir" = xcheck; then :
20793
20794 path1=/lib/udev
20795 path2=/usr/lib/udev
20796 default=$path2
20797
20798 if test -d "$path1"; then :
20799 udevdir="$path1"
20800 else
20801
20802 if test -d "$path2"; then :
20803 udevdir="$path2"
20804 else
20805 udevdir="$default"
20806 fi
20807
20808 fi
20809
20810 fi
20811
20812
20813 # Check whether --with-udevruledir was given.
20814 if test "${with_udevruledir+set}" = set; then :
20815 withval=$with_udevruledir; udevruledir=$withval
20816 else
20817 udevruledir="${udevdir}/rules.d"
20818 fi
20819
20820
20821
20822
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
20824 $as_echo "$udevdir;$udevruledir" >&6; }
20825
20826
20827 # Check whether --enable-systemd was given.
20828 if test "${enable_systemd+set}" = set; then :
20829 enableval=$enable_systemd;
20830 else
20831 enable_systemd=yes
20832 fi
20833
20834
20835
20836 # Check whether --with-systemdunitdir was given.
20837 if test "${with_systemdunitdir+set}" = set; then :
20838 withval=$with_systemdunitdir; systemdunitdir=$withval
20839 else
20840 systemdunitdir=/usr/lib/systemd/system
20841 fi
20842
20843
20844
20845 # Check whether --with-systemdpresetdir was given.
20846 if test "${with_systemdpresetdir+set}" = set; then :
20847 withval=$with_systemdpresetdir; systemdpresetdir=$withval
20848 else
20849 systemdpresetdir=/usr/lib/systemd/system-preset
20850 fi
20851
20852
20853
20854 # Check whether --with-systemdmodulesloaddir was given.
20855 if test "${with_systemdmodulesloaddir+set}" = set; then :
20856 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
20857 else
20858 systemdmodulesloaddir=/usr/lib/modules-load.d
20859 fi
20860
20861
20862
20863 if test "x$enable_systemd" = xyes; then :
20864
20865 ZFS_INIT_SYSTEMD=systemd
20866 ZFS_MODULE_LOAD=modules-load.d
20867 modulesloaddir=$systemdmodulesloaddir
20868
20869 fi
20870
20871
20872
20873
20874
20875
20876
20877
20878 # Check whether --enable-sysvinit was given.
20879 if test "${enable_sysvinit+set}" = set; then :
20880 enableval=$enable_sysvinit;
20881 else
20882 enable_sysvinit=yes
20883 fi
20884
20885
20886 if test "x$enable_sysvinit" = xyes; then :
20887 ZFS_INIT_SYSV=init.d
20888 fi
20889
20890
20891
20892
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
20894 $as_echo_n "checking for dracut directory... " >&6; }
20895
20896 # Check whether --with-dracutdir was given.
20897 if test "${with_dracutdir+set}" = set; then :
20898 withval=$with_dracutdir; dracutdir=$withval
20899 else
20900 dracutdir=check
20901 fi
20902
20903
20904 if test "x$dracutdir" = xcheck; then :
20905
20906 path1=/usr/share/dracut
20907 path2=/usr/lib/dracut
20908 default=$path2
20909
20910 if test -d "$path1"; then :
20911 dracutdir="$path1"
20912 else
20913
20914 if test -d "$path2"; then :
20915 dracutdir="$path2"
20916 else
20917 dracutdir="$default"
20918 fi
20919
20920 fi
20921
20922 fi
20923
20924
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
20926 $as_echo "$dracutdir" >&6; }
20927
20928
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
20930 $as_echo_n "checking for target asm dir... " >&6; }
20931 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
20932
20933 case $TARGET_ARCH in
20934 i386|x86_64)
20935 TARGET_ASM_DIR=asm-${TARGET_ARCH}
20936 ;;
20937 *)
20938 TARGET_ASM_DIR=asm-generic
20939 ;;
20940 esac
20941
20942
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
20944 $as_echo "$TARGET_ASM_DIR" >&6; }
20945
20946
20947 ZLIB=
20948
20949 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20950 if test "x$ac_cv_header_zlib_h" = xyes; then :
20951
20952 else
20953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20955 as_fn_error $? "
20956 *** zlib.h missing, zlib-devel package required
20957 See \`config.log' for more details" "$LINENO" 5; }
20958 fi
20959
20960
20961
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
20963 $as_echo_n "checking for compress2 in -lz... " >&6; }
20964 if ${ac_cv_lib_z_compress2+:} false; then :
20965 $as_echo_n "(cached) " >&6
20966 else
20967 ac_check_lib_save_LIBS=$LIBS
20968 LIBS="-lz $LIBS"
20969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20970 /* end confdefs.h. */
20971
20972 /* Override any GCC internal prototype to avoid an error.
20973 Use char because int might match the return type of a GCC
20974 builtin and then its argument prototype would still apply. */
20975 #ifdef __cplusplus
20976 extern "C"
20977 #endif
20978 char compress2 ();
20979 int
20980 main ()
20981 {
20982 return compress2 ();
20983 ;
20984 return 0;
20985 }
20986 _ACEOF
20987 if ac_fn_c_try_link "$LINENO"; then :
20988 ac_cv_lib_z_compress2=yes
20989 else
20990 ac_cv_lib_z_compress2=no
20991 fi
20992 rm -f core conftest.err conftest.$ac_objext \
20993 conftest$ac_exeext conftest.$ac_ext
20994 LIBS=$ac_check_lib_save_LIBS
20995 fi
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
20997 $as_echo "$ac_cv_lib_z_compress2" >&6; }
20998 if test "x$ac_cv_lib_z_compress2" = xyes; then :
20999 cat >>confdefs.h <<_ACEOF
21000 #define HAVE_LIBZ 1
21001 _ACEOF
21002
21003 LIBS="-lz $LIBS"
21004
21005 else
21006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21008 as_fn_error $? "
21009 *** compress2() missing, zlib-devel package required
21010 See \`config.log' for more details" "$LINENO" 5; }
21011 fi
21012
21013
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
21015 $as_echo_n "checking for uncompress in -lz... " >&6; }
21016 if ${ac_cv_lib_z_uncompress+:} false; then :
21017 $as_echo_n "(cached) " >&6
21018 else
21019 ac_check_lib_save_LIBS=$LIBS
21020 LIBS="-lz $LIBS"
21021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21022 /* end confdefs.h. */
21023
21024 /* Override any GCC internal prototype to avoid an error.
21025 Use char because int might match the return type of a GCC
21026 builtin and then its argument prototype would still apply. */
21027 #ifdef __cplusplus
21028 extern "C"
21029 #endif
21030 char uncompress ();
21031 int
21032 main ()
21033 {
21034 return uncompress ();
21035 ;
21036 return 0;
21037 }
21038 _ACEOF
21039 if ac_fn_c_try_link "$LINENO"; then :
21040 ac_cv_lib_z_uncompress=yes
21041 else
21042 ac_cv_lib_z_uncompress=no
21043 fi
21044 rm -f core conftest.err conftest.$ac_objext \
21045 conftest$ac_exeext conftest.$ac_ext
21046 LIBS=$ac_check_lib_save_LIBS
21047 fi
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
21049 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
21050 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
21051 cat >>confdefs.h <<_ACEOF
21052 #define HAVE_LIBZ 1
21053 _ACEOF
21054
21055 LIBS="-lz $LIBS"
21056
21057 else
21058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21060 as_fn_error $? "
21061 *** uncompress() missing, zlib-devel package required
21062 See \`config.log' for more details" "$LINENO" 5; }
21063 fi
21064
21065
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
21067 $as_echo_n "checking for crc32 in -lz... " >&6; }
21068 if ${ac_cv_lib_z_crc32+:} false; then :
21069 $as_echo_n "(cached) " >&6
21070 else
21071 ac_check_lib_save_LIBS=$LIBS
21072 LIBS="-lz $LIBS"
21073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21074 /* end confdefs.h. */
21075
21076 /* Override any GCC internal prototype to avoid an error.
21077 Use char because int might match the return type of a GCC
21078 builtin and then its argument prototype would still apply. */
21079 #ifdef __cplusplus
21080 extern "C"
21081 #endif
21082 char crc32 ();
21083 int
21084 main ()
21085 {
21086 return crc32 ();
21087 ;
21088 return 0;
21089 }
21090 _ACEOF
21091 if ac_fn_c_try_link "$LINENO"; then :
21092 ac_cv_lib_z_crc32=yes
21093 else
21094 ac_cv_lib_z_crc32=no
21095 fi
21096 rm -f core conftest.err conftest.$ac_objext \
21097 conftest$ac_exeext conftest.$ac_ext
21098 LIBS=$ac_check_lib_save_LIBS
21099 fi
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
21101 $as_echo "$ac_cv_lib_z_crc32" >&6; }
21102 if test "x$ac_cv_lib_z_crc32" = xyes; then :
21103 cat >>confdefs.h <<_ACEOF
21104 #define HAVE_LIBZ 1
21105 _ACEOF
21106
21107 LIBS="-lz $LIBS"
21108
21109 else
21110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21112 as_fn_error $? "
21113 *** crc32() missing, zlib-devel package required
21114 See \`config.log' for more details" "$LINENO" 5; }
21115 fi
21116
21117
21118 ZLIB="-lz"
21119
21120
21121 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
21122
21123
21124
21125 LIBUUID=
21126
21127 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
21128 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
21129
21130 else
21131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21133 as_fn_error $? "
21134 *** uuid/uuid.h missing, libuuid-devel package required
21135 See \`config.log' for more details" "$LINENO" 5; }
21136 fi
21137
21138
21139
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
21141 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
21142 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
21143 $as_echo_n "(cached) " >&6
21144 else
21145 ac_check_lib_save_LIBS=$LIBS
21146 LIBS="-luuid $LIBS"
21147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21148 /* end confdefs.h. */
21149
21150 /* Override any GCC internal prototype to avoid an error.
21151 Use char because int might match the return type of a GCC
21152 builtin and then its argument prototype would still apply. */
21153 #ifdef __cplusplus
21154 extern "C"
21155 #endif
21156 char uuid_generate ();
21157 int
21158 main ()
21159 {
21160 return uuid_generate ();
21161 ;
21162 return 0;
21163 }
21164 _ACEOF
21165 if ac_fn_c_try_link "$LINENO"; then :
21166 ac_cv_lib_uuid_uuid_generate=yes
21167 else
21168 ac_cv_lib_uuid_uuid_generate=no
21169 fi
21170 rm -f core conftest.err conftest.$ac_objext \
21171 conftest$ac_exeext conftest.$ac_ext
21172 LIBS=$ac_check_lib_save_LIBS
21173 fi
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
21175 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
21176 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
21177 cat >>confdefs.h <<_ACEOF
21178 #define HAVE_LIBUUID 1
21179 _ACEOF
21180
21181 LIBS="-luuid $LIBS"
21182
21183 else
21184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21186 as_fn_error $? "
21187 *** uuid_generate() missing, libuuid-devel package required
21188 See \`config.log' for more details" "$LINENO" 5; }
21189 fi
21190
21191
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
21193 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
21194 if ${ac_cv_lib_uuid_uuid_is_null+:} false; then :
21195 $as_echo_n "(cached) " >&6
21196 else
21197 ac_check_lib_save_LIBS=$LIBS
21198 LIBS="-luuid $LIBS"
21199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21200 /* end confdefs.h. */
21201
21202 /* Override any GCC internal prototype to avoid an error.
21203 Use char because int might match the return type of a GCC
21204 builtin and then its argument prototype would still apply. */
21205 #ifdef __cplusplus
21206 extern "C"
21207 #endif
21208 char uuid_is_null ();
21209 int
21210 main ()
21211 {
21212 return uuid_is_null ();
21213 ;
21214 return 0;
21215 }
21216 _ACEOF
21217 if ac_fn_c_try_link "$LINENO"; then :
21218 ac_cv_lib_uuid_uuid_is_null=yes
21219 else
21220 ac_cv_lib_uuid_uuid_is_null=no
21221 fi
21222 rm -f core conftest.err conftest.$ac_objext \
21223 conftest$ac_exeext conftest.$ac_ext
21224 LIBS=$ac_check_lib_save_LIBS
21225 fi
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
21227 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
21228 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes; then :
21229 cat >>confdefs.h <<_ACEOF
21230 #define HAVE_LIBUUID 1
21231 _ACEOF
21232
21233 LIBS="-luuid $LIBS"
21234
21235 else
21236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21238 as_fn_error $? "
21239 *** uuid_is_null() missing, libuuid-devel package required
21240 See \`config.log' for more details" "$LINENO" 5; }
21241 fi
21242
21243
21244 LIBUUID="-luuid"
21245
21246
21247 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
21248
21249
21250
21251
21252 # Check whether --with-blkid was given.
21253 if test "${with_blkid+set}" = set; then :
21254 withval=$with_blkid;
21255 else
21256 with_blkid=check
21257 fi
21258
21259
21260 LIBBLKID=
21261 if test "x$with_blkid" = xyes; then :
21262
21263 LIBBLKID="-lblkid"
21264
21265
21266 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
21267
21268
21269 fi
21270
21271 if test "x$with_blkid" = xcheck; then :
21272
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
21274 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
21275 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
21276 $as_echo_n "(cached) " >&6
21277 else
21278 ac_check_lib_save_LIBS=$LIBS
21279 LIBS="-lblkid $LIBS"
21280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21281 /* end confdefs.h. */
21282
21283 /* Override any GCC internal prototype to avoid an error.
21284 Use char because int might match the return type of a GCC
21285 builtin and then its argument prototype would still apply. */
21286 #ifdef __cplusplus
21287 extern "C"
21288 #endif
21289 char blkid_get_cache ();
21290 int
21291 main ()
21292 {
21293 return blkid_get_cache ();
21294 ;
21295 return 0;
21296 }
21297 _ACEOF
21298 if ac_fn_c_try_link "$LINENO"; then :
21299 ac_cv_lib_blkid_blkid_get_cache=yes
21300 else
21301 ac_cv_lib_blkid_blkid_get_cache=no
21302 fi
21303 rm -f core conftest.err conftest.$ac_objext \
21304 conftest$ac_exeext conftest.$ac_ext
21305 LIBS=$ac_check_lib_save_LIBS
21306 fi
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
21308 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
21309 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
21310
21311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
21312 $as_echo_n "checking for blkid zfs support... " >&6; }
21313
21314 ZFS_DEV=`mktemp`
21315 truncate -s 64M $ZFS_DEV
21316 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
21317 dd of=$ZFS_DEV bs=1k count=8 \
21318 seek=128 conv=notrunc &>/dev/null \
21319 >/dev/null 2>/dev/null
21320 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
21321 dd of=$ZFS_DEV bs=1k count=8 \
21322 seek=132 conv=notrunc &>/dev/null \
21323 >/dev/null 2>/dev/null
21324 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
21325 dd of=$ZFS_DEV bs=1k count=8 \
21326 seek=136 conv=notrunc &>/dev/null \
21327 >/dev/null 2>/dev/null
21328 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
21329 dd of=$ZFS_DEV bs=1k count=8 \
21330 seek=140 conv=notrunc &>/dev/null \
21331 >/dev/null 2>/dev/null
21332
21333 saved_LIBS="$LIBS"
21334 LIBS="-lblkid"
21335
21336 if test "$cross_compiling" = yes; then :
21337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21339 as_fn_error $? "cannot run test program while cross compiling
21340 See \`config.log' for more details" "$LINENO" 5; }
21341 else
21342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21343 /* end confdefs.h. */
21344
21345 #include <stdio.h>
21346 #include <stdlib.h>
21347 #include <blkid/blkid.h>
21348
21349 int
21350 main ()
21351 {
21352
21353 blkid_cache cache;
21354 char *value;
21355
21356 if (blkid_get_cache(&cache, NULL) < 0)
21357 return 1;
21358
21359 value = blkid_get_tag_value(cache, "TYPE",
21360 "$ZFS_DEV");
21361 if (!value) {
21362 blkid_put_cache(cache);
21363 return 2;
21364 }
21365
21366 if (strcmp(value, "zfs_member")) {
21367 free(value);
21368 blkid_put_cache(cache);
21369 return 0;
21370 }
21371
21372 free(value);
21373 blkid_put_cache(cache);
21374
21375 ;
21376 return 0;
21377 }
21378 _ACEOF
21379 if ac_fn_c_try_run "$LINENO"; then :
21380
21381 rm -f $ZFS_DEV
21382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21383 $as_echo "yes" >&6; }
21384 LIBBLKID="-lblkid"
21385
21386
21387 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
21388
21389
21390 else
21391
21392 rm -f $ZFS_DEV
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21394 $as_echo "no" >&6; }
21395 if test "x$with_blkid" != xcheck; then :
21396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21398 as_fn_error $? "--with-blkid given but unavailable
21399 See \`config.log' for more details" "$LINENO" 5; }
21400 fi
21401
21402 fi
21403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21404 conftest.$ac_objext conftest.beam conftest.$ac_ext
21405 fi
21406
21407
21408 LIBS="$saved_LIBS"
21409
21410 else
21411
21412 if test "x$with_blkid" != xcheck; then :
21413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21415 as_fn_error $? "--with-blkid given but unavailable
21416 See \`config.log' for more details" "$LINENO" 5; }
21417 fi
21418
21419
21420 fi
21421
21422
21423 fi
21424
21425
21426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
21427 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
21428
21429 saved_flags="$CFLAGS"
21430 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
21431
21432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21433 /* end confdefs.h. */
21434
21435 int
21436 main ()
21437 {
21438
21439 ;
21440 return 0;
21441 }
21442 _ACEOF
21443 if ac_fn_c_try_compile "$LINENO"; then :
21444
21445 FRAME_LARGER_THAN=-Wframe-larger-than=1024
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21447 $as_echo "yes" >&6; }
21448
21449 else
21450
21451 FRAME_LARGER_THAN=
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21453 $as_echo "no" >&6; }
21454
21455 fi
21456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21457
21458 CFLAGS="$saved_flags"
21459
21460
21461
21462 if test "x$runstatedir" = x; then
21463 runstatedir='${localstatedir}/run'
21464
21465 fi
21466
21467 for ac_func in mlockall
21468 do :
21469 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
21470 if test "x$ac_cv_func_mlockall" = xyes; then :
21471 cat >>confdefs.h <<_ACEOF
21472 #define HAVE_MLOCKALL 1
21473 _ACEOF
21474
21475 fi
21476 done
21477
21478 ;;
21479 all)
21480
21481
21482 # Check whether --with-linux was given.
21483 if test "${with_linux+set}" = set; then :
21484 withval=$with_linux; kernelsrc="$withval"
21485 fi
21486
21487
21488
21489 # Check whether --with-linux-obj was given.
21490 if test "${with_linux_obj+set}" = set; then :
21491 withval=$with_linux_obj; kernelbuild="$withval"
21492 fi
21493
21494
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
21496 $as_echo_n "checking kernel source directory... " >&6; }
21497 if test -z "$kernelsrc"; then :
21498
21499 if test -e "/lib/modules/$(uname -r)/source"; then :
21500
21501 headersdir="/lib/modules/$(uname -r)/source"
21502 sourcelink=$(readlink -f "$headersdir")
21503
21504 elif test -e "/lib/modules/$(uname -r)/build"; then :
21505
21506 headersdir="/lib/modules/$(uname -r)/build"
21507 sourcelink=$(readlink -f "$headersdir")
21508
21509 else
21510
21511 sourcelink=$(ls -1d /usr/src/kernels/* \
21512 /usr/src/linux-* \
21513 2>/dev/null | grep -v obj | tail -1)
21514
21515 fi
21516
21517 if test -n "$sourcelink" && test -e ${sourcelink}; then :
21518
21519 kernelsrc=`readlink -f ${sourcelink}`
21520
21521 else
21522
21523 kernelsrc="Not found"
21524
21525 fi
21526
21527 else
21528
21529 if test "$kernelsrc" = "NONE"; then :
21530
21531 kernsrcver=NONE
21532
21533 fi
21534
21535 fi
21536
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
21538 $as_echo "$kernelsrc" >&6; }
21539 if test ! -d "$kernelsrc"; then :
21540
21541 as_fn_error $? "
21542 *** Please make sure the kernel devel package for your distribution
21543 *** is installed and then try again. If that fails, you can specify the
21544 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
21545
21546 fi
21547
21548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
21549 $as_echo_n "checking kernel build directory... " >&6; }
21550 if test -z "$kernelbuild"; then :
21551
21552 if test -e "/lib/modules/$(uname -r)/build"; then :
21553
21554 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
21555
21556 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
21557
21558 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
21559
21560 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
21561
21562 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
21563
21564 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
21565
21566 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
21567
21568 else
21569
21570 kernelbuild=${kernelsrc}
21571
21572 fi
21573
21574 fi
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
21576 $as_echo "$kernelbuild" >&6; }
21577
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
21579 $as_echo_n "checking kernel source version... " >&6; }
21580 utsrelease1=$kernelbuild/include/linux/version.h
21581 utsrelease2=$kernelbuild/include/linux/utsrelease.h
21582 utsrelease3=$kernelbuild/include/generated/utsrelease.h
21583 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
21584
21585 utsrelease=linux/version.h
21586
21587 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
21588
21589 utsrelease=linux/utsrelease.h
21590
21591 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
21592
21593 utsrelease=generated/utsrelease.h
21594
21595 fi
21596
21597 if test "$utsrelease"; then :
21598
21599 kernsrcver=`(echo "#include <$utsrelease>";
21600 echo "kernsrcver=UTS_RELEASE") |
21601 cpp -I $kernelbuild/include |
21602 grep "^kernsrcver=" | cut -d \" -f 2`
21603
21604 if test -z "$kernsrcver"; then :
21605
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
21607 $as_echo "Not found" >&6; }
21608 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
21609
21610 fi
21611
21612 else
21613
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
21615 $as_echo "Not found" >&6; }
21616 if test "x$enable_linux_builtin" != xyes; then
21617 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
21618 else
21619 as_fn_error $? "
21620 *** Cannot find UTS_RELEASE definition.
21621 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
21622 fi
21623
21624 fi
21625
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
21627 $as_echo "$kernsrcver" >&6; }
21628
21629 LINUX=${kernelsrc}
21630 LINUX_OBJ=${kernelbuild}
21631 LINUX_VERSION=${kernsrcver}
21632
21633
21634
21635
21636
21637
21638 modpost=$LINUX/scripts/Makefile.modpost
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
21640 $as_echo_n "checking kernel file name for module symbols... " >&6; }
21641 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
21642
21643 if grep -q Modules.symvers $modpost; then :
21644
21645 LINUX_SYMBOLS=Modules.symvers
21646
21647 else
21648
21649 LINUX_SYMBOLS=Module.symvers
21650
21651 fi
21652
21653 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
21654
21655 as_fn_error $? "
21656 *** Please make sure the kernel devel package for your distribution
21657 *** is installed. If you are building with a custom kernel, make sure the
21658 *** kernel is configured, built, and the '--with-linux=PATH' configure
21659 *** option refers to the location of the kernel source." "$LINENO" 5
21660
21661 fi
21662
21663 else
21664
21665 LINUX_SYMBOLS=NONE
21666
21667 fi
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
21669 $as_echo "$LINUX_SYMBOLS" >&6; }
21670
21671
21672
21673
21674
21675 # Check whether --with-spl was given.
21676 if test "${with_spl+set}" = set; then :
21677 withval=$with_spl; splsrc="$withval"
21678 fi
21679
21680
21681
21682 # Check whether --with-spl-obj was given.
21683 if test "${with_spl_obj+set}" = set; then :
21684 withval=$with_spl_obj; splbuild="$withval"
21685 fi
21686
21687
21688
21689 # Check whether --with-spl-timeout was given.
21690 if test "${with_spl_timeout+set}" = set; then :
21691 withval=$with_spl_timeout; timeout="$withval"
21692 else
21693 timeout=0
21694 fi
21695
21696
21697 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
21698 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
21699 splsrc2="/usr/local/src/spl-${VERSION}"
21700 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
21701 splsrc4="/usr/src/spl-${VERSION}"
21702 splsrc5="../spl/"
21703 splsrc6="$LINUX"
21704
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
21706 $as_echo_n "checking spl source directory... " >&6; }
21707 if test -z "${splsrc}"; then :
21708
21709 if test -e "${splsrc0}/spl.release.in"; then :
21710
21711 splsrc=${splsrc0}
21712
21713 elif test -e "${splsrc1}/spl.release.in"; then :
21714
21715 splsrc=${splsrc1}
21716
21717 elif test -e "${splsrc2}/spl.release.in"; then :
21718
21719 splsrc=${splsrc2}
21720
21721 elif test -e "${splsrc3}/spl.release.in"; then :
21722
21723 splsrc=$(readlink -f "${splsrc3}")
21724
21725 elif test -e "${splsrc4}/spl.release.in" ; then :
21726
21727 splsrc=${splsrc4}
21728
21729 elif test -e "${splsrc5}/spl.release.in"; then :
21730
21731 splsrc=$(readlink -f "${splsrc5}")
21732
21733 elif test -e "${splsrc6}/spl.release.in" ; then :
21734
21735 splsrc=${splsrc6}
21736
21737 else
21738
21739 splsrc="Not found"
21740
21741 fi
21742
21743 else
21744
21745 if test "$splsrc" = "NONE"; then :
21746
21747 splbuild=NONE
21748 splsrcver=NONE
21749
21750 fi
21751
21752 fi
21753
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
21755 $as_echo "$splsrc" >&6; }
21756 if test ! -e "$splsrc/spl.release.in"; then :
21757
21758 as_fn_error $? "
21759 *** Please make sure the kmod spl devel package for your distribution
21760 *** is installed then try again. If that fails you can specify the
21761 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
21762
21763 fi
21764
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
21766 $as_echo_n "checking spl build directory... " >&6; }
21767 while true; do
21768 if test -z "$splbuild"; then :
21769
21770 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
21771
21772 splbuild="${splsrc}/${LINUX_VERSION}"
21773
21774 elif test -e "${splsrc}/spl_config.h" ; then :
21775
21776 splbuild="${splsrc}"
21777
21778 else
21779
21780 splbuild="Not found"
21781
21782 fi
21783
21784 fi
21785 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
21786
21787 break;
21788
21789 else
21790
21791 sleep 1
21792 timeout=$((timeout-1))
21793
21794 fi
21795 done
21796
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
21798 $as_echo "$splbuild" >&6; }
21799 if ! test -e "$splbuild/spl_config.h"; then :
21800
21801 as_fn_error $? "
21802 *** Please make sure the kmod spl devel <kernel> package for your
21803 *** distribution is installed then try again. If that fails you
21804 *** can specify the location of the spl objects with the
21805 *** '--with-spl-obj=PATH' option." "$LINENO" 5
21806
21807 fi
21808
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
21810 $as_echo_n "checking spl source version... " >&6; }
21811 if test -r $splbuild/spl_config.h &&
21812 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
21813
21814
21815 splsrcver=`(echo "#include <spl_config.h>";
21816 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
21817 cpp -I $splbuild |
21818 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
21819
21820 fi
21821
21822 if test -z "$splsrcver"; then :
21823
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
21825 $as_echo "Not found" >&6; }
21826 as_fn_error $? "
21827 *** Cannot determine the version of the spl source.
21828 *** Please prepare the spl source before running this script" "$LINENO" 5
21829
21830 fi
21831
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
21833 $as_echo "$splsrcver" >&6; }
21834
21835 SPL=${splsrc}
21836 SPL_OBJ=${splbuild}
21837 SPL_VERSION=${splsrcver}
21838
21839
21840
21841
21842
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
21844 $as_echo_n "checking spl file name for module symbols... " >&6; }
21845 SPL_SYMBOLS=NONE
21846
21847 while true; do
21848 if test -r $SPL_OBJ/Module.symvers; then :
21849
21850 SPL_SYMBOLS=Module.symvers
21851
21852 elif test -r $SPL_OBJ/Modules.symvers; then :
21853
21854 SPL_SYMBOLS=Modules.symvers
21855
21856 elif test -r $SPL_OBJ/module/Module.symvers; then :
21857
21858 SPL_SYMBOLS=Module.symvers
21859
21860 elif test -r $SPL_OBJ/module/Modules.symvers; then :
21861
21862 SPL_SYMBOLS=Modules.symvers
21863
21864 fi
21865
21866 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
21867
21868 break;
21869
21870 else
21871
21872 sleep 1
21873 timeout=$((timeout-1))
21874
21875 fi
21876 done
21877
21878 if test "$SPL_SYMBOLS" = NONE; then :
21879
21880 SPL_SYMBOLS=$LINUX_SYMBOLS
21881
21882 fi
21883
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
21885 $as_echo "$SPL_SYMBOLS" >&6; }
21886
21887
21888
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
21890 $as_echo_n "checking whether modules can be built... " >&6; }
21891
21892
21893 cat confdefs.h - <<_ACEOF >conftest.c
21894
21895
21896 int
21897 main (void)
21898 {
21899
21900 ;
21901 return 0;
21902 }
21903
21904 _ACEOF
21905
21906
21907
21908 cat - <<_ACEOF >conftest.h
21909
21910 _ACEOF
21911
21912
21913 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21914 echo "obj-m := conftest.o" >build/Makefile
21915 modpost_flag=''
21916 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21917 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21919 (eval $ac_try) 2>&5
21920 ac_status=$?
21921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21922 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21924 (eval $ac_try) 2>&5
21925 ac_status=$?
21926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21927 test $ac_status = 0; }; }; then :
21928
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21930 $as_echo "yes" >&6; }
21931
21932 else
21933 $as_echo "$as_me: failed program was:" >&5
21934 sed 's/^/| /' conftest.$ac_ext >&5
21935
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21937 $as_echo "no" >&6; }
21938 if test "x$enable_linux_builtin" != xyes; then
21939 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
21940 else
21941 as_fn_error $? "
21942 *** Unable to build an empty module.
21943 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
21944 fi
21945
21946
21947
21948 fi
21949 rm -Rf build
21950
21951
21952
21953
21954 if test "$cross_compiling" = yes; then :
21955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21957 as_fn_error $? "cannot run test program while cross compiling
21958 See \`config.log' for more details" "$LINENO" 5; }
21959 else
21960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21961 /* end confdefs.h. */
21962
21963
21964 #include "$LINUX/include/linux/license.h"
21965
21966 int
21967 main ()
21968 {
21969
21970 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
21971
21972 ;
21973 return 0;
21974 }
21975
21976 _ACEOF
21977 if ac_fn_c_try_run "$LINENO"; then :
21978
21979
21980 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
21981
21982
21983 fi
21984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21985 conftest.$ac_objext conftest.beam conftest.$ac_ext
21986 fi
21987
21988
21989
21990
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
21992 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
21993
21994
21995 cat confdefs.h - <<_ACEOF >conftest.c
21996
21997
21998 #include <linux/module.h>
21999
22000 int
22001 main (void)
22002 {
22003
22004 #ifndef CONFIG_DEBUG_LOCK_ALLOC
22005 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
22006 #endif
22007
22008 ;
22009 return 0;
22010 }
22011
22012 _ACEOF
22013
22014
22015
22016 cat - <<_ACEOF >conftest.h
22017
22018 _ACEOF
22019
22020
22021 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22022 echo "obj-m := conftest.o" >build/Makefile
22023 modpost_flag=''
22024 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22025 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22027 (eval $ac_try) 2>&5
22028 ac_status=$?
22029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22030 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22032 (eval $ac_try) 2>&5
22033 ac_status=$?
22034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22035 test $ac_status = 0; }; }; then :
22036
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22038 $as_echo "yes" >&6; }
22039
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
22041 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
22042 tmp_flags="$EXTRA_KCFLAGS"
22043
22044
22045 cat confdefs.h - <<_ACEOF >conftest.c
22046
22047
22048 #include <linux/module.h>
22049 #include <linux/mutex.h>
22050
22051 MODULE_LICENSE("$ZFS_META_LICENSE");
22052
22053 int
22054 main (void)
22055 {
22056
22057 struct mutex lock;
22058
22059 mutex_init(&lock);
22060 mutex_lock(&lock);
22061 mutex_unlock(&lock);
22062
22063 ;
22064 return 0;
22065 }
22066
22067 _ACEOF
22068
22069
22070
22071 cat - <<_ACEOF >conftest.h
22072
22073 _ACEOF
22074
22075
22076 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22077 echo "obj-m := conftest.o" >build/Makefile
22078 modpost_flag=''
22079 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22080 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22082 (eval $ac_try) 2>&5
22083 ac_status=$?
22084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22085 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22087 (eval $ac_try) 2>&5
22088 ac_status=$?
22089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22090 test $ac_status = 0; }; }; then :
22091
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22093 $as_echo "no" >&6; }
22094
22095 else
22096 $as_echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22098
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22100 $as_echo "yes" >&6; }
22101 as_fn_error $? "
22102 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
22103 *** with the CDDL license and will prevent the module linking stage
22104 *** from succeeding. You must rebuild your kernel without this
22105 *** option enabled." "$LINENO" 5
22106
22107
22108
22109 fi
22110 rm -Rf build
22111
22112
22113 EXTRA_KCFLAGS="$tmp_flags"
22114
22115
22116 else
22117 $as_echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22119
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22121 $as_echo "no" >&6; }
22122
22123
22124
22125
22126 fi
22127 rm -Rf build
22128
22129
22130
22131
22132
22133
22134 tmp_flags="$EXTRA_KCFLAGS"
22135 EXTRA_KCFLAGS="-I\$(src)"
22136
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
22138 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
22139
22140
22141 cat confdefs.h - <<_ACEOF >conftest.c
22142
22143
22144 #include <linux/module.h>
22145 MODULE_LICENSE(ZFS_META_LICENSE);
22146
22147 #define CREATE_TRACE_POINTS
22148 #include "conftest.h"
22149
22150 int
22151 main (void)
22152 {
22153
22154 trace_zfs_autoconf_event_one(1UL);
22155 trace_zfs_autoconf_event_two(2UL);
22156
22157 ;
22158 return 0;
22159 }
22160
22161 _ACEOF
22162
22163
22164
22165 cat - <<_ACEOF >conftest.h
22166
22167 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
22168 #define _CONFTEST_H
22169
22170 #undef TRACE_SYSTEM
22171 #define TRACE_SYSTEM zfs
22172 #include <linux/tracepoint.h>
22173
22174 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
22175 TP_PROTO(unsigned long i),
22176 TP_ARGS(i),
22177 TP_STRUCT__entry(
22178 __field(unsigned long, i)
22179 ),
22180 TP_fast_assign(
22181 __entry->i = i;
22182 ),
22183 TP_printk("i = %lu", __entry->i)
22184 );
22185
22186 #define DEFINE_AUTOCONF_EVENT(name) \
22187 DEFINE_EVENT(zfs_autoconf_event_class, name, \
22188 TP_PROTO(unsigned long i), \
22189 TP_ARGS(i))
22190 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
22191 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
22192
22193 #endif /* _CONFTEST_H */
22194
22195 #undef TRACE_INCLUDE_PATH
22196 #define TRACE_INCLUDE_PATH .
22197 #define TRACE_INCLUDE_FILE conftest
22198 #include <trace/define_trace.h>
22199
22200 _ACEOF
22201
22202
22203 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22204 echo "obj-m := conftest.o" >build/Makefile
22205 modpost_flag=''
22206 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22207 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22209 (eval $ac_try) 2>&5
22210 ac_status=$?
22211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22212 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22214 (eval $ac_try) 2>&5
22215 ac_status=$?
22216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22217 test $ac_status = 0; }; }; then :
22218
22219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22220 $as_echo "yes" >&6; }
22221
22222 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
22223
22224
22225 else
22226 $as_echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22228
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22230 $as_echo "no" >&6; }
22231
22232
22233
22234 fi
22235 rm -Rf build
22236
22237
22238 EXTRA_KCFLAGS="$tmp_flags"
22239
22240
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
22242 $as_echo_n "checking block device operation prototypes... " >&6; }
22243 tmp_flags="$EXTRA_KCFLAGS"
22244 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
22245
22246
22247 cat confdefs.h - <<_ACEOF >conftest.c
22248
22249
22250 #include <linux/blkdev.h>
22251
22252 int blk_open(struct block_device *bdev, fmode_t mode)
22253 { return 0; }
22254 int blk_ioctl(struct block_device *bdev, fmode_t mode,
22255 unsigned x, unsigned long y) { return 0; }
22256 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
22257 unsigned x, unsigned long y) { return 0; }
22258
22259 static const struct block_device_operations
22260 bops __attribute__ ((unused)) = {
22261 .open = blk_open,
22262 .release = NULL,
22263 .ioctl = blk_ioctl,
22264 .compat_ioctl = blk_compat_ioctl,
22265 };
22266
22267 int
22268 main (void)
22269 {
22270
22271
22272 ;
22273 return 0;
22274 }
22275
22276 _ACEOF
22277
22278
22279
22280 cat - <<_ACEOF >conftest.h
22281
22282 _ACEOF
22283
22284
22285 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22286 echo "obj-m := conftest.o" >build/Makefile
22287 modpost_flag=''
22288 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22289 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22291 (eval $ac_try) 2>&5
22292 ac_status=$?
22293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22294 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22296 (eval $ac_try) 2>&5
22297 ac_status=$?
22298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22299 test $ac_status = 0; }; }; then :
22300
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
22302 $as_echo "struct block_device" >&6; }
22303
22304 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
22305
22306
22307 else
22308 $as_echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22310
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
22312 $as_echo "struct inode" >&6; }
22313
22314
22315
22316 fi
22317 rm -Rf build
22318
22319
22320 EXTRA_KCFLAGS="$tmp_flags"
22321
22322
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
22324 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
22325 tmp_flags="$EXTRA_KCFLAGS"
22326 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
22327
22328
22329 cat confdefs.h - <<_ACEOF >conftest.c
22330
22331
22332 #include <linux/blkdev.h>
22333
22334 void blk_release(struct gendisk *g, fmode_t mode) { return; }
22335
22336 static const struct block_device_operations
22337 bops __attribute__ ((unused)) = {
22338 .open = NULL,
22339 .release = blk_release,
22340 .ioctl = NULL,
22341 .compat_ioctl = NULL,
22342 };
22343
22344 int
22345 main (void)
22346 {
22347
22348
22349 ;
22350 return 0;
22351 }
22352
22353 _ACEOF
22354
22355
22356
22357 cat - <<_ACEOF >conftest.h
22358
22359 _ACEOF
22360
22361
22362 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22363 echo "obj-m := conftest.o" >build/Makefile
22364 modpost_flag=''
22365 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22366 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22373 (eval $ac_try) 2>&5
22374 ac_status=$?
22375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22376 test $ac_status = 0; }; }; then :
22377
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
22379 $as_echo "void" >&6; }
22380
22381 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
22382
22383
22384 else
22385 $as_echo "$as_me: failed program was:" >&5
22386 sed 's/^/| /' conftest.$ac_ext >&5
22387
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
22389 $as_echo "int" >&6; }
22390
22391
22392
22393 fi
22394 rm -Rf build
22395
22396
22397 EXTRA_KCFLAGS="$tmp_flags"
22398
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
22400 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
22401
22402
22403 cat confdefs.h - <<_ACEOF >conftest.c
22404
22405
22406 #include <linux/types.h>
22407
22408 int
22409 main (void)
22410 {
22411
22412 fmode_t *ptr __attribute__ ((unused));
22413
22414 ;
22415 return 0;
22416 }
22417
22418 _ACEOF
22419
22420
22421
22422 cat - <<_ACEOF >conftest.h
22423
22424 _ACEOF
22425
22426
22427 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22428 echo "obj-m := conftest.o" >build/Makefile
22429 modpost_flag=''
22430 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22431 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22433 (eval $ac_try) 2>&5
22434 ac_status=$?
22435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22436 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22438 (eval $ac_try) 2>&5
22439 ac_status=$?
22440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22441 test $ac_status = 0; }; }; then :
22442
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22444 $as_echo "yes" >&6; }
22445
22446 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
22447
22448
22449 else
22450 $as_echo "$as_me: failed program was:" >&5
22451 sed 's/^/| /' conftest.$ac_ext >&5
22452
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22454 $as_echo "no" >&6; }
22455
22456
22457
22458 fi
22459 rm -Rf build
22460
22461
22462
22463
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
22465 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
22466
22467
22468 cat confdefs.h - <<_ACEOF >conftest.c
22469
22470
22471 #include <linux/kobject.h>
22472
22473 int
22474 main (void)
22475 {
22476
22477 int val __attribute__ ((unused));
22478 val = KOBJ_NAME_LEN;
22479
22480 ;
22481 return 0;
22482 }
22483
22484 _ACEOF
22485
22486
22487
22488 cat - <<_ACEOF >conftest.h
22489
22490 _ACEOF
22491
22492
22493 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22494 echo "obj-m := conftest.o" >build/Makefile
22495 modpost_flag=''
22496 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22497 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22499 (eval $ac_try) 2>&5
22500 ac_status=$?
22501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22502 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22504 (eval $ac_try) 2>&5
22505 ac_status=$?
22506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22507 test $ac_status = 0; }; }; then :
22508
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22510 $as_echo "yes" >&6; }
22511
22512 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
22513
22514
22515 else
22516 $as_echo "$as_me: failed program was:" >&5
22517 sed 's/^/| /' conftest.$ac_ext >&5
22518
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22520 $as_echo "no" >&6; }
22521
22522
22523
22524 fi
22525 rm -Rf build
22526
22527
22528
22529
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
22531 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
22532
22533
22534 cat confdefs.h - <<_ACEOF >conftest.c
22535
22536
22537 #include <linux/fs.h>
22538
22539 int
22540 main (void)
22541 {
22542
22543 struct block_device *bdev = NULL;
22544 (void) blkdev_get(bdev, 0, NULL);
22545
22546 ;
22547 return 0;
22548 }
22549
22550 _ACEOF
22551
22552
22553
22554 cat - <<_ACEOF >conftest.h
22555
22556 _ACEOF
22557
22558
22559 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22560 echo "obj-m := conftest.o" >build/Makefile
22561 modpost_flag=''
22562 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22563 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22565 (eval $ac_try) 2>&5
22566 ac_status=$?
22567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22568 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22570 (eval $ac_try) 2>&5
22571 ac_status=$?
22572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22573 test $ac_status = 0; }; }; then :
22574
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22576 $as_echo "yes" >&6; }
22577
22578 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
22579
22580
22581 else
22582 $as_echo "$as_me: failed program was:" >&5
22583 sed 's/^/| /' conftest.$ac_ext >&5
22584
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22586 $as_echo "no" >&6; }
22587
22588
22589
22590 fi
22591 rm -Rf build
22592
22593
22594
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
22596 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
22597
22598
22599
22600 cat confdefs.h - <<_ACEOF >conftest.c
22601
22602
22603 #include <linux/fs.h>
22604
22605 int
22606 main (void)
22607 {
22608
22609 blkdev_get_by_path(NULL, 0, NULL);
22610
22611 ;
22612 return 0;
22613 }
22614
22615 _ACEOF
22616
22617
22618
22619 cat - <<_ACEOF >conftest.h
22620
22621 _ACEOF
22622
22623
22624 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22625 echo "obj-m := conftest.o" >build/Makefile
22626 modpost_flag=''
22627 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22628 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22630 (eval $ac_try) 2>&5
22631 ac_status=$?
22632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22633 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22635 (eval $ac_try) 2>&5
22636 ac_status=$?
22637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22638 test $ac_status = 0; }; }; then :
22639 rc=0
22640 else
22641 $as_echo "$as_me: failed program was:" >&5
22642 sed 's/^/| /' conftest.$ac_ext >&5
22643 rc=1
22644
22645
22646 fi
22647 rm -Rf build
22648
22649
22650 if test $rc -ne 0; then :
22651
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22653 $as_echo "no" >&6; }
22654
22655 else
22656 if test "x$enable_linux_builtin" != xyes; then
22657
22658 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
22659 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22660 rc=$?
22661 if test $rc -ne 0; then
22662 export=0
22663 for file in fs/block_dev.c; do
22664 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
22665 "$LINUX/$file" 2>/dev/null
22666 rc=$?
22667 if test $rc -eq 0; then
22668 export=1
22669 break;
22670 fi
22671 done
22672 if test $export -eq 0; then :
22673 rc=1
22674 else :
22675 rc=0
22676 fi
22677 else :
22678 rc=0
22679 fi
22680
22681 fi
22682 if test $rc -ne 0; then :
22683
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22685 $as_echo "no" >&6; }
22686
22687 else :
22688
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22690 $as_echo "yes" >&6; }
22691
22692 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
22693
22694
22695 fi
22696 fi
22697
22698
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
22700 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
22701
22702
22703
22704 cat confdefs.h - <<_ACEOF >conftest.c
22705
22706
22707 #include <linux/fs.h>
22708
22709 int
22710 main (void)
22711 {
22712
22713 open_bdev_exclusive(NULL, 0, NULL);
22714
22715 ;
22716 return 0;
22717 }
22718
22719 _ACEOF
22720
22721
22722
22723 cat - <<_ACEOF >conftest.h
22724
22725 _ACEOF
22726
22727
22728 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22729 echo "obj-m := conftest.o" >build/Makefile
22730 modpost_flag=''
22731 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22732 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22734 (eval $ac_try) 2>&5
22735 ac_status=$?
22736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22737 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22739 (eval $ac_try) 2>&5
22740 ac_status=$?
22741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22742 test $ac_status = 0; }; }; then :
22743 rc=0
22744 else
22745 $as_echo "$as_me: failed program was:" >&5
22746 sed 's/^/| /' conftest.$ac_ext >&5
22747 rc=1
22748
22749
22750 fi
22751 rm -Rf build
22752
22753
22754 if test $rc -ne 0; then :
22755
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22757 $as_echo "no" >&6; }
22758
22759 else
22760 if test "x$enable_linux_builtin" != xyes; then
22761
22762 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
22763 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22764 rc=$?
22765 if test $rc -ne 0; then
22766 export=0
22767 for file in fs/block_dev.c; do
22768 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
22769 "$LINUX/$file" 2>/dev/null
22770 rc=$?
22771 if test $rc -eq 0; then
22772 export=1
22773 break;
22774 fi
22775 done
22776 if test $export -eq 0; then :
22777 rc=1
22778 else :
22779 rc=0
22780 fi
22781 else :
22782 rc=0
22783 fi
22784
22785 fi
22786 if test $rc -ne 0; then :
22787
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22789 $as_echo "no" >&6; }
22790
22791 else :
22792
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22794 $as_echo "yes" >&6; }
22795
22796 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
22797
22798
22799 fi
22800 fi
22801
22802
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
22804 $as_echo_n "checking whether lookup_bdev() is available... " >&6; }
22805
22806
22807
22808 cat confdefs.h - <<_ACEOF >conftest.c
22809
22810
22811 #include <linux/fs.h>
22812
22813 int
22814 main (void)
22815 {
22816
22817 lookup_bdev(NULL);
22818
22819 ;
22820 return 0;
22821 }
22822
22823 _ACEOF
22824
22825
22826
22827 cat - <<_ACEOF >conftest.h
22828
22829 _ACEOF
22830
22831
22832 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22833 echo "obj-m := conftest.o" >build/Makefile
22834 modpost_flag=''
22835 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22836 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22838 (eval $ac_try) 2>&5
22839 ac_status=$?
22840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22841 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22843 (eval $ac_try) 2>&5
22844 ac_status=$?
22845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22846 test $ac_status = 0; }; }; then :
22847 rc=0
22848 else
22849 $as_echo "$as_me: failed program was:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22851 rc=1
22852
22853
22854 fi
22855 rm -Rf build
22856
22857
22858 if test $rc -ne 0; then :
22859
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22861 $as_echo "no" >&6; }
22862
22863 else
22864 if test "x$enable_linux_builtin" != xyes; then
22865
22866 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
22867 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22868 rc=$?
22869 if test $rc -ne 0; then
22870 export=0
22871 for file in fs/block_dev.c; do
22872 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
22873 "$LINUX/$file" 2>/dev/null
22874 rc=$?
22875 if test $rc -eq 0; then
22876 export=1
22877 break;
22878 fi
22879 done
22880 if test $export -eq 0; then :
22881 rc=1
22882 else :
22883 rc=0
22884 fi
22885 else :
22886 rc=0
22887 fi
22888
22889 fi
22890 if test $rc -ne 0; then :
22891
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22893 $as_echo "no" >&6; }
22894
22895 else :
22896
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22898 $as_echo "yes" >&6; }
22899
22900 $as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
22901
22902
22903 fi
22904 fi
22905
22906
22907
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
22909 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
22910
22911
22912 cat confdefs.h - <<_ACEOF >conftest.c
22913
22914
22915 #include <linux/buffer_head.h>
22916
22917 int
22918 main (void)
22919 {
22920
22921 struct block_device *bdev = NULL;
22922 invalidate_bdev(bdev);
22923
22924 ;
22925 return 0;
22926 }
22927
22928 _ACEOF
22929
22930
22931
22932 cat - <<_ACEOF >conftest.h
22933
22934 _ACEOF
22935
22936
22937 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22938 echo "obj-m := conftest.o" >build/Makefile
22939 modpost_flag=''
22940 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22941 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22943 (eval $ac_try) 2>&5
22944 ac_status=$?
22945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22946 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22948 (eval $ac_try) 2>&5
22949 ac_status=$?
22950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22951 test $ac_status = 0; }; }; then :
22952
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22954 $as_echo "yes" >&6; }
22955
22956 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
22957
22958
22959 else
22960 $as_echo "$as_me: failed program was:" >&5
22961 sed 's/^/| /' conftest.$ac_ext >&5
22962
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22964 $as_echo "no" >&6; }
22965
22966
22967
22968 fi
22969 rm -Rf build
22970
22971
22972
22973
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
22975 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
22976 tmp_flags="$EXTRA_KCFLAGS"
22977 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
22978
22979
22980 cat confdefs.h - <<_ACEOF >conftest.c
22981
22982
22983 #include <linux/blkdev.h>
22984
22985 int
22986 main (void)
22987 {
22988
22989 struct block_device *bdev = NULL;
22990 bdev_logical_block_size(bdev);
22991
22992 ;
22993 return 0;
22994 }
22995
22996 _ACEOF
22997
22998
22999
23000 cat - <<_ACEOF >conftest.h
23001
23002 _ACEOF
23003
23004
23005 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23006 echo "obj-m := conftest.o" >build/Makefile
23007 modpost_flag=''
23008 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23009 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23011 (eval $ac_try) 2>&5
23012 ac_status=$?
23013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23014 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23016 (eval $ac_try) 2>&5
23017 ac_status=$?
23018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23019 test $ac_status = 0; }; }; then :
23020
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23022 $as_echo "yes" >&6; }
23023
23024 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
23025
23026
23027 else
23028 $as_echo "$as_me: failed program was:" >&5
23029 sed 's/^/| /' conftest.$ac_ext >&5
23030
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23032 $as_echo "no" >&6; }
23033
23034
23035
23036 fi
23037 rm -Rf build
23038
23039
23040 EXTRA_KCFLAGS="$tmp_flags"
23041
23042
23043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
23044 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
23045 tmp_flags="$EXTRA_KCFLAGS"
23046 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
23047
23048
23049 cat confdefs.h - <<_ACEOF >conftest.c
23050
23051
23052 #include <linux/blkdev.h>
23053
23054 int
23055 main (void)
23056 {
23057
23058 struct block_device *bdev = NULL;
23059 bdev_physical_block_size(bdev);
23060
23061 ;
23062 return 0;
23063 }
23064
23065 _ACEOF
23066
23067
23068
23069 cat - <<_ACEOF >conftest.h
23070
23071 _ACEOF
23072
23073
23074 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23075 echo "obj-m := conftest.o" >build/Makefile
23076 modpost_flag=''
23077 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23078 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23085 (eval $ac_try) 2>&5
23086 ac_status=$?
23087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23088 test $ac_status = 0; }; }; then :
23089
23090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23091 $as_echo "yes" >&6; }
23092
23093 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
23094
23095
23096 else
23097 $as_echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23099
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23101 $as_echo "no" >&6; }
23102
23103
23104
23105 fi
23106 rm -Rf build
23107
23108
23109 EXTRA_KCFLAGS="$tmp_flags"
23110
23111
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
23113 $as_echo_n "checking whether bio has bi_iter... " >&6; }
23114
23115
23116 cat confdefs.h - <<_ACEOF >conftest.c
23117
23118
23119 #include <linux/bio.h>
23120
23121 int
23122 main (void)
23123 {
23124
23125 struct bio bio;
23126 bio.bi_iter.bi_sector = 0;
23127
23128 ;
23129 return 0;
23130 }
23131
23132 _ACEOF
23133
23134
23135
23136 cat - <<_ACEOF >conftest.h
23137
23138 _ACEOF
23139
23140
23141 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23142 echo "obj-m := conftest.o" >build/Makefile
23143 modpost_flag=''
23144 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23145 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23147 (eval $ac_try) 2>&5
23148 ac_status=$?
23149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23150 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23152 (eval $ac_try) 2>&5
23153 ac_status=$?
23154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23155 test $ac_status = 0; }; }; then :
23156
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23158 $as_echo "yes" >&6; }
23159
23160 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
23161
23162
23163 else
23164 $as_echo "$as_me: failed program was:" >&5
23165 sed 's/^/| /' conftest.$ac_ext >&5
23166
23167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23168 $as_echo "no" >&6; }
23169
23170
23171
23172 fi
23173 rm -Rf build
23174
23175
23176
23177
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST is defined" >&5
23179 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
23180
23181
23182 cat confdefs.h - <<_ACEOF >conftest.c
23183
23184
23185 #include <linux/bio.h>
23186
23187 int
23188 main (void)
23189 {
23190
23191 int flags __attribute__ ((unused));
23192 flags = (1 << BIO_RW_FAILFAST);
23193
23194 ;
23195 return 0;
23196 }
23197
23198 _ACEOF
23199
23200
23201
23202 cat - <<_ACEOF >conftest.h
23203
23204 _ACEOF
23205
23206
23207 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23208 echo "obj-m := conftest.o" >build/Makefile
23209 modpost_flag=''
23210 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23211 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23213 (eval $ac_try) 2>&5
23214 ac_status=$?
23215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23216 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23218 (eval $ac_try) 2>&5
23219 ac_status=$?
23220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23221 test $ac_status = 0; }; }; then :
23222
23223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23224 $as_echo "yes" >&6; }
23225
23226 $as_echo "#define HAVE_BIO_RW_FAILFAST 1" >>confdefs.h
23227
23228
23229 else
23230 $as_echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23232
23233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23234 $as_echo "no" >&6; }
23235
23236
23237
23238 fi
23239 rm -Rf build
23240
23241
23242
23243
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
23245 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
23246
23247
23248 cat confdefs.h - <<_ACEOF >conftest.c
23249
23250
23251 #include <linux/bio.h>
23252
23253 int
23254 main (void)
23255 {
23256
23257 int flags __attribute__ ((unused));
23258 flags = ((1 << BIO_RW_FAILFAST_DEV) |
23259 (1 << BIO_RW_FAILFAST_TRANSPORT) |
23260 (1 << BIO_RW_FAILFAST_DRIVER));
23261
23262 ;
23263 return 0;
23264 }
23265
23266 _ACEOF
23267
23268
23269
23270 cat - <<_ACEOF >conftest.h
23271
23272 _ACEOF
23273
23274
23275 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23276 echo "obj-m := conftest.o" >build/Makefile
23277 modpost_flag=''
23278 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23279 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23281 (eval $ac_try) 2>&5
23282 ac_status=$?
23283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23284 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23286 (eval $ac_try) 2>&5
23287 ac_status=$?
23288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23289 test $ac_status = 0; }; }; then :
23290
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23292 $as_echo "yes" >&6; }
23293
23294 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
23295
23296
23297 else
23298 $as_echo "$as_me: failed program was:" >&5
23299 sed 's/^/| /' conftest.$ac_ext >&5
23300
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23302 $as_echo "no" >&6; }
23303
23304
23305
23306 fi
23307 rm -Rf build
23308
23309
23310
23311
23312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
23313 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
23314
23315
23316 cat confdefs.h - <<_ACEOF >conftest.c
23317
23318
23319 #include <linux/bio.h>
23320
23321 int
23322 main (void)
23323 {
23324
23325 int flags __attribute__ ((unused));
23326 flags = REQ_FAILFAST_MASK;
23327
23328 ;
23329 return 0;
23330 }
23331
23332 _ACEOF
23333
23334
23335
23336 cat - <<_ACEOF >conftest.h
23337
23338 _ACEOF
23339
23340
23341 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23342 echo "obj-m := conftest.o" >build/Makefile
23343 modpost_flag=''
23344 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23345 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23347 (eval $ac_try) 2>&5
23348 ac_status=$?
23349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23350 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23352 (eval $ac_try) 2>&5
23353 ac_status=$?
23354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23355 test $ac_status = 0; }; }; then :
23356
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23358 $as_echo "yes" >&6; }
23359
23360 $as_echo "#define HAVE_BIO_REQ_FAILFAST_MASK 1" >>confdefs.h
23361
23362
23363 else
23364 $as_echo "$as_me: failed program was:" >&5
23365 sed 's/^/| /' conftest.$ac_ext >&5
23366
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23368 $as_echo "no" >&6; }
23369
23370
23371
23372 fi
23373 rm -Rf build
23374
23375
23376
23377
23378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 2 args" >&5
23379 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
23380
23381
23382 cat confdefs.h - <<_ACEOF >conftest.c
23383
23384
23385 #include <linux/bio.h>
23386
23387 void wanted_end_io(struct bio *bio, int x) { return; }
23388
23389 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
23390
23391 int
23392 main (void)
23393 {
23394
23395
23396 ;
23397 return 0;
23398 }
23399
23400 _ACEOF
23401
23402
23403
23404 cat - <<_ACEOF >conftest.h
23405
23406 _ACEOF
23407
23408
23409 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23410 echo "obj-m := conftest.o" >build/Makefile
23411 modpost_flag=''
23412 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23413 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23415 (eval $ac_try) 2>&5
23416 ac_status=$?
23417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23418 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23420 (eval $ac_try) 2>&5
23421 ac_status=$?
23422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23423 test $ac_status = 0; }; }; then :
23424
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23426 $as_echo "yes" >&6; }
23427
23428 $as_echo "#define HAVE_2ARGS_BIO_END_IO_T 1" >>confdefs.h
23429
23430
23431 else
23432 $as_echo "$as_me: failed program was:" >&5
23433 sed 's/^/| /' conftest.$ac_ext >&5
23434
23435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23436 $as_echo "no" >&6; }
23437
23438
23439
23440 fi
23441 rm -Rf build
23442
23443
23444
23445
23446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNC is defined" >&5
23447 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
23448
23449
23450 cat confdefs.h - <<_ACEOF >conftest.c
23451
23452
23453 #include <linux/bio.h>
23454
23455 int
23456 main (void)
23457 {
23458
23459 int flags __attribute__ ((unused));
23460 flags = BIO_RW_SYNC;
23461
23462 ;
23463 return 0;
23464 }
23465
23466 _ACEOF
23467
23468
23469
23470 cat - <<_ACEOF >conftest.h
23471
23472 _ACEOF
23473
23474
23475 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23476 echo "obj-m := conftest.o" >build/Makefile
23477 modpost_flag=''
23478 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23479 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23481 (eval $ac_try) 2>&5
23482 ac_status=$?
23483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23484 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23486 (eval $ac_try) 2>&5
23487 ac_status=$?
23488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23489 test $ac_status = 0; }; }; then :
23490
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23492 $as_echo "yes" >&6; }
23493
23494 $as_echo "#define HAVE_BIO_RW_SYNC 1" >>confdefs.h
23495
23496
23497 else
23498 $as_echo "$as_me: failed program was:" >&5
23499 sed 's/^/| /' conftest.$ac_ext >&5
23500
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23502 $as_echo "no" >&6; }
23503
23504
23505
23506 fi
23507 rm -Rf build
23508
23509
23510
23511
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNCIO is defined" >&5
23513 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
23514
23515
23516 cat confdefs.h - <<_ACEOF >conftest.c
23517
23518
23519 #include <linux/bio.h>
23520
23521 int
23522 main (void)
23523 {
23524
23525 int flags __attribute__ ((unused));
23526 flags = BIO_RW_SYNCIO;
23527
23528 ;
23529 return 0;
23530 }
23531
23532 _ACEOF
23533
23534
23535
23536 cat - <<_ACEOF >conftest.h
23537
23538 _ACEOF
23539
23540
23541 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23542 echo "obj-m := conftest.o" >build/Makefile
23543 modpost_flag=''
23544 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23545 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23547 (eval $ac_try) 2>&5
23548 ac_status=$?
23549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23550 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23552 (eval $ac_try) 2>&5
23553 ac_status=$?
23554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23555 test $ac_status = 0; }; }; then :
23556
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23558 $as_echo "yes" >&6; }
23559
23560 $as_echo "#define HAVE_BIO_RW_SYNCIO 1" >>confdefs.h
23561
23562
23563 else
23564 $as_echo "$as_me: failed program was:" >&5
23565 sed 's/^/| /' conftest.$ac_ext >&5
23566
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23568 $as_echo "no" >&6; }
23569
23570
23571
23572 fi
23573 rm -Rf build
23574
23575
23576
23577
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_SYNC is defined" >&5
23579 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
23580
23581
23582 cat confdefs.h - <<_ACEOF >conftest.c
23583
23584
23585 #include <linux/bio.h>
23586
23587 int
23588 main (void)
23589 {
23590
23591 int flags __attribute__ ((unused));
23592 flags = REQ_SYNC;
23593
23594 ;
23595 return 0;
23596 }
23597
23598 _ACEOF
23599
23600
23601
23602 cat - <<_ACEOF >conftest.h
23603
23604 _ACEOF
23605
23606
23607 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23608 echo "obj-m := conftest.o" >build/Makefile
23609 modpost_flag=''
23610 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23611 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23613 (eval $ac_try) 2>&5
23614 ac_status=$?
23615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23616 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23618 (eval $ac_try) 2>&5
23619 ac_status=$?
23620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23621 test $ac_status = 0; }; }; then :
23622
23623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23624 $as_echo "yes" >&6; }
23625
23626 $as_echo "#define HAVE_REQ_SYNC 1" >>confdefs.h
23627
23628
23629 else
23630 $as_echo "$as_me: failed program was:" >&5
23631 sed 's/^/| /' conftest.$ac_ext >&5
23632
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23634 $as_echo "no" >&6; }
23635
23636
23637
23638 fi
23639 rm -Rf build
23640
23641
23642
23643
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is available" >&5
23645 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
23646 tmp_flags="$EXTRA_KCFLAGS"
23647 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
23648
23649
23650 cat confdefs.h - <<_ACEOF >conftest.c
23651
23652
23653 #include <linux/blkdev.h>
23654
23655 int
23656 main (void)
23657 {
23658
23659 struct request *req = NULL;
23660 (void) blk_end_request(req, 0, 0);
23661
23662 ;
23663 return 0;
23664 }
23665
23666 _ACEOF
23667
23668
23669
23670 cat - <<_ACEOF >conftest.h
23671
23672 _ACEOF
23673
23674
23675 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23676 echo "obj-m := conftest.o" >build/Makefile
23677 modpost_flag=''
23678 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23679 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23681 (eval $ac_try) 2>&5
23682 ac_status=$?
23683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23684 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23686 (eval $ac_try) 2>&5
23687 ac_status=$?
23688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23689 test $ac_status = 0; }; }; then :
23690
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23692 $as_echo "yes" >&6; }
23693
23694 $as_echo "#define HAVE_BLK_END_REQUEST 1" >>confdefs.h
23695
23696
23697 else
23698 $as_echo "$as_me: failed program was:" >&5
23699 sed 's/^/| /' conftest.$ac_ext >&5
23700
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23702 $as_echo "no" >&6; }
23703
23704
23705
23706 fi
23707 rm -Rf build
23708
23709
23710
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is GPL-only" >&5
23712 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
23713
23714
23715 cat confdefs.h - <<_ACEOF >conftest.c
23716
23717
23718 #include <linux/module.h>
23719 #include <linux/blkdev.h>
23720
23721 MODULE_LICENSE("$ZFS_META_LICENSE");
23722
23723 int
23724 main (void)
23725 {
23726
23727 struct request *req = NULL;
23728 (void) blk_end_request(req, 0, 0);
23729
23730 ;
23731 return 0;
23732 }
23733
23734 _ACEOF
23735
23736
23737
23738 cat - <<_ACEOF >conftest.h
23739
23740 _ACEOF
23741
23742
23743 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23744 echo "obj-m := conftest.o" >build/Makefile
23745 modpost_flag=''
23746 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23747 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23749 (eval $ac_try) 2>&5
23750 ac_status=$?
23751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23752 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23754 (eval $ac_try) 2>&5
23755 ac_status=$?
23756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23757 test $ac_status = 0; }; }; then :
23758
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23760 $as_echo "no" >&6; }
23761
23762 else
23763 $as_echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23765
23766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23767 $as_echo "yes" >&6; }
23768
23769 $as_echo "#define HAVE_BLK_END_REQUEST_GPL_ONLY 1" >>confdefs.h
23770
23771
23772
23773
23774 fi
23775 rm -Rf build
23776
23777
23778 EXTRA_KCFLAGS="$tmp_flags"
23779
23780
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
23782 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
23783 tmp_flags="$EXTRA_KCFLAGS"
23784 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
23785
23786
23787 cat confdefs.h - <<_ACEOF >conftest.c
23788
23789
23790 #include <linux/blkdev.h>
23791
23792 int
23793 main (void)
23794 {
23795
23796 struct request_queue *q = NULL;
23797 (void) blk_queue_flush(q, REQ_FLUSH);
23798
23799 ;
23800 return 0;
23801 }
23802
23803 _ACEOF
23804
23805
23806
23807 cat - <<_ACEOF >conftest.h
23808
23809 _ACEOF
23810
23811
23812 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23813 echo "obj-m := conftest.o" >build/Makefile
23814 modpost_flag=''
23815 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23816 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23818 (eval $ac_try) 2>&5
23819 ac_status=$?
23820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23821 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23823 (eval $ac_try) 2>&5
23824 ac_status=$?
23825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23826 test $ac_status = 0; }; }; then :
23827
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23829 $as_echo "yes" >&6; }
23830
23831 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
23832
23833
23834 else
23835 $as_echo "$as_me: failed program was:" >&5
23836 sed 's/^/| /' conftest.$ac_ext >&5
23837
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23839 $as_echo "no" >&6; }
23840
23841
23842
23843 fi
23844 rm -Rf build
23845
23846
23847
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
23849 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
23850
23851
23852 cat confdefs.h - <<_ACEOF >conftest.c
23853
23854
23855 #include <linux/module.h>
23856 #include <linux/blkdev.h>
23857
23858 MODULE_LICENSE("$ZFS_META_LICENSE");
23859
23860 int
23861 main (void)
23862 {
23863
23864 struct request_queue *q = NULL;
23865 (void) blk_queue_flush(q, REQ_FLUSH);
23866
23867 ;
23868 return 0;
23869 }
23870
23871 _ACEOF
23872
23873
23874
23875 cat - <<_ACEOF >conftest.h
23876
23877 _ACEOF
23878
23879
23880 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23881 echo "obj-m := conftest.o" >build/Makefile
23882 modpost_flag=''
23883 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23884 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23886 (eval $ac_try) 2>&5
23887 ac_status=$?
23888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23889 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23891 (eval $ac_try) 2>&5
23892 ac_status=$?
23893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23894 test $ac_status = 0; }; }; then :
23895
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23897 $as_echo "no" >&6; }
23898
23899 else
23900 $as_echo "$as_me: failed program was:" >&5
23901 sed 's/^/| /' conftest.$ac_ext >&5
23902
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23904 $as_echo "yes" >&6; }
23905
23906 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
23907
23908
23909
23910
23911 fi
23912 rm -Rf build
23913
23914
23915 EXTRA_KCFLAGS="$tmp_flags"
23916
23917
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
23919 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
23920 tmp_flags="$EXTRA_KCFLAGS"
23921 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
23922
23923
23924 cat confdefs.h - <<_ACEOF >conftest.c
23925
23926
23927 #include <linux/blkdev.h>
23928
23929 int
23930 main (void)
23931 {
23932
23933 struct request_queue *q = NULL;
23934 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
23935
23936 ;
23937 return 0;
23938 }
23939
23940 _ACEOF
23941
23942
23943
23944 cat - <<_ACEOF >conftest.h
23945
23946 _ACEOF
23947
23948
23949 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23950 echo "obj-m := conftest.o" >build/Makefile
23951 modpost_flag=''
23952 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23953 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23955 (eval $ac_try) 2>&5
23956 ac_status=$?
23957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23958 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23960 (eval $ac_try) 2>&5
23961 ac_status=$?
23962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23963 test $ac_status = 0; }; }; then :
23964
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23966 $as_echo "yes" >&6; }
23967
23968 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
23969
23970
23971 else
23972 $as_echo "$as_me: failed program was:" >&5
23973 sed 's/^/| /' conftest.$ac_ext >&5
23974
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23976 $as_echo "no" >&6; }
23977
23978
23979
23980 fi
23981 rm -Rf build
23982
23983
23984 EXTRA_KCFLAGS="$tmp_flags"
23985
23986
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
23988 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
23989 tmp_flags="$EXTRA_KCFLAGS"
23990 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
23991
23992
23993 cat confdefs.h - <<_ACEOF >conftest.c
23994
23995
23996 #include <linux/blkdev.h>
23997
23998 int
23999 main (void)
24000 {
24001
24002 struct request_queue *q = NULL;
24003 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
24004
24005 ;
24006 return 0;
24007 }
24008
24009 _ACEOF
24010
24011
24012
24013 cat - <<_ACEOF >conftest.h
24014
24015 _ACEOF
24016
24017
24018 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24019 echo "obj-m := conftest.o" >build/Makefile
24020 modpost_flag=''
24021 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24022 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24024 (eval $ac_try) 2>&5
24025 ac_status=$?
24026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24027 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24029 (eval $ac_try) 2>&5
24030 ac_status=$?
24031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24032 test $ac_status = 0; }; }; then :
24033
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24035 $as_echo "yes" >&6; }
24036
24037 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
24038
24039
24040 else
24041 $as_echo "$as_me: failed program was:" >&5
24042 sed 's/^/| /' conftest.$ac_ext >&5
24043
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24045 $as_echo "no" >&6; }
24046
24047
24048
24049 fi
24050 rm -Rf build
24051
24052
24053 EXTRA_KCFLAGS="$tmp_flags"
24054
24055
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_physical_block_size() is available" >&5
24057 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
24058 tmp_flags="$EXTRA_KCFLAGS"
24059 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24060
24061
24062 cat confdefs.h - <<_ACEOF >conftest.c
24063
24064
24065 #include <linux/blkdev.h>
24066
24067 int
24068 main (void)
24069 {
24070
24071 struct request_queue *q = NULL;
24072 unsigned short block_size = 1;
24073 (void) blk_queue_physical_block_size(q, block_size);
24074
24075 ;
24076 return 0;
24077 }
24078
24079 _ACEOF
24080
24081
24082
24083 cat - <<_ACEOF >conftest.h
24084
24085 _ACEOF
24086
24087
24088 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24089 echo "obj-m := conftest.o" >build/Makefile
24090 modpost_flag=''
24091 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24092 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24094 (eval $ac_try) 2>&5
24095 ac_status=$?
24096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24097 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24099 (eval $ac_try) 2>&5
24100 ac_status=$?
24101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24102 test $ac_status = 0; }; }; then :
24103
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24105 $as_echo "yes" >&6; }
24106
24107 $as_echo "#define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
24108
24109
24110 else
24111 $as_echo "$as_me: failed program was:" >&5
24112 sed 's/^/| /' conftest.$ac_ext >&5
24113
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24115 $as_echo "no" >&6; }
24116
24117
24118
24119 fi
24120 rm -Rf build
24121
24122
24123 EXTRA_KCFLAGS="$tmp_flags"
24124
24125
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_io_opt() is available" >&5
24127 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
24128 tmp_flags="$EXTRA_KCFLAGS"
24129 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24130
24131
24132 cat confdefs.h - <<_ACEOF >conftest.c
24133
24134
24135 #include <linux/blkdev.h>
24136
24137 int
24138 main (void)
24139 {
24140
24141 struct request_queue *q = NULL;
24142 unsigned int opt = 1;
24143 (void) blk_queue_io_opt(q, opt);
24144
24145 ;
24146 return 0;
24147 }
24148
24149 _ACEOF
24150
24151
24152
24153 cat - <<_ACEOF >conftest.h
24154
24155 _ACEOF
24156
24157
24158 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24159 echo "obj-m := conftest.o" >build/Makefile
24160 modpost_flag=''
24161 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24162 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24164 (eval $ac_try) 2>&5
24165 ac_status=$?
24166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24167 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24169 (eval $ac_try) 2>&5
24170 ac_status=$?
24171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24172 test $ac_status = 0; }; }; then :
24173
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24175 $as_echo "yes" >&6; }
24176
24177 $as_echo "#define HAVE_BLK_QUEUE_IO_OPT 1" >>confdefs.h
24178
24179
24180 else
24181 $as_echo "$as_me: failed program was:" >&5
24182 sed 's/^/| /' conftest.$ac_ext >&5
24183
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24185 $as_echo "no" >&6; }
24186
24187
24188
24189 fi
24190 rm -Rf build
24191
24192
24193 EXTRA_KCFLAGS="$tmp_flags"
24194
24195
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_nonrot() is available" >&5
24197 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
24198 tmp_flags="$EXTRA_KCFLAGS"
24199 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24200
24201
24202 cat confdefs.h - <<_ACEOF >conftest.c
24203
24204
24205 #include <linux/blkdev.h>
24206
24207 int
24208 main (void)
24209 {
24210
24211 struct request_queue *q = NULL;
24212 (void) blk_queue_nonrot(q);
24213
24214 ;
24215 return 0;
24216 }
24217
24218 _ACEOF
24219
24220
24221
24222 cat - <<_ACEOF >conftest.h
24223
24224 _ACEOF
24225
24226
24227 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24228 echo "obj-m := conftest.o" >build/Makefile
24229 modpost_flag=''
24230 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24231 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24233 (eval $ac_try) 2>&5
24234 ac_status=$?
24235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24236 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24238 (eval $ac_try) 2>&5
24239 ac_status=$?
24240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24241 test $ac_status = 0; }; }; then :
24242
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24244 $as_echo "yes" >&6; }
24245
24246 $as_echo "#define HAVE_BLK_QUEUE_NONROT 1" >>confdefs.h
24247
24248
24249 else
24250 $as_echo "$as_me: failed program was:" >&5
24251 sed 's/^/| /' conftest.$ac_ext >&5
24252
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24254 $as_echo "no" >&6; }
24255
24256
24257
24258 fi
24259 rm -Rf build
24260
24261
24262 EXTRA_KCFLAGS="$tmp_flags"
24263
24264
24265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_discard() is available" >&5
24266 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
24267 tmp_flags="$EXTRA_KCFLAGS"
24268 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24269
24270
24271 cat confdefs.h - <<_ACEOF >conftest.c
24272
24273
24274 #include <linux/blkdev.h>
24275
24276 int
24277 main (void)
24278 {
24279
24280 struct request_queue *q = NULL;
24281 (void) blk_queue_discard(q);
24282
24283 ;
24284 return 0;
24285 }
24286
24287 _ACEOF
24288
24289
24290
24291 cat - <<_ACEOF >conftest.h
24292
24293 _ACEOF
24294
24295
24296 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24297 echo "obj-m := conftest.o" >build/Makefile
24298 modpost_flag=''
24299 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24300 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24302 (eval $ac_try) 2>&5
24303 ac_status=$?
24304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24305 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24307 (eval $ac_try) 2>&5
24308 ac_status=$?
24309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24310 test $ac_status = 0; }; }; then :
24311
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24313 $as_echo "yes" >&6; }
24314
24315 $as_echo "#define HAVE_BLK_QUEUE_DISCARD 1" >>confdefs.h
24316
24317
24318 else
24319 $as_echo "$as_me: failed program was:" >&5
24320 sed 's/^/| /' conftest.$ac_ext >&5
24321
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24323 $as_echo "no" >&6; }
24324
24325
24326
24327 fi
24328 rm -Rf build
24329
24330
24331 EXTRA_KCFLAGS="$tmp_flags"
24332
24333
24334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_fetch_request() is available" >&5
24335 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
24336 tmp_flags="$EXTRA_KCFLAGS"
24337 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24338
24339
24340 cat confdefs.h - <<_ACEOF >conftest.c
24341
24342
24343 #include <linux/blkdev.h>
24344
24345 int
24346 main (void)
24347 {
24348
24349 struct request_queue *q = NULL;
24350 (void) blk_fetch_request(q);
24351
24352 ;
24353 return 0;
24354 }
24355
24356 _ACEOF
24357
24358
24359
24360 cat - <<_ACEOF >conftest.h
24361
24362 _ACEOF
24363
24364
24365 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24366 echo "obj-m := conftest.o" >build/Makefile
24367 modpost_flag=''
24368 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24369 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24371 (eval $ac_try) 2>&5
24372 ac_status=$?
24373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24374 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24376 (eval $ac_try) 2>&5
24377 ac_status=$?
24378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24379 test $ac_status = 0; }; }; then :
24380
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24382 $as_echo "yes" >&6; }
24383
24384 $as_echo "#define HAVE_BLK_FETCH_REQUEST 1" >>confdefs.h
24385
24386
24387 else
24388 $as_echo "$as_me: failed program was:" >&5
24389 sed 's/^/| /' conftest.$ac_ext >&5
24390
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24392 $as_echo "no" >&6; }
24393
24394
24395
24396 fi
24397 rm -Rf build
24398
24399
24400 EXTRA_KCFLAGS="$tmp_flags"
24401
24402
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_requeue_request() is available" >&5
24404 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
24405 tmp_flags="$EXTRA_KCFLAGS"
24406 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24407
24408
24409 cat confdefs.h - <<_ACEOF >conftest.c
24410
24411
24412 #include <linux/blkdev.h>
24413
24414 int
24415 main (void)
24416 {
24417
24418 struct request_queue *q = NULL;
24419 struct request *req = NULL;
24420 blk_requeue_request(q, req);
24421
24422 ;
24423 return 0;
24424 }
24425
24426 _ACEOF
24427
24428
24429
24430 cat - <<_ACEOF >conftest.h
24431
24432 _ACEOF
24433
24434
24435 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24436 echo "obj-m := conftest.o" >build/Makefile
24437 modpost_flag=''
24438 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24439 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24441 (eval $ac_try) 2>&5
24442 ac_status=$?
24443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24444 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24446 (eval $ac_try) 2>&5
24447 ac_status=$?
24448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24449 test $ac_status = 0; }; }; then :
24450
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24452 $as_echo "yes" >&6; }
24453
24454 $as_echo "#define HAVE_BLK_REQUEUE_REQUEST 1" >>confdefs.h
24455
24456
24457 else
24458 $as_echo "$as_me: failed program was:" >&5
24459 sed 's/^/| /' conftest.$ac_ext >&5
24460
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24462 $as_echo "no" >&6; }
24463
24464
24465
24466 fi
24467 rm -Rf build
24468
24469
24470 EXTRA_KCFLAGS="$tmp_flags"
24471
24472
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is available" >&5
24474 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
24475 tmp_flags="$EXTRA_KCFLAGS"
24476 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24477
24478
24479 cat confdefs.h - <<_ACEOF >conftest.c
24480
24481
24482 #include <linux/blkdev.h>
24483
24484 int
24485 main (void)
24486 {
24487
24488 struct request *req = NULL;
24489 (void) blk_rq_bytes(req);
24490
24491 ;
24492 return 0;
24493 }
24494
24495 _ACEOF
24496
24497
24498
24499 cat - <<_ACEOF >conftest.h
24500
24501 _ACEOF
24502
24503
24504 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24505 echo "obj-m := conftest.o" >build/Makefile
24506 modpost_flag=''
24507 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24508 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24510 (eval $ac_try) 2>&5
24511 ac_status=$?
24512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24513 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24515 (eval $ac_try) 2>&5
24516 ac_status=$?
24517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24518 test $ac_status = 0; }; }; then :
24519
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24521 $as_echo "yes" >&6; }
24522
24523 $as_echo "#define HAVE_BLK_RQ_BYTES 1" >>confdefs.h
24524
24525
24526 else
24527 $as_echo "$as_me: failed program was:" >&5
24528 sed 's/^/| /' conftest.$ac_ext >&5
24529
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24531 $as_echo "no" >&6; }
24532
24533
24534
24535 fi
24536 rm -Rf build
24537
24538
24539
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is GPL-only" >&5
24541 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
24542
24543
24544 cat confdefs.h - <<_ACEOF >conftest.c
24545
24546
24547 #include <linux/module.h>
24548 #include <linux/blkdev.h>
24549
24550 MODULE_LICENSE("$ZFS_META_LICENSE");
24551
24552 int
24553 main (void)
24554 {
24555
24556 struct request *req = NULL;
24557 (void) blk_rq_bytes(req);
24558
24559 ;
24560 return 0;
24561 }
24562
24563 _ACEOF
24564
24565
24566
24567 cat - <<_ACEOF >conftest.h
24568
24569 _ACEOF
24570
24571
24572 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24573 echo "obj-m := conftest.o" >build/Makefile
24574 modpost_flag=''
24575 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24576 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24578 (eval $ac_try) 2>&5
24579 ac_status=$?
24580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24581 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24583 (eval $ac_try) 2>&5
24584 ac_status=$?
24585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24586 test $ac_status = 0; }; }; then :
24587
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24589 $as_echo "no" >&6; }
24590
24591 else
24592 $as_echo "$as_me: failed program was:" >&5
24593 sed 's/^/| /' conftest.$ac_ext >&5
24594
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24596 $as_echo "yes" >&6; }
24597
24598 $as_echo "#define HAVE_BLK_RQ_BYTES_GPL_ONLY 1" >>confdefs.h
24599
24600
24601
24602
24603 fi
24604 rm -Rf build
24605
24606
24607 EXTRA_KCFLAGS="$tmp_flags"
24608
24609
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_pos() is available" >&5
24611 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
24612 tmp_flags="$EXTRA_KCFLAGS"
24613 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24614
24615
24616 cat confdefs.h - <<_ACEOF >conftest.c
24617
24618
24619 #include <linux/blkdev.h>
24620
24621 int
24622 main (void)
24623 {
24624
24625 struct request *req = NULL;
24626 (void) blk_rq_pos(req);
24627
24628 ;
24629 return 0;
24630 }
24631
24632 _ACEOF
24633
24634
24635
24636 cat - <<_ACEOF >conftest.h
24637
24638 _ACEOF
24639
24640
24641 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24642 echo "obj-m := conftest.o" >build/Makefile
24643 modpost_flag=''
24644 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24645 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24647 (eval $ac_try) 2>&5
24648 ac_status=$?
24649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24650 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24652 (eval $ac_try) 2>&5
24653 ac_status=$?
24654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24655 test $ac_status = 0; }; }; then :
24656
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24658 $as_echo "yes" >&6; }
24659
24660 $as_echo "#define HAVE_BLK_RQ_POS 1" >>confdefs.h
24661
24662
24663 else
24664 $as_echo "$as_me: failed program was:" >&5
24665 sed 's/^/| /' conftest.$ac_ext >&5
24666
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24668 $as_echo "no" >&6; }
24669
24670
24671
24672 fi
24673 rm -Rf build
24674
24675
24676 EXTRA_KCFLAGS="$tmp_flags"
24677
24678
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_sectors() is available" >&5
24680 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
24681 tmp_flags="$EXTRA_KCFLAGS"
24682 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24683
24684
24685 cat confdefs.h - <<_ACEOF >conftest.c
24686
24687
24688 #include <linux/blkdev.h>
24689
24690 int
24691 main (void)
24692 {
24693
24694 struct request *req = NULL;
24695 (void) blk_rq_sectors(req);
24696
24697 ;
24698 return 0;
24699 }
24700
24701 _ACEOF
24702
24703
24704
24705 cat - <<_ACEOF >conftest.h
24706
24707 _ACEOF
24708
24709
24710 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24711 echo "obj-m := conftest.o" >build/Makefile
24712 modpost_flag=''
24713 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24714 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24716 (eval $ac_try) 2>&5
24717 ac_status=$?
24718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24719 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24721 (eval $ac_try) 2>&5
24722 ac_status=$?
24723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24724 test $ac_status = 0; }; }; then :
24725
24726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24727 $as_echo "yes" >&6; }
24728
24729 $as_echo "#define HAVE_BLK_RQ_SECTORS 1" >>confdefs.h
24730
24731
24732 else
24733 $as_echo "$as_me: failed program was:" >&5
24734 sed 's/^/| /' conftest.$ac_ext >&5
24735
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24737 $as_echo "no" >&6; }
24738
24739
24740
24741 fi
24742 rm -Rf build
24743
24744
24745 EXTRA_KCFLAGS="$tmp_flags"
24746
24747
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
24749 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
24750 tmp_flags="$EXTRA_KCFLAGS"
24751 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24752
24753
24754 cat confdefs.h - <<_ACEOF >conftest.c
24755
24756
24757 #include <linux/blkdev.h>
24758
24759 int
24760 main (void)
24761 {
24762
24763 struct gendisk *disk = NULL;
24764 (void) get_disk_ro(disk);
24765
24766 ;
24767 return 0;
24768 }
24769
24770 _ACEOF
24771
24772
24773
24774 cat - <<_ACEOF >conftest.h
24775
24776 _ACEOF
24777
24778
24779 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24780 echo "obj-m := conftest.o" >build/Makefile
24781 modpost_flag=''
24782 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24783 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24785 (eval $ac_try) 2>&5
24786 ac_status=$?
24787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24788 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24790 (eval $ac_try) 2>&5
24791 ac_status=$?
24792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24793 test $ac_status = 0; }; }; then :
24794
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24796 $as_echo "yes" >&6; }
24797
24798 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
24799
24800
24801 else
24802 $as_echo "$as_me: failed program was:" >&5
24803 sed 's/^/| /' conftest.$ac_ext >&5
24804
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24806 $as_echo "no" >&6; }
24807
24808
24809
24810 fi
24811 rm -Rf build
24812
24813
24814 EXTRA_KCFLAGS="$tmp_flags"
24815
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
24817 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
24818
24819
24820
24821 cat confdefs.h - <<_ACEOF >conftest.c
24822
24823
24824 #include <linux/genhd.h>
24825
24826 int
24827 main (void)
24828 {
24829
24830 get_gendisk(0, NULL);
24831
24832 ;
24833 return 0;
24834 }
24835
24836 _ACEOF
24837
24838
24839
24840 cat - <<_ACEOF >conftest.h
24841
24842 _ACEOF
24843
24844
24845 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24846 echo "obj-m := conftest.o" >build/Makefile
24847 modpost_flag=''
24848 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24849 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24851 (eval $ac_try) 2>&5
24852 ac_status=$?
24853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24854 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24856 (eval $ac_try) 2>&5
24857 ac_status=$?
24858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24859 test $ac_status = 0; }; }; then :
24860 rc=0
24861 else
24862 $as_echo "$as_me: failed program was:" >&5
24863 sed 's/^/| /' conftest.$ac_ext >&5
24864 rc=1
24865
24866
24867 fi
24868 rm -Rf build
24869
24870
24871 if test $rc -ne 0; then :
24872
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24874 $as_echo "no" >&6; }
24875
24876 else
24877 if test "x$enable_linux_builtin" != xyes; then
24878
24879 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
24880 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24881 rc=$?
24882 if test $rc -ne 0; then
24883 export=0
24884 for file in block/genhd.c; do
24885 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
24886 "$LINUX/$file" 2>/dev/null
24887 rc=$?
24888 if test $rc -eq 0; then
24889 export=1
24890 break;
24891 fi
24892 done
24893 if test $export -eq 0; then :
24894 rc=1
24895 else :
24896 rc=0
24897 fi
24898 else :
24899 rc=0
24900 fi
24901
24902 fi
24903 if test $rc -ne 0; then :
24904
24905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24906 $as_echo "no" >&6; }
24907
24908 else :
24909
24910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24911 $as_echo "yes" >&6; }
24912
24913 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
24914
24915
24916 fi
24917 fi
24918
24919
24920
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_is_sync() is available" >&5
24922 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
24923 tmp_flags="$EXTRA_KCFLAGS"
24924 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24925
24926
24927 cat confdefs.h - <<_ACEOF >conftest.c
24928
24929
24930 #include <linux/blkdev.h>
24931
24932 int
24933 main (void)
24934 {
24935
24936 struct request *req = NULL;
24937 (void) rq_is_sync(req);
24938
24939 ;
24940 return 0;
24941 }
24942
24943 _ACEOF
24944
24945
24946
24947 cat - <<_ACEOF >conftest.h
24948
24949 _ACEOF
24950
24951
24952 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24953 echo "obj-m := conftest.o" >build/Makefile
24954 modpost_flag=''
24955 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24956 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24958 (eval $ac_try) 2>&5
24959 ac_status=$?
24960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24961 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24963 (eval $ac_try) 2>&5
24964 ac_status=$?
24965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24966 test $ac_status = 0; }; }; then :
24967
24968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24969 $as_echo "yes" >&6; }
24970
24971 $as_echo "#define HAVE_RQ_IS_SYNC 1" >>confdefs.h
24972
24973
24974 else
24975 $as_echo "$as_me: failed program was:" >&5
24976 sed 's/^/| /' conftest.$ac_ext >&5
24977
24978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24979 $as_echo "no" >&6; }
24980
24981
24982
24983 fi
24984 rm -Rf build
24985
24986
24987 EXTRA_KCFLAGS="$tmp_flags"
24988
24989
24990 tmp_flags="$EXTRA_KCFLAGS"
24991 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24992
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_for_each_segment() wants bio_vec *" >&5
24994 $as_echo_n "checking whether rq_for_each_segment() wants bio_vec *... " >&6; }
24995
24996
24997 cat confdefs.h - <<_ACEOF >conftest.c
24998
24999
25000 #include <linux/blkdev.h>
25001
25002 int
25003 main (void)
25004 {
25005
25006 struct bio_vec *bv;
25007 struct req_iterator iter;
25008 struct request *req = NULL;
25009 rq_for_each_segment(bv, req, iter) { }
25010
25011 ;
25012 return 0;
25013 }
25014
25015 _ACEOF
25016
25017
25018
25019 cat - <<_ACEOF >conftest.h
25020
25021 _ACEOF
25022
25023
25024 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25025 echo "obj-m := conftest.o" >build/Makefile
25026 modpost_flag=''
25027 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25028 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25030 (eval $ac_try) 2>&5
25031 ac_status=$?
25032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25033 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25035 (eval $ac_try) 2>&5
25036 ac_status=$?
25037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25038 test $ac_status = 0; }; }; then :
25039
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25041 $as_echo "yes" >&6; }
25042
25043 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT 1" >>confdefs.h
25044
25045
25046 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT_BVP 1" >>confdefs.h
25047
25048
25049 else
25050 $as_echo "$as_me: failed program was:" >&5
25051 sed 's/^/| /' conftest.$ac_ext >&5
25052
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25054 $as_echo "no" >&6; }
25055
25056
25057
25058 fi
25059 rm -Rf build
25060
25061
25062
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_for_each_segment() wants bio_vec" >&5
25064 $as_echo_n "checking whether rq_for_each_segment() wants bio_vec... " >&6; }
25065
25066
25067 cat confdefs.h - <<_ACEOF >conftest.c
25068
25069
25070 #include <linux/blkdev.h>
25071
25072 int
25073 main (void)
25074 {
25075
25076 struct bio_vec bv;
25077 struct req_iterator iter;
25078 struct request *req = NULL;
25079 rq_for_each_segment(bv, req, iter) { }
25080
25081 ;
25082 return 0;
25083 }
25084
25085 _ACEOF
25086
25087
25088
25089 cat - <<_ACEOF >conftest.h
25090
25091 _ACEOF
25092
25093
25094 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25095 echo "obj-m := conftest.o" >build/Makefile
25096 modpost_flag=''
25097 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25098 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25100 (eval $ac_try) 2>&5
25101 ac_status=$?
25102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25103 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25105 (eval $ac_try) 2>&5
25106 ac_status=$?
25107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25108 test $ac_status = 0; }; }; then :
25109
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25111 $as_echo "yes" >&6; }
25112
25113 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT 1" >>confdefs.h
25114
25115
25116 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT_BV 1" >>confdefs.h
25117
25118
25119 else
25120 $as_echo "$as_me: failed program was:" >&5
25121 sed 's/^/| /' conftest.$ac_ext >&5
25122
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25124 $as_echo "no" >&6; }
25125
25126
25127
25128 fi
25129 rm -Rf build
25130
25131
25132
25133 EXTRA_KCFLAGS="$tmp_flags"
25134
25135
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
25137 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
25138
25139
25140 cat confdefs.h - <<_ACEOF >conftest.c
25141
25142
25143 #include <linux/blkdev.h>
25144
25145 int
25146 main (void)
25147 {
25148
25149 struct queue_limits ql __attribute__ ((unused));
25150
25151 ql.discard_granularity = 0;
25152
25153 ;
25154 return 0;
25155 }
25156
25157 _ACEOF
25158
25159
25160
25161 cat - <<_ACEOF >conftest.h
25162
25163 _ACEOF
25164
25165
25166 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25167 echo "obj-m := conftest.o" >build/Makefile
25168 modpost_flag=''
25169 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25170 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25172 (eval $ac_try) 2>&5
25173 ac_status=$?
25174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25175 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25177 (eval $ac_try) 2>&5
25178 ac_status=$?
25179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25180 test $ac_status = 0; }; }; then :
25181
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25183 $as_echo "yes" >&6; }
25184
25185 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
25186
25187
25188 else
25189 $as_echo "$as_me: failed program was:" >&5
25190 sed 's/^/| /' conftest.$ac_ext >&5
25191
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25193 $as_echo "no" >&6; }
25194
25195
25196
25197 fi
25198 rm -Rf build
25199
25200
25201
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_hander" >&5
25203 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
25204
25205
25206 cat confdefs.h - <<_ACEOF >conftest.c
25207
25208
25209 #include <linux/fs.h>
25210 #include <linux/xattr.h>
25211
25212 const struct xattr_handler xattr_test_handler = {
25213 .prefix = "test",
25214 .get = NULL,
25215 .set = NULL,
25216 };
25217
25218 const struct xattr_handler *xattr_handlers[] = {
25219 &xattr_test_handler,
25220 };
25221
25222 const struct super_block sb __attribute__ ((unused)) = {
25223 .s_xattr = xattr_handlers,
25224 };
25225
25226 int
25227 main (void)
25228 {
25229
25230
25231 ;
25232 return 0;
25233 }
25234
25235 _ACEOF
25236
25237
25238
25239 cat - <<_ACEOF >conftest.h
25240
25241 _ACEOF
25242
25243
25244 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25245 echo "obj-m := conftest.o" >build/Makefile
25246 modpost_flag=''
25247 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25248 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25250 (eval $ac_try) 2>&5
25251 ac_status=$?
25252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25253 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25255 (eval $ac_try) 2>&5
25256 ac_status=$?
25257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25258 test $ac_status = 0; }; }; then :
25259
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25261 $as_echo "yes" >&6; }
25262
25263 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
25264
25265
25266 else
25267 $as_echo "$as_me: failed program was:" >&5
25268 sed 's/^/| /' conftest.$ac_ext >&5
25269
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25271 $as_echo "no" >&6; }
25272
25273
25274
25275 fi
25276 rm -Rf build
25277
25278
25279
25280
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
25282 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
25283
25284
25285 cat confdefs.h - <<_ACEOF >conftest.c
25286
25287
25288 #include <linux/xattr.h>
25289
25290 int get(struct dentry *dentry, const char *name,
25291 void *buffer, size_t size, int handler_flags) { return 0; }
25292 static const struct xattr_handler
25293 xops __attribute__ ((unused)) = {
25294 .get = get,
25295 };
25296
25297 int
25298 main (void)
25299 {
25300
25301
25302 ;
25303 return 0;
25304 }
25305
25306 _ACEOF
25307
25308
25309
25310 cat - <<_ACEOF >conftest.h
25311
25312 _ACEOF
25313
25314
25315 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25316 echo "obj-m := conftest.o" >build/Makefile
25317 modpost_flag=''
25318 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25319 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25321 (eval $ac_try) 2>&5
25322 ac_status=$?
25323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25324 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25326 (eval $ac_try) 2>&5
25327 ac_status=$?
25328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25329 test $ac_status = 0; }; }; then :
25330
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25332 $as_echo "yes" >&6; }
25333
25334 $as_echo "#define HAVE_DENTRY_XATTR_GET 1" >>confdefs.h
25335
25336
25337 else
25338 $as_echo "$as_me: failed program was:" >&5
25339 sed 's/^/| /' conftest.$ac_ext >&5
25340
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25342 $as_echo "no" >&6; }
25343
25344
25345
25346 fi
25347 rm -Rf build
25348
25349
25350
25351
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
25353 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
25354
25355
25356 cat confdefs.h - <<_ACEOF >conftest.c
25357
25358
25359 #include <linux/xattr.h>
25360
25361 int set(struct dentry *dentry, const char *name,
25362 const void *buffer, size_t size, int flags,
25363 int handler_flags) { return 0; }
25364 static const struct xattr_handler
25365 xops __attribute__ ((unused)) = {
25366 .set = set,
25367 };
25368
25369 int
25370 main (void)
25371 {
25372
25373
25374 ;
25375 return 0;
25376 }
25377
25378 _ACEOF
25379
25380
25381
25382 cat - <<_ACEOF >conftest.h
25383
25384 _ACEOF
25385
25386
25387 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25388 echo "obj-m := conftest.o" >build/Makefile
25389 modpost_flag=''
25390 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25391 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25393 (eval $ac_try) 2>&5
25394 ac_status=$?
25395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25396 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25398 (eval $ac_try) 2>&5
25399 ac_status=$?
25400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25401 test $ac_status = 0; }; }; then :
25402
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25404 $as_echo "yes" >&6; }
25405
25406 $as_echo "#define HAVE_DENTRY_XATTR_SET 1" >>confdefs.h
25407
25408
25409 else
25410 $as_echo "$as_me: failed program was:" >&5
25411 sed 's/^/| /' conftest.$ac_ext >&5
25412
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25414 $as_echo "no" >&6; }
25415
25416
25417
25418 fi
25419 rm -Rf build
25420
25421
25422
25423
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
25425 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
25426
25427
25428 cat confdefs.h - <<_ACEOF >conftest.c
25429
25430
25431 #include <linux/xattr.h>
25432
25433 size_t list(struct dentry *dentry, char *list, size_t list_size,
25434 const char *name, size_t name_len, int handler_flags)
25435 { return 0; }
25436 static const struct xattr_handler
25437 xops __attribute__ ((unused)) = {
25438 .list = list,
25439 };
25440
25441 int
25442 main (void)
25443 {
25444
25445
25446 ;
25447 return 0;
25448 }
25449
25450 _ACEOF
25451
25452
25453
25454 cat - <<_ACEOF >conftest.h
25455
25456 _ACEOF
25457
25458
25459 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25460 echo "obj-m := conftest.o" >build/Makefile
25461 modpost_flag=''
25462 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25463 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25465 (eval $ac_try) 2>&5
25466 ac_status=$?
25467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25468 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25470 (eval $ac_try) 2>&5
25471 ac_status=$?
25472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25473 test $ac_status = 0; }; }; then :
25474
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25476 $as_echo "yes" >&6; }
25477
25478 $as_echo "#define HAVE_DENTRY_XATTR_LIST 1" >>confdefs.h
25479
25480
25481 else
25482 $as_echo "$as_me: failed program was:" >&5
25483 sed 's/^/| /' conftest.$ac_ext >&5
25484
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25486 $as_echo "no" >&6; }
25487
25488
25489
25490 fi
25491 rm -Rf build
25492
25493
25494
25495
25496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
25497 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
25498
25499
25500 cat confdefs.h - <<_ACEOF >conftest.c
25501
25502
25503 #include <linux/fs.h>
25504
25505 int
25506 main (void)
25507 {
25508
25509 struct inode *ip = NULL;
25510 (void) inode_owner_or_capable(ip);
25511
25512 ;
25513 return 0;
25514 }
25515
25516 _ACEOF
25517
25518
25519
25520 cat - <<_ACEOF >conftest.h
25521
25522 _ACEOF
25523
25524
25525 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25526 echo "obj-m := conftest.o" >build/Makefile
25527 modpost_flag=''
25528 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25529 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25531 (eval $ac_try) 2>&5
25532 ac_status=$?
25533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25534 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25536 (eval $ac_try) 2>&5
25537 ac_status=$?
25538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25539 test $ac_status = 0; }; }; then :
25540
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25542 $as_echo "yes" >&6; }
25543
25544 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
25545
25546
25547 else
25548 $as_echo "$as_me: failed program was:" >&5
25549 sed 's/^/| /' conftest.$ac_ext >&5
25550
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25552 $as_echo "no" >&6; }
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
25554 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
25555
25556
25557 cat confdefs.h - <<_ACEOF >conftest.c
25558
25559
25560 #include <linux/fs.h>
25561 #include <linux/sched.h>
25562
25563 int
25564 main (void)
25565 {
25566
25567 struct inode *ip = NULL;
25568 (void) is_owner_or_cap(ip);
25569
25570 ;
25571 return 0;
25572 }
25573
25574 _ACEOF
25575
25576
25577
25578 cat - <<_ACEOF >conftest.h
25579
25580 _ACEOF
25581
25582
25583 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25584 echo "obj-m := conftest.o" >build/Makefile
25585 modpost_flag=''
25586 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25587 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25589 (eval $ac_try) 2>&5
25590 ac_status=$?
25591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25592 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25594 (eval $ac_try) 2>&5
25595 ac_status=$?
25596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25597 test $ac_status = 0; }; }; then :
25598
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25600 $as_echo "yes" >&6; }
25601
25602 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
25603
25604
25605 else
25606 $as_echo "$as_me: failed program was:" >&5
25607 sed 's/^/| /' conftest.$ac_ext >&5
25608
25609 as_fn_error $? "no - Please file a bug report at
25610 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
25611
25612
25613
25614 fi
25615 rm -Rf build
25616
25617
25618
25619
25620
25621 fi
25622 rm -Rf build
25623
25624
25625
25626
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
25628 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
25629
25630
25631 cat confdefs.h - <<_ACEOF >conftest.c
25632
25633
25634 #include <linux/cred.h>
25635 #include <linux/fs.h>
25636 #include <linux/posix_acl_xattr.h>
25637
25638 int
25639 main (void)
25640 {
25641
25642 posix_acl_from_xattr(&init_user_ns, NULL, 0);
25643
25644 ;
25645 return 0;
25646 }
25647
25648 _ACEOF
25649
25650
25651
25652 cat - <<_ACEOF >conftest.h
25653
25654 _ACEOF
25655
25656
25657 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25658 echo "obj-m := conftest.o" >build/Makefile
25659 modpost_flag=''
25660 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25661 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25663 (eval $ac_try) 2>&5
25664 ac_status=$?
25665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25666 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25668 (eval $ac_try) 2>&5
25669 ac_status=$?
25670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25671 test $ac_status = 0; }; }; then :
25672
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25674 $as_echo "yes" >&6; }
25675
25676 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
25677
25678
25679 else
25680 $as_echo "$as_me: failed program was:" >&5
25681 sed 's/^/| /' conftest.$ac_ext >&5
25682
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25684 $as_echo "no" >&6; }
25685
25686
25687
25688 fi
25689 rm -Rf build
25690
25691
25692
25693
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
25695 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
25696
25697
25698 cat confdefs.h - <<_ACEOF >conftest.c
25699
25700
25701 #include <linux/cred.h>
25702 #include <linux/fs.h>
25703 #include <linux/posix_acl.h>
25704
25705 int
25706 main (void)
25707 {
25708
25709 struct posix_acl* tmp = posix_acl_alloc(1, 0);
25710 posix_acl_release(tmp);
25711
25712 ;
25713 return 0;
25714 }
25715
25716 _ACEOF
25717
25718
25719
25720 cat - <<_ACEOF >conftest.h
25721
25722 _ACEOF
25723
25724
25725 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25726 echo "obj-m := conftest.o" >build/Makefile
25727 modpost_flag=''
25728 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25729 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25731 (eval $ac_try) 2>&5
25732 ac_status=$?
25733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25734 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25736 (eval $ac_try) 2>&5
25737 ac_status=$?
25738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25739 test $ac_status = 0; }; }; then :
25740
25741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25742 $as_echo "yes" >&6; }
25743
25744 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
25745
25746
25747 else
25748 $as_echo "$as_me: failed program was:" >&5
25749 sed 's/^/| /' conftest.$ac_ext >&5
25750
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25752 $as_echo "no" >&6; }
25753
25754
25755
25756 fi
25757 rm -Rf build
25758
25759
25760
25761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
25762 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
25763
25764
25765 cat confdefs.h - <<_ACEOF >conftest.c
25766
25767
25768 #include <linux/cred.h>
25769 #include <linux/fs.h>
25770 #include <linux/posix_acl.h>
25771
25772 MODULE_LICENSE("$ZFS_META_LICENSE");
25773
25774 int
25775 main (void)
25776 {
25777
25778 struct posix_acl* tmp = posix_acl_alloc(1, 0);
25779 posix_acl_release(tmp);
25780
25781 ;
25782 return 0;
25783 }
25784
25785 _ACEOF
25786
25787
25788
25789 cat - <<_ACEOF >conftest.h
25790
25791 _ACEOF
25792
25793
25794 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25795 echo "obj-m := conftest.o" >build/Makefile
25796 modpost_flag=''
25797 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25798 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25800 (eval $ac_try) 2>&5
25801 ac_status=$?
25802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25803 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25805 (eval $ac_try) 2>&5
25806 ac_status=$?
25807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25808 test $ac_status = 0; }; }; then :
25809
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25811 $as_echo "no" >&6; }
25812
25813 else
25814 $as_echo "$as_me: failed program was:" >&5
25815 sed 's/^/| /' conftest.$ac_ext >&5
25816
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25818 $as_echo "yes" >&6; }
25819
25820 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
25821
25822
25823
25824
25825 fi
25826 rm -Rf build
25827
25828
25829
25830
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
25832 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
25833
25834
25835 cat confdefs.h - <<_ACEOF >conftest.c
25836
25837
25838 #include <linux/fs.h>
25839 #include <linux/posix_acl.h>
25840
25841 int
25842 main (void)
25843 {
25844
25845 posix_acl_chmod(NULL, 0, 0)
25846
25847 ;
25848 return 0;
25849 }
25850
25851 _ACEOF
25852
25853
25854
25855 cat - <<_ACEOF >conftest.h
25856
25857 _ACEOF
25858
25859
25860 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25861 echo "obj-m := conftest.o" >build/Makefile
25862 modpost_flag=''
25863 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25864 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25866 (eval $ac_try) 2>&5
25867 ac_status=$?
25868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25869 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25871 (eval $ac_try) 2>&5
25872 ac_status=$?
25873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25874 test $ac_status = 0; }; }; then :
25875
25876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25877 $as_echo "yes" >&6; }
25878
25879 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
25880
25881
25882 else
25883 $as_echo "$as_me: failed program was:" >&5
25884 sed 's/^/| /' conftest.$ac_ext >&5
25885
25886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25887 $as_echo "no" >&6; }
25888
25889
25890
25891 fi
25892 rm -Rf build
25893
25894
25895
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
25897 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
25898
25899
25900 cat confdefs.h - <<_ACEOF >conftest.c
25901
25902
25903 #include <linux/fs.h>
25904 #include <linux/posix_acl.h>
25905
25906 int
25907 main (void)
25908 {
25909
25910 __posix_acl_chmod(NULL, 0, 0)
25911
25912 ;
25913 return 0;
25914 }
25915
25916 _ACEOF
25917
25918
25919
25920 cat - <<_ACEOF >conftest.h
25921
25922 _ACEOF
25923
25924
25925 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25926 echo "obj-m := conftest.o" >build/Makefile
25927 modpost_flag=''
25928 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25929 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25931 (eval $ac_try) 2>&5
25932 ac_status=$?
25933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25934 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25936 (eval $ac_try) 2>&5
25937 ac_status=$?
25938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25939 test $ac_status = 0; }; }; then :
25940
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25942 $as_echo "yes" >&6; }
25943
25944 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
25945
25946
25947 else
25948 $as_echo "$as_me: failed program was:" >&5
25949 sed 's/^/| /' conftest.$ac_ext >&5
25950
25951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25952 $as_echo "no" >&6; }
25953
25954
25955
25956 fi
25957 rm -Rf build
25958
25959
25960
25961
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode has i_acl and i_default_acl" >&5
25963 $as_echo_n "checking whether inode has i_acl and i_default_acl... " >&6; }
25964
25965
25966 cat confdefs.h - <<_ACEOF >conftest.c
25967
25968
25969 #include <linux/fs.h>
25970
25971 int
25972 main (void)
25973 {
25974
25975 struct inode ino;
25976 ino.i_acl = NULL;
25977 ino.i_default_acl = NULL;
25978
25979 ;
25980 return 0;
25981 }
25982
25983 _ACEOF
25984
25985
25986
25987 cat - <<_ACEOF >conftest.h
25988
25989 _ACEOF
25990
25991
25992 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25993 echo "obj-m := conftest.o" >build/Makefile
25994 modpost_flag=''
25995 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25996 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25998 (eval $ac_try) 2>&5
25999 ac_status=$?
26000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26001 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26003 (eval $ac_try) 2>&5
26004 ac_status=$?
26005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26006 test $ac_status = 0; }; }; then :
26007
26008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26009 $as_echo "yes" >&6; }
26010
26011 $as_echo "#define HAVE_POSIX_ACL_CACHING 1" >>confdefs.h
26012
26013
26014 else
26015 $as_echo "$as_me: failed program was:" >&5
26016 sed 's/^/| /' conftest.$ac_ext >&5
26017
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26019 $as_echo "no" >&6; }
26020
26021
26022
26023 fi
26024 rm -Rf build
26025
26026
26027
26028
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
26030 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
26031
26032
26033 cat confdefs.h - <<_ACEOF >conftest.c
26034
26035
26036 #include <linux/fs.h>
26037 #include <linux/posix_acl.h>
26038
26039 int
26040 main (void)
26041 {
26042
26043 umode_t tmp;
26044 posix_acl_equiv_mode(NULL,&tmp);
26045
26046 ;
26047 return 0;
26048 }
26049
26050 _ACEOF
26051
26052
26053
26054 cat - <<_ACEOF >conftest.h
26055
26056 _ACEOF
26057
26058
26059 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26060 echo "obj-m := conftest.o" >build/Makefile
26061 modpost_flag=''
26062 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26063 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26065 (eval $ac_try) 2>&5
26066 ac_status=$?
26067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26068 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26070 (eval $ac_try) 2>&5
26071 ac_status=$?
26072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26073 test $ac_status = 0; }; }; then :
26074
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26076 $as_echo "yes" >&6; }
26077
26078 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
26079
26080
26081 else
26082 $as_echo "$as_me: failed program was:" >&5
26083 sed 's/^/| /' conftest.$ac_ext >&5
26084
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26086 $as_echo "no" >&6; }
26087
26088
26089
26090 fi
26091 rm -Rf build
26092
26093
26094
26095
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
26097 $as_echo_n "checking whether iops->permission() exists... " >&6; }
26098
26099
26100 cat confdefs.h - <<_ACEOF >conftest.c
26101
26102
26103 #include <linux/fs.h>
26104
26105 int permission_fn(struct inode *inode, int mask) { return 0; }
26106
26107 static const struct inode_operations
26108 iops __attribute__ ((unused)) = {
26109 .permission = permission_fn,
26110 };
26111
26112 int
26113 main (void)
26114 {
26115
26116
26117 ;
26118 return 0;
26119 }
26120
26121 _ACEOF
26122
26123
26124
26125 cat - <<_ACEOF >conftest.h
26126
26127 _ACEOF
26128
26129
26130 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26131 echo "obj-m := conftest.o" >build/Makefile
26132 modpost_flag=''
26133 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26134 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26136 (eval $ac_try) 2>&5
26137 ac_status=$?
26138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26139 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26141 (eval $ac_try) 2>&5
26142 ac_status=$?
26143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26144 test $ac_status = 0; }; }; then :
26145
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26147 $as_echo "yes" >&6; }
26148
26149 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
26150
26151
26152 else
26153 $as_echo "$as_me: failed program was:" >&5
26154 sed 's/^/| /' conftest.$ac_ext >&5
26155
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26157 $as_echo "no" >&6; }
26158
26159
26160
26161 fi
26162 rm -Rf build
26163
26164
26165
26166
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
26168 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
26169
26170
26171 cat confdefs.h - <<_ACEOF >conftest.c
26172
26173
26174 #include <linux/fs.h>
26175
26176 int permission_fn(struct inode *inode, int mask,
26177 struct nameidata *nd) { return 0; }
26178
26179 static const struct inode_operations
26180 iops __attribute__ ((unused)) = {
26181 .permission = permission_fn,
26182 };
26183
26184 int
26185 main (void)
26186 {
26187
26188
26189 ;
26190 return 0;
26191 }
26192
26193 _ACEOF
26194
26195
26196
26197 cat - <<_ACEOF >conftest.h
26198
26199 _ACEOF
26200
26201
26202 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26203 echo "obj-m := conftest.o" >build/Makefile
26204 modpost_flag=''
26205 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26206 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26208 (eval $ac_try) 2>&5
26209 ac_status=$?
26210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26211 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26213 (eval $ac_try) 2>&5
26214 ac_status=$?
26215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26216 test $ac_status = 0; }; }; then :
26217
26218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26219 $as_echo "yes" >&6; }
26220
26221 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
26222
26223
26224 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
26225
26226
26227 else
26228 $as_echo "$as_me: failed program was:" >&5
26229 sed 's/^/| /' conftest.$ac_ext >&5
26230
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26232 $as_echo "no" >&6; }
26233
26234
26235
26236 fi
26237 rm -Rf build
26238
26239
26240
26241
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
26243 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
26244
26245
26246 cat confdefs.h - <<_ACEOF >conftest.c
26247
26248
26249 #include <linux/fs.h>
26250
26251 int check_acl_fn(struct inode *inode, int mask) { return 0; }
26252
26253 static const struct inode_operations
26254 iops __attribute__ ((unused)) = {
26255 .check_acl = check_acl_fn,
26256 };
26257
26258 int
26259 main (void)
26260 {
26261
26262
26263 ;
26264 return 0;
26265 }
26266
26267 _ACEOF
26268
26269
26270
26271 cat - <<_ACEOF >conftest.h
26272
26273 _ACEOF
26274
26275
26276 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26277 echo "obj-m := conftest.o" >build/Makefile
26278 modpost_flag=''
26279 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26280 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26282 (eval $ac_try) 2>&5
26283 ac_status=$?
26284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26285 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26287 (eval $ac_try) 2>&5
26288 ac_status=$?
26289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26290 test $ac_status = 0; }; }; then :
26291
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26293 $as_echo "yes" >&6; }
26294
26295 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
26296
26297
26298 else
26299 $as_echo "$as_me: failed program was:" >&5
26300 sed 's/^/| /' conftest.$ac_ext >&5
26301
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26303 $as_echo "no" >&6; }
26304
26305
26306
26307 fi
26308 rm -Rf build
26309
26310
26311
26312
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
26314 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
26315
26316
26317 cat confdefs.h - <<_ACEOF >conftest.c
26318
26319
26320 #include <linux/fs.h>
26321
26322 int check_acl_fn(struct inode *inode, int mask,
26323 unsigned int flags) { return 0; }
26324
26325 static const struct inode_operations
26326 iops __attribute__ ((unused)) = {
26327 .check_acl = check_acl_fn,
26328 };
26329
26330 int
26331 main (void)
26332 {
26333
26334
26335 ;
26336 return 0;
26337 }
26338
26339 _ACEOF
26340
26341
26342
26343 cat - <<_ACEOF >conftest.h
26344
26345 _ACEOF
26346
26347
26348 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26349 echo "obj-m := conftest.o" >build/Makefile
26350 modpost_flag=''
26351 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26352 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26354 (eval $ac_try) 2>&5
26355 ac_status=$?
26356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26357 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26359 (eval $ac_try) 2>&5
26360 ac_status=$?
26361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26362 test $ac_status = 0; }; }; then :
26363
26364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26365 $as_echo "yes" >&6; }
26366
26367 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
26368
26369
26370 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
26371
26372
26373 else
26374 $as_echo "$as_me: failed program was:" >&5
26375 sed 's/^/| /' conftest.$ac_ext >&5
26376
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26378 $as_echo "no" >&6; }
26379
26380
26381
26382 fi
26383 rm -Rf build
26384
26385
26386
26387
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
26389 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
26390
26391
26392 cat confdefs.h - <<_ACEOF >conftest.c
26393
26394
26395 #include <linux/fs.h>
26396
26397 struct posix_acl *get_acl_fn(struct inode *inode, int type)
26398 { return NULL; }
26399
26400 static const struct inode_operations
26401 iops __attribute__ ((unused)) = {
26402 .get_acl = get_acl_fn,
26403 };
26404
26405 int
26406 main (void)
26407 {
26408
26409
26410 ;
26411 return 0;
26412 }
26413
26414 _ACEOF
26415
26416
26417
26418 cat - <<_ACEOF >conftest.h
26419
26420 _ACEOF
26421
26422
26423 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26424 echo "obj-m := conftest.o" >build/Makefile
26425 modpost_flag=''
26426 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26427 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26429 (eval $ac_try) 2>&5
26430 ac_status=$?
26431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26432 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26434 (eval $ac_try) 2>&5
26435 ac_status=$?
26436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26437 test $ac_status = 0; }; }; then :
26438
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26440 $as_echo "yes" >&6; }
26441
26442 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
26443
26444
26445 else
26446 $as_echo "$as_me: failed program was:" >&5
26447 sed 's/^/| /' conftest.$ac_ext >&5
26448
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26450 $as_echo "no" >&6; }
26451
26452
26453
26454 fi
26455 rm -Rf build
26456
26457
26458
26459
26460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_umask exists" >&5
26461 $as_echo_n "checking whether current_umask exists... " >&6; }
26462
26463
26464 cat confdefs.h - <<_ACEOF >conftest.c
26465
26466
26467 #include <linux/fs.h>
26468
26469 int
26470 main (void)
26471 {
26472
26473 current_umask();
26474
26475 ;
26476 return 0;
26477 }
26478
26479 _ACEOF
26480
26481
26482
26483 cat - <<_ACEOF >conftest.h
26484
26485 _ACEOF
26486
26487
26488 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26489 echo "obj-m := conftest.o" >build/Makefile
26490 modpost_flag=''
26491 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26492 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26494 (eval $ac_try) 2>&5
26495 ac_status=$?
26496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26497 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26499 (eval $ac_try) 2>&5
26500 ac_status=$?
26501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26502 test $ac_status = 0; }; }; then :
26503
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26505 $as_echo "yes" >&6; }
26506
26507 $as_echo "#define HAVE_CURRENT_UMASK 1" >>confdefs.h
26508
26509
26510 else
26511 $as_echo "$as_me: failed program was:" >&5
26512 sed 's/^/| /' conftest.$ac_ext >&5
26513
26514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26515 $as_echo "no" >&6; }
26516
26517
26518
26519 fi
26520 rm -Rf build
26521
26522
26523
26524
26525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
26526 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
26527
26528
26529
26530 cat confdefs.h - <<_ACEOF >conftest.c
26531
26532
26533 #include <linux/fs.h>
26534
26535 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
26536 static struct super_operations sops __attribute__ ((unused)) = {
26537 .show_options = show_options,
26538 };
26539
26540 int
26541 main (void)
26542 {
26543
26544
26545 ;
26546 return 0;
26547 }
26548
26549 _ACEOF
26550
26551
26552
26553 cat - <<_ACEOF >conftest.h
26554
26555 _ACEOF
26556
26557
26558 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26559 echo "obj-m := conftest.o" >build/Makefile
26560 modpost_flag=''
26561 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26562 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26564 (eval $ac_try) 2>&5
26565 ac_status=$?
26566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26567 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26569 (eval $ac_try) 2>&5
26570 ac_status=$?
26571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26572 test $ac_status = 0; }; }; then :
26573
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26575 $as_echo "yes" >&6; }
26576
26577 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
26578
26579
26580 else
26581 $as_echo "$as_me: failed program was:" >&5
26582 sed 's/^/| /' conftest.$ac_ext >&5
26583
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26585 $as_echo "no" >&6; }
26586
26587
26588
26589 fi
26590 rm -Rf build
26591
26592
26593
26594
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
26596 $as_echo_n "checking whether file_inode() is available... " >&6; }
26597
26598
26599 cat confdefs.h - <<_ACEOF >conftest.c
26600
26601
26602 #include <linux/fs.h>
26603
26604 int
26605 main (void)
26606 {
26607
26608 struct file *f = NULL;
26609 file_inode(f);
26610
26611 ;
26612 return 0;
26613 }
26614
26615 _ACEOF
26616
26617
26618
26619 cat - <<_ACEOF >conftest.h
26620
26621 _ACEOF
26622
26623
26624 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26625 echo "obj-m := conftest.o" >build/Makefile
26626 modpost_flag=''
26627 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26628 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26630 (eval $ac_try) 2>&5
26631 ac_status=$?
26632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26633 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26635 (eval $ac_try) 2>&5
26636 ac_status=$?
26637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26638 test $ac_status = 0; }; }; then :
26639
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26641 $as_echo "yes" >&6; }
26642
26643 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
26644
26645
26646 else
26647 $as_echo "$as_me: failed program was:" >&5
26648 sed 's/^/| /' conftest.$ac_ext >&5
26649
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26651 $as_echo "no" >&6; }
26652
26653
26654
26655 fi
26656 rm -Rf build
26657
26658
26659
26660
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
26662 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
26663
26664
26665
26666 cat confdefs.h - <<_ACEOF >conftest.c
26667
26668
26669 #include <linux/fs.h>
26670
26671 int test_fsync(struct file *f, struct dentry *dentry, int x)
26672 { return 0; }
26673
26674 static const struct file_operations
26675 fops __attribute__ ((unused)) = {
26676 .fsync = test_fsync,
26677 };
26678
26679 int
26680 main (void)
26681 {
26682
26683
26684 ;
26685 return 0;
26686 }
26687
26688 _ACEOF
26689
26690
26691
26692 cat - <<_ACEOF >conftest.h
26693
26694 _ACEOF
26695
26696
26697 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26698 echo "obj-m := conftest.o" >build/Makefile
26699 modpost_flag=''
26700 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26701 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26703 (eval $ac_try) 2>&5
26704 ac_status=$?
26705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26706 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26708 (eval $ac_try) 2>&5
26709 ac_status=$?
26710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26711 test $ac_status = 0; }; }; then :
26712
26713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
26714 $as_echo "dentry" >&6; }
26715
26716 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
26717
26718
26719 else
26720 $as_echo "$as_me: failed program was:" >&5
26721 sed 's/^/| /' conftest.$ac_ext >&5
26722
26723
26724
26725
26726 fi
26727 rm -Rf build
26728
26729
26730
26731
26732
26733
26734 cat confdefs.h - <<_ACEOF >conftest.c
26735
26736
26737 #include <linux/fs.h>
26738
26739 int test_fsync(struct file *f, int x) { return 0; }
26740
26741 static const struct file_operations
26742 fops __attribute__ ((unused)) = {
26743 .fsync = test_fsync,
26744 };
26745
26746 int
26747 main (void)
26748 {
26749
26750
26751 ;
26752 return 0;
26753 }
26754
26755 _ACEOF
26756
26757
26758
26759 cat - <<_ACEOF >conftest.h
26760
26761 _ACEOF
26762
26763
26764 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26765 echo "obj-m := conftest.o" >build/Makefile
26766 modpost_flag=''
26767 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26768 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26770 (eval $ac_try) 2>&5
26771 ac_status=$?
26772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26773 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26775 (eval $ac_try) 2>&5
26776 ac_status=$?
26777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26778 test $ac_status = 0; }; }; then :
26779
26780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
26781 $as_echo "no dentry" >&6; }
26782
26783 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
26784
26785
26786 else
26787 $as_echo "$as_me: failed program was:" >&5
26788 sed 's/^/| /' conftest.$ac_ext >&5
26789
26790
26791
26792
26793 fi
26794 rm -Rf build
26795
26796
26797
26798
26799
26800
26801 cat confdefs.h - <<_ACEOF >conftest.c
26802
26803
26804 #include <linux/fs.h>
26805
26806 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
26807 { return 0; }
26808
26809 static const struct file_operations
26810 fops __attribute__ ((unused)) = {
26811 .fsync = test_fsync,
26812 };
26813
26814 int
26815 main (void)
26816 {
26817
26818
26819 ;
26820 return 0;
26821 }
26822
26823 _ACEOF
26824
26825
26826
26827 cat - <<_ACEOF >conftest.h
26828
26829 _ACEOF
26830
26831
26832 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26833 echo "obj-m := conftest.o" >build/Makefile
26834 modpost_flag=''
26835 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26836 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26838 (eval $ac_try) 2>&5
26839 ac_status=$?
26840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26841 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26843 (eval $ac_try) 2>&5
26844 ac_status=$?
26845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26846 test $ac_status = 0; }; }; then :
26847
26848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
26849 $as_echo "range" >&6; }
26850
26851 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
26852
26853
26854 else
26855 $as_echo "$as_me: failed program was:" >&5
26856 sed 's/^/| /' conftest.$ac_ext >&5
26857
26858
26859
26860
26861 fi
26862 rm -Rf build
26863
26864
26865
26866
26867
26868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
26869 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
26870
26871
26872 cat confdefs.h - <<_ACEOF >conftest.c
26873
26874
26875 #include <linux/fs.h>
26876 void evict_inode (struct inode * t) { return; }
26877 static struct super_operations sops __attribute__ ((unused)) = {
26878 .evict_inode = evict_inode,
26879 };
26880
26881 int
26882 main (void)
26883 {
26884
26885
26886 ;
26887 return 0;
26888 }
26889
26890 _ACEOF
26891
26892
26893
26894 cat - <<_ACEOF >conftest.h
26895
26896 _ACEOF
26897
26898
26899 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26900 echo "obj-m := conftest.o" >build/Makefile
26901 modpost_flag=''
26902 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26903 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26905 (eval $ac_try) 2>&5
26906 ac_status=$?
26907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26908 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26910 (eval $ac_try) 2>&5
26911 ac_status=$?
26912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26913 test $ac_status = 0; }; }; then :
26914
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26916 $as_echo "yes" >&6; }
26917
26918 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
26919
26920
26921 else
26922 $as_echo "$as_me: failed program was:" >&5
26923 sed 's/^/| /' conftest.$ac_ext >&5
26924
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26926 $as_echo "no" >&6; }
26927
26928
26929
26930 fi
26931 rm -Rf build
26932
26933
26934
26935
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
26937 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
26938
26939
26940 cat confdefs.h - <<_ACEOF >conftest.c
26941
26942
26943 #include <linux/fs.h>
26944
26945 void dirty_inode(struct inode *a, int b) { return; }
26946
26947 static const struct super_operations
26948 sops __attribute__ ((unused)) = {
26949 .dirty_inode = dirty_inode,
26950 };
26951
26952 int
26953 main (void)
26954 {
26955
26956
26957 ;
26958 return 0;
26959 }
26960
26961 _ACEOF
26962
26963
26964
26965 cat - <<_ACEOF >conftest.h
26966
26967 _ACEOF
26968
26969
26970 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26971 echo "obj-m := conftest.o" >build/Makefile
26972 modpost_flag=''
26973 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26974 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26976 (eval $ac_try) 2>&5
26977 ac_status=$?
26978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26979 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26981 (eval $ac_try) 2>&5
26982 ac_status=$?
26983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26984 test $ac_status = 0; }; }; then :
26985
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26987 $as_echo "yes" >&6; }
26988
26989 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
26990
26991
26992 else
26993 $as_echo "$as_me: failed program was:" >&5
26994 sed 's/^/| /' conftest.$ac_ext >&5
26995
26996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26997 $as_echo "no" >&6; }
26998
26999
27000
27001 fi
27002 rm -Rf build
27003
27004
27005
27006
27007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
27008 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
27009
27010
27011 cat confdefs.h - <<_ACEOF >conftest.c
27012
27013
27014 #include <linux/fs.h>
27015
27016 int nr_cached_objects(struct super_block *sb) { return 0; }
27017
27018 static const struct super_operations
27019 sops __attribute__ ((unused)) = {
27020 .nr_cached_objects = nr_cached_objects,
27021 };
27022
27023 int
27024 main (void)
27025 {
27026
27027
27028 ;
27029 return 0;
27030 }
27031
27032 _ACEOF
27033
27034
27035
27036 cat - <<_ACEOF >conftest.h
27037
27038 _ACEOF
27039
27040
27041 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27042 echo "obj-m := conftest.o" >build/Makefile
27043 modpost_flag=''
27044 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27045 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27047 (eval $ac_try) 2>&5
27048 ac_status=$?
27049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27050 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27052 (eval $ac_try) 2>&5
27053 ac_status=$?
27054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27055 test $ac_status = 0; }; }; then :
27056
27057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27058 $as_echo "yes" >&6; }
27059
27060 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
27061
27062
27063 else
27064 $as_echo "$as_me: failed program was:" >&5
27065 sed 's/^/| /' conftest.$ac_ext >&5
27066
27067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27068 $as_echo "no" >&6; }
27069
27070
27071
27072 fi
27073 rm -Rf build
27074
27075
27076
27077
27078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
27079 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
27080
27081
27082 cat confdefs.h - <<_ACEOF >conftest.c
27083
27084
27085 #include <linux/fs.h>
27086
27087 void free_cached_objects(struct super_block *sb, int x)
27088 { return; }
27089
27090 static const struct super_operations
27091 sops __attribute__ ((unused)) = {
27092 .free_cached_objects = free_cached_objects,
27093 };
27094
27095 int
27096 main (void)
27097 {
27098
27099
27100 ;
27101 return 0;
27102 }
27103
27104 _ACEOF
27105
27106
27107
27108 cat - <<_ACEOF >conftest.h
27109
27110 _ACEOF
27111
27112
27113 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27114 echo "obj-m := conftest.o" >build/Makefile
27115 modpost_flag=''
27116 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27117 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27119 (eval $ac_try) 2>&5
27120 ac_status=$?
27121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27122 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27124 (eval $ac_try) 2>&5
27125 ac_status=$?
27126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27127 test $ac_status = 0; }; }; then :
27128
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27130 $as_echo "yes" >&6; }
27131
27132 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
27133
27134
27135 else
27136 $as_echo "$as_me: failed program was:" >&5
27137 sed 's/^/| /' conftest.$ac_ext >&5
27138
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27140 $as_echo "no" >&6; }
27141
27142
27143
27144 fi
27145 rm -Rf build
27146
27147
27148
27149
27150
27151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
27152 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
27153
27154
27155 cat confdefs.h - <<_ACEOF >conftest.c
27156
27157
27158 #include <linux/fs.h>
27159
27160 long test_fallocate(struct file *file, int mode,
27161 loff_t offset, loff_t len) { return 0; }
27162
27163 static const struct file_operations
27164 fops __attribute__ ((unused)) = {
27165 .fallocate = test_fallocate,
27166 };
27167
27168 int
27169 main (void)
27170 {
27171
27172
27173 ;
27174 return 0;
27175 }
27176
27177 _ACEOF
27178
27179
27180
27181 cat - <<_ACEOF >conftest.h
27182
27183 _ACEOF
27184
27185
27186 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27187 echo "obj-m := conftest.o" >build/Makefile
27188 modpost_flag=''
27189 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27190 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27192 (eval $ac_try) 2>&5
27193 ac_status=$?
27194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27195 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27197 (eval $ac_try) 2>&5
27198 ac_status=$?
27199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27200 test $ac_status = 0; }; }; then :
27201
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27203 $as_echo "yes" >&6; }
27204
27205 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
27206
27207
27208 else
27209 $as_echo "$as_me: failed program was:" >&5
27210 sed 's/^/| /' conftest.$ac_ext >&5
27211
27212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27213 $as_echo "no" >&6; }
27214
27215
27216
27217 fi
27218 rm -Rf build
27219
27220
27221
27222
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
27224 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
27225
27226
27227 cat confdefs.h - <<_ACEOF >conftest.c
27228
27229
27230 #include <linux/fs.h>
27231
27232 long test_fallocate(struct inode *inode, int mode,
27233 loff_t offset, loff_t len) { return 0; }
27234
27235 static const struct inode_operations
27236 fops __attribute__ ((unused)) = {
27237 .fallocate = test_fallocate,
27238 };
27239
27240 int
27241 main (void)
27242 {
27243
27244
27245 ;
27246 return 0;
27247 }
27248
27249 _ACEOF
27250
27251
27252
27253 cat - <<_ACEOF >conftest.h
27254
27255 _ACEOF
27256
27257
27258 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27259 echo "obj-m := conftest.o" >build/Makefile
27260 modpost_flag=''
27261 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27262 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27264 (eval $ac_try) 2>&5
27265 ac_status=$?
27266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27267 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27269 (eval $ac_try) 2>&5
27270 ac_status=$?
27271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27272 test $ac_status = 0; }; }; then :
27273
27274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27275 $as_echo "yes" >&6; }
27276
27277 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
27278
27279
27280 else
27281 $as_echo "$as_me: failed program was:" >&5
27282 sed 's/^/| /' conftest.$ac_ext >&5
27283
27284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27285 $as_echo "no" >&6; }
27286
27287
27288
27289 fi
27290 rm -Rf build
27291
27292
27293
27294
27295
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
27297 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
27298
27299
27300 cat confdefs.h - <<_ACEOF >conftest.c
27301
27302
27303 #include <linux/fs.h>
27304
27305 int mkdir(struct inode *inode, struct dentry *dentry,
27306 umode_t umode) { return 0; }
27307
27308 static const struct inode_operations
27309 iops __attribute__ ((unused)) = {
27310 .mkdir = mkdir,
27311 };
27312
27313 int
27314 main (void)
27315 {
27316
27317
27318 ;
27319 return 0;
27320 }
27321
27322 _ACEOF
27323
27324
27325
27326 cat - <<_ACEOF >conftest.h
27327
27328 _ACEOF
27329
27330
27331 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27332 echo "obj-m := conftest.o" >build/Makefile
27333 modpost_flag=''
27334 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27335 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27337 (eval $ac_try) 2>&5
27338 ac_status=$?
27339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27340 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27342 (eval $ac_try) 2>&5
27343 ac_status=$?
27344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27345 test $ac_status = 0; }; }; then :
27346
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27348 $as_echo "yes" >&6; }
27349
27350 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
27351
27352
27353 else
27354 $as_echo "$as_me: failed program was:" >&5
27355 sed 's/^/| /' conftest.$ac_ext >&5
27356
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27358 $as_echo "no" >&6; }
27359
27360
27361
27362 fi
27363 rm -Rf build
27364
27365
27366
27367
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() takes struct nameidata" >&5
27369 $as_echo_n "checking whether iops->lookup() takes struct nameidata... " >&6; }
27370
27371
27372 cat confdefs.h - <<_ACEOF >conftest.c
27373
27374
27375 #include <linux/fs.h>
27376
27377 struct dentry *inode_lookup(struct inode *inode,
27378 struct dentry *dentry, struct nameidata *nidata)
27379 { return NULL; }
27380
27381 static const struct inode_operations iops
27382 __attribute__ ((unused)) = {
27383 .lookup = inode_lookup,
27384 };
27385
27386 int
27387 main (void)
27388 {
27389
27390
27391 ;
27392 return 0;
27393 }
27394
27395 _ACEOF
27396
27397
27398
27399 cat - <<_ACEOF >conftest.h
27400
27401 _ACEOF
27402
27403
27404 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27405 echo "obj-m := conftest.o" >build/Makefile
27406 modpost_flag=''
27407 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27408 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27410 (eval $ac_try) 2>&5
27411 ac_status=$?
27412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27413 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27415 (eval $ac_try) 2>&5
27416 ac_status=$?
27417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27418 test $ac_status = 0; }; }; then :
27419
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27421 $as_echo "yes" >&6; }
27422
27423 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
27424
27425
27426 else
27427 $as_echo "$as_me: failed program was:" >&5
27428 sed 's/^/| /' conftest.$ac_ext >&5
27429
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27431 $as_echo "no" >&6; }
27432
27433
27434
27435 fi
27436 rm -Rf build
27437
27438
27439
27440
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() takes struct nameidata" >&5
27442 $as_echo_n "checking whether iops->create() takes struct nameidata... " >&6; }
27443
27444
27445 cat confdefs.h - <<_ACEOF >conftest.c
27446
27447
27448 #include <linux/fs.h>
27449
27450 #ifdef HAVE_MKDIR_UMODE_T
27451 int inode_create(struct inode *inode ,struct dentry *dentry,
27452 umode_t umode, struct nameidata *nidata) { return 0; }
27453 #else
27454 int inode_create(struct inode *inode,struct dentry *dentry,
27455 int umode, struct nameidata * nidata) { return 0; }
27456 #endif
27457
27458 static const struct inode_operations
27459 iops __attribute__ ((unused)) = {
27460 .create = inode_create,
27461 };
27462
27463 int
27464 main (void)
27465 {
27466
27467
27468 ;
27469 return 0;
27470 }
27471
27472 _ACEOF
27473
27474
27475
27476 cat - <<_ACEOF >conftest.h
27477
27478 _ACEOF
27479
27480
27481 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27482 echo "obj-m := conftest.o" >build/Makefile
27483 modpost_flag=''
27484 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27485 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27487 (eval $ac_try) 2>&5
27488 ac_status=$?
27489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27490 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27492 (eval $ac_try) 2>&5
27493 ac_status=$?
27494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27495 test $ac_status = 0; }; }; then :
27496
27497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27498 $as_echo "yes" >&6; }
27499
27500 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
27501
27502
27503 else
27504 $as_echo "$as_me: failed program was:" >&5
27505 sed 's/^/| /' conftest.$ac_ext >&5
27506
27507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27508 $as_echo "no" >&6; }
27509
27510
27511
27512 fi
27513 rm -Rf build
27514
27515
27516
27517
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
27519 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
27520
27521
27522 cat confdefs.h - <<_ACEOF >conftest.c
27523
27524
27525 #include <linux/fs.h>
27526 void truncate_range(struct inode *inode, loff_t start,
27527 loff_t end) { return; }
27528 static struct inode_operations iops __attribute__ ((unused)) = {
27529 .truncate_range = truncate_range,
27530 };
27531
27532 int
27533 main (void)
27534 {
27535
27536
27537 ;
27538 return 0;
27539 }
27540
27541 _ACEOF
27542
27543
27544
27545 cat - <<_ACEOF >conftest.h
27546
27547 _ACEOF
27548
27549
27550 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27551 echo "obj-m := conftest.o" >build/Makefile
27552 modpost_flag=''
27553 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27554 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27556 (eval $ac_try) 2>&5
27557 ac_status=$?
27558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27559 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27561 (eval $ac_try) 2>&5
27562 ac_status=$?
27563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27564 test $ac_status = 0; }; }; then :
27565
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27567 $as_echo "yes" >&6; }
27568
27569 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
27570
27571
27572 else
27573 $as_echo "$as_me: failed program was:" >&5
27574 sed 's/^/| /' conftest.$ac_ext >&5
27575
27576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27577 $as_echo "no" >&6; }
27578
27579
27580
27581 fi
27582 rm -Rf build
27583
27584
27585
27586
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
27588 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
27589
27590
27591 cat confdefs.h - <<_ACEOF >conftest.c
27592
27593
27594 #include <linux/dcache.h>
27595 struct vfsmount *d_automount(struct path *p) { return NULL; }
27596 struct dentry_operations dops __attribute__ ((unused)) = {
27597 .d_automount = d_automount,
27598 };
27599
27600 int
27601 main (void)
27602 {
27603
27604
27605 ;
27606 return 0;
27607 }
27608
27609 _ACEOF
27610
27611
27612
27613 cat - <<_ACEOF >conftest.h
27614
27615 _ACEOF
27616
27617
27618 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27619 echo "obj-m := conftest.o" >build/Makefile
27620 modpost_flag=''
27621 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27622 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27624 (eval $ac_try) 2>&5
27625 ac_status=$?
27626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27627 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
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; }; }; then :
27633
27634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27635 $as_echo "yes" >&6; }
27636
27637 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
27638
27639
27640 else
27641 $as_echo "$as_me: failed program was:" >&5
27642 sed 's/^/| /' conftest.$ac_ext >&5
27643
27644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27645 $as_echo "no" >&6; }
27646
27647
27648
27649 fi
27650 rm -Rf build
27651
27652
27653
27654
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
27656 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
27657
27658
27659 cat confdefs.h - <<_ACEOF >conftest.c
27660
27661
27662 #include <linux/exportfs.h>
27663 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
27664 struct inode *parent) { return 0; }
27665 static struct export_operations eops __attribute__ ((unused))={
27666 .encode_fh = encode_fh,
27667 };
27668
27669 int
27670 main (void)
27671 {
27672
27673
27674 ;
27675 return 0;
27676 }
27677
27678 _ACEOF
27679
27680
27681
27682 cat - <<_ACEOF >conftest.h
27683
27684 _ACEOF
27685
27686
27687 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27688 echo "obj-m := conftest.o" >build/Makefile
27689 modpost_flag=''
27690 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27691 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27693 (eval $ac_try) 2>&5
27694 ac_status=$?
27695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27696 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27698 (eval $ac_try) 2>&5
27699 ac_status=$?
27700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27701 test $ac_status = 0; }; }; then :
27702
27703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27704 $as_echo "yes" >&6; }
27705
27706 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
27707
27708
27709 else
27710 $as_echo "$as_me: failed program was:" >&5
27711 sed 's/^/| /' conftest.$ac_ext >&5
27712
27713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27714 $as_echo "no" >&6; }
27715
27716
27717
27718 fi
27719 rm -Rf build
27720
27721
27722
27723
27724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
27725 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
27726
27727
27728 cat confdefs.h - <<_ACEOF >conftest.c
27729
27730
27731 #include <linux/exportfs.h>
27732 int commit_metadata(struct inode *inode) { return 0; }
27733 static struct export_operations eops __attribute__ ((unused))={
27734 .commit_metadata = commit_metadata,
27735 };
27736
27737 int
27738 main (void)
27739 {
27740
27741
27742 ;
27743 return 0;
27744 }
27745
27746 _ACEOF
27747
27748
27749
27750 cat - <<_ACEOF >conftest.h
27751
27752 _ACEOF
27753
27754
27755 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27756 echo "obj-m := conftest.o" >build/Makefile
27757 modpost_flag=''
27758 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27759 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27761 (eval $ac_try) 2>&5
27762 ac_status=$?
27763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27764 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27766 (eval $ac_try) 2>&5
27767 ac_status=$?
27768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27769 test $ac_status = 0; }; }; then :
27770
27771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27772 $as_echo "yes" >&6; }
27773
27774 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
27775
27776
27777 else
27778 $as_echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27780
27781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27782 $as_echo "no" >&6; }
27783
27784
27785
27786 fi
27787 rm -Rf build
27788
27789
27790
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
27792 $as_echo_n "checking whether clear_inode() is available... " >&6; }
27793
27794
27795
27796 cat confdefs.h - <<_ACEOF >conftest.c
27797
27798
27799 #include <linux/fs.h>
27800
27801 int
27802 main (void)
27803 {
27804
27805 clear_inode(NULL);
27806
27807 ;
27808 return 0;
27809 }
27810
27811 _ACEOF
27812
27813
27814
27815 cat - <<_ACEOF >conftest.h
27816
27817 _ACEOF
27818
27819
27820 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27821 echo "obj-m := conftest.o" >build/Makefile
27822 modpost_flag=''
27823 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27824 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27826 (eval $ac_try) 2>&5
27827 ac_status=$?
27828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27829 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27831 (eval $ac_try) 2>&5
27832 ac_status=$?
27833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27834 test $ac_status = 0; }; }; then :
27835 rc=0
27836 else
27837 $as_echo "$as_me: failed program was:" >&5
27838 sed 's/^/| /' conftest.$ac_ext >&5
27839 rc=1
27840
27841
27842 fi
27843 rm -Rf build
27844
27845
27846 if test $rc -ne 0; then :
27847
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27849 $as_echo "no" >&6; }
27850
27851 else
27852 if test "x$enable_linux_builtin" != xyes; then
27853
27854 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
27855 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
27856 rc=$?
27857 if test $rc -ne 0; then
27858 export=0
27859 for file in fs/inode.c; do
27860 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
27861 "$LINUX/$file" 2>/dev/null
27862 rc=$?
27863 if test $rc -eq 0; then
27864 export=1
27865 break;
27866 fi
27867 done
27868 if test $export -eq 0; then :
27869 rc=1
27870 else :
27871 rc=0
27872 fi
27873 else :
27874 rc=0
27875 fi
27876
27877 fi
27878 if test $rc -ne 0; then :
27879
27880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27881 $as_echo "no" >&6; }
27882
27883 else :
27884
27885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27886 $as_echo "yes" >&6; }
27887
27888 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
27889
27890
27891 fi
27892 fi
27893
27894
27895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
27896 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
27897
27898
27899
27900 cat confdefs.h - <<_ACEOF >conftest.c
27901
27902
27903 #include <linux/fs.h>
27904
27905 int
27906 main (void)
27907 {
27908
27909 insert_inode_locked(NULL);
27910
27911 ;
27912 return 0;
27913 }
27914
27915 _ACEOF
27916
27917
27918
27919 cat - <<_ACEOF >conftest.h
27920
27921 _ACEOF
27922
27923
27924 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27925 echo "obj-m := conftest.o" >build/Makefile
27926 modpost_flag=''
27927 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27928 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27930 (eval $ac_try) 2>&5
27931 ac_status=$?
27932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27933 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27935 (eval $ac_try) 2>&5
27936 ac_status=$?
27937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27938 test $ac_status = 0; }; }; then :
27939 rc=0
27940 else
27941 $as_echo "$as_me: failed program was:" >&5
27942 sed 's/^/| /' conftest.$ac_ext >&5
27943 rc=1
27944
27945
27946 fi
27947 rm -Rf build
27948
27949
27950 if test $rc -ne 0; then :
27951
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27953 $as_echo "no" >&6; }
27954
27955 else
27956 if test "x$enable_linux_builtin" != xyes; then
27957
27958 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
27959 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
27960 rc=$?
27961 if test $rc -ne 0; then
27962 export=0
27963 for file in fs/inode.c; do
27964 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
27965 "$LINUX/$file" 2>/dev/null
27966 rc=$?
27967 if test $rc -eq 0; then
27968 export=1
27969 break;
27970 fi
27971 done
27972 if test $export -eq 0; then :
27973 rc=1
27974 else :
27975 rc=0
27976 fi
27977 else :
27978 rc=0
27979 fi
27980
27981 fi
27982 if test $rc -ne 0; then :
27983
27984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27985 $as_echo "no" >&6; }
27986
27987 else :
27988
27989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27990 $as_echo "yes" >&6; }
27991
27992 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
27993
27994
27995 fi
27996 fi
27997
27998
27999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
28000 $as_echo_n "checking whether d_make_root() is available... " >&6; }
28001
28002
28003
28004 cat confdefs.h - <<_ACEOF >conftest.c
28005
28006
28007 #include <linux/dcache.h>
28008
28009 int
28010 main (void)
28011 {
28012
28013 d_make_root(NULL);
28014
28015 ;
28016 return 0;
28017 }
28018
28019 _ACEOF
28020
28021
28022
28023 cat - <<_ACEOF >conftest.h
28024
28025 _ACEOF
28026
28027
28028 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28029 echo "obj-m := conftest.o" >build/Makefile
28030 modpost_flag=''
28031 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28032 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28034 (eval $ac_try) 2>&5
28035 ac_status=$?
28036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28037 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28039 (eval $ac_try) 2>&5
28040 ac_status=$?
28041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28042 test $ac_status = 0; }; }; then :
28043 rc=0
28044 else
28045 $as_echo "$as_me: failed program was:" >&5
28046 sed 's/^/| /' conftest.$ac_ext >&5
28047 rc=1
28048
28049
28050 fi
28051 rm -Rf build
28052
28053
28054 if test $rc -ne 0; then :
28055
28056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28057 $as_echo "no" >&6; }
28058
28059 else
28060 if test "x$enable_linux_builtin" != xyes; then
28061
28062 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
28063 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28064 rc=$?
28065 if test $rc -ne 0; then
28066 export=0
28067 for file in fs/dcache.c; do
28068 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
28069 "$LINUX/$file" 2>/dev/null
28070 rc=$?
28071 if test $rc -eq 0; then
28072 export=1
28073 break;
28074 fi
28075 done
28076 if test $export -eq 0; then :
28077 rc=1
28078 else :
28079 rc=0
28080 fi
28081 else :
28082 rc=0
28083 fi
28084
28085 fi
28086 if test $rc -ne 0; then :
28087
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28089 $as_echo "no" >&6; }
28090
28091 else :
28092
28093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28094 $as_echo "yes" >&6; }
28095
28096 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
28097
28098
28099 fi
28100 fi
28101
28102
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
28104 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
28105
28106
28107
28108 cat confdefs.h - <<_ACEOF >conftest.c
28109
28110
28111 #include <linux/dcache.h>
28112
28113 int
28114 main (void)
28115 {
28116
28117 d_obtain_alias(NULL);
28118
28119 ;
28120 return 0;
28121 }
28122
28123 _ACEOF
28124
28125
28126
28127 cat - <<_ACEOF >conftest.h
28128
28129 _ACEOF
28130
28131
28132 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28133 echo "obj-m := conftest.o" >build/Makefile
28134 modpost_flag=''
28135 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28136 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28138 (eval $ac_try) 2>&5
28139 ac_status=$?
28140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28141 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28143 (eval $ac_try) 2>&5
28144 ac_status=$?
28145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28146 test $ac_status = 0; }; }; then :
28147 rc=0
28148 else
28149 $as_echo "$as_me: failed program was:" >&5
28150 sed 's/^/| /' conftest.$ac_ext >&5
28151 rc=1
28152
28153
28154 fi
28155 rm -Rf build
28156
28157
28158 if test $rc -ne 0; then :
28159
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28161 $as_echo "no" >&6; }
28162
28163 else
28164 if test "x$enable_linux_builtin" != xyes; then
28165
28166 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
28167 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28168 rc=$?
28169 if test $rc -ne 0; then
28170 export=0
28171 for file in fs/dcache.c; do
28172 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
28173 "$LINUX/$file" 2>/dev/null
28174 rc=$?
28175 if test $rc -eq 0; then
28176 export=1
28177 break;
28178 fi
28179 done
28180 if test $export -eq 0; then :
28181 rc=1
28182 else :
28183 rc=0
28184 fi
28185 else :
28186 rc=0
28187 fi
28188
28189 fi
28190 if test $rc -ne 0; then :
28191
28192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28193 $as_echo "no" >&6; }
28194
28195 else :
28196
28197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28198 $as_echo "yes" >&6; }
28199
28200 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
28201
28202
28203 fi
28204 fi
28205
28206
28207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
28208 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
28209
28210
28211
28212 cat confdefs.h - <<_ACEOF >conftest.c
28213
28214
28215 #include <linux/dcache.h>
28216
28217 int
28218 main (void)
28219 {
28220
28221 struct inode *ip = NULL;
28222 d_prune_aliases(ip);
28223
28224 ;
28225 return 0;
28226 }
28227
28228 _ACEOF
28229
28230
28231
28232 cat - <<_ACEOF >conftest.h
28233
28234 _ACEOF
28235
28236
28237 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28238 echo "obj-m := conftest.o" >build/Makefile
28239 modpost_flag=''
28240 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28241 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28243 (eval $ac_try) 2>&5
28244 ac_status=$?
28245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28246 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28248 (eval $ac_try) 2>&5
28249 ac_status=$?
28250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28251 test $ac_status = 0; }; }; then :
28252 rc=0
28253 else
28254 $as_echo "$as_me: failed program was:" >&5
28255 sed 's/^/| /' conftest.$ac_ext >&5
28256 rc=1
28257
28258
28259 fi
28260 rm -Rf build
28261
28262
28263 if test $rc -ne 0; then :
28264
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28266 $as_echo "no" >&6; }
28267
28268 else
28269 if test "x$enable_linux_builtin" != xyes; then
28270
28271 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
28272 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28273 rc=$?
28274 if test $rc -ne 0; then
28275 export=0
28276 for file in fs/dcache.c; do
28277 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
28278 "$LINUX/$file" 2>/dev/null
28279 rc=$?
28280 if test $rc -eq 0; then
28281 export=1
28282 break;
28283 fi
28284 done
28285 if test $export -eq 0; then :
28286 rc=1
28287 else :
28288 rc=0
28289 fi
28290 else :
28291 rc=0
28292 fi
28293
28294 fi
28295 if test $rc -ne 0; then :
28296
28297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28298 $as_echo "no" >&6; }
28299
28300 else :
28301
28302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28303 $as_echo "yes" >&6; }
28304
28305 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
28306
28307
28308 fi
28309 fi
28310
28311
28312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
28313 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
28314
28315
28316
28317 cat confdefs.h - <<_ACEOF >conftest.c
28318
28319
28320 #include <linux/dcache.h>
28321
28322 int
28323 main (void)
28324 {
28325
28326 d_set_d_op(NULL, NULL);
28327
28328 ;
28329 return 0;
28330 }
28331
28332 _ACEOF
28333
28334
28335
28336 cat - <<_ACEOF >conftest.h
28337
28338 _ACEOF
28339
28340
28341 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28342 echo "obj-m := conftest.o" >build/Makefile
28343 modpost_flag=''
28344 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28345 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28347 (eval $ac_try) 2>&5
28348 ac_status=$?
28349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28350 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28352 (eval $ac_try) 2>&5
28353 ac_status=$?
28354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28355 test $ac_status = 0; }; }; then :
28356 rc=0
28357 else
28358 $as_echo "$as_me: failed program was:" >&5
28359 sed 's/^/| /' conftest.$ac_ext >&5
28360 rc=1
28361
28362
28363 fi
28364 rm -Rf build
28365
28366
28367 if test $rc -ne 0; then :
28368
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28370 $as_echo "no" >&6; }
28371
28372 else
28373 if test "x$enable_linux_builtin" != xyes; then
28374
28375 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
28376 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28377 rc=$?
28378 if test $rc -ne 0; then
28379 export=0
28380 for file in fs/dcache.c; do
28381 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
28382 "$LINUX/$file" 2>/dev/null
28383 rc=$?
28384 if test $rc -eq 0; then
28385 export=1
28386 break;
28387 fi
28388 done
28389 if test $export -eq 0; then :
28390 rc=1
28391 else :
28392 rc=0
28393 fi
28394 else :
28395 rc=0
28396 fi
28397
28398 fi
28399 if test $rc -ne 0; then :
28400
28401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28402 $as_echo "no" >&6; }
28403
28404 else :
28405
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28407 $as_echo "yes" >&6; }
28408
28409 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
28410
28411
28412 fi
28413 fi
28414
28415
28416
28417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
28418 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
28419
28420
28421 cat confdefs.h - <<_ACEOF >conftest.c
28422
28423
28424 #include <linux/dcache.h>
28425
28426 int revalidate (struct dentry *dentry,
28427 struct nameidata *nidata) { return 0; }
28428
28429 static const struct dentry_operations
28430 dops __attribute__ ((unused)) = {
28431 .d_revalidate = revalidate,
28432 };
28433
28434 int
28435 main (void)
28436 {
28437
28438
28439 ;
28440 return 0;
28441 }
28442
28443 _ACEOF
28444
28445
28446
28447 cat - <<_ACEOF >conftest.h
28448
28449 _ACEOF
28450
28451
28452 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28453 echo "obj-m := conftest.o" >build/Makefile
28454 modpost_flag=''
28455 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28456 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28458 (eval $ac_try) 2>&5
28459 ac_status=$?
28460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28461 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28463 (eval $ac_try) 2>&5
28464 ac_status=$?
28465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28466 test $ac_status = 0; }; }; then :
28467
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28469 $as_echo "yes" >&6; }
28470
28471 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
28472
28473
28474 else
28475 $as_echo "$as_me: failed program was:" >&5
28476 sed 's/^/| /' conftest.$ac_ext >&5
28477
28478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28479 $as_echo "no" >&6; }
28480
28481
28482
28483 fi
28484 rm -Rf build
28485
28486
28487
28488
28489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
28490 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
28491
28492
28493 cat confdefs.h - <<_ACEOF >conftest.c
28494
28495
28496 #include <linux/dcache.h>
28497
28498 const struct dentry_operations test_d_op = {
28499 .d_revalidate = NULL,
28500 };
28501
28502 int
28503 main (void)
28504 {
28505
28506 struct dentry d __attribute__ ((unused));
28507
28508 d.d_op = &test_d_op;
28509
28510 ;
28511 return 0;
28512 }
28513
28514 _ACEOF
28515
28516
28517
28518 cat - <<_ACEOF >conftest.h
28519
28520 _ACEOF
28521
28522
28523 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28524 echo "obj-m := conftest.o" >build/Makefile
28525 modpost_flag=''
28526 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28527 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28529 (eval $ac_try) 2>&5
28530 ac_status=$?
28531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28532 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28534 (eval $ac_try) 2>&5
28535 ac_status=$?
28536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28537 test $ac_status = 0; }; }; then :
28538
28539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28540 $as_echo "yes" >&6; }
28541
28542 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
28543
28544
28545 else
28546 $as_echo "$as_me: failed program was:" >&5
28547 sed 's/^/| /' conftest.$ac_ext >&5
28548
28549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28550 $as_echo "no" >&6; }
28551
28552
28553
28554 fi
28555 rm -Rf build
28556
28557
28558
28559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
28560 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
28561
28562
28563
28564 cat confdefs.h - <<_ACEOF >conftest.c
28565
28566
28567 #include <linux/fs.h>
28568
28569 int
28570 main (void)
28571 {
28572
28573 check_disk_size_change(NULL, NULL);
28574
28575 ;
28576 return 0;
28577 }
28578
28579 _ACEOF
28580
28581
28582
28583 cat - <<_ACEOF >conftest.h
28584
28585 _ACEOF
28586
28587
28588 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28589 echo "obj-m := conftest.o" >build/Makefile
28590 modpost_flag=''
28591 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28592 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28594 (eval $ac_try) 2>&5
28595 ac_status=$?
28596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28597 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28599 (eval $ac_try) 2>&5
28600 ac_status=$?
28601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28602 test $ac_status = 0; }; }; then :
28603 rc=0
28604 else
28605 $as_echo "$as_me: failed program was:" >&5
28606 sed 's/^/| /' conftest.$ac_ext >&5
28607 rc=1
28608
28609
28610 fi
28611 rm -Rf build
28612
28613
28614 if test $rc -ne 0; then :
28615
28616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28617 $as_echo "no" >&6; }
28618
28619 else
28620 if test "x$enable_linux_builtin" != xyes; then
28621
28622 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
28623 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28624 rc=$?
28625 if test $rc -ne 0; then
28626 export=0
28627 for file in fs/block_dev.c; do
28628 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
28629 "$LINUX/$file" 2>/dev/null
28630 rc=$?
28631 if test $rc -eq 0; then
28632 export=1
28633 break;
28634 fi
28635 done
28636 if test $export -eq 0; then :
28637 rc=1
28638 else :
28639 rc=0
28640 fi
28641 else :
28642 rc=0
28643 fi
28644
28645 fi
28646 if test $rc -ne 0; then :
28647
28648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28649 $as_echo "no" >&6; }
28650
28651 else :
28652
28653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28654 $as_echo "yes" >&6; }
28655
28656 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
28657
28658
28659 fi
28660 fi
28661
28662
28663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
28664 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
28665
28666
28667
28668 cat confdefs.h - <<_ACEOF >conftest.c
28669
28670
28671 #include <linux/mm.h>
28672
28673 int
28674 main (void)
28675 {
28676
28677 truncate_setsize(NULL, 0);
28678
28679 ;
28680 return 0;
28681 }
28682
28683 _ACEOF
28684
28685
28686
28687 cat - <<_ACEOF >conftest.h
28688
28689 _ACEOF
28690
28691
28692 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28693 echo "obj-m := conftest.o" >build/Makefile
28694 modpost_flag=''
28695 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28696 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28698 (eval $ac_try) 2>&5
28699 ac_status=$?
28700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28701 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28703 (eval $ac_try) 2>&5
28704 ac_status=$?
28705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28706 test $ac_status = 0; }; }; then :
28707 rc=0
28708 else
28709 $as_echo "$as_me: failed program was:" >&5
28710 sed 's/^/| /' conftest.$ac_ext >&5
28711 rc=1
28712
28713
28714 fi
28715 rm -Rf build
28716
28717
28718 if test $rc -ne 0; then :
28719
28720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28721 $as_echo "no" >&6; }
28722
28723 else
28724 if test "x$enable_linux_builtin" != xyes; then
28725
28726 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
28727 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28728 rc=$?
28729 if test $rc -ne 0; then
28730 export=0
28731 for file in mm/truncate.c; do
28732 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
28733 "$LINUX/$file" 2>/dev/null
28734 rc=$?
28735 if test $rc -eq 0; then
28736 export=1
28737 break;
28738 fi
28739 done
28740 if test $export -eq 0; then :
28741 rc=1
28742 else :
28743 rc=0
28744 fi
28745 else :
28746 rc=0
28747 fi
28748
28749 fi
28750 if test $rc -ne 0; then :
28751
28752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28753 $as_echo "no" >&6; }
28754
28755 else :
28756
28757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28758 $as_echo "yes" >&6; }
28759
28760 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
28761
28762
28763 fi
28764 fi
28765
28766
28767
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
28769 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
28770
28771
28772 cat confdefs.h - <<_ACEOF >conftest.c
28773
28774
28775 #include <linux/security.h>
28776
28777 int
28778 main (void)
28779 {
28780
28781 struct inode *ip __attribute__ ((unused)) = NULL;
28782 struct inode *dip __attribute__ ((unused)) = NULL;
28783 const struct qstr *str __attribute__ ((unused)) = NULL;
28784 char *name __attribute__ ((unused)) = NULL;
28785 void *value __attribute__ ((unused)) = NULL;
28786 size_t len __attribute__ ((unused)) = 0;
28787
28788 security_inode_init_security(ip, dip, str, &name, &value, &len);
28789
28790 ;
28791 return 0;
28792 }
28793
28794 _ACEOF
28795
28796
28797
28798 cat - <<_ACEOF >conftest.h
28799
28800 _ACEOF
28801
28802
28803 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28804 echo "obj-m := conftest.o" >build/Makefile
28805 modpost_flag=''
28806 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28807 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28809 (eval $ac_try) 2>&5
28810 ac_status=$?
28811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28812 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28814 (eval $ac_try) 2>&5
28815 ac_status=$?
28816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28817 test $ac_status = 0; }; }; then :
28818
28819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28820 $as_echo "yes" >&6; }
28821
28822 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
28823
28824
28825 else
28826 $as_echo "$as_me: failed program was:" >&5
28827 sed 's/^/| /' conftest.$ac_ext >&5
28828
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28830 $as_echo "no" >&6; }
28831
28832
28833
28834 fi
28835 rm -Rf build
28836
28837
28838
28839
28840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
28841 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
28842
28843
28844 cat confdefs.h - <<_ACEOF >conftest.c
28845
28846
28847 #include <linux/security.h>
28848
28849 int
28850 main (void)
28851 {
28852
28853 struct inode *ip __attribute__ ((unused)) = NULL;
28854 struct inode *dip __attribute__ ((unused)) = NULL;
28855 const struct qstr *str __attribute__ ((unused)) = NULL;
28856 initxattrs func __attribute__ ((unused)) = NULL;
28857
28858 security_inode_init_security(ip, dip, str, func, NULL);
28859
28860 ;
28861 return 0;
28862 }
28863
28864 _ACEOF
28865
28866
28867
28868 cat - <<_ACEOF >conftest.h
28869
28870 _ACEOF
28871
28872
28873 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28874 echo "obj-m := conftest.o" >build/Makefile
28875 modpost_flag=''
28876 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28877 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28879 (eval $ac_try) 2>&5
28880 ac_status=$?
28881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28882 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28884 (eval $ac_try) 2>&5
28885 ac_status=$?
28886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28887 test $ac_status = 0; }; }; then :
28888
28889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28890 $as_echo "yes" >&6; }
28891
28892 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
28893
28894
28895 else
28896 $as_echo "$as_me: failed program was:" >&5
28897 sed 's/^/| /' conftest.$ac_ext >&5
28898
28899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28900 $as_echo "no" >&6; }
28901
28902
28903
28904 fi
28905 rm -Rf build
28906
28907
28908
28909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
28910 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
28911
28912
28913
28914 cat confdefs.h - <<_ACEOF >conftest.c
28915
28916
28917 #include <linux/fs.h>
28918
28919 int
28920 main (void)
28921 {
28922
28923 mount_nodev(NULL, 0, NULL, NULL);
28924
28925 ;
28926 return 0;
28927 }
28928
28929 _ACEOF
28930
28931
28932
28933 cat - <<_ACEOF >conftest.h
28934
28935 _ACEOF
28936
28937
28938 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28939 echo "obj-m := conftest.o" >build/Makefile
28940 modpost_flag=''
28941 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28942 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28944 (eval $ac_try) 2>&5
28945 ac_status=$?
28946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28947 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28949 (eval $ac_try) 2>&5
28950 ac_status=$?
28951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28952 test $ac_status = 0; }; }; then :
28953 rc=0
28954 else
28955 $as_echo "$as_me: failed program was:" >&5
28956 sed 's/^/| /' conftest.$ac_ext >&5
28957 rc=1
28958
28959
28960 fi
28961 rm -Rf build
28962
28963
28964 if test $rc -ne 0; then :
28965
28966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28967 $as_echo "no" >&6; }
28968
28969 else
28970 if test "x$enable_linux_builtin" != xyes; then
28971
28972 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
28973 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28974 rc=$?
28975 if test $rc -ne 0; then
28976 export=0
28977 for file in fs/super.c; do
28978 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
28979 "$LINUX/$file" 2>/dev/null
28980 rc=$?
28981 if test $rc -eq 0; then
28982 export=1
28983 break;
28984 fi
28985 done
28986 if test $export -eq 0; then :
28987 rc=1
28988 else :
28989 rc=0
28990 fi
28991 else :
28992 rc=0
28993 fi
28994
28995 fi
28996 if test $rc -ne 0; then :
28997
28998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28999 $as_echo "no" >&6; }
29000
29001 else :
29002
29003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29004 $as_echo "yes" >&6; }
29005
29006 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
29007
29008
29009 fi
29010 fi
29011
29012
29013
29014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
29015 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
29016
29017
29018 cat confdefs.h - <<_ACEOF >conftest.c
29019
29020
29021 #include <linux/fs.h>
29022
29023 int shrink(struct shrinker *s, struct shrink_control *sc)
29024 { return 0; }
29025
29026 static const struct super_block
29027 sb __attribute__ ((unused)) = {
29028 .s_shrink.shrink = shrink,
29029 .s_shrink.seeks = DEFAULT_SEEKS,
29030 .s_shrink.batch = 0,
29031 };
29032
29033 int
29034 main (void)
29035 {
29036
29037
29038 ;
29039 return 0;
29040 }
29041
29042 _ACEOF
29043
29044
29045
29046 cat - <<_ACEOF >conftest.h
29047
29048 _ACEOF
29049
29050
29051 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29052 echo "obj-m := conftest.o" >build/Makefile
29053 modpost_flag=''
29054 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29055 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29057 (eval $ac_try) 2>&5
29058 ac_status=$?
29059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29060 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29062 (eval $ac_try) 2>&5
29063 ac_status=$?
29064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29065 test $ac_status = 0; }; }; then :
29066
29067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29068 $as_echo "yes" >&6; }
29069
29070 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
29071
29072
29073
29074 else
29075 $as_echo "$as_me: failed program was:" >&5
29076 sed 's/^/| /' conftest.$ac_ext >&5
29077
29078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29079 $as_echo "no" >&6; }
29080
29081
29082
29083 fi
29084 rm -Rf build
29085
29086
29087
29088
29089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
29090 $as_echo_n "checking whether shrink_control has nid... " >&6; }
29091
29092
29093 cat confdefs.h - <<_ACEOF >conftest.c
29094
29095
29096 #include <linux/fs.h>
29097
29098 int
29099 main (void)
29100 {
29101
29102 struct shrink_control sc __attribute__ ((unused));
29103 unsigned long scnidsize __attribute__ ((unused)) =
29104 sizeof(sc.nid);
29105
29106 ;
29107 return 0;
29108 }
29109
29110 _ACEOF
29111
29112
29113
29114 cat - <<_ACEOF >conftest.h
29115
29116 _ACEOF
29117
29118
29119 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29120 echo "obj-m := conftest.o" >build/Makefile
29121 modpost_flag=''
29122 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29123 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29125 (eval $ac_try) 2>&5
29126 ac_status=$?
29127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29128 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29130 (eval $ac_try) 2>&5
29131 ac_status=$?
29132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29133 test $ac_status = 0; }; }; then :
29134
29135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29136 $as_echo "yes" >&6; }
29137
29138 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
29139
29140
29141 else
29142 $as_echo "$as_me: failed program was:" >&5
29143 sed 's/^/| /' conftest.$ac_ext >&5
29144
29145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29146 $as_echo "no" >&6; }
29147
29148
29149
29150 fi
29151 rm -Rf build
29152
29153
29154
29155
29156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
29157 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
29158
29159
29160 cat confdefs.h - <<_ACEOF >conftest.c
29161
29162
29163 #include <linux/fs.h>
29164
29165 int
29166 main (void)
29167 {
29168
29169 struct super_block sb __attribute__ ((unused));
29170
29171 INIT_LIST_HEAD(&sb.s_instances);
29172
29173 ;
29174 return 0;
29175 }
29176
29177 _ACEOF
29178
29179
29180
29181 cat - <<_ACEOF >conftest.h
29182
29183 _ACEOF
29184
29185
29186 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29187 echo "obj-m := conftest.o" >build/Makefile
29188 modpost_flag=''
29189 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29190 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29192 (eval $ac_try) 2>&5
29193 ac_status=$?
29194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29195 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29197 (eval $ac_try) 2>&5
29198 ac_status=$?
29199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29200 test $ac_status = 0; }; }; then :
29201
29202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29203 $as_echo "yes" >&6; }
29204
29205 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
29206
29207
29208 else
29209 $as_echo "$as_me: failed program was:" >&5
29210 sed 's/^/| /' conftest.$ac_ext >&5
29211
29212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29213 $as_echo "no" >&6; }
29214
29215
29216
29217 fi
29218 rm -Rf build
29219
29220
29221
29222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
29223 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
29224
29225
29226 cat confdefs.h - <<_ACEOF >conftest.c
29227
29228
29229 #include <linux/fs.h>
29230
29231 int
29232 main (void)
29233 {
29234
29235 struct super_block sb __attribute__ ((unused));
29236 sb.s_d_op = NULL;
29237
29238 ;
29239 return 0;
29240 }
29241
29242 _ACEOF
29243
29244
29245
29246 cat - <<_ACEOF >conftest.h
29247
29248 _ACEOF
29249
29250
29251 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29252 echo "obj-m := conftest.o" >build/Makefile
29253 modpost_flag=''
29254 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29255 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29257 (eval $ac_try) 2>&5
29258 ac_status=$?
29259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29260 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29262 (eval $ac_try) 2>&5
29263 ac_status=$?
29264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29265 test $ac_status = 0; }; }; then :
29266
29267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29268 $as_echo "yes" >&6; }
29269
29270 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
29271
29272
29273 else
29274 $as_echo "$as_me: failed program was:" >&5
29275 sed 's/^/| /' conftest.$ac_ext >&5
29276
29277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29278 $as_echo "no" >&6; }
29279
29280
29281
29282 fi
29283 rm -Rf build
29284
29285
29286
29287
29288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
29289 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
29290
29291
29292
29293 cat confdefs.h - <<_ACEOF >conftest.c
29294
29295
29296 #include <linux/backing-dev.h>
29297
29298 int
29299 main (void)
29300 {
29301
29302 struct backing_dev_info bdi;
29303 char *name = "bdi";
29304 int error __attribute__((unused)) =
29305 bdi_setup_and_register(&bdi, name);
29306
29307 ;
29308 return 0;
29309 }
29310
29311 _ACEOF
29312
29313
29314
29315 cat - <<_ACEOF >conftest.h
29316
29317 _ACEOF
29318
29319
29320 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29321 echo "obj-m := conftest.o" >build/Makefile
29322 modpost_flag=''
29323 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29324 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29326 (eval $ac_try) 2>&5
29327 ac_status=$?
29328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29329 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29331 (eval $ac_try) 2>&5
29332 ac_status=$?
29333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29334 test $ac_status = 0; }; }; then :
29335 rc=0
29336 else
29337 $as_echo "$as_me: failed program was:" >&5
29338 sed 's/^/| /' conftest.$ac_ext >&5
29339 rc=1
29340
29341
29342 fi
29343 rm -Rf build
29344
29345
29346 if test $rc -ne 0; then :
29347
29348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29349 $as_echo "no" >&6; }
29350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
29351 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
29352
29353
29354
29355 cat confdefs.h - <<_ACEOF >conftest.c
29356
29357
29358 #include <linux/backing-dev.h>
29359
29360 int
29361 main (void)
29362 {
29363
29364 struct backing_dev_info bdi;
29365 char *name = "bdi";
29366 unsigned int cap = BDI_CAP_MAP_COPY;
29367 int error __attribute__((unused)) =
29368 bdi_setup_and_register(&bdi, name, cap);
29369
29370 ;
29371 return 0;
29372 }
29373
29374 _ACEOF
29375
29376
29377
29378 cat - <<_ACEOF >conftest.h
29379
29380 _ACEOF
29381
29382
29383 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29384 echo "obj-m := conftest.o" >build/Makefile
29385 modpost_flag=''
29386 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29387 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29389 (eval $ac_try) 2>&5
29390 ac_status=$?
29391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29392 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29394 (eval $ac_try) 2>&5
29395 ac_status=$?
29396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29397 test $ac_status = 0; }; }; then :
29398 rc=0
29399 else
29400 $as_echo "$as_me: failed program was:" >&5
29401 sed 's/^/| /' conftest.$ac_ext >&5
29402 rc=1
29403
29404
29405 fi
29406 rm -Rf build
29407
29408
29409 if test $rc -ne 0; then :
29410
29411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29412 $as_echo "no" >&6; }
29413
29414 else
29415 if test "x$enable_linux_builtin" != xyes; then
29416
29417 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
29418 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29419 rc=$?
29420 if test $rc -ne 0; then
29421 export=0
29422 for file in mm/backing-dev.c; do
29423 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
29424 "$LINUX/$file" 2>/dev/null
29425 rc=$?
29426 if test $rc -eq 0; then
29427 export=1
29428 break;
29429 fi
29430 done
29431 if test $export -eq 0; then :
29432 rc=1
29433 else :
29434 rc=0
29435 fi
29436 else :
29437 rc=0
29438 fi
29439
29440 fi
29441 if test $rc -ne 0; then :
29442
29443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29444 $as_echo "no" >&6; }
29445
29446 else :
29447
29448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29449 $as_echo "yes" >&6; }
29450
29451 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
29452
29453
29454 fi
29455 fi
29456
29457
29458 else
29459 if test "x$enable_linux_builtin" != xyes; then
29460
29461 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
29462 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29463 rc=$?
29464 if test $rc -ne 0; then
29465 export=0
29466 for file in mm/backing-dev.c; do
29467 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
29468 "$LINUX/$file" 2>/dev/null
29469 rc=$?
29470 if test $rc -eq 0; then
29471 export=1
29472 break;
29473 fi
29474 done
29475 if test $export -eq 0; then :
29476 rc=1
29477 else :
29478 rc=0
29479 fi
29480 else :
29481 rc=0
29482 fi
29483
29484 fi
29485 if test $rc -ne 0; then :
29486
29487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29488 $as_echo "no" >&6; }
29489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
29490 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
29491
29492
29493
29494 cat confdefs.h - <<_ACEOF >conftest.c
29495
29496
29497 #include <linux/backing-dev.h>
29498
29499 int
29500 main (void)
29501 {
29502
29503 struct backing_dev_info bdi;
29504 char *name = "bdi";
29505 unsigned int cap = BDI_CAP_MAP_COPY;
29506 int error __attribute__((unused)) =
29507 bdi_setup_and_register(&bdi, name, cap);
29508
29509 ;
29510 return 0;
29511 }
29512
29513 _ACEOF
29514
29515
29516
29517 cat - <<_ACEOF >conftest.h
29518
29519 _ACEOF
29520
29521
29522 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29523 echo "obj-m := conftest.o" >build/Makefile
29524 modpost_flag=''
29525 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29526 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29528 (eval $ac_try) 2>&5
29529 ac_status=$?
29530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29531 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29533 (eval $ac_try) 2>&5
29534 ac_status=$?
29535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29536 test $ac_status = 0; }; }; then :
29537 rc=0
29538 else
29539 $as_echo "$as_me: failed program was:" >&5
29540 sed 's/^/| /' conftest.$ac_ext >&5
29541 rc=1
29542
29543
29544 fi
29545 rm -Rf build
29546
29547
29548 if test $rc -ne 0; then :
29549
29550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29551 $as_echo "no" >&6; }
29552
29553 else
29554 if test "x$enable_linux_builtin" != xyes; then
29555
29556 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
29557 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29558 rc=$?
29559 if test $rc -ne 0; then
29560 export=0
29561 for file in mm/backing-dev.c; do
29562 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
29563 "$LINUX/$file" 2>/dev/null
29564 rc=$?
29565 if test $rc -eq 0; then
29566 export=1
29567 break;
29568 fi
29569 done
29570 if test $export -eq 0; then :
29571 rc=1
29572 else :
29573 rc=0
29574 fi
29575 else :
29576 rc=0
29577 fi
29578
29579 fi
29580 if test $rc -ne 0; then :
29581
29582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29583 $as_echo "no" >&6; }
29584
29585 else :
29586
29587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29588 $as_echo "yes" >&6; }
29589
29590 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
29591
29592
29593 fi
29594 fi
29595
29596
29597 else :
29598
29599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29600 $as_echo "yes" >&6; }
29601
29602 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
29603
29604
29605 fi
29606 fi
29607
29608
29609
29610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
29611 $as_echo_n "checking whether set_nlink() is available... " >&6; }
29612
29613
29614 cat confdefs.h - <<_ACEOF >conftest.c
29615
29616
29617 #include <linux/fs.h>
29618
29619 int
29620 main (void)
29621 {
29622
29623 struct inode node;
29624 unsigned int link = 0;
29625 (void) set_nlink(&node, link);
29626
29627 ;
29628 return 0;
29629 }
29630
29631 _ACEOF
29632
29633
29634
29635 cat - <<_ACEOF >conftest.h
29636
29637 _ACEOF
29638
29639
29640 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29641 echo "obj-m := conftest.o" >build/Makefile
29642 modpost_flag=''
29643 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29644 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29646 (eval $ac_try) 2>&5
29647 ac_status=$?
29648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29649 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29651 (eval $ac_try) 2>&5
29652 ac_status=$?
29653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29654 test $ac_status = 0; }; }; then :
29655
29656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29657 $as_echo "yes" >&6; }
29658
29659 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
29660
29661
29662 else
29663 $as_echo "$as_me: failed program was:" >&5
29664 sed 's/^/| /' conftest.$ac_ext >&5
29665
29666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29667 $as_echo "no" >&6; }
29668
29669
29670
29671 fi
29672 rm -Rf build
29673
29674
29675
29676
29677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
29678 $as_echo_n "checking whether elevator_change() is available... " >&6; }
29679 tmp_flags="$EXTRA_KCFLAGS"
29680 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
29681
29682
29683 cat confdefs.h - <<_ACEOF >conftest.c
29684
29685
29686 #include <linux/blkdev.h>
29687 #include <linux/elevator.h>
29688
29689 int
29690 main (void)
29691 {
29692
29693 int ret;
29694 struct request_queue *q = NULL;
29695 char *elevator = NULL;
29696 ret = elevator_change(q, elevator);
29697
29698 ;
29699 return 0;
29700 }
29701
29702 _ACEOF
29703
29704
29705
29706 cat - <<_ACEOF >conftest.h
29707
29708 _ACEOF
29709
29710
29711 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29712 echo "obj-m := conftest.o" >build/Makefile
29713 modpost_flag=''
29714 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29715 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29717 (eval $ac_try) 2>&5
29718 ac_status=$?
29719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29720 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29722 (eval $ac_try) 2>&5
29723 ac_status=$?
29724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29725 test $ac_status = 0; }; }; then :
29726
29727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29728 $as_echo "yes" >&6; }
29729
29730 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
29731
29732
29733 else
29734 $as_echo "$as_me: failed program was:" >&5
29735 sed 's/^/| /' conftest.$ac_ext >&5
29736
29737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29738 $as_echo "no" >&6; }
29739
29740
29741
29742 fi
29743 rm -Rf build
29744
29745
29746 EXTRA_KCFLAGS="$tmp_flags"
29747
29748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
29749 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
29750
29751
29752 cat confdefs.h - <<_ACEOF >conftest.c
29753
29754
29755 #include <linux/fs.h>
29756
29757 int
29758 main (void)
29759 {
29760
29761 struct file_system_type *type = NULL;
29762 int (*test)(struct super_block *,void *) = NULL;
29763 int (*set)(struct super_block *,void *) = NULL;
29764 int flags = 0;
29765 void *data = NULL;
29766 (void) sget(type, test, set, flags, data);
29767
29768 ;
29769 return 0;
29770 }
29771
29772 _ACEOF
29773
29774
29775
29776 cat - <<_ACEOF >conftest.h
29777
29778 _ACEOF
29779
29780
29781 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29782 echo "obj-m := conftest.o" >build/Makefile
29783 modpost_flag=''
29784 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29785 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29787 (eval $ac_try) 2>&5
29788 ac_status=$?
29789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29790 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29792 (eval $ac_try) 2>&5
29793 ac_status=$?
29794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29795 test $ac_status = 0; }; }; then :
29796
29797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29798 $as_echo "yes" >&6; }
29799
29800 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
29801
29802
29803 else
29804 $as_echo "$as_me: failed program was:" >&5
29805 sed 's/^/| /' conftest.$ac_ext >&5
29806
29807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29808 $as_echo "no" >&6; }
29809
29810
29811
29812 fi
29813 rm -Rf build
29814
29815
29816
29817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
29818 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
29819
29820
29821
29822 cat confdefs.h - <<_ACEOF >conftest.c
29823
29824
29825 #include <linux/fs.h>
29826
29827 int
29828 main (void)
29829 {
29830
29831 struct file *fp __attribute__ ((unused)) = NULL;
29832 struct inode *ip __attribute__ ((unused)) = NULL;
29833 loff_t offset __attribute__ ((unused)) = 0;
29834 loff_t maxsize __attribute__ ((unused)) = 0;
29835
29836 lseek_execute(fp, ip, offset, maxsize);
29837
29838 ;
29839 return 0;
29840 }
29841
29842 _ACEOF
29843
29844
29845
29846 cat - <<_ACEOF >conftest.h
29847
29848 _ACEOF
29849
29850
29851 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29852 echo "obj-m := conftest.o" >build/Makefile
29853 modpost_flag=''
29854 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29855 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29857 (eval $ac_try) 2>&5
29858 ac_status=$?
29859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29860 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29862 (eval $ac_try) 2>&5
29863 ac_status=$?
29864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29865 test $ac_status = 0; }; }; then :
29866 rc=0
29867 else
29868 $as_echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29870 rc=1
29871
29872
29873 fi
29874 rm -Rf build
29875
29876
29877 if test $rc -ne 0; then :
29878
29879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29880 $as_echo "no" >&6; }
29881
29882 else
29883 if test "x$enable_linux_builtin" != xyes; then
29884
29885 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
29886 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29887 rc=$?
29888 if test $rc -ne 0; then
29889 export=0
29890 for file in fs/read_write.c; do
29891 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
29892 "$LINUX/$file" 2>/dev/null
29893 rc=$?
29894 if test $rc -eq 0; then
29895 export=1
29896 break;
29897 fi
29898 done
29899 if test $export -eq 0; then :
29900 rc=1
29901 else :
29902 rc=0
29903 fi
29904 else :
29905 rc=0
29906 fi
29907
29908 fi
29909 if test $rc -ne 0; then :
29910
29911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29912 $as_echo "no" >&6; }
29913
29914 else :
29915
29916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29917 $as_echo "yes" >&6; }
29918
29919 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
29920
29921
29922 fi
29923 fi
29924
29925
29926
29927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
29928 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
29929
29930
29931 cat confdefs.h - <<_ACEOF >conftest.c
29932
29933
29934 #include <linux/fs.h>
29935 int iterate(struct file *filp, struct dir_context * context)
29936 { return 0; }
29937
29938 static const struct file_operations fops
29939 __attribute__ ((unused)) = {
29940 .iterate = iterate,
29941 };
29942
29943 int
29944 main (void)
29945 {
29946
29947
29948 ;
29949 return 0;
29950 }
29951
29952 _ACEOF
29953
29954
29955
29956 cat - <<_ACEOF >conftest.h
29957
29958 _ACEOF
29959
29960
29961 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29962 echo "obj-m := conftest.o" >build/Makefile
29963 modpost_flag=''
29964 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29965 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29967 (eval $ac_try) 2>&5
29968 ac_status=$?
29969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29970 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29972 (eval $ac_try) 2>&5
29973 ac_status=$?
29974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29975 test $ac_status = 0; }; }; then :
29976
29977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29978 $as_echo "yes" >&6; }
29979
29980 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
29981
29982
29983 else
29984 $as_echo "$as_me: failed program was:" >&5
29985 sed 's/^/| /' conftest.$ac_ext >&5
29986
29987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29988 $as_echo "no" >&6; }
29989
29990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
29991 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
29992
29993
29994 cat confdefs.h - <<_ACEOF >conftest.c
29995
29996
29997 #include <linux/fs.h>
29998 int readdir(struct file *filp, void *entry, filldir_t func)
29999 { return 0; }
30000
30001 static const struct file_operations fops
30002 __attribute__ ((unused)) = {
30003 .readdir = readdir,
30004 };
30005
30006 int
30007 main (void)
30008 {
30009
30010
30011 ;
30012 return 0;
30013 }
30014
30015 _ACEOF
30016
30017
30018
30019 cat - <<_ACEOF >conftest.h
30020
30021 _ACEOF
30022
30023
30024 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30025 echo "obj-m := conftest.o" >build/Makefile
30026 modpost_flag=''
30027 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30028 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30030 (eval $ac_try) 2>&5
30031 ac_status=$?
30032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30033 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30035 (eval $ac_try) 2>&5
30036 ac_status=$?
30037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30038 test $ac_status = 0; }; }; then :
30039
30040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30041 $as_echo "yes" >&6; }
30042
30043 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
30044
30045
30046 else
30047 $as_echo "$as_me: failed program was:" >&5
30048 sed 's/^/| /' conftest.$ac_ext >&5
30049
30050 as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5
30051
30052
30053
30054 fi
30055 rm -Rf build
30056
30057
30058
30059
30060
30061
30062 fi
30063 rm -Rf build
30064
30065
30066
30067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
30068 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
30069
30070
30071 cat confdefs.h - <<_ACEOF >conftest.c
30072
30073
30074 #include <linux/fs.h>
30075
30076 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
30077 { return 0; }
30078 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
30079 { return 0; }
30080
30081 static const struct file_operations
30082 fops __attribute__ ((unused)) = {
30083 .read_iter = test_read,
30084 .write_iter = test_write,
30085 };
30086
30087 int
30088 main (void)
30089 {
30090
30091
30092 ;
30093 return 0;
30094 }
30095
30096 _ACEOF
30097
30098
30099
30100 cat - <<_ACEOF >conftest.h
30101
30102 _ACEOF
30103
30104
30105 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30106 echo "obj-m := conftest.o" >build/Makefile
30107 modpost_flag=''
30108 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30109 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30111 (eval $ac_try) 2>&5
30112 ac_status=$?
30113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30114 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30116 (eval $ac_try) 2>&5
30117 ac_status=$?
30118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30119 test $ac_status = 0; }; }; then :
30120
30121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30122 $as_echo "yes" >&6; }
30123
30124 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
30125
30126
30127 else
30128 $as_echo "$as_me: failed program was:" >&5
30129 sed 's/^/| /' conftest.$ac_ext >&5
30130
30131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30132 $as_echo "no" >&6; }
30133
30134
30135
30136 fi
30137 rm -Rf build
30138
30139
30140
30141
30142 if test "$LINUX_OBJ" != "$LINUX"; then :
30143
30144 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
30145
30146 fi
30147
30148
30149
30150 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
30151 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
30152 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
30153
30154
30155
30156
30157
30158
30159 # Check whether --with-mounthelperdir was given.
30160 if test "${with_mounthelperdir+set}" = set; then :
30161 withval=$with_mounthelperdir; mounthelperdir=$withval
30162 else
30163 mounthelperdir=$sbindir
30164 fi
30165
30166
30167
30168
30169
30170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
30171 $as_echo_n "checking for udev directories... " >&6; }
30172
30173 # Check whether --with-udevdir was given.
30174 if test "${with_udevdir+set}" = set; then :
30175 withval=$with_udevdir; udevdir=$withval
30176 else
30177 udevdir=check
30178 fi
30179
30180
30181 if test "x$udevdir" = xcheck; then :
30182
30183 path1=/lib/udev
30184 path2=/usr/lib/udev
30185 default=$path2
30186
30187 if test -d "$path1"; then :
30188 udevdir="$path1"
30189 else
30190
30191 if test -d "$path2"; then :
30192 udevdir="$path2"
30193 else
30194 udevdir="$default"
30195 fi
30196
30197 fi
30198
30199 fi
30200
30201
30202 # Check whether --with-udevruledir was given.
30203 if test "${with_udevruledir+set}" = set; then :
30204 withval=$with_udevruledir; udevruledir=$withval
30205 else
30206 udevruledir="${udevdir}/rules.d"
30207 fi
30208
30209
30210
30211
30212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
30213 $as_echo "$udevdir;$udevruledir" >&6; }
30214
30215
30216 # Check whether --enable-systemd was given.
30217 if test "${enable_systemd+set}" = set; then :
30218 enableval=$enable_systemd;
30219 else
30220 enable_systemd=yes
30221 fi
30222
30223
30224
30225 # Check whether --with-systemdunitdir was given.
30226 if test "${with_systemdunitdir+set}" = set; then :
30227 withval=$with_systemdunitdir; systemdunitdir=$withval
30228 else
30229 systemdunitdir=/usr/lib/systemd/system
30230 fi
30231
30232
30233
30234 # Check whether --with-systemdpresetdir was given.
30235 if test "${with_systemdpresetdir+set}" = set; then :
30236 withval=$with_systemdpresetdir; systemdpresetdir=$withval
30237 else
30238 systemdpresetdir=/usr/lib/systemd/system-preset
30239 fi
30240
30241
30242
30243 # Check whether --with-systemdmodulesloaddir was given.
30244 if test "${with_systemdmodulesloaddir+set}" = set; then :
30245 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
30246 else
30247 systemdmodulesloaddir=/usr/lib/modules-load.d
30248 fi
30249
30250
30251
30252 if test "x$enable_systemd" = xyes; then :
30253
30254 ZFS_INIT_SYSTEMD=systemd
30255 ZFS_MODULE_LOAD=modules-load.d
30256 modulesloaddir=$systemdmodulesloaddir
30257
30258 fi
30259
30260
30261
30262
30263
30264
30265
30266
30267 # Check whether --enable-sysvinit was given.
30268 if test "${enable_sysvinit+set}" = set; then :
30269 enableval=$enable_sysvinit;
30270 else
30271 enable_sysvinit=yes
30272 fi
30273
30274
30275 if test "x$enable_sysvinit" = xyes; then :
30276 ZFS_INIT_SYSV=init.d
30277 fi
30278
30279
30280
30281
30282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
30283 $as_echo_n "checking for dracut directory... " >&6; }
30284
30285 # Check whether --with-dracutdir was given.
30286 if test "${with_dracutdir+set}" = set; then :
30287 withval=$with_dracutdir; dracutdir=$withval
30288 else
30289 dracutdir=check
30290 fi
30291
30292
30293 if test "x$dracutdir" = xcheck; then :
30294
30295 path1=/usr/share/dracut
30296 path2=/usr/lib/dracut
30297 default=$path2
30298
30299 if test -d "$path1"; then :
30300 dracutdir="$path1"
30301 else
30302
30303 if test -d "$path2"; then :
30304 dracutdir="$path2"
30305 else
30306 dracutdir="$default"
30307 fi
30308
30309 fi
30310
30311 fi
30312
30313
30314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
30315 $as_echo "$dracutdir" >&6; }
30316
30317
30318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
30319 $as_echo_n "checking for target asm dir... " >&6; }
30320 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
30321
30322 case $TARGET_ARCH in
30323 i386|x86_64)
30324 TARGET_ASM_DIR=asm-${TARGET_ARCH}
30325 ;;
30326 *)
30327 TARGET_ASM_DIR=asm-generic
30328 ;;
30329 esac
30330
30331
30332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
30333 $as_echo "$TARGET_ASM_DIR" >&6; }
30334
30335
30336 ZLIB=
30337
30338 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
30339 if test "x$ac_cv_header_zlib_h" = xyes; then :
30340
30341 else
30342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30344 as_fn_error $? "
30345 *** zlib.h missing, zlib-devel package required
30346 See \`config.log' for more details" "$LINENO" 5; }
30347 fi
30348
30349
30350
30351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
30352 $as_echo_n "checking for compress2 in -lz... " >&6; }
30353 if ${ac_cv_lib_z_compress2+:} false; then :
30354 $as_echo_n "(cached) " >&6
30355 else
30356 ac_check_lib_save_LIBS=$LIBS
30357 LIBS="-lz $LIBS"
30358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30359 /* end confdefs.h. */
30360
30361 /* Override any GCC internal prototype to avoid an error.
30362 Use char because int might match the return type of a GCC
30363 builtin and then its argument prototype would still apply. */
30364 #ifdef __cplusplus
30365 extern "C"
30366 #endif
30367 char compress2 ();
30368 int
30369 main ()
30370 {
30371 return compress2 ();
30372 ;
30373 return 0;
30374 }
30375 _ACEOF
30376 if ac_fn_c_try_link "$LINENO"; then :
30377 ac_cv_lib_z_compress2=yes
30378 else
30379 ac_cv_lib_z_compress2=no
30380 fi
30381 rm -f core conftest.err conftest.$ac_objext \
30382 conftest$ac_exeext conftest.$ac_ext
30383 LIBS=$ac_check_lib_save_LIBS
30384 fi
30385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
30386 $as_echo "$ac_cv_lib_z_compress2" >&6; }
30387 if test "x$ac_cv_lib_z_compress2" = xyes; then :
30388 cat >>confdefs.h <<_ACEOF
30389 #define HAVE_LIBZ 1
30390 _ACEOF
30391
30392 LIBS="-lz $LIBS"
30393
30394 else
30395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30397 as_fn_error $? "
30398 *** compress2() missing, zlib-devel package required
30399 See \`config.log' for more details" "$LINENO" 5; }
30400 fi
30401
30402
30403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
30404 $as_echo_n "checking for uncompress in -lz... " >&6; }
30405 if ${ac_cv_lib_z_uncompress+:} false; then :
30406 $as_echo_n "(cached) " >&6
30407 else
30408 ac_check_lib_save_LIBS=$LIBS
30409 LIBS="-lz $LIBS"
30410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30411 /* end confdefs.h. */
30412
30413 /* Override any GCC internal prototype to avoid an error.
30414 Use char because int might match the return type of a GCC
30415 builtin and then its argument prototype would still apply. */
30416 #ifdef __cplusplus
30417 extern "C"
30418 #endif
30419 char uncompress ();
30420 int
30421 main ()
30422 {
30423 return uncompress ();
30424 ;
30425 return 0;
30426 }
30427 _ACEOF
30428 if ac_fn_c_try_link "$LINENO"; then :
30429 ac_cv_lib_z_uncompress=yes
30430 else
30431 ac_cv_lib_z_uncompress=no
30432 fi
30433 rm -f core conftest.err conftest.$ac_objext \
30434 conftest$ac_exeext conftest.$ac_ext
30435 LIBS=$ac_check_lib_save_LIBS
30436 fi
30437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
30438 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
30439 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
30440 cat >>confdefs.h <<_ACEOF
30441 #define HAVE_LIBZ 1
30442 _ACEOF
30443
30444 LIBS="-lz $LIBS"
30445
30446 else
30447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30449 as_fn_error $? "
30450 *** uncompress() missing, zlib-devel package required
30451 See \`config.log' for more details" "$LINENO" 5; }
30452 fi
30453
30454
30455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
30456 $as_echo_n "checking for crc32 in -lz... " >&6; }
30457 if ${ac_cv_lib_z_crc32+:} false; then :
30458 $as_echo_n "(cached) " >&6
30459 else
30460 ac_check_lib_save_LIBS=$LIBS
30461 LIBS="-lz $LIBS"
30462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30463 /* end confdefs.h. */
30464
30465 /* Override any GCC internal prototype to avoid an error.
30466 Use char because int might match the return type of a GCC
30467 builtin and then its argument prototype would still apply. */
30468 #ifdef __cplusplus
30469 extern "C"
30470 #endif
30471 char crc32 ();
30472 int
30473 main ()
30474 {
30475 return crc32 ();
30476 ;
30477 return 0;
30478 }
30479 _ACEOF
30480 if ac_fn_c_try_link "$LINENO"; then :
30481 ac_cv_lib_z_crc32=yes
30482 else
30483 ac_cv_lib_z_crc32=no
30484 fi
30485 rm -f core conftest.err conftest.$ac_objext \
30486 conftest$ac_exeext conftest.$ac_ext
30487 LIBS=$ac_check_lib_save_LIBS
30488 fi
30489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
30490 $as_echo "$ac_cv_lib_z_crc32" >&6; }
30491 if test "x$ac_cv_lib_z_crc32" = xyes; then :
30492 cat >>confdefs.h <<_ACEOF
30493 #define HAVE_LIBZ 1
30494 _ACEOF
30495
30496 LIBS="-lz $LIBS"
30497
30498 else
30499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30501 as_fn_error $? "
30502 *** crc32() missing, zlib-devel package required
30503 See \`config.log' for more details" "$LINENO" 5; }
30504 fi
30505
30506
30507 ZLIB="-lz"
30508
30509
30510 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
30511
30512
30513
30514 LIBUUID=
30515
30516 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
30517 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
30518
30519 else
30520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30522 as_fn_error $? "
30523 *** uuid/uuid.h missing, libuuid-devel package required
30524 See \`config.log' for more details" "$LINENO" 5; }
30525 fi
30526
30527
30528
30529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
30530 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
30531 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
30532 $as_echo_n "(cached) " >&6
30533 else
30534 ac_check_lib_save_LIBS=$LIBS
30535 LIBS="-luuid $LIBS"
30536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30537 /* end confdefs.h. */
30538
30539 /* Override any GCC internal prototype to avoid an error.
30540 Use char because int might match the return type of a GCC
30541 builtin and then its argument prototype would still apply. */
30542 #ifdef __cplusplus
30543 extern "C"
30544 #endif
30545 char uuid_generate ();
30546 int
30547 main ()
30548 {
30549 return uuid_generate ();
30550 ;
30551 return 0;
30552 }
30553 _ACEOF
30554 if ac_fn_c_try_link "$LINENO"; then :
30555 ac_cv_lib_uuid_uuid_generate=yes
30556 else
30557 ac_cv_lib_uuid_uuid_generate=no
30558 fi
30559 rm -f core conftest.err conftest.$ac_objext \
30560 conftest$ac_exeext conftest.$ac_ext
30561 LIBS=$ac_check_lib_save_LIBS
30562 fi
30563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
30564 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
30565 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
30566 cat >>confdefs.h <<_ACEOF
30567 #define HAVE_LIBUUID 1
30568 _ACEOF
30569
30570 LIBS="-luuid $LIBS"
30571
30572 else
30573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30575 as_fn_error $? "
30576 *** uuid_generate() missing, libuuid-devel package required
30577 See \`config.log' for more details" "$LINENO" 5; }
30578 fi
30579
30580
30581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
30582 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
30583 if ${ac_cv_lib_uuid_uuid_is_null+:} false; then :
30584 $as_echo_n "(cached) " >&6
30585 else
30586 ac_check_lib_save_LIBS=$LIBS
30587 LIBS="-luuid $LIBS"
30588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30589 /* end confdefs.h. */
30590
30591 /* Override any GCC internal prototype to avoid an error.
30592 Use char because int might match the return type of a GCC
30593 builtin and then its argument prototype would still apply. */
30594 #ifdef __cplusplus
30595 extern "C"
30596 #endif
30597 char uuid_is_null ();
30598 int
30599 main ()
30600 {
30601 return uuid_is_null ();
30602 ;
30603 return 0;
30604 }
30605 _ACEOF
30606 if ac_fn_c_try_link "$LINENO"; then :
30607 ac_cv_lib_uuid_uuid_is_null=yes
30608 else
30609 ac_cv_lib_uuid_uuid_is_null=no
30610 fi
30611 rm -f core conftest.err conftest.$ac_objext \
30612 conftest$ac_exeext conftest.$ac_ext
30613 LIBS=$ac_check_lib_save_LIBS
30614 fi
30615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
30616 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
30617 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes; then :
30618 cat >>confdefs.h <<_ACEOF
30619 #define HAVE_LIBUUID 1
30620 _ACEOF
30621
30622 LIBS="-luuid $LIBS"
30623
30624 else
30625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30627 as_fn_error $? "
30628 *** uuid_is_null() missing, libuuid-devel package required
30629 See \`config.log' for more details" "$LINENO" 5; }
30630 fi
30631
30632
30633 LIBUUID="-luuid"
30634
30635
30636 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
30637
30638
30639
30640
30641 # Check whether --with-blkid was given.
30642 if test "${with_blkid+set}" = set; then :
30643 withval=$with_blkid;
30644 else
30645 with_blkid=check
30646 fi
30647
30648
30649 LIBBLKID=
30650 if test "x$with_blkid" = xyes; then :
30651
30652 LIBBLKID="-lblkid"
30653
30654
30655 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
30656
30657
30658 fi
30659
30660 if test "x$with_blkid" = xcheck; then :
30661
30662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
30663 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
30664 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
30665 $as_echo_n "(cached) " >&6
30666 else
30667 ac_check_lib_save_LIBS=$LIBS
30668 LIBS="-lblkid $LIBS"
30669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30670 /* end confdefs.h. */
30671
30672 /* Override any GCC internal prototype to avoid an error.
30673 Use char because int might match the return type of a GCC
30674 builtin and then its argument prototype would still apply. */
30675 #ifdef __cplusplus
30676 extern "C"
30677 #endif
30678 char blkid_get_cache ();
30679 int
30680 main ()
30681 {
30682 return blkid_get_cache ();
30683 ;
30684 return 0;
30685 }
30686 _ACEOF
30687 if ac_fn_c_try_link "$LINENO"; then :
30688 ac_cv_lib_blkid_blkid_get_cache=yes
30689 else
30690 ac_cv_lib_blkid_blkid_get_cache=no
30691 fi
30692 rm -f core conftest.err conftest.$ac_objext \
30693 conftest$ac_exeext conftest.$ac_ext
30694 LIBS=$ac_check_lib_save_LIBS
30695 fi
30696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
30697 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
30698 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
30699
30700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
30701 $as_echo_n "checking for blkid zfs support... " >&6; }
30702
30703 ZFS_DEV=`mktemp`
30704 truncate -s 64M $ZFS_DEV
30705 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
30706 dd of=$ZFS_DEV bs=1k count=8 \
30707 seek=128 conv=notrunc &>/dev/null \
30708 >/dev/null 2>/dev/null
30709 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
30710 dd of=$ZFS_DEV bs=1k count=8 \
30711 seek=132 conv=notrunc &>/dev/null \
30712 >/dev/null 2>/dev/null
30713 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
30714 dd of=$ZFS_DEV bs=1k count=8 \
30715 seek=136 conv=notrunc &>/dev/null \
30716 >/dev/null 2>/dev/null
30717 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
30718 dd of=$ZFS_DEV bs=1k count=8 \
30719 seek=140 conv=notrunc &>/dev/null \
30720 >/dev/null 2>/dev/null
30721
30722 saved_LIBS="$LIBS"
30723 LIBS="-lblkid"
30724
30725 if test "$cross_compiling" = yes; then :
30726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30728 as_fn_error $? "cannot run test program while cross compiling
30729 See \`config.log' for more details" "$LINENO" 5; }
30730 else
30731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30732 /* end confdefs.h. */
30733
30734 #include <stdio.h>
30735 #include <stdlib.h>
30736 #include <blkid/blkid.h>
30737
30738 int
30739 main ()
30740 {
30741
30742 blkid_cache cache;
30743 char *value;
30744
30745 if (blkid_get_cache(&cache, NULL) < 0)
30746 return 1;
30747
30748 value = blkid_get_tag_value(cache, "TYPE",
30749 "$ZFS_DEV");
30750 if (!value) {
30751 blkid_put_cache(cache);
30752 return 2;
30753 }
30754
30755 if (strcmp(value, "zfs_member")) {
30756 free(value);
30757 blkid_put_cache(cache);
30758 return 0;
30759 }
30760
30761 free(value);
30762 blkid_put_cache(cache);
30763
30764 ;
30765 return 0;
30766 }
30767 _ACEOF
30768 if ac_fn_c_try_run "$LINENO"; then :
30769
30770 rm -f $ZFS_DEV
30771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30772 $as_echo "yes" >&6; }
30773 LIBBLKID="-lblkid"
30774
30775
30776 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
30777
30778
30779 else
30780
30781 rm -f $ZFS_DEV
30782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30783 $as_echo "no" >&6; }
30784 if test "x$with_blkid" != xcheck; then :
30785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30787 as_fn_error $? "--with-blkid given but unavailable
30788 See \`config.log' for more details" "$LINENO" 5; }
30789 fi
30790
30791 fi
30792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30793 conftest.$ac_objext conftest.beam conftest.$ac_ext
30794 fi
30795
30796
30797 LIBS="$saved_LIBS"
30798
30799 else
30800
30801 if test "x$with_blkid" != xcheck; then :
30802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30804 as_fn_error $? "--with-blkid given but unavailable
30805 See \`config.log' for more details" "$LINENO" 5; }
30806 fi
30807
30808
30809 fi
30810
30811
30812 fi
30813
30814
30815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
30816 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
30817
30818 saved_flags="$CFLAGS"
30819 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
30820
30821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30822 /* end confdefs.h. */
30823
30824 int
30825 main ()
30826 {
30827
30828 ;
30829 return 0;
30830 }
30831 _ACEOF
30832 if ac_fn_c_try_compile "$LINENO"; then :
30833
30834 FRAME_LARGER_THAN=-Wframe-larger-than=1024
30835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30836 $as_echo "yes" >&6; }
30837
30838 else
30839
30840 FRAME_LARGER_THAN=
30841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30842 $as_echo "no" >&6; }
30843
30844 fi
30845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30846
30847 CFLAGS="$saved_flags"
30848
30849
30850
30851 if test "x$runstatedir" = x; then
30852 runstatedir='${localstatedir}/run'
30853
30854 fi
30855
30856 for ac_func in mlockall
30857 do :
30858 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
30859 if test "x$ac_cv_func_mlockall" = xyes; then :
30860 cat >>confdefs.h <<_ACEOF
30861 #define HAVE_MLOCKALL 1
30862 _ACEOF
30863
30864 fi
30865 done
30866
30867 ;;
30868 srpm) ;;
30869 *)
30870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
30871 $as_echo "Error!" >&6; }
30872 as_fn_error $? "Bad value \"$ZFS_CONFIG\" for --with-config,
30873 user kernel|user|all|srpm" "$LINENO" 5 ;;
30874 esac
30875
30876 if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then
30877 CONFIG_USER_TRUE=
30878 CONFIG_USER_FALSE='#'
30879 else
30880 CONFIG_USER_TRUE='#'
30881 CONFIG_USER_FALSE=
30882 fi
30883
30884 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
30885 test "x$enable_linux_builtin" != xyes ; then
30886 CONFIG_KERNEL_TRUE=
30887 CONFIG_KERNEL_FALSE='#'
30888 else
30889 CONFIG_KERNEL_TRUE='#'
30890 CONFIG_KERNEL_FALSE=
30891 fi
30892
30893
30894
30895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
30896 $as_echo_n "checking whether debugging is enabled... " >&6; }
30897 # Check whether --enable-debug was given.
30898 if test "${enable_debug+set}" = set; then :
30899 enableval=$enable_debug;
30900 else
30901 enable_debug=no
30902 fi
30903
30904
30905 if test "x$enable_debug" = xyes; then :
30906
30907 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
30908 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
30909 DEBUG_CFLAGS="-DDEBUG -Werror"
30910 DEBUG_STACKFLAGS="-fstack-check"
30911 DEBUG_ZFS="_with_debug"
30912
30913 $as_echo "#define ZFS_DEBUG 1" >>confdefs.h
30914
30915
30916 else
30917
30918 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
30919 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
30920 DEBUG_CFLAGS="-DNDEBUG"
30921 DEBUG_STACKFLAGS=""
30922 DEBUG_ZFS="_without_debug"
30923
30924 fi
30925
30926
30927
30928
30929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
30930 $as_echo "$enable_debug" >&6; }
30931
30932
30933 # Check whether --enable-debug-dmu-tx was given.
30934 if test "${enable_debug_dmu_tx+set}" = set; then :
30935 enableval=$enable_debug_dmu_tx;
30936 else
30937 enable_debug_dmu_tx=no
30938 fi
30939
30940
30941 if test "x$enable_debug_dmu_tx" = xyes; then :
30942
30943 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
30944 DEBUG_DMU_TX="_with_debug_dmu_tx"
30945
30946 $as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h
30947
30948
30949 else
30950
30951 DEBUG_DMU_TX="_without_debug_dmu_tx"
30952
30953 fi
30954
30955
30956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5
30957 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
30958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5
30959 $as_echo "$enable_debug_dmu_tx" >&6; }
30960
30961
30962 ac_config_files="$ac_config_files Makefile dracut/Makefile dracut/90zfs/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 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"
30963
30964
30965 cat >confcache <<\_ACEOF
30966 # This file is a shell script that caches the results of configure
30967 # tests run on this system so they can be shared between configure
30968 # scripts and configure runs, see configure's option --config-cache.
30969 # It is not useful on other systems. If it contains results you don't
30970 # want to keep, you may remove or edit it.
30971 #
30972 # config.status only pays attention to the cache file if you give it
30973 # the --recheck option to rerun configure.
30974 #
30975 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30976 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30977 # following values.
30978
30979 _ACEOF
30980
30981 # The following way of writing the cache mishandles newlines in values,
30982 # but we know of no workaround that is simple, portable, and efficient.
30983 # So, we kill variables containing newlines.
30984 # Ultrix sh set writes to stderr and can't be redirected directly,
30985 # and sets the high bit in the cache file unless we assign to the vars.
30986 (
30987 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30988 eval ac_val=\$$ac_var
30989 case $ac_val in #(
30990 *${as_nl}*)
30991 case $ac_var in #(
30992 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30993 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30994 esac
30995 case $ac_var in #(
30996 _ | IFS | as_nl) ;; #(
30997 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30998 *) { eval $ac_var=; unset $ac_var;} ;;
30999 esac ;;
31000 esac
31001 done
31002
31003 (set) 2>&1 |
31004 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31005 *${as_nl}ac_space=\ *)
31006 # `set' does not quote correctly, so add quotes: double-quote
31007 # substitution turns \\\\ into \\, and sed turns \\ into \.
31008 sed -n \
31009 "s/'/'\\\\''/g;
31010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31011 ;; #(
31012 *)
31013 # `set' quotes correctly as required by POSIX, so do not add quotes.
31014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31015 ;;
31016 esac |
31017 sort
31018 ) |
31019 sed '
31020 /^ac_cv_env_/b end
31021 t clear
31022 :clear
31023 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31024 t end
31025 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31026 :end' >>confcache
31027 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31028 if test -w "$cache_file"; then
31029 if test "x$cache_file" != "x/dev/null"; then
31030 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31031 $as_echo "$as_me: updating cache $cache_file" >&6;}
31032 if test ! -f "$cache_file" || test -h "$cache_file"; then
31033 cat confcache >"$cache_file"
31034 else
31035 case $cache_file in #(
31036 */* | ?:*)
31037 mv -f confcache "$cache_file"$$ &&
31038 mv -f "$cache_file"$$ "$cache_file" ;; #(
31039 *)
31040 mv -f confcache "$cache_file" ;;
31041 esac
31042 fi
31043 fi
31044 else
31045 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31046 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31047 fi
31048 fi
31049 rm -f confcache
31050
31051 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31052 # Let make expand exec_prefix.
31053 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31054
31055 DEFS=-DHAVE_CONFIG_H
31056
31057 ac_libobjs=
31058 ac_ltlibobjs=
31059 U=
31060 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31061 # 1. Remove the extension, and $U if already installed.
31062 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31063 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31064 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31065 # will be set to the directory where LIBOBJS objects are built.
31066 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31067 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31068 done
31069 LIBOBJS=$ac_libobjs
31070
31071 LTLIBOBJS=$ac_ltlibobjs
31072
31073
31074 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31075 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31077 fi
31078 if test -n "$EXEEXT"; then
31079 am__EXEEXT_TRUE=
31080 am__EXEEXT_FALSE='#'
31081 else
31082 am__EXEEXT_TRUE='#'
31083 am__EXEEXT_FALSE=
31084 fi
31085
31086 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31087 as_fn_error $? "conditional \"AMDEP\" was never defined.
31088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31089 fi
31090 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31091 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
31092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31093 fi
31094 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
31095 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
31096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31097 fi
31098 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
31099 as_fn_error $? "conditional \"CONFIG_USER\" was never defined.
31100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31101 fi
31102 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
31103 as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined.
31104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31105 fi
31106
31107 : "${CONFIG_STATUS=./config.status}"
31108 ac_write_fail=0
31109 ac_clean_files_save=$ac_clean_files
31110 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31111 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31112 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31113 as_write_fail=0
31114 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31115 #! $SHELL
31116 # Generated by $as_me.
31117 # Run this file to recreate the current configuration.
31118 # Compiler output produced by configure, useful for debugging
31119 # configure, is in config.log if it exists.
31120
31121 debug=false
31122 ac_cs_recheck=false
31123 ac_cs_silent=false
31124
31125 SHELL=\${CONFIG_SHELL-$SHELL}
31126 export SHELL
31127 _ASEOF
31128 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31129 ## -------------------- ##
31130 ## M4sh Initialization. ##
31131 ## -------------------- ##
31132
31133 # Be more Bourne compatible
31134 DUALCASE=1; export DUALCASE # for MKS sh
31135 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31136 emulate sh
31137 NULLCMD=:
31138 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31139 # is contrary to our usage. Disable this feature.
31140 alias -g '${1+"$@"}'='"$@"'
31141 setopt NO_GLOB_SUBST
31142 else
31143 case `(set -o) 2>/dev/null` in #(
31144 *posix*) :
31145 set -o posix ;; #(
31146 *) :
31147 ;;
31148 esac
31149 fi
31150
31151
31152 as_nl='
31153 '
31154 export as_nl
31155 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31156 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31157 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31158 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31159 # Prefer a ksh shell builtin over an external printf program on Solaris,
31160 # but without wasting forks for bash or zsh.
31161 if test -z "$BASH_VERSION$ZSH_VERSION" \
31162 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31163 as_echo='print -r --'
31164 as_echo_n='print -rn --'
31165 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31166 as_echo='printf %s\n'
31167 as_echo_n='printf %s'
31168 else
31169 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31170 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31171 as_echo_n='/usr/ucb/echo -n'
31172 else
31173 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31174 as_echo_n_body='eval
31175 arg=$1;
31176 case $arg in #(
31177 *"$as_nl"*)
31178 expr "X$arg" : "X\\(.*\\)$as_nl";
31179 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31180 esac;
31181 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31182 '
31183 export as_echo_n_body
31184 as_echo_n='sh -c $as_echo_n_body as_echo'
31185 fi
31186 export as_echo_body
31187 as_echo='sh -c $as_echo_body as_echo'
31188 fi
31189
31190 # The user is always right.
31191 if test "${PATH_SEPARATOR+set}" != set; then
31192 PATH_SEPARATOR=:
31193 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31194 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31195 PATH_SEPARATOR=';'
31196 }
31197 fi
31198
31199
31200 # IFS
31201 # We need space, tab and new line, in precisely that order. Quoting is
31202 # there to prevent editors from complaining about space-tab.
31203 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31204 # splitting by setting IFS to empty value.)
31205 IFS=" "" $as_nl"
31206
31207 # Find who we are. Look in the path if we contain no directory separator.
31208 as_myself=
31209 case $0 in #((
31210 *[\\/]* ) as_myself=$0 ;;
31211 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31212 for as_dir in $PATH
31213 do
31214 IFS=$as_save_IFS
31215 test -z "$as_dir" && as_dir=.
31216 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31217 done
31218 IFS=$as_save_IFS
31219
31220 ;;
31221 esac
31222 # We did not find ourselves, most probably we were run as `sh COMMAND'
31223 # in which case we are not to be found in the path.
31224 if test "x$as_myself" = x; then
31225 as_myself=$0
31226 fi
31227 if test ! -f "$as_myself"; then
31228 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31229 exit 1
31230 fi
31231
31232 # Unset variables that we do not need and which cause bugs (e.g. in
31233 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31234 # suppresses any "Segmentation fault" message there. '((' could
31235 # trigger a bug in pdksh 5.2.14.
31236 for as_var in BASH_ENV ENV MAIL MAILPATH
31237 do eval test x\${$as_var+set} = xset \
31238 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31239 done
31240 PS1='$ '
31241 PS2='> '
31242 PS4='+ '
31243
31244 # NLS nuisances.
31245 LC_ALL=C
31246 export LC_ALL
31247 LANGUAGE=C
31248 export LANGUAGE
31249
31250 # CDPATH.
31251 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31252
31253
31254 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31255 # ----------------------------------------
31256 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31257 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31258 # script with STATUS, using 1 if that was 0.
31259 as_fn_error ()
31260 {
31261 as_status=$1; test $as_status -eq 0 && as_status=1
31262 if test "$4"; then
31263 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31264 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31265 fi
31266 $as_echo "$as_me: error: $2" >&2
31267 as_fn_exit $as_status
31268 } # as_fn_error
31269
31270
31271 # as_fn_set_status STATUS
31272 # -----------------------
31273 # Set $? to STATUS, without forking.
31274 as_fn_set_status ()
31275 {
31276 return $1
31277 } # as_fn_set_status
31278
31279 # as_fn_exit STATUS
31280 # -----------------
31281 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31282 as_fn_exit ()
31283 {
31284 set +e
31285 as_fn_set_status $1
31286 exit $1
31287 } # as_fn_exit
31288
31289 # as_fn_unset VAR
31290 # ---------------
31291 # Portably unset VAR.
31292 as_fn_unset ()
31293 {
31294 { eval $1=; unset $1;}
31295 }
31296 as_unset=as_fn_unset
31297 # as_fn_append VAR VALUE
31298 # ----------------------
31299 # Append the text in VALUE to the end of the definition contained in VAR. Take
31300 # advantage of any shell optimizations that allow amortized linear growth over
31301 # repeated appends, instead of the typical quadratic growth present in naive
31302 # implementations.
31303 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31304 eval 'as_fn_append ()
31305 {
31306 eval $1+=\$2
31307 }'
31308 else
31309 as_fn_append ()
31310 {
31311 eval $1=\$$1\$2
31312 }
31313 fi # as_fn_append
31314
31315 # as_fn_arith ARG...
31316 # ------------------
31317 # Perform arithmetic evaluation on the ARGs, and store the result in the
31318 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31319 # must be portable across $(()) and expr.
31320 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31321 eval 'as_fn_arith ()
31322 {
31323 as_val=$(( $* ))
31324 }'
31325 else
31326 as_fn_arith ()
31327 {
31328 as_val=`expr "$@" || test $? -eq 1`
31329 }
31330 fi # as_fn_arith
31331
31332
31333 if expr a : '\(a\)' >/dev/null 2>&1 &&
31334 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31335 as_expr=expr
31336 else
31337 as_expr=false
31338 fi
31339
31340 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31341 as_basename=basename
31342 else
31343 as_basename=false
31344 fi
31345
31346 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31347 as_dirname=dirname
31348 else
31349 as_dirname=false
31350 fi
31351
31352 as_me=`$as_basename -- "$0" ||
31353 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31354 X"$0" : 'X\(//\)$' \| \
31355 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31356 $as_echo X/"$0" |
31357 sed '/^.*\/\([^/][^/]*\)\/*$/{
31358 s//\1/
31359 q
31360 }
31361 /^X\/\(\/\/\)$/{
31362 s//\1/
31363 q
31364 }
31365 /^X\/\(\/\).*/{
31366 s//\1/
31367 q
31368 }
31369 s/.*/./; q'`
31370
31371 # Avoid depending upon Character Ranges.
31372 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31373 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31374 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31375 as_cr_digits='0123456789'
31376 as_cr_alnum=$as_cr_Letters$as_cr_digits
31377
31378 ECHO_C= ECHO_N= ECHO_T=
31379 case `echo -n x` in #(((((
31380 -n*)
31381 case `echo 'xy\c'` in
31382 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31383 xy) ECHO_C='\c';;
31384 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31385 ECHO_T=' ';;
31386 esac;;
31387 *)
31388 ECHO_N='-n';;
31389 esac
31390
31391 rm -f conf$$ conf$$.exe conf$$.file
31392 if test -d conf$$.dir; then
31393 rm -f conf$$.dir/conf$$.file
31394 else
31395 rm -f conf$$.dir
31396 mkdir conf$$.dir 2>/dev/null
31397 fi
31398 if (echo >conf$$.file) 2>/dev/null; then
31399 if ln -s conf$$.file conf$$ 2>/dev/null; then
31400 as_ln_s='ln -s'
31401 # ... but there are two gotchas:
31402 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31403 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31404 # In both cases, we have to default to `cp -p'.
31405 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31406 as_ln_s='cp -p'
31407 elif ln conf$$.file conf$$ 2>/dev/null; then
31408 as_ln_s=ln
31409 else
31410 as_ln_s='cp -p'
31411 fi
31412 else
31413 as_ln_s='cp -p'
31414 fi
31415 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31416 rmdir conf$$.dir 2>/dev/null
31417
31418
31419 # as_fn_mkdir_p
31420 # -------------
31421 # Create "$as_dir" as a directory, including parents if necessary.
31422 as_fn_mkdir_p ()
31423 {
31424
31425 case $as_dir in #(
31426 -*) as_dir=./$as_dir;;
31427 esac
31428 test -d "$as_dir" || eval $as_mkdir_p || {
31429 as_dirs=
31430 while :; do
31431 case $as_dir in #(
31432 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31433 *) as_qdir=$as_dir;;
31434 esac
31435 as_dirs="'$as_qdir' $as_dirs"
31436 as_dir=`$as_dirname -- "$as_dir" ||
31437 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31438 X"$as_dir" : 'X\(//\)[^/]' \| \
31439 X"$as_dir" : 'X\(//\)$' \| \
31440 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31441 $as_echo X"$as_dir" |
31442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31443 s//\1/
31444 q
31445 }
31446 /^X\(\/\/\)[^/].*/{
31447 s//\1/
31448 q
31449 }
31450 /^X\(\/\/\)$/{
31451 s//\1/
31452 q
31453 }
31454 /^X\(\/\).*/{
31455 s//\1/
31456 q
31457 }
31458 s/.*/./; q'`
31459 test -d "$as_dir" && break
31460 done
31461 test -z "$as_dirs" || eval "mkdir $as_dirs"
31462 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31463
31464
31465 } # as_fn_mkdir_p
31466 if mkdir -p . 2>/dev/null; then
31467 as_mkdir_p='mkdir -p "$as_dir"'
31468 else
31469 test -d ./-p && rmdir ./-p
31470 as_mkdir_p=false
31471 fi
31472
31473 if test -x / >/dev/null 2>&1; then
31474 as_test_x='test -x'
31475 else
31476 if ls -dL / >/dev/null 2>&1; then
31477 as_ls_L_option=L
31478 else
31479 as_ls_L_option=
31480 fi
31481 as_test_x='
31482 eval sh -c '\''
31483 if test -d "$1"; then
31484 test -d "$1/.";
31485 else
31486 case $1 in #(
31487 -*)set "./$1";;
31488 esac;
31489 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
31490 ???[sx]*):;;*)false;;esac;fi
31491 '\'' sh
31492 '
31493 fi
31494 as_executable_p=$as_test_x
31495
31496 # Sed expression to map a string onto a valid CPP name.
31497 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31498
31499 # Sed expression to map a string onto a valid variable name.
31500 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31501
31502
31503 exec 6>&1
31504 ## ----------------------------------- ##
31505 ## Main body of $CONFIG_STATUS script. ##
31506 ## ----------------------------------- ##
31507 _ASEOF
31508 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31509
31510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31511 # Save the log message, to keep $0 and so on meaningful, and to
31512 # report actual input values of CONFIG_FILES etc. instead of their
31513 # values after options handling.
31514 ac_log="
31515 This file was extended by zfs $as_me 0.6.4.2, which was
31516 generated by GNU Autoconf 2.68. Invocation command line was
31517
31518 CONFIG_FILES = $CONFIG_FILES
31519 CONFIG_HEADERS = $CONFIG_HEADERS
31520 CONFIG_LINKS = $CONFIG_LINKS
31521 CONFIG_COMMANDS = $CONFIG_COMMANDS
31522 $ $0 $@
31523
31524 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31525 "
31526
31527 _ACEOF
31528
31529 case $ac_config_files in *"
31530 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31531 esac
31532
31533 case $ac_config_headers in *"
31534 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31535 esac
31536
31537
31538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31539 # Files that config.status was made for.
31540 config_files="$ac_config_files"
31541 config_headers="$ac_config_headers"
31542 config_commands="$ac_config_commands"
31543
31544 _ACEOF
31545
31546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31547 ac_cs_usage="\
31548 \`$as_me' instantiates files and other configuration actions
31549 from templates according to the current configuration. Unless the files
31550 and actions are specified as TAGs, all are instantiated by default.
31551
31552 Usage: $0 [OPTION]... [TAG]...
31553
31554 -h, --help print this help, then exit
31555 -V, --version print version number and configuration settings, then exit
31556 --config print configuration, then exit
31557 -q, --quiet, --silent
31558 do not print progress messages
31559 -d, --debug don't remove temporary files
31560 --recheck update $as_me by reconfiguring in the same conditions
31561 --file=FILE[:TEMPLATE]
31562 instantiate the configuration file FILE
31563 --header=FILE[:TEMPLATE]
31564 instantiate the configuration header FILE
31565
31566 Configuration files:
31567 $config_files
31568
31569 Configuration headers:
31570 $config_headers
31571
31572 Configuration commands:
31573 $config_commands
31574
31575 Report bugs to the package provider."
31576
31577 _ACEOF
31578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31579 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31580 ac_cs_version="\\
31581 zfs config.status 0.6.4.2
31582 configured by $0, generated by GNU Autoconf 2.68,
31583 with options \\"\$ac_cs_config\\"
31584
31585 Copyright (C) 2010 Free Software Foundation, Inc.
31586 This config.status script is free software; the Free Software Foundation
31587 gives unlimited permission to copy, distribute and modify it."
31588
31589 ac_pwd='$ac_pwd'
31590 srcdir='$srcdir'
31591 INSTALL='$INSTALL'
31592 MKDIR_P='$MKDIR_P'
31593 AWK='$AWK'
31594 test -n "\$AWK" || AWK=awk
31595 _ACEOF
31596
31597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31598 # The default lists apply if the user does not specify any file.
31599 ac_need_defaults=:
31600 while test $# != 0
31601 do
31602 case $1 in
31603 --*=?*)
31604 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31605 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31606 ac_shift=:
31607 ;;
31608 --*=)
31609 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31610 ac_optarg=
31611 ac_shift=:
31612 ;;
31613 *)
31614 ac_option=$1
31615 ac_optarg=$2
31616 ac_shift=shift
31617 ;;
31618 esac
31619
31620 case $ac_option in
31621 # Handling of the options.
31622 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31623 ac_cs_recheck=: ;;
31624 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31625 $as_echo "$ac_cs_version"; exit ;;
31626 --config | --confi | --conf | --con | --co | --c )
31627 $as_echo "$ac_cs_config"; exit ;;
31628 --debug | --debu | --deb | --de | --d | -d )
31629 debug=: ;;
31630 --file | --fil | --fi | --f )
31631 $ac_shift
31632 case $ac_optarg in
31633 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31634 '') as_fn_error $? "missing file argument" ;;
31635 esac
31636 as_fn_append CONFIG_FILES " '$ac_optarg'"
31637 ac_need_defaults=false;;
31638 --header | --heade | --head | --hea )
31639 $ac_shift
31640 case $ac_optarg in
31641 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31642 esac
31643 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31644 ac_need_defaults=false;;
31645 --he | --h)
31646 # Conflict between --help and --header
31647 as_fn_error $? "ambiguous option: \`$1'
31648 Try \`$0 --help' for more information.";;
31649 --help | --hel | -h )
31650 $as_echo "$ac_cs_usage"; exit ;;
31651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31652 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31653 ac_cs_silent=: ;;
31654
31655 # This is an error.
31656 -*) as_fn_error $? "unrecognized option: \`$1'
31657 Try \`$0 --help' for more information." ;;
31658
31659 *) as_fn_append ac_config_targets " $1"
31660 ac_need_defaults=false ;;
31661
31662 esac
31663 shift
31664 done
31665
31666 ac_configure_extra_args=
31667
31668 if $ac_cs_silent; then
31669 exec 6>/dev/null
31670 ac_configure_extra_args="$ac_configure_extra_args --silent"
31671 fi
31672
31673 _ACEOF
31674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31675 if \$ac_cs_recheck; then
31676 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31677 shift
31678 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31679 CONFIG_SHELL='$SHELL'
31680 export CONFIG_SHELL
31681 exec "\$@"
31682 fi
31683
31684 _ACEOF
31685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31686 exec 5>>config.log
31687 {
31688 echo
31689 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31690 ## Running $as_me. ##
31691 _ASBOX
31692 $as_echo "$ac_log"
31693 } >&5
31694
31695 _ACEOF
31696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31697 #
31698 # INIT-COMMANDS
31699 #
31700 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31701
31702
31703 # The HP-UX ksh and POSIX shell print the target directory to stdout
31704 # if CDPATH is set.
31705 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31706
31707 sed_quote_subst='$sed_quote_subst'
31708 double_quote_subst='$double_quote_subst'
31709 delay_variable_subst='$delay_variable_subst'
31710 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31711 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31712 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31713 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31714 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31715 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31716 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31717 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31718 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31719 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31720 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31721 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31722 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31723 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31724 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31725 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31726 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31727 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31728 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31729 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31730 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31731 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31732 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31733 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31734 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31735 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31736 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31737 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31738 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31739 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31740 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31741 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31742 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31743 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31744 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31745 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31746 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31747 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31748 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31749 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31750 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31751 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31752 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31753 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31754 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31755 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31756 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31757 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31758 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31759 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31760 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31761 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31762 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31763 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31764 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31765 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31766 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"`'
31767 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31768 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31769 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31770 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31771 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31772 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31773 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31774 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31775 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31776 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31777 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31778 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31779 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31780 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31781 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31782 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31783 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31784 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31785 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31786 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31787 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31788 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31789 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31790 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31791 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31792 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31793 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31794 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31795 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31796 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31797 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31798 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31799 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31800 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31801 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31802 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31803 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31804 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31805 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31806 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31807 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31808 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31809 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31810 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31811 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31812 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31813 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31814 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31815 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31816 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31817 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31818 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31819 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31820 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31821 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31822 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31823 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31824 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31825 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31826 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31827 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31828 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31829 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31830 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31831 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31832 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31833 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31834 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31835 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31836 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31837 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31838 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31839 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31840
31841 LTCC='$LTCC'
31842 LTCFLAGS='$LTCFLAGS'
31843 compiler='$compiler_DEFAULT'
31844
31845 # A function that is used when there is no print builtin or printf.
31846 func_fallback_echo ()
31847 {
31848 eval 'cat <<_LTECHO_EOF
31849 \$1
31850 _LTECHO_EOF'
31851 }
31852
31853 # Quote evaled strings.
31854 for var in SHELL \
31855 ECHO \
31856 PATH_SEPARATOR \
31857 SED \
31858 GREP \
31859 EGREP \
31860 FGREP \
31861 LD \
31862 NM \
31863 LN_S \
31864 lt_SP2NL \
31865 lt_NL2SP \
31866 reload_flag \
31867 OBJDUMP \
31868 deplibs_check_method \
31869 file_magic_cmd \
31870 file_magic_glob \
31871 want_nocaseglob \
31872 DLLTOOL \
31873 sharedlib_from_linklib_cmd \
31874 AR \
31875 AR_FLAGS \
31876 archiver_list_spec \
31877 STRIP \
31878 RANLIB \
31879 CC \
31880 CFLAGS \
31881 compiler \
31882 lt_cv_sys_global_symbol_pipe \
31883 lt_cv_sys_global_symbol_to_cdecl \
31884 lt_cv_sys_global_symbol_to_c_name_address \
31885 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31886 nm_file_list_spec \
31887 lt_prog_compiler_no_builtin_flag \
31888 lt_prog_compiler_pic \
31889 lt_prog_compiler_wl \
31890 lt_prog_compiler_static \
31891 lt_cv_prog_compiler_c_o \
31892 need_locks \
31893 MANIFEST_TOOL \
31894 DSYMUTIL \
31895 NMEDIT \
31896 LIPO \
31897 OTOOL \
31898 OTOOL64 \
31899 shrext_cmds \
31900 export_dynamic_flag_spec \
31901 whole_archive_flag_spec \
31902 compiler_needs_object \
31903 with_gnu_ld \
31904 allow_undefined_flag \
31905 no_undefined_flag \
31906 hardcode_libdir_flag_spec \
31907 hardcode_libdir_separator \
31908 exclude_expsyms \
31909 include_expsyms \
31910 file_list_spec \
31911 variables_saved_for_relink \
31912 libname_spec \
31913 library_names_spec \
31914 soname_spec \
31915 install_override_mode \
31916 finish_eval \
31917 old_striplib \
31918 striplib; do
31919 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31920 *[\\\\\\\`\\"\\\$]*)
31921 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31922 ;;
31923 *)
31924 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31925 ;;
31926 esac
31927 done
31928
31929 # Double-quote double-evaled strings.
31930 for var in reload_cmds \
31931 old_postinstall_cmds \
31932 old_postuninstall_cmds \
31933 old_archive_cmds \
31934 extract_expsyms_cmds \
31935 old_archive_from_new_cmds \
31936 old_archive_from_expsyms_cmds \
31937 archive_cmds \
31938 archive_expsym_cmds \
31939 module_cmds \
31940 module_expsym_cmds \
31941 export_symbols_cmds \
31942 prelink_cmds \
31943 postlink_cmds \
31944 postinstall_cmds \
31945 postuninstall_cmds \
31946 finish_cmds \
31947 sys_lib_search_path_spec \
31948 sys_lib_dlsearch_path_spec; do
31949 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31950 *[\\\\\\\`\\"\\\$]*)
31951 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31952 ;;
31953 *)
31954 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31955 ;;
31956 esac
31957 done
31958
31959 ac_aux_dir='$ac_aux_dir'
31960 xsi_shell='$xsi_shell'
31961 lt_shell_append='$lt_shell_append'
31962
31963 # See if we are running on zsh, and set the options which allow our
31964 # commands through without removal of \ escapes INIT.
31965 if test -n "\${ZSH_VERSION+set}" ; then
31966 setopt NO_GLOB_SUBST
31967 fi
31968
31969
31970 PACKAGE='$PACKAGE'
31971 VERSION='$VERSION'
31972 TIMESTAMP='$TIMESTAMP'
31973 RM='$RM'
31974 ofile='$ofile'
31975
31976
31977
31978
31979 _ACEOF
31980
31981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31982
31983 # Handling of arguments.
31984 for ac_config_target in $ac_config_targets
31985 do
31986 case $ac_config_target in
31987 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
31988 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31989 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31990 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31991 "dracut/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/Makefile" ;;
31992 "dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/90zfs/Makefile" ;;
31993 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
31994 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
31995 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
31996 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
31997 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
31998 "etc/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/Makefile" ;;
31999 "etc/systemd/system/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/system/Makefile" ;;
32000 "etc/modules-load.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/modules-load.d/Makefile" ;;
32001 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
32002 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
32003 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
32004 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
32005 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
32006 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
32007 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
32008 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
32009 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
32010 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
32011 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
32012 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
32013 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
32014 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
32015 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
32016 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
32017 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
32018 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
32019 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
32020 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
32021 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
32022 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
32023 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
32024 "lib/libzfs/libzfs.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs.pc" ;;
32025 "lib/libzfs/libzfs_core.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs_core.pc" ;;
32026 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
32027 "lib/libzfs_core/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs_core/Makefile" ;;
32028 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
32029 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
32030 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
32031 "cmd/zhack/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zhack/Makefile" ;;
32032 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
32033 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
32034 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
32035 "cmd/zstreamdump/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
32036 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
32037 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
32038 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
32039 "cmd/fsck_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
32040 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
32041 "cmd/vdev_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
32042 "cmd/arcstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arcstat/Makefile" ;;
32043 "cmd/dbufstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/dbufstat/Makefile" ;;
32044 "cmd/arc_summary/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arc_summary/Makefile" ;;
32045 "cmd/zed/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zed/Makefile" ;;
32046 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
32047 "contrib/bash_completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/bash_completion.d/Makefile" ;;
32048 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
32049 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
32050 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
32051 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
32052 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
32053 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
32054 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
32055 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
32056 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
32057 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
32058 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
32059 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
32060 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
32061 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32062 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
32063 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
32064 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
32065 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
32066 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
32067 "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;;
32068 "rpm/redhat/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs.spec" ;;
32069 "rpm/redhat/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-kmod.spec" ;;
32070 "rpm/redhat/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-dkms.spec" ;;
32071 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
32072 "rpm/generic/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs.spec" ;;
32073 "rpm/generic/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
32074 "rpm/generic/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
32075 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
32076 "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;;
32077
32078 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32079 esac
32080 done
32081
32082
32083 # If the user did not use the arguments to specify the items to instantiate,
32084 # then the envvar interface is used. Set only those that are not.
32085 # We use the long form for the default assignment because of an extremely
32086 # bizarre bug on SunOS 4.1.3.
32087 if $ac_need_defaults; then
32088 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32089 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32090 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32091 fi
32092
32093 # Have a temporary directory for convenience. Make it in the build tree
32094 # simply because there is no reason against having it here, and in addition,
32095 # creating and moving files from /tmp can sometimes cause problems.
32096 # Hook for its removal unless debugging.
32097 # Note that there is a small window in which the directory will not be cleaned:
32098 # after its creation but before its name has been assigned to `$tmp'.
32099 $debug ||
32100 {
32101 tmp= ac_tmp=
32102 trap 'exit_status=$?
32103 : "${ac_tmp:=$tmp}"
32104 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32105 ' 0
32106 trap 'as_fn_exit 1' 1 2 13 15
32107 }
32108 # Create a (secure) tmp directory for tmp files.
32109
32110 {
32111 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32112 test -d "$tmp"
32113 } ||
32114 {
32115 tmp=./conf$$-$RANDOM
32116 (umask 077 && mkdir "$tmp")
32117 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32118 ac_tmp=$tmp
32119
32120 # Set up the scripts for CONFIG_FILES section.
32121 # No need to generate them if there are no CONFIG_FILES.
32122 # This happens for instance with `./config.status config.h'.
32123 if test -n "$CONFIG_FILES"; then
32124
32125
32126 ac_cr=`echo X | tr X '\015'`
32127 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32128 # But we know of no other shell where ac_cr would be empty at this
32129 # point, so we can use a bashism as a fallback.
32130 if test "x$ac_cr" = x; then
32131 eval ac_cr=\$\'\\r\'
32132 fi
32133 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32134 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32135 ac_cs_awk_cr='\\r'
32136 else
32137 ac_cs_awk_cr=$ac_cr
32138 fi
32139
32140 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32141 _ACEOF
32142
32143
32144 {
32145 echo "cat >conf$$subs.awk <<_ACEOF" &&
32146 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32147 echo "_ACEOF"
32148 } >conf$$subs.sh ||
32149 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32150 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32151 ac_delim='%!_!# '
32152 for ac_last_try in false false false false false :; do
32153 . ./conf$$subs.sh ||
32154 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32155
32156 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32157 if test $ac_delim_n = $ac_delim_num; then
32158 break
32159 elif $ac_last_try; then
32160 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32161 else
32162 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32163 fi
32164 done
32165 rm -f conf$$subs.sh
32166
32167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32168 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32169 _ACEOF
32170 sed -n '
32171 h
32172 s/^/S["/; s/!.*/"]=/
32173 p
32174 g
32175 s/^[^!]*!//
32176 :repl
32177 t repl
32178 s/'"$ac_delim"'$//
32179 t delim
32180 :nl
32181 h
32182 s/\(.\{148\}\)..*/\1/
32183 t more1
32184 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32185 p
32186 n
32187 b repl
32188 :more1
32189 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32190 p
32191 g
32192 s/.\{148\}//
32193 t nl
32194 :delim
32195 h
32196 s/\(.\{148\}\)..*/\1/
32197 t more2
32198 s/["\\]/\\&/g; s/^/"/; s/$/"/
32199 p
32200 b
32201 :more2
32202 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32203 p
32204 g
32205 s/.\{148\}//
32206 t delim
32207 ' <conf$$subs.awk | sed '
32208 /^[^""]/{
32209 N
32210 s/\n//
32211 }
32212 ' >>$CONFIG_STATUS || ac_write_fail=1
32213 rm -f conf$$subs.awk
32214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32215 _ACAWK
32216 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32217 for (key in S) S_is_set[key] = 1
32218 FS = "\a"
32219
32220 }
32221 {
32222 line = $ 0
32223 nfields = split(line, field, "@")
32224 substed = 0
32225 len = length(field[1])
32226 for (i = 2; i < nfields; i++) {
32227 key = field[i]
32228 keylen = length(key)
32229 if (S_is_set[key]) {
32230 value = S[key]
32231 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32232 len += length(value) + length(field[++i])
32233 substed = 1
32234 } else
32235 len += 1 + keylen
32236 }
32237
32238 print line
32239 }
32240
32241 _ACAWK
32242 _ACEOF
32243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32244 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32245 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32246 else
32247 cat
32248 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32249 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32250 _ACEOF
32251
32252 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32253 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32254 # trailing colons and then remove the whole line if VPATH becomes empty
32255 # (actually we leave an empty line to preserve line numbers).
32256 if test "x$srcdir" = x.; then
32257 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32258 h
32259 s///
32260 s/^/:/
32261 s/[ ]*$/:/
32262 s/:\$(srcdir):/:/g
32263 s/:\${srcdir}:/:/g
32264 s/:@srcdir@:/:/g
32265 s/^:*//
32266 s/:*$//
32267 x
32268 s/\(=[ ]*\).*/\1/
32269 G
32270 s/\n//
32271 s/^[^=]*=[ ]*$//
32272 }'
32273 fi
32274
32275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32276 fi # test -n "$CONFIG_FILES"
32277
32278 # Set up the scripts for CONFIG_HEADERS section.
32279 # No need to generate them if there are no CONFIG_HEADERS.
32280 # This happens for instance with `./config.status Makefile'.
32281 if test -n "$CONFIG_HEADERS"; then
32282 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32283 BEGIN {
32284 _ACEOF
32285
32286 # Transform confdefs.h into an awk script `defines.awk', embedded as
32287 # here-document in config.status, that substitutes the proper values into
32288 # config.h.in to produce config.h.
32289
32290 # Create a delimiter string that does not exist in confdefs.h, to ease
32291 # handling of long lines.
32292 ac_delim='%!_!# '
32293 for ac_last_try in false false :; do
32294 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32295 if test -z "$ac_tt"; then
32296 break
32297 elif $ac_last_try; then
32298 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32299 else
32300 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32301 fi
32302 done
32303
32304 # For the awk script, D is an array of macro values keyed by name,
32305 # likewise P contains macro parameters if any. Preserve backslash
32306 # newline sequences.
32307
32308 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32309 sed -n '
32310 s/.\{148\}/&'"$ac_delim"'/g
32311 t rset
32312 :rset
32313 s/^[ ]*#[ ]*define[ ][ ]*/ /
32314 t def
32315 d
32316 :def
32317 s/\\$//
32318 t bsnl
32319 s/["\\]/\\&/g
32320 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32321 D["\1"]=" \3"/p
32322 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32323 d
32324 :bsnl
32325 s/["\\]/\\&/g
32326 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32327 D["\1"]=" \3\\\\\\n"\\/p
32328 t cont
32329 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32330 t cont
32331 d
32332 :cont
32333 n
32334 s/.\{148\}/&'"$ac_delim"'/g
32335 t clear
32336 :clear
32337 s/\\$//
32338 t bsnlc
32339 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32340 d
32341 :bsnlc
32342 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32343 b cont
32344 ' <confdefs.h | sed '
32345 s/'"$ac_delim"'/"\\\
32346 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32347
32348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32349 for (key in D) D_is_set[key] = 1
32350 FS = "\a"
32351 }
32352 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32353 line = \$ 0
32354 split(line, arg, " ")
32355 if (arg[1] == "#") {
32356 defundef = arg[2]
32357 mac1 = arg[3]
32358 } else {
32359 defundef = substr(arg[1], 2)
32360 mac1 = arg[2]
32361 }
32362 split(mac1, mac2, "(") #)
32363 macro = mac2[1]
32364 prefix = substr(line, 1, index(line, defundef) - 1)
32365 if (D_is_set[macro]) {
32366 # Preserve the white space surrounding the "#".
32367 print prefix "define", macro P[macro] D[macro]
32368 next
32369 } else {
32370 # Replace #undef with comments. This is necessary, for example,
32371 # in the case of _POSIX_SOURCE, which is predefined and required
32372 # on some systems where configure will not decide to define it.
32373 if (defundef == "undef") {
32374 print "/*", prefix defundef, macro, "*/"
32375 next
32376 }
32377 }
32378 }
32379 { print }
32380 _ACAWK
32381 _ACEOF
32382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32383 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32384 fi # test -n "$CONFIG_HEADERS"
32385
32386
32387 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32388 shift
32389 for ac_tag
32390 do
32391 case $ac_tag in
32392 :[FHLC]) ac_mode=$ac_tag; continue;;
32393 esac
32394 case $ac_mode$ac_tag in
32395 :[FHL]*:*);;
32396 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32397 :[FH]-) ac_tag=-:-;;
32398 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32399 esac
32400 ac_save_IFS=$IFS
32401 IFS=:
32402 set x $ac_tag
32403 IFS=$ac_save_IFS
32404 shift
32405 ac_file=$1
32406 shift
32407
32408 case $ac_mode in
32409 :L) ac_source=$1;;
32410 :[FH])
32411 ac_file_inputs=
32412 for ac_f
32413 do
32414 case $ac_f in
32415 -) ac_f="$ac_tmp/stdin";;
32416 *) # Look for the file first in the build tree, then in the source tree
32417 # (if the path is not absolute). The absolute path cannot be DOS-style,
32418 # because $ac_f cannot contain `:'.
32419 test -f "$ac_f" ||
32420 case $ac_f in
32421 [\\/$]*) false;;
32422 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32423 esac ||
32424 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32425 esac
32426 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32427 as_fn_append ac_file_inputs " '$ac_f'"
32428 done
32429
32430 # Let's still pretend it is `configure' which instantiates (i.e., don't
32431 # use $as_me), people would be surprised to read:
32432 # /* config.h. Generated by config.status. */
32433 configure_input='Generated from '`
32434 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32435 `' by configure.'
32436 if test x"$ac_file" != x-; then
32437 configure_input="$ac_file. $configure_input"
32438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32439 $as_echo "$as_me: creating $ac_file" >&6;}
32440 fi
32441 # Neutralize special characters interpreted by sed in replacement strings.
32442 case $configure_input in #(
32443 *\&* | *\|* | *\\* )
32444 ac_sed_conf_input=`$as_echo "$configure_input" |
32445 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32446 *) ac_sed_conf_input=$configure_input;;
32447 esac
32448
32449 case $ac_tag in
32450 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32451 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32452 esac
32453 ;;
32454 esac
32455
32456 ac_dir=`$as_dirname -- "$ac_file" ||
32457 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32458 X"$ac_file" : 'X\(//\)[^/]' \| \
32459 X"$ac_file" : 'X\(//\)$' \| \
32460 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32461 $as_echo X"$ac_file" |
32462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32463 s//\1/
32464 q
32465 }
32466 /^X\(\/\/\)[^/].*/{
32467 s//\1/
32468 q
32469 }
32470 /^X\(\/\/\)$/{
32471 s//\1/
32472 q
32473 }
32474 /^X\(\/\).*/{
32475 s//\1/
32476 q
32477 }
32478 s/.*/./; q'`
32479 as_dir="$ac_dir"; as_fn_mkdir_p
32480 ac_builddir=.
32481
32482 case "$ac_dir" in
32483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32484 *)
32485 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32486 # A ".." for each directory in $ac_dir_suffix.
32487 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32488 case $ac_top_builddir_sub in
32489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32491 esac ;;
32492 esac
32493 ac_abs_top_builddir=$ac_pwd
32494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32495 # for backward compatibility:
32496 ac_top_builddir=$ac_top_build_prefix
32497
32498 case $srcdir in
32499 .) # We are building in place.
32500 ac_srcdir=.
32501 ac_top_srcdir=$ac_top_builddir_sub
32502 ac_abs_top_srcdir=$ac_pwd ;;
32503 [\\/]* | ?:[\\/]* ) # Absolute name.
32504 ac_srcdir=$srcdir$ac_dir_suffix;
32505 ac_top_srcdir=$srcdir
32506 ac_abs_top_srcdir=$srcdir ;;
32507 *) # Relative name.
32508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32509 ac_top_srcdir=$ac_top_build_prefix$srcdir
32510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32511 esac
32512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32513
32514
32515 case $ac_mode in
32516 :F)
32517 #
32518 # CONFIG_FILE
32519 #
32520
32521 case $INSTALL in
32522 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32523 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32524 esac
32525 ac_MKDIR_P=$MKDIR_P
32526 case $MKDIR_P in
32527 [\\/$]* | ?:[\\/]* ) ;;
32528 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32529 esac
32530 _ACEOF
32531
32532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32533 # If the template does not know about datarootdir, expand it.
32534 # FIXME: This hack should be removed a few years after 2.60.
32535 ac_datarootdir_hack=; ac_datarootdir_seen=
32536 ac_sed_dataroot='
32537 /datarootdir/ {
32538 p
32539 q
32540 }
32541 /@datadir@/p
32542 /@docdir@/p
32543 /@infodir@/p
32544 /@localedir@/p
32545 /@mandir@/p'
32546 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32547 *datarootdir*) ac_datarootdir_seen=yes;;
32548 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32550 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32551 _ACEOF
32552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32553 ac_datarootdir_hack='
32554 s&@datadir@&$datadir&g
32555 s&@docdir@&$docdir&g
32556 s&@infodir@&$infodir&g
32557 s&@localedir@&$localedir&g
32558 s&@mandir@&$mandir&g
32559 s&\\\${datarootdir}&$datarootdir&g' ;;
32560 esac
32561 _ACEOF
32562
32563 # Neutralize VPATH when `$srcdir' = `.'.
32564 # Shell code in configure.ac might set extrasub.
32565 # FIXME: do we really want to maintain this feature?
32566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32567 ac_sed_extra="$ac_vpsub
32568 $extrasub
32569 _ACEOF
32570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32571 :t
32572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32573 s|@configure_input@|$ac_sed_conf_input|;t t
32574 s&@top_builddir@&$ac_top_builddir_sub&;t t
32575 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32576 s&@srcdir@&$ac_srcdir&;t t
32577 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32578 s&@top_srcdir@&$ac_top_srcdir&;t t
32579 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32580 s&@builddir@&$ac_builddir&;t t
32581 s&@abs_builddir@&$ac_abs_builddir&;t t
32582 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32583 s&@INSTALL@&$ac_INSTALL&;t t
32584 s&@MKDIR_P@&$ac_MKDIR_P&;t t
32585 $ac_datarootdir_hack
32586 "
32587 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
32588 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32589
32590 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32591 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32592 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32593 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32595 which seems to be undefined. Please make sure it is defined" >&5
32596 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32597 which seems to be undefined. Please make sure it is defined" >&2;}
32598
32599 rm -f "$ac_tmp/stdin"
32600 case $ac_file in
32601 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32602 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32603 esac \
32604 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32605 ;;
32606 :H)
32607 #
32608 # CONFIG_HEADER
32609 #
32610 if test x"$ac_file" != x-; then
32611 {
32612 $as_echo "/* $configure_input */" \
32613 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32614 } >"$ac_tmp/config.h" \
32615 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32616 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32617 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32618 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32619 else
32620 rm -f "$ac_file"
32621 mv "$ac_tmp/config.h" "$ac_file" \
32622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32623 fi
32624 else
32625 $as_echo "/* $configure_input */" \
32626 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32627 || as_fn_error $? "could not create -" "$LINENO" 5
32628 fi
32629 # Compute "$ac_file"'s index in $config_headers.
32630 _am_arg="$ac_file"
32631 _am_stamp_count=1
32632 for _am_header in $config_headers :; do
32633 case $_am_header in
32634 $_am_arg | $_am_arg:* )
32635 break ;;
32636 * )
32637 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32638 esac
32639 done
32640 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32641 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32642 X"$_am_arg" : 'X\(//\)[^/]' \| \
32643 X"$_am_arg" : 'X\(//\)$' \| \
32644 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32645 $as_echo X"$_am_arg" |
32646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32647 s//\1/
32648 q
32649 }
32650 /^X\(\/\/\)[^/].*/{
32651 s//\1/
32652 q
32653 }
32654 /^X\(\/\/\)$/{
32655 s//\1/
32656 q
32657 }
32658 /^X\(\/\).*/{
32659 s//\1/
32660 q
32661 }
32662 s/.*/./; q'`/stamp-h$_am_stamp_count
32663 ;;
32664
32665 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32666 $as_echo "$as_me: executing $ac_file commands" >&6;}
32667 ;;
32668 esac
32669
32670
32671 case $ac_file$ac_mode in
32672 "zfs_config.h":H)
32673 (mv zfs_config.h zfs_config.h.tmp &&
32674 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
32675 rm zfs_config.h.tmp) || exit 1 ;;
32676 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32677 # Autoconf 2.62 quotes --file arguments for eval, but not when files
32678 # are listed without --file. Let's play safe and only enable the eval
32679 # if we detect the quoting.
32680 case $CONFIG_FILES in
32681 *\'*) eval set x "$CONFIG_FILES" ;;
32682 *) set x $CONFIG_FILES ;;
32683 esac
32684 shift
32685 for mf
32686 do
32687 # Strip MF so we end up with the name of the file.
32688 mf=`echo "$mf" | sed -e 's/:.*$//'`
32689 # Check whether this is an Automake generated Makefile or not.
32690 # We used to match only the files named `Makefile.in', but
32691 # some people rename them; so instead we look at the file content.
32692 # Grep'ing the first line is not enough: some people post-process
32693 # each Makefile.in and add a new line on top of each file to say so.
32694 # Grep'ing the whole file is not good either: AIX grep has a line
32695 # limit of 2048, but all sed's we know have understand at least 4000.
32696 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
32697 dirpart=`$as_dirname -- "$mf" ||
32698 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32699 X"$mf" : 'X\(//\)[^/]' \| \
32700 X"$mf" : 'X\(//\)$' \| \
32701 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32702 $as_echo X"$mf" |
32703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32704 s//\1/
32705 q
32706 }
32707 /^X\(\/\/\)[^/].*/{
32708 s//\1/
32709 q
32710 }
32711 /^X\(\/\/\)$/{
32712 s//\1/
32713 q
32714 }
32715 /^X\(\/\).*/{
32716 s//\1/
32717 q
32718 }
32719 s/.*/./; q'`
32720 else
32721 continue
32722 fi
32723 # Extract the definition of DEPDIR, am__include, and am__quote
32724 # from the Makefile without running `make'.
32725 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32726 test -z "$DEPDIR" && continue
32727 am__include=`sed -n 's/^am__include = //p' < "$mf"`
32728 test -z "am__include" && continue
32729 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32730 # When using ansi2knr, U may be empty or an underscore; expand it
32731 U=`sed -n 's/^U = //p' < "$mf"`
32732 # Find all dependency output files, they are included files with
32733 # $(DEPDIR) in their names. We invoke sed twice because it is the
32734 # simplest approach to changing $(DEPDIR) to its actual value in the
32735 # expansion.
32736 for file in `sed -n "
32737 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32738 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
32739 # Make sure the directory exists.
32740 test -f "$dirpart/$file" && continue
32741 fdir=`$as_dirname -- "$file" ||
32742 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32743 X"$file" : 'X\(//\)[^/]' \| \
32744 X"$file" : 'X\(//\)$' \| \
32745 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32746 $as_echo X"$file" |
32747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32748 s//\1/
32749 q
32750 }
32751 /^X\(\/\/\)[^/].*/{
32752 s//\1/
32753 q
32754 }
32755 /^X\(\/\/\)$/{
32756 s//\1/
32757 q
32758 }
32759 /^X\(\/\).*/{
32760 s//\1/
32761 q
32762 }
32763 s/.*/./; q'`
32764 as_dir=$dirpart/$fdir; as_fn_mkdir_p
32765 # echo "creating $dirpart/$file"
32766 echo '# dummy' > "$dirpart/$file"
32767 done
32768 done
32769 }
32770 ;;
32771 "libtool":C)
32772
32773 # See if we are running on zsh, and set the options which allow our
32774 # commands through without removal of \ escapes.
32775 if test -n "${ZSH_VERSION+set}" ; then
32776 setopt NO_GLOB_SUBST
32777 fi
32778
32779 cfgfile="${ofile}T"
32780 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32781 $RM "$cfgfile"
32782
32783 cat <<_LT_EOF >> "$cfgfile"
32784 #! $SHELL
32785
32786 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32787 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32788 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32789 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32790 #
32791 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32792 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32793 # Foundation, Inc.
32794 # Written by Gordon Matzigkeit, 1996
32795 #
32796 # This file is part of GNU Libtool.
32797 #
32798 # GNU Libtool is free software; you can redistribute it and/or
32799 # modify it under the terms of the GNU General Public License as
32800 # published by the Free Software Foundation; either version 2 of
32801 # the License, or (at your option) any later version.
32802 #
32803 # As a special exception to the GNU General Public License,
32804 # if you distribute this file as part of a program or library that
32805 # is built using GNU Libtool, you may include this file under the
32806 # same distribution terms that you use for the rest of that program.
32807 #
32808 # GNU Libtool is distributed in the hope that it will be useful,
32809 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32810 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32811 # GNU General Public License for more details.
32812 #
32813 # You should have received a copy of the GNU General Public License
32814 # along with GNU Libtool; see the file COPYING. If not, a copy
32815 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32816 # obtained by writing to the Free Software Foundation, Inc.,
32817 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32818
32819
32820 # The names of the tagged configurations supported by this script.
32821 available_tags=""
32822
32823 # ### BEGIN LIBTOOL CONFIG
32824
32825 # Which release of libtool.m4 was used?
32826 macro_version=$macro_version
32827 macro_revision=$macro_revision
32828
32829 # Whether or not to build shared libraries.
32830 build_libtool_libs=$enable_shared
32831
32832 # Whether or not to build static libraries.
32833 build_old_libs=$enable_static
32834
32835 # What type of objects to build.
32836 pic_mode=$pic_mode
32837
32838 # Whether or not to optimize for fast installation.
32839 fast_install=$enable_fast_install
32840
32841 # Shell to use when invoking shell scripts.
32842 SHELL=$lt_SHELL
32843
32844 # An echo program that protects backslashes.
32845 ECHO=$lt_ECHO
32846
32847 # The PATH separator for the build system.
32848 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32849
32850 # The host system.
32851 host_alias=$host_alias
32852 host=$host
32853 host_os=$host_os
32854
32855 # The build system.
32856 build_alias=$build_alias
32857 build=$build
32858 build_os=$build_os
32859
32860 # A sed program that does not truncate output.
32861 SED=$lt_SED
32862
32863 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32864 Xsed="\$SED -e 1s/^X//"
32865
32866 # A grep program that handles long lines.
32867 GREP=$lt_GREP
32868
32869 # An ERE matcher.
32870 EGREP=$lt_EGREP
32871
32872 # A literal string matcher.
32873 FGREP=$lt_FGREP
32874
32875 # A BSD- or MS-compatible name lister.
32876 NM=$lt_NM
32877
32878 # Whether we need soft or hard links.
32879 LN_S=$lt_LN_S
32880
32881 # What is the maximum length of a command?
32882 max_cmd_len=$max_cmd_len
32883
32884 # Object file suffix (normally "o").
32885 objext=$ac_objext
32886
32887 # Executable file suffix (normally "").
32888 exeext=$exeext
32889
32890 # whether the shell understands "unset".
32891 lt_unset=$lt_unset
32892
32893 # turn spaces into newlines.
32894 SP2NL=$lt_lt_SP2NL
32895
32896 # turn newlines into spaces.
32897 NL2SP=$lt_lt_NL2SP
32898
32899 # convert \$build file names to \$host format.
32900 to_host_file_cmd=$lt_cv_to_host_file_cmd
32901
32902 # convert \$build files to toolchain format.
32903 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32904
32905 # An object symbol dumper.
32906 OBJDUMP=$lt_OBJDUMP
32907
32908 # Method to check whether dependent libraries are shared objects.
32909 deplibs_check_method=$lt_deplibs_check_method
32910
32911 # Command to use when deplibs_check_method = "file_magic".
32912 file_magic_cmd=$lt_file_magic_cmd
32913
32914 # How to find potential files when deplibs_check_method = "file_magic".
32915 file_magic_glob=$lt_file_magic_glob
32916
32917 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32918 want_nocaseglob=$lt_want_nocaseglob
32919
32920 # DLL creation program.
32921 DLLTOOL=$lt_DLLTOOL
32922
32923 # Command to associate shared and link libraries.
32924 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32925
32926 # The archiver.
32927 AR=$lt_AR
32928
32929 # Flags to create an archive.
32930 AR_FLAGS=$lt_AR_FLAGS
32931
32932 # How to feed a file listing to the archiver.
32933 archiver_list_spec=$lt_archiver_list_spec
32934
32935 # A symbol stripping program.
32936 STRIP=$lt_STRIP
32937
32938 # Commands used to install an old-style archive.
32939 RANLIB=$lt_RANLIB
32940 old_postinstall_cmds=$lt_old_postinstall_cmds
32941 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32942
32943 # Whether to use a lock for old archive extraction.
32944 lock_old_archive_extraction=$lock_old_archive_extraction
32945
32946 # A C compiler.
32947 LTCC=$lt_CC
32948
32949 # LTCC compiler flags.
32950 LTCFLAGS=$lt_CFLAGS
32951
32952 # Take the output of nm and produce a listing of raw symbols and C names.
32953 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32954
32955 # Transform the output of nm in a proper C declaration.
32956 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32957
32958 # Transform the output of nm in a C name address pair.
32959 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32960
32961 # Transform the output of nm in a C name address pair when lib prefix is needed.
32962 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32963
32964 # Specify filename containing input files for \$NM.
32965 nm_file_list_spec=$lt_nm_file_list_spec
32966
32967 # The root where to search for dependent libraries,and in which our libraries should be installed.
32968 lt_sysroot=$lt_sysroot
32969
32970 # The name of the directory that contains temporary libtool files.
32971 objdir=$objdir
32972
32973 # Used to examine libraries when file_magic_cmd begins with "file".
32974 MAGIC_CMD=$MAGIC_CMD
32975
32976 # Must we lock files when doing compilation?
32977 need_locks=$lt_need_locks
32978
32979 # Manifest tool.
32980 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32981
32982 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32983 DSYMUTIL=$lt_DSYMUTIL
32984
32985 # Tool to change global to local symbols on Mac OS X.
32986 NMEDIT=$lt_NMEDIT
32987
32988 # Tool to manipulate fat objects and archives on Mac OS X.
32989 LIPO=$lt_LIPO
32990
32991 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32992 OTOOL=$lt_OTOOL
32993
32994 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32995 OTOOL64=$lt_OTOOL64
32996
32997 # Old archive suffix (normally "a").
32998 libext=$libext
32999
33000 # Shared library suffix (normally ".so").
33001 shrext_cmds=$lt_shrext_cmds
33002
33003 # The commands to extract the exported symbol list from a shared archive.
33004 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33005
33006 # Variables whose values should be saved in libtool wrapper scripts and
33007 # restored at link time.
33008 variables_saved_for_relink=$lt_variables_saved_for_relink
33009
33010 # Do we need the "lib" prefix for modules?
33011 need_lib_prefix=$need_lib_prefix
33012
33013 # Do we need a version for libraries?
33014 need_version=$need_version
33015
33016 # Library versioning type.
33017 version_type=$version_type
33018
33019 # Shared library runtime path variable.
33020 runpath_var=$runpath_var
33021
33022 # Shared library path variable.
33023 shlibpath_var=$shlibpath_var
33024
33025 # Is shlibpath searched before the hard-coded library search path?
33026 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33027
33028 # Format of library name prefix.
33029 libname_spec=$lt_libname_spec
33030
33031 # List of archive names. First name is the real one, the rest are links.
33032 # The last name is the one that the linker finds with -lNAME
33033 library_names_spec=$lt_library_names_spec
33034
33035 # The coded name of the library, if different from the real name.
33036 soname_spec=$lt_soname_spec
33037
33038 # Permission mode override for installation of shared libraries.
33039 install_override_mode=$lt_install_override_mode
33040
33041 # Command to use after installation of a shared archive.
33042 postinstall_cmds=$lt_postinstall_cmds
33043
33044 # Command to use after uninstallation of a shared archive.
33045 postuninstall_cmds=$lt_postuninstall_cmds
33046
33047 # Commands used to finish a libtool library installation in a directory.
33048 finish_cmds=$lt_finish_cmds
33049
33050 # As "finish_cmds", except a single script fragment to be evaled but
33051 # not shown.
33052 finish_eval=$lt_finish_eval
33053
33054 # Whether we should hardcode library paths into libraries.
33055 hardcode_into_libs=$hardcode_into_libs
33056
33057 # Compile-time system search path for libraries.
33058 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33059
33060 # Run-time system search path for libraries.
33061 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33062
33063 # Whether dlopen is supported.
33064 dlopen_support=$enable_dlopen
33065
33066 # Whether dlopen of programs is supported.
33067 dlopen_self=$enable_dlopen_self
33068
33069 # Whether dlopen of statically linked programs is supported.
33070 dlopen_self_static=$enable_dlopen_self_static
33071
33072 # Commands to strip libraries.
33073 old_striplib=$lt_old_striplib
33074 striplib=$lt_striplib
33075
33076
33077 # The linker used to build libraries.
33078 LD=$lt_LD
33079
33080 # How to create reloadable object files.
33081 reload_flag=$lt_reload_flag
33082 reload_cmds=$lt_reload_cmds
33083
33084 # Commands used to build an old-style archive.
33085 old_archive_cmds=$lt_old_archive_cmds
33086
33087 # A language specific compiler.
33088 CC=$lt_compiler
33089
33090 # Is the compiler the GNU compiler?
33091 with_gcc=$GCC
33092
33093 # Compiler flag to turn off builtin functions.
33094 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33095
33096 # Additional compiler flags for building library objects.
33097 pic_flag=$lt_lt_prog_compiler_pic
33098
33099 # How to pass a linker flag through the compiler.
33100 wl=$lt_lt_prog_compiler_wl
33101
33102 # Compiler flag to prevent dynamic linking.
33103 link_static_flag=$lt_lt_prog_compiler_static
33104
33105 # Does compiler simultaneously support -c and -o options?
33106 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33107
33108 # Whether or not to add -lc for building shared libraries.
33109 build_libtool_need_lc=$archive_cmds_need_lc
33110
33111 # Whether or not to disallow shared libs when runtime libs are static.
33112 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33113
33114 # Compiler flag to allow reflexive dlopens.
33115 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33116
33117 # Compiler flag to generate shared objects directly from archives.
33118 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33119
33120 # Whether the compiler copes with passing no objects directly.
33121 compiler_needs_object=$lt_compiler_needs_object
33122
33123 # Create an old-style archive from a shared archive.
33124 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33125
33126 # Create a temporary old-style archive to link instead of a shared archive.
33127 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33128
33129 # Commands used to build a shared archive.
33130 archive_cmds=$lt_archive_cmds
33131 archive_expsym_cmds=$lt_archive_expsym_cmds
33132
33133 # Commands used to build a loadable module if different from building
33134 # a shared archive.
33135 module_cmds=$lt_module_cmds
33136 module_expsym_cmds=$lt_module_expsym_cmds
33137
33138 # Whether we are building with GNU ld or not.
33139 with_gnu_ld=$lt_with_gnu_ld
33140
33141 # Flag that allows shared libraries with undefined symbols to be built.
33142 allow_undefined_flag=$lt_allow_undefined_flag
33143
33144 # Flag that enforces no undefined symbols.
33145 no_undefined_flag=$lt_no_undefined_flag
33146
33147 # Flag to hardcode \$libdir into a binary during linking.
33148 # This must work even if \$libdir does not exist
33149 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33150
33151 # Whether we need a single "-rpath" flag with a separated argument.
33152 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33153
33154 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33155 # DIR into the resulting binary.
33156 hardcode_direct=$hardcode_direct
33157
33158 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33159 # DIR into the resulting binary and the resulting library dependency is
33160 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33161 # library is relocated.
33162 hardcode_direct_absolute=$hardcode_direct_absolute
33163
33164 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33165 # into the resulting binary.
33166 hardcode_minus_L=$hardcode_minus_L
33167
33168 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33169 # into the resulting binary.
33170 hardcode_shlibpath_var=$hardcode_shlibpath_var
33171
33172 # Set to "yes" if building a shared library automatically hardcodes DIR
33173 # into the library and all subsequent libraries and executables linked
33174 # against it.
33175 hardcode_automatic=$hardcode_automatic
33176
33177 # Set to yes if linker adds runtime paths of dependent libraries
33178 # to runtime path list.
33179 inherit_rpath=$inherit_rpath
33180
33181 # Whether libtool must link a program against all its dependency libraries.
33182 link_all_deplibs=$link_all_deplibs
33183
33184 # Set to "yes" if exported symbols are required.
33185 always_export_symbols=$always_export_symbols
33186
33187 # The commands to list exported symbols.
33188 export_symbols_cmds=$lt_export_symbols_cmds
33189
33190 # Symbols that should not be listed in the preloaded symbols.
33191 exclude_expsyms=$lt_exclude_expsyms
33192
33193 # Symbols that must always be exported.
33194 include_expsyms=$lt_include_expsyms
33195
33196 # Commands necessary for linking programs (against libraries) with templates.
33197 prelink_cmds=$lt_prelink_cmds
33198
33199 # Commands necessary for finishing linking programs.
33200 postlink_cmds=$lt_postlink_cmds
33201
33202 # Specify filename containing input files.
33203 file_list_spec=$lt_file_list_spec
33204
33205 # How to hardcode a shared library path into an executable.
33206 hardcode_action=$hardcode_action
33207
33208 # ### END LIBTOOL CONFIG
33209
33210 _LT_EOF
33211
33212 case $host_os in
33213 aix3*)
33214 cat <<\_LT_EOF >> "$cfgfile"
33215 # AIX sometimes has problems with the GCC collect2 program. For some
33216 # reason, if we set the COLLECT_NAMES environment variable, the problems
33217 # vanish in a puff of smoke.
33218 if test "X${COLLECT_NAMES+set}" != Xset; then
33219 COLLECT_NAMES=
33220 export COLLECT_NAMES
33221 fi
33222 _LT_EOF
33223 ;;
33224 esac
33225
33226
33227 ltmain="$ac_aux_dir/ltmain.sh"
33228
33229
33230 # We use sed instead of cat because bash on DJGPP gets confused if
33231 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33232 # text mode, it properly converts lines to CR/LF. This bash problem
33233 # is reportedly fixed, but why not run on old versions too?
33234 sed '$q' "$ltmain" >> "$cfgfile" \
33235 || (rm -f "$cfgfile"; exit 1)
33236
33237 if test x"$xsi_shell" = xyes; then
33238 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33239 func_dirname ()\
33240 {\
33241 \ case ${1} in\
33242 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33243 \ * ) func_dirname_result="${3}" ;;\
33244 \ esac\
33245 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33246 && mv -f "$cfgfile.tmp" "$cfgfile" \
33247 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33248 test 0 -eq $? || _lt_function_replace_fail=:
33249
33250
33251 sed -e '/^func_basename ()$/,/^} # func_basename /c\
33252 func_basename ()\
33253 {\
33254 \ func_basename_result="${1##*/}"\
33255 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33256 && mv -f "$cfgfile.tmp" "$cfgfile" \
33257 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33258 test 0 -eq $? || _lt_function_replace_fail=:
33259
33260
33261 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33262 func_dirname_and_basename ()\
33263 {\
33264 \ case ${1} in\
33265 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33266 \ * ) func_dirname_result="${3}" ;;\
33267 \ esac\
33268 \ func_basename_result="${1##*/}"\
33269 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33270 && mv -f "$cfgfile.tmp" "$cfgfile" \
33271 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33272 test 0 -eq $? || _lt_function_replace_fail=:
33273
33274
33275 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33276 func_stripname ()\
33277 {\
33278 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33279 \ # positional parameters, so assign one to ordinary parameter first.\
33280 \ func_stripname_result=${3}\
33281 \ func_stripname_result=${func_stripname_result#"${1}"}\
33282 \ func_stripname_result=${func_stripname_result%"${2}"}\
33283 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33284 && mv -f "$cfgfile.tmp" "$cfgfile" \
33285 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33286 test 0 -eq $? || _lt_function_replace_fail=:
33287
33288
33289 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33290 func_split_long_opt ()\
33291 {\
33292 \ func_split_long_opt_name=${1%%=*}\
33293 \ func_split_long_opt_arg=${1#*=}\
33294 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33295 && mv -f "$cfgfile.tmp" "$cfgfile" \
33296 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33297 test 0 -eq $? || _lt_function_replace_fail=:
33298
33299
33300 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33301 func_split_short_opt ()\
33302 {\
33303 \ func_split_short_opt_arg=${1#??}\
33304 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33305 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33306 && mv -f "$cfgfile.tmp" "$cfgfile" \
33307 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33308 test 0 -eq $? || _lt_function_replace_fail=:
33309
33310
33311 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33312 func_lo2o ()\
33313 {\
33314 \ case ${1} in\
33315 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33316 \ *) func_lo2o_result=${1} ;;\
33317 \ esac\
33318 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33319 && mv -f "$cfgfile.tmp" "$cfgfile" \
33320 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33321 test 0 -eq $? || _lt_function_replace_fail=:
33322
33323
33324 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33325 func_xform ()\
33326 {\
33327 func_xform_result=${1%.*}.lo\
33328 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33329 && mv -f "$cfgfile.tmp" "$cfgfile" \
33330 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33331 test 0 -eq $? || _lt_function_replace_fail=:
33332
33333
33334 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33335 func_arith ()\
33336 {\
33337 func_arith_result=$(( $* ))\
33338 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33339 && mv -f "$cfgfile.tmp" "$cfgfile" \
33340 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33341 test 0 -eq $? || _lt_function_replace_fail=:
33342
33343
33344 sed -e '/^func_len ()$/,/^} # func_len /c\
33345 func_len ()\
33346 {\
33347 func_len_result=${#1}\
33348 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33349 && mv -f "$cfgfile.tmp" "$cfgfile" \
33350 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33351 test 0 -eq $? || _lt_function_replace_fail=:
33352
33353 fi
33354
33355 if test x"$lt_shell_append" = xyes; then
33356 sed -e '/^func_append ()$/,/^} # func_append /c\
33357 func_append ()\
33358 {\
33359 eval "${1}+=\\${2}"\
33360 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33361 && mv -f "$cfgfile.tmp" "$cfgfile" \
33362 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33363 test 0 -eq $? || _lt_function_replace_fail=:
33364
33365
33366 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33367 func_append_quoted ()\
33368 {\
33369 \ func_quote_for_eval "${2}"\
33370 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33371 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33372 && mv -f "$cfgfile.tmp" "$cfgfile" \
33373 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33374 test 0 -eq $? || _lt_function_replace_fail=:
33375
33376
33377 # Save a `func_append' function call where possible by direct use of '+='
33378 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33379 && mv -f "$cfgfile.tmp" "$cfgfile" \
33380 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33381 test 0 -eq $? || _lt_function_replace_fail=:
33382 else
33383 # Save a `func_append' function call even when '+=' is not available
33384 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33385 && mv -f "$cfgfile.tmp" "$cfgfile" \
33386 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33387 test 0 -eq $? || _lt_function_replace_fail=:
33388 fi
33389
33390 if test x"$_lt_function_replace_fail" = x":"; then
33391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33392 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33393 fi
33394
33395
33396 mv -f "$cfgfile" "$ofile" ||
33397 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33398 chmod +x "$ofile"
33399
33400 ;;
33401
33402 esac
33403 done # for ac_tag
33404
33405
33406 as_fn_exit 0
33407 _ACEOF
33408 ac_clean_files=$ac_clean_files_save
33409
33410 test $ac_write_fail = 0 ||
33411 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33412
33413
33414 # configure is writing to config.log, and then calls config.status.
33415 # config.status does its own redirection, appending to config.log.
33416 # Unfortunately, on DOS this fails, as config.log is still kept open
33417 # by configure, so config.status won't be able to write to it; its
33418 # output is simply discarded. So we exec the FD to /dev/null,
33419 # effectively closing config.log, so it can be properly (re)opened and
33420 # appended to by config.status. When coming back to configure, we
33421 # need to make the FD available again.
33422 if test "$no_create" != yes; then
33423 ac_cs_success=:
33424 ac_config_status_args=
33425 test "$silent" = yes &&
33426 ac_config_status_args="$ac_config_status_args --quiet"
33427 exec 5>/dev/null
33428 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33429 exec 5>>config.log
33430 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33431 # would make configure fail if this is the last instruction.
33432 $ac_cs_success || as_fn_exit 1
33433 fi
33434 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33436 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33437 fi
33438