]> git.proxmox.com Git - mirror_zfs-debian.git/blame - configure
Use dh-autoreconf
[mirror_zfs-debian.git] / configure
CommitLineData
0e3762ca
CALP
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
23d56208 3# Generated by GNU Autoconf 2.68 for zfs 0.6.5.3.
0e3762ca
CALP
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
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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 }
81fi
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.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
23d56208 92as_myself=
0e3762ca
CALP
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
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
102IFS=$as_save_IFS
103
104 ;;
105esac
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.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if 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
145else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151esac
152fi
153"
154 as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168 exitcode=1; echo positional parameters were not saved.
169fi
170test 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
23d56208
AX
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
0e3762ca
CALP
183test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
185 as_have_required=yes
186else
187 as_have_required=no
188fi
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191else
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193as_found=false
194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195do
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
209fi
210fi
211 done;;
212 esac
213 as_found=false
214done
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
218fi; }
219IFS=$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.
23d56208 226 # Preserve -v and -x to the replacement shell.
0e3762ca
CALP
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
23d56208
AX
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+"$@"}
0e3762ca
CALP
238fi
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
253fi
254fi
255fi
256SHELL=${CONFIG_SHELL-/bin/sh}
257export SHELL
258# Unset more variables known to interfere with behavior of common tools.
259CLICOLOR_FORCE= GREP_OPTIONS=
260unset CLICOLOR_FORCE GREP_OPTIONS
261
262## --------------------- ##
263## M4sh Shell Functions. ##
264## --------------------- ##
265# as_fn_unset VAR
266# ---------------
267# Portably unset VAR.
268as_fn_unset ()
269{
270 { eval $1=; unset $1;}
271}
272as_unset=as_fn_unset
273
274# as_fn_set_status STATUS
275# -----------------------
276# Set $? to STATUS, without forking.
277as_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.
285as_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.
295as_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.
345if (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 }'
350else
351 as_fn_append ()
352 {
353 eval $1=\$$1\$2
354 }
355fi # 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.
362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
364 {
365 as_val=$(( $* ))
366 }'
367else
368 as_fn_arith ()
369 {
370 as_val=`expr "$@" || test $? -eq 1`
371 }
372fi # 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.
380as_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
391if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 as_expr=expr
394else
395 as_expr=false
396fi
397
398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400else
401 as_basename=false
402fi
403
404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_dirname=dirname
406else
407 as_dirname=false
408fi
409
410as_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.
430as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433as_cr_digits='0123456789'
434as_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
468ECHO_C= ECHO_N= ECHO_T=
469case `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';;
479esac
480
481rm -f conf$$ conf$$.exe conf$$.file
482if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
484else
485 rm -f conf$$.dir
486 mkdir conf$$.dir 2>/dev/null
487fi
488if (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
502else
503 as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
510else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513fi
514
515if test -x / >/dev/null 2>&1; then
516 as_test_x='test -x'
517else
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 '
535fi
536as_executable_p=$as_test_x
537
538# Sed expression to map a string onto a valid CPP name.
539as_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.
542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
0e3762ca
CALP
544SHELL=${CONFIG_SHELL-/bin/sh}
545
0e3762ca
CALP
546
547test -n "$DJDIR" || exec 7<&0 </dev/null
548exec 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.
553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555#
556# Initializations.
557#
558ac_default_prefix=/usr/local
559ac_clean_files=
560ac_config_libobj_dir=.
561LIBOBJS=
562cross_compiling=no
563subdirs=
564MFLAGS=
565MAKEFLAGS=
566
567# Identity of this package.
23d56208
AX
568PACKAGE_NAME='zfs'
569PACKAGE_TARNAME='zfs'
570PACKAGE_VERSION='0.6.5.3'
571PACKAGE_STRING='zfs 0.6.5.3'
572PACKAGE_BUGREPORT=''
573PACKAGE_URL=''
0e3762ca
CALP
574
575# Factoring default headers for most tests.
576ac_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
611ac_subst_vars='am__EXEEXT_FALSE
612am__EXEEXT_TRUE
613LTLIBOBJS
614LIBOBJS
615DEBUG_DMU_TX
616DEBUG_ZFS
617DEBUG_STACKFLAGS
618DEBUG_CFLAGS
619CONFIG_KERNEL_FALSE
620CONFIG_KERNEL_TRUE
621CONFIG_USER_FALSE
622CONFIG_USER_TRUE
23d56208 623runstatedir
0e3762ca 624FRAME_LARGER_THAN
0e3762ca
CALP
625LIBBLKID
626LIBUUID
627ZLIB
628dracutdir
23d56208
AX
629ZFS_INIT_SYSV
630modulesloaddir
631systemdpresetdir
632systemdunitdir
633ZFS_MODULE_LOAD
634ZFS_INIT_SYSTEMD
0e3762ca
CALP
635udevruledir
636udevdir
23d56208 637mounthelperdir
0e3762ca
CALP
638KERNELCPPFLAGS
639KERNELMAKE_PARAMS
640SPL_SYMBOLS
641SPL_VERSION
642SPL_OBJ
643SPL
644LINUX_SYMBOLS
645LINUX_VERSION
646LINUX_OBJ
647LINUX
23d56208 648NO_BOOL_COMPARE
0e3762ca
CALP
649NO_UNUSED_BUT_SET_VARIABLE
650ZFS_CONFIG
651TARGET_ASM_DIR
652ALIEN_VERSION
653ALIEN
654HAVE_ALIEN
655DPKGBUILD_VERSION
656DPKGBUILD
657HAVE_DPKGBUILD
658DPKG_VERSION
659DPKG
660HAVE_DPKG
661SRPM_DEFINE_COMMON
662SRPM_DEFINE_DKMS
663SRPM_DEFINE_KMOD
664SRPM_DEFINE_UTIL
665RPM_DEFINE_COMMON
666RPM_DEFINE_DKMS
667RPM_DEFINE_KMOD
668RPM_DEFINE_UTIL
669RPM_SPEC_DIR
670RPMBUILD_VERSION
671RPMBUILD
672HAVE_RPMBUILD
673RPM_VERSION
674RPM
675HAVE_RPM
23d56208
AX
676DEFINE_INITRAMFS
677DEFAULT_INITCONF_DIR
0e3762ca
CALP
678DEFAULT_INIT_SCRIPT
679DEFAULT_INIT_DIR
680DEFAULT_PACKAGE
681VENDOR
682am__fastdepCCAS_FALSE
683am__fastdepCCAS_TRUE
684CCASDEPMODE
685CCASFLAGS
686CCAS
687CPP
688OTOOL64
689OTOOL
690LIPO
691NMEDIT
692DSYMUTIL
23d56208 693MANIFEST_TOOL
0e3762ca 694RANLIB
23d56208 695ac_ct_AR
0e3762ca 696AR
23d56208 697DLLTOOL
0e3762ca
CALP
698OBJDUMP
699LN_S
700NM
701ac_ct_DUMPBIN
702DUMPBIN
703LD
704FGREP
705EGREP
706GREP
707SED
708LIBTOOL
709am__fastdepCC_FALSE
710am__fastdepCC_TRUE
711CCDEPMODE
23d56208 712am__nodep
0e3762ca
CALP
713AMDEPBACKSLASH
714AMDEP_FALSE
715AMDEP_TRUE
716am__quote
717am__include
718DEPDIR
719OBJEXT
720EXEEXT
721ac_ct_CC
722CPPFLAGS
723LDFLAGS
724CFLAGS
725CC
726am__untar
727am__tar
728AMTAR
729am__leading_dot
730SET_MAKE
0e3762ca
CALP
731mkdir_p
732MKDIR_P
733INSTALL_STRIP_PROGRAM
734STRIP
735install_sh
736MAKEINFO
737AUTOHEADER
738AUTOMAKE
739AUTOCONF
740ACLOCAL
741VERSION
742PACKAGE
743CYGPATH_W
744am__isrc
745INSTALL_DATA
746INSTALL_SCRIPT
747INSTALL_PROGRAM
748AM_BACKSLASH
749AM_DEFAULT_VERBOSITY
23d56208
AX
750AM_DEFAULT_V
751AM_V
0e3762ca
CALP
752MAINT
753MAINTAINER_MODE_FALSE
754MAINTAINER_MODE_TRUE
755target_os
756target_vendor
757target_cpu
758target
759host_os
760host_vendor
761host_cpu
762host
763build_os
764build_vendor
765build_cpu
766build
767ZFS_META_LT_AGE
768ZFS_META_LT_REVISION
769ZFS_META_LT_CURRENT
770ZFS_META_AUTHOR
771ZFS_META_DATA
772ZFS_META_ALIAS
773ZFS_META_LICENSE
774RELEASE
775ZFS_META_RELEASE
776ZFS_META_VERSION
777ZFS_META_NAME
c06d4368 778AWK
0e3762ca
CALP
779target_alias
780host_alias
781build_alias
782LIBS
783ECHO_T
784ECHO_N
785ECHO_C
786DEFS
787mandir
788localedir
789libdir
790psdir
791pdfdir
792dvidir
793htmldir
794infodir
795docdir
796oldincludedir
797includedir
798localstatedir
799sharedstatedir
800sysconfdir
801datadir
802datarootdir
803libexecdir
804sbindir
805bindir
806program_transform_name
807prefix
808exec_prefix
809PACKAGE_URL
810PACKAGE_BUGREPORT
811PACKAGE_STRING
812PACKAGE_VERSION
813PACKAGE_TARNAME
814PACKAGE_NAME
815PATH_SEPARATOR
816SHELL'
817ac_subst_files=''
818ac_user_opts='
819enable_option_checking
820enable_maintainer_mode
821enable_silent_rules
822enable_dependency_tracking
823enable_shared
824enable_static
825with_pic
826enable_fast_install
827with_gnu_ld
23d56208 828with_sysroot
0e3762ca
CALP
829enable_libtool_lock
830with_spec
831with_config
832enable_linux_builtin
833with_linux
834with_linux_obj
835with_spl
836with_spl_obj
837with_spl_timeout
23d56208 838with_mounthelperdir
0e3762ca
CALP
839with_udevdir
840with_udevruledir
23d56208
AX
841enable_systemd
842with_systemdunitdir
843with_systemdpresetdir
844with_systemdmodulesloaddir
845enable_sysvinit
0e3762ca
CALP
846with_dracutdir
847with_blkid
0e3762ca
CALP
848enable_debug
849enable_debug_dmu_tx
850'
851 ac_precious_vars='build_alias
852host_alias
853target_alias
854CC
855CFLAGS
856LDFLAGS
857LIBS
858CPPFLAGS
859CPP
860CCAS
861CCASFLAGS'
862
863
864# Initialize some variables set by options.
865ac_init_help=
866ac_init_version=false
867ac_unrecognized_opts=
868ac_unrecognized_sep=
869# The variables have the same names as the options, with
870# dashes changed to underlines.
871cache_file=/dev/null
872exec_prefix=NONE
873no_create=
874no_recursion=
875prefix=NONE
876program_prefix=NONE
877program_suffix=NONE
878program_transform_name=s,x,x,
879silent=
880site=
881srcdir=
882verbose=
883x_includes=NONE
884x_libraries=NONE
885
886# Installation directory options.
887# These are left unexpanded so users can "make install exec_prefix=/foo"
888# and all the variables that are supposed to be based on exec_prefix
889# by default will actually change.
890# Use braces instead of parens because sh, perl, etc. also accept them.
891# (The list follows the same order as the GNU Coding Standards.)
892bindir='${exec_prefix}/bin'
893sbindir='${exec_prefix}/sbin'
894libexecdir='${exec_prefix}/libexec'
895datarootdir='${prefix}/share'
896datadir='${datarootdir}'
897sysconfdir='${prefix}/etc'
898sharedstatedir='${prefix}/com'
899localstatedir='${prefix}/var'
900includedir='${prefix}/include'
901oldincludedir='/usr/include'
23d56208 902docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
0e3762ca
CALP
903infodir='${datarootdir}/info'
904htmldir='${docdir}'
905dvidir='${docdir}'
906pdfdir='${docdir}'
907psdir='${docdir}'
908libdir='${exec_prefix}/lib'
909localedir='${datarootdir}/locale'
910mandir='${datarootdir}/man'
911
912ac_prev=
913ac_dashdash=
914for ac_option
915do
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\$ac_option
919 ac_prev=
920 continue
921 fi
922
923 case $ac_option in
924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 *=) ac_optarg= ;;
926 *) ac_optarg=yes ;;
927 esac
928
929 # Accept the important Cygnus configure options, so we can diagnose typos.
930
931 case $ac_dashdash$ac_option in
932 --)
933 ac_dashdash=yes ;;
934
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 bindir=$ac_optarg ;;
939
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
944
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
951
952 --config-cache | -C)
953 cache_file=config.cache ;;
954
955 -datadir | --datadir | --datadi | --datad)
956 ac_prev=datadir ;;
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
959
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
966
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976"enable_$ac_useropt"
977"*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
992
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: $ac_useropt"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002"enable_$ac_useropt"
1003"*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1028
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1033
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1063
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1137
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
1156 sbindir=$ac_optarg ;;
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
1167 sharedstatedir=$ac_optarg ;;
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
1172 site=$ac_optarg ;;
1173
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1196
1197 -with-* | --with-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206"with_$ac_useropt"
1207"*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=\$ac_optarg ;;
1212
1213 -without-* | --without-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222"with_$ac_useropt"
1223"*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=no ;;
1228
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1232
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1239
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1246
1247 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248Try \`$0 --help' for more information"
1249 ;;
1250
1251 *=*)
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 case $ac_envvar in #(
1255 '' | [0-9]* | *[!_$as_cr_alnum]* )
1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257 esac
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1260
1261 *)
1262 # FIXME: should be removed in autoconf 3.0.
1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
23d56208 1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
0e3762ca
CALP
1267 ;;
1268
1269 esac
1270done
1271
1272if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 as_fn_error $? "missing argument to $ac_option"
1275fi
1276
1277if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1279 no) ;;
1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 esac
1283fi
1284
1285# Check all directory arguments for consistency.
1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1290do
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1293 case $ac_val in
1294 */ )
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1297 esac
1298 # Be sure to have absolute directory names.
1299 case $ac_val in
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 esac
1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304done
1305
1306# There might be people who depend on the old broken behavior: `$host'
1307# used to hold the argument of --host etc.
1308# FIXME: To remove some day.
1309build=$build_alias
1310host=$host_alias
1311target=$target_alias
1312
1313# FIXME: To remove some day.
1314if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
1317 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1318 If a cross compiler is detected then cross compile mode will be used" >&2
1319 elif test "x$build_alias" != "x$host_alias"; then
1320 cross_compiling=yes
1321 fi
1322fi
1323
1324ac_tool_prefix=
1325test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
1327test "$silent" = yes && exec 6>/dev/null
1328
1329
1330ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331ac_ls_di=`ls -di .` &&
1332ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333 as_fn_error $? "working directory cannot be determined"
1334test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335 as_fn_error $? "pwd does not report name of working directory"
1336
1337
1338# Find the source files, if location was not specified.
1339if test -z "$srcdir"; then
1340 ac_srcdir_defaulted=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir=`$as_dirname -- "$as_myself" ||
1343$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$as_myself" : 'X\(//\)[^/]' \| \
1345 X"$as_myself" : 'X\(//\)$' \| \
1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347$as_echo X"$as_myself" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)[^/].*/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\/\)$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\).*/{
1361 s//\1/
1362 q
1363 }
1364 s/.*/./; q'`
1365 srcdir=$ac_confdir
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 srcdir=..
1368 fi
1369else
1370 ac_srcdir_defaulted=no
1371fi
1372if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1375fi
1376ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377ac_abs_confdir=`(
1378 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1379 pwd)`
1380# When building in place, set srcdir=.
1381if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 srcdir=.
1383fi
1384# Remove unnecessary trailing slashes from srcdir.
1385# Double slashes in file names in object file debugging info
1386# mess up M-x gdb in Emacs.
1387case $srcdir in
1388*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389esac
1390for ac_var in $ac_precious_vars; do
1391 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_env_${ac_var}_value=\$${ac_var}
1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395done
1396
1397#
1398# Report the --help message.
1399#
1400if test "$ac_init_help" = "long"; then
1401 # Omit some internal or obsolete options to make the list less imposing.
1402 # This message is too long to be a string in the A/UX 3.1 sh.
1403 cat <<_ACEOF
23d56208 1404\`configure' configures zfs 0.6.5.3 to adapt to many kinds of systems.
0e3762ca
CALP
1405
1406Usage: $0 [OPTION]... [VAR=VALUE]...
1407
1408To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409VAR=VALUE. See below for descriptions of some of the useful variables.
1410
1411Defaults for the options are specified in brackets.
1412
1413Configuration:
1414 -h, --help display this help and exit
1415 --help=short display options specific to this package
1416 --help=recursive display the short help of all the included packages
1417 -V, --version display version information and exit
1418 -q, --quiet, --silent do not print \`checking ...' messages
1419 --cache-file=FILE cache test results in FILE [disabled]
1420 -C, --config-cache alias for \`--cache-file=config.cache'
1421 -n, --no-create do not create output files
1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1423
1424Installation directories:
1425 --prefix=PREFIX install architecture-independent files in PREFIX
1426 [$ac_default_prefix]
1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 [PREFIX]
1429
1430By default, \`make install' will install all the files in
1431\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433for instance \`--prefix=\$HOME'.
1434
1435For better control, use the options below.
1436
1437Fine tuning of the installation directories:
1438 --bindir=DIR user executables [EPREFIX/bin]
1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
1440 --libexecdir=DIR program executables [EPREFIX/libexec]
1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
23d56208 1452 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
0e3762ca
CALP
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1457_ACEOF
1458
1459 cat <<\_ACEOF
1460
1461Program names:
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465
1466System types:
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1469 --target=TARGET configure for building compilers for TARGET [HOST]
1470_ACEOF
1471fi
1472
1473if test -n "$ac_init_help"; then
23d56208
AX
1474 case $ac_init_help in
1475 short | recursive ) echo "Configuration of zfs 0.6.5.3:";;
1476 esac
0e3762ca
CALP
1477 cat <<\_ACEOF
1478
1479Optional Features:
1480 --disable-option-checking ignore unrecognized --enable/--with options
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483 --enable-maintainer-mode enable make rules and dependencies not useful
1484 (and sometimes confusing) to the casual installer
1485 --enable-silent-rules less verbose build output (undo: `make V=1')
1486 --disable-silent-rules verbose build output (undo: `make V=0')
1487 --disable-dependency-tracking speeds up one-time build
1488 --enable-dependency-tracking do not reject slow dependency extractors
1489 --enable-shared[=PKGS] build shared libraries [default=yes]
1490 --enable-static[=PKGS] build static libraries [default=yes]
1491 --enable-fast-install[=PKGS]
1492 optimize for fast installation [default=yes]
1493 --disable-libtool-lock avoid locking (might break parallel builds)
1494 --enable-linux-builtin Configure for builtin in-tree kernel modules
1495 [default=no]
23d56208
AX
1496 --enable-systemd install systemd unit/preset files [[default: yes]]
1497 --enable-sysvinit install SysV init scripts [default: yes]
0e3762ca
CALP
1498 --enable-debug Enable generic debug support [default=no]
1499 --enable-debug-dmu-tx Enable dmu tx validation [default=no]
1500
1501Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
23d56208 1504 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
0e3762ca
CALP
1505 both]
1506 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
23d56208
AX
1507 --with-sysroot=DIR Search for dependent libraries within DIR
1508 (or the compiler's sysroot if not specified).
1509 --with-spec=SPEC Spec files 'generic|redhat'
0e3762ca
CALP
1510 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1511 --with-linux=PATH Path to kernel source
1512 --with-linux-obj=PATH Path to kernel build objects
1513 --with-spl=PATH Path to spl source
1514 --with-spl-obj=PATH Path to spl build objects
c06d4368 1515 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
23d56208
AX
1516 --with-mounthelperdir=DIR
1517 install mount.zfs in dir [[/sbin]]
1518 --with-udevdir=DIR install udev helpers [default=check]
0e3762ca 1519 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
23d56208
AX
1520 --with-systemdunitdir=DIR
1521 install systemd unit files in dir
1522 [[/usr/lib/systemd/system]]
1523 --with-systemdpresetdir=DIR
1524 install systemd preset files in dir
1525 [[/usr/lib/systemd/system-preset]]
1526 --with-systemdmodulesloaddir=DIR
1527 install systemd module load files into dir
1528 [[/usr/lib/modules-load.d]]
1529 --with-dracutdir=DIR install dracut helpers [default=check]
0e3762ca 1530 --with-blkid support blkid caching [default=check]
0e3762ca
CALP
1531
1532Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1540 CPP C preprocessor
1541 CCAS assembler compiler command (defaults to CC)
1542 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1543
1544Use these variables to override the choices made by `configure' or to help
1545it to find libraries and programs with nonstandard names/locations.
1546
1547Report bugs to the package provider.
1548_ACEOF
1549ac_status=$?
1550fi
1551
1552if test "$ac_init_help" = "recursive"; then
1553 # If there are subdirs, report their specific --help.
1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555 test -d "$ac_dir" ||
1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557 continue
1558 ac_builddir=.
1559
1560case "$ac_dir" in
1561.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562*)
1563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564 # A ".." for each directory in $ac_dir_suffix.
1565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566 case $ac_top_builddir_sub in
1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569 esac ;;
1570esac
1571ac_abs_top_builddir=$ac_pwd
1572ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573# for backward compatibility:
1574ac_top_builddir=$ac_top_build_prefix
1575
1576case $srcdir in
1577 .) # We are building in place.
1578 ac_srcdir=.
1579 ac_top_srcdir=$ac_top_builddir_sub
1580 ac_abs_top_srcdir=$ac_pwd ;;
1581 [\\/]* | ?:[\\/]* ) # Absolute name.
1582 ac_srcdir=$srcdir$ac_dir_suffix;
1583 ac_top_srcdir=$srcdir
1584 ac_abs_top_srcdir=$srcdir ;;
1585 *) # Relative name.
1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587 ac_top_srcdir=$ac_top_build_prefix$srcdir
1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589esac
1590ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591
1592 cd "$ac_dir" || { ac_status=$?; continue; }
1593 # Check for guested configure.
1594 if test -f "$ac_srcdir/configure.gnu"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597 elif test -f "$ac_srcdir/configure"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure" --help=recursive
1600 else
1601 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602 fi || ac_status=$?
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1604 done
1605fi
1606
1607test -n "$ac_init_help" && exit $ac_status
1608if $ac_init_version; then
1609 cat <<\_ACEOF
23d56208
AX
1610zfs configure 0.6.5.3
1611generated by GNU Autoconf 2.68
0e3762ca
CALP
1612
1613Copyright (C) 2010 Free Software Foundation, Inc.
1614This configure script is free software; the Free Software Foundation
1615gives unlimited permission to copy, distribute and modify it.
1616_ACEOF
1617 exit
1618fi
1619
1620## ------------------------ ##
1621## Autoconf initialization. ##
1622## ------------------------ ##
1623
1624# ac_fn_c_try_compile LINENO
1625# --------------------------
1626# Try to compile conftest.$ac_ext, and return whether this succeeded.
1627ac_fn_c_try_compile ()
1628{
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext
1631 if { { ac_try="$ac_compile"
1632case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635esac
1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637$as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_compile") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1644 fi
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest.$ac_objext; then :
1650 ac_retval=0
1651else
1652 $as_echo "$as_me: failed program was:" >&5
1653sed 's/^/| /' conftest.$ac_ext >&5
1654
1655 ac_retval=1
1656fi
23d56208 1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0e3762ca
CALP
1658 as_fn_set_status $ac_retval
1659
1660} # ac_fn_c_try_compile
1661
1662# ac_fn_c_try_link LINENO
1663# -----------------------
1664# Try to link conftest.$ac_ext, and return whether this succeeded.
1665ac_fn_c_try_link ()
1666{
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 rm -f conftest.$ac_objext conftest$ac_exeext
1669 if { { ac_try="$ac_link"
1670case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_link") 2>conftest.err
1677 ac_status=$?
1678 if test -s conftest.err; then
1679 grep -v '^ *+' conftest.err >conftest.er1
1680 cat conftest.er1 >&5
1681 mv -f conftest.er1 conftest.err
1682 fi
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && {
1685 test -z "$ac_c_werror_flag" ||
1686 test ! -s conftest.err
1687 } && test -s conftest$ac_exeext && {
1688 test "$cross_compiling" = yes ||
1689 $as_test_x conftest$ac_exeext
1690 }; then :
1691 ac_retval=0
1692else
1693 $as_echo "$as_me: failed program was:" >&5
1694sed 's/^/| /' conftest.$ac_ext >&5
1695
1696 ac_retval=1
1697fi
1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700 # interfere with the next link command; also delete a directory that is
1701 # left behind by Apple's compiler. We do this before executing the actions.
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
23d56208 1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0e3762ca
CALP
1704 as_fn_set_status $ac_retval
1705
1706} # ac_fn_c_try_link
1707
1708# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709# -------------------------------------------------------
1710# Tests whether HEADER exists and can be compiled using the include files in
1711# INCLUDES, setting the cache variable VAR accordingly.
1712ac_fn_c_check_header_compile ()
1713{
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716$as_echo_n "checking for $2... " >&6; }
23d56208 1717if eval \${$3+:} false; then :
0e3762ca
CALP
1718 $as_echo_n "(cached) " >&6
1719else
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721/* end confdefs.h. */
1722$4
1723#include <$2>
1724_ACEOF
1725if ac_fn_c_try_compile "$LINENO"; then :
1726 eval "$3=yes"
1727else
1728 eval "$3=no"
1729fi
1730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731fi
1732eval ac_res=\$$3
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734$as_echo "$ac_res" >&6; }
23d56208 1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0e3762ca
CALP
1736
1737} # ac_fn_c_check_header_compile
1738
1739# ac_fn_c_try_cpp LINENO
1740# ----------------------
1741# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1742ac_fn_c_try_cpp ()
1743{
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if { { ac_try="$ac_cpp conftest.$ac_ext"
1746case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749esac
1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751$as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1753 ac_status=$?
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1756 cat conftest.er1 >&5
1757 mv -f conftest.er1 conftest.err
1758 fi
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } > conftest.i && {
1761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1762 test ! -s conftest.err
1763 }; then :
1764 ac_retval=0
1765else
1766 $as_echo "$as_me: failed program was:" >&5
1767sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 ac_retval=1
1770fi
23d56208 1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0e3762ca
CALP
1772 as_fn_set_status $ac_retval
1773
1774} # ac_fn_c_try_cpp
1775
1776# ac_fn_c_try_run LINENO
1777# ----------------------
1778# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1779# that executables *can* be run.
1780ac_fn_c_try_run ()
1781{
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if { { ac_try="$ac_link"
1784case "(($ac_try" in
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1787esac
1788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789$as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_link") 2>&5
1791 ac_status=$?
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1794 { { case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797esac
1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799$as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_try") 2>&5
1801 ac_status=$?
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; }; }; then :
1804 ac_retval=0
1805else
1806 $as_echo "$as_me: program exited with status $ac_status" >&5
1807 $as_echo "$as_me: failed program was:" >&5
1808sed 's/^/| /' conftest.$ac_ext >&5
1809
1810 ac_retval=$ac_status
1811fi
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
23d56208 1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0e3762ca
CALP
1814 as_fn_set_status $ac_retval
1815
1816} # ac_fn_c_try_run
1817
1818# ac_fn_c_check_func LINENO FUNC VAR
1819# ----------------------------------
1820# Tests whether FUNC exists, setting the cache variable VAR accordingly
1821ac_fn_c_check_func ()
1822{
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825$as_echo_n "checking for $2... " >&6; }
23d56208 1826if eval \${$3+:} false; then :
0e3762ca
CALP
1827 $as_echo_n "(cached) " >&6
1828else
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h. */
1831/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1833#define $2 innocuous_$2
1834
1835/* System header to define __stub macros and hopefully few prototypes,
1836 which can conflict with char $2 (); below.
1837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1838 <limits.h> exists even on freestanding compilers. */
1839
1840#ifdef __STDC__
1841# include <limits.h>
1842#else
1843# include <assert.h>
1844#endif
1845
1846#undef $2
1847
1848/* Override any GCC internal prototype to avoid an error.
1849 Use char because int might match the return type of a GCC
1850 builtin and then its argument prototype would still apply. */
1851#ifdef __cplusplus
1852extern "C"
1853#endif
1854char $2 ();
1855/* The GNU C library defines this for functions which it implements
1856 to always fail with ENOSYS. Some functions are actually named
1857 something starting with __ and the normal name is an alias. */
1858#if defined __stub_$2 || defined __stub___$2
1859choke me
1860#endif
1861
1862int
1863main ()
1864{
1865return $2 ();
1866 ;
1867 return 0;
1868}
1869_ACEOF
1870if ac_fn_c_try_link "$LINENO"; then :
1871 eval "$3=yes"
1872else
1873 eval "$3=no"
1874fi
1875rm -f core conftest.err conftest.$ac_objext \
1876 conftest$ac_exeext conftest.$ac_ext
1877fi
1878eval ac_res=\$$3
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880$as_echo "$ac_res" >&6; }
23d56208 1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0e3762ca
CALP
1882
1883} # ac_fn_c_check_func
1884
1885# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1886# -------------------------------------------------------
1887# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1888# the include files in INCLUDES and setting the cache variable VAR
1889# accordingly.
1890ac_fn_c_check_header_mongrel ()
1891{
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23d56208 1893 if eval \${$3+:} false; then :
0e3762ca
CALP
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895$as_echo_n "checking for $2... " >&6; }
23d56208 1896if eval \${$3+:} false; then :
0e3762ca
CALP
1897 $as_echo_n "(cached) " >&6
1898fi
1899eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901$as_echo "$ac_res" >&6; }
1902else
1903 # Is the header compilable?
1904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1905$as_echo_n "checking $2 usability... " >&6; }
1906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907/* end confdefs.h. */
1908$4
1909#include <$2>
1910_ACEOF
1911if ac_fn_c_try_compile "$LINENO"; then :
1912 ac_header_compiler=yes
1913else
1914 ac_header_compiler=no
1915fi
1916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1918$as_echo "$ac_header_compiler" >&6; }
1919
1920# Is the header present?
1921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1922$as_echo_n "checking $2 presence... " >&6; }
1923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h. */
1925#include <$2>
1926_ACEOF
1927if ac_fn_c_try_cpp "$LINENO"; then :
1928 ac_header_preproc=yes
1929else
1930 ac_header_preproc=no
1931fi
1932rm -f conftest.err conftest.i conftest.$ac_ext
1933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1934$as_echo "$ac_header_preproc" >&6; }
1935
1936# So? What about this header?
1937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1938 yes:no: )
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1940$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943 ;;
1944 no:yes:* )
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1946$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1948$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1950$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1952$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1955 ;;
1956esac
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958$as_echo_n "checking for $2... " >&6; }
23d56208 1959if eval \${$3+:} false; then :
0e3762ca
CALP
1960 $as_echo_n "(cached) " >&6
1961else
1962 eval "$3=\$ac_header_compiler"
1963fi
1964eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966$as_echo "$ac_res" >&6; }
1967fi
23d56208 1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0e3762ca
CALP
1969
1970} # ac_fn_c_check_header_mongrel
1971cat >config.log <<_ACEOF
1972This file contains any messages produced by compilers while
1973running configure, to aid debugging if configure makes a mistake.
1974
23d56208
AX
1975It was created by zfs $as_me 0.6.5.3, which was
1976generated by GNU Autoconf 2.68. Invocation command line was
0e3762ca
CALP
1977
1978 $ $0 $@
1979
1980_ACEOF
1981exec 5>>config.log
1982{
1983cat <<_ASUNAME
1984## --------- ##
1985## Platform. ##
1986## --------- ##
1987
1988hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1989uname -m = `(uname -m) 2>/dev/null || echo unknown`
1990uname -r = `(uname -r) 2>/dev/null || echo unknown`
1991uname -s = `(uname -s) 2>/dev/null || echo unknown`
1992uname -v = `(uname -v) 2>/dev/null || echo unknown`
1993
1994/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1995/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1996
1997/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1998/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1999/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2000/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2001/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2002/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2003/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2004
2005_ASUNAME
2006
2007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008for as_dir in $PATH
2009do
2010 IFS=$as_save_IFS
2011 test -z "$as_dir" && as_dir=.
2012 $as_echo "PATH: $as_dir"
2013 done
2014IFS=$as_save_IFS
2015
2016} >&5
2017
2018cat >&5 <<_ACEOF
2019
2020
2021## ----------- ##
2022## Core tests. ##
2023## ----------- ##
2024
2025_ACEOF
2026
2027
2028# Keep a trace of the command line.
2029# Strip out --no-create and --no-recursion so they do not pile up.
2030# Strip out --silent because we don't want to record it for future runs.
2031# Also quote any args containing shell meta-characters.
2032# Make two passes to allow for proper duplicate-argument suppression.
2033ac_configure_args=
2034ac_configure_args0=
2035ac_configure_args1=
2036ac_must_keep_next=false
2037for ac_pass in 1 2
2038do
2039 for ac_arg
2040 do
2041 case $ac_arg in
2042 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2044 | -silent | --silent | --silen | --sile | --sil)
2045 continue ;;
2046 *\'*)
2047 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2048 esac
2049 case $ac_pass in
2050 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2051 2)
2052 as_fn_append ac_configure_args1 " '$ac_arg'"
2053 if test $ac_must_keep_next = true; then
2054 ac_must_keep_next=false # Got value, back to normal.
2055 else
2056 case $ac_arg in
2057 *=* | --config-cache | -C | -disable-* | --disable-* \
2058 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2059 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2060 | -with-* | --with-* | -without-* | --without-* | --x)
2061 case "$ac_configure_args0 " in
2062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2063 esac
2064 ;;
2065 -* ) ac_must_keep_next=true ;;
2066 esac
2067 fi
2068 as_fn_append ac_configure_args " '$ac_arg'"
2069 ;;
2070 esac
2071 done
2072done
2073{ ac_configure_args0=; unset ac_configure_args0;}
2074{ ac_configure_args1=; unset ac_configure_args1;}
2075
2076# When interrupted or exit'd, cleanup temporary files, and complete
2077# config.log. We remove comments because anyway the quotes in there
2078# would cause problems or look ugly.
2079# WARNING: Use '\'' to represent an apostrophe within the trap.
2080# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2081trap 'exit_status=$?
2082 # Save into config.log some information that might help in debugging.
2083 {
2084 echo
2085
2086 $as_echo "## ---------------- ##
2087## Cache variables. ##
2088## ---------------- ##"
2089 echo
2090 # The following way of writing the cache mishandles newlines in values,
2091(
2092 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2093 eval ac_val=\$$ac_var
2094 case $ac_val in #(
2095 *${as_nl}*)
2096 case $ac_var in #(
2097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2098$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2099 esac
2100 case $ac_var in #(
2101 _ | IFS | as_nl) ;; #(
2102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2103 *) { eval $ac_var=; unset $ac_var;} ;;
2104 esac ;;
2105 esac
2106 done
2107 (set) 2>&1 |
2108 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2109 *${as_nl}ac_space=\ *)
2110 sed -n \
2111 "s/'\''/'\''\\\\'\'''\''/g;
2112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2113 ;; #(
2114 *)
2115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2116 ;;
2117 esac |
2118 sort
2119)
2120 echo
2121
2122 $as_echo "## ----------------- ##
2123## Output variables. ##
2124## ----------------- ##"
2125 echo
2126 for ac_var in $ac_subst_vars
2127 do
2128 eval ac_val=\$$ac_var
2129 case $ac_val in
2130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131 esac
2132 $as_echo "$ac_var='\''$ac_val'\''"
2133 done | sort
2134 echo
2135
2136 if test -n "$ac_subst_files"; then
2137 $as_echo "## ------------------- ##
2138## File substitutions. ##
2139## ------------------- ##"
2140 echo
2141 for ac_var in $ac_subst_files
2142 do
2143 eval ac_val=\$$ac_var
2144 case $ac_val in
2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 esac
2147 $as_echo "$ac_var='\''$ac_val'\''"
2148 done | sort
2149 echo
2150 fi
2151
2152 if test -s confdefs.h; then
2153 $as_echo "## ----------- ##
2154## confdefs.h. ##
2155## ----------- ##"
2156 echo
2157 cat confdefs.h
2158 echo
2159 fi
2160 test "$ac_signal" != 0 &&
2161 $as_echo "$as_me: caught signal $ac_signal"
2162 $as_echo "$as_me: exit $exit_status"
2163 } >&5
2164 rm -f core *.core core.conftest.* &&
2165 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2166 exit $exit_status
2167' 0
2168for ac_signal in 1 2 13 15; do
2169 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2170done
2171ac_signal=0
2172
2173# confdefs.h avoids OS command line length limits that DEFS can exceed.
2174rm -f -r conftest* confdefs.h
2175
2176$as_echo "/* confdefs.h */" > confdefs.h
2177
2178# Predefined preprocessor variables.
2179
2180cat >>confdefs.h <<_ACEOF
2181#define PACKAGE_NAME "$PACKAGE_NAME"
2182_ACEOF
2183
2184cat >>confdefs.h <<_ACEOF
2185#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2186_ACEOF
2187
2188cat >>confdefs.h <<_ACEOF
2189#define PACKAGE_VERSION "$PACKAGE_VERSION"
2190_ACEOF
2191
2192cat >>confdefs.h <<_ACEOF
2193#define PACKAGE_STRING "$PACKAGE_STRING"
2194_ACEOF
2195
2196cat >>confdefs.h <<_ACEOF
2197#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2198_ACEOF
2199
2200cat >>confdefs.h <<_ACEOF
2201#define PACKAGE_URL "$PACKAGE_URL"
2202_ACEOF
2203
2204
2205# Let the site file select an alternate cache file if it wants to.
2206# Prefer an explicitly selected file to automatically selected ones.
2207ac_site_file1=NONE
2208ac_site_file2=NONE
2209if test -n "$CONFIG_SITE"; then
2210 # We do not want a PATH search for config.site.
2211 case $CONFIG_SITE in #((
2212 -*) ac_site_file1=./$CONFIG_SITE;;
2213 */*) ac_site_file1=$CONFIG_SITE;;
2214 *) ac_site_file1=./$CONFIG_SITE;;
2215 esac
2216elif test "x$prefix" != xNONE; then
2217 ac_site_file1=$prefix/share/config.site
2218 ac_site_file2=$prefix/etc/config.site
2219else
2220 ac_site_file1=$ac_default_prefix/share/config.site
2221 ac_site_file2=$ac_default_prefix/etc/config.site
2222fi
2223for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2224do
2225 test "x$ac_site_file" = xNONE && continue
2226 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2228$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2229 sed 's/^/| /' "$ac_site_file" >&5
2230 . "$ac_site_file" \
2231 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2233as_fn_error $? "failed to load site script $ac_site_file
23d56208 2234See \`config.log' for more details" "$LINENO" 5; }
0e3762ca
CALP
2235 fi
2236done
2237
2238if test -r "$cache_file"; then
2239 # Some versions of bash will fail to source /dev/null (special files
2240 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2241 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2243$as_echo "$as_me: loading cache $cache_file" >&6;}
2244 case $cache_file in
2245 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2246 *) . "./$cache_file";;
2247 esac
2248 fi
2249else
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2251$as_echo "$as_me: creating cache $cache_file" >&6;}
2252 >$cache_file
2253fi
2254
2255# Check that the precious variables saved in the cache have kept the same
2256# value.
2257ac_cache_corrupted=false
2258for ac_var in $ac_precious_vars; do
2259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2260 eval ac_new_set=\$ac_env_${ac_var}_set
2261 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2262 eval ac_new_val=\$ac_env_${ac_var}_value
2263 case $ac_old_set,$ac_new_set in
2264 set,)
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2266$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2267 ac_cache_corrupted=: ;;
2268 ,set)
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2270$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2271 ac_cache_corrupted=: ;;
2272 ,);;
2273 *)
2274 if test "x$ac_old_val" != "x$ac_new_val"; then
2275 # differences in whitespace do not lead to failure.
2276 ac_old_val_w=`echo x $ac_old_val`
2277 ac_new_val_w=`echo x $ac_new_val`
2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2280$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2281 ac_cache_corrupted=:
2282 else
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2284$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2285 eval $ac_var=\$ac_old_val
2286 fi
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2288$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2290$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2291 fi;;
2292 esac
2293 # Pass precious variables to config.status.
2294 if test "$ac_new_set" = set; then
2295 case $ac_new_val in
2296 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 *) ac_arg=$ac_var=$ac_new_val ;;
2298 esac
2299 case " $ac_configure_args " in
2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2301 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2302 esac
2303 fi
2304done
2305if $ac_cache_corrupted; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2309$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2310 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2311fi
2312## -------------------- ##
2313## Main body of script. ##
2314## -------------------- ##
2315
2316ac_ext=c
2317ac_cpp='$CPP $CPPFLAGS'
2318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321
2322
2323ac_ext=c
2324ac_cpp='$CPP $CPPFLAGS'
2325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2327ac_compiler_gnu=$ac_cv_c_compiler_gnu
2328
2329
2330
2331
2332
c06d4368
AX
2333 for ac_prog in gawk mawk nawk awk
2334do
2335 # Extract the first word of "$ac_prog", so it can be a program name with args.
2336set dummy $ac_prog; ac_word=$2
2337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2338$as_echo_n "checking for $ac_word... " >&6; }
23d56208 2339if ${ac_cv_prog_AWK+:} false; then :
c06d4368
AX
2340 $as_echo_n "(cached) " >&6
2341else
2342 if test -n "$AWK"; then
2343 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2344else
2345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346for as_dir in $PATH
2347do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_AWK="$ac_prog"
2353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 break 2
2355 fi
2356done
2357 done
2358IFS=$as_save_IFS
2359
2360fi
2361fi
2362AWK=$ac_cv_prog_AWK
2363if test -n "$AWK"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2365$as_echo "$AWK" >&6; }
2366else
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2368$as_echo "no" >&6; }
2369fi
2370
2371
2372 test -n "$AWK" && break
2373done
2374
0e3762ca
CALP
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2376$as_echo_n "checking metadata... " >&6; }
2377
2378 META="$srcdir/META"
2379 _zfs_ac_meta_type="none"
2380 if test -f "$META"; then
2381 _zfs_ac_meta_type="META file"
2382
c06d4368 2383 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
0e3762ca
CALP
2384 if test -n "$ZFS_META_NAME"; then
2385
2386cat >>confdefs.h <<_ACEOF
2387#define ZFS_META_NAME "$ZFS_META_NAME"
2388_ACEOF
2389
2390
2391 fi
2392
c06d4368 2393 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
0e3762ca
CALP
2394 if test -n "$ZFS_META_VERSION"; then
2395
2396cat >>confdefs.h <<_ACEOF
2397#define ZFS_META_VERSION "$ZFS_META_VERSION"
2398_ACEOF
2399
2400
2401 fi
2402
c06d4368
AX
2403 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2404 if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
23d56208 2405 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
0e3762ca
CALP
2406 _alias=$(git describe --match=${_match} 2>/dev/null)
2407 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2408 if test -n "${_release}"; then
2409 ZFS_META_RELEASE=${_release}
2410 _zfs_ac_meta_type="git describe"
2411 fi
2412 fi
2413
2414 if test -n "$ZFS_META_RELEASE"; then
2415
2416cat >>confdefs.h <<_ACEOF
2417#define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2418_ACEOF
2419
2420
2421
2422 RELEASE="$ZFS_META_RELEASE"
2423
2424 fi
2425
c06d4368 2426 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
0e3762ca
CALP
2427 if test -n "$ZFS_META_LICENSE"; then
2428
2429cat >>confdefs.h <<_ACEOF
2430#define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2431_ACEOF
2432
2433
2434 fi
2435
2436 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2437 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2438 test -n "$ZFS_META_RELEASE" &&
2439 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2440
2441cat >>confdefs.h <<_ACEOF
2442#define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2443_ACEOF
2444
2445
2446 fi
2447
c06d4368 2448 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
0e3762ca
CALP
2449 if test -n "$ZFS_META_DATA"; then
2450
2451cat >>confdefs.h <<_ACEOF
2452#define ZFS_META_DATA "$ZFS_META_DATA"
2453_ACEOF
2454
2455
2456 fi
2457
c06d4368 2458 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
0e3762ca
CALP
2459 if test -n "$ZFS_META_AUTHOR"; then
2460
2461cat >>confdefs.h <<_ACEOF
2462#define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2463_ACEOF
2464
2465
2466 fi
2467
2468
c06d4368
AX
2469 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2470 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2471 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
0e3762ca
CALP
2472 if test -n "$ZFS_META_LT_CURRENT" \
2473 -o -n "$ZFS_META_LT_REVISION" \
2474 -o -n "$ZFS_META_LT_AGE"; then
2475 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2476 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2477 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2478
2479cat >>confdefs.h <<_ACEOF
2480#define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2481_ACEOF
2482
2483
2484cat >>confdefs.h <<_ACEOF
2485#define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2486_ACEOF
2487
2488
2489cat >>confdefs.h <<_ACEOF
2490#define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2491_ACEOF
2492
2493
2494
2495
2496 fi
2497 fi
2498
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2500$as_echo "$_zfs_ac_meta_type" >&6; }
2501
2502
2503ac_aux_dir=
2504for ac_dir in config "$srcdir"/config; do
2505 if test -f "$ac_dir/install-sh"; then
2506 ac_aux_dir=$ac_dir
2507 ac_install_sh="$ac_aux_dir/install-sh -c"
2508 break
2509 elif test -f "$ac_dir/install.sh"; then
2510 ac_aux_dir=$ac_dir
2511 ac_install_sh="$ac_aux_dir/install.sh -c"
2512 break
2513 elif test -f "$ac_dir/shtool"; then
2514 ac_aux_dir=$ac_dir
2515 ac_install_sh="$ac_aux_dir/shtool install -c"
2516 break
2517 fi
2518done
2519if test -z "$ac_aux_dir"; then
2520 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2521fi
2522
2523# These three variables are undocumented and unsupported,
2524# and are intended to be withdrawn in a future Autoconf release.
2525# They can cause serious problems if a builder's source tree is in a directory
2526# whose full name contains unusual characters.
2527ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2528ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2529ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2530
2531
c06d4368 2532
0e3762ca
CALP
2533# Make sure we can run config.sub.
2534$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2535 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2536
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2538$as_echo_n "checking build system type... " >&6; }
23d56208 2539if ${ac_cv_build+:} false; then :
0e3762ca
CALP
2540 $as_echo_n "(cached) " >&6
2541else
2542 ac_build_alias=$build_alias
2543test "x$ac_build_alias" = x &&
2544 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2545test "x$ac_build_alias" = x &&
2546 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2547ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2548 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2549
2550fi
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2552$as_echo "$ac_cv_build" >&6; }
2553case $ac_cv_build in
2554*-*-*) ;;
23d56208 2555*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
0e3762ca
CALP
2556esac
2557build=$ac_cv_build
2558ac_save_IFS=$IFS; IFS='-'
2559set x $ac_cv_build
2560shift
2561build_cpu=$1
2562build_vendor=$2
2563shift; shift
2564# Remember, the first character of IFS is used to create $*,
2565# except with old shells:
2566build_os=$*
2567IFS=$ac_save_IFS
2568case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2569
2570
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2572$as_echo_n "checking host system type... " >&6; }
23d56208 2573if ${ac_cv_host+:} false; then :
0e3762ca
CALP
2574 $as_echo_n "(cached) " >&6
2575else
2576 if test "x$host_alias" = x; then
2577 ac_cv_host=$ac_cv_build
2578else
2579 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2580 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2581fi
2582
2583fi
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2585$as_echo "$ac_cv_host" >&6; }
2586case $ac_cv_host in
2587*-*-*) ;;
23d56208 2588*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
0e3762ca
CALP
2589esac
2590host=$ac_cv_host
2591ac_save_IFS=$IFS; IFS='-'
2592set x $ac_cv_host
2593shift
2594host_cpu=$1
2595host_vendor=$2
2596shift; shift
2597# Remember, the first character of IFS is used to create $*,
2598# except with old shells:
2599host_os=$*
2600IFS=$ac_save_IFS
2601case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2602
2603
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2605$as_echo_n "checking target system type... " >&6; }
23d56208 2606if ${ac_cv_target+:} false; then :
0e3762ca
CALP
2607 $as_echo_n "(cached) " >&6
2608else
2609 if test "x$target_alias" = x; then
2610 ac_cv_target=$ac_cv_host
2611else
2612 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2613 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2614fi
2615
2616fi
2617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2618$as_echo "$ac_cv_target" >&6; }
2619case $ac_cv_target in
2620*-*-*) ;;
23d56208 2621*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
0e3762ca
CALP
2622esac
2623target=$ac_cv_target
2624ac_save_IFS=$IFS; IFS='-'
2625set x $ac_cv_target
2626shift
2627target_cpu=$1
2628target_vendor=$2
2629shift; shift
2630# Remember, the first character of IFS is used to create $*,
2631# except with old shells:
2632target_os=$*
2633IFS=$ac_save_IFS
2634case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2635
2636
2637# The aliases save the names the user supplied, while $host etc.
2638# will get canonicalized.
2639test -n "$target_alias" &&
2640 test "$program_prefix$program_suffix$program_transform_name" = \
2641 NONENONEs,x,x, &&
2642 program_prefix=${target_alias}-
2643
2644
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2646$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2647 # Check whether --enable-maintainer-mode was given.
2648if test "${enable_maintainer_mode+set}" = set; then :
2649 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2650else
2651 USE_MAINTAINER_MODE=no
2652fi
2653
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2655$as_echo "$USE_MAINTAINER_MODE" >&6; }
2656 if test $USE_MAINTAINER_MODE = yes; then
2657 MAINTAINER_MODE_TRUE=
2658 MAINTAINER_MODE_FALSE='#'
2659else
2660 MAINTAINER_MODE_TRUE='#'
2661 MAINTAINER_MODE_FALSE=
2662fi
2663
2664 MAINT=$MAINTAINER_MODE_TRUE
2665
2666
2667# Check whether --enable-silent-rules was given.
2668if test "${enable_silent_rules+set}" = set; then :
2669 enableval=$enable_silent_rules;
2670fi
2671
2672case $enable_silent_rules in
2673yes) AM_DEFAULT_VERBOSITY=0;;
2674no) AM_DEFAULT_VERBOSITY=1;;
c06d4368 2675*) AM_DEFAULT_VERBOSITY=0;;
0e3762ca 2676esac
23d56208
AX
2677am_make=${MAKE-make}
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2679$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2680if ${am_cv_make_support_nested_variables+:} false; then :
2681 $as_echo_n "(cached) " >&6
2682else
2683 if $as_echo 'TRUE=$(BAR$(V))
2684BAR0=false
2685BAR1=true
2686V=1
2687am__doit:
2688 @$(TRUE)
2689.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2690 am_cv_make_support_nested_variables=yes
2691else
2692 am_cv_make_support_nested_variables=no
2693fi
2694fi
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2696$as_echo "$am_cv_make_support_nested_variables" >&6; }
2697if test $am_cv_make_support_nested_variables = yes; then
2698 AM_V='$(V)'
2699 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2700else
2701 AM_V=$AM_DEFAULT_VERBOSITY
2702 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2703fi
0e3762ca
CALP
2704AM_BACKSLASH='\'
2705
2706am__api_version='1.11'
2707
2708# Find a good install program. We prefer a C program (faster),
2709# so one script is as good as another. But avoid the broken or
2710# incompatible versions:
2711# SysV /etc/install, /usr/sbin/install
2712# SunOS /usr/etc/install
2713# IRIX /sbin/install
2714# AIX /bin/install
2715# AmigaOS /C/install, which installs bootblocks on floppy discs
2716# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2717# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2718# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2719# OS/2's system install, which has a completely different semantic
2720# ./install, which can be erroneously created by make from ./install.sh.
2721# Reject install programs that cannot install multiple files.
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2723$as_echo_n "checking for a BSD-compatible install... " >&6; }
2724if test -z "$INSTALL"; then
23d56208 2725if ${ac_cv_path_install+:} false; then :
0e3762ca
CALP
2726 $as_echo_n "(cached) " >&6
2727else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729for as_dir in $PATH
2730do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 # Account for people who put trailing slashes in PATH elements.
2734case $as_dir/ in #((
2735 ./ | .// | /[cC]/* | \
2736 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2737 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2738 /usr/ucb/* ) ;;
2739 *)
2740 # OSF1 and SCO ODT 3.0 have their own names for install.
2741 # Don't use installbsd from OSF since it installs stuff as root
2742 # by default.
2743 for ac_prog in ginstall scoinst install; do
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2746 if test $ac_prog = install &&
2747 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2748 # AIX install. It has an incompatible calling convention.
2749 :
2750 elif test $ac_prog = install &&
2751 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2752 # program-specific install script used by HP pwplus--don't use.
2753 :
2754 else
2755 rm -rf conftest.one conftest.two conftest.dir
2756 echo one > conftest.one
2757 echo two > conftest.two
2758 mkdir conftest.dir
2759 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2760 test -s conftest.one && test -s conftest.two &&
2761 test -s conftest.dir/conftest.one &&
2762 test -s conftest.dir/conftest.two
2763 then
2764 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2765 break 3
2766 fi
2767 fi
2768 fi
2769 done
2770 done
2771 ;;
2772esac
2773
2774 done
2775IFS=$as_save_IFS
2776
2777rm -rf conftest.one conftest.two conftest.dir
2778
2779fi
2780 if test "${ac_cv_path_install+set}" = set; then
2781 INSTALL=$ac_cv_path_install
2782 else
2783 # As a last resort, use the slow shell script. Don't cache a
2784 # value for INSTALL within a source directory, because that will
2785 # break other packages using the cache if that directory is
2786 # removed, or if the value is a relative name.
2787 INSTALL=$ac_install_sh
2788 fi
2789fi
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2791$as_echo "$INSTALL" >&6; }
2792
2793# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2794# It thinks the first close brace ends the variable substitution.
2795test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2796
2797test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2798
2799test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2800
2801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2802$as_echo_n "checking whether build environment is sane... " >&6; }
2803# Just in case
2804sleep 1
2805echo timestamp > conftest.file
2806# Reject unsafe characters in $srcdir or the absolute working directory
2807# name. Accept space and tab only in the latter.
2808am_lf='
2809'
2810case `pwd` in
2811 *[\\\"\#\$\&\'\`$am_lf]*)
23d56208 2812 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
0e3762ca
CALP
2813esac
2814case $srcdir in
2815 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
23d56208 2816 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
0e3762ca
CALP
2817esac
2818
2819# Do `set' in a subshell so we don't clobber the current shell's
2820# arguments. Must try -L first in case configure is actually a
2821# symlink; some systems play weird games with the mod time of symlinks
2822# (eg FreeBSD returns the mod time of the symlink's containing
2823# directory).
2824if (
2825 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2826 if test "$*" = "X"; then
2827 # -L didn't work.
2828 set X `ls -t "$srcdir/configure" conftest.file`
2829 fi
2830 rm -f conftest.file
2831 if test "$*" != "X $srcdir/configure conftest.file" \
2832 && test "$*" != "X conftest.file $srcdir/configure"; then
2833
2834 # If neither matched, then we have a broken ls. This can happen
2835 # if, for instance, CONFIG_SHELL is bash and it inherits a
2836 # broken ls alias from the environment. This has actually
2837 # happened. Such a system could not be considered "sane".
2838 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2839alias in your environment" "$LINENO" 5
2840 fi
2841
2842 test "$2" = conftest.file
2843 )
2844then
2845 # Ok.
2846 :
2847else
2848 as_fn_error $? "newly created file is older than distributed files!
2849Check your system clock" "$LINENO" 5
2850fi
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2852$as_echo "yes" >&6; }
2853test "$program_prefix" != NONE &&
2854 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2855# Use a double $ so make ignores it.
2856test "$program_suffix" != NONE &&
2857 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2858# Double any \ or $.
2859# By default was `s,x,x', remove it if useless.
2860ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2861program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2862
2863# expand $ac_aux_dir to an absolute path
2864am_aux_dir=`cd $ac_aux_dir && pwd`
2865
2866if test x"${MISSING+set}" != xset; then
2867 case $am_aux_dir in
2868 *\ * | *\ *)
2869 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2870 *)
2871 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2872 esac
2873fi
2874# Use eval to expand $SHELL
2875if eval "$MISSING --run true"; then
2876 am_missing_run="$MISSING --run "
2877else
2878 am_missing_run=
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2880$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2881fi
2882
2883if test x"${install_sh}" != xset; then
2884 case $am_aux_dir in
2885 *\ * | *\ *)
2886 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2887 *)
2888 install_sh="\${SHELL} $am_aux_dir/install-sh"
2889 esac
2890fi
2891
2892# Installed binaries are usually stripped using `strip' when the user
2893# run `make install-strip'. However `strip' might not be the right
2894# tool to use in cross-compilation environments, therefore Automake
2895# will honor the `STRIP' environment variable to overrule this program.
2896if test "$cross_compiling" != no; then
2897 if test -n "$ac_tool_prefix"; then
2898 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2899set dummy ${ac_tool_prefix}strip; ac_word=$2
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901$as_echo_n "checking for $ac_word... " >&6; }
23d56208 2902if ${ac_cv_prog_STRIP+:} false; then :
0e3762ca
CALP
2903 $as_echo_n "(cached) " >&6
2904else
2905 if test -n "$STRIP"; then
2906 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2907else
2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909for as_dir in $PATH
2910do
2911 IFS=$as_save_IFS
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2915 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 break 2
2918 fi
2919done
2920 done
2921IFS=$as_save_IFS
2922
2923fi
2924fi
2925STRIP=$ac_cv_prog_STRIP
2926if test -n "$STRIP"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2928$as_echo "$STRIP" >&6; }
2929else
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931$as_echo "no" >&6; }
2932fi
2933
2934
2935fi
2936if test -z "$ac_cv_prog_STRIP"; then
2937 ac_ct_STRIP=$STRIP
2938 # Extract the first word of "strip", so it can be a program name with args.
2939set dummy strip; ac_word=$2
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941$as_echo_n "checking for $ac_word... " >&6; }
23d56208 2942if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
0e3762ca
CALP
2943 $as_echo_n "(cached) " >&6
2944else
2945 if test -n "$ac_ct_STRIP"; then
2946 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 ac_cv_prog_ac_ct_STRIP="strip"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
2958 fi
2959done
2960 done
2961IFS=$as_save_IFS
2962
2963fi
2964fi
2965ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2966if test -n "$ac_ct_STRIP"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2968$as_echo "$ac_ct_STRIP" >&6; }
2969else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971$as_echo "no" >&6; }
2972fi
2973
2974 if test "x$ac_ct_STRIP" = x; then
2975 STRIP=":"
2976 else
2977 case $cross_compiling:$ac_tool_warned in
2978yes:)
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2981ac_tool_warned=yes ;;
2982esac
2983 STRIP=$ac_ct_STRIP
2984 fi
2985else
2986 STRIP="$ac_cv_prog_STRIP"
2987fi
2988
2989fi
2990INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2991
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2993$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2994if test -z "$MKDIR_P"; then
23d56208 2995 if ${ac_cv_path_mkdir+:} false; then :
0e3762ca
CALP
2996 $as_echo_n "(cached) " >&6
2997else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3000do
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_prog in mkdir gmkdir; do
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3006 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3007 'mkdir (GNU coreutils) '* | \
3008 'mkdir (coreutils) '* | \
3009 'mkdir (fileutils) '4.1*)
3010 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3011 break 3;;
3012 esac
3013 done
3014 done
3015 done
3016IFS=$as_save_IFS
3017
3018fi
3019
3020 test -d ./--version && rmdir ./--version
3021 if test "${ac_cv_path_mkdir+set}" = set; then
3022 MKDIR_P="$ac_cv_path_mkdir -p"
3023 else
3024 # As a last resort, use the slow shell script. Don't cache a
3025 # value for MKDIR_P within a source directory, because that will
3026 # break other packages using the cache if that directory is
3027 # removed, or if the value is a relative name.
3028 MKDIR_P="$ac_install_sh -d"
3029 fi
3030fi
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3032$as_echo "$MKDIR_P" >&6; }
3033
3034mkdir_p="$MKDIR_P"
3035case $mkdir_p in
3036 [\\/$]* | ?:[\\/]*) ;;
3037 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3038esac
3039
0e3762ca
CALP
3040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3041$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3042set x ${MAKE-make}
3043ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
23d56208 3044if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
0e3762ca
CALP
3045 $as_echo_n "(cached) " >&6
3046else
3047 cat >conftest.make <<\_ACEOF
3048SHELL = /bin/sh
3049all:
3050 @echo '@@@%%%=$(MAKE)=@@@%%%'
3051_ACEOF
3052# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3053case `${MAKE-make} -f conftest.make 2>/dev/null` in
3054 *@@@%%%=?*=@@@%%%*)
3055 eval ac_cv_prog_make_${ac_make}_set=yes;;
3056 *)
3057 eval ac_cv_prog_make_${ac_make}_set=no;;
3058esac
3059rm -f conftest.make
3060fi
3061if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3063$as_echo "yes" >&6; }
3064 SET_MAKE=
3065else
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067$as_echo "no" >&6; }
3068 SET_MAKE="MAKE=${MAKE-make}"
3069fi
3070
3071rm -rf .tst 2>/dev/null
3072mkdir .tst 2>/dev/null
3073if test -d .tst; then
3074 am__leading_dot=.
3075else
3076 am__leading_dot=_
3077fi
3078rmdir .tst 2>/dev/null
3079
3080if test "`cd $srcdir && pwd`" != "`pwd`"; then
3081 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3082 # is not polluted with repeated "-I."
3083 am__isrc=' -I$(srcdir)'
3084 # test to see if srcdir already configured
3085 if test -f $srcdir/config.status; then
3086 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3087 fi
3088fi
3089
3090# test whether we have cygpath
3091if test -z "$CYGPATH_W"; then
3092 if (cygpath --version) >/dev/null 2>/dev/null; then
3093 CYGPATH_W='cygpath -w'
3094 else
3095 CYGPATH_W=echo
3096 fi
3097fi
3098
3099
3100# Define the identity of the package.
23d56208
AX
3101 PACKAGE='zfs'
3102 VERSION='0.6.5.3'
0e3762ca
CALP
3103
3104
3105cat >>confdefs.h <<_ACEOF
3106#define PACKAGE "$PACKAGE"
3107_ACEOF
3108
3109
3110cat >>confdefs.h <<_ACEOF
3111#define VERSION "$VERSION"
3112_ACEOF
3113
3114# Some tools Automake needs.
3115
3116ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3117
3118
3119AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3120
3121
3122AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3123
3124
3125AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3126
3127
3128MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3129
3130# We need awk for the "check" target. The system "awk" is bad on
3131# some platforms.
23d56208
AX
3132# Always define AMTAR for backward compatibility. Yes, it's still used
3133# in the wild :-( We should find a proper way to deprecate it ...
3134AMTAR='$${TAR-tar}'
0e3762ca 3135
23d56208 3136am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
0e3762ca
CALP
3137
3138
3139
3140
3141
3142ac_config_headers="$ac_config_headers zfs_config.h"
3143
3144
3145
3146ac_ext=c
3147ac_cpp='$CPP $CPPFLAGS'
3148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151if test -n "$ac_tool_prefix"; then
3152 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3153set dummy ${ac_tool_prefix}gcc; ac_word=$2
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155$as_echo_n "checking for $ac_word... " >&6; }
23d56208 3156if ${ac_cv_prog_CC+:} false; then :
0e3762ca
CALP
3157 $as_echo_n "(cached) " >&6
3158else
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161else
3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163for as_dir in $PATH
3164do
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3172 fi
3173done
3174 done
3175IFS=$as_save_IFS
3176
3177fi
3178fi
3179CC=$ac_cv_prog_CC
3180if test -n "$CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182$as_echo "$CC" >&6; }
3183else
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186fi
3187
3188
3189fi
3190if test -z "$ac_cv_prog_CC"; then
3191 ac_ct_CC=$CC
3192 # Extract the first word of "gcc", so it can be a program name with args.
3193set dummy gcc; ac_word=$2
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195$as_echo_n "checking for $ac_word... " >&6; }
23d56208 3196if ${ac_cv_prog_ac_ct_CC+:} false; then :
0e3762ca
CALP
3197 $as_echo_n "(cached) " >&6
3198else
3199 if test -n "$ac_ct_CC"; then
3200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3201else
3202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203for as_dir in $PATH
3204do
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209 ac_cv_prog_ac_ct_CC="gcc"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 break 2
3212 fi
3213done
3214 done
3215IFS=$as_save_IFS
3216
3217fi
3218fi
3219ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220if test -n "$ac_ct_CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222$as_echo "$ac_ct_CC" >&6; }
3223else
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225$as_echo "no" >&6; }
3226fi
3227
3228 if test "x$ac_ct_CC" = x; then
3229 CC=""
3230 else
3231 case $cross_compiling:$ac_tool_warned in
3232yes:)
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235ac_tool_warned=yes ;;
3236esac
3237 CC=$ac_ct_CC
3238 fi
3239else
3240 CC="$ac_cv_prog_CC"
3241fi
3242
3243if test -z "$CC"; then
3244 if test -n "$ac_tool_prefix"; then
3245 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3246set dummy ${ac_tool_prefix}cc; ac_word=$2
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248$as_echo_n "checking for $ac_word... " >&6; }
23d56208 3249if ${ac_cv_prog_CC+:} false; then :
0e3762ca
CALP
3250 $as_echo_n "(cached) " >&6
3251else
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254else
3255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256for as_dir in $PATH
3257do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_CC="${ac_tool_prefix}cc"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266done
3267 done
3268IFS=$as_save_IFS
3269
3270fi
3271fi
3272CC=$ac_cv_prog_CC
3273if test -n "$CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275$as_echo "$CC" >&6; }
3276else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278$as_echo "no" >&6; }
3279fi
3280
3281
3282 fi
3283fi
3284if test -z "$CC"; then
3285 # Extract the first word of "cc", so it can be a program name with args.
3286set dummy cc; ac_word=$2
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288$as_echo_n "checking for $ac_word... " >&6; }
23d56208 3289if ${ac_cv_prog_CC+:} false; then :
0e3762ca
CALP
3290 $as_echo_n "(cached) " >&6
3291else
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC="$CC" # Let the user override the test.
3294else
3295 ac_prog_rejected=no
3296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297for as_dir in $PATH
3298do
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3304 ac_prog_rejected=yes
3305 continue
3306 fi
3307 ac_cv_prog_CC="cc"
3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3310 fi
3311done
3312 done
3313IFS=$as_save_IFS
3314
3315if test $ac_prog_rejected = yes; then
3316 # We found a bogon in the path, so make sure we never use it.
3317 set dummy $ac_cv_prog_CC
3318 shift
3319 if test $# != 0; then
3320 # We chose a different compiler from the bogus one.
3321 # However, it has the same basename, so the bogon will be chosen
3322 # first if we set CC to just the basename; use the full file name.
3323 shift
3324 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3325 fi
3326fi
3327fi
3328fi
3329CC=$ac_cv_prog_CC
3330if test -n "$CC"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3332$as_echo "$CC" >&6; }
3333else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335$as_echo "no" >&6; }
3336fi
3337
3338
3339fi
3340if test -z "$CC"; then
3341 if test -n "$ac_tool_prefix"; then
3342 for ac_prog in cl.exe
3343 do
3344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3345set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347$as_echo_n "checking for $ac_word... " >&6; }
23d56208 3348if ${ac_cv_prog_CC+:} false; then :
0e3762ca
CALP
3349 $as_echo_n "(cached) " >&6
3350else
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3353else
3354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355for as_dir in $PATH
3356do
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3361 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3364 fi
3365done
3366 done
3367IFS=$as_save_IFS
3368
3369fi
3370fi
3371CC=$ac_cv_prog_CC
3372if test -n "$CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374$as_echo "$CC" >&6; }
3375else
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377$as_echo "no" >&6; }
3378fi
3379
3380
3381 test -n "$CC" && break
3382 done
3383fi
3384if test -z "$CC"; then
3385 ac_ct_CC=$CC
3386 for ac_prog in cl.exe
3387do
3388 # Extract the first word of "$ac_prog", so it can be a program name with args.
3389set dummy $ac_prog; ac_word=$2
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391$as_echo_n "checking for $ac_word... " >&6; }
23d56208 3392if ${ac_cv_prog_ac_ct_CC+:} false; then :
0e3762ca
CALP
3393 $as_echo_n "(cached) " >&6
3394else
3395 if test -n "$ac_ct_CC"; then
3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397else
3398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399for as_dir in $PATH
3400do
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 ac_cv_prog_ac_ct_CC="$ac_prog"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3408 fi
3409done
3410 done
3411IFS=$as_save_IFS
3412
3413fi
3414fi
3415ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416if test -n "$ac_ct_CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3418$as_echo "$ac_ct_CC" >&6; }
3419else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421$as_echo "no" >&6; }
3422fi
3423
3424
3425 test -n "$ac_ct_CC" && break
3426done
3427
3428 if test "x$ac_ct_CC" = x; then
3429 CC=""
3430 else
3431 case $cross_compiling:$ac_tool_warned in
3432yes:)
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3435ac_tool_warned=yes ;;
3436esac
3437 CC=$ac_ct_CC
3438 fi
3439fi
3440
3441fi
3442
3443
3444test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446as_fn_error $? "no acceptable C compiler found in \$PATH
23d56208 3447See \`config.log' for more details" "$LINENO" 5; }
0e3762ca
CALP
3448
3449# Provide some information about the compiler.
3450$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3451set X $ac_compile
3452ac_compiler=$2
3453for ac_option in --version -v -V -qversion; do
3454 { { ac_try="$ac_compiler $ac_option >&5"
3455case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458esac
3459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460$as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3462 ac_status=$?
3463 if test -s conftest.err; then
3464 sed '10a\
3465... rest of stderr output deleted ...
3466 10q' conftest.err >conftest.er1
3467 cat conftest.er1 >&5
3468 fi
3469 rm -f conftest.er1 conftest.err
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }
3472done
3473
3474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475/* end confdefs.h. */
3476
3477int
3478main ()
3479{
3480
3481 ;
3482 return 0;
3483}
3484_ACEOF
3485ac_clean_files_save=$ac_clean_files
3486ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3487# Try to create an executable without -o first, disregard a.out.
3488# It will help us diagnose broken compilers, and finding out an intuition
3489# of exeext.
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3491$as_echo_n "checking whether the C compiler works... " >&6; }
3492ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3493
3494# The possible output files:
3495ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3496
3497ac_rmfiles=
3498for ac_file in $ac_files
3499do
3500 case $ac_file in
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3502 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3503 esac
3504done
3505rm -f $ac_rmfiles
3506
3507if { { ac_try="$ac_link_default"
3508case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511esac
3512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513$as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_link_default") 2>&5
3515 ac_status=$?
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }; then :
3518 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3519# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3520# in a Makefile. We should not override ac_cv_exeext if it was cached,
3521# so that the user can short-circuit this test for compilers unknown to
3522# Autoconf.
3523for ac_file in $ac_files ''
3524do
3525 test -f "$ac_file" || continue
3526 case $ac_file in
3527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3528 ;;
3529 [ab].out )
3530 # We found the default executable, but exeext='' is most
3531 # certainly right.
3532 break;;
3533 *.* )
3534 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3535 then :; else
3536 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3537 fi
3538 # We set ac_cv_exeext here because the later test for it is not
3539 # safe: cross compilers may not add the suffix if given an `-o'
3540 # argument, so we may need to know it at that point already.
3541 # Even if this section looks crufty: it has the advantage of
3542 # actually working.
3543 break;;
3544 * )
3545 break;;
3546 esac
3547done
3548test "$ac_cv_exeext" = no && ac_cv_exeext=
3549
3550else
3551 ac_file=''
3552fi
3553if test -z "$ac_file"; then :
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555$as_echo "no" >&6; }
3556$as_echo "$as_me: failed program was:" >&5
3557sed 's/^/| /' conftest.$ac_ext >&5
3558
3559{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561as_fn_error 77 "C compiler cannot create executables
23d56208 3562See \`config.log' for more details" "$LINENO" 5; }
0e3762ca
CALP
3563else
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3565$as_echo "yes" >&6; }
3566fi
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3568$as_echo_n "checking for C compiler default output file name... " >&6; }
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3570$as_echo "$ac_file" >&6; }
3571ac_exeext=$ac_cv_exeext
3572
3573rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3574ac_clean_files=$ac_clean_files_save
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3576$as_echo_n "checking for suffix of executables... " >&6; }
3577if { { ac_try="$ac_link"
3578case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581esac
3582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3583$as_echo "$ac_try_echo"; } >&5
3584 (eval "$ac_link") 2>&5
3585 ac_status=$?
3586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3587 test $ac_status = 0; }; then :
3588 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3589# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3590# work properly (i.e., refer to `conftest.exe'), while it won't with
3591# `rm'.
3592for ac_file in conftest.exe conftest conftest.*; do
3593 test -f "$ac_file" || continue
3594 case $ac_file in
3595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3596 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3597 break;;
3598 * ) break;;
3599 esac
3600done
3601else
3602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604as_fn_error $? "cannot compute suffix of executables: cannot compile and link
23d56208 3605See \`config.log' for more details" "$LINENO" 5; }
0e3762ca
CALP
3606fi
3607rm -f conftest conftest$ac_cv_exeext
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3609$as_echo "$ac_cv_exeext" >&6; }
3610
3611rm -f conftest.$ac_ext
3612EXEEXT=$ac_cv_exeext
3613ac_exeext=$EXEEXT
3614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615/* end confdefs.h. */
3616#include <stdio.h>
3617int
3618main ()
3619{
3620FILE *f = fopen ("conftest.out", "w");
3621 return ferror (f) || fclose (f) != 0;
3622
3623 ;
3624 return 0;
3625}
3626_ACEOF
3627ac_clean_files="$ac_clean_files conftest.out"
3628# Check that the compiler produces executables we can run. If not, either
3629# the compiler is broken, or we cross compile.
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3631$as_echo_n "checking whether we are cross compiling... " >&6; }
3632if test "$cross_compiling" != yes; then
3633 { { ac_try="$ac_link"
3634case "(($ac_try" in
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3637esac
3638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639$as_echo "$ac_try_echo"; } >&5
3640 (eval "$ac_link") 2>&5
3641 ac_status=$?
3642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643 test $ac_status = 0; }
3644 if { ac_try='./conftest$ac_cv_exeext'
3645 { { case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648esac
3649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650$as_echo "$ac_try_echo"; } >&5
3651 (eval "$ac_try") 2>&5
3652 ac_status=$?
3653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654 test $ac_status = 0; }; }; then
3655 cross_compiling=no
3656 else
3657 if test "$cross_compiling" = maybe; then
3658 cross_compiling=yes
3659 else
3660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662as_fn_error $? "cannot run C compiled programs.
3663If you meant to cross compile, use \`--host'.
23d56208 3664See \`config.log' for more details" "$LINENO" 5; }
0e3762ca
CALP
3665 fi
3666 fi
3667fi
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3669$as_echo "$cross_compiling" >&6; }
3670
3671rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3672ac_clean_files=$ac_clean_files_save
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3674$as_echo_n "checking for suffix of object files... " >&6; }
23d56208 3675if ${ac_cv_objext+:} false; then :
0e3762ca
CALP
3676 $as_echo_n "(cached) " >&6
3677else
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679/* end confdefs.h. */
3680
3681int
3682main ()
3683{
3684
3685 ;
3686 return 0;
3687}
3688_ACEOF
3689rm -f conftest.o conftest.obj
3690if { { ac_try="$ac_compile"
3691case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3694esac
3695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3696$as_echo "$ac_try_echo"; } >&5
3697 (eval "$ac_compile") 2>&5
3698 ac_status=$?
3699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3700 test $ac_status = 0; }; then :
3701 for ac_file in conftest.o conftest.obj conftest.*; do
3702 test -f "$ac_file" || continue;
3703 case $ac_file in
3704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3705 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3706 break;;
3707 esac
3708done
3709else
3710 $as_echo "$as_me: failed program was:" >&5
3711sed 's/^/| /' conftest.$ac_ext >&5
3712
3713{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715as_fn_error $? "cannot compute suffix of object files: cannot compile
23d56208 3716See \`config.log' for more details" "$LINENO" 5; }
0e3762ca
CALP
3717fi
3718rm -f conftest.$ac_cv_objext conftest.$ac_ext
3719fi
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3721$as_echo "$ac_cv_objext" >&6; }
3722OBJEXT=$ac_cv_objext
3723ac_objext=$OBJEXT
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3725$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
23d56208 3726if ${ac_cv_c_compiler_gnu+:} false; then :
0e3762ca
CALP
3727 $as_echo_n "(cached) " >&6
3728else
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730/* end confdefs.h. */
3731
3732int
3733main ()
3734{
3735#ifndef __GNUC__
3736 choke me
3737#endif
3738
3739 ;
3740 return 0;
3741}
3742_ACEOF
3743if ac_fn_c_try_compile "$LINENO"; then :
3744 ac_compiler_gnu=yes
3745else
3746 ac_compiler_gnu=no
3747fi
3748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749ac_cv_c_compiler_gnu=$ac_compiler_gnu
3750
3751fi
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3753$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3754if test $ac_compiler_gnu = yes; then
3755 GCC=yes
3756else
3757 GCC=
3758fi
3759ac_test_CFLAGS=${CFLAGS+set}
3760ac_save_CFLAGS=$CFLAGS
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3762$as_echo_n "checking whether $CC accepts -g... " >&6; }
23d56208 3763if ${ac_cv_prog_cc_g+:} false; then :
0e3762ca
CALP
3764 $as_echo_n "(cached) " >&6
3765else
3766 ac_save_c_werror_flag=$ac_c_werror_flag
3767 ac_c_werror_flag=yes
3768 ac_cv_prog_cc_g=no
3769 CFLAGS="-g"
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771/* end confdefs.h. */
3772
3773int
3774main ()
3775{
3776
3777 ;
3778 return 0;
3779}
3780_ACEOF
3781if ac_fn_c_try_compile "$LINENO"; then :
3782 ac_cv_prog_cc_g=yes
3783else
3784 CFLAGS=""
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786/* end confdefs.h. */
3787
3788int
3789main ()
3790{
3791
3792 ;
3793 return 0;
3794}
3795_ACEOF
3796if ac_fn_c_try_compile "$LINENO"; then :
3797
3798else
3799 ac_c_werror_flag=$ac_save_c_werror_flag
3800 CFLAGS="-g"
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802/* end confdefs.h. */
3803
3804int
3805main ()
3806{
3807
3808 ;
3809 return 0;
3810}
3811_ACEOF
3812if ac_fn_c_try_compile "$LINENO"; then :
3813 ac_cv_prog_cc_g=yes
3814fi
3815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816fi
3817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818fi
3819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 ac_c_werror_flag=$ac_save_c_werror_flag
3821fi
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3823$as_echo "$ac_cv_prog_cc_g" >&6; }
3824if test "$ac_test_CFLAGS" = set; then
3825 CFLAGS=$ac_save_CFLAGS
3826elif test $ac_cv_prog_cc_g = yes; then
3827 if test "$GCC" = yes; then
3828 CFLAGS="-g -O2"
3829 else
3830 CFLAGS="-g"
3831 fi
3832else
3833 if test "$GCC" = yes; then
3834 CFLAGS="-O2"
3835 else
3836 CFLAGS=
3837 fi
3838fi
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3840$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
23d56208 3841if ${ac_cv_prog_cc_c89+:} false; then :
0e3762ca
CALP
3842 $as_echo_n "(cached) " >&6
3843else
3844 ac_cv_prog_cc_c89=no
3845ac_save_CC=$CC
3846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847/* end confdefs.h. */
3848#include <stdarg.h>
3849#include <stdio.h>
3850#include <sys/types.h>
3851#include <sys/stat.h>
3852/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3853struct buf { int x; };
3854FILE * (*rcsopen) (struct buf *, struct stat *, int);
3855static char *e (p, i)
3856 char **p;
3857 int i;
3858{
3859 return p[i];
3860}
3861static char *f (char * (*g) (char **, int), char **p, ...)
3862{
3863 char *s;
3864 va_list v;
3865 va_start (v,p);
3866 s = g (p, va_arg (v,int));
3867 va_end (v);
3868 return s;
3869}
3870
3871/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3872 function prototypes and stuff, but not '\xHH' hex character constants.
3873 These don't provoke an error unfortunately, instead are silently treated
3874 as 'x'. The following induces an error, until -std is added to get
3875 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3876 array size at least. It's necessary to write '\x00'==0 to get something
3877 that's true only with -std. */
3878int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3879
3880/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3881 inside strings and character constants. */
3882#define FOO(x) 'x'
3883int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3884
3885int test (int i, double x);
3886struct s1 {int (*f) (int a);};
3887struct s2 {int (*f) (double a);};
3888int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3889int argc;
3890char **argv;
3891int
3892main ()
3893{
3894return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3895 ;
3896 return 0;
3897}
3898_ACEOF
3899for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3900 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3901do
3902 CC="$ac_save_CC $ac_arg"
3903 if ac_fn_c_try_compile "$LINENO"; then :
3904 ac_cv_prog_cc_c89=$ac_arg
3905fi
3906rm -f core conftest.err conftest.$ac_objext
3907 test "x$ac_cv_prog_cc_c89" != "xno" && break
3908done
3909rm -f conftest.$ac_ext
3910CC=$ac_save_CC
3911
3912fi
3913# AC_CACHE_VAL
3914case "x$ac_cv_prog_cc_c89" in
3915 x)
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3917$as_echo "none needed" >&6; } ;;
3918 xno)
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3920$as_echo "unsupported" >&6; } ;;
3921 *)
3922 CC="$CC $ac_cv_prog_cc_c89"
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3924$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3925esac
3926if test "x$ac_cv_prog_cc_c89" != xno; then :
3927
3928fi
3929
3930ac_ext=c
3931ac_cpp='$CPP $CPPFLAGS'
3932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935DEPDIR="${am__leading_dot}deps"
3936
3937ac_config_commands="$ac_config_commands depfiles"
3938
3939
3940am_make=${MAKE-make}
3941cat > confinc << 'END'
3942am__doit:
3943 @echo this is the am__doit target
3944.PHONY: am__doit
3945END
3946# If we don't find an include directive, just comment out the code.
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3948$as_echo_n "checking for style of include used by $am_make... " >&6; }
3949am__include="#"
3950am__quote=
3951_am_result=none
3952# First try GNU make style include.
3953echo "include confinc" > confmf
3954# Ignore all kinds of additional output from `make'.
3955case `$am_make -s -f confmf 2> /dev/null` in #(
3956*the\ am__doit\ target*)
3957 am__include=include
3958 am__quote=
3959 _am_result=GNU
3960 ;;
3961esac
3962# Now try BSD make style include.
3963if test "$am__include" = "#"; then
3964 echo '.include "confinc"' > confmf
3965 case `$am_make -s -f confmf 2> /dev/null` in #(
3966 *the\ am__doit\ target*)
3967 am__include=.include
3968 am__quote="\""
3969 _am_result=BSD
3970 ;;
3971 esac
3972fi
3973
3974
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3976$as_echo "$_am_result" >&6; }
3977rm -f confinc confmf
3978
3979# Check whether --enable-dependency-tracking was given.
3980if test "${enable_dependency_tracking+set}" = set; then :
3981 enableval=$enable_dependency_tracking;
3982fi
3983
3984if test "x$enable_dependency_tracking" != xno; then
3985 am_depcomp="$ac_aux_dir/depcomp"
3986 AMDEPBACKSLASH='\'
23d56208 3987 am__nodep='_no'
0e3762ca
CALP
3988fi
3989 if test "x$enable_dependency_tracking" != xno; then
3990 AMDEP_TRUE=
3991 AMDEP_FALSE='#'
3992else
3993 AMDEP_TRUE='#'
3994 AMDEP_FALSE=
3995fi
3996
3997
3998
3999depcc="$CC" am_compiler_list=
4000
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4002$as_echo_n "checking dependency style of $depcc... " >&6; }
23d56208 4003if ${am_cv_CC_dependencies_compiler_type+:} false; then :
0e3762ca
CALP
4004 $as_echo_n "(cached) " >&6
4005else
4006 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4007 # We make a subdir and do the tests there. Otherwise we can end up
4008 # making bogus files that we don't know about and never remove. For
4009 # instance it was reported that on HP-UX the gcc test will end up
4010 # making a dummy file named `D' -- because `-MD' means `put the output
4011 # in D'.
23d56208 4012 rm -rf conftest.dir
0e3762ca
CALP
4013 mkdir conftest.dir
4014 # Copy depcomp to subdir because otherwise we won't find it if we're
4015 # using a relative directory.
4016 cp "$am_depcomp" conftest.dir
4017 cd conftest.dir
4018 # We will build objects and dependencies in a subdirectory because
4019 # it helps to detect inapplicable dependency modes. For instance
4020 # both Tru64's cc and ICC support -MD to output dependencies as a
4021 # side effect of compilation, but ICC will put the dependencies in
4022 # the current directory while Tru64 will put them in the object
4023 # directory.
4024 mkdir sub
4025
4026 am_cv_CC_dependencies_compiler_type=none
4027 if test "$am_compiler_list" = ""; then
4028 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4029 fi
4030 am__universal=false
4031 case " $depcc " in #(
4032 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4033 esac
4034
4035 for depmode in $am_compiler_list; do
4036 # Setup a source with many dependencies, because some compilers
4037 # like to wrap large dependency lists on column 80 (with \), and
4038 # we should not choose a depcomp mode which is confused by this.
4039 #
4040 # We need to recreate these files for each test, as the compiler may
4041 # overwrite some of them when testing with obscure command lines.
4042 # This happens at least with the AIX C compiler.
4043 : > sub/conftest.c
4044 for i in 1 2 3 4 5 6; do
4045 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4046 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4047 # Solaris 8's {/usr,}/bin/sh.
4048 touch sub/conftst$i.h
4049 done
4050 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4051
4052 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4053 # mode. It turns out that the SunPro C++ compiler does not properly
4054 # handle `-M -o', and we need to detect this. Also, some Intel
4055 # versions had trouble with output in subdirs
4056 am__obj=sub/conftest.${OBJEXT-o}
4057 am__minus_obj="-o $am__obj"
4058 case $depmode in
4059 gcc)
4060 # This depmode causes a compiler race in universal mode.
4061 test "$am__universal" = false || continue
4062 ;;
4063 nosideeffect)
4064 # after this tag, mechanisms are not by side-effect, so they'll
4065 # only be used when explicitly requested
4066 if test "x$enable_dependency_tracking" = xyes; then
4067 continue
4068 else
4069 break
4070 fi
4071 ;;
23d56208 4072 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
0e3762ca
CALP
4073 # This compiler won't grok `-c -o', but also, the minuso test has
4074 # not run yet. These depmodes are late enough in the game, and
4075 # so weak that their functioning should not be impacted.
4076 am__obj=conftest.${OBJEXT-o}
4077 am__minus_obj=
4078 ;;
4079 none) break ;;
4080 esac
4081 if depmode=$depmode \
4082 source=sub/conftest.c object=$am__obj \
4083 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4084 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4085 >/dev/null 2>conftest.err &&
4086 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4087 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4088 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4089 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4090 # icc doesn't choke on unknown options, it will just issue warnings
4091 # or remarks (even with -Werror). So we grep stderr for any message
4092 # that says an option was ignored or not supported.
4093 # When given -MP, icc 7.0 and 7.1 complain thusly:
4094 # icc: Command line warning: ignoring option '-M'; no argument required
4095 # The diagnosis changed in icc 8.0:
4096 # icc: Command line remark: option '-MP' not supported
4097 if (grep 'ignoring option' conftest.err ||
4098 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4099 am_cv_CC_dependencies_compiler_type=$depmode
4100 break
4101 fi
4102 fi
4103 done
4104
4105 cd ..
4106 rm -rf conftest.dir
4107else
4108 am_cv_CC_dependencies_compiler_type=none
4109fi
4110
4111fi
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4113$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4114CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4115
4116 if
4117 test "x$enable_dependency_tracking" != xno \
4118 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4119 am__fastdepCC_TRUE=
4120 am__fastdepCC_FALSE='#'
4121else
4122 am__fastdepCC_TRUE='#'
4123 am__fastdepCC_FALSE=
4124fi
4125
4126
4127case `pwd` in
4128 *\ * | *\ *)
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4130$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4131esac
4132
4133
4134
23d56208
AX
4135macro_version='2.4.2'
4136macro_revision='1.3337'
0e3762ca
CALP
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150ltmain="$ac_aux_dir/ltmain.sh"
4151
23d56208
AX
4152# Backslashify metacharacters that are still active within
4153# double-quoted strings.
4154sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4155
4156# Same as above, but do not quote variable references.
4157double_quote_subst='s/\(["`\\]\)/\\\1/g'
4158
4159# Sed substitution to delay expansion of an escaped shell variable in a
4160# double_quote_subst'ed string.
4161delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4162
4163# Sed substitution to delay expansion of an escaped single quote.
4164delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4165
4166# Sed substitution to avoid accidental globbing in evaled expressions
4167no_glob_subst='s/\*/\\\*/g'
4168
4169ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4170ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4171ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4172
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4174$as_echo_n "checking how to print strings... " >&6; }
4175# Test print first, because it will be a builtin if present.
4176if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4177 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4178 ECHO='print -r --'
4179elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4180 ECHO='printf %s\n'
4181else
4182 # Use this function as a fallback that always works.
4183 func_fallback_echo ()
4184 {
4185 eval 'cat <<_LTECHO_EOF
4186$1
4187_LTECHO_EOF'
4188 }
4189 ECHO='func_fallback_echo'
4190fi
4191
4192# func_echo_all arg...
4193# Invoke $ECHO with all args, space-separated.
4194func_echo_all ()
4195{
4196 $ECHO ""
4197}
4198
4199case "$ECHO" in
4200 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4201$as_echo "printf" >&6; } ;;
4202 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4203$as_echo "print -r" >&6; } ;;
4204 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4205$as_echo "cat" >&6; } ;;
4206esac
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
0e3762ca
CALP
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4222$as_echo_n "checking for a sed that does not truncate output... " >&6; }
23d56208 4223if ${ac_cv_path_SED+:} false; then :
0e3762ca
CALP
4224 $as_echo_n "(cached) " >&6
4225else
4226 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4227 for ac_i in 1 2 3 4 5 6 7; do
4228 ac_script="$ac_script$as_nl$ac_script"
4229 done
4230 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4231 { ac_script=; unset ac_script;}
4232 if test -z "$SED"; then
4233 ac_path_SED_found=false
4234 # Loop through the user's path and test for each of PROGNAME-LIST
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_prog in sed gsed; do
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4243 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4244# Check for GNU ac_path_SED and select it if it is found.
4245 # Check for GNU $ac_path_SED
4246case `"$ac_path_SED" --version 2>&1` in
4247*GNU*)
4248 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4249*)
4250 ac_count=0
4251 $as_echo_n 0123456789 >"conftest.in"
4252 while :
4253 do
4254 cat "conftest.in" "conftest.in" >"conftest.tmp"
4255 mv "conftest.tmp" "conftest.in"
4256 cp "conftest.in" "conftest.nl"
4257 $as_echo '' >> "conftest.nl"
4258 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4260 as_fn_arith $ac_count + 1 && ac_count=$as_val
4261 if test $ac_count -gt ${ac_path_SED_max-0}; then
4262 # Best one so far, save it but keep looking for a better one
4263 ac_cv_path_SED="$ac_path_SED"
4264 ac_path_SED_max=$ac_count
4265 fi
4266 # 10*(2^10) chars as input seems more than enough
4267 test $ac_count -gt 10 && break
4268 done
4269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4270esac
4271
4272 $ac_path_SED_found && break 3
4273 done
4274 done
4275 done
4276IFS=$as_save_IFS
4277 if test -z "$ac_cv_path_SED"; then
4278 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4279 fi
4280else
4281 ac_cv_path_SED=$SED
4282fi
4283
4284fi
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4286$as_echo "$ac_cv_path_SED" >&6; }
4287 SED="$ac_cv_path_SED"
4288 rm -f conftest.sed
4289
4290test -z "$SED" && SED=sed
4291Xsed="$SED -e 1s/^X//"
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4304$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
23d56208 4305if ${ac_cv_path_GREP+:} false; then :
0e3762ca
CALP
4306 $as_echo_n "(cached) " >&6
4307else
4308 if test -z "$GREP"; then
4309 ac_path_GREP_found=false
4310 # Loop through the user's path and test for each of PROGNAME-LIST
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4313do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_prog in grep ggrep; do
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4319 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4320# Check for GNU ac_path_GREP and select it if it is found.
4321 # Check for GNU $ac_path_GREP
4322case `"$ac_path_GREP" --version 2>&1` in
4323*GNU*)
4324 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4325*)
4326 ac_count=0
4327 $as_echo_n 0123456789 >"conftest.in"
4328 while :
4329 do
4330 cat "conftest.in" "conftest.in" >"conftest.tmp"
4331 mv "conftest.tmp" "conftest.in"
4332 cp "conftest.in" "conftest.nl"
4333 $as_echo 'GREP' >> "conftest.nl"
4334 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4336 as_fn_arith $ac_count + 1 && ac_count=$as_val
4337 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4338 # Best one so far, save it but keep looking for a better one
4339 ac_cv_path_GREP="$ac_path_GREP"
4340 ac_path_GREP_max=$ac_count
4341 fi
4342 # 10*(2^10) chars as input seems more than enough
4343 test $ac_count -gt 10 && break
4344 done
4345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4346esac
4347
4348 $ac_path_GREP_found && break 3
4349 done
4350 done
4351 done
4352IFS=$as_save_IFS
4353 if test -z "$ac_cv_path_GREP"; then
4354 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4355 fi
4356else
4357 ac_cv_path_GREP=$GREP
4358fi
4359
4360fi
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4362$as_echo "$ac_cv_path_GREP" >&6; }
4363 GREP="$ac_cv_path_GREP"
4364
4365
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4367$as_echo_n "checking for egrep... " >&6; }
23d56208 4368if ${ac_cv_path_EGREP+:} false; then :
0e3762ca
CALP
4369 $as_echo_n "(cached) " >&6
4370else
4371 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4372 then ac_cv_path_EGREP="$GREP -E"
4373 else
4374 if test -z "$EGREP"; then
4375 ac_path_EGREP_found=false
4376 # Loop through the user's path and test for each of PROGNAME-LIST
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4379do
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_prog in egrep; do
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4385 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4386# Check for GNU ac_path_EGREP and select it if it is found.
4387 # Check for GNU $ac_path_EGREP
4388case `"$ac_path_EGREP" --version 2>&1` in
4389*GNU*)
4390 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4391*)
4392 ac_count=0
4393 $as_echo_n 0123456789 >"conftest.in"
4394 while :
4395 do
4396 cat "conftest.in" "conftest.in" >"conftest.tmp"
4397 mv "conftest.tmp" "conftest.in"
4398 cp "conftest.in" "conftest.nl"
4399 $as_echo 'EGREP' >> "conftest.nl"
4400 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4402 as_fn_arith $ac_count + 1 && ac_count=$as_val
4403 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4404 # Best one so far, save it but keep looking for a better one
4405 ac_cv_path_EGREP="$ac_path_EGREP"
4406 ac_path_EGREP_max=$ac_count
4407 fi
4408 # 10*(2^10) chars as input seems more than enough
4409 test $ac_count -gt 10 && break
4410 done
4411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4412esac
4413
4414 $ac_path_EGREP_found && break 3
4415 done
4416 done
4417 done
4418IFS=$as_save_IFS
4419 if test -z "$ac_cv_path_EGREP"; then
4420 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4421 fi
4422else
4423 ac_cv_path_EGREP=$EGREP
4424fi
4425
4426 fi
4427fi
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4429$as_echo "$ac_cv_path_EGREP" >&6; }
4430 EGREP="$ac_cv_path_EGREP"
4431
4432
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4434$as_echo_n "checking for fgrep... " >&6; }
23d56208 4435if ${ac_cv_path_FGREP+:} false; then :
0e3762ca
CALP
4436 $as_echo_n "(cached) " >&6
4437else
4438 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4439 then ac_cv_path_FGREP="$GREP -F"
4440 else
4441 if test -z "$FGREP"; then
4442 ac_path_FGREP_found=false
4443 # Loop through the user's path and test for each of PROGNAME-LIST
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_prog in fgrep; do
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4452 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4453# Check for GNU ac_path_FGREP and select it if it is found.
4454 # Check for GNU $ac_path_FGREP
4455case `"$ac_path_FGREP" --version 2>&1` in
4456*GNU*)
4457 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4458*)
4459 ac_count=0
4460 $as_echo_n 0123456789 >"conftest.in"
4461 while :
4462 do
4463 cat "conftest.in" "conftest.in" >"conftest.tmp"
4464 mv "conftest.tmp" "conftest.in"
4465 cp "conftest.in" "conftest.nl"
4466 $as_echo 'FGREP' >> "conftest.nl"
4467 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4469 as_fn_arith $ac_count + 1 && ac_count=$as_val
4470 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4471 # Best one so far, save it but keep looking for a better one
4472 ac_cv_path_FGREP="$ac_path_FGREP"
4473 ac_path_FGREP_max=$ac_count
4474 fi
4475 # 10*(2^10) chars as input seems more than enough
4476 test $ac_count -gt 10 && break
4477 done
4478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4479esac
4480
4481 $ac_path_FGREP_found && break 3
4482 done
4483 done
4484 done
4485IFS=$as_save_IFS
4486 if test -z "$ac_cv_path_FGREP"; then
4487 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4488 fi
4489else
4490 ac_cv_path_FGREP=$FGREP
4491fi
4492
4493 fi
4494fi
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4496$as_echo "$ac_cv_path_FGREP" >&6; }
4497 FGREP="$ac_cv_path_FGREP"
4498
4499
4500test -z "$GREP" && GREP=grep
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520# Check whether --with-gnu-ld was given.
4521if test "${with_gnu_ld+set}" = set; then :
4522 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4523else
4524 with_gnu_ld=no
4525fi
4526
4527ac_prog=ld
4528if test "$GCC" = yes; then
4529 # Check if gcc -print-prog-name=ld gives a path.
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4531$as_echo_n "checking for ld used by $CC... " >&6; }
4532 case $host in
4533 *-*-mingw*)
4534 # gcc leaves a trailing carriage return which upsets mingw
4535 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4536 *)
4537 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4538 esac
4539 case $ac_prog in
4540 # Accept absolute paths.
4541 [\\/]* | ?:[\\/]*)
4542 re_direlt='/[^/][^/]*/\.\./'
4543 # Canonicalize the pathname of ld
4544 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4545 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4546 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4547 done
4548 test -z "$LD" && LD="$ac_prog"
4549 ;;
4550 "")
4551 # If it fails, then pretend we aren't using GCC.
4552 ac_prog=ld
4553 ;;
4554 *)
4555 # If it is relative, then search for the first ld in PATH.
4556 with_gnu_ld=unknown
4557 ;;
4558 esac
4559elif test "$with_gnu_ld" = yes; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4561$as_echo_n "checking for GNU ld... " >&6; }
4562else
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4564$as_echo_n "checking for non-GNU ld... " >&6; }
4565fi
23d56208 4566if ${lt_cv_path_LD+:} false; then :
0e3762ca
CALP
4567 $as_echo_n "(cached) " >&6
4568else
4569 if test -z "$LD"; then
4570 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4571 for ac_dir in $PATH; do
4572 IFS="$lt_save_ifs"
4573 test -z "$ac_dir" && ac_dir=.
4574 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4575 lt_cv_path_LD="$ac_dir/$ac_prog"
4576 # Check to see if the program is GNU ld. I'd rather use --version,
4577 # but apparently some variants of GNU ld only accept -v.
4578 # Break only if it was the GNU/non-GNU ld that we prefer.
4579 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4580 *GNU* | *'with BFD'*)
4581 test "$with_gnu_ld" != no && break
4582 ;;
4583 *)
4584 test "$with_gnu_ld" != yes && break
4585 ;;
4586 esac
4587 fi
4588 done
4589 IFS="$lt_save_ifs"
4590else
4591 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4592fi
4593fi
4594
4595LD="$lt_cv_path_LD"
4596if test -n "$LD"; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4598$as_echo "$LD" >&6; }
4599else
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601$as_echo "no" >&6; }
4602fi
4603test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4605$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
23d56208 4606if ${lt_cv_prog_gnu_ld+:} false; then :
0e3762ca
CALP
4607 $as_echo_n "(cached) " >&6
4608else
4609 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4610case `$LD -v 2>&1 </dev/null` in
4611*GNU* | *'with BFD'*)
4612 lt_cv_prog_gnu_ld=yes
4613 ;;
4614*)
4615 lt_cv_prog_gnu_ld=no
4616 ;;
4617esac
4618fi
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4620$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4621with_gnu_ld=$lt_cv_prog_gnu_ld
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4632$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
23d56208 4633if ${lt_cv_path_NM+:} false; then :
0e3762ca
CALP
4634 $as_echo_n "(cached) " >&6
4635else
4636 if test -n "$NM"; then
4637 # Let the user override the test.
4638 lt_cv_path_NM="$NM"
4639else
4640 lt_nm_to_check="${ac_tool_prefix}nm"
4641 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4642 lt_nm_to_check="$lt_nm_to_check nm"
4643 fi
4644 for lt_tmp_nm in $lt_nm_to_check; do
4645 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4646 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4647 IFS="$lt_save_ifs"
4648 test -z "$ac_dir" && ac_dir=.
4649 tmp_nm="$ac_dir/$lt_tmp_nm"
4650 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4651 # Check to see if the nm accepts a BSD-compat flag.
4652 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4653 # nm: unknown option "B" ignored
4654 # Tru64's nm complains that /dev/null is an invalid object file
4655 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4656 */dev/null* | *'Invalid file or object type'*)
4657 lt_cv_path_NM="$tmp_nm -B"
4658 break
4659 ;;
4660 *)
4661 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4662 */dev/null*)
4663 lt_cv_path_NM="$tmp_nm -p"
4664 break
4665 ;;
4666 *)
4667 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4668 continue # so that we can try to find one that supports BSD flags
4669 ;;
4670 esac
4671 ;;
4672 esac
4673 fi
4674 done
4675 IFS="$lt_save_ifs"
4676 done
4677 : ${lt_cv_path_NM=no}
4678fi
4679fi
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4681$as_echo "$lt_cv_path_NM" >&6; }
4682if test "$lt_cv_path_NM" != "no"; then
4683 NM="$lt_cv_path_NM"
4684else
4685 # Didn't find any BSD compatible name lister, look for dumpbin.
23d56208
AX
4686 if test -n "$DUMPBIN"; then :
4687 # Let the user override the test.
4688 else
4689 if test -n "$ac_tool_prefix"; then
4690 for ac_prog in dumpbin "link -dump"
0e3762ca
CALP
4691 do
4692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4693set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695$as_echo_n "checking for $ac_word... " >&6; }
23d56208 4696if ${ac_cv_prog_DUMPBIN+:} false; then :
0e3762ca
CALP
4697 $as_echo_n "(cached) " >&6
4698else
4699 if test -n "$DUMPBIN"; then
4700 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4701else
4702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703for as_dir in $PATH
4704do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4712 fi
4713done
4714 done
4715IFS=$as_save_IFS
4716
4717fi
4718fi
4719DUMPBIN=$ac_cv_prog_DUMPBIN
4720if test -n "$DUMPBIN"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4722$as_echo "$DUMPBIN" >&6; }
4723else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725$as_echo "no" >&6; }
4726fi
4727
4728
4729 test -n "$DUMPBIN" && break
4730 done
4731fi
4732if test -z "$DUMPBIN"; then
4733 ac_ct_DUMPBIN=$DUMPBIN
23d56208 4734 for ac_prog in dumpbin "link -dump"
0e3762ca
CALP
4735do
4736 # Extract the first word of "$ac_prog", so it can be a program name with args.
4737set dummy $ac_prog; ac_word=$2
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739$as_echo_n "checking for $ac_word... " >&6; }
23d56208 4740if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
0e3762ca
CALP
4741 $as_echo_n "(cached) " >&6
4742else
4743 if test -n "$ac_ct_DUMPBIN"; then
4744 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4745else
4746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4756 fi
4757done
4758 done
4759IFS=$as_save_IFS
4760
4761fi
4762fi
4763ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4764if test -n "$ac_ct_DUMPBIN"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4766$as_echo "$ac_ct_DUMPBIN" >&6; }
4767else
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769$as_echo "no" >&6; }
4770fi
4771
4772
4773 test -n "$ac_ct_DUMPBIN" && break
4774done
4775
4776 if test "x$ac_ct_DUMPBIN" = x; then
4777 DUMPBIN=":"
4778 else
4779 case $cross_compiling:$ac_tool_warned in
4780yes:)
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4783ac_tool_warned=yes ;;
4784esac
4785 DUMPBIN=$ac_ct_DUMPBIN
4786 fi
4787fi
4788
23d56208
AX
4789 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4790 *COFF*)
4791 DUMPBIN="$DUMPBIN -symbols"
4792 ;;
4793 *)
4794 DUMPBIN=:
4795 ;;
4796 esac
4797 fi
0e3762ca
CALP
4798
4799 if test "$DUMPBIN" != ":"; then
4800 NM="$DUMPBIN"
4801 fi
4802fi
4803test -z "$NM" && NM=nm
4804
4805
4806
4807
4808
4809
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4811$as_echo_n "checking the name lister ($NM) interface... " >&6; }
23d56208 4812if ${lt_cv_nm_interface+:} false; then :
0e3762ca
CALP
4813 $as_echo_n "(cached) " >&6
4814else
4815 lt_cv_nm_interface="BSD nm"
4816 echo "int some_variable = 0;" > conftest.$ac_ext
23d56208 4817 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
0e3762ca
CALP
4818 (eval "$ac_compile" 2>conftest.err)
4819 cat conftest.err >&5
23d56208 4820 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
0e3762ca
CALP
4821 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4822 cat conftest.err >&5
23d56208 4823 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
0e3762ca
CALP
4824 cat conftest.out >&5
4825 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4826 lt_cv_nm_interface="MS dumpbin"
4827 fi
4828 rm -f conftest*
4829fi
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4831$as_echo "$lt_cv_nm_interface" >&6; }
4832
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4834$as_echo_n "checking whether ln -s works... " >&6; }
4835LN_S=$as_ln_s
4836if test "$LN_S" = "ln -s"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4838$as_echo "yes" >&6; }
4839else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4841$as_echo "no, using $LN_S" >&6; }
4842fi
4843
4844# find the maximum length of command line arguments
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4846$as_echo_n "checking the maximum length of command line arguments... " >&6; }
23d56208 4847if ${lt_cv_sys_max_cmd_len+:} false; then :
0e3762ca
CALP
4848 $as_echo_n "(cached) " >&6
4849else
4850 i=0
4851 teststring="ABCD"
4852
4853 case $build_os in
4854 msdosdjgpp*)
4855 # On DJGPP, this test can blow up pretty badly due to problems in libc
4856 # (any single argument exceeding 2000 bytes causes a buffer overrun
4857 # during glob expansion). Even if it were fixed, the result of this
4858 # check would be larger than it should be.
4859 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4860 ;;
4861
4862 gnu*)
4863 # Under GNU Hurd, this test is not required because there is
4864 # no limit to the length of command line arguments.
4865 # Libtool will interpret -1 as no limit whatsoever
4866 lt_cv_sys_max_cmd_len=-1;
4867 ;;
4868
4869 cygwin* | mingw* | cegcc*)
4870 # On Win9x/ME, this test blows up -- it succeeds, but takes
4871 # about 5 minutes as the teststring grows exponentially.
4872 # Worse, since 9x/ME are not pre-emptively multitasking,
4873 # you end up with a "frozen" computer, even though with patience
4874 # the test eventually succeeds (with a max line length of 256k).
4875 # Instead, let's just punt: use the minimum linelength reported by
4876 # all of the supported platforms: 8192 (on NT/2K/XP).
4877 lt_cv_sys_max_cmd_len=8192;
4878 ;;
4879
23d56208
AX
4880 mint*)
4881 # On MiNT this can take a long time and run out of memory.
4882 lt_cv_sys_max_cmd_len=8192;
4883 ;;
4884
0e3762ca
CALP
4885 amigaos*)
4886 # On AmigaOS with pdksh, this test takes hours, literally.
4887 # So we just punt and use a minimum line length of 8192.
4888 lt_cv_sys_max_cmd_len=8192;
4889 ;;
4890
4891 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4892 # This has been around since 386BSD, at least. Likely further.
4893 if test -x /sbin/sysctl; then
4894 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4895 elif test -x /usr/sbin/sysctl; then
4896 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4897 else
4898 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4899 fi
4900 # And add a safety zone
4901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4903 ;;
4904
4905 interix*)
4906 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4907 lt_cv_sys_max_cmd_len=196608
4908 ;;
4909
23d56208
AX
4910 os2*)
4911 # The test takes a long time on OS/2.
4912 lt_cv_sys_max_cmd_len=8192
4913 ;;
4914
0e3762ca
CALP
4915 osf*)
4916 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4917 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4918 # nice to cause kernel panics so lets avoid the loop below.
4919 # First set a reasonable default.
4920 lt_cv_sys_max_cmd_len=16384
4921 #
4922 if test -x /sbin/sysconfig; then
4923 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4924 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4925 esac
4926 fi
4927 ;;
4928 sco3.2v5*)
4929 lt_cv_sys_max_cmd_len=102400
4930 ;;
4931 sysv5* | sco5v6* | sysv4.2uw2*)
4932 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4933 if test -n "$kargmax"; then
4934 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4935 else
4936 lt_cv_sys_max_cmd_len=32768
4937 fi
4938 ;;
4939 *)
4940 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4941 if test -n "$lt_cv_sys_max_cmd_len"; then
4942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4944 else
4945 # Make teststring a little bigger before we do anything with it.
4946 # a 1K string should be a reasonable start.
4947 for i in 1 2 3 4 5 6 7 8 ; do
4948 teststring=$teststring$teststring
4949 done
4950 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4951 # If test is not a shell built-in, we'll probably end up computing a
4952 # maximum length that is only half of the actual maximum length, but
4953 # we can't tell.
23d56208
AX
4954 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4955 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
0e3762ca
CALP
4956 test $i != 17 # 1/2 MB should be enough
4957 do
4958 i=`expr $i + 1`
4959 teststring=$teststring$teststring
4960 done
4961 # Only check the string length outside the loop.
4962 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4963 teststring=
4964 # Add a significant safety factor because C++ compilers can tack on
4965 # massive amounts of additional arguments before passing them to the
4966 # linker. It appears as though 1/2 is a usable value.
4967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4968 fi
4969 ;;
4970 esac
4971
4972fi
4973
4974if test -n $lt_cv_sys_max_cmd_len ; then
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4976$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4977else
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4979$as_echo "none" >&6; }
4980fi
4981max_cmd_len=$lt_cv_sys_max_cmd_len
4982
4983
4984
4985
4986
4987
4988: ${CP="cp -f"}
4989: ${MV="mv -f"}
4990: ${RM="rm -f"}
4991
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4993$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4994# Try some XSI features
4995xsi_shell=no
4996( _lt_dummy="a/b/c"
23d56208
AX
4997 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4998 = c,a/b,b/c, \
0e3762ca
CALP
4999 && eval 'test $(( 1 + 1 )) -eq 2 \
5000 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5001 && xsi_shell=yes
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5003$as_echo "$xsi_shell" >&6; }
5004
5005
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5007$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5008lt_shell_append=no
5009( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5010 >/dev/null 2>&1 \
5011 && lt_shell_append=yes
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5013$as_echo "$lt_shell_append" >&6; }
5014
5015
5016if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5017 lt_unset=unset
5018else
5019 lt_unset=false
5020fi
5021
5022
5023
5024
5025
5026# test EBCDIC or ASCII
5027case `echo X|tr X '\101'` in
5028 A) # ASCII based system
5029 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5030 lt_SP2NL='tr \040 \012'
5031 lt_NL2SP='tr \015\012 \040\040'
5032 ;;
5033 *) # EBCDIC based system
5034 lt_SP2NL='tr \100 \n'
5035 lt_NL2SP='tr \r\n \100\100'
5036 ;;
5037esac
5038
5039
5040
5041
5042
5043
5044
5045
5046
23d56208
AX
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5048$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5049if ${lt_cv_to_host_file_cmd+:} false; then :
5050 $as_echo_n "(cached) " >&6
5051else
5052 case $host in
5053 *-*-mingw* )
5054 case $build in
5055 *-*-mingw* ) # actually msys
5056 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5057 ;;
5058 *-*-cygwin* )
5059 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5060 ;;
5061 * ) # otherwise, assume *nix
5062 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5063 ;;
5064 esac
5065 ;;
5066 *-*-cygwin* )
5067 case $build in
5068 *-*-mingw* ) # actually msys
5069 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5070 ;;
5071 *-*-cygwin* )
5072 lt_cv_to_host_file_cmd=func_convert_file_noop
5073 ;;
5074 * ) # otherwise, assume *nix
5075 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5076 ;;
5077 esac
5078 ;;
5079 * ) # unhandled hosts (and "normal" native builds)
5080 lt_cv_to_host_file_cmd=func_convert_file_noop
5081 ;;
5082esac
5083
5084fi
5085
5086to_host_file_cmd=$lt_cv_to_host_file_cmd
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5088$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5089
5090
5091
5092
5093
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5095$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5096if ${lt_cv_to_tool_file_cmd+:} false; then :
5097 $as_echo_n "(cached) " >&6
5098else
5099 #assume ordinary cross tools, or native build.
5100lt_cv_to_tool_file_cmd=func_convert_file_noop
5101case $host in
5102 *-*-mingw* )
5103 case $build in
5104 *-*-mingw* ) # actually msys
5105 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5106 ;;
5107 esac
5108 ;;
5109esac
5110
5111fi
5112
5113to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5115$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5116
5117
5118
5119
5120
0e3762ca
CALP
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5122$as_echo_n "checking for $LD option to reload object files... " >&6; }
23d56208 5123if ${lt_cv_ld_reload_flag+:} false; then :
0e3762ca
CALP
5124 $as_echo_n "(cached) " >&6
5125else
5126 lt_cv_ld_reload_flag='-r'
5127fi
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5129$as_echo "$lt_cv_ld_reload_flag" >&6; }
5130reload_flag=$lt_cv_ld_reload_flag
5131case $reload_flag in
5132"" | " "*) ;;
5133*) reload_flag=" $reload_flag" ;;
5134esac
5135reload_cmds='$LD$reload_flag -o $output$reload_objs'
5136case $host_os in
23d56208
AX
5137 cygwin* | mingw* | pw32* | cegcc*)
5138 if test "$GCC" != yes; then
5139 reload_cmds=false
5140 fi
5141 ;;
0e3762ca
CALP
5142 darwin*)
5143 if test "$GCC" = yes; then
5144 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5145 else
5146 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5147 fi
5148 ;;
5149esac
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159if test -n "$ac_tool_prefix"; then
5160 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5161set dummy ${ac_tool_prefix}objdump; ac_word=$2
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163$as_echo_n "checking for $ac_word... " >&6; }
23d56208 5164if ${ac_cv_prog_OBJDUMP+:} false; then :
0e3762ca
CALP
5165 $as_echo_n "(cached) " >&6
5166else
5167 if test -n "$OBJDUMP"; then
5168 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5169else
5170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171for as_dir in $PATH
5172do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5180 fi
5181done
5182 done
5183IFS=$as_save_IFS
5184
5185fi
5186fi
5187OBJDUMP=$ac_cv_prog_OBJDUMP
5188if test -n "$OBJDUMP"; then
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5190$as_echo "$OBJDUMP" >&6; }
5191else
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193$as_echo "no" >&6; }
5194fi
5195
5196
5197fi
5198if test -z "$ac_cv_prog_OBJDUMP"; then
5199 ac_ct_OBJDUMP=$OBJDUMP
5200 # Extract the first word of "objdump", so it can be a program name with args.
5201set dummy objdump; ac_word=$2
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203$as_echo_n "checking for $ac_word... " >&6; }
23d56208 5204if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
0e3762ca
CALP
5205 $as_echo_n "(cached) " >&6
5206else
5207 if test -n "$ac_ct_OBJDUMP"; then
5208 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5209else
5210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211for as_dir in $PATH
5212do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5217 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5220 fi
5221done
5222 done
5223IFS=$as_save_IFS
5224
5225fi
5226fi
5227ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5228if test -n "$ac_ct_OBJDUMP"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5230$as_echo "$ac_ct_OBJDUMP" >&6; }
5231else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233$as_echo "no" >&6; }
5234fi
5235
5236 if test "x$ac_ct_OBJDUMP" = x; then
5237 OBJDUMP="false"
5238 else
5239 case $cross_compiling:$ac_tool_warned in
5240yes:)
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5243ac_tool_warned=yes ;;
5244esac
5245 OBJDUMP=$ac_ct_OBJDUMP
5246 fi
5247else
5248 OBJDUMP="$ac_cv_prog_OBJDUMP"
5249fi
5250
5251test -z "$OBJDUMP" && OBJDUMP=objdump
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5262$as_echo_n "checking how to recognize dependent libraries... " >&6; }
23d56208 5263if ${lt_cv_deplibs_check_method+:} false; then :
0e3762ca
CALP
5264 $as_echo_n "(cached) " >&6
5265else
5266 lt_cv_file_magic_cmd='$MAGIC_CMD'
5267lt_cv_file_magic_test_file=
5268lt_cv_deplibs_check_method='unknown'
5269# Need to set the preceding variable on all platforms that support
5270# interlibrary dependencies.
5271# 'none' -- dependencies not supported.
5272# `unknown' -- same as none, but documents that we really don't know.
5273# 'pass_all' -- all dependencies passed with no checks.
5274# 'test_compile' -- check by making test program.
5275# 'file_magic [[regex]]' -- check by looking for files in library path
5276# which responds to the $file_magic_cmd with a given extended regex.
5277# If you have `file' or equivalent on your system and you're not sure
5278# whether `pass_all' will *always* work, you probably want this one.
5279
5280case $host_os in
5281aix[4-9]*)
5282 lt_cv_deplibs_check_method=pass_all
5283 ;;
5284
5285beos*)
5286 lt_cv_deplibs_check_method=pass_all
5287 ;;
5288
5289bsdi[45]*)
5290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5291 lt_cv_file_magic_cmd='/usr/bin/file -L'
5292 lt_cv_file_magic_test_file=/shlib/libc.so
5293 ;;
5294
5295cygwin*)
5296 # func_win32_libid is a shell function defined in ltmain.sh
5297 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5298 lt_cv_file_magic_cmd='func_win32_libid'
5299 ;;
5300
5301mingw* | pw32*)
5302 # Base MSYS/MinGW do not provide the 'file' command needed by
5303 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5304 # unless we find 'file', for example because we are cross-compiling.
23d56208
AX
5305 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5306 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
0e3762ca
CALP
5307 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5308 lt_cv_file_magic_cmd='func_win32_libid'
5309 else
23d56208
AX
5310 # Keep this pattern in sync with the one in func_win32_libid.
5311 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
0e3762ca
CALP
5312 lt_cv_file_magic_cmd='$OBJDUMP -f'
5313 fi
5314 ;;
5315
23d56208 5316cegcc*)
0e3762ca
CALP
5317 # use the weaker test based on 'objdump'. See mingw*.
5318 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5319 lt_cv_file_magic_cmd='$OBJDUMP -f'
5320 ;;
5321
5322darwin* | rhapsody*)
5323 lt_cv_deplibs_check_method=pass_all
5324 ;;
5325
5326freebsd* | dragonfly*)
5327 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5328 case $host_cpu in
5329 i*86 )
5330 # Not sure whether the presence of OpenBSD here was a mistake.
5331 # Let's accept both of them until this is cleared up.
5332 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5333 lt_cv_file_magic_cmd=/usr/bin/file
5334 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5335 ;;
5336 esac
5337 else
5338 lt_cv_deplibs_check_method=pass_all
5339 fi
5340 ;;
5341
5342gnu*)
5343 lt_cv_deplibs_check_method=pass_all
5344 ;;
5345
23d56208
AX
5346haiku*)
5347 lt_cv_deplibs_check_method=pass_all
5348 ;;
5349
0e3762ca
CALP
5350hpux10.20* | hpux11*)
5351 lt_cv_file_magic_cmd=/usr/bin/file
5352 case $host_cpu in
5353 ia64*)
5354 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5355 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5356 ;;
5357 hppa*64*)
23d56208 5358 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
0e3762ca
CALP
5359 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5360 ;;
5361 *)
23d56208 5362 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
0e3762ca
CALP
5363 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5364 ;;
5365 esac
5366 ;;
5367
5368interix[3-9]*)
5369 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5371 ;;
5372
5373irix5* | irix6* | nonstopux*)
5374 case $LD in
5375 *-32|*"-32 ") libmagic=32-bit;;
5376 *-n32|*"-n32 ") libmagic=N32;;
5377 *-64|*"-64 ") libmagic=64-bit;;
5378 *) libmagic=never-match;;
5379 esac
5380 lt_cv_deplibs_check_method=pass_all
5381 ;;
5382
23d56208 5383# This must be glibc/ELF.
0e3762ca
CALP
5384linux* | k*bsd*-gnu | kopensolaris*-gnu)
5385 lt_cv_deplibs_check_method=pass_all
5386 ;;
5387
5388netbsd* | netbsdelf*-gnu)
5389 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5391 else
5392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5393 fi
5394 ;;
5395
5396newos6*)
5397 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5398 lt_cv_file_magic_cmd=/usr/bin/file
5399 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5400 ;;
5401
5402*nto* | *qnx*)
5403 lt_cv_deplibs_check_method=pass_all
5404 ;;
5405
5406openbsd*)
5407 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5409 else
5410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5411 fi
5412 ;;
5413
5414osf3* | osf4* | osf5*)
5415 lt_cv_deplibs_check_method=pass_all
5416 ;;
5417
5418rdos*)
5419 lt_cv_deplibs_check_method=pass_all
5420 ;;
5421
5422solaris*)
5423 lt_cv_deplibs_check_method=pass_all
5424 ;;
5425
5426sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5427 lt_cv_deplibs_check_method=pass_all
5428 ;;
5429
5430sysv4 | sysv4.3*)
5431 case $host_vendor in
5432 motorola)
5433 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5434 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5435 ;;
5436 ncr)
5437 lt_cv_deplibs_check_method=pass_all
5438 ;;
5439 sequent)
5440 lt_cv_file_magic_cmd='/bin/file'
5441 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5442 ;;
5443 sni)
5444 lt_cv_file_magic_cmd='/bin/file'
5445 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5446 lt_cv_file_magic_test_file=/lib/libc.so
5447 ;;
5448 siemens)
5449 lt_cv_deplibs_check_method=pass_all
5450 ;;
5451 pc)
5452 lt_cv_deplibs_check_method=pass_all
5453 ;;
5454 esac
5455 ;;
5456
5457tpf*)
5458 lt_cv_deplibs_check_method=pass_all
5459 ;;
5460esac
5461
5462fi
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5464$as_echo "$lt_cv_deplibs_check_method" >&6; }
23d56208
AX
5465
5466file_magic_glob=
5467want_nocaseglob=no
5468if test "$build" = "$host"; then
5469 case $host_os in
5470 mingw* | pw32*)
5471 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5472 want_nocaseglob=yes
5473 else
5474 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5475 fi
5476 ;;
5477 esac
5478fi
5479
0e3762ca
CALP
5480file_magic_cmd=$lt_cv_file_magic_cmd
5481deplibs_check_method=$lt_cv_deplibs_check_method
5482test -z "$deplibs_check_method" && deplibs_check_method=unknown
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
23d56208
AX
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
0e3762ca
CALP
5503
5504
5505if test -n "$ac_tool_prefix"; then
23d56208
AX
5506 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5507set dummy ${ac_tool_prefix}dlltool; ac_word=$2
0e3762ca
CALP
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509$as_echo_n "checking for $ac_word... " >&6; }
23d56208 5510if ${ac_cv_prog_DLLTOOL+:} false; then :
0e3762ca
CALP
5511 $as_echo_n "(cached) " >&6
5512else
23d56208
AX
5513 if test -n "$DLLTOOL"; then
5514 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
0e3762ca
CALP
5515else
5516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517for as_dir in $PATH
5518do
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23d56208 5523 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
0e3762ca
CALP
5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5526 fi
5527done
5528 done
5529IFS=$as_save_IFS
5530
5531fi
5532fi
23d56208
AX
5533DLLTOOL=$ac_cv_prog_DLLTOOL
5534if test -n "$DLLTOOL"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5536$as_echo "$DLLTOOL" >&6; }
0e3762ca
CALP
5537else
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539$as_echo "no" >&6; }
5540fi
5541
5542
5543fi
23d56208
AX
5544if test -z "$ac_cv_prog_DLLTOOL"; then
5545 ac_ct_DLLTOOL=$DLLTOOL
5546 # Extract the first word of "dlltool", so it can be a program name with args.
5547set dummy dlltool; ac_word=$2
0e3762ca
CALP
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549$as_echo_n "checking for $ac_word... " >&6; }
23d56208 5550if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
0e3762ca
CALP
5551 $as_echo_n "(cached) " >&6
5552else
23d56208
AX
5553 if test -n "$ac_ct_DLLTOOL"; then
5554 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
0e3762ca
CALP
5555else
5556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557for as_dir in $PATH
5558do
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23d56208 5563 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
0e3762ca
CALP
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5566 fi
5567done
5568 done
5569IFS=$as_save_IFS
5570
5571fi
5572fi
23d56208
AX
5573ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5574if test -n "$ac_ct_DLLTOOL"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5576$as_echo "$ac_ct_DLLTOOL" >&6; }
0e3762ca
CALP
5577else
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579$as_echo "no" >&6; }
5580fi
5581
23d56208
AX
5582 if test "x$ac_ct_DLLTOOL" = x; then
5583 DLLTOOL="false"
0e3762ca
CALP
5584 else
5585 case $cross_compiling:$ac_tool_warned in
5586yes:)
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5589ac_tool_warned=yes ;;
5590esac
23d56208 5591 DLLTOOL=$ac_ct_DLLTOOL
0e3762ca
CALP
5592 fi
5593else
23d56208 5594 DLLTOOL="$ac_cv_prog_DLLTOOL"
0e3762ca
CALP
5595fi
5596
23d56208
AX
5597test -z "$DLLTOOL" && DLLTOOL=dlltool
5598
5599
0e3762ca
CALP
5600
5601
5602
5603
5604
5605
5606
5607
23d56208
AX
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5609$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5610if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5611 $as_echo_n "(cached) " >&6
5612else
5613 lt_cv_sharedlib_from_linklib_cmd='unknown'
5614
5615case $host_os in
5616cygwin* | mingw* | pw32* | cegcc*)
5617 # two different shell functions defined in ltmain.sh
5618 # decide which to use based on capabilities of $DLLTOOL
5619 case `$DLLTOOL --help 2>&1` in
5620 *--identify-strict*)
5621 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5622 ;;
5623 *)
5624 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5625 ;;
5626 esac
5627 ;;
5628*)
5629 # fallback: assume linklib IS sharedlib
5630 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5631 ;;
5632esac
5633
5634fi
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5636$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5637sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5638test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5639
5640
5641
5642
5643
0e3762ca
CALP
5644
5645
5646
5647if test -n "$ac_tool_prefix"; then
23d56208
AX
5648 for ac_prog in ar
5649 do
5650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5651set dummy $ac_tool_prefix$ac_prog; ac_word=$2
0e3762ca
CALP
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653$as_echo_n "checking for $ac_word... " >&6; }
23d56208 5654if ${ac_cv_prog_AR+:} false; then :
0e3762ca
CALP
5655 $as_echo_n "(cached) " >&6
5656else
23d56208
AX
5657 if test -n "$AR"; then
5658 ac_cv_prog_AR="$AR" # Let the user override the test.
0e3762ca
CALP
5659else
5660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661for as_dir in $PATH
5662do
5663 IFS=$as_save_IFS
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23d56208 5667 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
0e3762ca
CALP
5668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 break 2
5670 fi
5671done
5672 done
5673IFS=$as_save_IFS
5674
5675fi
5676fi
23d56208
AX
5677AR=$ac_cv_prog_AR
5678if test -n "$AR"; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5680$as_echo "$AR" >&6; }
0e3762ca
CALP
5681else
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683$as_echo "no" >&6; }
5684fi
5685
5686
23d56208
AX
5687 test -n "$AR" && break
5688 done
0e3762ca 5689fi
23d56208
AX
5690if test -z "$AR"; then
5691 ac_ct_AR=$AR
5692 for ac_prog in ar
5693do
5694 # Extract the first word of "$ac_prog", so it can be a program name with args.
5695set dummy $ac_prog; ac_word=$2
0e3762ca
CALP
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697$as_echo_n "checking for $ac_word... " >&6; }
23d56208 5698if ${ac_cv_prog_ac_ct_AR+:} false; then :
0e3762ca
CALP
5699 $as_echo_n "(cached) " >&6
5700else
23d56208
AX
5701 if test -n "$ac_ct_AR"; then
5702 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
0e3762ca
CALP
5703else
5704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705for as_dir in $PATH
5706do
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23d56208 5711 ac_cv_prog_ac_ct_AR="$ac_prog"
0e3762ca
CALP
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5714 fi
5715done
5716 done
5717IFS=$as_save_IFS
5718
5719fi
5720fi
23d56208
AX
5721ac_ct_AR=$ac_cv_prog_ac_ct_AR
5722if test -n "$ac_ct_AR"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5724$as_echo "$ac_ct_AR" >&6; }
5725else
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727$as_echo "no" >&6; }
5728fi
5729
5730
5731 test -n "$ac_ct_AR" && break
5732done
5733
5734 if test "x$ac_ct_AR" = x; then
5735 AR="false"
5736 else
5737 case $cross_compiling:$ac_tool_warned in
5738yes:)
5739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5741ac_tool_warned=yes ;;
5742esac
5743 AR=$ac_ct_AR
5744 fi
5745fi
5746
5747: ${AR=ar}
5748: ${AR_FLAGS=cru}
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5761$as_echo_n "checking for archiver @FILE support... " >&6; }
5762if ${lt_cv_ar_at_file+:} false; then :
5763 $as_echo_n "(cached) " >&6
5764else
5765 lt_cv_ar_at_file=no
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767/* end confdefs.h. */
5768
5769int
5770main ()
5771{
5772
5773 ;
5774 return 0;
5775}
5776_ACEOF
5777if ac_fn_c_try_compile "$LINENO"; then :
5778 echo conftest.$ac_objext > conftest.lst
5779 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5781 (eval $lt_ar_try) 2>&5
5782 ac_status=$?
5783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5784 test $ac_status = 0; }
5785 if test "$ac_status" -eq 0; then
5786 # Ensure the archiver fails upon bogus file names.
5787 rm -f conftest.$ac_objext libconftest.a
5788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5789 (eval $lt_ar_try) 2>&5
5790 ac_status=$?
5791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5792 test $ac_status = 0; }
5793 if test "$ac_status" -ne 0; then
5794 lt_cv_ar_at_file=@
5795 fi
5796 fi
5797 rm -f conftest.* libconftest.a
5798
5799fi
5800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801
5802fi
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5804$as_echo "$lt_cv_ar_at_file" >&6; }
5805
5806if test "x$lt_cv_ar_at_file" = xno; then
5807 archiver_list_spec=
5808else
5809 archiver_list_spec=$lt_cv_ar_at_file
5810fi
5811
5812
5813
5814
5815
5816
5817
5818if test -n "$ac_tool_prefix"; then
5819 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5820set dummy ${ac_tool_prefix}strip; ac_word=$2
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822$as_echo_n "checking for $ac_word... " >&6; }
5823if ${ac_cv_prog_STRIP+:} false; then :
5824 $as_echo_n "(cached) " >&6
5825else
5826 if test -n "$STRIP"; then
5827 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5828else
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 break 2
5839 fi
5840done
5841 done
5842IFS=$as_save_IFS
5843
5844fi
5845fi
5846STRIP=$ac_cv_prog_STRIP
5847if test -n "$STRIP"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5849$as_echo "$STRIP" >&6; }
5850else
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852$as_echo "no" >&6; }
5853fi
5854
5855
5856fi
5857if test -z "$ac_cv_prog_STRIP"; then
5858 ac_ct_STRIP=$STRIP
5859 # Extract the first word of "strip", so it can be a program name with args.
5860set dummy strip; ac_word=$2
5861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862$as_echo_n "checking for $ac_word... " >&6; }
5863if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5864 $as_echo_n "(cached) " >&6
5865else
5866 if test -n "$ac_ct_STRIP"; then
5867 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5868else
5869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870for as_dir in $PATH
5871do
5872 IFS=$as_save_IFS
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876 ac_cv_prog_ac_ct_STRIP="strip"
5877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878 break 2
5879 fi
5880done
5881 done
5882IFS=$as_save_IFS
5883
5884fi
5885fi
5886ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5887if test -n "$ac_ct_STRIP"; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5889$as_echo "$ac_ct_STRIP" >&6; }
0e3762ca
CALP
5890else
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892$as_echo "no" >&6; }
5893fi
5894
5895 if test "x$ac_ct_STRIP" = x; then
5896 STRIP=":"
5897 else
5898 case $cross_compiling:$ac_tool_warned in
5899yes:)
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5902ac_tool_warned=yes ;;
5903esac
5904 STRIP=$ac_ct_STRIP
5905 fi
5906else
5907 STRIP="$ac_cv_prog_STRIP"
5908fi
5909
5910test -z "$STRIP" && STRIP=:
5911
5912
5913
5914
5915
5916
5917if test -n "$ac_tool_prefix"; then
5918 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5919set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921$as_echo_n "checking for $ac_word... " >&6; }
23d56208 5922if ${ac_cv_prog_RANLIB+:} false; then :
0e3762ca
CALP
5923 $as_echo_n "(cached) " >&6
5924else
5925 if test -n "$RANLIB"; then
5926 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5927else
5928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929for as_dir in $PATH
5930do
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 break 2
5938 fi
5939done
5940 done
5941IFS=$as_save_IFS
5942
5943fi
5944fi
5945RANLIB=$ac_cv_prog_RANLIB
5946if test -n "$RANLIB"; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5948$as_echo "$RANLIB" >&6; }
5949else
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951$as_echo "no" >&6; }
5952fi
5953
5954
5955fi
5956if test -z "$ac_cv_prog_RANLIB"; then
5957 ac_ct_RANLIB=$RANLIB
5958 # Extract the first word of "ranlib", so it can be a program name with args.
5959set dummy ranlib; ac_word=$2
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5961$as_echo_n "checking for $ac_word... " >&6; }
23d56208 5962if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
0e3762ca
CALP
5963 $as_echo_n "(cached) " >&6
5964else
5965 if test -n "$ac_ct_RANLIB"; then
5966 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5967else
5968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969for as_dir in $PATH
5970do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_prog_ac_ct_RANLIB="ranlib"
5976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 break 2
5978 fi
5979done
5980 done
5981IFS=$as_save_IFS
5982
5983fi
5984fi
5985ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5986if test -n "$ac_ct_RANLIB"; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5988$as_echo "$ac_ct_RANLIB" >&6; }
5989else
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991$as_echo "no" >&6; }
5992fi
5993
5994 if test "x$ac_ct_RANLIB" = x; then
5995 RANLIB=":"
5996 else
5997 case $cross_compiling:$ac_tool_warned in
5998yes:)
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6001ac_tool_warned=yes ;;
6002esac
6003 RANLIB=$ac_ct_RANLIB
6004 fi
6005else
6006 RANLIB="$ac_cv_prog_RANLIB"
6007fi
6008
6009test -z "$RANLIB" && RANLIB=:
6010
6011
6012
6013
6014
6015
6016# Determine commands to create old-style static archives.
6017old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6018old_postinstall_cmds='chmod 644 $oldlib'
6019old_postuninstall_cmds=
6020
6021if test -n "$RANLIB"; then
6022 case $host_os in
6023 openbsd*)
23d56208 6024 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
0e3762ca
CALP
6025 ;;
6026 *)
23d56208 6027 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
0e3762ca
CALP
6028 ;;
6029 esac
23d56208 6030 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
0e3762ca
CALP
6031fi
6032
23d56208
AX
6033case $host_os in
6034 darwin*)
6035 lock_old_archive_extraction=yes ;;
6036 *)
6037 lock_old_archive_extraction=no ;;
6038esac
6039
6040
6041
6042
6043
6044
0e3762ca
CALP
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078# If no C compiler was specified, use CC.
6079LTCC=${LTCC-"$CC"}
6080
6081# If no C compiler flags were specified, use CFLAGS.
6082LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6083
6084# Allow CC to be a program name with arguments.
6085compiler=$CC
6086
6087
6088# Check for command to grab the raw symbol name followed by C symbol from nm.
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6090$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
23d56208 6091if ${lt_cv_sys_global_symbol_pipe+:} false; then :
0e3762ca
CALP
6092 $as_echo_n "(cached) " >&6
6093else
6094
6095# These are sane defaults that work on at least a few old systems.
6096# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6097
6098# Character class describing NM global symbol codes.
6099symcode='[BCDEGRST]'
6100
6101# Regexp to match symbols that can be accessed directly from C.
6102sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6103
6104# Define system-specific variables.
6105case $host_os in
6106aix*)
6107 symcode='[BCDT]'
6108 ;;
6109cygwin* | mingw* | pw32* | cegcc*)
6110 symcode='[ABCDGISTW]'
6111 ;;
6112hpux*)
6113 if test "$host_cpu" = ia64; then
6114 symcode='[ABCDEGRST]'
6115 fi
6116 ;;
6117irix* | nonstopux*)
6118 symcode='[BCDEGRST]'
6119 ;;
6120osf*)
6121 symcode='[BCDEGQRST]'
6122 ;;
6123solaris*)
6124 symcode='[BDRT]'
6125 ;;
6126sco3.2v5*)
6127 symcode='[DT]'
6128 ;;
6129sysv4.2uw2*)
6130 symcode='[DT]'
6131 ;;
6132sysv5* | sco5v6* | unixware* | OpenUNIX*)
6133 symcode='[ABDT]'
6134 ;;
6135sysv4)
6136 symcode='[DFNSTU]'
6137 ;;
6138esac
6139
6140# If we're using GNU nm, then use its standard symbol codes.
6141case `$NM -V 2>&1` in
6142*GNU* | *'with BFD'*)
6143 symcode='[ABCDGIRSTW]' ;;
6144esac
6145
6146# Transform an extracted symbol line into a proper C declaration.
6147# Some systems (esp. on ia64) link data and code symbols differently,
6148# so use this general approach.
6149lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6150
6151# Transform an extracted symbol line into symbol name and symbol address
23d56208
AX
6152lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6153lt_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'"
0e3762ca
CALP
6154
6155# Handle CRLF in mingw tool chain
6156opt_cr=
6157case $build_os in
6158mingw*)
6159 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6160 ;;
6161esac
6162
6163# Try without a prefix underscore, then with it.
6164for ac_symprfx in "" "_"; do
6165
6166 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6167 symxfrm="\\1 $ac_symprfx\\2 \\2"
6168
6169 # Write the raw and C identifiers.
6170 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6171 # Fake it for dumpbin and say T for any non-static function
6172 # and D for any global variable.
6173 # Also find C++ and __fastcall symbols from MSVC++,
6174 # which start with @ or ?.
6175 lt_cv_sys_global_symbol_pipe="$AWK '"\
6176" {last_section=section; section=\$ 3};"\
23d56208 6177" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
0e3762ca
CALP
6178" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6179" \$ 0!~/External *\|/{next};"\
6180" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6181" {if(hide[section]) next};"\
6182" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6183" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6184" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6185" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6186" ' prfx=^$ac_symprfx"
6187 else
6188 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6189 fi
23d56208 6190 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
0e3762ca
CALP
6191
6192 # Check to see that the pipe works correctly.
6193 pipe_works=no
6194
6195 rm -f conftest*
6196 cat > conftest.$ac_ext <<_LT_EOF
6197#ifdef __cplusplus
6198extern "C" {
6199#endif
6200char nm_test_var;
6201void nm_test_func(void);
6202void nm_test_func(void){}
6203#ifdef __cplusplus
6204}
6205#endif
6206int main(){nm_test_var='a';nm_test_func();return(0);}
6207_LT_EOF
6208
6209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6210 (eval $ac_compile) 2>&5
6211 ac_status=$?
6212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6213 test $ac_status = 0; }; then
6214 # Now try to grab the symbols.
6215 nlist=conftest.nm
23d56208
AX
6216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6217 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
0e3762ca
CALP
6218 ac_status=$?
6219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6220 test $ac_status = 0; } && test -s "$nlist"; then
6221 # Try sorting and uniquifying the output.
6222 if sort "$nlist" | uniq > "$nlist"T; then
6223 mv -f "$nlist"T "$nlist"
6224 else
6225 rm -f "$nlist"T
6226 fi
6227
6228 # Make sure that we snagged all the symbols we need.
6229 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6230 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6231 cat <<_LT_EOF > conftest.$ac_ext
23d56208
AX
6232/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6233#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6234/* DATA imports from DLLs on WIN32 con't be const, because runtime
6235 relocations are performed -- see ld's documentation on pseudo-relocs. */
6236# define LT_DLSYM_CONST
6237#elif defined(__osf__)
6238/* This system does not cope well with relocations in const data. */
6239# define LT_DLSYM_CONST
6240#else
6241# define LT_DLSYM_CONST const
6242#endif
6243
0e3762ca
CALP
6244#ifdef __cplusplus
6245extern "C" {
6246#endif
6247
6248_LT_EOF
6249 # Now generate the symbol file.
6250 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6251
6252 cat <<_LT_EOF >> conftest.$ac_ext
6253
6254/* The mapping between symbol names and symbols. */
23d56208 6255LT_DLSYM_CONST struct {
0e3762ca
CALP
6256 const char *name;
6257 void *address;
6258}
6259lt__PROGRAM__LTX_preloaded_symbols[] =
6260{
6261 { "@PROGRAM@", (void *) 0 },
6262_LT_EOF
6263 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6264 cat <<\_LT_EOF >> conftest.$ac_ext
6265 {0, (void *) 0}
6266};
6267
6268/* This works around a problem in FreeBSD linker */
6269#ifdef FREEBSD_WORKAROUND
6270static const void *lt_preloaded_setup() {
6271 return lt__PROGRAM__LTX_preloaded_symbols;
6272}
6273#endif
6274
6275#ifdef __cplusplus
6276}
6277#endif
6278_LT_EOF
6279 # Now try linking the two files.
6280 mv conftest.$ac_objext conftstm.$ac_objext
23d56208
AX
6281 lt_globsym_save_LIBS=$LIBS
6282 lt_globsym_save_CFLAGS=$CFLAGS
0e3762ca
CALP
6283 LIBS="conftstm.$ac_objext"
6284 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6286 (eval $ac_link) 2>&5
6287 ac_status=$?
6288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6289 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6290 pipe_works=yes
6291 fi
23d56208
AX
6292 LIBS=$lt_globsym_save_LIBS
6293 CFLAGS=$lt_globsym_save_CFLAGS
0e3762ca
CALP
6294 else
6295 echo "cannot find nm_test_func in $nlist" >&5
6296 fi
6297 else
6298 echo "cannot find nm_test_var in $nlist" >&5
6299 fi
6300 else
6301 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6302 fi
6303 else
6304 echo "$progname: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6306 fi
6307 rm -rf conftest* conftst*
6308
6309 # Do not use the global_symbol_pipe unless it works.
6310 if test "$pipe_works" = yes; then
6311 break
6312 else
6313 lt_cv_sys_global_symbol_pipe=
6314 fi
6315done
6316
6317fi
6318
6319if test -z "$lt_cv_sys_global_symbol_pipe"; then
6320 lt_cv_sys_global_symbol_to_cdecl=
6321fi
6322if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6324$as_echo "failed" >&6; }
6325else
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6327$as_echo "ok" >&6; }
6328fi
6329
23d56208
AX
6330# Response file support.
6331if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6332 nm_file_list_spec='@'
6333elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6334 nm_file_list_spec='@'
6335fi
6336
6337
6338
0e3762ca
CALP
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
23d56208
AX
6356
6357
6358
6359
6360
6361
6362
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6364$as_echo_n "checking for sysroot... " >&6; }
6365
6366# Check whether --with-sysroot was given.
6367if test "${with_sysroot+set}" = set; then :
6368 withval=$with_sysroot;
6369else
6370 with_sysroot=no
6371fi
6372
6373
6374lt_sysroot=
6375case ${with_sysroot} in #(
6376 yes)
6377 if test "$GCC" = yes; then
6378 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6379 fi
6380 ;; #(
6381 /*)
6382 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6383 ;; #(
6384 no|'')
6385 ;; #(
6386 *)
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6388$as_echo "${with_sysroot}" >&6; }
6389 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6390 ;;
6391esac
6392
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6394$as_echo "${lt_sysroot:-no}" >&6; }
0e3762ca
CALP
6395
6396
6397
6398
6399
6400# Check whether --enable-libtool-lock was given.
6401if test "${enable_libtool_lock+set}" = set; then :
6402 enableval=$enable_libtool_lock;
6403fi
6404
6405test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6406
6407# Some flags need to be propagated to the compiler or linker for good
6408# libtool support.
6409case $host in
6410ia64-*-hpux*)
6411 # Find out which ABI we are using.
6412 echo 'int i;' > conftest.$ac_ext
6413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6414 (eval $ac_compile) 2>&5
6415 ac_status=$?
6416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6417 test $ac_status = 0; }; then
6418 case `/usr/bin/file conftest.$ac_objext` in
6419 *ELF-32*)
6420 HPUX_IA64_MODE="32"
6421 ;;
6422 *ELF-64*)
6423 HPUX_IA64_MODE="64"
6424 ;;
6425 esac
6426 fi
6427 rm -rf conftest*
6428 ;;
6429*-*-irix6*)
6430 # Find out which ABI we are using.
23d56208 6431 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
0e3762ca
CALP
6432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6433 (eval $ac_compile) 2>&5
6434 ac_status=$?
6435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6436 test $ac_status = 0; }; then
6437 if test "$lt_cv_prog_gnu_ld" = yes; then
6438 case `/usr/bin/file conftest.$ac_objext` in
6439 *32-bit*)
6440 LD="${LD-ld} -melf32bsmip"
6441 ;;
6442 *N32*)
6443 LD="${LD-ld} -melf32bmipn32"
6444 ;;
6445 *64-bit*)
6446 LD="${LD-ld} -melf64bmip"
6447 ;;
6448 esac
6449 else
6450 case `/usr/bin/file conftest.$ac_objext` in
6451 *32-bit*)
6452 LD="${LD-ld} -32"
6453 ;;
6454 *N32*)
6455 LD="${LD-ld} -n32"
6456 ;;
6457 *64-bit*)
6458 LD="${LD-ld} -64"
6459 ;;
6460 esac
6461 fi
6462 fi
6463 rm -rf conftest*
6464 ;;
6465
6466x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6467s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6468 # Find out which ABI we are using.
6469 echo 'int i;' > conftest.$ac_ext
6470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6471 (eval $ac_compile) 2>&5
6472 ac_status=$?
6473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6474 test $ac_status = 0; }; then
6475 case `/usr/bin/file conftest.o` in
6476 *32-bit*)
6477 case $host in
6478 x86_64-*kfreebsd*-gnu)
6479 LD="${LD-ld} -m elf_i386_fbsd"
6480 ;;
6481 x86_64-*linux*)
6482 LD="${LD-ld} -m elf_i386"
6483 ;;
6484 ppc64-*linux*|powerpc64-*linux*)
6485 LD="${LD-ld} -m elf32ppclinux"
6486 ;;
6487 s390x-*linux*)
6488 LD="${LD-ld} -m elf_s390"
6489 ;;
6490 sparc64-*linux*)
6491 LD="${LD-ld} -m elf32_sparc"
6492 ;;
6493 esac
6494 ;;
6495 *64-bit*)
6496 case $host in
6497 x86_64-*kfreebsd*-gnu)
6498 LD="${LD-ld} -m elf_x86_64_fbsd"
6499 ;;
6500 x86_64-*linux*)
6501 LD="${LD-ld} -m elf_x86_64"
6502 ;;
6503 ppc*-*linux*|powerpc*-*linux*)
6504 LD="${LD-ld} -m elf64ppc"
6505 ;;
6506 s390*-*linux*|s390*-*tpf*)
6507 LD="${LD-ld} -m elf64_s390"
6508 ;;
6509 sparc*-*linux*)
6510 LD="${LD-ld} -m elf64_sparc"
6511 ;;
6512 esac
6513 ;;
6514 esac
6515 fi
6516 rm -rf conftest*
6517 ;;
6518
6519*-*-sco3.2v5*)
6520 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6521 SAVE_CFLAGS="$CFLAGS"
6522 CFLAGS="$CFLAGS -belf"
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6524$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
23d56208 6525if ${lt_cv_cc_needs_belf+:} false; then :
0e3762ca
CALP
6526 $as_echo_n "(cached) " >&6
6527else
6528 ac_ext=c
6529ac_cpp='$CPP $CPPFLAGS'
6530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6532ac_compiler_gnu=$ac_cv_c_compiler_gnu
6533
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535/* end confdefs.h. */
6536
6537int
6538main ()
6539{
6540
6541 ;
6542 return 0;
6543}
6544_ACEOF
6545if ac_fn_c_try_link "$LINENO"; then :
6546 lt_cv_cc_needs_belf=yes
6547else
6548 lt_cv_cc_needs_belf=no
6549fi
6550rm -f core conftest.err conftest.$ac_objext \
6551 conftest$ac_exeext conftest.$ac_ext
6552 ac_ext=c
6553ac_cpp='$CPP $CPPFLAGS'
6554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6556ac_compiler_gnu=$ac_cv_c_compiler_gnu
6557
6558fi
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6560$as_echo "$lt_cv_cc_needs_belf" >&6; }
6561 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6562 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6563 CFLAGS="$SAVE_CFLAGS"
6564 fi
6565 ;;
23d56208 6566*-*solaris*)
0e3762ca
CALP
6567 # Find out which ABI we are using.
6568 echo 'int i;' > conftest.$ac_ext
6569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6570 (eval $ac_compile) 2>&5
6571 ac_status=$?
6572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6573 test $ac_status = 0; }; then
6574 case `/usr/bin/file conftest.o` in
6575 *64-bit*)
6576 case $lt_cv_prog_gnu_ld in
23d56208
AX
6577 yes*)
6578 case $host in
6579 i?86-*-solaris*)
6580 LD="${LD-ld} -m elf_x86_64"
6581 ;;
6582 sparc*-*-solaris*)
6583 LD="${LD-ld} -m elf64_sparc"
6584 ;;
6585 esac
6586 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6587 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6588 LD="${LD-ld}_sol2"
6589 fi
6590 ;;
0e3762ca
CALP
6591 *)
6592 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6593 LD="${LD-ld} -64"
6594 fi
6595 ;;
6596 esac
6597 ;;
6598 esac
6599 fi
6600 rm -rf conftest*
6601 ;;
6602esac
6603
6604need_locks="$enable_libtool_lock"
6605
23d56208
AX
6606if test -n "$ac_tool_prefix"; then
6607 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6608set dummy ${ac_tool_prefix}mt; ac_word=$2
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610$as_echo_n "checking for $ac_word... " >&6; }
6611if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6612 $as_echo_n "(cached) " >&6
6613else
6614 if test -n "$MANIFEST_TOOL"; then
6615 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6616else
6617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618for as_dir in $PATH
6619do
6620 IFS=$as_save_IFS
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 break 2
6627 fi
6628done
6629 done
6630IFS=$as_save_IFS
6631
6632fi
6633fi
6634MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6635if test -n "$MANIFEST_TOOL"; then
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6637$as_echo "$MANIFEST_TOOL" >&6; }
6638else
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640$as_echo "no" >&6; }
6641fi
6642
6643
6644fi
6645if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6646 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6647 # Extract the first word of "mt", so it can be a program name with args.
6648set dummy mt; ac_word=$2
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650$as_echo_n "checking for $ac_word... " >&6; }
6651if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6652 $as_echo_n "(cached) " >&6
6653else
6654 if test -n "$ac_ct_MANIFEST_TOOL"; then
6655 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6656else
6657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6667 fi
6668done
6669 done
6670IFS=$as_save_IFS
6671
6672fi
6673fi
6674ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6675if test -n "$ac_ct_MANIFEST_TOOL"; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6677$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6678else
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680$as_echo "no" >&6; }
6681fi
6682
6683 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6684 MANIFEST_TOOL=":"
6685 else
6686 case $cross_compiling:$ac_tool_warned in
6687yes:)
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6690ac_tool_warned=yes ;;
6691esac
6692 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6693 fi
6694else
6695 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6696fi
6697
6698test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6700$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6701if ${lt_cv_path_mainfest_tool+:} false; then :
6702 $as_echo_n "(cached) " >&6
6703else
6704 lt_cv_path_mainfest_tool=no
6705 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6706 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6707 cat conftest.err >&5
6708 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6709 lt_cv_path_mainfest_tool=yes
6710 fi
6711 rm -f conftest*
6712fi
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6714$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6715if test "x$lt_cv_path_mainfest_tool" != xyes; then
6716 MANIFEST_TOOL=:
6717fi
6718
6719
6720
6721
6722
0e3762ca
CALP
6723
6724 case $host_os in
6725 rhapsody* | darwin*)
6726 if test -n "$ac_tool_prefix"; then
6727 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6728set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730$as_echo_n "checking for $ac_word... " >&6; }
23d56208 6731if ${ac_cv_prog_DSYMUTIL+:} false; then :
0e3762ca
CALP
6732 $as_echo_n "(cached) " >&6
6733else
6734 if test -n "$DSYMUTIL"; then
6735 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6736else
6737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in $PATH
6739do
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 break 2
6747 fi
6748done
6749 done
6750IFS=$as_save_IFS
6751
6752fi
6753fi
6754DSYMUTIL=$ac_cv_prog_DSYMUTIL
6755if test -n "$DSYMUTIL"; then
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6757$as_echo "$DSYMUTIL" >&6; }
6758else
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760$as_echo "no" >&6; }
6761fi
6762
6763
6764fi
6765if test -z "$ac_cv_prog_DSYMUTIL"; then
6766 ac_ct_DSYMUTIL=$DSYMUTIL
6767 # Extract the first word of "dsymutil", so it can be a program name with args.
6768set dummy dsymutil; ac_word=$2
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770$as_echo_n "checking for $ac_word... " >&6; }
23d56208 6771if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
0e3762ca
CALP
6772 $as_echo_n "(cached) " >&6
6773else
6774 if test -n "$ac_ct_DSYMUTIL"; then
6775 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6776else
6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 break 2
6787 fi
6788done
6789 done
6790IFS=$as_save_IFS
6791
6792fi
6793fi
6794ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6795if test -n "$ac_ct_DSYMUTIL"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6797$as_echo "$ac_ct_DSYMUTIL" >&6; }
6798else
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800$as_echo "no" >&6; }
6801fi
6802
6803 if test "x$ac_ct_DSYMUTIL" = x; then
6804 DSYMUTIL=":"
6805 else
6806 case $cross_compiling:$ac_tool_warned in
6807yes:)
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6810ac_tool_warned=yes ;;
6811esac
6812 DSYMUTIL=$ac_ct_DSYMUTIL
6813 fi
6814else
6815 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6816fi
6817
6818 if test -n "$ac_tool_prefix"; then
6819 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6820set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822$as_echo_n "checking for $ac_word... " >&6; }
23d56208 6823if ${ac_cv_prog_NMEDIT+:} false; then :
0e3762ca
CALP
6824 $as_echo_n "(cached) " >&6
6825else
6826 if test -n "$NMEDIT"; then
6827 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6828else
6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840done
6841 done
6842IFS=$as_save_IFS
6843
6844fi
6845fi
6846NMEDIT=$ac_cv_prog_NMEDIT
6847if test -n "$NMEDIT"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6849$as_echo "$NMEDIT" >&6; }
6850else
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852$as_echo "no" >&6; }
6853fi
6854
6855
6856fi
6857if test -z "$ac_cv_prog_NMEDIT"; then
6858 ac_ct_NMEDIT=$NMEDIT
6859 # Extract the first word of "nmedit", so it can be a program name with args.
6860set dummy nmedit; ac_word=$2
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862$as_echo_n "checking for $ac_word... " >&6; }
23d56208 6863if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
0e3762ca
CALP
6864 $as_echo_n "(cached) " >&6
6865else
6866 if test -n "$ac_ct_NMEDIT"; then
6867 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6868else
6869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870for as_dir in $PATH
6871do
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 break 2
6879 fi
6880done
6881 done
6882IFS=$as_save_IFS
6883
6884fi
6885fi
6886ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6887if test -n "$ac_ct_NMEDIT"; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6889$as_echo "$ac_ct_NMEDIT" >&6; }
6890else
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892$as_echo "no" >&6; }
6893fi
6894
6895 if test "x$ac_ct_NMEDIT" = x; then
6896 NMEDIT=":"
6897 else
6898 case $cross_compiling:$ac_tool_warned in
6899yes:)
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6902ac_tool_warned=yes ;;
6903esac
6904 NMEDIT=$ac_ct_NMEDIT
6905 fi
6906else
6907 NMEDIT="$ac_cv_prog_NMEDIT"
6908fi
6909
6910 if test -n "$ac_tool_prefix"; then
6911 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6912set dummy ${ac_tool_prefix}lipo; ac_word=$2
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914$as_echo_n "checking for $ac_word... " >&6; }
23d56208 6915if ${ac_cv_prog_LIPO+:} false; then :
0e3762ca
CALP
6916 $as_echo_n "(cached) " >&6
6917else
6918 if test -n "$LIPO"; then
6919 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6920else
6921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922for as_dir in $PATH
6923do
6924 IFS=$as_save_IFS
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930 break 2
6931 fi
6932done
6933 done
6934IFS=$as_save_IFS
6935
6936fi
6937fi
6938LIPO=$ac_cv_prog_LIPO
6939if test -n "$LIPO"; then
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6941$as_echo "$LIPO" >&6; }
6942else
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944$as_echo "no" >&6; }
6945fi
6946
6947
6948fi
6949if test -z "$ac_cv_prog_LIPO"; then
6950 ac_ct_LIPO=$LIPO
6951 # Extract the first word of "lipo", so it can be a program name with args.
6952set dummy lipo; ac_word=$2
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954$as_echo_n "checking for $ac_word... " >&6; }
23d56208 6955if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
0e3762ca
CALP
6956 $as_echo_n "(cached) " >&6
6957else
6958 if test -n "$ac_ct_LIPO"; then
6959 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6960else
6961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_prog_ac_ct_LIPO="lipo"
6969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 break 2
6971 fi
6972done
6973 done
6974IFS=$as_save_IFS
6975
6976fi
6977fi
6978ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6979if test -n "$ac_ct_LIPO"; then
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6981$as_echo "$ac_ct_LIPO" >&6; }
6982else
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984$as_echo "no" >&6; }
6985fi
6986
6987 if test "x$ac_ct_LIPO" = x; then
6988 LIPO=":"
6989 else
6990 case $cross_compiling:$ac_tool_warned in
6991yes:)
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6994ac_tool_warned=yes ;;
6995esac
6996 LIPO=$ac_ct_LIPO
6997 fi
6998else
6999 LIPO="$ac_cv_prog_LIPO"
7000fi
7001
7002 if test -n "$ac_tool_prefix"; then
7003 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7004set dummy ${ac_tool_prefix}otool; ac_word=$2
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006$as_echo_n "checking for $ac_word... " >&6; }
23d56208 7007if ${ac_cv_prog_OTOOL+:} false; then :
0e3762ca
CALP
7008 $as_echo_n "(cached) " >&6
7009else
7010 if test -n "$OTOOL"; then
7011 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7012else
7013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014for as_dir in $PATH
7015do
7016 IFS=$as_save_IFS
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7020 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7022 break 2
7023 fi
7024done
7025 done
7026IFS=$as_save_IFS
7027
7028fi
7029fi
7030OTOOL=$ac_cv_prog_OTOOL
7031if test -n "$OTOOL"; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7033$as_echo "$OTOOL" >&6; }
7034else
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036$as_echo "no" >&6; }
7037fi
7038
7039
7040fi
7041if test -z "$ac_cv_prog_OTOOL"; then
7042 ac_ct_OTOOL=$OTOOL
7043 # Extract the first word of "otool", so it can be a program name with args.
7044set dummy otool; ac_word=$2
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046$as_echo_n "checking for $ac_word... " >&6; }
23d56208 7047if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
0e3762ca
CALP
7048 $as_echo_n "(cached) " >&6
7049else
7050 if test -n "$ac_ct_OTOOL"; then
7051 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7052else
7053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7060 ac_cv_prog_ac_ct_OTOOL="otool"
7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 break 2
7063 fi
7064done
7065 done
7066IFS=$as_save_IFS
7067
7068fi
7069fi
7070ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7071if test -n "$ac_ct_OTOOL"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7073$as_echo "$ac_ct_OTOOL" >&6; }
7074else
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076$as_echo "no" >&6; }
7077fi
7078
7079 if test "x$ac_ct_OTOOL" = x; then
7080 OTOOL=":"
7081 else
7082 case $cross_compiling:$ac_tool_warned in
7083yes:)
7084{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7085$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7086ac_tool_warned=yes ;;
7087esac
7088 OTOOL=$ac_ct_OTOOL
7089 fi
7090else
7091 OTOOL="$ac_cv_prog_OTOOL"
7092fi
7093
7094 if test -n "$ac_tool_prefix"; then
7095 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7096set dummy ${ac_tool_prefix}otool64; ac_word=$2
7097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098$as_echo_n "checking for $ac_word... " >&6; }
23d56208 7099if ${ac_cv_prog_OTOOL64+:} false; then :
0e3762ca
CALP
7100 $as_echo_n "(cached) " >&6
7101else
7102 if test -n "$OTOOL64"; then
7103 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7104else
7105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7112 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 break 2
7115 fi
7116done
7117 done
7118IFS=$as_save_IFS
7119
7120fi
7121fi
7122OTOOL64=$ac_cv_prog_OTOOL64
7123if test -n "$OTOOL64"; then
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7125$as_echo "$OTOOL64" >&6; }
7126else
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128$as_echo "no" >&6; }
7129fi
7130
7131
7132fi
7133if test -z "$ac_cv_prog_OTOOL64"; then
7134 ac_ct_OTOOL64=$OTOOL64
7135 # Extract the first word of "otool64", so it can be a program name with args.
7136set dummy otool64; ac_word=$2
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138$as_echo_n "checking for $ac_word... " >&6; }
23d56208 7139if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
0e3762ca
CALP
7140 $as_echo_n "(cached) " >&6
7141else
7142 if test -n "$ac_ct_OTOOL64"; then
7143 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7144else
7145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148 IFS=$as_save_IFS
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_prog_ac_ct_OTOOL64="otool64"
7153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 break 2
7155 fi
7156done
7157 done
7158IFS=$as_save_IFS
7159
7160fi
7161fi
7162ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7163if test -n "$ac_ct_OTOOL64"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7165$as_echo "$ac_ct_OTOOL64" >&6; }
7166else
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168$as_echo "no" >&6; }
7169fi
7170
7171 if test "x$ac_ct_OTOOL64" = x; then
7172 OTOOL64=":"
7173 else
7174 case $cross_compiling:$ac_tool_warned in
7175yes:)
7176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178ac_tool_warned=yes ;;
7179esac
7180 OTOOL64=$ac_ct_OTOOL64
7181 fi
7182else
7183 OTOOL64="$ac_cv_prog_OTOOL64"
7184fi
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7213$as_echo_n "checking for -single_module linker flag... " >&6; }
23d56208 7214if ${lt_cv_apple_cc_single_mod+:} false; then :
0e3762ca
CALP
7215 $as_echo_n "(cached) " >&6
7216else
7217 lt_cv_apple_cc_single_mod=no
7218 if test -z "${LT_MULTI_MODULE}"; then
7219 # By default we will add the -single_module flag. You can override
7220 # by either setting the environment variable LT_MULTI_MODULE
7221 # non-empty at configure time, or by adding -multi_module to the
7222 # link flags.
7223 rm -rf libconftest.dylib*
7224 echo "int foo(void){return 1;}" > conftest.c
7225 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7226-dynamiclib -Wl,-single_module conftest.c" >&5
7227 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7228 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7229 _lt_result=$?
23d56208
AX
7230 # If there is a non-empty error log, and "single_module"
7231 # appears in it, assume the flag caused a linker warning
7232 if test -s conftest.err && $GREP single_module conftest.err; then
7233 cat conftest.err >&5
7234 # Otherwise, if the output was created with a 0 exit code from
7235 # the compiler, it worked.
7236 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
0e3762ca
CALP
7237 lt_cv_apple_cc_single_mod=yes
7238 else
7239 cat conftest.err >&5
7240 fi
7241 rm -rf libconftest.dylib*
7242 rm -f conftest.*
7243 fi
7244fi
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7246$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
23d56208 7247
0e3762ca
CALP
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7249$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
23d56208 7250if ${lt_cv_ld_exported_symbols_list+:} false; then :
0e3762ca
CALP
7251 $as_echo_n "(cached) " >&6
7252else
7253 lt_cv_ld_exported_symbols_list=no
7254 save_LDFLAGS=$LDFLAGS
7255 echo "_main" > conftest.sym
7256 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258/* end confdefs.h. */
7259
7260int
7261main ()
7262{
7263
7264 ;
7265 return 0;
7266}
7267_ACEOF
7268if ac_fn_c_try_link "$LINENO"; then :
7269 lt_cv_ld_exported_symbols_list=yes
7270else
7271 lt_cv_ld_exported_symbols_list=no
7272fi
7273rm -f core conftest.err conftest.$ac_objext \
7274 conftest$ac_exeext conftest.$ac_ext
7275 LDFLAGS="$save_LDFLAGS"
7276
7277fi
7278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7279$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
23d56208
AX
7280
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7282$as_echo_n "checking for -force_load linker flag... " >&6; }
7283if ${lt_cv_ld_force_load+:} false; then :
7284 $as_echo_n "(cached) " >&6
7285else
7286 lt_cv_ld_force_load=no
7287 cat > conftest.c << _LT_EOF
7288int forced_loaded() { return 2;}
7289_LT_EOF
7290 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7291 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7292 echo "$AR cru libconftest.a conftest.o" >&5
7293 $AR cru libconftest.a conftest.o 2>&5
7294 echo "$RANLIB libconftest.a" >&5
7295 $RANLIB libconftest.a 2>&5
7296 cat > conftest.c << _LT_EOF
7297int main() { return 0;}
7298_LT_EOF
7299 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7300 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7301 _lt_result=$?
7302 if test -s conftest.err && $GREP force_load conftest.err; then
7303 cat conftest.err >&5
7304 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7305 lt_cv_ld_force_load=yes
7306 else
7307 cat conftest.err >&5
7308 fi
7309 rm -f conftest.err libconftest.a conftest conftest.c
7310 rm -rf conftest.dSYM
7311
7312fi
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7314$as_echo "$lt_cv_ld_force_load" >&6; }
0e3762ca
CALP
7315 case $host_os in
7316 rhapsody* | darwin1.[012])
7317 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7318 darwin1.*)
7319 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7320 darwin*) # darwin 5.x on
7321 # if running on 10.5 or later, the deployment target defaults
7322 # to the OS version, if on x86, and 10.4, the deployment
7323 # target defaults to 10.4. Don't you love it?
7324 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7325 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7326 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7327 10.[012]*)
7328 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7329 10.*)
7330 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7331 esac
7332 ;;
7333 esac
7334 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7335 _lt_dar_single_mod='$single_module'
7336 fi
7337 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7338 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7339 else
7340 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7341 fi
23d56208 7342 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
0e3762ca
CALP
7343 _lt_dsymutil='~$DSYMUTIL $lib || :'
7344 else
7345 _lt_dsymutil=
7346 fi
7347 ;;
7348 esac
7349
7350ac_ext=c
7351ac_cpp='$CPP $CPPFLAGS'
7352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7354ac_compiler_gnu=$ac_cv_c_compiler_gnu
7355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7356$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357# On Suns, sometimes $CPP names a directory.
7358if test -n "$CPP" && test -d "$CPP"; then
7359 CPP=
7360fi
7361if test -z "$CPP"; then
23d56208 7362 if ${ac_cv_prog_CPP+:} false; then :
0e3762ca
CALP
7363 $as_echo_n "(cached) " >&6
7364else
7365 # Double quotes because CPP needs to be expanded
7366 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7367 do
7368 ac_preproc_ok=false
7369for ac_c_preproc_warn_flag in '' yes
7370do
7371 # Use a header file that comes with gcc, so configuring glibc
7372 # with a fresh cross-compiler works.
7373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7374 # <limits.h> exists even on freestanding compilers.
7375 # On the NeXT, cc -E runs the code through the compiler's parser,
7376 # not just through cpp. "Syntax error" is here to catch this case.
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378/* end confdefs.h. */
7379#ifdef __STDC__
7380# include <limits.h>
7381#else
7382# include <assert.h>
7383#endif
7384 Syntax error
7385_ACEOF
7386if ac_fn_c_try_cpp "$LINENO"; then :
7387
7388else
7389 # Broken: fails on valid input.
7390continue
7391fi
7392rm -f conftest.err conftest.i conftest.$ac_ext
7393
7394 # OK, works on sane cases. Now check whether nonexistent headers
7395 # can be detected and how.
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397/* end confdefs.h. */
7398#include <ac_nonexistent.h>
7399_ACEOF
7400if ac_fn_c_try_cpp "$LINENO"; then :
7401 # Broken: success on invalid input.
7402continue
7403else
7404 # Passes both tests.
7405ac_preproc_ok=:
7406break
7407fi
7408rm -f conftest.err conftest.i conftest.$ac_ext
7409
7410done
7411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7412rm -f conftest.i conftest.err conftest.$ac_ext
7413if $ac_preproc_ok; then :
7414 break
7415fi
7416
7417 done
7418 ac_cv_prog_CPP=$CPP
7419
7420fi
7421 CPP=$ac_cv_prog_CPP
7422else
7423 ac_cv_prog_CPP=$CPP
7424fi
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7426$as_echo "$CPP" >&6; }
7427ac_preproc_ok=false
7428for ac_c_preproc_warn_flag in '' yes
7429do
7430 # Use a header file that comes with gcc, so configuring glibc
7431 # with a fresh cross-compiler works.
7432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7433 # <limits.h> exists even on freestanding compilers.
7434 # On the NeXT, cc -E runs the code through the compiler's parser,
7435 # not just through cpp. "Syntax error" is here to catch this case.
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437/* end confdefs.h. */
7438#ifdef __STDC__
7439# include <limits.h>
7440#else
7441# include <assert.h>
7442#endif
7443 Syntax error
7444_ACEOF
7445if ac_fn_c_try_cpp "$LINENO"; then :
7446
7447else
7448 # Broken: fails on valid input.
7449continue
7450fi
7451rm -f conftest.err conftest.i conftest.$ac_ext
7452
7453 # OK, works on sane cases. Now check whether nonexistent headers
7454 # can be detected and how.
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456/* end confdefs.h. */
7457#include <ac_nonexistent.h>
7458_ACEOF
7459if ac_fn_c_try_cpp "$LINENO"; then :
7460 # Broken: success on invalid input.
7461continue
7462else
7463 # Passes both tests.
7464ac_preproc_ok=:
7465break
7466fi
7467rm -f conftest.err conftest.i conftest.$ac_ext
7468
7469done
7470# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7471rm -f conftest.i conftest.err conftest.$ac_ext
7472if $ac_preproc_ok; then :
7473
7474else
7475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7477as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
23d56208 7478See \`config.log' for more details" "$LINENO" 5; }
0e3762ca
CALP
7479fi
7480
7481ac_ext=c
7482ac_cpp='$CPP $CPPFLAGS'
7483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7485ac_compiler_gnu=$ac_cv_c_compiler_gnu
7486
7487
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7489$as_echo_n "checking for ANSI C header files... " >&6; }
23d56208 7490if ${ac_cv_header_stdc+:} false; then :
0e3762ca
CALP
7491 $as_echo_n "(cached) " >&6
7492else
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494/* end confdefs.h. */
7495#include <stdlib.h>
7496#include <stdarg.h>
7497#include <string.h>
7498#include <float.h>
7499
7500int
7501main ()
7502{
7503
7504 ;
7505 return 0;
7506}
7507_ACEOF
7508if ac_fn_c_try_compile "$LINENO"; then :
7509 ac_cv_header_stdc=yes
7510else
7511 ac_cv_header_stdc=no
7512fi
7513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514
7515if test $ac_cv_header_stdc = yes; then
7516 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518/* end confdefs.h. */
7519#include <string.h>
7520
7521_ACEOF
7522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7523 $EGREP "memchr" >/dev/null 2>&1; then :
7524
7525else
7526 ac_cv_header_stdc=no
7527fi
7528rm -f conftest*
7529
7530fi
7531
7532if test $ac_cv_header_stdc = yes; then
7533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535/* end confdefs.h. */
7536#include <stdlib.h>
7537
7538_ACEOF
7539if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7540 $EGREP "free" >/dev/null 2>&1; then :
7541
7542else
7543 ac_cv_header_stdc=no
7544fi
7545rm -f conftest*
7546
7547fi
7548
7549if test $ac_cv_header_stdc = yes; then
7550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7551 if test "$cross_compiling" = yes; then :
7552 :
7553else
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555/* end confdefs.h. */
7556#include <ctype.h>
7557#include <stdlib.h>
7558#if ((' ' & 0x0FF) == 0x020)
7559# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7560# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7561#else
7562# define ISLOWER(c) \
7563 (('a' <= (c) && (c) <= 'i') \
7564 || ('j' <= (c) && (c) <= 'r') \
7565 || ('s' <= (c) && (c) <= 'z'))
7566# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7567#endif
7568
7569#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7570int
7571main ()
7572{
7573 int i;
7574 for (i = 0; i < 256; i++)
7575 if (XOR (islower (i), ISLOWER (i))
7576 || toupper (i) != TOUPPER (i))
7577 return 2;
7578 return 0;
7579}
7580_ACEOF
7581if ac_fn_c_try_run "$LINENO"; then :
7582
7583else
7584 ac_cv_header_stdc=no
7585fi
7586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7587 conftest.$ac_objext conftest.beam conftest.$ac_ext
7588fi
7589
7590fi
7591fi
7592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7593$as_echo "$ac_cv_header_stdc" >&6; }
7594if test $ac_cv_header_stdc = yes; then
7595
7596$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7597
7598fi
7599
7600# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7601for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7602 inttypes.h stdint.h unistd.h
7603do :
7604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7605ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7606"
7607if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7608 cat >>confdefs.h <<_ACEOF
7609#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7610_ACEOF
7611
7612fi
7613
7614done
7615
7616
7617for ac_header in dlfcn.h
7618do :
7619 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7620"
23d56208 7621if test "x$ac_cv_header_dlfcn_h" = xyes; then :
0e3762ca
CALP
7622 cat >>confdefs.h <<_ACEOF
7623#define HAVE_DLFCN_H 1
7624_ACEOF
7625
7626fi
7627
7628done
7629
7630
7631
23d56208
AX
7632
7633
0e3762ca
CALP
7634# Set options
7635
7636
7637
7638 enable_dlopen=no
7639
7640
7641 enable_win32_dll=no
7642
7643
7644 # Check whether --enable-shared was given.
7645if test "${enable_shared+set}" = set; then :
7646 enableval=$enable_shared; p=${PACKAGE-default}
7647 case $enableval in
7648 yes) enable_shared=yes ;;
7649 no) enable_shared=no ;;
7650 *)
7651 enable_shared=no
7652 # Look at the argument we got. We use all the common list separators.
7653 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7654 for pkg in $enableval; do
7655 IFS="$lt_save_ifs"
7656 if test "X$pkg" = "X$p"; then
7657 enable_shared=yes
7658 fi
7659 done
7660 IFS="$lt_save_ifs"
7661 ;;
7662 esac
7663else
7664 enable_shared=yes
7665fi
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675 # Check whether --enable-static was given.
7676if test "${enable_static+set}" = set; then :
7677 enableval=$enable_static; p=${PACKAGE-default}
7678 case $enableval in
7679 yes) enable_static=yes ;;
7680 no) enable_static=no ;;
7681 *)
7682 enable_static=no
7683 # Look at the argument we got. We use all the common list separators.
7684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7685 for pkg in $enableval; do
7686 IFS="$lt_save_ifs"
7687 if test "X$pkg" = "X$p"; then
7688 enable_static=yes
7689 fi
7690 done
7691 IFS="$lt_save_ifs"
7692 ;;
7693 esac
7694else
7695 enable_static=yes
7696fi
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707# Check whether --with-pic was given.
7708if test "${with_pic+set}" = set; then :
23d56208
AX
7709 withval=$with_pic; lt_p=${PACKAGE-default}
7710 case $withval in
7711 yes|no) pic_mode=$withval ;;
7712 *)
7713 pic_mode=default
7714 # Look at the argument we got. We use all the common list separators.
7715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7716 for lt_pkg in $withval; do
7717 IFS="$lt_save_ifs"
7718 if test "X$lt_pkg" = "X$lt_p"; then
7719 pic_mode=yes
7720 fi
7721 done
7722 IFS="$lt_save_ifs"
7723 ;;
7724 esac
0e3762ca
CALP
7725else
7726 pic_mode=default
7727fi
7728
7729
7730test -z "$pic_mode" && pic_mode=default
7731
7732
7733
7734
7735
7736
7737
7738 # Check whether --enable-fast-install was given.
7739if test "${enable_fast_install+set}" = set; then :
7740 enableval=$enable_fast_install; p=${PACKAGE-default}
7741 case $enableval in
7742 yes) enable_fast_install=yes ;;
7743 no) enable_fast_install=no ;;
7744 *)
7745 enable_fast_install=no
7746 # Look at the argument we got. We use all the common list separators.
7747 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7748 for pkg in $enableval; do
7749 IFS="$lt_save_ifs"
7750 if test "X$pkg" = "X$p"; then
7751 enable_fast_install=yes
7752 fi
7753 done
7754 IFS="$lt_save_ifs"
7755 ;;
7756 esac
7757else
7758 enable_fast_install=yes
7759fi
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771# This can be used to rebuild libtool when needed
7772LIBTOOL_DEPS="$ltmain"
7773
7774# Always use our own libtool.
7775LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
23d56208
AX
7795
7796
7797
7798
7799
0e3762ca
CALP
7800
7801
7802
7803
7804
7805
7806test -z "$LN_S" && LN_S="ln -s"
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821if test -n "${ZSH_VERSION+set}" ; then
7822 setopt NO_GLOB_SUBST
7823fi
7824
7825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7826$as_echo_n "checking for objdir... " >&6; }
23d56208 7827if ${lt_cv_objdir+:} false; then :
0e3762ca
CALP
7828 $as_echo_n "(cached) " >&6
7829else
7830 rm -f .libs 2>/dev/null
7831mkdir .libs 2>/dev/null
7832if test -d .libs; then
7833 lt_cv_objdir=.libs
7834else
7835 # MS-DOS does not allow filenames that begin with a dot.
7836 lt_cv_objdir=_libs
7837fi
7838rmdir .libs 2>/dev/null
7839fi
7840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7841$as_echo "$lt_cv_objdir" >&6; }
7842objdir=$lt_cv_objdir
7843
7844
7845
7846
7847
7848cat >>confdefs.h <<_ACEOF
7849#define LT_OBJDIR "$lt_cv_objdir/"
7850_ACEOF
7851
7852
7853
7854
0e3762ca
CALP
7855case $host_os in
7856aix3*)
7857 # AIX sometimes has problems with the GCC collect2 program. For some
7858 # reason, if we set the COLLECT_NAMES environment variable, the problems
7859 # vanish in a puff of smoke.
7860 if test "X${COLLECT_NAMES+set}" != Xset; then
7861 COLLECT_NAMES=
7862 export COLLECT_NAMES
7863 fi
7864 ;;
7865esac
7866
0e3762ca
CALP
7867# Global variables:
7868ofile=libtool
7869can_build_shared=yes
7870
7871# All known linkers require a `.a' archive for static linking (except MSVC,
7872# which needs '.lib').
7873libext=a
7874
7875with_gnu_ld="$lt_cv_prog_gnu_ld"
7876
7877old_CC="$CC"
7878old_CFLAGS="$CFLAGS"
7879
7880# Set sane defaults for various variables
7881test -z "$CC" && CC=cc
7882test -z "$LTCC" && LTCC=$CC
7883test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7884test -z "$LD" && LD=ld
7885test -z "$ac_objext" && ac_objext=o
7886
7887for cc_temp in $compiler""; do
7888 case $cc_temp in
7889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7891 \-*) ;;
7892 *) break;;
7893 esac
7894done
23d56208 7895cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
0e3762ca
CALP
7896
7897
7898# Only perform the check for file, if the check method requires it
7899test -z "$MAGIC_CMD" && MAGIC_CMD=file
7900case $deplibs_check_method in
7901file_magic*)
7902 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7904$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
23d56208 7905if ${lt_cv_path_MAGIC_CMD+:} false; then :
0e3762ca
CALP
7906 $as_echo_n "(cached) " >&6
7907else
7908 case $MAGIC_CMD in
7909[\\/*] | ?:[\\/]*)
7910 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7911 ;;
7912*)
7913 lt_save_MAGIC_CMD="$MAGIC_CMD"
7914 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7915 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7916 for ac_dir in $ac_dummy; do
7917 IFS="$lt_save_ifs"
7918 test -z "$ac_dir" && ac_dir=.
7919 if test -f $ac_dir/${ac_tool_prefix}file; then
7920 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7921 if test -n "$file_magic_test_file"; then
7922 case $deplibs_check_method in
7923 "file_magic "*)
7924 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7926 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7927 $EGREP "$file_magic_regex" > /dev/null; then
7928 :
7929 else
7930 cat <<_LT_EOF 1>&2
7931
7932*** Warning: the command libtool uses to detect shared libraries,
7933*** $file_magic_cmd, produces output that libtool cannot recognize.
7934*** The result is that libtool may fail to recognize shared libraries
7935*** as such. This will affect the creation of libtool libraries that
7936*** depend on shared libraries, but programs linked with such libtool
7937*** libraries will work regardless of this problem. Nevertheless, you
7938*** may want to report the problem to your system manager and/or to
7939*** bug-libtool@gnu.org
7940
7941_LT_EOF
7942 fi ;;
7943 esac
7944 fi
7945 break
7946 fi
7947 done
7948 IFS="$lt_save_ifs"
7949 MAGIC_CMD="$lt_save_MAGIC_CMD"
7950 ;;
7951esac
7952fi
7953
7954MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7955if test -n "$MAGIC_CMD"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7957$as_echo "$MAGIC_CMD" >&6; }
7958else
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960$as_echo "no" >&6; }
7961fi
7962
7963
7964
7965
7966
7967if test -z "$lt_cv_path_MAGIC_CMD"; then
7968 if test -n "$ac_tool_prefix"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7970$as_echo_n "checking for file... " >&6; }
23d56208 7971if ${lt_cv_path_MAGIC_CMD+:} false; then :
0e3762ca
CALP
7972 $as_echo_n "(cached) " >&6
7973else
7974 case $MAGIC_CMD in
7975[\\/*] | ?:[\\/]*)
7976 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7977 ;;
7978*)
7979 lt_save_MAGIC_CMD="$MAGIC_CMD"
7980 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7981 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7982 for ac_dir in $ac_dummy; do
7983 IFS="$lt_save_ifs"
7984 test -z "$ac_dir" && ac_dir=.
7985 if test -f $ac_dir/file; then
7986 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7987 if test -n "$file_magic_test_file"; then
7988 case $deplibs_check_method in
7989 "file_magic "*)
7990 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7991 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7992 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7993 $EGREP "$file_magic_regex" > /dev/null; then
7994 :
7995 else
7996 cat <<_LT_EOF 1>&2
7997
7998*** Warning: the command libtool uses to detect shared libraries,
7999*** $file_magic_cmd, produces output that libtool cannot recognize.
8000*** The result is that libtool may fail to recognize shared libraries
8001*** as such. This will affect the creation of libtool libraries that
8002*** depend on shared libraries, but programs linked with such libtool
8003*** libraries will work regardless of this problem. Nevertheless, you
8004*** may want to report the problem to your system manager and/or to
8005*** bug-libtool@gnu.org
8006
8007_LT_EOF
8008 fi ;;
8009 esac
8010 fi
8011 break
8012 fi
8013 done
8014 IFS="$lt_save_ifs"
8015 MAGIC_CMD="$lt_save_MAGIC_CMD"
8016 ;;
8017esac
8018fi
8019
8020MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8021if test -n "$MAGIC_CMD"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8023$as_echo "$MAGIC_CMD" >&6; }
8024else
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026$as_echo "no" >&6; }
8027fi
8028
8029
8030 else
8031 MAGIC_CMD=:
8032 fi
8033fi
8034
8035 fi
8036 ;;
8037esac
8038
8039# Use C for the default configuration in the libtool script
8040
8041lt_save_CC="$CC"
8042ac_ext=c
8043ac_cpp='$CPP $CPPFLAGS'
8044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8046ac_compiler_gnu=$ac_cv_c_compiler_gnu
8047
8048
8049# Source file extension for C test sources.
8050ac_ext=c
8051
8052# Object file extension for compiled C test sources.
8053objext=o
8054objext=$objext
8055
8056# Code to be used in simple compile tests
8057lt_simple_compile_test_code="int some_variable = 0;"
8058
8059# Code to be used in simple link tests
8060lt_simple_link_test_code='int main(){return(0);}'
8061
8062
8063
8064
8065
8066
8067
8068# If no C compiler was specified, use CC.
8069LTCC=${LTCC-"$CC"}
8070
8071# If no C compiler flags were specified, use CFLAGS.
8072LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8073
8074# Allow CC to be a program name with arguments.
8075compiler=$CC
8076
8077# Save the default compiler, since it gets overwritten when the other
8078# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8079compiler_DEFAULT=$CC
8080
8081# save warnings/boilerplate of simple test code
8082ac_outfile=conftest.$ac_objext
8083echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8084eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8085_lt_compiler_boilerplate=`cat conftest.err`
8086$RM conftest*
8087
8088ac_outfile=conftest.$ac_objext
8089echo "$lt_simple_link_test_code" >conftest.$ac_ext
8090eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8091_lt_linker_boilerplate=`cat conftest.err`
8092$RM -r conftest*
8093
8094
c06d4368
AX
8095## CAVEAT EMPTOR:
8096## There is no encapsulation within the following macros, do not change
8097## the running order or otherwise move them around unless you know exactly
8098## what you are doing...
0e3762ca
CALP
8099if test -n "$compiler"; then
8100
8101lt_prog_compiler_no_builtin_flag=
8102
8103if test "$GCC" = yes; then
23d56208
AX
8104 case $cc_basename in
8105 nvcc*)
8106 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8107 *)
8108 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8109 esac
0e3762ca
CALP
8110
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8112$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
23d56208 8113if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
0e3762ca
CALP
8114 $as_echo_n "(cached) " >&6
8115else
8116 lt_cv_prog_compiler_rtti_exceptions=no
8117 ac_outfile=conftest.$ac_objext
8118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8119 lt_compiler_flag="-fno-rtti -fno-exceptions"
8120 # Insert the option either (1) after the last *FLAGS variable, or
8121 # (2) before a word containing "conftest.", or (3) at the end.
8122 # Note that $ac_compile itself does not contain backslashes and begins
8123 # with a dollar sign (not a hyphen), so the echo should work correctly.
8124 # The option is referenced via a variable to avoid confusing sed.
8125 lt_compile=`echo "$ac_compile" | $SED \
8126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8128 -e 's:$: $lt_compiler_flag:'`
23d56208 8129 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
0e3762ca
CALP
8130 (eval "$lt_compile" 2>conftest.err)
8131 ac_status=$?
8132 cat conftest.err >&5
23d56208 8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0e3762ca
CALP
8134 if (exit $ac_status) && test -s "$ac_outfile"; then
8135 # The compiler can only warn and ignore the option if not recognized
8136 # So say no if there are warnings other than the usual output.
23d56208 8137 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
0e3762ca
CALP
8138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8140 lt_cv_prog_compiler_rtti_exceptions=yes
8141 fi
8142 fi
8143 $RM conftest*
8144
8145fi
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8147$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8148
8149if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8150 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8151else
8152 :
8153fi
8154
8155fi
8156
8157
8158
8159
8160
8161
8162 lt_prog_compiler_wl=
8163lt_prog_compiler_pic=
8164lt_prog_compiler_static=
8165
0e3762ca
CALP
8166
8167 if test "$GCC" = yes; then
8168 lt_prog_compiler_wl='-Wl,'
8169 lt_prog_compiler_static='-static'
8170
8171 case $host_os in
8172 aix*)
8173 # All AIX code is PIC.
8174 if test "$host_cpu" = ia64; then
8175 # AIX 5 now supports IA64 processor
8176 lt_prog_compiler_static='-Bstatic'
8177 fi
8178 ;;
8179
8180 amigaos*)
8181 case $host_cpu in
8182 powerpc)
8183 # see comment about AmigaOS4 .so support
8184 lt_prog_compiler_pic='-fPIC'
8185 ;;
8186 m68k)
8187 # FIXME: we need at least 68020 code to build shared libraries, but
8188 # adding the `-m68020' flag to GCC prevents building anything better,
8189 # like `-m68040'.
8190 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8191 ;;
8192 esac
8193 ;;
8194
8195 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8196 # PIC is the default for these OSes.
8197 ;;
8198
8199 mingw* | cygwin* | pw32* | os2* | cegcc*)
8200 # This hack is so that the source file can tell whether it is being
8201 # built for inclusion in a dll (and should export symbols for example).
8202 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8203 # (--disable-auto-import) libraries
8204 lt_prog_compiler_pic='-DDLL_EXPORT'
8205 ;;
8206
8207 darwin* | rhapsody*)
8208 # PIC is the default on this platform
8209 # Common symbols not allowed in MH_DYLIB files
8210 lt_prog_compiler_pic='-fno-common'
8211 ;;
8212
23d56208
AX
8213 haiku*)
8214 # PIC is the default for Haiku.
8215 # The "-static" flag exists, but is broken.
8216 lt_prog_compiler_static=
8217 ;;
8218
0e3762ca
CALP
8219 hpux*)
8220 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8221 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8222 # sets the default TLS model and affects inlining.
8223 case $host_cpu in
8224 hppa*64*)
8225 # +Z the default
8226 ;;
8227 *)
8228 lt_prog_compiler_pic='-fPIC'
8229 ;;
8230 esac
8231 ;;
8232
8233 interix[3-9]*)
8234 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8235 # Instead, we relocate shared libraries at runtime.
8236 ;;
8237
8238 msdosdjgpp*)
8239 # Just because we use GCC doesn't mean we suddenly get shared libraries
8240 # on systems that don't support them.
8241 lt_prog_compiler_can_build_shared=no
8242 enable_shared=no
8243 ;;
8244
8245 *nto* | *qnx*)
8246 # QNX uses GNU C++, but need to define -shared option too, otherwise
8247 # it will coredump.
8248 lt_prog_compiler_pic='-fPIC -shared'
8249 ;;
8250
8251 sysv4*MP*)
8252 if test -d /usr/nec; then
8253 lt_prog_compiler_pic=-Kconform_pic
8254 fi
8255 ;;
8256
8257 *)
8258 lt_prog_compiler_pic='-fPIC'
8259 ;;
8260 esac
23d56208
AX
8261
8262 case $cc_basename in
8263 nvcc*) # Cuda Compiler Driver 2.2
8264 lt_prog_compiler_wl='-Xlinker '
8265 if test -n "$lt_prog_compiler_pic"; then
8266 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8267 fi
8268 ;;
8269 esac
0e3762ca
CALP
8270 else
8271 # PORTME Check for flag to pass linker flags through the system compiler.
8272 case $host_os in
8273 aix*)
8274 lt_prog_compiler_wl='-Wl,'
8275 if test "$host_cpu" = ia64; then
8276 # AIX 5 now supports IA64 processor
8277 lt_prog_compiler_static='-Bstatic'
8278 else
8279 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8280 fi
8281 ;;
8282
8283 mingw* | cygwin* | pw32* | os2* | cegcc*)
8284 # This hack is so that the source file can tell whether it is being
8285 # built for inclusion in a dll (and should export symbols for example).
8286 lt_prog_compiler_pic='-DDLL_EXPORT'
8287 ;;
8288
8289 hpux9* | hpux10* | hpux11*)
8290 lt_prog_compiler_wl='-Wl,'
8291 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8292 # not for PA HP-UX.
8293 case $host_cpu in
8294 hppa*64*|ia64*)
8295 # +Z the default
8296 ;;
8297 *)
8298 lt_prog_compiler_pic='+Z'
8299 ;;
8300 esac
8301 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8302 lt_prog_compiler_static='${wl}-a ${wl}archive'
8303 ;;
8304
8305 irix5* | irix6* | nonstopux*)
8306 lt_prog_compiler_wl='-Wl,'
8307 # PIC (with -KPIC) is the default.
8308 lt_prog_compiler_static='-non_shared'
8309 ;;
8310
8311 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8312 case $cc_basename in
8313 # old Intel for x86_64 which still supported -KPIC.
8314 ecc*)
8315 lt_prog_compiler_wl='-Wl,'
8316 lt_prog_compiler_pic='-KPIC'
8317 lt_prog_compiler_static='-static'
8318 ;;
8319 # icc used to be incompatible with GCC.
8320 # ICC 10 doesn't accept -KPIC any more.
8321 icc* | ifort*)
8322 lt_prog_compiler_wl='-Wl,'
8323 lt_prog_compiler_pic='-fPIC'
8324 lt_prog_compiler_static='-static'
8325 ;;
8326 # Lahey Fortran 8.1.
8327 lf95*)
8328 lt_prog_compiler_wl='-Wl,'
8329 lt_prog_compiler_pic='--shared'
8330 lt_prog_compiler_static='--static'
8331 ;;
23d56208
AX
8332 nagfor*)
8333 # NAG Fortran compiler
8334 lt_prog_compiler_wl='-Wl,-Wl,,'
8335 lt_prog_compiler_pic='-PIC'
8336 lt_prog_compiler_static='-Bstatic'
8337 ;;
8338 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
0e3762ca
CALP
8339 # Portland Group compilers (*not* the Pentium gcc compiler,
8340 # which looks to be a dead project)
8341 lt_prog_compiler_wl='-Wl,'
8342 lt_prog_compiler_pic='-fpic'
8343 lt_prog_compiler_static='-Bstatic'
8344 ;;
8345 ccc*)
8346 lt_prog_compiler_wl='-Wl,'
8347 # All Alpha code is PIC.
8348 lt_prog_compiler_static='-non_shared'
8349 ;;
23d56208
AX
8350 xl* | bgxl* | bgf* | mpixl*)
8351 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
0e3762ca
CALP
8352 lt_prog_compiler_wl='-Wl,'
8353 lt_prog_compiler_pic='-qpic'
8354 lt_prog_compiler_static='-qstaticlink'
8355 ;;
8356 *)
8357 case `$CC -V 2>&1 | sed 5q` in
23d56208
AX
8358 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8359 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8360 lt_prog_compiler_pic='-KPIC'
8361 lt_prog_compiler_static='-Bstatic'
8362 lt_prog_compiler_wl=''
8363 ;;
8364 *Sun\ F* | *Sun*Fortran*)
8365 lt_prog_compiler_pic='-KPIC'
8366 lt_prog_compiler_static='-Bstatic'
8367 lt_prog_compiler_wl='-Qoption ld '
8368 ;;
0e3762ca
CALP
8369 *Sun\ C*)
8370 # Sun C 5.9
8371 lt_prog_compiler_pic='-KPIC'
8372 lt_prog_compiler_static='-Bstatic'
8373 lt_prog_compiler_wl='-Wl,'
8374 ;;
23d56208
AX
8375 *Intel*\ [CF]*Compiler*)
8376 lt_prog_compiler_wl='-Wl,'
8377 lt_prog_compiler_pic='-fPIC'
8378 lt_prog_compiler_static='-static'
8379 ;;
8380 *Portland\ Group*)
8381 lt_prog_compiler_wl='-Wl,'
8382 lt_prog_compiler_pic='-fpic'
0e3762ca 8383 lt_prog_compiler_static='-Bstatic'
0e3762ca
CALP
8384 ;;
8385 esac
8386 ;;
8387 esac
8388 ;;
8389
8390 newsos6)
8391 lt_prog_compiler_pic='-KPIC'
8392 lt_prog_compiler_static='-Bstatic'
8393 ;;
8394
8395 *nto* | *qnx*)
8396 # QNX uses GNU C++, but need to define -shared option too, otherwise
8397 # it will coredump.
8398 lt_prog_compiler_pic='-fPIC -shared'
8399 ;;
8400
8401 osf3* | osf4* | osf5*)
8402 lt_prog_compiler_wl='-Wl,'
8403 # All OSF/1 code is PIC.
8404 lt_prog_compiler_static='-non_shared'
8405 ;;
8406
8407 rdos*)
8408 lt_prog_compiler_static='-non_shared'
8409 ;;
8410
8411 solaris*)
8412 lt_prog_compiler_pic='-KPIC'
8413 lt_prog_compiler_static='-Bstatic'
8414 case $cc_basename in
23d56208 8415 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
0e3762ca
CALP
8416 lt_prog_compiler_wl='-Qoption ld ';;
8417 *)
8418 lt_prog_compiler_wl='-Wl,';;
8419 esac
8420 ;;
8421
8422 sunos4*)
8423 lt_prog_compiler_wl='-Qoption ld '
8424 lt_prog_compiler_pic='-PIC'
8425 lt_prog_compiler_static='-Bstatic'
8426 ;;
8427
8428 sysv4 | sysv4.2uw2* | sysv4.3*)
8429 lt_prog_compiler_wl='-Wl,'
8430 lt_prog_compiler_pic='-KPIC'
8431 lt_prog_compiler_static='-Bstatic'
8432 ;;
8433
8434 sysv4*MP*)
8435 if test -d /usr/nec ;then
8436 lt_prog_compiler_pic='-Kconform_pic'
8437 lt_prog_compiler_static='-Bstatic'
8438 fi
8439 ;;
8440
8441 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8442 lt_prog_compiler_wl='-Wl,'
8443 lt_prog_compiler_pic='-KPIC'
8444 lt_prog_compiler_static='-Bstatic'
8445 ;;
8446
8447 unicos*)
8448 lt_prog_compiler_wl='-Wl,'
8449 lt_prog_compiler_can_build_shared=no
8450 ;;
8451
8452 uts4*)
8453 lt_prog_compiler_pic='-pic'
8454 lt_prog_compiler_static='-Bstatic'
8455 ;;
8456
8457 *)
8458 lt_prog_compiler_can_build_shared=no
8459 ;;
8460 esac
8461 fi
8462
8463case $host_os in
8464 # For platforms which do not support PIC, -DPIC is meaningless:
8465 *djgpp*)
8466 lt_prog_compiler_pic=
8467 ;;
8468 *)
8469 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8470 ;;
8471esac
0e3762ca 8472
23d56208
AX
8473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8474$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8475if ${lt_cv_prog_compiler_pic+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477else
8478 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8479fi
8480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8481$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8482lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
0e3762ca
CALP
8483
8484#
8485# Check to make sure the PIC flag actually works.
8486#
8487if test -n "$lt_prog_compiler_pic"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8489$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
23d56208 8490if ${lt_cv_prog_compiler_pic_works+:} false; then :
0e3762ca
CALP
8491 $as_echo_n "(cached) " >&6
8492else
8493 lt_cv_prog_compiler_pic_works=no
8494 ac_outfile=conftest.$ac_objext
8495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8496 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8497 # Insert the option either (1) after the last *FLAGS variable, or
8498 # (2) before a word containing "conftest.", or (3) at the end.
8499 # Note that $ac_compile itself does not contain backslashes and begins
8500 # with a dollar sign (not a hyphen), so the echo should work correctly.
8501 # The option is referenced via a variable to avoid confusing sed.
8502 lt_compile=`echo "$ac_compile" | $SED \
8503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8505 -e 's:$: $lt_compiler_flag:'`
23d56208 8506 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
0e3762ca
CALP
8507 (eval "$lt_compile" 2>conftest.err)
8508 ac_status=$?
8509 cat conftest.err >&5
23d56208 8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0e3762ca
CALP
8511 if (exit $ac_status) && test -s "$ac_outfile"; then
8512 # The compiler can only warn and ignore the option if not recognized
8513 # So say no if there are warnings other than the usual output.
23d56208 8514 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
0e3762ca
CALP
8515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8516 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8517 lt_cv_prog_compiler_pic_works=yes
8518 fi
8519 fi
8520 $RM conftest*
8521
8522fi
8523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8524$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8525
8526if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8527 case $lt_prog_compiler_pic in
8528 "" | " "*) ;;
8529 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8530 esac
8531else
8532 lt_prog_compiler_pic=
8533 lt_prog_compiler_can_build_shared=no
8534fi
8535
8536fi
8537
8538
8539
8540
8541
8542
23d56208
AX
8543
8544
8545
8546
8547
0e3762ca
CALP
8548#
8549# Check to make sure the static flag actually works.
8550#
8551wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8553$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23d56208 8554if ${lt_cv_prog_compiler_static_works+:} false; then :
0e3762ca
CALP
8555 $as_echo_n "(cached) " >&6
8556else
8557 lt_cv_prog_compiler_static_works=no
8558 save_LDFLAGS="$LDFLAGS"
8559 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8560 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8561 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8562 # The linker can only warn and ignore the option if not recognized
8563 # So say no if there are warnings
8564 if test -s conftest.err; then
8565 # Append any errors to the config.log.
8566 cat conftest.err 1>&5
23d56208 8567 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
0e3762ca
CALP
8568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8569 if diff conftest.exp conftest.er2 >/dev/null; then
8570 lt_cv_prog_compiler_static_works=yes
8571 fi
8572 else
8573 lt_cv_prog_compiler_static_works=yes
8574 fi
8575 fi
8576 $RM -r conftest*
8577 LDFLAGS="$save_LDFLAGS"
8578
8579fi
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8581$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8582
8583if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8584 :
8585else
8586 lt_prog_compiler_static=
8587fi
8588
8589
8590
8591
8592
8593
8594
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8596$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23d56208 8597if ${lt_cv_prog_compiler_c_o+:} false; then :
0e3762ca
CALP
8598 $as_echo_n "(cached) " >&6
8599else
8600 lt_cv_prog_compiler_c_o=no
8601 $RM -r conftest 2>/dev/null
8602 mkdir conftest
8603 cd conftest
8604 mkdir out
8605 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8606
8607 lt_compiler_flag="-o out/conftest2.$ac_objext"
8608 # Insert the option either (1) after the last *FLAGS variable, or
8609 # (2) before a word containing "conftest.", or (3) at the end.
8610 # Note that $ac_compile itself does not contain backslashes and begins
8611 # with a dollar sign (not a hyphen), so the echo should work correctly.
8612 lt_compile=`echo "$ac_compile" | $SED \
8613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8615 -e 's:$: $lt_compiler_flag:'`
23d56208 8616 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
0e3762ca
CALP
8617 (eval "$lt_compile" 2>out/conftest.err)
8618 ac_status=$?
8619 cat out/conftest.err >&5
23d56208 8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0e3762ca
CALP
8621 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8622 then
8623 # The compiler can only warn and ignore the option if not recognized
8624 # So say no if there are warnings
23d56208 8625 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
0e3762ca
CALP
8626 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8627 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8628 lt_cv_prog_compiler_c_o=yes
8629 fi
8630 fi
8631 chmod u+w . 2>&5
8632 $RM conftest*
8633 # SGI C++ compiler will create directory out/ii_files/ for
8634 # template instantiation
8635 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8636 $RM out/* && rmdir out
8637 cd ..
8638 $RM -r conftest
8639 $RM conftest*
8640
8641fi
8642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8643$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8644
8645
8646
8647
8648
8649
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8651$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23d56208 8652if ${lt_cv_prog_compiler_c_o+:} false; then :
0e3762ca
CALP
8653 $as_echo_n "(cached) " >&6
8654else
8655 lt_cv_prog_compiler_c_o=no
8656 $RM -r conftest 2>/dev/null
8657 mkdir conftest
8658 cd conftest
8659 mkdir out
8660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8661
8662 lt_compiler_flag="-o out/conftest2.$ac_objext"
8663 # Insert the option either (1) after the last *FLAGS variable, or
8664 # (2) before a word containing "conftest.", or (3) at the end.
8665 # Note that $ac_compile itself does not contain backslashes and begins
8666 # with a dollar sign (not a hyphen), so the echo should work correctly.
8667 lt_compile=`echo "$ac_compile" | $SED \
8668 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8670 -e 's:$: $lt_compiler_flag:'`
23d56208 8671 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
0e3762ca
CALP
8672 (eval "$lt_compile" 2>out/conftest.err)
8673 ac_status=$?
8674 cat out/conftest.err >&5
23d56208 8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0e3762ca
CALP
8676 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8677 then
8678 # The compiler can only warn and ignore the option if not recognized
8679 # So say no if there are warnings
23d56208 8680 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
0e3762ca
CALP
8681 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8682 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8683 lt_cv_prog_compiler_c_o=yes
8684 fi
8685 fi
8686 chmod u+w . 2>&5
8687 $RM conftest*
8688 # SGI C++ compiler will create directory out/ii_files/ for
8689 # template instantiation
8690 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8691 $RM out/* && rmdir out
8692 cd ..
8693 $RM -r conftest
8694 $RM conftest*
8695
8696fi
8697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8698$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8699
8700
8701
8702
8703hard_links="nottested"
8704if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8705 # do not overwrite the value of need_locks provided by the user
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8707$as_echo_n "checking if we can lock with hard links... " >&6; }
8708 hard_links=yes
8709 $RM conftest*
8710 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8711 touch conftest.a
8712 ln conftest.a conftest.b 2>&5 || hard_links=no
8713 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8715$as_echo "$hard_links" >&6; }
8716 if test "$hard_links" = no; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8718$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8719 need_locks=warn
8720 fi
8721else
8722 need_locks=no
8723fi
8724
8725
8726
8727
8728
8729
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8731$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8732
8733 runpath_var=
8734 allow_undefined_flag=
8735 always_export_symbols=no
8736 archive_cmds=
8737 archive_expsym_cmds=
8738 compiler_needs_object=no
8739 enable_shared_with_static_runtimes=no
8740 export_dynamic_flag_spec=
8741 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8742 hardcode_automatic=no
8743 hardcode_direct=no
8744 hardcode_direct_absolute=no
8745 hardcode_libdir_flag_spec=
0e3762ca
CALP
8746 hardcode_libdir_separator=
8747 hardcode_minus_L=no
8748 hardcode_shlibpath_var=unsupported
8749 inherit_rpath=no
8750 link_all_deplibs=unknown
8751 module_cmds=
8752 module_expsym_cmds=
8753 old_archive_from_new_cmds=
8754 old_archive_from_expsyms_cmds=
8755 thread_safe_flag_spec=
8756 whole_archive_flag_spec=
8757 # include_expsyms should be a list of space-separated symbols to be *always*
8758 # included in the symbol list
8759 include_expsyms=
8760 # exclude_expsyms can be an extended regexp of symbols to exclude
8761 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8762 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8763 # as well as any symbol that contains `d'.
8764 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8765 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8766 # platforms (ab)use it in PIC code, but their linkers get confused if
8767 # the symbol is explicitly referenced. Since portable code cannot
8768 # rely on this symbol name, it's probably fine to never include it in
8769 # preloaded symbol tables.
8770 # Exclude shared library initialization/finalization symbols.
8771 extract_expsyms_cmds=
8772
8773 case $host_os in
8774 cygwin* | mingw* | pw32* | cegcc*)
8775 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8776 # When not using gcc, we currently assume that we are using
8777 # Microsoft Visual C++.
8778 if test "$GCC" != yes; then
8779 with_gnu_ld=no
8780 fi
8781 ;;
8782 interix*)
8783 # we just hope/assume this is gcc and not c89 (= MSVC++)
8784 with_gnu_ld=yes
8785 ;;
8786 openbsd*)
8787 with_gnu_ld=no
8788 ;;
23d56208 8789 linux* | k*bsd*-gnu | gnu*)
0e3762ca
CALP
8790 link_all_deplibs=no
8791 ;;
8792 esac
8793
8794 ld_shlibs=yes
23d56208
AX
8795
8796 # On some targets, GNU ld is compatible enough with the native linker
8797 # that we're better off using the native interface for both.
8798 lt_use_gnu_ld_interface=no
0e3762ca 8799 if test "$with_gnu_ld" = yes; then
23d56208
AX
8800 case $host_os in
8801 aix*)
8802 # The AIX port of GNU ld has always aspired to compatibility
8803 # with the native linker. However, as the warning in the GNU ld
8804 # block says, versions before 2.19.5* couldn't really create working
8805 # shared libraries, regardless of the interface used.
8806 case `$LD -v 2>&1` in
8807 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8808 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8809 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8810 *)
8811 lt_use_gnu_ld_interface=yes
8812 ;;
8813 esac
8814 ;;
8815 *)
8816 lt_use_gnu_ld_interface=yes
8817 ;;
8818 esac
8819 fi
8820
8821 if test "$lt_use_gnu_ld_interface" = yes; then
0e3762ca
CALP
8822 # If archive_cmds runs LD, not CC, wlarc should be empty
8823 wlarc='${wl}'
8824
8825 # Set some defaults for GNU ld with shared library support. These
8826 # are reset later if shared libraries are not supported. Putting them
8827 # here allows them to be overridden if necessary.
8828 runpath_var=LD_RUN_PATH
8829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8830 export_dynamic_flag_spec='${wl}--export-dynamic'
8831 # ancient GNU ld didn't support --whole-archive et. al.
8832 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8833 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8834 else
8835 whole_archive_flag_spec=
8836 fi
8837 supports_anon_versioning=no
8838 case `$LD -v 2>&1` in
8839 *GNU\ gold*) supports_anon_versioning=yes ;;
8840 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8841 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8842 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8843 *\ 2.11.*) ;; # other 2.11 versions
8844 *) supports_anon_versioning=yes ;;
8845 esac
8846
8847 # See if GNU ld supports shared libraries.
8848 case $host_os in
8849 aix[3-9]*)
8850 # On AIX/PPC, the GNU linker is very broken
8851 if test "$host_cpu" != ia64; then
8852 ld_shlibs=no
8853 cat <<_LT_EOF 1>&2
8854
23d56208 8855*** Warning: the GNU linker, at least up to release 2.19, is reported
0e3762ca
CALP
8856*** to be unable to reliably create shared libraries on AIX.
8857*** Therefore, libtool is disabling shared libraries support. If you
23d56208
AX
8858*** really care for shared libraries, you may want to install binutils
8859*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8860*** You will then need to restart the configuration process.
0e3762ca
CALP
8861
8862_LT_EOF
8863 fi
8864 ;;
8865
8866 amigaos*)
8867 case $host_cpu in
8868 powerpc)
8869 # see comment about AmigaOS4 .so support
8870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8871 archive_expsym_cmds=''
8872 ;;
8873 m68k)
8874 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8875 hardcode_libdir_flag_spec='-L$libdir'
8876 hardcode_minus_L=yes
8877 ;;
8878 esac
8879 ;;
8880
8881 beos*)
8882 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8883 allow_undefined_flag=unsupported
8884 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8885 # support --undefined. This deserves some investigation. FIXME
8886 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8887 else
8888 ld_shlibs=no
8889 fi
8890 ;;
8891
8892 cygwin* | mingw* | pw32* | cegcc*)
8893 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8894 # as there is no search path for DLLs.
8895 hardcode_libdir_flag_spec='-L$libdir'
23d56208 8896 export_dynamic_flag_spec='${wl}--export-all-symbols'
0e3762ca
CALP
8897 allow_undefined_flag=unsupported
8898 always_export_symbols=no
8899 enable_shared_with_static_runtimes=yes
23d56208
AX
8900 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8901 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
0e3762ca
CALP
8902
8903 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8905 # If the export-symbols file already is a .def file (1st line
8906 # is EXPORTS), use it as is; otherwise, prepend...
8907 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8908 cp $export_symbols $output_objdir/$soname.def;
8909 else
8910 echo EXPORTS > $output_objdir/$soname.def;
8911 cat $export_symbols >> $output_objdir/$soname.def;
8912 fi~
8913 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8914 else
8915 ld_shlibs=no
8916 fi
8917 ;;
8918
23d56208
AX
8919 haiku*)
8920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8921 link_all_deplibs=yes
8922 ;;
8923
0e3762ca
CALP
8924 interix[3-9]*)
8925 hardcode_direct=no
8926 hardcode_shlibpath_var=no
8927 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8928 export_dynamic_flag_spec='${wl}-E'
8929 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8930 # Instead, shared libraries are loaded at an image base (0x10000000 by
8931 # default) and relocated if they conflict, which is a slow very memory
8932 # consuming and fragmenting process. To avoid this, we pick a random,
8933 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8934 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8935 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8936 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8937 ;;
8938
8939 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8940 tmp_diet=no
8941 if test "$host_os" = linux-dietlibc; then
8942 case $cc_basename in
8943 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8944 esac
8945 fi
8946 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8947 && test "$tmp_diet" = no
8948 then
23d56208 8949 tmp_addflag=' $pic_flag'
0e3762ca
CALP
8950 tmp_sharedflag='-shared'
8951 case $cc_basename,$host_cpu in
8952 pgcc*) # Portland Group C compiler
23d56208 8953 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
0e3762ca
CALP
8954 tmp_addflag=' $pic_flag'
8955 ;;
23d56208
AX
8956 pgf77* | pgf90* | pgf95* | pgfortran*)
8957 # Portland Group f77 and f90 compilers
8958 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
0e3762ca
CALP
8959 tmp_addflag=' $pic_flag -Mnomain' ;;
8960 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8961 tmp_addflag=' -i_dynamic' ;;
8962 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8963 tmp_addflag=' -i_dynamic -nofor_main' ;;
8964 ifc* | ifort*) # Intel Fortran compiler
8965 tmp_addflag=' -nofor_main' ;;
8966 lf95*) # Lahey Fortran 8.1
8967 whole_archive_flag_spec=
8968 tmp_sharedflag='--shared' ;;
23d56208 8969 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
0e3762ca
CALP
8970 tmp_sharedflag='-qmkshrobj'
8971 tmp_addflag= ;;
23d56208
AX
8972 nvcc*) # Cuda Compiler Driver 2.2
8973 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8974 compiler_needs_object=yes
8975 ;;
0e3762ca
CALP
8976 esac
8977 case `$CC -V 2>&1 | sed 5q` in
8978 *Sun\ C*) # Sun C 5.9
23d56208 8979 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
0e3762ca
CALP
8980 compiler_needs_object=yes
8981 tmp_sharedflag='-G' ;;
8982 *Sun\ F*) # Sun Fortran 8.3
8983 tmp_sharedflag='-G' ;;
8984 esac
8985 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986
8987 if test "x$supports_anon_versioning" = xyes; then
8988 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8989 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8990 echo "local: *; };" >> $output_objdir/$libname.ver~
8991 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8992 fi
8993
8994 case $cc_basename in
23d56208 8995 xlf* | bgf* | bgxlf* | mpixlf*)
0e3762ca
CALP
8996 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8997 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
23d56208
AX
8998 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8999 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
0e3762ca
CALP
9000 if test "x$supports_anon_versioning" = xyes; then
9001 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9002 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9003 echo "local: *; };" >> $output_objdir/$libname.ver~
23d56208 9004 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
0e3762ca
CALP
9005 fi
9006 ;;
9007 esac
9008 else
9009 ld_shlibs=no
9010 fi
9011 ;;
9012
9013 netbsd* | netbsdelf*-gnu)
9014 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9015 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9016 wlarc=
9017 else
23d56208
AX
9018 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
0e3762ca
CALP
9020 fi
9021 ;;
9022
9023 solaris*)
9024 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9025 ld_shlibs=no
9026 cat <<_LT_EOF 1>&2
9027
9028*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9029*** create shared libraries on Solaris systems. Therefore, libtool
9030*** is disabling shared libraries support. We urge you to upgrade GNU
9031*** binutils to release 2.9.1 or newer. Another option is to modify
9032*** your PATH or compiler configuration so that the native linker is
9033*** used, and then restart.
9034
9035_LT_EOF
9036 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
23d56208
AX
9037 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
0e3762ca
CALP
9039 else
9040 ld_shlibs=no
9041 fi
9042 ;;
9043
9044 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9045 case `$LD -v 2>&1` in
9046 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9047 ld_shlibs=no
9048 cat <<_LT_EOF 1>&2
9049
9050*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9051*** reliably create shared libraries on SCO systems. Therefore, libtool
9052*** is disabling shared libraries support. We urge you to upgrade GNU
9053*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9054*** your PATH or compiler configuration so that the native linker is
9055*** used, and then restart.
9056
9057_LT_EOF
9058 ;;
9059 *)
9060 # For security reasons, it is highly recommended that you always
9061 # use absolute paths for naming shared libraries, and exclude the
9062 # DT_RUNPATH tag from executables and libraries. But doing so
9063 # requires that you compile everything twice, which is a pain.
9064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9067 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9068 else
9069 ld_shlibs=no
9070 fi
9071 ;;
9072 esac
9073 ;;
9074
9075 sunos4*)
9076 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9077 wlarc=
9078 hardcode_direct=yes
9079 hardcode_shlibpath_var=no
9080 ;;
9081
9082 *)
9083 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
23d56208
AX
9084 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9085 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
0e3762ca
CALP
9086 else
9087 ld_shlibs=no
9088 fi
9089 ;;
9090 esac
9091
9092 if test "$ld_shlibs" = no; then
9093 runpath_var=
9094 hardcode_libdir_flag_spec=
9095 export_dynamic_flag_spec=
9096 whole_archive_flag_spec=
9097 fi
9098 else
9099 # PORTME fill in a description of your system's linker (not GNU ld)
9100 case $host_os in
9101 aix3*)
9102 allow_undefined_flag=unsupported
9103 always_export_symbols=yes
9104 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9105 # Note: this linker hardcodes the directories in LIBPATH if there
9106 # are no directories specified by -L.
9107 hardcode_minus_L=yes
9108 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9109 # Neither direct hardcoding nor static linking is supported with a
9110 # broken collect2.
9111 hardcode_direct=unsupported
9112 fi
9113 ;;
9114
9115 aix[4-9]*)
9116 if test "$host_cpu" = ia64; then
9117 # On IA64, the linker does run time linking by default, so we don't
9118 # have to do anything special.
9119 aix_use_runtimelinking=no
9120 exp_sym_flag='-Bexport'
9121 no_entry_flag=""
9122 else
9123 # If we're using GNU nm, then we don't want the "-C" option.
9124 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23d56208
AX
9125 # Also, AIX nm treats weak defined symbols like other global
9126 # defined symbols, whereas GNU nm marks them as "W".
0e3762ca 9127 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
23d56208 9128 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
0e3762ca
CALP
9129 else
9130 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9131 fi
9132 aix_use_runtimelinking=no
9133
9134 # Test if we are trying to use run time linking or normal
9135 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9136 # need to do runtime linking.
9137 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9138 for ld_flag in $LDFLAGS; do
9139 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9140 aix_use_runtimelinking=yes
9141 break
9142 fi
9143 done
9144 ;;
9145 esac
9146
9147 exp_sym_flag='-bexport'
9148 no_entry_flag='-bnoentry'
9149 fi
9150
9151 # When large executables or shared objects are built, AIX ld can
9152 # have problems creating the table of contents. If linking a library
9153 # or program results in "error TOC overflow" add -mminimal-toc to
9154 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9155 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9156
9157 archive_cmds=''
9158 hardcode_direct=yes
9159 hardcode_direct_absolute=yes
9160 hardcode_libdir_separator=':'
9161 link_all_deplibs=yes
9162 file_list_spec='${wl}-f,'
9163
9164 if test "$GCC" = yes; then
9165 case $host_os in aix4.[012]|aix4.[012].*)
9166 # We only want to do this on AIX 4.2 and lower, the check
9167 # below for broken collect2 doesn't work under 4.3+
9168 collect2name=`${CC} -print-prog-name=collect2`
9169 if test -f "$collect2name" &&
9170 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9171 then
9172 # We have reworked collect2
9173 :
9174 else
9175 # We have old collect2
9176 hardcode_direct=unsupported
9177 # It fails to find uninstalled libraries when the uninstalled
9178 # path is not listed in the libpath. Setting hardcode_minus_L
9179 # to unsupported forces relinking
9180 hardcode_minus_L=yes
9181 hardcode_libdir_flag_spec='-L$libdir'
9182 hardcode_libdir_separator=
9183 fi
9184 ;;
9185 esac
9186 shared_flag='-shared'
9187 if test "$aix_use_runtimelinking" = yes; then
9188 shared_flag="$shared_flag "'${wl}-G'
9189 fi
9190 link_all_deplibs=no
9191 else
9192 # not using gcc
9193 if test "$host_cpu" = ia64; then
9194 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9195 # chokes on -Wl,-G. The following line is correct:
9196 shared_flag='-G'
9197 else
9198 if test "$aix_use_runtimelinking" = yes; then
9199 shared_flag='${wl}-G'
9200 else
9201 shared_flag='${wl}-bM:SRE'
9202 fi
9203 fi
9204 fi
9205
9206 export_dynamic_flag_spec='${wl}-bexpall'
9207 # It seems that -bexpall does not export symbols beginning with
9208 # underscore (_), so it is better to generate a list of symbols to export.
9209 always_export_symbols=yes
9210 if test "$aix_use_runtimelinking" = yes; then
9211 # Warning - without using the other runtime loading flags (-brtl),
9212 # -berok will link without error, but may produce a broken library.
9213 allow_undefined_flag='-berok'
9214 # Determine the default libpath from the value encoded in an
9215 # empty executable.
23d56208
AX
9216 if test "${lt_cv_aix_libpath+set}" = set; then
9217 aix_libpath=$lt_cv_aix_libpath
9218else
9219 if ${lt_cv_aix_libpath_+:} false; then :
9220 $as_echo_n "(cached) " >&6
9221else
9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0e3762ca
CALP
9223/* end confdefs.h. */
9224
9225int
9226main ()
9227{
9228
9229 ;
9230 return 0;
9231}
9232_ACEOF
9233if ac_fn_c_try_link "$LINENO"; then :
9234
23d56208
AX
9235 lt_aix_libpath_sed='
9236 /Import File Strings/,/^$/ {
9237 /^0/ {
9238 s/^0 *\([^ ]*\) *$/\1/
9239 p
9240 }
9241 }'
9242 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9243 # Check for a 64-bit object if we didn't find anything.
9244 if test -z "$lt_cv_aix_libpath_"; then
9245 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9246 fi
0e3762ca
CALP
9247fi
9248rm -f core conftest.err conftest.$ac_objext \
9249 conftest$ac_exeext conftest.$ac_ext
23d56208
AX
9250 if test -z "$lt_cv_aix_libpath_"; then
9251 lt_cv_aix_libpath_="/usr/lib:/lib"
9252 fi
9253
9254fi
9255
9256 aix_libpath=$lt_cv_aix_libpath_
9257fi
0e3762ca
CALP
9258
9259 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
23d56208 9260 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
0e3762ca
CALP
9261 else
9262 if test "$host_cpu" = ia64; then
9263 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9264 allow_undefined_flag="-z nodefs"
9265 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9266 else
9267 # Determine the default libpath from the value encoded in an
9268 # empty executable.
23d56208
AX
9269 if test "${lt_cv_aix_libpath+set}" = set; then
9270 aix_libpath=$lt_cv_aix_libpath
9271else
9272 if ${lt_cv_aix_libpath_+:} false; then :
9273 $as_echo_n "(cached) " >&6
9274else
9275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0e3762ca
CALP
9276/* end confdefs.h. */
9277
9278int
9279main ()
9280{
9281
9282 ;
9283 return 0;
9284}
9285_ACEOF
9286if ac_fn_c_try_link "$LINENO"; then :
9287
23d56208
AX
9288 lt_aix_libpath_sed='
9289 /Import File Strings/,/^$/ {
9290 /^0/ {
9291 s/^0 *\([^ ]*\) *$/\1/
9292 p
9293 }
9294 }'
9295 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9296 # Check for a 64-bit object if we didn't find anything.
9297 if test -z "$lt_cv_aix_libpath_"; then
9298 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9299 fi
0e3762ca
CALP
9300fi
9301rm -f core conftest.err conftest.$ac_objext \
9302 conftest$ac_exeext conftest.$ac_ext
23d56208
AX
9303 if test -z "$lt_cv_aix_libpath_"; then
9304 lt_cv_aix_libpath_="/usr/lib:/lib"
9305 fi
9306
9307fi
9308
9309 aix_libpath=$lt_cv_aix_libpath_
9310fi
0e3762ca
CALP
9311
9312 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9313 # Warning - without using the other run time loading flags,
9314 # -berok will link without error, but may produce a broken library.
9315 no_undefined_flag=' ${wl}-bernotok'
9316 allow_undefined_flag=' ${wl}-berok'
23d56208
AX
9317 if test "$with_gnu_ld" = yes; then
9318 # We only use this code for GNU lds that support --whole-archive.
9319 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9320 else
9321 # Exported symbols can be pulled into shared objects from archives
9322 whole_archive_flag_spec='$convenience'
9323 fi
0e3762ca
CALP
9324 archive_cmds_need_lc=yes
9325 # This is similar to how AIX traditionally builds its shared libraries.
9326 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9327 fi
9328 fi
9329 ;;
9330
9331 amigaos*)
9332 case $host_cpu in
9333 powerpc)
9334 # see comment about AmigaOS4 .so support
9335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9336 archive_expsym_cmds=''
9337 ;;
9338 m68k)
9339 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9340 hardcode_libdir_flag_spec='-L$libdir'
9341 hardcode_minus_L=yes
9342 ;;
9343 esac
9344 ;;
9345
9346 bsdi[45]*)
9347 export_dynamic_flag_spec=-rdynamic
9348 ;;
9349
9350 cygwin* | mingw* | pw32* | cegcc*)
9351 # When not using gcc, we currently assume that we are using
9352 # Microsoft Visual C++.
9353 # hardcode_libdir_flag_spec is actually meaningless, as there is
9354 # no search path for DLLs.
23d56208
AX
9355 case $cc_basename in
9356 cl*)
9357 # Native MSVC
9358 hardcode_libdir_flag_spec=' '
9359 allow_undefined_flag=unsupported
9360 always_export_symbols=yes
9361 file_list_spec='@'
9362 # Tell ltmain to make .lib files, not .a files.
9363 libext=lib
9364 # Tell ltmain to make .dll files, not .so files.
9365 shrext_cmds=".dll"
9366 # FIXME: Setting linknames here is a bad hack.
9367 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9368 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9369 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9370 else
9371 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9372 fi~
9373 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9374 linknames='
9375 # The linker will not automatically build a static lib if we build a DLL.
9376 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9377 enable_shared_with_static_runtimes=yes
9378 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9379 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9380 # Don't use ranlib
9381 old_postinstall_cmds='chmod 644 $oldlib'
9382 postlink_cmds='lt_outputfile="@OUTPUT@"~
9383 lt_tool_outputfile="@TOOL_OUTPUT@"~
9384 case $lt_outputfile in
9385 *.exe|*.EXE) ;;
9386 *)
9387 lt_outputfile="$lt_outputfile.exe"
9388 lt_tool_outputfile="$lt_tool_outputfile.exe"
9389 ;;
9390 esac~
9391 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9392 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9393 $RM "$lt_outputfile.manifest";
9394 fi'
9395 ;;
9396 *)
9397 # Assume MSVC wrapper
9398 hardcode_libdir_flag_spec=' '
9399 allow_undefined_flag=unsupported
9400 # Tell ltmain to make .lib files, not .a files.
9401 libext=lib
9402 # Tell ltmain to make .dll files, not .so files.
9403 shrext_cmds=".dll"
9404 # FIXME: Setting linknames here is a bad hack.
9405 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9406 # The linker will automatically build a .lib file if we build a DLL.
9407 old_archive_from_new_cmds='true'
9408 # FIXME: Should let the user specify the lib program.
9409 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9410 enable_shared_with_static_runtimes=yes
9411 ;;
9412 esac
0e3762ca
CALP
9413 ;;
9414
9415 darwin* | rhapsody*)
9416
9417
9418 archive_cmds_need_lc=no
9419 hardcode_direct=no
9420 hardcode_automatic=yes
9421 hardcode_shlibpath_var=unsupported
23d56208
AX
9422 if test "$lt_cv_ld_force_load" = "yes"; then
9423 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9424
9425 else
9426 whole_archive_flag_spec=''
9427 fi
0e3762ca
CALP
9428 link_all_deplibs=yes
9429 allow_undefined_flag="$_lt_dar_allow_undefined"
9430 case $cc_basename in
9431 ifort*) _lt_dar_can_shared=yes ;;
9432 *) _lt_dar_can_shared=$GCC ;;
9433 esac
9434 if test "$_lt_dar_can_shared" = "yes"; then
23d56208 9435 output_verbose_link_cmd=func_echo_all
0e3762ca
CALP
9436 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9437 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9438 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9439 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9440
9441 else
9442 ld_shlibs=no
9443 fi
9444
9445 ;;
9446
9447 dgux*)
9448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449 hardcode_libdir_flag_spec='-L$libdir'
9450 hardcode_shlibpath_var=no
9451 ;;
9452
0e3762ca
CALP
9453 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9454 # support. Future versions do this automatically, but an explicit c++rt0.o
9455 # does not break anything, and helps significantly (at the cost of a little
9456 # extra space).
9457 freebsd2.2*)
9458 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9459 hardcode_libdir_flag_spec='-R$libdir'
9460 hardcode_direct=yes
9461 hardcode_shlibpath_var=no
9462 ;;
9463
9464 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23d56208 9465 freebsd2.*)
0e3762ca
CALP
9466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9467 hardcode_direct=yes
9468 hardcode_minus_L=yes
9469 hardcode_shlibpath_var=no
9470 ;;
9471
9472 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9473 freebsd* | dragonfly*)
23d56208 9474 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
0e3762ca
CALP
9475 hardcode_libdir_flag_spec='-R$libdir'
9476 hardcode_direct=yes
9477 hardcode_shlibpath_var=no
9478 ;;
9479
9480 hpux9*)
9481 if test "$GCC" = yes; then
23d56208 9482 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
0e3762ca
CALP
9483 else
9484 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9485 fi
9486 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9487 hardcode_libdir_separator=:
9488 hardcode_direct=yes
9489
9490 # hardcode_minus_L: Not really in the search PATH,
9491 # but as the default location of the library.
9492 hardcode_minus_L=yes
9493 export_dynamic_flag_spec='${wl}-E'
9494 ;;
9495
9496 hpux10*)
23d56208
AX
9497 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9498 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
0e3762ca
CALP
9499 else
9500 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9501 fi
9502 if test "$with_gnu_ld" = no; then
9503 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
0e3762ca
CALP
9504 hardcode_libdir_separator=:
9505 hardcode_direct=yes
9506 hardcode_direct_absolute=yes
9507 export_dynamic_flag_spec='${wl}-E'
9508 # hardcode_minus_L: Not really in the search PATH,
9509 # but as the default location of the library.
9510 hardcode_minus_L=yes
9511 fi
9512 ;;
9513
9514 hpux11*)
23d56208 9515 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
0e3762ca
CALP
9516 case $host_cpu in
9517 hppa*64*)
9518 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9519 ;;
9520 ia64*)
23d56208 9521 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
0e3762ca
CALP
9522 ;;
9523 *)
23d56208 9524 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
0e3762ca
CALP
9525 ;;
9526 esac
9527 else
9528 case $host_cpu in
9529 hppa*64*)
9530 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9531 ;;
9532 ia64*)
9533 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9534 ;;
9535 *)
23d56208
AX
9536
9537 # Older versions of the 11.00 compiler do not understand -b yet
9538 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9540$as_echo_n "checking if $CC understands -b... " >&6; }
9541if ${lt_cv_prog_compiler__b+:} false; then :
9542 $as_echo_n "(cached) " >&6
9543else
9544 lt_cv_prog_compiler__b=no
9545 save_LDFLAGS="$LDFLAGS"
9546 LDFLAGS="$LDFLAGS -b"
9547 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9548 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9549 # The linker can only warn and ignore the option if not recognized
9550 # So say no if there are warnings
9551 if test -s conftest.err; then
9552 # Append any errors to the config.log.
9553 cat conftest.err 1>&5
9554 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9556 if diff conftest.exp conftest.er2 >/dev/null; then
9557 lt_cv_prog_compiler__b=yes
9558 fi
9559 else
9560 lt_cv_prog_compiler__b=yes
9561 fi
9562 fi
9563 $RM -r conftest*
9564 LDFLAGS="$save_LDFLAGS"
9565
9566fi
9567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9568$as_echo "$lt_cv_prog_compiler__b" >&6; }
9569
9570if test x"$lt_cv_prog_compiler__b" = xyes; then
9571 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9572else
9573 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9574fi
9575
0e3762ca
CALP
9576 ;;
9577 esac
9578 fi
9579 if test "$with_gnu_ld" = no; then
9580 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9581 hardcode_libdir_separator=:
9582
9583 case $host_cpu in
9584 hppa*64*|ia64*)
9585 hardcode_direct=no
9586 hardcode_shlibpath_var=no
9587 ;;
9588 *)
9589 hardcode_direct=yes
9590 hardcode_direct_absolute=yes
9591 export_dynamic_flag_spec='${wl}-E'
9592
9593 # hardcode_minus_L: Not really in the search PATH,
9594 # but as the default location of the library.
9595 hardcode_minus_L=yes
9596 ;;
9597 esac
9598 fi
9599 ;;
9600
9601 irix5* | irix6* | nonstopux*)
9602 if test "$GCC" = yes; then
23d56208 9603 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
0e3762ca
CALP
9604 # Try to use the -exported_symbol ld option, if it does not
9605 # work, assume that -exports_file does not work either and
9606 # implicitly export all symbols.
23d56208
AX
9607 # This should be the same for all languages, so no per-tag cache variable.
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9609$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9610if ${lt_cv_irix_exported_symbol+:} false; then :
9611 $as_echo_n "(cached) " >&6
9612else
9613 save_LDFLAGS="$LDFLAGS"
9614 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0e3762ca 9616/* end confdefs.h. */
23d56208 9617int foo (void) { return 0; }
0e3762ca
CALP
9618_ACEOF
9619if ac_fn_c_try_link "$LINENO"; then :
23d56208
AX
9620 lt_cv_irix_exported_symbol=yes
9621else
9622 lt_cv_irix_exported_symbol=no
0e3762ca
CALP
9623fi
9624rm -f core conftest.err conftest.$ac_objext \
9625 conftest$ac_exeext conftest.$ac_ext
23d56208
AX
9626 LDFLAGS="$save_LDFLAGS"
9627fi
9628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9629$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9630 if test "$lt_cv_irix_exported_symbol" = yes; then
9631 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9632 fi
0e3762ca 9633 else
23d56208
AX
9634 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9635 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
0e3762ca
CALP
9636 fi
9637 archive_cmds_need_lc='no'
9638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9639 hardcode_libdir_separator=:
9640 inherit_rpath=yes
9641 link_all_deplibs=yes
9642 ;;
9643
9644 netbsd* | netbsdelf*-gnu)
9645 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9646 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9647 else
9648 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9649 fi
9650 hardcode_libdir_flag_spec='-R$libdir'
9651 hardcode_direct=yes
9652 hardcode_shlibpath_var=no
9653 ;;
9654
9655 newsos6)
9656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657 hardcode_direct=yes
9658 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9659 hardcode_libdir_separator=:
9660 hardcode_shlibpath_var=no
9661 ;;
9662
9663 *nto* | *qnx*)
9664 ;;
9665
9666 openbsd*)
9667 if test -f /usr/libexec/ld.so; then
9668 hardcode_direct=yes
9669 hardcode_shlibpath_var=no
9670 hardcode_direct_absolute=yes
9671 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9672 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9673 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9674 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9675 export_dynamic_flag_spec='${wl}-E'
9676 else
9677 case $host_os in
9678 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9679 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9680 hardcode_libdir_flag_spec='-R$libdir'
9681 ;;
9682 *)
9683 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9684 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9685 ;;
9686 esac
9687 fi
9688 else
9689 ld_shlibs=no
9690 fi
9691 ;;
9692
9693 os2*)
9694 hardcode_libdir_flag_spec='-L$libdir'
9695 hardcode_minus_L=yes
9696 allow_undefined_flag=unsupported
23d56208 9697 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
0e3762ca
CALP
9698 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9699 ;;
9700
9701 osf3*)
9702 if test "$GCC" = yes; then
9703 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
23d56208 9704 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
0e3762ca
CALP
9705 else
9706 allow_undefined_flag=' -expect_unresolved \*'
23d56208 9707 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
0e3762ca
CALP
9708 fi
9709 archive_cmds_need_lc='no'
9710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9711 hardcode_libdir_separator=:
9712 ;;
9713
9714 osf4* | osf5*) # as osf3* with the addition of -msym flag
9715 if test "$GCC" = yes; then
9716 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
23d56208 9717 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
0e3762ca
CALP
9718 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9719 else
9720 allow_undefined_flag=' -expect_unresolved \*'
23d56208 9721 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
0e3762ca 9722 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
23d56208 9723 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
0e3762ca
CALP
9724
9725 # Both c and cxx compiler support -rpath directly
9726 hardcode_libdir_flag_spec='-rpath $libdir'
9727 fi
9728 archive_cmds_need_lc='no'
9729 hardcode_libdir_separator=:
9730 ;;
9731
9732 solaris*)
9733 no_undefined_flag=' -z defs'
9734 if test "$GCC" = yes; then
9735 wlarc='${wl}'
23d56208 9736 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
0e3762ca 9737 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23d56208 9738 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
0e3762ca
CALP
9739 else
9740 case `$CC -V 2>&1` in
9741 *"Compilers 5.0"*)
9742 wlarc=''
9743 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9744 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9745 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9746 ;;
9747 *)
9748 wlarc='${wl}'
9749 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9750 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9751 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9752 ;;
9753 esac
9754 fi
9755 hardcode_libdir_flag_spec='-R$libdir'
9756 hardcode_shlibpath_var=no
9757 case $host_os in
9758 solaris2.[0-5] | solaris2.[0-5].*) ;;
9759 *)
9760 # The compiler driver will combine and reorder linker options,
9761 # but understands `-z linker_flag'. GCC discards it without `$wl',
9762 # but is careful enough not to reorder.
9763 # Supported since Solaris 2.6 (maybe 2.5.1?)
9764 if test "$GCC" = yes; then
9765 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9766 else
9767 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9768 fi
9769 ;;
9770 esac
9771 link_all_deplibs=yes
9772 ;;
9773
9774 sunos4*)
9775 if test "x$host_vendor" = xsequent; then
9776 # Use $CC to link under sequent, because it throws in some extra .o
9777 # files that make .init and .fini sections work.
9778 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9779 else
9780 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9781 fi
9782 hardcode_libdir_flag_spec='-L$libdir'
9783 hardcode_direct=yes
9784 hardcode_minus_L=yes
9785 hardcode_shlibpath_var=no
9786 ;;
9787
9788 sysv4)
9789 case $host_vendor in
9790 sni)
9791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9792 hardcode_direct=yes # is this really true???
9793 ;;
9794 siemens)
9795 ## LD is ld it makes a PLAMLIB
9796 ## CC just makes a GrossModule.
9797 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9798 reload_cmds='$CC -r -o $output$reload_objs'
9799 hardcode_direct=no
9800 ;;
9801 motorola)
9802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9803 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9804 ;;
9805 esac
9806 runpath_var='LD_RUN_PATH'
9807 hardcode_shlibpath_var=no
9808 ;;
9809
9810 sysv4.3*)
9811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9812 hardcode_shlibpath_var=no
9813 export_dynamic_flag_spec='-Bexport'
9814 ;;
9815
9816 sysv4*MP*)
9817 if test -d /usr/nec; then
9818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9819 hardcode_shlibpath_var=no
9820 runpath_var=LD_RUN_PATH
9821 hardcode_runpath_var=yes
9822 ld_shlibs=yes
9823 fi
9824 ;;
9825
9826 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9827 no_undefined_flag='${wl}-z,text'
9828 archive_cmds_need_lc=no
9829 hardcode_shlibpath_var=no
9830 runpath_var='LD_RUN_PATH'
9831
9832 if test "$GCC" = yes; then
9833 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9834 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9835 else
9836 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9837 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9838 fi
9839 ;;
9840
9841 sysv5* | sco3.2v5* | sco5v6*)
9842 # Note: We can NOT use -z defs as we might desire, because we do not
9843 # link with -lc, and that would cause any symbols used from libc to
9844 # always be unresolved, which means just about no library would
9845 # ever link correctly. If we're not using GNU ld we use -z text
9846 # though, which does catch some bad symbols but isn't as heavy-handed
9847 # as -z defs.
9848 no_undefined_flag='${wl}-z,text'
9849 allow_undefined_flag='${wl}-z,nodefs'
9850 archive_cmds_need_lc=no
9851 hardcode_shlibpath_var=no
9852 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9853 hardcode_libdir_separator=':'
9854 link_all_deplibs=yes
9855 export_dynamic_flag_spec='${wl}-Bexport'
9856 runpath_var='LD_RUN_PATH'
9857
9858 if test "$GCC" = yes; then
9859 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9860 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9861 else
9862 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9863 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9864 fi
9865 ;;
9866
9867 uts4*)
9868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9869 hardcode_libdir_flag_spec='-L$libdir'
9870 hardcode_shlibpath_var=no
9871 ;;
9872
9873 *)
9874 ld_shlibs=no
9875 ;;
9876 esac
9877
9878 if test x$host_vendor = xsni; then
9879 case $host in
9880 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9881 export_dynamic_flag_spec='${wl}-Blargedynsym'
9882 ;;
9883 esac
9884 fi
9885 fi
9886
9887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9888$as_echo "$ld_shlibs" >&6; }
9889test "$ld_shlibs" = no && can_build_shared=no
9890
9891with_gnu_ld=$with_gnu_ld
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907#
9908# Do we need to explicitly link libc?
9909#
9910case "x$archive_cmds_need_lc" in
9911x|xyes)
9912 # Assume -lc should be added
9913 archive_cmds_need_lc=yes
9914
9915 if test "$enable_shared" = yes && test "$GCC" = yes; then
9916 case $archive_cmds in
9917 *'~'*)
9918 # FIXME: we may have to deal with multi-command sequences.
9919 ;;
9920 '$CC '*)
9921 # Test whether the compiler implicitly links with -lc since on some
9922 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9923 # to ld, don't add -lc before -lgcc.
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9925$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
23d56208
AX
9926if ${lt_cv_archive_cmds_need_lc+:} false; then :
9927 $as_echo_n "(cached) " >&6
9928else
9929 $RM conftest*
9930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
0e3762ca 9931
23d56208 9932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
0e3762ca
CALP
9933 (eval $ac_compile) 2>&5
9934 ac_status=$?
9935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9936 test $ac_status = 0; } 2>conftest.err; then
23d56208
AX
9937 soname=conftest
9938 lib=conftest
9939 libobjs=conftest.$ac_objext
9940 deplibs=
9941 wl=$lt_prog_compiler_wl
9942 pic_flag=$lt_prog_compiler_pic
9943 compiler_flags=-v
9944 linker_flags=-v
9945 verstring=
9946 output_objdir=.
9947 libname=conftest
9948 lt_save_allow_undefined_flag=$allow_undefined_flag
9949 allow_undefined_flag=
9950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
0e3762ca
CALP
9951 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9952 ac_status=$?
9953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9954 test $ac_status = 0; }
23d56208
AX
9955 then
9956 lt_cv_archive_cmds_need_lc=no
9957 else
9958 lt_cv_archive_cmds_need_lc=yes
9959 fi
9960 allow_undefined_flag=$lt_save_allow_undefined_flag
9961 else
9962 cat conftest.err 1>&5
9963 fi
9964 $RM conftest*
9965
9966fi
9967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9968$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9969 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
0e3762ca
CALP
9970 ;;
9971 esac
9972 fi
9973 ;;
9974esac
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
0e3762ca
CALP
10121
10122
10123
10124
10125
10126
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10128$as_echo_n "checking dynamic linker characteristics... " >&6; }
10129
10130if test "$GCC" = yes; then
10131 case $host_os in
10132 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10133 *) lt_awk_arg="/^libraries:/" ;;
10134 esac
23d56208
AX
10135 case $host_os in
10136 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10137 *) lt_sed_strip_eq="s,=/,/,g" ;;
10138 esac
10139 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10140 case $lt_search_path_spec in
10141 *\;*)
0e3762ca
CALP
10142 # if the path contains ";" then we assume it to be the separator
10143 # otherwise default to the standard path separator (i.e. ":") - it is
10144 # assumed that no part of a normal pathname contains ";" but that should
10145 # okay in the real world where ";" in dirpaths is itself problematic.
23d56208
AX
10146 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10147 ;;
10148 *)
10149 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10150 ;;
10151 esac
0e3762ca
CALP
10152 # Ok, now we have the path, separated by spaces, we can step through it
10153 # and add multilib dir if necessary.
10154 lt_tmp_lt_search_path_spec=
10155 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10156 for lt_sys_path in $lt_search_path_spec; do
10157 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10158 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10159 else
10160 test -d "$lt_sys_path" && \
10161 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10162 fi
10163 done
23d56208 10164 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
0e3762ca
CALP
10165BEGIN {RS=" "; FS="/|\n";} {
10166 lt_foo="";
10167 lt_count=0;
10168 for (lt_i = NF; lt_i > 0; lt_i--) {
10169 if ($lt_i != "" && $lt_i != ".") {
10170 if ($lt_i == "..") {
10171 lt_count++;
10172 } else {
10173 if (lt_count == 0) {
10174 lt_foo="/" $lt_i lt_foo;
10175 } else {
10176 lt_count--;
10177 }
10178 }
10179 }
10180 }
10181 if (lt_foo != "") { lt_freq[lt_foo]++; }
10182 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10183}'`
23d56208
AX
10184 # AWK program above erroneously prepends '/' to C:/dos/paths
10185 # for these hosts.
10186 case $host_os in
10187 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10188 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10189 esac
10190 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
0e3762ca
CALP
10191else
10192 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10193fi
10194library_names_spec=
10195libname_spec='lib$name'
10196soname_spec=
10197shrext_cmds=".so"
10198postinstall_cmds=
10199postuninstall_cmds=
10200finish_cmds=
10201finish_eval=
10202shlibpath_var=
10203shlibpath_overrides_runpath=unknown
10204version_type=none
10205dynamic_linker="$host_os ld.so"
10206sys_lib_dlsearch_path_spec="/lib /usr/lib"
10207need_lib_prefix=unknown
10208hardcode_into_libs=no
10209
10210# when you set need_version to no, make sure it does not cause -set_version
10211# flags to be left without arguments
10212need_version=unknown
10213
10214case $host_os in
10215aix3*)
23d56208 10216 version_type=linux # correct to gnu/linux during the next big refactor
0e3762ca
CALP
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10218 shlibpath_var=LIBPATH
10219
10220 # AIX 3 has no versioning support, so we append a major version to the name.
10221 soname_spec='${libname}${release}${shared_ext}$major'
10222 ;;
10223
10224aix[4-9]*)
23d56208 10225 version_type=linux # correct to gnu/linux during the next big refactor
0e3762ca
CALP
10226 need_lib_prefix=no
10227 need_version=no
10228 hardcode_into_libs=yes
10229 if test "$host_cpu" = ia64; then
10230 # AIX 5 supports IA64
10231 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 else
10234 # With GCC up to 2.95.x, collect2 would create an import file
10235 # for dependence libraries. The import file would start with
10236 # the line `#! .'. This would cause the generated library to
10237 # depend on `.', always an invalid library. This was fixed in
10238 # development snapshots of GCC prior to 3.0.
10239 case $host_os in
10240 aix4 | aix4.[01] | aix4.[01].*)
10241 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10242 echo ' yes '
10243 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10244 :
10245 else
10246 can_build_shared=no
10247 fi
10248 ;;
10249 esac
10250 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10251 # soname into executable. Probably we can add versioning support to
10252 # collect2, so additional links can be useful in future.
10253 if test "$aix_use_runtimelinking" = yes; then
10254 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10255 # instead of lib<name>.a to let people know that these are not
10256 # typical AIX shared libraries.
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10258 else
10259 # We preserve .a as extension for shared libraries through AIX4.2
10260 # and later when we are not doing run time linking.
10261 library_names_spec='${libname}${release}.a $libname.a'
10262 soname_spec='${libname}${release}${shared_ext}$major'
10263 fi
10264 shlibpath_var=LIBPATH
10265 fi
10266 ;;
10267
10268amigaos*)
10269 case $host_cpu in
10270 powerpc)
10271 # Since July 2007 AmigaOS4 officially supports .so libraries.
10272 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274 ;;
10275 m68k)
10276 library_names_spec='$libname.ixlibrary $libname.a'
10277 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23d56208 10278 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
0e3762ca
CALP
10279 ;;
10280 esac
10281 ;;
10282
10283beos*)
10284 library_names_spec='${libname}${shared_ext}'
10285 dynamic_linker="$host_os ld.so"
10286 shlibpath_var=LIBRARY_PATH
10287 ;;
10288
10289bsdi[45]*)
23d56208 10290 version_type=linux # correct to gnu/linux during the next big refactor
0e3762ca
CALP
10291 need_version=no
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293 soname_spec='${libname}${release}${shared_ext}$major'
10294 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10297 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10298 # the default ld.so.conf also contains /usr/contrib/lib and
10299 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10300 # libtool to hard-code these into programs
10301 ;;
10302
10303cygwin* | mingw* | pw32* | cegcc*)
10304 version_type=windows
10305 shrext_cmds=".dll"
10306 need_version=no
10307 need_lib_prefix=no
10308
23d56208
AX
10309 case $GCC,$cc_basename in
10310 yes,*)
10311 # gcc
0e3762ca
CALP
10312 library_names_spec='$libname.dll.a'
10313 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10314 postinstall_cmds='base_file=`basename \${file}`~
10315 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10316 dldir=$destdir/`dirname \$dlpath`~
10317 test -d \$dldir || mkdir -p \$dldir~
10318 $install_prog $dir/$dlname \$dldir/$dlname~
10319 chmod a+x \$dldir/$dlname~
10320 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10321 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10322 fi'
10323 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10324 dlpath=$dir/\$dldll~
10325 $RM \$dlpath'
10326 shlibpath_overrides_runpath=yes
10327
10328 case $host_os in
10329 cygwin*)
10330 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10331 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23d56208
AX
10332
10333 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
0e3762ca
CALP
10334 ;;
10335 mingw* | cegcc*)
10336 # MinGW DLLs use traditional 'lib' prefix
10337 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
0e3762ca
CALP
10338 ;;
10339 pw32*)
10340 # pw32 DLLs use 'pw' prefix rather than 'lib'
10341 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10342 ;;
10343 esac
23d56208
AX
10344 dynamic_linker='Win32 ld.exe'
10345 ;;
10346
10347 *,cl*)
10348 # Native MSVC
10349 libname_spec='$name'
10350 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10351 library_names_spec='${libname}.dll.lib'
10352
10353 case $build_os in
10354 mingw*)
10355 sys_lib_search_path_spec=
10356 lt_save_ifs=$IFS
10357 IFS=';'
10358 for lt_path in $LIB
10359 do
10360 IFS=$lt_save_ifs
10361 # Let DOS variable expansion print the short 8.3 style file name.
10362 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10363 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10364 done
10365 IFS=$lt_save_ifs
10366 # Convert to MSYS style.
10367 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10368 ;;
10369 cygwin*)
10370 # Convert to unix form, then to dos form, then back to unix form
10371 # but this time dos style (no spaces!) so that the unix form looks
10372 # like /cygdrive/c/PROGRA~1:/cygdr...
10373 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10374 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10375 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10376 ;;
10377 *)
10378 sys_lib_search_path_spec="$LIB"
10379 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10380 # It is most probably a Windows format PATH.
10381 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10382 else
10383 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10384 fi
10385 # FIXME: find the short name or the path components, as spaces are
10386 # common. (e.g. "Program Files" -> "PROGRA~1")
10387 ;;
10388 esac
10389
10390 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10391 postinstall_cmds='base_file=`basename \${file}`~
10392 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10393 dldir=$destdir/`dirname \$dlpath`~
10394 test -d \$dldir || mkdir -p \$dldir~
10395 $install_prog $dir/$dlname \$dldir/$dlname'
10396 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10397 dlpath=$dir/\$dldll~
10398 $RM \$dlpath'
10399 shlibpath_overrides_runpath=yes
10400 dynamic_linker='Win32 link.exe'
0e3762ca
CALP
10401 ;;
10402
10403 *)
23d56208 10404 # Assume MSVC wrapper
0e3762ca 10405 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23d56208 10406 dynamic_linker='Win32 ld.exe'
0e3762ca
CALP
10407 ;;
10408 esac
0e3762ca
CALP
10409 # FIXME: first we should search . and the directory the executable is in
10410 shlibpath_var=PATH
10411 ;;
10412
10413darwin* | rhapsody*)
10414 dynamic_linker="$host_os dyld"
10415 version_type=darwin
10416 need_lib_prefix=no
10417 need_version=no
10418 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10419 soname_spec='${libname}${release}${major}$shared_ext'
10420 shlibpath_overrides_runpath=yes
10421 shlibpath_var=DYLD_LIBRARY_PATH
10422 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10423
10424 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10425 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10426 ;;
10427
10428dgux*)
23d56208 10429 version_type=linux # correct to gnu/linux during the next big refactor
0e3762ca
CALP
10430 need_lib_prefix=no
10431 need_version=no
10432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10433 soname_spec='${libname}${release}${shared_ext}$major'
10434 shlibpath_var=LD_LIBRARY_PATH
10435 ;;
10436
0e3762ca
CALP
10437freebsd* | dragonfly*)
10438 # DragonFly does not have aout. When/if they implement a new
10439 # versioning mechanism, adjust this.
10440 if test -x /usr/bin/objformat; then
10441 objformat=`/usr/bin/objformat`
10442 else
10443 case $host_os in
23d56208 10444 freebsd[23].*) objformat=aout ;;
0e3762ca
CALP
10445 *) objformat=elf ;;
10446 esac
10447 fi
10448 version_type=freebsd-$objformat
10449 case $version_type in
10450 freebsd-elf*)
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10452 need_version=no
10453 need_lib_prefix=no
10454 ;;
10455 freebsd-*)
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10457 need_version=yes
10458 ;;
10459 esac
10460 shlibpath_var=LD_LIBRARY_PATH
10461 case $host_os in
23d56208 10462 freebsd2.*)
0e3762ca
CALP
10463 shlibpath_overrides_runpath=yes
10464 ;;
10465 freebsd3.[01]* | freebsdelf3.[01]*)
10466 shlibpath_overrides_runpath=yes
10467 hardcode_into_libs=yes
10468 ;;
10469 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10470 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10471 shlibpath_overrides_runpath=no
10472 hardcode_into_libs=yes
10473 ;;
10474 *) # from 4.6 on, and DragonFly
10475 shlibpath_overrides_runpath=yes
10476 hardcode_into_libs=yes
10477 ;;
10478 esac
10479 ;;
10480
10481gnu*)
23d56208 10482 version_type=linux # correct to gnu/linux during the next big refactor
0e3762ca
CALP
10483 need_lib_prefix=no
10484 need_version=no
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10486 soname_spec='${libname}${release}${shared_ext}$major'
10487 shlibpath_var=LD_LIBRARY_PATH
23d56208
AX
10488 shlibpath_overrides_runpath=no
10489 hardcode_into_libs=yes
10490 ;;
10491
10492haiku*)
10493 version_type=linux # correct to gnu/linux during the next big refactor
10494 need_lib_prefix=no
10495 need_version=no
10496 dynamic_linker="$host_os runtime_loader"
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10498 soname_spec='${libname}${release}${shared_ext}$major'
10499 shlibpath_var=LIBRARY_PATH
10500 shlibpath_overrides_runpath=yes
10501 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
0e3762ca
CALP
10502 hardcode_into_libs=yes
10503 ;;
10504
10505hpux9* | hpux10* | hpux11*)
10506 # Give a soname corresponding to the major version so that dld.sl refuses to
10507 # link against other versions.
10508 version_type=sunos
10509 need_lib_prefix=no
10510 need_version=no
10511 case $host_cpu in
10512 ia64*)
10513 shrext_cmds='.so'
10514 hardcode_into_libs=yes
10515 dynamic_linker="$host_os dld.so"
10516 shlibpath_var=LD_LIBRARY_PATH
10517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 if test "X$HPUX_IA64_MODE" = X32; then
10521 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10522 else
10523 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10524 fi
10525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10526 ;;
10527 hppa*64*)
10528 shrext_cmds='.sl'
10529 hardcode_into_libs=yes
10530 dynamic_linker="$host_os dld.sl"
10531 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10532 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10534 soname_spec='${libname}${release}${shared_ext}$major'
10535 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10536 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10537 ;;
10538 *)
10539 shrext_cmds='.sl'
10540 dynamic_linker="$host_os dld.sl"
10541 shlibpath_var=SHLIB_PATH
10542 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 ;;
10546 esac
23d56208 10547 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
0e3762ca 10548 postinstall_cmds='chmod 555 $lib'
23d56208
AX
10549 # or fails outright, so override atomically:
10550 install_override_mode=555
0e3762ca
CALP
10551 ;;
10552
10553interix[3-9]*)
23d56208 10554 version_type=linux # correct to gnu/linux during the next big refactor
0e3762ca
CALP
10555 need_lib_prefix=no
10556 need_version=no
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 shlibpath_overrides_runpath=no
10562 hardcode_into_libs=yes
10563 ;;
10564
10565irix5* | irix6* | nonstopux*)
10566 case $host_os in
10567 nonstopux*) version_type=nonstopux ;;
10568 *)
10569 if test "$lt_cv_prog_gnu_ld" = yes; then
23d56208 10570 version_type=linux # correct to gnu/linux during the next big refactor
0e3762ca
CALP
10571 else
10572 version_type=irix
10573 fi ;;
10574 esac
10575 need_lib_prefix=no
10576 need_version=no
10577 soname_spec='${libname}${release}${shared_ext}$major'
10578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10579 case $host_os in
10580 irix5* | nonstopux*)
10581 libsuff= shlibsuff=
10582 ;;
10583 *)
10584 case $LD in # libtool.m4 will add one of these switches to LD
10585 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10586 libsuff= shlibsuff= libmagic=32-bit;;
10587 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10588 libsuff=32 shlibsuff=N32 libmagic=N32;;
10589 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10590 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10591 *) libsuff= shlibsuff= libmagic=never-match;;
10592 esac
10593 ;;
10594 esac
10595 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10596 shlibpath_overrides_runpath=no
10597 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10598 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10599 hardcode_into_libs=yes
10600 ;;
10601
10602# No shared lib support for Linux oldld, aout, or coff.
10603linux*oldld* | linux*aout* | linux*coff*)
10604 dynamic_linker=no
10605 ;;
10606
23d56208 10607# This must be glibc/ELF.
0e3762ca 10608linux* | k*bsd*-gnu | kopensolaris*-gnu)
23d56208 10609 version_type=linux # correct to gnu/linux during the next big refactor
0e3762ca
CALP
10610 need_lib_prefix=no
10611 need_version=no
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 soname_spec='${libname}${release}${shared_ext}$major'
10614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10615 shlibpath_var=LD_LIBRARY_PATH
10616 shlibpath_overrides_runpath=no
23d56208 10617
0e3762ca 10618 # Some binutils ld are patched to set DT_RUNPATH
23d56208
AX
10619 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10620 $as_echo_n "(cached) " >&6
10621else
10622 lt_cv_shlibpath_overrides_runpath=no
10623 save_LDFLAGS=$LDFLAGS
10624 save_libdir=$libdir
10625 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10626 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0e3762ca
CALP
10628/* end confdefs.h. */
10629
10630int
10631main ()
10632{
10633
10634 ;
10635 return 0;
10636}
10637_ACEOF
10638if ac_fn_c_try_link "$LINENO"; then :
10639 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
23d56208 10640 lt_cv_shlibpath_overrides_runpath=yes
0e3762ca
CALP
10641fi
10642fi
10643rm -f core conftest.err conftest.$ac_objext \
10644 conftest$ac_exeext conftest.$ac_ext
23d56208
AX
10645 LDFLAGS=$save_LDFLAGS
10646 libdir=$save_libdir
10647
10648fi
10649
10650 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
0e3762ca
CALP
10651
10652 # This implies no fast_install, which is unacceptable.
10653 # Some rework will be needed to allow for fast_install
10654 # before this can be enabled.
10655 hardcode_into_libs=yes
10656
10657 # Append ld.so.conf contents to the search path
10658 if test -f /etc/ld.so.conf; then
23d56208 10659 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
0e3762ca
CALP
10660 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10661 fi
10662
10663 # We used to test for /lib/ld.so.1 and disable shared libraries on
10664 # powerpc, because MkLinux only supported shared libraries with the
10665 # GNU dynamic linker. Since this was broken with cross compilers,
10666 # most powerpc-linux boxes support dynamic linking these days and
10667 # people can always --disable-shared, the test was removed, and we
10668 # assume the GNU/Linux dynamic linker is in use.
10669 dynamic_linker='GNU/Linux ld.so'
10670 ;;
10671
10672netbsdelf*-gnu)
10673 version_type=linux
10674 need_lib_prefix=no
10675 need_version=no
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10677 soname_spec='${libname}${release}${shared_ext}$major'
10678 shlibpath_var=LD_LIBRARY_PATH
10679 shlibpath_overrides_runpath=no
10680 hardcode_into_libs=yes
10681 dynamic_linker='NetBSD ld.elf_so'
10682 ;;
10683
10684netbsd*)
10685 version_type=sunos
10686 need_lib_prefix=no
10687 need_version=no
10688 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10691 dynamic_linker='NetBSD (a.out) ld.so'
10692 else
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 dynamic_linker='NetBSD ld.elf_so'
10696 fi
10697 shlibpath_var=LD_LIBRARY_PATH
10698 shlibpath_overrides_runpath=yes
10699 hardcode_into_libs=yes
10700 ;;
10701
10702newsos6)
23d56208 10703 version_type=linux # correct to gnu/linux during the next big refactor
0e3762ca
CALP
10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10705 shlibpath_var=LD_LIBRARY_PATH
10706 shlibpath_overrides_runpath=yes
10707 ;;
10708
10709*nto* | *qnx*)
10710 version_type=qnx
10711 need_lib_prefix=no
10712 need_version=no
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714 soname_spec='${libname}${release}${shared_ext}$major'
10715 shlibpath_var=LD_LIBRARY_PATH
10716 shlibpath_overrides_runpath=no
10717 hardcode_into_libs=yes
10718 dynamic_linker='ldqnx.so'
10719 ;;
10720
10721openbsd*)
10722 version_type=sunos
10723 sys_lib_dlsearch_path_spec="/usr/lib"
10724 need_lib_prefix=no
10725 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10726 case $host_os in
10727 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10728 *) need_version=no ;;
10729 esac
10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10732 shlibpath_var=LD_LIBRARY_PATH
10733 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10734 case $host_os in
10735 openbsd2.[89] | openbsd2.[89].*)
10736 shlibpath_overrides_runpath=no
10737 ;;
10738 *)
10739 shlibpath_overrides_runpath=yes
10740 ;;
10741 esac
10742 else
10743 shlibpath_overrides_runpath=yes
10744 fi
10745 ;;
10746
10747os2*)
10748 libname_spec='$name'
10749 shrext_cmds=".dll"
10750 need_lib_prefix=no
10751 library_names_spec='$libname${shared_ext} $libname.a'
10752 dynamic_linker='OS/2 ld.exe'
10753 shlibpath_var=LIBPATH
10754 ;;
10755
10756osf3* | osf4* | osf5*)
10757 version_type=osf
10758 need_lib_prefix=no
10759 need_version=no
10760 soname_spec='${libname}${release}${shared_ext}$major'
10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10762 shlibpath_var=LD_LIBRARY_PATH
10763 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10764 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10765 ;;
10766
10767rdos*)
10768 dynamic_linker=no
10769 ;;
10770
10771solaris*)
23d56208 10772 version_type=linux # correct to gnu/linux during the next big refactor
0e3762ca
CALP
10773 need_lib_prefix=no
10774 need_version=no
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10776 soname_spec='${libname}${release}${shared_ext}$major'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 shlibpath_overrides_runpath=yes
10779 hardcode_into_libs=yes
10780 # ldd complains unless libraries are executable
10781 postinstall_cmds='chmod +x $lib'
10782 ;;
10783
10784sunos4*)
10785 version_type=sunos
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10787 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10788 shlibpath_var=LD_LIBRARY_PATH
10789 shlibpath_overrides_runpath=yes
10790 if test "$with_gnu_ld" = yes; then
10791 need_lib_prefix=no
10792 fi
10793 need_version=yes
10794 ;;
10795
10796sysv4 | sysv4.3*)
23d56208 10797 version_type=linux # correct to gnu/linux during the next big refactor
0e3762ca
CALP
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799 soname_spec='${libname}${release}${shared_ext}$major'
10800 shlibpath_var=LD_LIBRARY_PATH
10801 case $host_vendor in
10802 sni)
10803 shlibpath_overrides_runpath=no
10804 need_lib_prefix=no
10805 runpath_var=LD_RUN_PATH
10806 ;;
10807 siemens)
10808 need_lib_prefix=no
10809 ;;
10810 motorola)
10811 need_lib_prefix=no
10812 need_version=no
10813 shlibpath_overrides_runpath=no
10814 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10815 ;;
10816 esac
10817 ;;
10818
10819sysv4*MP*)
10820 if test -d /usr/nec ;then
23d56208 10821 version_type=linux # correct to gnu/linux during the next big refactor
0e3762ca
CALP
10822 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10823 soname_spec='$libname${shared_ext}.$major'
10824 shlibpath_var=LD_LIBRARY_PATH
10825 fi
10826 ;;
10827
10828sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10829 version_type=freebsd-elf
10830 need_lib_prefix=no
10831 need_version=no
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10833 soname_spec='${libname}${release}${shared_ext}$major'
10834 shlibpath_var=LD_LIBRARY_PATH
10835 shlibpath_overrides_runpath=yes
10836 hardcode_into_libs=yes
10837 if test "$with_gnu_ld" = yes; then
10838 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10839 else
10840 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10841 case $host_os in
10842 sco3.2v5*)
10843 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10844 ;;
10845 esac
10846 fi
10847 sys_lib_dlsearch_path_spec='/usr/lib'
10848 ;;
10849
10850tpf*)
10851 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
23d56208 10852 version_type=linux # correct to gnu/linux during the next big refactor
0e3762ca
CALP
10853 need_lib_prefix=no
10854 need_version=no
10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10856 shlibpath_var=LD_LIBRARY_PATH
10857 shlibpath_overrides_runpath=no
10858 hardcode_into_libs=yes
10859 ;;
10860
10861uts4*)
23d56208 10862 version_type=linux # correct to gnu/linux during the next big refactor
0e3762ca
CALP
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 shlibpath_var=LD_LIBRARY_PATH
10866 ;;
10867
10868*)
10869 dynamic_linker=no
10870 ;;
10871esac
10872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10873$as_echo "$dynamic_linker" >&6; }
10874test "$dynamic_linker" = no && can_build_shared=no
10875
10876variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10877if test "$GCC" = yes; then
10878 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10879fi
10880
10881if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10882 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10883fi
10884if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10885 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10886fi
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
23d56208
AX
10968
10969
10970
10971
10972
0e3762ca
CALP
10973
10974
10975
10976
10977
10978
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10980$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10981hardcode_action=
10982if test -n "$hardcode_libdir_flag_spec" ||
10983 test -n "$runpath_var" ||
10984 test "X$hardcode_automatic" = "Xyes" ; then
10985
10986 # We can hardcode non-existent directories.
10987 if test "$hardcode_direct" != no &&
10988 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10989 # have to relink, otherwise we might link with an installed library
10990 # when we should be linking with a yet-to-be-installed one
10991 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10992 test "$hardcode_minus_L" != no; then
10993 # Linking always hardcodes the temporary library directory.
10994 hardcode_action=relink
10995 else
10996 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10997 hardcode_action=immediate
10998 fi
10999else
11000 # We cannot hardcode anything, or else we can only hardcode existing
11001 # directories.
11002 hardcode_action=unsupported
11003fi
11004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11005$as_echo "$hardcode_action" >&6; }
11006
11007if test "$hardcode_action" = relink ||
11008 test "$inherit_rpath" = yes; then
11009 # Fast installation is not supported
11010 enable_fast_install=no
11011elif test "$shlibpath_overrides_runpath" = yes ||
11012 test "$enable_shared" = no; then
11013 # Fast installation is not necessary
11014 enable_fast_install=needless
11015fi
11016
11017
11018
11019
11020
11021
11022 if test "x$enable_dlopen" != xyes; then
11023 enable_dlopen=unknown
11024 enable_dlopen_self=unknown
11025 enable_dlopen_self_static=unknown
11026else
11027 lt_cv_dlopen=no
11028 lt_cv_dlopen_libs=
11029
11030 case $host_os in
11031 beos*)
11032 lt_cv_dlopen="load_add_on"
11033 lt_cv_dlopen_libs=
11034 lt_cv_dlopen_self=yes
11035 ;;
11036
11037 mingw* | pw32* | cegcc*)
11038 lt_cv_dlopen="LoadLibrary"
11039 lt_cv_dlopen_libs=
11040 ;;
11041
11042 cygwin*)
11043 lt_cv_dlopen="dlopen"
11044 lt_cv_dlopen_libs=
11045 ;;
11046
11047 darwin*)
11048 # if libdl is installed we need to link against it
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11050$as_echo_n "checking for dlopen in -ldl... " >&6; }
23d56208 11051if ${ac_cv_lib_dl_dlopen+:} false; then :
0e3762ca
CALP
11052 $as_echo_n "(cached) " >&6
11053else
11054 ac_check_lib_save_LIBS=$LIBS
11055LIBS="-ldl $LIBS"
11056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057/* end confdefs.h. */
11058
11059/* Override any GCC internal prototype to avoid an error.
11060 Use char because int might match the return type of a GCC
11061 builtin and then its argument prototype would still apply. */
11062#ifdef __cplusplus
11063extern "C"
11064#endif
11065char dlopen ();
11066int
11067main ()
11068{
11069return dlopen ();
11070 ;
11071 return 0;
11072}
11073_ACEOF
11074if ac_fn_c_try_link "$LINENO"; then :
11075 ac_cv_lib_dl_dlopen=yes
11076else
11077 ac_cv_lib_dl_dlopen=no
11078fi
11079rm -f core conftest.err conftest.$ac_objext \
11080 conftest$ac_exeext conftest.$ac_ext
11081LIBS=$ac_check_lib_save_LIBS
11082fi
11083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11084$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
23d56208 11085if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
0e3762ca
CALP
11086 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11087else
11088
11089 lt_cv_dlopen="dyld"
11090 lt_cv_dlopen_libs=
11091 lt_cv_dlopen_self=yes
11092
11093fi
11094
11095 ;;
11096
11097 *)
11098 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
23d56208 11099if test "x$ac_cv_func_shl_load" = xyes; then :
0e3762ca
CALP
11100 lt_cv_dlopen="shl_load"
11101else
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11103$as_echo_n "checking for shl_load in -ldld... " >&6; }
23d56208 11104if ${ac_cv_lib_dld_shl_load+:} false; then :
0e3762ca
CALP
11105 $as_echo_n "(cached) " >&6
11106else
11107 ac_check_lib_save_LIBS=$LIBS
11108LIBS="-ldld $LIBS"
11109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110/* end confdefs.h. */
11111
11112/* Override any GCC internal prototype to avoid an error.
11113 Use char because int might match the return type of a GCC
11114 builtin and then its argument prototype would still apply. */
11115#ifdef __cplusplus
11116extern "C"
11117#endif
11118char shl_load ();
11119int
11120main ()
11121{
11122return shl_load ();
11123 ;
11124 return 0;
11125}
11126_ACEOF
11127if ac_fn_c_try_link "$LINENO"; then :
11128 ac_cv_lib_dld_shl_load=yes
11129else
11130 ac_cv_lib_dld_shl_load=no
11131fi
11132rm -f core conftest.err conftest.$ac_objext \
11133 conftest$ac_exeext conftest.$ac_ext
11134LIBS=$ac_check_lib_save_LIBS
11135fi
11136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11137$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
23d56208 11138if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
0e3762ca
CALP
11139 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11140else
11141 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
23d56208 11142if test "x$ac_cv_func_dlopen" = xyes; then :
0e3762ca
CALP
11143 lt_cv_dlopen="dlopen"
11144else
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11146$as_echo_n "checking for dlopen in -ldl... " >&6; }
23d56208 11147if ${ac_cv_lib_dl_dlopen+:} false; then :
0e3762ca
CALP
11148 $as_echo_n "(cached) " >&6
11149else
11150 ac_check_lib_save_LIBS=$LIBS
11151LIBS="-ldl $LIBS"
11152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11153/* end confdefs.h. */
11154
11155/* Override any GCC internal prototype to avoid an error.
11156 Use char because int might match the return type of a GCC
11157 builtin and then its argument prototype would still apply. */
11158#ifdef __cplusplus
11159extern "C"
11160#endif
11161char dlopen ();
11162int
11163main ()
11164{
11165return dlopen ();
11166 ;
11167 return 0;
11168}
11169_ACEOF
11170if ac_fn_c_try_link "$LINENO"; then :
11171 ac_cv_lib_dl_dlopen=yes
11172else
11173 ac_cv_lib_dl_dlopen=no
11174fi
11175rm -f core conftest.err conftest.$ac_objext \
11176 conftest$ac_exeext conftest.$ac_ext
11177LIBS=$ac_check_lib_save_LIBS
11178fi
11179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11180$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
23d56208 11181if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
0e3762ca
CALP
11182 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11183else
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11185$as_echo_n "checking for dlopen in -lsvld... " >&6; }
23d56208 11186if ${ac_cv_lib_svld_dlopen+:} false; then :
0e3762ca
CALP
11187 $as_echo_n "(cached) " >&6
11188else
11189 ac_check_lib_save_LIBS=$LIBS
11190LIBS="-lsvld $LIBS"
11191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192/* end confdefs.h. */
11193
11194/* Override any GCC internal prototype to avoid an error.
11195 Use char because int might match the return type of a GCC
11196 builtin and then its argument prototype would still apply. */
11197#ifdef __cplusplus
11198extern "C"
11199#endif
11200char dlopen ();
11201int
11202main ()
11203{
11204return dlopen ();
11205 ;
11206 return 0;
11207}
11208_ACEOF
11209if ac_fn_c_try_link "$LINENO"; then :
11210 ac_cv_lib_svld_dlopen=yes
11211else
11212 ac_cv_lib_svld_dlopen=no
11213fi
11214rm -f core conftest.err conftest.$ac_objext \
11215 conftest$ac_exeext conftest.$ac_ext
11216LIBS=$ac_check_lib_save_LIBS
11217fi
11218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11219$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
23d56208 11220if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
0e3762ca
CALP
11221 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11222else
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11224$as_echo_n "checking for dld_link in -ldld... " >&6; }
23d56208 11225if ${ac_cv_lib_dld_dld_link+:} false; then :
0e3762ca
CALP
11226 $as_echo_n "(cached) " >&6
11227else
11228 ac_check_lib_save_LIBS=$LIBS
11229LIBS="-ldld $LIBS"
11230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11231/* end confdefs.h. */
11232
11233/* Override any GCC internal prototype to avoid an error.
11234 Use char because int might match the return type of a GCC
11235 builtin and then its argument prototype would still apply. */
11236#ifdef __cplusplus
11237extern "C"
11238#endif
11239char dld_link ();
11240int
11241main ()
11242{
11243return dld_link ();
11244 ;
11245 return 0;
11246}
11247_ACEOF
11248if ac_fn_c_try_link "$LINENO"; then :
11249 ac_cv_lib_dld_dld_link=yes
11250else
11251 ac_cv_lib_dld_dld_link=no
11252fi
11253rm -f core conftest.err conftest.$ac_objext \
11254 conftest$ac_exeext conftest.$ac_ext
11255LIBS=$ac_check_lib_save_LIBS
11256fi
11257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11258$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
23d56208 11259if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
0e3762ca
CALP
11260 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11261fi
11262
11263
11264fi
11265
11266
11267fi
11268
11269
11270fi
11271
11272
11273fi
11274
11275
11276fi
11277
11278 ;;
11279 esac
11280
11281 if test "x$lt_cv_dlopen" != xno; then
11282 enable_dlopen=yes
11283 else
11284 enable_dlopen=no
11285 fi
11286
11287 case $lt_cv_dlopen in
11288 dlopen)
11289 save_CPPFLAGS="$CPPFLAGS"
11290 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11291
11292 save_LDFLAGS="$LDFLAGS"
11293 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11294
11295 save_LIBS="$LIBS"
11296 LIBS="$lt_cv_dlopen_libs $LIBS"
11297
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11299$as_echo_n "checking whether a program can dlopen itself... " >&6; }
23d56208 11300if ${lt_cv_dlopen_self+:} false; then :
0e3762ca
CALP
11301 $as_echo_n "(cached) " >&6
11302else
11303 if test "$cross_compiling" = yes; then :
11304 lt_cv_dlopen_self=cross
11305else
11306 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11307 lt_status=$lt_dlunknown
11308 cat > conftest.$ac_ext <<_LT_EOF
23d56208 11309#line $LINENO "configure"
0e3762ca
CALP
11310#include "confdefs.h"
11311
11312#if HAVE_DLFCN_H
11313#include <dlfcn.h>
11314#endif
11315
11316#include <stdio.h>
11317
11318#ifdef RTLD_GLOBAL
11319# define LT_DLGLOBAL RTLD_GLOBAL
11320#else
11321# ifdef DL_GLOBAL
11322# define LT_DLGLOBAL DL_GLOBAL
11323# else
11324# define LT_DLGLOBAL 0
11325# endif
11326#endif
11327
11328/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11329 find out it does not work in some platform. */
11330#ifndef LT_DLLAZY_OR_NOW
11331# ifdef RTLD_LAZY
11332# define LT_DLLAZY_OR_NOW RTLD_LAZY
11333# else
11334# ifdef DL_LAZY
11335# define LT_DLLAZY_OR_NOW DL_LAZY
11336# else
11337# ifdef RTLD_NOW
11338# define LT_DLLAZY_OR_NOW RTLD_NOW
11339# else
11340# ifdef DL_NOW
11341# define LT_DLLAZY_OR_NOW DL_NOW
11342# else
11343# define LT_DLLAZY_OR_NOW 0
11344# endif
11345# endif
11346# endif
11347# endif
11348#endif
11349
23d56208
AX
11350/* When -fvisbility=hidden is used, assume the code has been annotated
11351 correspondingly for the symbols needed. */
11352#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11353int fnord () __attribute__((visibility("default")));
11354#endif
11355
11356int fnord () { return 42; }
0e3762ca
CALP
11357int main ()
11358{
11359 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11360 int status = $lt_dlunknown;
11361
11362 if (self)
11363 {
11364 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23d56208
AX
11365 else
11366 {
11367 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11368 else puts (dlerror ());
11369 }
0e3762ca
CALP
11370 /* dlclose (self); */
11371 }
11372 else
11373 puts (dlerror ());
11374
11375 return status;
11376}
11377_LT_EOF
11378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11379 (eval $ac_link) 2>&5
11380 ac_status=$?
11381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11382 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11383 (./conftest; exit; ) >&5 2>/dev/null
11384 lt_status=$?
11385 case x$lt_status in
11386 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11387 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11388 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11389 esac
11390 else :
11391 # compilation failed
11392 lt_cv_dlopen_self=no
11393 fi
11394fi
11395rm -fr conftest*
11396
11397
11398fi
11399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11400$as_echo "$lt_cv_dlopen_self" >&6; }
11401
11402 if test "x$lt_cv_dlopen_self" = xyes; then
11403 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11405$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
23d56208 11406if ${lt_cv_dlopen_self_static+:} false; then :
0e3762ca
CALP
11407 $as_echo_n "(cached) " >&6
11408else
11409 if test "$cross_compiling" = yes; then :
11410 lt_cv_dlopen_self_static=cross
11411else
11412 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11413 lt_status=$lt_dlunknown
11414 cat > conftest.$ac_ext <<_LT_EOF
23d56208 11415#line $LINENO "configure"
0e3762ca
CALP
11416#include "confdefs.h"
11417
11418#if HAVE_DLFCN_H
11419#include <dlfcn.h>
11420#endif
11421
11422#include <stdio.h>
11423
11424#ifdef RTLD_GLOBAL
11425# define LT_DLGLOBAL RTLD_GLOBAL
11426#else
11427# ifdef DL_GLOBAL
11428# define LT_DLGLOBAL DL_GLOBAL
11429# else
11430# define LT_DLGLOBAL 0
11431# endif
11432#endif
11433
11434/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11435 find out it does not work in some platform. */
11436#ifndef LT_DLLAZY_OR_NOW
11437# ifdef RTLD_LAZY
11438# define LT_DLLAZY_OR_NOW RTLD_LAZY
11439# else
11440# ifdef DL_LAZY
11441# define LT_DLLAZY_OR_NOW DL_LAZY
11442# else
11443# ifdef RTLD_NOW
11444# define LT_DLLAZY_OR_NOW RTLD_NOW
11445# else
11446# ifdef DL_NOW
11447# define LT_DLLAZY_OR_NOW DL_NOW
11448# else
11449# define LT_DLLAZY_OR_NOW 0
11450# endif
11451# endif
11452# endif
11453# endif
11454#endif
11455
23d56208
AX
11456/* When -fvisbility=hidden is used, assume the code has been annotated
11457 correspondingly for the symbols needed. */
11458#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11459int fnord () __attribute__((visibility("default")));
11460#endif
11461
11462int fnord () { return 42; }
0e3762ca
CALP
11463int main ()
11464{
11465 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11466 int status = $lt_dlunknown;
11467
11468 if (self)
11469 {
11470 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23d56208
AX
11471 else
11472 {
11473 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11474 else puts (dlerror ());
11475 }
0e3762ca
CALP
11476 /* dlclose (self); */
11477 }
11478 else
11479 puts (dlerror ());
11480
11481 return status;
11482}
11483_LT_EOF
11484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11485 (eval $ac_link) 2>&5
11486 ac_status=$?
11487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11488 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11489 (./conftest; exit; ) >&5 2>/dev/null
11490 lt_status=$?
11491 case x$lt_status in
11492 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11493 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11494 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11495 esac
11496 else :
11497 # compilation failed
11498 lt_cv_dlopen_self_static=no
11499 fi
11500fi
11501rm -fr conftest*
11502
11503
11504fi
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11506$as_echo "$lt_cv_dlopen_self_static" >&6; }
11507 fi
11508
11509 CPPFLAGS="$save_CPPFLAGS"
11510 LDFLAGS="$save_LDFLAGS"
11511 LIBS="$save_LIBS"
11512 ;;
11513 esac
11514
11515 case $lt_cv_dlopen_self in
11516 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11517 *) enable_dlopen_self=unknown ;;
11518 esac
11519
11520 case $lt_cv_dlopen_self_static in
11521 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11522 *) enable_dlopen_self_static=unknown ;;
11523 esac
11524fi
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542striplib=
11543old_striplib=
11544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11545$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11546if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11547 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11548 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11550$as_echo "yes" >&6; }
11551else
11552# FIXME - insert some real tests, host_os isn't really good enough
11553 case $host_os in
11554 darwin*)
11555 if test -n "$STRIP" ; then
11556 striplib="$STRIP -x"
11557 old_striplib="$STRIP -S"
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11559$as_echo "yes" >&6; }
11560 else
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11562$as_echo "no" >&6; }
11563 fi
11564 ;;
11565 *)
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567$as_echo "no" >&6; }
11568 ;;
11569 esac
11570fi
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583 # Report which library types will actually be built
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11585$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11587$as_echo "$can_build_shared" >&6; }
11588
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11590$as_echo_n "checking whether to build shared libraries... " >&6; }
11591 test "$can_build_shared" = "no" && enable_shared=no
11592
11593 # On AIX, shared libraries and static libraries use the same namespace, and
11594 # are all built from PIC.
11595 case $host_os in
11596 aix3*)
11597 test "$enable_shared" = yes && enable_static=no
11598 if test -n "$RANLIB"; then
11599 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11600 postinstall_cmds='$RANLIB $lib'
11601 fi
11602 ;;
11603
11604 aix[4-9]*)
11605 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11606 test "$enable_shared" = yes && enable_static=no
11607 fi
11608 ;;
11609 esac
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11611$as_echo "$enable_shared" >&6; }
11612
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11614$as_echo_n "checking whether to build static libraries... " >&6; }
11615 # Make sure either enable_shared or enable_static is yes.
11616 test "$enable_shared" = yes || enable_static=yes
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11618$as_echo "$enable_static" >&6; }
11619
11620
11621
11622
11623fi
11624ac_ext=c
11625ac_cpp='$CPP $CPPFLAGS'
11626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11628ac_compiler_gnu=$ac_cv_c_compiler_gnu
11629
11630CC="$lt_save_CC"
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
23d56208
AX
11644
11645
0e3762ca
CALP
11646 ac_config_commands="$ac_config_commands libtool"
11647
11648
11649
11650
11651# Only expand once:
11652
11653
11654# By default we simply use the C compiler to build assembly code.
11655
11656test "${CCAS+set}" = set || CCAS=$CC
11657test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11658
11659
11660
11661depcc="$CCAS" am_compiler_list=
11662
11663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11664$as_echo_n "checking dependency style of $depcc... " >&6; }
23d56208 11665if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
0e3762ca
CALP
11666 $as_echo_n "(cached) " >&6
11667else
11668 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11669 # We make a subdir and do the tests there. Otherwise we can end up
11670 # making bogus files that we don't know about and never remove. For
11671 # instance it was reported that on HP-UX the gcc test will end up
11672 # making a dummy file named `D' -- because `-MD' means `put the output
11673 # in D'.
23d56208 11674 rm -rf conftest.dir
0e3762ca
CALP
11675 mkdir conftest.dir
11676 # Copy depcomp to subdir because otherwise we won't find it if we're
11677 # using a relative directory.
11678 cp "$am_depcomp" conftest.dir
11679 cd conftest.dir
11680 # We will build objects and dependencies in a subdirectory because
11681 # it helps to detect inapplicable dependency modes. For instance
11682 # both Tru64's cc and ICC support -MD to output dependencies as a
11683 # side effect of compilation, but ICC will put the dependencies in
11684 # the current directory while Tru64 will put them in the object
11685 # directory.
11686 mkdir sub
11687
11688 am_cv_CCAS_dependencies_compiler_type=none
11689 if test "$am_compiler_list" = ""; then
11690 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11691 fi
11692 am__universal=false
11693
11694
11695 for depmode in $am_compiler_list; do
11696 # Setup a source with many dependencies, because some compilers
11697 # like to wrap large dependency lists on column 80 (with \), and
11698 # we should not choose a depcomp mode which is confused by this.
11699 #
11700 # We need to recreate these files for each test, as the compiler may
11701 # overwrite some of them when testing with obscure command lines.
11702 # This happens at least with the AIX C compiler.
11703 : > sub/conftest.c
11704 for i in 1 2 3 4 5 6; do
11705 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11706 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11707 # Solaris 8's {/usr,}/bin/sh.
11708 touch sub/conftst$i.h
11709 done
11710 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11711
11712 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11713 # mode. It turns out that the SunPro C++ compiler does not properly
11714 # handle `-M -o', and we need to detect this. Also, some Intel
11715 # versions had trouble with output in subdirs
11716 am__obj=sub/conftest.${OBJEXT-o}
11717 am__minus_obj="-o $am__obj"
11718 case $depmode in
11719 gcc)
11720 # This depmode causes a compiler race in universal mode.
11721 test "$am__universal" = false || continue
11722 ;;
11723 nosideeffect)
11724 # after this tag, mechanisms are not by side-effect, so they'll
11725 # only be used when explicitly requested
11726 if test "x$enable_dependency_tracking" = xyes; then
11727 continue
11728 else
11729 break
11730 fi
11731 ;;
23d56208 11732 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
0e3762ca
CALP
11733 # This compiler won't grok `-c -o', but also, the minuso test has
11734 # not run yet. These depmodes are late enough in the game, and
11735 # so weak that their functioning should not be impacted.
11736 am__obj=conftest.${OBJEXT-o}
11737 am__minus_obj=
11738 ;;
11739 none) break ;;
11740 esac
11741 if depmode=$depmode \
11742 source=sub/conftest.c object=$am__obj \
11743 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11744 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11745 >/dev/null 2>conftest.err &&
11746 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11747 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11748 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11749 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11750 # icc doesn't choke on unknown options, it will just issue warnings
11751 # or remarks (even with -Werror). So we grep stderr for any message
11752 # that says an option was ignored or not supported.
11753 # When given -MP, icc 7.0 and 7.1 complain thusly:
11754 # icc: Command line warning: ignoring option '-M'; no argument required
11755 # The diagnosis changed in icc 8.0:
11756 # icc: Command line remark: option '-MP' not supported
11757 if (grep 'ignoring option' conftest.err ||
11758 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11759 am_cv_CCAS_dependencies_compiler_type=$depmode
11760 break
11761 fi
11762 fi
11763 done
11764
11765 cd ..
11766 rm -rf conftest.dir
11767else
11768 am_cv_CCAS_dependencies_compiler_type=none
11769fi
11770
11771fi
11772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11773$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11774CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11775
11776 if
11777 test "x$enable_dependency_tracking" != xno \
11778 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11779 am__fastdepCCAS_TRUE=
11780 am__fastdepCCAS_FALSE='#'
11781else
11782 am__fastdepCCAS_TRUE='#'
11783 am__fastdepCCAS_FALSE=
11784fi
11785
11786
11787
11788
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
11790$as_echo_n "checking zfs author... " >&6; }
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
11792$as_echo "$ZFS_META_AUTHOR" >&6; }
11793
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
11795$as_echo_n "checking zfs license... " >&6; }
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
11797$as_echo "$ZFS_META_LICENSE" >&6; }
11798
11799
11800
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
11802$as_echo_n "checking linux distribution... " >&6; }
11803 if test -f /etc/toss-release ; then
11804 VENDOR=toss ;
11805 elif test -f /etc/fedora-release ; then
11806 VENDOR=fedora ;
11807 elif test -f /etc/redhat-release ; then
11808 VENDOR=redhat ;
11809 elif test -f /etc/gentoo-release ; then
11810 VENDOR=gentoo ;
11811 elif test -f /etc/arch-release ; then
11812 VENDOR=arch ;
11813 elif test -f /etc/SuSE-release ; then
11814 VENDOR=sles ;
11815 elif test -f /etc/slackware-version ; then
11816 VENDOR=slackware ;
11817 elif test -f /etc/lunar.release ; then
11818 VENDOR=lunar ;
11819 elif test -f /etc/lsb-release ; then
11820 VENDOR=ubuntu ;
11821 elif test -f /etc/debian_version ; then
11822 VENDOR=debian ;
11823 else
11824 VENDOR= ;
11825 fi
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
11827$as_echo "$VENDOR" >&6; }
11828
11829
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
11831$as_echo_n "checking default package type... " >&6; }
11832 case "$VENDOR" in
11833 toss) DEFAULT_PACKAGE=rpm ;;
11834 redhat) DEFAULT_PACKAGE=rpm ;;
11835 fedora) DEFAULT_PACKAGE=rpm ;;
11836 gentoo) DEFAULT_PACKAGE=tgz ;;
11837 arch) DEFAULT_PACKAGE=tgz ;;
11838 sles) DEFAULT_PACKAGE=rpm ;;
11839 slackware) DEFAULT_PACKAGE=tgz ;;
11840 lunar) DEFAULT_PACKAGE=tgz ;;
11841 ubuntu) DEFAULT_PACKAGE=deb ;;
11842 debian) DEFAULT_PACKAGE=deb ;;
11843 *) DEFAULT_PACKAGE=rpm ;;
11844 esac
0e3762ca
CALP
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
11846$as_echo "$DEFAULT_PACKAGE" >&6; }
11847
11848
11849 DEFAULT_INIT_DIR=$sysconfdir/init.d
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
11851$as_echo_n "checking default init directory... " >&6; }
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
11853$as_echo "$DEFAULT_INIT_DIR" >&6; }
11854
11855
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
11857$as_echo_n "checking default init script type... " >&6; }
11858 case "$VENDOR" in
11859 toss) DEFAULT_INIT_SCRIPT=redhat ;;
11860 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
11861 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
11862 gentoo) DEFAULT_INIT_SCRIPT=gentoo ;;
11863 arch) DEFAULT_INIT_SCRIPT=lsb ;;
11864 sles) DEFAULT_INIT_SCRIPT=lsb ;;
11865 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
11866 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
11867 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
11868 debian) DEFAULT_INIT_SCRIPT=lsb ;;
11869 *) DEFAULT_INIT_SCRIPT=lsb ;;
11870 esac
0e3762ca
CALP
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
11872$as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11873
11874
23d56208
AX
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5
11876$as_echo_n "checking default init config direectory... " >&6; }
11877 case "$VENDOR" in
11878 gentoo) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
11879 toss) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
11880 redhat) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
11881 fedora) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
11882 sles) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
11883 ubuntu) DEFAULT_INITCONF_DIR=/etc/default ;;
11884 debian) DEFAULT_INITCONF_DIR=/etc/default ;;
11885 *) DEFAULT_INITCONF_DIR=/etc/default ;;
11886 esac
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5
11888$as_echo "$DEFAULT_INITCONF_DIR" >&6; }
11889
11890
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5
11892$as_echo_n "checking whether initramfs-tools is available... " >&6; }
11893 if test -d /usr/share/initramfs-tools ; then
11894 DEFINE_INITRAMFS='--define "_initramfs 1"'
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11896$as_echo "yes" >&6; }
11897 else
11898 DEFINE_INITRAMFS=''
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900$as_echo "no" >&6; }
11901 fi
11902
11903
0e3762ca
CALP
11904
11905 RPM=rpm
11906 RPMBUILD=rpmbuild
11907
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
11909$as_echo_n "checking whether $RPM is available... " >&6; }
11910 if tmp=$($RPM --version 2>/dev/null); then :
11911
11912 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11913 HAVE_RPM=yes
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
11915$as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11916
11917else
11918
11919 HAVE_RPM=no
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
11921$as_echo "$HAVE_RPM" >&6; }
11922
11923fi
11924
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
11926$as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11927 if tmp=$($RPMBUILD --version 2>/dev/null); then :
11928
11929 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11930 HAVE_RPMBUILD=yes
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11932$as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11933
11934else
11935
11936 HAVE_RPMBUILD=no
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
11938$as_echo "$HAVE_RPMBUILD" >&6; }
11939
11940fi
11941
c06d4368 11942 RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"'
23d56208
AX
11943 RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
11944 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
0e3762ca
CALP
11945 RPM_DEFINE_DKMS=
11946
11947 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
11948 SRPM_DEFINE_UTIL=
11949 SRPM_DEFINE_KMOD=
11950 SRPM_DEFINE_DKMS=
11951
11952 RPM_SPEC_DIR="rpm/generic"
11953
11954# Check whether --with-spec was given.
11955if test "${with_spec+set}" = set; then :
11956 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
11957fi
11958
11959
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
11961$as_echo_n "checking whether spec files are available... " >&6; }
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
11963$as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984 DPKG=dpkg
11985 DPKGBUILD=dpkg-buildpackage
11986
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
11988$as_echo_n "checking whether $DPKG is available... " >&6; }
11989 if tmp=$($DPKG --version 2>/dev/null); then :
11990
11991 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11992 HAVE_DPKG=yes
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11994$as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11995
11996else
11997
11998 HAVE_DPKG=no
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12000$as_echo "$HAVE_DPKG" >&6; }
12001
12002fi
12003
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12005$as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12006 if tmp=$($DPKGBUILD --version 2>/dev/null); then :
12007
12008 DPKGBUILD_VERSION=$(echo $tmp | \
12009 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
12010 HAVE_DPKGBUILD=yes
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12012$as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12013
12014else
12015
12016 HAVE_DPKGBUILD=no
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12018$as_echo "$HAVE_DPKGBUILD" >&6; }
12019
12020fi
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031 ALIEN=alien
12032
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12034$as_echo_n "checking whether $ALIEN is available... " >&6; }
12035 if tmp=$($ALIEN --version 2>/dev/null); then :
12036
12037 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
12038 HAVE_ALIEN=yes
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12040$as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12041
12042else
12043
12044 HAVE_ALIEN=no
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12046$as_echo "$HAVE_ALIEN" >&6; }
12047
12048fi
12049
12050
12051
12052
12053
12054
12055
12056 TARGET_ASM_DIR=asm-generic
12057
12058
12059 ZFS_CONFIG=all
12060
12061# Check whether --with-config was given.
12062if test "${with_config+set}" = set; then :
12063 withval=$with_config; ZFS_CONFIG="$withval"
12064fi
12065
12066 # Check whether --enable-linux-builtin was given.
12067if test "${enable_linux_builtin+set}" = set; then :
12068 enableval=$enable_linux_builtin;
12069else
12070 enable_linux_builtin=no
12071fi
12072
12073
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
12075$as_echo_n "checking zfs config... " >&6; }
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
12077$as_echo "$ZFS_CONFIG" >&6; };
12078
12079
12080
12081
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
12083$as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12084
12085 saved_flags="$CFLAGS"
12086 CFLAGS="$CFLAGS -Wunused-but-set-variable"
12087
23d56208 12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0e3762ca
CALP
12089/* end confdefs.h. */
12090
12091int
12092main ()
12093{
12094
12095 ;
12096 return 0;
12097}
12098_ACEOF
23d56208 12099if ac_fn_c_try_compile "$LINENO"; then :
0e3762ca
CALP
12100
12101 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12103$as_echo "yes" >&6; }
12104
12105else
12106
12107 NO_UNUSED_BUT_SET_VARIABLE=
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109$as_echo "no" >&6; }
12110
12111fi
23d56208
AX
12112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12113
12114 CFLAGS="$saved_flags"
12115
12116
12117
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5
12119$as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12120
12121 saved_flags="$CFLAGS"
12122 CFLAGS="$CFLAGS -Wbool-compare"
12123
12124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125/* end confdefs.h. */
12126
12127int
12128main ()
12129{
12130
12131 ;
12132 return 0;
12133}
12134_ACEOF
12135if ac_fn_c_try_compile "$LINENO"; then :
12136
12137 NO_BOOL_COMPARE=-Wno-bool-compare
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12139$as_echo "yes" >&6; }
12140
12141else
12142
12143 NO_BOOL_COMPARE=
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145$as_echo "no" >&6; }
0e3762ca 12146
23d56208
AX
12147fi
12148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0e3762ca
CALP
12149
12150 CFLAGS="$saved_flags"
12151
12152
12153
12154
12155 case "$ZFS_CONFIG" in
12156 kernel)
12157
12158
12159# Check whether --with-linux was given.
12160if test "${with_linux+set}" = set; then :
12161 withval=$with_linux; kernelsrc="$withval"
12162fi
12163
12164
12165
12166# Check whether --with-linux-obj was given.
12167if test "${with_linux_obj+set}" = set; then :
12168 withval=$with_linux_obj; kernelbuild="$withval"
12169fi
12170
12171
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
12173$as_echo_n "checking kernel source directory... " >&6; }
12174 if test -z "$kernelsrc"; then :
12175
12176 if test -e "/lib/modules/$(uname -r)/source"; then :
12177
12178 headersdir="/lib/modules/$(uname -r)/source"
12179 sourcelink=$(readlink -f "$headersdir")
12180
12181elif test -e "/lib/modules/$(uname -r)/build"; then :
12182
12183 headersdir="/lib/modules/$(uname -r)/build"
12184 sourcelink=$(readlink -f "$headersdir")
12185
12186else
12187
12188 sourcelink=$(ls -1d /usr/src/kernels/* \
12189 /usr/src/linux-* \
12190 2>/dev/null | grep -v obj | tail -1)
12191
12192fi
12193
12194 if test -n "$sourcelink" && test -e ${sourcelink}; then :
12195
12196 kernelsrc=`readlink -f ${sourcelink}`
12197
12198else
12199
12200 kernelsrc="Not found"
12201
12202fi
12203
12204else
12205
12206 if test "$kernelsrc" = "NONE"; then :
12207
12208 kernsrcver=NONE
12209
12210fi
12211
12212fi
12213
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
12215$as_echo "$kernelsrc" >&6; }
12216 if test ! -d "$kernelsrc"; then :
12217
12218 as_fn_error $? "
12219 *** Please make sure the kernel devel package for your distribution
c06d4368 12220 *** is installed and then try again. If that fails, you can specify the
0e3762ca
CALP
12221 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
12222
12223fi
12224
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
12226$as_echo_n "checking kernel build directory... " >&6; }
12227 if test -z "$kernelbuild"; then :
12228
12229 if test -e "/lib/modules/$(uname -r)/build"; then :
12230
12231 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
12232
12233elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
12234
12235 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12236
12237elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
12238
12239 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
12240
12241elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
12242
12243 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
12244
12245else
12246
12247 kernelbuild=${kernelsrc}
12248
12249fi
12250
12251fi
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
12253$as_echo "$kernelbuild" >&6; }
12254
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
12256$as_echo_n "checking kernel source version... " >&6; }
12257 utsrelease1=$kernelbuild/include/linux/version.h
12258 utsrelease2=$kernelbuild/include/linux/utsrelease.h
12259 utsrelease3=$kernelbuild/include/generated/utsrelease.h
12260 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
12261
12262 utsrelease=linux/version.h
12263
12264elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
12265
12266 utsrelease=linux/utsrelease.h
12267
12268elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
12269
12270 utsrelease=generated/utsrelease.h
12271
12272fi
12273
12274 if test "$utsrelease"; then :
12275
12276 kernsrcver=`(echo "#include <$utsrelease>";
12277 echo "kernsrcver=UTS_RELEASE") |
12278 cpp -I $kernelbuild/include |
12279 grep "^kernsrcver=" | cut -d \" -f 2`
12280
12281 if test -z "$kernsrcver"; then :
12282
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12284$as_echo "Not found" >&6; }
12285 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
12286
12287fi
12288
12289else
12290
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12292$as_echo "Not found" >&6; }
12293 if test "x$enable_linux_builtin" != xyes; then
12294 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
12295 else
12296 as_fn_error $? "
12297 *** Cannot find UTS_RELEASE definition.
12298 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
12299 fi
12300
12301fi
12302
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
12304$as_echo "$kernsrcver" >&6; }
12305
12306 LINUX=${kernelsrc}
12307 LINUX_OBJ=${kernelbuild}
12308 LINUX_VERSION=${kernsrcver}
12309
12310
12311
12312
12313
12314
12315 modpost=$LINUX/scripts/Makefile.modpost
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
12317$as_echo_n "checking kernel file name for module symbols... " >&6; }
12318 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
12319
12320 if grep -q Modules.symvers $modpost; then :
12321
12322 LINUX_SYMBOLS=Modules.symvers
12323
12324else
12325
12326 LINUX_SYMBOLS=Module.symvers
12327
12328fi
12329
12330 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
12331
12332 as_fn_error $? "
12333 *** Please make sure the kernel devel package for your distribution
c06d4368 12334 *** is installed. If you are building with a custom kernel, make sure the
0e3762ca
CALP
12335 *** kernel is configured, built, and the '--with-linux=PATH' configure
12336 *** option refers to the location of the kernel source." "$LINENO" 5
12337
12338fi
12339
12340else
12341
12342 LINUX_SYMBOLS=NONE
12343
12344fi
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
12346$as_echo "$LINUX_SYMBOLS" >&6; }
12347
12348
12349
12350
12351
12352# Check whether --with-spl was given.
12353if test "${with_spl+set}" = set; then :
12354 withval=$with_spl; splsrc="$withval"
12355fi
12356
12357
12358
12359# Check whether --with-spl-obj was given.
12360if test "${with_spl_obj+set}" = set; then :
12361 withval=$with_spl_obj; splbuild="$withval"
12362fi
12363
12364
c06d4368
AX
12365
12366# Check whether --with-spl-timeout was given.
12367if test "${with_spl_timeout+set}" = set; then :
12368 withval=$with_spl_timeout; timeout="$withval"
12369else
12370 timeout=0
12371fi
12372
12373
0e3762ca 12374 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
23d56208
AX
12375 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
12376 splsrc2="/usr/local/src/spl-${VERSION}"
12377 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
12378 splsrc4="/usr/src/spl-${VERSION}"
12379 splsrc5="../spl/"
12380 splsrc6="$LINUX"
0e3762ca
CALP
12381
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
12383$as_echo_n "checking spl source directory... " >&6; }
12384 if test -z "${splsrc}"; then :
12385
12386 if test -e "${splsrc0}/spl.release.in"; then :
12387
12388 splsrc=${splsrc0}
12389
12390elif test -e "${splsrc1}/spl.release.in"; then :
12391
12392 splsrc=${splsrc1}
12393
12394elif test -e "${splsrc2}/spl.release.in"; then :
12395
12396 splsrc=${splsrc2}
12397
12398elif test -e "${splsrc3}/spl.release.in"; then :
12399
12400 splsrc=$(readlink -f "${splsrc3}")
12401
12402elif test -e "${splsrc4}/spl.release.in" ; then :
12403
12404 splsrc=${splsrc4}
12405
23d56208
AX
12406elif test -e "${splsrc5}/spl.release.in"; then :
12407
12408 splsrc=$(readlink -f "${splsrc5}")
12409
12410elif test -e "${splsrc6}/spl.release.in" ; then :
12411
12412 splsrc=${splsrc6}
12413
0e3762ca
CALP
12414else
12415
12416 splsrc="Not found"
12417
12418fi
12419
12420else
12421
12422 if test "$splsrc" = "NONE"; then :
12423
12424 splbuild=NONE
12425 splsrcver=NONE
12426
12427fi
12428
12429fi
12430
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
12432$as_echo "$splsrc" >&6; }
12433 if test ! -e "$splsrc/spl.release.in"; then :
12434
12435 as_fn_error $? "
12436 *** Please make sure the kmod spl devel package for your distribution
12437 *** is installed then try again. If that fails you can specify the
12438 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
12439
12440fi
12441
c06d4368 12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
0e3762ca 12443$as_echo_n "checking spl build directory... " >&6; }
c06d4368
AX
12444 while true; do
12445 if test -z "$splbuild"; then :
0e3762ca 12446
c06d4368 12447 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
0e3762ca 12448
c06d4368 12449 splbuild="${splsrc}/${LINUX_VERSION}"
0e3762ca
CALP
12450
12451elif test -e "${splsrc}/spl_config.h" ; then :
12452
c06d4368 12453 splbuild="${splsrc}"
0e3762ca 12454
23d56208
AX
12455elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then :
12456
12457 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
12458
0e3762ca
CALP
12459else
12460
c06d4368 12461 splbuild="Not found"
0e3762ca
CALP
12462
12463fi
12464
12465fi
c06d4368
AX
12466 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
12467
12468 break;
12469
12470else
12471
12472 sleep 1
12473 timeout=$((timeout-1))
12474
12475fi
12476 done
0e3762ca
CALP
12477
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
12479$as_echo "$splbuild" >&6; }
12480 if ! test -e "$splbuild/spl_config.h"; then :
12481
12482 as_fn_error $? "
12483 *** Please make sure the kmod spl devel <kernel> package for your
12484 *** distribution is installed then try again. If that fails you
12485 *** can specify the location of the spl objects with the
12486 *** '--with-spl-obj=PATH' option." "$LINENO" 5
12487
12488fi
12489
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
12491$as_echo_n "checking spl source version... " >&6; }
12492 if test -r $splbuild/spl_config.h &&
12493 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
12494
12495
12496 splsrcver=`(echo "#include <spl_config.h>";
12497 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
12498 cpp -I $splbuild |
12499 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
12500
12501fi
12502
12503 if test -z "$splsrcver"; then :
12504
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12506$as_echo "Not found" >&6; }
12507 as_fn_error $? "
12508 *** Cannot determine the version of the spl source.
12509 *** Please prepare the spl source before running this script" "$LINENO" 5
12510
12511fi
12512
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
12514$as_echo "$splsrcver" >&6; }
12515
12516 SPL=${splsrc}
12517 SPL_OBJ=${splbuild}
12518 SPL_VERSION=${splsrcver}
12519
12520
12521
12522
12523
c06d4368 12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
0e3762ca
CALP
12525$as_echo_n "checking spl file name for module symbols... " >&6; }
12526 SPL_SYMBOLS=NONE
12527
12528 while true; do
12529 if test -r $SPL_OBJ/Module.symvers; then :
12530
12531 SPL_SYMBOLS=Module.symvers
12532
12533elif test -r $SPL_OBJ/Modules.symvers; then :
12534
12535 SPL_SYMBOLS=Modules.symvers
12536
12537elif test -r $SPL_OBJ/module/Module.symvers; then :
12538
12539 SPL_SYMBOLS=Module.symvers
12540
12541elif test -r $SPL_OBJ/module/Modules.symvers; then :
12542
12543 SPL_SYMBOLS=Modules.symvers
12544
12545fi
12546
12547 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
12548
12549 break;
12550
12551else
12552
12553 sleep 1
12554 timeout=$((timeout-1))
12555
12556fi
12557 done
12558
12559 if test "$SPL_SYMBOLS" = NONE; then :
12560
12561 SPL_SYMBOLS=$LINUX_SYMBOLS
12562
12563fi
12564
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
12566$as_echo "$SPL_SYMBOLS" >&6; }
12567
12568
23d56208 12569
0e3762ca
CALP
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
12571$as_echo_n "checking whether modules can be built... " >&6; }
12572
12573
12574cat confdefs.h - <<_ACEOF >conftest.c
12575
12576
12577int
12578main (void)
12579{
12580
12581 ;
12582 return 0;
12583}
12584
12585_ACEOF
12586
12587
23d56208
AX
12588
12589cat - <<_ACEOF >conftest.h
12590
12591_ACEOF
12592
12593
0e3762ca
CALP
12594 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12595 echo "obj-m := conftest.o" >build/Makefile
12596 modpost_flag=''
12597 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 12598 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
12599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12600 (eval $ac_try) 2>&5
12601 ac_status=$?
12602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12603 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12605 (eval $ac_try) 2>&5
12606 ac_status=$?
12607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12608 test $ac_status = 0; }; }; then :
12609
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12611$as_echo "yes" >&6; }
12612
12613else
12614 $as_echo "$as_me: failed program was:" >&5
12615sed 's/^/| /' conftest.$ac_ext >&5
12616
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618$as_echo "no" >&6; }
12619 if test "x$enable_linux_builtin" != xyes; then
12620 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
12621 else
12622 as_fn_error $? "
12623 *** Unable to build an empty module.
12624 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
12625 fi
12626
12627
12628
12629fi
12630 rm -Rf build
12631
12632
12633
12634
23d56208
AX
12635 if test "$cross_compiling" = yes; then :
12636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12638as_fn_error $? "cannot run test program while cross compiling
12639See \`config.log' for more details" "$LINENO" 5; }
12640else
12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642/* end confdefs.h. */
12643
12644
12645 #include "$LINUX/include/linux/license.h"
12646
12647int
12648main ()
12649{
12650
12651 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
12652
12653 ;
12654 return 0;
12655}
0e3762ca 12656
23d56208
AX
12657_ACEOF
12658if ac_fn_c_try_run "$LINENO"; then :
0e3762ca
CALP
12659
12660
23d56208 12661$as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
0e3762ca
CALP
12662
12663
12664fi
23d56208
AX
12665rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12666 conftest.$ac_objext conftest.beam conftest.$ac_ext
12667fi
12668
0e3762ca
CALP
12669
12670
12671
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12673$as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12674
12675
12676cat confdefs.h - <<_ACEOF >conftest.c
12677
12678
12679 #include <linux/module.h>
12680
12681int
12682main (void)
12683{
12684
12685 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12686 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12687 #endif
12688
12689 ;
12690 return 0;
12691}
12692
12693_ACEOF
12694
12695
23d56208
AX
12696
12697cat - <<_ACEOF >conftest.h
12698
12699_ACEOF
12700
12701
0e3762ca
CALP
12702 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12703 echo "obj-m := conftest.o" >build/Makefile
12704 modpost_flag=''
12705 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 12706 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
12707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12708 (eval $ac_try) 2>&5
12709 ac_status=$?
12710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12711 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12716 test $ac_status = 0; }; }; then :
12717
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12719$as_echo "yes" >&6; }
12720
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
12722$as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
12723 tmp_flags="$EXTRA_KCFLAGS"
12724
12725
12726cat confdefs.h - <<_ACEOF >conftest.c
12727
12728
12729 #include <linux/module.h>
12730 #include <linux/mutex.h>
12731
12732 MODULE_LICENSE("$ZFS_META_LICENSE");
12733
12734int
12735main (void)
12736{
12737
12738 struct mutex lock;
12739
12740 mutex_init(&lock);
12741 mutex_lock(&lock);
12742 mutex_unlock(&lock);
12743
12744 ;
12745 return 0;
12746}
12747
12748_ACEOF
12749
12750
23d56208
AX
12751
12752cat - <<_ACEOF >conftest.h
12753
12754_ACEOF
12755
12756
0e3762ca
CALP
12757 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12758 echo "obj-m := conftest.o" >build/Makefile
12759 modpost_flag=''
12760 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 12761 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
12762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12763 (eval $ac_try) 2>&5
12764 ac_status=$?
12765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12766 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12768 (eval $ac_try) 2>&5
12769 ac_status=$?
12770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12771 test $ac_status = 0; }; }; then :
12772
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12774$as_echo "no" >&6; }
12775
12776else
12777 $as_echo "$as_me: failed program was:" >&5
12778sed 's/^/| /' conftest.$ac_ext >&5
12779
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12781$as_echo "yes" >&6; }
12782 as_fn_error $? "
12783 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
12784 *** with the CDDL license and will prevent the module linking stage
12785 *** from succeeding. You must rebuild your kernel without this
12786 *** option enabled." "$LINENO" 5
12787
12788
12789
12790fi
12791 rm -Rf build
12792
12793
12794 EXTRA_KCFLAGS="$tmp_flags"
12795
12796
12797else
12798 $as_echo "$as_me: failed program was:" >&5
12799sed 's/^/| /' conftest.$ac_ext >&5
12800
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12802$as_echo "no" >&6; }
12803
12804
12805
12806
12807fi
12808 rm -Rf build
12809
12810
12811
12812
12813
12814
0e3762ca 12815 tmp_flags="$EXTRA_KCFLAGS"
23d56208 12816 EXTRA_KCFLAGS="-I\$(src)"
0e3762ca 12817
23d56208
AX
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
12819$as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
0e3762ca 12820
0e3762ca 12821
23d56208 12822cat confdefs.h - <<_ACEOF >conftest.c
0e3762ca 12823
0e3762ca 12824
23d56208
AX
12825 #include <linux/module.h>
12826 MODULE_LICENSE(ZFS_META_LICENSE);
0e3762ca 12827
23d56208
AX
12828 #define CREATE_TRACE_POINTS
12829 #include "conftest.h"
0e3762ca
CALP
12830
12831int
12832main (void)
12833{
12834
23d56208
AX
12835 trace_zfs_autoconf_event_one(1UL);
12836 trace_zfs_autoconf_event_two(2UL);
0e3762ca
CALP
12837
12838 ;
12839 return 0;
12840}
12841
12842_ACEOF
12843
12844
23d56208
AX
12845
12846cat - <<_ACEOF >conftest.h
12847
12848 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
12849 #define _CONFTEST_H
12850
12851 #undef TRACE_SYSTEM
12852 #define TRACE_SYSTEM zfs
12853 #include <linux/tracepoint.h>
12854
12855 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
12856 TP_PROTO(unsigned long i),
12857 TP_ARGS(i),
12858 TP_STRUCT__entry(
12859 __field(unsigned long, i)
12860 ),
12861 TP_fast_assign(
12862 __entry->i = i;
12863 ),
12864 TP_printk("i = %lu", __entry->i)
12865 );
12866
12867 #define DEFINE_AUTOCONF_EVENT(name) \
12868 DEFINE_EVENT(zfs_autoconf_event_class, name, \
12869 TP_PROTO(unsigned long i), \
12870 TP_ARGS(i))
12871 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
12872 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
12873
12874 #endif /* _CONFTEST_H */
12875
12876 #undef TRACE_INCLUDE_PATH
12877 #define TRACE_INCLUDE_PATH .
12878 #define TRACE_INCLUDE_FILE conftest
12879 #include <trace/define_trace.h>
12880
12881_ACEOF
12882
12883
0e3762ca
CALP
12884 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12885 echo "obj-m := conftest.o" >build/Makefile
12886 modpost_flag=''
12887 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 12888 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
12889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12890 (eval $ac_try) 2>&5
12891 ac_status=$?
12892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12893 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12895 (eval $ac_try) 2>&5
12896 ac_status=$?
12897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12898 test $ac_status = 0; }; }; then :
12899
23d56208
AX
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12901$as_echo "yes" >&6; }
0e3762ca 12902
23d56208 12903$as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
0e3762ca
CALP
12904
12905
12906else
12907 $as_echo "$as_me: failed program was:" >&5
12908sed 's/^/| /' conftest.$ac_ext >&5
12909
23d56208
AX
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911$as_echo "no" >&6; }
0e3762ca
CALP
12912
12913
12914
c06d4368
AX
12915fi
12916 rm -Rf build
12917
12918
12919 EXTRA_KCFLAGS="$tmp_flags"
12920
12921
23d56208
AX
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
12923$as_echo_n "checking whether current->bio_tail exists... " >&6; }
c06d4368
AX
12924
12925
12926cat confdefs.h - <<_ACEOF >conftest.c
12927
12928
23d56208 12929 #include <linux/sched.h>
c06d4368
AX
12930
12931int
12932main (void)
12933{
12934
23d56208 12935 current->bio_tail = (struct bio **) NULL;
c06d4368
AX
12936
12937 ;
12938 return 0;
12939}
12940
12941_ACEOF
12942
12943
23d56208
AX
12944
12945cat - <<_ACEOF >conftest.h
12946
12947_ACEOF
12948
12949
c06d4368
AX
12950 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12951 echo "obj-m := conftest.o" >build/Makefile
12952 modpost_flag=''
12953 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 12954 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
c06d4368
AX
12955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12956 (eval $ac_try) 2>&5
12957 ac_status=$?
12958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12959 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12961 (eval $ac_try) 2>&5
12962 ac_status=$?
12963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12964 test $ac_status = 0; }; }; then :
12965
23d56208
AX
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12967$as_echo "yes" >&6; }
c06d4368 12968
23d56208 12969$as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
c06d4368
AX
12970
12971
12972else
12973 $as_echo "$as_me: failed program was:" >&5
12974sed 's/^/| /' conftest.$ac_ext >&5
12975
23d56208
AX
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12977$as_echo "no" >&6; }
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
12979$as_echo_n "checking whether current->bio_list exists... " >&6; }
0e3762ca
CALP
12980
12981
12982cat confdefs.h - <<_ACEOF >conftest.c
12983
12984
23d56208 12985 #include <linux/sched.h>
0e3762ca
CALP
12986
12987int
12988main (void)
12989{
12990
23d56208 12991 current->bio_list = (struct bio_list *) NULL;
0e3762ca
CALP
12992
12993 ;
12994 return 0;
12995}
12996
12997_ACEOF
12998
12999
23d56208
AX
13000
13001cat - <<_ACEOF >conftest.h
13002
13003_ACEOF
13004
13005
0e3762ca
CALP
13006 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13007 echo "obj-m := conftest.o" >build/Makefile
13008 modpost_flag=''
13009 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 13010 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
13011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13012 (eval $ac_try) 2>&5
13013 ac_status=$?
13014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13015 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13017 (eval $ac_try) 2>&5
13018 ac_status=$?
13019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13020 test $ac_status = 0; }; }; then :
13021
23d56208 13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
0e3762ca
CALP
13023$as_echo "yes" >&6; }
13024
23d56208 13025$as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
0e3762ca
CALP
13026
13027
13028else
13029 $as_echo "$as_me: failed program was:" >&5
13030sed 's/^/| /' conftest.$ac_ext >&5
13031
23d56208
AX
13032 as_fn_error $? "no - Please file a bug report at
13033 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
0e3762ca
CALP
13034
13035
13036
13037fi
13038 rm -Rf build
13039
13040
13041
13042
0e3762ca 13043
23d56208
AX
13044fi
13045 rm -Rf build
0e3762ca 13046
0e3762ca
CALP
13047
13048
0e3762ca 13049
23d56208
AX
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
13051$as_echo_n "checking block device operation prototypes... " >&6; }
13052 tmp_flags="$EXTRA_KCFLAGS"
13053 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
0e3762ca 13054
0e3762ca 13055
23d56208 13056cat confdefs.h - <<_ACEOF >conftest.c
0e3762ca 13057
23d56208
AX
13058
13059 #include <linux/blkdev.h>
13060
13061 int blk_open(struct block_device *bdev, fmode_t mode)
13062 { return 0; }
13063 int blk_ioctl(struct block_device *bdev, fmode_t mode,
13064 unsigned x, unsigned long y) { return 0; }
13065 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
13066 unsigned x, unsigned long y) { return 0; }
13067
13068 static const struct block_device_operations
13069 bops __attribute__ ((unused)) = {
13070 .open = blk_open,
13071 .release = NULL,
13072 .ioctl = blk_ioctl,
13073 .compat_ioctl = blk_compat_ioctl,
13074 };
13075
13076int
13077main (void)
13078{
13079
13080
13081 ;
13082 return 0;
13083}
13084
13085_ACEOF
13086
13087
13088
13089cat - <<_ACEOF >conftest.h
13090
13091_ACEOF
13092
13093
13094 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13095 echo "obj-m := conftest.o" >build/Makefile
13096 modpost_flag=''
13097 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13098 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13100 (eval $ac_try) 2>&5
13101 ac_status=$?
13102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13103 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13105 (eval $ac_try) 2>&5
13106 ac_status=$?
13107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13108 test $ac_status = 0; }; }; then :
13109
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
13111$as_echo "struct block_device" >&6; }
13112
13113$as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
13114
13115
13116else
13117 $as_echo "$as_me: failed program was:" >&5
13118sed 's/^/| /' conftest.$ac_ext >&5
13119
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
13121$as_echo "struct inode" >&6; }
13122
13123
13124
13125fi
13126 rm -Rf build
13127
13128
13129 EXTRA_KCFLAGS="$tmp_flags"
13130
13131
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
13133$as_echo_n "checking whether block_device_operations.release is void... " >&6; }
13134 tmp_flags="$EXTRA_KCFLAGS"
13135 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13136
13137
13138cat confdefs.h - <<_ACEOF >conftest.c
13139
13140
13141 #include <linux/blkdev.h>
13142
13143 void blk_release(struct gendisk *g, fmode_t mode) { return; }
13144
13145 static const struct block_device_operations
13146 bops __attribute__ ((unused)) = {
13147 .open = NULL,
13148 .release = blk_release,
13149 .ioctl = NULL,
13150 .compat_ioctl = NULL,
13151 };
13152
13153int
13154main (void)
13155{
13156
13157
13158 ;
13159 return 0;
13160}
13161
13162_ACEOF
13163
13164
13165
13166cat - <<_ACEOF >conftest.h
13167
13168_ACEOF
13169
13170
13171 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13172 echo "obj-m := conftest.o" >build/Makefile
13173 modpost_flag=''
13174 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13175 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13177 (eval $ac_try) 2>&5
13178 ac_status=$?
13179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13180 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13182 (eval $ac_try) 2>&5
13183 ac_status=$?
13184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13185 test $ac_status = 0; }; }; then :
13186
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
13188$as_echo "void" >&6; }
13189
13190$as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
13191
13192
13193else
13194 $as_echo "$as_me: failed program was:" >&5
13195sed 's/^/| /' conftest.$ac_ext >&5
13196
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
13198$as_echo "int" >&6; }
13199
13200
13201
13202fi
13203 rm -Rf build
13204
13205
13206 EXTRA_KCFLAGS="$tmp_flags"
13207
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
13209$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
13210
13211
13212cat confdefs.h - <<_ACEOF >conftest.c
13213
13214
13215 #include <linux/types.h>
13216
13217int
13218main (void)
13219{
13220
13221 fmode_t *ptr __attribute__ ((unused));
13222
13223 ;
13224 return 0;
13225}
13226
13227_ACEOF
13228
13229
13230
13231cat - <<_ACEOF >conftest.h
13232
13233_ACEOF
13234
13235
13236 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13237 echo "obj-m := conftest.o" >build/Makefile
13238 modpost_flag=''
13239 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13240 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13242 (eval $ac_try) 2>&5
13243 ac_status=$?
13244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13245 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13247 (eval $ac_try) 2>&5
13248 ac_status=$?
13249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13250 test $ac_status = 0; }; }; then :
13251
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13253$as_echo "yes" >&6; }
13254
13255$as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
13256
13257
13258else
13259 $as_echo "$as_me: failed program was:" >&5
13260sed 's/^/| /' conftest.$ac_ext >&5
13261
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13263$as_echo "no" >&6; }
13264
13265
13266
13267fi
13268 rm -Rf build
13269
13270
13271
13272
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
13274$as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
13275
13276
13277cat confdefs.h - <<_ACEOF >conftest.c
13278
13279
13280 #include <linux/kobject.h>
13281
13282int
13283main (void)
13284{
13285
13286 int val __attribute__ ((unused));
13287 val = KOBJ_NAME_LEN;
13288
13289 ;
13290 return 0;
13291}
13292
13293_ACEOF
13294
13295
13296
13297cat - <<_ACEOF >conftest.h
13298
13299_ACEOF
0e3762ca
CALP
13300
13301
13302 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13303 echo "obj-m := conftest.o" >build/Makefile
13304 modpost_flag=''
13305 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 13306 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
13307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13308 (eval $ac_try) 2>&5
13309 ac_status=$?
13310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13311 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13313 (eval $ac_try) 2>&5
13314 ac_status=$?
13315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13316 test $ac_status = 0; }; }; then :
13317
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13319$as_echo "yes" >&6; }
13320
13321$as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
13322
13323
13324else
13325 $as_echo "$as_me: failed program was:" >&5
13326sed 's/^/| /' conftest.$ac_ext >&5
13327
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13329$as_echo "no" >&6; }
13330
13331
13332
13333fi
13334 rm -Rf build
13335
13336
13337
13338
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
13340$as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
13341
13342
13343cat confdefs.h - <<_ACEOF >conftest.c
13344
13345
13346 #include <linux/fs.h>
13347
13348int
13349main (void)
13350{
13351
13352 struct block_device *bdev = NULL;
13353 (void) blkdev_get(bdev, 0, NULL);
13354
13355 ;
13356 return 0;
13357}
13358
13359_ACEOF
13360
13361
23d56208
AX
13362
13363cat - <<_ACEOF >conftest.h
13364
13365_ACEOF
13366
13367
0e3762ca
CALP
13368 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13369 echo "obj-m := conftest.o" >build/Makefile
13370 modpost_flag=''
13371 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 13372 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
13373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13374 (eval $ac_try) 2>&5
13375 ac_status=$?
13376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13377 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13379 (eval $ac_try) 2>&5
13380 ac_status=$?
13381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13382 test $ac_status = 0; }; }; then :
13383
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13385$as_echo "yes" >&6; }
13386
13387$as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
13388
13389
13390else
13391 $as_echo "$as_me: failed program was:" >&5
13392sed 's/^/| /' conftest.$ac_ext >&5
13393
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13395$as_echo "no" >&6; }
13396
13397
13398
13399fi
13400 rm -Rf build
13401
13402
13403
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
13405$as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
13406
13407
13408
13409cat confdefs.h - <<_ACEOF >conftest.c
13410
13411
13412 #include <linux/fs.h>
13413
13414int
13415main (void)
13416{
13417
13418 blkdev_get_by_path(NULL, 0, NULL);
13419
13420 ;
13421 return 0;
13422}
13423
13424_ACEOF
13425
13426
23d56208
AX
13427
13428cat - <<_ACEOF >conftest.h
13429
13430_ACEOF
13431
13432
0e3762ca
CALP
13433 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13434 echo "obj-m := conftest.o" >build/Makefile
13435 modpost_flag=''
13436 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 13437 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
13438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13439 (eval $ac_try) 2>&5
13440 ac_status=$?
13441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13442 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13444 (eval $ac_try) 2>&5
13445 ac_status=$?
13446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13447 test $ac_status = 0; }; }; then :
13448 rc=0
13449else
13450 $as_echo "$as_me: failed program was:" >&5
13451sed 's/^/| /' conftest.$ac_ext >&5
13452 rc=1
13453
13454
13455fi
13456 rm -Rf build
13457
13458
13459 if test $rc -ne 0; then :
13460
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13462$as_echo "no" >&6; }
13463
13464 else
13465 if test "x$enable_linux_builtin" != xyes; then
13466
13467 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
13468 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
13469 rc=$?
13470 if test $rc -ne 0; then
13471 export=0
13472 for file in fs/block_dev.c; do
13473 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
13474 "$LINUX/$file" 2>/dev/null
13475 rc=$?
13476 if test $rc -eq 0; then
13477 export=1
13478 break;
13479 fi
13480 done
13481 if test $export -eq 0; then :
13482 rc=1
13483 else :
13484 rc=0
13485 fi
13486 else :
13487 rc=0
13488 fi
13489
13490 fi
13491 if test $rc -ne 0; then :
13492
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13494$as_echo "no" >&6; }
13495
13496 else :
13497
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13499$as_echo "yes" >&6; }
13500
13501$as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
13502
13503
13504 fi
13505 fi
13506
13507
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
13509$as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
13510
13511
13512
13513cat confdefs.h - <<_ACEOF >conftest.c
13514
13515
13516 #include <linux/fs.h>
13517
13518int
13519main (void)
13520{
13521
13522 open_bdev_exclusive(NULL, 0, NULL);
13523
13524 ;
13525 return 0;
13526}
13527
13528_ACEOF
13529
13530
23d56208
AX
13531
13532cat - <<_ACEOF >conftest.h
13533
13534_ACEOF
13535
13536
0e3762ca
CALP
13537 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13538 echo "obj-m := conftest.o" >build/Makefile
13539 modpost_flag=''
13540 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 13541 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
13542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13543 (eval $ac_try) 2>&5
13544 ac_status=$?
13545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13546 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13548 (eval $ac_try) 2>&5
13549 ac_status=$?
13550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13551 test $ac_status = 0; }; }; then :
13552 rc=0
13553else
13554 $as_echo "$as_me: failed program was:" >&5
13555sed 's/^/| /' conftest.$ac_ext >&5
13556 rc=1
13557
13558
13559fi
13560 rm -Rf build
13561
13562
13563 if test $rc -ne 0; then :
13564
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13566$as_echo "no" >&6; }
13567
13568 else
13569 if test "x$enable_linux_builtin" != xyes; then
13570
13571 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
13572 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
13573 rc=$?
13574 if test $rc -ne 0; then
13575 export=0
13576 for file in fs/block_dev.c; do
13577 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
13578 "$LINUX/$file" 2>/dev/null
13579 rc=$?
13580 if test $rc -eq 0; then
13581 export=1
13582 break;
13583 fi
13584 done
13585 if test $export -eq 0; then :
13586 rc=1
13587 else :
13588 rc=0
13589 fi
13590 else :
13591 rc=0
13592 fi
13593
13594 fi
13595 if test $rc -ne 0; then :
13596
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13598$as_echo "no" >&6; }
13599
13600 else :
13601
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13603$as_echo "yes" >&6; }
13604
13605$as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
13606
13607
13608 fi
13609 fi
13610
13611
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
13613$as_echo_n "checking whether lookup_bdev() is available... " >&6; }
13614
13615
13616
13617cat confdefs.h - <<_ACEOF >conftest.c
13618
13619
13620 #include <linux/fs.h>
13621
13622int
13623main (void)
13624{
13625
13626 lookup_bdev(NULL);
13627
13628 ;
13629 return 0;
13630}
13631
13632_ACEOF
13633
13634
23d56208
AX
13635
13636cat - <<_ACEOF >conftest.h
13637
13638_ACEOF
13639
13640
0e3762ca
CALP
13641 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13642 echo "obj-m := conftest.o" >build/Makefile
13643 modpost_flag=''
13644 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 13645 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
13646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13647 (eval $ac_try) 2>&5
13648 ac_status=$?
13649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13650 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13652 (eval $ac_try) 2>&5
13653 ac_status=$?
13654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13655 test $ac_status = 0; }; }; then :
13656 rc=0
13657else
13658 $as_echo "$as_me: failed program was:" >&5
13659sed 's/^/| /' conftest.$ac_ext >&5
13660 rc=1
13661
13662
13663fi
13664 rm -Rf build
13665
13666
13667 if test $rc -ne 0; then :
13668
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13670$as_echo "no" >&6; }
13671
13672 else
13673 if test "x$enable_linux_builtin" != xyes; then
13674
13675 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
13676 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
13677 rc=$?
13678 if test $rc -ne 0; then
13679 export=0
13680 for file in fs/block_dev.c; do
13681 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
13682 "$LINUX/$file" 2>/dev/null
13683 rc=$?
13684 if test $rc -eq 0; then
13685 export=1
13686 break;
13687 fi
13688 done
13689 if test $export -eq 0; then :
13690 rc=1
13691 else :
13692 rc=0
13693 fi
13694 else :
13695 rc=0
13696 fi
13697
13698 fi
13699 if test $rc -ne 0; then :
13700
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13702$as_echo "no" >&6; }
13703
13704 else :
13705
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13707$as_echo "yes" >&6; }
13708
13709$as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
13710
13711
13712 fi
13713 fi
13714
13715
13716
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
13718$as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
13719
13720
13721cat confdefs.h - <<_ACEOF >conftest.c
13722
13723
13724 #include <linux/buffer_head.h>
13725
13726int
13727main (void)
13728{
13729
13730 struct block_device *bdev = NULL;
13731 invalidate_bdev(bdev);
13732
13733 ;
13734 return 0;
13735}
13736
13737_ACEOF
13738
13739
23d56208
AX
13740
13741cat - <<_ACEOF >conftest.h
13742
13743_ACEOF
13744
13745
13746 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
0e3762ca
CALP
13747 echo "obj-m := conftest.o" >build/Makefile
13748 modpost_flag=''
13749 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 13750 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
13751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13752 (eval $ac_try) 2>&5
13753 ac_status=$?
13754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13755 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13757 (eval $ac_try) 2>&5
13758 ac_status=$?
13759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13760 test $ac_status = 0; }; }; then :
13761
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13763$as_echo "yes" >&6; }
13764
13765$as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
13766
13767
13768else
13769 $as_echo "$as_me: failed program was:" >&5
13770sed 's/^/| /' conftest.$ac_ext >&5
13771
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13773$as_echo "no" >&6; }
13774
13775
13776
13777fi
13778 rm -Rf build
13779
13780
13781
13782
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
13784$as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
13785 tmp_flags="$EXTRA_KCFLAGS"
13786 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13787
13788
13789cat confdefs.h - <<_ACEOF >conftest.c
13790
13791
13792 #include <linux/blkdev.h>
13793
13794int
13795main (void)
13796{
13797
13798 struct block_device *bdev = NULL;
13799 bdev_logical_block_size(bdev);
13800
13801 ;
13802 return 0;
13803}
13804
13805_ACEOF
13806
13807
23d56208
AX
13808
13809cat - <<_ACEOF >conftest.h
13810
13811_ACEOF
13812
13813
0e3762ca
CALP
13814 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13815 echo "obj-m := conftest.o" >build/Makefile
13816 modpost_flag=''
13817 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 13818 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
13819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13820 (eval $ac_try) 2>&5
13821 ac_status=$?
13822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13823 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13825 (eval $ac_try) 2>&5
13826 ac_status=$?
13827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13828 test $ac_status = 0; }; }; then :
13829
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13831$as_echo "yes" >&6; }
13832
13833$as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
13834
13835
13836else
13837 $as_echo "$as_me: failed program was:" >&5
13838sed 's/^/| /' conftest.$ac_ext >&5
13839
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13841$as_echo "no" >&6; }
13842
13843
13844
13845fi
13846 rm -Rf build
13847
13848
13849 EXTRA_KCFLAGS="$tmp_flags"
13850
13851
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
13853$as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
13854 tmp_flags="$EXTRA_KCFLAGS"
13855 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13856
13857
13858cat confdefs.h - <<_ACEOF >conftest.c
13859
13860
13861 #include <linux/blkdev.h>
13862
13863int
13864main (void)
13865{
13866
13867 struct block_device *bdev = NULL;
13868 bdev_physical_block_size(bdev);
13869
13870 ;
13871 return 0;
13872}
13873
13874_ACEOF
13875
13876
23d56208
AX
13877
13878cat - <<_ACEOF >conftest.h
13879
13880_ACEOF
13881
13882
0e3762ca
CALP
13883 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13884 echo "obj-m := conftest.o" >build/Makefile
13885 modpost_flag=''
13886 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 13887 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
13888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13889 (eval $ac_try) 2>&5
13890 ac_status=$?
13891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13892 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13894 (eval $ac_try) 2>&5
13895 ac_status=$?
13896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13897 test $ac_status = 0; }; }; then :
13898
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13900$as_echo "yes" >&6; }
13901
13902$as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
13903
13904
13905else
13906 $as_echo "$as_me: failed program was:" >&5
13907sed 's/^/| /' conftest.$ac_ext >&5
13908
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13910$as_echo "no" >&6; }
13911
13912
13913
13914fi
13915 rm -Rf build
13916
13917
13918 EXTRA_KCFLAGS="$tmp_flags"
13919
13920
23d56208
AX
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
13922$as_echo_n "checking whether bio has bi_iter... " >&6; }
0e3762ca
CALP
13923
13924
13925cat confdefs.h - <<_ACEOF >conftest.c
13926
13927
13928 #include <linux/bio.h>
13929
13930int
13931main (void)
13932{
13933
23d56208
AX
13934 struct bio bio;
13935 bio.bi_iter.bi_sector = 0;
0e3762ca
CALP
13936
13937 ;
13938 return 0;
13939}
13940
13941_ACEOF
13942
13943
23d56208
AX
13944
13945cat - <<_ACEOF >conftest.h
13946
13947_ACEOF
13948
13949
0e3762ca
CALP
13950 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13951 echo "obj-m := conftest.o" >build/Makefile
13952 modpost_flag=''
13953 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 13954 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
13955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13956 (eval $ac_try) 2>&5
13957 ac_status=$?
13958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13959 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13961 (eval $ac_try) 2>&5
13962 ac_status=$?
13963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13964 test $ac_status = 0; }; }; then :
13965
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13967$as_echo "yes" >&6; }
13968
23d56208 13969$as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
0e3762ca
CALP
13970
13971
13972else
13973 $as_echo "$as_me: failed program was:" >&5
13974sed 's/^/| /' conftest.$ac_ext >&5
13975
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13977$as_echo "no" >&6; }
13978
13979
13980
13981fi
13982 rm -Rf build
13983
13984
13985
13986
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
13988$as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
13989
13990
13991cat confdefs.h - <<_ACEOF >conftest.c
13992
13993
13994 #include <linux/bio.h>
13995
13996int
13997main (void)
13998{
13999
14000 int flags __attribute__ ((unused));
14001 flags = ((1 << BIO_RW_FAILFAST_DEV) |
14002 (1 << BIO_RW_FAILFAST_TRANSPORT) |
14003 (1 << BIO_RW_FAILFAST_DRIVER));
14004
14005 ;
14006 return 0;
14007}
14008
14009_ACEOF
14010
14011
23d56208
AX
14012
14013cat - <<_ACEOF >conftest.h
14014
14015_ACEOF
14016
14017
0e3762ca
CALP
14018 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14019 echo "obj-m := conftest.o" >build/Makefile
14020 modpost_flag=''
14021 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 14022 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
14023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14024 (eval $ac_try) 2>&5
14025 ac_status=$?
14026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14027 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14032 test $ac_status = 0; }; }; then :
14033
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14035$as_echo "yes" >&6; }
14036
14037$as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
14038
14039
14040else
14041 $as_echo "$as_me: failed program was:" >&5
14042sed 's/^/| /' conftest.$ac_ext >&5
14043
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14045$as_echo "no" >&6; }
14046
14047
14048
14049fi
14050 rm -Rf build
14051
14052
14053
14054
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
14056$as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
14057
14058
14059cat confdefs.h - <<_ACEOF >conftest.c
14060
14061
14062 #include <linux/bio.h>
14063
14064int
14065main (void)
14066{
14067
14068 int flags __attribute__ ((unused));
14069 flags = REQ_FAILFAST_MASK;
14070
14071 ;
14072 return 0;
14073}
14074
14075_ACEOF
14076
14077
23d56208
AX
14078
14079cat - <<_ACEOF >conftest.h
14080
14081_ACEOF
14082
14083
0e3762ca
CALP
14084 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14085 echo "obj-m := conftest.o" >build/Makefile
14086 modpost_flag=''
14087 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 14088 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
14089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14090 (eval $ac_try) 2>&5
14091 ac_status=$?
14092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14093 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14095 (eval $ac_try) 2>&5
14096 ac_status=$?
14097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14098 test $ac_status = 0; }; }; then :
14099
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14101$as_echo "yes" >&6; }
14102
23d56208 14103$as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
0e3762ca
CALP
14104
14105
14106else
14107 $as_echo "$as_me: failed program was:" >&5
14108sed 's/^/| /' conftest.$ac_ext >&5
14109
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14111$as_echo "no" >&6; }
14112
14113
14114
14115fi
14116 rm -Rf build
14117
14118
14119
14120
23d56208
AX
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
14122$as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
0e3762ca
CALP
14123
14124
14125cat confdefs.h - <<_ACEOF >conftest.c
14126
14127
14128 #include <linux/bio.h>
14129
23d56208 14130 void wanted_end_io(struct bio *bio) { return; }
0e3762ca
CALP
14131
14132 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
14133
14134int
14135main (void)
14136{
14137
14138
14139 ;
14140 return 0;
14141}
14142
14143_ACEOF
14144
14145
0e3762ca 14146
23d56208 14147cat - <<_ACEOF >conftest.h
0e3762ca
CALP
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
23d56208 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'
0e3762ca
CALP
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
23d56208 14171$as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
0e3762ca
CALP
14172
14173
14174else
14175 $as_echo "$as_me: failed program was:" >&5
14176sed '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
14183fi
14184 rm -Rf build
14185
14186
14187
14188
23d56208
AX
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
14190$as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
0e3762ca
CALP
14191
14192
14193cat confdefs.h - <<_ACEOF >conftest.c
14194
14195
14196 #include <linux/bio.h>
14197
14198int
14199main (void)
14200{
14201
14202 int flags __attribute__ ((unused));
23d56208 14203 flags = BIO_RW_BARRIER;
0e3762ca
CALP
14204
14205 ;
14206 return 0;
14207}
14208
14209_ACEOF
14210
14211
23d56208
AX
14212
14213cat - <<_ACEOF >conftest.h
14214
14215_ACEOF
14216
14217
0e3762ca
CALP
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
23d56208 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'
0e3762ca
CALP
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
23d56208 14237$as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
0e3762ca
CALP
14238
14239
14240else
14241 $as_echo "$as_me: failed program was:" >&5
14242sed '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
14249fi
14250 rm -Rf build
14251
14252
14253
14254
23d56208
AX
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
14256$as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
0e3762ca
CALP
14257
14258
14259cat confdefs.h - <<_ACEOF >conftest.c
14260
14261
14262 #include <linux/bio.h>
14263
14264int
14265main (void)
14266{
14267
14268 int flags __attribute__ ((unused));
23d56208 14269 flags = BIO_RW_DISCARD;
0e3762ca
CALP
14270
14271 ;
14272 return 0;
14273}
14274
14275_ACEOF
14276
14277
23d56208
AX
14278
14279cat - <<_ACEOF >conftest.h
14280
14281_ACEOF
14282
14283
0e3762ca
CALP
14284 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14285 echo "obj-m := conftest.o" >build/Makefile
14286 modpost_flag=''
14287 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 14288 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
14289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14290 (eval $ac_try) 2>&5
14291 ac_status=$?
14292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14293 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14295 (eval $ac_try) 2>&5
14296 ac_status=$?
14297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14298 test $ac_status = 0; }; }; then :
14299
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14301$as_echo "yes" >&6; }
14302
23d56208 14303$as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
0e3762ca
CALP
14304
14305
14306else
14307 $as_echo "$as_me: failed program was:" >&5
14308sed 's/^/| /' conftest.$ac_ext >&5
14309
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14311$as_echo "no" >&6; }
14312
14313
14314
14315fi
14316 rm -Rf build
14317
14318
14319
14320
23d56208
AX
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
14322$as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
0e3762ca
CALP
14323 tmp_flags="$EXTRA_KCFLAGS"
14324 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14325
14326
14327cat confdefs.h - <<_ACEOF >conftest.c
14328
14329
14330 #include <linux/blkdev.h>
14331
14332int
14333main (void)
14334{
14335
23d56208
AX
14336 struct request_queue *q = NULL;
14337 (void) blk_queue_flush(q, REQ_FLUSH);
0e3762ca
CALP
14338
14339 ;
14340 return 0;
14341}
14342
14343_ACEOF
14344
14345
23d56208
AX
14346
14347cat - <<_ACEOF >conftest.h
14348
14349_ACEOF
14350
14351
0e3762ca
CALP
14352 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14353 echo "obj-m := conftest.o" >build/Makefile
14354 modpost_flag=''
14355 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 14356 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
14357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14358 (eval $ac_try) 2>&5
14359 ac_status=$?
14360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14361 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14363 (eval $ac_try) 2>&5
14364 ac_status=$?
14365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14366 test $ac_status = 0; }; }; then :
14367
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14369$as_echo "yes" >&6; }
14370
23d56208 14371$as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
0e3762ca
CALP
14372
14373
14374else
14375 $as_echo "$as_me: failed program was:" >&5
14376sed 's/^/| /' conftest.$ac_ext >&5
14377
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14379$as_echo "no" >&6; }
14380
14381
14382
14383fi
14384 rm -Rf build
14385
14386
14387
23d56208
AX
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
14389$as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
0e3762ca
CALP
14390
14391
14392cat confdefs.h - <<_ACEOF >conftest.c
14393
14394
14395 #include <linux/module.h>
14396 #include <linux/blkdev.h>
14397
23d56208 14398 MODULE_LICENSE("$ZFS_META_LICENSE");
0e3762ca
CALP
14399
14400int
14401main (void)
14402{
14403
23d56208
AX
14404 struct request_queue *q = NULL;
14405 (void) blk_queue_flush(q, REQ_FLUSH);
0e3762ca
CALP
14406
14407 ;
14408 return 0;
14409}
14410
14411_ACEOF
14412
14413
23d56208
AX
14414
14415cat - <<_ACEOF >conftest.h
14416
14417_ACEOF
14418
14419
0e3762ca
CALP
14420 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14421 echo "obj-m := conftest.o" >build/Makefile
14422 modpost_flag=''
14423 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 14424 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
14425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14426 (eval $ac_try) 2>&5
14427 ac_status=$?
14428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14429 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14431 (eval $ac_try) 2>&5
14432 ac_status=$?
14433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14434 test $ac_status = 0; }; }; then :
14435
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14437$as_echo "no" >&6; }
14438
14439else
14440 $as_echo "$as_me: failed program was:" >&5
14441sed 's/^/| /' conftest.$ac_ext >&5
14442
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14444$as_echo "yes" >&6; }
14445
23d56208 14446$as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
0e3762ca
CALP
14447
14448
14449
14450
14451fi
14452 rm -Rf build
14453
14454
14455 EXTRA_KCFLAGS="$tmp_flags"
14456
14457
23d56208
AX
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
14459$as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
0e3762ca
CALP
14460 tmp_flags="$EXTRA_KCFLAGS"
14461 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14462
14463
14464cat confdefs.h - <<_ACEOF >conftest.c
14465
14466
14467 #include <linux/blkdev.h>
14468
14469int
14470main (void)
14471{
14472
14473 struct request_queue *q = NULL;
23d56208 14474 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
0e3762ca
CALP
14475
14476 ;
14477 return 0;
14478}
14479
14480_ACEOF
14481
14482
23d56208
AX
14483
14484cat - <<_ACEOF >conftest.h
14485
14486_ACEOF
14487
14488
0e3762ca
CALP
14489 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14490 echo "obj-m := conftest.o" >build/Makefile
14491 modpost_flag=''
14492 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 14493 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
14494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14495 (eval $ac_try) 2>&5
14496 ac_status=$?
14497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14498 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14500 (eval $ac_try) 2>&5
14501 ac_status=$?
14502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14503 test $ac_status = 0; }; }; then :
14504
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14506$as_echo "yes" >&6; }
14507
23d56208 14508$as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
0e3762ca
CALP
14509
14510
14511else
14512 $as_echo "$as_me: failed program was:" >&5
14513sed 's/^/| /' conftest.$ac_ext >&5
14514
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14516$as_echo "no" >&6; }
14517
14518
14519
14520fi
14521 rm -Rf build
14522
14523
23d56208 14524 EXTRA_KCFLAGS="$tmp_flags"
0e3762ca 14525
23d56208
AX
14526
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
14528$as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
14529 tmp_flags="$EXTRA_KCFLAGS"
14530 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
0e3762ca
CALP
14531
14532
14533cat confdefs.h - <<_ACEOF >conftest.c
14534
14535
0e3762ca
CALP
14536 #include <linux/blkdev.h>
14537
0e3762ca
CALP
14538int
14539main (void)
14540{
14541
14542 struct request_queue *q = NULL;
23d56208 14543 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
0e3762ca
CALP
14544
14545 ;
14546 return 0;
14547}
14548
14549_ACEOF
14550
14551
23d56208
AX
14552
14553cat - <<_ACEOF >conftest.h
14554
14555_ACEOF
14556
14557
0e3762ca
CALP
14558 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14559 echo "obj-m := conftest.o" >build/Makefile
14560 modpost_flag=''
14561 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 14562 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
14563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14564 (eval $ac_try) 2>&5
14565 ac_status=$?
14566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14567 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14569 (eval $ac_try) 2>&5
14570 ac_status=$?
14571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14572 test $ac_status = 0; }; }; then :
14573
23d56208
AX
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14575$as_echo "yes" >&6; }
14576
14577$as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
14578
0e3762ca
CALP
14579
14580else
14581 $as_echo "$as_me: failed program was:" >&5
14582sed 's/^/| /' conftest.$ac_ext >&5
14583
23d56208
AX
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14585$as_echo "no" >&6; }
0e3762ca
CALP
14586
14587
14588
14589fi
14590 rm -Rf build
14591
14592
14593 EXTRA_KCFLAGS="$tmp_flags"
14594
14595
23d56208
AX
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
14597$as_echo_n "checking whether get_disk_ro() is available... " >&6; }
0e3762ca
CALP
14598 tmp_flags="$EXTRA_KCFLAGS"
14599 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14600
14601
14602cat confdefs.h - <<_ACEOF >conftest.c
14603
14604
14605 #include <linux/blkdev.h>
14606
14607int
14608main (void)
14609{
14610
23d56208
AX
14611 struct gendisk *disk = NULL;
14612 (void) get_disk_ro(disk);
0e3762ca
CALP
14613
14614 ;
14615 return 0;
14616}
14617
14618_ACEOF
14619
14620
23d56208
AX
14621
14622cat - <<_ACEOF >conftest.h
14623
14624_ACEOF
14625
14626
0e3762ca
CALP
14627 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14628 echo "obj-m := conftest.o" >build/Makefile
14629 modpost_flag=''
14630 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 14631 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
14632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14633 (eval $ac_try) 2>&5
14634 ac_status=$?
14635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14636 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14638 (eval $ac_try) 2>&5
14639 ac_status=$?
14640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14641 test $ac_status = 0; }; }; then :
14642
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14644$as_echo "yes" >&6; }
14645
23d56208 14646$as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
0e3762ca
CALP
14647
14648
14649else
14650 $as_echo "$as_me: failed program was:" >&5
14651sed 's/^/| /' conftest.$ac_ext >&5
14652
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14654$as_echo "no" >&6; }
14655
14656
14657
14658fi
14659 rm -Rf build
14660
14661
14662 EXTRA_KCFLAGS="$tmp_flags"
14663
23d56208
AX
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
14665$as_echo_n "checking whether get_gendisk() is available... " >&6; }
0e3762ca 14666
0e3762ca
CALP
14667
14668
14669cat confdefs.h - <<_ACEOF >conftest.c
14670
14671
23d56208 14672 #include <linux/genhd.h>
0e3762ca
CALP
14673
14674int
14675main (void)
14676{
14677
23d56208 14678 get_gendisk(0, NULL);
0e3762ca
CALP
14679
14680 ;
14681 return 0;
14682}
14683
14684_ACEOF
14685
14686
23d56208
AX
14687
14688cat - <<_ACEOF >conftest.h
14689
14690_ACEOF
14691
14692
0e3762ca
CALP
14693 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14694 echo "obj-m := conftest.o" >build/Makefile
14695 modpost_flag=''
14696 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 14697 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
14698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14699 (eval $ac_try) 2>&5
14700 ac_status=$?
14701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14702 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14704 (eval $ac_try) 2>&5
14705 ac_status=$?
14706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14707 test $ac_status = 0; }; }; then :
23d56208
AX
14708 rc=0
14709else
14710 $as_echo "$as_me: failed program was:" >&5
14711sed 's/^/| /' conftest.$ac_ext >&5
14712 rc=1
0e3762ca 14713
0e3762ca 14714
23d56208
AX
14715fi
14716 rm -Rf build
0e3762ca
CALP
14717
14718
23d56208
AX
14719 if test $rc -ne 0; then :
14720
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14722$as_echo "no" >&6; }
14723
14724 else
14725 if test "x$enable_linux_builtin" != xyes; then
14726
14727 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
14728 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14729 rc=$?
14730 if test $rc -ne 0; then
14731 export=0
14732 for file in block/genhd.c; do
14733 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
14734 "$LINUX/$file" 2>/dev/null
14735 rc=$?
14736 if test $rc -eq 0; then
14737 export=1
14738 break;
14739 fi
14740 done
14741 if test $export -eq 0; then :
14742 rc=1
14743 else :
14744 rc=0
14745 fi
14746 else :
14747 rc=0
14748 fi
14749
14750 fi
14751 if test $rc -ne 0; then :
0e3762ca
CALP
14752
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14754$as_echo "no" >&6; }
14755
23d56208 14756 else :
0e3762ca 14757
23d56208
AX
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14759$as_echo "yes" >&6; }
0e3762ca 14760
23d56208 14761$as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
0e3762ca
CALP
14762
14763
23d56208
AX
14764 fi
14765 fi
0e3762ca
CALP
14766
14767
23d56208
AX
14768
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
14770$as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
0e3762ca
CALP
14771
14772
14773cat confdefs.h - <<_ACEOF >conftest.c
14774
14775
14776 #include <linux/blkdev.h>
14777
14778int
14779main (void)
14780{
14781
23d56208
AX
14782 struct queue_limits ql __attribute__ ((unused));
14783
14784 ql.discard_granularity = 0;
0e3762ca
CALP
14785
14786 ;
14787 return 0;
14788}
14789
14790_ACEOF
14791
14792
23d56208
AX
14793
14794cat - <<_ACEOF >conftest.h
14795
14796_ACEOF
14797
14798
0e3762ca
CALP
14799 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14800 echo "obj-m := conftest.o" >build/Makefile
14801 modpost_flag=''
14802 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 14803 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
14804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14805 (eval $ac_try) 2>&5
14806 ac_status=$?
14807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14808 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14810 (eval $ac_try) 2>&5
14811 ac_status=$?
14812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14813 test $ac_status = 0; }; }; then :
14814
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14816$as_echo "yes" >&6; }
14817
23d56208 14818$as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
0e3762ca
CALP
14819
14820
14821else
14822 $as_echo "$as_me: failed program was:" >&5
14823sed 's/^/| /' conftest.$ac_ext >&5
14824
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14826$as_echo "no" >&6; }
14827
14828
14829
14830fi
14831 rm -Rf build
14832
14833
0e3762ca 14834
23d56208
AX
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_hander" >&5
14836$as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
0e3762ca
CALP
14837
14838
14839cat confdefs.h - <<_ACEOF >conftest.c
14840
14841
23d56208
AX
14842 #include <linux/fs.h>
14843 #include <linux/xattr.h>
14844
14845 const struct xattr_handler xattr_test_handler = {
14846 .prefix = "test",
14847 .get = NULL,
14848 .set = NULL,
14849 };
14850
14851 const struct xattr_handler *xattr_handlers[] = {
14852 &xattr_test_handler,
14853 };
14854
14855 const struct super_block sb __attribute__ ((unused)) = {
14856 .s_xattr = xattr_handlers,
14857 };
0e3762ca
CALP
14858
14859int
14860main (void)
14861{
14862
0e3762ca
CALP
14863
14864 ;
14865 return 0;
14866}
14867
14868_ACEOF
14869
14870
23d56208
AX
14871
14872cat - <<_ACEOF >conftest.h
14873
14874_ACEOF
14875
14876
0e3762ca
CALP
14877 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14878 echo "obj-m := conftest.o" >build/Makefile
14879 modpost_flag=''
14880 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 14881 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
14882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14883 (eval $ac_try) 2>&5
14884 ac_status=$?
14885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14886 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14888 (eval $ac_try) 2>&5
14889 ac_status=$?
14890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14891 test $ac_status = 0; }; }; then :
14892
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14894$as_echo "yes" >&6; }
14895
23d56208 14896$as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
0e3762ca
CALP
14897
14898
14899else
14900 $as_echo "$as_me: failed program was:" >&5
14901sed 's/^/| /' conftest.$ac_ext >&5
14902
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14904$as_echo "no" >&6; }
14905
14906
14907
14908fi
14909 rm -Rf build
14910
14911
0e3762ca
CALP
14912
14913
23d56208
AX
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
14915$as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
0e3762ca
CALP
14916
14917
14918cat confdefs.h - <<_ACEOF >conftest.c
14919
14920
23d56208
AX
14921 #include <linux/xattr.h>
14922
14923 int get(struct dentry *dentry, const char *name,
14924 void *buffer, size_t size, int handler_flags) { return 0; }
14925 static const struct xattr_handler
14926 xops __attribute__ ((unused)) = {
14927 .get = get,
14928 };
0e3762ca
CALP
14929
14930int
14931main (void)
14932{
14933
0e3762ca
CALP
14934
14935 ;
14936 return 0;
14937}
14938
14939_ACEOF
14940
14941
23d56208
AX
14942
14943cat - <<_ACEOF >conftest.h
14944
14945_ACEOF
14946
14947
0e3762ca
CALP
14948 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14949 echo "obj-m := conftest.o" >build/Makefile
14950 modpost_flag=''
14951 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 14952 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
14953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14954 (eval $ac_try) 2>&5
14955 ac_status=$?
14956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14957 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14959 (eval $ac_try) 2>&5
14960 ac_status=$?
14961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14962 test $ac_status = 0; }; }; then :
14963
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14965$as_echo "yes" >&6; }
14966
23d56208 14967$as_echo "#define HAVE_DENTRY_XATTR_GET 1" >>confdefs.h
0e3762ca
CALP
14968
14969
14970else
14971 $as_echo "$as_me: failed program was:" >&5
14972sed 's/^/| /' conftest.$ac_ext >&5
14973
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14975$as_echo "no" >&6; }
14976
14977
14978
14979fi
14980 rm -Rf build
14981
14982
0e3762ca
CALP
14983
14984
23d56208
AX
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
14986$as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
0e3762ca
CALP
14987
14988
14989cat confdefs.h - <<_ACEOF >conftest.c
14990
14991
23d56208
AX
14992 #include <linux/xattr.h>
14993
14994 int set(struct dentry *dentry, const char *name,
14995 const void *buffer, size_t size, int flags,
14996 int handler_flags) { return 0; }
14997 static const struct xattr_handler
14998 xops __attribute__ ((unused)) = {
14999 .set = set,
15000 };
0e3762ca
CALP
15001
15002int
15003main (void)
15004{
15005
0e3762ca
CALP
15006
15007 ;
15008 return 0;
15009}
15010
15011_ACEOF
15012
15013
23d56208
AX
15014
15015cat - <<_ACEOF >conftest.h
15016
15017_ACEOF
15018
15019
0e3762ca
CALP
15020 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15021 echo "obj-m := conftest.o" >build/Makefile
15022 modpost_flag=''
15023 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 15024 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
15025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15026 (eval $ac_try) 2>&5
15027 ac_status=$?
15028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15029 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15031 (eval $ac_try) 2>&5
15032 ac_status=$?
15033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15034 test $ac_status = 0; }; }; then :
15035
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15037$as_echo "yes" >&6; }
15038
23d56208 15039$as_echo "#define HAVE_DENTRY_XATTR_SET 1" >>confdefs.h
0e3762ca
CALP
15040
15041
15042else
15043 $as_echo "$as_me: failed program was:" >&5
15044sed 's/^/| /' conftest.$ac_ext >&5
15045
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15047$as_echo "no" >&6; }
15048
15049
15050
15051fi
15052 rm -Rf build
15053
15054
0e3762ca
CALP
15055
15056
23d56208
AX
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
15058$as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
0e3762ca
CALP
15059
15060
15061cat confdefs.h - <<_ACEOF >conftest.c
15062
15063
23d56208
AX
15064 #include <linux/xattr.h>
15065
15066 size_t list(struct dentry *dentry, char *list, size_t list_size,
15067 const char *name, size_t name_len, int handler_flags)
15068 { return 0; }
15069 static const struct xattr_handler
15070 xops __attribute__ ((unused)) = {
15071 .list = list,
15072 };
0e3762ca
CALP
15073
15074int
15075main (void)
15076{
15077
0e3762ca
CALP
15078
15079 ;
15080 return 0;
15081}
15082
15083_ACEOF
15084
15085
23d56208
AX
15086
15087cat - <<_ACEOF >conftest.h
15088
15089_ACEOF
15090
15091
0e3762ca
CALP
15092 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15093 echo "obj-m := conftest.o" >build/Makefile
15094 modpost_flag=''
15095 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 15096 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
15097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15098 (eval $ac_try) 2>&5
15099 ac_status=$?
15100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15101 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15103 (eval $ac_try) 2>&5
15104 ac_status=$?
15105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15106 test $ac_status = 0; }; }; then :
15107
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15109$as_echo "yes" >&6; }
15110
23d56208 15111$as_echo "#define HAVE_DENTRY_XATTR_LIST 1" >>confdefs.h
0e3762ca
CALP
15112
15113
15114else
15115 $as_echo "$as_me: failed program was:" >&5
15116sed 's/^/| /' conftest.$ac_ext >&5
15117
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15119$as_echo "no" >&6; }
15120
15121
15122
15123fi
15124 rm -Rf build
15125
15126
0e3762ca
CALP
15127
15128
23d56208
AX
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
15130$as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
0e3762ca
CALP
15131
15132
15133cat confdefs.h - <<_ACEOF >conftest.c
15134
15135
23d56208 15136 #include <linux/fs.h>
0e3762ca
CALP
15137
15138int
15139main (void)
15140{
15141
23d56208
AX
15142 struct inode *ip = NULL;
15143 (void) inode_owner_or_capable(ip);
0e3762ca
CALP
15144
15145 ;
15146 return 0;
15147}
15148
15149_ACEOF
15150
15151
23d56208
AX
15152
15153cat - <<_ACEOF >conftest.h
15154
15155_ACEOF
15156
15157
0e3762ca
CALP
15158 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15159 echo "obj-m := conftest.o" >build/Makefile
15160 modpost_flag=''
15161 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 15162 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
15163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15164 (eval $ac_try) 2>&5
15165 ac_status=$?
15166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15167 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15169 (eval $ac_try) 2>&5
15170 ac_status=$?
15171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15172 test $ac_status = 0; }; }; then :
15173
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15175$as_echo "yes" >&6; }
15176
23d56208 15177$as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
0e3762ca
CALP
15178
15179
15180else
15181 $as_echo "$as_me: failed program was:" >&5
15182sed 's/^/| /' conftest.$ac_ext >&5
15183
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15185$as_echo "no" >&6; }
23d56208
AX
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
15187$as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
15188
15189
15190cat confdefs.h - <<_ACEOF >conftest.c
15191
15192
15193 #include <linux/fs.h>
15194 #include <linux/sched.h>
15195
15196int
15197main (void)
15198{
15199
15200 struct inode *ip = NULL;
15201 (void) is_owner_or_cap(ip);
15202
15203 ;
15204 return 0;
15205}
15206
15207_ACEOF
15208
15209
15210
15211cat - <<_ACEOF >conftest.h
15212
15213_ACEOF
15214
15215
15216 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15217 echo "obj-m := conftest.o" >build/Makefile
15218 modpost_flag=''
15219 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15220 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15222 (eval $ac_try) 2>&5
15223 ac_status=$?
15224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15225 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15227 (eval $ac_try) 2>&5
15228 ac_status=$?
15229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15230 test $ac_status = 0; }; }; then :
15231
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15233$as_echo "yes" >&6; }
15234
15235$as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
15236
15237
15238else
15239 $as_echo "$as_me: failed program was:" >&5
15240sed 's/^/| /' conftest.$ac_ext >&5
15241
15242 as_fn_error $? "no - Please file a bug report at
15243 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
0e3762ca
CALP
15244
15245
15246
15247fi
15248 rm -Rf build
15249
15250
0e3762ca
CALP
15251
15252
23d56208
AX
15253
15254fi
15255 rm -Rf build
15256
15257
15258
15259
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
15261$as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
0e3762ca
CALP
15262
15263
15264cat confdefs.h - <<_ACEOF >conftest.c
15265
15266
23d56208
AX
15267 #include <linux/cred.h>
15268 #include <linux/fs.h>
15269 #include <linux/posix_acl_xattr.h>
0e3762ca
CALP
15270
15271int
15272main (void)
15273{
15274
23d56208 15275 posix_acl_from_xattr(&init_user_ns, NULL, 0);
0e3762ca
CALP
15276
15277 ;
15278 return 0;
15279}
15280
15281_ACEOF
15282
15283
23d56208
AX
15284
15285cat - <<_ACEOF >conftest.h
15286
15287_ACEOF
15288
15289
0e3762ca
CALP
15290 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15291 echo "obj-m := conftest.o" >build/Makefile
15292 modpost_flag=''
15293 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 15294 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
15295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15296 (eval $ac_try) 2>&5
15297 ac_status=$?
15298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15299 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15301 (eval $ac_try) 2>&5
15302 ac_status=$?
15303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15304 test $ac_status = 0; }; }; then :
15305
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15307$as_echo "yes" >&6; }
15308
23d56208 15309$as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
0e3762ca
CALP
15310
15311
15312else
15313 $as_echo "$as_me: failed program was:" >&5
15314sed 's/^/| /' conftest.$ac_ext >&5
15315
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15317$as_echo "no" >&6; }
15318
15319
15320
15321fi
15322 rm -Rf build
15323
15324
15325
0e3762ca 15326
23d56208
AX
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
15328$as_echo_n "checking whether posix_acl_release() is available... " >&6; }
0e3762ca 15329
0e3762ca 15330
23d56208 15331cat confdefs.h - <<_ACEOF >conftest.c
0e3762ca 15332
0e3762ca 15333
23d56208
AX
15334 #include <linux/cred.h>
15335 #include <linux/fs.h>
15336 #include <linux/posix_acl.h>
0e3762ca
CALP
15337
15338int
15339main (void)
15340{
15341
23d56208
AX
15342 struct posix_acl* tmp = posix_acl_alloc(1, 0);
15343 posix_acl_release(tmp);
0e3762ca
CALP
15344
15345 ;
15346 return 0;
15347}
15348
15349_ACEOF
15350
15351
23d56208
AX
15352
15353cat - <<_ACEOF >conftest.h
15354
15355_ACEOF
15356
15357
0e3762ca
CALP
15358 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15359 echo "obj-m := conftest.o" >build/Makefile
15360 modpost_flag=''
15361 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 15362 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
15363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15364 (eval $ac_try) 2>&5
15365 ac_status=$?
15366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15367 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15369 (eval $ac_try) 2>&5
15370 ac_status=$?
15371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15372 test $ac_status = 0; }; }; then :
15373
23d56208
AX
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15375$as_echo "yes" >&6; }
15376
15377$as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
15378
0e3762ca
CALP
15379
15380else
15381 $as_echo "$as_me: failed program was:" >&5
15382sed 's/^/| /' conftest.$ac_ext >&5
15383
23d56208
AX
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15385$as_echo "no" >&6; }
0e3762ca
CALP
15386
15387
15388
15389fi
15390 rm -Rf build
15391
15392
0e3762ca 15393
23d56208
AX
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
15395$as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
0e3762ca
CALP
15396
15397
15398cat confdefs.h - <<_ACEOF >conftest.c
15399
15400
23d56208
AX
15401 #include <linux/cred.h>
15402 #include <linux/fs.h>
15403 #include <linux/posix_acl.h>
15404
15405 MODULE_LICENSE("$ZFS_META_LICENSE");
0e3762ca
CALP
15406
15407int
15408main (void)
15409{
15410
23d56208
AX
15411 struct posix_acl* tmp = posix_acl_alloc(1, 0);
15412 posix_acl_release(tmp);
0e3762ca
CALP
15413
15414 ;
15415 return 0;
15416}
15417
15418_ACEOF
15419
15420
23d56208
AX
15421
15422cat - <<_ACEOF >conftest.h
15423
15424_ACEOF
15425
15426
0e3762ca
CALP
15427 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15428 echo "obj-m := conftest.o" >build/Makefile
15429 modpost_flag=''
15430 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 15431 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
15432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15433 (eval $ac_try) 2>&5
15434 ac_status=$?
15435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15436 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15438 (eval $ac_try) 2>&5
15439 ac_status=$?
15440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15441 test $ac_status = 0; }; }; then :
15442
23d56208
AX
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15444$as_echo "no" >&6; }
0e3762ca
CALP
15445
15446else
15447 $as_echo "$as_me: failed program was:" >&5
15448sed 's/^/| /' conftest.$ac_ext >&5
15449
23d56208
AX
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15451$as_echo "yes" >&6; }
15452
15453$as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
15454
0e3762ca
CALP
15455
15456
15457
15458fi
15459 rm -Rf build
15460
15461
0e3762ca
CALP
15462
15463
23d56208
AX
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
15465$as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
0e3762ca
CALP
15466
15467
15468cat confdefs.h - <<_ACEOF >conftest.c
15469
15470
23d56208
AX
15471 #include <linux/fs.h>
15472 #include <linux/posix_acl.h>
0e3762ca
CALP
15473
15474int
15475main (void)
15476{
15477
23d56208 15478 posix_acl_chmod(NULL, 0, 0)
0e3762ca
CALP
15479
15480 ;
15481 return 0;
15482}
15483
15484_ACEOF
15485
15486
23d56208
AX
15487
15488cat - <<_ACEOF >conftest.h
15489
15490_ACEOF
15491
15492
0e3762ca
CALP
15493 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15494 echo "obj-m := conftest.o" >build/Makefile
15495 modpost_flag=''
15496 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 15497 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
15498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15499 (eval $ac_try) 2>&5
15500 ac_status=$?
15501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15502 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15504 (eval $ac_try) 2>&5
15505 ac_status=$?
15506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15507 test $ac_status = 0; }; }; then :
15508
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15510$as_echo "yes" >&6; }
15511
23d56208 15512$as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
0e3762ca
CALP
15513
15514
15515else
15516 $as_echo "$as_me: failed program was:" >&5
15517sed 's/^/| /' conftest.$ac_ext >&5
15518
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15520$as_echo "no" >&6; }
15521
15522
15523
15524fi
15525 rm -Rf build
15526
15527
0e3762ca 15528
23d56208
AX
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
15530$as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
0e3762ca
CALP
15531
15532
15533cat confdefs.h - <<_ACEOF >conftest.c
15534
15535
23d56208
AX
15536 #include <linux/fs.h>
15537 #include <linux/posix_acl.h>
0e3762ca
CALP
15538
15539int
15540main (void)
15541{
15542
23d56208 15543 __posix_acl_chmod(NULL, 0, 0)
0e3762ca
CALP
15544
15545 ;
15546 return 0;
15547}
15548
15549_ACEOF
15550
15551
23d56208
AX
15552
15553cat - <<_ACEOF >conftest.h
15554
15555_ACEOF
15556
15557
0e3762ca
CALP
15558 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15559 echo "obj-m := conftest.o" >build/Makefile
15560 modpost_flag=''
15561 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 15562 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
15563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15564 (eval $ac_try) 2>&5
15565 ac_status=$?
15566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15567 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
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; }; }; then :
15573
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15575$as_echo "yes" >&6; }
15576
23d56208 15577$as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
0e3762ca
CALP
15578
15579
15580else
15581 $as_echo "$as_me: failed program was:" >&5
15582sed 's/^/| /' conftest.$ac_ext >&5
15583
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15585$as_echo "no" >&6; }
15586
15587
15588
15589fi
15590 rm -Rf build
15591
15592
0e3762ca 15593
0e3762ca 15594
23d56208
AX
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode has i_acl and i_default_acl" >&5
15596$as_echo_n "checking whether inode has i_acl and i_default_acl... " >&6; }
0e3762ca
CALP
15597
15598
15599cat confdefs.h - <<_ACEOF >conftest.c
15600
15601
23d56208 15602 #include <linux/fs.h>
0e3762ca
CALP
15603
15604int
15605main (void)
15606{
15607
23d56208
AX
15608 struct inode ino;
15609 ino.i_acl = NULL;
15610 ino.i_default_acl = NULL;
0e3762ca
CALP
15611
15612 ;
15613 return 0;
15614}
15615
15616_ACEOF
15617
15618
23d56208
AX
15619
15620cat - <<_ACEOF >conftest.h
15621
15622_ACEOF
15623
15624
0e3762ca
CALP
15625 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15626 echo "obj-m := conftest.o" >build/Makefile
15627 modpost_flag=''
15628 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 15629 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
15630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15631 (eval $ac_try) 2>&5
15632 ac_status=$?
15633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15634 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15636 (eval $ac_try) 2>&5
15637 ac_status=$?
15638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15639 test $ac_status = 0; }; }; then :
23d56208
AX
15640
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15642$as_echo "yes" >&6; }
15643
15644$as_echo "#define HAVE_POSIX_ACL_CACHING 1" >>confdefs.h
15645
15646
0e3762ca
CALP
15647else
15648 $as_echo "$as_me: failed program was:" >&5
15649sed 's/^/| /' conftest.$ac_ext >&5
23d56208
AX
15650
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15652$as_echo "no" >&6; }
15653
0e3762ca
CALP
15654
15655
15656fi
15657 rm -Rf build
15658
15659
0e3762ca 15660
0e3762ca 15661
23d56208
AX
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
15663$as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
0e3762ca
CALP
15664
15665
15666cat confdefs.h - <<_ACEOF >conftest.c
15667
15668
23d56208
AX
15669 #include <linux/fs.h>
15670 #include <linux/posix_acl.h>
0e3762ca
CALP
15671
15672int
15673main (void)
15674{
15675
23d56208
AX
15676 umode_t tmp;
15677 posix_acl_equiv_mode(NULL,&tmp);
0e3762ca
CALP
15678
15679 ;
15680 return 0;
15681}
15682
15683_ACEOF
15684
15685
23d56208
AX
15686
15687cat - <<_ACEOF >conftest.h
15688
15689_ACEOF
15690
15691
0e3762ca
CALP
15692 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15693 echo "obj-m := conftest.o" >build/Makefile
15694 modpost_flag=''
15695 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 15696 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
15697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15698 (eval $ac_try) 2>&5
15699 ac_status=$?
15700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15701 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15703 (eval $ac_try) 2>&5
15704 ac_status=$?
15705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15706 test $ac_status = 0; }; }; then :
15707
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15709$as_echo "yes" >&6; }
15710
23d56208 15711$as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
0e3762ca
CALP
15712
15713
15714else
15715 $as_echo "$as_me: failed program was:" >&5
15716sed 's/^/| /' conftest.$ac_ext >&5
15717
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15719$as_echo "no" >&6; }
15720
15721
15722
15723fi
15724 rm -Rf build
15725
15726
0e3762ca
CALP
15727
15728
23d56208
AX
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
15730$as_echo_n "checking whether iops->permission() exists... " >&6; }
0e3762ca
CALP
15731
15732
15733cat confdefs.h - <<_ACEOF >conftest.c
15734
15735
23d56208
AX
15736 #include <linux/fs.h>
15737
15738 int permission_fn(struct inode *inode, int mask) { return 0; }
15739
15740 static const struct inode_operations
15741 iops __attribute__ ((unused)) = {
15742 .permission = permission_fn,
15743 };
0e3762ca
CALP
15744
15745int
15746main (void)
15747{
15748
0e3762ca
CALP
15749
15750 ;
15751 return 0;
15752}
15753
15754_ACEOF
15755
15756
23d56208
AX
15757
15758cat - <<_ACEOF >conftest.h
15759
15760_ACEOF
15761
15762
0e3762ca
CALP
15763 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15764 echo "obj-m := conftest.o" >build/Makefile
15765 modpost_flag=''
15766 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 15767 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
15768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15769 (eval $ac_try) 2>&5
15770 ac_status=$?
15771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15772 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15774 (eval $ac_try) 2>&5
15775 ac_status=$?
15776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15777 test $ac_status = 0; }; }; then :
15778
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15780$as_echo "yes" >&6; }
15781
23d56208 15782$as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
0e3762ca
CALP
15783
15784
15785else
15786 $as_echo "$as_me: failed program was:" >&5
15787sed 's/^/| /' conftest.$ac_ext >&5
15788
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15790$as_echo "no" >&6; }
15791
15792
15793
15794fi
15795 rm -Rf build
15796
15797
0e3762ca
CALP
15798
15799
23d56208
AX
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
15801$as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
0e3762ca
CALP
15802
15803
15804cat confdefs.h - <<_ACEOF >conftest.c
15805
15806
23d56208
AX
15807 #include <linux/fs.h>
15808
15809 int permission_fn(struct inode *inode, int mask,
15810 struct nameidata *nd) { return 0; }
15811
15812 static const struct inode_operations
15813 iops __attribute__ ((unused)) = {
15814 .permission = permission_fn,
15815 };
0e3762ca
CALP
15816
15817int
15818main (void)
15819{
15820
0e3762ca
CALP
15821
15822 ;
15823 return 0;
15824}
15825
15826_ACEOF
15827
15828
23d56208
AX
15829
15830cat - <<_ACEOF >conftest.h
15831
15832_ACEOF
15833
15834
0e3762ca
CALP
15835 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15836 echo "obj-m := conftest.o" >build/Makefile
15837 modpost_flag=''
15838 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 15839 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
15840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15841 (eval $ac_try) 2>&5
15842 ac_status=$?
15843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15844 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15846 (eval $ac_try) 2>&5
15847 ac_status=$?
15848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15849 test $ac_status = 0; }; }; then :
15850
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15852$as_echo "yes" >&6; }
15853
23d56208
AX
15854$as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
15855
15856
15857$as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
0e3762ca
CALP
15858
15859
15860else
15861 $as_echo "$as_me: failed program was:" >&5
15862sed 's/^/| /' conftest.$ac_ext >&5
15863
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15865$as_echo "no" >&6; }
15866
15867
15868
15869fi
15870 rm -Rf build
15871
15872
15873
23d56208
AX
15874
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
15876$as_echo_n "checking whether iops->check_acl() exists... " >&6; }
0e3762ca
CALP
15877
15878
15879cat confdefs.h - <<_ACEOF >conftest.c
15880
15881
15882 #include <linux/fs.h>
0e3762ca 15883
23d56208 15884 int check_acl_fn(struct inode *inode, int mask) { return 0; }
0e3762ca 15885
23d56208
AX
15886 static const struct inode_operations
15887 iops __attribute__ ((unused)) = {
15888 .check_acl = check_acl_fn,
0e3762ca
CALP
15889 };
15890
15891int
15892main (void)
15893{
15894
0e3762ca
CALP
15895
15896 ;
15897 return 0;
15898}
15899
15900_ACEOF
15901
15902
23d56208
AX
15903
15904cat - <<_ACEOF >conftest.h
15905
15906_ACEOF
15907
15908
0e3762ca
CALP
15909 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15910 echo "obj-m := conftest.o" >build/Makefile
15911 modpost_flag=''
15912 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 15913 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
15914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15915 (eval $ac_try) 2>&5
15916 ac_status=$?
15917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15918 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15920 (eval $ac_try) 2>&5
15921 ac_status=$?
15922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15923 test $ac_status = 0; }; }; then :
15924
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15926$as_echo "yes" >&6; }
15927
23d56208 15928$as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
0e3762ca
CALP
15929
15930
15931else
15932 $as_echo "$as_me: failed program was:" >&5
15933sed 's/^/| /' conftest.$ac_ext >&5
15934
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15936$as_echo "no" >&6; }
15937
15938
15939
15940fi
15941 rm -Rf build
15942
15943
15944
15945
23d56208
AX
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
15947$as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
0e3762ca
CALP
15948
15949
15950cat confdefs.h - <<_ACEOF >conftest.c
15951
15952
23d56208
AX
15953 #include <linux/fs.h>
15954
15955 int check_acl_fn(struct inode *inode, int mask,
15956 unsigned int flags) { return 0; }
15957
15958 static const struct inode_operations
15959 iops __attribute__ ((unused)) = {
15960 .check_acl = check_acl_fn,
15961 };
0e3762ca
CALP
15962
15963int
15964main (void)
15965{
15966
0e3762ca
CALP
15967
15968 ;
15969 return 0;
15970}
15971
15972_ACEOF
15973
15974
23d56208
AX
15975
15976cat - <<_ACEOF >conftest.h
15977
15978_ACEOF
15979
15980
0e3762ca
CALP
15981 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15982 echo "obj-m := conftest.o" >build/Makefile
15983 modpost_flag=''
15984 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 15985 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
15986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15987 (eval $ac_try) 2>&5
15988 ac_status=$?
15989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15990 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15992 (eval $ac_try) 2>&5
15993 ac_status=$?
15994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15995 test $ac_status = 0; }; }; then :
15996
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15998$as_echo "yes" >&6; }
15999
23d56208
AX
16000$as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
16001
16002
16003$as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
0e3762ca
CALP
16004
16005
16006else
16007 $as_echo "$as_me: failed program was:" >&5
16008sed 's/^/| /' conftest.$ac_ext >&5
16009
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16011$as_echo "no" >&6; }
16012
16013
16014
16015fi
16016 rm -Rf build
16017
16018
16019
16020
23d56208
AX
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
16022$as_echo_n "checking whether iops->get_acl() exists... " >&6; }
0e3762ca
CALP
16023
16024
16025cat confdefs.h - <<_ACEOF >conftest.c
16026
16027
23d56208
AX
16028 #include <linux/fs.h>
16029
16030 struct posix_acl *get_acl_fn(struct inode *inode, int type)
16031 { return NULL; }
16032
16033 static const struct inode_operations
16034 iops __attribute__ ((unused)) = {
16035 .get_acl = get_acl_fn,
16036 };
0e3762ca
CALP
16037
16038int
16039main (void)
16040{
16041
0e3762ca
CALP
16042
16043 ;
16044 return 0;
16045}
16046
16047_ACEOF
16048
16049
23d56208
AX
16050
16051cat - <<_ACEOF >conftest.h
16052
16053_ACEOF
16054
16055
0e3762ca
CALP
16056 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16057 echo "obj-m := conftest.o" >build/Makefile
16058 modpost_flag=''
16059 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 16060 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
16061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16062 (eval $ac_try) 2>&5
16063 ac_status=$?
16064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16065 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16067 (eval $ac_try) 2>&5
16068 ac_status=$?
16069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16070 test $ac_status = 0; }; }; then :
16071
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16073$as_echo "yes" >&6; }
16074
23d56208 16075$as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
0e3762ca
CALP
16076
16077
16078else
16079 $as_echo "$as_me: failed program was:" >&5
16080sed 's/^/| /' conftest.$ac_ext >&5
16081
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16083$as_echo "no" >&6; }
16084
16085
16086
16087fi
16088 rm -Rf build
16089
16090
16091
16092
23d56208
AX
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_umask exists" >&5
16094$as_echo_n "checking whether current_umask exists... " >&6; }
0e3762ca
CALP
16095
16096
16097cat confdefs.h - <<_ACEOF >conftest.c
16098
16099
16100 #include <linux/fs.h>
16101
0e3762ca
CALP
16102int
16103main (void)
16104{
16105
23d56208 16106 current_umask();
0e3762ca
CALP
16107
16108 ;
16109 return 0;
16110}
16111
16112_ACEOF
16113
16114
23d56208
AX
16115
16116cat - <<_ACEOF >conftest.h
16117
16118_ACEOF
16119
16120
0e3762ca
CALP
16121 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16122 echo "obj-m := conftest.o" >build/Makefile
16123 modpost_flag=''
16124 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 16125 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
16126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16127 (eval $ac_try) 2>&5
16128 ac_status=$?
16129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16130 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16132 (eval $ac_try) 2>&5
16133 ac_status=$?
16134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16135 test $ac_status = 0; }; }; then :
16136
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16138$as_echo "yes" >&6; }
16139
23d56208 16140$as_echo "#define HAVE_CURRENT_UMASK 1" >>confdefs.h
0e3762ca
CALP
16141
16142
16143else
16144 $as_echo "$as_me: failed program was:" >&5
16145sed 's/^/| /' conftest.$ac_ext >&5
16146
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16148$as_echo "no" >&6; }
16149
16150
16151
16152fi
16153 rm -Rf build
16154
16155
16156
16157
23d56208
AX
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
16159$as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
0e3762ca
CALP
16160
16161
16162
16163cat confdefs.h - <<_ACEOF >conftest.c
16164
16165
16166 #include <linux/fs.h>
16167
23d56208
AX
16168 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
16169 static struct super_operations sops __attribute__ ((unused)) = {
16170 .show_options = show_options,
0e3762ca
CALP
16171 };
16172
16173int
16174main (void)
16175{
16176
16177
16178 ;
16179 return 0;
16180}
16181
16182_ACEOF
16183
16184
23d56208
AX
16185
16186cat - <<_ACEOF >conftest.h
16187
16188_ACEOF
16189
16190
0e3762ca
CALP
16191 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16192 echo "obj-m := conftest.o" >build/Makefile
16193 modpost_flag=''
16194 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 16195 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
16196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16197 (eval $ac_try) 2>&5
16198 ac_status=$?
16199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16200 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16202 (eval $ac_try) 2>&5
16203 ac_status=$?
16204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16205 test $ac_status = 0; }; }; then :
16206
23d56208
AX
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16208$as_echo "yes" >&6; }
0e3762ca 16209
23d56208 16210$as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
0e3762ca
CALP
16211
16212
16213else
16214 $as_echo "$as_me: failed program was:" >&5
16215sed 's/^/| /' conftest.$ac_ext >&5
16216
23d56208
AX
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16218$as_echo "no" >&6; }
0e3762ca
CALP
16219
16220
16221
16222fi
16223 rm -Rf build
16224
16225
16226
16227
23d56208
AX
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
16229$as_echo_n "checking whether file_inode() is available... " >&6; }
0e3762ca
CALP
16230
16231
16232cat confdefs.h - <<_ACEOF >conftest.c
16233
16234
16235 #include <linux/fs.h>
16236
0e3762ca
CALP
16237int
16238main (void)
16239{
16240
23d56208
AX
16241 struct file *f = NULL;
16242 file_inode(f);
0e3762ca
CALP
16243
16244 ;
16245 return 0;
16246}
16247
16248_ACEOF
16249
16250
23d56208
AX
16251
16252cat - <<_ACEOF >conftest.h
16253
16254_ACEOF
16255
16256
0e3762ca
CALP
16257 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16258 echo "obj-m := conftest.o" >build/Makefile
16259 modpost_flag=''
16260 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 16261 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
16262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16263 (eval $ac_try) 2>&5
16264 ac_status=$?
16265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16266 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16268 (eval $ac_try) 2>&5
16269 ac_status=$?
16270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16271 test $ac_status = 0; }; }; then :
16272
23d56208
AX
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16274$as_echo "yes" >&6; }
0e3762ca 16275
23d56208 16276$as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
0e3762ca
CALP
16277
16278
16279else
16280 $as_echo "$as_me: failed program was:" >&5
16281sed 's/^/| /' conftest.$ac_ext >&5
16282
23d56208
AX
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16284$as_echo "no" >&6; }
0e3762ca
CALP
16285
16286
16287
16288fi
16289 rm -Rf build
16290
16291
16292
16293
23d56208
AX
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
16295$as_echo_n "checking whether fops->fsync() wants... " >&6; }
16296
0e3762ca
CALP
16297
16298
16299cat confdefs.h - <<_ACEOF >conftest.c
16300
16301
16302 #include <linux/fs.h>
16303
23d56208 16304 int test_fsync(struct file *f, struct dentry *dentry, int x)
0e3762ca
CALP
16305 { return 0; }
16306
16307 static const struct file_operations
16308 fops __attribute__ ((unused)) = {
16309 .fsync = test_fsync,
16310 };
16311
16312int
16313main (void)
16314{
16315
16316
16317 ;
16318 return 0;
16319}
16320
16321_ACEOF
16322
16323
23d56208
AX
16324
16325cat - <<_ACEOF >conftest.h
16326
16327_ACEOF
16328
16329
0e3762ca
CALP
16330 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16331 echo "obj-m := conftest.o" >build/Makefile
16332 modpost_flag=''
16333 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 16334 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
16335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16336 (eval $ac_try) 2>&5
16337 ac_status=$?
16338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16339 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16341 (eval $ac_try) 2>&5
16342 ac_status=$?
16343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16344 test $ac_status = 0; }; }; then :
16345
23d56208
AX
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
16347$as_echo "dentry" >&6; }
0e3762ca 16348
23d56208 16349$as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
0e3762ca
CALP
16350
16351
16352else
16353 $as_echo "$as_me: failed program was:" >&5
16354sed 's/^/| /' conftest.$ac_ext >&5
16355
16356
16357
16358
16359fi
16360 rm -Rf build
16361
16362
16363
16364
16365
0e3762ca
CALP
16366
16367cat confdefs.h - <<_ACEOF >conftest.c
16368
16369
16370 #include <linux/fs.h>
23d56208
AX
16371
16372 int test_fsync(struct file *f, int x) { return 0; }
16373
16374 static const struct file_operations
16375 fops __attribute__ ((unused)) = {
16376 .fsync = test_fsync,
0e3762ca
CALP
16377 };
16378
16379int
16380main (void)
16381{
16382
16383
16384 ;
16385 return 0;
16386}
16387
16388_ACEOF
16389
16390
23d56208
AX
16391
16392cat - <<_ACEOF >conftest.h
16393
16394_ACEOF
16395
16396
0e3762ca
CALP
16397 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16398 echo "obj-m := conftest.o" >build/Makefile
16399 modpost_flag=''
16400 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 16401 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
16402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16403 (eval $ac_try) 2>&5
16404 ac_status=$?
16405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16406 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16408 (eval $ac_try) 2>&5
16409 ac_status=$?
16410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16411 test $ac_status = 0; }; }; then :
16412
23d56208
AX
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
16414$as_echo "no dentry" >&6; }
0e3762ca 16415
23d56208 16416$as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
0e3762ca
CALP
16417
16418
16419else
16420 $as_echo "$as_me: failed program was:" >&5
16421sed 's/^/| /' conftest.$ac_ext >&5
16422
0e3762ca
CALP
16423
16424
16425
16426fi
16427 rm -Rf build
16428
16429
16430
16431
0e3762ca
CALP
16432
16433
16434cat confdefs.h - <<_ACEOF >conftest.c
16435
16436
16437 #include <linux/fs.h>
16438
23d56208
AX
16439 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
16440 { return 0; }
0e3762ca 16441
23d56208
AX
16442 static const struct file_operations
16443 fops __attribute__ ((unused)) = {
16444 .fsync = test_fsync,
0e3762ca
CALP
16445 };
16446
16447int
16448main (void)
16449{
16450
16451
16452 ;
16453 return 0;
16454}
16455
16456_ACEOF
16457
16458
23d56208
AX
16459
16460cat - <<_ACEOF >conftest.h
16461
16462_ACEOF
16463
16464
16465 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16466 echo "obj-m := conftest.o" >build/Makefile
16467 modpost_flag=''
16468 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16469 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16471 (eval $ac_try) 2>&5
16472 ac_status=$?
16473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16474 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16476 (eval $ac_try) 2>&5
16477 ac_status=$?
16478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16479 test $ac_status = 0; }; }; then :
16480
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
16482$as_echo "range" >&6; }
16483
16484$as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
16485
16486
16487else
16488 $as_echo "$as_me: failed program was:" >&5
16489sed 's/^/| /' conftest.$ac_ext >&5
16490
16491
16492
16493
16494fi
16495 rm -Rf build
16496
16497
16498
16499
16500
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
16502$as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
16503
16504
16505cat confdefs.h - <<_ACEOF >conftest.c
16506
16507
16508 #include <linux/fs.h>
16509 void evict_inode (struct inode * t) { return; }
16510 static struct super_operations sops __attribute__ ((unused)) = {
16511 .evict_inode = evict_inode,
16512 };
16513
16514int
16515main (void)
16516{
16517
16518
16519 ;
16520 return 0;
16521}
16522
16523_ACEOF
16524
16525
16526
16527cat - <<_ACEOF >conftest.h
16528
16529_ACEOF
16530
16531
16532 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16533 echo "obj-m := conftest.o" >build/Makefile
16534 modpost_flag=''
16535 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16536 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16541 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16543 (eval $ac_try) 2>&5
16544 ac_status=$?
16545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16546 test $ac_status = 0; }; }; then :
16547
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16549$as_echo "yes" >&6; }
16550
16551$as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
16552
16553
16554else
16555 $as_echo "$as_me: failed program was:" >&5
16556sed 's/^/| /' conftest.$ac_ext >&5
16557
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16559$as_echo "no" >&6; }
16560
16561
16562
16563fi
16564 rm -Rf build
16565
16566
16567
16568
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
16570$as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
16571
16572
16573cat confdefs.h - <<_ACEOF >conftest.c
16574
16575
16576 #include <linux/fs.h>
16577
16578 void dirty_inode(struct inode *a, int b) { return; }
16579
16580 static const struct super_operations
16581 sops __attribute__ ((unused)) = {
16582 .dirty_inode = dirty_inode,
16583 };
16584
16585int
16586main (void)
16587{
16588
16589
16590 ;
16591 return 0;
16592}
16593
16594_ACEOF
16595
16596
16597
16598cat - <<_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'
0e3762ca
CALP
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_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
16623
16624
16625else
16626 $as_echo "$as_me: failed program was:" >&5
16627sed '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
16634fi
16635 rm -Rf build
16636
16637
16638
16639
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
16641$as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
16642
16643
16644cat confdefs.h - <<_ACEOF >conftest.c
16645
16646
16647 #include <linux/fs.h>
16648
16649 int nr_cached_objects(struct super_block *sb) { return 0; }
16650
16651 static const struct super_operations
16652 sops __attribute__ ((unused)) = {
16653 .nr_cached_objects = nr_cached_objects,
16654 };
16655
16656int
16657main (void)
16658{
16659
16660
16661 ;
16662 return 0;
16663}
16664
16665_ACEOF
16666
16667
23d56208
AX
16668
16669cat - <<_ACEOF >conftest.h
16670
16671_ACEOF
16672
16673
0e3762ca
CALP
16674 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16675 echo "obj-m := conftest.o" >build/Makefile
16676 modpost_flag=''
16677 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 16678 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
16679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16680 (eval $ac_try) 2>&5
16681 ac_status=$?
16682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16683 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16685 (eval $ac_try) 2>&5
16686 ac_status=$?
16687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16688 test $ac_status = 0; }; }; then :
16689
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16691$as_echo "yes" >&6; }
16692
16693$as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
16694
16695
16696else
16697 $as_echo "$as_me: failed program was:" >&5
16698sed 's/^/| /' conftest.$ac_ext >&5
16699
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16701$as_echo "no" >&6; }
16702
16703
16704
16705fi
16706 rm -Rf build
16707
16708
16709
16710
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
16712$as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
16713
16714
16715cat confdefs.h - <<_ACEOF >conftest.c
16716
16717
16718 #include <linux/fs.h>
16719
16720 void free_cached_objects(struct super_block *sb, int x)
16721 { return; }
16722
16723 static const struct super_operations
16724 sops __attribute__ ((unused)) = {
16725 .free_cached_objects = free_cached_objects,
16726 };
16727
16728int
16729main (void)
16730{
16731
16732
16733 ;
16734 return 0;
16735}
16736
16737_ACEOF
16738
16739
23d56208
AX
16740
16741cat - <<_ACEOF >conftest.h
16742
16743_ACEOF
16744
16745
0e3762ca
CALP
16746 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16747 echo "obj-m := conftest.o" >build/Makefile
16748 modpost_flag=''
16749 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 16750 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16757 (eval $ac_try) 2>&5
16758 ac_status=$?
16759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16760 test $ac_status = 0; }; }; then :
16761
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16763$as_echo "yes" >&6; }
16764
16765$as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
16766
16767
16768else
16769 $as_echo "$as_me: failed program was:" >&5
16770sed 's/^/| /' conftest.$ac_ext >&5
16771
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16773$as_echo "no" >&6; }
16774
16775
16776
16777fi
16778 rm -Rf build
16779
16780
16781
16782
16783
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
16785$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
16786
16787
16788cat confdefs.h - <<_ACEOF >conftest.c
16789
16790
16791 #include <linux/fs.h>
16792
16793 long test_fallocate(struct file *file, int mode,
16794 loff_t offset, loff_t len) { return 0; }
16795
16796 static const struct file_operations
16797 fops __attribute__ ((unused)) = {
16798 .fallocate = test_fallocate,
16799 };
16800
16801int
16802main (void)
16803{
16804
16805
16806 ;
16807 return 0;
16808}
16809
16810_ACEOF
16811
16812
23d56208
AX
16813
16814cat - <<_ACEOF >conftest.h
16815
16816_ACEOF
16817
16818
0e3762ca
CALP
16819 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16820 echo "obj-m := conftest.o" >build/Makefile
16821 modpost_flag=''
16822 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 16823 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
16824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16825 (eval $ac_try) 2>&5
16826 ac_status=$?
16827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16828 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16830 (eval $ac_try) 2>&5
16831 ac_status=$?
16832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16833 test $ac_status = 0; }; }; then :
16834
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16836$as_echo "yes" >&6; }
16837
16838$as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
16839
16840
16841else
16842 $as_echo "$as_me: failed program was:" >&5
16843sed 's/^/| /' conftest.$ac_ext >&5
16844
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16846$as_echo "no" >&6; }
16847
16848
16849
16850fi
16851 rm -Rf build
16852
16853
16854
16855
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
16857$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
16858
16859
16860cat confdefs.h - <<_ACEOF >conftest.c
16861
16862
16863 #include <linux/fs.h>
16864
16865 long test_fallocate(struct inode *inode, int mode,
16866 loff_t offset, loff_t len) { return 0; }
16867
16868 static const struct inode_operations
16869 fops __attribute__ ((unused)) = {
16870 .fallocate = test_fallocate,
16871 };
16872
16873int
16874main (void)
16875{
16876
16877
16878 ;
16879 return 0;
16880}
16881
16882_ACEOF
16883
16884
23d56208
AX
16885
16886cat - <<_ACEOF >conftest.h
16887
16888_ACEOF
16889
16890
0e3762ca
CALP
16891 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16892 echo "obj-m := conftest.o" >build/Makefile
16893 modpost_flag=''
16894 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 16895 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
16896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16897 (eval $ac_try) 2>&5
16898 ac_status=$?
16899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16900 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16902 (eval $ac_try) 2>&5
16903 ac_status=$?
16904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16905 test $ac_status = 0; }; }; then :
16906
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16908$as_echo "yes" >&6; }
16909
16910$as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
16911
16912
16913else
16914 $as_echo "$as_me: failed program was:" >&5
16915sed 's/^/| /' conftest.$ac_ext >&5
16916
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16918$as_echo "no" >&6; }
16919
16920
16921
16922fi
16923 rm -Rf build
16924
16925
16926
16927
16928
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
16930$as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
16931
16932
16933cat confdefs.h - <<_ACEOF >conftest.c
16934
16935
16936 #include <linux/fs.h>
16937
16938 int mkdir(struct inode *inode, struct dentry *dentry,
16939 umode_t umode) { return 0; }
16940
16941 static const struct inode_operations
16942 iops __attribute__ ((unused)) = {
16943 .mkdir = mkdir,
16944 };
16945
16946int
16947main (void)
16948{
16949
16950
16951 ;
16952 return 0;
16953}
16954
16955_ACEOF
16956
16957
23d56208
AX
16958
16959cat - <<_ACEOF >conftest.h
16960
16961_ACEOF
16962
16963
0e3762ca
CALP
16964 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16965 echo "obj-m := conftest.o" >build/Makefile
16966 modpost_flag=''
16967 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 16968 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16975 (eval $ac_try) 2>&5
16976 ac_status=$?
16977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16978 test $ac_status = 0; }; }; then :
16979
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16981$as_echo "yes" >&6; }
16982
16983$as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
16984
16985
16986else
16987 $as_echo "$as_me: failed program was:" >&5
16988sed 's/^/| /' conftest.$ac_ext >&5
16989
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16991$as_echo "no" >&6; }
16992
16993
16994
16995fi
16996 rm -Rf build
16997
16998
16999
17000
23d56208
AX
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
17002$as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
0e3762ca
CALP
17003
17004
17005cat confdefs.h - <<_ACEOF >conftest.c
17006
17007
17008 #include <linux/fs.h>
17009
17010 struct dentry *inode_lookup(struct inode *inode,
17011 struct dentry *dentry, struct nameidata *nidata)
17012 { return NULL; }
17013
17014 static const struct inode_operations iops
17015 __attribute__ ((unused)) = {
17016 .lookup = inode_lookup,
17017 };
17018
17019int
17020main (void)
17021{
17022
17023
17024 ;
17025 return 0;
17026}
17027
17028_ACEOF
17029
17030
23d56208
AX
17031
17032cat - <<_ACEOF >conftest.h
17033
17034_ACEOF
17035
17036
0e3762ca
CALP
17037 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17038 echo "obj-m := conftest.o" >build/Makefile
17039 modpost_flag=''
17040 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 17041 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
17042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17043 (eval $ac_try) 2>&5
17044 ac_status=$?
17045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17046 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17048 (eval $ac_try) 2>&5
17049 ac_status=$?
17050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17051 test $ac_status = 0; }; }; then :
17052
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17054$as_echo "yes" >&6; }
17055
17056$as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
17057
17058
17059else
17060 $as_echo "$as_me: failed program was:" >&5
17061sed 's/^/| /' conftest.$ac_ext >&5
17062
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17064$as_echo "no" >&6; }
17065
17066
17067
17068fi
17069 rm -Rf build
17070
17071
17072
17073
23d56208
AX
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
17075$as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
0e3762ca
CALP
17076
17077
17078cat confdefs.h - <<_ACEOF >conftest.c
17079
17080
17081 #include <linux/fs.h>
17082
17083 #ifdef HAVE_MKDIR_UMODE_T
17084 int inode_create(struct inode *inode ,struct dentry *dentry,
17085 umode_t umode, struct nameidata *nidata) { return 0; }
17086 #else
17087 int inode_create(struct inode *inode,struct dentry *dentry,
17088 int umode, struct nameidata * nidata) { return 0; }
17089 #endif
17090
17091 static const struct inode_operations
17092 iops __attribute__ ((unused)) = {
17093 .create = inode_create,
17094 };
17095
17096int
17097main (void)
17098{
17099
17100
17101 ;
17102 return 0;
17103}
17104
17105_ACEOF
17106
17107
23d56208
AX
17108
17109cat - <<_ACEOF >conftest.h
17110
17111_ACEOF
17112
17113
0e3762ca
CALP
17114 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17115 echo "obj-m := conftest.o" >build/Makefile
17116 modpost_flag=''
17117 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 17118 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
17119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17120 (eval $ac_try) 2>&5
17121 ac_status=$?
17122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17123 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17125 (eval $ac_try) 2>&5
17126 ac_status=$?
17127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17128 test $ac_status = 0; }; }; then :
17129
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17131$as_echo "yes" >&6; }
17132
17133$as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
17134
17135
17136else
17137 $as_echo "$as_me: failed program was:" >&5
17138sed 's/^/| /' conftest.$ac_ext >&5
17139
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17141$as_echo "no" >&6; }
17142
17143
17144
17145fi
17146 rm -Rf build
17147
17148
17149
17150
23d56208
AX
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
17152$as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
0e3762ca
CALP
17153
17154
17155cat confdefs.h - <<_ACEOF >conftest.c
17156
17157
17158 #include <linux/fs.h>
23d56208
AX
17159 const char *follow_link(struct dentry *de, void **cookie)
17160 { return "symlink"; }
0e3762ca 17161 static struct inode_operations iops __attribute__ ((unused)) = {
23d56208 17162 .follow_link = follow_link,
0e3762ca
CALP
17163 };
17164
17165int
17166main (void)
17167{
17168
17169
17170 ;
17171 return 0;
17172}
17173
17174_ACEOF
17175
17176
23d56208
AX
17177
17178cat - <<_ACEOF >conftest.h
17179
17180_ACEOF
17181
17182
0e3762ca
CALP
17183 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17184 echo "obj-m := conftest.o" >build/Makefile
17185 modpost_flag=''
17186 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 17187 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
17188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17189 (eval $ac_try) 2>&5
17190 ac_status=$?
17191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17192 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17194 (eval $ac_try) 2>&5
17195 ac_status=$?
17196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17197 test $ac_status = 0; }; }; then :
17198
23d56208
AX
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17200$as_echo "no" >&6; }
0e3762ca
CALP
17201
17202else
17203 $as_echo "$as_me: failed program was:" >&5
17204sed 's/^/| /' conftest.$ac_ext >&5
17205
23d56208
AX
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17207$as_echo "yes" >&6; }
17208
17209$as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
17210
0e3762ca
CALP
17211
17212
17213
17214fi
17215 rm -Rf build
17216
17217
17218
17219
23d56208
AX
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
17221$as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
0e3762ca
CALP
17222
17223
17224cat confdefs.h - <<_ACEOF >conftest.c
17225
17226
23d56208
AX
17227 #include <linux/fs.h>
17228 void put_link(struct inode *ip, void *cookie) { return; }
17229 static struct inode_operations iops __attribute__ ((unused)) = {
17230 .put_link = put_link,
0e3762ca
CALP
17231 };
17232
17233int
17234main (void)
17235{
17236
17237
17238 ;
17239 return 0;
17240}
17241
17242_ACEOF
17243
17244
23d56208
AX
17245
17246cat - <<_ACEOF >conftest.h
17247
17248_ACEOF
17249
17250
0e3762ca
CALP
17251 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17252 echo "obj-m := conftest.o" >build/Makefile
17253 modpost_flag=''
17254 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 17255 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
17256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17257 (eval $ac_try) 2>&5
17258 ac_status=$?
17259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17260 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17262 (eval $ac_try) 2>&5
17263 ac_status=$?
17264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17265 test $ac_status = 0; }; }; then :
17266
23d56208
AX
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17268$as_echo "no" >&6; }
0e3762ca
CALP
17269
17270else
17271 $as_echo "$as_me: failed program was:" >&5
17272sed 's/^/| /' conftest.$ac_ext >&5
17273
23d56208
AX
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17275$as_echo "yes" >&6; }
17276
17277$as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
17278
0e3762ca
CALP
17279
17280
17281
17282fi
17283 rm -Rf build
17284
17285
17286
17287
23d56208
AX
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
17289$as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
0e3762ca
CALP
17290
17291
17292cat confdefs.h - <<_ACEOF >conftest.c
17293
17294
23d56208
AX
17295 #include <linux/fs.h>
17296 void truncate_range(struct inode *inode, loff_t start,
17297 loff_t end) { return; }
17298 static struct inode_operations iops __attribute__ ((unused)) = {
17299 .truncate_range = truncate_range,
0e3762ca
CALP
17300 };
17301
17302int
17303main (void)
17304{
17305
17306
17307 ;
17308 return 0;
17309}
17310
17311_ACEOF
17312
17313
23d56208
AX
17314
17315cat - <<_ACEOF >conftest.h
17316
17317_ACEOF
17318
17319
0e3762ca
CALP
17320 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17321 echo "obj-m := conftest.o" >build/Makefile
17322 modpost_flag=''
17323 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 17324 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
17325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17329 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17331 (eval $ac_try) 2>&5
17332 ac_status=$?
17333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17334 test $ac_status = 0; }; }; then :
17335
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17337$as_echo "yes" >&6; }
17338
23d56208 17339$as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
0e3762ca
CALP
17340
17341
17342else
17343 $as_echo "$as_me: failed program was:" >&5
17344sed 's/^/| /' conftest.$ac_ext >&5
17345
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17347$as_echo "no" >&6; }
17348
17349
17350
17351fi
17352 rm -Rf build
17353
17354
17355
17356
23d56208
AX
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
17358$as_echo_n "checking whether dops->d_automount() exists... " >&6; }
0e3762ca
CALP
17359
17360
17361cat confdefs.h - <<_ACEOF >conftest.c
17362
17363
23d56208
AX
17364 #include <linux/dcache.h>
17365 struct vfsmount *d_automount(struct path *p) { return NULL; }
17366 struct dentry_operations dops __attribute__ ((unused)) = {
17367 .d_automount = d_automount,
17368 };
17369
17370int
17371main (void)
17372{
17373
17374
17375 ;
17376 return 0;
17377}
17378
17379_ACEOF
17380
17381
17382
17383cat - <<_ACEOF >conftest.h
17384
17385_ACEOF
17386
17387
17388 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17389 echo "obj-m := conftest.o" >build/Makefile
17390 modpost_flag=''
17391 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17392 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17394 (eval $ac_try) 2>&5
17395 ac_status=$?
17396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17397 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17399 (eval $ac_try) 2>&5
17400 ac_status=$?
17401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17402 test $ac_status = 0; }; }; then :
17403
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17405$as_echo "yes" >&6; }
17406
17407$as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
17408
17409
17410else
17411 $as_echo "$as_me: failed program was:" >&5
17412sed 's/^/| /' conftest.$ac_ext >&5
17413
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17415$as_echo "no" >&6; }
17416
17417
17418
17419fi
17420 rm -Rf build
17421
17422
17423
17424
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
17426$as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
17427
17428
17429cat confdefs.h - <<_ACEOF >conftest.c
17430
17431
17432 #include <linux/exportfs.h>
17433 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
17434 struct inode *parent) { return 0; }
17435 static struct export_operations eops __attribute__ ((unused))={
17436 .encode_fh = encode_fh,
17437 };
17438
17439int
17440main (void)
17441{
17442
17443
17444 ;
17445 return 0;
17446}
17447
17448_ACEOF
17449
17450
17451
17452cat - <<_ACEOF >conftest.h
17453
17454_ACEOF
17455
17456
17457 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17458 echo "obj-m := conftest.o" >build/Makefile
17459 modpost_flag=''
17460 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17461 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17463 (eval $ac_try) 2>&5
17464 ac_status=$?
17465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17466 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17468 (eval $ac_try) 2>&5
17469 ac_status=$?
17470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17471 test $ac_status = 0; }; }; then :
17472
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17474$as_echo "yes" >&6; }
17475
17476$as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
17477
17478
17479else
17480 $as_echo "$as_me: failed program was:" >&5
17481sed 's/^/| /' conftest.$ac_ext >&5
17482
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17484$as_echo "no" >&6; }
17485
17486
17487
17488fi
17489 rm -Rf build
17490
17491
17492
17493
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
17495$as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
17496
17497
17498cat confdefs.h - <<_ACEOF >conftest.c
17499
17500
17501 #include <linux/exportfs.h>
17502 int commit_metadata(struct inode *inode) { return 0; }
17503 static struct export_operations eops __attribute__ ((unused))={
17504 .commit_metadata = commit_metadata,
0e3762ca
CALP
17505 };
17506
17507int
17508main (void)
17509{
17510
17511
17512 ;
17513 return 0;
17514}
17515
17516_ACEOF
17517
17518
23d56208
AX
17519
17520cat - <<_ACEOF >conftest.h
17521
17522_ACEOF
17523
17524
0e3762ca
CALP
17525 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17526 echo "obj-m := conftest.o" >build/Makefile
17527 modpost_flag=''
17528 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 17529 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
17530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17531 (eval $ac_try) 2>&5
17532 ac_status=$?
17533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17534 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17536 (eval $ac_try) 2>&5
17537 ac_status=$?
17538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17539 test $ac_status = 0; }; }; then :
17540
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17542$as_echo "yes" >&6; }
17543
17544$as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
17545
17546
17547else
17548 $as_echo "$as_me: failed program was:" >&5
17549sed 's/^/| /' conftest.$ac_ext >&5
17550
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17552$as_echo "no" >&6; }
17553
17554
17555
17556fi
17557 rm -Rf build
17558
17559
17560
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
17562$as_echo_n "checking whether clear_inode() is available... " >&6; }
17563
17564
17565
17566cat confdefs.h - <<_ACEOF >conftest.c
17567
17568
17569 #include <linux/fs.h>
17570
17571int
17572main (void)
17573{
17574
17575 clear_inode(NULL);
17576
17577 ;
17578 return 0;
17579}
17580
17581_ACEOF
17582
17583
23d56208
AX
17584
17585cat - <<_ACEOF >conftest.h
17586
17587_ACEOF
17588
17589
0e3762ca
CALP
17590 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17591 echo "obj-m := conftest.o" >build/Makefile
17592 modpost_flag=''
17593 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 17594 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
17595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17596 (eval $ac_try) 2>&5
17597 ac_status=$?
17598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17599 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17601 (eval $ac_try) 2>&5
17602 ac_status=$?
17603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17604 test $ac_status = 0; }; }; then :
17605 rc=0
17606else
17607 $as_echo "$as_me: failed program was:" >&5
17608sed 's/^/| /' conftest.$ac_ext >&5
17609 rc=1
17610
17611
17612fi
17613 rm -Rf build
17614
17615
17616 if test $rc -ne 0; then :
17617
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17619$as_echo "no" >&6; }
17620
17621 else
17622 if test "x$enable_linux_builtin" != xyes; then
17623
17624 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
17625 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17626 rc=$?
17627 if test $rc -ne 0; then
17628 export=0
17629 for file in fs/inode.c; do
17630 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
17631 "$LINUX/$file" 2>/dev/null
17632 rc=$?
17633 if test $rc -eq 0; then
17634 export=1
17635 break;
17636 fi
17637 done
17638 if test $export -eq 0; then :
17639 rc=1
17640 else :
17641 rc=0
17642 fi
17643 else :
17644 rc=0
17645 fi
17646
17647 fi
17648 if test $rc -ne 0; then :
17649
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17651$as_echo "no" >&6; }
17652
17653 else :
17654
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17656$as_echo "yes" >&6; }
17657
17658$as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
17659
17660
17661 fi
17662 fi
17663
17664
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
17666$as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
17667
17668
17669
17670cat confdefs.h - <<_ACEOF >conftest.c
17671
17672
17673 #include <linux/fs.h>
17674
17675int
17676main (void)
17677{
17678
17679 insert_inode_locked(NULL);
17680
17681 ;
17682 return 0;
17683}
17684
17685_ACEOF
17686
17687
23d56208
AX
17688
17689cat - <<_ACEOF >conftest.h
17690
17691_ACEOF
17692
17693
0e3762ca
CALP
17694 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17695 echo "obj-m := conftest.o" >build/Makefile
17696 modpost_flag=''
17697 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 17698 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
17699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17700 (eval $ac_try) 2>&5
17701 ac_status=$?
17702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17703 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17708 test $ac_status = 0; }; }; then :
17709 rc=0
17710else
17711 $as_echo "$as_me: failed program was:" >&5
17712sed 's/^/| /' conftest.$ac_ext >&5
17713 rc=1
17714
17715
17716fi
17717 rm -Rf build
17718
17719
17720 if test $rc -ne 0; then :
17721
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17723$as_echo "no" >&6; }
17724
17725 else
17726 if test "x$enable_linux_builtin" != xyes; then
17727
17728 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
17729 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17730 rc=$?
17731 if test $rc -ne 0; then
17732 export=0
17733 for file in fs/inode.c; do
17734 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
17735 "$LINUX/$file" 2>/dev/null
17736 rc=$?
17737 if test $rc -eq 0; then
17738 export=1
17739 break;
17740 fi
17741 done
17742 if test $export -eq 0; then :
17743 rc=1
17744 else :
17745 rc=0
17746 fi
17747 else :
17748 rc=0
17749 fi
17750
17751 fi
17752 if test $rc -ne 0; then :
17753
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17755$as_echo "no" >&6; }
17756
17757 else :
17758
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17760$as_echo "yes" >&6; }
17761
17762$as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
17763
17764
17765 fi
17766 fi
17767
17768
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
17770$as_echo_n "checking whether d_make_root() is available... " >&6; }
17771
17772
17773
17774cat confdefs.h - <<_ACEOF >conftest.c
17775
17776
17777 #include <linux/dcache.h>
17778
17779int
17780main (void)
17781{
17782
17783 d_make_root(NULL);
17784
17785 ;
17786 return 0;
17787}
17788
17789_ACEOF
17790
17791
23d56208
AX
17792
17793cat - <<_ACEOF >conftest.h
17794
17795_ACEOF
17796
17797
0e3762ca
CALP
17798 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17799 echo "obj-m := conftest.o" >build/Makefile
17800 modpost_flag=''
17801 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 17802 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
17803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17804 (eval $ac_try) 2>&5
17805 ac_status=$?
17806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17807 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17809 (eval $ac_try) 2>&5
17810 ac_status=$?
17811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17812 test $ac_status = 0; }; }; then :
17813 rc=0
17814else
17815 $as_echo "$as_me: failed program was:" >&5
17816sed 's/^/| /' conftest.$ac_ext >&5
17817 rc=1
17818
17819
17820fi
17821 rm -Rf build
17822
17823
17824 if test $rc -ne 0; then :
17825
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17827$as_echo "no" >&6; }
17828
17829 else
17830 if test "x$enable_linux_builtin" != xyes; then
17831
17832 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
17833 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17834 rc=$?
17835 if test $rc -ne 0; then
17836 export=0
17837 for file in fs/dcache.c; do
17838 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
17839 "$LINUX/$file" 2>/dev/null
17840 rc=$?
17841 if test $rc -eq 0; then
17842 export=1
17843 break;
17844 fi
17845 done
17846 if test $export -eq 0; then :
17847 rc=1
17848 else :
17849 rc=0
17850 fi
17851 else :
17852 rc=0
17853 fi
17854
17855 fi
17856 if test $rc -ne 0; then :
17857
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17859$as_echo "no" >&6; }
17860
17861 else :
17862
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17864$as_echo "yes" >&6; }
17865
17866$as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
17867
17868
17869 fi
17870 fi
17871
17872
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
17874$as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
17875
17876
17877
17878cat confdefs.h - <<_ACEOF >conftest.c
17879
17880
17881 #include <linux/dcache.h>
17882
17883int
17884main (void)
17885{
17886
17887 d_obtain_alias(NULL);
17888
17889 ;
17890 return 0;
17891}
17892
17893_ACEOF
17894
17895
23d56208
AX
17896
17897cat - <<_ACEOF >conftest.h
17898
17899_ACEOF
17900
17901
0e3762ca
CALP
17902 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17903 echo "obj-m := conftest.o" >build/Makefile
17904 modpost_flag=''
17905 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 17906 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
17907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17908 (eval $ac_try) 2>&5
17909 ac_status=$?
17910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17911 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17913 (eval $ac_try) 2>&5
17914 ac_status=$?
17915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17916 test $ac_status = 0; }; }; then :
17917 rc=0
17918else
17919 $as_echo "$as_me: failed program was:" >&5
17920sed 's/^/| /' conftest.$ac_ext >&5
17921 rc=1
17922
17923
17924fi
17925 rm -Rf build
17926
17927
17928 if test $rc -ne 0; then :
17929
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17931$as_echo "no" >&6; }
17932
17933 else
17934 if test "x$enable_linux_builtin" != xyes; then
17935
17936 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
17937 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17938 rc=$?
17939 if test $rc -ne 0; then
17940 export=0
17941 for file in fs/dcache.c; do
17942 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
17943 "$LINUX/$file" 2>/dev/null
17944 rc=$?
17945 if test $rc -eq 0; then
17946 export=1
17947 break;
17948 fi
17949 done
17950 if test $export -eq 0; then :
17951 rc=1
17952 else :
17953 rc=0
17954 fi
17955 else :
17956 rc=0
17957 fi
17958
17959 fi
17960 if test $rc -ne 0; then :
17961
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17963$as_echo "no" >&6; }
17964
17965 else :
17966
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17968$as_echo "yes" >&6; }
17969
17970$as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
17971
17972
17973 fi
17974 fi
17975
17976
23d56208
AX
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
17978$as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
0e3762ca
CALP
17979
17980
17981
17982cat confdefs.h - <<_ACEOF >conftest.c
17983
17984
17985 #include <linux/dcache.h>
17986
17987int
17988main (void)
17989{
17990
23d56208
AX
17991 struct inode *ip = NULL;
17992 d_prune_aliases(ip);
0e3762ca
CALP
17993
17994 ;
17995 return 0;
17996}
17997
17998_ACEOF
17999
18000
23d56208
AX
18001
18002cat - <<_ACEOF >conftest.h
18003
18004_ACEOF
18005
18006
0e3762ca
CALP
18007 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18008 echo "obj-m := conftest.o" >build/Makefile
18009 modpost_flag=''
18010 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 18011 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
18012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18013 (eval $ac_try) 2>&5
18014 ac_status=$?
18015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18016 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18018 (eval $ac_try) 2>&5
18019 ac_status=$?
18020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18021 test $ac_status = 0; }; }; then :
18022 rc=0
18023else
18024 $as_echo "$as_me: failed program was:" >&5
18025sed 's/^/| /' conftest.$ac_ext >&5
18026 rc=1
18027
18028
18029fi
18030 rm -Rf build
18031
18032
18033 if test $rc -ne 0; then :
18034
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18036$as_echo "no" >&6; }
18037
18038 else
18039 if test "x$enable_linux_builtin" != xyes; then
18040
23d56208 18041 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
0e3762ca
CALP
18042 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18043 rc=$?
18044 if test $rc -ne 0; then
18045 export=0
18046 for file in fs/dcache.c; do
23d56208 18047 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
0e3762ca
CALP
18048 "$LINUX/$file" 2>/dev/null
18049 rc=$?
18050 if test $rc -eq 0; then
18051 export=1
18052 break;
18053 fi
18054 done
18055 if test $export -eq 0; then :
18056 rc=1
18057 else :
18058 rc=0
18059 fi
18060 else :
18061 rc=0
18062 fi
18063
18064 fi
18065 if test $rc -ne 0; then :
18066
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18068$as_echo "no" >&6; }
18069
18070 else :
18071
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18073$as_echo "yes" >&6; }
18074
23d56208 18075$as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
0e3762ca
CALP
18076
18077
18078 fi
18079 fi
18080
18081
23d56208
AX
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
18083$as_echo_n "checking whether d_set_d_op() is available... " >&6; }
0e3762ca 18084
0e3762ca
CALP
18085
18086
18087cat confdefs.h - <<_ACEOF >conftest.c
18088
18089
18090 #include <linux/dcache.h>
18091
0e3762ca
CALP
18092int
18093main (void)
18094{
18095
23d56208 18096 d_set_d_op(NULL, NULL);
0e3762ca
CALP
18097
18098 ;
18099 return 0;
18100}
18101
18102_ACEOF
18103
18104
23d56208
AX
18105
18106cat - <<_ACEOF >conftest.h
18107
18108_ACEOF
18109
18110
0e3762ca
CALP
18111 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18112 echo "obj-m := conftest.o" >build/Makefile
18113 modpost_flag=''
18114 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 18115 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
18116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18117 (eval $ac_try) 2>&5
18118 ac_status=$?
18119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18120 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18122 (eval $ac_try) 2>&5
18123 ac_status=$?
18124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18125 test $ac_status = 0; }; }; then :
23d56208
AX
18126 rc=0
18127else
18128 $as_echo "$as_me: failed program was:" >&5
18129sed 's/^/| /' conftest.$ac_ext >&5
18130 rc=1
0e3762ca 18131
0e3762ca 18132
23d56208
AX
18133fi
18134 rm -Rf build
0e3762ca
CALP
18135
18136
23d56208 18137 if test $rc -ne 0; then :
0e3762ca
CALP
18138
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18140$as_echo "no" >&6; }
18141
23d56208
AX
18142 else
18143 if test "x$enable_linux_builtin" != xyes; then
0e3762ca 18144
23d56208
AX
18145 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
18146 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18147 rc=$?
18148 if test $rc -ne 0; then
18149 export=0
18150 for file in fs/dcache.c; do
18151 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
18152 "$LINUX/$file" 2>/dev/null
18153 rc=$?
18154 if test $rc -eq 0; then
18155 export=1
18156 break;
18157 fi
18158 done
18159 if test $export -eq 0; then :
18160 rc=1
18161 else :
18162 rc=0
18163 fi
18164 else :
18165 rc=0
18166 fi
0e3762ca 18167
23d56208
AX
18168 fi
18169 if test $rc -ne 0; then :
0e3762ca 18170
23d56208
AX
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18172$as_echo "no" >&6; }
0e3762ca 18173
23d56208 18174 else :
0e3762ca 18175
23d56208
AX
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18177$as_echo "yes" >&6; }
0e3762ca 18178
23d56208 18179$as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
0e3762ca
CALP
18180
18181
23d56208
AX
18182 fi
18183 fi
0e3762ca
CALP
18184
18185
0e3762ca 18186
23d56208
AX
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
18188$as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
0e3762ca 18189
0e3762ca 18190
23d56208 18191cat confdefs.h - <<_ACEOF >conftest.c
0e3762ca 18192
23d56208
AX
18193
18194 #include <linux/dcache.h>
18195
18196 int revalidate (struct dentry *dentry,
18197 struct nameidata *nidata) { return 0; }
18198
18199 static const struct dentry_operations
18200 dops __attribute__ ((unused)) = {
18201 .d_revalidate = revalidate,
18202 };
18203
18204int
18205main (void)
18206{
18207
18208
18209 ;
18210 return 0;
18211}
18212
18213_ACEOF
18214
18215
18216
18217cat - <<_ACEOF >conftest.h
18218
18219_ACEOF
18220
18221
18222 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18223 echo "obj-m := conftest.o" >build/Makefile
18224 modpost_flag=''
18225 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18226 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18228 (eval $ac_try) 2>&5
18229 ac_status=$?
18230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18231 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18233 (eval $ac_try) 2>&5
18234 ac_status=$?
18235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18236 test $ac_status = 0; }; }; then :
18237
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18239$as_echo "yes" >&6; }
18240
18241$as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
18242
18243
18244else
18245 $as_echo "$as_me: failed program was:" >&5
18246sed 's/^/| /' conftest.$ac_ext >&5
18247
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18249$as_echo "no" >&6; }
18250
18251
18252
18253fi
18254 rm -Rf build
18255
18256
18257
18258
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
18260$as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
18261
18262
18263cat confdefs.h - <<_ACEOF >conftest.c
18264
18265
18266 #include <linux/dcache.h>
18267
18268 const struct dentry_operations test_d_op = {
18269 .d_revalidate = NULL,
18270 };
18271
18272int
18273main (void)
18274{
18275
18276 struct dentry d __attribute__ ((unused));
18277
18278 d.d_op = &test_d_op;
0e3762ca
CALP
18279
18280 ;
18281 return 0;
18282}
18283
18284_ACEOF
18285
18286
23d56208
AX
18287
18288cat - <<_ACEOF >conftest.h
18289
18290_ACEOF
18291
18292
0e3762ca
CALP
18293 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18294 echo "obj-m := conftest.o" >build/Makefile
18295 modpost_flag=''
18296 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 18297 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
18298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18299 (eval $ac_try) 2>&5
18300 ac_status=$?
18301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18302 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
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; }; }; then :
18308
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18310$as_echo "yes" >&6; }
18311
18312$as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
18313
18314
18315else
18316 $as_echo "$as_me: failed program was:" >&5
18317sed 's/^/| /' conftest.$ac_ext >&5
18318
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18320$as_echo "no" >&6; }
18321
18322
18323
18324fi
18325 rm -Rf build
18326
18327
18328
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
18330$as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
18331
18332
18333
18334cat confdefs.h - <<_ACEOF >conftest.c
18335
18336
18337 #include <linux/fs.h>
18338
18339int
18340main (void)
18341{
18342
18343 check_disk_size_change(NULL, NULL);
18344
18345 ;
18346 return 0;
18347}
18348
18349_ACEOF
18350
18351
23d56208
AX
18352
18353cat - <<_ACEOF >conftest.h
18354
18355_ACEOF
18356
18357
0e3762ca
CALP
18358 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18359 echo "obj-m := conftest.o" >build/Makefile
18360 modpost_flag=''
18361 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 18362 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
18363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18364 (eval $ac_try) 2>&5
18365 ac_status=$?
18366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18367 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18369 (eval $ac_try) 2>&5
18370 ac_status=$?
18371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18372 test $ac_status = 0; }; }; then :
18373 rc=0
18374else
18375 $as_echo "$as_me: failed program was:" >&5
18376sed 's/^/| /' conftest.$ac_ext >&5
18377 rc=1
18378
18379
18380fi
18381 rm -Rf build
18382
18383
18384 if test $rc -ne 0; then :
18385
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18387$as_echo "no" >&6; }
18388
18389 else
18390 if test "x$enable_linux_builtin" != xyes; then
18391
18392 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
18393 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18394 rc=$?
18395 if test $rc -ne 0; then
18396 export=0
18397 for file in fs/block_dev.c; do
18398 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
18399 "$LINUX/$file" 2>/dev/null
18400 rc=$?
18401 if test $rc -eq 0; then
18402 export=1
18403 break;
18404 fi
18405 done
18406 if test $export -eq 0; then :
18407 rc=1
18408 else :
18409 rc=0
18410 fi
18411 else :
18412 rc=0
18413 fi
18414
18415 fi
18416 if test $rc -ne 0; then :
18417
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18419$as_echo "no" >&6; }
18420
18421 else :
18422
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18424$as_echo "yes" >&6; }
18425
18426$as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
18427
18428
18429 fi
18430 fi
18431
18432
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
18434$as_echo_n "checking whether truncate_setsize() is available... " >&6; }
18435
18436
18437
18438cat confdefs.h - <<_ACEOF >conftest.c
18439
18440
18441 #include <linux/mm.h>
18442
18443int
18444main (void)
18445{
18446
18447 truncate_setsize(NULL, 0);
18448
18449 ;
18450 return 0;
18451}
18452
18453_ACEOF
18454
18455
23d56208
AX
18456
18457cat - <<_ACEOF >conftest.h
18458
18459_ACEOF
18460
18461
0e3762ca
CALP
18462 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18463 echo "obj-m := conftest.o" >build/Makefile
18464 modpost_flag=''
18465 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 18466 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
18467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18468 (eval $ac_try) 2>&5
18469 ac_status=$?
18470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18471 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18473 (eval $ac_try) 2>&5
18474 ac_status=$?
18475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18476 test $ac_status = 0; }; }; then :
18477 rc=0
18478else
18479 $as_echo "$as_me: failed program was:" >&5
18480sed 's/^/| /' conftest.$ac_ext >&5
18481 rc=1
18482
18483
18484fi
18485 rm -Rf build
18486
18487
18488 if test $rc -ne 0; then :
18489
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18491$as_echo "no" >&6; }
18492
18493 else
18494 if test "x$enable_linux_builtin" != xyes; then
18495
18496 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
18497 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18498 rc=$?
18499 if test $rc -ne 0; then
18500 export=0
18501 for file in mm/truncate.c; do
18502 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
18503 "$LINUX/$file" 2>/dev/null
18504 rc=$?
18505 if test $rc -eq 0; then
18506 export=1
18507 break;
18508 fi
18509 done
18510 if test $export -eq 0; then :
18511 rc=1
18512 else :
18513 rc=0
18514 fi
18515 else :
18516 rc=0
18517 fi
18518
18519 fi
18520 if test $rc -ne 0; then :
18521
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18523$as_echo "no" >&6; }
18524
18525 else :
18526
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18528$as_echo "yes" >&6; }
18529
18530$as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
18531
18532
18533 fi
18534 fi
18535
18536
18537
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
18539$as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
18540
18541
18542cat confdefs.h - <<_ACEOF >conftest.c
18543
18544
18545 #include <linux/security.h>
18546
18547int
18548main (void)
18549{
18550
18551 struct inode *ip __attribute__ ((unused)) = NULL;
18552 struct inode *dip __attribute__ ((unused)) = NULL;
18553 const struct qstr *str __attribute__ ((unused)) = NULL;
18554 char *name __attribute__ ((unused)) = NULL;
18555 void *value __attribute__ ((unused)) = NULL;
18556 size_t len __attribute__ ((unused)) = 0;
18557
18558 security_inode_init_security(ip, dip, str, &name, &value, &len);
18559
18560 ;
18561 return 0;
18562}
18563
18564_ACEOF
18565
18566
23d56208
AX
18567
18568cat - <<_ACEOF >conftest.h
18569
18570_ACEOF
18571
18572
0e3762ca
CALP
18573 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18574 echo "obj-m := conftest.o" >build/Makefile
18575 modpost_flag=''
18576 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 18577 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
18578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18579 (eval $ac_try) 2>&5
18580 ac_status=$?
18581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18582 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18584 (eval $ac_try) 2>&5
18585 ac_status=$?
18586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18587 test $ac_status = 0; }; }; then :
18588
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18590$as_echo "yes" >&6; }
18591
18592$as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
18593
18594
18595else
18596 $as_echo "$as_me: failed program was:" >&5
18597sed 's/^/| /' conftest.$ac_ext >&5
18598
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18600$as_echo "no" >&6; }
18601
18602
18603
18604fi
18605 rm -Rf build
18606
18607
18608
18609
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
18611$as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
18612
18613
18614cat confdefs.h - <<_ACEOF >conftest.c
18615
18616
18617 #include <linux/security.h>
18618
18619int
18620main (void)
18621{
18622
18623 struct inode *ip __attribute__ ((unused)) = NULL;
18624 struct inode *dip __attribute__ ((unused)) = NULL;
18625 const struct qstr *str __attribute__ ((unused)) = NULL;
18626 initxattrs func __attribute__ ((unused)) = NULL;
18627
18628 security_inode_init_security(ip, dip, str, func, NULL);
18629
18630 ;
18631 return 0;
18632}
18633
18634_ACEOF
18635
18636
23d56208
AX
18637
18638cat - <<_ACEOF >conftest.h
18639
18640_ACEOF
18641
18642
0e3762ca
CALP
18643 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18644 echo "obj-m := conftest.o" >build/Makefile
18645 modpost_flag=''
18646 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 18647 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
18648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18649 (eval $ac_try) 2>&5
18650 ac_status=$?
18651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18652 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18654 (eval $ac_try) 2>&5
18655 ac_status=$?
18656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18657 test $ac_status = 0; }; }; then :
18658
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18660$as_echo "yes" >&6; }
18661
18662$as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
18663
18664
18665else
18666 $as_echo "$as_me: failed program was:" >&5
18667sed 's/^/| /' conftest.$ac_ext >&5
18668
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18670$as_echo "no" >&6; }
18671
18672
18673
18674fi
18675 rm -Rf build
18676
18677
18678
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
18680$as_echo_n "checking whether mount_nodev() is available... " >&6; }
18681
18682
18683
18684cat confdefs.h - <<_ACEOF >conftest.c
18685
18686
18687 #include <linux/fs.h>
18688
18689int
18690main (void)
18691{
18692
18693 mount_nodev(NULL, 0, NULL, NULL);
18694
18695 ;
18696 return 0;
18697}
18698
18699_ACEOF
18700
18701
23d56208
AX
18702
18703cat - <<_ACEOF >conftest.h
18704
18705_ACEOF
18706
18707
0e3762ca
CALP
18708 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18709 echo "obj-m := conftest.o" >build/Makefile
18710 modpost_flag=''
18711 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 18712 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
18713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18714 (eval $ac_try) 2>&5
18715 ac_status=$?
18716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18717 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18719 (eval $ac_try) 2>&5
18720 ac_status=$?
18721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18722 test $ac_status = 0; }; }; then :
18723 rc=0
18724else
18725 $as_echo "$as_me: failed program was:" >&5
18726sed 's/^/| /' conftest.$ac_ext >&5
18727 rc=1
18728
18729
18730fi
18731 rm -Rf build
18732
18733
18734 if test $rc -ne 0; then :
18735
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18737$as_echo "no" >&6; }
18738
18739 else
18740 if test "x$enable_linux_builtin" != xyes; then
18741
18742 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
18743 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18744 rc=$?
18745 if test $rc -ne 0; then
18746 export=0
18747 for file in fs/super.c; do
18748 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
18749 "$LINUX/$file" 2>/dev/null
18750 rc=$?
18751 if test $rc -eq 0; then
18752 export=1
18753 break;
18754 fi
18755 done
18756 if test $export -eq 0; then :
18757 rc=1
18758 else :
18759 rc=0
18760 fi
18761 else :
18762 rc=0
18763 fi
18764
18765 fi
18766 if test $rc -ne 0; then :
18767
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18769$as_echo "no" >&6; }
18770
18771 else :
18772
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18774$as_echo "yes" >&6; }
18775
18776$as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
18777
18778
18779 fi
18780 fi
18781
18782
18783
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
18785$as_echo_n "checking whether super_block has s_shrink... " >&6; }
18786
18787
18788cat confdefs.h - <<_ACEOF >conftest.c
18789
18790
18791 #include <linux/fs.h>
18792
18793 int shrink(struct shrinker *s, struct shrink_control *sc)
18794 { return 0; }
18795
18796 static const struct super_block
18797 sb __attribute__ ((unused)) = {
18798 .s_shrink.shrink = shrink,
18799 .s_shrink.seeks = DEFAULT_SEEKS,
18800 .s_shrink.batch = 0,
18801 };
18802
18803int
18804main (void)
18805{
18806
18807
18808 ;
18809 return 0;
18810}
18811
18812_ACEOF
18813
18814
23d56208
AX
18815
18816cat - <<_ACEOF >conftest.h
18817
18818_ACEOF
18819
18820
0e3762ca
CALP
18821 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18822 echo "obj-m := conftest.o" >build/Makefile
18823 modpost_flag=''
18824 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 18825 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
18826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18827 (eval $ac_try) 2>&5
18828 ac_status=$?
18829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18830 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18832 (eval $ac_try) 2>&5
18833 ac_status=$?
18834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18835 test $ac_status = 0; }; }; then :
18836
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18838$as_echo "yes" >&6; }
18839
18840$as_echo "#define HAVE_SHRINK 1" >>confdefs.h
18841
18842
18843
18844else
18845 $as_echo "$as_me: failed program was:" >&5
18846sed 's/^/| /' conftest.$ac_ext >&5
18847
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18849$as_echo "no" >&6; }
18850
18851
18852
c06d4368
AX
18853fi
18854 rm -Rf build
18855
18856
18857
18858
23d56208
AX
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
18860$as_echo_n "checking whether shrink_control has nid... " >&6; }
c06d4368
AX
18861
18862
18863cat confdefs.h - <<_ACEOF >conftest.c
18864
18865
18866 #include <linux/fs.h>
18867
18868int
18869main (void)
18870{
18871
23d56208
AX
18872 struct shrink_control sc __attribute__ ((unused));
18873 unsigned long scnidsize __attribute__ ((unused)) =
18874 sizeof(sc.nid);
c06d4368
AX
18875
18876 ;
18877 return 0;
18878}
18879
18880_ACEOF
18881
18882
23d56208
AX
18883
18884cat - <<_ACEOF >conftest.h
18885
18886_ACEOF
18887
18888
c06d4368
AX
18889 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18890 echo "obj-m := conftest.o" >build/Makefile
18891 modpost_flag=''
18892 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 18893 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
c06d4368
AX
18894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18895 (eval $ac_try) 2>&5
18896 ac_status=$?
18897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18898 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18900 (eval $ac_try) 2>&5
18901 ac_status=$?
18902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18903 test $ac_status = 0; }; }; then :
18904
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18906$as_echo "yes" >&6; }
18907
23d56208 18908$as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
c06d4368
AX
18909
18910
18911else
18912 $as_echo "$as_me: failed program was:" >&5
18913sed 's/^/| /' conftest.$ac_ext >&5
18914
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18916$as_echo "no" >&6; }
18917
18918
18919
0e3762ca
CALP
18920fi
18921 rm -Rf build
18922
18923
18924
23d56208
AX
18925
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
18927$as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
0e3762ca
CALP
18928
18929
18930cat confdefs.h - <<_ACEOF >conftest.c
18931
18932
18933 #include <linux/fs.h>
18934
18935int
18936main (void)
18937{
18938
18939 struct super_block sb __attribute__ ((unused));
23d56208
AX
18940
18941 INIT_LIST_HEAD(&sb.s_instances);
0e3762ca
CALP
18942
18943 ;
18944 return 0;
18945}
18946
18947_ACEOF
18948
18949
23d56208
AX
18950
18951cat - <<_ACEOF >conftest.h
18952
18953_ACEOF
18954
18955
0e3762ca
CALP
18956 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18957 echo "obj-m := conftest.o" >build/Makefile
18958 modpost_flag=''
18959 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 18960 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
18961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18962 (eval $ac_try) 2>&5
18963 ac_status=$?
18964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18965 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18967 (eval $ac_try) 2>&5
18968 ac_status=$?
18969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18970 test $ac_status = 0; }; }; then :
18971
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18973$as_echo "yes" >&6; }
18974
23d56208 18975$as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
0e3762ca
CALP
18976
18977
18978else
18979 $as_echo "$as_me: failed program was:" >&5
18980sed 's/^/| /' conftest.$ac_ext >&5
18981
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18983$as_echo "no" >&6; }
18984
18985
18986
18987fi
18988 rm -Rf build
18989
18990
18991
23d56208
AX
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
18993$as_echo_n "checking whether super_block has s_d_op... " >&6; }
0e3762ca
CALP
18994
18995
18996cat confdefs.h - <<_ACEOF >conftest.c
18997
18998
18999 #include <linux/fs.h>
19000
19001int
19002main (void)
19003{
19004
19005 struct super_block sb __attribute__ ((unused));
23d56208 19006 sb.s_d_op = NULL;
0e3762ca
CALP
19007
19008 ;
19009 return 0;
19010}
19011
19012_ACEOF
19013
19014
23d56208
AX
19015
19016cat - <<_ACEOF >conftest.h
19017
19018_ACEOF
19019
19020
0e3762ca
CALP
19021 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19022 echo "obj-m := conftest.o" >build/Makefile
19023 modpost_flag=''
19024 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 19025 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
19026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19027 (eval $ac_try) 2>&5
19028 ac_status=$?
19029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19030 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19032 (eval $ac_try) 2>&5
19033 ac_status=$?
19034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19035 test $ac_status = 0; }; }; then :
19036
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19038$as_echo "yes" >&6; }
19039
23d56208 19040$as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
0e3762ca
CALP
19041
19042
19043else
19044 $as_echo "$as_me: failed program was:" >&5
19045sed 's/^/| /' conftest.$ac_ext >&5
19046
19047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19048$as_echo "no" >&6; }
19049
19050
19051
19052fi
19053 rm -Rf build
19054
19055
19056
23d56208
AX
19057
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
19059$as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
0e3762ca
CALP
19060
19061
19062
19063cat confdefs.h - <<_ACEOF >conftest.c
19064
19065
19066 #include <linux/backing-dev.h>
23d56208 19067 struct backing_dev_info bdi;
0e3762ca
CALP
19068
19069int
19070main (void)
19071{
19072
23d56208
AX
19073 char *name = "bdi";
19074 int error __attribute__((unused)) =
19075 bdi_setup_and_register(&bdi, name);
0e3762ca
CALP
19076
19077 ;
19078 return 0;
19079}
19080
19081_ACEOF
19082
19083
23d56208
AX
19084
19085cat - <<_ACEOF >conftest.h
19086
19087_ACEOF
19088
19089
0e3762ca
CALP
19090 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19091 echo "obj-m := conftest.o" >build/Makefile
19092 modpost_flag=''
19093 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 19094 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
19095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19096 (eval $ac_try) 2>&5
19097 ac_status=$?
19098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19099 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19101 (eval $ac_try) 2>&5
19102 ac_status=$?
19103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19104 test $ac_status = 0; }; }; then :
19105 rc=0
19106else
19107 $as_echo "$as_me: failed program was:" >&5
19108sed 's/^/| /' conftest.$ac_ext >&5
19109 rc=1
19110
19111
19112fi
19113 rm -Rf build
19114
19115
19116 if test $rc -ne 0; then :
19117
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19119$as_echo "no" >&6; }
23d56208
AX
19120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
19121$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
19122
19123
19124
19125cat confdefs.h - <<_ACEOF >conftest.c
19126
19127
19128 #include <linux/backing-dev.h>
19129 struct backing_dev_info bdi;
19130
19131int
19132main (void)
19133{
19134
19135 char *name = "bdi";
19136 unsigned int cap = BDI_CAP_MAP_COPY;
19137 int error __attribute__((unused)) =
19138 bdi_setup_and_register(&bdi, name, cap);
19139
19140 ;
19141 return 0;
19142}
19143
19144_ACEOF
19145
19146
19147
19148cat - <<_ACEOF >conftest.h
19149
19150_ACEOF
19151
19152
19153 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19154 echo "obj-m := conftest.o" >build/Makefile
19155 modpost_flag=''
19156 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19157 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19159 (eval $ac_try) 2>&5
19160 ac_status=$?
19161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19162 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19164 (eval $ac_try) 2>&5
19165 ac_status=$?
19166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19167 test $ac_status = 0; }; }; then :
19168 rc=0
19169else
19170 $as_echo "$as_me: failed program was:" >&5
19171sed 's/^/| /' conftest.$ac_ext >&5
19172 rc=1
19173
19174
19175fi
19176 rm -Rf build
19177
19178
19179 if test $rc -ne 0; then :
19180
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19182$as_echo "no" >&6; }
0e3762ca
CALP
19183
19184 else
19185 if test "x$enable_linux_builtin" != xyes; then
19186
19187 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
19188 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19189 rc=$?
19190 if test $rc -ne 0; then
19191 export=0
19192 for file in mm/backing-dev.c; do
19193 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
19194 "$LINUX/$file" 2>/dev/null
19195 rc=$?
19196 if test $rc -eq 0; then
19197 export=1
19198 break;
19199 fi
19200 done
19201 if test $export -eq 0; then :
19202 rc=1
19203 else :
19204 rc=0
19205 fi
19206 else :
19207 rc=0
19208 fi
19209
19210 fi
19211 if test $rc -ne 0; then :
19212
23d56208 19213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0e3762ca
CALP
19214$as_echo "no" >&6; }
19215
19216 else :
19217
23d56208 19218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
0e3762ca
CALP
19219$as_echo "yes" >&6; }
19220
23d56208 19221$as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
0e3762ca
CALP
19222
19223
19224 fi
19225 fi
19226
19227
23d56208
AX
19228 else
19229 if test "x$enable_linux_builtin" != xyes; then
19230
19231 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
19232 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19233 rc=$?
19234 if test $rc -ne 0; then
19235 export=0
19236 for file in mm/backing-dev.c; do
19237 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
19238 "$LINUX/$file" 2>/dev/null
19239 rc=$?
19240 if test $rc -eq 0; then
19241 export=1
19242 break;
19243 fi
19244 done
19245 if test $export -eq 0; then :
19246 rc=1
19247 else :
19248 rc=0
19249 fi
19250 else :
19251 rc=0
19252 fi
19253
19254 fi
19255 if test $rc -ne 0; then :
19256
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19258$as_echo "no" >&6; }
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
19260$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
0e3762ca 19261
0e3762ca
CALP
19262
19263
19264cat confdefs.h - <<_ACEOF >conftest.c
19265
19266
23d56208
AX
19267 #include <linux/backing-dev.h>
19268 struct backing_dev_info bdi;
0e3762ca
CALP
19269
19270int
19271main (void)
19272{
19273
23d56208
AX
19274 char *name = "bdi";
19275 unsigned int cap = BDI_CAP_MAP_COPY;
19276 int error __attribute__((unused)) =
19277 bdi_setup_and_register(&bdi, name, cap);
0e3762ca
CALP
19278
19279 ;
19280 return 0;
19281}
19282
19283_ACEOF
19284
19285
23d56208
AX
19286
19287cat - <<_ACEOF >conftest.h
19288
19289_ACEOF
19290
19291
19292 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19293 echo "obj-m := conftest.o" >build/Makefile
19294 modpost_flag=''
19295 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19296 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19298 (eval $ac_try) 2>&5
19299 ac_status=$?
19300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19301 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19303 (eval $ac_try) 2>&5
19304 ac_status=$?
19305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19306 test $ac_status = 0; }; }; then :
19307 rc=0
19308else
19309 $as_echo "$as_me: failed program was:" >&5
19310sed 's/^/| /' conftest.$ac_ext >&5
19311 rc=1
19312
19313
19314fi
19315 rm -Rf build
19316
19317
19318 if test $rc -ne 0; then :
19319
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19321$as_echo "no" >&6; }
19322
19323 else
19324 if test "x$enable_linux_builtin" != xyes; then
19325
19326 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
19327 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19328 rc=$?
19329 if test $rc -ne 0; then
19330 export=0
19331 for file in mm/backing-dev.c; do
19332 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
19333 "$LINUX/$file" 2>/dev/null
19334 rc=$?
19335 if test $rc -eq 0; then
19336 export=1
19337 break;
19338 fi
19339 done
19340 if test $export -eq 0; then :
19341 rc=1
19342 else :
19343 rc=0
19344 fi
19345 else :
19346 rc=0
19347 fi
19348
19349 fi
19350 if test $rc -ne 0; then :
19351
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19353$as_echo "no" >&6; }
19354
19355 else :
19356
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19358$as_echo "yes" >&6; }
19359
19360$as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
19361
19362
19363 fi
19364 fi
19365
19366
19367 else :
19368
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19370$as_echo "yes" >&6; }
19371
19372$as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
19373
19374
19375 fi
19376 fi
19377
19378
19379
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
19381$as_echo_n "checking whether set_nlink() is available... " >&6; }
19382
19383
19384cat confdefs.h - <<_ACEOF >conftest.c
19385
19386
19387 #include <linux/fs.h>
19388
19389int
19390main (void)
19391{
19392
19393 struct inode node;
19394 unsigned int link = 0;
19395 (void) set_nlink(&node, link);
19396
19397 ;
19398 return 0;
19399}
19400
19401_ACEOF
19402
19403
19404
19405cat - <<_ACEOF >conftest.h
19406
19407_ACEOF
19408
19409
19410 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
0e3762ca
CALP
19411 echo "obj-m := conftest.o" >build/Makefile
19412 modpost_flag=''
19413 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 19414 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
19415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19416 (eval $ac_try) 2>&5
19417 ac_status=$?
19418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19419 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19421 (eval $ac_try) 2>&5
19422 ac_status=$?
19423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19424 test $ac_status = 0; }; }; then :
19425
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19427$as_echo "yes" >&6; }
19428
19429$as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
19430
19431
19432else
19433 $as_echo "$as_me: failed program was:" >&5
19434sed 's/^/| /' conftest.$ac_ext >&5
19435
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19437$as_echo "no" >&6; }
19438
19439
19440
19441fi
19442 rm -Rf build
19443
19444
19445
19446
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
19448$as_echo_n "checking whether elevator_change() is available... " >&6; }
19449 tmp_flags="$EXTRA_KCFLAGS"
19450 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
19451
19452
19453cat confdefs.h - <<_ACEOF >conftest.c
19454
19455
19456 #include <linux/blkdev.h>
19457 #include <linux/elevator.h>
19458
19459int
19460main (void)
19461{
19462
19463 int ret;
19464 struct request_queue *q = NULL;
19465 char *elevator = NULL;
19466 ret = elevator_change(q, elevator);
19467
19468 ;
19469 return 0;
19470}
19471
19472_ACEOF
19473
19474
23d56208
AX
19475
19476cat - <<_ACEOF >conftest.h
19477
19478_ACEOF
19479
19480
0e3762ca
CALP
19481 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19482 echo "obj-m := conftest.o" >build/Makefile
19483 modpost_flag=''
19484 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 19485 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
19486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19487 (eval $ac_try) 2>&5
19488 ac_status=$?
19489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19490 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19492 (eval $ac_try) 2>&5
19493 ac_status=$?
19494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19495 test $ac_status = 0; }; }; then :
19496
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19498$as_echo "yes" >&6; }
19499
19500$as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
19501
19502
19503else
19504 $as_echo "$as_me: failed program was:" >&5
19505sed 's/^/| /' conftest.$ac_ext >&5
19506
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19508$as_echo "no" >&6; }
19509
19510
19511
19512fi
19513 rm -Rf build
19514
19515
19516 EXTRA_KCFLAGS="$tmp_flags"
19517
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
19519$as_echo_n "checking whether sget() wants 5 args... " >&6; }
19520
19521
19522cat confdefs.h - <<_ACEOF >conftest.c
19523
19524
19525 #include <linux/fs.h>
19526
19527int
19528main (void)
19529{
19530
19531 struct file_system_type *type = NULL;
19532 int (*test)(struct super_block *,void *) = NULL;
19533 int (*set)(struct super_block *,void *) = NULL;
19534 int flags = 0;
19535 void *data = NULL;
19536 (void) sget(type, test, set, flags, data);
19537
19538 ;
19539 return 0;
19540}
19541
19542_ACEOF
19543
19544
23d56208
AX
19545
19546cat - <<_ACEOF >conftest.h
19547
19548_ACEOF
19549
19550
0e3762ca
CALP
19551 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19552 echo "obj-m := conftest.o" >build/Makefile
19553 modpost_flag=''
19554 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 19555 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
19556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19557 (eval $ac_try) 2>&5
19558 ac_status=$?
19559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19560 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19562 (eval $ac_try) 2>&5
19563 ac_status=$?
19564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19565 test $ac_status = 0; }; }; then :
19566
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19568$as_echo "yes" >&6; }
19569
19570$as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
19571
19572
19573else
19574 $as_echo "$as_me: failed program was:" >&5
19575sed 's/^/| /' conftest.$ac_ext >&5
19576
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19578$as_echo "no" >&6; }
19579
19580
19581
19582fi
19583 rm -Rf build
19584
19585
19586
c06d4368
AX
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
19588$as_echo_n "checking whether lseek_execute() is available... " >&6; }
0e3762ca 19589
0e3762ca 19590
0e3762ca 19591
c06d4368 19592cat confdefs.h - <<_ACEOF >conftest.c
0e3762ca
CALP
19593
19594
c06d4368 19595 #include <linux/fs.h>
0e3762ca 19596
c06d4368
AX
19597int
19598main (void)
19599{
0e3762ca 19600
c06d4368
AX
19601 struct file *fp __attribute__ ((unused)) = NULL;
19602 struct inode *ip __attribute__ ((unused)) = NULL;
19603 loff_t offset __attribute__ ((unused)) = 0;
19604 loff_t maxsize __attribute__ ((unused)) = 0;
0e3762ca 19605
c06d4368 19606 lseek_execute(fp, ip, offset, maxsize);
0e3762ca 19607
c06d4368
AX
19608 ;
19609 return 0;
19610}
0e3762ca 19611
c06d4368
AX
19612_ACEOF
19613
19614
23d56208
AX
19615
19616cat - <<_ACEOF >conftest.h
19617
19618_ACEOF
19619
19620
c06d4368
AX
19621 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19622 echo "obj-m := conftest.o" >build/Makefile
19623 modpost_flag=''
19624 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 19625 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
c06d4368
AX
19626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19627 (eval $ac_try) 2>&5
19628 ac_status=$?
19629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19630 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19632 (eval $ac_try) 2>&5
19633 ac_status=$?
19634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19635 test $ac_status = 0; }; }; then :
19636 rc=0
19637else
19638 $as_echo "$as_me: failed program was:" >&5
19639sed 's/^/| /' conftest.$ac_ext >&5
19640 rc=1
19641
19642
19643fi
19644 rm -Rf build
19645
19646
19647 if test $rc -ne 0; then :
19648
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19650$as_echo "no" >&6; }
19651
19652 else
19653 if test "x$enable_linux_builtin" != xyes; then
19654
19655 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
19656 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19657 rc=$?
19658 if test $rc -ne 0; then
19659 export=0
19660 for file in fs/read_write.c; do
19661 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
19662 "$LINUX/$file" 2>/dev/null
19663 rc=$?
19664 if test $rc -eq 0; then
19665 export=1
19666 break;
19667 fi
19668 done
19669 if test $export -eq 0; then :
19670 rc=1
19671 else :
19672 rc=0
19673 fi
19674 else :
19675 rc=0
19676 fi
19677
19678 fi
19679 if test $rc -ne 0; then :
19680
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19682$as_echo "no" >&6; }
19683
19684 else :
19685
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19687$as_echo "yes" >&6; }
19688
19689$as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
19690
19691
19692 fi
19693 fi
19694
19695
19696
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
19698$as_echo_n "checking whether fops->iterate() is available... " >&6; }
19699
19700
19701cat confdefs.h - <<_ACEOF >conftest.c
19702
19703
19704 #include <linux/fs.h>
19705 int iterate(struct file *filp, struct dir_context * context)
19706 { return 0; }
19707
19708 static const struct file_operations fops
19709 __attribute__ ((unused)) = {
19710 .iterate = iterate,
19711 };
19712
19713int
19714main (void)
19715{
19716
19717
19718 ;
19719 return 0;
19720}
19721
19722_ACEOF
19723
19724
23d56208
AX
19725
19726cat - <<_ACEOF >conftest.h
19727
19728_ACEOF
19729
19730
c06d4368
AX
19731 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19732 echo "obj-m := conftest.o" >build/Makefile
19733 modpost_flag=''
19734 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 19735 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
c06d4368
AX
19736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19737 (eval $ac_try) 2>&5
19738 ac_status=$?
19739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19740 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19742 (eval $ac_try) 2>&5
19743 ac_status=$?
19744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19745 test $ac_status = 0; }; }; then :
19746
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19748$as_echo "yes" >&6; }
19749
19750$as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
19751
19752
19753else
19754 $as_echo "$as_me: failed program was:" >&5
19755sed 's/^/| /' conftest.$ac_ext >&5
19756
19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19758$as_echo "no" >&6; }
19759
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
19761$as_echo_n "checking whether fops->readdir() is available... " >&6; }
19762
19763
19764cat confdefs.h - <<_ACEOF >conftest.c
19765
19766
19767 #include <linux/fs.h>
19768 int readdir(struct file *filp, void *entry, filldir_t func)
19769 { return 0; }
19770
19771 static const struct file_operations fops
19772 __attribute__ ((unused)) = {
19773 .readdir = readdir,
19774 };
19775
19776int
19777main (void)
19778{
19779
19780
19781 ;
19782 return 0;
19783}
19784
19785_ACEOF
19786
19787
23d56208
AX
19788
19789cat - <<_ACEOF >conftest.h
19790
19791_ACEOF
19792
19793
c06d4368
AX
19794 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19795 echo "obj-m := conftest.o" >build/Makefile
19796 modpost_flag=''
19797 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 19798 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
c06d4368
AX
19799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19800 (eval $ac_try) 2>&5
19801 ac_status=$?
19802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19803 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19805 (eval $ac_try) 2>&5
19806 ac_status=$?
19807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19808 test $ac_status = 0; }; }; then :
19809
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19811$as_echo "yes" >&6; }
19812
19813$as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
19814
19815
19816else
19817 $as_echo "$as_me: failed program was:" >&5
19818sed 's/^/| /' conftest.$ac_ext >&5
19819
19820 as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5
19821
19822
19823
19824fi
19825 rm -Rf build
19826
19827
19828
19829
19830
19831
19832fi
19833 rm -Rf build
19834
19835
19836
23d56208
AX
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
19838$as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
c06d4368 19839
c06d4368 19840
23d56208 19841cat confdefs.h - <<_ACEOF >conftest.c
c06d4368 19842
c06d4368 19843
23d56208 19844 #include <linux/fs.h>
c06d4368 19845
23d56208
AX
19846 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
19847 { return 0; }
19848 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
19849 { return 0; }
c06d4368 19850
23d56208
AX
19851 static const struct file_operations
19852 fops __attribute__ ((unused)) = {
19853 .read_iter = test_read,
19854 .write_iter = test_write,
19855 };
c06d4368 19856
23d56208
AX
19857int
19858main (void)
19859{
c06d4368 19860
c06d4368 19861
23d56208
AX
19862 ;
19863 return 0;
19864}
c06d4368 19865
23d56208 19866_ACEOF
0e3762ca
CALP
19867
19868
19869
23d56208 19870cat - <<_ACEOF >conftest.h
0e3762ca 19871
23d56208 19872_ACEOF
0e3762ca
CALP
19873
19874
23d56208
AX
19875 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19876 echo "obj-m := conftest.o" >build/Makefile
19877 modpost_flag=''
19878 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19879 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19881 (eval $ac_try) 2>&5
19882 ac_status=$?
19883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19884 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19886 (eval $ac_try) 2>&5
19887 ac_status=$?
19888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19889 test $ac_status = 0; }; }; then :
0e3762ca 19890
23d56208
AX
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19892$as_echo "yes" >&6; }
0e3762ca 19893
23d56208 19894$as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
0e3762ca
CALP
19895
19896
0e3762ca 19897else
23d56208
AX
19898 $as_echo "$as_me: failed program was:" >&5
19899sed 's/^/| /' conftest.$ac_ext >&5
0e3762ca 19900
23d56208
AX
19901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19902$as_echo "no" >&6; }
0e3762ca 19903
0e3762ca 19904
0e3762ca 19905
23d56208
AX
19906fi
19907 rm -Rf build
0e3762ca 19908
0e3762ca
CALP
19909
19910
0e3762ca 19911
23d56208
AX
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
19913$as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
0e3762ca 19914
0e3762ca 19915
23d56208 19916cat confdefs.h - <<_ACEOF >conftest.c
0e3762ca 19917
0e3762ca 19918
23d56208 19919 #include <linux/pagemap.h>
0e3762ca 19920
23d56208
AX
19921int
19922main (void)
19923{
0e3762ca 19924
23d56208
AX
19925 struct page page;
19926 kmap_atomic(&page);
0e3762ca 19927
23d56208
AX
19928 ;
19929 return 0;
19930}
0e3762ca 19931
23d56208 19932_ACEOF
0e3762ca 19933
0e3762ca 19934
0e3762ca 19935
23d56208 19936cat - <<_ACEOF >conftest.h
0e3762ca 19937
23d56208 19938_ACEOF
0e3762ca 19939
0e3762ca 19940
23d56208
AX
19941 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19942 echo "obj-m := conftest.o" >build/Makefile
19943 modpost_flag=''
19944 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19945 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19947 (eval $ac_try) 2>&5
19948 ac_status=$?
19949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19950 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19952 (eval $ac_try) 2>&5
19953 ac_status=$?
19954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19955 test $ac_status = 0; }; }; then :
19956
0e3762ca
CALP
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19958$as_echo "yes" >&6; }
0e3762ca 19959
23d56208 19960$as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
0e3762ca 19961
0e3762ca
CALP
19962
19963else
23d56208
AX
19964 $as_echo "$as_me: failed program was:" >&5
19965sed 's/^/| /' conftest.$ac_ext >&5
0e3762ca 19966
23d56208
AX
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19968$as_echo "no" >&6; }
0e3762ca
CALP
19969
19970
0e3762ca 19971
0e3762ca 19972fi
23d56208 19973 rm -Rf build
0e3762ca 19974
0e3762ca 19975
0e3762ca
CALP
19976
19977
23d56208
AX
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
19979$as_echo_n "checking whether follow_down_one() is available... " >&6; }
19980
19981
19982cat confdefs.h - <<_ACEOF >conftest.c
19983
19984
19985 #include <linux/namei.h>
0e3762ca 19986
0e3762ca 19987int
23d56208 19988main (void)
0e3762ca 19989{
23d56208
AX
19990
19991 struct path *p = NULL;
19992 follow_down_one(p);
19993
0e3762ca
CALP
19994 ;
19995 return 0;
19996}
23d56208 19997
0e3762ca 19998_ACEOF
23d56208
AX
19999
20000
20001
20002cat - <<_ACEOF >conftest.h
20003
0e3762ca
CALP
20004_ACEOF
20005
23d56208
AX
20006
20007 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20008 echo "obj-m := conftest.o" >build/Makefile
20009 modpost_flag=''
20010 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20011 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20013 (eval $ac_try) 2>&5
20014 ac_status=$?
20015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20016 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20018 (eval $ac_try) 2>&5
20019 ac_status=$?
20020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20021 test $ac_status = 0; }; }; then :
20022
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20024$as_echo "yes" >&6; }
20025
20026$as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
20027
0e3762ca
CALP
20028
20029else
23d56208
AX
20030 $as_echo "$as_me: failed program was:" >&5
20031sed 's/^/| /' conftest.$ac_ext >&5
20032
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20034$as_echo "no" >&6; }
20035
20036
20037
0e3762ca 20038fi
23d56208 20039 rm -Rf build
0e3762ca
CALP
20040
20041
0e3762ca 20042
23d56208
AX
20043
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
20045$as_echo_n "checking whether make_request_fn() returns int... " >&6; }
20046
20047
20048cat confdefs.h - <<_ACEOF >conftest.c
20049
20050
20051 #include <linux/blkdev.h>
20052
20053 int make_request(struct request_queue *q, struct bio *bio)
20054 {
20055 return (0);
20056 }
20057
0e3762ca 20058int
23d56208 20059main (void)
0e3762ca 20060{
23d56208
AX
20061
20062 blk_queue_make_request(NULL, &make_request);
20063
0e3762ca
CALP
20064 ;
20065 return 0;
20066}
23d56208 20067
0e3762ca
CALP
20068_ACEOF
20069
0e3762ca 20070
0e3762ca 20071
23d56208 20072cat - <<_ACEOF >conftest.h
0e3762ca 20073
23d56208 20074_ACEOF
0e3762ca
CALP
20075
20076
23d56208
AX
20077 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20078 echo "obj-m := conftest.o" >build/Makefile
20079 modpost_flag=''
20080 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20081 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20083 (eval $ac_try) 2>&5
20084 ac_status=$?
20085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20086 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20088 (eval $ac_try) 2>&5
20089 ac_status=$?
20090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20091 test $ac_status = 0; }; }; then :
0e3762ca 20092
23d56208
AX
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20094$as_echo "yes" >&6; }
0e3762ca 20095
23d56208 20096$as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
0e3762ca 20097
0e3762ca 20098
23d56208
AX
20099$as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
20100
0e3762ca
CALP
20101
20102else
23d56208
AX
20103 $as_echo "$as_me: failed program was:" >&5
20104sed 's/^/| /' conftest.$ac_ext >&5
0e3762ca 20105
23d56208
AX
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20107$as_echo "no" >&6; }
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
20109$as_echo_n "checking whether make_request_fn() returns void... " >&6; }
0e3762ca
CALP
20110
20111
23d56208
AX
20112cat confdefs.h - <<_ACEOF >conftest.c
20113
20114
20115 #include <linux/blkdev.h>
20116
20117 void make_request(struct request_queue *q, struct bio *bio)
20118 {
20119 return;
20120 }
0e3762ca 20121
0e3762ca 20122int
23d56208 20123main (void)
0e3762ca 20124{
23d56208
AX
20125
20126 blk_queue_make_request(NULL, &make_request);
20127
20128 ;
20129 return 0;
20130}
20131
20132_ACEOF
20133
20134
20135
20136cat - <<_ACEOF >conftest.h
20137
20138_ACEOF
20139
20140
20141 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20142 echo "obj-m := conftest.o" >build/Makefile
20143 modpost_flag=''
20144 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20145 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20147 (eval $ac_try) 2>&5
20148 ac_status=$?
20149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20150 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20152 (eval $ac_try) 2>&5
20153 ac_status=$?
20154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20155 test $ac_status = 0; }; }; then :
20156
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20158$as_echo "yes" >&6; }
20159
20160$as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
20161
20162
20163else
20164 $as_echo "$as_me: failed program was:" >&5
20165sed 's/^/| /' conftest.$ac_ext >&5
20166
20167 as_fn_error $? "no - Please file a bug report at
20168 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
20169
20170
20171
20172fi
20173 rm -Rf build
20174
20175
20176
20177
20178
20179fi
20180 rm -Rf build
20181
20182
20183
20184
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
20186$as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
20187
20188
20189
20190cat confdefs.h - <<_ACEOF >conftest.c
20191
20192
20193 #include <linux/bio.h>
20194
20195 void (*generic_start_io_acct_f)(int, unsigned long,
20196 struct hd_struct *) = &generic_start_io_acct;
20197 void (*generic_end_io_acct_f)(int, struct hd_struct *,
20198 unsigned long) = &generic_end_io_acct;
20199
20200int
20201main (void)
20202{
20203
20204 generic_start_io_acct(0, 0, NULL);
20205 generic_end_io_acct(0, NULL, 0);
20206
20207 ;
20208 return 0;
20209}
20210
20211_ACEOF
20212
20213
20214
20215cat - <<_ACEOF >conftest.h
20216
20217_ACEOF
20218
20219
20220 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20221 echo "obj-m := conftest.o" >build/Makefile
20222 modpost_flag=''
20223 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20224 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20226 (eval $ac_try) 2>&5
20227 ac_status=$?
20228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20229 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20231 (eval $ac_try) 2>&5
20232 ac_status=$?
20233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20234 test $ac_status = 0; }; }; then :
20235 rc=0
20236else
20237 $as_echo "$as_me: failed program was:" >&5
20238sed 's/^/| /' conftest.$ac_ext >&5
20239 rc=1
20240
20241
20242fi
20243 rm -Rf build
20244
20245
20246 if test $rc -ne 0; then :
20247
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20249$as_echo "no" >&6; }
20250
20251 else
20252 if test "x$enable_linux_builtin" != xyes; then
20253
20254 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
20255 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20256 rc=$?
20257 if test $rc -ne 0; then
20258 export=0
20259 for file in block/bio.c; do
20260 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
20261 "$LINUX/$file" 2>/dev/null
20262 rc=$?
20263 if test $rc -eq 0; then
20264 export=1
20265 break;
20266 fi
20267 done
20268 if test $export -eq 0; then :
20269 rc=1
20270 else :
20271 rc=0
20272 fi
20273 else :
20274 rc=0
20275 fi
20276
20277 fi
20278 if test $rc -ne 0; then :
20279
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20281$as_echo "no" >&6; }
20282
20283 else :
20284
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20286$as_echo "yes" >&6; }
20287
20288$as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
20289
20290
20291 fi
20292 fi
20293
20294
20295
20296 if test "$LINUX_OBJ" != "$LINUX"; then :
20297
20298 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
20299
20300fi
20301
20302
20303
20304 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
20305 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
20306 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
20307 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
20308
20309
20310 ;;
20311 user)
20312
20313
20314# Check whether --with-mounthelperdir was given.
20315if test "${with_mounthelperdir+set}" = set; then :
20316 withval=$with_mounthelperdir; mounthelperdir=$withval
20317else
20318 mounthelperdir=/sbin
20319fi
20320
20321
20322
20323
20324
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
20326$as_echo_n "checking for udev directories... " >&6; }
20327
20328# Check whether --with-udevdir was given.
20329if test "${with_udevdir+set}" = set; then :
20330 withval=$with_udevdir; udevdir=$withval
20331else
20332 udevdir=check
20333fi
20334
20335
20336 if test "x$udevdir" = xcheck; then :
20337
20338 path1=/lib/udev
20339 path2=/usr/lib/udev
20340 default=$path2
20341
20342 if test -d "$path1"; then :
20343 udevdir="$path1"
20344else
20345
20346 if test -d "$path2"; then :
20347 udevdir="$path2"
20348else
20349 udevdir="$default"
20350fi
20351
20352fi
20353
20354fi
20355
20356
20357# Check whether --with-udevruledir was given.
20358if test "${with_udevruledir+set}" = set; then :
20359 withval=$with_udevruledir; udevruledir=$withval
20360else
20361 udevruledir="${udevdir}/rules.d"
20362fi
20363
20364
20365
20366
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
20368$as_echo "$udevdir;$udevruledir" >&6; }
20369
20370
20371 # Check whether --enable-systemd was given.
20372if test "${enable_systemd+set}" = set; then :
20373 enableval=$enable_systemd;
20374else
20375 enable_systemd=yes
20376fi
20377
20378
20379
20380# Check whether --with-systemdunitdir was given.
20381if test "${with_systemdunitdir+set}" = set; then :
20382 withval=$with_systemdunitdir; systemdunitdir=$withval
20383else
20384 systemdunitdir=/usr/lib/systemd/system
20385fi
20386
20387
20388
20389# Check whether --with-systemdpresetdir was given.
20390if test "${with_systemdpresetdir+set}" = set; then :
20391 withval=$with_systemdpresetdir; systemdpresetdir=$withval
20392else
20393 systemdpresetdir=/usr/lib/systemd/system-preset
20394fi
20395
20396
20397
20398# Check whether --with-systemdmodulesloaddir was given.
20399if test "${with_systemdmodulesloaddir+set}" = set; then :
20400 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
20401else
20402 systemdmodulesloaddir=/usr/lib/modules-load.d
20403fi
20404
20405
20406
20407 if test "x$enable_systemd" = xyes; then :
20408
20409 ZFS_INIT_SYSTEMD=systemd
20410 ZFS_MODULE_LOAD=modules-load.d
20411 modulesloaddir=$systemdmodulesloaddir
20412
20413fi
20414
20415
20416
20417
20418
20419
20420
20421
20422 # Check whether --enable-sysvinit was given.
20423if test "${enable_sysvinit+set}" = set; then :
20424 enableval=$enable_sysvinit;
20425else
20426 enable_sysvinit=yes
20427fi
20428
20429
20430 if test "x$enable_sysvinit" = xyes; then :
20431 ZFS_INIT_SYSV=init.d
20432fi
20433
20434
20435
20436
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
20438$as_echo_n "checking for dracut directory... " >&6; }
20439
20440# Check whether --with-dracutdir was given.
20441if test "${with_dracutdir+set}" = set; then :
20442 withval=$with_dracutdir; dracutdir=$withval
20443else
20444 dracutdir=check
20445fi
20446
20447
20448 if test "x$dracutdir" = xcheck; then :
20449
20450 path1=/usr/share/dracut
20451 path2=/usr/lib/dracut
20452 default=$path2
20453
20454 if test -d "$path1"; then :
20455 dracutdir="$path1"
20456else
20457
20458 if test -d "$path2"; then :
20459 dracutdir="$path2"
20460else
20461 dracutdir="$default"
20462fi
20463
20464fi
20465
20466fi
20467
20468
20469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
20470$as_echo "$dracutdir" >&6; }
20471
20472
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
20474$as_echo_n "checking for target asm dir... " >&6; }
20475 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
20476
20477 case $TARGET_ARCH in
20478 i386|x86_64)
20479 TARGET_ASM_DIR=asm-${TARGET_ARCH}
20480 ;;
20481 *)
20482 TARGET_ASM_DIR=asm-generic
20483 ;;
20484 esac
20485
20486
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
20488$as_echo "$TARGET_ASM_DIR" >&6; }
20489
20490
20491 ZLIB=
20492
20493 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20494if test "x$ac_cv_header_zlib_h" = xyes; then :
20495
20496else
20497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20499as_fn_error $? "
20500 *** zlib.h missing, zlib-devel package required
20501See \`config.log' for more details" "$LINENO" 5; }
20502fi
20503
20504
20505
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
20507$as_echo_n "checking for compress2 in -lz... " >&6; }
20508if ${ac_cv_lib_z_compress2+:} false; then :
20509 $as_echo_n "(cached) " >&6
20510else
20511 ac_check_lib_save_LIBS=$LIBS
20512LIBS="-lz $LIBS"
20513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20514/* end confdefs.h. */
20515
20516/* Override any GCC internal prototype to avoid an error.
20517 Use char because int might match the return type of a GCC
20518 builtin and then its argument prototype would still apply. */
20519#ifdef __cplusplus
20520extern "C"
20521#endif
20522char compress2 ();
20523int
20524main ()
20525{
20526return compress2 ();
20527 ;
20528 return 0;
20529}
20530_ACEOF
20531if ac_fn_c_try_link "$LINENO"; then :
20532 ac_cv_lib_z_compress2=yes
20533else
20534 ac_cv_lib_z_compress2=no
20535fi
20536rm -f core conftest.err conftest.$ac_objext \
20537 conftest$ac_exeext conftest.$ac_ext
20538LIBS=$ac_check_lib_save_LIBS
20539fi
20540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
20541$as_echo "$ac_cv_lib_z_compress2" >&6; }
20542if test "x$ac_cv_lib_z_compress2" = xyes; then :
20543 cat >>confdefs.h <<_ACEOF
20544#define HAVE_LIBZ 1
20545_ACEOF
20546
20547 LIBS="-lz $LIBS"
20548
20549else
20550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20552as_fn_error $? "
20553 *** compress2() missing, zlib-devel package required
20554See \`config.log' for more details" "$LINENO" 5; }
20555fi
20556
20557
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
20559$as_echo_n "checking for uncompress in -lz... " >&6; }
20560if ${ac_cv_lib_z_uncompress+:} false; then :
20561 $as_echo_n "(cached) " >&6
20562else
20563 ac_check_lib_save_LIBS=$LIBS
20564LIBS="-lz $LIBS"
20565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20566/* end confdefs.h. */
20567
20568/* Override any GCC internal prototype to avoid an error.
20569 Use char because int might match the return type of a GCC
20570 builtin and then its argument prototype would still apply. */
20571#ifdef __cplusplus
20572extern "C"
20573#endif
20574char uncompress ();
20575int
20576main ()
20577{
20578return uncompress ();
20579 ;
20580 return 0;
20581}
20582_ACEOF
20583if ac_fn_c_try_link "$LINENO"; then :
20584 ac_cv_lib_z_uncompress=yes
20585else
20586 ac_cv_lib_z_uncompress=no
20587fi
20588rm -f core conftest.err conftest.$ac_objext \
20589 conftest$ac_exeext conftest.$ac_ext
20590LIBS=$ac_check_lib_save_LIBS
20591fi
20592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
20593$as_echo "$ac_cv_lib_z_uncompress" >&6; }
20594if test "x$ac_cv_lib_z_uncompress" = xyes; then :
20595 cat >>confdefs.h <<_ACEOF
20596#define HAVE_LIBZ 1
20597_ACEOF
20598
20599 LIBS="-lz $LIBS"
20600
20601else
20602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20604as_fn_error $? "
20605 *** uncompress() missing, zlib-devel package required
20606See \`config.log' for more details" "$LINENO" 5; }
20607fi
20608
20609
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
20611$as_echo_n "checking for crc32 in -lz... " >&6; }
20612if ${ac_cv_lib_z_crc32+:} false; then :
20613 $as_echo_n "(cached) " >&6
20614else
20615 ac_check_lib_save_LIBS=$LIBS
20616LIBS="-lz $LIBS"
20617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20618/* end confdefs.h. */
20619
20620/* Override any GCC internal prototype to avoid an error.
20621 Use char because int might match the return type of a GCC
20622 builtin and then its argument prototype would still apply. */
20623#ifdef __cplusplus
20624extern "C"
20625#endif
20626char crc32 ();
20627int
20628main ()
20629{
20630return crc32 ();
20631 ;
20632 return 0;
20633}
20634_ACEOF
20635if ac_fn_c_try_link "$LINENO"; then :
20636 ac_cv_lib_z_crc32=yes
20637else
20638 ac_cv_lib_z_crc32=no
20639fi
20640rm -f core conftest.err conftest.$ac_objext \
20641 conftest$ac_exeext conftest.$ac_ext
20642LIBS=$ac_check_lib_save_LIBS
20643fi
20644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
20645$as_echo "$ac_cv_lib_z_crc32" >&6; }
20646if test "x$ac_cv_lib_z_crc32" = xyes; then :
20647 cat >>confdefs.h <<_ACEOF
20648#define HAVE_LIBZ 1
20649_ACEOF
20650
20651 LIBS="-lz $LIBS"
20652
20653else
20654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20656as_fn_error $? "
20657 *** crc32() missing, zlib-devel package required
20658See \`config.log' for more details" "$LINENO" 5; }
20659fi
20660
20661
20662 ZLIB="-lz"
20663
20664
20665$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
20666
20667
20668
20669 LIBUUID=
20670
20671 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
20672if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
20673
20674else
20675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20677as_fn_error $? "
20678 *** uuid/uuid.h missing, libuuid-devel package required
20679See \`config.log' for more details" "$LINENO" 5; }
20680fi
20681
20682
20683
20684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
20685$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
20686if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
20687 $as_echo_n "(cached) " >&6
20688else
20689 ac_check_lib_save_LIBS=$LIBS
20690LIBS="-luuid $LIBS"
20691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20692/* end confdefs.h. */
20693
20694/* Override any GCC internal prototype to avoid an error.
20695 Use char because int might match the return type of a GCC
20696 builtin and then its argument prototype would still apply. */
20697#ifdef __cplusplus
20698extern "C"
20699#endif
20700char uuid_generate ();
20701int
20702main ()
20703{
20704return uuid_generate ();
0e3762ca
CALP
20705 ;
20706 return 0;
20707}
20708_ACEOF
20709if ac_fn_c_try_link "$LINENO"; then :
20710 ac_cv_lib_uuid_uuid_generate=yes
20711else
23d56208
AX
20712 ac_cv_lib_uuid_uuid_generate=no
20713fi
20714rm -f core conftest.err conftest.$ac_objext \
20715 conftest$ac_exeext conftest.$ac_ext
20716LIBS=$ac_check_lib_save_LIBS
20717fi
20718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
20719$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
20720if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
20721 cat >>confdefs.h <<_ACEOF
20722#define HAVE_LIBUUID 1
20723_ACEOF
20724
20725 LIBS="-luuid $LIBS"
20726
20727else
20728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20730as_fn_error $? "
20731 *** uuid_generate() missing, libuuid-devel package required
20732See \`config.log' for more details" "$LINENO" 5; }
20733fi
20734
20735
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
20737$as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
20738if ${ac_cv_lib_uuid_uuid_is_null+:} false; then :
20739 $as_echo_n "(cached) " >&6
20740else
20741 ac_check_lib_save_LIBS=$LIBS
20742LIBS="-luuid $LIBS"
20743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20744/* end confdefs.h. */
20745
20746/* Override any GCC internal prototype to avoid an error.
20747 Use char because int might match the return type of a GCC
20748 builtin and then its argument prototype would still apply. */
20749#ifdef __cplusplus
20750extern "C"
20751#endif
20752char uuid_is_null ();
20753int
20754main ()
20755{
20756return uuid_is_null ();
20757 ;
20758 return 0;
20759}
20760_ACEOF
20761if ac_fn_c_try_link "$LINENO"; then :
20762 ac_cv_lib_uuid_uuid_is_null=yes
20763else
20764 ac_cv_lib_uuid_uuid_is_null=no
20765fi
20766rm -f core conftest.err conftest.$ac_objext \
20767 conftest$ac_exeext conftest.$ac_ext
20768LIBS=$ac_check_lib_save_LIBS
20769fi
20770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
20771$as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
20772if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes; then :
20773 cat >>confdefs.h <<_ACEOF
20774#define HAVE_LIBUUID 1
20775_ACEOF
20776
20777 LIBS="-luuid $LIBS"
20778
20779else
20780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20782as_fn_error $? "
20783 *** uuid_is_null() missing, libuuid-devel package required
20784See \`config.log' for more details" "$LINENO" 5; }
20785fi
20786
20787
20788 LIBUUID="-luuid"
20789
20790
20791$as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
20792
20793
20794
20795
20796# Check whether --with-blkid was given.
20797if test "${with_blkid+set}" = set; then :
20798 withval=$with_blkid;
20799else
20800 with_blkid=check
20801fi
20802
20803
20804 LIBBLKID=
20805 if test "x$with_blkid" = xyes; then :
20806
20807 LIBBLKID="-lblkid"
20808
20809
20810$as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
20811
20812
20813fi
20814
20815 if test "x$with_blkid" = xcheck; then :
20816
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
20818$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
20819if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
20820 $as_echo_n "(cached) " >&6
20821else
20822 ac_check_lib_save_LIBS=$LIBS
20823LIBS="-lblkid $LIBS"
20824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20825/* end confdefs.h. */
20826
20827/* Override any GCC internal prototype to avoid an error.
20828 Use char because int might match the return type of a GCC
20829 builtin and then its argument prototype would still apply. */
20830#ifdef __cplusplus
20831extern "C"
20832#endif
20833char blkid_get_cache ();
20834int
20835main ()
20836{
20837return blkid_get_cache ();
20838 ;
20839 return 0;
20840}
20841_ACEOF
20842if ac_fn_c_try_link "$LINENO"; then :
20843 ac_cv_lib_blkid_blkid_get_cache=yes
20844else
20845 ac_cv_lib_blkid_blkid_get_cache=no
20846fi
20847rm -f core conftest.err conftest.$ac_objext \
20848 conftest$ac_exeext conftest.$ac_ext
20849LIBS=$ac_check_lib_save_LIBS
20850fi
20851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
20852$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
20853if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
20854
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
20856$as_echo_n "checking for blkid zfs support... " >&6; }
20857
20858 ZFS_DEV=`mktemp`
20859 truncate -s 64M $ZFS_DEV
20860 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
20861 dd of=$ZFS_DEV bs=1k count=8 \
20862 seek=128 conv=notrunc &>/dev/null \
20863 >/dev/null 2>/dev/null
20864 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
20865 dd of=$ZFS_DEV bs=1k count=8 \
20866 seek=132 conv=notrunc &>/dev/null \
20867 >/dev/null 2>/dev/null
20868 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
20869 dd of=$ZFS_DEV bs=1k count=8 \
20870 seek=136 conv=notrunc &>/dev/null \
20871 >/dev/null 2>/dev/null
20872 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
20873 dd of=$ZFS_DEV bs=1k count=8 \
20874 seek=140 conv=notrunc &>/dev/null \
20875 >/dev/null 2>/dev/null
20876
20877 saved_LIBS="$LIBS"
20878 LIBS="-lblkid"
20879
20880 if test "$cross_compiling" = yes; then :
20881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20883as_fn_error $? "cannot run test program while cross compiling
20884See \`config.log' for more details" "$LINENO" 5; }
20885else
20886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20887/* end confdefs.h. */
20888
20889 #include <stdio.h>
20890 #include <stdlib.h>
20891 #include <blkid/blkid.h>
20892
20893int
20894main ()
20895{
20896
20897 blkid_cache cache;
20898 char *value;
20899
20900 if (blkid_get_cache(&cache, NULL) < 0)
20901 return 1;
20902
20903 value = blkid_get_tag_value(cache, "TYPE",
20904 "$ZFS_DEV");
20905 if (!value) {
20906 blkid_put_cache(cache);
20907 return 2;
20908 }
20909
20910 if (strcmp(value, "zfs_member")) {
20911 free(value);
20912 blkid_put_cache(cache);
20913 return 0;
20914 }
20915
20916 free(value);
20917 blkid_put_cache(cache);
20918
20919 ;
20920 return 0;
20921}
20922_ACEOF
20923if ac_fn_c_try_run "$LINENO"; then :
20924
20925 rm -f $ZFS_DEV
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20927$as_echo "yes" >&6; }
20928 LIBBLKID="-lblkid"
20929
20930
20931$as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
20932
20933
20934else
20935
20936 rm -f $ZFS_DEV
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20938$as_echo "no" >&6; }
20939 if test "x$with_blkid" != xcheck; then :
20940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20941$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20942as_fn_error $? "--with-blkid given but unavailable
20943See \`config.log' for more details" "$LINENO" 5; }
20944fi
20945
20946fi
20947rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20948 conftest.$ac_objext conftest.beam conftest.$ac_ext
20949fi
20950
20951
20952 LIBS="$saved_LIBS"
20953
20954else
20955
20956 if test "x$with_blkid" != xcheck; then :
20957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20959as_fn_error $? "--with-blkid given but unavailable
20960See \`config.log' for more details" "$LINENO" 5; }
20961fi
20962
20963
20964fi
20965
20966
20967fi
20968
20969
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
20971$as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
20972
20973 saved_flags="$CFLAGS"
20974 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
20975
20976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20977/* end confdefs.h. */
20978
20979int
20980main ()
20981{
20982
20983 ;
20984 return 0;
20985}
20986_ACEOF
20987if ac_fn_c_try_compile "$LINENO"; then :
20988
20989 FRAME_LARGER_THAN=-Wframe-larger-than=1024
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20991$as_echo "yes" >&6; }
20992
20993else
20994
20995 FRAME_LARGER_THAN=
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20997$as_echo "no" >&6; }
20998
20999fi
21000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21001
21002 CFLAGS="$saved_flags"
21003
21004
21005
21006 if test "x$runstatedir" = x; then
21007 runstatedir='${localstatedir}/run'
21008
21009 fi
21010
21011 for ac_func in mlockall
21012do :
21013 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
21014if test "x$ac_cv_func_mlockall" = xyes; then :
21015 cat >>confdefs.h <<_ACEOF
21016#define HAVE_MLOCKALL 1
21017_ACEOF
21018
21019fi
21020done
21021
21022 ;;
21023 all)
21024
21025
21026# Check whether --with-linux was given.
21027if test "${with_linux+set}" = set; then :
21028 withval=$with_linux; kernelsrc="$withval"
21029fi
21030
21031
21032
21033# Check whether --with-linux-obj was given.
21034if test "${with_linux_obj+set}" = set; then :
21035 withval=$with_linux_obj; kernelbuild="$withval"
21036fi
21037
21038
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
21040$as_echo_n "checking kernel source directory... " >&6; }
21041 if test -z "$kernelsrc"; then :
21042
21043 if test -e "/lib/modules/$(uname -r)/source"; then :
21044
21045 headersdir="/lib/modules/$(uname -r)/source"
21046 sourcelink=$(readlink -f "$headersdir")
21047
21048elif test -e "/lib/modules/$(uname -r)/build"; then :
21049
21050 headersdir="/lib/modules/$(uname -r)/build"
21051 sourcelink=$(readlink -f "$headersdir")
21052
21053else
21054
21055 sourcelink=$(ls -1d /usr/src/kernels/* \
21056 /usr/src/linux-* \
21057 2>/dev/null | grep -v obj | tail -1)
21058
21059fi
21060
21061 if test -n "$sourcelink" && test -e ${sourcelink}; then :
21062
21063 kernelsrc=`readlink -f ${sourcelink}`
21064
21065else
21066
21067 kernelsrc="Not found"
21068
21069fi
21070
21071else
21072
21073 if test "$kernelsrc" = "NONE"; then :
21074
21075 kernsrcver=NONE
21076
21077fi
21078
21079fi
21080
21081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
21082$as_echo "$kernelsrc" >&6; }
21083 if test ! -d "$kernelsrc"; then :
21084
21085 as_fn_error $? "
21086 *** Please make sure the kernel devel package for your distribution
21087 *** is installed and then try again. If that fails, you can specify the
21088 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
21089
21090fi
21091
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
21093$as_echo_n "checking kernel build directory... " >&6; }
21094 if test -z "$kernelbuild"; then :
21095
21096 if test -e "/lib/modules/$(uname -r)/build"; then :
21097
21098 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
21099
21100elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
21101
21102 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
21103
21104elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
21105
21106 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
21107
21108elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
21109
21110 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
21111
21112else
21113
21114 kernelbuild=${kernelsrc}
21115
21116fi
21117
21118fi
21119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
21120$as_echo "$kernelbuild" >&6; }
21121
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
21123$as_echo_n "checking kernel source version... " >&6; }
21124 utsrelease1=$kernelbuild/include/linux/version.h
21125 utsrelease2=$kernelbuild/include/linux/utsrelease.h
21126 utsrelease3=$kernelbuild/include/generated/utsrelease.h
21127 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
21128
21129 utsrelease=linux/version.h
21130
21131elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
21132
21133 utsrelease=linux/utsrelease.h
21134
21135elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
21136
21137 utsrelease=generated/utsrelease.h
21138
21139fi
21140
21141 if test "$utsrelease"; then :
21142
21143 kernsrcver=`(echo "#include <$utsrelease>";
21144 echo "kernsrcver=UTS_RELEASE") |
21145 cpp -I $kernelbuild/include |
21146 grep "^kernsrcver=" | cut -d \" -f 2`
21147
21148 if test -z "$kernsrcver"; then :
21149
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
21151$as_echo "Not found" >&6; }
21152 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
21153
21154fi
21155
21156else
21157
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
21159$as_echo "Not found" >&6; }
21160 if test "x$enable_linux_builtin" != xyes; then
21161 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
21162 else
21163 as_fn_error $? "
21164 *** Cannot find UTS_RELEASE definition.
21165 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
21166 fi
21167
21168fi
21169
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
21171$as_echo "$kernsrcver" >&6; }
21172
21173 LINUX=${kernelsrc}
21174 LINUX_OBJ=${kernelbuild}
21175 LINUX_VERSION=${kernsrcver}
21176
21177
21178
21179
21180
21181
21182 modpost=$LINUX/scripts/Makefile.modpost
21183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
21184$as_echo_n "checking kernel file name for module symbols... " >&6; }
21185 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
21186
21187 if grep -q Modules.symvers $modpost; then :
21188
21189 LINUX_SYMBOLS=Modules.symvers
21190
21191else
21192
21193 LINUX_SYMBOLS=Module.symvers
21194
21195fi
21196
21197 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
21198
21199 as_fn_error $? "
21200 *** Please make sure the kernel devel package for your distribution
21201 *** is installed. If you are building with a custom kernel, make sure the
21202 *** kernel is configured, built, and the '--with-linux=PATH' configure
21203 *** option refers to the location of the kernel source." "$LINENO" 5
21204
21205fi
21206
21207else
21208
21209 LINUX_SYMBOLS=NONE
21210
21211fi
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
21213$as_echo "$LINUX_SYMBOLS" >&6; }
21214
21215
21216
21217
21218
21219# Check whether --with-spl was given.
21220if test "${with_spl+set}" = set; then :
21221 withval=$with_spl; splsrc="$withval"
21222fi
21223
21224
21225
21226# Check whether --with-spl-obj was given.
21227if test "${with_spl_obj+set}" = set; then :
21228 withval=$with_spl_obj; splbuild="$withval"
21229fi
21230
21231
21232
21233# Check whether --with-spl-timeout was given.
21234if test "${with_spl_timeout+set}" = set; then :
21235 withval=$with_spl_timeout; timeout="$withval"
21236else
21237 timeout=0
21238fi
21239
21240
21241 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
21242 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
21243 splsrc2="/usr/local/src/spl-${VERSION}"
21244 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
21245 splsrc4="/usr/src/spl-${VERSION}"
21246 splsrc5="../spl/"
21247 splsrc6="$LINUX"
21248
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
21250$as_echo_n "checking spl source directory... " >&6; }
21251 if test -z "${splsrc}"; then :
21252
21253 if test -e "${splsrc0}/spl.release.in"; then :
21254
21255 splsrc=${splsrc0}
21256
21257elif test -e "${splsrc1}/spl.release.in"; then :
21258
21259 splsrc=${splsrc1}
21260
21261elif test -e "${splsrc2}/spl.release.in"; then :
21262
21263 splsrc=${splsrc2}
21264
21265elif test -e "${splsrc3}/spl.release.in"; then :
21266
21267 splsrc=$(readlink -f "${splsrc3}")
21268
21269elif test -e "${splsrc4}/spl.release.in" ; then :
21270
21271 splsrc=${splsrc4}
21272
21273elif test -e "${splsrc5}/spl.release.in"; then :
21274
21275 splsrc=$(readlink -f "${splsrc5}")
21276
21277elif test -e "${splsrc6}/spl.release.in" ; then :
21278
21279 splsrc=${splsrc6}
21280
21281else
21282
21283 splsrc="Not found"
21284
21285fi
21286
21287else
21288
21289 if test "$splsrc" = "NONE"; then :
21290
21291 splbuild=NONE
21292 splsrcver=NONE
21293
21294fi
21295
21296fi
21297
21298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
21299$as_echo "$splsrc" >&6; }
21300 if test ! -e "$splsrc/spl.release.in"; then :
21301
21302 as_fn_error $? "
21303 *** Please make sure the kmod spl devel package for your distribution
21304 *** is installed then try again. If that fails you can specify the
21305 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
21306
21307fi
21308
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
21310$as_echo_n "checking spl build directory... " >&6; }
21311 while true; do
21312 if test -z "$splbuild"; then :
21313
21314 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
21315
21316 splbuild="${splsrc}/${LINUX_VERSION}"
21317
21318elif test -e "${splsrc}/spl_config.h" ; then :
21319
21320 splbuild="${splsrc}"
21321
21322elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then :
21323
21324 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
21325
21326else
21327
21328 splbuild="Not found"
21329
21330fi
21331
21332fi
21333 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
21334
21335 break;
21336
21337else
21338
21339 sleep 1
21340 timeout=$((timeout-1))
21341
21342fi
21343 done
21344
21345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
21346$as_echo "$splbuild" >&6; }
21347 if ! test -e "$splbuild/spl_config.h"; then :
21348
21349 as_fn_error $? "
21350 *** Please make sure the kmod spl devel <kernel> package for your
21351 *** distribution is installed then try again. If that fails you
21352 *** can specify the location of the spl objects with the
21353 *** '--with-spl-obj=PATH' option." "$LINENO" 5
21354
21355fi
21356
21357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
21358$as_echo_n "checking spl source version... " >&6; }
21359 if test -r $splbuild/spl_config.h &&
21360 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
21361
21362
21363 splsrcver=`(echo "#include <spl_config.h>";
21364 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
21365 cpp -I $splbuild |
21366 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
21367
21368fi
21369
21370 if test -z "$splsrcver"; then :
21371
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
21373$as_echo "Not found" >&6; }
21374 as_fn_error $? "
21375 *** Cannot determine the version of the spl source.
21376 *** Please prepare the spl source before running this script" "$LINENO" 5
21377
21378fi
21379
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
21381$as_echo "$splsrcver" >&6; }
21382
21383 SPL=${splsrc}
21384 SPL_OBJ=${splbuild}
21385 SPL_VERSION=${splsrcver}
21386
21387
21388
21389
21390
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
21392$as_echo_n "checking spl file name for module symbols... " >&6; }
21393 SPL_SYMBOLS=NONE
21394
21395 while true; do
21396 if test -r $SPL_OBJ/Module.symvers; then :
21397
21398 SPL_SYMBOLS=Module.symvers
21399
21400elif test -r $SPL_OBJ/Modules.symvers; then :
21401
21402 SPL_SYMBOLS=Modules.symvers
21403
21404elif test -r $SPL_OBJ/module/Module.symvers; then :
21405
21406 SPL_SYMBOLS=Module.symvers
21407
21408elif test -r $SPL_OBJ/module/Modules.symvers; then :
21409
21410 SPL_SYMBOLS=Modules.symvers
21411
21412fi
21413
21414 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
21415
21416 break;
21417
21418else
21419
21420 sleep 1
21421 timeout=$((timeout-1))
21422
21423fi
21424 done
21425
21426 if test "$SPL_SYMBOLS" = NONE; then :
21427
21428 SPL_SYMBOLS=$LINUX_SYMBOLS
21429
21430fi
21431
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
21433$as_echo "$SPL_SYMBOLS" >&6; }
21434
21435
21436
21437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
21438$as_echo_n "checking whether modules can be built... " >&6; }
21439
21440
21441cat confdefs.h - <<_ACEOF >conftest.c
21442
21443
21444int
21445main (void)
21446{
21447
21448 ;
21449 return 0;
21450}
21451
21452_ACEOF
21453
21454
21455
21456cat - <<_ACEOF >conftest.h
21457
21458_ACEOF
21459
21460
21461 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21462 echo "obj-m := conftest.o" >build/Makefile
21463 modpost_flag=''
21464 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21465 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21467 (eval $ac_try) 2>&5
21468 ac_status=$?
21469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21470 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21472 (eval $ac_try) 2>&5
21473 ac_status=$?
21474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21475 test $ac_status = 0; }; }; then :
21476
21477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21478$as_echo "yes" >&6; }
21479
21480else
21481 $as_echo "$as_me: failed program was:" >&5
21482sed 's/^/| /' conftest.$ac_ext >&5
21483
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21485$as_echo "no" >&6; }
21486 if test "x$enable_linux_builtin" != xyes; then
21487 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
21488 else
21489 as_fn_error $? "
21490 *** Unable to build an empty module.
21491 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
21492 fi
21493
21494
21495
21496fi
21497 rm -Rf build
21498
21499
21500
21501
21502 if test "$cross_compiling" = yes; then :
21503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21505as_fn_error $? "cannot run test program while cross compiling
21506See \`config.log' for more details" "$LINENO" 5; }
21507else
21508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21509/* end confdefs.h. */
21510
21511
21512 #include "$LINUX/include/linux/license.h"
21513
21514int
21515main ()
21516{
21517
21518 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
21519
21520 ;
21521 return 0;
21522}
21523
21524_ACEOF
21525if ac_fn_c_try_run "$LINENO"; then :
21526
21527
21528$as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
21529
21530
0e3762ca 21531fi
23d56208
AX
21532rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21533 conftest.$ac_objext conftest.beam conftest.$ac_ext
0e3762ca 21534fi
23d56208
AX
21535
21536
21537
21538
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
21540$as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
21541
21542
21543cat confdefs.h - <<_ACEOF >conftest.c
21544
21545
21546 #include <linux/module.h>
21547
21548int
21549main (void)
21550{
21551
21552 #ifndef CONFIG_DEBUG_LOCK_ALLOC
21553 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
21554 #endif
21555
21556 ;
21557 return 0;
21558}
21559
21560_ACEOF
21561
21562
21563
21564cat - <<_ACEOF >conftest.h
21565
21566_ACEOF
21567
21568
21569 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21570 echo "obj-m := conftest.o" >build/Makefile
21571 modpost_flag=''
21572 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21573 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21575 (eval $ac_try) 2>&5
21576 ac_status=$?
21577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21578 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21580 (eval $ac_try) 2>&5
21581 ac_status=$?
21582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21583 test $ac_status = 0; }; }; then :
21584
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21586$as_echo "yes" >&6; }
21587
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
21589$as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
21590 tmp_flags="$EXTRA_KCFLAGS"
21591
21592
21593cat confdefs.h - <<_ACEOF >conftest.c
21594
21595
21596 #include <linux/module.h>
21597 #include <linux/mutex.h>
21598
21599 MODULE_LICENSE("$ZFS_META_LICENSE");
21600
21601int
21602main (void)
21603{
21604
21605 struct mutex lock;
21606
21607 mutex_init(&lock);
21608 mutex_lock(&lock);
21609 mutex_unlock(&lock);
21610
21611 ;
21612 return 0;
21613}
21614
21615_ACEOF
21616
21617
21618
21619cat - <<_ACEOF >conftest.h
21620
21621_ACEOF
21622
21623
21624 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21625 echo "obj-m := conftest.o" >build/Makefile
21626 modpost_flag=''
21627 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21628 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21630 (eval $ac_try) 2>&5
21631 ac_status=$?
21632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21633 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21635 (eval $ac_try) 2>&5
21636 ac_status=$?
21637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21638 test $ac_status = 0; }; }; then :
21639
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21641$as_echo "no" >&6; }
21642
21643else
21644 $as_echo "$as_me: failed program was:" >&5
21645sed 's/^/| /' conftest.$ac_ext >&5
21646
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21648$as_echo "yes" >&6; }
21649 as_fn_error $? "
21650 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
21651 *** with the CDDL license and will prevent the module linking stage
21652 *** from succeeding. You must rebuild your kernel without this
21653 *** option enabled." "$LINENO" 5
21654
21655
21656
21657fi
21658 rm -Rf build
21659
21660
21661 EXTRA_KCFLAGS="$tmp_flags"
21662
21663
21664else
21665 $as_echo "$as_me: failed program was:" >&5
21666sed 's/^/| /' conftest.$ac_ext >&5
21667
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21669$as_echo "no" >&6; }
21670
21671
21672
21673
21674fi
21675 rm -Rf build
21676
21677
21678
21679
21680
21681
21682 tmp_flags="$EXTRA_KCFLAGS"
21683 EXTRA_KCFLAGS="-I\$(src)"
21684
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
21686$as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
21687
21688
21689cat confdefs.h - <<_ACEOF >conftest.c
21690
21691
21692 #include <linux/module.h>
21693 MODULE_LICENSE(ZFS_META_LICENSE);
21694
21695 #define CREATE_TRACE_POINTS
21696 #include "conftest.h"
21697
21698int
21699main (void)
21700{
21701
21702 trace_zfs_autoconf_event_one(1UL);
21703 trace_zfs_autoconf_event_two(2UL);
21704
21705 ;
21706 return 0;
21707}
21708
21709_ACEOF
21710
21711
21712
21713cat - <<_ACEOF >conftest.h
21714
21715 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
21716 #define _CONFTEST_H
21717
21718 #undef TRACE_SYSTEM
21719 #define TRACE_SYSTEM zfs
21720 #include <linux/tracepoint.h>
21721
21722 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
21723 TP_PROTO(unsigned long i),
21724 TP_ARGS(i),
21725 TP_STRUCT__entry(
21726 __field(unsigned long, i)
21727 ),
21728 TP_fast_assign(
21729 __entry->i = i;
21730 ),
21731 TP_printk("i = %lu", __entry->i)
21732 );
21733
21734 #define DEFINE_AUTOCONF_EVENT(name) \
21735 DEFINE_EVENT(zfs_autoconf_event_class, name, \
21736 TP_PROTO(unsigned long i), \
21737 TP_ARGS(i))
21738 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
21739 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
21740
21741 #endif /* _CONFTEST_H */
21742
21743 #undef TRACE_INCLUDE_PATH
21744 #define TRACE_INCLUDE_PATH .
21745 #define TRACE_INCLUDE_FILE conftest
21746 #include <trace/define_trace.h>
21747
21748_ACEOF
21749
21750
21751 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21752 echo "obj-m := conftest.o" >build/Makefile
21753 modpost_flag=''
21754 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21755 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21757 (eval $ac_try) 2>&5
21758 ac_status=$?
21759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21760 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21762 (eval $ac_try) 2>&5
21763 ac_status=$?
21764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21765 test $ac_status = 0; }; }; then :
21766
21767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21768$as_echo "yes" >&6; }
21769
21770$as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
21771
21772
21773else
21774 $as_echo "$as_me: failed program was:" >&5
21775sed 's/^/| /' conftest.$ac_ext >&5
21776
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21778$as_echo "no" >&6; }
21779
21780
21781
21782fi
21783 rm -Rf build
21784
21785
21786 EXTRA_KCFLAGS="$tmp_flags"
21787
21788
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
21790$as_echo_n "checking whether current->bio_tail exists... " >&6; }
21791
21792
21793cat confdefs.h - <<_ACEOF >conftest.c
21794
21795
21796 #include <linux/sched.h>
21797
21798int
21799main (void)
21800{
21801
21802 current->bio_tail = (struct bio **) NULL;
21803
21804 ;
21805 return 0;
21806}
21807
0e3762ca
CALP
21808_ACEOF
21809
0e3762ca 21810
23d56208
AX
21811
21812cat - <<_ACEOF >conftest.h
21813
21814_ACEOF
21815
21816
21817 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21818 echo "obj-m := conftest.o" >build/Makefile
21819 modpost_flag=''
21820 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21821 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21823 (eval $ac_try) 2>&5
21824 ac_status=$?
21825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21826 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21828 (eval $ac_try) 2>&5
21829 ac_status=$?
21830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21831 test $ac_status = 0; }; }; then :
21832
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21834$as_echo "yes" >&6; }
21835
21836$as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
0e3762ca
CALP
21837
21838
0e3762ca 21839else
23d56208
AX
21840 $as_echo "$as_me: failed program was:" >&5
21841sed 's/^/| /' conftest.$ac_ext >&5
21842
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21844$as_echo "no" >&6; }
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
21846$as_echo_n "checking whether current->bio_list exists... " >&6; }
21847
21848
21849cat confdefs.h - <<_ACEOF >conftest.c
21850
21851
21852 #include <linux/sched.h>
0e3762ca 21853
0e3762ca 21854int
23d56208 21855main (void)
0e3762ca 21856{
23d56208
AX
21857
21858 current->bio_list = (struct bio_list *) NULL;
21859
0e3762ca
CALP
21860 ;
21861 return 0;
21862}
23d56208 21863
0e3762ca 21864_ACEOF
23d56208
AX
21865
21866
21867
21868cat - <<_ACEOF >conftest.h
21869
21870_ACEOF
21871
21872
21873 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21874 echo "obj-m := conftest.o" >build/Makefile
21875 modpost_flag=''
21876 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21877 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21879 (eval $ac_try) 2>&5
21880 ac_status=$?
21881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21882 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21884 (eval $ac_try) 2>&5
21885 ac_status=$?
21886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21887 test $ac_status = 0; }; }; then :
21888
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21890$as_echo "yes" >&6; }
21891
21892$as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
21893
21894
0e3762ca 21895else
23d56208
AX
21896 $as_echo "$as_me: failed program was:" >&5
21897sed 's/^/| /' conftest.$ac_ext >&5
21898
21899 as_fn_error $? "no - Please file a bug report at
21900 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
21901
21902
21903
0e3762ca 21904fi
23d56208
AX
21905 rm -Rf build
21906
21907
21908
21909
21910
0e3762ca 21911fi
23d56208
AX
21912 rm -Rf build
21913
21914
21915
21916
21917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
21918$as_echo_n "checking block device operation prototypes... " >&6; }
21919 tmp_flags="$EXTRA_KCFLAGS"
21920 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
21921
21922
21923cat confdefs.h - <<_ACEOF >conftest.c
21924
21925
21926 #include <linux/blkdev.h>
21927
21928 int blk_open(struct block_device *bdev, fmode_t mode)
21929 { return 0; }
21930 int blk_ioctl(struct block_device *bdev, fmode_t mode,
21931 unsigned x, unsigned long y) { return 0; }
21932 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
21933 unsigned x, unsigned long y) { return 0; }
21934
21935 static const struct block_device_operations
21936 bops __attribute__ ((unused)) = {
21937 .open = blk_open,
21938 .release = NULL,
21939 .ioctl = blk_ioctl,
21940 .compat_ioctl = blk_compat_ioctl,
21941 };
21942
21943int
21944main (void)
21945{
21946
21947
21948 ;
21949 return 0;
21950}
21951
0e3762ca
CALP
21952_ACEOF
21953
23d56208
AX
21954
21955
21956cat - <<_ACEOF >conftest.h
21957
21958_ACEOF
21959
21960
21961 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21962 echo "obj-m := conftest.o" >build/Makefile
21963 modpost_flag=''
21964 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21965 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21967 (eval $ac_try) 2>&5
21968 ac_status=$?
21969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21970 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21972 (eval $ac_try) 2>&5
21973 ac_status=$?
21974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21975 test $ac_status = 0; }; }; then :
21976
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
21978$as_echo "struct block_device" >&6; }
21979
21980$as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
21981
0e3762ca
CALP
21982
21983else
23d56208
AX
21984 $as_echo "$as_me: failed program was:" >&5
21985sed 's/^/| /' conftest.$ac_ext >&5
21986
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
21988$as_echo "struct inode" >&6; }
21989
21990
21991
0e3762ca 21992fi
23d56208
AX
21993 rm -Rf build
21994
21995
21996 EXTRA_KCFLAGS="$tmp_flags"
21997
21998
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
22000$as_echo_n "checking whether block_device_operations.release is void... " >&6; }
22001 tmp_flags="$EXTRA_KCFLAGS"
22002 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
22003
22004
22005cat confdefs.h - <<_ACEOF >conftest.c
22006
22007
22008 #include <linux/blkdev.h>
22009
22010 void blk_release(struct gendisk *g, fmode_t mode) { return; }
22011
22012 static const struct block_device_operations
22013 bops __attribute__ ((unused)) = {
22014 .open = NULL,
22015 .release = blk_release,
22016 .ioctl = NULL,
22017 .compat_ioctl = NULL,
22018 };
22019
22020int
22021main (void)
22022{
22023
22024
22025 ;
22026 return 0;
22027}
22028
22029_ACEOF
22030
22031
22032
22033cat - <<_ACEOF >conftest.h
22034
22035_ACEOF
22036
22037
22038 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22039 echo "obj-m := conftest.o" >build/Makefile
22040 modpost_flag=''
22041 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22042 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22044 (eval $ac_try) 2>&5
22045 ac_status=$?
22046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22047 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22049 (eval $ac_try) 2>&5
22050 ac_status=$?
22051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22052 test $ac_status = 0; }; }; then :
0e3762ca 22053
23d56208
AX
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
22055$as_echo "void" >&6; }
0e3762ca 22056
23d56208 22057$as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
0e3762ca
CALP
22058
22059
23d56208
AX
22060else
22061 $as_echo "$as_me: failed program was:" >&5
22062sed 's/^/| /' conftest.$ac_ext >&5
0e3762ca 22063
23d56208
AX
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
22065$as_echo "int" >&6; }
0e3762ca
CALP
22066
22067
22068
0e3762ca 22069fi
23d56208 22070 rm -Rf build
0e3762ca
CALP
22071
22072
23d56208 22073 EXTRA_KCFLAGS="$tmp_flags"
0e3762ca 22074
23d56208
AX
22075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
22076$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
0e3762ca 22077
0e3762ca 22078
23d56208 22079cat confdefs.h - <<_ACEOF >conftest.c
0e3762ca 22080
0e3762ca 22081
23d56208 22082 #include <linux/types.h>
0e3762ca
CALP
22083
22084int
23d56208 22085main (void)
0e3762ca
CALP
22086{
22087
23d56208 22088 fmode_t *ptr __attribute__ ((unused));
0e3762ca
CALP
22089
22090 ;
22091 return 0;
22092}
23d56208 22093
0e3762ca 22094_ACEOF
0e3762ca 22095
0e3762ca
CALP
22096
22097
23d56208 22098cat - <<_ACEOF >conftest.h
0e3762ca 22099
23d56208 22100_ACEOF
0e3762ca 22101
0e3762ca 22102
23d56208
AX
22103 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22104 echo "obj-m := conftest.o" >build/Makefile
22105 modpost_flag=''
22106 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22107 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22109 (eval $ac_try) 2>&5
22110 ac_status=$?
22111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22112 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22114 (eval $ac_try) 2>&5
22115 ac_status=$?
22116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22117 test $ac_status = 0; }; }; then :
0e3762ca 22118
23d56208
AX
22119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22120$as_echo "yes" >&6; }
0e3762ca 22121
23d56208 22122$as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
0e3762ca 22123
0e3762ca
CALP
22124
22125else
23d56208
AX
22126 $as_echo "$as_me: failed program was:" >&5
22127sed 's/^/| /' conftest.$ac_ext >&5
0e3762ca 22128
23d56208
AX
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22130$as_echo "no" >&6; }
0e3762ca 22131
0e3762ca
CALP
22132
22133
22134fi
23d56208 22135 rm -Rf build
0e3762ca
CALP
22136
22137
22138
0e3762ca 22139
23d56208
AX
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
22141$as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
0e3762ca 22142
0e3762ca 22143
23d56208 22144cat confdefs.h - <<_ACEOF >conftest.c
0e3762ca 22145
0e3762ca 22146
23d56208
AX
22147 #include <linux/kobject.h>
22148
0e3762ca 22149int
23d56208 22150main (void)
0e3762ca 22151{
23d56208
AX
22152
22153 int val __attribute__ ((unused));
22154 val = KOBJ_NAME_LEN;
22155
0e3762ca
CALP
22156 ;
22157 return 0;
22158}
23d56208 22159
0e3762ca 22160_ACEOF
0e3762ca 22161
0e3762ca
CALP
22162
22163
23d56208 22164cat - <<_ACEOF >conftest.h
0e3762ca 22165
23d56208 22166_ACEOF
0e3762ca 22167
0e3762ca 22168
23d56208
AX
22169 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22170 echo "obj-m := conftest.o" >build/Makefile
22171 modpost_flag=''
22172 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22173 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22175 (eval $ac_try) 2>&5
22176 ac_status=$?
22177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22178 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22180 (eval $ac_try) 2>&5
22181 ac_status=$?
22182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22183 test $ac_status = 0; }; }; then :
0e3762ca 22184
23d56208
AX
22185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22186$as_echo "yes" >&6; }
0e3762ca 22187
23d56208 22188$as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
0e3762ca
CALP
22189
22190
22191else
23d56208
AX
22192 $as_echo "$as_me: failed program was:" >&5
22193sed 's/^/| /' conftest.$ac_ext >&5
0e3762ca 22194
23d56208
AX
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22196$as_echo "no" >&6; }
0e3762ca 22197
0e3762ca 22198
0e3762ca 22199
23d56208
AX
22200fi
22201 rm -Rf build
0e3762ca
CALP
22202
22203
0e3762ca 22204
0e3762ca 22205
23d56208
AX
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
22207$as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
0e3762ca
CALP
22208
22209
23d56208 22210cat confdefs.h - <<_ACEOF >conftest.c
0e3762ca 22211
0e3762ca 22212
23d56208 22213 #include <linux/fs.h>
0e3762ca
CALP
22214
22215int
23d56208 22216main (void)
0e3762ca
CALP
22217{
22218
23d56208
AX
22219 struct block_device *bdev = NULL;
22220 (void) blkdev_get(bdev, 0, NULL);
22221
0e3762ca
CALP
22222 ;
22223 return 0;
22224}
23d56208 22225
0e3762ca 22226_ACEOF
0e3762ca 22227
23d56208
AX
22228
22229
22230cat - <<_ACEOF >conftest.h
22231
22232_ACEOF
22233
22234
22235 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22236 echo "obj-m := conftest.o" >build/Makefile
22237 modpost_flag=''
22238 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22239 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22241 (eval $ac_try) 2>&5
22242 ac_status=$?
22243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22244 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22246 (eval $ac_try) 2>&5
22247 ac_status=$?
22248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22249 test $ac_status = 0; }; }; then :
22250
0e3762ca
CALP
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22252$as_echo "yes" >&6; }
22253
23d56208
AX
22254$as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
22255
22256
0e3762ca 22257else
23d56208
AX
22258 $as_echo "$as_me: failed program was:" >&5
22259sed 's/^/| /' conftest.$ac_ext >&5
0e3762ca 22260
0e3762ca
CALP
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22262$as_echo "no" >&6; }
22263
0e3762ca
CALP
22264
22265
0e3762ca 22266fi
23d56208 22267 rm -Rf build
0e3762ca
CALP
22268
22269
22270
23d56208
AX
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
22272$as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
0e3762ca
CALP
22273
22274
0e3762ca 22275
23d56208 22276cat confdefs.h - <<_ACEOF >conftest.c
0e3762ca 22277
0e3762ca 22278
23d56208 22279 #include <linux/fs.h>
0e3762ca 22280
23d56208
AX
22281int
22282main (void)
22283{
0e3762ca 22284
23d56208 22285 blkdev_get_by_path(NULL, 0, NULL);
0e3762ca 22286
23d56208
AX
22287 ;
22288 return 0;
22289}
0e3762ca 22290
23d56208 22291_ACEOF
0e3762ca 22292
0e3762ca 22293
0e3762ca 22294
23d56208 22295cat - <<_ACEOF >conftest.h
0e3762ca 22296
23d56208 22297_ACEOF
0e3762ca 22298
0e3762ca 22299
23d56208
AX
22300 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22301 echo "obj-m := conftest.o" >build/Makefile
22302 modpost_flag=''
22303 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22304 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22306 (eval $ac_try) 2>&5
22307 ac_status=$?
22308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22309 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22311 (eval $ac_try) 2>&5
22312 ac_status=$?
22313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22314 test $ac_status = 0; }; }; then :
22315 rc=0
0e3762ca 22316else
23d56208
AX
22317 $as_echo "$as_me: failed program was:" >&5
22318sed 's/^/| /' conftest.$ac_ext >&5
22319 rc=1
0e3762ca 22320
0e3762ca
CALP
22321
22322fi
23d56208 22323 rm -Rf build
0e3762ca 22324
0e3762ca 22325
23d56208 22326 if test $rc -ne 0; then :
0e3762ca 22327
23d56208
AX
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22329$as_echo "no" >&6; }
0e3762ca 22330
23d56208
AX
22331 else
22332 if test "x$enable_linux_builtin" != xyes; then
0e3762ca 22333
23d56208
AX
22334 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
22335 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22336 rc=$?
22337 if test $rc -ne 0; then
22338 export=0
22339 for file in fs/block_dev.c; do
22340 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
22341 "$LINUX/$file" 2>/dev/null
22342 rc=$?
22343 if test $rc -eq 0; then
22344 export=1
22345 break;
22346 fi
22347 done
22348 if test $export -eq 0; then :
22349 rc=1
22350 else :
22351 rc=0
22352 fi
22353 else :
22354 rc=0
22355 fi
0e3762ca 22356
23d56208
AX
22357 fi
22358 if test $rc -ne 0; then :
0e3762ca 22359
23d56208
AX
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22361$as_echo "no" >&6; }
0e3762ca 22362
23d56208 22363 else :
0e3762ca 22364
23d56208
AX
22365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22366$as_echo "yes" >&6; }
0e3762ca 22367
23d56208 22368$as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
0e3762ca 22369
0e3762ca 22370
23d56208
AX
22371 fi
22372 fi
0e3762ca 22373
0e3762ca 22374
23d56208
AX
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
22376$as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
0e3762ca 22377
0e3762ca 22378
0e3762ca 22379
23d56208 22380cat confdefs.h - <<_ACEOF >conftest.c
0e3762ca 22381
0e3762ca 22382
23d56208 22383 #include <linux/fs.h>
0e3762ca 22384
23d56208
AX
22385int
22386main (void)
22387{
0e3762ca 22388
23d56208 22389 open_bdev_exclusive(NULL, 0, NULL);
0e3762ca 22390
23d56208
AX
22391 ;
22392 return 0;
22393}
0e3762ca 22394
23d56208 22395_ACEOF
0e3762ca 22396
0e3762ca 22397
0e3762ca 22398
23d56208 22399cat - <<_ACEOF >conftest.h
0e3762ca 22400
23d56208 22401_ACEOF
0e3762ca 22402
0e3762ca 22403
23d56208
AX
22404 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22405 echo "obj-m := conftest.o" >build/Makefile
22406 modpost_flag=''
22407 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22408 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22410 (eval $ac_try) 2>&5
22411 ac_status=$?
22412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22413 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22415 (eval $ac_try) 2>&5
22416 ac_status=$?
22417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22418 test $ac_status = 0; }; }; then :
22419 rc=0
0e3762ca 22420else
23d56208
AX
22421 $as_echo "$as_me: failed program was:" >&5
22422sed 's/^/| /' conftest.$ac_ext >&5
22423 rc=1
0e3762ca 22424
0e3762ca
CALP
22425
22426fi
23d56208 22427 rm -Rf build
0e3762ca
CALP
22428
22429
23d56208 22430 if test $rc -ne 0; then :
0e3762ca 22431
23d56208
AX
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22433$as_echo "no" >&6; }
0e3762ca 22434
23d56208
AX
22435 else
22436 if test "x$enable_linux_builtin" != xyes; then
0e3762ca 22437
23d56208
AX
22438 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
22439 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22440 rc=$?
22441 if test $rc -ne 0; then
22442 export=0
22443 for file in fs/block_dev.c; do
22444 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
22445 "$LINUX/$file" 2>/dev/null
22446 rc=$?
22447 if test $rc -eq 0; then
22448 export=1
22449 break;
22450 fi
22451 done
22452 if test $export -eq 0; then :
22453 rc=1
22454 else :
22455 rc=0
22456 fi
22457 else :
22458 rc=0
22459 fi
0e3762ca 22460
23d56208
AX
22461 fi
22462 if test $rc -ne 0; then :
0e3762ca 22463
23d56208
AX
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22465$as_echo "no" >&6; }
0e3762ca 22466
23d56208 22467 else :
0e3762ca 22468
23d56208
AX
22469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22470$as_echo "yes" >&6; }
0e3762ca 22471
23d56208 22472$as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
0e3762ca 22473
0e3762ca 22474
23d56208
AX
22475 fi
22476 fi
0e3762ca 22477
0e3762ca 22478
23d56208
AX
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
22480$as_echo_n "checking whether lookup_bdev() is available... " >&6; }
0e3762ca
CALP
22481
22482
22483
23d56208 22484cat confdefs.h - <<_ACEOF >conftest.c
0e3762ca 22485
0e3762ca 22486
23d56208 22487 #include <linux/fs.h>
0e3762ca 22488
23d56208
AX
22489int
22490main (void)
22491{
0e3762ca 22492
23d56208 22493 lookup_bdev(NULL);
0e3762ca 22494
23d56208
AX
22495 ;
22496 return 0;
22497}
0e3762ca 22498
23d56208 22499_ACEOF
c06d4368 22500
c06d4368
AX
22501
22502
23d56208 22503cat - <<_ACEOF >conftest.h
0e3762ca 22504
23d56208 22505_ACEOF
0e3762ca 22506
0e3762ca 22507
23d56208
AX
22508 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22509 echo "obj-m := conftest.o" >build/Makefile
22510 modpost_flag=''
22511 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22512 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22514 (eval $ac_try) 2>&5
22515 ac_status=$?
22516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22517 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22519 (eval $ac_try) 2>&5
22520 ac_status=$?
22521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22522 test $ac_status = 0; }; }; then :
22523 rc=0
22524else
22525 $as_echo "$as_me: failed program was:" >&5
22526sed 's/^/| /' conftest.$ac_ext >&5
22527 rc=1
0e3762ca 22528
0e3762ca 22529
23d56208
AX
22530fi
22531 rm -Rf build
0e3762ca 22532
0e3762ca 22533
23d56208 22534 if test $rc -ne 0; then :
0e3762ca 22535
23d56208
AX
22536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22537$as_echo "no" >&6; }
0e3762ca 22538
23d56208
AX
22539 else
22540 if test "x$enable_linux_builtin" != xyes; then
0e3762ca 22541
23d56208
AX
22542 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
22543 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22544 rc=$?
22545 if test $rc -ne 0; then
22546 export=0
22547 for file in fs/block_dev.c; do
22548 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
22549 "$LINUX/$file" 2>/dev/null
22550 rc=$?
22551 if test $rc -eq 0; then
22552 export=1
22553 break;
22554 fi
22555 done
22556 if test $export -eq 0; then :
22557 rc=1
22558 else :
22559 rc=0
22560 fi
22561 else :
22562 rc=0
22563 fi
0e3762ca 22564
23d56208
AX
22565 fi
22566 if test $rc -ne 0; then :
0e3762ca 22567
23d56208
AX
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22569$as_echo "no" >&6; }
0e3762ca 22570
23d56208 22571 else :
0e3762ca 22572
23d56208
AX
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22574$as_echo "yes" >&6; }
0e3762ca 22575
23d56208 22576$as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
0e3762ca 22577
0e3762ca 22578
23d56208
AX
22579 fi
22580 fi
0e3762ca 22581
0e3762ca 22582
0e3762ca 22583
23d56208
AX
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
22585$as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
0e3762ca 22586
0e3762ca 22587
23d56208 22588cat confdefs.h - <<_ACEOF >conftest.c
0e3762ca 22589
0e3762ca 22590
23d56208 22591 #include <linux/buffer_head.h>
0e3762ca 22592
23d56208
AX
22593int
22594main (void)
22595{
0e3762ca 22596
23d56208
AX
22597 struct block_device *bdev = NULL;
22598 invalidate_bdev(bdev);
0e3762ca 22599
23d56208
AX
22600 ;
22601 return 0;
22602}
0e3762ca 22603
23d56208 22604_ACEOF
0e3762ca 22605
c06d4368 22606
0e3762ca 22607
23d56208 22608cat - <<_ACEOF >conftest.h
c06d4368 22609
23d56208 22610_ACEOF
c06d4368 22611
c06d4368 22612
23d56208
AX
22613 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22614 echo "obj-m := conftest.o" >build/Makefile
22615 modpost_flag=''
22616 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22617 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22619 (eval $ac_try) 2>&5
22620 ac_status=$?
22621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22622 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22624 (eval $ac_try) 2>&5
22625 ac_status=$?
22626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22627 test $ac_status = 0; }; }; then :
0e3762ca 22628
23d56208
AX
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22630$as_echo "yes" >&6; }
0e3762ca 22631
23d56208 22632$as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
0e3762ca 22633
0e3762ca 22634
23d56208
AX
22635else
22636 $as_echo "$as_me: failed program was:" >&5
22637sed 's/^/| /' conftest.$ac_ext >&5
0e3762ca 22638
23d56208
AX
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22640$as_echo "no" >&6; }
0e3762ca
CALP
22641
22642
0e3762ca
CALP
22643
22644fi
23d56208 22645 rm -Rf build
0e3762ca 22646
0e3762ca 22647
0e3762ca 22648
0e3762ca 22649
23d56208
AX
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
22651$as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
22652 tmp_flags="$EXTRA_KCFLAGS"
22653 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
0e3762ca 22654
0e3762ca 22655
23d56208 22656cat confdefs.h - <<_ACEOF >conftest.c
0e3762ca
CALP
22657
22658
23d56208 22659 #include <linux/blkdev.h>
0e3762ca 22660
23d56208
AX
22661int
22662main (void)
22663{
0e3762ca 22664
23d56208
AX
22665 struct block_device *bdev = NULL;
22666 bdev_logical_block_size(bdev);
0e3762ca 22667
23d56208
AX
22668 ;
22669 return 0;
22670}
0e3762ca 22671
23d56208 22672_ACEOF
0e3762ca 22673
0e3762ca 22674
0e3762ca 22675
23d56208 22676cat - <<_ACEOF >conftest.h
0e3762ca 22677
23d56208 22678_ACEOF
0e3762ca 22679
0e3762ca 22680
23d56208
AX
22681 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22682 echo "obj-m := conftest.o" >build/Makefile
22683 modpost_flag=''
22684 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22685 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22687 (eval $ac_try) 2>&5
22688 ac_status=$?
22689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22690 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22692 (eval $ac_try) 2>&5
22693 ac_status=$?
22694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22695 test $ac_status = 0; }; }; then :
0e3762ca 22696
23d56208
AX
22697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22698$as_echo "yes" >&6; }
0e3762ca 22699
23d56208 22700$as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
0e3762ca 22701
0e3762ca
CALP
22702
22703else
23d56208
AX
22704 $as_echo "$as_me: failed program was:" >&5
22705sed 's/^/| /' conftest.$ac_ext >&5
0e3762ca 22706
23d56208
AX
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22708$as_echo "no" >&6; }
0e3762ca 22709
0e3762ca 22710
0e3762ca
CALP
22711
22712fi
23d56208 22713 rm -Rf build
0e3762ca 22714
0e3762ca 22715
23d56208 22716 EXTRA_KCFLAGS="$tmp_flags"
0e3762ca 22717
23d56208
AX
22718
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
22720$as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
22721 tmp_flags="$EXTRA_KCFLAGS"
22722 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
0e3762ca
CALP
22723
22724
22725cat confdefs.h - <<_ACEOF >conftest.c
22726
22727
23d56208
AX
22728 #include <linux/blkdev.h>
22729
0e3762ca
CALP
22730int
22731main (void)
22732{
22733
23d56208
AX
22734 struct block_device *bdev = NULL;
22735 bdev_physical_block_size(bdev);
22736
0e3762ca
CALP
22737 ;
22738 return 0;
22739}
22740
22741_ACEOF
22742
22743
23d56208
AX
22744
22745cat - <<_ACEOF >conftest.h
22746
22747_ACEOF
22748
22749
0e3762ca
CALP
22750 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22751 echo "obj-m := conftest.o" >build/Makefile
22752 modpost_flag=''
22753 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 22754 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
22755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22756 (eval $ac_try) 2>&5
22757 ac_status=$?
22758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22759 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22761 (eval $ac_try) 2>&5
22762 ac_status=$?
22763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22764 test $ac_status = 0; }; }; then :
22765
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22767$as_echo "yes" >&6; }
22768
23d56208
AX
22769$as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
22770
22771
0e3762ca
CALP
22772else
22773 $as_echo "$as_me: failed program was:" >&5
22774sed 's/^/| /' conftest.$ac_ext >&5
22775
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22777$as_echo "no" >&6; }
0e3762ca
CALP
22778
22779
22780
22781fi
22782 rm -Rf build
22783
22784
23d56208 22785 EXTRA_KCFLAGS="$tmp_flags"
0e3762ca
CALP
22786
22787
23d56208
AX
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
22789$as_echo_n "checking whether bio has bi_iter... " >&6; }
0e3762ca
CALP
22790
22791
22792cat confdefs.h - <<_ACEOF >conftest.c
22793
22794
23d56208 22795 #include <linux/bio.h>
0e3762ca
CALP
22796
22797int
22798main (void)
22799{
22800
23d56208
AX
22801 struct bio bio;
22802 bio.bi_iter.bi_sector = 0;
0e3762ca
CALP
22803
22804 ;
22805 return 0;
22806}
22807
22808_ACEOF
22809
22810
23d56208
AX
22811
22812cat - <<_ACEOF >conftest.h
22813
22814_ACEOF
22815
22816
0e3762ca
CALP
22817 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22818 echo "obj-m := conftest.o" >build/Makefile
22819 modpost_flag=''
22820 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 22821 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
22822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22823 (eval $ac_try) 2>&5
22824 ac_status=$?
22825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22826 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22828 (eval $ac_try) 2>&5
22829 ac_status=$?
22830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22831 test $ac_status = 0; }; }; then :
22832
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22834$as_echo "yes" >&6; }
22835
23d56208 22836$as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
0e3762ca
CALP
22837
22838
23d56208
AX
22839else
22840 $as_echo "$as_me: failed program was:" >&5
22841sed 's/^/| /' conftest.$ac_ext >&5
22842
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22844$as_echo "no" >&6; }
0e3762ca
CALP
22845
22846
0e3762ca 22847
23d56208
AX
22848fi
22849 rm -Rf build
22850
22851
22852
22853
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
22855$as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
22856
22857
22858cat confdefs.h - <<_ACEOF >conftest.c
22859
22860
22861 #include <linux/bio.h>
0e3762ca
CALP
22862
22863int
22864main (void)
22865{
22866
23d56208
AX
22867 int flags __attribute__ ((unused));
22868 flags = ((1 << BIO_RW_FAILFAST_DEV) |
22869 (1 << BIO_RW_FAILFAST_TRANSPORT) |
22870 (1 << BIO_RW_FAILFAST_DRIVER));
0e3762ca
CALP
22871
22872 ;
22873 return 0;
22874}
22875
22876_ACEOF
22877
22878
23d56208
AX
22879
22880cat - <<_ACEOF >conftest.h
22881
22882_ACEOF
22883
22884
0e3762ca
CALP
22885 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22886 echo "obj-m := conftest.o" >build/Makefile
22887 modpost_flag=''
22888 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 22889 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
22890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22891 (eval $ac_try) 2>&5
22892 ac_status=$?
22893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22894 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22896 (eval $ac_try) 2>&5
22897 ac_status=$?
22898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22899 test $ac_status = 0; }; }; then :
22900
23d56208 22901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
0e3762ca 22902$as_echo "yes" >&6; }
0e3762ca 22903
23d56208 22904$as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
0e3762ca
CALP
22905
22906
22907else
22908 $as_echo "$as_me: failed program was:" >&5
22909sed 's/^/| /' conftest.$ac_ext >&5
22910
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22912$as_echo "no" >&6; }
22913
22914
22915
0e3762ca
CALP
22916fi
22917 rm -Rf build
22918
22919
22920
22921
23d56208
AX
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
22923$as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
0e3762ca
CALP
22924
22925
22926cat confdefs.h - <<_ACEOF >conftest.c
22927
22928
23d56208 22929 #include <linux/bio.h>
0e3762ca
CALP
22930
22931int
22932main (void)
22933{
22934
23d56208
AX
22935 int flags __attribute__ ((unused));
22936 flags = REQ_FAILFAST_MASK;
0e3762ca
CALP
22937
22938 ;
22939 return 0;
22940}
22941
22942_ACEOF
22943
22944
23d56208
AX
22945
22946cat - <<_ACEOF >conftest.h
22947
22948_ACEOF
22949
22950
0e3762ca
CALP
22951 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22952 echo "obj-m := conftest.o" >build/Makefile
22953 modpost_flag=''
22954 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 22955 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
22956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22957 (eval $ac_try) 2>&5
22958 ac_status=$?
22959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22960 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22962 (eval $ac_try) 2>&5
22963 ac_status=$?
22964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22965 test $ac_status = 0; }; }; then :
22966
23d56208
AX
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22968$as_echo "yes" >&6; }
0e3762ca 22969
23d56208 22970$as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
0e3762ca
CALP
22971
22972
22973else
22974 $as_echo "$as_me: failed program was:" >&5
22975sed 's/^/| /' conftest.$ac_ext >&5
22976
23d56208
AX
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22978$as_echo "no" >&6; }
0e3762ca
CALP
22979
22980
22981
22982fi
22983 rm -Rf build
22984
22985
0e3762ca 22986
c06d4368 22987
23d56208
AX
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
22989$as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
0e3762ca
CALP
22990
22991
22992cat confdefs.h - <<_ACEOF >conftest.c
22993
22994
23d56208 22995 #include <linux/bio.h>
c06d4368 22996
23d56208 22997 void wanted_end_io(struct bio *bio) { return; }
c06d4368 22998
23d56208 22999 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
0e3762ca
CALP
23000
23001int
23002main (void)
23003{
23004
0e3762ca
CALP
23005
23006 ;
23007 return 0;
23008}
23009
23010_ACEOF
23011
23012
23d56208
AX
23013
23014cat - <<_ACEOF >conftest.h
23015
23016_ACEOF
23017
23018
0e3762ca
CALP
23019 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23020 echo "obj-m := conftest.o" >build/Makefile
23021 modpost_flag=''
23022 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 23023 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
23024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23025 (eval $ac_try) 2>&5
23026 ac_status=$?
23027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23028 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23030 (eval $ac_try) 2>&5
23031 ac_status=$?
23032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23033 test $ac_status = 0; }; }; then :
23034
23d56208
AX
23035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23036$as_echo "yes" >&6; }
c06d4368 23037
23d56208 23038$as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
c06d4368
AX
23039
23040
23041else
23042 $as_echo "$as_me: failed program was:" >&5
23043sed 's/^/| /' conftest.$ac_ext >&5
23044
23d56208
AX
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23046$as_echo "no" >&6; }
c06d4368
AX
23047
23048
23049
23050fi
23051 rm -Rf build
23052
23053
c06d4368 23054
23d56208
AX
23055
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
23057$as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
c06d4368
AX
23058
23059
23060cat confdefs.h - <<_ACEOF >conftest.c
23061
23062
23d56208 23063 #include <linux/bio.h>
c06d4368
AX
23064
23065int
23066main (void)
23067{
23068
23d56208
AX
23069 int flags __attribute__ ((unused));
23070 flags = BIO_RW_BARRIER;
c06d4368
AX
23071
23072 ;
23073 return 0;
23074}
23075
23076_ACEOF
23077
23078
23d56208
AX
23079
23080cat - <<_ACEOF >conftest.h
23081
23082_ACEOF
23083
23084
c06d4368
AX
23085 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23086 echo "obj-m := conftest.o" >build/Makefile
23087 modpost_flag=''
23088 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 23089 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
c06d4368
AX
23090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23091 (eval $ac_try) 2>&5
23092 ac_status=$?
23093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23094 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23096 (eval $ac_try) 2>&5
23097 ac_status=$?
23098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23099 test $ac_status = 0; }; }; then :
23100
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
0e3762ca
CALP
23102$as_echo "yes" >&6; }
23103
23d56208 23104$as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
0e3762ca
CALP
23105
23106
23107else
23108 $as_echo "$as_me: failed program was:" >&5
23109sed 's/^/| /' conftest.$ac_ext >&5
23110
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23112$as_echo "no" >&6; }
23113
23114
23115
23116fi
23117 rm -Rf build
23118
23119
23120
23121
23d56208
AX
23122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
23123$as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
0e3762ca
CALP
23124
23125
23126cat confdefs.h - <<_ACEOF >conftest.c
23127
23128
23d56208 23129 #include <linux/bio.h>
0e3762ca
CALP
23130
23131int
23132main (void)
23133{
23134
23d56208
AX
23135 int flags __attribute__ ((unused));
23136 flags = BIO_RW_DISCARD;
0e3762ca
CALP
23137
23138 ;
23139 return 0;
23140}
23141
23142_ACEOF
23143
23144
23d56208
AX
23145
23146cat - <<_ACEOF >conftest.h
23147
23148_ACEOF
23149
23150
0e3762ca
CALP
23151 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23152 echo "obj-m := conftest.o" >build/Makefile
23153 modpost_flag=''
23154 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 23155 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
23156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23157 (eval $ac_try) 2>&5
23158 ac_status=$?
23159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23160 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23162 (eval $ac_try) 2>&5
23163 ac_status=$?
23164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23165 test $ac_status = 0; }; }; then :
23166
23167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23168$as_echo "yes" >&6; }
23169
23d56208 23170$as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
0e3762ca
CALP
23171
23172
23173else
23174 $as_echo "$as_me: failed program was:" >&5
23175sed 's/^/| /' conftest.$ac_ext >&5
23176
23177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23178$as_echo "no" >&6; }
23179
23180
23181
23182fi
23183 rm -Rf build
23184
23185
23186
23187
23d56208
AX
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
23189$as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
23190 tmp_flags="$EXTRA_KCFLAGS"
23191 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
0e3762ca
CALP
23192
23193
23194cat confdefs.h - <<_ACEOF >conftest.c
23195
23196
23d56208 23197 #include <linux/blkdev.h>
0e3762ca
CALP
23198
23199int
23200main (void)
23201{
23202
23d56208
AX
23203 struct request_queue *q = NULL;
23204 (void) blk_queue_flush(q, REQ_FLUSH);
0e3762ca
CALP
23205
23206 ;
23207 return 0;
23208}
23209
23210_ACEOF
23211
23212
23d56208
AX
23213
23214cat - <<_ACEOF >conftest.h
23215
23216_ACEOF
23217
23218
0e3762ca
CALP
23219 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23220 echo "obj-m := conftest.o" >build/Makefile
23221 modpost_flag=''
23222 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 23223 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
23224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23225 (eval $ac_try) 2>&5
23226 ac_status=$?
23227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23228 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23230 (eval $ac_try) 2>&5
23231 ac_status=$?
23232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23233 test $ac_status = 0; }; }; then :
23234
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23236$as_echo "yes" >&6; }
23237
23d56208 23238$as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
0e3762ca
CALP
23239
23240
23241else
23242 $as_echo "$as_me: failed program was:" >&5
23243sed 's/^/| /' conftest.$ac_ext >&5
23244
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23246$as_echo "no" >&6; }
23247
23248
23249
23250fi
23251 rm -Rf build
23252
23253
23254
23d56208
AX
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
23256$as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
0e3762ca
CALP
23257
23258
23259cat confdefs.h - <<_ACEOF >conftest.c
23260
23261
23d56208
AX
23262 #include <linux/module.h>
23263 #include <linux/blkdev.h>
23264
23265 MODULE_LICENSE("$ZFS_META_LICENSE");
0e3762ca
CALP
23266
23267int
23268main (void)
23269{
23270
23d56208
AX
23271 struct request_queue *q = NULL;
23272 (void) blk_queue_flush(q, REQ_FLUSH);
0e3762ca
CALP
23273
23274 ;
23275 return 0;
23276}
23277
23278_ACEOF
23279
23280
23d56208
AX
23281
23282cat - <<_ACEOF >conftest.h
23283
23284_ACEOF
23285
23286
0e3762ca
CALP
23287 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23288 echo "obj-m := conftest.o" >build/Makefile
23289 modpost_flag=''
23290 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 23291 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
23292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23293 (eval $ac_try) 2>&5
23294 ac_status=$?
23295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23296 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23298 (eval $ac_try) 2>&5
23299 ac_status=$?
23300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23301 test $ac_status = 0; }; }; then :
0e3762ca
CALP
23302
23303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23304$as_echo "no" >&6; }
23305
23d56208
AX
23306else
23307 $as_echo "$as_me: failed program was:" >&5
23308sed 's/^/| /' conftest.$ac_ext >&5
0e3762ca 23309
23d56208
AX
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23311$as_echo "yes" >&6; }
0e3762ca 23312
23d56208 23313$as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
0e3762ca 23314
0e3762ca 23315
0e3762ca 23316
0e3762ca 23317
23d56208
AX
23318fi
23319 rm -Rf build
0e3762ca 23320
0e3762ca 23321
23d56208 23322 EXTRA_KCFLAGS="$tmp_flags"
0e3762ca 23323
0e3762ca 23324
23d56208
AX
23325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
23326$as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
23327 tmp_flags="$EXTRA_KCFLAGS"
23328 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
0e3762ca
CALP
23329
23330
23331cat confdefs.h - <<_ACEOF >conftest.c
23332
23333
23d56208 23334 #include <linux/blkdev.h>
0e3762ca
CALP
23335
23336int
23337main (void)
23338{
23339
23d56208
AX
23340 struct request_queue *q = NULL;
23341 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
0e3762ca
CALP
23342
23343 ;
23344 return 0;
23345}
23346
23347_ACEOF
23348
23349
23d56208
AX
23350
23351cat - <<_ACEOF >conftest.h
23352
23353_ACEOF
23354
23355
0e3762ca
CALP
23356 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23357 echo "obj-m := conftest.o" >build/Makefile
23358 modpost_flag=''
23359 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 23360 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
23361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23362 (eval $ac_try) 2>&5
23363 ac_status=$?
23364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23365 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23367 (eval $ac_try) 2>&5
23368 ac_status=$?
23369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23370 test $ac_status = 0; }; }; then :
0e3762ca 23371
23d56208
AX
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23373$as_echo "yes" >&6; }
0e3762ca 23374
23d56208 23375$as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
0e3762ca 23376
0e3762ca 23377
23d56208
AX
23378else
23379 $as_echo "$as_me: failed program was:" >&5
23380sed 's/^/| /' conftest.$ac_ext >&5
0e3762ca
CALP
23381
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23383$as_echo "no" >&6; }
23384
0e3762ca 23385
0e3762ca 23386
23d56208
AX
23387fi
23388 rm -Rf build
0e3762ca 23389
0e3762ca 23390
23d56208 23391 EXTRA_KCFLAGS="$tmp_flags"
0e3762ca 23392
0e3762ca 23393
23d56208
AX
23394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
23395$as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
23396 tmp_flags="$EXTRA_KCFLAGS"
23397 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
0e3762ca
CALP
23398
23399
23400cat confdefs.h - <<_ACEOF >conftest.c
23401
23402
23d56208 23403 #include <linux/blkdev.h>
0e3762ca
CALP
23404
23405int
23406main (void)
23407{
23408
23d56208
AX
23409 struct request_queue *q = NULL;
23410 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
0e3762ca
CALP
23411
23412 ;
23413 return 0;
23414}
23415
23416_ACEOF
23417
23418
23d56208
AX
23419
23420cat - <<_ACEOF >conftest.h
23421
23422_ACEOF
23423
23424
0e3762ca
CALP
23425 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23426 echo "obj-m := conftest.o" >build/Makefile
23427 modpost_flag=''
23428 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 23429 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
23430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23431 (eval $ac_try) 2>&5
23432 ac_status=$?
23433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23434 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23436 (eval $ac_try) 2>&5
23437 ac_status=$?
23438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23439 test $ac_status = 0; }; }; then :
0e3762ca 23440
23d56208
AX
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23442$as_echo "yes" >&6; }
0e3762ca 23443
23d56208 23444$as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
0e3762ca 23445
0e3762ca 23446
23d56208
AX
23447else
23448 $as_echo "$as_me: failed program was:" >&5
23449sed 's/^/| /' conftest.$ac_ext >&5
0e3762ca
CALP
23450
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23452$as_echo "no" >&6; }
23453
0e3762ca 23454
0e3762ca 23455
23d56208
AX
23456fi
23457 rm -Rf build
0e3762ca 23458
0e3762ca 23459
23d56208 23460 EXTRA_KCFLAGS="$tmp_flags"
0e3762ca
CALP
23461
23462
23d56208
AX
23463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
23464$as_echo_n "checking whether get_disk_ro() is available... " >&6; }
23465 tmp_flags="$EXTRA_KCFLAGS"
23466 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
0e3762ca
CALP
23467
23468
23469cat confdefs.h - <<_ACEOF >conftest.c
23470
23471
23d56208 23472 #include <linux/blkdev.h>
0e3762ca
CALP
23473
23474int
23475main (void)
23476{
23477
23d56208
AX
23478 struct gendisk *disk = NULL;
23479 (void) get_disk_ro(disk);
0e3762ca
CALP
23480
23481 ;
23482 return 0;
23483}
23484
23485_ACEOF
23486
23487
23d56208
AX
23488
23489cat - <<_ACEOF >conftest.h
23490
23491_ACEOF
23492
23493
0e3762ca
CALP
23494 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23495 echo "obj-m := conftest.o" >build/Makefile
23496 modpost_flag=''
23497 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 23498 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
23499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23500 (eval $ac_try) 2>&5
23501 ac_status=$?
23502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23503 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23505 (eval $ac_try) 2>&5
23506 ac_status=$?
23507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23508 test $ac_status = 0; }; }; then :
23509
23510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23511$as_echo "yes" >&6; }
23512
23d56208 23513$as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
0e3762ca
CALP
23514
23515
23516else
23517 $as_echo "$as_me: failed program was:" >&5
23518sed 's/^/| /' conftest.$ac_ext >&5
23519
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23521$as_echo "no" >&6; }
23522
23523
23524
23525fi
23526 rm -Rf build
23527
23528
23d56208 23529 EXTRA_KCFLAGS="$tmp_flags"
0e3762ca 23530
23d56208
AX
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
23532$as_echo_n "checking whether get_gendisk() is available... " >&6; }
0e3762ca 23533
0e3762ca
CALP
23534
23535
23536cat confdefs.h - <<_ACEOF >conftest.c
23537
23538
23d56208 23539 #include <linux/genhd.h>
0e3762ca
CALP
23540
23541int
23542main (void)
23543{
23544
23d56208
AX
23545 get_gendisk(0, NULL);
23546
0e3762ca
CALP
23547 ;
23548 return 0;
23549}
23550
23551_ACEOF
23552
23553
23d56208
AX
23554
23555cat - <<_ACEOF >conftest.h
23556
23557_ACEOF
23558
23559
0e3762ca
CALP
23560 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23561 echo "obj-m := conftest.o" >build/Makefile
23562 modpost_flag=''
23563 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 23564 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
23565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23566 (eval $ac_try) 2>&5
23567 ac_status=$?
23568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23569 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23571 (eval $ac_try) 2>&5
23572 ac_status=$?
23573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23574 test $ac_status = 0; }; }; then :
23d56208
AX
23575 rc=0
23576else
23577 $as_echo "$as_me: failed program was:" >&5
23578sed 's/^/| /' conftest.$ac_ext >&5
23579 rc=1
0e3762ca 23580
0e3762ca 23581
23d56208
AX
23582fi
23583 rm -Rf build
0e3762ca
CALP
23584
23585
23d56208 23586 if test $rc -ne 0; then :
0e3762ca
CALP
23587
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23589$as_echo "no" >&6; }
23590
23d56208
AX
23591 else
23592 if test "x$enable_linux_builtin" != xyes; then
23593
23594 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
23595 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23596 rc=$?
23597 if test $rc -ne 0; then
23598 export=0
23599 for file in block/genhd.c; do
23600 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
23601 "$LINUX/$file" 2>/dev/null
23602 rc=$?
23603 if test $rc -eq 0; then
23604 export=1
23605 break;
23606 fi
23607 done
23608 if test $export -eq 0; then :
23609 rc=1
23610 else :
23611 rc=0
23612 fi
23613 else :
23614 rc=0
23615 fi
23616
23617 fi
23618 if test $rc -ne 0; then :
0e3762ca 23619
23d56208
AX
23620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23621$as_echo "no" >&6; }
0e3762ca 23622
23d56208 23623 else :
0e3762ca 23624
23d56208
AX
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23626$as_echo "yes" >&6; }
0e3762ca 23627
23d56208 23628$as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
0e3762ca
CALP
23629
23630
23d56208
AX
23631 fi
23632 fi
23633
23634
23635
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
23637$as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
0e3762ca
CALP
23638
23639
23640cat confdefs.h - <<_ACEOF >conftest.c
23641
23642
23643 #include <linux/blkdev.h>
23644
23645int
23646main (void)
23647{
23648
23d56208
AX
23649 struct queue_limits ql __attribute__ ((unused));
23650
23651 ql.discard_granularity = 0;
0e3762ca
CALP
23652
23653 ;
23654 return 0;
23655}
23656
23657_ACEOF
23658
23659
23d56208
AX
23660
23661cat - <<_ACEOF >conftest.h
23662
23663_ACEOF
23664
23665
0e3762ca
CALP
23666 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23667 echo "obj-m := conftest.o" >build/Makefile
23668 modpost_flag=''
23669 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 23670 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
23671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23672 (eval $ac_try) 2>&5
23673 ac_status=$?
23674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23675 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23677 (eval $ac_try) 2>&5
23678 ac_status=$?
23679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23680 test $ac_status = 0; }; }; then :
23681
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23683$as_echo "yes" >&6; }
23684
23d56208 23685$as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
0e3762ca
CALP
23686
23687
23688else
23689 $as_echo "$as_me: failed program was:" >&5
23690sed 's/^/| /' conftest.$ac_ext >&5
23691
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23693$as_echo "no" >&6; }
23694
23695
23696
23697fi
23698 rm -Rf build
23699
23700
0e3762ca 23701
23d56208
AX
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_hander" >&5
23703$as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
0e3762ca
CALP
23704
23705
23706cat confdefs.h - <<_ACEOF >conftest.c
23707
23708
23d56208
AX
23709 #include <linux/fs.h>
23710 #include <linux/xattr.h>
23711
23712 const struct xattr_handler xattr_test_handler = {
23713 .prefix = "test",
23714 .get = NULL,
23715 .set = NULL,
23716 };
23717
23718 const struct xattr_handler *xattr_handlers[] = {
23719 &xattr_test_handler,
23720 };
23721
23722 const struct super_block sb __attribute__ ((unused)) = {
23723 .s_xattr = xattr_handlers,
23724 };
0e3762ca
CALP
23725
23726int
23727main (void)
23728{
23729
0e3762ca
CALP
23730
23731 ;
23732 return 0;
23733}
23734
23735_ACEOF
23736
23737
23d56208
AX
23738
23739cat - <<_ACEOF >conftest.h
23740
23741_ACEOF
23742
23743
0e3762ca
CALP
23744 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23745 echo "obj-m := conftest.o" >build/Makefile
23746 modpost_flag=''
23747 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 23748 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
23749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23750 (eval $ac_try) 2>&5
23751 ac_status=$?
23752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23753 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23755 (eval $ac_try) 2>&5
23756 ac_status=$?
23757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23758 test $ac_status = 0; }; }; then :
23759
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23761$as_echo "yes" >&6; }
23762
23d56208 23763$as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
0e3762ca
CALP
23764
23765
23766else
23767 $as_echo "$as_me: failed program was:" >&5
23768sed 's/^/| /' conftest.$ac_ext >&5
23769
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23771$as_echo "no" >&6; }
23772
23773
23774
23775fi
23776 rm -Rf build
23777
23778
23779
23780
23d56208
AX
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
23782$as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
0e3762ca
CALP
23783
23784
23785cat confdefs.h - <<_ACEOF >conftest.c
23786
23787
23d56208
AX
23788 #include <linux/xattr.h>
23789
23790 int get(struct dentry *dentry, const char *name,
23791 void *buffer, size_t size, int handler_flags) { return 0; }
23792 static const struct xattr_handler
23793 xops __attribute__ ((unused)) = {
23794 .get = get,
23795 };
0e3762ca
CALP
23796
23797int
23798main (void)
23799{
23800
0e3762ca
CALP
23801
23802 ;
23803 return 0;
23804}
23805
23806_ACEOF
23807
23808
23d56208
AX
23809
23810cat - <<_ACEOF >conftest.h
23811
23812_ACEOF
23813
23814
0e3762ca
CALP
23815 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23816 echo "obj-m := conftest.o" >build/Makefile
23817 modpost_flag=''
23818 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 23819 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
23820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23821 (eval $ac_try) 2>&5
23822 ac_status=$?
23823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23824 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23826 (eval $ac_try) 2>&5
23827 ac_status=$?
23828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23829 test $ac_status = 0; }; }; then :
23830
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23832$as_echo "yes" >&6; }
23833
23d56208 23834$as_echo "#define HAVE_DENTRY_XATTR_GET 1" >>confdefs.h
0e3762ca
CALP
23835
23836
23837else
23838 $as_echo "$as_me: failed program was:" >&5
23839sed 's/^/| /' conftest.$ac_ext >&5
23840
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23842$as_echo "no" >&6; }
23843
23844
23845
23846fi
23847 rm -Rf build
23848
23849
23850
23851
23d56208
AX
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
23853$as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
0e3762ca
CALP
23854
23855
23856cat confdefs.h - <<_ACEOF >conftest.c
23857
23858
23d56208
AX
23859 #include <linux/xattr.h>
23860
23861 int set(struct dentry *dentry, const char *name,
23862 const void *buffer, size_t size, int flags,
23863 int handler_flags) { return 0; }
23864 static const struct xattr_handler
23865 xops __attribute__ ((unused)) = {
23866 .set = set,
23867 };
0e3762ca
CALP
23868
23869int
23870main (void)
23871{
23872
0e3762ca
CALP
23873
23874 ;
23875 return 0;
23876}
23877
23878_ACEOF
23879
23880
23d56208
AX
23881
23882cat - <<_ACEOF >conftest.h
23883
23884_ACEOF
23885
23886
0e3762ca
CALP
23887 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23888 echo "obj-m := conftest.o" >build/Makefile
23889 modpost_flag=''
23890 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 23891 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
23892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23893 (eval $ac_try) 2>&5
23894 ac_status=$?
23895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23896 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23898 (eval $ac_try) 2>&5
23899 ac_status=$?
23900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23901 test $ac_status = 0; }; }; then :
23902
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23904$as_echo "yes" >&6; }
23905
23d56208 23906$as_echo "#define HAVE_DENTRY_XATTR_SET 1" >>confdefs.h
0e3762ca
CALP
23907
23908
23909else
23910 $as_echo "$as_me: failed program was:" >&5
23911sed 's/^/| /' conftest.$ac_ext >&5
23912
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23914$as_echo "no" >&6; }
23915
23916
23917
23918fi
23919 rm -Rf build
23920
23921
23922
23923
23d56208
AX
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
23925$as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
0e3762ca
CALP
23926
23927
23928cat confdefs.h - <<_ACEOF >conftest.c
23929
23930
23d56208 23931 #include <linux/xattr.h>
0e3762ca 23932
23d56208
AX
23933 size_t list(struct dentry *dentry, char *list, size_t list_size,
23934 const char *name, size_t name_len, int handler_flags)
23935 { return 0; }
23936 static const struct xattr_handler
23937 xops __attribute__ ((unused)) = {
23938 .list = list,
23939 };
0e3762ca
CALP
23940
23941int
23942main (void)
23943{
23944
23945
23946 ;
23947 return 0;
23948}
23949
23950_ACEOF
23951
23952
23d56208
AX
23953
23954cat - <<_ACEOF >conftest.h
23955
23956_ACEOF
23957
23958
0e3762ca
CALP
23959 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23960 echo "obj-m := conftest.o" >build/Makefile
23961 modpost_flag=''
23962 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 23963 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
23964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23965 (eval $ac_try) 2>&5
23966 ac_status=$?
23967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23968 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23970 (eval $ac_try) 2>&5
23971 ac_status=$?
23972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23973 test $ac_status = 0; }; }; then :
23974
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23976$as_echo "yes" >&6; }
23977
23d56208 23978$as_echo "#define HAVE_DENTRY_XATTR_LIST 1" >>confdefs.h
0e3762ca
CALP
23979
23980
23981else
23982 $as_echo "$as_me: failed program was:" >&5
23983sed 's/^/| /' conftest.$ac_ext >&5
23984
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23986$as_echo "no" >&6; }
23987
23988
23989
23990fi
23991 rm -Rf build
23992
23993
23994
23995
23d56208
AX
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
23997$as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
0e3762ca
CALP
23998
23999
24000cat confdefs.h - <<_ACEOF >conftest.c
24001
24002
23d56208 24003 #include <linux/fs.h>
0e3762ca
CALP
24004
24005int
24006main (void)
24007{
24008
23d56208
AX
24009 struct inode *ip = NULL;
24010 (void) inode_owner_or_capable(ip);
0e3762ca
CALP
24011
24012 ;
24013 return 0;
24014}
24015
24016_ACEOF
24017
24018
23d56208
AX
24019
24020cat - <<_ACEOF >conftest.h
24021
24022_ACEOF
24023
24024
0e3762ca
CALP
24025 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24026 echo "obj-m := conftest.o" >build/Makefile
24027 modpost_flag=''
24028 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 24029 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
24030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24031 (eval $ac_try) 2>&5
24032 ac_status=$?
24033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24034 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24036 (eval $ac_try) 2>&5
24037 ac_status=$?
24038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24039 test $ac_status = 0; }; }; then :
24040
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24042$as_echo "yes" >&6; }
24043
23d56208 24044$as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
0e3762ca
CALP
24045
24046
24047else
24048 $as_echo "$as_me: failed program was:" >&5
24049sed 's/^/| /' conftest.$ac_ext >&5
24050
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24052$as_echo "no" >&6; }
23d56208
AX
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
24054$as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
0e3762ca
CALP
24055
24056
24057cat confdefs.h - <<_ACEOF >conftest.c
24058
24059
23d56208
AX
24060 #include <linux/fs.h>
24061 #include <linux/sched.h>
0e3762ca
CALP
24062
24063int
24064main (void)
24065{
24066
23d56208
AX
24067 struct inode *ip = NULL;
24068 (void) is_owner_or_cap(ip);
0e3762ca
CALP
24069
24070 ;
24071 return 0;
24072}
24073
24074_ACEOF
24075
24076
23d56208
AX
24077
24078cat - <<_ACEOF >conftest.h
24079
24080_ACEOF
24081
24082
0e3762ca
CALP
24083 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24084 echo "obj-m := conftest.o" >build/Makefile
24085 modpost_flag=''
24086 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 24087 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
24088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24089 (eval $ac_try) 2>&5
24090 ac_status=$?
24091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24092 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
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; }; }; then :
24098
23d56208 24099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
0e3762ca
CALP
24100$as_echo "yes" >&6; }
24101
23d56208 24102$as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
0e3762ca
CALP
24103
24104
24105else
24106 $as_echo "$as_me: failed program was:" >&5
24107sed 's/^/| /' conftest.$ac_ext >&5
24108
23d56208
AX
24109 as_fn_error $? "no - Please file a bug report at
24110 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
24111
24112
24113
24114fi
24115 rm -Rf build
24116
24117
0e3762ca
CALP
24118
24119
24120
24121fi
24122 rm -Rf build
24123
24124
24125
24126
23d56208
AX
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
24128$as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
0e3762ca
CALP
24129
24130
24131cat confdefs.h - <<_ACEOF >conftest.c
24132
24133
23d56208
AX
24134 #include <linux/cred.h>
24135 #include <linux/fs.h>
24136 #include <linux/posix_acl_xattr.h>
0e3762ca
CALP
24137
24138int
24139main (void)
24140{
24141
23d56208 24142 posix_acl_from_xattr(&init_user_ns, NULL, 0);
0e3762ca
CALP
24143
24144 ;
24145 return 0;
24146}
24147
24148_ACEOF
24149
24150
23d56208
AX
24151
24152cat - <<_ACEOF >conftest.h
24153
24154_ACEOF
24155
24156
0e3762ca
CALP
24157 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24158 echo "obj-m := conftest.o" >build/Makefile
24159 modpost_flag=''
24160 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 24161 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
24162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24163 (eval $ac_try) 2>&5
24164 ac_status=$?
24165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24166 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24168 (eval $ac_try) 2>&5
24169 ac_status=$?
24170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24171 test $ac_status = 0; }; }; then :
24172
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24174$as_echo "yes" >&6; }
24175
23d56208 24176$as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
0e3762ca
CALP
24177
24178
24179else
24180 $as_echo "$as_me: failed program was:" >&5
24181sed 's/^/| /' conftest.$ac_ext >&5
24182
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24184$as_echo "no" >&6; }
24185
24186
24187
24188fi
24189 rm -Rf build
24190
24191
24192
24193
23d56208
AX
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
24195$as_echo_n "checking whether posix_acl_release() is available... " >&6; }
0e3762ca
CALP
24196
24197
24198cat confdefs.h - <<_ACEOF >conftest.c
24199
24200
23d56208
AX
24201 #include <linux/cred.h>
24202 #include <linux/fs.h>
24203 #include <linux/posix_acl.h>
0e3762ca
CALP
24204
24205int
24206main (void)
24207{
24208
23d56208
AX
24209 struct posix_acl* tmp = posix_acl_alloc(1, 0);
24210 posix_acl_release(tmp);
0e3762ca
CALP
24211
24212 ;
24213 return 0;
24214}
24215
24216_ACEOF
24217
24218
23d56208
AX
24219
24220cat - <<_ACEOF >conftest.h
24221
24222_ACEOF
24223
24224
0e3762ca
CALP
24225 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24226 echo "obj-m := conftest.o" >build/Makefile
24227 modpost_flag=''
24228 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 24229 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
24230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24231 (eval $ac_try) 2>&5
24232 ac_status=$?
24233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24234 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24236 (eval $ac_try) 2>&5
24237 ac_status=$?
24238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24239 test $ac_status = 0; }; }; then :
24240
24241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24242$as_echo "yes" >&6; }
24243
23d56208 24244$as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
0e3762ca
CALP
24245
24246
24247else
24248 $as_echo "$as_me: failed program was:" >&5
24249sed 's/^/| /' conftest.$ac_ext >&5
24250
24251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24252$as_echo "no" >&6; }
24253
24254
24255
24256fi
24257 rm -Rf build
24258
24259
24260
23d56208
AX
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
24262$as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
0e3762ca
CALP
24263
24264
24265cat confdefs.h - <<_ACEOF >conftest.c
24266
24267
23d56208
AX
24268 #include <linux/cred.h>
24269 #include <linux/fs.h>
24270 #include <linux/posix_acl.h>
0e3762ca 24271
23d56208 24272 MODULE_LICENSE("$ZFS_META_LICENSE");
0e3762ca
CALP
24273
24274int
24275main (void)
24276{
24277
23d56208
AX
24278 struct posix_acl* tmp = posix_acl_alloc(1, 0);
24279 posix_acl_release(tmp);
0e3762ca
CALP
24280
24281 ;
24282 return 0;
24283}
24284
24285_ACEOF
24286
24287
23d56208
AX
24288
24289cat - <<_ACEOF >conftest.h
24290
24291_ACEOF
24292
24293
0e3762ca
CALP
24294 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24295 echo "obj-m := conftest.o" >build/Makefile
24296 modpost_flag=''
24297 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 24298 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
24299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24300 (eval $ac_try) 2>&5
24301 ac_status=$?
24302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24303 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24305 (eval $ac_try) 2>&5
24306 ac_status=$?
24307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24308 test $ac_status = 0; }; }; then :
24309
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24311$as_echo "no" >&6; }
24312
24313else
24314 $as_echo "$as_me: failed program was:" >&5
24315sed 's/^/| /' conftest.$ac_ext >&5
24316
24317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24318$as_echo "yes" >&6; }
24319
23d56208 24320$as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
0e3762ca
CALP
24321
24322
24323
24324
24325fi
24326 rm -Rf build
24327
24328
0e3762ca
CALP
24329
24330
23d56208
AX
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
24332$as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
0e3762ca
CALP
24333
24334
24335cat confdefs.h - <<_ACEOF >conftest.c
24336
24337
23d56208
AX
24338 #include <linux/fs.h>
24339 #include <linux/posix_acl.h>
0e3762ca
CALP
24340
24341int
24342main (void)
24343{
24344
23d56208 24345 posix_acl_chmod(NULL, 0, 0)
0e3762ca
CALP
24346
24347 ;
24348 return 0;
24349}
24350
24351_ACEOF
24352
24353
23d56208
AX
24354
24355cat - <<_ACEOF >conftest.h
24356
24357_ACEOF
24358
24359
0e3762ca
CALP
24360 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24361 echo "obj-m := conftest.o" >build/Makefile
24362 modpost_flag=''
24363 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 24364 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
24365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24366 (eval $ac_try) 2>&5
24367 ac_status=$?
24368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24369 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
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; }; }; then :
24375
24376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24377$as_echo "yes" >&6; }
24378
23d56208 24379$as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
0e3762ca
CALP
24380
24381
24382else
24383 $as_echo "$as_me: failed program was:" >&5
24384sed 's/^/| /' conftest.$ac_ext >&5
24385
24386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24387$as_echo "no" >&6; }
24388
24389
24390
24391fi
24392 rm -Rf build
24393
24394
24395
23d56208
AX
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
24397$as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
0e3762ca
CALP
24398
24399
24400cat confdefs.h - <<_ACEOF >conftest.c
24401
24402
23d56208
AX
24403 #include <linux/fs.h>
24404 #include <linux/posix_acl.h>
0e3762ca
CALP
24405
24406int
24407main (void)
24408{
24409
23d56208 24410 __posix_acl_chmod(NULL, 0, 0)
0e3762ca
CALP
24411
24412 ;
24413 return 0;
24414}
24415
24416_ACEOF
24417
24418
23d56208
AX
24419
24420cat - <<_ACEOF >conftest.h
24421
24422_ACEOF
24423
24424
0e3762ca
CALP
24425 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24426 echo "obj-m := conftest.o" >build/Makefile
24427 modpost_flag=''
24428 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 24429 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
24430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24431 (eval $ac_try) 2>&5
24432 ac_status=$?
24433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24434 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24436 (eval $ac_try) 2>&5
24437 ac_status=$?
24438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24439 test $ac_status = 0; }; }; then :
24440
23d56208
AX
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24442$as_echo "yes" >&6; }
24443
24444$as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
24445
0e3762ca
CALP
24446
24447else
24448 $as_echo "$as_me: failed program was:" >&5
24449sed 's/^/| /' conftest.$ac_ext >&5
24450
23d56208
AX
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24452$as_echo "no" >&6; }
0e3762ca
CALP
24453
24454
24455
24456fi
24457 rm -Rf build
24458
24459
0e3762ca
CALP
24460
24461
23d56208
AX
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode has i_acl and i_default_acl" >&5
24463$as_echo_n "checking whether inode has i_acl and i_default_acl... " >&6; }
0e3762ca
CALP
24464
24465
24466cat confdefs.h - <<_ACEOF >conftest.c
24467
24468
23d56208 24469 #include <linux/fs.h>
0e3762ca
CALP
24470
24471int
24472main (void)
24473{
24474
23d56208
AX
24475 struct inode ino;
24476 ino.i_acl = NULL;
24477 ino.i_default_acl = NULL;
0e3762ca
CALP
24478
24479 ;
24480 return 0;
24481}
24482
24483_ACEOF
24484
24485
23d56208
AX
24486
24487cat - <<_ACEOF >conftest.h
24488
24489_ACEOF
24490
24491
0e3762ca
CALP
24492 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24493 echo "obj-m := conftest.o" >build/Makefile
24494 modpost_flag=''
24495 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 24496 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
24497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24498 (eval $ac_try) 2>&5
24499 ac_status=$?
24500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24501 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24503 (eval $ac_try) 2>&5
24504 ac_status=$?
24505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24506 test $ac_status = 0; }; }; then :
24507
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24509$as_echo "yes" >&6; }
24510
23d56208 24511$as_echo "#define HAVE_POSIX_ACL_CACHING 1" >>confdefs.h
0e3762ca
CALP
24512
24513
24514else
24515 $as_echo "$as_me: failed program was:" >&5
24516sed 's/^/| /' conftest.$ac_ext >&5
24517
24518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24519$as_echo "no" >&6; }
24520
24521
24522
24523fi
24524 rm -Rf build
24525
24526
0e3762ca
CALP
24527
24528
23d56208
AX
24529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
24530$as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
0e3762ca
CALP
24531
24532
24533cat confdefs.h - <<_ACEOF >conftest.c
24534
24535
23d56208
AX
24536 #include <linux/fs.h>
24537 #include <linux/posix_acl.h>
0e3762ca
CALP
24538
24539int
24540main (void)
24541{
24542
23d56208
AX
24543 umode_t tmp;
24544 posix_acl_equiv_mode(NULL,&tmp);
0e3762ca
CALP
24545
24546 ;
24547 return 0;
24548}
24549
24550_ACEOF
24551
24552
23d56208
AX
24553
24554cat - <<_ACEOF >conftest.h
24555
24556_ACEOF
24557
24558
0e3762ca
CALP
24559 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24560 echo "obj-m := conftest.o" >build/Makefile
24561 modpost_flag=''
24562 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 24563 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
24564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24565 (eval $ac_try) 2>&5
24566 ac_status=$?
24567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24568 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24570 (eval $ac_try) 2>&5
24571 ac_status=$?
24572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24573 test $ac_status = 0; }; }; then :
24574
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24576$as_echo "yes" >&6; }
24577
23d56208 24578$as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
0e3762ca
CALP
24579
24580
24581else
24582 $as_echo "$as_me: failed program was:" >&5
24583sed 's/^/| /' conftest.$ac_ext >&5
24584
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24586$as_echo "no" >&6; }
24587
24588
24589
24590fi
24591 rm -Rf build
24592
24593
0e3762ca
CALP
24594
24595
23d56208
AX
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
24597$as_echo_n "checking whether iops->permission() exists... " >&6; }
0e3762ca
CALP
24598
24599
24600cat confdefs.h - <<_ACEOF >conftest.c
24601
24602
23d56208
AX
24603 #include <linux/fs.h>
24604
24605 int permission_fn(struct inode *inode, int mask) { return 0; }
24606
24607 static const struct inode_operations
24608 iops __attribute__ ((unused)) = {
24609 .permission = permission_fn,
24610 };
0e3762ca
CALP
24611
24612int
24613main (void)
24614{
24615
0e3762ca
CALP
24616
24617 ;
24618 return 0;
24619}
24620
24621_ACEOF
24622
24623
23d56208
AX
24624
24625cat - <<_ACEOF >conftest.h
24626
24627_ACEOF
24628
24629
0e3762ca
CALP
24630 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24631 echo "obj-m := conftest.o" >build/Makefile
24632 modpost_flag=''
24633 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 24634 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
24635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24636 (eval $ac_try) 2>&5
24637 ac_status=$?
24638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24639 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24641 (eval $ac_try) 2>&5
24642 ac_status=$?
24643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24644 test $ac_status = 0; }; }; then :
24645
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24647$as_echo "yes" >&6; }
24648
23d56208 24649$as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
0e3762ca
CALP
24650
24651
24652else
24653 $as_echo "$as_me: failed program was:" >&5
24654sed 's/^/| /' conftest.$ac_ext >&5
24655
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24657$as_echo "no" >&6; }
24658
24659
24660
24661fi
24662 rm -Rf build
24663
24664
0e3762ca
CALP
24665
24666
23d56208
AX
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
24668$as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
0e3762ca
CALP
24669
24670
24671cat confdefs.h - <<_ACEOF >conftest.c
24672
24673
23d56208
AX
24674 #include <linux/fs.h>
24675
24676 int permission_fn(struct inode *inode, int mask,
24677 struct nameidata *nd) { return 0; }
24678
24679 static const struct inode_operations
24680 iops __attribute__ ((unused)) = {
24681 .permission = permission_fn,
24682 };
0e3762ca
CALP
24683
24684int
24685main (void)
24686{
24687
0e3762ca
CALP
24688
24689 ;
24690 return 0;
24691}
24692
24693_ACEOF
24694
24695
23d56208
AX
24696
24697cat - <<_ACEOF >conftest.h
24698
24699_ACEOF
24700
24701
0e3762ca
CALP
24702 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24703 echo "obj-m := conftest.o" >build/Makefile
24704 modpost_flag=''
24705 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 24706 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
24707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24708 (eval $ac_try) 2>&5
24709 ac_status=$?
24710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24711 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24713 (eval $ac_try) 2>&5
24714 ac_status=$?
24715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24716 test $ac_status = 0; }; }; then :
24717
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24719$as_echo "yes" >&6; }
24720
23d56208
AX
24721$as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
24722
24723
24724$as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
0e3762ca
CALP
24725
24726
24727else
24728 $as_echo "$as_me: failed program was:" >&5
24729sed 's/^/| /' conftest.$ac_ext >&5
24730
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24732$as_echo "no" >&6; }
24733
24734
24735
24736fi
24737 rm -Rf build
24738
24739
0e3762ca
CALP
24740
24741
23d56208
AX
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
24743$as_echo_n "checking whether iops->check_acl() exists... " >&6; }
0e3762ca
CALP
24744
24745
24746cat confdefs.h - <<_ACEOF >conftest.c
24747
24748
23d56208
AX
24749 #include <linux/fs.h>
24750
24751 int check_acl_fn(struct inode *inode, int mask) { return 0; }
24752
24753 static const struct inode_operations
24754 iops __attribute__ ((unused)) = {
24755 .check_acl = check_acl_fn,
24756 };
0e3762ca
CALP
24757
24758int
24759main (void)
24760{
24761
0e3762ca
CALP
24762
24763 ;
24764 return 0;
24765}
24766
24767_ACEOF
24768
24769
23d56208
AX
24770
24771cat - <<_ACEOF >conftest.h
24772
24773_ACEOF
24774
24775
0e3762ca
CALP
24776 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24777 echo "obj-m := conftest.o" >build/Makefile
24778 modpost_flag=''
24779 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 24780 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
24781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24782 (eval $ac_try) 2>&5
24783 ac_status=$?
24784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24785 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24787 (eval $ac_try) 2>&5
24788 ac_status=$?
24789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24790 test $ac_status = 0; }; }; then :
24791
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24793$as_echo "yes" >&6; }
24794
23d56208 24795$as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
0e3762ca
CALP
24796
24797
24798else
24799 $as_echo "$as_me: failed program was:" >&5
24800sed 's/^/| /' conftest.$ac_ext >&5
24801
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24803$as_echo "no" >&6; }
24804
24805
24806
24807fi
24808 rm -Rf build
24809
24810
0e3762ca
CALP
24811
24812
23d56208
AX
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
24814$as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
0e3762ca
CALP
24815
24816
24817cat confdefs.h - <<_ACEOF >conftest.c
24818
24819
23d56208
AX
24820 #include <linux/fs.h>
24821
24822 int check_acl_fn(struct inode *inode, int mask,
24823 unsigned int flags) { return 0; }
24824
24825 static const struct inode_operations
24826 iops __attribute__ ((unused)) = {
24827 .check_acl = check_acl_fn,
24828 };
0e3762ca
CALP
24829
24830int
24831main (void)
24832{
24833
0e3762ca
CALP
24834
24835 ;
24836 return 0;
24837}
24838
24839_ACEOF
24840
24841
23d56208
AX
24842
24843cat - <<_ACEOF >conftest.h
24844
24845_ACEOF
24846
24847
0e3762ca
CALP
24848 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24849 echo "obj-m := conftest.o" >build/Makefile
24850 modpost_flag=''
24851 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 24852 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
24853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24854 (eval $ac_try) 2>&5
24855 ac_status=$?
24856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24857 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24859 (eval $ac_try) 2>&5
24860 ac_status=$?
24861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24862 test $ac_status = 0; }; }; then :
24863
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24865$as_echo "yes" >&6; }
24866
23d56208
AX
24867$as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
24868
24869
24870$as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
0e3762ca
CALP
24871
24872
24873else
24874 $as_echo "$as_me: failed program was:" >&5
24875sed 's/^/| /' conftest.$ac_ext >&5
24876
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24878$as_echo "no" >&6; }
24879
24880
24881
24882fi
24883 rm -Rf build
24884
24885
0e3762ca
CALP
24886
24887
23d56208
AX
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
24889$as_echo_n "checking whether iops->get_acl() exists... " >&6; }
0e3762ca
CALP
24890
24891
24892cat confdefs.h - <<_ACEOF >conftest.c
24893
24894
23d56208
AX
24895 #include <linux/fs.h>
24896
24897 struct posix_acl *get_acl_fn(struct inode *inode, int type)
24898 { return NULL; }
24899
24900 static const struct inode_operations
24901 iops __attribute__ ((unused)) = {
24902 .get_acl = get_acl_fn,
24903 };
0e3762ca
CALP
24904
24905int
24906main (void)
24907{
24908
0e3762ca
CALP
24909
24910 ;
24911 return 0;
24912}
24913
24914_ACEOF
24915
24916
23d56208
AX
24917
24918cat - <<_ACEOF >conftest.h
24919
24920_ACEOF
24921
24922
0e3762ca
CALP
24923 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24924 echo "obj-m := conftest.o" >build/Makefile
24925 modpost_flag=''
24926 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 24927 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
24928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24929 (eval $ac_try) 2>&5
24930 ac_status=$?
24931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24932 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24934 (eval $ac_try) 2>&5
24935 ac_status=$?
24936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24937 test $ac_status = 0; }; }; then :
24938
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24940$as_echo "yes" >&6; }
24941
23d56208 24942$as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
0e3762ca
CALP
24943
24944
24945else
24946 $as_echo "$as_me: failed program was:" >&5
24947sed 's/^/| /' conftest.$ac_ext >&5
24948
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24950$as_echo "no" >&6; }
24951
24952
24953
24954fi
24955 rm -Rf build
24956
24957
0e3762ca
CALP
24958
24959
23d56208
AX
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_umask exists" >&5
24961$as_echo_n "checking whether current_umask exists... " >&6; }
0e3762ca
CALP
24962
24963
24964cat confdefs.h - <<_ACEOF >conftest.c
24965
24966
23d56208 24967 #include <linux/fs.h>
0e3762ca
CALP
24968
24969int
24970main (void)
24971{
24972
23d56208 24973 current_umask();
0e3762ca
CALP
24974
24975 ;
24976 return 0;
24977}
24978
24979_ACEOF
24980
24981
23d56208
AX
24982
24983cat - <<_ACEOF >conftest.h
24984
24985_ACEOF
24986
24987
0e3762ca
CALP
24988 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24989 echo "obj-m := conftest.o" >build/Makefile
24990 modpost_flag=''
24991 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 24992 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
24993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24994 (eval $ac_try) 2>&5
24995 ac_status=$?
24996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24997 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24999 (eval $ac_try) 2>&5
25000 ac_status=$?
25001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25002 test $ac_status = 0; }; }; then :
25003
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25005$as_echo "yes" >&6; }
25006
23d56208 25007$as_echo "#define HAVE_CURRENT_UMASK 1" >>confdefs.h
0e3762ca
CALP
25008
25009
25010else
25011 $as_echo "$as_me: failed program was:" >&5
25012sed 's/^/| /' conftest.$ac_ext >&5
25013
25014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25015$as_echo "no" >&6; }
25016
25017
25018
25019fi
25020 rm -Rf build
25021
25022
0e3762ca
CALP
25023
25024
23d56208
AX
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
25026$as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
25027
0e3762ca
CALP
25028
25029
25030cat confdefs.h - <<_ACEOF >conftest.c
25031
25032
23d56208
AX
25033 #include <linux/fs.h>
25034
25035 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
25036 static struct super_operations sops __attribute__ ((unused)) = {
25037 .show_options = show_options,
25038 };
0e3762ca
CALP
25039
25040int
25041main (void)
25042{
25043
0e3762ca
CALP
25044
25045 ;
25046 return 0;
25047}
25048
25049_ACEOF
25050
25051
23d56208
AX
25052
25053cat - <<_ACEOF >conftest.h
25054
25055_ACEOF
25056
25057
0e3762ca
CALP
25058 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25059 echo "obj-m := conftest.o" >build/Makefile
25060 modpost_flag=''
25061 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 25062 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
25063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25064 (eval $ac_try) 2>&5
25065 ac_status=$?
25066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25067 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25069 (eval $ac_try) 2>&5
25070 ac_status=$?
25071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25072 test $ac_status = 0; }; }; then :
25073
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25075$as_echo "yes" >&6; }
25076
23d56208 25077$as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
0e3762ca
CALP
25078
25079
25080else
25081 $as_echo "$as_me: failed program was:" >&5
25082sed 's/^/| /' conftest.$ac_ext >&5
25083
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25085$as_echo "no" >&6; }
25086
25087
25088
25089fi
25090 rm -Rf build
25091
25092
25093
0e3762ca 25094
23d56208
AX
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
25096$as_echo_n "checking whether file_inode() is available... " >&6; }
0e3762ca 25097
0e3762ca 25098
23d56208 25099cat confdefs.h - <<_ACEOF >conftest.c
0e3762ca 25100
0e3762ca 25101
23d56208 25102 #include <linux/fs.h>
0e3762ca
CALP
25103
25104int
25105main (void)
25106{
25107
23d56208
AX
25108 struct file *f = NULL;
25109 file_inode(f);
0e3762ca
CALP
25110
25111 ;
25112 return 0;
25113}
25114
25115_ACEOF
25116
25117
23d56208
AX
25118
25119cat - <<_ACEOF >conftest.h
25120
25121_ACEOF
25122
25123
0e3762ca
CALP
25124 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25125 echo "obj-m := conftest.o" >build/Makefile
25126 modpost_flag=''
25127 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 25128 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
25129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25130 (eval $ac_try) 2>&5
25131 ac_status=$?
25132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25133 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25135 (eval $ac_try) 2>&5
25136 ac_status=$?
25137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25138 test $ac_status = 0; }; }; then :
25139
23d56208
AX
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25141$as_echo "yes" >&6; }
25142
25143$as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
25144
0e3762ca
CALP
25145
25146else
25147 $as_echo "$as_me: failed program was:" >&5
25148sed 's/^/| /' conftest.$ac_ext >&5
25149
23d56208
AX
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25151$as_echo "no" >&6; }
0e3762ca
CALP
25152
25153
25154
25155fi
25156 rm -Rf build
25157
25158
0e3762ca
CALP
25159
25160
23d56208
AX
25161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
25162$as_echo_n "checking whether fops->fsync() wants... " >&6; }
25163
0e3762ca
CALP
25164
25165
25166cat confdefs.h - <<_ACEOF >conftest.c
25167
25168
23d56208
AX
25169 #include <linux/fs.h>
25170
25171 int test_fsync(struct file *f, struct dentry *dentry, int x)
25172 { return 0; }
25173
25174 static const struct file_operations
25175 fops __attribute__ ((unused)) = {
25176 .fsync = test_fsync,
25177 };
0e3762ca
CALP
25178
25179int
25180main (void)
25181{
25182
0e3762ca
CALP
25183
25184 ;
25185 return 0;
25186}
25187
25188_ACEOF
25189
25190
23d56208
AX
25191
25192cat - <<_ACEOF >conftest.h
25193
25194_ACEOF
25195
25196
0e3762ca
CALP
25197 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25198 echo "obj-m := conftest.o" >build/Makefile
25199 modpost_flag=''
25200 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 25201 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
25202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25203 (eval $ac_try) 2>&5
25204 ac_status=$?
25205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25206 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25208 (eval $ac_try) 2>&5
25209 ac_status=$?
25210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25211 test $ac_status = 0; }; }; then :
25212
23d56208
AX
25213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
25214$as_echo "dentry" >&6; }
0e3762ca 25215
23d56208 25216$as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
0e3762ca
CALP
25217
25218
25219else
25220 $as_echo "$as_me: failed program was:" >&5
25221sed 's/^/| /' conftest.$ac_ext >&5
25222
0e3762ca
CALP
25223
25224
25225
25226fi
25227 rm -Rf build
25228
25229
0e3762ca
CALP
25230
25231
0e3762ca
CALP
25232
25233
25234cat confdefs.h - <<_ACEOF >conftest.c
25235
25236
23d56208
AX
25237 #include <linux/fs.h>
25238
25239 int test_fsync(struct file *f, int x) { return 0; }
25240
25241 static const struct file_operations
25242 fops __attribute__ ((unused)) = {
25243 .fsync = test_fsync,
25244 };
0e3762ca
CALP
25245
25246int
25247main (void)
25248{
25249
0e3762ca
CALP
25250
25251 ;
25252 return 0;
25253}
25254
25255_ACEOF
25256
25257
23d56208
AX
25258
25259cat - <<_ACEOF >conftest.h
25260
25261_ACEOF
25262
25263
0e3762ca
CALP
25264 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25265 echo "obj-m := conftest.o" >build/Makefile
25266 modpost_flag=''
25267 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 25268 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
25269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25270 (eval $ac_try) 2>&5
25271 ac_status=$?
25272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25273 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25275 (eval $ac_try) 2>&5
25276 ac_status=$?
25277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25278 test $ac_status = 0; }; }; then :
25279
23d56208
AX
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
25281$as_echo "no dentry" >&6; }
0e3762ca 25282
23d56208 25283$as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
0e3762ca
CALP
25284
25285
25286else
25287 $as_echo "$as_me: failed program was:" >&5
25288sed 's/^/| /' conftest.$ac_ext >&5
25289
0e3762ca
CALP
25290
25291
25292
25293fi
25294 rm -Rf build
25295
25296
0e3762ca
CALP
25297
25298
0e3762ca
CALP
25299
25300
25301cat confdefs.h - <<_ACEOF >conftest.c
25302
25303
23d56208
AX
25304 #include <linux/fs.h>
25305
25306 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
25307 { return 0; }
25308
25309 static const struct file_operations
25310 fops __attribute__ ((unused)) = {
25311 .fsync = test_fsync,
25312 };
0e3762ca
CALP
25313
25314int
25315main (void)
25316{
25317
0e3762ca
CALP
25318
25319 ;
25320 return 0;
25321}
25322
25323_ACEOF
25324
25325
23d56208
AX
25326
25327cat - <<_ACEOF >conftest.h
25328
25329_ACEOF
25330
25331
0e3762ca
CALP
25332 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25333 echo "obj-m := conftest.o" >build/Makefile
25334 modpost_flag=''
25335 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 25336 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
25337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25338 (eval $ac_try) 2>&5
25339 ac_status=$?
25340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25341 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25343 (eval $ac_try) 2>&5
25344 ac_status=$?
25345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25346 test $ac_status = 0; }; }; then :
25347
23d56208
AX
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
25349$as_echo "range" >&6; }
0e3762ca 25350
23d56208 25351$as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
0e3762ca
CALP
25352
25353
25354else
25355 $as_echo "$as_me: failed program was:" >&5
25356sed 's/^/| /' conftest.$ac_ext >&5
25357
0e3762ca
CALP
25358
25359
25360
25361fi
25362 rm -Rf build
25363
25364
0e3762ca 25365
0e3762ca
CALP
25366
25367
23d56208
AX
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
25369$as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
25370
0e3762ca
CALP
25371
25372cat confdefs.h - <<_ACEOF >conftest.c
25373
25374
23d56208
AX
25375 #include <linux/fs.h>
25376 void evict_inode (struct inode * t) { return; }
25377 static struct super_operations sops __attribute__ ((unused)) = {
25378 .evict_inode = evict_inode,
25379 };
0e3762ca
CALP
25380
25381int
25382main (void)
25383{
25384
0e3762ca
CALP
25385
25386 ;
25387 return 0;
25388}
25389
25390_ACEOF
25391
25392
23d56208
AX
25393
25394cat - <<_ACEOF >conftest.h
25395
25396_ACEOF
25397
25398
0e3762ca
CALP
25399 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25400 echo "obj-m := conftest.o" >build/Makefile
25401 modpost_flag=''
25402 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 25403 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
25404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25405 (eval $ac_try) 2>&5
25406 ac_status=$?
25407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25408 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25410 (eval $ac_try) 2>&5
25411 ac_status=$?
25412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25413 test $ac_status = 0; }; }; then :
0e3762ca 25414
23d56208
AX
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25416$as_echo "yes" >&6; }
0e3762ca 25417
23d56208 25418$as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
0e3762ca
CALP
25419
25420
23d56208
AX
25421else
25422 $as_echo "$as_me: failed program was:" >&5
25423sed 's/^/| /' conftest.$ac_ext >&5
0e3762ca
CALP
25424
25425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25426$as_echo "no" >&6; }
25427
0e3762ca 25428
0e3762ca 25429
23d56208
AX
25430fi
25431 rm -Rf build
0e3762ca 25432
0e3762ca
CALP
25433
25434
0e3762ca 25435
23d56208
AX
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
25437$as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
0e3762ca
CALP
25438
25439
23d56208 25440cat confdefs.h - <<_ACEOF >conftest.c
0e3762ca
CALP
25441
25442
23d56208 25443 #include <linux/fs.h>
0e3762ca 25444
23d56208 25445 void dirty_inode(struct inode *a, int b) { return; }
0e3762ca 25446
23d56208
AX
25447 static const struct super_operations
25448 sops __attribute__ ((unused)) = {
25449 .dirty_inode = dirty_inode,
25450 };
0e3762ca
CALP
25451
25452int
25453main (void)
25454{
25455
0e3762ca
CALP
25456
25457 ;
25458 return 0;
25459}
25460
25461_ACEOF
25462
25463
23d56208
AX
25464
25465cat - <<_ACEOF >conftest.h
25466
25467_ACEOF
25468
25469
0e3762ca
CALP
25470 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25471 echo "obj-m := conftest.o" >build/Makefile
25472 modpost_flag=''
25473 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 25474 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
25475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25476 (eval $ac_try) 2>&5
25477 ac_status=$?
25478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25479 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25481 (eval $ac_try) 2>&5
25482 ac_status=$?
25483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25484 test $ac_status = 0; }; }; then :
25485
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25487$as_echo "yes" >&6; }
25488
23d56208 25489$as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
0e3762ca
CALP
25490
25491
25492else
25493 $as_echo "$as_me: failed program was:" >&5
25494sed 's/^/| /' conftest.$ac_ext >&5
25495
25496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25497$as_echo "no" >&6; }
25498
25499
25500
25501fi
25502 rm -Rf build
25503
25504
0e3762ca
CALP
25505
25506
23d56208
AX
25507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
25508$as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
0e3762ca
CALP
25509
25510
25511cat confdefs.h - <<_ACEOF >conftest.c
25512
25513
23d56208
AX
25514 #include <linux/fs.h>
25515
25516 int nr_cached_objects(struct super_block *sb) { return 0; }
25517
25518 static const struct super_operations
25519 sops __attribute__ ((unused)) = {
25520 .nr_cached_objects = nr_cached_objects,
25521 };
0e3762ca
CALP
25522
25523int
25524main (void)
25525{
25526
0e3762ca
CALP
25527
25528 ;
25529 return 0;
25530}
25531
25532_ACEOF
25533
25534
23d56208
AX
25535
25536cat - <<_ACEOF >conftest.h
25537
25538_ACEOF
25539
25540
0e3762ca
CALP
25541 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25542 echo "obj-m := conftest.o" >build/Makefile
25543 modpost_flag=''
25544 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 25545 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
25546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25547 (eval $ac_try) 2>&5
25548 ac_status=$?
25549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25550 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25552 (eval $ac_try) 2>&5
25553 ac_status=$?
25554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25555 test $ac_status = 0; }; }; then :
25556
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25558$as_echo "yes" >&6; }
25559
23d56208 25560$as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
0e3762ca
CALP
25561
25562
25563else
25564 $as_echo "$as_me: failed program was:" >&5
25565sed 's/^/| /' conftest.$ac_ext >&5
25566
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25568$as_echo "no" >&6; }
25569
25570
25571
25572fi
25573 rm -Rf build
25574
25575
0e3762ca
CALP
25576
25577
23d56208
AX
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
25579$as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
0e3762ca
CALP
25580
25581
25582cat confdefs.h - <<_ACEOF >conftest.c
25583
25584
23d56208
AX
25585 #include <linux/fs.h>
25586
25587 void free_cached_objects(struct super_block *sb, int x)
25588 { return; }
25589
25590 static const struct super_operations
25591 sops __attribute__ ((unused)) = {
25592 .free_cached_objects = free_cached_objects,
25593 };
0e3762ca
CALP
25594
25595int
25596main (void)
25597{
25598
0e3762ca
CALP
25599
25600 ;
25601 return 0;
25602}
25603
25604_ACEOF
25605
25606
23d56208
AX
25607
25608cat - <<_ACEOF >conftest.h
25609
25610_ACEOF
25611
25612
0e3762ca
CALP
25613 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25614 echo "obj-m := conftest.o" >build/Makefile
25615 modpost_flag=''
25616 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 25617 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
25618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25619 (eval $ac_try) 2>&5
25620 ac_status=$?
25621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25622 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25624 (eval $ac_try) 2>&5
25625 ac_status=$?
25626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25627 test $ac_status = 0; }; }; then :
25628
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25630$as_echo "yes" >&6; }
25631
23d56208 25632$as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
0e3762ca
CALP
25633
25634
25635else
25636 $as_echo "$as_me: failed program was:" >&5
25637sed 's/^/| /' conftest.$ac_ext >&5
25638
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25640$as_echo "no" >&6; }
25641
25642
25643
25644fi
25645 rm -Rf build
25646
25647
25648
23d56208
AX
25649
25650
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
25652$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
0e3762ca
CALP
25653
25654
25655cat confdefs.h - <<_ACEOF >conftest.c
25656
25657
25658 #include <linux/fs.h>
0e3762ca 25659
23d56208
AX
25660 long test_fallocate(struct file *file, int mode,
25661 loff_t offset, loff_t len) { return 0; }
0e3762ca 25662
23d56208
AX
25663 static const struct file_operations
25664 fops __attribute__ ((unused)) = {
25665 .fallocate = test_fallocate,
0e3762ca
CALP
25666 };
25667
25668int
25669main (void)
25670{
25671
0e3762ca
CALP
25672
25673 ;
25674 return 0;
25675}
25676
25677_ACEOF
25678
25679
23d56208
AX
25680
25681cat - <<_ACEOF >conftest.h
25682
25683_ACEOF
25684
25685
0e3762ca
CALP
25686 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25687 echo "obj-m := conftest.o" >build/Makefile
25688 modpost_flag=''
25689 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 25690 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
25691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25692 (eval $ac_try) 2>&5
25693 ac_status=$?
25694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25695 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25697 (eval $ac_try) 2>&5
25698 ac_status=$?
25699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25700 test $ac_status = 0; }; }; then :
25701
25702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25703$as_echo "yes" >&6; }
25704
23d56208 25705$as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
0e3762ca
CALP
25706
25707
25708else
25709 $as_echo "$as_me: failed program was:" >&5
25710sed 's/^/| /' conftest.$ac_ext >&5
25711
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25713$as_echo "no" >&6; }
25714
25715
25716
25717fi
25718 rm -Rf build
25719
25720
25721
25722
23d56208
AX
25723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
25724$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
0e3762ca
CALP
25725
25726
25727cat confdefs.h - <<_ACEOF >conftest.c
25728
25729
23d56208
AX
25730 #include <linux/fs.h>
25731
25732 long test_fallocate(struct inode *inode, int mode,
25733 loff_t offset, loff_t len) { return 0; }
25734
25735 static const struct inode_operations
25736 fops __attribute__ ((unused)) = {
25737 .fallocate = test_fallocate,
25738 };
0e3762ca
CALP
25739
25740int
25741main (void)
25742{
25743
0e3762ca
CALP
25744
25745 ;
25746 return 0;
25747}
25748
25749_ACEOF
25750
25751
23d56208
AX
25752
25753cat - <<_ACEOF >conftest.h
25754
25755_ACEOF
25756
25757
0e3762ca
CALP
25758 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25759 echo "obj-m := conftest.o" >build/Makefile
25760 modpost_flag=''
25761 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 25762 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
25763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25764 (eval $ac_try) 2>&5
25765 ac_status=$?
25766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25767 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25769 (eval $ac_try) 2>&5
25770 ac_status=$?
25771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25772 test $ac_status = 0; }; }; then :
25773
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25775$as_echo "yes" >&6; }
25776
23d56208 25777$as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
0e3762ca
CALP
25778
25779
25780else
25781 $as_echo "$as_me: failed program was:" >&5
25782sed 's/^/| /' conftest.$ac_ext >&5
25783
25784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25785$as_echo "no" >&6; }
25786
25787
25788
25789fi
25790 rm -Rf build
25791
25792
25793
25794
23d56208
AX
25795
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
25797$as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
0e3762ca
CALP
25798
25799
25800cat confdefs.h - <<_ACEOF >conftest.c
25801
25802
23d56208
AX
25803 #include <linux/fs.h>
25804
25805 int mkdir(struct inode *inode, struct dentry *dentry,
25806 umode_t umode) { return 0; }
25807
25808 static const struct inode_operations
25809 iops __attribute__ ((unused)) = {
25810 .mkdir = mkdir,
25811 };
0e3762ca
CALP
25812
25813int
25814main (void)
25815{
25816
0e3762ca
CALP
25817
25818 ;
25819 return 0;
25820}
25821
25822_ACEOF
25823
25824
23d56208
AX
25825
25826cat - <<_ACEOF >conftest.h
25827
25828_ACEOF
25829
25830
0e3762ca
CALP
25831 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25832 echo "obj-m := conftest.o" >build/Makefile
25833 modpost_flag=''
25834 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 25835 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
25836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25837 (eval $ac_try) 2>&5
25838 ac_status=$?
25839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25840 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25842 (eval $ac_try) 2>&5
25843 ac_status=$?
25844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25845 test $ac_status = 0; }; }; then :
25846
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25848$as_echo "yes" >&6; }
25849
23d56208 25850$as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
0e3762ca
CALP
25851
25852
25853else
25854 $as_echo "$as_me: failed program was:" >&5
25855sed 's/^/| /' conftest.$ac_ext >&5
25856
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25858$as_echo "no" >&6; }
25859
25860
25861
25862fi
25863 rm -Rf build
25864
25865
25866
25867
23d56208
AX
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
25869$as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
0e3762ca
CALP
25870
25871
25872cat confdefs.h - <<_ACEOF >conftest.c
25873
25874
25875 #include <linux/fs.h>
25876
23d56208
AX
25877 struct dentry *inode_lookup(struct inode *inode,
25878 struct dentry *dentry, struct nameidata *nidata)
25879 { return NULL; }
25880
25881 static const struct inode_operations iops
25882 __attribute__ ((unused)) = {
25883 .lookup = inode_lookup,
0e3762ca
CALP
25884 };
25885
25886int
25887main (void)
25888{
25889
25890
25891 ;
25892 return 0;
25893}
25894
25895_ACEOF
25896
25897
23d56208
AX
25898
25899cat - <<_ACEOF >conftest.h
25900
25901_ACEOF
25902
25903
0e3762ca
CALP
25904 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25905 echo "obj-m := conftest.o" >build/Makefile
25906 modpost_flag=''
25907 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 25908 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
25909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25910 (eval $ac_try) 2>&5
25911 ac_status=$?
25912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25913 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25915 (eval $ac_try) 2>&5
25916 ac_status=$?
25917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25918 test $ac_status = 0; }; }; then :
25919
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25921$as_echo "yes" >&6; }
25922
23d56208 25923$as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
0e3762ca
CALP
25924
25925
25926else
25927 $as_echo "$as_me: failed program was:" >&5
25928sed 's/^/| /' conftest.$ac_ext >&5
25929
25930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25931$as_echo "no" >&6; }
25932
25933
25934
25935fi
25936 rm -Rf build
25937
25938
25939
25940
23d56208
AX
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
25942$as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
0e3762ca
CALP
25943
25944
25945cat confdefs.h - <<_ACEOF >conftest.c
25946
25947
25948 #include <linux/fs.h>
25949
23d56208
AX
25950 #ifdef HAVE_MKDIR_UMODE_T
25951 int inode_create(struct inode *inode ,struct dentry *dentry,
25952 umode_t umode, struct nameidata *nidata) { return 0; }
25953 #else
25954 int inode_create(struct inode *inode,struct dentry *dentry,
25955 int umode, struct nameidata * nidata) { return 0; }
25956 #endif
0e3762ca 25957
23d56208
AX
25958 static const struct inode_operations
25959 iops __attribute__ ((unused)) = {
25960 .create = inode_create,
0e3762ca
CALP
25961 };
25962
25963int
25964main (void)
25965{
25966
25967
25968 ;
25969 return 0;
25970}
25971
25972_ACEOF
25973
25974
23d56208
AX
25975
25976cat - <<_ACEOF >conftest.h
25977
25978_ACEOF
25979
25980
0e3762ca
CALP
25981 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25982 echo "obj-m := conftest.o" >build/Makefile
25983 modpost_flag=''
25984 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 25985 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
25986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25987 (eval $ac_try) 2>&5
25988 ac_status=$?
25989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25990 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25992 (eval $ac_try) 2>&5
25993 ac_status=$?
25994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25995 test $ac_status = 0; }; }; then :
25996
23d56208
AX
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25998$as_echo "yes" >&6; }
0e3762ca 25999
23d56208 26000$as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
0e3762ca
CALP
26001
26002
26003else
26004 $as_echo "$as_me: failed program was:" >&5
26005sed 's/^/| /' conftest.$ac_ext >&5
26006
23d56208
AX
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26008$as_echo "no" >&6; }
0e3762ca
CALP
26009
26010
26011
26012fi
26013 rm -Rf build
26014
26015
26016
26017
23d56208
AX
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
26019$as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
0e3762ca
CALP
26020
26021
26022cat confdefs.h - <<_ACEOF >conftest.c
26023
26024
23d56208
AX
26025 #include <linux/fs.h>
26026 const char *follow_link(struct dentry *de, void **cookie)
26027 { return "symlink"; }
26028 static struct inode_operations iops __attribute__ ((unused)) = {
26029 .follow_link = follow_link,
0e3762ca
CALP
26030 };
26031
26032int
26033main (void)
26034{
26035
26036
26037 ;
26038 return 0;
26039}
26040
26041_ACEOF
26042
26043
23d56208
AX
26044
26045cat - <<_ACEOF >conftest.h
26046
26047_ACEOF
26048
26049
0e3762ca
CALP
26050 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26051 echo "obj-m := conftest.o" >build/Makefile
26052 modpost_flag=''
26053 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 26054 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
26055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26056 (eval $ac_try) 2>&5
26057 ac_status=$?
26058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26059 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26061 (eval $ac_try) 2>&5
26062 ac_status=$?
26063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26064 test $ac_status = 0; }; }; then :
26065
23d56208
AX
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26067$as_echo "no" >&6; }
0e3762ca
CALP
26068
26069else
26070 $as_echo "$as_me: failed program was:" >&5
26071sed 's/^/| /' conftest.$ac_ext >&5
26072
23d56208
AX
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26074$as_echo "yes" >&6; }
26075
26076$as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
26077
0e3762ca
CALP
26078
26079
26080
26081fi
26082 rm -Rf build
26083
26084
26085
26086
23d56208
AX
26087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
26088$as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
0e3762ca
CALP
26089
26090
26091cat confdefs.h - <<_ACEOF >conftest.c
26092
26093
26094 #include <linux/fs.h>
23d56208
AX
26095 void put_link(struct inode *ip, void *cookie) { return; }
26096 static struct inode_operations iops __attribute__ ((unused)) = {
26097 .put_link = put_link,
0e3762ca
CALP
26098 };
26099
26100int
26101main (void)
26102{
26103
26104
26105 ;
26106 return 0;
26107}
26108
26109_ACEOF
26110
26111
23d56208
AX
26112
26113cat - <<_ACEOF >conftest.h
26114
26115_ACEOF
26116
26117
0e3762ca
CALP
26118 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26119 echo "obj-m := conftest.o" >build/Makefile
26120 modpost_flag=''
26121 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 26122 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
26123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26124 (eval $ac_try) 2>&5
26125 ac_status=$?
26126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26127 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26129 (eval $ac_try) 2>&5
26130 ac_status=$?
26131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26132 test $ac_status = 0; }; }; then :
26133
23d56208
AX
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26135$as_echo "no" >&6; }
0e3762ca
CALP
26136
26137else
26138 $as_echo "$as_me: failed program was:" >&5
26139sed 's/^/| /' conftest.$ac_ext >&5
26140
23d56208
AX
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26142$as_echo "yes" >&6; }
26143
26144$as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
26145
0e3762ca
CALP
26146
26147
26148
26149fi
26150 rm -Rf build
26151
26152
26153
26154
23d56208
AX
26155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
26156$as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
0e3762ca
CALP
26157
26158
26159cat confdefs.h - <<_ACEOF >conftest.c
26160
26161
26162 #include <linux/fs.h>
23d56208
AX
26163 void truncate_range(struct inode *inode, loff_t start,
26164 loff_t end) { return; }
26165 static struct inode_operations iops __attribute__ ((unused)) = {
26166 .truncate_range = truncate_range,
0e3762ca
CALP
26167 };
26168
26169int
26170main (void)
26171{
26172
26173
26174 ;
26175 return 0;
26176}
26177
26178_ACEOF
26179
26180
23d56208
AX
26181
26182cat - <<_ACEOF >conftest.h
26183
26184_ACEOF
26185
26186
0e3762ca
CALP
26187 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26188 echo "obj-m := conftest.o" >build/Makefile
26189 modpost_flag=''
26190 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 26191 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
26192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26193 (eval $ac_try) 2>&5
26194 ac_status=$?
26195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26196 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26198 (eval $ac_try) 2>&5
26199 ac_status=$?
26200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26201 test $ac_status = 0; }; }; then :
26202
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26204$as_echo "yes" >&6; }
26205
23d56208 26206$as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
0e3762ca
CALP
26207
26208
26209else
26210 $as_echo "$as_me: failed program was:" >&5
26211sed 's/^/| /' conftest.$ac_ext >&5
26212
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26214$as_echo "no" >&6; }
26215
26216
26217
26218fi
26219 rm -Rf build
26220
26221
26222
26223
23d56208
AX
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
26225$as_echo_n "checking whether dops->d_automount() exists... " >&6; }
0e3762ca
CALP
26226
26227
26228cat confdefs.h - <<_ACEOF >conftest.c
26229
26230
23d56208
AX
26231 #include <linux/dcache.h>
26232 struct vfsmount *d_automount(struct path *p) { return NULL; }
26233 struct dentry_operations dops __attribute__ ((unused)) = {
26234 .d_automount = d_automount,
0e3762ca
CALP
26235 };
26236
26237int
26238main (void)
26239{
26240
26241
26242 ;
26243 return 0;
26244}
26245
26246_ACEOF
26247
26248
23d56208
AX
26249
26250cat - <<_ACEOF >conftest.h
26251
26252_ACEOF
26253
26254
0e3762ca
CALP
26255 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26256 echo "obj-m := conftest.o" >build/Makefile
26257 modpost_flag=''
26258 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 26259 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
26260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26261 (eval $ac_try) 2>&5
26262 ac_status=$?
26263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26264 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26266 (eval $ac_try) 2>&5
26267 ac_status=$?
26268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26269 test $ac_status = 0; }; }; then :
26270
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26272$as_echo "yes" >&6; }
26273
23d56208 26274$as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
0e3762ca
CALP
26275
26276
26277else
26278 $as_echo "$as_me: failed program was:" >&5
26279sed 's/^/| /' conftest.$ac_ext >&5
26280
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26282$as_echo "no" >&6; }
26283
26284
26285
26286fi
26287 rm -Rf build
26288
26289
26290
26291
23d56208
AX
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
26293$as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
0e3762ca
CALP
26294
26295
26296cat confdefs.h - <<_ACEOF >conftest.c
26297
26298
23d56208
AX
26299 #include <linux/exportfs.h>
26300 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
26301 struct inode *parent) { return 0; }
26302 static struct export_operations eops __attribute__ ((unused))={
26303 .encode_fh = encode_fh,
0e3762ca
CALP
26304 };
26305
26306int
26307main (void)
26308{
26309
26310
26311 ;
26312 return 0;
26313}
26314
26315_ACEOF
26316
26317
23d56208
AX
26318
26319cat - <<_ACEOF >conftest.h
26320
26321_ACEOF
26322
26323
0e3762ca
CALP
26324 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26325 echo "obj-m := conftest.o" >build/Makefile
26326 modpost_flag=''
26327 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 26328 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
26329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26330 (eval $ac_try) 2>&5
26331 ac_status=$?
26332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26333 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26335 (eval $ac_try) 2>&5
26336 ac_status=$?
26337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26338 test $ac_status = 0; }; }; then :
26339
26340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26341$as_echo "yes" >&6; }
26342
23d56208 26343$as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
0e3762ca
CALP
26344
26345
26346else
26347 $as_echo "$as_me: failed program was:" >&5
26348sed 's/^/| /' conftest.$ac_ext >&5
26349
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26351$as_echo "no" >&6; }
26352
26353
26354
26355fi
26356 rm -Rf build
26357
26358
26359
26360
23d56208
AX
26361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
26362$as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
0e3762ca
CALP
26363
26364
26365cat confdefs.h - <<_ACEOF >conftest.c
26366
26367
23d56208
AX
26368 #include <linux/exportfs.h>
26369 int commit_metadata(struct inode *inode) { return 0; }
26370 static struct export_operations eops __attribute__ ((unused))={
26371 .commit_metadata = commit_metadata,
0e3762ca
CALP
26372 };
26373
26374int
26375main (void)
26376{
26377
26378
26379 ;
26380 return 0;
26381}
26382
26383_ACEOF
26384
26385
23d56208
AX
26386
26387cat - <<_ACEOF >conftest.h
26388
26389_ACEOF
26390
26391
0e3762ca
CALP
26392 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26393 echo "obj-m := conftest.o" >build/Makefile
26394 modpost_flag=''
26395 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 26396 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
26397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26398 (eval $ac_try) 2>&5
26399 ac_status=$?
26400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26401 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26403 (eval $ac_try) 2>&5
26404 ac_status=$?
26405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26406 test $ac_status = 0; }; }; then :
26407
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26409$as_echo "yes" >&6; }
26410
23d56208 26411$as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
0e3762ca
CALP
26412
26413
26414else
26415 $as_echo "$as_me: failed program was:" >&5
26416sed 's/^/| /' conftest.$ac_ext >&5
26417
26418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26419$as_echo "no" >&6; }
26420
26421
26422
26423fi
26424 rm -Rf build
26425
26426
26427
23d56208
AX
26428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
26429$as_echo_n "checking whether clear_inode() is available... " >&6; }
0e3762ca
CALP
26430
26431
0e3762ca
CALP
26432
26433cat confdefs.h - <<_ACEOF >conftest.c
26434
26435
26436 #include <linux/fs.h>
26437
0e3762ca
CALP
26438int
26439main (void)
26440{
26441
23d56208 26442 clear_inode(NULL);
0e3762ca
CALP
26443
26444 ;
26445 return 0;
26446}
26447
26448_ACEOF
26449
26450
23d56208
AX
26451
26452cat - <<_ACEOF >conftest.h
26453
26454_ACEOF
26455
26456
0e3762ca
CALP
26457 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26458 echo "obj-m := conftest.o" >build/Makefile
26459 modpost_flag=''
26460 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 26461 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
26462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26463 (eval $ac_try) 2>&5
26464 ac_status=$?
26465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26466 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26468 (eval $ac_try) 2>&5
26469 ac_status=$?
26470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26471 test $ac_status = 0; }; }; then :
23d56208
AX
26472 rc=0
26473else
26474 $as_echo "$as_me: failed program was:" >&5
26475sed 's/^/| /' conftest.$ac_ext >&5
26476 rc=1
0e3762ca 26477
0e3762ca 26478
23d56208
AX
26479fi
26480 rm -Rf build
0e3762ca
CALP
26481
26482
23d56208 26483 if test $rc -ne 0; then :
0e3762ca
CALP
26484
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26486$as_echo "no" >&6; }
26487
23d56208
AX
26488 else
26489 if test "x$enable_linux_builtin" != xyes; then
0e3762ca 26490
23d56208
AX
26491 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
26492 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
26493 rc=$?
26494 if test $rc -ne 0; then
26495 export=0
26496 for file in fs/inode.c; do
26497 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
26498 "$LINUX/$file" 2>/dev/null
26499 rc=$?
26500 if test $rc -eq 0; then
26501 export=1
26502 break;
26503 fi
26504 done
26505 if test $export -eq 0; then :
26506 rc=1
26507 else :
26508 rc=0
26509 fi
26510 else :
26511 rc=0
26512 fi
0e3762ca 26513
23d56208
AX
26514 fi
26515 if test $rc -ne 0; then :
0e3762ca 26516
23d56208
AX
26517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26518$as_echo "no" >&6; }
0e3762ca 26519
23d56208 26520 else :
0e3762ca 26521
23d56208
AX
26522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26523$as_echo "yes" >&6; }
0e3762ca 26524
23d56208 26525$as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
0e3762ca
CALP
26526
26527
23d56208
AX
26528 fi
26529 fi
0e3762ca
CALP
26530
26531
23d56208
AX
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
26533$as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
0e3762ca 26534
0e3762ca 26535
23d56208
AX
26536
26537cat confdefs.h - <<_ACEOF >conftest.c
26538
26539
26540 #include <linux/fs.h>
0e3762ca
CALP
26541
26542int
26543main (void)
26544{
26545
23d56208 26546 insert_inode_locked(NULL);
0e3762ca
CALP
26547
26548 ;
26549 return 0;
26550}
26551
26552_ACEOF
26553
26554
23d56208
AX
26555
26556cat - <<_ACEOF >conftest.h
26557
26558_ACEOF
26559
26560
0e3762ca
CALP
26561 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26562 echo "obj-m := conftest.o" >build/Makefile
26563 modpost_flag=''
26564 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 26565 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
26566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26567 (eval $ac_try) 2>&5
26568 ac_status=$?
26569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26570 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26572 (eval $ac_try) 2>&5
26573 ac_status=$?
26574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26575 test $ac_status = 0; }; }; then :
23d56208
AX
26576 rc=0
26577else
26578 $as_echo "$as_me: failed program was:" >&5
26579sed 's/^/| /' conftest.$ac_ext >&5
26580 rc=1
0e3762ca 26581
0e3762ca 26582
23d56208
AX
26583fi
26584 rm -Rf build
26585
26586
26587 if test $rc -ne 0; then :
26588
26589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26590$as_echo "no" >&6; }
26591
26592 else
26593 if test "x$enable_linux_builtin" != xyes; then
0e3762ca 26594
23d56208
AX
26595 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
26596 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
26597 rc=$?
26598 if test $rc -ne 0; then
26599 export=0
26600 for file in fs/inode.c; do
26601 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
26602 "$LINUX/$file" 2>/dev/null
26603 rc=$?
26604 if test $rc -eq 0; then
26605 export=1
26606 break;
26607 fi
26608 done
26609 if test $export -eq 0; then :
26610 rc=1
26611 else :
26612 rc=0
26613 fi
26614 else :
26615 rc=0
26616 fi
0e3762ca 26617
23d56208
AX
26618 fi
26619 if test $rc -ne 0; then :
0e3762ca
CALP
26620
26621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26622$as_echo "no" >&6; }
26623
23d56208 26624 else :
0e3762ca 26625
23d56208
AX
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26627$as_echo "yes" >&6; }
0e3762ca 26628
23d56208 26629$as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
0e3762ca
CALP
26630
26631
23d56208
AX
26632 fi
26633 fi
0e3762ca
CALP
26634
26635
23d56208
AX
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
26637$as_echo_n "checking whether d_make_root() is available... " >&6; }
0e3762ca 26638
0e3762ca
CALP
26639
26640
26641cat confdefs.h - <<_ACEOF >conftest.c
26642
26643
23d56208 26644 #include <linux/dcache.h>
0e3762ca
CALP
26645
26646int
26647main (void)
26648{
26649
23d56208 26650 d_make_root(NULL);
0e3762ca
CALP
26651
26652 ;
26653 return 0;
26654}
26655
26656_ACEOF
26657
26658
23d56208
AX
26659
26660cat - <<_ACEOF >conftest.h
26661
26662_ACEOF
26663
26664
0e3762ca
CALP
26665 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26666 echo "obj-m := conftest.o" >build/Makefile
26667 modpost_flag=''
26668 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 26669 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
26670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26671 (eval $ac_try) 2>&5
26672 ac_status=$?
26673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26674 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26676 (eval $ac_try) 2>&5
26677 ac_status=$?
26678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26679 test $ac_status = 0; }; }; then :
23d56208
AX
26680 rc=0
26681else
26682 $as_echo "$as_me: failed program was:" >&5
26683sed 's/^/| /' conftest.$ac_ext >&5
26684 rc=1
0e3762ca 26685
0e3762ca 26686
23d56208
AX
26687fi
26688 rm -Rf build
0e3762ca
CALP
26689
26690
23d56208 26691 if test $rc -ne 0; then :
0e3762ca
CALP
26692
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26694$as_echo "no" >&6; }
26695
23d56208
AX
26696 else
26697 if test "x$enable_linux_builtin" != xyes; then
26698
26699 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
26700 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
26701 rc=$?
26702 if test $rc -ne 0; then
26703 export=0
26704 for file in fs/dcache.c; do
26705 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
26706 "$LINUX/$file" 2>/dev/null
26707 rc=$?
26708 if test $rc -eq 0; then
26709 export=1
26710 break;
26711 fi
26712 done
26713 if test $export -eq 0; then :
26714 rc=1
26715 else :
26716 rc=0
26717 fi
26718 else :
26719 rc=0
26720 fi
26721
26722 fi
26723 if test $rc -ne 0; then :
0e3762ca 26724
23d56208
AX
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26726$as_echo "no" >&6; }
0e3762ca 26727
23d56208 26728 else :
0e3762ca 26729
23d56208
AX
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26731$as_echo "yes" >&6; }
0e3762ca 26732
23d56208 26733$as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
0e3762ca
CALP
26734
26735
23d56208
AX
26736 fi
26737 fi
0e3762ca
CALP
26738
26739
23d56208
AX
26740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
26741$as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
0e3762ca
CALP
26742
26743
0e3762ca 26744
23d56208 26745cat confdefs.h - <<_ACEOF >conftest.c
0e3762ca 26746
23d56208
AX
26747
26748 #include <linux/dcache.h>
0e3762ca
CALP
26749
26750int
26751main (void)
26752{
26753
23d56208 26754 d_obtain_alias(NULL);
0e3762ca
CALP
26755
26756 ;
26757 return 0;
26758}
26759
26760_ACEOF
26761
26762
23d56208
AX
26763
26764cat - <<_ACEOF >conftest.h
26765
26766_ACEOF
26767
26768
0e3762ca
CALP
26769 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26770 echo "obj-m := conftest.o" >build/Makefile
26771 modpost_flag=''
26772 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 26773 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26780 (eval $ac_try) 2>&5
26781 ac_status=$?
26782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26783 test $ac_status = 0; }; }; then :
23d56208
AX
26784 rc=0
26785else
26786 $as_echo "$as_me: failed program was:" >&5
26787sed 's/^/| /' conftest.$ac_ext >&5
26788 rc=1
0e3762ca 26789
0e3762ca 26790
23d56208
AX
26791fi
26792 rm -Rf build
0e3762ca
CALP
26793
26794
23d56208 26795 if test $rc -ne 0; then :
0e3762ca
CALP
26796
26797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26798$as_echo "no" >&6; }
26799
23d56208
AX
26800 else
26801 if test "x$enable_linux_builtin" != xyes; then
26802
26803 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
26804 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
26805 rc=$?
26806 if test $rc -ne 0; then
26807 export=0
26808 for file in fs/dcache.c; do
26809 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
26810 "$LINUX/$file" 2>/dev/null
26811 rc=$?
26812 if test $rc -eq 0; then
26813 export=1
26814 break;
26815 fi
26816 done
26817 if test $export -eq 0; then :
26818 rc=1
26819 else :
26820 rc=0
26821 fi
26822 else :
26823 rc=0
26824 fi
0e3762ca 26825
23d56208
AX
26826 fi
26827 if test $rc -ne 0; then :
0e3762ca 26828
23d56208
AX
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26830$as_echo "no" >&6; }
0e3762ca 26831
23d56208 26832 else :
0e3762ca 26833
23d56208
AX
26834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26835$as_echo "yes" >&6; }
0e3762ca 26836
23d56208 26837$as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
0e3762ca 26838
0e3762ca 26839
23d56208
AX
26840 fi
26841 fi
0e3762ca 26842
0e3762ca 26843
23d56208
AX
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
26845$as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
0e3762ca 26846
0e3762ca 26847
0e3762ca 26848
23d56208
AX
26849cat confdefs.h - <<_ACEOF >conftest.c
26850
26851
26852 #include <linux/dcache.h>
0e3762ca
CALP
26853
26854int
26855main (void)
26856{
26857
23d56208
AX
26858 struct inode *ip = NULL;
26859 d_prune_aliases(ip);
0e3762ca
CALP
26860
26861 ;
26862 return 0;
26863}
26864
26865_ACEOF
26866
26867
23d56208
AX
26868
26869cat - <<_ACEOF >conftest.h
26870
26871_ACEOF
26872
26873
0e3762ca
CALP
26874 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26875 echo "obj-m := conftest.o" >build/Makefile
26876 modpost_flag=''
26877 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 26878 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
26879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26880 (eval $ac_try) 2>&5
26881 ac_status=$?
26882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26883 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26885 (eval $ac_try) 2>&5
26886 ac_status=$?
26887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26888 test $ac_status = 0; }; }; then :
23d56208
AX
26889 rc=0
26890else
26891 $as_echo "$as_me: failed program was:" >&5
26892sed 's/^/| /' conftest.$ac_ext >&5
26893 rc=1
0e3762ca 26894
0e3762ca 26895
23d56208
AX
26896fi
26897 rm -Rf build
0e3762ca
CALP
26898
26899
23d56208
AX
26900 if test $rc -ne 0; then :
26901
26902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26903$as_echo "no" >&6; }
26904
26905 else
26906 if test "x$enable_linux_builtin" != xyes; then
26907
26908 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
26909 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
26910 rc=$?
26911 if test $rc -ne 0; then
26912 export=0
26913 for file in fs/dcache.c; do
26914 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
26915 "$LINUX/$file" 2>/dev/null
26916 rc=$?
26917 if test $rc -eq 0; then
26918 export=1
26919 break;
26920 fi
26921 done
26922 if test $export -eq 0; then :
26923 rc=1
26924 else :
26925 rc=0
26926 fi
26927 else :
26928 rc=0
26929 fi
26930
26931 fi
26932 if test $rc -ne 0; then :
0e3762ca
CALP
26933
26934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26935$as_echo "no" >&6; }
26936
23d56208 26937 else :
0e3762ca 26938
23d56208
AX
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26940$as_echo "yes" >&6; }
0e3762ca 26941
23d56208 26942$as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
0e3762ca
CALP
26943
26944
23d56208
AX
26945 fi
26946 fi
0e3762ca
CALP
26947
26948
23d56208
AX
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
26950$as_echo_n "checking whether d_set_d_op() is available... " >&6; }
26951
0e3762ca
CALP
26952
26953
26954cat confdefs.h - <<_ACEOF >conftest.c
26955
26956
23d56208 26957 #include <linux/dcache.h>
0e3762ca
CALP
26958
26959int
26960main (void)
26961{
26962
23d56208 26963 d_set_d_op(NULL, NULL);
0e3762ca
CALP
26964
26965 ;
26966 return 0;
26967}
26968
26969_ACEOF
26970
26971
23d56208
AX
26972
26973cat - <<_ACEOF >conftest.h
26974
26975_ACEOF
26976
26977
0e3762ca
CALP
26978 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26979 echo "obj-m := conftest.o" >build/Makefile
26980 modpost_flag=''
26981 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 26982 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
26983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26984 (eval $ac_try) 2>&5
26985 ac_status=$?
26986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26987 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26989 (eval $ac_try) 2>&5
26990 ac_status=$?
26991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26992 test $ac_status = 0; }; }; then :
23d56208
AX
26993 rc=0
26994else
26995 $as_echo "$as_me: failed program was:" >&5
26996sed 's/^/| /' conftest.$ac_ext >&5
26997 rc=1
0e3762ca 26998
0e3762ca 26999
23d56208
AX
27000fi
27001 rm -Rf build
0e3762ca
CALP
27002
27003
23d56208
AX
27004 if test $rc -ne 0; then :
27005
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27007$as_echo "no" >&6; }
27008
27009 else
27010 if test "x$enable_linux_builtin" != xyes; then
27011
27012 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
27013 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
27014 rc=$?
27015 if test $rc -ne 0; then
27016 export=0
27017 for file in fs/dcache.c; do
27018 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
27019 "$LINUX/$file" 2>/dev/null
27020 rc=$?
27021 if test $rc -eq 0; then
27022 export=1
27023 break;
27024 fi
27025 done
27026 if test $export -eq 0; then :
27027 rc=1
27028 else :
27029 rc=0
27030 fi
27031 else :
27032 rc=0
27033 fi
27034
27035 fi
27036 if test $rc -ne 0; then :
0e3762ca
CALP
27037
27038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27039$as_echo "no" >&6; }
27040
23d56208
AX
27041 else :
27042
27043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27044$as_echo "yes" >&6; }
0e3762ca 27045
23d56208 27046$as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
0e3762ca 27047
0e3762ca 27048
23d56208
AX
27049 fi
27050 fi
0e3762ca
CALP
27051
27052
27053
23d56208
AX
27054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
27055$as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
0e3762ca
CALP
27056
27057
27058cat confdefs.h - <<_ACEOF >conftest.c
27059
27060
27061 #include <linux/dcache.h>
23d56208
AX
27062
27063 int revalidate (struct dentry *dentry,
27064 struct nameidata *nidata) { return 0; }
27065
27066 static const struct dentry_operations
27067 dops __attribute__ ((unused)) = {
27068 .d_revalidate = revalidate,
0e3762ca
CALP
27069 };
27070
27071int
27072main (void)
27073{
27074
27075
27076 ;
27077 return 0;
27078}
27079
27080_ACEOF
27081
27082
23d56208
AX
27083
27084cat - <<_ACEOF >conftest.h
27085
27086_ACEOF
27087
27088
0e3762ca
CALP
27089 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27090 echo "obj-m := conftest.o" >build/Makefile
27091 modpost_flag=''
27092 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 27093 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
27094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27095 (eval $ac_try) 2>&5
27096 ac_status=$?
27097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27098 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27100 (eval $ac_try) 2>&5
27101 ac_status=$?
27102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27103 test $ac_status = 0; }; }; then :
27104
27105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27106$as_echo "yes" >&6; }
27107
23d56208 27108$as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
0e3762ca
CALP
27109
27110
27111else
27112 $as_echo "$as_me: failed program was:" >&5
27113sed 's/^/| /' conftest.$ac_ext >&5
27114
27115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27116$as_echo "no" >&6; }
27117
27118
27119
27120fi
27121 rm -Rf build
27122
27123
27124
27125
23d56208
AX
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
27127$as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
0e3762ca
CALP
27128
27129
27130cat confdefs.h - <<_ACEOF >conftest.c
27131
27132
23d56208
AX
27133 #include <linux/dcache.h>
27134
27135 const struct dentry_operations test_d_op = {
27136 .d_revalidate = NULL,
0e3762ca
CALP
27137 };
27138
27139int
27140main (void)
27141{
27142
23d56208
AX
27143 struct dentry d __attribute__ ((unused));
27144
27145 d.d_op = &test_d_op;
0e3762ca
CALP
27146
27147 ;
27148 return 0;
27149}
27150
27151_ACEOF
27152
27153
23d56208
AX
27154
27155cat - <<_ACEOF >conftest.h
27156
27157_ACEOF
27158
27159
0e3762ca
CALP
27160 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27161 echo "obj-m := conftest.o" >build/Makefile
27162 modpost_flag=''
27163 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 27164 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
27165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27166 (eval $ac_try) 2>&5
27167 ac_status=$?
27168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27169 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27171 (eval $ac_try) 2>&5
27172 ac_status=$?
27173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27174 test $ac_status = 0; }; }; then :
27175
27176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27177$as_echo "yes" >&6; }
27178
23d56208 27179$as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
0e3762ca
CALP
27180
27181
27182else
27183 $as_echo "$as_me: failed program was:" >&5
27184sed 's/^/| /' conftest.$ac_ext >&5
27185
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27187$as_echo "no" >&6; }
27188
27189
27190
27191fi
27192 rm -Rf build
27193
27194
27195
23d56208
AX
27196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
27197$as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
0e3762ca 27198
0e3762ca
CALP
27199
27200
27201cat confdefs.h - <<_ACEOF >conftest.c
27202
27203
23d56208 27204 #include <linux/fs.h>
0e3762ca
CALP
27205
27206int
27207main (void)
27208{
27209
23d56208 27210 check_disk_size_change(NULL, NULL);
0e3762ca
CALP
27211
27212 ;
27213 return 0;
27214}
27215
27216_ACEOF
27217
27218
23d56208
AX
27219
27220cat - <<_ACEOF >conftest.h
27221
27222_ACEOF
27223
27224
0e3762ca
CALP
27225 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27226 echo "obj-m := conftest.o" >build/Makefile
27227 modpost_flag=''
27228 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 27229 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
27230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27231 (eval $ac_try) 2>&5
27232 ac_status=$?
27233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27234 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27236 (eval $ac_try) 2>&5
27237 ac_status=$?
27238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27239 test $ac_status = 0; }; }; then :
23d56208
AX
27240 rc=0
27241else
27242 $as_echo "$as_me: failed program was:" >&5
27243sed 's/^/| /' conftest.$ac_ext >&5
27244 rc=1
0e3762ca 27245
0e3762ca 27246
23d56208
AX
27247fi
27248 rm -Rf build
0e3762ca
CALP
27249
27250
23d56208 27251 if test $rc -ne 0; then :
0e3762ca
CALP
27252
27253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27254$as_echo "no" >&6; }
27255
23d56208
AX
27256 else
27257 if test "x$enable_linux_builtin" != xyes; then
27258
27259 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
27260 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
27261 rc=$?
27262 if test $rc -ne 0; then
27263 export=0
27264 for file in fs/block_dev.c; do
27265 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
27266 "$LINUX/$file" 2>/dev/null
27267 rc=$?
27268 if test $rc -eq 0; then
27269 export=1
27270 break;
27271 fi
27272 done
27273 if test $export -eq 0; then :
27274 rc=1
27275 else :
27276 rc=0
27277 fi
27278 else :
27279 rc=0
27280 fi
0e3762ca 27281
23d56208
AX
27282 fi
27283 if test $rc -ne 0; then :
0e3762ca 27284
23d56208
AX
27285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27286$as_echo "no" >&6; }
27287
27288 else :
0e3762ca 27289
23d56208
AX
27290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27291$as_echo "yes" >&6; }
0e3762ca 27292
23d56208 27293$as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
0e3762ca 27294
23d56208
AX
27295
27296 fi
27297 fi
27298
27299
27300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
27301$as_echo_n "checking whether truncate_setsize() is available... " >&6; }
0e3762ca
CALP
27302
27303
27304
27305cat confdefs.h - <<_ACEOF >conftest.c
27306
27307
23d56208 27308 #include <linux/mm.h>
0e3762ca
CALP
27309
27310int
27311main (void)
27312{
27313
23d56208 27314 truncate_setsize(NULL, 0);
0e3762ca
CALP
27315
27316 ;
27317 return 0;
27318}
27319
27320_ACEOF
27321
27322
23d56208
AX
27323
27324cat - <<_ACEOF >conftest.h
27325
27326_ACEOF
27327
27328
0e3762ca
CALP
27329 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27330 echo "obj-m := conftest.o" >build/Makefile
27331 modpost_flag=''
27332 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 27333 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
27334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27335 (eval $ac_try) 2>&5
27336 ac_status=$?
27337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27338 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27340 (eval $ac_try) 2>&5
27341 ac_status=$?
27342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27343 test $ac_status = 0; }; }; then :
27344 rc=0
27345else
27346 $as_echo "$as_me: failed program was:" >&5
27347sed 's/^/| /' conftest.$ac_ext >&5
27348 rc=1
27349
27350
27351fi
27352 rm -Rf build
27353
27354
27355 if test $rc -ne 0; then :
27356
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27358$as_echo "no" >&6; }
27359
27360 else
27361 if test "x$enable_linux_builtin" != xyes; then
27362
23d56208 27363 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
0e3762ca
CALP
27364 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
27365 rc=$?
27366 if test $rc -ne 0; then
27367 export=0
23d56208
AX
27368 for file in mm/truncate.c; do
27369 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
0e3762ca
CALP
27370 "$LINUX/$file" 2>/dev/null
27371 rc=$?
27372 if test $rc -eq 0; then
27373 export=1
27374 break;
27375 fi
27376 done
27377 if test $export -eq 0; then :
27378 rc=1
27379 else :
27380 rc=0
27381 fi
27382 else :
27383 rc=0
27384 fi
27385
23d56208
AX
27386 fi
27387 if test $rc -ne 0; then :
27388
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27390$as_echo "no" >&6; }
27391
27392 else :
27393
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27395$as_echo "yes" >&6; }
27396
27397$as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
27398
27399
27400 fi
27401 fi
27402
27403
27404
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
27406$as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
27407
27408
27409cat confdefs.h - <<_ACEOF >conftest.c
27410
27411
27412 #include <linux/security.h>
27413
27414int
27415main (void)
27416{
27417
27418 struct inode *ip __attribute__ ((unused)) = NULL;
27419 struct inode *dip __attribute__ ((unused)) = NULL;
27420 const struct qstr *str __attribute__ ((unused)) = NULL;
27421 char *name __attribute__ ((unused)) = NULL;
27422 void *value __attribute__ ((unused)) = NULL;
27423 size_t len __attribute__ ((unused)) = 0;
27424
27425 security_inode_init_security(ip, dip, str, &name, &value, &len);
27426
27427 ;
27428 return 0;
27429}
27430
27431_ACEOF
27432
27433
27434
27435cat - <<_ACEOF >conftest.h
27436
27437_ACEOF
27438
27439
27440 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27441 echo "obj-m := conftest.o" >build/Makefile
27442 modpost_flag=''
27443 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27444 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27446 (eval $ac_try) 2>&5
27447 ac_status=$?
27448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27449 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27451 (eval $ac_try) 2>&5
27452 ac_status=$?
27453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27454 test $ac_status = 0; }; }; then :
27455
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27457$as_echo "yes" >&6; }
27458
27459$as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
27460
27461
27462else
27463 $as_echo "$as_me: failed program was:" >&5
27464sed 's/^/| /' conftest.$ac_ext >&5
0e3762ca
CALP
27465
27466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27467$as_echo "no" >&6; }
27468
0e3762ca 27469
0e3762ca 27470
23d56208
AX
27471fi
27472 rm -Rf build
0e3762ca 27473
0e3762ca
CALP
27474
27475
0e3762ca 27476
23d56208
AX
27477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
27478$as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
0e3762ca
CALP
27479
27480
27481cat confdefs.h - <<_ACEOF >conftest.c
27482
27483
23d56208 27484 #include <linux/security.h>
0e3762ca
CALP
27485
27486int
27487main (void)
27488{
27489
23d56208
AX
27490 struct inode *ip __attribute__ ((unused)) = NULL;
27491 struct inode *dip __attribute__ ((unused)) = NULL;
27492 const struct qstr *str __attribute__ ((unused)) = NULL;
27493 initxattrs func __attribute__ ((unused)) = NULL;
27494
27495 security_inode_init_security(ip, dip, str, func, NULL);
0e3762ca
CALP
27496
27497 ;
27498 return 0;
27499}
27500
27501_ACEOF
27502
27503
23d56208
AX
27504
27505cat - <<_ACEOF >conftest.h
27506
27507_ACEOF
27508
27509
0e3762ca
CALP
27510 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27511 echo "obj-m := conftest.o" >build/Makefile
27512 modpost_flag=''
27513 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 27514 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
27515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27516 (eval $ac_try) 2>&5
27517 ac_status=$?
27518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27519 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27521 (eval $ac_try) 2>&5
27522 ac_status=$?
27523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27524 test $ac_status = 0; }; }; then :
0e3762ca 27525
23d56208
AX
27526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27527$as_echo "yes" >&6; }
0e3762ca 27528
23d56208 27529$as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
0e3762ca 27530
0e3762ca 27531
23d56208
AX
27532else
27533 $as_echo "$as_me: failed program was:" >&5
27534sed 's/^/| /' conftest.$ac_ext >&5
0e3762ca
CALP
27535
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27537$as_echo "no" >&6; }
27538
0e3762ca 27539
0e3762ca 27540
23d56208
AX
27541fi
27542 rm -Rf build
0e3762ca 27543
0e3762ca
CALP
27544
27545
23d56208
AX
27546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
27547$as_echo_n "checking whether mount_nodev() is available... " >&6; }
0e3762ca
CALP
27548
27549
27550
27551cat confdefs.h - <<_ACEOF >conftest.c
27552
27553
23d56208 27554 #include <linux/fs.h>
0e3762ca
CALP
27555
27556int
27557main (void)
27558{
27559
23d56208 27560 mount_nodev(NULL, 0, NULL, NULL);
0e3762ca
CALP
27561
27562 ;
27563 return 0;
27564}
27565
27566_ACEOF
27567
27568
23d56208
AX
27569
27570cat - <<_ACEOF >conftest.h
27571
27572_ACEOF
27573
27574
0e3762ca
CALP
27575 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27576 echo "obj-m := conftest.o" >build/Makefile
27577 modpost_flag=''
27578 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 27579 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
27580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27581 (eval $ac_try) 2>&5
27582 ac_status=$?
27583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27584 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27586 (eval $ac_try) 2>&5
27587 ac_status=$?
27588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27589 test $ac_status = 0; }; }; then :
27590 rc=0
27591else
27592 $as_echo "$as_me: failed program was:" >&5
27593sed 's/^/| /' conftest.$ac_ext >&5
27594 rc=1
27595
27596
27597fi
27598 rm -Rf build
27599
27600
27601 if test $rc -ne 0; then :
27602
27603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27604$as_echo "no" >&6; }
27605
27606 else
27607 if test "x$enable_linux_builtin" != xyes; then
27608
23d56208 27609 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
0e3762ca
CALP
27610 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
27611 rc=$?
27612 if test $rc -ne 0; then
27613 export=0
23d56208
AX
27614 for file in fs/super.c; do
27615 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
0e3762ca
CALP
27616 "$LINUX/$file" 2>/dev/null
27617 rc=$?
27618 if test $rc -eq 0; then
27619 export=1
27620 break;
27621 fi
27622 done
27623 if test $export -eq 0; then :
27624 rc=1
27625 else :
27626 rc=0
27627 fi
27628 else :
27629 rc=0
27630 fi
27631
27632 fi
27633 if test $rc -ne 0; then :
27634
27635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27636$as_echo "no" >&6; }
27637
27638 else :
27639
27640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27641$as_echo "yes" >&6; }
27642
23d56208 27643$as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
0e3762ca
CALP
27644
27645
27646 fi
27647 fi
27648
27649
0e3762ca 27650
23d56208
AX
27651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
27652$as_echo_n "checking whether super_block has s_shrink... " >&6; }
0e3762ca
CALP
27653
27654
27655cat confdefs.h - <<_ACEOF >conftest.c
27656
27657
23d56208
AX
27658 #include <linux/fs.h>
27659
27660 int shrink(struct shrinker *s, struct shrink_control *sc)
27661 { return 0; }
27662
27663 static const struct super_block
27664 sb __attribute__ ((unused)) = {
27665 .s_shrink.shrink = shrink,
27666 .s_shrink.seeks = DEFAULT_SEEKS,
27667 .s_shrink.batch = 0,
27668 };
0e3762ca
CALP
27669
27670int
27671main (void)
27672{
27673
0e3762ca
CALP
27674
27675 ;
27676 return 0;
27677}
27678
27679_ACEOF
27680
27681
23d56208
AX
27682
27683cat - <<_ACEOF >conftest.h
27684
27685_ACEOF
27686
27687
0e3762ca
CALP
27688 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27689 echo "obj-m := conftest.o" >build/Makefile
27690 modpost_flag=''
27691 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 27692 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
27693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27694 (eval $ac_try) 2>&5
27695 ac_status=$?
27696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27697 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27699 (eval $ac_try) 2>&5
27700 ac_status=$?
27701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27702 test $ac_status = 0; }; }; then :
0e3762ca 27703
23d56208
AX
27704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27705$as_echo "yes" >&6; }
0e3762ca 27706
23d56208 27707$as_echo "#define HAVE_SHRINK 1" >>confdefs.h
0e3762ca 27708
0e3762ca 27709
0e3762ca 27710
23d56208
AX
27711else
27712 $as_echo "$as_me: failed program was:" >&5
27713sed 's/^/| /' conftest.$ac_ext >&5
0e3762ca
CALP
27714
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27716$as_echo "no" >&6; }
27717
0e3762ca 27718
0e3762ca 27719
23d56208
AX
27720fi
27721 rm -Rf build
0e3762ca 27722
0e3762ca
CALP
27723
27724
0e3762ca 27725
23d56208
AX
27726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
27727$as_echo_n "checking whether shrink_control has nid... " >&6; }
0e3762ca
CALP
27728
27729
27730cat confdefs.h - <<_ACEOF >conftest.c
27731
27732
23d56208 27733 #include <linux/fs.h>
0e3762ca
CALP
27734
27735int
27736main (void)
27737{
27738
23d56208
AX
27739 struct shrink_control sc __attribute__ ((unused));
27740 unsigned long scnidsize __attribute__ ((unused)) =
27741 sizeof(sc.nid);
0e3762ca
CALP
27742
27743 ;
27744 return 0;
27745}
27746
27747_ACEOF
27748
27749
23d56208
AX
27750
27751cat - <<_ACEOF >conftest.h
27752
27753_ACEOF
27754
27755
0e3762ca
CALP
27756 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27757 echo "obj-m := conftest.o" >build/Makefile
27758 modpost_flag=''
27759 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 27760 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
27761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27762 (eval $ac_try) 2>&5
27763 ac_status=$?
27764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27765 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27767 (eval $ac_try) 2>&5
27768 ac_status=$?
27769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27770 test $ac_status = 0; }; }; then :
23d56208
AX
27771
27772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27773$as_echo "yes" >&6; }
27774
27775$as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
27776
27777
0e3762ca
CALP
27778else
27779 $as_echo "$as_me: failed program was:" >&5
27780sed 's/^/| /' conftest.$ac_ext >&5
23d56208
AX
27781
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27783$as_echo "no" >&6; }
27784
0e3762ca
CALP
27785
27786
27787fi
27788 rm -Rf build
27789
27790
0e3762ca 27791
0e3762ca 27792
23d56208
AX
27793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
27794$as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
0e3762ca 27795
0e3762ca 27796
23d56208
AX
27797cat confdefs.h - <<_ACEOF >conftest.c
27798
27799
27800 #include <linux/fs.h>
27801
27802int
27803main (void)
27804{
27805
27806 struct super_block sb __attribute__ ((unused));
27807
27808 INIT_LIST_HEAD(&sb.s_instances);
27809
27810 ;
27811 return 0;
27812}
0e3762ca 27813
23d56208 27814_ACEOF
0e3762ca 27815
23d56208
AX
27816
27817
27818cat - <<_ACEOF >conftest.h
27819
27820_ACEOF
27821
27822
27823 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27824 echo "obj-m := conftest.o" >build/Makefile
27825 modpost_flag=''
27826 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27827 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27829 (eval $ac_try) 2>&5
27830 ac_status=$?
27831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27832 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27834 (eval $ac_try) 2>&5
27835 ac_status=$?
27836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27837 test $ac_status = 0; }; }; then :
0e3762ca
CALP
27838
27839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27840$as_echo "yes" >&6; }
27841
23d56208 27842$as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
0e3762ca
CALP
27843
27844
23d56208
AX
27845else
27846 $as_echo "$as_me: failed program was:" >&5
27847sed 's/^/| /' conftest.$ac_ext >&5
0e3762ca 27848
23d56208
AX
27849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27850$as_echo "no" >&6; }
0e3762ca
CALP
27851
27852
0e3762ca 27853
23d56208
AX
27854fi
27855 rm -Rf build
0e3762ca 27856
0e3762ca
CALP
27857
27858
23d56208
AX
27859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
27860$as_echo_n "checking whether super_block has s_d_op... " >&6; }
0e3762ca 27861
0e3762ca 27862
23d56208
AX
27863cat confdefs.h - <<_ACEOF >conftest.c
27864
27865
27866 #include <linux/fs.h>
0e3762ca
CALP
27867
27868int
27869main (void)
27870{
27871
23d56208
AX
27872 struct super_block sb __attribute__ ((unused));
27873 sb.s_d_op = NULL;
0e3762ca
CALP
27874
27875 ;
27876 return 0;
27877}
27878
27879_ACEOF
27880
27881
23d56208
AX
27882
27883cat - <<_ACEOF >conftest.h
27884
27885_ACEOF
27886
27887
0e3762ca
CALP
27888 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27889 echo "obj-m := conftest.o" >build/Makefile
27890 modpost_flag=''
27891 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 27892 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
27893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27894 (eval $ac_try) 2>&5
27895 ac_status=$?
27896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27897 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27899 (eval $ac_try) 2>&5
27900 ac_status=$?
27901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27902 test $ac_status = 0; }; }; then :
27903
27904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27905$as_echo "yes" >&6; }
27906
23d56208 27907$as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
0e3762ca
CALP
27908
27909
27910else
27911 $as_echo "$as_me: failed program was:" >&5
27912sed 's/^/| /' conftest.$ac_ext >&5
27913
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27915$as_echo "no" >&6; }
27916
27917
27918
27919fi
27920 rm -Rf build
27921
27922
27923
27924
23d56208
AX
27925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
27926$as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
0e3762ca
CALP
27927
27928
0e3762ca 27929
23d56208 27930cat confdefs.h - <<_ACEOF >conftest.c
0e3762ca 27931
0e3762ca 27932
23d56208
AX
27933 #include <linux/backing-dev.h>
27934 struct backing_dev_info bdi;
0e3762ca
CALP
27935
27936int
27937main (void)
27938{
27939
23d56208
AX
27940 char *name = "bdi";
27941 int error __attribute__((unused)) =
27942 bdi_setup_and_register(&bdi, name);
0e3762ca
CALP
27943
27944 ;
27945 return 0;
27946}
27947
27948_ACEOF
27949
27950
23d56208
AX
27951
27952cat - <<_ACEOF >conftest.h
27953
27954_ACEOF
27955
27956
0e3762ca
CALP
27957 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27958 echo "obj-m := conftest.o" >build/Makefile
27959 modpost_flag=''
27960 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 27961 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
27962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27963 (eval $ac_try) 2>&5
27964 ac_status=$?
27965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27966 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27968 (eval $ac_try) 2>&5
27969 ac_status=$?
27970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27971 test $ac_status = 0; }; }; then :
23d56208 27972 rc=0
0e3762ca
CALP
27973else
27974 $as_echo "$as_me: failed program was:" >&5
27975sed 's/^/| /' conftest.$ac_ext >&5
23d56208 27976 rc=1
0e3762ca
CALP
27977
27978
27979fi
27980 rm -Rf build
27981
27982
23d56208 27983 if test $rc -ne 0; then :
0e3762ca 27984
23d56208
AX
27985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27986$as_echo "no" >&6; }
27987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
27988$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
0e3762ca
CALP
27989
27990
27991
27992cat confdefs.h - <<_ACEOF >conftest.c
27993
27994
23d56208
AX
27995 #include <linux/backing-dev.h>
27996 struct backing_dev_info bdi;
0e3762ca
CALP
27997
27998int
27999main (void)
28000{
28001
23d56208
AX
28002 char *name = "bdi";
28003 unsigned int cap = BDI_CAP_MAP_COPY;
28004 int error __attribute__((unused)) =
28005 bdi_setup_and_register(&bdi, name, cap);
0e3762ca
CALP
28006
28007 ;
28008 return 0;
28009}
28010
28011_ACEOF
28012
28013
23d56208
AX
28014
28015cat - <<_ACEOF >conftest.h
28016
28017_ACEOF
28018
28019
0e3762ca
CALP
28020 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28021 echo "obj-m := conftest.o" >build/Makefile
28022 modpost_flag=''
28023 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 28024 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
28025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28026 (eval $ac_try) 2>&5
28027 ac_status=$?
28028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28029 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28031 (eval $ac_try) 2>&5
28032 ac_status=$?
28033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28034 test $ac_status = 0; }; }; then :
28035 rc=0
28036else
28037 $as_echo "$as_me: failed program was:" >&5
28038sed 's/^/| /' conftest.$ac_ext >&5
28039 rc=1
28040
28041
28042fi
28043 rm -Rf build
28044
28045
28046 if test $rc -ne 0; then :
28047
23d56208 28048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0e3762ca
CALP
28049$as_echo "no" >&6; }
28050
28051 else
28052 if test "x$enable_linux_builtin" != xyes; then
28053
23d56208 28054 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
0e3762ca
CALP
28055 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28056 rc=$?
28057 if test $rc -ne 0; then
28058 export=0
23d56208
AX
28059 for file in mm/backing-dev.c; do
28060 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
0e3762ca
CALP
28061 "$LINUX/$file" 2>/dev/null
28062 rc=$?
28063 if test $rc -eq 0; then
28064 export=1
28065 break;
28066 fi
28067 done
28068 if test $export -eq 0; then :
28069 rc=1
28070 else :
28071 rc=0
28072 fi
28073 else :
28074 rc=0
28075 fi
28076
28077 fi
28078 if test $rc -ne 0; then :
28079
23d56208 28080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0e3762ca
CALP
28081$as_echo "no" >&6; }
28082
28083 else :
28084
23d56208 28085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
0e3762ca
CALP
28086$as_echo "yes" >&6; }
28087
23d56208 28088$as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
0e3762ca
CALP
28089
28090
28091 fi
28092 fi
28093
28094
23d56208
AX
28095 else
28096 if test "x$enable_linux_builtin" != xyes; then
28097
28098 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
28099 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28100 rc=$?
28101 if test $rc -ne 0; then
28102 export=0
28103 for file in mm/backing-dev.c; do
28104 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
28105 "$LINUX/$file" 2>/dev/null
28106 rc=$?
28107 if test $rc -eq 0; then
28108 export=1
28109 break;
28110 fi
28111 done
28112 if test $export -eq 0; then :
28113 rc=1
28114 else :
28115 rc=0
28116 fi
28117 else :
28118 rc=0
28119 fi
28120
28121 fi
28122 if test $rc -ne 0; then :
28123
28124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28125$as_echo "no" >&6; }
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
28127$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
0e3762ca
CALP
28128
28129
28130
28131cat confdefs.h - <<_ACEOF >conftest.c
28132
28133
23d56208
AX
28134 #include <linux/backing-dev.h>
28135 struct backing_dev_info bdi;
0e3762ca
CALP
28136
28137int
28138main (void)
28139{
28140
23d56208
AX
28141 char *name = "bdi";
28142 unsigned int cap = BDI_CAP_MAP_COPY;
28143 int error __attribute__((unused)) =
28144 bdi_setup_and_register(&bdi, name, cap);
0e3762ca
CALP
28145
28146 ;
28147 return 0;
28148}
28149
28150_ACEOF
28151
28152
23d56208
AX
28153
28154cat - <<_ACEOF >conftest.h
28155
28156_ACEOF
28157
28158
0e3762ca
CALP
28159 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28160 echo "obj-m := conftest.o" >build/Makefile
28161 modpost_flag=''
28162 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 28163 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
28164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28165 (eval $ac_try) 2>&5
28166 ac_status=$?
28167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28168 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28170 (eval $ac_try) 2>&5
28171 ac_status=$?
28172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28173 test $ac_status = 0; }; }; then :
28174 rc=0
28175else
28176 $as_echo "$as_me: failed program was:" >&5
28177sed 's/^/| /' conftest.$ac_ext >&5
28178 rc=1
28179
28180
28181fi
28182 rm -Rf build
28183
28184
28185 if test $rc -ne 0; then :
28186
23d56208 28187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0e3762ca
CALP
28188$as_echo "no" >&6; }
28189
28190 else
28191 if test "x$enable_linux_builtin" != xyes; then
28192
23d56208 28193 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
0e3762ca
CALP
28194 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28195 rc=$?
28196 if test $rc -ne 0; then
28197 export=0
23d56208
AX
28198 for file in mm/backing-dev.c; do
28199 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
0e3762ca
CALP
28200 "$LINUX/$file" 2>/dev/null
28201 rc=$?
28202 if test $rc -eq 0; then
28203 export=1
28204 break;
28205 fi
28206 done
28207 if test $export -eq 0; then :
28208 rc=1
28209 else :
28210 rc=0
28211 fi
28212 else :
28213 rc=0
28214 fi
28215
28216 fi
28217 if test $rc -ne 0; then :
28218
23d56208 28219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0e3762ca
CALP
28220$as_echo "no" >&6; }
28221
23d56208
AX
28222 else :
28223
28224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28225$as_echo "yes" >&6; }
28226
28227$as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
28228
28229
28230 fi
28231 fi
28232
28233
0e3762ca
CALP
28234 else :
28235
28236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28237$as_echo "yes" >&6; }
28238
23d56208 28239$as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
0e3762ca
CALP
28240
28241
28242 fi
28243 fi
28244
28245
28246
23d56208
AX
28247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
28248$as_echo_n "checking whether set_nlink() is available... " >&6; }
0e3762ca
CALP
28249
28250
28251cat confdefs.h - <<_ACEOF >conftest.c
28252
28253
23d56208 28254 #include <linux/fs.h>
0e3762ca
CALP
28255
28256int
28257main (void)
28258{
28259
23d56208
AX
28260 struct inode node;
28261 unsigned int link = 0;
28262 (void) set_nlink(&node, link);
28263
28264 ;
28265 return 0;
28266}
28267
28268_ACEOF
28269
28270
28271
28272cat - <<_ACEOF >conftest.h
28273
28274_ACEOF
28275
28276
28277 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28278 echo "obj-m := conftest.o" >build/Makefile
28279 modpost_flag=''
28280 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28281 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28283 (eval $ac_try) 2>&5
28284 ac_status=$?
28285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28286 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28288 (eval $ac_try) 2>&5
28289 ac_status=$?
28290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28291 test $ac_status = 0; }; }; then :
28292
28293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28294$as_echo "yes" >&6; }
28295
28296$as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
28297
28298
28299else
28300 $as_echo "$as_me: failed program was:" >&5
28301sed 's/^/| /' conftest.$ac_ext >&5
28302
28303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28304$as_echo "no" >&6; }
28305
28306
28307
28308fi
28309 rm -Rf build
28310
28311
28312
28313
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
28315$as_echo_n "checking whether elevator_change() is available... " >&6; }
28316 tmp_flags="$EXTRA_KCFLAGS"
28317 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
28318
28319
28320cat confdefs.h - <<_ACEOF >conftest.c
28321
28322
28323 #include <linux/blkdev.h>
28324 #include <linux/elevator.h>
0e3762ca 28325
23d56208
AX
28326int
28327main (void)
28328{
28329
28330 int ret;
28331 struct request_queue *q = NULL;
28332 char *elevator = NULL;
28333 ret = elevator_change(q, elevator);
0e3762ca
CALP
28334
28335 ;
28336 return 0;
28337}
28338
28339_ACEOF
28340
28341
23d56208
AX
28342
28343cat - <<_ACEOF >conftest.h
28344
28345_ACEOF
28346
28347
0e3762ca
CALP
28348 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28349 echo "obj-m := conftest.o" >build/Makefile
28350 modpost_flag=''
28351 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 28352 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
28353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28354 (eval $ac_try) 2>&5
28355 ac_status=$?
28356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28357 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28359 (eval $ac_try) 2>&5
28360 ac_status=$?
28361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28362 test $ac_status = 0; }; }; then :
28363
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28365$as_echo "yes" >&6; }
28366
23d56208 28367$as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
0e3762ca
CALP
28368
28369
28370else
28371 $as_echo "$as_me: failed program was:" >&5
28372sed 's/^/| /' conftest.$ac_ext >&5
28373
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28375$as_echo "no" >&6; }
28376
28377
28378
28379fi
28380 rm -Rf build
28381
28382
23d56208 28383 EXTRA_KCFLAGS="$tmp_flags"
0e3762ca 28384
23d56208
AX
28385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
28386$as_echo_n "checking whether sget() wants 5 args... " >&6; }
0e3762ca
CALP
28387
28388
28389cat confdefs.h - <<_ACEOF >conftest.c
28390
28391
23d56208 28392 #include <linux/fs.h>
0e3762ca
CALP
28393
28394int
28395main (void)
28396{
28397
23d56208
AX
28398 struct file_system_type *type = NULL;
28399 int (*test)(struct super_block *,void *) = NULL;
28400 int (*set)(struct super_block *,void *) = NULL;
28401 int flags = 0;
28402 void *data = NULL;
28403 (void) sget(type, test, set, flags, data);
0e3762ca
CALP
28404
28405 ;
28406 return 0;
28407}
28408
28409_ACEOF
28410
28411
23d56208
AX
28412
28413cat - <<_ACEOF >conftest.h
28414
28415_ACEOF
28416
28417
0e3762ca
CALP
28418 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28419 echo "obj-m := conftest.o" >build/Makefile
28420 modpost_flag=''
28421 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 28422 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
28423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28424 (eval $ac_try) 2>&5
28425 ac_status=$?
28426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28427 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28429 (eval $ac_try) 2>&5
28430 ac_status=$?
28431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28432 test $ac_status = 0; }; }; then :
28433
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28435$as_echo "yes" >&6; }
28436
23d56208 28437$as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
0e3762ca
CALP
28438
28439
28440else
28441 $as_echo "$as_me: failed program was:" >&5
28442sed 's/^/| /' conftest.$ac_ext >&5
28443
28444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28445$as_echo "no" >&6; }
28446
28447
28448
28449fi
28450 rm -Rf build
28451
28452
28453
23d56208
AX
28454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
28455$as_echo_n "checking whether lseek_execute() is available... " >&6; }
0e3762ca
CALP
28456
28457
28458
28459cat confdefs.h - <<_ACEOF >conftest.c
28460
28461
28462 #include <linux/fs.h>
28463
28464int
28465main (void)
28466{
28467
23d56208
AX
28468 struct file *fp __attribute__ ((unused)) = NULL;
28469 struct inode *ip __attribute__ ((unused)) = NULL;
28470 loff_t offset __attribute__ ((unused)) = 0;
28471 loff_t maxsize __attribute__ ((unused)) = 0;
28472
28473 lseek_execute(fp, ip, offset, maxsize);
0e3762ca
CALP
28474
28475 ;
28476 return 0;
28477}
28478
28479_ACEOF
28480
28481
23d56208
AX
28482
28483cat - <<_ACEOF >conftest.h
28484
28485_ACEOF
28486
28487
0e3762ca
CALP
28488 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28489 echo "obj-m := conftest.o" >build/Makefile
28490 modpost_flag=''
28491 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 28492 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
28493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28494 (eval $ac_try) 2>&5
28495 ac_status=$?
28496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28497 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28499 (eval $ac_try) 2>&5
28500 ac_status=$?
28501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28502 test $ac_status = 0; }; }; then :
28503 rc=0
28504else
28505 $as_echo "$as_me: failed program was:" >&5
28506sed 's/^/| /' conftest.$ac_ext >&5
28507 rc=1
28508
28509
28510fi
28511 rm -Rf build
28512
28513
28514 if test $rc -ne 0; then :
28515
28516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28517$as_echo "no" >&6; }
28518
28519 else
28520 if test "x$enable_linux_builtin" != xyes; then
28521
23d56208 28522 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
0e3762ca
CALP
28523 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28524 rc=$?
28525 if test $rc -ne 0; then
28526 export=0
23d56208
AX
28527 for file in fs/read_write.c; do
28528 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
0e3762ca
CALP
28529 "$LINUX/$file" 2>/dev/null
28530 rc=$?
28531 if test $rc -eq 0; then
28532 export=1
28533 break;
28534 fi
28535 done
28536 if test $export -eq 0; then :
28537 rc=1
28538 else :
28539 rc=0
28540 fi
28541 else :
28542 rc=0
28543 fi
28544
28545 fi
28546 if test $rc -ne 0; then :
28547
28548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28549$as_echo "no" >&6; }
28550
28551 else :
28552
28553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28554$as_echo "yes" >&6; }
28555
23d56208 28556$as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
0e3762ca
CALP
28557
28558
28559 fi
28560 fi
28561
28562
28563
23d56208
AX
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
28565$as_echo_n "checking whether fops->iterate() is available... " >&6; }
0e3762ca
CALP
28566
28567
28568cat confdefs.h - <<_ACEOF >conftest.c
28569
28570
28571 #include <linux/fs.h>
23d56208 28572 int iterate(struct file *filp, struct dir_context * context)
0e3762ca
CALP
28573 { return 0; }
28574
23d56208
AX
28575 static const struct file_operations fops
28576 __attribute__ ((unused)) = {
28577 .iterate = iterate,
0e3762ca
CALP
28578 };
28579
28580int
28581main (void)
28582{
28583
28584
28585 ;
28586 return 0;
28587}
28588
28589_ACEOF
28590
28591
23d56208
AX
28592
28593cat - <<_ACEOF >conftest.h
28594
28595_ACEOF
28596
28597
0e3762ca
CALP
28598 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28599 echo "obj-m := conftest.o" >build/Makefile
28600 modpost_flag=''
28601 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 28602 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
28603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28604 (eval $ac_try) 2>&5
28605 ac_status=$?
28606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28607 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28609 (eval $ac_try) 2>&5
28610 ac_status=$?
28611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28612 test $ac_status = 0; }; }; then :
28613
28614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28615$as_echo "yes" >&6; }
28616
23d56208 28617$as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
0e3762ca
CALP
28618
28619
28620else
28621 $as_echo "$as_me: failed program was:" >&5
28622sed 's/^/| /' conftest.$ac_ext >&5
28623
28624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28625$as_echo "no" >&6; }
28626
23d56208
AX
28627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
28628$as_echo_n "checking whether fops->readdir() is available... " >&6; }
c06d4368
AX
28629
28630
28631cat confdefs.h - <<_ACEOF >conftest.c
28632
28633
23d56208
AX
28634 #include <linux/fs.h>
28635 int readdir(struct file *filp, void *entry, filldir_t func)
28636 { return 0; }
28637
28638 static const struct file_operations fops
28639 __attribute__ ((unused)) = {
28640 .readdir = readdir,
28641 };
c06d4368
AX
28642
28643int
28644main (void)
28645{
28646
c06d4368
AX
28647
28648 ;
28649 return 0;
28650}
28651
28652_ACEOF
28653
28654
23d56208
AX
28655
28656cat - <<_ACEOF >conftest.h
28657
28658_ACEOF
28659
28660
c06d4368
AX
28661 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28662 echo "obj-m := conftest.o" >build/Makefile
28663 modpost_flag=''
28664 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 28665 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
c06d4368
AX
28666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28667 (eval $ac_try) 2>&5
28668 ac_status=$?
28669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28670 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28672 (eval $ac_try) 2>&5
28673 ac_status=$?
28674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28675 test $ac_status = 0; }; }; then :
28676
23d56208 28677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
c06d4368
AX
28678$as_echo "yes" >&6; }
28679
23d56208 28680$as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
c06d4368
AX
28681
28682
28683else
28684 $as_echo "$as_me: failed program was:" >&5
28685sed 's/^/| /' conftest.$ac_ext >&5
28686
23d56208 28687 as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5
c06d4368
AX
28688
28689
28690
0e3762ca
CALP
28691fi
28692 rm -Rf build
28693
28694
28695
0e3762ca
CALP
28696
28697
28698
28699fi
28700 rm -Rf build
28701
28702
28703
23d56208
AX
28704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
28705$as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
0e3762ca
CALP
28706
28707
28708cat confdefs.h - <<_ACEOF >conftest.c
28709
28710
28711 #include <linux/fs.h>
28712
23d56208
AX
28713 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
28714 { return 0; }
28715 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
28716 { return 0; }
28717
28718 static const struct file_operations
28719 fops __attribute__ ((unused)) = {
28720 .read_iter = test_read,
28721 .write_iter = test_write,
28722 };
28723
0e3762ca
CALP
28724int
28725main (void)
28726{
28727
0e3762ca
CALP
28728
28729 ;
28730 return 0;
28731}
28732
28733_ACEOF
28734
28735
23d56208
AX
28736
28737cat - <<_ACEOF >conftest.h
28738
28739_ACEOF
28740
28741
0e3762ca
CALP
28742 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28743 echo "obj-m := conftest.o" >build/Makefile
28744 modpost_flag=''
28745 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 28746 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
28747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28748 (eval $ac_try) 2>&5
28749 ac_status=$?
28750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28751 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28753 (eval $ac_try) 2>&5
28754 ac_status=$?
28755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28756 test $ac_status = 0; }; }; then :
28757
28758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28759$as_echo "yes" >&6; }
28760
23d56208 28761$as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
0e3762ca
CALP
28762
28763
28764else
28765 $as_echo "$as_me: failed program was:" >&5
28766sed 's/^/| /' conftest.$ac_ext >&5
28767
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28769$as_echo "no" >&6; }
28770
28771
28772
28773fi
28774 rm -Rf build
28775
28776
28777
0e3762ca 28778
23d56208
AX
28779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
28780$as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
0e3762ca
CALP
28781
28782
28783cat confdefs.h - <<_ACEOF >conftest.c
28784
28785
23d56208 28786 #include <linux/pagemap.h>
0e3762ca
CALP
28787
28788int
28789main (void)
28790{
28791
23d56208
AX
28792 struct page page;
28793 kmap_atomic(&page);
0e3762ca
CALP
28794
28795 ;
28796 return 0;
28797}
28798
28799_ACEOF
28800
28801
23d56208
AX
28802
28803cat - <<_ACEOF >conftest.h
28804
28805_ACEOF
28806
28807
0e3762ca
CALP
28808 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28809 echo "obj-m := conftest.o" >build/Makefile
28810 modpost_flag=''
28811 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 28812 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28819 (eval $ac_try) 2>&5
28820 ac_status=$?
28821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28822 test $ac_status = 0; }; }; then :
0e3762ca 28823
23d56208
AX
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28825$as_echo "yes" >&6; }
0e3762ca 28826
23d56208 28827$as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
0e3762ca 28828
0e3762ca 28829
23d56208
AX
28830else
28831 $as_echo "$as_me: failed program was:" >&5
28832sed 's/^/| /' conftest.$ac_ext >&5
0e3762ca
CALP
28833
28834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28835$as_echo "no" >&6; }
28836
0e3762ca 28837
0e3762ca 28838
23d56208
AX
28839fi
28840 rm -Rf build
0e3762ca 28841
0e3762ca
CALP
28842
28843
28844
23d56208
AX
28845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
28846$as_echo_n "checking whether follow_down_one() is available... " >&6; }
0e3762ca
CALP
28847
28848
28849cat confdefs.h - <<_ACEOF >conftest.c
28850
28851
23d56208 28852 #include <linux/namei.h>
0e3762ca
CALP
28853
28854int
28855main (void)
28856{
28857
23d56208
AX
28858 struct path *p = NULL;
28859 follow_down_one(p);
0e3762ca
CALP
28860
28861 ;
28862 return 0;
28863}
28864
28865_ACEOF
28866
28867
23d56208
AX
28868
28869cat - <<_ACEOF >conftest.h
28870
28871_ACEOF
28872
28873
0e3762ca
CALP
28874 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28875 echo "obj-m := conftest.o" >build/Makefile
28876 modpost_flag=''
28877 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 28878 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
28879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28880 (eval $ac_try) 2>&5
28881 ac_status=$?
28882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28883 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28885 (eval $ac_try) 2>&5
28886 ac_status=$?
28887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28888 test $ac_status = 0; }; }; then :
28889
28890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28891$as_echo "yes" >&6; }
28892
23d56208 28893$as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
0e3762ca
CALP
28894
28895
28896else
28897 $as_echo "$as_me: failed program was:" >&5
28898sed 's/^/| /' conftest.$ac_ext >&5
28899
28900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28901$as_echo "no" >&6; }
28902
28903
28904
28905fi
28906 rm -Rf build
28907
28908
28909
28910
23d56208
AX
28911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
28912$as_echo_n "checking whether make_request_fn() returns int... " >&6; }
0e3762ca
CALP
28913
28914
28915cat confdefs.h - <<_ACEOF >conftest.c
28916
28917
28918 #include <linux/blkdev.h>
23d56208
AX
28919
28920 int make_request(struct request_queue *q, struct bio *bio)
28921 {
28922 return (0);
28923 }
0e3762ca
CALP
28924
28925int
28926main (void)
28927{
28928
23d56208 28929 blk_queue_make_request(NULL, &make_request);
0e3762ca
CALP
28930
28931 ;
28932 return 0;
28933}
28934
28935_ACEOF
28936
28937
23d56208
AX
28938
28939cat - <<_ACEOF >conftest.h
28940
28941_ACEOF
28942
28943
0e3762ca
CALP
28944 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28945 echo "obj-m := conftest.o" >build/Makefile
28946 modpost_flag=''
28947 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 28948 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
28949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28950 (eval $ac_try) 2>&5
28951 ac_status=$?
28952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28953 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28955 (eval $ac_try) 2>&5
28956 ac_status=$?
28957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28958 test $ac_status = 0; }; }; then :
28959
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28961$as_echo "yes" >&6; }
28962
23d56208
AX
28963$as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
28964
28965
28966$as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
0e3762ca
CALP
28967
28968
28969else
28970 $as_echo "$as_me: failed program was:" >&5
28971sed 's/^/| /' conftest.$ac_ext >&5
28972
28973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28974$as_echo "no" >&6; }
23d56208
AX
28975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
28976$as_echo_n "checking whether make_request_fn() returns void... " >&6; }
0e3762ca
CALP
28977
28978
28979cat confdefs.h - <<_ACEOF >conftest.c
28980
28981
23d56208
AX
28982 #include <linux/blkdev.h>
28983
28984 void make_request(struct request_queue *q, struct bio *bio)
28985 {
28986 return;
28987 }
0e3762ca
CALP
28988
28989int
28990main (void)
28991{
28992
23d56208 28993 blk_queue_make_request(NULL, &make_request);
0e3762ca
CALP
28994
28995 ;
28996 return 0;
28997}
28998
28999_ACEOF
29000
29001
23d56208
AX
29002
29003cat - <<_ACEOF >conftest.h
29004
29005_ACEOF
29006
29007
0e3762ca
CALP
29008 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29009 echo "obj-m := conftest.o" >build/Makefile
29010 modpost_flag=''
29011 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 29012 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0e3762ca
CALP
29013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29014 (eval $ac_try) 2>&5
29015 ac_status=$?
29016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29017 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29019 (eval $ac_try) 2>&5
29020 ac_status=$?
29021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29022 test $ac_status = 0; }; }; then :
29023
23d56208 29024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
0e3762ca
CALP
29025$as_echo "yes" >&6; }
29026
23d56208 29027$as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
0e3762ca
CALP
29028
29029
29030else
29031 $as_echo "$as_me: failed program was:" >&5
29032sed 's/^/| /' conftest.$ac_ext >&5
29033
23d56208
AX
29034 as_fn_error $? "no - Please file a bug report at
29035 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
0e3762ca
CALP
29036
29037
29038
c06d4368
AX
29039fi
29040 rm -Rf build
29041
29042
29043
23d56208
AX
29044
29045
29046fi
29047 rm -Rf build
29048
29049
29050
29051
29052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
29053$as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
c06d4368
AX
29054
29055
29056
29057cat confdefs.h - <<_ACEOF >conftest.c
29058
29059
23d56208
AX
29060 #include <linux/bio.h>
29061
29062 void (*generic_start_io_acct_f)(int, unsigned long,
29063 struct hd_struct *) = &generic_start_io_acct;
29064 void (*generic_end_io_acct_f)(int, struct hd_struct *,
29065 unsigned long) = &generic_end_io_acct;
c06d4368
AX
29066
29067int
29068main (void)
29069{
29070
23d56208
AX
29071 generic_start_io_acct(0, 0, NULL);
29072 generic_end_io_acct(0, NULL, 0);
c06d4368
AX
29073
29074 ;
29075 return 0;
29076}
29077
29078_ACEOF
29079
29080
23d56208
AX
29081
29082cat - <<_ACEOF >conftest.h
29083
29084_ACEOF
29085
29086
c06d4368
AX
29087 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29088 echo "obj-m := conftest.o" >build/Makefile
29089 modpost_flag=''
29090 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23d56208 29091 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
c06d4368
AX
29092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29093 (eval $ac_try) 2>&5
29094 ac_status=$?
29095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29096 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29098 (eval $ac_try) 2>&5
29099 ac_status=$?
29100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29101 test $ac_status = 0; }; }; then :
29102 rc=0
29103else
29104 $as_echo "$as_me: failed program was:" >&5
29105sed 's/^/| /' conftest.$ac_ext >&5
29106 rc=1
29107
29108
29109fi
29110 rm -Rf build
29111
29112
29113 if test $rc -ne 0; then :
29114
29115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29116$as_echo "no" >&6; }
29117
29118 else
29119 if test "x$enable_linux_builtin" != xyes; then
29120
23d56208 29121 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
c06d4368
AX
29122 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29123 rc=$?
29124 if test $rc -ne 0; then
29125 export=0
23d56208
AX
29126 for file in block/bio.c; do
29127 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
c06d4368
AX
29128 "$LINUX/$file" 2>/dev/null
29129 rc=$?
29130 if test $rc -eq 0; then
29131 export=1
29132 break;
29133 fi
29134 done
29135 if test $export -eq 0; then :
29136 rc=1
29137 else :
29138 rc=0
29139 fi
29140 else :
29141 rc=0
29142 fi
29143
29144 fi
29145 if test $rc -ne 0; then :
29146
29147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29148$as_echo "no" >&6; }
29149
29150 else :
29151
29152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29153$as_echo "yes" >&6; }
29154
23d56208 29155$as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
c06d4368
AX
29156
29157
29158 fi
29159 fi
29160
29161
29162
23d56208 29163 if test "$LINUX_OBJ" != "$LINUX"; then :
c06d4368 29164
23d56208 29165 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
c06d4368 29166
23d56208 29167fi
c06d4368
AX
29168
29169
c06d4368 29170
23d56208
AX
29171 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
29172 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
29173 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
29174 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
c06d4368 29175
c06d4368
AX
29176
29177
c06d4368 29178
c06d4368
AX
29179
29180
23d56208
AX
29181# Check whether --with-mounthelperdir was given.
29182if test "${with_mounthelperdir+set}" = set; then :
29183 withval=$with_mounthelperdir; mounthelperdir=$withval
29184else
29185 mounthelperdir=/sbin
29186fi
c06d4368 29187
c06d4368 29188
c06d4368
AX
29189
29190
c06d4368 29191
23d56208
AX
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
29193$as_echo_n "checking for udev directories... " >&6; }
c06d4368 29194
23d56208
AX
29195# Check whether --with-udevdir was given.
29196if test "${with_udevdir+set}" = set; then :
29197 withval=$with_udevdir; udevdir=$withval
29198else
29199 udevdir=check
29200fi
c06d4368
AX
29201
29202
23d56208 29203 if test "x$udevdir" = xcheck; then :
c06d4368 29204
23d56208
AX
29205 path1=/lib/udev
29206 path2=/usr/lib/udev
29207 default=$path2
c06d4368 29208
23d56208
AX
29209 if test -d "$path1"; then :
29210 udevdir="$path1"
29211else
c06d4368 29212
23d56208
AX
29213 if test -d "$path2"; then :
29214 udevdir="$path2"
29215else
29216 udevdir="$default"
29217fi
c06d4368 29218
23d56208 29219fi
c06d4368 29220
23d56208 29221fi
c06d4368 29222
c06d4368 29223
23d56208
AX
29224# Check whether --with-udevruledir was given.
29225if test "${with_udevruledir+set}" = set; then :
29226 withval=$with_udevruledir; udevruledir=$withval
29227else
29228 udevruledir="${udevdir}/rules.d"
29229fi
c06d4368
AX
29230
29231
c06d4368 29232
c06d4368 29233
23d56208
AX
29234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
29235$as_echo "$udevdir;$udevruledir" >&6; }
c06d4368
AX
29236
29237
23d56208
AX
29238 # Check whether --enable-systemd was given.
29239if test "${enable_systemd+set}" = set; then :
29240 enableval=$enable_systemd;
c06d4368 29241else
23d56208
AX
29242 enable_systemd=yes
29243fi
c06d4368
AX
29244
29245
29246
23d56208
AX
29247# Check whether --with-systemdunitdir was given.
29248if test "${with_systemdunitdir+set}" = set; then :
29249 withval=$with_systemdunitdir; systemdunitdir=$withval
29250else
29251 systemdunitdir=/usr/lib/systemd/system
c06d4368 29252fi
c06d4368
AX
29253
29254
29255
23d56208
AX
29256# Check whether --with-systemdpresetdir was given.
29257if test "${with_systemdpresetdir+set}" = set; then :
29258 withval=$with_systemdpresetdir; systemdpresetdir=$withval
29259else
29260 systemdpresetdir=/usr/lib/systemd/system-preset
29261fi
c06d4368
AX
29262
29263
29264
23d56208
AX
29265# Check whether --with-systemdmodulesloaddir was given.
29266if test "${with_systemdmodulesloaddir+set}" = set; then :
29267 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
29268else
29269 systemdmodulesloaddir=/usr/lib/modules-load.d
0e3762ca 29270fi
0e3762ca
CALP
29271
29272
29273
23d56208 29274 if test "x$enable_systemd" = xyes; then :
0e3762ca 29275
23d56208
AX
29276 ZFS_INIT_SYSTEMD=systemd
29277 ZFS_MODULE_LOAD=modules-load.d
29278 modulesloaddir=$systemdmodulesloaddir
0e3762ca
CALP
29279
29280fi
29281
29282
29283
0e3762ca
CALP
29284
29285
29286
29287
29288
23d56208
AX
29289 # Check whether --enable-sysvinit was given.
29290if test "${enable_sysvinit+set}" = set; then :
29291 enableval=$enable_sysvinit;
0e3762ca 29292else
23d56208 29293 enable_sysvinit=yes
0e3762ca
CALP
29294fi
29295
29296
23d56208
AX
29297 if test "x$enable_sysvinit" = xyes; then :
29298 ZFS_INIT_SYSV=init.d
0e3762ca
CALP
29299fi
29300
29301
29302
29303
23d56208
AX
29304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
29305$as_echo_n "checking for dracut directory... " >&6; }
0e3762ca
CALP
29306
29307# Check whether --with-dracutdir was given.
29308if test "${with_dracutdir+set}" = set; then :
29309 withval=$with_dracutdir; dracutdir=$withval
29310else
23d56208 29311 dracutdir=check
0e3762ca
CALP
29312fi
29313
29314
23d56208 29315 if test "x$dracutdir" = xcheck; then :
0e3762ca 29316
23d56208
AX
29317 path1=/usr/share/dracut
29318 path2=/usr/lib/dracut
29319 default=$path2
0e3762ca 29320
23d56208
AX
29321 if test -d "$path1"; then :
29322 dracutdir="$path1"
0e3762ca 29323else
0e3762ca 29324
23d56208
AX
29325 if test -d "$path2"; then :
29326 dracutdir="$path2"
0e3762ca 29327else
23d56208 29328 dracutdir="$default"
0e3762ca 29329fi
0e3762ca 29330
0e3762ca 29331fi
0e3762ca 29332
23d56208 29333fi
0e3762ca 29334
0e3762ca 29335
23d56208
AX
29336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
29337$as_echo "$dracutdir" >&6; }
0e3762ca 29338
0e3762ca 29339
23d56208
AX
29340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
29341$as_echo_n "checking for target asm dir... " >&6; }
29342 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
0e3762ca 29343
23d56208
AX
29344 case $TARGET_ARCH in
29345 i386|x86_64)
29346 TARGET_ASM_DIR=asm-${TARGET_ARCH}
29347 ;;
29348 *)
29349 TARGET_ASM_DIR=asm-generic
29350 ;;
29351 esac
0e3762ca 29352
0e3762ca 29353
23d56208
AX
29354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
29355$as_echo "$TARGET_ASM_DIR" >&6; }
0e3762ca
CALP
29356
29357
29358 ZLIB=
29359
29360 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
23d56208 29361if test "x$ac_cv_header_zlib_h" = xyes; then :
0e3762ca
CALP
29362
29363else
29364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29366as_fn_error $? "
29367 *** zlib.h missing, zlib-devel package required
23d56208 29368See \`config.log' for more details" "$LINENO" 5; }
0e3762ca
CALP
29369fi
29370
29371
29372
29373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
29374$as_echo_n "checking for compress2 in -lz... " >&6; }
23d56208 29375if ${ac_cv_lib_z_compress2+:} false; then :
0e3762ca
CALP
29376 $as_echo_n "(cached) " >&6
29377else
29378 ac_check_lib_save_LIBS=$LIBS
29379LIBS="-lz $LIBS"
29380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29381/* end confdefs.h. */
29382
29383/* Override any GCC internal prototype to avoid an error.
29384 Use char because int might match the return type of a GCC
29385 builtin and then its argument prototype would still apply. */
29386#ifdef __cplusplus
29387extern "C"
29388#endif
29389char compress2 ();
29390int
29391main ()
29392{
29393return compress2 ();
29394 ;
29395 return 0;
29396}
29397_ACEOF
29398if ac_fn_c_try_link "$LINENO"; then :
29399 ac_cv_lib_z_compress2=yes
29400else
29401 ac_cv_lib_z_compress2=no
29402fi
29403rm -f core conftest.err conftest.$ac_objext \
29404 conftest$ac_exeext conftest.$ac_ext
29405LIBS=$ac_check_lib_save_LIBS
29406fi
29407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
29408$as_echo "$ac_cv_lib_z_compress2" >&6; }
23d56208 29409if test "x$ac_cv_lib_z_compress2" = xyes; then :
0e3762ca
CALP
29410 cat >>confdefs.h <<_ACEOF
29411#define HAVE_LIBZ 1
29412_ACEOF
29413
29414 LIBS="-lz $LIBS"
29415
29416else
29417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29419as_fn_error $? "
29420 *** compress2() missing, zlib-devel package required
23d56208 29421See \`config.log' for more details" "$LINENO" 5; }
0e3762ca
CALP
29422fi
29423
29424
29425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
29426$as_echo_n "checking for uncompress in -lz... " >&6; }
23d56208 29427if ${ac_cv_lib_z_uncompress+:} false; then :
0e3762ca
CALP
29428 $as_echo_n "(cached) " >&6
29429else
29430 ac_check_lib_save_LIBS=$LIBS
29431LIBS="-lz $LIBS"
29432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29433/* end confdefs.h. */
29434
29435/* Override any GCC internal prototype to avoid an error.
29436 Use char because int might match the return type of a GCC
29437 builtin and then its argument prototype would still apply. */
29438#ifdef __cplusplus
29439extern "C"
29440#endif
29441char uncompress ();
29442int
29443main ()
29444{
29445return uncompress ();
29446 ;
29447 return 0;
29448}
29449_ACEOF
29450if ac_fn_c_try_link "$LINENO"; then :
29451 ac_cv_lib_z_uncompress=yes
29452else
29453 ac_cv_lib_z_uncompress=no
29454fi
29455rm -f core conftest.err conftest.$ac_objext \
29456 conftest$ac_exeext conftest.$ac_ext
29457LIBS=$ac_check_lib_save_LIBS
29458fi
29459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
29460$as_echo "$ac_cv_lib_z_uncompress" >&6; }
23d56208 29461if test "x$ac_cv_lib_z_uncompress" = xyes; then :
0e3762ca
CALP
29462 cat >>confdefs.h <<_ACEOF
29463#define HAVE_LIBZ 1
29464_ACEOF
29465
29466 LIBS="-lz $LIBS"
29467
29468else
29469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29471as_fn_error $? "
29472 *** uncompress() missing, zlib-devel package required
23d56208 29473See \`config.log' for more details" "$LINENO" 5; }
0e3762ca
CALP
29474fi
29475
29476
29477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
29478$as_echo_n "checking for crc32 in -lz... " >&6; }
23d56208 29479if ${ac_cv_lib_z_crc32+:} false; then :
0e3762ca
CALP
29480 $as_echo_n "(cached) " >&6
29481else
29482 ac_check_lib_save_LIBS=$LIBS
29483LIBS="-lz $LIBS"
29484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29485/* end confdefs.h. */
29486
29487/* Override any GCC internal prototype to avoid an error.
29488 Use char because int might match the return type of a GCC
29489 builtin and then its argument prototype would still apply. */
29490#ifdef __cplusplus
29491extern "C"
29492#endif
29493char crc32 ();
29494int
29495main ()
29496{
29497return crc32 ();
29498 ;
29499 return 0;
29500}
29501_ACEOF
29502if ac_fn_c_try_link "$LINENO"; then :
29503 ac_cv_lib_z_crc32=yes
29504else
29505 ac_cv_lib_z_crc32=no
29506fi
29507rm -f core conftest.err conftest.$ac_objext \
29508 conftest$ac_exeext conftest.$ac_ext
29509LIBS=$ac_check_lib_save_LIBS
29510fi
29511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
29512$as_echo "$ac_cv_lib_z_crc32" >&6; }
23d56208 29513if test "x$ac_cv_lib_z_crc32" = xyes; then :
0e3762ca
CALP
29514 cat >>confdefs.h <<_ACEOF
29515#define HAVE_LIBZ 1
29516_ACEOF
29517
29518 LIBS="-lz $LIBS"
29519
29520else
29521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29523as_fn_error $? "
29524 *** crc32() missing, zlib-devel package required
23d56208 29525See \`config.log' for more details" "$LINENO" 5; }
0e3762ca
CALP
29526fi
29527
29528
29529 ZLIB="-lz"
29530
29531
29532$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
29533
29534
29535
29536 LIBUUID=
29537
29538 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
23d56208 29539if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
0e3762ca
CALP
29540
29541else
29542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29544as_fn_error $? "
29545 *** uuid/uuid.h missing, libuuid-devel package required
23d56208 29546See \`config.log' for more details" "$LINENO" 5; }
0e3762ca
CALP
29547fi
29548
29549
29550
29551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
29552$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
23d56208 29553if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
0e3762ca
CALP
29554 $as_echo_n "(cached) " >&6
29555else
29556 ac_check_lib_save_LIBS=$LIBS
29557LIBS="-luuid $LIBS"
29558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29559/* end confdefs.h. */
29560
29561/* Override any GCC internal prototype to avoid an error.
29562 Use char because int might match the return type of a GCC
29563 builtin and then its argument prototype would still apply. */
29564#ifdef __cplusplus
29565extern "C"
29566#endif
29567char uuid_generate ();
29568int
29569main ()
29570{
29571return uuid_generate ();
29572 ;
29573 return 0;
29574}
29575_ACEOF
29576if ac_fn_c_try_link "$LINENO"; then :
29577 ac_cv_lib_uuid_uuid_generate=yes
29578else
29579 ac_cv_lib_uuid_uuid_generate=no
29580fi
29581rm -f core conftest.err conftest.$ac_objext \
29582 conftest$ac_exeext conftest.$ac_ext
29583LIBS=$ac_check_lib_save_LIBS
29584fi
29585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
29586$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
23d56208 29587if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
0e3762ca
CALP
29588 cat >>confdefs.h <<_ACEOF
29589#define HAVE_LIBUUID 1
29590_ACEOF
29591
29592 LIBS="-luuid $LIBS"
29593
29594else
29595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29597as_fn_error $? "
29598 *** uuid_generate() missing, libuuid-devel package required
23d56208 29599See \`config.log' for more details" "$LINENO" 5; }
0e3762ca
CALP
29600fi
29601
29602
29603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
29604$as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
23d56208 29605if ${ac_cv_lib_uuid_uuid_is_null+:} false; then :
0e3762ca
CALP
29606 $as_echo_n "(cached) " >&6
29607else
29608 ac_check_lib_save_LIBS=$LIBS
29609LIBS="-luuid $LIBS"
29610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29611/* end confdefs.h. */
29612
29613/* Override any GCC internal prototype to avoid an error.
29614 Use char because int might match the return type of a GCC
29615 builtin and then its argument prototype would still apply. */
29616#ifdef __cplusplus
29617extern "C"
29618#endif
29619char uuid_is_null ();
29620int
29621main ()
29622{
29623return uuid_is_null ();
29624 ;
29625 return 0;
29626}
29627_ACEOF
29628if ac_fn_c_try_link "$LINENO"; then :
29629 ac_cv_lib_uuid_uuid_is_null=yes
29630else
29631 ac_cv_lib_uuid_uuid_is_null=no
29632fi
29633rm -f core conftest.err conftest.$ac_objext \
29634 conftest$ac_exeext conftest.$ac_ext
29635LIBS=$ac_check_lib_save_LIBS
29636fi
29637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
29638$as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
23d56208 29639if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes; then :
0e3762ca
CALP
29640 cat >>confdefs.h <<_ACEOF
29641#define HAVE_LIBUUID 1
29642_ACEOF
29643
29644 LIBS="-luuid $LIBS"
29645
29646else
29647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29649as_fn_error $? "
29650 *** uuid_is_null() missing, libuuid-devel package required
23d56208 29651See \`config.log' for more details" "$LINENO" 5; }
0e3762ca
CALP
29652fi
29653
29654
29655 LIBUUID="-luuid"
29656
29657
29658$as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
29659
29660
29661
29662
29663# Check whether --with-blkid was given.
29664if test "${with_blkid+set}" = set; then :
29665 withval=$with_blkid;
29666else
29667 with_blkid=check
29668fi
29669
29670
29671 LIBBLKID=
23d56208
AX
29672 if test "x$with_blkid" = xyes; then :
29673
29674 LIBBLKID="-lblkid"
29675
29676
29677$as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
29678
29679
29680fi
29681
29682 if test "x$with_blkid" = xcheck; then :
0e3762ca
CALP
29683
29684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
29685$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
23d56208 29686if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
0e3762ca
CALP
29687 $as_echo_n "(cached) " >&6
29688else
29689 ac_check_lib_save_LIBS=$LIBS
29690LIBS="-lblkid $LIBS"
29691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29692/* end confdefs.h. */
29693
29694/* Override any GCC internal prototype to avoid an error.
29695 Use char because int might match the return type of a GCC
29696 builtin and then its argument prototype would still apply. */
29697#ifdef __cplusplus
29698extern "C"
29699#endif
29700char blkid_get_cache ();
29701int
29702main ()
29703{
29704return blkid_get_cache ();
29705 ;
29706 return 0;
29707}
29708_ACEOF
29709if ac_fn_c_try_link "$LINENO"; then :
29710 ac_cv_lib_blkid_blkid_get_cache=yes
29711else
29712 ac_cv_lib_blkid_blkid_get_cache=no
29713fi
29714rm -f core conftest.err conftest.$ac_objext \
29715 conftest$ac_exeext conftest.$ac_ext
29716LIBS=$ac_check_lib_save_LIBS
29717fi
29718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
29719$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
23d56208 29720if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
0e3762ca
CALP
29721
29722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
29723$as_echo_n "checking for blkid zfs support... " >&6; }
29724
29725 ZFS_DEV=`mktemp`
23d56208
AX
29726 truncate -s 64M $ZFS_DEV
29727 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
29728 dd of=$ZFS_DEV bs=1k count=8 \
29729 seek=128 conv=notrunc &>/dev/null \
0e3762ca
CALP
29730 >/dev/null 2>/dev/null
29731 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
29732 dd of=$ZFS_DEV bs=1k count=8 \
29733 seek=132 conv=notrunc &>/dev/null \
29734 >/dev/null 2>/dev/null
23d56208
AX
29735 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
29736 dd of=$ZFS_DEV bs=1k count=8 \
29737 seek=136 conv=notrunc &>/dev/null \
29738 >/dev/null 2>/dev/null
29739 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
29740 dd of=$ZFS_DEV bs=1k count=8 \
29741 seek=140 conv=notrunc &>/dev/null \
29742 >/dev/null 2>/dev/null
0e3762ca 29743
23d56208
AX
29744 saved_LIBS="$LIBS"
29745 LIBS="-lblkid"
0e3762ca
CALP
29746
29747 if test "$cross_compiling" = yes; then :
29748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29750as_fn_error $? "cannot run test program while cross compiling
23d56208 29751See \`config.log' for more details" "$LINENO" 5; }
0e3762ca
CALP
29752else
29753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29754/* end confdefs.h. */
29755
29756 #include <stdio.h>
23d56208 29757 #include <stdlib.h>
0e3762ca
CALP
29758 #include <blkid/blkid.h>
29759
29760int
29761main ()
29762{
29763
29764 blkid_cache cache;
29765 char *value;
29766
29767 if (blkid_get_cache(&cache, NULL) < 0)
29768 return 1;
29769
29770 value = blkid_get_tag_value(cache, "TYPE",
29771 "$ZFS_DEV");
29772 if (!value) {
29773 blkid_put_cache(cache);
29774 return 2;
29775 }
29776
23d56208 29777 if (strcmp(value, "zfs_member")) {
0e3762ca
CALP
29778 free(value);
29779 blkid_put_cache(cache);
23d56208 29780 return 0;
0e3762ca
CALP
29781 }
29782
29783 free(value);
29784 blkid_put_cache(cache);
29785
29786 ;
29787 return 0;
29788}
29789_ACEOF
29790if ac_fn_c_try_run "$LINENO"; then :
29791
29792 rm -f $ZFS_DEV
29793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29794$as_echo "yes" >&6; }
29795 LIBBLKID="-lblkid"
29796
29797
29798$as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
29799
29800
29801else
29802
29803 rm -f $ZFS_DEV
29804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29805$as_echo "no" >&6; }
29806 if test "x$with_blkid" != xcheck; then :
29807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29809as_fn_error $? "--with-blkid given but unavailable
23d56208 29810See \`config.log' for more details" "$LINENO" 5; }
0e3762ca
CALP
29811fi
29812
29813fi
29814rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29815 conftest.$ac_objext conftest.beam conftest.$ac_ext
29816fi
29817
29818
23d56208 29819 LIBS="$saved_LIBS"
0e3762ca
CALP
29820
29821else
29822
29823 if test "x$with_blkid" != xcheck; then :
29824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29826as_fn_error $? "--with-blkid given but unavailable
23d56208 29827See \`config.log' for more details" "$LINENO" 5; }
0e3762ca
CALP
29828fi
29829
29830
0e3762ca
CALP
29831fi
29832
29833
0e3762ca
CALP
29834fi
29835
29836
29837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
29838$as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
29839
29840 saved_flags="$CFLAGS"
29841 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
29842
23d56208 29843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0e3762ca
CALP
29844/* end confdefs.h. */
29845
29846int
29847main ()
29848{
29849
29850 ;
29851 return 0;
29852}
29853_ACEOF
23d56208 29854if ac_fn_c_try_compile "$LINENO"; then :
0e3762ca
CALP
29855
29856 FRAME_LARGER_THAN=-Wframe-larger-than=1024
29857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29858$as_echo "yes" >&6; }
29859
29860else
29861
29862 FRAME_LARGER_THAN=
29863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29864$as_echo "no" >&6; }
29865
29866fi
23d56208 29867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0e3762ca
CALP
29868
29869 CFLAGS="$saved_flags"
29870
29871
23d56208
AX
29872
29873 if test "x$runstatedir" = x; then
29874 runstatedir='${localstatedir}/run'
29875
29876 fi
29877
29878 for ac_func in mlockall
29879do :
29880 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
29881if test "x$ac_cv_func_mlockall" = xyes; then :
29882 cat >>confdefs.h <<_ACEOF
29883#define HAVE_MLOCKALL 1
29884_ACEOF
29885
29886fi
29887done
29888
0e3762ca
CALP
29889 ;;
29890 srpm) ;;
29891 *)
29892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
29893$as_echo "Error!" >&6; }
29894 as_fn_error $? "Bad value \"$ZFS_CONFIG\" for --with-config,
23d56208 29895 user kernel|user|all|srpm" "$LINENO" 5 ;;
0e3762ca
CALP
29896 esac
29897
29898 if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then
29899 CONFIG_USER_TRUE=
29900 CONFIG_USER_FALSE='#'
29901else
29902 CONFIG_USER_TRUE='#'
29903 CONFIG_USER_FALSE=
29904fi
29905
29906 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
29907 test "x$enable_linux_builtin" != xyes ; then
29908 CONFIG_KERNEL_TRUE=
29909 CONFIG_KERNEL_FALSE='#'
29910else
29911 CONFIG_KERNEL_TRUE='#'
29912 CONFIG_KERNEL_FALSE=
29913fi
29914
29915
29916
29917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
29918$as_echo_n "checking whether debugging is enabled... " >&6; }
29919 # Check whether --enable-debug was given.
29920if test "${enable_debug+set}" = set; then :
29921 enableval=$enable_debug;
29922else
29923 enable_debug=no
29924fi
29925
29926
29927 if test "x$enable_debug" = xyes; then :
29928
29929 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
29930 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
29931 DEBUG_CFLAGS="-DDEBUG -Werror"
29932 DEBUG_STACKFLAGS="-fstack-check"
29933 DEBUG_ZFS="_with_debug"
29934
29935$as_echo "#define ZFS_DEBUG 1" >>confdefs.h
29936
29937
29938else
29939
29940 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
29941 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
29942 DEBUG_CFLAGS="-DNDEBUG"
29943 DEBUG_STACKFLAGS=""
29944 DEBUG_ZFS="_without_debug"
29945
29946fi
29947
29948
29949
29950
29951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
29952$as_echo "$enable_debug" >&6; }
29953
29954
29955 # Check whether --enable-debug-dmu-tx was given.
29956if test "${enable_debug_dmu_tx+set}" = set; then :
29957 enableval=$enable_debug_dmu_tx;
29958else
29959 enable_debug_dmu_tx=no
29960fi
29961
29962
29963 if test "x$enable_debug_dmu_tx" = xyes; then :
29964
29965 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
29966 DEBUG_DMU_TX="_with_debug_dmu_tx"
29967
29968$as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h
29969
29970
29971else
29972
29973 DEBUG_DMU_TX="_without_debug_dmu_tx"
29974
29975fi
29976
29977
29978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5
29979$as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
29980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5
29981$as_echo "$enable_debug_dmu_tx" >&6; }
29982
29983
23d56208 29984ac_config_files="$ac_config_files Makefile udev/Makefile udev/rules.d/Makefile etc/Makefile etc/init.d/Makefile etc/zfs/Makefile etc/systemd/Makefile etc/systemd/system/Makefile etc/modules-load.d/Makefile man/Makefile man/man1/Makefile man/man5/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/libzfs.pc lib/libzfs/libzfs_core.pc lib/libzfs/Makefile lib/libzfs_core/Makefile lib/libshare/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zhack/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/zstreamdump/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/fsck_zfs/Makefile cmd/zvol_id/Makefile cmd/vdev_id/Makefile cmd/arcstat/Makefile cmd/dbufstat/Makefile cmd/arc_summary/Makefile cmd/zed/Makefile contrib/Makefile contrib/bash_completion.d/Makefile contrib/dracut/Makefile contrib/dracut/90zfs/Makefile contrib/initramfs/Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/common.sh rpm/Makefile rpm/redhat/Makefile rpm/redhat/zfs.spec rpm/redhat/zfs-kmod.spec rpm/redhat/zfs-dkms.spec rpm/generic/Makefile rpm/generic/zfs.spec rpm/generic/zfs-kmod.spec rpm/generic/zfs-dkms.spec zfs-script-config.sh zfs.release"
0e3762ca
CALP
29985
29986
29987cat >confcache <<\_ACEOF
29988# This file is a shell script that caches the results of configure
29989# tests run on this system so they can be shared between configure
29990# scripts and configure runs, see configure's option --config-cache.
29991# It is not useful on other systems. If it contains results you don't
29992# want to keep, you may remove or edit it.
29993#
29994# config.status only pays attention to the cache file if you give it
29995# the --recheck option to rerun configure.
29996#
29997# `ac_cv_env_foo' variables (set or unset) will be overridden when
29998# loading this file, other *unset* `ac_cv_foo' will be assigned the
29999# following values.
30000
30001_ACEOF
30002
30003# The following way of writing the cache mishandles newlines in values,
30004# but we know of no workaround that is simple, portable, and efficient.
30005# So, we kill variables containing newlines.
30006# Ultrix sh set writes to stderr and can't be redirected directly,
30007# and sets the high bit in the cache file unless we assign to the vars.
30008(
30009 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30010 eval ac_val=\$$ac_var
30011 case $ac_val in #(
30012 *${as_nl}*)
30013 case $ac_var in #(
30014 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30015$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30016 esac
30017 case $ac_var in #(
30018 _ | IFS | as_nl) ;; #(
30019 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30020 *) { eval $ac_var=; unset $ac_var;} ;;
30021 esac ;;
30022 esac
30023 done
30024
30025 (set) 2>&1 |
30026 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30027 *${as_nl}ac_space=\ *)
30028 # `set' does not quote correctly, so add quotes: double-quote
30029 # substitution turns \\\\ into \\, and sed turns \\ into \.
30030 sed -n \
30031 "s/'/'\\\\''/g;
30032 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30033 ;; #(
30034 *)
30035 # `set' quotes correctly as required by POSIX, so do not add quotes.
30036 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30037 ;;
30038 esac |
30039 sort
30040) |
30041 sed '
30042 /^ac_cv_env_/b end
30043 t clear
30044 :clear
30045 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30046 t end
30047 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30048 :end' >>confcache
30049if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30050 if test -w "$cache_file"; then
23d56208 30051 if test "x$cache_file" != "x/dev/null"; then
0e3762ca
CALP
30052 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30053$as_echo "$as_me: updating cache $cache_file" >&6;}
23d56208
AX
30054 if test ! -f "$cache_file" || test -h "$cache_file"; then
30055 cat confcache >"$cache_file"
30056 else
30057 case $cache_file in #(
30058 */* | ?:*)
30059 mv -f confcache "$cache_file"$$ &&
30060 mv -f "$cache_file"$$ "$cache_file" ;; #(
30061 *)
30062 mv -f confcache "$cache_file" ;;
30063 esac
30064 fi
30065 fi
0e3762ca
CALP
30066 else
30067 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30068$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30069 fi
30070fi
30071rm -f confcache
30072
30073test "x$prefix" = xNONE && prefix=$ac_default_prefix
30074# Let make expand exec_prefix.
30075test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30076
30077DEFS=-DHAVE_CONFIG_H
30078
30079ac_libobjs=
30080ac_ltlibobjs=
30081U=
30082for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30083 # 1. Remove the extension, and $U if already installed.
30084 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30085 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30086 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30087 # will be set to the directory where LIBOBJS objects are built.
30088 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30089 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30090done
30091LIBOBJS=$ac_libobjs
30092
30093LTLIBOBJS=$ac_ltlibobjs
30094
30095
30096if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30097 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
30098Usually this means the macro was only invoked conditionally." "$LINENO" 5
30099fi
30100 if test -n "$EXEEXT"; then
30101 am__EXEEXT_TRUE=
30102 am__EXEEXT_FALSE='#'
30103else
30104 am__EXEEXT_TRUE='#'
30105 am__EXEEXT_FALSE=
30106fi
30107
30108if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30109 as_fn_error $? "conditional \"AMDEP\" was never defined.
30110Usually this means the macro was only invoked conditionally." "$LINENO" 5
30111fi
30112if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30113 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
30114Usually this means the macro was only invoked conditionally." "$LINENO" 5
30115fi
30116if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
30117 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
30118Usually this means the macro was only invoked conditionally." "$LINENO" 5
30119fi
30120if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
30121 as_fn_error $? "conditional \"CONFIG_USER\" was never defined.
30122Usually this means the macro was only invoked conditionally." "$LINENO" 5
30123fi
30124if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
30125 as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined.
30126Usually this means the macro was only invoked conditionally." "$LINENO" 5
30127fi
30128
23d56208 30129: "${CONFIG_STATUS=./config.status}"
0e3762ca
CALP
30130ac_write_fail=0
30131ac_clean_files_save=$ac_clean_files
30132ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30133{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30134$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30135as_write_fail=0
30136cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30137#! $SHELL
30138# Generated by $as_me.
30139# Run this file to recreate the current configuration.
30140# Compiler output produced by configure, useful for debugging
30141# configure, is in config.log if it exists.
30142
30143debug=false
30144ac_cs_recheck=false
30145ac_cs_silent=false
30146
30147SHELL=\${CONFIG_SHELL-$SHELL}
30148export SHELL
30149_ASEOF
30150cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30151## -------------------- ##
30152## M4sh Initialization. ##
30153## -------------------- ##
30154
30155# Be more Bourne compatible
30156DUALCASE=1; export DUALCASE # for MKS sh
30157if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30158 emulate sh
30159 NULLCMD=:
30160 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30161 # is contrary to our usage. Disable this feature.
30162 alias -g '${1+"$@"}'='"$@"'
30163 setopt NO_GLOB_SUBST
30164else
30165 case `(set -o) 2>/dev/null` in #(
30166 *posix*) :
30167 set -o posix ;; #(
30168 *) :
30169 ;;
30170esac
30171fi
30172
30173
30174as_nl='
30175'
30176export as_nl
30177# Printing a long string crashes Solaris 7 /usr/bin/printf.
30178as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30179as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30180as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30181# Prefer a ksh shell builtin over an external printf program on Solaris,
30182# but without wasting forks for bash or zsh.
30183if test -z "$BASH_VERSION$ZSH_VERSION" \
30184 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30185 as_echo='print -r --'
30186 as_echo_n='print -rn --'
30187elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30188 as_echo='printf %s\n'
30189 as_echo_n='printf %s'
30190else
30191 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30192 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30193 as_echo_n='/usr/ucb/echo -n'
30194 else
30195 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30196 as_echo_n_body='eval
30197 arg=$1;
30198 case $arg in #(
30199 *"$as_nl"*)
30200 expr "X$arg" : "X\\(.*\\)$as_nl";
30201 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30202 esac;
30203 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30204 '
30205 export as_echo_n_body
30206 as_echo_n='sh -c $as_echo_n_body as_echo'
30207 fi
30208 export as_echo_body
30209 as_echo='sh -c $as_echo_body as_echo'
30210fi
30211
30212# The user is always right.
30213if test "${PATH_SEPARATOR+set}" != set; then
30214 PATH_SEPARATOR=:
30215 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30216 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30217 PATH_SEPARATOR=';'
30218 }
30219fi
30220
30221
30222# IFS
30223# We need space, tab and new line, in precisely that order. Quoting is
30224# there to prevent editors from complaining about space-tab.
30225# (If _AS_PATH_WALK were called with IFS unset, it would disable word
30226# splitting by setting IFS to empty value.)
30227IFS=" "" $as_nl"
30228
30229# Find who we are. Look in the path if we contain no directory separator.
23d56208 30230as_myself=
0e3762ca
CALP
30231case $0 in #((
30232 *[\\/]* ) as_myself=$0 ;;
30233 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30234for as_dir in $PATH
30235do
30236 IFS=$as_save_IFS
30237 test -z "$as_dir" && as_dir=.
30238 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30239 done
30240IFS=$as_save_IFS
30241
30242 ;;
30243esac
30244# We did not find ourselves, most probably we were run as `sh COMMAND'
30245# in which case we are not to be found in the path.
30246if test "x$as_myself" = x; then
30247 as_myself=$0
30248fi
30249if test ! -f "$as_myself"; then
30250 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30251 exit 1
30252fi
30253
30254# Unset variables that we do not need and which cause bugs (e.g. in
30255# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30256# suppresses any "Segmentation fault" message there. '((' could
30257# trigger a bug in pdksh 5.2.14.
30258for as_var in BASH_ENV ENV MAIL MAILPATH
30259do eval test x\${$as_var+set} = xset \
30260 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30261done
30262PS1='$ '
30263PS2='> '
30264PS4='+ '
30265
30266# NLS nuisances.
30267LC_ALL=C
30268export LC_ALL
30269LANGUAGE=C
30270export LANGUAGE
30271
30272# CDPATH.
30273(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30274
30275
30276# as_fn_error STATUS ERROR [LINENO LOG_FD]
30277# ----------------------------------------
30278# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30279# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30280# script with STATUS, using 1 if that was 0.
30281as_fn_error ()
30282{
30283 as_status=$1; test $as_status -eq 0 && as_status=1
30284 if test "$4"; then
30285 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30286 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30287 fi
30288 $as_echo "$as_me: error: $2" >&2
30289 as_fn_exit $as_status
30290} # as_fn_error
30291
30292
30293# as_fn_set_status STATUS
30294# -----------------------
30295# Set $? to STATUS, without forking.
30296as_fn_set_status ()
30297{
30298 return $1
30299} # as_fn_set_status
30300
30301# as_fn_exit STATUS
30302# -----------------
30303# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30304as_fn_exit ()
30305{
30306 set +e
30307 as_fn_set_status $1
30308 exit $1
30309} # as_fn_exit
30310
30311# as_fn_unset VAR
30312# ---------------
30313# Portably unset VAR.
30314as_fn_unset ()
30315{
30316 { eval $1=; unset $1;}
30317}
30318as_unset=as_fn_unset
30319# as_fn_append VAR VALUE
30320# ----------------------
30321# Append the text in VALUE to the end of the definition contained in VAR. Take
30322# advantage of any shell optimizations that allow amortized linear growth over
30323# repeated appends, instead of the typical quadratic growth present in naive
30324# implementations.
30325if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30326 eval 'as_fn_append ()
30327 {
30328 eval $1+=\$2
30329 }'
30330else
30331 as_fn_append ()
30332 {
30333 eval $1=\$$1\$2
30334 }
30335fi # as_fn_append
30336
30337# as_fn_arith ARG...
30338# ------------------
30339# Perform arithmetic evaluation on the ARGs, and store the result in the
30340# global $as_val. Take advantage of shells that can avoid forks. The arguments
30341# must be portable across $(()) and expr.
30342if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30343 eval 'as_fn_arith ()
30344 {
30345 as_val=$(( $* ))
30346 }'
30347else
30348 as_fn_arith ()
30349 {
30350 as_val=`expr "$@" || test $? -eq 1`
30351 }
30352fi # as_fn_arith
30353
30354
30355if expr a : '\(a\)' >/dev/null 2>&1 &&
30356 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30357 as_expr=expr
30358else
30359 as_expr=false
30360fi
30361
30362if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30363 as_basename=basename
30364else
30365 as_basename=false
30366fi
30367
30368if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30369 as_dirname=dirname
30370else
30371 as_dirname=false
30372fi
30373
30374as_me=`$as_basename -- "$0" ||
30375$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30376 X"$0" : 'X\(//\)$' \| \
30377 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30378$as_echo X/"$0" |
30379 sed '/^.*\/\([^/][^/]*\)\/*$/{
30380 s//\1/
30381 q
30382 }
30383 /^X\/\(\/\/\)$/{
30384 s//\1/
30385 q
30386 }
30387 /^X\/\(\/\).*/{
30388 s//\1/
30389 q
30390 }
30391 s/.*/./; q'`
30392
30393# Avoid depending upon Character Ranges.
30394as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30395as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30396as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30397as_cr_digits='0123456789'
30398as_cr_alnum=$as_cr_Letters$as_cr_digits
30399
30400ECHO_C= ECHO_N= ECHO_T=
30401case `echo -n x` in #(((((
30402-n*)
30403 case `echo 'xy\c'` in
30404 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30405 xy) ECHO_C='\c';;
30406 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30407 ECHO_T=' ';;
30408 esac;;
30409*)
30410 ECHO_N='-n';;
30411esac
30412
30413rm -f conf$$ conf$$.exe conf$$.file
30414if test -d conf$$.dir; then
30415 rm -f conf$$.dir/conf$$.file
30416else
30417 rm -f conf$$.dir
30418 mkdir conf$$.dir 2>/dev/null
30419fi
30420if (echo >conf$$.file) 2>/dev/null; then
30421 if ln -s conf$$.file conf$$ 2>/dev/null; then
30422 as_ln_s='ln -s'
30423 # ... but there are two gotchas:
30424 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30425 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30426 # In both cases, we have to default to `cp -p'.
30427 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30428 as_ln_s='cp -p'
30429 elif ln conf$$.file conf$$ 2>/dev/null; then
30430 as_ln_s=ln
30431 else
30432 as_ln_s='cp -p'
30433 fi
30434else
30435 as_ln_s='cp -p'
30436fi
30437rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30438rmdir conf$$.dir 2>/dev/null
30439
30440
30441# as_fn_mkdir_p
30442# -------------
30443# Create "$as_dir" as a directory, including parents if necessary.
30444as_fn_mkdir_p ()
30445{
30446
30447 case $as_dir in #(
30448 -*) as_dir=./$as_dir;;
30449 esac
30450 test -d "$as_dir" || eval $as_mkdir_p || {
30451 as_dirs=
30452 while :; do
30453 case $as_dir in #(
30454 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30455 *) as_qdir=$as_dir;;
30456 esac
30457 as_dirs="'$as_qdir' $as_dirs"
30458 as_dir=`$as_dirname -- "$as_dir" ||
30459$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30460 X"$as_dir" : 'X\(//\)[^/]' \| \
30461 X"$as_dir" : 'X\(//\)$' \| \
30462 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30463$as_echo X"$as_dir" |
30464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30465 s//\1/
30466 q
30467 }
30468 /^X\(\/\/\)[^/].*/{
30469 s//\1/
30470 q
30471 }
30472 /^X\(\/\/\)$/{
30473 s//\1/
30474 q
30475 }
30476 /^X\(\/\).*/{
30477 s//\1/
30478 q
30479 }
30480 s/.*/./; q'`
30481 test -d "$as_dir" && break
30482 done
30483 test -z "$as_dirs" || eval "mkdir $as_dirs"
30484 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30485
30486
30487} # as_fn_mkdir_p
30488if mkdir -p . 2>/dev/null; then
30489 as_mkdir_p='mkdir -p "$as_dir"'
30490else
30491 test -d ./-p && rmdir ./-p
30492 as_mkdir_p=false
30493fi
30494
30495if test -x / >/dev/null 2>&1; then
30496 as_test_x='test -x'
30497else
30498 if ls -dL / >/dev/null 2>&1; then
30499 as_ls_L_option=L
30500 else
30501 as_ls_L_option=
30502 fi
30503 as_test_x='
30504 eval sh -c '\''
30505 if test -d "$1"; then
30506 test -d "$1/.";
30507 else
30508 case $1 in #(
30509 -*)set "./$1";;
30510 esac;
30511 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30512 ???[sx]*):;;*)false;;esac;fi
30513 '\'' sh
30514 '
30515fi
30516as_executable_p=$as_test_x
30517
30518# Sed expression to map a string onto a valid CPP name.
30519as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30520
30521# Sed expression to map a string onto a valid variable name.
30522as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30523
30524
30525exec 6>&1
30526## ----------------------------------- ##
30527## Main body of $CONFIG_STATUS script. ##
30528## ----------------------------------- ##
30529_ASEOF
30530test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30531
30532cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30533# Save the log message, to keep $0 and so on meaningful, and to
30534# report actual input values of CONFIG_FILES etc. instead of their
30535# values after options handling.
30536ac_log="
23d56208
AX
30537This file was extended by zfs $as_me 0.6.5.3, which was
30538generated by GNU Autoconf 2.68. Invocation command line was
0e3762ca
CALP
30539
30540 CONFIG_FILES = $CONFIG_FILES
30541 CONFIG_HEADERS = $CONFIG_HEADERS
30542 CONFIG_LINKS = $CONFIG_LINKS
30543 CONFIG_COMMANDS = $CONFIG_COMMANDS
30544 $ $0 $@
30545
30546on `(hostname || uname -n) 2>/dev/null | sed 1q`
30547"
30548
30549_ACEOF
30550
30551case $ac_config_files in *"
30552"*) set x $ac_config_files; shift; ac_config_files=$*;;
30553esac
30554
30555case $ac_config_headers in *"
30556"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30557esac
30558
30559
30560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30561# Files that config.status was made for.
30562config_files="$ac_config_files"
30563config_headers="$ac_config_headers"
30564config_commands="$ac_config_commands"
30565
30566_ACEOF
30567
30568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30569ac_cs_usage="\
30570\`$as_me' instantiates files and other configuration actions
30571from templates according to the current configuration. Unless the files
30572and actions are specified as TAGs, all are instantiated by default.
30573
30574Usage: $0 [OPTION]... [TAG]...
30575
30576 -h, --help print this help, then exit
30577 -V, --version print version number and configuration settings, then exit
30578 --config print configuration, then exit
30579 -q, --quiet, --silent
30580 do not print progress messages
30581 -d, --debug don't remove temporary files
30582 --recheck update $as_me by reconfiguring in the same conditions
30583 --file=FILE[:TEMPLATE]
30584 instantiate the configuration file FILE
30585 --header=FILE[:TEMPLATE]
30586 instantiate the configuration header FILE
30587
30588Configuration files:
30589$config_files
30590
30591Configuration headers:
30592$config_headers
30593
30594Configuration commands:
30595$config_commands
30596
30597Report bugs to the package provider."
30598
30599_ACEOF
30600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30601ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30602ac_cs_version="\\
23d56208
AX
30603zfs config.status 0.6.5.3
30604configured by $0, generated by GNU Autoconf 2.68,
0e3762ca
CALP
30605 with options \\"\$ac_cs_config\\"
30606
30607Copyright (C) 2010 Free Software Foundation, Inc.
30608This config.status script is free software; the Free Software Foundation
30609gives unlimited permission to copy, distribute and modify it."
30610
30611ac_pwd='$ac_pwd'
30612srcdir='$srcdir'
30613INSTALL='$INSTALL'
30614MKDIR_P='$MKDIR_P'
30615AWK='$AWK'
30616test -n "\$AWK" || AWK=awk
30617_ACEOF
30618
30619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30620# The default lists apply if the user does not specify any file.
30621ac_need_defaults=:
30622while test $# != 0
30623do
30624 case $1 in
30625 --*=?*)
30626 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30627 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30628 ac_shift=:
30629 ;;
30630 --*=)
30631 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30632 ac_optarg=
30633 ac_shift=:
30634 ;;
30635 *)
30636 ac_option=$1
30637 ac_optarg=$2
30638 ac_shift=shift
30639 ;;
30640 esac
30641
30642 case $ac_option in
30643 # Handling of the options.
30644 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30645 ac_cs_recheck=: ;;
30646 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30647 $as_echo "$ac_cs_version"; exit ;;
30648 --config | --confi | --conf | --con | --co | --c )
30649 $as_echo "$ac_cs_config"; exit ;;
30650 --debug | --debu | --deb | --de | --d | -d )
30651 debug=: ;;
30652 --file | --fil | --fi | --f )
30653 $ac_shift
30654 case $ac_optarg in
30655 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30656 '') as_fn_error $? "missing file argument" ;;
30657 esac
30658 as_fn_append CONFIG_FILES " '$ac_optarg'"
30659 ac_need_defaults=false;;
30660 --header | --heade | --head | --hea )
30661 $ac_shift
30662 case $ac_optarg in
30663 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30664 esac
30665 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30666 ac_need_defaults=false;;
30667 --he | --h)
30668 # Conflict between --help and --header
30669 as_fn_error $? "ambiguous option: \`$1'
30670Try \`$0 --help' for more information.";;
30671 --help | --hel | -h )
30672 $as_echo "$ac_cs_usage"; exit ;;
30673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30674 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30675 ac_cs_silent=: ;;
30676
30677 # This is an error.
30678 -*) as_fn_error $? "unrecognized option: \`$1'
30679Try \`$0 --help' for more information." ;;
30680
30681 *) as_fn_append ac_config_targets " $1"
30682 ac_need_defaults=false ;;
30683
30684 esac
30685 shift
30686done
30687
30688ac_configure_extra_args=
30689
30690if $ac_cs_silent; then
30691 exec 6>/dev/null
30692 ac_configure_extra_args="$ac_configure_extra_args --silent"
30693fi
30694
30695_ACEOF
30696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30697if \$ac_cs_recheck; then
30698 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30699 shift
30700 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30701 CONFIG_SHELL='$SHELL'
30702 export CONFIG_SHELL
30703 exec "\$@"
30704fi
30705
30706_ACEOF
30707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30708exec 5>>config.log
30709{
30710 echo
30711 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30712## Running $as_me. ##
30713_ASBOX
30714 $as_echo "$ac_log"
30715} >&5
30716
30717_ACEOF
30718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30719#
30720# INIT-COMMANDS
30721#
30722AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30723
30724
30725# The HP-UX ksh and POSIX shell print the target directory to stdout
30726# if CDPATH is set.
30727(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30728
30729sed_quote_subst='$sed_quote_subst'
30730double_quote_subst='$double_quote_subst'
30731delay_variable_subst='$delay_variable_subst'
23d56208
AX
30732macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
30733macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
30734enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
30735enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
30736pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
30737enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
30738SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
30739ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
30740PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
30741host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
30742host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
30743host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
30744build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
30745build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
30746build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
30747SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
30748Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
30749GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
30750EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
30751FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
30752LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
30753NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
30754LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
30755max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
30756ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
30757exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
30758lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
30759lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
30760lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
30761lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
30762lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
30763reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
30764reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
30765OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
30766deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
30767file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
30768file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
30769want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
30770DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
30771sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
30772AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
30773AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
30774archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
30775STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
30776RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
30777old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
30778old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
30779old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
30780lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
30781CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
30782CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
30783compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
30784GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
30785lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
30786lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
30787lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
30788lt_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"`'
30789nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
30790lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
30791objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
30792MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
30793lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
30794lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
30795lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
30796lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
30797lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
30798need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
30799MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
30800DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
30801NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
30802LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
30803OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
30804OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
30805libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
30806shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
30807extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
30808archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
30809enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
30810export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
30811whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
30812compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
30813old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
30814old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
30815archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
30816archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
30817module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
30818module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
30819with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
30820allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
30821no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
30822hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
30823hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
30824hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
30825hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
30826hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
30827hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
30828hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
30829inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
30830link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
30831always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
30832export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
30833exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
30834include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
30835prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
30836postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
30837file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
30838variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
30839need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
30840need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
30841version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
30842runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
30843shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
30844shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
30845libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
30846library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
30847soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
30848install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
30849postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
30850postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
30851finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
30852finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
30853hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
30854sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
30855sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
30856hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
30857enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
30858enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
30859enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
30860old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
30861striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
0e3762ca
CALP
30862
30863LTCC='$LTCC'
30864LTCFLAGS='$LTCFLAGS'
30865compiler='$compiler_DEFAULT'
30866
23d56208
AX
30867# A function that is used when there is no print builtin or printf.
30868func_fallback_echo ()
30869{
30870 eval 'cat <<_LTECHO_EOF
30871\$1
30872_LTECHO_EOF'
30873}
30874
0e3762ca 30875# Quote evaled strings.
23d56208
AX
30876for var in SHELL \
30877ECHO \
30878PATH_SEPARATOR \
30879SED \
0e3762ca
CALP
30880GREP \
30881EGREP \
30882FGREP \
30883LD \
30884NM \
30885LN_S \
30886lt_SP2NL \
30887lt_NL2SP \
30888reload_flag \
30889OBJDUMP \
30890deplibs_check_method \
30891file_magic_cmd \
23d56208
AX
30892file_magic_glob \
30893want_nocaseglob \
30894DLLTOOL \
30895sharedlib_from_linklib_cmd \
0e3762ca
CALP
30896AR \
30897AR_FLAGS \
23d56208 30898archiver_list_spec \
0e3762ca
CALP
30899STRIP \
30900RANLIB \
30901CC \
30902CFLAGS \
30903compiler \
30904lt_cv_sys_global_symbol_pipe \
30905lt_cv_sys_global_symbol_to_cdecl \
30906lt_cv_sys_global_symbol_to_c_name_address \
30907lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23d56208 30908nm_file_list_spec \
0e3762ca 30909lt_prog_compiler_no_builtin_flag \
0e3762ca 30910lt_prog_compiler_pic \
23d56208 30911lt_prog_compiler_wl \
0e3762ca
CALP
30912lt_prog_compiler_static \
30913lt_cv_prog_compiler_c_o \
30914need_locks \
23d56208 30915MANIFEST_TOOL \
0e3762ca
CALP
30916DSYMUTIL \
30917NMEDIT \
30918LIPO \
30919OTOOL \
30920OTOOL64 \
30921shrext_cmds \
30922export_dynamic_flag_spec \
30923whole_archive_flag_spec \
30924compiler_needs_object \
30925with_gnu_ld \
30926allow_undefined_flag \
30927no_undefined_flag \
30928hardcode_libdir_flag_spec \
0e3762ca 30929hardcode_libdir_separator \
0e3762ca
CALP
30930exclude_expsyms \
30931include_expsyms \
30932file_list_spec \
30933variables_saved_for_relink \
30934libname_spec \
30935library_names_spec \
30936soname_spec \
23d56208 30937install_override_mode \
0e3762ca
CALP
30938finish_eval \
30939old_striplib \
30940striplib; do
23d56208 30941 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
0e3762ca 30942 *[\\\\\\\`\\"\\\$]*)
23d56208 30943 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
0e3762ca
CALP
30944 ;;
30945 *)
30946 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30947 ;;
30948 esac
30949done
30950
30951# Double-quote double-evaled strings.
30952for var in reload_cmds \
30953old_postinstall_cmds \
30954old_postuninstall_cmds \
30955old_archive_cmds \
30956extract_expsyms_cmds \
30957old_archive_from_new_cmds \
30958old_archive_from_expsyms_cmds \
30959archive_cmds \
30960archive_expsym_cmds \
30961module_cmds \
30962module_expsym_cmds \
30963export_symbols_cmds \
30964prelink_cmds \
23d56208 30965postlink_cmds \
0e3762ca
CALP
30966postinstall_cmds \
30967postuninstall_cmds \
30968finish_cmds \
30969sys_lib_search_path_spec \
30970sys_lib_dlsearch_path_spec; do
23d56208 30971 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
0e3762ca 30972 *[\\\\\\\`\\"\\\$]*)
23d56208 30973 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
0e3762ca
CALP
30974 ;;
30975 *)
30976 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30977 ;;
30978 esac
30979done
30980
0e3762ca
CALP
30981ac_aux_dir='$ac_aux_dir'
30982xsi_shell='$xsi_shell'
30983lt_shell_append='$lt_shell_append'
30984
30985# See if we are running on zsh, and set the options which allow our
30986# commands through without removal of \ escapes INIT.
30987if test -n "\${ZSH_VERSION+set}" ; then
30988 setopt NO_GLOB_SUBST
30989fi
30990
30991
30992 PACKAGE='$PACKAGE'
30993 VERSION='$VERSION'
30994 TIMESTAMP='$TIMESTAMP'
30995 RM='$RM'
30996 ofile='$ofile'
30997
30998
30999
31000
31001_ACEOF
31002
31003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31004
31005# Handling of arguments.
31006for ac_config_target in $ac_config_targets
31007do
31008 case $ac_config_target in
31009 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
31010 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31011 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31012 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
0e3762ca
CALP
31013 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
31014 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
31015 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
31016 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
31017 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
23d56208
AX
31018 "etc/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/Makefile" ;;
31019 "etc/systemd/system/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/system/Makefile" ;;
31020 "etc/modules-load.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/modules-load.d/Makefile" ;;
0e3762ca
CALP
31021 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
31022 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
31023 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
31024 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
31025 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
31026 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
31027 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
31028 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
31029 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
31030 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
31031 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
31032 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
31033 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
31034 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
31035 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
31036 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
31037 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
31038 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
31039 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
31040 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
31041 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
31042 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
31043 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
23d56208
AX
31044 "lib/libzfs/libzfs.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs.pc" ;;
31045 "lib/libzfs/libzfs_core.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs_core.pc" ;;
0e3762ca 31046 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
23d56208 31047 "lib/libzfs_core/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs_core/Makefile" ;;
0e3762ca
CALP
31048 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
31049 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
31050 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
31051 "cmd/zhack/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zhack/Makefile" ;;
31052 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
31053 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
31054 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
31055 "cmd/zstreamdump/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
31056 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
31057 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
31058 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
31059 "cmd/fsck_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
31060 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
31061 "cmd/vdev_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
c06d4368 31062 "cmd/arcstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arcstat/Makefile" ;;
23d56208
AX
31063 "cmd/dbufstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/dbufstat/Makefile" ;;
31064 "cmd/arc_summary/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arc_summary/Makefile" ;;
31065 "cmd/zed/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zed/Makefile" ;;
31066 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
31067 "contrib/bash_completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/bash_completion.d/Makefile" ;;
31068 "contrib/dracut/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/Makefile" ;;
31069 "contrib/dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/90zfs/Makefile" ;;
31070 "contrib/initramfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/initramfs/Makefile" ;;
0e3762ca
CALP
31071 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
31072 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
31073 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
31074 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
31075 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
31076 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
31077 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
31078 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
31079 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
31080 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
31081 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
31082 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
31083 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
31084 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31085 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
31086 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
31087 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
31088 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
31089 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
23d56208
AX
31090 "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;;
31091 "rpm/redhat/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs.spec" ;;
31092 "rpm/redhat/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-kmod.spec" ;;
31093 "rpm/redhat/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-dkms.spec" ;;
0e3762ca
CALP
31094 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
31095 "rpm/generic/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs.spec" ;;
31096 "rpm/generic/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
31097 "rpm/generic/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
31098 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
31099 "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;;
31100
23d56208 31101 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
0e3762ca
CALP
31102 esac
31103done
31104
31105
31106# If the user did not use the arguments to specify the items to instantiate,
31107# then the envvar interface is used. Set only those that are not.
31108# We use the long form for the default assignment because of an extremely
31109# bizarre bug on SunOS 4.1.3.
31110if $ac_need_defaults; then
31111 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31112 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31113 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31114fi
31115
31116# Have a temporary directory for convenience. Make it in the build tree
31117# simply because there is no reason against having it here, and in addition,
31118# creating and moving files from /tmp can sometimes cause problems.
31119# Hook for its removal unless debugging.
31120# Note that there is a small window in which the directory will not be cleaned:
31121# after its creation but before its name has been assigned to `$tmp'.
31122$debug ||
31123{
23d56208 31124 tmp= ac_tmp=
0e3762ca 31125 trap 'exit_status=$?
23d56208
AX
31126 : "${ac_tmp:=$tmp}"
31127 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
0e3762ca
CALP
31128' 0
31129 trap 'as_fn_exit 1' 1 2 13 15
31130}
31131# Create a (secure) tmp directory for tmp files.
31132
31133{
31134 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23d56208 31135 test -d "$tmp"
0e3762ca
CALP
31136} ||
31137{
31138 tmp=./conf$$-$RANDOM
31139 (umask 077 && mkdir "$tmp")
31140} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23d56208 31141ac_tmp=$tmp
0e3762ca
CALP
31142
31143# Set up the scripts for CONFIG_FILES section.
31144# No need to generate them if there are no CONFIG_FILES.
31145# This happens for instance with `./config.status config.h'.
31146if test -n "$CONFIG_FILES"; then
31147
31148
31149ac_cr=`echo X | tr X '\015'`
31150# On cygwin, bash can eat \r inside `` if the user requested igncr.
31151# But we know of no other shell where ac_cr would be empty at this
31152# point, so we can use a bashism as a fallback.
31153if test "x$ac_cr" = x; then
31154 eval ac_cr=\$\'\\r\'
31155fi
31156ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31157if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31158 ac_cs_awk_cr='\\r'
31159else
31160 ac_cs_awk_cr=$ac_cr
31161fi
31162
23d56208 31163echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
0e3762ca
CALP
31164_ACEOF
31165
31166
31167{
31168 echo "cat >conf$$subs.awk <<_ACEOF" &&
31169 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31170 echo "_ACEOF"
31171} >conf$$subs.sh ||
31172 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31173ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31174ac_delim='%!_!# '
31175for ac_last_try in false false false false false :; do
31176 . ./conf$$subs.sh ||
31177 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31178
31179 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31180 if test $ac_delim_n = $ac_delim_num; then
31181 break
31182 elif $ac_last_try; then
31183 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31184 else
31185 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31186 fi
31187done
31188rm -f conf$$subs.sh
31189
31190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23d56208 31191cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
0e3762ca
CALP
31192_ACEOF
31193sed -n '
31194h
31195s/^/S["/; s/!.*/"]=/
31196p
31197g
31198s/^[^!]*!//
31199:repl
31200t repl
31201s/'"$ac_delim"'$//
31202t delim
31203:nl
31204h
31205s/\(.\{148\}\)..*/\1/
31206t more1
31207s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31208p
31209n
31210b repl
31211:more1
31212s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31213p
31214g
31215s/.\{148\}//
31216t nl
31217:delim
31218h
31219s/\(.\{148\}\)..*/\1/
31220t more2
31221s/["\\]/\\&/g; s/^/"/; s/$/"/
31222p
31223b
31224:more2
31225s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31226p
31227g
31228s/.\{148\}//
31229t delim
31230' <conf$$subs.awk | sed '
31231/^[^""]/{
31232 N
31233 s/\n//
31234}
31235' >>$CONFIG_STATUS || ac_write_fail=1
31236rm -f conf$$subs.awk
31237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31238_ACAWK
23d56208 31239cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
0e3762ca
CALP
31240 for (key in S) S_is_set[key] = 1
31241 FS = "\a"
31242
31243}
31244{
31245 line = $ 0
31246 nfields = split(line, field, "@")
31247 substed = 0
31248 len = length(field[1])
31249 for (i = 2; i < nfields; i++) {
31250 key = field[i]
31251 keylen = length(key)
31252 if (S_is_set[key]) {
31253 value = S[key]
31254 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31255 len += length(value) + length(field[++i])
31256 substed = 1
31257 } else
31258 len += 1 + keylen
31259 }
31260
31261 print line
31262}
31263
31264_ACAWK
31265_ACEOF
31266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31267if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31268 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31269else
31270 cat
23d56208 31271fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
0e3762ca
CALP
31272 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31273_ACEOF
31274
31275# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31276# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31277# trailing colons and then remove the whole line if VPATH becomes empty
31278# (actually we leave an empty line to preserve line numbers).
31279if test "x$srcdir" = x.; then
31280 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31281h
31282s///
31283s/^/:/
31284s/[ ]*$/:/
31285s/:\$(srcdir):/:/g
31286s/:\${srcdir}:/:/g
31287s/:@srcdir@:/:/g
31288s/^:*//
31289s/:*$//
31290x
31291s/\(=[ ]*\).*/\1/
31292G
31293s/\n//
31294s/^[^=]*=[ ]*$//
31295}'
31296fi
31297
31298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31299fi # test -n "$CONFIG_FILES"
31300
31301# Set up the scripts for CONFIG_HEADERS section.
31302# No need to generate them if there are no CONFIG_HEADERS.
31303# This happens for instance with `./config.status Makefile'.
31304if test -n "$CONFIG_HEADERS"; then
23d56208 31305cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
0e3762ca
CALP
31306BEGIN {
31307_ACEOF
31308
31309# Transform confdefs.h into an awk script `defines.awk', embedded as
31310# here-document in config.status, that substitutes the proper values into
31311# config.h.in to produce config.h.
31312
31313# Create a delimiter string that does not exist in confdefs.h, to ease
31314# handling of long lines.
31315ac_delim='%!_!# '
31316for ac_last_try in false false :; do
23d56208
AX
31317 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31318 if test -z "$ac_tt"; then
0e3762ca
CALP
31319 break
31320 elif $ac_last_try; then
31321 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31322 else
31323 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31324 fi
31325done
31326
31327# For the awk script, D is an array of macro values keyed by name,
31328# likewise P contains macro parameters if any. Preserve backslash
31329# newline sequences.
31330
31331ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31332sed -n '
31333s/.\{148\}/&'"$ac_delim"'/g
31334t rset
31335:rset
31336s/^[ ]*#[ ]*define[ ][ ]*/ /
31337t def
31338d
31339:def
31340s/\\$//
31341t bsnl
31342s/["\\]/\\&/g
31343s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31344D["\1"]=" \3"/p
31345s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31346d
31347:bsnl
31348s/["\\]/\\&/g
31349s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31350D["\1"]=" \3\\\\\\n"\\/p
31351t cont
31352s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31353t cont
31354d
31355:cont
31356n
31357s/.\{148\}/&'"$ac_delim"'/g
31358t clear
31359:clear
31360s/\\$//
31361t bsnlc
31362s/["\\]/\\&/g; s/^/"/; s/$/"/p
31363d
31364:bsnlc
31365s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31366b cont
31367' <confdefs.h | sed '
31368s/'"$ac_delim"'/"\\\
31369"/g' >>$CONFIG_STATUS || ac_write_fail=1
31370
31371cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31372 for (key in D) D_is_set[key] = 1
31373 FS = "\a"
31374}
31375/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31376 line = \$ 0
31377 split(line, arg, " ")
31378 if (arg[1] == "#") {
31379 defundef = arg[2]
31380 mac1 = arg[3]
31381 } else {
31382 defundef = substr(arg[1], 2)
31383 mac1 = arg[2]
31384 }
31385 split(mac1, mac2, "(") #)
31386 macro = mac2[1]
31387 prefix = substr(line, 1, index(line, defundef) - 1)
31388 if (D_is_set[macro]) {
31389 # Preserve the white space surrounding the "#".
31390 print prefix "define", macro P[macro] D[macro]
31391 next
31392 } else {
31393 # Replace #undef with comments. This is necessary, for example,
31394 # in the case of _POSIX_SOURCE, which is predefined and required
31395 # on some systems where configure will not decide to define it.
31396 if (defundef == "undef") {
31397 print "/*", prefix defundef, macro, "*/"
31398 next
31399 }
31400 }
31401}
31402{ print }
31403_ACAWK
31404_ACEOF
31405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31406 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31407fi # test -n "$CONFIG_HEADERS"
31408
31409
31410eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31411shift
31412for ac_tag
31413do
31414 case $ac_tag in
31415 :[FHLC]) ac_mode=$ac_tag; continue;;
31416 esac
31417 case $ac_mode$ac_tag in
31418 :[FHL]*:*);;
23d56208 31419 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
0e3762ca
CALP
31420 :[FH]-) ac_tag=-:-;;
31421 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31422 esac
31423 ac_save_IFS=$IFS
31424 IFS=:
31425 set x $ac_tag
31426 IFS=$ac_save_IFS
31427 shift
31428 ac_file=$1
31429 shift
31430
31431 case $ac_mode in
31432 :L) ac_source=$1;;
31433 :[FH])
31434 ac_file_inputs=
31435 for ac_f
31436 do
31437 case $ac_f in
23d56208 31438 -) ac_f="$ac_tmp/stdin";;
0e3762ca
CALP
31439 *) # Look for the file first in the build tree, then in the source tree
31440 # (if the path is not absolute). The absolute path cannot be DOS-style,
31441 # because $ac_f cannot contain `:'.
31442 test -f "$ac_f" ||
31443 case $ac_f in
31444 [\\/$]*) false;;
31445 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31446 esac ||
23d56208 31447 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
0e3762ca
CALP
31448 esac
31449 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31450 as_fn_append ac_file_inputs " '$ac_f'"
31451 done
31452
31453 # Let's still pretend it is `configure' which instantiates (i.e., don't
31454 # use $as_me), people would be surprised to read:
31455 # /* config.h. Generated by config.status. */
31456 configure_input='Generated from '`
31457 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31458 `' by configure.'
31459 if test x"$ac_file" != x-; then
31460 configure_input="$ac_file. $configure_input"
31461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31462$as_echo "$as_me: creating $ac_file" >&6;}
31463 fi
31464 # Neutralize special characters interpreted by sed in replacement strings.
31465 case $configure_input in #(
31466 *\&* | *\|* | *\\* )
31467 ac_sed_conf_input=`$as_echo "$configure_input" |
31468 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31469 *) ac_sed_conf_input=$configure_input;;
31470 esac
31471
31472 case $ac_tag in
23d56208
AX
31473 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31474 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
0e3762ca
CALP
31475 esac
31476 ;;
31477 esac
31478
31479 ac_dir=`$as_dirname -- "$ac_file" ||
31480$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31481 X"$ac_file" : 'X\(//\)[^/]' \| \
31482 X"$ac_file" : 'X\(//\)$' \| \
31483 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31484$as_echo X"$ac_file" |
31485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31486 s//\1/
31487 q
31488 }
31489 /^X\(\/\/\)[^/].*/{
31490 s//\1/
31491 q
31492 }
31493 /^X\(\/\/\)$/{
31494 s//\1/
31495 q
31496 }
31497 /^X\(\/\).*/{
31498 s//\1/
31499 q
31500 }
31501 s/.*/./; q'`
31502 as_dir="$ac_dir"; as_fn_mkdir_p
31503 ac_builddir=.
31504
31505case "$ac_dir" in
31506.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31507*)
31508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31509 # A ".." for each directory in $ac_dir_suffix.
31510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31511 case $ac_top_builddir_sub in
31512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31514 esac ;;
31515esac
31516ac_abs_top_builddir=$ac_pwd
31517ac_abs_builddir=$ac_pwd$ac_dir_suffix
31518# for backward compatibility:
31519ac_top_builddir=$ac_top_build_prefix
31520
31521case $srcdir in
31522 .) # We are building in place.
31523 ac_srcdir=.
31524 ac_top_srcdir=$ac_top_builddir_sub
31525 ac_abs_top_srcdir=$ac_pwd ;;
31526 [\\/]* | ?:[\\/]* ) # Absolute name.
31527 ac_srcdir=$srcdir$ac_dir_suffix;
31528 ac_top_srcdir=$srcdir
31529 ac_abs_top_srcdir=$srcdir ;;
31530 *) # Relative name.
31531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31532 ac_top_srcdir=$ac_top_build_prefix$srcdir
31533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31534esac
31535ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31536
31537
31538 case $ac_mode in
31539 :F)
31540 #
31541 # CONFIG_FILE
31542 #
31543
31544 case $INSTALL in
31545 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31546 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31547 esac
31548 ac_MKDIR_P=$MKDIR_P
31549 case $MKDIR_P in
31550 [\\/$]* | ?:[\\/]* ) ;;
31551 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31552 esac
31553_ACEOF
31554
31555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31556# If the template does not know about datarootdir, expand it.
31557# FIXME: This hack should be removed a few years after 2.60.
31558ac_datarootdir_hack=; ac_datarootdir_seen=
31559ac_sed_dataroot='
31560/datarootdir/ {
31561 p
31562 q
31563}
31564/@datadir@/p
31565/@docdir@/p
31566/@infodir@/p
31567/@localedir@/p
31568/@mandir@/p'
31569case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31570*datarootdir*) ac_datarootdir_seen=yes;;
31571*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31573$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31574_ACEOF
31575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31576 ac_datarootdir_hack='
31577 s&@datadir@&$datadir&g
31578 s&@docdir@&$docdir&g
31579 s&@infodir@&$infodir&g
31580 s&@localedir@&$localedir&g
31581 s&@mandir@&$mandir&g
31582 s&\\\${datarootdir}&$datarootdir&g' ;;
31583esac
31584_ACEOF
31585
31586# Neutralize VPATH when `$srcdir' = `.'.
31587# Shell code in configure.ac might set extrasub.
31588# FIXME: do we really want to maintain this feature?
31589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31590ac_sed_extra="$ac_vpsub
31591$extrasub
31592_ACEOF
31593cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31594:t
31595/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31596s|@configure_input@|$ac_sed_conf_input|;t t
31597s&@top_builddir@&$ac_top_builddir_sub&;t t
31598s&@top_build_prefix@&$ac_top_build_prefix&;t t
31599s&@srcdir@&$ac_srcdir&;t t
31600s&@abs_srcdir@&$ac_abs_srcdir&;t t
31601s&@top_srcdir@&$ac_top_srcdir&;t t
31602s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31603s&@builddir@&$ac_builddir&;t t
31604s&@abs_builddir@&$ac_abs_builddir&;t t
31605s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31606s&@INSTALL@&$ac_INSTALL&;t t
31607s&@MKDIR_P@&$ac_MKDIR_P&;t t
31608$ac_datarootdir_hack
31609"
23d56208
AX
31610eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
31611 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
0e3762ca
CALP
31612
31613test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23d56208
AX
31614 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31615 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31616 "$ac_tmp/out"`; test -z "$ac_out"; } &&
0e3762ca
CALP
31617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31618which seems to be undefined. Please make sure it is defined" >&5
31619$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31620which seems to be undefined. Please make sure it is defined" >&2;}
31621
23d56208 31622 rm -f "$ac_tmp/stdin"
0e3762ca 31623 case $ac_file in
23d56208
AX
31624 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31625 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
0e3762ca
CALP
31626 esac \
31627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31628 ;;
31629 :H)
31630 #
31631 # CONFIG_HEADER
31632 #
31633 if test x"$ac_file" != x-; then
31634 {
31635 $as_echo "/* $configure_input */" \
23d56208
AX
31636 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31637 } >"$ac_tmp/config.h" \
0e3762ca 31638 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23d56208 31639 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
0e3762ca
CALP
31640 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31641$as_echo "$as_me: $ac_file is unchanged" >&6;}
31642 else
31643 rm -f "$ac_file"
23d56208 31644 mv "$ac_tmp/config.h" "$ac_file" \
0e3762ca
CALP
31645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31646 fi
31647 else
31648 $as_echo "/* $configure_input */" \
23d56208 31649 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
0e3762ca
CALP
31650 || as_fn_error $? "could not create -" "$LINENO" 5
31651 fi
31652# Compute "$ac_file"'s index in $config_headers.
31653_am_arg="$ac_file"
31654_am_stamp_count=1
31655for _am_header in $config_headers :; do
31656 case $_am_header in
31657 $_am_arg | $_am_arg:* )
31658 break ;;
31659 * )
31660 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31661 esac
31662done
31663echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31664$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31665 X"$_am_arg" : 'X\(//\)[^/]' \| \
31666 X"$_am_arg" : 'X\(//\)$' \| \
31667 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31668$as_echo X"$_am_arg" |
31669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31670 s//\1/
31671 q
31672 }
31673 /^X\(\/\/\)[^/].*/{
31674 s//\1/
31675 q
31676 }
31677 /^X\(\/\/\)$/{
31678 s//\1/
31679 q
31680 }
31681 /^X\(\/\).*/{
31682 s//\1/
31683 q
31684 }
31685 s/.*/./; q'`/stamp-h$_am_stamp_count
31686 ;;
31687
31688 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31689$as_echo "$as_me: executing $ac_file commands" >&6;}
31690 ;;
31691 esac
31692
31693
31694 case $ac_file$ac_mode in
31695 "zfs_config.h":H)
31696 (mv zfs_config.h zfs_config.h.tmp &&
31697 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
31698 rm zfs_config.h.tmp) || exit 1 ;;
31699 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
31700 # Autoconf 2.62 quotes --file arguments for eval, but not when files
31701 # are listed without --file. Let's play safe and only enable the eval
31702 # if we detect the quoting.
31703 case $CONFIG_FILES in
31704 *\'*) eval set x "$CONFIG_FILES" ;;
31705 *) set x $CONFIG_FILES ;;
31706 esac
31707 shift
31708 for mf
31709 do
31710 # Strip MF so we end up with the name of the file.
31711 mf=`echo "$mf" | sed -e 's/:.*$//'`
31712 # Check whether this is an Automake generated Makefile or not.
31713 # We used to match only the files named `Makefile.in', but
31714 # some people rename them; so instead we look at the file content.
31715 # Grep'ing the first line is not enough: some people post-process
31716 # each Makefile.in and add a new line on top of each file to say so.
31717 # Grep'ing the whole file is not good either: AIX grep has a line
31718 # limit of 2048, but all sed's we know have understand at least 4000.
31719 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
31720 dirpart=`$as_dirname -- "$mf" ||
31721$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31722 X"$mf" : 'X\(//\)[^/]' \| \
31723 X"$mf" : 'X\(//\)$' \| \
31724 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31725$as_echo X"$mf" |
31726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31727 s//\1/
31728 q
31729 }
31730 /^X\(\/\/\)[^/].*/{
31731 s//\1/
31732 q
31733 }
31734 /^X\(\/\/\)$/{
31735 s//\1/
31736 q
31737 }
31738 /^X\(\/\).*/{
31739 s//\1/
31740 q
31741 }
31742 s/.*/./; q'`
31743 else
31744 continue
31745 fi
31746 # Extract the definition of DEPDIR, am__include, and am__quote
31747 # from the Makefile without running `make'.
31748 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31749 test -z "$DEPDIR" && continue
31750 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31751 test -z "am__include" && continue
31752 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31753 # When using ansi2knr, U may be empty or an underscore; expand it
31754 U=`sed -n 's/^U = //p' < "$mf"`
31755 # Find all dependency output files, they are included files with
31756 # $(DEPDIR) in their names. We invoke sed twice because it is the
31757 # simplest approach to changing $(DEPDIR) to its actual value in the
31758 # expansion.
31759 for file in `sed -n "
31760 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31761 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31762 # Make sure the directory exists.
31763 test -f "$dirpart/$file" && continue
31764 fdir=`$as_dirname -- "$file" ||
31765$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31766 X"$file" : 'X\(//\)[^/]' \| \
31767 X"$file" : 'X\(//\)$' \| \
31768 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31769$as_echo X"$file" |
31770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31771 s//\1/
31772 q
31773 }
31774 /^X\(\/\/\)[^/].*/{
31775 s//\1/
31776 q
31777 }
31778 /^X\(\/\/\)$/{
31779 s//\1/
31780 q
31781 }
31782 /^X\(\/\).*/{
31783 s//\1/
31784 q
31785 }
31786 s/.*/./; q'`
31787 as_dir=$dirpart/$fdir; as_fn_mkdir_p
31788 # echo "creating $dirpart/$file"
31789 echo '# dummy' > "$dirpart/$file"
31790 done
31791 done
31792}
31793 ;;
31794 "libtool":C)
31795
31796 # See if we are running on zsh, and set the options which allow our
31797 # commands through without removal of \ escapes.
31798 if test -n "${ZSH_VERSION+set}" ; then
31799 setopt NO_GLOB_SUBST
31800 fi
31801
31802 cfgfile="${ofile}T"
31803 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31804 $RM "$cfgfile"
31805
31806 cat <<_LT_EOF >> "$cfgfile"
31807#! $SHELL
31808
31809# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31810# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31811# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31812# NOTE: Changes made to this file will be lost: look at ltmain.sh.
31813#
31814# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23d56208
AX
31815# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
31816# Foundation, Inc.
0e3762ca
CALP
31817# Written by Gordon Matzigkeit, 1996
31818#
31819# This file is part of GNU Libtool.
31820#
31821# GNU Libtool is free software; you can redistribute it and/or
31822# modify it under the terms of the GNU General Public License as
31823# published by the Free Software Foundation; either version 2 of
31824# the License, or (at your option) any later version.
31825#
31826# As a special exception to the GNU General Public License,
31827# if you distribute this file as part of a program or library that
31828# is built using GNU Libtool, you may include this file under the
31829# same distribution terms that you use for the rest of that program.
31830#
31831# GNU Libtool is distributed in the hope that it will be useful,
31832# but WITHOUT ANY WARRANTY; without even the implied warranty of
31833# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31834# GNU General Public License for more details.
31835#
31836# You should have received a copy of the GNU General Public License
31837# along with GNU Libtool; see the file COPYING. If not, a copy
31838# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31839# obtained by writing to the Free Software Foundation, Inc.,
31840# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31841
31842
31843# The names of the tagged configurations supported by this script.
31844available_tags=""
31845
31846# ### BEGIN LIBTOOL CONFIG
31847
31848# Which release of libtool.m4 was used?
31849macro_version=$macro_version
31850macro_revision=$macro_revision
31851
31852# Whether or not to build shared libraries.
31853build_libtool_libs=$enable_shared
31854
31855# Whether or not to build static libraries.
31856build_old_libs=$enable_static
31857
31858# What type of objects to build.
31859pic_mode=$pic_mode
31860
31861# Whether or not to optimize for fast installation.
31862fast_install=$enable_fast_install
31863
23d56208
AX
31864# Shell to use when invoking shell scripts.
31865SHELL=$lt_SHELL
31866
31867# An echo program that protects backslashes.
31868ECHO=$lt_ECHO
31869
31870# The PATH separator for the build system.
31871PATH_SEPARATOR=$lt_PATH_SEPARATOR
31872
0e3762ca
CALP
31873# The host system.
31874host_alias=$host_alias
31875host=$host
31876host_os=$host_os
31877
31878# The build system.
31879build_alias=$build_alias
31880build=$build
31881build_os=$build_os
31882
31883# A sed program that does not truncate output.
31884SED=$lt_SED
31885
31886# Sed that helps us avoid accidentally triggering echo(1) options like -n.
31887Xsed="\$SED -e 1s/^X//"
31888
31889# A grep program that handles long lines.
31890GREP=$lt_GREP
31891
31892# An ERE matcher.
31893EGREP=$lt_EGREP
31894
31895# A literal string matcher.
31896FGREP=$lt_FGREP
31897
31898# A BSD- or MS-compatible name lister.
31899NM=$lt_NM
31900
31901# Whether we need soft or hard links.
31902LN_S=$lt_LN_S
31903
31904# What is the maximum length of a command?
31905max_cmd_len=$max_cmd_len
31906
31907# Object file suffix (normally "o").
31908objext=$ac_objext
31909
31910# Executable file suffix (normally "").
31911exeext=$exeext
31912
31913# whether the shell understands "unset".
31914lt_unset=$lt_unset
31915
31916# turn spaces into newlines.
31917SP2NL=$lt_lt_SP2NL
31918
31919# turn newlines into spaces.
31920NL2SP=$lt_lt_NL2SP
31921
23d56208
AX
31922# convert \$build file names to \$host format.
31923to_host_file_cmd=$lt_cv_to_host_file_cmd
31924
31925# convert \$build files to toolchain format.
31926to_tool_file_cmd=$lt_cv_to_tool_file_cmd
0e3762ca
CALP
31927
31928# An object symbol dumper.
31929OBJDUMP=$lt_OBJDUMP
31930
31931# Method to check whether dependent libraries are shared objects.
31932deplibs_check_method=$lt_deplibs_check_method
31933
23d56208 31934# Command to use when deplibs_check_method = "file_magic".
0e3762ca
CALP
31935file_magic_cmd=$lt_file_magic_cmd
31936
23d56208
AX
31937# How to find potential files when deplibs_check_method = "file_magic".
31938file_magic_glob=$lt_file_magic_glob
31939
31940# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
31941want_nocaseglob=$lt_want_nocaseglob
31942
31943# DLL creation program.
31944DLLTOOL=$lt_DLLTOOL
31945
31946# Command to associate shared and link libraries.
31947sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
31948
0e3762ca
CALP
31949# The archiver.
31950AR=$lt_AR
23d56208
AX
31951
31952# Flags to create an archive.
0e3762ca
CALP
31953AR_FLAGS=$lt_AR_FLAGS
31954
23d56208
AX
31955# How to feed a file listing to the archiver.
31956archiver_list_spec=$lt_archiver_list_spec
31957
0e3762ca
CALP
31958# A symbol stripping program.
31959STRIP=$lt_STRIP
31960
31961# Commands used to install an old-style archive.
31962RANLIB=$lt_RANLIB
31963old_postinstall_cmds=$lt_old_postinstall_cmds
31964old_postuninstall_cmds=$lt_old_postuninstall_cmds
31965
23d56208
AX
31966# Whether to use a lock for old archive extraction.
31967lock_old_archive_extraction=$lock_old_archive_extraction
31968
0e3762ca
CALP
31969# A C compiler.
31970LTCC=$lt_CC
31971
31972# LTCC compiler flags.
31973LTCFLAGS=$lt_CFLAGS
31974
31975# Take the output of nm and produce a listing of raw symbols and C names.
31976global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31977
31978# Transform the output of nm in a proper C declaration.
31979global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31980
31981# Transform the output of nm in a C name address pair.
31982global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31983
31984# Transform the output of nm in a C name address pair when lib prefix is needed.
31985global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31986
23d56208
AX
31987# Specify filename containing input files for \$NM.
31988nm_file_list_spec=$lt_nm_file_list_spec
0e3762ca 31989
23d56208
AX
31990# The root where to search for dependent libraries,and in which our libraries should be installed.
31991lt_sysroot=$lt_sysroot
0e3762ca 31992
23d56208
AX
31993# The name of the directory that contains temporary libtool files.
31994objdir=$objdir
0e3762ca
CALP
31995
31996# Used to examine libraries when file_magic_cmd begins with "file".
31997MAGIC_CMD=$MAGIC_CMD
31998
31999# Must we lock files when doing compilation?
32000need_locks=$lt_need_locks
32001
23d56208
AX
32002# Manifest tool.
32003MANIFEST_TOOL=$lt_MANIFEST_TOOL
32004
0e3762ca
CALP
32005# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32006DSYMUTIL=$lt_DSYMUTIL
32007
32008# Tool to change global to local symbols on Mac OS X.
32009NMEDIT=$lt_NMEDIT
32010
32011# Tool to manipulate fat objects and archives on Mac OS X.
32012LIPO=$lt_LIPO
32013
32014# ldd/readelf like tool for Mach-O binaries on Mac OS X.
32015OTOOL=$lt_OTOOL
32016
32017# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32018OTOOL64=$lt_OTOOL64
32019
32020# Old archive suffix (normally "a").
32021libext=$libext
32022
32023# Shared library suffix (normally ".so").
32024shrext_cmds=$lt_shrext_cmds
32025
32026# The commands to extract the exported symbol list from a shared archive.
32027extract_expsyms_cmds=$lt_extract_expsyms_cmds
32028
32029# Variables whose values should be saved in libtool wrapper scripts and
32030# restored at link time.
32031variables_saved_for_relink=$lt_variables_saved_for_relink
32032
32033# Do we need the "lib" prefix for modules?
32034need_lib_prefix=$need_lib_prefix
32035
32036# Do we need a version for libraries?
32037need_version=$need_version
32038
32039# Library versioning type.
32040version_type=$version_type
32041
32042# Shared library runtime path variable.
32043runpath_var=$runpath_var
32044
32045# Shared library path variable.
32046shlibpath_var=$shlibpath_var
32047
32048# Is shlibpath searched before the hard-coded library search path?
32049shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32050
32051# Format of library name prefix.
32052libname_spec=$lt_libname_spec
32053
32054# List of archive names. First name is the real one, the rest are links.
32055# The last name is the one that the linker finds with -lNAME
32056library_names_spec=$lt_library_names_spec
32057
32058# The coded name of the library, if different from the real name.
32059soname_spec=$lt_soname_spec
32060
23d56208
AX
32061# Permission mode override for installation of shared libraries.
32062install_override_mode=$lt_install_override_mode
32063
0e3762ca
CALP
32064# Command to use after installation of a shared archive.
32065postinstall_cmds=$lt_postinstall_cmds
32066
32067# Command to use after uninstallation of a shared archive.
32068postuninstall_cmds=$lt_postuninstall_cmds
32069
32070# Commands used to finish a libtool library installation in a directory.
32071finish_cmds=$lt_finish_cmds
32072
32073# As "finish_cmds", except a single script fragment to be evaled but
32074# not shown.
32075finish_eval=$lt_finish_eval
32076
32077# Whether we should hardcode library paths into libraries.
32078hardcode_into_libs=$hardcode_into_libs
32079
32080# Compile-time system search path for libraries.
32081sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32082
32083# Run-time system search path for libraries.
32084sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32085
32086# Whether dlopen is supported.
32087dlopen_support=$enable_dlopen
32088
32089# Whether dlopen of programs is supported.
32090dlopen_self=$enable_dlopen_self
32091
32092# Whether dlopen of statically linked programs is supported.
32093dlopen_self_static=$enable_dlopen_self_static
32094
32095# Commands to strip libraries.
32096old_striplib=$lt_old_striplib
32097striplib=$lt_striplib
32098
32099
32100# The linker used to build libraries.
32101LD=$lt_LD
32102
23d56208
AX
32103# How to create reloadable object files.
32104reload_flag=$lt_reload_flag
32105reload_cmds=$lt_reload_cmds
32106
0e3762ca
CALP
32107# Commands used to build an old-style archive.
32108old_archive_cmds=$lt_old_archive_cmds
32109
32110# A language specific compiler.
32111CC=$lt_compiler
32112
32113# Is the compiler the GNU compiler?
32114with_gcc=$GCC
32115
32116# Compiler flag to turn off builtin functions.
32117no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32118
0e3762ca
CALP
32119# Additional compiler flags for building library objects.
32120pic_flag=$lt_lt_prog_compiler_pic
32121
23d56208
AX
32122# How to pass a linker flag through the compiler.
32123wl=$lt_lt_prog_compiler_wl
32124
0e3762ca
CALP
32125# Compiler flag to prevent dynamic linking.
32126link_static_flag=$lt_lt_prog_compiler_static
32127
32128# Does compiler simultaneously support -c and -o options?
32129compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32130
32131# Whether or not to add -lc for building shared libraries.
32132build_libtool_need_lc=$archive_cmds_need_lc
32133
32134# Whether or not to disallow shared libs when runtime libs are static.
32135allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32136
32137# Compiler flag to allow reflexive dlopens.
32138export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32139
32140# Compiler flag to generate shared objects directly from archives.
32141whole_archive_flag_spec=$lt_whole_archive_flag_spec
32142
32143# Whether the compiler copes with passing no objects directly.
32144compiler_needs_object=$lt_compiler_needs_object
32145
32146# Create an old-style archive from a shared archive.
32147old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32148
32149# Create a temporary old-style archive to link instead of a shared archive.
32150old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32151
32152# Commands used to build a shared archive.
32153archive_cmds=$lt_archive_cmds
32154archive_expsym_cmds=$lt_archive_expsym_cmds
32155
32156# Commands used to build a loadable module if different from building
32157# a shared archive.
32158module_cmds=$lt_module_cmds
32159module_expsym_cmds=$lt_module_expsym_cmds
32160
32161# Whether we are building with GNU ld or not.
32162with_gnu_ld=$lt_with_gnu_ld
32163
32164# Flag that allows shared libraries with undefined symbols to be built.
32165allow_undefined_flag=$lt_allow_undefined_flag
32166
32167# Flag that enforces no undefined symbols.
32168no_undefined_flag=$lt_no_undefined_flag
32169
32170# Flag to hardcode \$libdir into a binary during linking.
32171# This must work even if \$libdir does not exist
32172hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32173
0e3762ca
CALP
32174# Whether we need a single "-rpath" flag with a separated argument.
32175hardcode_libdir_separator=$lt_hardcode_libdir_separator
32176
32177# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32178# DIR into the resulting binary.
32179hardcode_direct=$hardcode_direct
32180
32181# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32182# DIR into the resulting binary and the resulting library dependency is
32183# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32184# library is relocated.
32185hardcode_direct_absolute=$hardcode_direct_absolute
32186
32187# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32188# into the resulting binary.
32189hardcode_minus_L=$hardcode_minus_L
32190
32191# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32192# into the resulting binary.
32193hardcode_shlibpath_var=$hardcode_shlibpath_var
32194
32195# Set to "yes" if building a shared library automatically hardcodes DIR
32196# into the library and all subsequent libraries and executables linked
32197# against it.
32198hardcode_automatic=$hardcode_automatic
32199
32200# Set to yes if linker adds runtime paths of dependent libraries
32201# to runtime path list.
32202inherit_rpath=$inherit_rpath
32203
32204# Whether libtool must link a program against all its dependency libraries.
32205link_all_deplibs=$link_all_deplibs
32206
0e3762ca
CALP
32207# Set to "yes" if exported symbols are required.
32208always_export_symbols=$always_export_symbols
32209
32210# The commands to list exported symbols.
32211export_symbols_cmds=$lt_export_symbols_cmds
32212
32213# Symbols that should not be listed in the preloaded symbols.
32214exclude_expsyms=$lt_exclude_expsyms
32215
32216# Symbols that must always be exported.
32217include_expsyms=$lt_include_expsyms
32218
32219# Commands necessary for linking programs (against libraries) with templates.
32220prelink_cmds=$lt_prelink_cmds
32221
23d56208
AX
32222# Commands necessary for finishing linking programs.
32223postlink_cmds=$lt_postlink_cmds
32224
0e3762ca
CALP
32225# Specify filename containing input files.
32226file_list_spec=$lt_file_list_spec
32227
32228# How to hardcode a shared library path into an executable.
32229hardcode_action=$hardcode_action
32230
32231# ### END LIBTOOL CONFIG
32232
32233_LT_EOF
32234
32235 case $host_os in
32236 aix3*)
32237 cat <<\_LT_EOF >> "$cfgfile"
32238# AIX sometimes has problems with the GCC collect2 program. For some
32239# reason, if we set the COLLECT_NAMES environment variable, the problems
32240# vanish in a puff of smoke.
32241if test "X${COLLECT_NAMES+set}" != Xset; then
32242 COLLECT_NAMES=
32243 export COLLECT_NAMES
32244fi
32245_LT_EOF
32246 ;;
32247 esac
32248
32249
32250ltmain="$ac_aux_dir/ltmain.sh"
32251
32252
32253 # We use sed instead of cat because bash on DJGPP gets confused if
32254 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32255 # text mode, it properly converts lines to CR/LF. This bash problem
32256 # is reportedly fixed, but why not run on old versions too?
23d56208
AX
32257 sed '$q' "$ltmain" >> "$cfgfile" \
32258 || (rm -f "$cfgfile"; exit 1)
32259
32260 if test x"$xsi_shell" = xyes; then
32261 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
32262func_dirname ()\
32263{\
32264\ case ${1} in\
32265\ */*) func_dirname_result="${1%/*}${2}" ;;\
32266\ * ) func_dirname_result="${3}" ;;\
32267\ esac\
32268} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
32269 && mv -f "$cfgfile.tmp" "$cfgfile" \
32270 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32271test 0 -eq $? || _lt_function_replace_fail=:
32272
32273
32274 sed -e '/^func_basename ()$/,/^} # func_basename /c\
32275func_basename ()\
32276{\
32277\ func_basename_result="${1##*/}"\
32278} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
32279 && mv -f "$cfgfile.tmp" "$cfgfile" \
32280 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32281test 0 -eq $? || _lt_function_replace_fail=:
32282
32283
32284 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
32285func_dirname_and_basename ()\
32286{\
32287\ case ${1} in\
32288\ */*) func_dirname_result="${1%/*}${2}" ;;\
32289\ * ) func_dirname_result="${3}" ;;\
32290\ esac\
32291\ func_basename_result="${1##*/}"\
32292} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
32293 && mv -f "$cfgfile.tmp" "$cfgfile" \
32294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32295test 0 -eq $? || _lt_function_replace_fail=:
32296
32297
32298 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
32299func_stripname ()\
32300{\
32301\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
32302\ # positional parameters, so assign one to ordinary parameter first.\
32303\ func_stripname_result=${3}\
32304\ func_stripname_result=${func_stripname_result#"${1}"}\
32305\ func_stripname_result=${func_stripname_result%"${2}"}\
32306} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
32307 && mv -f "$cfgfile.tmp" "$cfgfile" \
32308 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32309test 0 -eq $? || _lt_function_replace_fail=:
32310
32311
32312 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
32313func_split_long_opt ()\
32314{\
32315\ func_split_long_opt_name=${1%%=*}\
32316\ func_split_long_opt_arg=${1#*=}\
32317} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
32318 && mv -f "$cfgfile.tmp" "$cfgfile" \
32319 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32320test 0 -eq $? || _lt_function_replace_fail=:
32321
32322
32323 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
32324func_split_short_opt ()\
32325{\
32326\ func_split_short_opt_arg=${1#??}\
32327\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
32328} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
32329 && mv -f "$cfgfile.tmp" "$cfgfile" \
32330 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32331test 0 -eq $? || _lt_function_replace_fail=:
32332
32333
32334 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
32335func_lo2o ()\
32336{\
32337\ case ${1} in\
32338\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
32339\ *) func_lo2o_result=${1} ;;\
32340\ esac\
32341} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
32342 && mv -f "$cfgfile.tmp" "$cfgfile" \
32343 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32344test 0 -eq $? || _lt_function_replace_fail=:
32345
32346
32347 sed -e '/^func_xform ()$/,/^} # func_xform /c\
32348func_xform ()\
32349{\
32350 func_xform_result=${1%.*}.lo\
32351} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
32352 && mv -f "$cfgfile.tmp" "$cfgfile" \
32353 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32354test 0 -eq $? || _lt_function_replace_fail=:
32355
32356
32357 sed -e '/^func_arith ()$/,/^} # func_arith /c\
32358func_arith ()\
32359{\
32360 func_arith_result=$(( $* ))\
32361} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
32362 && mv -f "$cfgfile.tmp" "$cfgfile" \
32363 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32364test 0 -eq $? || _lt_function_replace_fail=:
32365
32366
32367 sed -e '/^func_len ()$/,/^} # func_len /c\
32368func_len ()\
32369{\
32370 func_len_result=${#1}\
32371} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
32372 && mv -f "$cfgfile.tmp" "$cfgfile" \
32373 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32374test 0 -eq $? || _lt_function_replace_fail=:
32375
32376fi
32377
32378if test x"$lt_shell_append" = xyes; then
32379 sed -e '/^func_append ()$/,/^} # func_append /c\
32380func_append ()\
32381{\
32382 eval "${1}+=\\${2}"\
32383} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
32384 && mv -f "$cfgfile.tmp" "$cfgfile" \
32385 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32386test 0 -eq $? || _lt_function_replace_fail=:
32387
32388
32389 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
32390func_append_quoted ()\
32391{\
32392\ func_quote_for_eval "${2}"\
32393\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
32394} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
32395 && mv -f "$cfgfile.tmp" "$cfgfile" \
32396 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32397test 0 -eq $? || _lt_function_replace_fail=:
32398
32399
32400 # Save a `func_append' function call where possible by direct use of '+='
32401 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
32402 && mv -f "$cfgfile.tmp" "$cfgfile" \
32403 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32404 test 0 -eq $? || _lt_function_replace_fail=:
32405else
32406 # Save a `func_append' function call even when '+=' is not available
32407 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
32408 && mv -f "$cfgfile.tmp" "$cfgfile" \
32409 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32410 test 0 -eq $? || _lt_function_replace_fail=:
32411fi
32412
32413if test x"$_lt_function_replace_fail" = x":"; then
32414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
32415$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
32416fi
32417
32418
32419 mv -f "$cfgfile" "$ofile" ||
0e3762ca
CALP
32420 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32421 chmod +x "$ofile"
32422
32423 ;;
32424
32425 esac
32426done # for ac_tag
32427
32428
32429as_fn_exit 0
32430_ACEOF
32431ac_clean_files=$ac_clean_files_save
32432
32433test $ac_write_fail = 0 ||
32434 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32435
32436
32437# configure is writing to config.log, and then calls config.status.
32438# config.status does its own redirection, appending to config.log.
32439# Unfortunately, on DOS this fails, as config.log is still kept open
32440# by configure, so config.status won't be able to write to it; its
32441# output is simply discarded. So we exec the FD to /dev/null,
32442# effectively closing config.log, so it can be properly (re)opened and
32443# appended to by config.status. When coming back to configure, we
32444# need to make the FD available again.
32445if test "$no_create" != yes; then
32446 ac_cs_success=:
32447 ac_config_status_args=
32448 test "$silent" = yes &&
32449 ac_config_status_args="$ac_config_status_args --quiet"
32450 exec 5>/dev/null
32451 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32452 exec 5>>config.log
32453 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32454 # would make configure fail if this is the last instruction.
32455 $ac_cs_success || as_fn_exit 1
32456fi
32457if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32459$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32460fi
32461