]>
Commit | Line | Data |
---|---|---|
87d546d8 TG |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
1ec59ff7 | 3 | # Generated by GNU Autoconf 2.69 for zfs 0.6.5.11. |
87d546d8 TG |
4 | # |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
7 | # | |
8 | # | |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## -------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
14 | ||
15 | # Be more Bourne compatible | |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | setopt NO_GLOB_SUBST | |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
31 | fi | |
32 | ||
33 | ||
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
79 | fi | |
80 | ||
81 | ||
82 | # IFS | |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | as_myself= | |
91 | case $0 in #(( | |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
122 | PS1='$ ' | |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
127 | LC_ALL=C | |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
135 | # Use a proper internal environment variable to ensure we don't fall | |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
160 | if test "x$CONFIG_SHELL" = x; then | |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
193 | test x\$exitcode = x0 || exit 1 | |
194 | test -x / || exit 1" | |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
199 | ||
200 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
201 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
202 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | PATH=/empty FPATH=/empty; export PATH FPATH | |
205 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
206 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
207 | test \$(( 1 + 1 )) = 2 || exit 1" | |
208 | if (eval "$as_required") 2>/dev/null; then : | |
209 | as_have_required=yes | |
210 | else | |
211 | as_have_required=no | |
212 | fi | |
213 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
214 | ||
215 | else | |
216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
217 | as_found=false | |
218 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
219 | do | |
220 | IFS=$as_save_IFS | |
221 | test -z "$as_dir" && as_dir=. | |
222 | as_found=: | |
223 | case $as_dir in #( | |
224 | /*) | |
225 | for as_base in sh bash ksh sh5; do | |
226 | # Try only shells that exist, to save several forks. | |
227 | as_shell=$as_dir/$as_base | |
228 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
229 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
230 | CONFIG_SHELL=$as_shell as_have_required=yes | |
231 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | break 2 | |
233 | fi | |
234 | fi | |
235 | done;; | |
236 | esac | |
237 | as_found=false | |
238 | done | |
239 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
240 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
241 | CONFIG_SHELL=$SHELL as_have_required=yes | |
242 | fi; } | |
243 | IFS=$as_save_IFS | |
244 | ||
245 | ||
246 | if test "x$CONFIG_SHELL" != x; then : | |
247 | export CONFIG_SHELL | |
248 | # We cannot yet assume a decent shell, so we have to provide a | |
249 | # neutralization value for shells without unset; and this also | |
250 | # works around shells that cannot unset nonexistent variables. | |
251 | # Preserve -v and -x to the replacement shell. | |
252 | BASH_ENV=/dev/null | |
253 | ENV=/dev/null | |
254 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
255 | case $- in # (((( | |
256 | *v*x* | *x*v* ) as_opts=-vx ;; | |
257 | *v* ) as_opts=-v ;; | |
258 | *x* ) as_opts=-x ;; | |
259 | * ) as_opts= ;; | |
260 | esac | |
261 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
262 | # Admittedly, this is quite paranoid, since all the known shells bail | |
263 | # out after a failed `exec'. | |
264 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
265 | exit 255 | |
266 | fi | |
267 | ||
268 | if test x$as_have_required = xno; then : | |
269 | $as_echo "$0: This script requires a shell more modern than all" | |
270 | $as_echo "$0: the shells that I found on your system." | |
271 | if test x${ZSH_VERSION+set} = xset ; then | |
272 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
273 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
274 | else | |
275 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
276 | $0: including any error possibly output before this | |
277 | $0: message. Then install a modern shell, or manually run | |
278 | $0: the script under such a shell if you do have one." | |
279 | fi | |
280 | exit 1 | |
281 | fi | |
282 | fi | |
283 | fi | |
284 | SHELL=${CONFIG_SHELL-/bin/sh} | |
285 | export SHELL | |
286 | # Unset more variables known to interfere with behavior of common tools. | |
287 | CLICOLOR_FORCE= GREP_OPTIONS= | |
288 | unset CLICOLOR_FORCE GREP_OPTIONS | |
289 | ||
290 | ## --------------------- ## | |
291 | ## M4sh Shell Functions. ## | |
292 | ## --------------------- ## | |
293 | # as_fn_unset VAR | |
294 | # --------------- | |
295 | # Portably unset VAR. | |
296 | as_fn_unset () | |
297 | { | |
298 | { eval $1=; unset $1;} | |
299 | } | |
300 | as_unset=as_fn_unset | |
301 | ||
302 | # as_fn_set_status STATUS | |
303 | # ----------------------- | |
304 | # Set $? to STATUS, without forking. | |
305 | as_fn_set_status () | |
306 | { | |
307 | return $1 | |
308 | } # as_fn_set_status | |
309 | ||
310 | # as_fn_exit STATUS | |
311 | # ----------------- | |
312 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
313 | as_fn_exit () | |
314 | { | |
315 | set +e | |
316 | as_fn_set_status $1 | |
317 | exit $1 | |
318 | } # as_fn_exit | |
319 | ||
320 | # as_fn_mkdir_p | |
321 | # ------------- | |
322 | # Create "$as_dir" as a directory, including parents if necessary. | |
323 | as_fn_mkdir_p () | |
324 | { | |
325 | ||
326 | case $as_dir in #( | |
327 | -*) as_dir=./$as_dir;; | |
328 | esac | |
329 | test -d "$as_dir" || eval $as_mkdir_p || { | |
330 | as_dirs= | |
331 | while :; do | |
332 | case $as_dir in #( | |
333 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
334 | *) as_qdir=$as_dir;; | |
335 | esac | |
336 | as_dirs="'$as_qdir' $as_dirs" | |
337 | as_dir=`$as_dirname -- "$as_dir" || | |
338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
339 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
340 | X"$as_dir" : 'X\(//\)$' \| \ | |
341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
342 | $as_echo X"$as_dir" | | |
343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\/\)[^/].*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)$/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\).*/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | s/.*/./; q'` | |
360 | test -d "$as_dir" && break | |
361 | done | |
362 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
364 | ||
365 | ||
366 | } # as_fn_mkdir_p | |
367 | ||
368 | # as_fn_executable_p FILE | |
369 | # ----------------------- | |
370 | # Test if FILE is an executable regular file. | |
371 | as_fn_executable_p () | |
372 | { | |
373 | test -f "$1" && test -x "$1" | |
374 | } # as_fn_executable_p | |
375 | # as_fn_append VAR VALUE | |
376 | # ---------------------- | |
377 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
378 | # advantage of any shell optimizations that allow amortized linear growth over | |
379 | # repeated appends, instead of the typical quadratic growth present in naive | |
380 | # implementations. | |
381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
382 | eval 'as_fn_append () | |
383 | { | |
384 | eval $1+=\$2 | |
385 | }' | |
386 | else | |
387 | as_fn_append () | |
388 | { | |
389 | eval $1=\$$1\$2 | |
390 | } | |
391 | fi # as_fn_append | |
392 | ||
393 | # as_fn_arith ARG... | |
394 | # ------------------ | |
395 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
397 | # must be portable across $(()) and expr. | |
398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
399 | eval 'as_fn_arith () | |
400 | { | |
401 | as_val=$(( $* )) | |
402 | }' | |
403 | else | |
404 | as_fn_arith () | |
405 | { | |
406 | as_val=`expr "$@" || test $? -eq 1` | |
407 | } | |
408 | fi # as_fn_arith | |
409 | ||
410 | ||
411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
412 | # ---------------------------------------- | |
413 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
414 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
415 | # script with STATUS, using 1 if that was 0. | |
416 | as_fn_error () | |
417 | { | |
418 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
419 | if test "$4"; then | |
420 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
421 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
422 | fi | |
423 | $as_echo "$as_me: error: $2" >&2 | |
424 | as_fn_exit $as_status | |
425 | } # as_fn_error | |
426 | ||
427 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
429 | as_expr=expr | |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
435 | as_basename=basename | |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
440 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
441 | as_dirname=dirname | |
442 | else | |
443 | as_dirname=false | |
444 | fi | |
445 | ||
446 | as_me=`$as_basename -- "$0" || | |
447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
448 | X"$0" : 'X\(//\)$' \| \ | |
449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
450 | $as_echo X/"$0" | | |
451 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | /^X\/\(\/\/\)$/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | /^X\/\(\/\).*/{ | |
460 | s//\1/ | |
461 | q | |
462 | } | |
463 | s/.*/./; q'` | |
464 | ||
465 | # Avoid depending upon Character Ranges. | |
466 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
467 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
468 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
469 | as_cr_digits='0123456789' | |
470 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
471 | ||
472 | ||
473 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
474 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
475 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
476 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
477 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
478 | sed -n ' | |
479 | p | |
480 | /[$]LINENO/= | |
481 | ' <$as_myself | | |
482 | sed ' | |
483 | s/[$]LINENO.*/&-/ | |
484 | t lineno | |
485 | b | |
486 | :lineno | |
487 | N | |
488 | :loop | |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
490 | t loop | |
491 | s/-\n.*// | |
492 | ' >$as_me.lineno && | |
493 | chmod +x "$as_me.lineno" || | |
494 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
495 | ||
496 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
497 | # already done that, so ensure we don't try to do so again and fall | |
498 | # in an infinite loop. This has already happened in practice. | |
499 | _as_can_reexec=no; export _as_can_reexec | |
500 | # Don't try to exec as it changes $[0], causing all sort of problems | |
501 | # (the dirname of $[0] is not the place where we might find the | |
502 | # original and so on. Autoconf is especially sensitive to this). | |
503 | . "./$as_me.lineno" | |
504 | # Exit status is that of the last command. | |
505 | exit | |
506 | } | |
507 | ||
508 | ECHO_C= ECHO_N= ECHO_T= | |
509 | case `echo -n x` in #((((( | |
510 | -n*) | |
511 | case `echo 'xy\c'` in | |
512 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
513 | xy) ECHO_C='\c';; | |
514 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
515 | ECHO_T=' ';; | |
516 | esac;; | |
517 | *) | |
518 | ECHO_N='-n';; | |
519 | esac | |
520 | ||
521 | rm -f conf$$ conf$$.exe conf$$.file | |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
524 | else | |
525 | rm -f conf$$.dir | |
526 | mkdir conf$$.dir 2>/dev/null | |
527 | fi | |
528 | if (echo >conf$$.file) 2>/dev/null; then | |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
530 | as_ln_s='ln -s' | |
531 | # ... but there are two gotchas: | |
532 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
533 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
534 | # In both cases, we have to default to `cp -pR'. | |
535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
536 | as_ln_s='cp -pR' | |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
538 | as_ln_s=ln | |
539 | else | |
540 | as_ln_s='cp -pR' | |
541 | fi | |
542 | else | |
543 | as_ln_s='cp -pR' | |
544 | fi | |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
546 | rmdir conf$$.dir 2>/dev/null | |
547 | ||
548 | if mkdir -p . 2>/dev/null; then | |
549 | as_mkdir_p='mkdir -p "$as_dir"' | |
550 | else | |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
555 | as_test_x='test -x' | |
556 | as_executable_p=as_fn_executable_p | |
557 | ||
558 | # Sed expression to map a string onto a valid CPP name. | |
559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
560 | ||
561 | # Sed expression to map a string onto a valid variable name. | |
562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
564 | SHELL=${CONFIG_SHELL-/bin/sh} | |
565 | ||
566 | ||
567 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
568 | exec 6>&1 | |
569 | ||
570 | # Name of the host. | |
571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
572 | # so uname gets run too. | |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
574 | ||
575 | # | |
576 | # Initializations. | |
577 | # | |
578 | ac_default_prefix=/usr/local | |
579 | ac_clean_files= | |
580 | ac_config_libobj_dir=. | |
581 | LIBOBJS= | |
582 | cross_compiling=no | |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
586 | ||
587 | # Identity of this package. | |
588 | PACKAGE_NAME='zfs' | |
589 | PACKAGE_TARNAME='zfs' | |
1ec59ff7 CIK |
590 | PACKAGE_VERSION='0.6.5.11' |
591 | PACKAGE_STRING='zfs 0.6.5.11' | |
87d546d8 TG |
592 | PACKAGE_BUGREPORT='' |
593 | PACKAGE_URL='' | |
594 | ||
595 | # Factoring default headers for most tests. | |
596 | ac_includes_default="\ | |
597 | #include <stdio.h> | |
598 | #ifdef HAVE_SYS_TYPES_H | |
599 | # include <sys/types.h> | |
600 | #endif | |
601 | #ifdef HAVE_SYS_STAT_H | |
602 | # include <sys/stat.h> | |
603 | #endif | |
604 | #ifdef STDC_HEADERS | |
605 | # include <stdlib.h> | |
606 | # include <stddef.h> | |
607 | #else | |
608 | # ifdef HAVE_STDLIB_H | |
609 | # include <stdlib.h> | |
610 | # endif | |
611 | #endif | |
612 | #ifdef HAVE_STRING_H | |
613 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
614 | # include <memory.h> | |
615 | # endif | |
616 | # include <string.h> | |
617 | #endif | |
618 | #ifdef HAVE_STRINGS_H | |
619 | # include <strings.h> | |
620 | #endif | |
621 | #ifdef HAVE_INTTYPES_H | |
622 | # include <inttypes.h> | |
623 | #endif | |
624 | #ifdef HAVE_STDINT_H | |
625 | # include <stdint.h> | |
626 | #endif | |
627 | #ifdef HAVE_UNISTD_H | |
628 | # include <unistd.h> | |
629 | #endif" | |
630 | ||
631 | ac_subst_vars='am__EXEEXT_FALSE | |
632 | am__EXEEXT_TRUE | |
633 | LTLIBOBJS | |
634 | LIBOBJS | |
635 | DEBUG_DMU_TX | |
636 | DEBUG_ZFS | |
637 | DEBUG_STACKFLAGS | |
638 | DEBUG_CFLAGS | |
639 | CONFIG_KERNEL_FALSE | |
640 | CONFIG_KERNEL_TRUE | |
641 | CONFIG_USER_FALSE | |
642 | CONFIG_USER_TRUE | |
643 | KERNELCPPFLAGS | |
644 | KERNELMAKE_PARAMS | |
645 | SPL_SYMBOLS | |
646 | SPL_VERSION | |
647 | SPL_OBJ | |
648 | SPL | |
649 | LINUX_SYMBOLS | |
650 | LINUX_VERSION | |
651 | LINUX_OBJ | |
652 | LINUX | |
1ec59ff7 | 653 | NO_FORMAT_TRUNCATION |
87d546d8 TG |
654 | FRAME_LARGER_THAN |
655 | LIBBLKID | |
656 | LIBUUID | |
657 | ZLIB | |
658 | dracutdir | |
659 | ZFS_INIT_SYSV | |
660 | modulesloaddir | |
661 | systemdpresetdir | |
662 | systemdunitdir | |
663 | ZFS_MODULE_LOAD | |
664 | ZFS_INIT_SYSTEMD | |
665 | udevruledir | |
666 | udevdir | |
667 | mounthelperdir | |
668 | NO_BOOL_COMPARE | |
669 | NO_UNUSED_BUT_SET_VARIABLE | |
670 | ZFS_CONFIG | |
671 | TARGET_ASM_DIR | |
672 | ALIEN_VERSION | |
673 | ALIEN | |
674 | HAVE_ALIEN | |
675 | DPKGBUILD_VERSION | |
676 | DPKGBUILD | |
677 | HAVE_DPKGBUILD | |
678 | DPKG_VERSION | |
679 | DPKG | |
680 | HAVE_DPKG | |
681 | SRPM_DEFINE_COMMON | |
682 | SRPM_DEFINE_DKMS | |
683 | SRPM_DEFINE_KMOD | |
684 | SRPM_DEFINE_UTIL | |
685 | RPM_DEFINE_COMMON | |
686 | RPM_DEFINE_DKMS | |
687 | RPM_DEFINE_KMOD | |
688 | RPM_DEFINE_UTIL | |
689 | RPM_SPEC_DIR | |
690 | RPMBUILD_VERSION | |
691 | RPMBUILD | |
692 | HAVE_RPMBUILD | |
693 | RPM_VERSION | |
694 | RPM | |
695 | HAVE_RPM | |
696 | DEFINE_INITRAMFS | |
697 | DEFAULT_INITCONF_DIR | |
698 | DEFAULT_INIT_SCRIPT | |
699 | DEFAULT_INIT_DIR | |
700 | DEFAULT_PACKAGE | |
701 | VENDOR | |
702 | am__fastdepCCAS_FALSE | |
703 | am__fastdepCCAS_TRUE | |
704 | CCASDEPMODE | |
705 | CCASFLAGS | |
706 | CCAS | |
707 | CPP | |
708 | LT_SYS_LIBRARY_PATH | |
709 | OTOOL64 | |
710 | OTOOL | |
711 | LIPO | |
712 | NMEDIT | |
713 | DSYMUTIL | |
714 | MANIFEST_TOOL | |
715 | RANLIB | |
716 | ac_ct_AR | |
717 | AR | |
718 | DLLTOOL | |
719 | OBJDUMP | |
720 | LN_S | |
721 | NM | |
722 | ac_ct_DUMPBIN | |
723 | DUMPBIN | |
724 | LD | |
725 | FGREP | |
726 | EGREP | |
727 | GREP | |
728 | SED | |
729 | LIBTOOL | |
730 | am__fastdepCC_FALSE | |
731 | am__fastdepCC_TRUE | |
732 | CCDEPMODE | |
733 | am__nodep | |
734 | AMDEPBACKSLASH | |
735 | AMDEP_FALSE | |
736 | AMDEP_TRUE | |
737 | am__quote | |
738 | am__include | |
739 | DEPDIR | |
740 | OBJEXT | |
741 | EXEEXT | |
742 | ac_ct_CC | |
743 | CPPFLAGS | |
744 | LDFLAGS | |
745 | CFLAGS | |
746 | CC | |
747 | am__untar | |
748 | am__tar | |
749 | AMTAR | |
750 | am__leading_dot | |
751 | SET_MAKE | |
752 | mkdir_p | |
753 | MKDIR_P | |
754 | INSTALL_STRIP_PROGRAM | |
755 | STRIP | |
756 | install_sh | |
757 | MAKEINFO | |
758 | AUTOHEADER | |
759 | AUTOMAKE | |
760 | AUTOCONF | |
761 | ACLOCAL | |
762 | VERSION | |
763 | PACKAGE | |
764 | CYGPATH_W | |
765 | am__isrc | |
766 | INSTALL_DATA | |
767 | INSTALL_SCRIPT | |
768 | INSTALL_PROGRAM | |
769 | AM_BACKSLASH | |
770 | AM_DEFAULT_VERBOSITY | |
771 | AM_DEFAULT_V | |
772 | AM_V | |
773 | MAINT | |
774 | MAINTAINER_MODE_FALSE | |
775 | MAINTAINER_MODE_TRUE | |
776 | target_os | |
777 | target_vendor | |
778 | target_cpu | |
779 | target | |
780 | host_os | |
781 | host_vendor | |
782 | host_cpu | |
783 | host | |
784 | build_os | |
785 | build_vendor | |
786 | build_cpu | |
787 | build | |
788 | ZFS_META_LT_AGE | |
789 | ZFS_META_LT_REVISION | |
790 | ZFS_META_LT_CURRENT | |
791 | ZFS_META_AUTHOR | |
792 | ZFS_META_DATA | |
793 | ZFS_META_ALIAS | |
794 | ZFS_META_LICENSE | |
795 | RELEASE | |
796 | ZFS_META_RELEASE | |
797 | ZFS_META_VERSION | |
798 | ZFS_META_NAME | |
799 | AWK | |
800 | target_alias | |
801 | host_alias | |
802 | build_alias | |
803 | LIBS | |
804 | ECHO_T | |
805 | ECHO_N | |
806 | ECHO_C | |
807 | DEFS | |
808 | mandir | |
809 | localedir | |
810 | libdir | |
811 | psdir | |
812 | pdfdir | |
813 | dvidir | |
814 | htmldir | |
815 | infodir | |
816 | docdir | |
817 | oldincludedir | |
818 | includedir | |
819 | runstatedir | |
820 | localstatedir | |
821 | sharedstatedir | |
822 | sysconfdir | |
823 | datadir | |
824 | datarootdir | |
825 | libexecdir | |
826 | sbindir | |
827 | bindir | |
828 | program_transform_name | |
829 | prefix | |
830 | exec_prefix | |
831 | PACKAGE_URL | |
832 | PACKAGE_BUGREPORT | |
833 | PACKAGE_STRING | |
834 | PACKAGE_VERSION | |
835 | PACKAGE_TARNAME | |
836 | PACKAGE_NAME | |
837 | PATH_SEPARATOR | |
838 | SHELL' | |
839 | ac_subst_files='' | |
840 | ac_user_opts=' | |
841 | enable_option_checking | |
842 | enable_maintainer_mode | |
843 | enable_silent_rules | |
844 | enable_dependency_tracking | |
845 | enable_shared | |
846 | enable_static | |
847 | with_pic | |
848 | enable_fast_install | |
849 | with_aix_soname | |
850 | with_gnu_ld | |
851 | with_sysroot | |
852 | enable_libtool_lock | |
853 | with_spec | |
854 | with_config | |
855 | enable_linux_builtin | |
856 | with_mounthelperdir | |
857 | with_udevdir | |
858 | with_udevruledir | |
859 | enable_systemd | |
860 | with_systemdunitdir | |
861 | with_systemdpresetdir | |
862 | with_systemdmodulesloaddir | |
863 | enable_sysvinit | |
864 | with_dracutdir | |
865 | with_blkid | |
866 | with_linux | |
867 | with_linux_obj | |
868 | with_spl | |
869 | with_spl_obj | |
870 | with_spl_timeout | |
871 | enable_debug | |
872 | enable_debug_dmu_tx | |
873 | ' | |
874 | ac_precious_vars='build_alias | |
875 | host_alias | |
876 | target_alias | |
877 | CC | |
878 | CFLAGS | |
879 | LDFLAGS | |
880 | LIBS | |
881 | CPPFLAGS | |
882 | LT_SYS_LIBRARY_PATH | |
883 | CPP | |
884 | CCAS | |
885 | CCASFLAGS' | |
886 | ||
887 | ||
888 | # Initialize some variables set by options. | |
889 | ac_init_help= | |
890 | ac_init_version=false | |
891 | ac_unrecognized_opts= | |
892 | ac_unrecognized_sep= | |
893 | # The variables have the same names as the options, with | |
894 | # dashes changed to underlines. | |
895 | cache_file=/dev/null | |
896 | exec_prefix=NONE | |
897 | no_create= | |
898 | no_recursion= | |
899 | prefix=NONE | |
900 | program_prefix=NONE | |
901 | program_suffix=NONE | |
902 | program_transform_name=s,x,x, | |
903 | silent= | |
904 | site= | |
905 | srcdir= | |
906 | verbose= | |
907 | x_includes=NONE | |
908 | x_libraries=NONE | |
909 | ||
910 | # Installation directory options. | |
911 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
912 | # and all the variables that are supposed to be based on exec_prefix | |
913 | # by default will actually change. | |
914 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
915 | # (The list follows the same order as the GNU Coding Standards.) | |
916 | bindir='${exec_prefix}/bin' | |
917 | sbindir='${exec_prefix}/sbin' | |
918 | libexecdir='${exec_prefix}/libexec' | |
919 | datarootdir='${prefix}/share' | |
920 | datadir='${datarootdir}' | |
921 | sysconfdir='${prefix}/etc' | |
922 | sharedstatedir='${prefix}/com' | |
923 | localstatedir='${prefix}/var' | |
924 | runstatedir='${localstatedir}/run' | |
925 | includedir='${prefix}/include' | |
926 | oldincludedir='/usr/include' | |
927 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
928 | infodir='${datarootdir}/info' | |
929 | htmldir='${docdir}' | |
930 | dvidir='${docdir}' | |
931 | pdfdir='${docdir}' | |
932 | psdir='${docdir}' | |
933 | libdir='${exec_prefix}/lib' | |
934 | localedir='${datarootdir}/locale' | |
935 | mandir='${datarootdir}/man' | |
936 | ||
937 | ac_prev= | |
938 | ac_dashdash= | |
939 | for ac_option | |
940 | do | |
941 | # If the previous option needs an argument, assign it. | |
942 | if test -n "$ac_prev"; then | |
943 | eval $ac_prev=\$ac_option | |
944 | ac_prev= | |
945 | continue | |
946 | fi | |
947 | ||
948 | case $ac_option in | |
949 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
950 | *=) ac_optarg= ;; | |
951 | *) ac_optarg=yes ;; | |
952 | esac | |
953 | ||
954 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
955 | ||
956 | case $ac_dashdash$ac_option in | |
957 | --) | |
958 | ac_dashdash=yes ;; | |
959 | ||
960 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
961 | ac_prev=bindir ;; | |
962 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
963 | bindir=$ac_optarg ;; | |
964 | ||
965 | -build | --build | --buil | --bui | --bu) | |
966 | ac_prev=build_alias ;; | |
967 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
968 | build_alias=$ac_optarg ;; | |
969 | ||
970 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
971 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
972 | ac_prev=cache_file ;; | |
973 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
974 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
975 | cache_file=$ac_optarg ;; | |
976 | ||
977 | --config-cache | -C) | |
978 | cache_file=config.cache ;; | |
979 | ||
980 | -datadir | --datadir | --datadi | --datad) | |
981 | ac_prev=datadir ;; | |
982 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
983 | datadir=$ac_optarg ;; | |
984 | ||
985 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
986 | | --dataroo | --dataro | --datar) | |
987 | ac_prev=datarootdir ;; | |
988 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
989 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
990 | datarootdir=$ac_optarg ;; | |
991 | ||
992 | -disable-* | --disable-*) | |
993 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
994 | # Reject names that are not valid shell variable names. | |
995 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
996 | as_fn_error $? "invalid feature name: $ac_useropt" | |
997 | ac_useropt_orig=$ac_useropt | |
998 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
999 | case $ac_user_opts in | |
1000 | *" | |
1001 | "enable_$ac_useropt" | |
1002 | "*) ;; | |
1003 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1004 | ac_unrecognized_sep=', ';; | |
1005 | esac | |
1006 | eval enable_$ac_useropt=no ;; | |
1007 | ||
1008 | -docdir | --docdir | --docdi | --doc | --do) | |
1009 | ac_prev=docdir ;; | |
1010 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1011 | docdir=$ac_optarg ;; | |
1012 | ||
1013 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1014 | ac_prev=dvidir ;; | |
1015 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1016 | dvidir=$ac_optarg ;; | |
1017 | ||
1018 | -enable-* | --enable-*) | |
1019 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1020 | # Reject names that are not valid shell variable names. | |
1021 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1022 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1023 | ac_useropt_orig=$ac_useropt | |
1024 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1025 | case $ac_user_opts in | |
1026 | *" | |
1027 | "enable_$ac_useropt" | |
1028 | "*) ;; | |
1029 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1030 | ac_unrecognized_sep=', ';; | |
1031 | esac | |
1032 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1033 | ||
1034 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1035 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1036 | | --exec | --exe | --ex) | |
1037 | ac_prev=exec_prefix ;; | |
1038 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1039 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1040 | | --exec=* | --exe=* | --ex=*) | |
1041 | exec_prefix=$ac_optarg ;; | |
1042 | ||
1043 | -gas | --gas | --ga | --g) | |
1044 | # Obsolete; use --with-gas. | |
1045 | with_gas=yes ;; | |
1046 | ||
1047 | -help | --help | --hel | --he | -h) | |
1048 | ac_init_help=long ;; | |
1049 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1050 | ac_init_help=recursive ;; | |
1051 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1052 | ac_init_help=short ;; | |
1053 | ||
1054 | -host | --host | --hos | --ho) | |
1055 | ac_prev=host_alias ;; | |
1056 | -host=* | --host=* | --hos=* | --ho=*) | |
1057 | host_alias=$ac_optarg ;; | |
1058 | ||
1059 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1060 | ac_prev=htmldir ;; | |
1061 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1062 | | --ht=*) | |
1063 | htmldir=$ac_optarg ;; | |
1064 | ||
1065 | -includedir | --includedir | --includedi | --included | --include \ | |
1066 | | --includ | --inclu | --incl | --inc) | |
1067 | ac_prev=includedir ;; | |
1068 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1069 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1070 | includedir=$ac_optarg ;; | |
1071 | ||
1072 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1073 | ac_prev=infodir ;; | |
1074 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1075 | infodir=$ac_optarg ;; | |
1076 | ||
1077 | -libdir | --libdir | --libdi | --libd) | |
1078 | ac_prev=libdir ;; | |
1079 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1080 | libdir=$ac_optarg ;; | |
1081 | ||
1082 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1083 | | --libexe | --libex | --libe) | |
1084 | ac_prev=libexecdir ;; | |
1085 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1086 | | --libexe=* | --libex=* | --libe=*) | |
1087 | libexecdir=$ac_optarg ;; | |
1088 | ||
1089 | -localedir | --localedir | --localedi | --localed | --locale) | |
1090 | ac_prev=localedir ;; | |
1091 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1092 | localedir=$ac_optarg ;; | |
1093 | ||
1094 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1095 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1096 | ac_prev=localstatedir ;; | |
1097 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1098 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1099 | localstatedir=$ac_optarg ;; | |
1100 | ||
1101 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1102 | ac_prev=mandir ;; | |
1103 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1104 | mandir=$ac_optarg ;; | |
1105 | ||
1106 | -nfp | --nfp | --nf) | |
1107 | # Obsolete; use --without-fp. | |
1108 | with_fp=no ;; | |
1109 | ||
1110 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1111 | | --no-cr | --no-c | -n) | |
1112 | no_create=yes ;; | |
1113 | ||
1114 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1115 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1116 | no_recursion=yes ;; | |
1117 | ||
1118 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1119 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1120 | | --oldin | --oldi | --old | --ol | --o) | |
1121 | ac_prev=oldincludedir ;; | |
1122 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1123 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1124 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1125 | oldincludedir=$ac_optarg ;; | |
1126 | ||
1127 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1128 | ac_prev=prefix ;; | |
1129 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1130 | prefix=$ac_optarg ;; | |
1131 | ||
1132 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1133 | | --program-pre | --program-pr | --program-p) | |
1134 | ac_prev=program_prefix ;; | |
1135 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1136 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1137 | program_prefix=$ac_optarg ;; | |
1138 | ||
1139 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1140 | | --program-suf | --program-su | --program-s) | |
1141 | ac_prev=program_suffix ;; | |
1142 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1143 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1144 | program_suffix=$ac_optarg ;; | |
1145 | ||
1146 | -program-transform-name | --program-transform-name \ | |
1147 | | --program-transform-nam | --program-transform-na \ | |
1148 | | --program-transform-n | --program-transform- \ | |
1149 | | --program-transform | --program-transfor \ | |
1150 | | --program-transfo | --program-transf \ | |
1151 | | --program-trans | --program-tran \ | |
1152 | | --progr-tra | --program-tr | --program-t) | |
1153 | ac_prev=program_transform_name ;; | |
1154 | -program-transform-name=* | --program-transform-name=* \ | |
1155 | | --program-transform-nam=* | --program-transform-na=* \ | |
1156 | | --program-transform-n=* | --program-transform-=* \ | |
1157 | | --program-transform=* | --program-transfor=* \ | |
1158 | | --program-transfo=* | --program-transf=* \ | |
1159 | | --program-trans=* | --program-tran=* \ | |
1160 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1161 | program_transform_name=$ac_optarg ;; | |
1162 | ||
1163 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1164 | ac_prev=pdfdir ;; | |
1165 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1166 | pdfdir=$ac_optarg ;; | |
1167 | ||
1168 | -psdir | --psdir | --psdi | --psd | --ps) | |
1169 | ac_prev=psdir ;; | |
1170 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1171 | psdir=$ac_optarg ;; | |
1172 | ||
1173 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1174 | | -silent | --silent | --silen | --sile | --sil) | |
1175 | silent=yes ;; | |
1176 | ||
1177 | -runstatedir | --runstatedir | --runstatedi | --runstated \ | |
1178 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1179 | | --run | --ru | --r) | |
1180 | ac_prev=runstatedir ;; | |
1181 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1182 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1183 | | --run=* | --ru=* | --r=*) | |
1184 | runstatedir=$ac_optarg ;; | |
1185 | ||
1186 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1187 | ac_prev=sbindir ;; | |
1188 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1189 | | --sbi=* | --sb=*) | |
1190 | sbindir=$ac_optarg ;; | |
1191 | ||
1192 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1193 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1194 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1195 | | --sha | --sh) | |
1196 | ac_prev=sharedstatedir ;; | |
1197 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1198 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1199 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1200 | | --sha=* | --sh=*) | |
1201 | sharedstatedir=$ac_optarg ;; | |
1202 | ||
1203 | -site | --site | --sit) | |
1204 | ac_prev=site ;; | |
1205 | -site=* | --site=* | --sit=*) | |
1206 | site=$ac_optarg ;; | |
1207 | ||
1208 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1209 | ac_prev=srcdir ;; | |
1210 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1211 | srcdir=$ac_optarg ;; | |
1212 | ||
1213 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1214 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1215 | ac_prev=sysconfdir ;; | |
1216 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1217 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1218 | sysconfdir=$ac_optarg ;; | |
1219 | ||
1220 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1221 | ac_prev=target_alias ;; | |
1222 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1223 | target_alias=$ac_optarg ;; | |
1224 | ||
1225 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1226 | verbose=yes ;; | |
1227 | ||
1228 | -version | --version | --versio | --versi | --vers | -V) | |
1229 | ac_init_version=: ;; | |
1230 | ||
1231 | -with-* | --with-*) | |
1232 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1233 | # Reject names that are not valid shell variable names. | |
1234 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1235 | as_fn_error $? "invalid package name: $ac_useropt" | |
1236 | ac_useropt_orig=$ac_useropt | |
1237 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1238 | case $ac_user_opts in | |
1239 | *" | |
1240 | "with_$ac_useropt" | |
1241 | "*) ;; | |
1242 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1243 | ac_unrecognized_sep=', ';; | |
1244 | esac | |
1245 | eval with_$ac_useropt=\$ac_optarg ;; | |
1246 | ||
1247 | -without-* | --without-*) | |
1248 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1249 | # Reject names that are not valid shell variable names. | |
1250 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1251 | as_fn_error $? "invalid package name: $ac_useropt" | |
1252 | ac_useropt_orig=$ac_useropt | |
1253 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1254 | case $ac_user_opts in | |
1255 | *" | |
1256 | "with_$ac_useropt" | |
1257 | "*) ;; | |
1258 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1259 | ac_unrecognized_sep=', ';; | |
1260 | esac | |
1261 | eval with_$ac_useropt=no ;; | |
1262 | ||
1263 | --x) | |
1264 | # Obsolete; use --with-x. | |
1265 | with_x=yes ;; | |
1266 | ||
1267 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1268 | | --x-incl | --x-inc | --x-in | --x-i) | |
1269 | ac_prev=x_includes ;; | |
1270 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1271 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1272 | x_includes=$ac_optarg ;; | |
1273 | ||
1274 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1275 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1276 | ac_prev=x_libraries ;; | |
1277 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1278 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1279 | x_libraries=$ac_optarg ;; | |
1280 | ||
1281 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1282 | Try \`$0 --help' for more information" | |
1283 | ;; | |
1284 | ||
1285 | *=*) | |
1286 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1287 | # Reject names that are not valid shell variable names. | |
1288 | case $ac_envvar in #( | |
1289 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1290 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1291 | esac | |
1292 | eval $ac_envvar=\$ac_optarg | |
1293 | export $ac_envvar ;; | |
1294 | ||
1295 | *) | |
1296 | # FIXME: should be removed in autoconf 3.0. | |
1297 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1298 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1299 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1300 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1301 | ;; | |
1302 | ||
1303 | esac | |
1304 | done | |
1305 | ||
1306 | if test -n "$ac_prev"; then | |
1307 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1308 | as_fn_error $? "missing argument to $ac_option" | |
1309 | fi | |
1310 | ||
1311 | if test -n "$ac_unrecognized_opts"; then | |
1312 | case $enable_option_checking in | |
1313 | no) ;; | |
1314 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1315 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1316 | esac | |
1317 | fi | |
1318 | ||
1319 | # Check all directory arguments for consistency. | |
1320 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1321 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1322 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1323 | libdir localedir mandir runstatedir | |
1324 | do | |
1325 | eval ac_val=\$$ac_var | |
1326 | # Remove trailing slashes. | |
1327 | case $ac_val in | |
1328 | */ ) | |
1329 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1330 | eval $ac_var=\$ac_val;; | |
1331 | esac | |
1332 | # Be sure to have absolute directory names. | |
1333 | case $ac_val in | |
1334 | [\\/$]* | ?:[\\/]* ) continue;; | |
1335 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1336 | esac | |
1337 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1338 | done | |
1339 | ||
1340 | # There might be people who depend on the old broken behavior: `$host' | |
1341 | # used to hold the argument of --host etc. | |
1342 | # FIXME: To remove some day. | |
1343 | build=$build_alias | |
1344 | host=$host_alias | |
1345 | target=$target_alias | |
1346 | ||
1347 | # FIXME: To remove some day. | |
1348 | if test "x$host_alias" != x; then | |
1349 | if test "x$build_alias" = x; then | |
1350 | cross_compiling=maybe | |
1351 | elif test "x$build_alias" != "x$host_alias"; then | |
1352 | cross_compiling=yes | |
1353 | fi | |
1354 | fi | |
1355 | ||
1356 | ac_tool_prefix= | |
1357 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1358 | ||
1359 | test "$silent" = yes && exec 6>/dev/null | |
1360 | ||
1361 | ||
1362 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1363 | ac_ls_di=`ls -di .` && | |
1364 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1365 | as_fn_error $? "working directory cannot be determined" | |
1366 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1367 | as_fn_error $? "pwd does not report name of working directory" | |
1368 | ||
1369 | ||
1370 | # Find the source files, if location was not specified. | |
1371 | if test -z "$srcdir"; then | |
1372 | ac_srcdir_defaulted=yes | |
1373 | # Try the directory containing this script, then the parent directory. | |
1374 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1375 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1376 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1377 | X"$as_myself" : 'X\(//\)$' \| \ | |
1378 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1379 | $as_echo X"$as_myself" | | |
1380 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1381 | s//\1/ | |
1382 | q | |
1383 | } | |
1384 | /^X\(\/\/\)[^/].*/{ | |
1385 | s//\1/ | |
1386 | q | |
1387 | } | |
1388 | /^X\(\/\/\)$/{ | |
1389 | s//\1/ | |
1390 | q | |
1391 | } | |
1392 | /^X\(\/\).*/{ | |
1393 | s//\1/ | |
1394 | q | |
1395 | } | |
1396 | s/.*/./; q'` | |
1397 | srcdir=$ac_confdir | |
1398 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1399 | srcdir=.. | |
1400 | fi | |
1401 | else | |
1402 | ac_srcdir_defaulted=no | |
1403 | fi | |
1404 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1405 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1406 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1407 | fi | |
1408 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1409 | ac_abs_confdir=`( | |
1410 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1411 | pwd)` | |
1412 | # When building in place, set srcdir=. | |
1413 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1414 | srcdir=. | |
1415 | fi | |
1416 | # Remove unnecessary trailing slashes from srcdir. | |
1417 | # Double slashes in file names in object file debugging info | |
1418 | # mess up M-x gdb in Emacs. | |
1419 | case $srcdir in | |
1420 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1421 | esac | |
1422 | for ac_var in $ac_precious_vars; do | |
1423 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1424 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1425 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1426 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1427 | done | |
1428 | ||
1429 | # | |
1430 | # Report the --help message. | |
1431 | # | |
1432 | if test "$ac_init_help" = "long"; then | |
1433 | # Omit some internal or obsolete options to make the list less imposing. | |
1434 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1435 | cat <<_ACEOF | |
1ec59ff7 | 1436 | \`configure' configures zfs 0.6.5.11 to adapt to many kinds of systems. |
87d546d8 TG |
1437 | |
1438 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1439 | ||
1440 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1441 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1442 | ||
1443 | Defaults for the options are specified in brackets. | |
1444 | ||
1445 | Configuration: | |
1446 | -h, --help display this help and exit | |
1447 | --help=short display options specific to this package | |
1448 | --help=recursive display the short help of all the included packages | |
1449 | -V, --version display version information and exit | |
1450 | -q, --quiet, --silent do not print \`checking ...' messages | |
1451 | --cache-file=FILE cache test results in FILE [disabled] | |
1452 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1453 | -n, --no-create do not create output files | |
1454 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1455 | ||
1456 | Installation directories: | |
1457 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1458 | [$ac_default_prefix] | |
1459 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1460 | [PREFIX] | |
1461 | ||
1462 | By default, \`make install' will install all the files in | |
1463 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1464 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1465 | for instance \`--prefix=\$HOME'. | |
1466 | ||
1467 | For better control, use the options below. | |
1468 | ||
1469 | Fine tuning of the installation directories: | |
1470 | --bindir=DIR user executables [EPREFIX/bin] | |
1471 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1472 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1473 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1474 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1475 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1476 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] | |
1477 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1478 | --includedir=DIR C header files [PREFIX/include] | |
1479 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1480 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1481 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1482 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1483 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1484 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1485 | --docdir=DIR documentation root [DATAROOTDIR/doc/zfs] | |
1486 | --htmldir=DIR html documentation [DOCDIR] | |
1487 | --dvidir=DIR dvi documentation [DOCDIR] | |
1488 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1489 | --psdir=DIR ps documentation [DOCDIR] | |
1490 | _ACEOF | |
1491 | ||
1492 | cat <<\_ACEOF | |
1493 | ||
1494 | Program names: | |
1495 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1496 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1497 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1498 | ||
1499 | System types: | |
1500 | --build=BUILD configure for building on BUILD [guessed] | |
1501 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1502 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1503 | _ACEOF | |
1504 | fi | |
1505 | ||
1506 | if test -n "$ac_init_help"; then | |
1507 | case $ac_init_help in | |
1ec59ff7 | 1508 | short | recursive ) echo "Configuration of zfs 0.6.5.11:";; |
87d546d8 TG |
1509 | esac |
1510 | cat <<\_ACEOF | |
1511 | ||
1512 | Optional Features: | |
1513 | --disable-option-checking ignore unrecognized --enable/--with options | |
1514 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1515 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1516 | --enable-maintainer-mode | |
1517 | enable make rules and dependencies not useful (and | |
1518 | sometimes confusing) to the casual installer | |
1519 | --enable-silent-rules less verbose build output (undo: "make V=1") | |
1520 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1521 | --enable-dependency-tracking | |
1522 | do not reject slow dependency extractors | |
1523 | --disable-dependency-tracking | |
1524 | speeds up one-time build | |
1525 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1526 | --enable-static[=PKGS] build static libraries [default=yes] | |
1527 | --enable-fast-install[=PKGS] | |
1528 | optimize for fast installation [default=yes] | |
1529 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1530 | --enable-linux-builtin Configure for builtin in-tree kernel modules | |
1531 | [default=no] | |
1532 | --enable-systemd install systemd unit/preset files [[default: yes]] | |
1533 | --enable-sysvinit install SysV init scripts [default: yes] | |
1534 | --enable-debug Enable generic debug support [default=no] | |
1535 | --enable-debug-dmu-tx Enable dmu tx validation [default=no] | |
1536 | ||
1537 | Optional Packages: | |
1538 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1539 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1540 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use | |
1541 | both] | |
1542 | --with-aix-soname=aix|svr4|both | |
1543 | shared library versioning (aka "SONAME") variant to | |
1544 | provide on AIX, [default=aix]. | |
1545 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1546 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the | |
1547 | compiler's sysroot if not specified). | |
1548 | --with-spec=SPEC Spec files 'generic|redhat' | |
1549 | --with-config=CONFIG Config file 'kernel|user|all|srpm' | |
1550 | --with-mounthelperdir=DIR | |
1551 | install mount.zfs in dir [[/sbin]] | |
1552 | --with-udevdir=DIR install udev helpers [default=check] | |
1553 | --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]] | |
1554 | --with-systemdunitdir=DIR | |
1555 | install systemd unit files in dir | |
1556 | [[/usr/lib/systemd/system]] | |
1557 | --with-systemdpresetdir=DIR | |
1558 | install systemd preset files in dir | |
1559 | [[/usr/lib/systemd/system-preset]] | |
1560 | --with-systemdmodulesloaddir=DIR | |
1561 | install systemd module load files into dir | |
1562 | [[/usr/lib/modules-load.d]] | |
1563 | --with-dracutdir=DIR install dracut helpers [default=check] | |
1564 | --with-blkid support blkid caching [default=check] | |
1565 | --with-linux=PATH Path to kernel source | |
1566 | --with-linux-obj=PATH Path to kernel build objects | |
1567 | --with-spl=PATH Path to spl source | |
1568 | --with-spl-obj=PATH Path to spl build objects | |
1569 | --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0] | |
1570 | ||
1571 | Some influential environment variables: | |
1572 | CC C compiler command | |
1573 | CFLAGS C compiler flags | |
1574 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1575 | nonstandard directory <lib dir> | |
1576 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1577 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1578 | you have headers in a nonstandard directory <include dir> | |
1579 | LT_SYS_LIBRARY_PATH | |
1580 | User-defined run-time library search path. | |
1581 | CPP C preprocessor | |
1582 | CCAS assembler compiler command (defaults to CC) | |
1583 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) | |
1584 | ||
1585 | Use these variables to override the choices made by `configure' or to help | |
1586 | it to find libraries and programs with nonstandard names/locations. | |
1587 | ||
1588 | Report bugs to the package provider. | |
1589 | _ACEOF | |
1590 | ac_status=$? | |
1591 | fi | |
1592 | ||
1593 | if test "$ac_init_help" = "recursive"; then | |
1594 | # If there are subdirs, report their specific --help. | |
1595 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1596 | test -d "$ac_dir" || | |
1597 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1598 | continue | |
1599 | ac_builddir=. | |
1600 | ||
1601 | case "$ac_dir" in | |
1602 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1603 | *) | |
1604 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1605 | # A ".." for each directory in $ac_dir_suffix. | |
1606 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1607 | case $ac_top_builddir_sub in | |
1608 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1609 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1610 | esac ;; | |
1611 | esac | |
1612 | ac_abs_top_builddir=$ac_pwd | |
1613 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1614 | # for backward compatibility: | |
1615 | ac_top_builddir=$ac_top_build_prefix | |
1616 | ||
1617 | case $srcdir in | |
1618 | .) # We are building in place. | |
1619 | ac_srcdir=. | |
1620 | ac_top_srcdir=$ac_top_builddir_sub | |
1621 | ac_abs_top_srcdir=$ac_pwd ;; | |
1622 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1623 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1624 | ac_top_srcdir=$srcdir | |
1625 | ac_abs_top_srcdir=$srcdir ;; | |
1626 | *) # Relative name. | |
1627 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1628 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1629 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1630 | esac | |
1631 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1632 | ||
1633 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1634 | # Check for guested configure. | |
1635 | if test -f "$ac_srcdir/configure.gnu"; then | |
1636 | echo && | |
1637 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1638 | elif test -f "$ac_srcdir/configure"; then | |
1639 | echo && | |
1640 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1641 | else | |
1642 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1643 | fi || ac_status=$? | |
1644 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1645 | done | |
1646 | fi | |
1647 | ||
1648 | test -n "$ac_init_help" && exit $ac_status | |
1649 | if $ac_init_version; then | |
1650 | cat <<\_ACEOF | |
1ec59ff7 | 1651 | zfs configure 0.6.5.11 |
87d546d8 TG |
1652 | generated by GNU Autoconf 2.69 |
1653 | ||
1654 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1655 | This configure script is free software; the Free Software Foundation | |
1656 | gives unlimited permission to copy, distribute and modify it. | |
1657 | _ACEOF | |
1658 | exit | |
1659 | fi | |
1660 | ||
1661 | ## ------------------------ ## | |
1662 | ## Autoconf initialization. ## | |
1663 | ## ------------------------ ## | |
1664 | ||
1665 | # ac_fn_c_try_compile LINENO | |
1666 | # -------------------------- | |
1667 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1668 | ac_fn_c_try_compile () | |
1669 | { | |
1670 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1671 | rm -f conftest.$ac_objext | |
1672 | if { { ac_try="$ac_compile" | |
1673 | case "(($ac_try" in | |
1674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1675 | *) ac_try_echo=$ac_try;; | |
1676 | esac | |
1677 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1678 | $as_echo "$ac_try_echo"; } >&5 | |
1679 | (eval "$ac_compile") 2>conftest.err | |
1680 | ac_status=$? | |
1681 | if test -s conftest.err; then | |
1682 | grep -v '^ *+' conftest.err >conftest.er1 | |
1683 | cat conftest.er1 >&5 | |
1684 | mv -f conftest.er1 conftest.err | |
1685 | fi | |
1686 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1687 | test $ac_status = 0; } && { | |
1688 | test -z "$ac_c_werror_flag" || | |
1689 | test ! -s conftest.err | |
1690 | } && test -s conftest.$ac_objext; then : | |
1691 | ac_retval=0 | |
1692 | else | |
1693 | $as_echo "$as_me: failed program was:" >&5 | |
1694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1695 | ||
1696 | ac_retval=1 | |
1697 | fi | |
1698 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1699 | as_fn_set_status $ac_retval | |
1700 | ||
1701 | } # ac_fn_c_try_compile | |
1702 | ||
1703 | # ac_fn_c_try_link LINENO | |
1704 | # ----------------------- | |
1705 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1706 | ac_fn_c_try_link () | |
1707 | { | |
1708 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1709 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1710 | if { { ac_try="$ac_link" | |
1711 | case "(($ac_try" in | |
1712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1713 | *) ac_try_echo=$ac_try;; | |
1714 | esac | |
1715 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1716 | $as_echo "$ac_try_echo"; } >&5 | |
1717 | (eval "$ac_link") 2>conftest.err | |
1718 | ac_status=$? | |
1719 | if test -s conftest.err; then | |
1720 | grep -v '^ *+' conftest.err >conftest.er1 | |
1721 | cat conftest.er1 >&5 | |
1722 | mv -f conftest.er1 conftest.err | |
1723 | fi | |
1724 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1725 | test $ac_status = 0; } && { | |
1726 | test -z "$ac_c_werror_flag" || | |
1727 | test ! -s conftest.err | |
1728 | } && test -s conftest$ac_exeext && { | |
1729 | test "$cross_compiling" = yes || | |
1730 | test -x conftest$ac_exeext | |
1731 | }; then : | |
1732 | ac_retval=0 | |
1733 | else | |
1734 | $as_echo "$as_me: failed program was:" >&5 | |
1735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1736 | ||
1737 | ac_retval=1 | |
1738 | fi | |
1739 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1740 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1741 | # interfere with the next link command; also delete a directory that is | |
1742 | # left behind by Apple's compiler. We do this before executing the actions. | |
1743 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1744 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1745 | as_fn_set_status $ac_retval | |
1746 | ||
1747 | } # ac_fn_c_try_link | |
1748 | ||
1749 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1750 | # ------------------------------------------------------- | |
1751 | # Tests whether HEADER exists and can be compiled using the include files in | |
1752 | # INCLUDES, setting the cache variable VAR accordingly. | |
1753 | ac_fn_c_check_header_compile () | |
1754 | { | |
1755 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1757 | $as_echo_n "checking for $2... " >&6; } | |
1758 | if eval \${$3+:} false; then : | |
1759 | $as_echo_n "(cached) " >&6 | |
1760 | else | |
1761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1762 | /* end confdefs.h. */ | |
1763 | $4 | |
1764 | #include <$2> | |
1765 | _ACEOF | |
1766 | if ac_fn_c_try_compile "$LINENO"; then : | |
1767 | eval "$3=yes" | |
1768 | else | |
1769 | eval "$3=no" | |
1770 | fi | |
1771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1772 | fi | |
1773 | eval ac_res=\$$3 | |
1774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1775 | $as_echo "$ac_res" >&6; } | |
1776 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1777 | ||
1778 | } # ac_fn_c_check_header_compile | |
1779 | ||
1780 | # ac_fn_c_try_cpp LINENO | |
1781 | # ---------------------- | |
1782 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1783 | ac_fn_c_try_cpp () | |
1784 | { | |
1785 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1786 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1787 | case "(($ac_try" in | |
1788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1789 | *) ac_try_echo=$ac_try;; | |
1790 | esac | |
1791 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1792 | $as_echo "$ac_try_echo"; } >&5 | |
1793 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1794 | ac_status=$? | |
1795 | if test -s conftest.err; then | |
1796 | grep -v '^ *+' conftest.err >conftest.er1 | |
1797 | cat conftest.er1 >&5 | |
1798 | mv -f conftest.er1 conftest.err | |
1799 | fi | |
1800 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1801 | test $ac_status = 0; } > conftest.i && { | |
1802 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1803 | test ! -s conftest.err | |
1804 | }; then : | |
1805 | ac_retval=0 | |
1806 | else | |
1807 | $as_echo "$as_me: failed program was:" >&5 | |
1808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1809 | ||
1810 | ac_retval=1 | |
1811 | fi | |
1812 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1813 | as_fn_set_status $ac_retval | |
1814 | ||
1815 | } # ac_fn_c_try_cpp | |
1816 | ||
1817 | # ac_fn_c_try_run LINENO | |
1818 | # ---------------------- | |
1819 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1820 | # that executables *can* be run. | |
1821 | ac_fn_c_try_run () | |
1822 | { | |
1823 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1824 | if { { ac_try="$ac_link" | |
1825 | case "(($ac_try" in | |
1826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1827 | *) ac_try_echo=$ac_try;; | |
1828 | esac | |
1829 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1830 | $as_echo "$ac_try_echo"; } >&5 | |
1831 | (eval "$ac_link") 2>&5 | |
1832 | ac_status=$? | |
1833 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1834 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1835 | { { case "(($ac_try" in | |
1836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1837 | *) ac_try_echo=$ac_try;; | |
1838 | esac | |
1839 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1840 | $as_echo "$ac_try_echo"; } >&5 | |
1841 | (eval "$ac_try") 2>&5 | |
1842 | ac_status=$? | |
1843 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1844 | test $ac_status = 0; }; }; then : | |
1845 | ac_retval=0 | |
1846 | else | |
1847 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1848 | $as_echo "$as_me: failed program was:" >&5 | |
1849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1850 | ||
1851 | ac_retval=$ac_status | |
1852 | fi | |
1853 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1854 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1855 | as_fn_set_status $ac_retval | |
1856 | ||
1857 | } # ac_fn_c_try_run | |
1858 | ||
1859 | # ac_fn_c_check_func LINENO FUNC VAR | |
1860 | # ---------------------------------- | |
1861 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1862 | ac_fn_c_check_func () | |
1863 | { | |
1864 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1866 | $as_echo_n "checking for $2... " >&6; } | |
1867 | if eval \${$3+:} false; then : | |
1868 | $as_echo_n "(cached) " >&6 | |
1869 | else | |
1870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1871 | /* end confdefs.h. */ | |
1872 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1873 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1874 | #define $2 innocuous_$2 | |
1875 | ||
1876 | /* System header to define __stub macros and hopefully few prototypes, | |
1877 | which can conflict with char $2 (); below. | |
1878 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1879 | <limits.h> exists even on freestanding compilers. */ | |
1880 | ||
1881 | #ifdef __STDC__ | |
1882 | # include <limits.h> | |
1883 | #else | |
1884 | # include <assert.h> | |
1885 | #endif | |
1886 | ||
1887 | #undef $2 | |
1888 | ||
1889 | /* Override any GCC internal prototype to avoid an error. | |
1890 | Use char because int might match the return type of a GCC | |
1891 | builtin and then its argument prototype would still apply. */ | |
1892 | #ifdef __cplusplus | |
1893 | extern "C" | |
1894 | #endif | |
1895 | char $2 (); | |
1896 | /* The GNU C library defines this for functions which it implements | |
1897 | to always fail with ENOSYS. Some functions are actually named | |
1898 | something starting with __ and the normal name is an alias. */ | |
1899 | #if defined __stub_$2 || defined __stub___$2 | |
1900 | choke me | |
1901 | #endif | |
1902 | ||
1903 | int | |
1904 | main () | |
1905 | { | |
1906 | return $2 (); | |
1907 | ; | |
1908 | return 0; | |
1909 | } | |
1910 | _ACEOF | |
1911 | if ac_fn_c_try_link "$LINENO"; then : | |
1912 | eval "$3=yes" | |
1913 | else | |
1914 | eval "$3=no" | |
1915 | fi | |
1916 | rm -f core conftest.err conftest.$ac_objext \ | |
1917 | conftest$ac_exeext conftest.$ac_ext | |
1918 | fi | |
1919 | eval ac_res=\$$3 | |
1920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1921 | $as_echo "$ac_res" >&6; } | |
1922 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1923 | ||
1924 | } # ac_fn_c_check_func | |
1925 | ||
1926 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1927 | # ------------------------------------------------------- | |
1928 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1929 | # the include files in INCLUDES and setting the cache variable VAR | |
1930 | # accordingly. | |
1931 | ac_fn_c_check_header_mongrel () | |
1932 | { | |
1933 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1934 | if eval \${$3+:} false; then : | |
1935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1936 | $as_echo_n "checking for $2... " >&6; } | |
1937 | if eval \${$3+:} false; then : | |
1938 | $as_echo_n "(cached) " >&6 | |
1939 | fi | |
1940 | eval ac_res=\$$3 | |
1941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1942 | $as_echo "$ac_res" >&6; } | |
1943 | else | |
1944 | # Is the header compilable? | |
1945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1946 | $as_echo_n "checking $2 usability... " >&6; } | |
1947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1948 | /* end confdefs.h. */ | |
1949 | $4 | |
1950 | #include <$2> | |
1951 | _ACEOF | |
1952 | if ac_fn_c_try_compile "$LINENO"; then : | |
1953 | ac_header_compiler=yes | |
1954 | else | |
1955 | ac_header_compiler=no | |
1956 | fi | |
1957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1959 | $as_echo "$ac_header_compiler" >&6; } | |
1960 | ||
1961 | # Is the header present? | |
1962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1963 | $as_echo_n "checking $2 presence... " >&6; } | |
1964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1965 | /* end confdefs.h. */ | |
1966 | #include <$2> | |
1967 | _ACEOF | |
1968 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1969 | ac_header_preproc=yes | |
1970 | else | |
1971 | ac_header_preproc=no | |
1972 | fi | |
1973 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1975 | $as_echo "$ac_header_preproc" >&6; } | |
1976 | ||
1977 | # So? What about this header? | |
1978 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1979 | yes:no: ) | |
1980 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1981 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1982 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1983 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1984 | ;; | |
1985 | no:yes:* ) | |
1986 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1987 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1988 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1989 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1990 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1991 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1992 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1993 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1994 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1995 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1996 | ;; | |
1997 | esac | |
1998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1999 | $as_echo_n "checking for $2... " >&6; } | |
2000 | if eval \${$3+:} false; then : | |
2001 | $as_echo_n "(cached) " >&6 | |
2002 | else | |
2003 | eval "$3=\$ac_header_compiler" | |
2004 | fi | |
2005 | eval ac_res=\$$3 | |
2006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2007 | $as_echo "$ac_res" >&6; } | |
2008 | fi | |
2009 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2010 | ||
2011 | } # ac_fn_c_check_header_mongrel | |
2012 | cat >config.log <<_ACEOF | |
2013 | This file contains any messages produced by compilers while | |
2014 | running configure, to aid debugging if configure makes a mistake. | |
2015 | ||
1ec59ff7 | 2016 | It was created by zfs $as_me 0.6.5.11, which was |
87d546d8 TG |
2017 | generated by GNU Autoconf 2.69. Invocation command line was |
2018 | ||
2019 | $ $0 $@ | |
2020 | ||
2021 | _ACEOF | |
2022 | exec 5>>config.log | |
2023 | { | |
2024 | cat <<_ASUNAME | |
2025 | ## --------- ## | |
2026 | ## Platform. ## | |
2027 | ## --------- ## | |
2028 | ||
2029 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2030 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2031 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2032 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2033 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2034 | ||
2035 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2036 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2037 | ||
2038 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2039 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2040 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2041 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2042 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2043 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2044 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2045 | ||
2046 | _ASUNAME | |
2047 | ||
2048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2049 | for as_dir in $PATH | |
2050 | do | |
2051 | IFS=$as_save_IFS | |
2052 | test -z "$as_dir" && as_dir=. | |
2053 | $as_echo "PATH: $as_dir" | |
2054 | done | |
2055 | IFS=$as_save_IFS | |
2056 | ||
2057 | } >&5 | |
2058 | ||
2059 | cat >&5 <<_ACEOF | |
2060 | ||
2061 | ||
2062 | ## ----------- ## | |
2063 | ## Core tests. ## | |
2064 | ## ----------- ## | |
2065 | ||
2066 | _ACEOF | |
2067 | ||
2068 | ||
2069 | # Keep a trace of the command line. | |
2070 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2071 | # Strip out --silent because we don't want to record it for future runs. | |
2072 | # Also quote any args containing shell meta-characters. | |
2073 | # Make two passes to allow for proper duplicate-argument suppression. | |
2074 | ac_configure_args= | |
2075 | ac_configure_args0= | |
2076 | ac_configure_args1= | |
2077 | ac_must_keep_next=false | |
2078 | for ac_pass in 1 2 | |
2079 | do | |
2080 | for ac_arg | |
2081 | do | |
2082 | case $ac_arg in | |
2083 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2084 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2085 | | -silent | --silent | --silen | --sile | --sil) | |
2086 | continue ;; | |
2087 | *\'*) | |
2088 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2089 | esac | |
2090 | case $ac_pass in | |
2091 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2092 | 2) | |
2093 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2094 | if test $ac_must_keep_next = true; then | |
2095 | ac_must_keep_next=false # Got value, back to normal. | |
2096 | else | |
2097 | case $ac_arg in | |
2098 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2099 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2100 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2101 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2102 | case "$ac_configure_args0 " in | |
2103 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2104 | esac | |
2105 | ;; | |
2106 | -* ) ac_must_keep_next=true ;; | |
2107 | esac | |
2108 | fi | |
2109 | as_fn_append ac_configure_args " '$ac_arg'" | |
2110 | ;; | |
2111 | esac | |
2112 | done | |
2113 | done | |
2114 | { ac_configure_args0=; unset ac_configure_args0;} | |
2115 | { ac_configure_args1=; unset ac_configure_args1;} | |
2116 | ||
2117 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2118 | # config.log. We remove comments because anyway the quotes in there | |
2119 | # would cause problems or look ugly. | |
2120 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2121 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2122 | trap 'exit_status=$? | |
2123 | # Save into config.log some information that might help in debugging. | |
2124 | { | |
2125 | echo | |
2126 | ||
2127 | $as_echo "## ---------------- ## | |
2128 | ## Cache variables. ## | |
2129 | ## ---------------- ##" | |
2130 | echo | |
2131 | # The following way of writing the cache mishandles newlines in values, | |
2132 | ( | |
2133 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2134 | eval ac_val=\$$ac_var | |
2135 | case $ac_val in #( | |
2136 | *${as_nl}*) | |
2137 | case $ac_var in #( | |
2138 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2139 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2140 | esac | |
2141 | case $ac_var in #( | |
2142 | _ | IFS | as_nl) ;; #( | |
2143 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2144 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2145 | esac ;; | |
2146 | esac | |
2147 | done | |
2148 | (set) 2>&1 | | |
2149 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2150 | *${as_nl}ac_space=\ *) | |
2151 | sed -n \ | |
2152 | "s/'\''/'\''\\\\'\'''\''/g; | |
2153 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2154 | ;; #( | |
2155 | *) | |
2156 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2157 | ;; | |
2158 | esac | | |
2159 | sort | |
2160 | ) | |
2161 | echo | |
2162 | ||
2163 | $as_echo "## ----------------- ## | |
2164 | ## Output variables. ## | |
2165 | ## ----------------- ##" | |
2166 | echo | |
2167 | for ac_var in $ac_subst_vars | |
2168 | do | |
2169 | eval ac_val=\$$ac_var | |
2170 | case $ac_val in | |
2171 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2172 | esac | |
2173 | $as_echo "$ac_var='\''$ac_val'\''" | |
2174 | done | sort | |
2175 | echo | |
2176 | ||
2177 | if test -n "$ac_subst_files"; then | |
2178 | $as_echo "## ------------------- ## | |
2179 | ## File substitutions. ## | |
2180 | ## ------------------- ##" | |
2181 | echo | |
2182 | for ac_var in $ac_subst_files | |
2183 | do | |
2184 | eval ac_val=\$$ac_var | |
2185 | case $ac_val in | |
2186 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2187 | esac | |
2188 | $as_echo "$ac_var='\''$ac_val'\''" | |
2189 | done | sort | |
2190 | echo | |
2191 | fi | |
2192 | ||
2193 | if test -s confdefs.h; then | |
2194 | $as_echo "## ----------- ## | |
2195 | ## confdefs.h. ## | |
2196 | ## ----------- ##" | |
2197 | echo | |
2198 | cat confdefs.h | |
2199 | echo | |
2200 | fi | |
2201 | test "$ac_signal" != 0 && | |
2202 | $as_echo "$as_me: caught signal $ac_signal" | |
2203 | $as_echo "$as_me: exit $exit_status" | |
2204 | } >&5 | |
2205 | rm -f core *.core core.conftest.* && | |
2206 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2207 | exit $exit_status | |
2208 | ' 0 | |
2209 | for ac_signal in 1 2 13 15; do | |
2210 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2211 | done | |
2212 | ac_signal=0 | |
2213 | ||
2214 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2215 | rm -f -r conftest* confdefs.h | |
2216 | ||
2217 | $as_echo "/* confdefs.h */" > confdefs.h | |
2218 | ||
2219 | # Predefined preprocessor variables. | |
2220 | ||
2221 | cat >>confdefs.h <<_ACEOF | |
2222 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2223 | _ACEOF | |
2224 | ||
2225 | cat >>confdefs.h <<_ACEOF | |
2226 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2227 | _ACEOF | |
2228 | ||
2229 | cat >>confdefs.h <<_ACEOF | |
2230 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2231 | _ACEOF | |
2232 | ||
2233 | cat >>confdefs.h <<_ACEOF | |
2234 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2235 | _ACEOF | |
2236 | ||
2237 | cat >>confdefs.h <<_ACEOF | |
2238 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2239 | _ACEOF | |
2240 | ||
2241 | cat >>confdefs.h <<_ACEOF | |
2242 | #define PACKAGE_URL "$PACKAGE_URL" | |
2243 | _ACEOF | |
2244 | ||
2245 | ||
2246 | # Let the site file select an alternate cache file if it wants to. | |
2247 | # Prefer an explicitly selected file to automatically selected ones. | |
2248 | ac_site_file1=NONE | |
2249 | ac_site_file2=NONE | |
2250 | if test -n "$CONFIG_SITE"; then | |
2251 | # We do not want a PATH search for config.site. | |
2252 | case $CONFIG_SITE in #(( | |
2253 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2254 | */*) ac_site_file1=$CONFIG_SITE;; | |
2255 | *) ac_site_file1=./$CONFIG_SITE;; | |
2256 | esac | |
2257 | elif test "x$prefix" != xNONE; then | |
2258 | ac_site_file1=$prefix/share/config.site | |
2259 | ac_site_file2=$prefix/etc/config.site | |
2260 | else | |
2261 | ac_site_file1=$ac_default_prefix/share/config.site | |
2262 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2263 | fi | |
2264 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2265 | do | |
2266 | test "x$ac_site_file" = xNONE && continue | |
2267 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2268 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2269 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2270 | sed 's/^/| /' "$ac_site_file" >&5 | |
2271 | . "$ac_site_file" \ | |
2272 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2273 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2274 | as_fn_error $? "failed to load site script $ac_site_file | |
2275 | See \`config.log' for more details" "$LINENO" 5; } | |
2276 | fi | |
2277 | done | |
2278 | ||
2279 | if test -r "$cache_file"; then | |
2280 | # Some versions of bash will fail to source /dev/null (special files | |
2281 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2282 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2283 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2284 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2285 | case $cache_file in | |
2286 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2287 | *) . "./$cache_file";; | |
2288 | esac | |
2289 | fi | |
2290 | else | |
2291 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2292 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2293 | >$cache_file | |
2294 | fi | |
2295 | ||
2296 | # Check that the precious variables saved in the cache have kept the same | |
2297 | # value. | |
2298 | ac_cache_corrupted=false | |
2299 | for ac_var in $ac_precious_vars; do | |
2300 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2301 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2302 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2303 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2304 | case $ac_old_set,$ac_new_set in | |
2305 | set,) | |
2306 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2307 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2308 | ac_cache_corrupted=: ;; | |
2309 | ,set) | |
2310 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2311 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2312 | ac_cache_corrupted=: ;; | |
2313 | ,);; | |
2314 | *) | |
2315 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2316 | # differences in whitespace do not lead to failure. | |
2317 | ac_old_val_w=`echo x $ac_old_val` | |
2318 | ac_new_val_w=`echo x $ac_new_val` | |
2319 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2320 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2321 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2322 | ac_cache_corrupted=: | |
2323 | else | |
2324 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2325 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2326 | eval $ac_var=\$ac_old_val | |
2327 | fi | |
2328 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2329 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2330 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2331 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2332 | fi;; | |
2333 | esac | |
2334 | # Pass precious variables to config.status. | |
2335 | if test "$ac_new_set" = set; then | |
2336 | case $ac_new_val in | |
2337 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2338 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2339 | esac | |
2340 | case " $ac_configure_args " in | |
2341 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2342 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2343 | esac | |
2344 | fi | |
2345 | done | |
2346 | if $ac_cache_corrupted; then | |
2347 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2348 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2349 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2350 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2351 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2352 | fi | |
2353 | ## -------------------- ## | |
2354 | ## Main body of script. ## | |
2355 | ## -------------------- ## | |
2356 | ||
2357 | ac_ext=c | |
2358 | ac_cpp='$CPP $CPPFLAGS' | |
2359 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2360 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2361 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2362 | ||
2363 | ||
2364 | ac_ext=c | |
2365 | ac_cpp='$CPP $CPPFLAGS' | |
2366 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2367 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2368 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2369 | ||
2370 | ||
2371 | ||
2372 | ||
2373 | ||
2374 | for ac_prog in gawk mawk nawk awk | |
2375 | do | |
2376 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2377 | set dummy $ac_prog; ac_word=$2 | |
2378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2379 | $as_echo_n "checking for $ac_word... " >&6; } | |
2380 | if ${ac_cv_prog_AWK+:} false; then : | |
2381 | $as_echo_n "(cached) " >&6 | |
2382 | else | |
2383 | if test -n "$AWK"; then | |
2384 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2385 | else | |
2386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2387 | for as_dir in $PATH | |
2388 | do | |
2389 | IFS=$as_save_IFS | |
2390 | test -z "$as_dir" && as_dir=. | |
2391 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2392 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2393 | ac_cv_prog_AWK="$ac_prog" | |
2394 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2395 | break 2 | |
2396 | fi | |
2397 | done | |
2398 | done | |
2399 | IFS=$as_save_IFS | |
2400 | ||
2401 | fi | |
2402 | fi | |
2403 | AWK=$ac_cv_prog_AWK | |
2404 | if test -n "$AWK"; then | |
2405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2406 | $as_echo "$AWK" >&6; } | |
2407 | else | |
2408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2409 | $as_echo "no" >&6; } | |
2410 | fi | |
2411 | ||
2412 | ||
2413 | test -n "$AWK" && break | |
2414 | done | |
2415 | ||
2416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5 | |
2417 | $as_echo_n "checking metadata... " >&6; } | |
2418 | ||
2419 | META="$srcdir/META" | |
2420 | _zfs_ac_meta_type="none" | |
2421 | if test -f "$META"; then | |
2422 | _zfs_ac_meta_type="META file" | |
2423 | _dpkg_parsechangelog=$(dpkg-parsechangelog 2>/dev/null) | |
2424 | ||
2425 | ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`; | |
2426 | if test -n "$ZFS_META_NAME"; then | |
2427 | ||
2428 | cat >>confdefs.h <<_ACEOF | |
2429 | #define ZFS_META_NAME "$ZFS_META_NAME" | |
2430 | _ACEOF | |
2431 | ||
2432 | ||
2433 | fi | |
2434 | ||
2435 | ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`; | |
2436 | if test -n "$ZFS_META_VERSION"; then | |
2437 | ||
2438 | cat >>confdefs.h <<_ACEOF | |
2439 | #define ZFS_META_VERSION "$ZFS_META_VERSION" | |
2440 | _ACEOF | |
2441 | ||
2442 | ||
2443 | fi | |
2444 | ||
2445 | if test -n "${_dpkg_parsechangelog}"; then | |
2446 | _dpkg_version=$(echo "${_dpkg_parsechangelog}" \ | |
2447 | | $AWK '$1 == "Version:" { print $2; }' \ | |
2448 | | cut -d- -f1) | |
2449 | if test "${_dpkg_version}" != "$ZFS_META_VERSION"; then | |
2450 | as_fn_error $? " | |
2451 | *** Version $ZFS_META_VERSION in the META file is different than | |
2452 | *** version $_dpkg_version in the debian/changelog file. DKMS and DEB | |
2453 | *** packaging require that these files have the same version. | |
2454 | " "$LINENO" 5 | |
2455 | fi | |
2456 | fi | |
2457 | ||
2458 | ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`; | |
2459 | ||
2460 | if test -n "${_dpkg_parsechangelog}"; then | |
2461 | _dpkg_release=$(echo "${_dpkg_parsechangelog}" \ | |
2462 | | $AWK '$1 == "Version:" { print $2; }' \ | |
2463 | | cut -d- -f2-) | |
2464 | if test -n "${_dpkg_release}"; then | |
2465 | ZFS_META_RELEASE=${_dpkg_release} | |
2466 | _zfs_ac_meta_type="dpkg-parsechangelog" | |
2467 | fi | |
2468 | elif test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then | |
2469 | _match="${ZFS_META_NAME}-${ZFS_META_VERSION}" | |
2470 | _alias=$(git describe --match=${_match} 2>/dev/null) | |
2471 | _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g') | |
2472 | if test -n "${_release}"; then | |
2473 | ZFS_META_RELEASE=${_release} | |
2474 | _zfs_ac_meta_type="git describe" | |
2475 | fi | |
2476 | fi | |
2477 | ||
2478 | if test -n "$ZFS_META_RELEASE"; then | |
2479 | ||
2480 | cat >>confdefs.h <<_ACEOF | |
2481 | #define ZFS_META_RELEASE "$ZFS_META_RELEASE" | |
2482 | _ACEOF | |
2483 | ||
2484 | ||
2485 | ||
2486 | RELEASE="$ZFS_META_RELEASE" | |
2487 | ||
2488 | fi | |
2489 | ||
2490 | ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`; | |
2491 | if test -n "$ZFS_META_LICENSE"; then | |
2492 | ||
2493 | cat >>confdefs.h <<_ACEOF | |
2494 | #define ZFS_META_LICENSE "$ZFS_META_LICENSE" | |
2495 | _ACEOF | |
2496 | ||
2497 | ||
2498 | fi | |
2499 | ||
2500 | if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then | |
2501 | ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION" | |
2502 | test -n "$ZFS_META_RELEASE" && | |
2503 | ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE" | |
2504 | ||
2505 | cat >>confdefs.h <<_ACEOF | |
2506 | #define ZFS_META_ALIAS "$ZFS_META_ALIAS" | |
2507 | _ACEOF | |
2508 | ||
2509 | ||
2510 | fi | |
2511 | ||
2512 | ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`; | |
2513 | if test -n "$ZFS_META_DATA"; then | |
2514 | ||
2515 | cat >>confdefs.h <<_ACEOF | |
2516 | #define ZFS_META_DATA "$ZFS_META_DATA" | |
2517 | _ACEOF | |
2518 | ||
2519 | ||
2520 | fi | |
2521 | ||
2522 | ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`; | |
2523 | if test -n "$ZFS_META_AUTHOR"; then | |
2524 | ||
2525 | cat >>confdefs.h <<_ACEOF | |
2526 | #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR" | |
2527 | _ACEOF | |
2528 | ||
2529 | ||
2530 | fi | |
2531 | ||
2532 | ||
2533 | ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`; | |
2534 | ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`; | |
2535 | ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`; | |
2536 | if test -n "$ZFS_META_LT_CURRENT" \ | |
2537 | -o -n "$ZFS_META_LT_REVISION" \ | |
2538 | -o -n "$ZFS_META_LT_AGE"; then | |
2539 | test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0" | |
2540 | test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0" | |
2541 | test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0" | |
2542 | ||
2543 | cat >>confdefs.h <<_ACEOF | |
2544 | #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT" | |
2545 | _ACEOF | |
2546 | ||
2547 | ||
2548 | cat >>confdefs.h <<_ACEOF | |
2549 | #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION" | |
2550 | _ACEOF | |
2551 | ||
2552 | ||
2553 | cat >>confdefs.h <<_ACEOF | |
2554 | #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE" | |
2555 | _ACEOF | |
2556 | ||
2557 | ||
2558 | ||
2559 | ||
2560 | fi | |
2561 | fi | |
2562 | ||
2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5 | |
2564 | $as_echo "$_zfs_ac_meta_type" >&6; } | |
2565 | ||
2566 | ||
2567 | ac_aux_dir= | |
2568 | for ac_dir in config "$srcdir"/config; do | |
2569 | if test -f "$ac_dir/install-sh"; then | |
2570 | ac_aux_dir=$ac_dir | |
2571 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2572 | break | |
2573 | elif test -f "$ac_dir/install.sh"; then | |
2574 | ac_aux_dir=$ac_dir | |
2575 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2576 | break | |
2577 | elif test -f "$ac_dir/shtool"; then | |
2578 | ac_aux_dir=$ac_dir | |
2579 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2580 | break | |
2581 | fi | |
2582 | done | |
2583 | if test -z "$ac_aux_dir"; then | |
2584 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 | |
2585 | fi | |
2586 | ||
2587 | # These three variables are undocumented and unsupported, | |
2588 | # and are intended to be withdrawn in a future Autoconf release. | |
2589 | # They can cause serious problems if a builder's source tree is in a directory | |
2590 | # whose full name contains unusual characters. | |
2591 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2592 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2593 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2594 | ||
2595 | ||
2596 | ||
2597 | # Make sure we can run config.sub. | |
2598 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2599 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2600 | ||
2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2602 | $as_echo_n "checking build system type... " >&6; } | |
2603 | if ${ac_cv_build+:} false; then : | |
2604 | $as_echo_n "(cached) " >&6 | |
2605 | else | |
2606 | ac_build_alias=$build_alias | |
2607 | test "x$ac_build_alias" = x && | |
2608 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2609 | test "x$ac_build_alias" = x && | |
2610 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2611 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2612 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2613 | ||
2614 | fi | |
2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2616 | $as_echo "$ac_cv_build" >&6; } | |
2617 | case $ac_cv_build in | |
2618 | *-*-*) ;; | |
2619 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2620 | esac | |
2621 | build=$ac_cv_build | |
2622 | ac_save_IFS=$IFS; IFS='-' | |
2623 | set x $ac_cv_build | |
2624 | shift | |
2625 | build_cpu=$1 | |
2626 | build_vendor=$2 | |
2627 | shift; shift | |
2628 | # Remember, the first character of IFS is used to create $*, | |
2629 | # except with old shells: | |
2630 | build_os=$* | |
2631 | IFS=$ac_save_IFS | |
2632 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2633 | ||
2634 | ||
2635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2636 | $as_echo_n "checking host system type... " >&6; } | |
2637 | if ${ac_cv_host+:} false; then : | |
2638 | $as_echo_n "(cached) " >&6 | |
2639 | else | |
2640 | if test "x$host_alias" = x; then | |
2641 | ac_cv_host=$ac_cv_build | |
2642 | else | |
2643 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2644 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2645 | fi | |
2646 | ||
2647 | fi | |
2648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2649 | $as_echo "$ac_cv_host" >&6; } | |
2650 | case $ac_cv_host in | |
2651 | *-*-*) ;; | |
2652 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2653 | esac | |
2654 | host=$ac_cv_host | |
2655 | ac_save_IFS=$IFS; IFS='-' | |
2656 | set x $ac_cv_host | |
2657 | shift | |
2658 | host_cpu=$1 | |
2659 | host_vendor=$2 | |
2660 | shift; shift | |
2661 | # Remember, the first character of IFS is used to create $*, | |
2662 | # except with old shells: | |
2663 | host_os=$* | |
2664 | IFS=$ac_save_IFS | |
2665 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2666 | ||
2667 | ||
2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2669 | $as_echo_n "checking target system type... " >&6; } | |
2670 | if ${ac_cv_target+:} false; then : | |
2671 | $as_echo_n "(cached) " >&6 | |
2672 | else | |
2673 | if test "x$target_alias" = x; then | |
2674 | ac_cv_target=$ac_cv_host | |
2675 | else | |
2676 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2677 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2678 | fi | |
2679 | ||
2680 | fi | |
2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2682 | $as_echo "$ac_cv_target" >&6; } | |
2683 | case $ac_cv_target in | |
2684 | *-*-*) ;; | |
2685 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
2686 | esac | |
2687 | target=$ac_cv_target | |
2688 | ac_save_IFS=$IFS; IFS='-' | |
2689 | set x $ac_cv_target | |
2690 | shift | |
2691 | target_cpu=$1 | |
2692 | target_vendor=$2 | |
2693 | shift; shift | |
2694 | # Remember, the first character of IFS is used to create $*, | |
2695 | # except with old shells: | |
2696 | target_os=$* | |
2697 | IFS=$ac_save_IFS | |
2698 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2699 | ||
2700 | ||
2701 | # The aliases save the names the user supplied, while $host etc. | |
2702 | # will get canonicalized. | |
2703 | test -n "$target_alias" && | |
2704 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2705 | NONENONEs,x,x, && | |
2706 | program_prefix=${target_alias}- | |
2707 | ||
2708 | ||
2709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2710 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
2711 | # Check whether --enable-maintainer-mode was given. | |
2712 | if test "${enable_maintainer_mode+set}" = set; then : | |
2713 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
2714 | else | |
2715 | USE_MAINTAINER_MODE=no | |
2716 | fi | |
2717 | ||
2718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
2719 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
2720 | if test $USE_MAINTAINER_MODE = yes; then | |
2721 | MAINTAINER_MODE_TRUE= | |
2722 | MAINTAINER_MODE_FALSE='#' | |
2723 | else | |
2724 | MAINTAINER_MODE_TRUE='#' | |
2725 | MAINTAINER_MODE_FALSE= | |
2726 | fi | |
2727 | ||
2728 | MAINT=$MAINTAINER_MODE_TRUE | |
2729 | ||
2730 | ||
2731 | # Check whether --enable-silent-rules was given. | |
2732 | if test "${enable_silent_rules+set}" = set; then : | |
2733 | enableval=$enable_silent_rules; | |
2734 | fi | |
2735 | ||
2736 | case $enable_silent_rules in # ((( | |
2737 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2738 | no) AM_DEFAULT_VERBOSITY=1;; | |
2739 | *) AM_DEFAULT_VERBOSITY=0;; | |
2740 | esac | |
2741 | am_make=${MAKE-make} | |
2742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2743 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2744 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2745 | $as_echo_n "(cached) " >&6 | |
2746 | else | |
2747 | if $as_echo 'TRUE=$(BAR$(V)) | |
2748 | BAR0=false | |
2749 | BAR1=true | |
2750 | V=1 | |
2751 | am__doit: | |
2752 | @$(TRUE) | |
2753 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2754 | am_cv_make_support_nested_variables=yes | |
2755 | else | |
2756 | am_cv_make_support_nested_variables=no | |
2757 | fi | |
2758 | fi | |
2759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2760 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2761 | if test $am_cv_make_support_nested_variables = yes; then | |
2762 | AM_V='$(V)' | |
2763 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2764 | else | |
2765 | AM_V=$AM_DEFAULT_VERBOSITY | |
2766 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2767 | fi | |
2768 | AM_BACKSLASH='\' | |
2769 | ||
2770 | am__api_version='1.15' | |
2771 | ||
2772 | # Find a good install program. We prefer a C program (faster), | |
2773 | # so one script is as good as another. But avoid the broken or | |
2774 | # incompatible versions: | |
2775 | # SysV /etc/install, /usr/sbin/install | |
2776 | # SunOS /usr/etc/install | |
2777 | # IRIX /sbin/install | |
2778 | # AIX /bin/install | |
2779 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2780 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2781 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2782 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2783 | # OS/2's system install, which has a completely different semantic | |
2784 | # ./install, which can be erroneously created by make from ./install.sh. | |
2785 | # Reject install programs that cannot install multiple files. | |
2786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2787 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2788 | if test -z "$INSTALL"; then | |
2789 | if ${ac_cv_path_install+:} false; then : | |
2790 | $as_echo_n "(cached) " >&6 | |
2791 | else | |
2792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2793 | for as_dir in $PATH | |
2794 | do | |
2795 | IFS=$as_save_IFS | |
2796 | test -z "$as_dir" && as_dir=. | |
2797 | # Account for people who put trailing slashes in PATH elements. | |
2798 | case $as_dir/ in #(( | |
2799 | ./ | .// | /[cC]/* | \ | |
2800 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2801 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2802 | /usr/ucb/* ) ;; | |
2803 | *) | |
2804 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2805 | # Don't use installbsd from OSF since it installs stuff as root | |
2806 | # by default. | |
2807 | for ac_prog in ginstall scoinst install; do | |
2808 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2809 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2810 | if test $ac_prog = install && | |
2811 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2812 | # AIX install. It has an incompatible calling convention. | |
2813 | : | |
2814 | elif test $ac_prog = install && | |
2815 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2816 | # program-specific install script used by HP pwplus--don't use. | |
2817 | : | |
2818 | else | |
2819 | rm -rf conftest.one conftest.two conftest.dir | |
2820 | echo one > conftest.one | |
2821 | echo two > conftest.two | |
2822 | mkdir conftest.dir | |
2823 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2824 | test -s conftest.one && test -s conftest.two && | |
2825 | test -s conftest.dir/conftest.one && | |
2826 | test -s conftest.dir/conftest.two | |
2827 | then | |
2828 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2829 | break 3 | |
2830 | fi | |
2831 | fi | |
2832 | fi | |
2833 | done | |
2834 | done | |
2835 | ;; | |
2836 | esac | |
2837 | ||
2838 | done | |
2839 | IFS=$as_save_IFS | |
2840 | ||
2841 | rm -rf conftest.one conftest.two conftest.dir | |
2842 | ||
2843 | fi | |
2844 | if test "${ac_cv_path_install+set}" = set; then | |
2845 | INSTALL=$ac_cv_path_install | |
2846 | else | |
2847 | # As a last resort, use the slow shell script. Don't cache a | |
2848 | # value for INSTALL within a source directory, because that will | |
2849 | # break other packages using the cache if that directory is | |
2850 | # removed, or if the value is a relative name. | |
2851 | INSTALL=$ac_install_sh | |
2852 | fi | |
2853 | fi | |
2854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2855 | $as_echo "$INSTALL" >&6; } | |
2856 | ||
2857 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2858 | # It thinks the first close brace ends the variable substitution. | |
2859 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2860 | ||
2861 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2862 | ||
2863 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2864 | ||
2865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2866 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2867 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2868 | # name. Accept space and tab only in the latter. | |
2869 | am_lf=' | |
2870 | ' | |
2871 | case `pwd` in | |
2872 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2873 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2874 | esac | |
2875 | case $srcdir in | |
2876 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2877 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2878 | esac | |
2879 | ||
2880 | # Do 'set' in a subshell so we don't clobber the current shell's | |
2881 | # arguments. Must try -L first in case configure is actually a | |
2882 | # symlink; some systems play weird games with the mod time of symlinks | |
2883 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2884 | # directory). | |
2885 | if ( | |
2886 | am_has_slept=no | |
2887 | for am_try in 1 2; do | |
2888 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2889 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2890 | if test "$*" = "X"; then | |
2891 | # -L didn't work. | |
2892 | set X `ls -t "$srcdir/configure" conftest.file` | |
2893 | fi | |
2894 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2895 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2896 | ||
2897 | # If neither matched, then we have a broken ls. This can happen | |
2898 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2899 | # broken ls alias from the environment. This has actually | |
2900 | # happened. Such a system could not be considered "sane". | |
2901 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2902 | alias in your environment" "$LINENO" 5 | |
2903 | fi | |
2904 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2905 | break | |
2906 | fi | |
2907 | # Just in case. | |
2908 | sleep 1 | |
2909 | am_has_slept=yes | |
2910 | done | |
2911 | test "$2" = conftest.file | |
2912 | ) | |
2913 | then | |
2914 | # Ok. | |
2915 | : | |
2916 | else | |
2917 | as_fn_error $? "newly created file is older than distributed files! | |
2918 | Check your system clock" "$LINENO" 5 | |
2919 | fi | |
2920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2921 | $as_echo "yes" >&6; } | |
2922 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2923 | # generated files are strictly newer. | |
2924 | am_sleep_pid= | |
2925 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2926 | ( sleep 1 ) & | |
2927 | am_sleep_pid=$! | |
2928 | fi | |
2929 | ||
2930 | rm -f conftest.file | |
2931 | ||
2932 | test "$program_prefix" != NONE && | |
2933 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2934 | # Use a double $ so make ignores it. | |
2935 | test "$program_suffix" != NONE && | |
2936 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2937 | # Double any \ or $. | |
2938 | # By default was `s,x,x', remove it if useless. | |
2939 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2940 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2941 | ||
2942 | # Expand $ac_aux_dir to an absolute path. | |
2943 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2944 | ||
2945 | if test x"${MISSING+set}" != xset; then | |
2946 | case $am_aux_dir in | |
2947 | *\ * | *\ *) | |
2948 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2949 | *) | |
2950 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2951 | esac | |
2952 | fi | |
2953 | # Use eval to expand $SHELL | |
2954 | if eval "$MISSING --is-lightweight"; then | |
2955 | am_missing_run="$MISSING " | |
2956 | else | |
2957 | am_missing_run= | |
2958 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2959 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2960 | fi | |
2961 | ||
2962 | if test x"${install_sh+set}" != xset; then | |
2963 | case $am_aux_dir in | |
2964 | *\ * | *\ *) | |
2965 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2966 | *) | |
2967 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2968 | esac | |
2969 | fi | |
2970 | ||
2971 | # Installed binaries are usually stripped using 'strip' when the user | |
2972 | # run "make install-strip". However 'strip' might not be the right | |
2973 | # tool to use in cross-compilation environments, therefore Automake | |
2974 | # will honor the 'STRIP' environment variable to overrule this program. | |
2975 | if test "$cross_compiling" != no; then | |
2976 | if test -n "$ac_tool_prefix"; then | |
2977 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2978 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2980 | $as_echo_n "checking for $ac_word... " >&6; } | |
2981 | if ${ac_cv_prog_STRIP+:} false; then : | |
2982 | $as_echo_n "(cached) " >&6 | |
2983 | else | |
2984 | if test -n "$STRIP"; then | |
2985 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2986 | else | |
2987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2988 | for as_dir in $PATH | |
2989 | do | |
2990 | IFS=$as_save_IFS | |
2991 | test -z "$as_dir" && as_dir=. | |
2992 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2993 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2994 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2995 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2996 | break 2 | |
2997 | fi | |
2998 | done | |
2999 | done | |
3000 | IFS=$as_save_IFS | |
3001 | ||
3002 | fi | |
3003 | fi | |
3004 | STRIP=$ac_cv_prog_STRIP | |
3005 | if test -n "$STRIP"; then | |
3006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3007 | $as_echo "$STRIP" >&6; } | |
3008 | else | |
3009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3010 | $as_echo "no" >&6; } | |
3011 | fi | |
3012 | ||
3013 | ||
3014 | fi | |
3015 | if test -z "$ac_cv_prog_STRIP"; then | |
3016 | ac_ct_STRIP=$STRIP | |
3017 | # Extract the first word of "strip", so it can be a program name with args. | |
3018 | set dummy strip; ac_word=$2 | |
3019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3020 | $as_echo_n "checking for $ac_word... " >&6; } | |
3021 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
3022 | $as_echo_n "(cached) " >&6 | |
3023 | else | |
3024 | if test -n "$ac_ct_STRIP"; then | |
3025 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3026 | else | |
3027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3028 | for as_dir in $PATH | |
3029 | do | |
3030 | IFS=$as_save_IFS | |
3031 | test -z "$as_dir" && as_dir=. | |
3032 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3033 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3034 | ac_cv_prog_ac_ct_STRIP="strip" | |
3035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3036 | break 2 | |
3037 | fi | |
3038 | done | |
3039 | done | |
3040 | IFS=$as_save_IFS | |
3041 | ||
3042 | fi | |
3043 | fi | |
3044 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3045 | if test -n "$ac_ct_STRIP"; then | |
3046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3047 | $as_echo "$ac_ct_STRIP" >&6; } | |
3048 | else | |
3049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3050 | $as_echo "no" >&6; } | |
3051 | fi | |
3052 | ||
3053 | if test "x$ac_ct_STRIP" = x; then | |
3054 | STRIP=":" | |
3055 | else | |
3056 | case $cross_compiling:$ac_tool_warned in | |
3057 | yes:) | |
3058 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3059 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3060 | ac_tool_warned=yes ;; | |
3061 | esac | |
3062 | STRIP=$ac_ct_STRIP | |
3063 | fi | |
3064 | else | |
3065 | STRIP="$ac_cv_prog_STRIP" | |
3066 | fi | |
3067 | ||
3068 | fi | |
3069 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3070 | ||
3071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3072 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3073 | if test -z "$MKDIR_P"; then | |
3074 | if ${ac_cv_path_mkdir+:} false; then : | |
3075 | $as_echo_n "(cached) " >&6 | |
3076 | else | |
3077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3078 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3079 | do | |
3080 | IFS=$as_save_IFS | |
3081 | test -z "$as_dir" && as_dir=. | |
3082 | for ac_prog in mkdir gmkdir; do | |
3083 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3084 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
3085 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3086 | 'mkdir (GNU coreutils) '* | \ | |
3087 | 'mkdir (coreutils) '* | \ | |
3088 | 'mkdir (fileutils) '4.1*) | |
3089 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3090 | break 3;; | |
3091 | esac | |
3092 | done | |
3093 | done | |
3094 | done | |
3095 | IFS=$as_save_IFS | |
3096 | ||
3097 | fi | |
3098 | ||
3099 | test -d ./--version && rmdir ./--version | |
3100 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3101 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3102 | else | |
3103 | # As a last resort, use the slow shell script. Don't cache a | |
3104 | # value for MKDIR_P within a source directory, because that will | |
3105 | # break other packages using the cache if that directory is | |
3106 | # removed, or if the value is a relative name. | |
3107 | MKDIR_P="$ac_install_sh -d" | |
3108 | fi | |
3109 | fi | |
3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3111 | $as_echo "$MKDIR_P" >&6; } | |
3112 | ||
3113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3114 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3115 | set x ${MAKE-make} | |
3116 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3117 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
3118 | $as_echo_n "(cached) " >&6 | |
3119 | else | |
3120 | cat >conftest.make <<\_ACEOF | |
3121 | SHELL = /bin/sh | |
3122 | all: | |
3123 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3124 | _ACEOF | |
3125 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
3126 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3127 | *@@@%%%=?*=@@@%%%*) | |
3128 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3129 | *) | |
3130 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3131 | esac | |
3132 | rm -f conftest.make | |
3133 | fi | |
3134 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3136 | $as_echo "yes" >&6; } | |
3137 | SET_MAKE= | |
3138 | else | |
3139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3140 | $as_echo "no" >&6; } | |
3141 | SET_MAKE="MAKE=${MAKE-make}" | |
3142 | fi | |
3143 | ||
3144 | rm -rf .tst 2>/dev/null | |
3145 | mkdir .tst 2>/dev/null | |
3146 | if test -d .tst; then | |
3147 | am__leading_dot=. | |
3148 | else | |
3149 | am__leading_dot=_ | |
3150 | fi | |
3151 | rmdir .tst 2>/dev/null | |
3152 | ||
3153 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3154 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3155 | # is not polluted with repeated "-I." | |
3156 | am__isrc=' -I$(srcdir)' | |
3157 | # test to see if srcdir already configured | |
3158 | if test -f $srcdir/config.status; then | |
3159 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3160 | fi | |
3161 | fi | |
3162 | ||
3163 | # test whether we have cygpath | |
3164 | if test -z "$CYGPATH_W"; then | |
3165 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3166 | CYGPATH_W='cygpath -w' | |
3167 | else | |
3168 | CYGPATH_W=echo | |
3169 | fi | |
3170 | fi | |
3171 | ||
3172 | ||
3173 | # Define the identity of the package. | |
3174 | PACKAGE='zfs' | |
1ec59ff7 | 3175 | VERSION='0.6.5.11' |
87d546d8 TG |
3176 | |
3177 | ||
3178 | cat >>confdefs.h <<_ACEOF | |
3179 | #define PACKAGE "$PACKAGE" | |
3180 | _ACEOF | |
3181 | ||
3182 | ||
3183 | cat >>confdefs.h <<_ACEOF | |
3184 | #define VERSION "$VERSION" | |
3185 | _ACEOF | |
3186 | ||
3187 | # Some tools Automake needs. | |
3188 | ||
3189 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3190 | ||
3191 | ||
3192 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3193 | ||
3194 | ||
3195 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3196 | ||
3197 | ||
3198 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3199 | ||
3200 | ||
3201 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3202 | ||
3203 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3204 | # dies out for good. For more background, see: | |
3205 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3206 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3207 | mkdir_p='$(MKDIR_P)' | |
3208 | ||
3209 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3210 | # system "awk" is bad on some platforms. | |
3211 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
3212 | # in the wild :-( We should find a proper way to deprecate it ... | |
3213 | AMTAR='$${TAR-tar}' | |
3214 | ||
3215 | ||
3216 | # We'll loop over all known methods to create a tar archive until one works. | |
3217 | _am_tools='gnutar pax cpio none' | |
3218 | ||
3219 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
3220 | ||
3221 | ||
3222 | ||
3223 | ||
3224 | ||
3225 | ||
3226 | # POSIX will say in a future version that running "rm -f" with no argument | |
3227 | # is OK; and we want to be able to make that assumption in our Makefile | |
3228 | # recipes. So use an aggressive probe to check that the usage we want is | |
3229 | # actually supported "in the wild" to an acceptable degree. | |
3230 | # See automake bug#10828. | |
3231 | # To make any issue more visible, cause the running configure to be aborted | |
3232 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3233 | # user can still override this though. | |
3234 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3235 | cat >&2 <<'END' | |
3236 | Oops! | |
3237 | ||
3238 | Your 'rm' program seems unable to run without file operands specified | |
3239 | on the command line, even when the '-f' option is present. This is contrary | |
3240 | to the behaviour of most rm programs out there, and not conforming with | |
3241 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3242 | ||
3243 | Please tell bug-automake@gnu.org about your system, including the value | |
3244 | of your $PATH and any error possibly output before this message. This | |
3245 | can help us improve future automake versions. | |
3246 | ||
3247 | END | |
3248 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3249 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3250 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3251 | echo >&2 | |
3252 | else | |
3253 | cat >&2 <<'END' | |
3254 | Aborting the configuration process, to ensure you take notice of the issue. | |
3255 | ||
3256 | You can download and install GNU coreutils to get an 'rm' implementation | |
3257 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3258 | ||
3259 | If you want to complete the configuration process using your problematic | |
3260 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3261 | to "yes", and re-run configure. | |
3262 | ||
3263 | END | |
3264 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3265 | fi | |
3266 | fi | |
3267 | ||
3268 | ac_config_headers="$ac_config_headers zfs_config.h" | |
3269 | ||
3270 | ||
3271 | ||
3272 | ac_ext=c | |
3273 | ac_cpp='$CPP $CPPFLAGS' | |
3274 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3275 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3276 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3277 | if test -n "$ac_tool_prefix"; then | |
3278 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3279 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3281 | $as_echo_n "checking for $ac_word... " >&6; } | |
3282 | if ${ac_cv_prog_CC+:} false; then : | |
3283 | $as_echo_n "(cached) " >&6 | |
3284 | else | |
3285 | if test -n "$CC"; then | |
3286 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3287 | else | |
3288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3289 | for as_dir in $PATH | |
3290 | do | |
3291 | IFS=$as_save_IFS | |
3292 | test -z "$as_dir" && as_dir=. | |
3293 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3294 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3295 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3296 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3297 | break 2 | |
3298 | fi | |
3299 | done | |
3300 | done | |
3301 | IFS=$as_save_IFS | |
3302 | ||
3303 | fi | |
3304 | fi | |
3305 | CC=$ac_cv_prog_CC | |
3306 | if test -n "$CC"; then | |
3307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3308 | $as_echo "$CC" >&6; } | |
3309 | else | |
3310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3311 | $as_echo "no" >&6; } | |
3312 | fi | |
3313 | ||
3314 | ||
3315 | fi | |
3316 | if test -z "$ac_cv_prog_CC"; then | |
3317 | ac_ct_CC=$CC | |
3318 | # Extract the first word of "gcc", so it can be a program name with args. | |
3319 | set dummy gcc; ac_word=$2 | |
3320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3321 | $as_echo_n "checking for $ac_word... " >&6; } | |
3322 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3323 | $as_echo_n "(cached) " >&6 | |
3324 | else | |
3325 | if test -n "$ac_ct_CC"; then | |
3326 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3327 | else | |
3328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3329 | for as_dir in $PATH | |
3330 | do | |
3331 | IFS=$as_save_IFS | |
3332 | test -z "$as_dir" && as_dir=. | |
3333 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3334 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3335 | ac_cv_prog_ac_ct_CC="gcc" | |
3336 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3337 | break 2 | |
3338 | fi | |
3339 | done | |
3340 | done | |
3341 | IFS=$as_save_IFS | |
3342 | ||
3343 | fi | |
3344 | fi | |
3345 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3346 | if test -n "$ac_ct_CC"; then | |
3347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3348 | $as_echo "$ac_ct_CC" >&6; } | |
3349 | else | |
3350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3351 | $as_echo "no" >&6; } | |
3352 | fi | |
3353 | ||
3354 | if test "x$ac_ct_CC" = x; then | |
3355 | CC="" | |
3356 | else | |
3357 | case $cross_compiling:$ac_tool_warned in | |
3358 | yes:) | |
3359 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3360 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3361 | ac_tool_warned=yes ;; | |
3362 | esac | |
3363 | CC=$ac_ct_CC | |
3364 | fi | |
3365 | else | |
3366 | CC="$ac_cv_prog_CC" | |
3367 | fi | |
3368 | ||
3369 | if test -z "$CC"; then | |
3370 | if test -n "$ac_tool_prefix"; then | |
3371 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3372 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3374 | $as_echo_n "checking for $ac_word... " >&6; } | |
3375 | if ${ac_cv_prog_CC+:} false; then : | |
3376 | $as_echo_n "(cached) " >&6 | |
3377 | else | |
3378 | if test -n "$CC"; then | |
3379 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3380 | else | |
3381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3382 | for as_dir in $PATH | |
3383 | do | |
3384 | IFS=$as_save_IFS | |
3385 | test -z "$as_dir" && as_dir=. | |
3386 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3387 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3388 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3389 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3390 | break 2 | |
3391 | fi | |
3392 | done | |
3393 | done | |
3394 | IFS=$as_save_IFS | |
3395 | ||
3396 | fi | |
3397 | fi | |
3398 | CC=$ac_cv_prog_CC | |
3399 | if test -n "$CC"; then | |
3400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3401 | $as_echo "$CC" >&6; } | |
3402 | else | |
3403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3404 | $as_echo "no" >&6; } | |
3405 | fi | |
3406 | ||
3407 | ||
3408 | fi | |
3409 | fi | |
3410 | if test -z "$CC"; then | |
3411 | # Extract the first word of "cc", so it can be a program name with args. | |
3412 | set dummy cc; ac_word=$2 | |
3413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3414 | $as_echo_n "checking for $ac_word... " >&6; } | |
3415 | if ${ac_cv_prog_CC+:} false; then : | |
3416 | $as_echo_n "(cached) " >&6 | |
3417 | else | |
3418 | if test -n "$CC"; then | |
3419 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3420 | else | |
3421 | ac_prog_rejected=no | |
3422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3423 | for as_dir in $PATH | |
3424 | do | |
3425 | IFS=$as_save_IFS | |
3426 | test -z "$as_dir" && as_dir=. | |
3427 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3428 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3429 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3430 | ac_prog_rejected=yes | |
3431 | continue | |
3432 | fi | |
3433 | ac_cv_prog_CC="cc" | |
3434 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3435 | break 2 | |
3436 | fi | |
3437 | done | |
3438 | done | |
3439 | IFS=$as_save_IFS | |
3440 | ||
3441 | if test $ac_prog_rejected = yes; then | |
3442 | # We found a bogon in the path, so make sure we never use it. | |
3443 | set dummy $ac_cv_prog_CC | |
3444 | shift | |
3445 | if test $# != 0; then | |
3446 | # We chose a different compiler from the bogus one. | |
3447 | # However, it has the same basename, so the bogon will be chosen | |
3448 | # first if we set CC to just the basename; use the full file name. | |
3449 | shift | |
3450 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3451 | fi | |
3452 | fi | |
3453 | fi | |
3454 | fi | |
3455 | CC=$ac_cv_prog_CC | |
3456 | if test -n "$CC"; then | |
3457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3458 | $as_echo "$CC" >&6; } | |
3459 | else | |
3460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3461 | $as_echo "no" >&6; } | |
3462 | fi | |
3463 | ||
3464 | ||
3465 | fi | |
3466 | if test -z "$CC"; then | |
3467 | if test -n "$ac_tool_prefix"; then | |
3468 | for ac_prog in cl.exe | |
3469 | do | |
3470 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3471 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3473 | $as_echo_n "checking for $ac_word... " >&6; } | |
3474 | if ${ac_cv_prog_CC+:} false; then : | |
3475 | $as_echo_n "(cached) " >&6 | |
3476 | else | |
3477 | if test -n "$CC"; then | |
3478 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3479 | else | |
3480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3481 | for as_dir in $PATH | |
3482 | do | |
3483 | IFS=$as_save_IFS | |
3484 | test -z "$as_dir" && as_dir=. | |
3485 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3486 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3487 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3488 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3489 | break 2 | |
3490 | fi | |
3491 | done | |
3492 | done | |
3493 | IFS=$as_save_IFS | |
3494 | ||
3495 | fi | |
3496 | fi | |
3497 | CC=$ac_cv_prog_CC | |
3498 | if test -n "$CC"; then | |
3499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3500 | $as_echo "$CC" >&6; } | |
3501 | else | |
3502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3503 | $as_echo "no" >&6; } | |
3504 | fi | |
3505 | ||
3506 | ||
3507 | test -n "$CC" && break | |
3508 | done | |
3509 | fi | |
3510 | if test -z "$CC"; then | |
3511 | ac_ct_CC=$CC | |
3512 | for ac_prog in cl.exe | |
3513 | do | |
3514 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3515 | set dummy $ac_prog; ac_word=$2 | |
3516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3517 | $as_echo_n "checking for $ac_word... " >&6; } | |
3518 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3519 | $as_echo_n "(cached) " >&6 | |
3520 | else | |
3521 | if test -n "$ac_ct_CC"; then | |
3522 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3523 | else | |
3524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3525 | for as_dir in $PATH | |
3526 | do | |
3527 | IFS=$as_save_IFS | |
3528 | test -z "$as_dir" && as_dir=. | |
3529 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3530 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3531 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3532 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3533 | break 2 | |
3534 | fi | |
3535 | done | |
3536 | done | |
3537 | IFS=$as_save_IFS | |
3538 | ||
3539 | fi | |
3540 | fi | |
3541 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3542 | if test -n "$ac_ct_CC"; then | |
3543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3544 | $as_echo "$ac_ct_CC" >&6; } | |
3545 | else | |
3546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3547 | $as_echo "no" >&6; } | |
3548 | fi | |
3549 | ||
3550 | ||
3551 | test -n "$ac_ct_CC" && break | |
3552 | done | |
3553 | ||
3554 | if test "x$ac_ct_CC" = x; then | |
3555 | CC="" | |
3556 | else | |
3557 | case $cross_compiling:$ac_tool_warned in | |
3558 | yes:) | |
3559 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3560 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3561 | ac_tool_warned=yes ;; | |
3562 | esac | |
3563 | CC=$ac_ct_CC | |
3564 | fi | |
3565 | fi | |
3566 | ||
3567 | fi | |
3568 | ||
3569 | ||
3570 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3571 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3572 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3573 | See \`config.log' for more details" "$LINENO" 5; } | |
3574 | ||
3575 | # Provide some information about the compiler. | |
3576 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3577 | set X $ac_compile | |
3578 | ac_compiler=$2 | |
3579 | for ac_option in --version -v -V -qversion; do | |
3580 | { { ac_try="$ac_compiler $ac_option >&5" | |
3581 | case "(($ac_try" in | |
3582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3583 | *) ac_try_echo=$ac_try;; | |
3584 | esac | |
3585 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3586 | $as_echo "$ac_try_echo"; } >&5 | |
3587 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3588 | ac_status=$? | |
3589 | if test -s conftest.err; then | |
3590 | sed '10a\ | |
3591 | ... rest of stderr output deleted ... | |
3592 | 10q' conftest.err >conftest.er1 | |
3593 | cat conftest.er1 >&5 | |
3594 | fi | |
3595 | rm -f conftest.er1 conftest.err | |
3596 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3597 | test $ac_status = 0; } | |
3598 | done | |
3599 | ||
3600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3601 | /* end confdefs.h. */ | |
3602 | ||
3603 | int | |
3604 | main () | |
3605 | { | |
3606 | ||
3607 | ; | |
3608 | return 0; | |
3609 | } | |
3610 | _ACEOF | |
3611 | ac_clean_files_save=$ac_clean_files | |
3612 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3613 | # Try to create an executable without -o first, disregard a.out. | |
3614 | # It will help us diagnose broken compilers, and finding out an intuition | |
3615 | # of exeext. | |
3616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3617 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3618 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3619 | ||
3620 | # The possible output files: | |
3621 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3622 | ||
3623 | ac_rmfiles= | |
3624 | for ac_file in $ac_files | |
3625 | do | |
3626 | case $ac_file in | |
3627 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3628 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3629 | esac | |
3630 | done | |
3631 | rm -f $ac_rmfiles | |
3632 | ||
3633 | if { { ac_try="$ac_link_default" | |
3634 | case "(($ac_try" in | |
3635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3636 | *) ac_try_echo=$ac_try;; | |
3637 | esac | |
3638 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3639 | $as_echo "$ac_try_echo"; } >&5 | |
3640 | (eval "$ac_link_default") 2>&5 | |
3641 | ac_status=$? | |
3642 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3643 | test $ac_status = 0; }; then : | |
3644 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3645 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3646 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3647 | # so that the user can short-circuit this test for compilers unknown to | |
3648 | # Autoconf. | |
3649 | for ac_file in $ac_files '' | |
3650 | do | |
3651 | test -f "$ac_file" || continue | |
3652 | case $ac_file in | |
3653 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3654 | ;; | |
3655 | [ab].out ) | |
3656 | # We found the default executable, but exeext='' is most | |
3657 | # certainly right. | |
3658 | break;; | |
3659 | *.* ) | |
3660 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3661 | then :; else | |
3662 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3663 | fi | |
3664 | # We set ac_cv_exeext here because the later test for it is not | |
3665 | # safe: cross compilers may not add the suffix if given an `-o' | |
3666 | # argument, so we may need to know it at that point already. | |
3667 | # Even if this section looks crufty: it has the advantage of | |
3668 | # actually working. | |
3669 | break;; | |
3670 | * ) | |
3671 | break;; | |
3672 | esac | |
3673 | done | |
3674 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3675 | ||
3676 | else | |
3677 | ac_file='' | |
3678 | fi | |
3679 | if test -z "$ac_file"; then : | |
3680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3681 | $as_echo "no" >&6; } | |
3682 | $as_echo "$as_me: failed program was:" >&5 | |
3683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3684 | ||
3685 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3686 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3687 | as_fn_error 77 "C compiler cannot create executables | |
3688 | See \`config.log' for more details" "$LINENO" 5; } | |
3689 | else | |
3690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3691 | $as_echo "yes" >&6; } | |
3692 | fi | |
3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3694 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3696 | $as_echo "$ac_file" >&6; } | |
3697 | ac_exeext=$ac_cv_exeext | |
3698 | ||
3699 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3700 | ac_clean_files=$ac_clean_files_save | |
3701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3702 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3703 | if { { ac_try="$ac_link" | |
3704 | case "(($ac_try" in | |
3705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3706 | *) ac_try_echo=$ac_try;; | |
3707 | esac | |
3708 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3709 | $as_echo "$ac_try_echo"; } >&5 | |
3710 | (eval "$ac_link") 2>&5 | |
3711 | ac_status=$? | |
3712 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3713 | test $ac_status = 0; }; then : | |
3714 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3715 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3716 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3717 | # `rm'. | |
3718 | for ac_file in conftest.exe conftest conftest.*; do | |
3719 | test -f "$ac_file" || continue | |
3720 | case $ac_file in | |
3721 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3722 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3723 | break;; | |
3724 | * ) break;; | |
3725 | esac | |
3726 | done | |
3727 | else | |
3728 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3729 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3730 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3731 | See \`config.log' for more details" "$LINENO" 5; } | |
3732 | fi | |
3733 | rm -f conftest conftest$ac_cv_exeext | |
3734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3735 | $as_echo "$ac_cv_exeext" >&6; } | |
3736 | ||
3737 | rm -f conftest.$ac_ext | |
3738 | EXEEXT=$ac_cv_exeext | |
3739 | ac_exeext=$EXEEXT | |
3740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3741 | /* end confdefs.h. */ | |
3742 | #include <stdio.h> | |
3743 | int | |
3744 | main () | |
3745 | { | |
3746 | FILE *f = fopen ("conftest.out", "w"); | |
3747 | return ferror (f) || fclose (f) != 0; | |
3748 | ||
3749 | ; | |
3750 | return 0; | |
3751 | } | |
3752 | _ACEOF | |
3753 | ac_clean_files="$ac_clean_files conftest.out" | |
3754 | # Check that the compiler produces executables we can run. If not, either | |
3755 | # the compiler is broken, or we cross compile. | |
3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3757 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3758 | if test "$cross_compiling" != yes; then | |
3759 | { { ac_try="$ac_link" | |
3760 | case "(($ac_try" in | |
3761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3762 | *) ac_try_echo=$ac_try;; | |
3763 | esac | |
3764 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3765 | $as_echo "$ac_try_echo"; } >&5 | |
3766 | (eval "$ac_link") 2>&5 | |
3767 | ac_status=$? | |
3768 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3769 | test $ac_status = 0; } | |
3770 | if { ac_try='./conftest$ac_cv_exeext' | |
3771 | { { case "(($ac_try" in | |
3772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3773 | *) ac_try_echo=$ac_try;; | |
3774 | esac | |
3775 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3776 | $as_echo "$ac_try_echo"; } >&5 | |
3777 | (eval "$ac_try") 2>&5 | |
3778 | ac_status=$? | |
3779 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3780 | test $ac_status = 0; }; }; then | |
3781 | cross_compiling=no | |
3782 | else | |
3783 | if test "$cross_compiling" = maybe; then | |
3784 | cross_compiling=yes | |
3785 | else | |
3786 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3787 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3788 | as_fn_error $? "cannot run C compiled programs. | |
3789 | If you meant to cross compile, use \`--host'. | |
3790 | See \`config.log' for more details" "$LINENO" 5; } | |
3791 | fi | |
3792 | fi | |
3793 | fi | |
3794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3795 | $as_echo "$cross_compiling" >&6; } | |
3796 | ||
3797 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3798 | ac_clean_files=$ac_clean_files_save | |
3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3800 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3801 | if ${ac_cv_objext+:} false; then : | |
3802 | $as_echo_n "(cached) " >&6 | |
3803 | else | |
3804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3805 | /* end confdefs.h. */ | |
3806 | ||
3807 | int | |
3808 | main () | |
3809 | { | |
3810 | ||
3811 | ; | |
3812 | return 0; | |
3813 | } | |
3814 | _ACEOF | |
3815 | rm -f conftest.o conftest.obj | |
3816 | if { { ac_try="$ac_compile" | |
3817 | case "(($ac_try" in | |
3818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3819 | *) ac_try_echo=$ac_try;; | |
3820 | esac | |
3821 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3822 | $as_echo "$ac_try_echo"; } >&5 | |
3823 | (eval "$ac_compile") 2>&5 | |
3824 | ac_status=$? | |
3825 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3826 | test $ac_status = 0; }; then : | |
3827 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3828 | test -f "$ac_file" || continue; | |
3829 | case $ac_file in | |
3830 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3831 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3832 | break;; | |
3833 | esac | |
3834 | done | |
3835 | else | |
3836 | $as_echo "$as_me: failed program was:" >&5 | |
3837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3838 | ||
3839 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3840 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3841 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3842 | See \`config.log' for more details" "$LINENO" 5; } | |
3843 | fi | |
3844 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3845 | fi | |
3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3847 | $as_echo "$ac_cv_objext" >&6; } | |
3848 | OBJEXT=$ac_cv_objext | |
3849 | ac_objext=$OBJEXT | |
3850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3851 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3852 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3853 | $as_echo_n "(cached) " >&6 | |
3854 | else | |
3855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3856 | /* end confdefs.h. */ | |
3857 | ||
3858 | int | |
3859 | main () | |
3860 | { | |
3861 | #ifndef __GNUC__ | |
3862 | choke me | |
3863 | #endif | |
3864 | ||
3865 | ; | |
3866 | return 0; | |
3867 | } | |
3868 | _ACEOF | |
3869 | if ac_fn_c_try_compile "$LINENO"; then : | |
3870 | ac_compiler_gnu=yes | |
3871 | else | |
3872 | ac_compiler_gnu=no | |
3873 | fi | |
3874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3875 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3876 | ||
3877 | fi | |
3878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3879 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3880 | if test $ac_compiler_gnu = yes; then | |
3881 | GCC=yes | |
3882 | else | |
3883 | GCC= | |
3884 | fi | |
3885 | ac_test_CFLAGS=${CFLAGS+set} | |
3886 | ac_save_CFLAGS=$CFLAGS | |
3887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3888 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3889 | if ${ac_cv_prog_cc_g+:} false; then : | |
3890 | $as_echo_n "(cached) " >&6 | |
3891 | else | |
3892 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3893 | ac_c_werror_flag=yes | |
3894 | ac_cv_prog_cc_g=no | |
3895 | CFLAGS="-g" | |
3896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3897 | /* end confdefs.h. */ | |
3898 | ||
3899 | int | |
3900 | main () | |
3901 | { | |
3902 | ||
3903 | ; | |
3904 | return 0; | |
3905 | } | |
3906 | _ACEOF | |
3907 | if ac_fn_c_try_compile "$LINENO"; then : | |
3908 | ac_cv_prog_cc_g=yes | |
3909 | else | |
3910 | CFLAGS="" | |
3911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3912 | /* end confdefs.h. */ | |
3913 | ||
3914 | int | |
3915 | main () | |
3916 | { | |
3917 | ||
3918 | ; | |
3919 | return 0; | |
3920 | } | |
3921 | _ACEOF | |
3922 | if ac_fn_c_try_compile "$LINENO"; then : | |
3923 | ||
3924 | else | |
3925 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3926 | CFLAGS="-g" | |
3927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3928 | /* end confdefs.h. */ | |
3929 | ||
3930 | int | |
3931 | main () | |
3932 | { | |
3933 | ||
3934 | ; | |
3935 | return 0; | |
3936 | } | |
3937 | _ACEOF | |
3938 | if ac_fn_c_try_compile "$LINENO"; then : | |
3939 | ac_cv_prog_cc_g=yes | |
3940 | fi | |
3941 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3942 | fi | |
3943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3944 | fi | |
3945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3946 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3947 | fi | |
3948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3949 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3950 | if test "$ac_test_CFLAGS" = set; then | |
3951 | CFLAGS=$ac_save_CFLAGS | |
3952 | elif test $ac_cv_prog_cc_g = yes; then | |
3953 | if test "$GCC" = yes; then | |
3954 | CFLAGS="-g -O2" | |
3955 | else | |
3956 | CFLAGS="-g" | |
3957 | fi | |
3958 | else | |
3959 | if test "$GCC" = yes; then | |
3960 | CFLAGS="-O2" | |
3961 | else | |
3962 | CFLAGS= | |
3963 | fi | |
3964 | fi | |
3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3966 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3967 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3968 | $as_echo_n "(cached) " >&6 | |
3969 | else | |
3970 | ac_cv_prog_cc_c89=no | |
3971 | ac_save_CC=$CC | |
3972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3973 | /* end confdefs.h. */ | |
3974 | #include <stdarg.h> | |
3975 | #include <stdio.h> | |
3976 | struct stat; | |
3977 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3978 | struct buf { int x; }; | |
3979 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3980 | static char *e (p, i) | |
3981 | char **p; | |
3982 | int i; | |
3983 | { | |
3984 | return p[i]; | |
3985 | } | |
3986 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3987 | { | |
3988 | char *s; | |
3989 | va_list v; | |
3990 | va_start (v,p); | |
3991 | s = g (p, va_arg (v,int)); | |
3992 | va_end (v); | |
3993 | return s; | |
3994 | } | |
3995 | ||
3996 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3997 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3998 | These don't provoke an error unfortunately, instead are silently treated | |
3999 | as 'x'. The following induces an error, until -std is added to get | |
4000 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4001 | array size at least. It's necessary to write '\x00'==0 to get something | |
4002 | that's true only with -std. */ | |
4003 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4004 | ||
4005 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4006 | inside strings and character constants. */ | |
4007 | #define FOO(x) 'x' | |
4008 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4009 | ||
4010 | int test (int i, double x); | |
4011 | struct s1 {int (*f) (int a);}; | |
4012 | struct s2 {int (*f) (double a);}; | |
4013 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4014 | int argc; | |
4015 | char **argv; | |
4016 | int | |
4017 | main () | |
4018 | { | |
4019 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4020 | ; | |
4021 | return 0; | |
4022 | } | |
4023 | _ACEOF | |
4024 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4025 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4026 | do | |
4027 | CC="$ac_save_CC $ac_arg" | |
4028 | if ac_fn_c_try_compile "$LINENO"; then : | |
4029 | ac_cv_prog_cc_c89=$ac_arg | |
4030 | fi | |
4031 | rm -f core conftest.err conftest.$ac_objext | |
4032 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4033 | done | |
4034 | rm -f conftest.$ac_ext | |
4035 | CC=$ac_save_CC | |
4036 | ||
4037 | fi | |
4038 | # AC_CACHE_VAL | |
4039 | case "x$ac_cv_prog_cc_c89" in | |
4040 | x) | |
4041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4042 | $as_echo "none needed" >&6; } ;; | |
4043 | xno) | |
4044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4045 | $as_echo "unsupported" >&6; } ;; | |
4046 | *) | |
4047 | CC="$CC $ac_cv_prog_cc_c89" | |
4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4049 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4050 | esac | |
4051 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4052 | ||
4053 | fi | |
4054 | ||
4055 | ac_ext=c | |
4056 | ac_cpp='$CPP $CPPFLAGS' | |
4057 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4058 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4059 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4060 | ||
4061 | ac_ext=c | |
4062 | ac_cpp='$CPP $CPPFLAGS' | |
4063 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4064 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4065 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4067 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4068 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4069 | $as_echo_n "(cached) " >&6 | |
4070 | else | |
4071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4072 | /* end confdefs.h. */ | |
4073 | ||
4074 | int | |
4075 | main () | |
4076 | { | |
4077 | ||
4078 | ; | |
4079 | return 0; | |
4080 | } | |
4081 | _ACEOF | |
4082 | # Make sure it works both with $CC and with simple cc. | |
4083 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4084 | # compilers refuse to overwrite an existing .o file with -o, | |
4085 | # though they will create one. | |
4086 | am_cv_prog_cc_c_o=yes | |
4087 | for am_i in 1 2; do | |
4088 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4089 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4090 | ac_status=$? | |
4091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4092 | (exit $ac_status); } \ | |
4093 | && test -f conftest2.$ac_objext; then | |
4094 | : OK | |
4095 | else | |
4096 | am_cv_prog_cc_c_o=no | |
4097 | break | |
4098 | fi | |
4099 | done | |
4100 | rm -f core conftest* | |
4101 | unset am_i | |
4102 | fi | |
4103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4104 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4105 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4106 | # Losing compiler, so override with the script. | |
4107 | # FIXME: It is wrong to rewrite CC. | |
4108 | # But if we don't then we get into trouble of one sort or another. | |
4109 | # A longer-term fix would be to have automake use am__CC in this case, | |
4110 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4111 | CC="$am_aux_dir/compile $CC" | |
4112 | fi | |
4113 | ac_ext=c | |
4114 | ac_cpp='$CPP $CPPFLAGS' | |
4115 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4116 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4117 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4118 | ||
4119 | DEPDIR="${am__leading_dot}deps" | |
4120 | ||
4121 | ac_config_commands="$ac_config_commands depfiles" | |
4122 | ||
4123 | ||
4124 | am_make=${MAKE-make} | |
4125 | cat > confinc << 'END' | |
4126 | am__doit: | |
4127 | @echo this is the am__doit target | |
4128 | .PHONY: am__doit | |
4129 | END | |
4130 | # If we don't find an include directive, just comment out the code. | |
4131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4132 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4133 | am__include="#" | |
4134 | am__quote= | |
4135 | _am_result=none | |
4136 | # First try GNU make style include. | |
4137 | echo "include confinc" > confmf | |
4138 | # Ignore all kinds of additional output from 'make'. | |
4139 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4140 | *the\ am__doit\ target*) | |
4141 | am__include=include | |
4142 | am__quote= | |
4143 | _am_result=GNU | |
4144 | ;; | |
4145 | esac | |
4146 | # Now try BSD make style include. | |
4147 | if test "$am__include" = "#"; then | |
4148 | echo '.include "confinc"' > confmf | |
4149 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4150 | *the\ am__doit\ target*) | |
4151 | am__include=.include | |
4152 | am__quote="\"" | |
4153 | _am_result=BSD | |
4154 | ;; | |
4155 | esac | |
4156 | fi | |
4157 | ||
4158 | ||
4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4160 | $as_echo "$_am_result" >&6; } | |
4161 | rm -f confinc confmf | |
4162 | ||
4163 | # Check whether --enable-dependency-tracking was given. | |
4164 | if test "${enable_dependency_tracking+set}" = set; then : | |
4165 | enableval=$enable_dependency_tracking; | |
4166 | fi | |
4167 | ||
4168 | if test "x$enable_dependency_tracking" != xno; then | |
4169 | am_depcomp="$ac_aux_dir/depcomp" | |
4170 | AMDEPBACKSLASH='\' | |
4171 | am__nodep='_no' | |
4172 | fi | |
4173 | if test "x$enable_dependency_tracking" != xno; then | |
4174 | AMDEP_TRUE= | |
4175 | AMDEP_FALSE='#' | |
4176 | else | |
4177 | AMDEP_TRUE='#' | |
4178 | AMDEP_FALSE= | |
4179 | fi | |
4180 | ||
4181 | ||
4182 | ||
4183 | depcc="$CC" am_compiler_list= | |
4184 | ||
4185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4186 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4187 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4188 | $as_echo_n "(cached) " >&6 | |
4189 | else | |
4190 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4191 | # We make a subdir and do the tests there. Otherwise we can end up | |
4192 | # making bogus files that we don't know about and never remove. For | |
4193 | # instance it was reported that on HP-UX the gcc test will end up | |
4194 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4195 | # in D". | |
4196 | rm -rf conftest.dir | |
4197 | mkdir conftest.dir | |
4198 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4199 | # using a relative directory. | |
4200 | cp "$am_depcomp" conftest.dir | |
4201 | cd conftest.dir | |
4202 | # We will build objects and dependencies in a subdirectory because | |
4203 | # it helps to detect inapplicable dependency modes. For instance | |
4204 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4205 | # side effect of compilation, but ICC will put the dependencies in | |
4206 | # the current directory while Tru64 will put them in the object | |
4207 | # directory. | |
4208 | mkdir sub | |
4209 | ||
4210 | am_cv_CC_dependencies_compiler_type=none | |
4211 | if test "$am_compiler_list" = ""; then | |
4212 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4213 | fi | |
4214 | am__universal=false | |
4215 | case " $depcc " in #( | |
4216 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4217 | esac | |
4218 | ||
4219 | for depmode in $am_compiler_list; do | |
4220 | # Setup a source with many dependencies, because some compilers | |
4221 | # like to wrap large dependency lists on column 80 (with \), and | |
4222 | # we should not choose a depcomp mode which is confused by this. | |
4223 | # | |
4224 | # We need to recreate these files for each test, as the compiler may | |
4225 | # overwrite some of them when testing with obscure command lines. | |
4226 | # This happens at least with the AIX C compiler. | |
4227 | : > sub/conftest.c | |
4228 | for i in 1 2 3 4 5 6; do | |
4229 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4230 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4231 | # Solaris 10 /bin/sh. | |
4232 | echo '/* dummy */' > sub/conftst$i.h | |
4233 | done | |
4234 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4235 | ||
4236 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4237 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4238 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4239 | # versions had trouble with output in subdirs. | |
4240 | am__obj=sub/conftest.${OBJEXT-o} | |
4241 | am__minus_obj="-o $am__obj" | |
4242 | case $depmode in | |
4243 | gcc) | |
4244 | # This depmode causes a compiler race in universal mode. | |
4245 | test "$am__universal" = false || continue | |
4246 | ;; | |
4247 | nosideeffect) | |
4248 | # After this tag, mechanisms are not by side-effect, so they'll | |
4249 | # only be used when explicitly requested. | |
4250 | if test "x$enable_dependency_tracking" = xyes; then | |
4251 | continue | |
4252 | else | |
4253 | break | |
4254 | fi | |
4255 | ;; | |
4256 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4257 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4258 | # not run yet. These depmodes are late enough in the game, and | |
4259 | # so weak that their functioning should not be impacted. | |
4260 | am__obj=conftest.${OBJEXT-o} | |
4261 | am__minus_obj= | |
4262 | ;; | |
4263 | none) break ;; | |
4264 | esac | |
4265 | if depmode=$depmode \ | |
4266 | source=sub/conftest.c object=$am__obj \ | |
4267 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4268 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4269 | >/dev/null 2>conftest.err && | |
4270 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4271 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4272 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4273 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4274 | # icc doesn't choke on unknown options, it will just issue warnings | |
4275 | # or remarks (even with -Werror). So we grep stderr for any message | |
4276 | # that says an option was ignored or not supported. | |
4277 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4278 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4279 | # The diagnosis changed in icc 8.0: | |
4280 | # icc: Command line remark: option '-MP' not supported | |
4281 | if (grep 'ignoring option' conftest.err || | |
4282 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4283 | am_cv_CC_dependencies_compiler_type=$depmode | |
4284 | break | |
4285 | fi | |
4286 | fi | |
4287 | done | |
4288 | ||
4289 | cd .. | |
4290 | rm -rf conftest.dir | |
4291 | else | |
4292 | am_cv_CC_dependencies_compiler_type=none | |
4293 | fi | |
4294 | ||
4295 | fi | |
4296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4297 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4298 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4299 | ||
4300 | if | |
4301 | test "x$enable_dependency_tracking" != xno \ | |
4302 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4303 | am__fastdepCC_TRUE= | |
4304 | am__fastdepCC_FALSE='#' | |
4305 | else | |
4306 | am__fastdepCC_TRUE='#' | |
4307 | am__fastdepCC_FALSE= | |
4308 | fi | |
4309 | ||
4310 | ||
4311 | case `pwd` in | |
4312 | *\ * | *\ *) | |
4313 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4314 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
4315 | esac | |
4316 | ||
4317 | ||
4318 | ||
4319 | macro_version='2.4.6' | |
4320 | macro_revision='2.4.6' | |
4321 | ||
4322 | ||
4323 | ||
4324 | ||
4325 | ||
4326 | ||
4327 | ||
4328 | ||
4329 | ||
4330 | ||
4331 | ||
4332 | ||
4333 | ||
4334 | ltmain=$ac_aux_dir/ltmain.sh | |
4335 | ||
4336 | # Backslashify metacharacters that are still active within | |
4337 | # double-quoted strings. | |
4338 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4339 | ||
4340 | # Same as above, but do not quote variable references. | |
4341 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4342 | ||
4343 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4344 | # double_quote_subst'ed string. | |
4345 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4346 | ||
4347 | # Sed substitution to delay expansion of an escaped single quote. | |
4348 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4349 | ||
4350 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4351 | no_glob_subst='s/\*/\\\*/g' | |
4352 | ||
4353 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4354 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4355 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4356 | ||
4357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4358 | $as_echo_n "checking how to print strings... " >&6; } | |
4359 | # Test print first, because it will be a builtin if present. | |
4360 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4361 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4362 | ECHO='print -r --' | |
4363 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4364 | ECHO='printf %s\n' | |
4365 | else | |
4366 | # Use this function as a fallback that always works. | |
4367 | func_fallback_echo () | |
4368 | { | |
4369 | eval 'cat <<_LTECHO_EOF | |
4370 | $1 | |
4371 | _LTECHO_EOF' | |
4372 | } | |
4373 | ECHO='func_fallback_echo' | |
4374 | fi | |
4375 | ||
4376 | # func_echo_all arg... | |
4377 | # Invoke $ECHO with all args, space-separated. | |
4378 | func_echo_all () | |
4379 | { | |
4380 | $ECHO "" | |
4381 | } | |
4382 | ||
4383 | case $ECHO in | |
4384 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4385 | $as_echo "printf" >&6; } ;; | |
4386 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4387 | $as_echo "print -r" >&6; } ;; | |
4388 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4389 | $as_echo "cat" >&6; } ;; | |
4390 | esac | |
4391 | ||
4392 | ||
4393 | ||
4394 | ||
4395 | ||
4396 | ||
4397 | ||
4398 | ||
4399 | ||
4400 | ||
4401 | ||
4402 | ||
4403 | ||
4404 | ||
4405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
4406 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4407 | if ${ac_cv_path_SED+:} false; then : | |
4408 | $as_echo_n "(cached) " >&6 | |
4409 | else | |
4410 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4411 | for ac_i in 1 2 3 4 5 6 7; do | |
4412 | ac_script="$ac_script$as_nl$ac_script" | |
4413 | done | |
4414 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4415 | { ac_script=; unset ac_script;} | |
4416 | if test -z "$SED"; then | |
4417 | ac_path_SED_found=false | |
4418 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4420 | for as_dir in $PATH | |
4421 | do | |
4422 | IFS=$as_save_IFS | |
4423 | test -z "$as_dir" && as_dir=. | |
4424 | for ac_prog in sed gsed; do | |
4425 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4426 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4427 | as_fn_executable_p "$ac_path_SED" || continue | |
4428 | # Check for GNU ac_path_SED and select it if it is found. | |
4429 | # Check for GNU $ac_path_SED | |
4430 | case `"$ac_path_SED" --version 2>&1` in | |
4431 | *GNU*) | |
4432 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4433 | *) | |
4434 | ac_count=0 | |
4435 | $as_echo_n 0123456789 >"conftest.in" | |
4436 | while : | |
4437 | do | |
4438 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4439 | mv "conftest.tmp" "conftest.in" | |
4440 | cp "conftest.in" "conftest.nl" | |
4441 | $as_echo '' >> "conftest.nl" | |
4442 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4443 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4444 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4445 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4446 | # Best one so far, save it but keep looking for a better one | |
4447 | ac_cv_path_SED="$ac_path_SED" | |
4448 | ac_path_SED_max=$ac_count | |
4449 | fi | |
4450 | # 10*(2^10) chars as input seems more than enough | |
4451 | test $ac_count -gt 10 && break | |
4452 | done | |
4453 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4454 | esac | |
4455 | ||
4456 | $ac_path_SED_found && break 3 | |
4457 | done | |
4458 | done | |
4459 | done | |
4460 | IFS=$as_save_IFS | |
4461 | if test -z "$ac_cv_path_SED"; then | |
4462 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
4463 | fi | |
4464 | else | |
4465 | ac_cv_path_SED=$SED | |
4466 | fi | |
4467 | ||
4468 | fi | |
4469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4470 | $as_echo "$ac_cv_path_SED" >&6; } | |
4471 | SED="$ac_cv_path_SED" | |
4472 | rm -f conftest.sed | |
4473 | ||
4474 | test -z "$SED" && SED=sed | |
4475 | Xsed="$SED -e 1s/^X//" | |
4476 | ||
4477 | ||
4478 | ||
4479 | ||
4480 | ||
4481 | ||
4482 | ||
4483 | ||
4484 | ||
4485 | ||
4486 | ||
4487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4488 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4489 | if ${ac_cv_path_GREP+:} false; then : | |
4490 | $as_echo_n "(cached) " >&6 | |
4491 | else | |
4492 | if test -z "$GREP"; then | |
4493 | ac_path_GREP_found=false | |
4494 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4496 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4497 | do | |
4498 | IFS=$as_save_IFS | |
4499 | test -z "$as_dir" && as_dir=. | |
4500 | for ac_prog in grep ggrep; do | |
4501 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4502 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4503 | as_fn_executable_p "$ac_path_GREP" || continue | |
4504 | # Check for GNU ac_path_GREP and select it if it is found. | |
4505 | # Check for GNU $ac_path_GREP | |
4506 | case `"$ac_path_GREP" --version 2>&1` in | |
4507 | *GNU*) | |
4508 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4509 | *) | |
4510 | ac_count=0 | |
4511 | $as_echo_n 0123456789 >"conftest.in" | |
4512 | while : | |
4513 | do | |
4514 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4515 | mv "conftest.tmp" "conftest.in" | |
4516 | cp "conftest.in" "conftest.nl" | |
4517 | $as_echo 'GREP' >> "conftest.nl" | |
4518 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4519 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4520 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4521 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4522 | # Best one so far, save it but keep looking for a better one | |
4523 | ac_cv_path_GREP="$ac_path_GREP" | |
4524 | ac_path_GREP_max=$ac_count | |
4525 | fi | |
4526 | # 10*(2^10) chars as input seems more than enough | |
4527 | test $ac_count -gt 10 && break | |
4528 | done | |
4529 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4530 | esac | |
4531 | ||
4532 | $ac_path_GREP_found && break 3 | |
4533 | done | |
4534 | done | |
4535 | done | |
4536 | IFS=$as_save_IFS | |
4537 | if test -z "$ac_cv_path_GREP"; then | |
4538 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4539 | fi | |
4540 | else | |
4541 | ac_cv_path_GREP=$GREP | |
4542 | fi | |
4543 | ||
4544 | fi | |
4545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4546 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4547 | GREP="$ac_cv_path_GREP" | |
4548 | ||
4549 | ||
4550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4551 | $as_echo_n "checking for egrep... " >&6; } | |
4552 | if ${ac_cv_path_EGREP+:} false; then : | |
4553 | $as_echo_n "(cached) " >&6 | |
4554 | else | |
4555 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4556 | then ac_cv_path_EGREP="$GREP -E" | |
4557 | else | |
4558 | if test -z "$EGREP"; then | |
4559 | ac_path_EGREP_found=false | |
4560 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4562 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4563 | do | |
4564 | IFS=$as_save_IFS | |
4565 | test -z "$as_dir" && as_dir=. | |
4566 | for ac_prog in egrep; do | |
4567 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4568 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4569 | as_fn_executable_p "$ac_path_EGREP" || continue | |
4570 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4571 | # Check for GNU $ac_path_EGREP | |
4572 | case `"$ac_path_EGREP" --version 2>&1` in | |
4573 | *GNU*) | |
4574 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4575 | *) | |
4576 | ac_count=0 | |
4577 | $as_echo_n 0123456789 >"conftest.in" | |
4578 | while : | |
4579 | do | |
4580 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4581 | mv "conftest.tmp" "conftest.in" | |
4582 | cp "conftest.in" "conftest.nl" | |
4583 | $as_echo 'EGREP' >> "conftest.nl" | |
4584 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4585 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4586 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4587 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4588 | # Best one so far, save it but keep looking for a better one | |
4589 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4590 | ac_path_EGREP_max=$ac_count | |
4591 | fi | |
4592 | # 10*(2^10) chars as input seems more than enough | |
4593 | test $ac_count -gt 10 && break | |
4594 | done | |
4595 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4596 | esac | |
4597 | ||
4598 | $ac_path_EGREP_found && break 3 | |
4599 | done | |
4600 | done | |
4601 | done | |
4602 | IFS=$as_save_IFS | |
4603 | if test -z "$ac_cv_path_EGREP"; then | |
4604 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4605 | fi | |
4606 | else | |
4607 | ac_cv_path_EGREP=$EGREP | |
4608 | fi | |
4609 | ||
4610 | fi | |
4611 | fi | |
4612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4613 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4614 | EGREP="$ac_cv_path_EGREP" | |
4615 | ||
4616 | ||
4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
4618 | $as_echo_n "checking for fgrep... " >&6; } | |
4619 | if ${ac_cv_path_FGREP+:} false; then : | |
4620 | $as_echo_n "(cached) " >&6 | |
4621 | else | |
4622 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4623 | then ac_cv_path_FGREP="$GREP -F" | |
4624 | else | |
4625 | if test -z "$FGREP"; then | |
4626 | ac_path_FGREP_found=false | |
4627 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4629 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4630 | do | |
4631 | IFS=$as_save_IFS | |
4632 | test -z "$as_dir" && as_dir=. | |
4633 | for ac_prog in fgrep; do | |
4634 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4635 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4636 | as_fn_executable_p "$ac_path_FGREP" || continue | |
4637 | # Check for GNU ac_path_FGREP and select it if it is found. | |
4638 | # Check for GNU $ac_path_FGREP | |
4639 | case `"$ac_path_FGREP" --version 2>&1` in | |
4640 | *GNU*) | |
4641 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4642 | *) | |
4643 | ac_count=0 | |
4644 | $as_echo_n 0123456789 >"conftest.in" | |
4645 | while : | |
4646 | do | |
4647 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4648 | mv "conftest.tmp" "conftest.in" | |
4649 | cp "conftest.in" "conftest.nl" | |
4650 | $as_echo 'FGREP' >> "conftest.nl" | |
4651 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4652 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4653 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4654 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4655 | # Best one so far, save it but keep looking for a better one | |
4656 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4657 | ac_path_FGREP_max=$ac_count | |
4658 | fi | |
4659 | # 10*(2^10) chars as input seems more than enough | |
4660 | test $ac_count -gt 10 && break | |
4661 | done | |
4662 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4663 | esac | |
4664 | ||
4665 | $ac_path_FGREP_found && break 3 | |
4666 | done | |
4667 | done | |
4668 | done | |
4669 | IFS=$as_save_IFS | |
4670 | if test -z "$ac_cv_path_FGREP"; then | |
4671 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4672 | fi | |
4673 | else | |
4674 | ac_cv_path_FGREP=$FGREP | |
4675 | fi | |
4676 | ||
4677 | fi | |
4678 | fi | |
4679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
4680 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4681 | FGREP="$ac_cv_path_FGREP" | |
4682 | ||
4683 | ||
4684 | test -z "$GREP" && GREP=grep | |
4685 | ||
4686 | ||
4687 | ||
4688 | ||
4689 | ||
4690 | ||
4691 | ||
4692 | ||
4693 | ||
4694 | ||
4695 | ||
4696 | ||
4697 | ||
4698 | ||
4699 | ||
4700 | ||
4701 | ||
4702 | ||
4703 | ||
4704 | # Check whether --with-gnu-ld was given. | |
4705 | if test "${with_gnu_ld+set}" = set; then : | |
4706 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes | |
4707 | else | |
4708 | with_gnu_ld=no | |
4709 | fi | |
4710 | ||
4711 | ac_prog=ld | |
4712 | if test yes = "$GCC"; then | |
4713 | # Check if gcc -print-prog-name=ld gives a path. | |
4714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
4715 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
4716 | case $host in | |
4717 | *-*-mingw*) | |
4718 | # gcc leaves a trailing carriage return, which upsets mingw | |
4719 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4720 | *) | |
4721 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4722 | esac | |
4723 | case $ac_prog in | |
4724 | # Accept absolute paths. | |
4725 | [\\/]* | ?:[\\/]*) | |
4726 | re_direlt='/[^/][^/]*/\.\./' | |
4727 | # Canonicalize the pathname of ld | |
4728 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4729 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4730 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4731 | done | |
4732 | test -z "$LD" && LD=$ac_prog | |
4733 | ;; | |
4734 | "") | |
4735 | # If it fails, then pretend we aren't using GCC. | |
4736 | ac_prog=ld | |
4737 | ;; | |
4738 | *) | |
4739 | # If it is relative, then search for the first ld in PATH. | |
4740 | with_gnu_ld=unknown | |
4741 | ;; | |
4742 | esac | |
4743 | elif test yes = "$with_gnu_ld"; then | |
4744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
4745 | $as_echo_n "checking for GNU ld... " >&6; } | |
4746 | else | |
4747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
4748 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
4749 | fi | |
4750 | if ${lt_cv_path_LD+:} false; then : | |
4751 | $as_echo_n "(cached) " >&6 | |
4752 | else | |
4753 | if test -z "$LD"; then | |
4754 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
4755 | for ac_dir in $PATH; do | |
4756 | IFS=$lt_save_ifs | |
4757 | test -z "$ac_dir" && ac_dir=. | |
4758 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4759 | lt_cv_path_LD=$ac_dir/$ac_prog | |
4760 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4761 | # but apparently some variants of GNU ld only accept -v. | |
4762 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4763 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4764 | *GNU* | *'with BFD'*) | |
4765 | test no != "$with_gnu_ld" && break | |
4766 | ;; | |
4767 | *) | |
4768 | test yes != "$with_gnu_ld" && break | |
4769 | ;; | |
4770 | esac | |
4771 | fi | |
4772 | done | |
4773 | IFS=$lt_save_ifs | |
4774 | else | |
4775 | lt_cv_path_LD=$LD # Let the user override the test with a path. | |
4776 | fi | |
4777 | fi | |
4778 | ||
4779 | LD=$lt_cv_path_LD | |
4780 | if test -n "$LD"; then | |
4781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
4782 | $as_echo "$LD" >&6; } | |
4783 | else | |
4784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4785 | $as_echo "no" >&6; } | |
4786 | fi | |
4787 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
4788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
4789 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
4790 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
4791 | $as_echo_n "(cached) " >&6 | |
4792 | else | |
4793 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4794 | case `$LD -v 2>&1 </dev/null` in | |
4795 | *GNU* | *'with BFD'*) | |
4796 | lt_cv_prog_gnu_ld=yes | |
4797 | ;; | |
4798 | *) | |
4799 | lt_cv_prog_gnu_ld=no | |
4800 | ;; | |
4801 | esac | |
4802 | fi | |
4803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
4804 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
4805 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
4806 | ||
4807 | ||
4808 | ||
4809 | ||
4810 | ||
4811 | ||
4812 | ||
4813 | ||
4814 | ||
4815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4816 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
4817 | if ${lt_cv_path_NM+:} false; then : | |
4818 | $as_echo_n "(cached) " >&6 | |
4819 | else | |
4820 | if test -n "$NM"; then | |
4821 | # Let the user override the test. | |
4822 | lt_cv_path_NM=$NM | |
4823 | else | |
4824 | lt_nm_to_check=${ac_tool_prefix}nm | |
4825 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4826 | lt_nm_to_check="$lt_nm_to_check nm" | |
4827 | fi | |
4828 | for lt_tmp_nm in $lt_nm_to_check; do | |
4829 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
4830 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4831 | IFS=$lt_save_ifs | |
4832 | test -z "$ac_dir" && ac_dir=. | |
4833 | tmp_nm=$ac_dir/$lt_tmp_nm | |
4834 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
4835 | # Check to see if the nm accepts a BSD-compat flag. | |
4836 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: | |
4837 | # nm: unknown option "B" ignored | |
4838 | # Tru64's nm complains that /dev/null is an invalid object file | |
4839 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty | |
4840 | case $build_os in | |
4841 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
4842 | *) lt_bad_file=/dev/null ;; | |
4843 | esac | |
4844 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
4845 | *$lt_bad_file* | *'Invalid file or object type'*) | |
4846 | lt_cv_path_NM="$tmp_nm -B" | |
4847 | break 2 | |
4848 | ;; | |
4849 | *) | |
4850 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4851 | */dev/null*) | |
4852 | lt_cv_path_NM="$tmp_nm -p" | |
4853 | break 2 | |
4854 | ;; | |
4855 | *) | |
4856 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4857 | continue # so that we can try to find one that supports BSD flags | |
4858 | ;; | |
4859 | esac | |
4860 | ;; | |
4861 | esac | |
4862 | fi | |
4863 | done | |
4864 | IFS=$lt_save_ifs | |
4865 | done | |
4866 | : ${lt_cv_path_NM=no} | |
4867 | fi | |
4868 | fi | |
4869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
4870 | $as_echo "$lt_cv_path_NM" >&6; } | |
4871 | if test no != "$lt_cv_path_NM"; then | |
4872 | NM=$lt_cv_path_NM | |
4873 | else | |
4874 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4875 | if test -n "$DUMPBIN"; then : | |
4876 | # Let the user override the test. | |
4877 | else | |
4878 | if test -n "$ac_tool_prefix"; then | |
4879 | for ac_prog in dumpbin "link -dump" | |
4880 | do | |
4881 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4882 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4884 | $as_echo_n "checking for $ac_word... " >&6; } | |
4885 | if ${ac_cv_prog_DUMPBIN+:} false; then : | |
4886 | $as_echo_n "(cached) " >&6 | |
4887 | else | |
4888 | if test -n "$DUMPBIN"; then | |
4889 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4890 | else | |
4891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4892 | for as_dir in $PATH | |
4893 | do | |
4894 | IFS=$as_save_IFS | |
4895 | test -z "$as_dir" && as_dir=. | |
4896 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4897 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4898 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4899 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4900 | break 2 | |
4901 | fi | |
4902 | done | |
4903 | done | |
4904 | IFS=$as_save_IFS | |
4905 | ||
4906 | fi | |
4907 | fi | |
4908 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4909 | if test -n "$DUMPBIN"; then | |
4910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
4911 | $as_echo "$DUMPBIN" >&6; } | |
4912 | else | |
4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4914 | $as_echo "no" >&6; } | |
4915 | fi | |
4916 | ||
4917 | ||
4918 | test -n "$DUMPBIN" && break | |
4919 | done | |
4920 | fi | |
4921 | if test -z "$DUMPBIN"; then | |
4922 | ac_ct_DUMPBIN=$DUMPBIN | |
4923 | for ac_prog in dumpbin "link -dump" | |
4924 | do | |
4925 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4926 | set dummy $ac_prog; ac_word=$2 | |
4927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4928 | $as_echo_n "checking for $ac_word... " >&6; } | |
4929 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
4930 | $as_echo_n "(cached) " >&6 | |
4931 | else | |
4932 | if test -n "$ac_ct_DUMPBIN"; then | |
4933 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4934 | else | |
4935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4936 | for as_dir in $PATH | |
4937 | do | |
4938 | IFS=$as_save_IFS | |
4939 | test -z "$as_dir" && as_dir=. | |
4940 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4941 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4942 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4944 | break 2 | |
4945 | fi | |
4946 | done | |
4947 | done | |
4948 | IFS=$as_save_IFS | |
4949 | ||
4950 | fi | |
4951 | fi | |
4952 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4953 | if test -n "$ac_ct_DUMPBIN"; then | |
4954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
4955 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
4956 | else | |
4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4958 | $as_echo "no" >&6; } | |
4959 | fi | |
4960 | ||
4961 | ||
4962 | test -n "$ac_ct_DUMPBIN" && break | |
4963 | done | |
4964 | ||
4965 | if test "x$ac_ct_DUMPBIN" = x; then | |
4966 | DUMPBIN=":" | |
4967 | else | |
4968 | case $cross_compiling:$ac_tool_warned in | |
4969 | yes:) | |
4970 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4971 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4972 | ac_tool_warned=yes ;; | |
4973 | esac | |
4974 | DUMPBIN=$ac_ct_DUMPBIN | |
4975 | fi | |
4976 | fi | |
4977 | ||
4978 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in | |
4979 | *COFF*) | |
4980 | DUMPBIN="$DUMPBIN -symbols -headers" | |
4981 | ;; | |
4982 | *) | |
4983 | DUMPBIN=: | |
4984 | ;; | |
4985 | esac | |
4986 | fi | |
4987 | ||
4988 | if test : != "$DUMPBIN"; then | |
4989 | NM=$DUMPBIN | |
4990 | fi | |
4991 | fi | |
4992 | test -z "$NM" && NM=nm | |
4993 | ||
4994 | ||
4995 | ||
4996 | ||
4997 | ||
4998 | ||
4999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5000 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5001 | if ${lt_cv_nm_interface+:} false; then : | |
5002 | $as_echo_n "(cached) " >&6 | |
5003 | else | |
5004 | lt_cv_nm_interface="BSD nm" | |
5005 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5006 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5007 | (eval "$ac_compile" 2>conftest.err) | |
5008 | cat conftest.err >&5 | |
5009 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5010 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5011 | cat conftest.err >&5 | |
5012 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5013 | cat conftest.out >&5 | |
5014 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5015 | lt_cv_nm_interface="MS dumpbin" | |
5016 | fi | |
5017 | rm -f conftest* | |
5018 | fi | |
5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
5020 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5021 | ||
5022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5023 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5024 | LN_S=$as_ln_s | |
5025 | if test "$LN_S" = "ln -s"; then | |
5026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5027 | $as_echo "yes" >&6; } | |
5028 | else | |
5029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5030 | $as_echo "no, using $LN_S" >&6; } | |
5031 | fi | |
5032 | ||
5033 | # find the maximum length of command line arguments | |
5034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5035 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5036 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
5037 | $as_echo_n "(cached) " >&6 | |
5038 | else | |
5039 | i=0 | |
5040 | teststring=ABCD | |
5041 | ||
5042 | case $build_os in | |
5043 | msdosdjgpp*) | |
5044 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5045 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5046 | # during glob expansion). Even if it were fixed, the result of this | |
5047 | # check would be larger than it should be. | |
5048 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5049 | ;; | |
5050 | ||
5051 | gnu*) | |
5052 | # Under GNU Hurd, this test is not required because there is | |
5053 | # no limit to the length of command line arguments. | |
5054 | # Libtool will interpret -1 as no limit whatsoever | |
5055 | lt_cv_sys_max_cmd_len=-1; | |
5056 | ;; | |
5057 | ||
5058 | cygwin* | mingw* | cegcc*) | |
5059 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5060 | # about 5 minutes as the teststring grows exponentially. | |
5061 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5062 | # you end up with a "frozen" computer, even though with patience | |
5063 | # the test eventually succeeds (with a max line length of 256k). | |
5064 | # Instead, let's just punt: use the minimum linelength reported by | |
5065 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5066 | lt_cv_sys_max_cmd_len=8192; | |
5067 | ;; | |
5068 | ||
5069 | mint*) | |
5070 | # On MiNT this can take a long time and run out of memory. | |
5071 | lt_cv_sys_max_cmd_len=8192; | |
5072 | ;; | |
5073 | ||
5074 | amigaos*) | |
5075 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5076 | # So we just punt and use a minimum line length of 8192. | |
5077 | lt_cv_sys_max_cmd_len=8192; | |
5078 | ;; | |
5079 | ||
5080 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) | |
5081 | # This has been around since 386BSD, at least. Likely further. | |
5082 | if test -x /sbin/sysctl; then | |
5083 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5084 | elif test -x /usr/sbin/sysctl; then | |
5085 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5086 | else | |
5087 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5088 | fi | |
5089 | # And add a safety zone | |
5090 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5091 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5092 | ;; | |
5093 | ||
5094 | interix*) | |
5095 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5096 | lt_cv_sys_max_cmd_len=196608 | |
5097 | ;; | |
5098 | ||
5099 | os2*) | |
5100 | # The test takes a long time on OS/2. | |
5101 | lt_cv_sys_max_cmd_len=8192 | |
5102 | ;; | |
5103 | ||
5104 | osf*) | |
5105 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5106 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5107 | # nice to cause kernel panics so lets avoid the loop below. | |
5108 | # First set a reasonable default. | |
5109 | lt_cv_sys_max_cmd_len=16384 | |
5110 | # | |
5111 | if test -x /sbin/sysconfig; then | |
5112 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5113 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5114 | esac | |
5115 | fi | |
5116 | ;; | |
5117 | sco3.2v5*) | |
5118 | lt_cv_sys_max_cmd_len=102400 | |
5119 | ;; | |
5120 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5121 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5122 | if test -n "$kargmax"; then | |
5123 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5124 | else | |
5125 | lt_cv_sys_max_cmd_len=32768 | |
5126 | fi | |
5127 | ;; | |
5128 | *) | |
5129 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5130 | if test -n "$lt_cv_sys_max_cmd_len" && \ | |
5131 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
5132 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5133 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5134 | else | |
5135 | # Make teststring a little bigger before we do anything with it. | |
5136 | # a 1K string should be a reasonable start. | |
5137 | for i in 1 2 3 4 5 6 7 8; do | |
5138 | teststring=$teststring$teststring | |
5139 | done | |
5140 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5141 | # If test is not a shell built-in, we'll probably end up computing a | |
5142 | # maximum length that is only half of the actual maximum length, but | |
5143 | # we can't tell. | |
5144 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ | |
5145 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5146 | test 17 != "$i" # 1/2 MB should be enough | |
5147 | do | |
5148 | i=`expr $i + 1` | |
5149 | teststring=$teststring$teststring | |
5150 | done | |
5151 | # Only check the string length outside the loop. | |
5152 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5153 | teststring= | |
5154 | # Add a significant safety factor because C++ compilers can tack on | |
5155 | # massive amounts of additional arguments before passing them to the | |
5156 | # linker. It appears as though 1/2 is a usable value. | |
5157 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5158 | fi | |
5159 | ;; | |
5160 | esac | |
5161 | ||
5162 | fi | |
5163 | ||
5164 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
5165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5166 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5167 | else | |
5168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
5169 | $as_echo "none" >&6; } | |
5170 | fi | |
5171 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
5172 | ||
5173 | ||
5174 | ||
5175 | ||
5176 | ||
5177 | ||
5178 | : ${CP="cp -f"} | |
5179 | : ${MV="mv -f"} | |
5180 | : ${RM="rm -f"} | |
5181 | ||
5182 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5183 | lt_unset=unset | |
5184 | else | |
5185 | lt_unset=false | |
5186 | fi | |
5187 | ||
5188 | ||
5189 | ||
5190 | ||
5191 | ||
5192 | # test EBCDIC or ASCII | |
5193 | case `echo X|tr X '\101'` in | |
5194 | A) # ASCII based system | |
5195 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5196 | lt_SP2NL='tr \040 \012' | |
5197 | lt_NL2SP='tr \015\012 \040\040' | |
5198 | ;; | |
5199 | *) # EBCDIC based system | |
5200 | lt_SP2NL='tr \100 \n' | |
5201 | lt_NL2SP='tr \r\n \100\100' | |
5202 | ;; | |
5203 | esac | |
5204 | ||
5205 | ||
5206 | ||
5207 | ||
5208 | ||
5209 | ||
5210 | ||
5211 | ||
5212 | ||
5213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
5214 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
5215 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
5216 | $as_echo_n "(cached) " >&6 | |
5217 | else | |
5218 | case $host in | |
5219 | *-*-mingw* ) | |
5220 | case $build in | |
5221 | *-*-mingw* ) # actually msys | |
5222 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
5223 | ;; | |
5224 | *-*-cygwin* ) | |
5225 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
5226 | ;; | |
5227 | * ) # otherwise, assume *nix | |
5228 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
5229 | ;; | |
5230 | esac | |
5231 | ;; | |
5232 | *-*-cygwin* ) | |
5233 | case $build in | |
5234 | *-*-mingw* ) # actually msys | |
5235 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
5236 | ;; | |
5237 | *-*-cygwin* ) | |
5238 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5239 | ;; | |
5240 | * ) # otherwise, assume *nix | |
5241 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
5242 | ;; | |
5243 | esac | |
5244 | ;; | |
5245 | * ) # unhandled hosts (and "normal" native builds) | |
5246 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5247 | ;; | |
5248 | esac | |
5249 | ||
5250 | fi | |
5251 | ||
5252 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
5253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
5254 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
5255 | ||
5256 | ||
5257 | ||
5258 | ||
5259 | ||
5260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
5261 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
5262 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
5263 | $as_echo_n "(cached) " >&6 | |
5264 | else | |
5265 | #assume ordinary cross tools, or native build. | |
5266 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
5267 | case $host in | |
5268 | *-*-mingw* ) | |
5269 | case $build in | |
5270 | *-*-mingw* ) # actually msys | |
5271 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
5272 | ;; | |
5273 | esac | |
5274 | ;; | |
5275 | esac | |
5276 | ||
5277 | fi | |
5278 | ||
5279 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
5280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
5281 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
5282 | ||
5283 | ||
5284 | ||
5285 | ||
5286 | ||
5287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
5288 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5289 | if ${lt_cv_ld_reload_flag+:} false; then : | |
5290 | $as_echo_n "(cached) " >&6 | |
5291 | else | |
5292 | lt_cv_ld_reload_flag='-r' | |
5293 | fi | |
5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
5295 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5296 | reload_flag=$lt_cv_ld_reload_flag | |
5297 | case $reload_flag in | |
5298 | "" | " "*) ;; | |
5299 | *) reload_flag=" $reload_flag" ;; | |
5300 | esac | |
5301 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5302 | case $host_os in | |
5303 | cygwin* | mingw* | pw32* | cegcc*) | |
5304 | if test yes != "$GCC"; then | |
5305 | reload_cmds=false | |
5306 | fi | |
5307 | ;; | |
5308 | darwin*) | |
5309 | if test yes = "$GCC"; then | |
5310 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
5311 | else | |
5312 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5313 | fi | |
5314 | ;; | |
5315 | esac | |
5316 | ||
5317 | ||
5318 | ||
5319 | ||
5320 | ||
5321 | ||
5322 | ||
5323 | ||
5324 | ||
5325 | if test -n "$ac_tool_prefix"; then | |
5326 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5327 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5329 | $as_echo_n "checking for $ac_word... " >&6; } | |
5330 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
5331 | $as_echo_n "(cached) " >&6 | |
5332 | else | |
5333 | if test -n "$OBJDUMP"; then | |
5334 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5335 | else | |
5336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5337 | for as_dir in $PATH | |
5338 | do | |
5339 | IFS=$as_save_IFS | |
5340 | test -z "$as_dir" && as_dir=. | |
5341 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5342 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5343 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5344 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5345 | break 2 | |
5346 | fi | |
5347 | done | |
5348 | done | |
5349 | IFS=$as_save_IFS | |
5350 | ||
5351 | fi | |
5352 | fi | |
5353 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5354 | if test -n "$OBJDUMP"; then | |
5355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
5356 | $as_echo "$OBJDUMP" >&6; } | |
5357 | else | |
5358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5359 | $as_echo "no" >&6; } | |
5360 | fi | |
5361 | ||
5362 | ||
5363 | fi | |
5364 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5365 | ac_ct_OBJDUMP=$OBJDUMP | |
5366 | # Extract the first word of "objdump", so it can be a program name with args. | |
5367 | set dummy objdump; ac_word=$2 | |
5368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5369 | $as_echo_n "checking for $ac_word... " >&6; } | |
5370 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
5371 | $as_echo_n "(cached) " >&6 | |
5372 | else | |
5373 | if test -n "$ac_ct_OBJDUMP"; then | |
5374 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5375 | else | |
5376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5377 | for as_dir in $PATH | |
5378 | do | |
5379 | IFS=$as_save_IFS | |
5380 | test -z "$as_dir" && as_dir=. | |
5381 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5382 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5383 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5384 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5385 | break 2 | |
5386 | fi | |
5387 | done | |
5388 | done | |
5389 | IFS=$as_save_IFS | |
5390 | ||
5391 | fi | |
5392 | fi | |
5393 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5394 | if test -n "$ac_ct_OBJDUMP"; then | |
5395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
5396 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5397 | else | |
5398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5399 | $as_echo "no" >&6; } | |
5400 | fi | |
5401 | ||
5402 | if test "x$ac_ct_OBJDUMP" = x; then | |
5403 | OBJDUMP="false" | |
5404 | else | |
5405 | case $cross_compiling:$ac_tool_warned in | |
5406 | yes:) | |
5407 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5408 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5409 | ac_tool_warned=yes ;; | |
5410 | esac | |
5411 | OBJDUMP=$ac_ct_OBJDUMP | |
5412 | fi | |
5413 | else | |
5414 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5415 | fi | |
5416 | ||
5417 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5418 | ||
5419 | ||
5420 | ||
5421 | ||
5422 | ||
5423 | ||
5424 | ||
5425 | ||
5426 | ||
5427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
5428 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5429 | if ${lt_cv_deplibs_check_method+:} false; then : | |
5430 | $as_echo_n "(cached) " >&6 | |
5431 | else | |
5432 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5433 | lt_cv_file_magic_test_file= | |
5434 | lt_cv_deplibs_check_method='unknown' | |
5435 | # Need to set the preceding variable on all platforms that support | |
5436 | # interlibrary dependencies. | |
5437 | # 'none' -- dependencies not supported. | |
5438 | # 'unknown' -- same as none, but documents that we really don't know. | |
5439 | # 'pass_all' -- all dependencies passed with no checks. | |
5440 | # 'test_compile' -- check by making test program. | |
5441 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5442 | # that responds to the $file_magic_cmd with a given extended regex. | |
5443 | # If you have 'file' or equivalent on your system and you're not sure | |
5444 | # whether 'pass_all' will *always* work, you probably want this one. | |
5445 | ||
5446 | case $host_os in | |
5447 | aix[4-9]*) | |
5448 | lt_cv_deplibs_check_method=pass_all | |
5449 | ;; | |
5450 | ||
5451 | beos*) | |
5452 | lt_cv_deplibs_check_method=pass_all | |
5453 | ;; | |
5454 | ||
5455 | bsdi[45]*) | |
5456 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5457 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5458 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5459 | ;; | |
5460 | ||
5461 | cygwin*) | |
5462 | # func_win32_libid is a shell function defined in ltmain.sh | |
5463 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5464 | lt_cv_file_magic_cmd='func_win32_libid' | |
5465 | ;; | |
5466 | ||
5467 | mingw* | pw32*) | |
5468 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5469 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5470 | # unless we find 'file', for example because we are cross-compiling. | |
5471 | if ( file / ) >/dev/null 2>&1; then | |
5472 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5473 | lt_cv_file_magic_cmd='func_win32_libid' | |
5474 | else | |
5475 | # Keep this pattern in sync with the one in func_win32_libid. | |
5476 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
5477 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5478 | fi | |
5479 | ;; | |
5480 | ||
5481 | cegcc*) | |
5482 | # use the weaker test based on 'objdump'. See mingw*. | |
5483 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5484 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5485 | ;; | |
5486 | ||
5487 | darwin* | rhapsody*) | |
5488 | lt_cv_deplibs_check_method=pass_all | |
5489 | ;; | |
5490 | ||
5491 | freebsd* | dragonfly*) | |
5492 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5493 | case $host_cpu in | |
5494 | i*86 ) | |
5495 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5496 | # Let's accept both of them until this is cleared up. | |
5497 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5498 | lt_cv_file_magic_cmd=/usr/bin/file | |
5499 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5500 | ;; | |
5501 | esac | |
5502 | else | |
5503 | lt_cv_deplibs_check_method=pass_all | |
5504 | fi | |
5505 | ;; | |
5506 | ||
5507 | haiku*) | |
5508 | lt_cv_deplibs_check_method=pass_all | |
5509 | ;; | |
5510 | ||
5511 | hpux10.20* | hpux11*) | |
5512 | lt_cv_file_magic_cmd=/usr/bin/file | |
5513 | case $host_cpu in | |
5514 | ia64*) | |
5515 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5516 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5517 | ;; | |
5518 | hppa*64*) | |
5519 | 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]' | |
5520 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5521 | ;; | |
5522 | *) | |
5523 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
5524 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5525 | ;; | |
5526 | esac | |
5527 | ;; | |
5528 | ||
5529 | interix[3-9]*) | |
5530 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5531 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5532 | ;; | |
5533 | ||
5534 | irix5* | irix6* | nonstopux*) | |
5535 | case $LD in | |
5536 | *-32|*"-32 ") libmagic=32-bit;; | |
5537 | *-n32|*"-n32 ") libmagic=N32;; | |
5538 | *-64|*"-64 ") libmagic=64-bit;; | |
5539 | *) libmagic=never-match;; | |
5540 | esac | |
5541 | lt_cv_deplibs_check_method=pass_all | |
5542 | ;; | |
5543 | ||
5544 | # This must be glibc/ELF. | |
5545 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
5546 | lt_cv_deplibs_check_method=pass_all | |
5547 | ;; | |
5548 | ||
5549 | netbsd* | netbsdelf*-gnu) | |
5550 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5551 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5552 | else | |
5553 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5554 | fi | |
5555 | ;; | |
5556 | ||
5557 | newos6*) | |
5558 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5559 | lt_cv_file_magic_cmd=/usr/bin/file | |
5560 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5561 | ;; | |
5562 | ||
5563 | *nto* | *qnx*) | |
5564 | lt_cv_deplibs_check_method=pass_all | |
5565 | ;; | |
5566 | ||
5567 | openbsd* | bitrig*) | |
5568 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
5569 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5570 | else | |
5571 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5572 | fi | |
5573 | ;; | |
5574 | ||
5575 | osf3* | osf4* | osf5*) | |
5576 | lt_cv_deplibs_check_method=pass_all | |
5577 | ;; | |
5578 | ||
5579 | rdos*) | |
5580 | lt_cv_deplibs_check_method=pass_all | |
5581 | ;; | |
5582 | ||
5583 | solaris*) | |
5584 | lt_cv_deplibs_check_method=pass_all | |
5585 | ;; | |
5586 | ||
5587 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5588 | lt_cv_deplibs_check_method=pass_all | |
5589 | ;; | |
5590 | ||
5591 | sysv4 | sysv4.3*) | |
5592 | case $host_vendor in | |
5593 | motorola) | |
5594 | 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]' | |
5595 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5596 | ;; | |
5597 | ncr) | |
5598 | lt_cv_deplibs_check_method=pass_all | |
5599 | ;; | |
5600 | sequent) | |
5601 | lt_cv_file_magic_cmd='/bin/file' | |
5602 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5603 | ;; | |
5604 | sni) | |
5605 | lt_cv_file_magic_cmd='/bin/file' | |
5606 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5607 | lt_cv_file_magic_test_file=/lib/libc.so | |
5608 | ;; | |
5609 | siemens) | |
5610 | lt_cv_deplibs_check_method=pass_all | |
5611 | ;; | |
5612 | pc) | |
5613 | lt_cv_deplibs_check_method=pass_all | |
5614 | ;; | |
5615 | esac | |
5616 | ;; | |
5617 | ||
5618 | tpf*) | |
5619 | lt_cv_deplibs_check_method=pass_all | |
5620 | ;; | |
5621 | os2*) | |
5622 | lt_cv_deplibs_check_method=pass_all | |
5623 | ;; | |
5624 | esac | |
5625 | ||
5626 | fi | |
5627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
5628 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5629 | ||
5630 | file_magic_glob= | |
5631 | want_nocaseglob=no | |
5632 | if test "$build" = "$host"; then | |
5633 | case $host_os in | |
5634 | mingw* | pw32*) | |
5635 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5636 | want_nocaseglob=yes | |
5637 | else | |
5638 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5639 | fi | |
5640 | ;; | |
5641 | esac | |
5642 | fi | |
5643 | ||
5644 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5645 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5646 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5647 | ||
5648 | ||
5649 | ||
5650 | ||
5651 | ||
5652 | ||
5653 | ||
5654 | ||
5655 | ||
5656 | ||
5657 | ||
5658 | ||
5659 | ||
5660 | ||
5661 | ||
5662 | ||
5663 | ||
5664 | ||
5665 | ||
5666 | ||
5667 | ||
5668 | ||
5669 | if test -n "$ac_tool_prefix"; then | |
5670 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5671 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5673 | $as_echo_n "checking for $ac_word... " >&6; } | |
5674 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5675 | $as_echo_n "(cached) " >&6 | |
5676 | else | |
5677 | if test -n "$DLLTOOL"; then | |
5678 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5679 | else | |
5680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5681 | for as_dir in $PATH | |
5682 | do | |
5683 | IFS=$as_save_IFS | |
5684 | test -z "$as_dir" && as_dir=. | |
5685 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5686 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5687 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5688 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5689 | break 2 | |
5690 | fi | |
5691 | done | |
5692 | done | |
5693 | IFS=$as_save_IFS | |
5694 | ||
5695 | fi | |
5696 | fi | |
5697 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
5698 | if test -n "$DLLTOOL"; then | |
5699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5700 | $as_echo "$DLLTOOL" >&6; } | |
5701 | else | |
5702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5703 | $as_echo "no" >&6; } | |
5704 | fi | |
5705 | ||
5706 | ||
5707 | fi | |
5708 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
5709 | ac_ct_DLLTOOL=$DLLTOOL | |
5710 | # Extract the first word of "dlltool", so it can be a program name with args. | |
5711 | set dummy dlltool; ac_word=$2 | |
5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5713 | $as_echo_n "checking for $ac_word... " >&6; } | |
5714 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
5715 | $as_echo_n "(cached) " >&6 | |
5716 | else | |
5717 | if test -n "$ac_ct_DLLTOOL"; then | |
5718 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5719 | else | |
5720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5721 | for as_dir in $PATH | |
5722 | do | |
5723 | IFS=$as_save_IFS | |
5724 | test -z "$as_dir" && as_dir=. | |
5725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5726 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5727 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5729 | break 2 | |
5730 | fi | |
5731 | done | |
5732 | done | |
5733 | IFS=$as_save_IFS | |
5734 | ||
5735 | fi | |
5736 | fi | |
5737 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5738 | if test -n "$ac_ct_DLLTOOL"; then | |
5739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5740 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5741 | else | |
5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5743 | $as_echo "no" >&6; } | |
5744 | fi | |
5745 | ||
5746 | if test "x$ac_ct_DLLTOOL" = x; then | |
5747 | DLLTOOL="false" | |
5748 | else | |
5749 | case $cross_compiling:$ac_tool_warned in | |
5750 | yes:) | |
5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5752 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5753 | ac_tool_warned=yes ;; | |
5754 | esac | |
5755 | DLLTOOL=$ac_ct_DLLTOOL | |
5756 | fi | |
5757 | else | |
5758 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5759 | fi | |
5760 | ||
5761 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5762 | ||
5763 | ||
5764 | ||
5765 | ||
5766 | ||
5767 | ||
5768 | ||
5769 | ||
5770 | ||
5771 | ||
5772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
5773 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5774 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5775 | $as_echo_n "(cached) " >&6 | |
5776 | else | |
5777 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5778 | ||
5779 | case $host_os in | |
5780 | cygwin* | mingw* | pw32* | cegcc*) | |
5781 | # two different shell functions defined in ltmain.sh; | |
5782 | # decide which one to use based on capabilities of $DLLTOOL | |
5783 | case `$DLLTOOL --help 2>&1` in | |
5784 | *--identify-strict*) | |
5785 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
5786 | ;; | |
5787 | *) | |
5788 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
5789 | ;; | |
5790 | esac | |
5791 | ;; | |
5792 | *) | |
5793 | # fallback: assume linklib IS sharedlib | |
5794 | lt_cv_sharedlib_from_linklib_cmd=$ECHO | |
5795 | ;; | |
5796 | esac | |
5797 | ||
5798 | fi | |
5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
5800 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5801 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5802 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
5803 | ||
5804 | ||
5805 | ||
5806 | ||
5807 | ||
5808 | ||
5809 | ||
5810 | ||
5811 | if test -n "$ac_tool_prefix"; then | |
5812 | for ac_prog in ar | |
5813 | do | |
5814 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5815 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5817 | $as_echo_n "checking for $ac_word... " >&6; } | |
5818 | if ${ac_cv_prog_AR+:} false; then : | |
5819 | $as_echo_n "(cached) " >&6 | |
5820 | else | |
5821 | if test -n "$AR"; then | |
5822 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5823 | else | |
5824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5825 | for as_dir in $PATH | |
5826 | do | |
5827 | IFS=$as_save_IFS | |
5828 | test -z "$as_dir" && as_dir=. | |
5829 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5830 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5831 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5833 | break 2 | |
5834 | fi | |
5835 | done | |
5836 | done | |
5837 | IFS=$as_save_IFS | |
5838 | ||
5839 | fi | |
5840 | fi | |
5841 | AR=$ac_cv_prog_AR | |
5842 | if test -n "$AR"; then | |
5843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5844 | $as_echo "$AR" >&6; } | |
5845 | else | |
5846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5847 | $as_echo "no" >&6; } | |
5848 | fi | |
5849 | ||
5850 | ||
5851 | test -n "$AR" && break | |
5852 | done | |
5853 | fi | |
5854 | if test -z "$AR"; then | |
5855 | ac_ct_AR=$AR | |
5856 | for ac_prog in ar | |
5857 | do | |
5858 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5859 | set dummy $ac_prog; ac_word=$2 | |
5860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5861 | $as_echo_n "checking for $ac_word... " >&6; } | |
5862 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
5863 | $as_echo_n "(cached) " >&6 | |
5864 | else | |
5865 | if test -n "$ac_ct_AR"; then | |
5866 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5867 | else | |
5868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5869 | for as_dir in $PATH | |
5870 | do | |
5871 | IFS=$as_save_IFS | |
5872 | test -z "$as_dir" && as_dir=. | |
5873 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5874 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5875 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5876 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5877 | break 2 | |
5878 | fi | |
5879 | done | |
5880 | done | |
5881 | IFS=$as_save_IFS | |
5882 | ||
5883 | fi | |
5884 | fi | |
5885 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5886 | if test -n "$ac_ct_AR"; then | |
5887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5888 | $as_echo "$ac_ct_AR" >&6; } | |
5889 | else | |
5890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5891 | $as_echo "no" >&6; } | |
5892 | fi | |
5893 | ||
5894 | ||
5895 | test -n "$ac_ct_AR" && break | |
5896 | done | |
5897 | ||
5898 | if test "x$ac_ct_AR" = x; then | |
5899 | AR="false" | |
5900 | else | |
5901 | case $cross_compiling:$ac_tool_warned in | |
5902 | yes:) | |
5903 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5904 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5905 | ac_tool_warned=yes ;; | |
5906 | esac | |
5907 | AR=$ac_ct_AR | |
5908 | fi | |
5909 | fi | |
5910 | ||
5911 | : ${AR=ar} | |
5912 | : ${AR_FLAGS=cru} | |
5913 | ||
5914 | ||
5915 | ||
5916 | ||
5917 | ||
5918 | ||
5919 | ||
5920 | ||
5921 | ||
5922 | ||
5923 | ||
5924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
5925 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
5926 | if ${lt_cv_ar_at_file+:} false; then : | |
5927 | $as_echo_n "(cached) " >&6 | |
5928 | else | |
5929 | lt_cv_ar_at_file=no | |
5930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5931 | /* end confdefs.h. */ | |
5932 | ||
5933 | int | |
5934 | main () | |
5935 | { | |
5936 | ||
5937 | ; | |
5938 | return 0; | |
5939 | } | |
5940 | _ACEOF | |
5941 | if ac_fn_c_try_compile "$LINENO"; then : | |
5942 | echo conftest.$ac_objext > conftest.lst | |
5943 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
5944 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5945 | (eval $lt_ar_try) 2>&5 | |
5946 | ac_status=$? | |
5947 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5948 | test $ac_status = 0; } | |
5949 | if test 0 -eq "$ac_status"; then | |
5950 | # Ensure the archiver fails upon bogus file names. | |
5951 | rm -f conftest.$ac_objext libconftest.a | |
5952 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5953 | (eval $lt_ar_try) 2>&5 | |
5954 | ac_status=$? | |
5955 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5956 | test $ac_status = 0; } | |
5957 | if test 0 -ne "$ac_status"; then | |
5958 | lt_cv_ar_at_file=@ | |
5959 | fi | |
5960 | fi | |
5961 | rm -f conftest.* libconftest.a | |
5962 | ||
5963 | fi | |
5964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5965 | ||
5966 | fi | |
5967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
5968 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
5969 | ||
5970 | if test no = "$lt_cv_ar_at_file"; then | |
5971 | archiver_list_spec= | |
5972 | else | |
5973 | archiver_list_spec=$lt_cv_ar_at_file | |
5974 | fi | |
5975 | ||
5976 | ||
5977 | ||
5978 | ||
5979 | ||
5980 | ||
5981 | ||
5982 | if test -n "$ac_tool_prefix"; then | |
5983 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5984 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5986 | $as_echo_n "checking for $ac_word... " >&6; } | |
5987 | if ${ac_cv_prog_STRIP+:} false; then : | |
5988 | $as_echo_n "(cached) " >&6 | |
5989 | else | |
5990 | if test -n "$STRIP"; then | |
5991 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5992 | else | |
5993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5994 | for as_dir in $PATH | |
5995 | do | |
5996 | IFS=$as_save_IFS | |
5997 | test -z "$as_dir" && as_dir=. | |
5998 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5999 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6000 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6001 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6002 | break 2 | |
6003 | fi | |
6004 | done | |
6005 | done | |
6006 | IFS=$as_save_IFS | |
6007 | ||
6008 | fi | |
6009 | fi | |
6010 | STRIP=$ac_cv_prog_STRIP | |
6011 | if test -n "$STRIP"; then | |
6012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6013 | $as_echo "$STRIP" >&6; } | |
6014 | else | |
6015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6016 | $as_echo "no" >&6; } | |
6017 | fi | |
6018 | ||
6019 | ||
6020 | fi | |
6021 | if test -z "$ac_cv_prog_STRIP"; then | |
6022 | ac_ct_STRIP=$STRIP | |
6023 | # Extract the first word of "strip", so it can be a program name with args. | |
6024 | set dummy strip; ac_word=$2 | |
6025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6026 | $as_echo_n "checking for $ac_word... " >&6; } | |
6027 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
6028 | $as_echo_n "(cached) " >&6 | |
6029 | else | |
6030 | if test -n "$ac_ct_STRIP"; then | |
6031 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6032 | else | |
6033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6034 | for as_dir in $PATH | |
6035 | do | |
6036 | IFS=$as_save_IFS | |
6037 | test -z "$as_dir" && as_dir=. | |
6038 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6039 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6040 | ac_cv_prog_ac_ct_STRIP="strip" | |
6041 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6042 | break 2 | |
6043 | fi | |
6044 | done | |
6045 | done | |
6046 | IFS=$as_save_IFS | |
6047 | ||
6048 | fi | |
6049 | fi | |
6050 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6051 | if test -n "$ac_ct_STRIP"; then | |
6052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6053 | $as_echo "$ac_ct_STRIP" >&6; } | |
6054 | else | |
6055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6056 | $as_echo "no" >&6; } | |
6057 | fi | |
6058 | ||
6059 | if test "x$ac_ct_STRIP" = x; then | |
6060 | STRIP=":" | |
6061 | else | |
6062 | case $cross_compiling:$ac_tool_warned in | |
6063 | yes:) | |
6064 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6065 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6066 | ac_tool_warned=yes ;; | |
6067 | esac | |
6068 | STRIP=$ac_ct_STRIP | |
6069 | fi | |
6070 | else | |
6071 | STRIP="$ac_cv_prog_STRIP" | |
6072 | fi | |
6073 | ||
6074 | test -z "$STRIP" && STRIP=: | |
6075 | ||
6076 | ||
6077 | ||
6078 | ||
6079 | ||
6080 | ||
6081 | if test -n "$ac_tool_prefix"; then | |
6082 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6083 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6085 | $as_echo_n "checking for $ac_word... " >&6; } | |
6086 | if ${ac_cv_prog_RANLIB+:} false; then : | |
6087 | $as_echo_n "(cached) " >&6 | |
6088 | else | |
6089 | if test -n "$RANLIB"; then | |
6090 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6091 | else | |
6092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6093 | for as_dir in $PATH | |
6094 | do | |
6095 | IFS=$as_save_IFS | |
6096 | test -z "$as_dir" && as_dir=. | |
6097 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6098 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6099 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6100 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6101 | break 2 | |
6102 | fi | |
6103 | done | |
6104 | done | |
6105 | IFS=$as_save_IFS | |
6106 | ||
6107 | fi | |
6108 | fi | |
6109 | RANLIB=$ac_cv_prog_RANLIB | |
6110 | if test -n "$RANLIB"; then | |
6111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6112 | $as_echo "$RANLIB" >&6; } | |
6113 | else | |
6114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6115 | $as_echo "no" >&6; } | |
6116 | fi | |
6117 | ||
6118 | ||
6119 | fi | |
6120 | if test -z "$ac_cv_prog_RANLIB"; then | |
6121 | ac_ct_RANLIB=$RANLIB | |
6122 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6123 | set dummy ranlib; ac_word=$2 | |
6124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6125 | $as_echo_n "checking for $ac_word... " >&6; } | |
6126 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
6127 | $as_echo_n "(cached) " >&6 | |
6128 | else | |
6129 | if test -n "$ac_ct_RANLIB"; then | |
6130 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6131 | else | |
6132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6133 | for as_dir in $PATH | |
6134 | do | |
6135 | IFS=$as_save_IFS | |
6136 | test -z "$as_dir" && as_dir=. | |
6137 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6138 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6139 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6140 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6141 | break 2 | |
6142 | fi | |
6143 | done | |
6144 | done | |
6145 | IFS=$as_save_IFS | |
6146 | ||
6147 | fi | |
6148 | fi | |
6149 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6150 | if test -n "$ac_ct_RANLIB"; then | |
6151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6152 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6153 | else | |
6154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6155 | $as_echo "no" >&6; } | |
6156 | fi | |
6157 | ||
6158 | if test "x$ac_ct_RANLIB" = x; then | |
6159 | RANLIB=":" | |
6160 | else | |
6161 | case $cross_compiling:$ac_tool_warned in | |
6162 | yes:) | |
6163 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6164 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6165 | ac_tool_warned=yes ;; | |
6166 | esac | |
6167 | RANLIB=$ac_ct_RANLIB | |
6168 | fi | |
6169 | else | |
6170 | RANLIB="$ac_cv_prog_RANLIB" | |
6171 | fi | |
6172 | ||
6173 | test -z "$RANLIB" && RANLIB=: | |
6174 | ||
6175 | ||
6176 | ||
6177 | ||
6178 | ||
6179 | ||
6180 | # Determine commands to create old-style static archives. | |
6181 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6182 | old_postinstall_cmds='chmod 644 $oldlib' | |
6183 | old_postuninstall_cmds= | |
6184 | ||
6185 | if test -n "$RANLIB"; then | |
6186 | case $host_os in | |
6187 | bitrig* | openbsd*) | |
6188 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
6189 | ;; | |
6190 | *) | |
6191 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
6192 | ;; | |
6193 | esac | |
6194 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
6195 | fi | |
6196 | ||
6197 | case $host_os in | |
6198 | darwin*) | |
6199 | lock_old_archive_extraction=yes ;; | |
6200 | *) | |
6201 | lock_old_archive_extraction=no ;; | |
6202 | esac | |
6203 | ||
6204 | ||
6205 | ||
6206 | ||
6207 | ||
6208 | ||
6209 | ||
6210 | ||
6211 | ||
6212 | ||
6213 | ||
6214 | ||
6215 | ||
6216 | ||
6217 | ||
6218 | ||
6219 | ||
6220 | ||
6221 | ||
6222 | ||
6223 | ||
6224 | ||
6225 | ||
6226 | ||
6227 | ||
6228 | ||
6229 | ||
6230 | ||
6231 | ||
6232 | ||
6233 | ||
6234 | ||
6235 | ||
6236 | ||
6237 | ||
6238 | ||
6239 | ||
6240 | ||
6241 | ||
6242 | # If no C compiler was specified, use CC. | |
6243 | LTCC=${LTCC-"$CC"} | |
6244 | ||
6245 | # If no C compiler flags were specified, use CFLAGS. | |
6246 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6247 | ||
6248 | # Allow CC to be a program name with arguments. | |
6249 | compiler=$CC | |
6250 | ||
6251 | ||
6252 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
6254 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6255 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
6256 | $as_echo_n "(cached) " >&6 | |
6257 | else | |
6258 | ||
6259 | # These are sane defaults that work on at least a few old systems. | |
6260 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6261 | ||
6262 | # Character class describing NM global symbol codes. | |
6263 | symcode='[BCDEGRST]' | |
6264 | ||
6265 | # Regexp to match symbols that can be accessed directly from C. | |
6266 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6267 | ||
6268 | # Define system-specific variables. | |
6269 | case $host_os in | |
6270 | aix*) | |
6271 | symcode='[BCDT]' | |
6272 | ;; | |
6273 | cygwin* | mingw* | pw32* | cegcc*) | |
6274 | symcode='[ABCDGISTW]' | |
6275 | ;; | |
6276 | hpux*) | |
6277 | if test ia64 = "$host_cpu"; then | |
6278 | symcode='[ABCDEGRST]' | |
6279 | fi | |
6280 | ;; | |
6281 | irix* | nonstopux*) | |
6282 | symcode='[BCDEGRST]' | |
6283 | ;; | |
6284 | osf*) | |
6285 | symcode='[BCDEGQRST]' | |
6286 | ;; | |
6287 | solaris*) | |
6288 | symcode='[BDRT]' | |
6289 | ;; | |
6290 | sco3.2v5*) | |
6291 | symcode='[DT]' | |
6292 | ;; | |
6293 | sysv4.2uw2*) | |
6294 | symcode='[DT]' | |
6295 | ;; | |
6296 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6297 | symcode='[ABDT]' | |
6298 | ;; | |
6299 | sysv4) | |
6300 | symcode='[DFNSTU]' | |
6301 | ;; | |
6302 | esac | |
6303 | ||
6304 | # If we're using GNU nm, then use its standard symbol codes. | |
6305 | case `$NM -V 2>&1` in | |
6306 | *GNU* | *'with BFD'*) | |
6307 | symcode='[ABCDGIRSTW]' ;; | |
6308 | esac | |
6309 | ||
6310 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6311 | # Gets list of data symbols to import. | |
6312 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
6313 | # Adjust the below global symbol transforms to fixup imported variables. | |
6314 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
6315 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
6316 | lt_c_name_lib_hook="\ | |
6317 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
6318 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
6319 | else | |
6320 | # Disable hooks by default. | |
6321 | lt_cv_sys_global_symbol_to_import= | |
6322 | lt_cdecl_hook= | |
6323 | lt_c_name_hook= | |
6324 | lt_c_name_lib_hook= | |
6325 | fi | |
6326 | ||
6327 | # Transform an extracted symbol line into a proper C declaration. | |
6328 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6329 | # so use this general approach. | |
6330 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ | |
6331 | $lt_cdecl_hook\ | |
6332 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
6333 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
6334 | ||
6335 | # Transform an extracted symbol line into symbol name and symbol address | |
6336 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ | |
6337 | $lt_c_name_hook\ | |
6338 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6339 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
6340 | ||
6341 | # Transform an extracted symbol line into symbol name with lib prefix and | |
6342 | # symbol address. | |
6343 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
6344 | $lt_c_name_lib_hook\ | |
6345 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6346 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
6347 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
6348 | ||
6349 | # Handle CRLF in mingw tool chain | |
6350 | opt_cr= | |
6351 | case $build_os in | |
6352 | mingw*) | |
6353 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6354 | ;; | |
6355 | esac | |
6356 | ||
6357 | # Try without a prefix underscore, then with it. | |
6358 | for ac_symprfx in "" "_"; do | |
6359 | ||
6360 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6361 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6362 | ||
6363 | # Write the raw and C identifiers. | |
6364 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6365 | # Fake it for dumpbin and say T for any non-static function, | |
6366 | # D for any global variable and I for any imported variable. | |
6367 | # Also find C++ and __fastcall symbols from MSVC++, | |
6368 | # which start with @ or ?. | |
6369 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6370 | " {last_section=section; section=\$ 3};"\ | |
6371 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
6372 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6373 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ | |
6374 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
6375 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
6376 | " \$ 0!~/External *\|/{next};"\ | |
6377 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6378 | " {if(hide[section]) next};"\ | |
6379 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ | |
6380 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
6381 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
6382 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
6383 | " ' prfx=^$ac_symprfx" | |
6384 | else | |
6385 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6386 | fi | |
6387 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
6388 | ||
6389 | # Check to see that the pipe works correctly. | |
6390 | pipe_works=no | |
6391 | ||
6392 | rm -f conftest* | |
6393 | cat > conftest.$ac_ext <<_LT_EOF | |
6394 | #ifdef __cplusplus | |
6395 | extern "C" { | |
6396 | #endif | |
6397 | char nm_test_var; | |
6398 | void nm_test_func(void); | |
6399 | void nm_test_func(void){} | |
6400 | #ifdef __cplusplus | |
6401 | } | |
6402 | #endif | |
6403 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6404 | _LT_EOF | |
6405 | ||
6406 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6407 | (eval $ac_compile) 2>&5 | |
6408 | ac_status=$? | |
6409 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6410 | test $ac_status = 0; }; then | |
6411 | # Now try to grab the symbols. | |
6412 | nlist=conftest.nm | |
6413 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
6414 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
6415 | ac_status=$? | |
6416 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6417 | test $ac_status = 0; } && test -s "$nlist"; then | |
6418 | # Try sorting and uniquifying the output. | |
6419 | if sort "$nlist" | uniq > "$nlist"T; then | |
6420 | mv -f "$nlist"T "$nlist" | |
6421 | else | |
6422 | rm -f "$nlist"T | |
6423 | fi | |
6424 | ||
6425 | # Make sure that we snagged all the symbols we need. | |
6426 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6427 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6428 | cat <<_LT_EOF > conftest.$ac_ext | |
6429 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
6430 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE | |
6431 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
6432 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
6433 | # define LT_DLSYM_CONST | |
6434 | #elif defined __osf__ | |
6435 | /* This system does not cope well with relocations in const data. */ | |
6436 | # define LT_DLSYM_CONST | |
6437 | #else | |
6438 | # define LT_DLSYM_CONST const | |
6439 | #endif | |
6440 | ||
6441 | #ifdef __cplusplus | |
6442 | extern "C" { | |
6443 | #endif | |
6444 | ||
6445 | _LT_EOF | |
6446 | # Now generate the symbol file. | |
6447 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6448 | ||
6449 | cat <<_LT_EOF >> conftest.$ac_ext | |
6450 | ||
6451 | /* The mapping between symbol names and symbols. */ | |
6452 | LT_DLSYM_CONST struct { | |
6453 | const char *name; | |
6454 | void *address; | |
6455 | } | |
6456 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6457 | { | |
6458 | { "@PROGRAM@", (void *) 0 }, | |
6459 | _LT_EOF | |
6460 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6461 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6462 | {0, (void *) 0} | |
6463 | }; | |
6464 | ||
6465 | /* This works around a problem in FreeBSD linker */ | |
6466 | #ifdef FREEBSD_WORKAROUND | |
6467 | static const void *lt_preloaded_setup() { | |
6468 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6469 | } | |
6470 | #endif | |
6471 | ||
6472 | #ifdef __cplusplus | |
6473 | } | |
6474 | #endif | |
6475 | _LT_EOF | |
6476 | # Now try linking the two files. | |
6477 | mv conftest.$ac_objext conftstm.$ac_objext | |
6478 | lt_globsym_save_LIBS=$LIBS | |
6479 | lt_globsym_save_CFLAGS=$CFLAGS | |
6480 | LIBS=conftstm.$ac_objext | |
6481 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6482 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
6483 | (eval $ac_link) 2>&5 | |
6484 | ac_status=$? | |
6485 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6486 | test $ac_status = 0; } && test -s conftest$ac_exeext; then | |
6487 | pipe_works=yes | |
6488 | fi | |
6489 | LIBS=$lt_globsym_save_LIBS | |
6490 | CFLAGS=$lt_globsym_save_CFLAGS | |
6491 | else | |
6492 | echo "cannot find nm_test_func in $nlist" >&5 | |
6493 | fi | |
6494 | else | |
6495 | echo "cannot find nm_test_var in $nlist" >&5 | |
6496 | fi | |
6497 | else | |
6498 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6499 | fi | |
6500 | else | |
6501 | echo "$progname: failed program was:" >&5 | |
6502 | cat conftest.$ac_ext >&5 | |
6503 | fi | |
6504 | rm -rf conftest* conftst* | |
6505 | ||
6506 | # Do not use the global_symbol_pipe unless it works. | |
6507 | if test yes = "$pipe_works"; then | |
6508 | break | |
6509 | else | |
6510 | lt_cv_sys_global_symbol_pipe= | |
6511 | fi | |
6512 | done | |
6513 | ||
6514 | fi | |
6515 | ||
6516 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6517 | lt_cv_sys_global_symbol_to_cdecl= | |
6518 | fi | |
6519 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
6521 | $as_echo "failed" >&6; } | |
6522 | else | |
6523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
6524 | $as_echo "ok" >&6; } | |
6525 | fi | |
6526 | ||
6527 | # Response file support. | |
6528 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6529 | nm_file_list_spec='@' | |
6530 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6531 | nm_file_list_spec='@' | |
6532 | fi | |
6533 | ||
6534 | ||
6535 | ||
6536 | ||
6537 | ||
6538 | ||
6539 | ||
6540 | ||
6541 | ||
6542 | ||
6543 | ||
6544 | ||
6545 | ||
6546 | ||
6547 | ||
6548 | ||
6549 | ||
6550 | ||
6551 | ||
6552 | ||
6553 | ||
6554 | ||
6555 | ||
6556 | ||
6557 | ||
6558 | ||
6559 | ||
6560 | ||
6561 | ||
6562 | ||
6563 | ||
6564 | ||
6565 | ||
6566 | ||
6567 | ||
6568 | ||
6569 | ||
6570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
6571 | $as_echo_n "checking for sysroot... " >&6; } | |
6572 | ||
6573 | # Check whether --with-sysroot was given. | |
6574 | if test "${with_sysroot+set}" = set; then : | |
6575 | withval=$with_sysroot; | |
6576 | else | |
6577 | with_sysroot=no | |
6578 | fi | |
6579 | ||
6580 | ||
6581 | lt_sysroot= | |
6582 | case $with_sysroot in #( | |
6583 | yes) | |
6584 | if test yes = "$GCC"; then | |
6585 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
6586 | fi | |
6587 | ;; #( | |
6588 | /*) | |
6589 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6590 | ;; #( | |
6591 | no|'') | |
6592 | ;; #( | |
6593 | *) | |
6594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 | |
6595 | $as_echo "$with_sysroot" >&6; } | |
6596 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
6597 | ;; | |
6598 | esac | |
6599 | ||
6600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6601 | $as_echo "${lt_sysroot:-no}" >&6; } | |
6602 | ||
6603 | ||
6604 | ||
6605 | ||
6606 | ||
6607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 | |
6608 | $as_echo_n "checking for a working dd... " >&6; } | |
6609 | if ${ac_cv_path_lt_DD+:} false; then : | |
6610 | $as_echo_n "(cached) " >&6 | |
6611 | else | |
6612 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6613 | cat conftest.i conftest.i >conftest2.i | |
6614 | : ${lt_DD:=$DD} | |
6615 | if test -z "$lt_DD"; then | |
6616 | ac_path_lt_DD_found=false | |
6617 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6619 | for as_dir in $PATH | |
6620 | do | |
6621 | IFS=$as_save_IFS | |
6622 | test -z "$as_dir" && as_dir=. | |
6623 | for ac_prog in dd; do | |
6624 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6625 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
6626 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
6627 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6628 | cmp -s conftest.i conftest.out \ | |
6629 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
6630 | fi | |
6631 | $ac_path_lt_DD_found && break 3 | |
6632 | done | |
6633 | done | |
6634 | done | |
6635 | IFS=$as_save_IFS | |
6636 | if test -z "$ac_cv_path_lt_DD"; then | |
6637 | : | |
6638 | fi | |
6639 | else | |
6640 | ac_cv_path_lt_DD=$lt_DD | |
6641 | fi | |
6642 | ||
6643 | rm -f conftest.i conftest2.i conftest.out | |
6644 | fi | |
6645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
6646 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
6647 | ||
6648 | ||
6649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
6650 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
6651 | if ${lt_cv_truncate_bin+:} false; then : | |
6652 | $as_echo_n "(cached) " >&6 | |
6653 | else | |
6654 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6655 | cat conftest.i conftest.i >conftest2.i | |
6656 | lt_cv_truncate_bin= | |
6657 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6658 | cmp -s conftest.i conftest.out \ | |
6659 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
6660 | fi | |
6661 | rm -f conftest.i conftest2.i conftest.out | |
6662 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
6663 | fi | |
6664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
6665 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
6666 | ||
6667 | ||
6668 | ||
6669 | ||
6670 | ||
6671 | ||
6672 | ||
6673 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
6674 | func_cc_basename () | |
6675 | { | |
6676 | for cc_temp in $*""; do | |
6677 | case $cc_temp in | |
6678 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6679 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6680 | \-*) ;; | |
6681 | *) break;; | |
6682 | esac | |
6683 | done | |
6684 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
6685 | } | |
6686 | ||
6687 | # Check whether --enable-libtool-lock was given. | |
6688 | if test "${enable_libtool_lock+set}" = set; then : | |
6689 | enableval=$enable_libtool_lock; | |
6690 | fi | |
6691 | ||
6692 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes | |
6693 | ||
6694 | # Some flags need to be propagated to the compiler or linker for good | |
6695 | # libtool support. | |
6696 | case $host in | |
6697 | ia64-*-hpux*) | |
6698 | # Find out what ABI is being produced by ac_compile, and set mode | |
6699 | # options accordingly. | |
6700 | echo 'int i;' > conftest.$ac_ext | |
6701 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6702 | (eval $ac_compile) 2>&5 | |
6703 | ac_status=$? | |
6704 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6705 | test $ac_status = 0; }; then | |
6706 | case `/usr/bin/file conftest.$ac_objext` in | |
6707 | *ELF-32*) | |
6708 | HPUX_IA64_MODE=32 | |
6709 | ;; | |
6710 | *ELF-64*) | |
6711 | HPUX_IA64_MODE=64 | |
6712 | ;; | |
6713 | esac | |
6714 | fi | |
6715 | rm -rf conftest* | |
6716 | ;; | |
6717 | *-*-irix6*) | |
6718 | # Find out what ABI is being produced by ac_compile, and set linker | |
6719 | # options accordingly. | |
6720 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6721 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6722 | (eval $ac_compile) 2>&5 | |
6723 | ac_status=$? | |
6724 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6725 | test $ac_status = 0; }; then | |
6726 | if test yes = "$lt_cv_prog_gnu_ld"; then | |
6727 | case `/usr/bin/file conftest.$ac_objext` in | |
6728 | *32-bit*) | |
6729 | LD="${LD-ld} -melf32bsmip" | |
6730 | ;; | |
6731 | *N32*) | |
6732 | LD="${LD-ld} -melf32bmipn32" | |
6733 | ;; | |
6734 | *64-bit*) | |
6735 | LD="${LD-ld} -melf64bmip" | |
6736 | ;; | |
6737 | esac | |
6738 | else | |
6739 | case `/usr/bin/file conftest.$ac_objext` in | |
6740 | *32-bit*) | |
6741 | LD="${LD-ld} -32" | |
6742 | ;; | |
6743 | *N32*) | |
6744 | LD="${LD-ld} -n32" | |
6745 | ;; | |
6746 | *64-bit*) | |
6747 | LD="${LD-ld} -64" | |
6748 | ;; | |
6749 | esac | |
6750 | fi | |
6751 | fi | |
6752 | rm -rf conftest* | |
6753 | ;; | |
6754 | ||
6755 | mips64*-*linux*) | |
6756 | # Find out what ABI is being produced by ac_compile, and set linker | |
6757 | # options accordingly. | |
6758 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6759 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6760 | (eval $ac_compile) 2>&5 | |
6761 | ac_status=$? | |
6762 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6763 | test $ac_status = 0; }; then | |
6764 | emul=elf | |
6765 | case `/usr/bin/file conftest.$ac_objext` in | |
6766 | *32-bit*) | |
6767 | emul="${emul}32" | |
6768 | ;; | |
6769 | *64-bit*) | |
6770 | emul="${emul}64" | |
6771 | ;; | |
6772 | esac | |
6773 | case `/usr/bin/file conftest.$ac_objext` in | |
6774 | *MSB*) | |
6775 | emul="${emul}btsmip" | |
6776 | ;; | |
6777 | *LSB*) | |
6778 | emul="${emul}ltsmip" | |
6779 | ;; | |
6780 | esac | |
6781 | case `/usr/bin/file conftest.$ac_objext` in | |
6782 | *N32*) | |
6783 | emul="${emul}n32" | |
6784 | ;; | |
6785 | esac | |
6786 | LD="${LD-ld} -m $emul" | |
6787 | fi | |
6788 | rm -rf conftest* | |
6789 | ;; | |
6790 | ||
6791 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
6792 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6793 | # Find out what ABI is being produced by ac_compile, and set linker | |
6794 | # options accordingly. Note that the listed cases only cover the | |
6795 | # situations where additional linker options are needed (such as when | |
6796 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
6797 | # vice versa); the common cases where no linker options are needed do | |
6798 | # not appear in the list. | |
6799 | echo 'int i;' > conftest.$ac_ext | |
6800 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6801 | (eval $ac_compile) 2>&5 | |
6802 | ac_status=$? | |
6803 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6804 | test $ac_status = 0; }; then | |
6805 | case `/usr/bin/file conftest.o` in | |
6806 | *32-bit*) | |
6807 | case $host in | |
6808 | x86_64-*kfreebsd*-gnu) | |
6809 | LD="${LD-ld} -m elf_i386_fbsd" | |
6810 | ;; | |
6811 | x86_64-*linux*) | |
6812 | case `/usr/bin/file conftest.o` in | |
6813 | *x86-64*) | |
6814 | LD="${LD-ld} -m elf32_x86_64" | |
6815 | ;; | |
6816 | *) | |
6817 | LD="${LD-ld} -m elf_i386" | |
6818 | ;; | |
6819 | esac | |
6820 | ;; | |
6821 | powerpc64le-*linux*) | |
6822 | LD="${LD-ld} -m elf32lppclinux" | |
6823 | ;; | |
6824 | powerpc64-*linux*) | |
6825 | LD="${LD-ld} -m elf32ppclinux" | |
6826 | ;; | |
6827 | s390x-*linux*) | |
6828 | LD="${LD-ld} -m elf_s390" | |
6829 | ;; | |
6830 | sparc64-*linux*) | |
6831 | LD="${LD-ld} -m elf32_sparc" | |
6832 | ;; | |
6833 | esac | |
6834 | ;; | |
6835 | *64-bit*) | |
6836 | case $host in | |
6837 | x86_64-*kfreebsd*-gnu) | |
6838 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6839 | ;; | |
6840 | x86_64-*linux*) | |
6841 | LD="${LD-ld} -m elf_x86_64" | |
6842 | ;; | |
6843 | powerpcle-*linux*) | |
6844 | LD="${LD-ld} -m elf64lppc" | |
6845 | ;; | |
6846 | powerpc-*linux*) | |
6847 | LD="${LD-ld} -m elf64ppc" | |
6848 | ;; | |
6849 | s390*-*linux*|s390*-*tpf*) | |
6850 | LD="${LD-ld} -m elf64_s390" | |
6851 | ;; | |
6852 | sparc*-*linux*) | |
6853 | LD="${LD-ld} -m elf64_sparc" | |
6854 | ;; | |
6855 | esac | |
6856 | ;; | |
6857 | esac | |
6858 | fi | |
6859 | rm -rf conftest* | |
6860 | ;; | |
6861 | ||
6862 | *-*-sco3.2v5*) | |
6863 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6864 | SAVE_CFLAGS=$CFLAGS | |
6865 | CFLAGS="$CFLAGS -belf" | |
6866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
6867 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6868 | if ${lt_cv_cc_needs_belf+:} false; then : | |
6869 | $as_echo_n "(cached) " >&6 | |
6870 | else | |
6871 | ac_ext=c | |
6872 | ac_cpp='$CPP $CPPFLAGS' | |
6873 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6874 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6875 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6876 | ||
6877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6878 | /* end confdefs.h. */ | |
6879 | ||
6880 | int | |
6881 | main () | |
6882 | { | |
6883 | ||
6884 | ; | |
6885 | return 0; | |
6886 | } | |
6887 | _ACEOF | |
6888 | if ac_fn_c_try_link "$LINENO"; then : | |
6889 | lt_cv_cc_needs_belf=yes | |
6890 | else | |
6891 | lt_cv_cc_needs_belf=no | |
6892 | fi | |
6893 | rm -f core conftest.err conftest.$ac_objext \ | |
6894 | conftest$ac_exeext conftest.$ac_ext | |
6895 | ac_ext=c | |
6896 | ac_cpp='$CPP $CPPFLAGS' | |
6897 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6898 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6899 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6900 | ||
6901 | fi | |
6902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
6903 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6904 | if test yes != "$lt_cv_cc_needs_belf"; then | |
6905 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6906 | CFLAGS=$SAVE_CFLAGS | |
6907 | fi | |
6908 | ;; | |
6909 | *-*solaris*) | |
6910 | # Find out what ABI is being produced by ac_compile, and set linker | |
6911 | # options accordingly. | |
6912 | echo 'int i;' > conftest.$ac_ext | |
6913 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6914 | (eval $ac_compile) 2>&5 | |
6915 | ac_status=$? | |
6916 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6917 | test $ac_status = 0; }; then | |
6918 | case `/usr/bin/file conftest.o` in | |
6919 | *64-bit*) | |
6920 | case $lt_cv_prog_gnu_ld in | |
6921 | yes*) | |
6922 | case $host in | |
6923 | i?86-*-solaris*|x86_64-*-solaris*) | |
6924 | LD="${LD-ld} -m elf_x86_64" | |
6925 | ;; | |
6926 | sparc*-*-solaris*) | |
6927 | LD="${LD-ld} -m elf64_sparc" | |
6928 | ;; | |
6929 | esac | |
6930 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
6931 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
6932 | LD=${LD-ld}_sol2 | |
6933 | fi | |
6934 | ;; | |
6935 | *) | |
6936 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6937 | LD="${LD-ld} -64" | |
6938 | fi | |
6939 | ;; | |
6940 | esac | |
6941 | ;; | |
6942 | esac | |
6943 | fi | |
6944 | rm -rf conftest* | |
6945 | ;; | |
6946 | esac | |
6947 | ||
6948 | need_locks=$enable_libtool_lock | |
6949 | ||
6950 | if test -n "$ac_tool_prefix"; then | |
6951 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
6952 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
6953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6954 | $as_echo_n "checking for $ac_word... " >&6; } | |
6955 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
6956 | $as_echo_n "(cached) " >&6 | |
6957 | else | |
6958 | if test -n "$MANIFEST_TOOL"; then | |
6959 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
6960 | else | |
6961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6962 | for as_dir in $PATH | |
6963 | do | |
6964 | IFS=$as_save_IFS | |
6965 | test -z "$as_dir" && as_dir=. | |
6966 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6967 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6968 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
6969 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6970 | break 2 | |
6971 | fi | |
6972 | done | |
6973 | done | |
6974 | IFS=$as_save_IFS | |
6975 | ||
6976 | fi | |
6977 | fi | |
6978 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
6979 | if test -n "$MANIFEST_TOOL"; then | |
6980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
6981 | $as_echo "$MANIFEST_TOOL" >&6; } | |
6982 | else | |
6983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6984 | $as_echo "no" >&6; } | |
6985 | fi | |
6986 | ||
6987 | ||
6988 | fi | |
6989 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
6990 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
6991 | # Extract the first word of "mt", so it can be a program name with args. | |
6992 | set dummy mt; ac_word=$2 | |
6993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6994 | $as_echo_n "checking for $ac_word... " >&6; } | |
6995 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
6996 | $as_echo_n "(cached) " >&6 | |
6997 | else | |
6998 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6999 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7000 | else | |
7001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7002 | for as_dir in $PATH | |
7003 | do | |
7004 | IFS=$as_save_IFS | |
7005 | test -z "$as_dir" && as_dir=. | |
7006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7007 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7008 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7010 | break 2 | |
7011 | fi | |
7012 | done | |
7013 | done | |
7014 | IFS=$as_save_IFS | |
7015 | ||
7016 | fi | |
7017 | fi | |
7018 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7019 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7021 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7022 | else | |
7023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7024 | $as_echo "no" >&6; } | |
7025 | fi | |
7026 | ||
7027 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
7028 | MANIFEST_TOOL=":" | |
7029 | else | |
7030 | case $cross_compiling:$ac_tool_warned in | |
7031 | yes:) | |
7032 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7033 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7034 | ac_tool_warned=yes ;; | |
7035 | esac | |
7036 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7037 | fi | |
7038 | else | |
7039 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7040 | fi | |
7041 | ||
7042 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
7043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7044 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7045 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7046 | $as_echo_n "(cached) " >&6 | |
7047 | else | |
7048 | lt_cv_path_mainfest_tool=no | |
7049 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7050 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7051 | cat conftest.err >&5 | |
7052 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7053 | lt_cv_path_mainfest_tool=yes | |
7054 | fi | |
7055 | rm -f conftest* | |
7056 | fi | |
7057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7058 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
7059 | if test yes != "$lt_cv_path_mainfest_tool"; then | |
7060 | MANIFEST_TOOL=: | |
7061 | fi | |
7062 | ||
7063 | ||
7064 | ||
7065 | ||
7066 | ||
7067 | ||
7068 | case $host_os in | |
7069 | rhapsody* | darwin*) | |
7070 | if test -n "$ac_tool_prefix"; then | |
7071 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7072 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7074 | $as_echo_n "checking for $ac_word... " >&6; } | |
7075 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7076 | $as_echo_n "(cached) " >&6 | |
7077 | else | |
7078 | if test -n "$DSYMUTIL"; then | |
7079 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7080 | else | |
7081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7082 | for as_dir in $PATH | |
7083 | do | |
7084 | IFS=$as_save_IFS | |
7085 | test -z "$as_dir" && as_dir=. | |
7086 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7087 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7088 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7090 | break 2 | |
7091 | fi | |
7092 | done | |
7093 | done | |
7094 | IFS=$as_save_IFS | |
7095 | ||
7096 | fi | |
7097 | fi | |
7098 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7099 | if test -n "$DSYMUTIL"; then | |
7100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7101 | $as_echo "$DSYMUTIL" >&6; } | |
7102 | else | |
7103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7104 | $as_echo "no" >&6; } | |
7105 | fi | |
7106 | ||
7107 | ||
7108 | fi | |
7109 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7110 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7111 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7112 | set dummy dsymutil; ac_word=$2 | |
7113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7114 | $as_echo_n "checking for $ac_word... " >&6; } | |
7115 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
7116 | $as_echo_n "(cached) " >&6 | |
7117 | else | |
7118 | if test -n "$ac_ct_DSYMUTIL"; then | |
7119 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7120 | else | |
7121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7122 | for as_dir in $PATH | |
7123 | do | |
7124 | IFS=$as_save_IFS | |
7125 | test -z "$as_dir" && as_dir=. | |
7126 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7127 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7128 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7129 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7130 | break 2 | |
7131 | fi | |
7132 | done | |
7133 | done | |
7134 | IFS=$as_save_IFS | |
7135 | ||
7136 | fi | |
7137 | fi | |
7138 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7139 | if test -n "$ac_ct_DSYMUTIL"; then | |
7140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7141 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7142 | else | |
7143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7144 | $as_echo "no" >&6; } | |
7145 | fi | |
7146 | ||
7147 | if test "x$ac_ct_DSYMUTIL" = x; then | |
7148 | DSYMUTIL=":" | |
7149 | else | |
7150 | case $cross_compiling:$ac_tool_warned in | |
7151 | yes:) | |
7152 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7153 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7154 | ac_tool_warned=yes ;; | |
7155 | esac | |
7156 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7157 | fi | |
7158 | else | |
7159 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7160 | fi | |
7161 | ||
7162 | if test -n "$ac_tool_prefix"; then | |
7163 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7164 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7166 | $as_echo_n "checking for $ac_word... " >&6; } | |
7167 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
7168 | $as_echo_n "(cached) " >&6 | |
7169 | else | |
7170 | if test -n "$NMEDIT"; then | |
7171 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7172 | else | |
7173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7174 | for as_dir in $PATH | |
7175 | do | |
7176 | IFS=$as_save_IFS | |
7177 | test -z "$as_dir" && as_dir=. | |
7178 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7179 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7180 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7182 | break 2 | |
7183 | fi | |
7184 | done | |
7185 | done | |
7186 | IFS=$as_save_IFS | |
7187 | ||
7188 | fi | |
7189 | fi | |
7190 | NMEDIT=$ac_cv_prog_NMEDIT | |
7191 | if test -n "$NMEDIT"; then | |
7192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7193 | $as_echo "$NMEDIT" >&6; } | |
7194 | else | |
7195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7196 | $as_echo "no" >&6; } | |
7197 | fi | |
7198 | ||
7199 | ||
7200 | fi | |
7201 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7202 | ac_ct_NMEDIT=$NMEDIT | |
7203 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7204 | set dummy nmedit; ac_word=$2 | |
7205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7206 | $as_echo_n "checking for $ac_word... " >&6; } | |
7207 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
7208 | $as_echo_n "(cached) " >&6 | |
7209 | else | |
7210 | if test -n "$ac_ct_NMEDIT"; then | |
7211 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7212 | else | |
7213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7214 | for as_dir in $PATH | |
7215 | do | |
7216 | IFS=$as_save_IFS | |
7217 | test -z "$as_dir" && as_dir=. | |
7218 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7219 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7220 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7221 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7222 | break 2 | |
7223 | fi | |
7224 | done | |
7225 | done | |
7226 | IFS=$as_save_IFS | |
7227 | ||
7228 | fi | |
7229 | fi | |
7230 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7231 | if test -n "$ac_ct_NMEDIT"; then | |
7232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7233 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
7234 | else | |
7235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7236 | $as_echo "no" >&6; } | |
7237 | fi | |
7238 | ||
7239 | if test "x$ac_ct_NMEDIT" = x; then | |
7240 | NMEDIT=":" | |
7241 | else | |
7242 | case $cross_compiling:$ac_tool_warned in | |
7243 | yes:) | |
7244 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7245 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7246 | ac_tool_warned=yes ;; | |
7247 | esac | |
7248 | NMEDIT=$ac_ct_NMEDIT | |
7249 | fi | |
7250 | else | |
7251 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7252 | fi | |
7253 | ||
7254 | if test -n "$ac_tool_prefix"; then | |
7255 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7256 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7258 | $as_echo_n "checking for $ac_word... " >&6; } | |
7259 | if ${ac_cv_prog_LIPO+:} false; then : | |
7260 | $as_echo_n "(cached) " >&6 | |
7261 | else | |
7262 | if test -n "$LIPO"; then | |
7263 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7264 | else | |
7265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7266 | for as_dir in $PATH | |
7267 | do | |
7268 | IFS=$as_save_IFS | |
7269 | test -z "$as_dir" && as_dir=. | |
7270 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7271 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7272 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7273 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7274 | break 2 | |
7275 | fi | |
7276 | done | |
7277 | done | |
7278 | IFS=$as_save_IFS | |
7279 | ||
7280 | fi | |
7281 | fi | |
7282 | LIPO=$ac_cv_prog_LIPO | |
7283 | if test -n "$LIPO"; then | |
7284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7285 | $as_echo "$LIPO" >&6; } | |
7286 | else | |
7287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7288 | $as_echo "no" >&6; } | |
7289 | fi | |
7290 | ||
7291 | ||
7292 | fi | |
7293 | if test -z "$ac_cv_prog_LIPO"; then | |
7294 | ac_ct_LIPO=$LIPO | |
7295 | # Extract the first word of "lipo", so it can be a program name with args. | |
7296 | set dummy lipo; ac_word=$2 | |
7297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7298 | $as_echo_n "checking for $ac_word... " >&6; } | |
7299 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
7300 | $as_echo_n "(cached) " >&6 | |
7301 | else | |
7302 | if test -n "$ac_ct_LIPO"; then | |
7303 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7304 | else | |
7305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7306 | for as_dir in $PATH | |
7307 | do | |
7308 | IFS=$as_save_IFS | |
7309 | test -z "$as_dir" && as_dir=. | |
7310 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7311 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7312 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7313 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7314 | break 2 | |
7315 | fi | |
7316 | done | |
7317 | done | |
7318 | IFS=$as_save_IFS | |
7319 | ||
7320 | fi | |
7321 | fi | |
7322 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7323 | if test -n "$ac_ct_LIPO"; then | |
7324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7325 | $as_echo "$ac_ct_LIPO" >&6; } | |
7326 | else | |
7327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7328 | $as_echo "no" >&6; } | |
7329 | fi | |
7330 | ||
7331 | if test "x$ac_ct_LIPO" = x; then | |
7332 | LIPO=":" | |
7333 | else | |
7334 | case $cross_compiling:$ac_tool_warned in | |
7335 | yes:) | |
7336 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7337 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7338 | ac_tool_warned=yes ;; | |
7339 | esac | |
7340 | LIPO=$ac_ct_LIPO | |
7341 | fi | |
7342 | else | |
7343 | LIPO="$ac_cv_prog_LIPO" | |
7344 | fi | |
7345 | ||
7346 | if test -n "$ac_tool_prefix"; then | |
7347 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7348 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7350 | $as_echo_n "checking for $ac_word... " >&6; } | |
7351 | if ${ac_cv_prog_OTOOL+:} false; then : | |
7352 | $as_echo_n "(cached) " >&6 | |
7353 | else | |
7354 | if test -n "$OTOOL"; then | |
7355 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7356 | else | |
7357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7358 | for as_dir in $PATH | |
7359 | do | |
7360 | IFS=$as_save_IFS | |
7361 | test -z "$as_dir" && as_dir=. | |
7362 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7363 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7364 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7366 | break 2 | |
7367 | fi | |
7368 | done | |
7369 | done | |
7370 | IFS=$as_save_IFS | |
7371 | ||
7372 | fi | |
7373 | fi | |
7374 | OTOOL=$ac_cv_prog_OTOOL | |
7375 | if test -n "$OTOOL"; then | |
7376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7377 | $as_echo "$OTOOL" >&6; } | |
7378 | else | |
7379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7380 | $as_echo "no" >&6; } | |
7381 | fi | |
7382 | ||
7383 | ||
7384 | fi | |
7385 | if test -z "$ac_cv_prog_OTOOL"; then | |
7386 | ac_ct_OTOOL=$OTOOL | |
7387 | # Extract the first word of "otool", so it can be a program name with args. | |
7388 | set dummy otool; ac_word=$2 | |
7389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7390 | $as_echo_n "checking for $ac_word... " >&6; } | |
7391 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
7392 | $as_echo_n "(cached) " >&6 | |
7393 | else | |
7394 | if test -n "$ac_ct_OTOOL"; then | |
7395 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7396 | else | |
7397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7398 | for as_dir in $PATH | |
7399 | do | |
7400 | IFS=$as_save_IFS | |
7401 | test -z "$as_dir" && as_dir=. | |
7402 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7403 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7404 | ac_cv_prog_ac_ct_OTOOL="otool" | |
7405 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7406 | break 2 | |
7407 | fi | |
7408 | done | |
7409 | done | |
7410 | IFS=$as_save_IFS | |
7411 | ||
7412 | fi | |
7413 | fi | |
7414 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7415 | if test -n "$ac_ct_OTOOL"; then | |
7416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7417 | $as_echo "$ac_ct_OTOOL" >&6; } | |
7418 | else | |
7419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7420 | $as_echo "no" >&6; } | |
7421 | fi | |
7422 | ||
7423 | if test "x$ac_ct_OTOOL" = x; then | |
7424 | OTOOL=":" | |
7425 | else | |
7426 | case $cross_compiling:$ac_tool_warned in | |
7427 | yes:) | |
7428 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7429 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7430 | ac_tool_warned=yes ;; | |
7431 | esac | |
7432 | OTOOL=$ac_ct_OTOOL | |
7433 | fi | |
7434 | else | |
7435 | OTOOL="$ac_cv_prog_OTOOL" | |
7436 | fi | |
7437 | ||
7438 | if test -n "$ac_tool_prefix"; then | |
7439 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7440 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7442 | $as_echo_n "checking for $ac_word... " >&6; } | |
7443 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
7444 | $as_echo_n "(cached) " >&6 | |
7445 | else | |
7446 | if test -n "$OTOOL64"; then | |
7447 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7448 | else | |
7449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7450 | for as_dir in $PATH | |
7451 | do | |
7452 | IFS=$as_save_IFS | |
7453 | test -z "$as_dir" && as_dir=. | |
7454 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7455 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7456 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7457 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7458 | break 2 | |
7459 | fi | |
7460 | done | |
7461 | done | |
7462 | IFS=$as_save_IFS | |
7463 | ||
7464 | fi | |
7465 | fi | |
7466 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7467 | if test -n "$OTOOL64"; then | |
7468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
7469 | $as_echo "$OTOOL64" >&6; } | |
7470 | else | |
7471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7472 | $as_echo "no" >&6; } | |
7473 | fi | |
7474 | ||
7475 | ||
7476 | fi | |
7477 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7478 | ac_ct_OTOOL64=$OTOOL64 | |
7479 | # Extract the first word of "otool64", so it can be a program name with args. | |
7480 | set dummy otool64; ac_word=$2 | |
7481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7482 | $as_echo_n "checking for $ac_word... " >&6; } | |
7483 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
7484 | $as_echo_n "(cached) " >&6 | |
7485 | else | |
7486 | if test -n "$ac_ct_OTOOL64"; then | |
7487 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7488 | else | |
7489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7490 | for as_dir in $PATH | |
7491 | do | |
7492 | IFS=$as_save_IFS | |
7493 | test -z "$as_dir" && as_dir=. | |
7494 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7495 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7496 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7497 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7498 | break 2 | |
7499 | fi | |
7500 | done | |
7501 | done | |
7502 | IFS=$as_save_IFS | |
7503 | ||
7504 | fi | |
7505 | fi | |
7506 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7507 | if test -n "$ac_ct_OTOOL64"; then | |
7508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
7509 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
7510 | else | |
7511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7512 | $as_echo "no" >&6; } | |
7513 | fi | |
7514 | ||
7515 | if test "x$ac_ct_OTOOL64" = x; then | |
7516 | OTOOL64=":" | |
7517 | else | |
7518 | case $cross_compiling:$ac_tool_warned in | |
7519 | yes:) | |
7520 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7521 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7522 | ac_tool_warned=yes ;; | |
7523 | esac | |
7524 | OTOOL64=$ac_ct_OTOOL64 | |
7525 | fi | |
7526 | else | |
7527 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7528 | fi | |
7529 | ||
7530 | ||
7531 | ||
7532 | ||
7533 | ||
7534 | ||
7535 | ||
7536 | ||
7537 | ||
7538 | ||
7539 | ||
7540 | ||
7541 | ||
7542 | ||
7543 | ||
7544 | ||
7545 | ||
7546 | ||
7547 | ||
7548 | ||
7549 | ||
7550 | ||
7551 | ||
7552 | ||
7553 | ||
7554 | ||
7555 | ||
7556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
7557 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7558 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
7559 | $as_echo_n "(cached) " >&6 | |
7560 | else | |
7561 | lt_cv_apple_cc_single_mod=no | |
7562 | if test -z "$LT_MULTI_MODULE"; then | |
7563 | # By default we will add the -single_module flag. You can override | |
7564 | # by either setting the environment variable LT_MULTI_MODULE | |
7565 | # non-empty at configure time, or by adding -multi_module to the | |
7566 | # link flags. | |
7567 | rm -rf libconftest.dylib* | |
7568 | echo "int foo(void){return 1;}" > conftest.c | |
7569 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7570 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7571 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7572 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7573 | _lt_result=$? | |
7574 | # If there is a non-empty error log, and "single_module" | |
7575 | # appears in it, assume the flag caused a linker warning | |
7576 | if test -s conftest.err && $GREP single_module conftest.err; then | |
7577 | cat conftest.err >&5 | |
7578 | # Otherwise, if the output was created with a 0 exit code from | |
7579 | # the compiler, it worked. | |
7580 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then | |
7581 | lt_cv_apple_cc_single_mod=yes | |
7582 | else | |
7583 | cat conftest.err >&5 | |
7584 | fi | |
7585 | rm -rf libconftest.dylib* | |
7586 | rm -f conftest.* | |
7587 | fi | |
7588 | fi | |
7589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
7590 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7591 | ||
7592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7593 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7594 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
7595 | $as_echo_n "(cached) " >&6 | |
7596 | else | |
7597 | lt_cv_ld_exported_symbols_list=no | |
7598 | save_LDFLAGS=$LDFLAGS | |
7599 | echo "_main" > conftest.sym | |
7600 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7602 | /* end confdefs.h. */ | |
7603 | ||
7604 | int | |
7605 | main () | |
7606 | { | |
7607 | ||
7608 | ; | |
7609 | return 0; | |
7610 | } | |
7611 | _ACEOF | |
7612 | if ac_fn_c_try_link "$LINENO"; then : | |
7613 | lt_cv_ld_exported_symbols_list=yes | |
7614 | else | |
7615 | lt_cv_ld_exported_symbols_list=no | |
7616 | fi | |
7617 | rm -f core conftest.err conftest.$ac_objext \ | |
7618 | conftest$ac_exeext conftest.$ac_ext | |
7619 | LDFLAGS=$save_LDFLAGS | |
7620 | ||
7621 | fi | |
7622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
7623 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
7624 | ||
7625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7626 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7627 | if ${lt_cv_ld_force_load+:} false; then : | |
7628 | $as_echo_n "(cached) " >&6 | |
7629 | else | |
7630 | lt_cv_ld_force_load=no | |
7631 | cat > conftest.c << _LT_EOF | |
7632 | int forced_loaded() { return 2;} | |
7633 | _LT_EOF | |
7634 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7635 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7636 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7637 | $AR cru libconftest.a conftest.o 2>&5 | |
7638 | echo "$RANLIB libconftest.a" >&5 | |
7639 | $RANLIB libconftest.a 2>&5 | |
7640 | cat > conftest.c << _LT_EOF | |
7641 | int main() { return 0;} | |
7642 | _LT_EOF | |
7643 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7644 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7645 | _lt_result=$? | |
7646 | if test -s conftest.err && $GREP force_load conftest.err; then | |
7647 | cat conftest.err >&5 | |
7648 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then | |
7649 | lt_cv_ld_force_load=yes | |
7650 | else | |
7651 | cat conftest.err >&5 | |
7652 | fi | |
7653 | rm -f conftest.err libconftest.a conftest conftest.c | |
7654 | rm -rf conftest.dSYM | |
7655 | ||
7656 | fi | |
7657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7658 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
7659 | case $host_os in | |
7660 | rhapsody* | darwin1.[012]) | |
7661 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; | |
7662 | darwin1.*) | |
7663 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
7664 | darwin*) # darwin 5.x on | |
7665 | # if running on 10.5 or later, the deployment target defaults | |
7666 | # to the OS version, if on x86, and 10.4, the deployment | |
7667 | # target defaults to 10.4. Don't you love it? | |
7668 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7669 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7670 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | |
7671 | 10.[012][,.]*) | |
7672 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
7673 | 10.*) | |
7674 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | |
7675 | esac | |
7676 | ;; | |
7677 | esac | |
7678 | if test yes = "$lt_cv_apple_cc_single_mod"; then | |
7679 | _lt_dar_single_mod='$single_module' | |
7680 | fi | |
7681 | if test yes = "$lt_cv_ld_exported_symbols_list"; then | |
7682 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
7683 | else | |
7684 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' | |
7685 | fi | |
7686 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then | |
7687 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7688 | else | |
7689 | _lt_dsymutil= | |
7690 | fi | |
7691 | ;; | |
7692 | esac | |
7693 | ||
7694 | # func_munge_path_list VARIABLE PATH | |
7695 | # ----------------------------------- | |
7696 | # VARIABLE is name of variable containing _space_ separated list of | |
7697 | # directories to be munged by the contents of PATH, which is string | |
7698 | # having a format: | |
7699 | # "DIR[:DIR]:" | |
7700 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
7701 | # ":DIR[:DIR]" | |
7702 | # string "DIR[ DIR]" will be appended to VARIABLE | |
7703 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
7704 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
7705 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
7706 | # "DIR[:DIR]" | |
7707 | # VARIABLE will be replaced by "DIR[ DIR]" | |
7708 | func_munge_path_list () | |
7709 | { | |
7710 | case x$2 in | |
7711 | x) | |
7712 | ;; | |
7713 | *:) | |
7714 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
7715 | ;; | |
7716 | x:*) | |
7717 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
7718 | ;; | |
7719 | *::*) | |
7720 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
7721 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
7722 | ;; | |
7723 | *) | |
7724 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
7725 | ;; | |
7726 | esac | |
7727 | } | |
7728 | ||
7729 | ac_ext=c | |
7730 | ac_cpp='$CPP $CPPFLAGS' | |
7731 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7732 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7733 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
7735 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7736 | # On Suns, sometimes $CPP names a directory. | |
7737 | if test -n "$CPP" && test -d "$CPP"; then | |
7738 | CPP= | |
7739 | fi | |
7740 | if test -z "$CPP"; then | |
7741 | if ${ac_cv_prog_CPP+:} false; then : | |
7742 | $as_echo_n "(cached) " >&6 | |
7743 | else | |
7744 | # Double quotes because CPP needs to be expanded | |
7745 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7746 | do | |
7747 | ac_preproc_ok=false | |
7748 | for ac_c_preproc_warn_flag in '' yes | |
7749 | do | |
7750 | # Use a header file that comes with gcc, so configuring glibc | |
7751 | # with a fresh cross-compiler works. | |
7752 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7753 | # <limits.h> exists even on freestanding compilers. | |
7754 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7755 | # not just through cpp. "Syntax error" is here to catch this case. | |
7756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7757 | /* end confdefs.h. */ | |
7758 | #ifdef __STDC__ | |
7759 | # include <limits.h> | |
7760 | #else | |
7761 | # include <assert.h> | |
7762 | #endif | |
7763 | Syntax error | |
7764 | _ACEOF | |
7765 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7766 | ||
7767 | else | |
7768 | # Broken: fails on valid input. | |
7769 | continue | |
7770 | fi | |
7771 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7772 | ||
7773 | # OK, works on sane cases. Now check whether nonexistent headers | |
7774 | # can be detected and how. | |
7775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7776 | /* end confdefs.h. */ | |
7777 | #include <ac_nonexistent.h> | |
7778 | _ACEOF | |
7779 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7780 | # Broken: success on invalid input. | |
7781 | continue | |
7782 | else | |
7783 | # Passes both tests. | |
7784 | ac_preproc_ok=: | |
7785 | break | |
7786 | fi | |
7787 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7788 | ||
7789 | done | |
7790 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7791 | rm -f conftest.i conftest.err conftest.$ac_ext | |
7792 | if $ac_preproc_ok; then : | |
7793 | break | |
7794 | fi | |
7795 | ||
7796 | done | |
7797 | ac_cv_prog_CPP=$CPP | |
7798 | ||
7799 | fi | |
7800 | CPP=$ac_cv_prog_CPP | |
7801 | else | |
7802 | ac_cv_prog_CPP=$CPP | |
7803 | fi | |
7804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
7805 | $as_echo "$CPP" >&6; } | |
7806 | ac_preproc_ok=false | |
7807 | for ac_c_preproc_warn_flag in '' yes | |
7808 | do | |
7809 | # Use a header file that comes with gcc, so configuring glibc | |
7810 | # with a fresh cross-compiler works. | |
7811 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7812 | # <limits.h> exists even on freestanding compilers. | |
7813 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7814 | # not just through cpp. "Syntax error" is here to catch this case. | |
7815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7816 | /* end confdefs.h. */ | |
7817 | #ifdef __STDC__ | |
7818 | # include <limits.h> | |
7819 | #else | |
7820 | # include <assert.h> | |
7821 | #endif | |
7822 | Syntax error | |
7823 | _ACEOF | |
7824 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7825 | ||
7826 | else | |
7827 | # Broken: fails on valid input. | |
7828 | continue | |
7829 | fi | |
7830 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7831 | ||
7832 | # OK, works on sane cases. Now check whether nonexistent headers | |
7833 | # can be detected and how. | |
7834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7835 | /* end confdefs.h. */ | |
7836 | #include <ac_nonexistent.h> | |
7837 | _ACEOF | |
7838 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7839 | # Broken: success on invalid input. | |
7840 | continue | |
7841 | else | |
7842 | # Passes both tests. | |
7843 | ac_preproc_ok=: | |
7844 | break | |
7845 | fi | |
7846 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7847 | ||
7848 | done | |
7849 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7850 | rm -f conftest.i conftest.err conftest.$ac_ext | |
7851 | if $ac_preproc_ok; then : | |
7852 | ||
7853 | else | |
7854 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7855 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7856 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
7857 | See \`config.log' for more details" "$LINENO" 5; } | |
7858 | fi | |
7859 | ||
7860 | ac_ext=c | |
7861 | ac_cpp='$CPP $CPPFLAGS' | |
7862 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7863 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7864 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7865 | ||
7866 | ||
7867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
7868 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7869 | if ${ac_cv_header_stdc+:} false; then : | |
7870 | $as_echo_n "(cached) " >&6 | |
7871 | else | |
7872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7873 | /* end confdefs.h. */ | |
7874 | #include <stdlib.h> | |
7875 | #include <stdarg.h> | |
7876 | #include <string.h> | |
7877 | #include <float.h> | |
7878 | ||
7879 | int | |
7880 | main () | |
7881 | { | |
7882 | ||
7883 | ; | |
7884 | return 0; | |
7885 | } | |
7886 | _ACEOF | |
7887 | if ac_fn_c_try_compile "$LINENO"; then : | |
7888 | ac_cv_header_stdc=yes | |
7889 | else | |
7890 | ac_cv_header_stdc=no | |
7891 | fi | |
7892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7893 | ||
7894 | if test $ac_cv_header_stdc = yes; then | |
7895 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7897 | /* end confdefs.h. */ | |
7898 | #include <string.h> | |
7899 | ||
7900 | _ACEOF | |
7901 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7902 | $EGREP "memchr" >/dev/null 2>&1; then : | |
7903 | ||
7904 | else | |
7905 | ac_cv_header_stdc=no | |
7906 | fi | |
7907 | rm -f conftest* | |
7908 | ||
7909 | fi | |
7910 | ||
7911 | if test $ac_cv_header_stdc = yes; then | |
7912 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7914 | /* end confdefs.h. */ | |
7915 | #include <stdlib.h> | |
7916 | ||
7917 | _ACEOF | |
7918 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7919 | $EGREP "free" >/dev/null 2>&1; then : | |
7920 | ||
7921 | else | |
7922 | ac_cv_header_stdc=no | |
7923 | fi | |
7924 | rm -f conftest* | |
7925 | ||
7926 | fi | |
7927 | ||
7928 | if test $ac_cv_header_stdc = yes; then | |
7929 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7930 | if test "$cross_compiling" = yes; then : | |
7931 | : | |
7932 | else | |
7933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7934 | /* end confdefs.h. */ | |
7935 | #include <ctype.h> | |
7936 | #include <stdlib.h> | |
7937 | #if ((' ' & 0x0FF) == 0x020) | |
7938 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7939 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7940 | #else | |
7941 | # define ISLOWER(c) \ | |
7942 | (('a' <= (c) && (c) <= 'i') \ | |
7943 | || ('j' <= (c) && (c) <= 'r') \ | |
7944 | || ('s' <= (c) && (c) <= 'z')) | |
7945 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7946 | #endif | |
7947 | ||
7948 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7949 | int | |
7950 | main () | |
7951 | { | |
7952 | int i; | |
7953 | for (i = 0; i < 256; i++) | |
7954 | if (XOR (islower (i), ISLOWER (i)) | |
7955 | || toupper (i) != TOUPPER (i)) | |
7956 | return 2; | |
7957 | return 0; | |
7958 | } | |
7959 | _ACEOF | |
7960 | if ac_fn_c_try_run "$LINENO"; then : | |
7961 | ||
7962 | else | |
7963 | ac_cv_header_stdc=no | |
7964 | fi | |
7965 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7966 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7967 | fi | |
7968 | ||
7969 | fi | |
7970 | fi | |
7971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
7972 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7973 | if test $ac_cv_header_stdc = yes; then | |
7974 | ||
7975 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
7976 | ||
7977 | fi | |
7978 | ||
7979 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
7980 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
7981 | inttypes.h stdint.h unistd.h | |
7982 | do : | |
7983 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7984 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7985 | " | |
7986 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
7987 | cat >>confdefs.h <<_ACEOF | |
7988 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7989 | _ACEOF | |
7990 | ||
7991 | fi | |
7992 | ||
7993 | done | |
7994 | ||
7995 | ||
7996 | for ac_header in dlfcn.h | |
7997 | do : | |
7998 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7999 | " | |
8000 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8001 | cat >>confdefs.h <<_ACEOF | |
8002 | #define HAVE_DLFCN_H 1 | |
8003 | _ACEOF | |
8004 | ||
8005 | fi | |
8006 | ||
8007 | done | |
8008 | ||
8009 | ||
8010 | ||
8011 | ||
8012 | ||
8013 | # Set options | |
8014 | ||
8015 | ||
8016 | ||
8017 | enable_dlopen=no | |
8018 | ||
8019 | ||
8020 | enable_win32_dll=no | |
8021 | ||
8022 | ||
8023 | # Check whether --enable-shared was given. | |
8024 | if test "${enable_shared+set}" = set; then : | |
8025 | enableval=$enable_shared; p=${PACKAGE-default} | |
8026 | case $enableval in | |
8027 | yes) enable_shared=yes ;; | |
8028 | no) enable_shared=no ;; | |
8029 | *) | |
8030 | enable_shared=no | |
8031 | # Look at the argument we got. We use all the common list separators. | |
8032 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
8033 | for pkg in $enableval; do | |
8034 | IFS=$lt_save_ifs | |
8035 | if test "X$pkg" = "X$p"; then | |
8036 | enable_shared=yes | |
8037 | fi | |
8038 | done | |
8039 | IFS=$lt_save_ifs | |
8040 | ;; | |
8041 | esac | |
8042 | else | |
8043 | enable_shared=yes | |
8044 | fi | |
8045 | ||
8046 | ||
8047 | ||
8048 | ||
8049 | ||
8050 | ||
8051 | ||
8052 | ||
8053 | ||
8054 | # Check whether --enable-static was given. | |
8055 | if test "${enable_static+set}" = set; then : | |
8056 | enableval=$enable_static; p=${PACKAGE-default} | |
8057 | case $enableval in | |
8058 | yes) enable_static=yes ;; | |
8059 | no) enable_static=no ;; | |
8060 | *) | |
8061 | enable_static=no | |
8062 | # Look at the argument we got. We use all the common list separators. | |
8063 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
8064 | for pkg in $enableval; do | |
8065 | IFS=$lt_save_ifs | |
8066 | if test "X$pkg" = "X$p"; then | |
8067 | enable_static=yes | |
8068 | fi | |
8069 | done | |
8070 | IFS=$lt_save_ifs | |
8071 | ;; | |
8072 | esac | |
8073 | else | |
8074 | enable_static=yes | |
8075 | fi | |
8076 | ||
8077 | ||
8078 | ||
8079 | ||
8080 | ||
8081 | ||
8082 | ||
8083 | ||
8084 | ||
8085 | ||
8086 | # Check whether --with-pic was given. | |
8087 | if test "${with_pic+set}" = set; then : | |
8088 | withval=$with_pic; lt_p=${PACKAGE-default} | |
8089 | case $withval in | |
8090 | yes|no) pic_mode=$withval ;; | |
8091 | *) | |
8092 | pic_mode=default | |
8093 | # Look at the argument we got. We use all the common list separators. | |
8094 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
8095 | for lt_pkg in $withval; do | |
8096 | IFS=$lt_save_ifs | |
8097 | if test "X$lt_pkg" = "X$lt_p"; then | |
8098 | pic_mode=yes | |
8099 | fi | |
8100 | done | |
8101 | IFS=$lt_save_ifs | |
8102 | ;; | |
8103 | esac | |
8104 | else | |
8105 | pic_mode=default | |
8106 | fi | |
8107 | ||
8108 | ||
8109 | ||
8110 | ||
8111 | ||
8112 | ||
8113 | ||
8114 | ||
8115 | # Check whether --enable-fast-install was given. | |
8116 | if test "${enable_fast_install+set}" = set; then : | |
8117 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8118 | case $enableval in | |
8119 | yes) enable_fast_install=yes ;; | |
8120 | no) enable_fast_install=no ;; | |
8121 | *) | |
8122 | enable_fast_install=no | |
8123 | # Look at the argument we got. We use all the common list separators. | |
8124 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
8125 | for pkg in $enableval; do | |
8126 | IFS=$lt_save_ifs | |
8127 | if test "X$pkg" = "X$p"; then | |
8128 | enable_fast_install=yes | |
8129 | fi | |
8130 | done | |
8131 | IFS=$lt_save_ifs | |
8132 | ;; | |
8133 | esac | |
8134 | else | |
8135 | enable_fast_install=yes | |
8136 | fi | |
8137 | ||
8138 | ||
8139 | ||
8140 | ||
8141 | ||
8142 | ||
8143 | ||
8144 | ||
8145 | shared_archive_member_spec= | |
8146 | case $host,$enable_shared in | |
8147 | power*-*-aix[5-9]*,yes) | |
8148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
8149 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
8150 | ||
8151 | # Check whether --with-aix-soname was given. | |
8152 | if test "${with_aix_soname+set}" = set; then : | |
8153 | withval=$with_aix_soname; case $withval in | |
8154 | aix|svr4|both) | |
8155 | ;; | |
8156 | *) | |
8157 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
8158 | ;; | |
8159 | esac | |
8160 | lt_cv_with_aix_soname=$with_aix_soname | |
8161 | else | |
8162 | if ${lt_cv_with_aix_soname+:} false; then : | |
8163 | $as_echo_n "(cached) " >&6 | |
8164 | else | |
8165 | lt_cv_with_aix_soname=aix | |
8166 | fi | |
8167 | ||
8168 | with_aix_soname=$lt_cv_with_aix_soname | |
8169 | fi | |
8170 | ||
8171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
8172 | $as_echo "$with_aix_soname" >&6; } | |
8173 | if test aix != "$with_aix_soname"; then | |
8174 | # For the AIX way of multilib, we name the shared archive member | |
8175 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
8176 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
8177 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
8178 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
8179 | if test 64 = "${OBJECT_MODE-32}"; then | |
8180 | shared_archive_member_spec=shr_64 | |
8181 | else | |
8182 | shared_archive_member_spec=shr | |
8183 | fi | |
8184 | fi | |
8185 | ;; | |
8186 | *) | |
8187 | with_aix_soname=aix | |
8188 | ;; | |
8189 | esac | |
8190 | ||
8191 | ||
8192 | ||
8193 | ||
8194 | ||
8195 | ||
8196 | ||
8197 | ||
8198 | ||
8199 | ||
8200 | # This can be used to rebuild libtool when needed | |
8201 | LIBTOOL_DEPS=$ltmain | |
8202 | ||
8203 | # Always use our own libtool. | |
8204 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8205 | ||
8206 | ||
8207 | ||
8208 | ||
8209 | ||
8210 | ||
8211 | ||
8212 | ||
8213 | ||
8214 | ||
8215 | ||
8216 | ||
8217 | ||
8218 | ||
8219 | ||
8220 | ||
8221 | ||
8222 | ||
8223 | ||
8224 | ||
8225 | ||
8226 | ||
8227 | ||
8228 | ||
8229 | ||
8230 | ||
8231 | ||
8232 | ||
8233 | ||
8234 | ||
8235 | test -z "$LN_S" && LN_S="ln -s" | |
8236 | ||
8237 | ||
8238 | ||
8239 | ||
8240 | ||
8241 | ||
8242 | ||
8243 | ||
8244 | ||
8245 | ||
8246 | ||
8247 | ||
8248 | ||
8249 | ||
8250 | if test -n "${ZSH_VERSION+set}"; then | |
8251 | setopt NO_GLOB_SUBST | |
8252 | fi | |
8253 | ||
8254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
8255 | $as_echo_n "checking for objdir... " >&6; } | |
8256 | if ${lt_cv_objdir+:} false; then : | |
8257 | $as_echo_n "(cached) " >&6 | |
8258 | else | |
8259 | rm -f .libs 2>/dev/null | |
8260 | mkdir .libs 2>/dev/null | |
8261 | if test -d .libs; then | |
8262 | lt_cv_objdir=.libs | |
8263 | else | |
8264 | # MS-DOS does not allow filenames that begin with a dot. | |
8265 | lt_cv_objdir=_libs | |
8266 | fi | |
8267 | rmdir .libs 2>/dev/null | |
8268 | fi | |
8269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8270 | $as_echo "$lt_cv_objdir" >&6; } | |
8271 | objdir=$lt_cv_objdir | |
8272 | ||
8273 | ||
8274 | ||
8275 | ||
8276 | ||
8277 | cat >>confdefs.h <<_ACEOF | |
8278 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8279 | _ACEOF | |
8280 | ||
8281 | ||
8282 | ||
8283 | ||
8284 | case $host_os in | |
8285 | aix3*) | |
8286 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8287 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8288 | # vanish in a puff of smoke. | |
8289 | if test set != "${COLLECT_NAMES+set}"; then | |
8290 | COLLECT_NAMES= | |
8291 | export COLLECT_NAMES | |
8292 | fi | |
8293 | ;; | |
8294 | esac | |
8295 | ||
8296 | # Global variables: | |
8297 | ofile=libtool | |
8298 | can_build_shared=yes | |
8299 | ||
8300 | # All known linkers require a '.a' archive for static linking (except MSVC, | |
8301 | # which needs '.lib'). | |
8302 | libext=a | |
8303 | ||
8304 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
8305 | ||
8306 | old_CC=$CC | |
8307 | old_CFLAGS=$CFLAGS | |
8308 | ||
8309 | # Set sane defaults for various variables | |
8310 | test -z "$CC" && CC=cc | |
8311 | test -z "$LTCC" && LTCC=$CC | |
8312 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8313 | test -z "$LD" && LD=ld | |
8314 | test -z "$ac_objext" && ac_objext=o | |
8315 | ||
8316 | func_cc_basename $compiler | |
8317 | cc_basename=$func_cc_basename_result | |
8318 | ||
8319 | ||
8320 | # Only perform the check for file, if the check method requires it | |
8321 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8322 | case $deplibs_check_method in | |
8323 | file_magic*) | |
8324 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8326 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8327 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8328 | $as_echo_n "(cached) " >&6 | |
8329 | else | |
8330 | case $MAGIC_CMD in | |
8331 | [\\/*] | ?:[\\/]*) | |
8332 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. | |
8333 | ;; | |
8334 | *) | |
8335 | lt_save_MAGIC_CMD=$MAGIC_CMD | |
8336 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8337 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8338 | for ac_dir in $ac_dummy; do | |
8339 | IFS=$lt_save_ifs | |
8340 | test -z "$ac_dir" && ac_dir=. | |
8341 | if test -f "$ac_dir/${ac_tool_prefix}file"; then | |
8342 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
8343 | if test -n "$file_magic_test_file"; then | |
8344 | case $deplibs_check_method in | |
8345 | "file_magic "*) | |
8346 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8347 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8348 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8349 | $EGREP "$file_magic_regex" > /dev/null; then | |
8350 | : | |
8351 | else | |
8352 | cat <<_LT_EOF 1>&2 | |
8353 | ||
8354 | *** Warning: the command libtool uses to detect shared libraries, | |
8355 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8356 | *** The result is that libtool may fail to recognize shared libraries | |
8357 | *** as such. This will affect the creation of libtool libraries that | |
8358 | *** depend on shared libraries, but programs linked with such libtool | |
8359 | *** libraries will work regardless of this problem. Nevertheless, you | |
8360 | *** may want to report the problem to your system manager and/or to | |
8361 | *** bug-libtool@gnu.org | |
8362 | ||
8363 | _LT_EOF | |
8364 | fi ;; | |
8365 | esac | |
8366 | fi | |
8367 | break | |
8368 | fi | |
8369 | done | |
8370 | IFS=$lt_save_ifs | |
8371 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8372 | ;; | |
8373 | esac | |
8374 | fi | |
8375 | ||
8376 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8377 | if test -n "$MAGIC_CMD"; then | |
8378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8379 | $as_echo "$MAGIC_CMD" >&6; } | |
8380 | else | |
8381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8382 | $as_echo "no" >&6; } | |
8383 | fi | |
8384 | ||
8385 | ||
8386 | ||
8387 | ||
8388 | ||
8389 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8390 | if test -n "$ac_tool_prefix"; then | |
8391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8392 | $as_echo_n "checking for file... " >&6; } | |
8393 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8394 | $as_echo_n "(cached) " >&6 | |
8395 | else | |
8396 | case $MAGIC_CMD in | |
8397 | [\\/*] | ?:[\\/]*) | |
8398 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. | |
8399 | ;; | |
8400 | *) | |
8401 | lt_save_MAGIC_CMD=$MAGIC_CMD | |
8402 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8403 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8404 | for ac_dir in $ac_dummy; do | |
8405 | IFS=$lt_save_ifs | |
8406 | test -z "$ac_dir" && ac_dir=. | |
8407 | if test -f "$ac_dir/file"; then | |
8408 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
8409 | if test -n "$file_magic_test_file"; then | |
8410 | case $deplibs_check_method in | |
8411 | "file_magic "*) | |
8412 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8413 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8414 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8415 | $EGREP "$file_magic_regex" > /dev/null; then | |
8416 | : | |
8417 | else | |
8418 | cat <<_LT_EOF 1>&2 | |
8419 | ||
8420 | *** Warning: the command libtool uses to detect shared libraries, | |
8421 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8422 | *** The result is that libtool may fail to recognize shared libraries | |
8423 | *** as such. This will affect the creation of libtool libraries that | |
8424 | *** depend on shared libraries, but programs linked with such libtool | |
8425 | *** libraries will work regardless of this problem. Nevertheless, you | |
8426 | *** may want to report the problem to your system manager and/or to | |
8427 | *** bug-libtool@gnu.org | |
8428 | ||
8429 | _LT_EOF | |
8430 | fi ;; | |
8431 | esac | |
8432 | fi | |
8433 | break | |
8434 | fi | |
8435 | done | |
8436 | IFS=$lt_save_ifs | |
8437 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8438 | ;; | |
8439 | esac | |
8440 | fi | |
8441 | ||
8442 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8443 | if test -n "$MAGIC_CMD"; then | |
8444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8445 | $as_echo "$MAGIC_CMD" >&6; } | |
8446 | else | |
8447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8448 | $as_echo "no" >&6; } | |
8449 | fi | |
8450 | ||
8451 | ||
8452 | else | |
8453 | MAGIC_CMD=: | |
8454 | fi | |
8455 | fi | |
8456 | ||
8457 | fi | |
8458 | ;; | |
8459 | esac | |
8460 | ||
8461 | # Use C for the default configuration in the libtool script | |
8462 | ||
8463 | lt_save_CC=$CC | |
8464 | ac_ext=c | |
8465 | ac_cpp='$CPP $CPPFLAGS' | |
8466 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8467 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8468 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8469 | ||
8470 | ||
8471 | # Source file extension for C test sources. | |
8472 | ac_ext=c | |
8473 | ||
8474 | # Object file extension for compiled C test sources. | |
8475 | objext=o | |
8476 | objext=$objext | |
8477 | ||
8478 | # Code to be used in simple compile tests | |
8479 | lt_simple_compile_test_code="int some_variable = 0;" | |
8480 | ||
8481 | # Code to be used in simple link tests | |
8482 | lt_simple_link_test_code='int main(){return(0);}' | |
8483 | ||
8484 | ||
8485 | ||
8486 | ||
8487 | ||
8488 | ||
8489 | ||
8490 | # If no C compiler was specified, use CC. | |
8491 | LTCC=${LTCC-"$CC"} | |
8492 | ||
8493 | # If no C compiler flags were specified, use CFLAGS. | |
8494 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8495 | ||
8496 | # Allow CC to be a program name with arguments. | |
8497 | compiler=$CC | |
8498 | ||
8499 | # Save the default compiler, since it gets overwritten when the other | |
8500 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8501 | compiler_DEFAULT=$CC | |
8502 | ||
8503 | # save warnings/boilerplate of simple test code | |
8504 | ac_outfile=conftest.$ac_objext | |
8505 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8506 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8507 | _lt_compiler_boilerplate=`cat conftest.err` | |
8508 | $RM conftest* | |
8509 | ||
8510 | ac_outfile=conftest.$ac_objext | |
8511 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8512 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8513 | _lt_linker_boilerplate=`cat conftest.err` | |
8514 | $RM -r conftest* | |
8515 | ||
8516 | ||
8517 | ## CAVEAT EMPTOR: | |
8518 | ## There is no encapsulation within the following macros, do not change | |
8519 | ## the running order or otherwise move them around unless you know exactly | |
8520 | ## what you are doing... | |
8521 | if test -n "$compiler"; then | |
8522 | ||
8523 | lt_prog_compiler_no_builtin_flag= | |
8524 | ||
8525 | if test yes = "$GCC"; then | |
8526 | case $cc_basename in | |
8527 | nvcc*) | |
8528 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8529 | *) | |
8530 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8531 | esac | |
8532 | ||
8533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8534 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8535 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
8536 | $as_echo_n "(cached) " >&6 | |
8537 | else | |
8538 | lt_cv_prog_compiler_rtti_exceptions=no | |
8539 | ac_outfile=conftest.$ac_objext | |
8540 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8541 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment | |
8542 | # Insert the option either (1) after the last *FLAGS variable, or | |
8543 | # (2) before a word containing "conftest.", or (3) at the end. | |
8544 | # Note that $ac_compile itself does not contain backslashes and begins | |
8545 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8546 | # The option is referenced via a variable to avoid confusing sed. | |
8547 | lt_compile=`echo "$ac_compile" | $SED \ | |
8548 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8549 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8550 | -e 's:$: $lt_compiler_flag:'` | |
8551 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8552 | (eval "$lt_compile" 2>conftest.err) | |
8553 | ac_status=$? | |
8554 | cat conftest.err >&5 | |
8555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8556 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8557 | # The compiler can only warn and ignore the option if not recognized | |
8558 | # So say no if there are warnings other than the usual output. | |
8559 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8560 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8561 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8562 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8563 | fi | |
8564 | fi | |
8565 | $RM conftest* | |
8566 | ||
8567 | fi | |
8568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8569 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8570 | ||
8571 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then | |
8572 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8573 | else | |
8574 | : | |
8575 | fi | |
8576 | ||
8577 | fi | |
8578 | ||
8579 | ||
8580 | ||
8581 | ||
8582 | ||
8583 | ||
8584 | lt_prog_compiler_wl= | |
8585 | lt_prog_compiler_pic= | |
8586 | lt_prog_compiler_static= | |
8587 | ||
8588 | ||
8589 | if test yes = "$GCC"; then | |
8590 | lt_prog_compiler_wl='-Wl,' | |
8591 | lt_prog_compiler_static='-static' | |
8592 | ||
8593 | case $host_os in | |
8594 | aix*) | |
8595 | # All AIX code is PIC. | |
8596 | if test ia64 = "$host_cpu"; then | |
8597 | # AIX 5 now supports IA64 processor | |
8598 | lt_prog_compiler_static='-Bstatic' | |
8599 | fi | |
8600 | lt_prog_compiler_pic='-fPIC' | |
8601 | ;; | |
8602 | ||
8603 | amigaos*) | |
8604 | case $host_cpu in | |
8605 | powerpc) | |
8606 | # see comment about AmigaOS4 .so support | |
8607 | lt_prog_compiler_pic='-fPIC' | |
8608 | ;; | |
8609 | m68k) | |
8610 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8611 | # adding the '-m68020' flag to GCC prevents building anything better, | |
8612 | # like '-m68040'. | |
8613 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8614 | ;; | |
8615 | esac | |
8616 | ;; | |
8617 | ||
8618 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8619 | # PIC is the default for these OSes. | |
8620 | ;; | |
8621 | ||
8622 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8623 | # This hack is so that the source file can tell whether it is being | |
8624 | # built for inclusion in a dll (and should export symbols for example). | |
8625 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8626 | # (--disable-auto-import) libraries | |
8627 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8628 | case $host_os in | |
8629 | os2*) | |
8630 | lt_prog_compiler_static='$wl-static' | |
8631 | ;; | |
8632 | esac | |
8633 | ;; | |
8634 | ||
8635 | darwin* | rhapsody*) | |
8636 | # PIC is the default on this platform | |
8637 | # Common symbols not allowed in MH_DYLIB files | |
8638 | lt_prog_compiler_pic='-fno-common' | |
8639 | ;; | |
8640 | ||
8641 | haiku*) | |
8642 | # PIC is the default for Haiku. | |
8643 | # The "-static" flag exists, but is broken. | |
8644 | lt_prog_compiler_static= | |
8645 | ;; | |
8646 | ||
8647 | hpux*) | |
8648 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8649 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8650 | # sets the default TLS model and affects inlining. | |
8651 | case $host_cpu in | |
8652 | hppa*64*) | |
8653 | # +Z the default | |
8654 | ;; | |
8655 | *) | |
8656 | lt_prog_compiler_pic='-fPIC' | |
8657 | ;; | |
8658 | esac | |
8659 | ;; | |
8660 | ||
8661 | interix[3-9]*) | |
8662 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8663 | # Instead, we relocate shared libraries at runtime. | |
8664 | ;; | |
8665 | ||
8666 | msdosdjgpp*) | |
8667 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8668 | # on systems that don't support them. | |
8669 | lt_prog_compiler_can_build_shared=no | |
8670 | enable_shared=no | |
8671 | ;; | |
8672 | ||
8673 | *nto* | *qnx*) | |
8674 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8675 | # it will coredump. | |
8676 | lt_prog_compiler_pic='-fPIC -shared' | |
8677 | ;; | |
8678 | ||
8679 | sysv4*MP*) | |
8680 | if test -d /usr/nec; then | |
8681 | lt_prog_compiler_pic=-Kconform_pic | |
8682 | fi | |
8683 | ;; | |
8684 | ||
8685 | *) | |
8686 | lt_prog_compiler_pic='-fPIC' | |
8687 | ;; | |
8688 | esac | |
8689 | ||
8690 | case $cc_basename in | |
8691 | nvcc*) # Cuda Compiler Driver 2.2 | |
8692 | lt_prog_compiler_wl='-Xlinker ' | |
8693 | if test -n "$lt_prog_compiler_pic"; then | |
8694 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
8695 | fi | |
8696 | ;; | |
8697 | esac | |
8698 | else | |
8699 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8700 | case $host_os in | |
8701 | aix*) | |
8702 | lt_prog_compiler_wl='-Wl,' | |
8703 | if test ia64 = "$host_cpu"; then | |
8704 | # AIX 5 now supports IA64 processor | |
8705 | lt_prog_compiler_static='-Bstatic' | |
8706 | else | |
8707 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8708 | fi | |
8709 | ;; | |
8710 | ||
8711 | darwin* | rhapsody*) | |
8712 | # PIC is the default on this platform | |
8713 | # Common symbols not allowed in MH_DYLIB files | |
8714 | lt_prog_compiler_pic='-fno-common' | |
8715 | case $cc_basename in | |
8716 | nagfor*) | |
8717 | # NAG Fortran compiler | |
8718 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8719 | lt_prog_compiler_pic='-PIC' | |
8720 | lt_prog_compiler_static='-Bstatic' | |
8721 | ;; | |
8722 | esac | |
8723 | ;; | |
8724 | ||
8725 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8726 | # This hack is so that the source file can tell whether it is being | |
8727 | # built for inclusion in a dll (and should export symbols for example). | |
8728 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8729 | case $host_os in | |
8730 | os2*) | |
8731 | lt_prog_compiler_static='$wl-static' | |
8732 | ;; | |
8733 | esac | |
8734 | ;; | |
8735 | ||
8736 | hpux9* | hpux10* | hpux11*) | |
8737 | lt_prog_compiler_wl='-Wl,' | |
8738 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8739 | # not for PA HP-UX. | |
8740 | case $host_cpu in | |
8741 | hppa*64*|ia64*) | |
8742 | # +Z the default | |
8743 | ;; | |
8744 | *) | |
8745 | lt_prog_compiler_pic='+Z' | |
8746 | ;; | |
8747 | esac | |
8748 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8749 | lt_prog_compiler_static='$wl-a ${wl}archive' | |
8750 | ;; | |
8751 | ||
8752 | irix5* | irix6* | nonstopux*) | |
8753 | lt_prog_compiler_wl='-Wl,' | |
8754 | # PIC (with -KPIC) is the default. | |
8755 | lt_prog_compiler_static='-non_shared' | |
8756 | ;; | |
8757 | ||
8758 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
8759 | case $cc_basename in | |
8760 | # old Intel for x86_64, which still supported -KPIC. | |
8761 | ecc*) | |
8762 | lt_prog_compiler_wl='-Wl,' | |
8763 | lt_prog_compiler_pic='-KPIC' | |
8764 | lt_prog_compiler_static='-static' | |
8765 | ;; | |
8766 | # icc used to be incompatible with GCC. | |
8767 | # ICC 10 doesn't accept -KPIC any more. | |
8768 | icc* | ifort*) | |
8769 | lt_prog_compiler_wl='-Wl,' | |
8770 | lt_prog_compiler_pic='-fPIC' | |
8771 | lt_prog_compiler_static='-static' | |
8772 | ;; | |
8773 | # Lahey Fortran 8.1. | |
8774 | lf95*) | |
8775 | lt_prog_compiler_wl='-Wl,' | |
8776 | lt_prog_compiler_pic='--shared' | |
8777 | lt_prog_compiler_static='--static' | |
8778 | ;; | |
8779 | nagfor*) | |
8780 | # NAG Fortran compiler | |
8781 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8782 | lt_prog_compiler_pic='-PIC' | |
8783 | lt_prog_compiler_static='-Bstatic' | |
8784 | ;; | |
8785 | tcc*) | |
8786 | # Fabrice Bellard et al's Tiny C Compiler | |
8787 | lt_prog_compiler_wl='-Wl,' | |
8788 | lt_prog_compiler_pic='-fPIC' | |
8789 | lt_prog_compiler_static='-static' | |
8790 | ;; | |
8791 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8792 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8793 | # which looks to be a dead project) | |
8794 | lt_prog_compiler_wl='-Wl,' | |
8795 | lt_prog_compiler_pic='-fpic' | |
8796 | lt_prog_compiler_static='-Bstatic' | |
8797 | ;; | |
8798 | ccc*) | |
8799 | lt_prog_compiler_wl='-Wl,' | |
8800 | # All Alpha code is PIC. | |
8801 | lt_prog_compiler_static='-non_shared' | |
8802 | ;; | |
8803 | xl* | bgxl* | bgf* | mpixl*) | |
8804 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8805 | lt_prog_compiler_wl='-Wl,' | |
8806 | lt_prog_compiler_pic='-qpic' | |
8807 | lt_prog_compiler_static='-qstaticlink' | |
8808 | ;; | |
8809 | *) | |
8810 | case `$CC -V 2>&1 | sed 5q` in | |
8811 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
8812 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8813 | lt_prog_compiler_pic='-KPIC' | |
8814 | lt_prog_compiler_static='-Bstatic' | |
8815 | lt_prog_compiler_wl='' | |
8816 | ;; | |
8817 | *Sun\ F* | *Sun*Fortran*) | |
8818 | lt_prog_compiler_pic='-KPIC' | |
8819 | lt_prog_compiler_static='-Bstatic' | |
8820 | lt_prog_compiler_wl='-Qoption ld ' | |
8821 | ;; | |
8822 | *Sun\ C*) | |
8823 | # Sun C 5.9 | |
8824 | lt_prog_compiler_pic='-KPIC' | |
8825 | lt_prog_compiler_static='-Bstatic' | |
8826 | lt_prog_compiler_wl='-Wl,' | |
8827 | ;; | |
8828 | *Intel*\ [CF]*Compiler*) | |
8829 | lt_prog_compiler_wl='-Wl,' | |
8830 | lt_prog_compiler_pic='-fPIC' | |
8831 | lt_prog_compiler_static='-static' | |
8832 | ;; | |
8833 | *Portland\ Group*) | |
8834 | lt_prog_compiler_wl='-Wl,' | |
8835 | lt_prog_compiler_pic='-fpic' | |
8836 | lt_prog_compiler_static='-Bstatic' | |
8837 | ;; | |
8838 | esac | |
8839 | ;; | |
8840 | esac | |
8841 | ;; | |
8842 | ||
8843 | newsos6) | |
8844 | lt_prog_compiler_pic='-KPIC' | |
8845 | lt_prog_compiler_static='-Bstatic' | |
8846 | ;; | |
8847 | ||
8848 | *nto* | *qnx*) | |
8849 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8850 | # it will coredump. | |
8851 | lt_prog_compiler_pic='-fPIC -shared' | |
8852 | ;; | |
8853 | ||
8854 | osf3* | osf4* | osf5*) | |
8855 | lt_prog_compiler_wl='-Wl,' | |
8856 | # All OSF/1 code is PIC. | |
8857 | lt_prog_compiler_static='-non_shared' | |
8858 | ;; | |
8859 | ||
8860 | rdos*) | |
8861 | lt_prog_compiler_static='-non_shared' | |
8862 | ;; | |
8863 | ||
8864 | solaris*) | |
8865 | lt_prog_compiler_pic='-KPIC' | |
8866 | lt_prog_compiler_static='-Bstatic' | |
8867 | case $cc_basename in | |
8868 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
8869 | lt_prog_compiler_wl='-Qoption ld ';; | |
8870 | *) | |
8871 | lt_prog_compiler_wl='-Wl,';; | |
8872 | esac | |
8873 | ;; | |
8874 | ||
8875 | sunos4*) | |
8876 | lt_prog_compiler_wl='-Qoption ld ' | |
8877 | lt_prog_compiler_pic='-PIC' | |
8878 | lt_prog_compiler_static='-Bstatic' | |
8879 | ;; | |
8880 | ||
8881 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8882 | lt_prog_compiler_wl='-Wl,' | |
8883 | lt_prog_compiler_pic='-KPIC' | |
8884 | lt_prog_compiler_static='-Bstatic' | |
8885 | ;; | |
8886 | ||
8887 | sysv4*MP*) | |
8888 | if test -d /usr/nec; then | |
8889 | lt_prog_compiler_pic='-Kconform_pic' | |
8890 | lt_prog_compiler_static='-Bstatic' | |
8891 | fi | |
8892 | ;; | |
8893 | ||
8894 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8895 | lt_prog_compiler_wl='-Wl,' | |
8896 | lt_prog_compiler_pic='-KPIC' | |
8897 | lt_prog_compiler_static='-Bstatic' | |
8898 | ;; | |
8899 | ||
8900 | unicos*) | |
8901 | lt_prog_compiler_wl='-Wl,' | |
8902 | lt_prog_compiler_can_build_shared=no | |
8903 | ;; | |
8904 | ||
8905 | uts4*) | |
8906 | lt_prog_compiler_pic='-pic' | |
8907 | lt_prog_compiler_static='-Bstatic' | |
8908 | ;; | |
8909 | ||
8910 | *) | |
8911 | lt_prog_compiler_can_build_shared=no | |
8912 | ;; | |
8913 | esac | |
8914 | fi | |
8915 | ||
8916 | case $host_os in | |
8917 | # For platforms that do not support PIC, -DPIC is meaningless: | |
8918 | *djgpp*) | |
8919 | lt_prog_compiler_pic= | |
8920 | ;; | |
8921 | *) | |
8922 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8923 | ;; | |
8924 | esac | |
8925 | ||
8926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8927 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8928 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
8929 | $as_echo_n "(cached) " >&6 | |
8930 | else | |
8931 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8932 | fi | |
8933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8934 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8935 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
8936 | ||
8937 | # | |
8938 | # Check to make sure the PIC flag actually works. | |
8939 | # | |
8940 | if test -n "$lt_prog_compiler_pic"; then | |
8941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8942 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8943 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
8944 | $as_echo_n "(cached) " >&6 | |
8945 | else | |
8946 | lt_cv_prog_compiler_pic_works=no | |
8947 | ac_outfile=conftest.$ac_objext | |
8948 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8949 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment | |
8950 | # Insert the option either (1) after the last *FLAGS variable, or | |
8951 | # (2) before a word containing "conftest.", or (3) at the end. | |
8952 | # Note that $ac_compile itself does not contain backslashes and begins | |
8953 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8954 | # The option is referenced via a variable to avoid confusing sed. | |
8955 | lt_compile=`echo "$ac_compile" | $SED \ | |
8956 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8957 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8958 | -e 's:$: $lt_compiler_flag:'` | |
8959 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8960 | (eval "$lt_compile" 2>conftest.err) | |
8961 | ac_status=$? | |
8962 | cat conftest.err >&5 | |
8963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8964 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8965 | # The compiler can only warn and ignore the option if not recognized | |
8966 | # So say no if there are warnings other than the usual output. | |
8967 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8968 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8969 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8970 | lt_cv_prog_compiler_pic_works=yes | |
8971 | fi | |
8972 | fi | |
8973 | $RM conftest* | |
8974 | ||
8975 | fi | |
8976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8977 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8978 | ||
8979 | if test yes = "$lt_cv_prog_compiler_pic_works"; then | |
8980 | case $lt_prog_compiler_pic in | |
8981 | "" | " "*) ;; | |
8982 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8983 | esac | |
8984 | else | |
8985 | lt_prog_compiler_pic= | |
8986 | lt_prog_compiler_can_build_shared=no | |
8987 | fi | |
8988 | ||
8989 | fi | |
8990 | ||
8991 | ||
8992 | ||
8993 | ||
8994 | ||
8995 | ||
8996 | ||
8997 | ||
8998 | ||
8999 | ||
9000 | ||
9001 | # | |
9002 | # Check to make sure the static flag actually works. | |
9003 | # | |
9004 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9006 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9007 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9008 | $as_echo_n "(cached) " >&6 | |
9009 | else | |
9010 | lt_cv_prog_compiler_static_works=no | |
9011 | save_LDFLAGS=$LDFLAGS | |
9012 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9013 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9014 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9015 | # The linker can only warn and ignore the option if not recognized | |
9016 | # So say no if there are warnings | |
9017 | if test -s conftest.err; then | |
9018 | # Append any errors to the config.log. | |
9019 | cat conftest.err 1>&5 | |
9020 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9021 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9022 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9023 | lt_cv_prog_compiler_static_works=yes | |
9024 | fi | |
9025 | else | |
9026 | lt_cv_prog_compiler_static_works=yes | |
9027 | fi | |
9028 | fi | |
9029 | $RM -r conftest* | |
9030 | LDFLAGS=$save_LDFLAGS | |
9031 | ||
9032 | fi | |
9033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9034 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9035 | ||
9036 | if test yes = "$lt_cv_prog_compiler_static_works"; then | |
9037 | : | |
9038 | else | |
9039 | lt_prog_compiler_static= | |
9040 | fi | |
9041 | ||
9042 | ||
9043 | ||
9044 | ||
9045 | ||
9046 | ||
9047 | ||
9048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9049 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9050 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9051 | $as_echo_n "(cached) " >&6 | |
9052 | else | |
9053 | lt_cv_prog_compiler_c_o=no | |
9054 | $RM -r conftest 2>/dev/null | |
9055 | mkdir conftest | |
9056 | cd conftest | |
9057 | mkdir out | |
9058 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9059 | ||
9060 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9061 | # Insert the option either (1) after the last *FLAGS variable, or | |
9062 | # (2) before a word containing "conftest.", or (3) at the end. | |
9063 | # Note that $ac_compile itself does not contain backslashes and begins | |
9064 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9065 | lt_compile=`echo "$ac_compile" | $SED \ | |
9066 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9067 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9068 | -e 's:$: $lt_compiler_flag:'` | |
9069 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9070 | (eval "$lt_compile" 2>out/conftest.err) | |
9071 | ac_status=$? | |
9072 | cat out/conftest.err >&5 | |
9073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9074 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9075 | then | |
9076 | # The compiler can only warn and ignore the option if not recognized | |
9077 | # So say no if there are warnings | |
9078 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9079 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9080 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9081 | lt_cv_prog_compiler_c_o=yes | |
9082 | fi | |
9083 | fi | |
9084 | chmod u+w . 2>&5 | |
9085 | $RM conftest* | |
9086 | # SGI C++ compiler will create directory out/ii_files/ for | |
9087 | # template instantiation | |
9088 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9089 | $RM out/* && rmdir out | |
9090 | cd .. | |
9091 | $RM -r conftest | |
9092 | $RM conftest* | |
9093 | ||
9094 | fi | |
9095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9096 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9097 | ||
9098 | ||
9099 | ||
9100 | ||
9101 | ||
9102 | ||
9103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9104 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9105 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9106 | $as_echo_n "(cached) " >&6 | |
9107 | else | |
9108 | lt_cv_prog_compiler_c_o=no | |
9109 | $RM -r conftest 2>/dev/null | |
9110 | mkdir conftest | |
9111 | cd conftest | |
9112 | mkdir out | |
9113 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9114 | ||
9115 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9116 | # Insert the option either (1) after the last *FLAGS variable, or | |
9117 | # (2) before a word containing "conftest.", or (3) at the end. | |
9118 | # Note that $ac_compile itself does not contain backslashes and begins | |
9119 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9120 | lt_compile=`echo "$ac_compile" | $SED \ | |
9121 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9122 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9123 | -e 's:$: $lt_compiler_flag:'` | |
9124 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9125 | (eval "$lt_compile" 2>out/conftest.err) | |
9126 | ac_status=$? | |
9127 | cat out/conftest.err >&5 | |
9128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9129 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9130 | then | |
9131 | # The compiler can only warn and ignore the option if not recognized | |
9132 | # So say no if there are warnings | |
9133 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9134 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9135 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9136 | lt_cv_prog_compiler_c_o=yes | |
9137 | fi | |
9138 | fi | |
9139 | chmod u+w . 2>&5 | |
9140 | $RM conftest* | |
9141 | # SGI C++ compiler will create directory out/ii_files/ for | |
9142 | # template instantiation | |
9143 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9144 | $RM out/* && rmdir out | |
9145 | cd .. | |
9146 | $RM -r conftest | |
9147 | $RM conftest* | |
9148 | ||
9149 | fi | |
9150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9151 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9152 | ||
9153 | ||
9154 | ||
9155 | ||
9156 | hard_links=nottested | |
9157 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
9158 | # do not overwrite the value of need_locks provided by the user | |
9159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9160 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9161 | hard_links=yes | |
9162 | $RM conftest* | |
9163 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9164 | touch conftest.a | |
9165 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9166 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9168 | $as_echo "$hard_links" >&6; } | |
9169 | if test no = "$hard_links"; then | |
9170 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
9171 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
9172 | need_locks=warn | |
9173 | fi | |
9174 | else | |
9175 | need_locks=no | |
9176 | fi | |
9177 | ||
9178 | ||
9179 | ||
9180 | ||
9181 | ||
9182 | ||
9183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9184 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9185 | ||
9186 | runpath_var= | |
9187 | allow_undefined_flag= | |
9188 | always_export_symbols=no | |
9189 | archive_cmds= | |
9190 | archive_expsym_cmds= | |
9191 | compiler_needs_object=no | |
9192 | enable_shared_with_static_runtimes=no | |
9193 | export_dynamic_flag_spec= | |
9194 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9195 | hardcode_automatic=no | |
9196 | hardcode_direct=no | |
9197 | hardcode_direct_absolute=no | |
9198 | hardcode_libdir_flag_spec= | |
9199 | hardcode_libdir_separator= | |
9200 | hardcode_minus_L=no | |
9201 | hardcode_shlibpath_var=unsupported | |
9202 | inherit_rpath=no | |
9203 | link_all_deplibs=unknown | |
9204 | module_cmds= | |
9205 | module_expsym_cmds= | |
9206 | old_archive_from_new_cmds= | |
9207 | old_archive_from_expsyms_cmds= | |
9208 | thread_safe_flag_spec= | |
9209 | whole_archive_flag_spec= | |
9210 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9211 | # included in the symbol list | |
9212 | include_expsyms= | |
9213 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9214 | # it will be wrapped by ' (' and ')$', so one must not match beginning or | |
9215 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
9216 | # as well as any symbol that contains 'd'. | |
9217 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9218 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9219 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9220 | # the symbol is explicitly referenced. Since portable code cannot | |
9221 | # rely on this symbol name, it's probably fine to never include it in | |
9222 | # preloaded symbol tables. | |
9223 | # Exclude shared library initialization/finalization symbols. | |
9224 | extract_expsyms_cmds= | |
9225 | ||
9226 | case $host_os in | |
9227 | cygwin* | mingw* | pw32* | cegcc*) | |
9228 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9229 | # When not using gcc, we currently assume that we are using | |
9230 | # Microsoft Visual C++. | |
9231 | if test yes != "$GCC"; then | |
9232 | with_gnu_ld=no | |
9233 | fi | |
9234 | ;; | |
9235 | interix*) | |
9236 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9237 | with_gnu_ld=yes | |
9238 | ;; | |
9239 | openbsd* | bitrig*) | |
9240 | with_gnu_ld=no | |
9241 | ;; | |
9242 | linux* | k*bsd*-gnu | gnu*) | |
9243 | link_all_deplibs=no | |
9244 | ;; | |
9245 | esac | |
9246 | ||
9247 | ld_shlibs=yes | |
9248 | ||
9249 | # On some targets, GNU ld is compatible enough with the native linker | |
9250 | # that we're better off using the native interface for both. | |
9251 | lt_use_gnu_ld_interface=no | |
9252 | if test yes = "$with_gnu_ld"; then | |
9253 | case $host_os in | |
9254 | aix*) | |
9255 | # The AIX port of GNU ld has always aspired to compatibility | |
9256 | # with the native linker. However, as the warning in the GNU ld | |
9257 | # block says, versions before 2.19.5* couldn't really create working | |
9258 | # shared libraries, regardless of the interface used. | |
9259 | case `$LD -v 2>&1` in | |
9260 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9261 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9262 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9263 | *) | |
9264 | lt_use_gnu_ld_interface=yes | |
9265 | ;; | |
9266 | esac | |
9267 | ;; | |
9268 | *) | |
9269 | lt_use_gnu_ld_interface=yes | |
9270 | ;; | |
9271 | esac | |
9272 | fi | |
9273 | ||
9274 | if test yes = "$lt_use_gnu_ld_interface"; then | |
9275 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9276 | wlarc='$wl' | |
9277 | ||
9278 | # Set some defaults for GNU ld with shared library support. These | |
9279 | # are reset later if shared libraries are not supported. Putting them | |
9280 | # here allows them to be overridden if necessary. | |
9281 | runpath_var=LD_RUN_PATH | |
9282 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
9283 | export_dynamic_flag_spec='$wl--export-dynamic' | |
9284 | # ancient GNU ld didn't support --whole-archive et. al. | |
9285 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9286 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' | |
9287 | else | |
9288 | whole_archive_flag_spec= | |
9289 | fi | |
9290 | supports_anon_versioning=no | |
9291 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in | |
9292 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9293 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9294 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9295 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9296 | *\ 2.11.*) ;; # other 2.11 versions | |
9297 | *) supports_anon_versioning=yes ;; | |
9298 | esac | |
9299 | ||
9300 | # See if GNU ld supports shared libraries. | |
9301 | case $host_os in | |
9302 | aix[3-9]*) | |
9303 | # On AIX/PPC, the GNU linker is very broken | |
9304 | if test ia64 != "$host_cpu"; then | |
9305 | ld_shlibs=no | |
9306 | cat <<_LT_EOF 1>&2 | |
9307 | ||
9308 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
9309 | *** to be unable to reliably create shared libraries on AIX. | |
9310 | *** Therefore, libtool is disabling shared libraries support. If you | |
9311 | *** really care for shared libraries, you may want to install binutils | |
9312 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9313 | *** You will then need to restart the configuration process. | |
9314 | ||
9315 | _LT_EOF | |
9316 | fi | |
9317 | ;; | |
9318 | ||
9319 | amigaos*) | |
9320 | case $host_cpu in | |
9321 | powerpc) | |
9322 | # see comment about AmigaOS4 .so support | |
9323 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9324 | archive_expsym_cmds='' | |
9325 | ;; | |
9326 | m68k) | |
9327 | 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)' | |
9328 | hardcode_libdir_flag_spec='-L$libdir' | |
9329 | hardcode_minus_L=yes | |
9330 | ;; | |
9331 | esac | |
9332 | ;; | |
9333 | ||
9334 | beos*) | |
9335 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9336 | allow_undefined_flag=unsupported | |
9337 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9338 | # support --undefined. This deserves some investigation. FIXME | |
9339 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9340 | else | |
9341 | ld_shlibs=no | |
9342 | fi | |
9343 | ;; | |
9344 | ||
9345 | cygwin* | mingw* | pw32* | cegcc*) | |
9346 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9347 | # as there is no search path for DLLs. | |
9348 | hardcode_libdir_flag_spec='-L$libdir' | |
9349 | export_dynamic_flag_spec='$wl--export-all-symbols' | |
9350 | allow_undefined_flag=unsupported | |
9351 | always_export_symbols=no | |
9352 | enable_shared_with_static_runtimes=yes | |
9353 | 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' | |
9354 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9355 | ||
9356 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9357 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9358 | # If the export-symbols file already is a .def file, use it as | |
9359 | # is; otherwise, prepend EXPORTS... | |
9360 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9361 | cp $export_symbols $output_objdir/$soname.def; | |
9362 | else | |
9363 | echo EXPORTS > $output_objdir/$soname.def; | |
9364 | cat $export_symbols >> $output_objdir/$soname.def; | |
9365 | fi~ | |
9366 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9367 | else | |
9368 | ld_shlibs=no | |
9369 | fi | |
9370 | ;; | |
9371 | ||
9372 | haiku*) | |
9373 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9374 | link_all_deplibs=yes | |
9375 | ;; | |
9376 | ||
9377 | os2*) | |
9378 | hardcode_libdir_flag_spec='-L$libdir' | |
9379 | hardcode_minus_L=yes | |
9380 | allow_undefined_flag=unsupported | |
9381 | shrext_cmds=.dll | |
9382 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9383 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9384 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9385 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9386 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9387 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9388 | emximp -o $lib $output_objdir/$libname.def' | |
9389 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9390 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9391 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9392 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9393 | prefix_cmds="$SED"~ | |
9394 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9395 | prefix_cmds="$prefix_cmds -e 1d"; | |
9396 | fi~ | |
9397 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9398 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9399 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9400 | emximp -o $lib $output_objdir/$libname.def' | |
9401 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9402 | enable_shared_with_static_runtimes=yes | |
9403 | ;; | |
9404 | ||
9405 | interix[3-9]*) | |
9406 | hardcode_direct=no | |
9407 | hardcode_shlibpath_var=no | |
9408 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
9409 | export_dynamic_flag_spec='$wl-E' | |
9410 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9411 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9412 | # default) and relocated if they conflict, which is a slow very memory | |
9413 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9414 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9415 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9416 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9417 | 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' | |
9418 | ;; | |
9419 | ||
9420 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
9421 | tmp_diet=no | |
9422 | if test linux-dietlibc = "$host_os"; then | |
9423 | case $cc_basename in | |
9424 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9425 | esac | |
9426 | fi | |
9427 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9428 | && test no = "$tmp_diet" | |
9429 | then | |
9430 | tmp_addflag=' $pic_flag' | |
9431 | tmp_sharedflag='-shared' | |
9432 | case $cc_basename,$host_cpu in | |
9433 | pgcc*) # Portland Group C compiler | |
9434 | 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' | |
9435 | tmp_addflag=' $pic_flag' | |
9436 | ;; | |
9437 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9438 | # Portland Group f77 and f90 compilers | |
9439 | 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' | |
9440 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9441 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9442 | tmp_addflag=' -i_dynamic' ;; | |
9443 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9444 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9445 | ifc* | ifort*) # Intel Fortran compiler | |
9446 | tmp_addflag=' -nofor_main' ;; | |
9447 | lf95*) # Lahey Fortran 8.1 | |
9448 | whole_archive_flag_spec= | |
9449 | tmp_sharedflag='--shared' ;; | |
9450 | nagfor*) # NAGFOR 5.3 | |
9451 | tmp_sharedflag='-Wl,-shared' ;; | |
9452 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9453 | tmp_sharedflag='-qmkshrobj' | |
9454 | tmp_addflag= ;; | |
9455 | nvcc*) # Cuda Compiler Driver 2.2 | |
9456 | 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' | |
9457 | compiler_needs_object=yes | |
9458 | ;; | |
9459 | esac | |
9460 | case `$CC -V 2>&1 | sed 5q` in | |
9461 | *Sun\ C*) # Sun C 5.9 | |
9462 | 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' | |
9463 | compiler_needs_object=yes | |
9464 | tmp_sharedflag='-G' ;; | |
9465 | *Sun\ F*) # Sun Fortran 8.3 | |
9466 | tmp_sharedflag='-G' ;; | |
9467 | esac | |
9468 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9469 | ||
9470 | if test yes = "$supports_anon_versioning"; then | |
9471 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9472 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9473 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9474 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
9475 | fi | |
9476 | ||
9477 | case $cc_basename in | |
9478 | tcc*) | |
9479 | export_dynamic_flag_spec='-rdynamic' | |
9480 | ;; | |
9481 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9482 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9483 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9484 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
9485 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
9486 | if test yes = "$supports_anon_versioning"; then | |
9487 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9488 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9489 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9490 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9491 | fi | |
9492 | ;; | |
9493 | esac | |
9494 | else | |
9495 | ld_shlibs=no | |
9496 | fi | |
9497 | ;; | |
9498 | ||
9499 | netbsd* | netbsdelf*-gnu) | |
9500 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9501 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9502 | wlarc= | |
9503 | else | |
9504 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9505 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9506 | fi | |
9507 | ;; | |
9508 | ||
9509 | solaris*) | |
9510 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9511 | ld_shlibs=no | |
9512 | cat <<_LT_EOF 1>&2 | |
9513 | ||
9514 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9515 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9516 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9517 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9518 | *** your PATH or compiler configuration so that the native linker is | |
9519 | *** used, and then restart. | |
9520 | ||
9521 | _LT_EOF | |
9522 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9523 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9524 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9525 | else | |
9526 | ld_shlibs=no | |
9527 | fi | |
9528 | ;; | |
9529 | ||
9530 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9531 | case `$LD -v 2>&1` in | |
9532 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9533 | ld_shlibs=no | |
9534 | cat <<_LT_EOF 1>&2 | |
9535 | ||
9536 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot | |
9537 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9538 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9539 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9540 | *** your PATH or compiler configuration so that the native linker is | |
9541 | *** used, and then restart. | |
9542 | ||
9543 | _LT_EOF | |
9544 | ;; | |
9545 | *) | |
9546 | # For security reasons, it is highly recommended that you always | |
9547 | # use absolute paths for naming shared libraries, and exclude the | |
9548 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9549 | # requires that you compile everything twice, which is a pain. | |
9550 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9551 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
9552 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9553 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9554 | else | |
9555 | ld_shlibs=no | |
9556 | fi | |
9557 | ;; | |
9558 | esac | |
9559 | ;; | |
9560 | ||
9561 | sunos4*) | |
9562 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9563 | wlarc= | |
9564 | hardcode_direct=yes | |
9565 | hardcode_shlibpath_var=no | |
9566 | ;; | |
9567 | ||
9568 | *) | |
9569 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9570 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9571 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9572 | else | |
9573 | ld_shlibs=no | |
9574 | fi | |
9575 | ;; | |
9576 | esac | |
9577 | ||
9578 | if test no = "$ld_shlibs"; then | |
9579 | runpath_var= | |
9580 | hardcode_libdir_flag_spec= | |
9581 | export_dynamic_flag_spec= | |
9582 | whole_archive_flag_spec= | |
9583 | fi | |
9584 | else | |
9585 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9586 | case $host_os in | |
9587 | aix3*) | |
9588 | allow_undefined_flag=unsupported | |
9589 | always_export_symbols=yes | |
9590 | 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' | |
9591 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9592 | # are no directories specified by -L. | |
9593 | hardcode_minus_L=yes | |
9594 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then | |
9595 | # Neither direct hardcoding nor static linking is supported with a | |
9596 | # broken collect2. | |
9597 | hardcode_direct=unsupported | |
9598 | fi | |
9599 | ;; | |
9600 | ||
9601 | aix[4-9]*) | |
9602 | if test ia64 = "$host_cpu"; then | |
9603 | # On IA64, the linker does run time linking by default, so we don't | |
9604 | # have to do anything special. | |
9605 | aix_use_runtimelinking=no | |
9606 | exp_sym_flag='-Bexport' | |
9607 | no_entry_flag= | |
9608 | else | |
9609 | # If we're using GNU nm, then we don't want the "-C" option. | |
9610 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. | |
9611 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
9612 | # weak defined symbols like other global defined symbols, whereas | |
9613 | # GNU nm marks them as "W". | |
9614 | # While the 'weak' keyword is ignored in the Export File, we need | |
9615 | # it in the Import File for the 'aix-soname' feature, so we have | |
9616 | # to replace the "-B" option with "-P" for AIX nm. | |
9617 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9618 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' | |
9619 | else | |
9620 | export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' | |
9621 | fi | |
9622 | aix_use_runtimelinking=no | |
9623 | ||
9624 | # Test if we are trying to use run time linking or normal | |
9625 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9626 | # have runtime linking enabled, and use it for executables. | |
9627 | # For shared libraries, we enable/disable runtime linking | |
9628 | # depending on the kind of the shared library created - | |
9629 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
9630 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
9631 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
9632 | # lib.a static archive | |
9633 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
9634 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
9635 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9636 | # lib.a(lib.so.V) shared, rtl:no | |
9637 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9638 | # lib.a static archive | |
9639 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9640 | for ld_flag in $LDFLAGS; do | |
9641 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then | |
9642 | aix_use_runtimelinking=yes | |
9643 | break | |
9644 | fi | |
9645 | done | |
9646 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then | |
9647 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
9648 | # so we don't have lib.a shared libs to link our executables. | |
9649 | # We have to force runtime linking in this case. | |
9650 | aix_use_runtimelinking=yes | |
9651 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
9652 | fi | |
9653 | ;; | |
9654 | esac | |
9655 | ||
9656 | exp_sym_flag='-bexport' | |
9657 | no_entry_flag='-bnoentry' | |
9658 | fi | |
9659 | ||
9660 | # When large executables or shared objects are built, AIX ld can | |
9661 | # have problems creating the table of contents. If linking a library | |
9662 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9663 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9664 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9665 | ||
9666 | archive_cmds='' | |
9667 | hardcode_direct=yes | |
9668 | hardcode_direct_absolute=yes | |
9669 | hardcode_libdir_separator=':' | |
9670 | link_all_deplibs=yes | |
9671 | file_list_spec='$wl-f,' | |
9672 | case $with_aix_soname,$aix_use_runtimelinking in | |
9673 | aix,*) ;; # traditional, no import file | |
9674 | svr4,* | *,yes) # use import file | |
9675 | # The Import File defines what to hardcode. | |
9676 | hardcode_direct=no | |
9677 | hardcode_direct_absolute=no | |
9678 | ;; | |
9679 | esac | |
9680 | ||
9681 | if test yes = "$GCC"; then | |
9682 | case $host_os in aix4.[012]|aix4.[012].*) | |
9683 | # We only want to do this on AIX 4.2 and lower, the check | |
9684 | # below for broken collect2 doesn't work under 4.3+ | |
9685 | collect2name=`$CC -print-prog-name=collect2` | |
9686 | if test -f "$collect2name" && | |
9687 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9688 | then | |
9689 | # We have reworked collect2 | |
9690 | : | |
9691 | else | |
9692 | # We have old collect2 | |
9693 | hardcode_direct=unsupported | |
9694 | # It fails to find uninstalled libraries when the uninstalled | |
9695 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9696 | # to unsupported forces relinking | |
9697 | hardcode_minus_L=yes | |
9698 | hardcode_libdir_flag_spec='-L$libdir' | |
9699 | hardcode_libdir_separator= | |
9700 | fi | |
9701 | ;; | |
9702 | esac | |
9703 | shared_flag='-shared' | |
9704 | if test yes = "$aix_use_runtimelinking"; then | |
9705 | shared_flag="$shared_flag "'$wl-G' | |
9706 | fi | |
9707 | # Need to ensure runtime linking is disabled for the traditional | |
9708 | # shared library, or the linker may eventually find shared libraries | |
9709 | # /with/ Import File - we do not want to mix them. | |
9710 | shared_flag_aix='-shared' | |
9711 | shared_flag_svr4='-shared $wl-G' | |
9712 | else | |
9713 | # not using gcc | |
9714 | if test ia64 = "$host_cpu"; then | |
9715 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9716 | # chokes on -Wl,-G. The following line is correct: | |
9717 | shared_flag='-G' | |
9718 | else | |
9719 | if test yes = "$aix_use_runtimelinking"; then | |
9720 | shared_flag='$wl-G' | |
9721 | else | |
9722 | shared_flag='$wl-bM:SRE' | |
9723 | fi | |
9724 | shared_flag_aix='$wl-bM:SRE' | |
9725 | shared_flag_svr4='$wl-G' | |
9726 | fi | |
9727 | fi | |
9728 | ||
9729 | export_dynamic_flag_spec='$wl-bexpall' | |
9730 | # It seems that -bexpall does not export symbols beginning with | |
9731 | # underscore (_), so it is better to generate a list of symbols to export. | |
9732 | always_export_symbols=yes | |
9733 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then | |
9734 | # Warning - without using the other runtime loading flags (-brtl), | |
9735 | # -berok will link without error, but may produce a broken library. | |
9736 | allow_undefined_flag='-berok' | |
9737 | # Determine the default libpath from the value encoded in an | |
9738 | # empty executable. | |
9739 | if test set = "${lt_cv_aix_libpath+set}"; then | |
9740 | aix_libpath=$lt_cv_aix_libpath | |
9741 | else | |
9742 | if ${lt_cv_aix_libpath_+:} false; then : | |
9743 | $as_echo_n "(cached) " >&6 | |
9744 | else | |
9745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9746 | /* end confdefs.h. */ | |
9747 | ||
9748 | int | |
9749 | main () | |
9750 | { | |
9751 | ||
9752 | ; | |
9753 | return 0; | |
9754 | } | |
9755 | _ACEOF | |
9756 | if ac_fn_c_try_link "$LINENO"; then : | |
9757 | ||
9758 | lt_aix_libpath_sed=' | |
9759 | /Import File Strings/,/^$/ { | |
9760 | /^0/ { | |
9761 | s/^0 *\([^ ]*\) *$/\1/ | |
9762 | p | |
9763 | } | |
9764 | }' | |
9765 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9766 | # Check for a 64-bit object if we didn't find anything. | |
9767 | if test -z "$lt_cv_aix_libpath_"; then | |
9768 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9769 | fi | |
9770 | fi | |
9771 | rm -f core conftest.err conftest.$ac_objext \ | |
9772 | conftest$ac_exeext conftest.$ac_ext | |
9773 | if test -z "$lt_cv_aix_libpath_"; then | |
9774 | lt_cv_aix_libpath_=/usr/lib:/lib | |
9775 | fi | |
9776 | ||
9777 | fi | |
9778 | ||
9779 | aix_libpath=$lt_cv_aix_libpath_ | |
9780 | fi | |
9781 | ||
9782 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" | |
9783 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag | |
9784 | else | |
9785 | if test ia64 = "$host_cpu"; then | |
9786 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
9787 | allow_undefined_flag="-z nodefs" | |
9788 | 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" | |
9789 | else | |
9790 | # Determine the default libpath from the value encoded in an | |
9791 | # empty executable. | |
9792 | if test set = "${lt_cv_aix_libpath+set}"; then | |
9793 | aix_libpath=$lt_cv_aix_libpath | |
9794 | else | |
9795 | if ${lt_cv_aix_libpath_+:} false; then : | |
9796 | $as_echo_n "(cached) " >&6 | |
9797 | else | |
9798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9799 | /* end confdefs.h. */ | |
9800 | ||
9801 | int | |
9802 | main () | |
9803 | { | |
9804 | ||
9805 | ; | |
9806 | return 0; | |
9807 | } | |
9808 | _ACEOF | |
9809 | if ac_fn_c_try_link "$LINENO"; then : | |
9810 | ||
9811 | lt_aix_libpath_sed=' | |
9812 | /Import File Strings/,/^$/ { | |
9813 | /^0/ { | |
9814 | s/^0 *\([^ ]*\) *$/\1/ | |
9815 | p | |
9816 | } | |
9817 | }' | |
9818 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9819 | # Check for a 64-bit object if we didn't find anything. | |
9820 | if test -z "$lt_cv_aix_libpath_"; then | |
9821 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9822 | fi | |
9823 | fi | |
9824 | rm -f core conftest.err conftest.$ac_objext \ | |
9825 | conftest$ac_exeext conftest.$ac_ext | |
9826 | if test -z "$lt_cv_aix_libpath_"; then | |
9827 | lt_cv_aix_libpath_=/usr/lib:/lib | |
9828 | fi | |
9829 | ||
9830 | fi | |
9831 | ||
9832 | aix_libpath=$lt_cv_aix_libpath_ | |
9833 | fi | |
9834 | ||
9835 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" | |
9836 | # Warning - without using the other run time loading flags, | |
9837 | # -berok will link without error, but may produce a broken library. | |
9838 | no_undefined_flag=' $wl-bernotok' | |
9839 | allow_undefined_flag=' $wl-berok' | |
9840 | if test yes = "$with_gnu_ld"; then | |
9841 | # We only use this code for GNU lds that support --whole-archive. | |
9842 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' | |
9843 | else | |
9844 | # Exported symbols can be pulled into shared objects from archives | |
9845 | whole_archive_flag_spec='$convenience' | |
9846 | fi | |
9847 | archive_cmds_need_lc=yes | |
9848 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' | |
9849 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
9850 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
9851 | if test svr4 != "$with_aix_soname"; then | |
9852 | # This is similar to how AIX traditionally builds its shared libraries. | |
9853 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' | |
9854 | fi | |
9855 | if test aix != "$with_aix_soname"; then | |
9856 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' | |
9857 | else | |
9858 | # used by -dlpreopen to get the symbols | |
9859 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
9860 | fi | |
9861 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
9862 | fi | |
9863 | fi | |
9864 | ;; | |
9865 | ||
9866 | amigaos*) | |
9867 | case $host_cpu in | |
9868 | powerpc) | |
9869 | # see comment about AmigaOS4 .so support | |
9870 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9871 | archive_expsym_cmds='' | |
9872 | ;; | |
9873 | m68k) | |
9874 | 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)' | |
9875 | hardcode_libdir_flag_spec='-L$libdir' | |
9876 | hardcode_minus_L=yes | |
9877 | ;; | |
9878 | esac | |
9879 | ;; | |
9880 | ||
9881 | bsdi[45]*) | |
9882 | export_dynamic_flag_spec=-rdynamic | |
9883 | ;; | |
9884 | ||
9885 | cygwin* | mingw* | pw32* | cegcc*) | |
9886 | # When not using gcc, we currently assume that we are using | |
9887 | # Microsoft Visual C++. | |
9888 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9889 | # no search path for DLLs. | |
9890 | case $cc_basename in | |
9891 | cl*) | |
9892 | # Native MSVC | |
9893 | hardcode_libdir_flag_spec=' ' | |
9894 | allow_undefined_flag=unsupported | |
9895 | always_export_symbols=yes | |
9896 | file_list_spec='@' | |
9897 | # Tell ltmain to make .lib files, not .a files. | |
9898 | libext=lib | |
9899 | # Tell ltmain to make .dll files, not .so files. | |
9900 | shrext_cmds=.dll | |
9901 | # FIXME: Setting linknames here is a bad hack. | |
9902 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' | |
9903 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9904 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
9905 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
9906 | else | |
9907 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
9908 | fi~ | |
9909 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9910 | linknames=' | |
9911 | # The linker will not automatically build a static lib if we build a DLL. | |
9912 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9913 | enable_shared_with_static_runtimes=yes | |
9914 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
9915 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9916 | # Don't use ranlib | |
9917 | old_postinstall_cmds='chmod 644 $oldlib' | |
9918 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
9919 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
9920 | case $lt_outputfile in | |
9921 | *.exe|*.EXE) ;; | |
9922 | *) | |
9923 | lt_outputfile=$lt_outputfile.exe | |
9924 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
9925 | ;; | |
9926 | esac~ | |
9927 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
9928 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9929 | $RM "$lt_outputfile.manifest"; | |
9930 | fi' | |
9931 | ;; | |
9932 | *) | |
9933 | # Assume MSVC wrapper | |
9934 | hardcode_libdir_flag_spec=' ' | |
9935 | allow_undefined_flag=unsupported | |
9936 | # Tell ltmain to make .lib files, not .a files. | |
9937 | libext=lib | |
9938 | # Tell ltmain to make .dll files, not .so files. | |
9939 | shrext_cmds=.dll | |
9940 | # FIXME: Setting linknames here is a bad hack. | |
9941 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9942 | # The linker will automatically build a .lib file if we build a DLL. | |
9943 | old_archive_from_new_cmds='true' | |
9944 | # FIXME: Should let the user specify the lib program. | |
9945 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9946 | enable_shared_with_static_runtimes=yes | |
9947 | ;; | |
9948 | esac | |
9949 | ;; | |
9950 | ||
9951 | darwin* | rhapsody*) | |
9952 | ||
9953 | ||
9954 | archive_cmds_need_lc=no | |
9955 | hardcode_direct=no | |
9956 | hardcode_automatic=yes | |
9957 | hardcode_shlibpath_var=unsupported | |
9958 | if test yes = "$lt_cv_ld_force_load"; then | |
9959 | 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\"`' | |
9960 | ||
9961 | else | |
9962 | whole_archive_flag_spec='' | |
9963 | fi | |
9964 | link_all_deplibs=yes | |
9965 | allow_undefined_flag=$_lt_dar_allow_undefined | |
9966 | case $cc_basename in | |
9967 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; | |
9968 | *) _lt_dar_can_shared=$GCC ;; | |
9969 | esac | |
9970 | if test yes = "$_lt_dar_can_shared"; then | |
9971 | output_verbose_link_cmd=func_echo_all | |
9972 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" | |
9973 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
9974 | 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" | |
9975 | 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" | |
9976 | ||
9977 | else | |
9978 | ld_shlibs=no | |
9979 | fi | |
9980 | ||
9981 | ;; | |
9982 | ||
9983 | dgux*) | |
9984 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9985 | hardcode_libdir_flag_spec='-L$libdir' | |
9986 | hardcode_shlibpath_var=no | |
9987 | ;; | |
9988 | ||
9989 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9990 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9991 | # does not break anything, and helps significantly (at the cost of a little | |
9992 | # extra space). | |
9993 | freebsd2.2*) | |
9994 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9995 | hardcode_libdir_flag_spec='-R$libdir' | |
9996 | hardcode_direct=yes | |
9997 | hardcode_shlibpath_var=no | |
9998 | ;; | |
9999 | ||
10000 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10001 | freebsd2.*) | |
10002 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10003 | hardcode_direct=yes | |
10004 | hardcode_minus_L=yes | |
10005 | hardcode_shlibpath_var=no | |
10006 | ;; | |
10007 | ||
10008 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10009 | freebsd* | dragonfly*) | |
10010 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10011 | hardcode_libdir_flag_spec='-R$libdir' | |
10012 | hardcode_direct=yes | |
10013 | hardcode_shlibpath_var=no | |
10014 | ;; | |
10015 | ||
10016 | hpux9*) | |
10017 | if test yes = "$GCC"; then | |
10018 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
10019 | else | |
10020 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
10021 | fi | |
10022 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
10023 | hardcode_libdir_separator=: | |
10024 | hardcode_direct=yes | |
10025 | ||
10026 | # hardcode_minus_L: Not really in the search PATH, | |
10027 | # but as the default location of the library. | |
10028 | hardcode_minus_L=yes | |
10029 | export_dynamic_flag_spec='$wl-E' | |
10030 | ;; | |
10031 | ||
10032 | hpux10*) | |
10033 | if test yes,no = "$GCC,$with_gnu_ld"; then | |
10034 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10035 | else | |
10036 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10037 | fi | |
10038 | if test no = "$with_gnu_ld"; then | |
10039 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
10040 | hardcode_libdir_separator=: | |
10041 | hardcode_direct=yes | |
10042 | hardcode_direct_absolute=yes | |
10043 | export_dynamic_flag_spec='$wl-E' | |
10044 | # hardcode_minus_L: Not really in the search PATH, | |
10045 | # but as the default location of the library. | |
10046 | hardcode_minus_L=yes | |
10047 | fi | |
10048 | ;; | |
10049 | ||
10050 | hpux11*) | |
10051 | if test yes,no = "$GCC,$with_gnu_ld"; then | |
10052 | case $host_cpu in | |
10053 | hppa*64*) | |
10054 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10055 | ;; | |
10056 | ia64*) | |
10057 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10058 | ;; | |
10059 | *) | |
10060 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10061 | ;; | |
10062 | esac | |
10063 | else | |
10064 | case $host_cpu in | |
10065 | hppa*64*) | |
10066 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10067 | ;; | |
10068 | ia64*) | |
10069 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10070 | ;; | |
10071 | *) | |
10072 | ||
10073 | # Older versions of the 11.00 compiler do not understand -b yet | |
10074 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10076 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10077 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10078 | $as_echo_n "(cached) " >&6 | |
10079 | else | |
10080 | lt_cv_prog_compiler__b=no | |
10081 | save_LDFLAGS=$LDFLAGS | |
10082 | LDFLAGS="$LDFLAGS -b" | |
10083 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10084 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10085 | # The linker can only warn and ignore the option if not recognized | |
10086 | # So say no if there are warnings | |
10087 | if test -s conftest.err; then | |
10088 | # Append any errors to the config.log. | |
10089 | cat conftest.err 1>&5 | |
10090 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10091 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10092 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10093 | lt_cv_prog_compiler__b=yes | |
10094 | fi | |
10095 | else | |
10096 | lt_cv_prog_compiler__b=yes | |
10097 | fi | |
10098 | fi | |
10099 | $RM -r conftest* | |
10100 | LDFLAGS=$save_LDFLAGS | |
10101 | ||
10102 | fi | |
10103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10104 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10105 | ||
10106 | if test yes = "$lt_cv_prog_compiler__b"; then | |
10107 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10108 | else | |
10109 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10110 | fi | |
10111 | ||
10112 | ;; | |
10113 | esac | |
10114 | fi | |
10115 | if test no = "$with_gnu_ld"; then | |
10116 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
10117 | hardcode_libdir_separator=: | |
10118 | ||
10119 | case $host_cpu in | |
10120 | hppa*64*|ia64*) | |
10121 | hardcode_direct=no | |
10122 | hardcode_shlibpath_var=no | |
10123 | ;; | |
10124 | *) | |
10125 | hardcode_direct=yes | |
10126 | hardcode_direct_absolute=yes | |
10127 | export_dynamic_flag_spec='$wl-E' | |
10128 | ||
10129 | # hardcode_minus_L: Not really in the search PATH, | |
10130 | # but as the default location of the library. | |
10131 | hardcode_minus_L=yes | |
10132 | ;; | |
10133 | esac | |
10134 | fi | |
10135 | ;; | |
10136 | ||
10137 | irix5* | irix6* | nonstopux*) | |
10138 | if test yes = "$GCC"; then | |
10139 | 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' | |
10140 | # Try to use the -exported_symbol ld option, if it does not | |
10141 | # work, assume that -exports_file does not work either and | |
10142 | # implicitly export all symbols. | |
10143 | # This should be the same for all languages, so no per-tag cache variable. | |
10144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10145 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10146 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10147 | $as_echo_n "(cached) " >&6 | |
10148 | else | |
10149 | save_LDFLAGS=$LDFLAGS | |
10150 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
10151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10152 | /* end confdefs.h. */ | |
10153 | int foo (void) { return 0; } | |
10154 | _ACEOF | |
10155 | if ac_fn_c_try_link "$LINENO"; then : | |
10156 | lt_cv_irix_exported_symbol=yes | |
10157 | else | |
10158 | lt_cv_irix_exported_symbol=no | |
10159 | fi | |
10160 | rm -f core conftest.err conftest.$ac_objext \ | |
10161 | conftest$ac_exeext conftest.$ac_ext | |
10162 | LDFLAGS=$save_LDFLAGS | |
10163 | fi | |
10164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10165 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
10166 | if test yes = "$lt_cv_irix_exported_symbol"; then | |
10167 | 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' | |
10168 | fi | |
10169 | link_all_deplibs=no | |
10170 | else | |
10171 | 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' | |
10172 | 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' | |
10173 | fi | |
10174 | archive_cmds_need_lc='no' | |
10175 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10176 | hardcode_libdir_separator=: | |
10177 | inherit_rpath=yes | |
10178 | link_all_deplibs=yes | |
10179 | ;; | |
10180 | ||
10181 | linux*) | |
10182 | case $cc_basename in | |
10183 | tcc*) | |
10184 | # Fabrice Bellard et al's Tiny C Compiler | |
10185 | ld_shlibs=yes | |
10186 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10187 | ;; | |
10188 | esac | |
10189 | ;; | |
10190 | ||
10191 | netbsd* | netbsdelf*-gnu) | |
10192 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10193 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10194 | else | |
10195 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10196 | fi | |
10197 | hardcode_libdir_flag_spec='-R$libdir' | |
10198 | hardcode_direct=yes | |
10199 | hardcode_shlibpath_var=no | |
10200 | ;; | |
10201 | ||
10202 | newsos6) | |
10203 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10204 | hardcode_direct=yes | |
10205 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10206 | hardcode_libdir_separator=: | |
10207 | hardcode_shlibpath_var=no | |
10208 | ;; | |
10209 | ||
10210 | *nto* | *qnx*) | |
10211 | ;; | |
10212 | ||
10213 | openbsd* | bitrig*) | |
10214 | if test -f /usr/libexec/ld.so; then | |
10215 | hardcode_direct=yes | |
10216 | hardcode_shlibpath_var=no | |
10217 | hardcode_direct_absolute=yes | |
10218 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
10219 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10220 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' | |
10221 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
10222 | export_dynamic_flag_spec='$wl-E' | |
10223 | else | |
10224 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10225 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
10226 | fi | |
10227 | else | |
10228 | ld_shlibs=no | |
10229 | fi | |
10230 | ;; | |
10231 | ||
10232 | os2*) | |
10233 | hardcode_libdir_flag_spec='-L$libdir' | |
10234 | hardcode_minus_L=yes | |
10235 | allow_undefined_flag=unsupported | |
10236 | shrext_cmds=.dll | |
10237 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10238 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10239 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10240 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10241 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
10242 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10243 | emximp -o $lib $output_objdir/$libname.def' | |
10244 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10245 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10246 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10247 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10248 | prefix_cmds="$SED"~ | |
10249 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
10250 | prefix_cmds="$prefix_cmds -e 1d"; | |
10251 | fi~ | |
10252 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
10253 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
10254 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10255 | emximp -o $lib $output_objdir/$libname.def' | |
10256 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
10257 | enable_shared_with_static_runtimes=yes | |
10258 | ;; | |
10259 | ||
10260 | osf3*) | |
10261 | if test yes = "$GCC"; then | |
10262 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10263 | 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' | |
10264 | else | |
10265 | allow_undefined_flag=' -expect_unresolved \*' | |
10266 | 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' | |
10267 | fi | |
10268 | archive_cmds_need_lc='no' | |
10269 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10270 | hardcode_libdir_separator=: | |
10271 | ;; | |
10272 | ||
10273 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10274 | if test yes = "$GCC"; then | |
10275 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10276 | 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' | |
10277 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10278 | else | |
10279 | allow_undefined_flag=' -expect_unresolved \*' | |
10280 | 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' | |
10281 | 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~ | |
10282 | $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' | |
10283 | ||
10284 | # Both c and cxx compiler support -rpath directly | |
10285 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10286 | fi | |
10287 | archive_cmds_need_lc='no' | |
10288 | hardcode_libdir_separator=: | |
10289 | ;; | |
10290 | ||
10291 | solaris*) | |
10292 | no_undefined_flag=' -z defs' | |
10293 | if test yes = "$GCC"; then | |
10294 | wlarc='$wl' | |
10295 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10296 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10297 | $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' | |
10298 | else | |
10299 | case `$CC -V 2>&1` in | |
10300 | *"Compilers 5.0"*) | |
10301 | wlarc='' | |
10302 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10303 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10304 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10305 | ;; | |
10306 | *) | |
10307 | wlarc='$wl' | |
10308 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10309 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10310 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10311 | ;; | |
10312 | esac | |
10313 | fi | |
10314 | hardcode_libdir_flag_spec='-R$libdir' | |
10315 | hardcode_shlibpath_var=no | |
10316 | case $host_os in | |
10317 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10318 | *) | |
10319 | # The compiler driver will combine and reorder linker options, | |
10320 | # but understands '-z linker_flag'. GCC discards it without '$wl', | |
10321 | # but is careful enough not to reorder. | |
10322 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10323 | if test yes = "$GCC"; then | |
10324 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
10325 | else | |
10326 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10327 | fi | |
10328 | ;; | |
10329 | esac | |
10330 | link_all_deplibs=yes | |
10331 | ;; | |
10332 | ||
10333 | sunos4*) | |
10334 | if test sequent = "$host_vendor"; then | |
10335 | # Use $CC to link under sequent, because it throws in some extra .o | |
10336 | # files that make .init and .fini sections work. | |
10337 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10338 | else | |
10339 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10340 | fi | |
10341 | hardcode_libdir_flag_spec='-L$libdir' | |
10342 | hardcode_direct=yes | |
10343 | hardcode_minus_L=yes | |
10344 | hardcode_shlibpath_var=no | |
10345 | ;; | |
10346 | ||
10347 | sysv4) | |
10348 | case $host_vendor in | |
10349 | sni) | |
10350 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10351 | hardcode_direct=yes # is this really true??? | |
10352 | ;; | |
10353 | siemens) | |
10354 | ## LD is ld it makes a PLAMLIB | |
10355 | ## CC just makes a GrossModule. | |
10356 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10357 | reload_cmds='$CC -r -o $output$reload_objs' | |
10358 | hardcode_direct=no | |
10359 | ;; | |
10360 | motorola) | |
10361 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10362 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10363 | ;; | |
10364 | esac | |
10365 | runpath_var='LD_RUN_PATH' | |
10366 | hardcode_shlibpath_var=no | |
10367 | ;; | |
10368 | ||
10369 | sysv4.3*) | |
10370 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10371 | hardcode_shlibpath_var=no | |
10372 | export_dynamic_flag_spec='-Bexport' | |
10373 | ;; | |
10374 | ||
10375 | sysv4*MP*) | |
10376 | if test -d /usr/nec; then | |
10377 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10378 | hardcode_shlibpath_var=no | |
10379 | runpath_var=LD_RUN_PATH | |
10380 | hardcode_runpath_var=yes | |
10381 | ld_shlibs=yes | |
10382 | fi | |
10383 | ;; | |
10384 | ||
10385 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10386 | no_undefined_flag='$wl-z,text' | |
10387 | archive_cmds_need_lc=no | |
10388 | hardcode_shlibpath_var=no | |
10389 | runpath_var='LD_RUN_PATH' | |
10390 | ||
10391 | if test yes = "$GCC"; then | |
10392 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10393 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10394 | else | |
10395 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10396 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10397 | fi | |
10398 | ;; | |
10399 | ||
10400 | sysv5* | sco3.2v5* | sco5v6*) | |
10401 | # Note: We CANNOT use -z defs as we might desire, because we do not | |
10402 | # link with -lc, and that would cause any symbols used from libc to | |
10403 | # always be unresolved, which means just about no library would | |
10404 | # ever link correctly. If we're not using GNU ld we use -z text | |
10405 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10406 | # as -z defs. | |
10407 | no_undefined_flag='$wl-z,text' | |
10408 | allow_undefined_flag='$wl-z,nodefs' | |
10409 | archive_cmds_need_lc=no | |
10410 | hardcode_shlibpath_var=no | |
10411 | hardcode_libdir_flag_spec='$wl-R,$libdir' | |
10412 | hardcode_libdir_separator=':' | |
10413 | link_all_deplibs=yes | |
10414 | export_dynamic_flag_spec='$wl-Bexport' | |
10415 | runpath_var='LD_RUN_PATH' | |
10416 | ||
10417 | if test yes = "$GCC"; then | |
10418 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10419 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10420 | else | |
10421 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10422 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10423 | fi | |
10424 | ;; | |
10425 | ||
10426 | uts4*) | |
10427 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10428 | hardcode_libdir_flag_spec='-L$libdir' | |
10429 | hardcode_shlibpath_var=no | |
10430 | ;; | |
10431 | ||
10432 | *) | |
10433 | ld_shlibs=no | |
10434 | ;; | |
10435 | esac | |
10436 | ||
10437 | if test sni = "$host_vendor"; then | |
10438 | case $host in | |
10439 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10440 | export_dynamic_flag_spec='$wl-Blargedynsym' | |
10441 | ;; | |
10442 | esac | |
10443 | fi | |
10444 | fi | |
10445 | ||
10446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10447 | $as_echo "$ld_shlibs" >&6; } | |
10448 | test no = "$ld_shlibs" && can_build_shared=no | |
10449 | ||
10450 | with_gnu_ld=$with_gnu_ld | |
10451 | ||
10452 | ||
10453 | ||
10454 | ||
10455 | ||
10456 | ||
10457 | ||
10458 | ||
10459 | ||
10460 | ||
10461 | ||
10462 | ||
10463 | ||
10464 | ||
10465 | ||
10466 | # | |
10467 | # Do we need to explicitly link libc? | |
10468 | # | |
10469 | case "x$archive_cmds_need_lc" in | |
10470 | x|xyes) | |
10471 | # Assume -lc should be added | |
10472 | archive_cmds_need_lc=yes | |
10473 | ||
10474 | if test yes,yes = "$GCC,$enable_shared"; then | |
10475 | case $archive_cmds in | |
10476 | *'~'*) | |
10477 | # FIXME: we may have to deal with multi-command sequences. | |
10478 | ;; | |
10479 | '$CC '*) | |
10480 | # Test whether the compiler implicitly links with -lc since on some | |
10481 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10482 | # to ld, don't add -lc before -lgcc. | |
10483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10484 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10485 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
10486 | $as_echo_n "(cached) " >&6 | |
10487 | else | |
10488 | $RM conftest* | |
10489 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10490 | ||
10491 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10492 | (eval $ac_compile) 2>&5 | |
10493 | ac_status=$? | |
10494 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10495 | test $ac_status = 0; } 2>conftest.err; then | |
10496 | soname=conftest | |
10497 | lib=conftest | |
10498 | libobjs=conftest.$ac_objext | |
10499 | deplibs= | |
10500 | wl=$lt_prog_compiler_wl | |
10501 | pic_flag=$lt_prog_compiler_pic | |
10502 | compiler_flags=-v | |
10503 | linker_flags=-v | |
10504 | verstring= | |
10505 | output_objdir=. | |
10506 | libname=conftest | |
10507 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10508 | allow_undefined_flag= | |
10509 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10510 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10511 | ac_status=$? | |
10512 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10513 | test $ac_status = 0; } | |
10514 | then | |
10515 | lt_cv_archive_cmds_need_lc=no | |
10516 | else | |
10517 | lt_cv_archive_cmds_need_lc=yes | |
10518 | fi | |
10519 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10520 | else | |
10521 | cat conftest.err 1>&5 | |
10522 | fi | |
10523 | $RM conftest* | |
10524 | ||
10525 | fi | |
10526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10527 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10528 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10529 | ;; | |
10530 | esac | |
10531 | fi | |
10532 | ;; | |
10533 | esac | |
10534 | ||
10535 | ||
10536 | ||
10537 | ||
10538 | ||
10539 | ||
10540 | ||
10541 | ||
10542 | ||
10543 | ||
10544 | ||
10545 | ||
10546 | ||
10547 | ||
10548 | ||
10549 | ||
10550 | ||
10551 | ||
10552 | ||
10553 | ||
10554 | ||
10555 | ||
10556 | ||
10557 | ||
10558 | ||
10559 | ||
10560 | ||
10561 | ||
10562 | ||
10563 | ||
10564 | ||
10565 | ||
10566 | ||
10567 | ||
10568 | ||
10569 | ||
10570 | ||
10571 | ||
10572 | ||
10573 | ||
10574 | ||
10575 | ||
10576 | ||
10577 | ||
10578 | ||
10579 | ||
10580 | ||
10581 | ||
10582 | ||
10583 | ||
10584 | ||
10585 | ||
10586 | ||
10587 | ||
10588 | ||
10589 | ||
10590 | ||
10591 | ||
10592 | ||
10593 | ||
10594 | ||
10595 | ||
10596 | ||
10597 | ||
10598 | ||
10599 | ||
10600 | ||
10601 | ||
10602 | ||
10603 | ||
10604 | ||
10605 | ||
10606 | ||
10607 | ||
10608 | ||
10609 | ||
10610 | ||
10611 | ||
10612 | ||
10613 | ||
10614 | ||
10615 | ||
10616 | ||
10617 | ||
10618 | ||
10619 | ||
10620 | ||
10621 | ||
10622 | ||
10623 | ||
10624 | ||
10625 | ||
10626 | ||
10627 | ||
10628 | ||
10629 | ||
10630 | ||
10631 | ||
10632 | ||
10633 | ||
10634 | ||
10635 | ||
10636 | ||
10637 | ||
10638 | ||
10639 | ||
10640 | ||
10641 | ||
10642 | ||
10643 | ||
10644 | ||
10645 | ||
10646 | ||
10647 | ||
10648 | ||
10649 | ||
10650 | ||
10651 | ||
10652 | ||
10653 | ||
10654 | ||
10655 | ||
10656 | ||
10657 | ||
10658 | ||
10659 | ||
10660 | ||
10661 | ||
10662 | ||
10663 | ||
10664 | ||
10665 | ||
10666 | ||
10667 | ||
10668 | ||
10669 | ||
10670 | ||
10671 | ||
10672 | ||
10673 | ||
10674 | ||
10675 | ||
10676 | ||
10677 | ||
10678 | ||
10679 | ||
10680 | ||
10681 | ||
10682 | ||
10683 | ||
10684 | ||
10685 | ||
10686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10687 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10688 | ||
10689 | if test yes = "$GCC"; then | |
10690 | case $host_os in | |
10691 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; | |
10692 | *) lt_awk_arg='/^libraries:/' ;; | |
10693 | esac | |
10694 | case $host_os in | |
10695 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; | |
10696 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
10697 | esac | |
10698 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10699 | case $lt_search_path_spec in | |
10700 | *\;*) | |
10701 | # if the path contains ";" then we assume it to be the separator | |
10702 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10703 | # assumed that no part of a normal pathname contains ";" but that should | |
10704 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10705 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10706 | ;; | |
10707 | *) | |
10708 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10709 | ;; | |
10710 | esac | |
10711 | # Ok, now we have the path, separated by spaces, we can step through it | |
10712 | # and add multilib dir if necessary... | |
10713 | lt_tmp_lt_search_path_spec= | |
10714 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10715 | # ...but if some path component already ends with the multilib dir we assume | |
10716 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
10717 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
10718 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
10719 | lt_multi_os_dir= | |
10720 | ;; | |
10721 | esac | |
10722 | for lt_sys_path in $lt_search_path_spec; do | |
10723 | if test -d "$lt_sys_path$lt_multi_os_dir"; then | |
10724 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
10725 | elif test -n "$lt_multi_os_dir"; then | |
10726 | test -d "$lt_sys_path" && \ | |
10727 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10728 | fi | |
10729 | done | |
10730 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10731 | BEGIN {RS = " "; FS = "/|\n";} { | |
10732 | lt_foo = ""; | |
10733 | lt_count = 0; | |
10734 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10735 | if ($lt_i != "" && $lt_i != ".") { | |
10736 | if ($lt_i == "..") { | |
10737 | lt_count++; | |
10738 | } else { | |
10739 | if (lt_count == 0) { | |
10740 | lt_foo = "/" $lt_i lt_foo; | |
10741 | } else { | |
10742 | lt_count--; | |
10743 | } | |
10744 | } | |
10745 | } | |
10746 | } | |
10747 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10748 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10749 | }'` | |
10750 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10751 | # for these hosts. | |
10752 | case $host_os in | |
10753 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10754 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; | |
10755 | esac | |
10756 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10757 | else | |
10758 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10759 | fi | |
10760 | library_names_spec= | |
10761 | libname_spec='lib$name' | |
10762 | soname_spec= | |
10763 | shrext_cmds=.so | |
10764 | postinstall_cmds= | |
10765 | postuninstall_cmds= | |
10766 | finish_cmds= | |
10767 | finish_eval= | |
10768 | shlibpath_var= | |
10769 | shlibpath_overrides_runpath=unknown | |
10770 | version_type=none | |
10771 | dynamic_linker="$host_os ld.so" | |
10772 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10773 | need_lib_prefix=unknown | |
10774 | hardcode_into_libs=no | |
10775 | ||
10776 | # when you set need_version to no, make sure it does not cause -set_version | |
10777 | # flags to be left without arguments | |
10778 | need_version=unknown | |
10779 | ||
10780 | ||
10781 | ||
10782 | case $host_os in | |
10783 | aix3*) | |
10784 | version_type=linux # correct to gnu/linux during the next big refactor | |
10785 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' | |
10786 | shlibpath_var=LIBPATH | |
10787 | ||
10788 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10789 | soname_spec='$libname$release$shared_ext$major' | |
10790 | ;; | |
10791 | ||
10792 | aix[4-9]*) | |
10793 | version_type=linux # correct to gnu/linux during the next big refactor | |
10794 | need_lib_prefix=no | |
10795 | need_version=no | |
10796 | hardcode_into_libs=yes | |
10797 | if test ia64 = "$host_cpu"; then | |
10798 | # AIX 5 supports IA64 | |
10799 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' | |
10800 | shlibpath_var=LD_LIBRARY_PATH | |
10801 | else | |
10802 | # With GCC up to 2.95.x, collect2 would create an import file | |
10803 | # for dependence libraries. The import file would start with | |
10804 | # the line '#! .'. This would cause the generated library to | |
10805 | # depend on '.', always an invalid library. This was fixed in | |
10806 | # development snapshots of GCC prior to 3.0. | |
10807 | case $host_os in | |
10808 | aix4 | aix4.[01] | aix4.[01].*) | |
10809 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10810 | echo ' yes ' | |
10811 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then | |
10812 | : | |
10813 | else | |
10814 | can_build_shared=no | |
10815 | fi | |
10816 | ;; | |
10817 | esac | |
10818 | # Using Import Files as archive members, it is possible to support | |
10819 | # filename-based versioning of shared library archives on AIX. While | |
10820 | # this would work for both with and without runtime linking, it will | |
10821 | # prevent static linking of such archives. So we do filename-based | |
10822 | # shared library versioning with .so extension only, which is used | |
10823 | # when both runtime linking and shared linking is enabled. | |
10824 | # Unfortunately, runtime linking may impact performance, so we do | |
10825 | # not want this to be the default eventually. Also, we use the | |
10826 | # versioned .so libs for executables only if there is the -brtl | |
10827 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
10828 | # To allow for filename-based versioning support, we need to create | |
10829 | # libNAME.so.V as an archive file, containing: | |
10830 | # *) an Import File, referring to the versioned filename of the | |
10831 | # archive as well as the shared archive member, telling the | |
10832 | # bitwidth (32 or 64) of that shared object, and providing the | |
10833 | # list of exported symbols of that shared object, eventually | |
10834 | # decorated with the 'weak' keyword | |
10835 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
10836 | # it being seen by the linker. | |
10837 | # At run time we better use the real file rather than another symlink, | |
10838 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
10839 | ||
10840 | case $with_aix_soname,$aix_use_runtimelinking in | |
10841 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
10842 | # soname into executable. Probably we can add versioning support to | |
10843 | # collect2, so additional links can be useful in future. | |
10844 | aix,yes) # traditional libtool | |
10845 | dynamic_linker='AIX unversionable lib.so' | |
10846 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10847 | # instead of lib<name>.a to let people know that these are not | |
10848 | # typical AIX shared libraries. | |
10849 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10850 | ;; | |
10851 | aix,no) # traditional AIX only | |
10852 | dynamic_linker='AIX lib.a(lib.so.V)' | |
10853 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10854 | # and later when we are not doing run time linking. | |
10855 | library_names_spec='$libname$release.a $libname.a' | |
10856 | soname_spec='$libname$release$shared_ext$major' | |
10857 | ;; | |
10858 | svr4,*) # full svr4 only | |
10859 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
10860 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10861 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10862 | shlibpath_overrides_runpath=yes | |
10863 | ;; | |
10864 | *,yes) # both, prefer svr4 | |
10865 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
10866 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10867 | # unpreferred sharedlib libNAME.a needs extra handling | |
10868 | postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' | |
10869 | postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' | |
10870 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10871 | shlibpath_overrides_runpath=yes | |
10872 | ;; | |
10873 | *,no) # both, prefer aix | |
10874 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
10875 | library_names_spec='$libname$release.a $libname.a' | |
10876 | soname_spec='$libname$release$shared_ext$major' | |
10877 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
10878 | postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' | |
10879 | postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' | |
10880 | ;; | |
10881 | esac | |
10882 | shlibpath_var=LIBPATH | |
10883 | fi | |
10884 | ;; | |
10885 | ||
10886 | amigaos*) | |
10887 | case $host_cpu in | |
10888 | powerpc) | |
10889 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10890 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10891 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10892 | ;; | |
10893 | m68k) | |
10894 | library_names_spec='$libname.ixlibrary $libname.a' | |
10895 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10896 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' | |
10897 | ;; | |
10898 | esac | |
10899 | ;; | |
10900 | ||
10901 | beos*) | |
10902 | library_names_spec='$libname$shared_ext' | |
10903 | dynamic_linker="$host_os ld.so" | |
10904 | shlibpath_var=LIBRARY_PATH | |
10905 | ;; | |
10906 | ||
10907 | bsdi[45]*) | |
10908 | version_type=linux # correct to gnu/linux during the next big refactor | |
10909 | need_version=no | |
10910 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10911 | soname_spec='$libname$release$shared_ext$major' | |
10912 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10913 | shlibpath_var=LD_LIBRARY_PATH | |
10914 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10915 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10916 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10917 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10918 | # libtool to hard-code these into programs | |
10919 | ;; | |
10920 | ||
10921 | cygwin* | mingw* | pw32* | cegcc*) | |
10922 | version_type=windows | |
10923 | shrext_cmds=.dll | |
10924 | need_version=no | |
10925 | need_lib_prefix=no | |
10926 | ||
10927 | case $GCC,$cc_basename in | |
10928 | yes,*) | |
10929 | # gcc | |
10930 | library_names_spec='$libname.dll.a' | |
10931 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10932 | postinstall_cmds='base_file=`basename \$file`~ | |
10933 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
10934 | dldir=$destdir/`dirname \$dlpath`~ | |
10935 | test -d \$dldir || mkdir -p \$dldir~ | |
10936 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10937 | chmod a+x \$dldir/$dlname~ | |
10938 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10939 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10940 | fi' | |
10941 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10942 | dlpath=$dir/\$dldll~ | |
10943 | $RM \$dlpath' | |
10944 | shlibpath_overrides_runpath=yes | |
10945 | ||
10946 | case $host_os in | |
10947 | cygwin*) | |
10948 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10949 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
10950 | ||
10951 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
10952 | ;; | |
10953 | mingw* | cegcc*) | |
10954 | # MinGW DLLs use traditional 'lib' prefix | |
10955 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
10956 | ;; | |
10957 | pw32*) | |
10958 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10959 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
10960 | ;; | |
10961 | esac | |
10962 | dynamic_linker='Win32 ld.exe' | |
10963 | ;; | |
10964 | ||
10965 | *,cl*) | |
10966 | # Native MSVC | |
10967 | libname_spec='$name' | |
10968 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
10969 | library_names_spec='$libname.dll.lib' | |
10970 | ||
10971 | case $build_os in | |
10972 | mingw*) | |
10973 | sys_lib_search_path_spec= | |
10974 | lt_save_ifs=$IFS | |
10975 | IFS=';' | |
10976 | for lt_path in $LIB | |
10977 | do | |
10978 | IFS=$lt_save_ifs | |
10979 | # Let DOS variable expansion print the short 8.3 style file name. | |
10980 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10981 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10982 | done | |
10983 | IFS=$lt_save_ifs | |
10984 | # Convert to MSYS style. | |
10985 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10986 | ;; | |
10987 | cygwin*) | |
10988 | # Convert to unix form, then to dos form, then back to unix form | |
10989 | # but this time dos style (no spaces!) so that the unix form looks | |
10990 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
10991 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10992 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10993 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10994 | ;; | |
10995 | *) | |
10996 | sys_lib_search_path_spec=$LIB | |
10997 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10998 | # It is most probably a Windows format PATH. | |
10999 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11000 | else | |
11001 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11002 | fi | |
11003 | # FIXME: find the short name or the path components, as spaces are | |
11004 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11005 | ;; | |
11006 | esac | |
11007 | ||
11008 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11009 | postinstall_cmds='base_file=`basename \$file`~ | |
11010 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
11011 | dldir=$destdir/`dirname \$dlpath`~ | |
11012 | test -d \$dldir || mkdir -p \$dldir~ | |
11013 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11014 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11015 | dlpath=$dir/\$dldll~ | |
11016 | $RM \$dlpath' | |
11017 | shlibpath_overrides_runpath=yes | |
11018 | dynamic_linker='Win32 link.exe' | |
11019 | ;; | |
11020 | ||
11021 | *) | |
11022 | # Assume MSVC wrapper | |
11023 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' | |
11024 | dynamic_linker='Win32 ld.exe' | |
11025 | ;; | |
11026 | esac | |
11027 | # FIXME: first we should search . and the directory the executable is in | |
11028 | shlibpath_var=PATH | |
11029 | ;; | |
11030 | ||
11031 | darwin* | rhapsody*) | |
11032 | dynamic_linker="$host_os dyld" | |
11033 | version_type=darwin | |
11034 | need_lib_prefix=no | |
11035 | need_version=no | |
11036 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' | |
11037 | soname_spec='$libname$release$major$shared_ext' | |
11038 | shlibpath_overrides_runpath=yes | |
11039 | shlibpath_var=DYLD_LIBRARY_PATH | |
11040 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11041 | ||
11042 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11043 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11044 | ;; | |
11045 | ||
11046 | dgux*) | |
11047 | version_type=linux # correct to gnu/linux during the next big refactor | |
11048 | need_lib_prefix=no | |
11049 | need_version=no | |
11050 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11051 | soname_spec='$libname$release$shared_ext$major' | |
11052 | shlibpath_var=LD_LIBRARY_PATH | |
11053 | ;; | |
11054 | ||
11055 | freebsd* | dragonfly*) | |
11056 | # DragonFly does not have aout. When/if they implement a new | |
11057 | # versioning mechanism, adjust this. | |
11058 | if test -x /usr/bin/objformat; then | |
11059 | objformat=`/usr/bin/objformat` | |
11060 | else | |
11061 | case $host_os in | |
11062 | freebsd[23].*) objformat=aout ;; | |
11063 | *) objformat=elf ;; | |
11064 | esac | |
11065 | fi | |
11066 | version_type=freebsd-$objformat | |
11067 | case $version_type in | |
11068 | freebsd-elf*) | |
11069 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11070 | soname_spec='$libname$release$shared_ext$major' | |
11071 | need_version=no | |
11072 | need_lib_prefix=no | |
11073 | ;; | |
11074 | freebsd-*) | |
11075 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11076 | need_version=yes | |
11077 | ;; | |
11078 | esac | |
11079 | shlibpath_var=LD_LIBRARY_PATH | |
11080 | case $host_os in | |
11081 | freebsd2.*) | |
11082 | shlibpath_overrides_runpath=yes | |
11083 | ;; | |
11084 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11085 | shlibpath_overrides_runpath=yes | |
11086 | hardcode_into_libs=yes | |
11087 | ;; | |
11088 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11089 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11090 | shlibpath_overrides_runpath=no | |
11091 | hardcode_into_libs=yes | |
11092 | ;; | |
11093 | *) # from 4.6 on, and DragonFly | |
11094 | shlibpath_overrides_runpath=yes | |
11095 | hardcode_into_libs=yes | |
11096 | ;; | |
11097 | esac | |
11098 | ;; | |
11099 | ||
11100 | haiku*) | |
11101 | version_type=linux # correct to gnu/linux during the next big refactor | |
11102 | need_lib_prefix=no | |
11103 | need_version=no | |
11104 | dynamic_linker="$host_os runtime_loader" | |
11105 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11106 | soname_spec='$libname$release$shared_ext$major' | |
11107 | shlibpath_var=LIBRARY_PATH | |
11108 | shlibpath_overrides_runpath=no | |
11109 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
11110 | hardcode_into_libs=yes | |
11111 | ;; | |
11112 | ||
11113 | hpux9* | hpux10* | hpux11*) | |
11114 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11115 | # link against other versions. | |
11116 | version_type=sunos | |
11117 | need_lib_prefix=no | |
11118 | need_version=no | |
11119 | case $host_cpu in | |
11120 | ia64*) | |
11121 | shrext_cmds='.so' | |
11122 | hardcode_into_libs=yes | |
11123 | dynamic_linker="$host_os dld.so" | |
11124 | shlibpath_var=LD_LIBRARY_PATH | |
11125 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11126 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11127 | soname_spec='$libname$release$shared_ext$major' | |
11128 | if test 32 = "$HPUX_IA64_MODE"; then | |
11129 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11130 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 | |
11131 | else | |
11132 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11133 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 | |
11134 | fi | |
11135 | ;; | |
11136 | hppa*64*) | |
11137 | shrext_cmds='.sl' | |
11138 | hardcode_into_libs=yes | |
11139 | dynamic_linker="$host_os dld.sl" | |
11140 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11141 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11142 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11143 | soname_spec='$libname$release$shared_ext$major' | |
11144 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11145 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11146 | ;; | |
11147 | *) | |
11148 | shrext_cmds='.sl' | |
11149 | dynamic_linker="$host_os dld.sl" | |
11150 | shlibpath_var=SHLIB_PATH | |
11151 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11152 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11153 | soname_spec='$libname$release$shared_ext$major' | |
11154 | ;; | |
11155 | esac | |
11156 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11157 | postinstall_cmds='chmod 555 $lib' | |
11158 | # or fails outright, so override atomically: | |
11159 | install_override_mode=555 | |
11160 | ;; | |
11161 | ||
11162 | interix[3-9]*) | |
11163 | version_type=linux # correct to gnu/linux during the next big refactor | |
11164 | need_lib_prefix=no | |
11165 | need_version=no | |
11166 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11167 | soname_spec='$libname$release$shared_ext$major' | |
11168 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11169 | shlibpath_var=LD_LIBRARY_PATH | |
11170 | shlibpath_overrides_runpath=no | |
11171 | hardcode_into_libs=yes | |
11172 | ;; | |
11173 | ||
11174 | irix5* | irix6* | nonstopux*) | |
11175 | case $host_os in | |
11176 | nonstopux*) version_type=nonstopux ;; | |
11177 | *) | |
11178 | if test yes = "$lt_cv_prog_gnu_ld"; then | |
11179 | version_type=linux # correct to gnu/linux during the next big refactor | |
11180 | else | |
11181 | version_type=irix | |
11182 | fi ;; | |
11183 | esac | |
11184 | need_lib_prefix=no | |
11185 | need_version=no | |
11186 | soname_spec='$libname$release$shared_ext$major' | |
11187 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
11188 | case $host_os in | |
11189 | irix5* | nonstopux*) | |
11190 | libsuff= shlibsuff= | |
11191 | ;; | |
11192 | *) | |
11193 | case $LD in # libtool.m4 will add one of these switches to LD | |
11194 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11195 | libsuff= shlibsuff= libmagic=32-bit;; | |
11196 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11197 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11198 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11199 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11200 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11201 | esac | |
11202 | ;; | |
11203 | esac | |
11204 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11205 | shlibpath_overrides_runpath=no | |
11206 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" | |
11207 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
11208 | hardcode_into_libs=yes | |
11209 | ;; | |
11210 | ||
11211 | # No shared lib support for Linux oldld, aout, or coff. | |
11212 | linux*oldld* | linux*aout* | linux*coff*) | |
11213 | dynamic_linker=no | |
11214 | ;; | |
11215 | ||
11216 | linux*android*) | |
11217 | version_type=none # Android doesn't support versioned libraries. | |
11218 | need_lib_prefix=no | |
11219 | need_version=no | |
11220 | library_names_spec='$libname$release$shared_ext' | |
11221 | soname_spec='$libname$release$shared_ext' | |
11222 | finish_cmds= | |
11223 | shlibpath_var=LD_LIBRARY_PATH | |
11224 | shlibpath_overrides_runpath=yes | |
11225 | ||
11226 | # This implies no fast_install, which is unacceptable. | |
11227 | # Some rework will be needed to allow for fast_install | |
11228 | # before this can be enabled. | |
11229 | hardcode_into_libs=yes | |
11230 | ||
11231 | dynamic_linker='Android linker' | |
11232 | # Don't embed -rpath directories since the linker doesn't support them. | |
11233 | hardcode_libdir_flag_spec='-L$libdir' | |
11234 | ;; | |
11235 | ||
11236 | # This must be glibc/ELF. | |
11237 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
11238 | version_type=linux # correct to gnu/linux during the next big refactor | |
11239 | need_lib_prefix=no | |
11240 | need_version=no | |
11241 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11242 | soname_spec='$libname$release$shared_ext$major' | |
11243 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11244 | shlibpath_var=LD_LIBRARY_PATH | |
11245 | shlibpath_overrides_runpath=no | |
11246 | ||
11247 | # Some binutils ld are patched to set DT_RUNPATH | |
11248 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
11249 | $as_echo_n "(cached) " >&6 | |
11250 | else | |
11251 | lt_cv_shlibpath_overrides_runpath=no | |
11252 | save_LDFLAGS=$LDFLAGS | |
11253 | save_libdir=$libdir | |
11254 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11255 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11257 | /* end confdefs.h. */ | |
11258 | ||
11259 | int | |
11260 | main () | |
11261 | { | |
11262 | ||
11263 | ; | |
11264 | return 0; | |
11265 | } | |
11266 | _ACEOF | |
11267 | if ac_fn_c_try_link "$LINENO"; then : | |
11268 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11269 | lt_cv_shlibpath_overrides_runpath=yes | |
11270 | fi | |
11271 | fi | |
11272 | rm -f core conftest.err conftest.$ac_objext \ | |
11273 | conftest$ac_exeext conftest.$ac_ext | |
11274 | LDFLAGS=$save_LDFLAGS | |
11275 | libdir=$save_libdir | |
11276 | ||
11277 | fi | |
11278 | ||
11279 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
11280 | ||
11281 | # This implies no fast_install, which is unacceptable. | |
11282 | # Some rework will be needed to allow for fast_install | |
11283 | # before this can be enabled. | |
11284 | hardcode_into_libs=yes | |
11285 | ||
11286 | # Ideally, we could use ldconfig to report *all* directores which are | |
11287 | # searched for libraries, however this is still not possible. Aside from not | |
11288 | # being certain /sbin/ldconfig is available, command | |
11289 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
11290 | # even though it is searched at run-time. Try to do the best guess by | |
11291 | # appending ld.so.conf contents (and includes) to the search path. | |
11292 | if test -f /etc/ld.so.conf; then | |
11293 | 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' ' '` | |
11294 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11295 | fi | |
11296 | ||
11297 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11298 | # powerpc, because MkLinux only supported shared libraries with the | |
11299 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11300 | # most powerpc-linux boxes support dynamic linking these days and | |
11301 | # people can always --disable-shared, the test was removed, and we | |
11302 | # assume the GNU/Linux dynamic linker is in use. | |
11303 | dynamic_linker='GNU/Linux ld.so' | |
11304 | ;; | |
11305 | ||
11306 | netbsdelf*-gnu) | |
11307 | version_type=linux | |
11308 | need_lib_prefix=no | |
11309 | need_version=no | |
11310 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11311 | soname_spec='${libname}${release}${shared_ext}$major' | |
11312 | shlibpath_var=LD_LIBRARY_PATH | |
11313 | shlibpath_overrides_runpath=no | |
11314 | hardcode_into_libs=yes | |
11315 | dynamic_linker='NetBSD ld.elf_so' | |
11316 | ;; | |
11317 | ||
11318 | netbsd*) | |
11319 | version_type=sunos | |
11320 | need_lib_prefix=no | |
11321 | need_version=no | |
11322 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11323 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11324 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11325 | dynamic_linker='NetBSD (a.out) ld.so' | |
11326 | else | |
11327 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11328 | soname_spec='$libname$release$shared_ext$major' | |
11329 | dynamic_linker='NetBSD ld.elf_so' | |
11330 | fi | |
11331 | shlibpath_var=LD_LIBRARY_PATH | |
11332 | shlibpath_overrides_runpath=yes | |
11333 | hardcode_into_libs=yes | |
11334 | ;; | |
11335 | ||
11336 | newsos6) | |
11337 | version_type=linux # correct to gnu/linux during the next big refactor | |
11338 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11339 | shlibpath_var=LD_LIBRARY_PATH | |
11340 | shlibpath_overrides_runpath=yes | |
11341 | ;; | |
11342 | ||
11343 | *nto* | *qnx*) | |
11344 | version_type=qnx | |
11345 | need_lib_prefix=no | |
11346 | need_version=no | |
11347 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11348 | soname_spec='$libname$release$shared_ext$major' | |
11349 | shlibpath_var=LD_LIBRARY_PATH | |
11350 | shlibpath_overrides_runpath=no | |
11351 | hardcode_into_libs=yes | |
11352 | dynamic_linker='ldqnx.so' | |
11353 | ;; | |
11354 | ||
11355 | openbsd* | bitrig*) | |
11356 | version_type=sunos | |
11357 | sys_lib_dlsearch_path_spec=/usr/lib | |
11358 | need_lib_prefix=no | |
11359 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
11360 | need_version=no | |
11361 | else | |
11362 | need_version=yes | |
11363 | fi | |
11364 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11365 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11366 | shlibpath_var=LD_LIBRARY_PATH | |
11367 | shlibpath_overrides_runpath=yes | |
11368 | ;; | |
11369 | ||
11370 | os2*) | |
11371 | libname_spec='$name' | |
11372 | version_type=windows | |
11373 | shrext_cmds=.dll | |
11374 | need_version=no | |
11375 | need_lib_prefix=no | |
11376 | # OS/2 can only load a DLL with a base name of 8 characters or less. | |
11377 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
11378 | v=$($ECHO $release$versuffix | tr -d .-); | |
11379 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
11380 | $ECHO $n$v`$shared_ext' | |
11381 | library_names_spec='${libname}_dll.$libext' | |
11382 | dynamic_linker='OS/2 ld.exe' | |
11383 | shlibpath_var=BEGINLIBPATH | |
11384 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11385 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11386 | postinstall_cmds='base_file=`basename \$file`~ | |
11387 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
11388 | dldir=$destdir/`dirname \$dlpath`~ | |
11389 | test -d \$dldir || mkdir -p \$dldir~ | |
11390 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11391 | chmod a+x \$dldir/$dlname~ | |
11392 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11393 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11394 | fi' | |
11395 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
11396 | dlpath=$dir/\$dldll~ | |
11397 | $RM \$dlpath' | |
11398 | ;; | |
11399 | ||
11400 | osf3* | osf4* | osf5*) | |
11401 | version_type=osf | |
11402 | need_lib_prefix=no | |
11403 | need_version=no | |
11404 | soname_spec='$libname$release$shared_ext$major' | |
11405 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11406 | shlibpath_var=LD_LIBRARY_PATH | |
11407 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11408 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11409 | ;; | |
11410 | ||
11411 | rdos*) | |
11412 | dynamic_linker=no | |
11413 | ;; | |
11414 | ||
11415 | solaris*) | |
11416 | version_type=linux # correct to gnu/linux during the next big refactor | |
11417 | need_lib_prefix=no | |
11418 | need_version=no | |
11419 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11420 | soname_spec='$libname$release$shared_ext$major' | |
11421 | shlibpath_var=LD_LIBRARY_PATH | |
11422 | shlibpath_overrides_runpath=yes | |
11423 | hardcode_into_libs=yes | |
11424 | # ldd complains unless libraries are executable | |
11425 | postinstall_cmds='chmod +x $lib' | |
11426 | ;; | |
11427 | ||
11428 | sunos4*) | |
11429 | version_type=sunos | |
11430 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11431 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11432 | shlibpath_var=LD_LIBRARY_PATH | |
11433 | shlibpath_overrides_runpath=yes | |
11434 | if test yes = "$with_gnu_ld"; then | |
11435 | need_lib_prefix=no | |
11436 | fi | |
11437 | need_version=yes | |
11438 | ;; | |
11439 | ||
11440 | sysv4 | sysv4.3*) | |
11441 | version_type=linux # correct to gnu/linux during the next big refactor | |
11442 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11443 | soname_spec='$libname$release$shared_ext$major' | |
11444 | shlibpath_var=LD_LIBRARY_PATH | |
11445 | case $host_vendor in | |
11446 | sni) | |
11447 | shlibpath_overrides_runpath=no | |
11448 | need_lib_prefix=no | |
11449 | runpath_var=LD_RUN_PATH | |
11450 | ;; | |
11451 | siemens) | |
11452 | need_lib_prefix=no | |
11453 | ;; | |
11454 | motorola) | |
11455 | need_lib_prefix=no | |
11456 | need_version=no | |
11457 | shlibpath_overrides_runpath=no | |
11458 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11459 | ;; | |
11460 | esac | |
11461 | ;; | |
11462 | ||
11463 | sysv4*MP*) | |
11464 | if test -d /usr/nec; then | |
11465 | version_type=linux # correct to gnu/linux during the next big refactor | |
11466 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' | |
11467 | soname_spec='$libname$shared_ext.$major' | |
11468 | shlibpath_var=LD_LIBRARY_PATH | |
11469 | fi | |
11470 | ;; | |
11471 | ||
11472 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11473 | version_type=sco | |
11474 | need_lib_prefix=no | |
11475 | need_version=no | |
11476 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' | |
11477 | soname_spec='$libname$release$shared_ext$major' | |
11478 | shlibpath_var=LD_LIBRARY_PATH | |
11479 | shlibpath_overrides_runpath=yes | |
11480 | hardcode_into_libs=yes | |
11481 | if test yes = "$with_gnu_ld"; then | |
11482 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11483 | else | |
11484 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11485 | case $host_os in | |
11486 | sco3.2v5*) | |
11487 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11488 | ;; | |
11489 | esac | |
11490 | fi | |
11491 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11492 | ;; | |
11493 | ||
11494 | tpf*) | |
11495 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11496 | version_type=linux # correct to gnu/linux during the next big refactor | |
11497 | need_lib_prefix=no | |
11498 | need_version=no | |
11499 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11500 | shlibpath_var=LD_LIBRARY_PATH | |
11501 | shlibpath_overrides_runpath=no | |
11502 | hardcode_into_libs=yes | |
11503 | ;; | |
11504 | ||
11505 | uts4*) | |
11506 | version_type=linux # correct to gnu/linux during the next big refactor | |
11507 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11508 | soname_spec='$libname$release$shared_ext$major' | |
11509 | shlibpath_var=LD_LIBRARY_PATH | |
11510 | ;; | |
11511 | ||
11512 | *) | |
11513 | dynamic_linker=no | |
11514 | ;; | |
11515 | esac | |
11516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11517 | $as_echo "$dynamic_linker" >&6; } | |
11518 | test no = "$dynamic_linker" && can_build_shared=no | |
11519 | ||
11520 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11521 | if test yes = "$GCC"; then | |
11522 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11523 | fi | |
11524 | ||
11525 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then | |
11526 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
11527 | fi | |
11528 | ||
11529 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
11530 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
11531 | fi | |
11532 | ||
11533 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... | |
11534 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
11535 | ||
11536 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
11537 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
11538 | ||
11539 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
11540 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
11541 | ||
11542 | ||
11543 | ||
11544 | ||
11545 | ||
11546 | ||
11547 | ||
11548 | ||
11549 | ||
11550 | ||
11551 | ||
11552 | ||
11553 | ||
11554 | ||
11555 | ||
11556 | ||
11557 | ||
11558 | ||
11559 | ||
11560 | ||
11561 | ||
11562 | ||
11563 | ||
11564 | ||
11565 | ||
11566 | ||
11567 | ||
11568 | ||
11569 | ||
11570 | ||
11571 | ||
11572 | ||
11573 | ||
11574 | ||
11575 | ||
11576 | ||
11577 | ||
11578 | ||
11579 | ||
11580 | ||
11581 | ||
11582 | ||
11583 | ||
11584 | ||
11585 | ||
11586 | ||
11587 | ||
11588 | ||
11589 | ||
11590 | ||
11591 | ||
11592 | ||
11593 | ||
11594 | ||
11595 | ||
11596 | ||
11597 | ||
11598 | ||
11599 | ||
11600 | ||
11601 | ||
11602 | ||
11603 | ||
11604 | ||
11605 | ||
11606 | ||
11607 | ||
11608 | ||
11609 | ||
11610 | ||
11611 | ||
11612 | ||
11613 | ||
11614 | ||
11615 | ||
11616 | ||
11617 | ||
11618 | ||
11619 | ||
11620 | ||
11621 | ||
11622 | ||
11623 | ||
11624 | ||
11625 | ||
11626 | ||
11627 | ||
11628 | ||
11629 | ||
11630 | ||
11631 | ||
11632 | ||
11633 | ||
11634 | ||
11635 | ||
11636 | ||
11637 | ||
11638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11639 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11640 | hardcode_action= | |
11641 | if test -n "$hardcode_libdir_flag_spec" || | |
11642 | test -n "$runpath_var" || | |
11643 | test yes = "$hardcode_automatic"; then | |
11644 | ||
11645 | # We can hardcode non-existent directories. | |
11646 | if test no != "$hardcode_direct" && | |
11647 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11648 | # have to relink, otherwise we might link with an installed library | |
11649 | # when we should be linking with a yet-to-be-installed one | |
11650 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && | |
11651 | test no != "$hardcode_minus_L"; then | |
11652 | # Linking always hardcodes the temporary library directory. | |
11653 | hardcode_action=relink | |
11654 | else | |
11655 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11656 | hardcode_action=immediate | |
11657 | fi | |
11658 | else | |
11659 | # We cannot hardcode anything, or else we can only hardcode existing | |
11660 | # directories. | |
11661 | hardcode_action=unsupported | |
11662 | fi | |
11663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11664 | $as_echo "$hardcode_action" >&6; } | |
11665 | ||
11666 | if test relink = "$hardcode_action" || | |
11667 | test yes = "$inherit_rpath"; then | |
11668 | # Fast installation is not supported | |
11669 | enable_fast_install=no | |
11670 | elif test yes = "$shlibpath_overrides_runpath" || | |
11671 | test no = "$enable_shared"; then | |
11672 | # Fast installation is not necessary | |
11673 | enable_fast_install=needless | |
11674 | fi | |
11675 | ||
11676 | ||
11677 | ||
11678 | ||
11679 | ||
11680 | ||
11681 | if test yes != "$enable_dlopen"; then | |
11682 | enable_dlopen=unknown | |
11683 | enable_dlopen_self=unknown | |
11684 | enable_dlopen_self_static=unknown | |
11685 | else | |
11686 | lt_cv_dlopen=no | |
11687 | lt_cv_dlopen_libs= | |
11688 | ||
11689 | case $host_os in | |
11690 | beos*) | |
11691 | lt_cv_dlopen=load_add_on | |
11692 | lt_cv_dlopen_libs= | |
11693 | lt_cv_dlopen_self=yes | |
11694 | ;; | |
11695 | ||
11696 | mingw* | pw32* | cegcc*) | |
11697 | lt_cv_dlopen=LoadLibrary | |
11698 | lt_cv_dlopen_libs= | |
11699 | ;; | |
11700 | ||
11701 | cygwin*) | |
11702 | lt_cv_dlopen=dlopen | |
11703 | lt_cv_dlopen_libs= | |
11704 | ;; | |
11705 | ||
11706 | darwin*) | |
11707 | # if libdl is installed we need to link against it | |
11708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11709 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11710 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11711 | $as_echo_n "(cached) " >&6 | |
11712 | else | |
11713 | ac_check_lib_save_LIBS=$LIBS | |
11714 | LIBS="-ldl $LIBS" | |
11715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11716 | /* end confdefs.h. */ | |
11717 | ||
11718 | /* Override any GCC internal prototype to avoid an error. | |
11719 | Use char because int might match the return type of a GCC | |
11720 | builtin and then its argument prototype would still apply. */ | |
11721 | #ifdef __cplusplus | |
11722 | extern "C" | |
11723 | #endif | |
11724 | char dlopen (); | |
11725 | int | |
11726 | main () | |
11727 | { | |
11728 | return dlopen (); | |
11729 | ; | |
11730 | return 0; | |
11731 | } | |
11732 | _ACEOF | |
11733 | if ac_fn_c_try_link "$LINENO"; then : | |
11734 | ac_cv_lib_dl_dlopen=yes | |
11735 | else | |
11736 | ac_cv_lib_dl_dlopen=no | |
11737 | fi | |
11738 | rm -f core conftest.err conftest.$ac_objext \ | |
11739 | conftest$ac_exeext conftest.$ac_ext | |
11740 | LIBS=$ac_check_lib_save_LIBS | |
11741 | fi | |
11742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11743 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11744 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11745 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl | |
11746 | else | |
11747 | ||
11748 | lt_cv_dlopen=dyld | |
11749 | lt_cv_dlopen_libs= | |
11750 | lt_cv_dlopen_self=yes | |
11751 | ||
11752 | fi | |
11753 | ||
11754 | ;; | |
11755 | ||
11756 | tpf*) | |
11757 | # Don't try to run any link tests for TPF. We know it's impossible | |
11758 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
11759 | lt_cv_dlopen=dlopen | |
11760 | lt_cv_dlopen_libs= | |
11761 | lt_cv_dlopen_self=no | |
11762 | ;; | |
11763 | ||
11764 | *) | |
11765 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11766 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
11767 | lt_cv_dlopen=shl_load | |
11768 | else | |
11769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11770 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11771 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11772 | $as_echo_n "(cached) " >&6 | |
11773 | else | |
11774 | ac_check_lib_save_LIBS=$LIBS | |
11775 | LIBS="-ldld $LIBS" | |
11776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11777 | /* end confdefs.h. */ | |
11778 | ||
11779 | /* Override any GCC internal prototype to avoid an error. | |
11780 | Use char because int might match the return type of a GCC | |
11781 | builtin and then its argument prototype would still apply. */ | |
11782 | #ifdef __cplusplus | |
11783 | extern "C" | |
11784 | #endif | |
11785 | char shl_load (); | |
11786 | int | |
11787 | main () | |
11788 | { | |
11789 | return shl_load (); | |
11790 | ; | |
11791 | return 0; | |
11792 | } | |
11793 | _ACEOF | |
11794 | if ac_fn_c_try_link "$LINENO"; then : | |
11795 | ac_cv_lib_dld_shl_load=yes | |
11796 | else | |
11797 | ac_cv_lib_dld_shl_load=no | |
11798 | fi | |
11799 | rm -f core conftest.err conftest.$ac_objext \ | |
11800 | conftest$ac_exeext conftest.$ac_ext | |
11801 | LIBS=$ac_check_lib_save_LIBS | |
11802 | fi | |
11803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11804 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11805 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
11806 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld | |
11807 | else | |
11808 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11809 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
11810 | lt_cv_dlopen=dlopen | |
11811 | else | |
11812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11813 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11814 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11815 | $as_echo_n "(cached) " >&6 | |
11816 | else | |
11817 | ac_check_lib_save_LIBS=$LIBS | |
11818 | LIBS="-ldl $LIBS" | |
11819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11820 | /* end confdefs.h. */ | |
11821 | ||
11822 | /* Override any GCC internal prototype to avoid an error. | |
11823 | Use char because int might match the return type of a GCC | |
11824 | builtin and then its argument prototype would still apply. */ | |
11825 | #ifdef __cplusplus | |
11826 | extern "C" | |
11827 | #endif | |
11828 | char dlopen (); | |
11829 | int | |
11830 | main () | |
11831 | { | |
11832 | return dlopen (); | |
11833 | ; | |
11834 | return 0; | |
11835 | } | |
11836 | _ACEOF | |
11837 | if ac_fn_c_try_link "$LINENO"; then : | |
11838 | ac_cv_lib_dl_dlopen=yes | |
11839 | else | |
11840 | ac_cv_lib_dl_dlopen=no | |
11841 | fi | |
11842 | rm -f core conftest.err conftest.$ac_objext \ | |
11843 | conftest$ac_exeext conftest.$ac_ext | |
11844 | LIBS=$ac_check_lib_save_LIBS | |
11845 | fi | |
11846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11847 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11848 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11849 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl | |
11850 | else | |
11851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11852 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11853 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
11854 | $as_echo_n "(cached) " >&6 | |
11855 | else | |
11856 | ac_check_lib_save_LIBS=$LIBS | |
11857 | LIBS="-lsvld $LIBS" | |
11858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11859 | /* end confdefs.h. */ | |
11860 | ||
11861 | /* Override any GCC internal prototype to avoid an error. | |
11862 | Use char because int might match the return type of a GCC | |
11863 | builtin and then its argument prototype would still apply. */ | |
11864 | #ifdef __cplusplus | |
11865 | extern "C" | |
11866 | #endif | |
11867 | char dlopen (); | |
11868 | int | |
11869 | main () | |
11870 | { | |
11871 | return dlopen (); | |
11872 | ; | |
11873 | return 0; | |
11874 | } | |
11875 | _ACEOF | |
11876 | if ac_fn_c_try_link "$LINENO"; then : | |
11877 | ac_cv_lib_svld_dlopen=yes | |
11878 | else | |
11879 | ac_cv_lib_svld_dlopen=no | |
11880 | fi | |
11881 | rm -f core conftest.err conftest.$ac_objext \ | |
11882 | conftest$ac_exeext conftest.$ac_ext | |
11883 | LIBS=$ac_check_lib_save_LIBS | |
11884 | fi | |
11885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11886 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11887 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
11888 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld | |
11889 | else | |
11890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11891 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11892 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
11893 | $as_echo_n "(cached) " >&6 | |
11894 | else | |
11895 | ac_check_lib_save_LIBS=$LIBS | |
11896 | LIBS="-ldld $LIBS" | |
11897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11898 | /* end confdefs.h. */ | |
11899 | ||
11900 | /* Override any GCC internal prototype to avoid an error. | |
11901 | Use char because int might match the return type of a GCC | |
11902 | builtin and then its argument prototype would still apply. */ | |
11903 | #ifdef __cplusplus | |
11904 | extern "C" | |
11905 | #endif | |
11906 | char dld_link (); | |
11907 | int | |
11908 | main () | |
11909 | { | |
11910 | return dld_link (); | |
11911 | ; | |
11912 | return 0; | |
11913 | } | |
11914 | _ACEOF | |
11915 | if ac_fn_c_try_link "$LINENO"; then : | |
11916 | ac_cv_lib_dld_dld_link=yes | |
11917 | else | |
11918 | ac_cv_lib_dld_dld_link=no | |
11919 | fi | |
11920 | rm -f core conftest.err conftest.$ac_objext \ | |
11921 | conftest$ac_exeext conftest.$ac_ext | |
11922 | LIBS=$ac_check_lib_save_LIBS | |
11923 | fi | |
11924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11925 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11926 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
11927 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld | |
11928 | fi | |
11929 | ||
11930 | ||
11931 | fi | |
11932 | ||
11933 | ||
11934 | fi | |
11935 | ||
11936 | ||
11937 | fi | |
11938 | ||
11939 | ||
11940 | fi | |
11941 | ||
11942 | ||
11943 | fi | |
11944 | ||
11945 | ;; | |
11946 | esac | |
11947 | ||
11948 | if test no = "$lt_cv_dlopen"; then | |
11949 | enable_dlopen=no | |
11950 | else | |
11951 | enable_dlopen=yes | |
11952 | fi | |
11953 | ||
11954 | case $lt_cv_dlopen in | |
11955 | dlopen) | |
11956 | save_CPPFLAGS=$CPPFLAGS | |
11957 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11958 | ||
11959 | save_LDFLAGS=$LDFLAGS | |
11960 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11961 | ||
11962 | save_LIBS=$LIBS | |
11963 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11964 | ||
11965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
11966 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11967 | if ${lt_cv_dlopen_self+:} false; then : | |
11968 | $as_echo_n "(cached) " >&6 | |
11969 | else | |
11970 | if test yes = "$cross_compiling"; then : | |
11971 | lt_cv_dlopen_self=cross | |
11972 | else | |
11973 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11974 | lt_status=$lt_dlunknown | |
11975 | cat > conftest.$ac_ext <<_LT_EOF | |
11976 | #line $LINENO "configure" | |
11977 | #include "confdefs.h" | |
11978 | ||
11979 | #if HAVE_DLFCN_H | |
11980 | #include <dlfcn.h> | |
11981 | #endif | |
11982 | ||
11983 | #include <stdio.h> | |
11984 | ||
11985 | #ifdef RTLD_GLOBAL | |
11986 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11987 | #else | |
11988 | # ifdef DL_GLOBAL | |
11989 | # define LT_DLGLOBAL DL_GLOBAL | |
11990 | # else | |
11991 | # define LT_DLGLOBAL 0 | |
11992 | # endif | |
11993 | #endif | |
11994 | ||
11995 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11996 | find out it does not work in some platform. */ | |
11997 | #ifndef LT_DLLAZY_OR_NOW | |
11998 | # ifdef RTLD_LAZY | |
11999 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12000 | # else | |
12001 | # ifdef DL_LAZY | |
12002 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12003 | # else | |
12004 | # ifdef RTLD_NOW | |
12005 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12006 | # else | |
12007 | # ifdef DL_NOW | |
12008 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12009 | # else | |
12010 | # define LT_DLLAZY_OR_NOW 0 | |
12011 | # endif | |
12012 | # endif | |
12013 | # endif | |
12014 | # endif | |
12015 | #endif | |
12016 | ||
12017 | /* When -fvisibility=hidden is used, assume the code has been annotated | |
12018 | correspondingly for the symbols needed. */ | |
12019 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12020 | int fnord () __attribute__((visibility("default"))); | |
12021 | #endif | |
12022 | ||
12023 | int fnord () { return 42; } | |
12024 | int main () | |
12025 | { | |
12026 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12027 | int status = $lt_dlunknown; | |
12028 | ||
12029 | if (self) | |
12030 | { | |
12031 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12032 | else | |
12033 | { | |
12034 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12035 | else puts (dlerror ()); | |
12036 | } | |
12037 | /* dlclose (self); */ | |
12038 | } | |
12039 | else | |
12040 | puts (dlerror ()); | |
12041 | ||
12042 | return status; | |
12043 | } | |
12044 | _LT_EOF | |
12045 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12046 | (eval $ac_link) 2>&5 | |
12047 | ac_status=$? | |
12048 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12049 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then | |
12050 | (./conftest; exit; ) >&5 2>/dev/null | |
12051 | lt_status=$? | |
12052 | case x$lt_status in | |
12053 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12054 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12055 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12056 | esac | |
12057 | else : | |
12058 | # compilation failed | |
12059 | lt_cv_dlopen_self=no | |
12060 | fi | |
12061 | fi | |
12062 | rm -fr conftest* | |
12063 | ||
12064 | ||
12065 | fi | |
12066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
12067 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
12068 | ||
12069 | if test yes = "$lt_cv_dlopen_self"; then | |
12070 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12072 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12073 | if ${lt_cv_dlopen_self_static+:} false; then : | |
12074 | $as_echo_n "(cached) " >&6 | |
12075 | else | |
12076 | if test yes = "$cross_compiling"; then : | |
12077 | lt_cv_dlopen_self_static=cross | |
12078 | else | |
12079 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12080 | lt_status=$lt_dlunknown | |
12081 | cat > conftest.$ac_ext <<_LT_EOF | |
12082 | #line $LINENO "configure" | |
12083 | #include "confdefs.h" | |
12084 | ||
12085 | #if HAVE_DLFCN_H | |
12086 | #include <dlfcn.h> | |
12087 | #endif | |
12088 | ||
12089 | #include <stdio.h> | |
12090 | ||
12091 | #ifdef RTLD_GLOBAL | |
12092 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12093 | #else | |
12094 | # ifdef DL_GLOBAL | |
12095 | # define LT_DLGLOBAL DL_GLOBAL | |
12096 | # else | |
12097 | # define LT_DLGLOBAL 0 | |
12098 | # endif | |
12099 | #endif | |
12100 | ||
12101 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12102 | find out it does not work in some platform. */ | |
12103 | #ifndef LT_DLLAZY_OR_NOW | |
12104 | # ifdef RTLD_LAZY | |
12105 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12106 | # else | |
12107 | # ifdef DL_LAZY | |
12108 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12109 | # else | |
12110 | # ifdef RTLD_NOW | |
12111 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12112 | # else | |
12113 | # ifdef DL_NOW | |
12114 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12115 | # else | |
12116 | # define LT_DLLAZY_OR_NOW 0 | |
12117 | # endif | |
12118 | # endif | |
12119 | # endif | |
12120 | # endif | |
12121 | #endif | |
12122 | ||
12123 | /* When -fvisibility=hidden is used, assume the code has been annotated | |
12124 | correspondingly for the symbols needed. */ | |
12125 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12126 | int fnord () __attribute__((visibility("default"))); | |
12127 | #endif | |
12128 | ||
12129 | int fnord () { return 42; } | |
12130 | int main () | |
12131 | { | |
12132 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12133 | int status = $lt_dlunknown; | |
12134 | ||
12135 | if (self) | |
12136 | { | |
12137 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12138 | else | |
12139 | { | |
12140 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12141 | else puts (dlerror ()); | |
12142 | } | |
12143 | /* dlclose (self); */ | |
12144 | } | |
12145 | else | |
12146 | puts (dlerror ()); | |
12147 | ||
12148 | return status; | |
12149 | } | |
12150 | _LT_EOF | |
12151 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12152 | (eval $ac_link) 2>&5 | |
12153 | ac_status=$? | |
12154 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12155 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then | |
12156 | (./conftest; exit; ) >&5 2>/dev/null | |
12157 | lt_status=$? | |
12158 | case x$lt_status in | |
12159 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12160 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12161 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12162 | esac | |
12163 | else : | |
12164 | # compilation failed | |
12165 | lt_cv_dlopen_self_static=no | |
12166 | fi | |
12167 | fi | |
12168 | rm -fr conftest* | |
12169 | ||
12170 | ||
12171 | fi | |
12172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
12173 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12174 | fi | |
12175 | ||
12176 | CPPFLAGS=$save_CPPFLAGS | |
12177 | LDFLAGS=$save_LDFLAGS | |
12178 | LIBS=$save_LIBS | |
12179 | ;; | |
12180 | esac | |
12181 | ||
12182 | case $lt_cv_dlopen_self in | |
12183 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12184 | *) enable_dlopen_self=unknown ;; | |
12185 | esac | |
12186 | ||
12187 | case $lt_cv_dlopen_self_static in | |
12188 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12189 | *) enable_dlopen_self_static=unknown ;; | |
12190 | esac | |
12191 | fi | |
12192 | ||
12193 | ||
12194 | ||
12195 | ||
12196 | ||
12197 | ||
12198 | ||
12199 | ||
12200 | ||
12201 | ||
12202 | ||
12203 | ||
12204 | ||
12205 | ||
12206 | ||
12207 | ||
12208 | ||
12209 | striplib= | |
12210 | old_striplib= | |
12211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12212 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12213 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12214 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12215 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12217 | $as_echo "yes" >&6; } | |
12218 | else | |
12219 | # FIXME - insert some real tests, host_os isn't really good enough | |
12220 | case $host_os in | |
12221 | darwin*) | |
12222 | if test -n "$STRIP"; then | |
12223 | striplib="$STRIP -x" | |
12224 | old_striplib="$STRIP -S" | |
12225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12226 | $as_echo "yes" >&6; } | |
12227 | else | |
12228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12229 | $as_echo "no" >&6; } | |
12230 | fi | |
12231 | ;; | |
12232 | *) | |
12233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12234 | $as_echo "no" >&6; } | |
12235 | ;; | |
12236 | esac | |
12237 | fi | |
12238 | ||
12239 | ||
12240 | ||
12241 | ||
12242 | ||
12243 | ||
12244 | ||
12245 | ||
12246 | ||
12247 | ||
12248 | ||
12249 | ||
12250 | # Report what library types will actually be built | |
12251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12252 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12254 | $as_echo "$can_build_shared" >&6; } | |
12255 | ||
12256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12257 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12258 | test no = "$can_build_shared" && enable_shared=no | |
12259 | ||
12260 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12261 | # are all built from PIC. | |
12262 | case $host_os in | |
12263 | aix3*) | |
12264 | test yes = "$enable_shared" && enable_static=no | |
12265 | if test -n "$RANLIB"; then | |
12266 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12267 | postinstall_cmds='$RANLIB $lib' | |
12268 | fi | |
12269 | ;; | |
12270 | ||
12271 | aix[4-9]*) | |
12272 | if test ia64 != "$host_cpu"; then | |
12273 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
12274 | yes,aix,yes) ;; # shared object as lib.so file only | |
12275 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
12276 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
12277 | esac | |
12278 | fi | |
12279 | ;; | |
12280 | esac | |
12281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12282 | $as_echo "$enable_shared" >&6; } | |
12283 | ||
12284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12285 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12286 | # Make sure either enable_shared or enable_static is yes. | |
12287 | test yes = "$enable_shared" || enable_static=yes | |
12288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12289 | $as_echo "$enable_static" >&6; } | |
12290 | ||
12291 | ||
12292 | ||
12293 | ||
12294 | fi | |
12295 | ac_ext=c | |
12296 | ac_cpp='$CPP $CPPFLAGS' | |
12297 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12298 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12299 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12300 | ||
12301 | CC=$lt_save_CC | |
12302 | ||
12303 | ||
12304 | ||
12305 | ||
12306 | ||
12307 | ||
12308 | ||
12309 | ||
12310 | ||
12311 | ||
12312 | ||
12313 | ||
12314 | ||
12315 | ||
12316 | ||
12317 | ac_config_commands="$ac_config_commands libtool" | |
12318 | ||
12319 | ||
12320 | ||
12321 | ||
12322 | # Only expand once: | |
12323 | ||
12324 | ||
12325 | # By default we simply use the C compiler to build assembly code. | |
12326 | ||
12327 | test "${CCAS+set}" = set || CCAS=$CC | |
12328 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS | |
12329 | ||
12330 | ||
12331 | ||
12332 | depcc="$CCAS" am_compiler_list= | |
12333 | ||
12334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
12335 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
12336 | if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : | |
12337 | $as_echo_n "(cached) " >&6 | |
12338 | else | |
12339 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
12340 | # We make a subdir and do the tests there. Otherwise we can end up | |
12341 | # making bogus files that we don't know about and never remove. For | |
12342 | # instance it was reported that on HP-UX the gcc test will end up | |
12343 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
12344 | # in D". | |
12345 | rm -rf conftest.dir | |
12346 | mkdir conftest.dir | |
12347 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
12348 | # using a relative directory. | |
12349 | cp "$am_depcomp" conftest.dir | |
12350 | cd conftest.dir | |
12351 | # We will build objects and dependencies in a subdirectory because | |
12352 | # it helps to detect inapplicable dependency modes. For instance | |
12353 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
12354 | # side effect of compilation, but ICC will put the dependencies in | |
12355 | # the current directory while Tru64 will put them in the object | |
12356 | # directory. | |
12357 | mkdir sub | |
12358 | ||
12359 | am_cv_CCAS_dependencies_compiler_type=none | |
12360 | if test "$am_compiler_list" = ""; then | |
12361 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
12362 | fi | |
12363 | am__universal=false | |
12364 | ||
12365 | ||
12366 | for depmode in $am_compiler_list; do | |
12367 | # Setup a source with many dependencies, because some compilers | |
12368 | # like to wrap large dependency lists on column 80 (with \), and | |
12369 | # we should not choose a depcomp mode which is confused by this. | |
12370 | # | |
12371 | # We need to recreate these files for each test, as the compiler may | |
12372 | # overwrite some of them when testing with obscure command lines. | |
12373 | # This happens at least with the AIX C compiler. | |
12374 | : > sub/conftest.c | |
12375 | for i in 1 2 3 4 5 6; do | |
12376 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
12377 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
12378 | # Solaris 10 /bin/sh. | |
12379 | echo '/* dummy */' > sub/conftst$i.h | |
12380 | done | |
12381 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
12382 | ||
12383 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
12384 | # mode. It turns out that the SunPro C++ compiler does not properly | |
12385 | # handle '-M -o', and we need to detect this. Also, some Intel | |
12386 | # versions had trouble with output in subdirs. | |
12387 | am__obj=sub/conftest.${OBJEXT-o} | |
12388 | am__minus_obj="-o $am__obj" | |
12389 | case $depmode in | |
12390 | gcc) | |
12391 | # This depmode causes a compiler race in universal mode. | |
12392 | test "$am__universal" = false || continue | |
12393 | ;; | |
12394 | nosideeffect) | |
12395 | # After this tag, mechanisms are not by side-effect, so they'll | |
12396 | # only be used when explicitly requested. | |
12397 | if test "x$enable_dependency_tracking" = xyes; then | |
12398 | continue | |
12399 | else | |
12400 | break | |
12401 | fi | |
12402 | ;; | |
12403 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
12404 | # This compiler won't grok '-c -o', but also, the minuso test has | |
12405 | # not run yet. These depmodes are late enough in the game, and | |
12406 | # so weak that their functioning should not be impacted. | |
12407 | am__obj=conftest.${OBJEXT-o} | |
12408 | am__minus_obj= | |
12409 | ;; | |
12410 | none) break ;; | |
12411 | esac | |
12412 | if depmode=$depmode \ | |
12413 | source=sub/conftest.c object=$am__obj \ | |
12414 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
12415 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
12416 | >/dev/null 2>conftest.err && | |
12417 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
12418 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
12419 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
12420 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
12421 | # icc doesn't choke on unknown options, it will just issue warnings | |
12422 | # or remarks (even with -Werror). So we grep stderr for any message | |
12423 | # that says an option was ignored or not supported. | |
12424 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
12425 | # icc: Command line warning: ignoring option '-M'; no argument required | |
12426 | # The diagnosis changed in icc 8.0: | |
12427 | # icc: Command line remark: option '-MP' not supported | |
12428 | if (grep 'ignoring option' conftest.err || | |
12429 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
12430 | am_cv_CCAS_dependencies_compiler_type=$depmode | |
12431 | break | |
12432 | fi | |
12433 | fi | |
12434 | done | |
12435 | ||
12436 | cd .. | |
12437 | rm -rf conftest.dir | |
12438 | else | |
12439 | am_cv_CCAS_dependencies_compiler_type=none | |
12440 | fi | |
12441 | ||
12442 | fi | |
12443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 | |
12444 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } | |
12445 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type | |
12446 | ||
12447 | if | |
12448 | test "x$enable_dependency_tracking" != xno \ | |
12449 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then | |
12450 | am__fastdepCCAS_TRUE= | |
12451 | am__fastdepCCAS_FALSE='#' | |
12452 | else | |
12453 | am__fastdepCCAS_TRUE='#' | |
12454 | am__fastdepCCAS_FALSE= | |
12455 | fi | |
12456 | ||
12457 | ||
12458 | ||
12459 | ||
12460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5 | |
12461 | $as_echo_n "checking zfs author... " >&6; } | |
12462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5 | |
12463 | $as_echo "$ZFS_META_AUTHOR" >&6; } | |
12464 | ||
12465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5 | |
12466 | $as_echo_n "checking zfs license... " >&6; } | |
12467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5 | |
12468 | $as_echo "$ZFS_META_LICENSE" >&6; } | |
12469 | ||
12470 | ||
12471 | ||
12472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5 | |
12473 | $as_echo_n "checking linux distribution... " >&6; } | |
12474 | if test -f /etc/toss-release ; then | |
12475 | VENDOR=toss ; | |
12476 | elif test -f /etc/fedora-release ; then | |
12477 | VENDOR=fedora ; | |
12478 | elif test -f /etc/redhat-release ; then | |
12479 | VENDOR=redhat ; | |
12480 | elif test -f /etc/gentoo-release ; then | |
12481 | VENDOR=gentoo ; | |
12482 | elif test -f /etc/arch-release ; then | |
12483 | VENDOR=arch ; | |
12484 | elif test -f /etc/SuSE-release ; then | |
12485 | VENDOR=sles ; | |
12486 | elif test -f /etc/slackware-version ; then | |
12487 | VENDOR=slackware ; | |
12488 | elif test -f /etc/lunar.release ; then | |
12489 | VENDOR=lunar ; | |
12490 | elif test -f /etc/lsb-release ; then | |
12491 | VENDOR=ubuntu ; | |
12492 | elif test -f /etc/debian_version ; then | |
12493 | VENDOR=debian ; | |
12494 | else | |
12495 | VENDOR= ; | |
12496 | fi | |
12497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5 | |
12498 | $as_echo "$VENDOR" >&6; } | |
12499 | ||
12500 | ||
12501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5 | |
12502 | $as_echo_n "checking default package type... " >&6; } | |
12503 | case "$VENDOR" in | |
12504 | toss) DEFAULT_PACKAGE=rpm ;; | |
12505 | redhat) DEFAULT_PACKAGE=rpm ;; | |
12506 | fedora) DEFAULT_PACKAGE=rpm ;; | |
12507 | gentoo) DEFAULT_PACKAGE=tgz ;; | |
12508 | arch) DEFAULT_PACKAGE=tgz ;; | |
12509 | sles) DEFAULT_PACKAGE=rpm ;; | |
12510 | slackware) DEFAULT_PACKAGE=tgz ;; | |
12511 | lunar) DEFAULT_PACKAGE=tgz ;; | |
12512 | ubuntu) DEFAULT_PACKAGE=deb ;; | |
12513 | debian) DEFAULT_PACKAGE=deb ;; | |
12514 | *) DEFAULT_PACKAGE=rpm ;; | |
12515 | esac | |
12516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5 | |
12517 | $as_echo "$DEFAULT_PACKAGE" >&6; } | |
12518 | ||
12519 | ||
12520 | DEFAULT_INIT_DIR=$sysconfdir/init.d | |
12521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5 | |
12522 | $as_echo_n "checking default init directory... " >&6; } | |
12523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5 | |
12524 | $as_echo "$DEFAULT_INIT_DIR" >&6; } | |
12525 | ||
12526 | ||
12527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5 | |
12528 | $as_echo_n "checking default init script type... " >&6; } | |
12529 | case "$VENDOR" in | |
12530 | toss) DEFAULT_INIT_SCRIPT=redhat ;; | |
12531 | redhat) DEFAULT_INIT_SCRIPT=redhat ;; | |
12532 | fedora) DEFAULT_INIT_SCRIPT=fedora ;; | |
12533 | gentoo) DEFAULT_INIT_SCRIPT=gentoo ;; | |
12534 | arch) DEFAULT_INIT_SCRIPT=lsb ;; | |
12535 | sles) DEFAULT_INIT_SCRIPT=lsb ;; | |
12536 | slackware) DEFAULT_INIT_SCRIPT=lsb ;; | |
12537 | lunar) DEFAULT_INIT_SCRIPT=lunar ;; | |
12538 | ubuntu) DEFAULT_INIT_SCRIPT=lsb ;; | |
12539 | debian) DEFAULT_INIT_SCRIPT=lsb ;; | |
12540 | *) DEFAULT_INIT_SCRIPT=lsb ;; | |
12541 | esac | |
12542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5 | |
12543 | $as_echo "$DEFAULT_INIT_SCRIPT" >&6; } | |
12544 | ||
12545 | ||
12546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5 | |
12547 | $as_echo_n "checking default init config direectory... " >&6; } | |
12548 | case "$VENDOR" in | |
12549 | gentoo) DEFAULT_INITCONF_DIR=/etc/conf.d ;; | |
12550 | toss) DEFAULT_INITCONF_DIR=/etc/sysconfig ;; | |
12551 | redhat) DEFAULT_INITCONF_DIR=/etc/sysconfig ;; | |
12552 | fedora) DEFAULT_INITCONF_DIR=/etc/sysconfig ;; | |
12553 | sles) DEFAULT_INITCONF_DIR=/etc/sysconfig ;; | |
12554 | ubuntu) DEFAULT_INITCONF_DIR=/etc/default ;; | |
12555 | debian) DEFAULT_INITCONF_DIR=/etc/default ;; | |
12556 | *) DEFAULT_INITCONF_DIR=/etc/default ;; | |
12557 | esac | |
12558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5 | |
12559 | $as_echo "$DEFAULT_INITCONF_DIR" >&6; } | |
12560 | ||
12561 | ||
12562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5 | |
12563 | $as_echo_n "checking whether initramfs-tools is available... " >&6; } | |
12564 | if test -d /usr/share/initramfs-tools ; then | |
12565 | DEFINE_INITRAMFS='--define "_initramfs 1"' | |
12566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12567 | $as_echo "yes" >&6; } | |
12568 | else | |
12569 | DEFINE_INITRAMFS='' | |
12570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12571 | $as_echo "no" >&6; } | |
12572 | fi | |
12573 | ||
12574 | ||
12575 | ||
12576 | RPM=rpm | |
12577 | RPMBUILD=rpmbuild | |
12578 | ||
12579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5 | |
12580 | $as_echo_n "checking whether $RPM is available... " >&6; } | |
12581 | if tmp=$($RPM --version 2>/dev/null); then : | |
12582 | ||
12583 | RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }') | |
12584 | HAVE_RPM=yes | |
12585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5 | |
12586 | $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; } | |
12587 | ||
12588 | else | |
12589 | ||
12590 | HAVE_RPM=no | |
12591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5 | |
12592 | $as_echo "$HAVE_RPM" >&6; } | |
12593 | ||
12594 | fi | |
12595 | ||
12596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5 | |
12597 | $as_echo_n "checking whether $RPMBUILD is available... " >&6; } | |
12598 | if tmp=$($RPMBUILD --version 2>/dev/null); then : | |
12599 | ||
12600 | RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }') | |
12601 | HAVE_RPMBUILD=yes | |
12602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5 | |
12603 | $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; } | |
12604 | ||
12605 | else | |
12606 | ||
12607 | HAVE_RPMBUILD=no | |
12608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5 | |
12609 | $as_echo "$HAVE_RPMBUILD" >&6; } | |
12610 | ||
12611 | fi | |
12612 | ||
12613 | RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"' | |
12614 | RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)' | |
12615 | RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"' | |
12616 | RPM_DEFINE_DKMS= | |
12617 | ||
12618 | SRPM_DEFINE_COMMON='--define "build_src_rpm 1"' | |
12619 | SRPM_DEFINE_UTIL= | |
12620 | SRPM_DEFINE_KMOD= | |
12621 | SRPM_DEFINE_DKMS= | |
12622 | ||
12623 | RPM_SPEC_DIR="rpm/generic" | |
12624 | ||
12625 | # Check whether --with-spec was given. | |
12626 | if test "${with_spec+set}" = set; then : | |
12627 | withval=$with_spec; RPM_SPEC_DIR="rpm/$withval" | |
12628 | fi | |
12629 | ||
12630 | ||
12631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5 | |
12632 | $as_echo_n "checking whether spec files are available... " >&6; } | |
12633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5 | |
12634 | $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; } | |
12635 | ||
12636 | ||
12637 | ||
12638 | ||
12639 | ||
12640 | ||
12641 | ||
12642 | ||
12643 | ||
12644 | ||
12645 | ||
12646 | ||
12647 | ||
12648 | ||
12649 | ||
12650 | ||
12651 | ||
12652 | ||
12653 | ||
12654 | ||
12655 | DPKG=dpkg | |
12656 | DPKGBUILD=dpkg-buildpackage | |
12657 | ||
12658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5 | |
12659 | $as_echo_n "checking whether $DPKG is available... " >&6; } | |
12660 | if tmp=$($DPKG --version 2>/dev/null); then : | |
12661 | ||
12662 | DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }') | |
12663 | HAVE_DPKG=yes | |
12664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5 | |
12665 | $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; } | |
12666 | ||
12667 | else | |
12668 | ||
12669 | HAVE_DPKG=no | |
12670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5 | |
12671 | $as_echo "$HAVE_DPKG" >&6; } | |
12672 | ||
12673 | fi | |
12674 | ||
12675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5 | |
12676 | $as_echo_n "checking whether $DPKGBUILD is available... " >&6; } | |
12677 | if tmp=$($DPKGBUILD --version 2>/dev/null); then : | |
12678 | ||
12679 | DPKGBUILD_VERSION=$(echo $tmp | \ | |
12680 | $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.') | |
12681 | HAVE_DPKGBUILD=yes | |
12682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5 | |
12683 | $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; } | |
12684 | ||
12685 | else | |
12686 | ||
12687 | HAVE_DPKGBUILD=no | |
12688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5 | |
12689 | $as_echo "$HAVE_DPKGBUILD" >&6; } | |
12690 | ||
12691 | fi | |
12692 | ||
12693 | ||
12694 | ||
12695 | ||
12696 | ||
12697 | ||
12698 | ||
12699 | ||
12700 | ||
12701 | ||
12702 | ALIEN=alien | |
12703 | ||
12704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5 | |
12705 | $as_echo_n "checking whether $ALIEN is available... " >&6; } | |
12706 | if tmp=$($ALIEN --version 2>/dev/null); then : | |
12707 | ||
12708 | ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }') | |
12709 | HAVE_ALIEN=yes | |
12710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5 | |
12711 | $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; } | |
12712 | ||
12713 | else | |
12714 | ||
12715 | HAVE_ALIEN=no | |
12716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5 | |
12717 | $as_echo "$HAVE_ALIEN" >&6; } | |
12718 | ||
12719 | fi | |
12720 | ||
12721 | ||
12722 | ||
12723 | ||
12724 | ||
12725 | ||
12726 | ||
12727 | TARGET_ASM_DIR=asm-generic | |
12728 | ||
12729 | ||
12730 | ZFS_CONFIG=all | |
12731 | ||
12732 | # Check whether --with-config was given. | |
12733 | if test "${with_config+set}" = set; then : | |
12734 | withval=$with_config; ZFS_CONFIG="$withval" | |
12735 | fi | |
12736 | ||
12737 | # Check whether --enable-linux-builtin was given. | |
12738 | if test "${enable_linux_builtin+set}" = set; then : | |
12739 | enableval=$enable_linux_builtin; | |
12740 | else | |
12741 | enable_linux_builtin=no | |
12742 | fi | |
12743 | ||
12744 | ||
12745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5 | |
12746 | $as_echo_n "checking zfs config... " >&6; } | |
12747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5 | |
12748 | $as_echo "$ZFS_CONFIG" >&6; }; | |
12749 | ||
12750 | ||
12751 | ||
12752 | ||
12753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5 | |
12754 | $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; } | |
12755 | ||
12756 | saved_flags="$CFLAGS" | |
12757 | CFLAGS="$CFLAGS -Wunused-but-set-variable" | |
12758 | ||
12759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12760 | /* end confdefs.h. */ | |
12761 | ||
12762 | int | |
12763 | main () | |
12764 | { | |
12765 | ||
12766 | ; | |
12767 | return 0; | |
12768 | } | |
12769 | _ACEOF | |
12770 | if ac_fn_c_try_compile "$LINENO"; then : | |
12771 | ||
12772 | NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable | |
12773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12774 | $as_echo "yes" >&6; } | |
12775 | ||
12776 | else | |
12777 | ||
12778 | NO_UNUSED_BUT_SET_VARIABLE= | |
12779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12780 | $as_echo "no" >&6; } | |
12781 | ||
12782 | fi | |
12783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12784 | ||
12785 | CFLAGS="$saved_flags" | |
12786 | ||
12787 | ||
12788 | ||
12789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5 | |
12790 | $as_echo_n "checking for -Wno-bool-compare support... " >&6; } | |
12791 | ||
12792 | saved_flags="$CFLAGS" | |
12793 | CFLAGS="$CFLAGS -Wbool-compare" | |
12794 | ||
12795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12796 | /* end confdefs.h. */ | |
12797 | ||
12798 | int | |
12799 | main () | |
12800 | { | |
12801 | ||
12802 | ; | |
12803 | return 0; | |
12804 | } | |
12805 | _ACEOF | |
12806 | if ac_fn_c_try_compile "$LINENO"; then : | |
12807 | ||
12808 | NO_BOOL_COMPARE=-Wno-bool-compare | |
12809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12810 | $as_echo "yes" >&6; } | |
12811 | ||
12812 | else | |
12813 | ||
12814 | NO_BOOL_COMPARE= | |
12815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12816 | $as_echo "no" >&6; } | |
12817 | ||
12818 | fi | |
12819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12820 | ||
12821 | CFLAGS="$saved_flags" | |
12822 | ||
12823 | ||
12824 | ||
12825 | ||
12826 | case "$ZFS_CONFIG" in | |
12827 | user) | |
12828 | ||
12829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5 | |
12830 | $as_echo_n "checking for dkms.conf file... " >&6; } | |
12831 | if test -e dkms.conf; then : | |
12832 | ||
12833 | as_fn_error $? " | |
12834 | *** ZFS should not be manually built in the DKMS source tree. | |
12835 | *** Remove all ZFS packages before compiling the ZoL sources. | |
12836 | *** Running \"make install\" breaks ZFS packages." "$LINENO" 5 | |
12837 | ||
12838 | else | |
12839 | ||
12840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
12841 | $as_echo "not found" >&6; } | |
12842 | ||
12843 | fi | |
12844 | ||
12845 | ||
12846 | ||
12847 | # Check whether --with-mounthelperdir was given. | |
12848 | if test "${with_mounthelperdir+set}" = set; then : | |
12849 | withval=$with_mounthelperdir; mounthelperdir=$withval | |
12850 | else | |
12851 | mounthelperdir=/sbin | |
12852 | fi | |
12853 | ||
12854 | ||
12855 | ||
12856 | ||
12857 | ||
12858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5 | |
12859 | $as_echo_n "checking for udev directories... " >&6; } | |
12860 | ||
12861 | # Check whether --with-udevdir was given. | |
12862 | if test "${with_udevdir+set}" = set; then : | |
12863 | withval=$with_udevdir; udevdir=$withval | |
12864 | else | |
12865 | udevdir=check | |
12866 | fi | |
12867 | ||
12868 | ||
12869 | if test "x$udevdir" = xcheck; then : | |
12870 | ||
12871 | path1=/lib/udev | |
12872 | path2=/usr/lib/udev | |
12873 | default=$path2 | |
12874 | ||
12875 | if test -d "$path1"; then : | |
12876 | udevdir="$path1" | |
12877 | else | |
12878 | ||
12879 | if test -d "$path2"; then : | |
12880 | udevdir="$path2" | |
12881 | else | |
12882 | udevdir="$default" | |
12883 | fi | |
12884 | ||
12885 | fi | |
12886 | ||
12887 | fi | |
12888 | ||
12889 | ||
12890 | # Check whether --with-udevruledir was given. | |
12891 | if test "${with_udevruledir+set}" = set; then : | |
12892 | withval=$with_udevruledir; udevruledir=$withval | |
12893 | else | |
12894 | udevruledir="${udevdir}/rules.d" | |
12895 | fi | |
12896 | ||
12897 | ||
12898 | ||
12899 | ||
12900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5 | |
12901 | $as_echo "$udevdir;$udevruledir" >&6; } | |
12902 | ||
12903 | ||
12904 | # Check whether --enable-systemd was given. | |
12905 | if test "${enable_systemd+set}" = set; then : | |
12906 | enableval=$enable_systemd; | |
12907 | else | |
12908 | enable_systemd=yes | |
12909 | fi | |
12910 | ||
12911 | ||
12912 | ||
12913 | # Check whether --with-systemdunitdir was given. | |
12914 | if test "${with_systemdunitdir+set}" = set; then : | |
12915 | withval=$with_systemdunitdir; systemdunitdir=$withval | |
12916 | else | |
12917 | systemdunitdir=/usr/lib/systemd/system | |
12918 | fi | |
12919 | ||
12920 | ||
12921 | ||
12922 | # Check whether --with-systemdpresetdir was given. | |
12923 | if test "${with_systemdpresetdir+set}" = set; then : | |
12924 | withval=$with_systemdpresetdir; systemdpresetdir=$withval | |
12925 | else | |
12926 | systemdpresetdir=/usr/lib/systemd/system-preset | |
12927 | fi | |
12928 | ||
12929 | ||
12930 | ||
12931 | # Check whether --with-systemdmodulesloaddir was given. | |
12932 | if test "${with_systemdmodulesloaddir+set}" = set; then : | |
12933 | withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval | |
12934 | else | |
12935 | systemdmodulesloaddir=/usr/lib/modules-load.d | |
12936 | fi | |
12937 | ||
12938 | ||
12939 | ||
12940 | if test "x$enable_systemd" = xyes; then : | |
12941 | ||
12942 | ZFS_INIT_SYSTEMD=systemd | |
12943 | ZFS_MODULE_LOAD=modules-load.d | |
12944 | modulesloaddir=$systemdmodulesloaddir | |
12945 | ||
12946 | fi | |
12947 | ||
12948 | ||
12949 | ||
12950 | ||
12951 | ||
12952 | ||
12953 | ||
12954 | ||
12955 | # Check whether --enable-sysvinit was given. | |
12956 | if test "${enable_sysvinit+set}" = set; then : | |
12957 | enableval=$enable_sysvinit; | |
12958 | else | |
12959 | enable_sysvinit=yes | |
12960 | fi | |
12961 | ||
12962 | ||
12963 | if test "x$enable_sysvinit" = xyes; then : | |
12964 | ZFS_INIT_SYSV=init.d | |
12965 | fi | |
12966 | ||
12967 | ||
12968 | ||
12969 | ||
12970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5 | |
12971 | $as_echo_n "checking for dracut directory... " >&6; } | |
12972 | ||
12973 | # Check whether --with-dracutdir was given. | |
12974 | if test "${with_dracutdir+set}" = set; then : | |
12975 | withval=$with_dracutdir; dracutdir=$withval | |
12976 | else | |
12977 | dracutdir=check | |
12978 | fi | |
12979 | ||
12980 | ||
12981 | if test "x$dracutdir" = xcheck; then : | |
12982 | ||
12983 | path1=/usr/share/dracut | |
12984 | path2=/usr/lib/dracut | |
12985 | default=$path2 | |
12986 | ||
12987 | if test -d "$path1"; then : | |
12988 | dracutdir="$path1" | |
12989 | else | |
12990 | ||
12991 | if test -d "$path2"; then : | |
12992 | dracutdir="$path2" | |
12993 | else | |
12994 | dracutdir="$default" | |
12995 | fi | |
12996 | ||
12997 | fi | |
12998 | ||
12999 | fi | |
13000 | ||
13001 | ||
13002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5 | |
13003 | $as_echo "$dracutdir" >&6; } | |
13004 | ||
13005 | ||
13006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5 | |
13007 | $as_echo_n "checking for target asm dir... " >&6; } | |
13008 | TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/` | |
13009 | ||
13010 | case $TARGET_ARCH in | |
13011 | i386|x86_64) | |
13012 | TARGET_ASM_DIR=asm-${TARGET_ARCH} | |
13013 | ;; | |
13014 | *) | |
13015 | TARGET_ASM_DIR=asm-generic | |
13016 | ;; | |
13017 | esac | |
13018 | ||
13019 | ||
13020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5 | |
13021 | $as_echo "$TARGET_ASM_DIR" >&6; } | |
13022 | ||
13023 | ||
13024 | ZLIB= | |
13025 | ||
13026 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
13027 | if test "x$ac_cv_header_zlib_h" = xyes; then : | |
13028 | ||
13029 | else | |
13030 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13031 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13032 | as_fn_error $? " | |
13033 | *** zlib.h missing, zlib-devel package required | |
13034 | See \`config.log' for more details" "$LINENO" 5; } | |
13035 | fi | |
13036 | ||
13037 | ||
13038 | ||
13039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5 | |
13040 | $as_echo_n "checking for compress2 in -lz... " >&6; } | |
13041 | if ${ac_cv_lib_z_compress2+:} false; then : | |
13042 | $as_echo_n "(cached) " >&6 | |
13043 | else | |
13044 | ac_check_lib_save_LIBS=$LIBS | |
13045 | LIBS="-lz $LIBS" | |
13046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13047 | /* end confdefs.h. */ | |
13048 | ||
13049 | /* Override any GCC internal prototype to avoid an error. | |
13050 | Use char because int might match the return type of a GCC | |
13051 | builtin and then its argument prototype would still apply. */ | |
13052 | #ifdef __cplusplus | |
13053 | extern "C" | |
13054 | #endif | |
13055 | char compress2 (); | |
13056 | int | |
13057 | main () | |
13058 | { | |
13059 | return compress2 (); | |
13060 | ; | |
13061 | return 0; | |
13062 | } | |
13063 | _ACEOF | |
13064 | if ac_fn_c_try_link "$LINENO"; then : | |
13065 | ac_cv_lib_z_compress2=yes | |
13066 | else | |
13067 | ac_cv_lib_z_compress2=no | |
13068 | fi | |
13069 | rm -f core conftest.err conftest.$ac_objext \ | |
13070 | conftest$ac_exeext conftest.$ac_ext | |
13071 | LIBS=$ac_check_lib_save_LIBS | |
13072 | fi | |
13073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5 | |
13074 | $as_echo "$ac_cv_lib_z_compress2" >&6; } | |
13075 | if test "x$ac_cv_lib_z_compress2" = xyes; then : | |
13076 | cat >>confdefs.h <<_ACEOF | |
13077 | #define HAVE_LIBZ 1 | |
13078 | _ACEOF | |
13079 | ||
13080 | LIBS="-lz $LIBS" | |
13081 | ||
13082 | else | |
13083 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13084 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13085 | as_fn_error $? " | |
13086 | *** compress2() missing, zlib-devel package required | |
13087 | See \`config.log' for more details" "$LINENO" 5; } | |
13088 | fi | |
13089 | ||
13090 | ||
13091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 | |
13092 | $as_echo_n "checking for uncompress in -lz... " >&6; } | |
13093 | if ${ac_cv_lib_z_uncompress+:} false; then : | |
13094 | $as_echo_n "(cached) " >&6 | |
13095 | else | |
13096 | ac_check_lib_save_LIBS=$LIBS | |
13097 | LIBS="-lz $LIBS" | |
13098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13099 | /* end confdefs.h. */ | |
13100 | ||
13101 | /* Override any GCC internal prototype to avoid an error. | |
13102 | Use char because int might match the return type of a GCC | |
13103 | builtin and then its argument prototype would still apply. */ | |
13104 | #ifdef __cplusplus | |
13105 | extern "C" | |
13106 | #endif | |
13107 | char uncompress (); | |
13108 | int | |
13109 | main () | |
13110 | { | |
13111 | return uncompress (); | |
13112 | ; | |
13113 | return 0; | |
13114 | } | |
13115 | _ACEOF | |
13116 | if ac_fn_c_try_link "$LINENO"; then : | |
13117 | ac_cv_lib_z_uncompress=yes | |
13118 | else | |
13119 | ac_cv_lib_z_uncompress=no | |
13120 | fi | |
13121 | rm -f core conftest.err conftest.$ac_objext \ | |
13122 | conftest$ac_exeext conftest.$ac_ext | |
13123 | LIBS=$ac_check_lib_save_LIBS | |
13124 | fi | |
13125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 | |
13126 | $as_echo "$ac_cv_lib_z_uncompress" >&6; } | |
13127 | if test "x$ac_cv_lib_z_uncompress" = xyes; then : | |
13128 | cat >>confdefs.h <<_ACEOF | |
13129 | #define HAVE_LIBZ 1 | |
13130 | _ACEOF | |
13131 | ||
13132 | LIBS="-lz $LIBS" | |
13133 | ||
13134 | else | |
13135 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13136 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13137 | as_fn_error $? " | |
13138 | *** uncompress() missing, zlib-devel package required | |
13139 | See \`config.log' for more details" "$LINENO" 5; } | |
13140 | fi | |
13141 | ||
13142 | ||
13143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5 | |
13144 | $as_echo_n "checking for crc32 in -lz... " >&6; } | |
13145 | if ${ac_cv_lib_z_crc32+:} false; then : | |
13146 | $as_echo_n "(cached) " >&6 | |
13147 | else | |
13148 | ac_check_lib_save_LIBS=$LIBS | |
13149 | LIBS="-lz $LIBS" | |
13150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13151 | /* end confdefs.h. */ | |
13152 | ||
13153 | /* Override any GCC internal prototype to avoid an error. | |
13154 | Use char because int might match the return type of a GCC | |
13155 | builtin and then its argument prototype would still apply. */ | |
13156 | #ifdef __cplusplus | |
13157 | extern "C" | |
13158 | #endif | |
13159 | char crc32 (); | |
13160 | int | |
13161 | main () | |
13162 | { | |
13163 | return crc32 (); | |
13164 | ; | |
13165 | return 0; | |
13166 | } | |
13167 | _ACEOF | |
13168 | if ac_fn_c_try_link "$LINENO"; then : | |
13169 | ac_cv_lib_z_crc32=yes | |
13170 | else | |
13171 | ac_cv_lib_z_crc32=no | |
13172 | fi | |
13173 | rm -f core conftest.err conftest.$ac_objext \ | |
13174 | conftest$ac_exeext conftest.$ac_ext | |
13175 | LIBS=$ac_check_lib_save_LIBS | |
13176 | fi | |
13177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5 | |
13178 | $as_echo "$ac_cv_lib_z_crc32" >&6; } | |
13179 | if test "x$ac_cv_lib_z_crc32" = xyes; then : | |
13180 | cat >>confdefs.h <<_ACEOF | |
13181 | #define HAVE_LIBZ 1 | |
13182 | _ACEOF | |
13183 | ||
13184 | LIBS="-lz $LIBS" | |
13185 | ||
13186 | else | |
13187 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13188 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13189 | as_fn_error $? " | |
13190 | *** crc32() missing, zlib-devel package required | |
13191 | See \`config.log' for more details" "$LINENO" 5; } | |
13192 | fi | |
13193 | ||
13194 | ||
13195 | ZLIB="-lz" | |
13196 | ||
13197 | ||
13198 | $as_echo "#define HAVE_ZLIB 1" >>confdefs.h | |
13199 | ||
13200 | ||
13201 | ||
13202 | LIBUUID= | |
13203 | ||
13204 | ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" | |
13205 | if test "x$ac_cv_header_uuid_uuid_h" = xyes; then : | |
13206 | ||
13207 | else | |
13208 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13209 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13210 | as_fn_error $? " | |
13211 | *** uuid/uuid.h missing, libuuid-devel package required | |
13212 | See \`config.log' for more details" "$LINENO" 5; } | |
13213 | fi | |
13214 | ||
13215 | ||
13216 | ||
13217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 | |
13218 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } | |
13219 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : | |
13220 | $as_echo_n "(cached) " >&6 | |
13221 | else | |
13222 | ac_check_lib_save_LIBS=$LIBS | |
13223 | LIBS="-luuid $LIBS" | |
13224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13225 | /* end confdefs.h. */ | |
13226 | ||
13227 | /* Override any GCC internal prototype to avoid an error. | |
13228 | Use char because int might match the return type of a GCC | |
13229 | builtin and then its argument prototype would still apply. */ | |
13230 | #ifdef __cplusplus | |
13231 | extern "C" | |
13232 | #endif | |
13233 | char uuid_generate (); | |
13234 | int | |
13235 | main () | |
13236 | { | |
13237 | return uuid_generate (); | |
13238 | ; | |
13239 | return 0; | |
13240 | } | |
13241 | _ACEOF | |
13242 | if ac_fn_c_try_link "$LINENO"; then : | |
13243 | ac_cv_lib_uuid_uuid_generate=yes | |
13244 | else | |
13245 | ac_cv_lib_uuid_uuid_generate=no | |
13246 | fi | |
13247 | rm -f core conftest.err conftest.$ac_objext \ | |
13248 | conftest$ac_exeext conftest.$ac_ext | |
13249 | LIBS=$ac_check_lib_save_LIBS | |
13250 | fi | |
13251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 | |
13252 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
13253 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : | |
13254 | cat >>confdefs.h <<_ACEOF | |
13255 | #define HAVE_LIBUUID 1 | |
13256 | _ACEOF | |
13257 | ||
13258 | LIBS="-luuid $LIBS" | |
13259 | ||
13260 | else | |
13261 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13262 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13263 | as_fn_error $? " | |
13264 | *** uuid_generate() missing, libuuid-devel package required | |
13265 | See \`config.log' for more details" "$LINENO" 5; } | |
13266 | fi | |
13267 | ||
13268 | ||
13269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5 | |
13270 | $as_echo_n "checking for uuid_is_null in -luuid... " >&6; } | |
13271 | if ${ac_cv_lib_uuid_uuid_is_null+:} false; then : | |
13272 | $as_echo_n "(cached) " >&6 | |
13273 | else | |
13274 | ac_check_lib_save_LIBS=$LIBS | |
13275 | LIBS="-luuid $LIBS" | |
13276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13277 | /* end confdefs.h. */ | |
13278 | ||
13279 | /* Override any GCC internal prototype to avoid an error. | |
13280 | Use char because int might match the return type of a GCC | |
13281 | builtin and then its argument prototype would still apply. */ | |
13282 | #ifdef __cplusplus | |
13283 | extern "C" | |
13284 | #endif | |
13285 | char uuid_is_null (); | |
13286 | int | |
13287 | main () | |
13288 | { | |
13289 | return uuid_is_null (); | |
13290 | ; | |
13291 | return 0; | |
13292 | } | |
13293 | _ACEOF | |
13294 | if ac_fn_c_try_link "$LINENO"; then : | |
13295 | ac_cv_lib_uuid_uuid_is_null=yes | |
13296 | else | |
13297 | ac_cv_lib_uuid_uuid_is_null=no | |
13298 | fi | |
13299 | rm -f core conftest.err conftest.$ac_objext \ | |
13300 | conftest$ac_exeext conftest.$ac_ext | |
13301 | LIBS=$ac_check_lib_save_LIBS | |
13302 | fi | |
13303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5 | |
13304 | $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; } | |
13305 | if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes; then : | |
13306 | cat >>confdefs.h <<_ACEOF | |
13307 | #define HAVE_LIBUUID 1 | |
13308 | _ACEOF | |
13309 | ||
13310 | LIBS="-luuid $LIBS" | |
13311 | ||
13312 | else | |
13313 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13314 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13315 | as_fn_error $? " | |
13316 | *** uuid_is_null() missing, libuuid-devel package required | |
13317 | See \`config.log' for more details" "$LINENO" 5; } | |
13318 | fi | |
13319 | ||
13320 | ||
13321 | LIBUUID="-luuid" | |
13322 | ||
13323 | ||
13324 | $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h | |
13325 | ||
13326 | ||
13327 | ||
13328 | ||
13329 | # Check whether --with-blkid was given. | |
13330 | if test "${with_blkid+set}" = set; then : | |
13331 | withval=$with_blkid; | |
13332 | else | |
13333 | with_blkid=check | |
13334 | fi | |
13335 | ||
13336 | ||
13337 | LIBBLKID= | |
13338 | if test "x$with_blkid" = xyes; then : | |
13339 | ||
13340 | LIBBLKID="-lblkid" | |
13341 | ||
13342 | ||
13343 | $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h | |
13344 | ||
13345 | ||
13346 | fi | |
13347 | ||
13348 | if test "x$with_blkid" = xcheck; then : | |
13349 | ||
13350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 | |
13351 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } | |
13352 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : | |
13353 | $as_echo_n "(cached) " >&6 | |
13354 | else | |
13355 | ac_check_lib_save_LIBS=$LIBS | |
13356 | LIBS="-lblkid $LIBS" | |
13357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13358 | /* end confdefs.h. */ | |
13359 | ||
13360 | /* Override any GCC internal prototype to avoid an error. | |
13361 | Use char because int might match the return type of a GCC | |
13362 | builtin and then its argument prototype would still apply. */ | |
13363 | #ifdef __cplusplus | |
13364 | extern "C" | |
13365 | #endif | |
13366 | char blkid_get_cache (); | |
13367 | int | |
13368 | main () | |
13369 | { | |
13370 | return blkid_get_cache (); | |
13371 | ; | |
13372 | return 0; | |
13373 | } | |
13374 | _ACEOF | |
13375 | if ac_fn_c_try_link "$LINENO"; then : | |
13376 | ac_cv_lib_blkid_blkid_get_cache=yes | |
13377 | else | |
13378 | ac_cv_lib_blkid_blkid_get_cache=no | |
13379 | fi | |
13380 | rm -f core conftest.err conftest.$ac_objext \ | |
13381 | conftest$ac_exeext conftest.$ac_ext | |
13382 | LIBS=$ac_check_lib_save_LIBS | |
13383 | fi | |
13384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 | |
13385 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
13386 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : | |
13387 | ||
13388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5 | |
13389 | $as_echo_n "checking for blkid zfs support... " >&6; } | |
13390 | ||
13391 | ZFS_DEV=`mktemp` | |
13392 | truncate -s 64M $ZFS_DEV | |
13393 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
13394 | dd of=$ZFS_DEV bs=1k count=8 \ | |
13395 | seek=128 conv=notrunc &>/dev/null \ | |
13396 | >/dev/null 2>/dev/null | |
13397 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
13398 | dd of=$ZFS_DEV bs=1k count=8 \ | |
13399 | seek=132 conv=notrunc &>/dev/null \ | |
13400 | >/dev/null 2>/dev/null | |
13401 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
13402 | dd of=$ZFS_DEV bs=1k count=8 \ | |
13403 | seek=136 conv=notrunc &>/dev/null \ | |
13404 | >/dev/null 2>/dev/null | |
13405 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
13406 | dd of=$ZFS_DEV bs=1k count=8 \ | |
13407 | seek=140 conv=notrunc &>/dev/null \ | |
13408 | >/dev/null 2>/dev/null | |
13409 | ||
13410 | saved_LIBS="$LIBS" | |
13411 | LIBS="-lblkid" | |
13412 | ||
13413 | if test "$cross_compiling" = yes; then : | |
13414 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13415 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13416 | as_fn_error $? "cannot run test program while cross compiling | |
13417 | See \`config.log' for more details" "$LINENO" 5; } | |
13418 | else | |
13419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13420 | /* end confdefs.h. */ | |
13421 | ||
13422 | #include <stdio.h> | |
13423 | #include <stdlib.h> | |
13424 | #include <blkid/blkid.h> | |
13425 | ||
13426 | int | |
13427 | main () | |
13428 | { | |
13429 | ||
13430 | blkid_cache cache; | |
13431 | char *value; | |
13432 | ||
13433 | if (blkid_get_cache(&cache, NULL) < 0) | |
13434 | return 1; | |
13435 | ||
13436 | value = blkid_get_tag_value(cache, "TYPE", | |
13437 | "$ZFS_DEV"); | |
13438 | if (!value) { | |
13439 | blkid_put_cache(cache); | |
13440 | return 2; | |
13441 | } | |
13442 | ||
13443 | if (strcmp(value, "zfs_member")) { | |
13444 | free(value); | |
13445 | blkid_put_cache(cache); | |
13446 | return 0; | |
13447 | } | |
13448 | ||
13449 | free(value); | |
13450 | blkid_put_cache(cache); | |
13451 | ||
13452 | ; | |
13453 | return 0; | |
13454 | } | |
13455 | _ACEOF | |
13456 | if ac_fn_c_try_run "$LINENO"; then : | |
13457 | ||
13458 | rm -f $ZFS_DEV | |
13459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13460 | $as_echo "yes" >&6; } | |
13461 | LIBBLKID="-lblkid" | |
13462 | ||
13463 | ||
13464 | $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h | |
13465 | ||
13466 | ||
13467 | else | |
13468 | ||
13469 | rm -f $ZFS_DEV | |
13470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13471 | $as_echo "no" >&6; } | |
13472 | if test "x$with_blkid" != xcheck; then : | |
13473 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13474 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13475 | as_fn_error $? "--with-blkid given but unavailable | |
13476 | See \`config.log' for more details" "$LINENO" 5; } | |
13477 | fi | |
13478 | ||
13479 | fi | |
13480 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
13481 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
13482 | fi | |
13483 | ||
13484 | ||
13485 | LIBS="$saved_LIBS" | |
13486 | ||
13487 | else | |
13488 | ||
13489 | if test "x$with_blkid" != xcheck; then : | |
13490 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13491 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13492 | as_fn_error $? "--with-blkid given but unavailable | |
13493 | See \`config.log' for more details" "$LINENO" 5; } | |
13494 | fi | |
13495 | ||
13496 | ||
13497 | fi | |
13498 | ||
13499 | ||
13500 | fi | |
13501 | ||
13502 | ||
13503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5 | |
13504 | $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; } | |
13505 | ||
13506 | saved_flags="$CFLAGS" | |
13507 | CFLAGS="$CFLAGS -Wframe-larger-than=1024" | |
13508 | ||
13509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13510 | /* end confdefs.h. */ | |
13511 | ||
13512 | int | |
13513 | main () | |
13514 | { | |
13515 | ||
13516 | ; | |
13517 | return 0; | |
13518 | } | |
13519 | _ACEOF | |
13520 | if ac_fn_c_try_compile "$LINENO"; then : | |
13521 | ||
13522 | FRAME_LARGER_THAN=-Wframe-larger-than=1024 | |
13523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13524 | $as_echo "yes" >&6; } | |
13525 | ||
13526 | else | |
13527 | ||
13528 | FRAME_LARGER_THAN= | |
13529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13530 | $as_echo "no" >&6; } | |
13531 | ||
13532 | fi | |
13533 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13534 | ||
13535 | CFLAGS="$saved_flags" | |
13536 | ||
13537 | ||
13538 | ||
13539 | if test "x$runstatedir" = x; then | |
13540 | runstatedir='${localstatedir}/run' | |
13541 | ||
13542 | fi | |
13543 | ||
1ec59ff7 CIK |
13544 | |
13545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5 | |
13546 | $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; } | |
13547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13548 | /* end confdefs.h. */ | |
13549 | ||
13550 | #include <sys/sysmacros.h> | |
13551 | ||
13552 | int | |
13553 | main () | |
13554 | { | |
13555 | ||
13556 | int k; | |
13557 | k = makedev(0,0); | |
13558 | ||
13559 | ; | |
13560 | return 0; | |
13561 | } | |
13562 | _ACEOF | |
13563 | if ac_fn_c_try_compile "$LINENO"; then : | |
13564 | ||
13565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13566 | $as_echo "yes" >&6; } | |
13567 | ||
13568 | $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h | |
13569 | ||
13570 | ||
13571 | else | |
13572 | ||
13573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13574 | $as_echo "no" >&6; } | |
13575 | ||
13576 | fi | |
13577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13578 | ||
13579 | ||
13580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5 | |
13581 | $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; } | |
13582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13583 | /* end confdefs.h. */ | |
13584 | ||
13585 | #include <sys/mkdev.h> | |
13586 | ||
13587 | int | |
13588 | main () | |
13589 | { | |
13590 | ||
13591 | int k; | |
13592 | k = makedev(0,0); | |
13593 | ||
13594 | ; | |
13595 | return 0; | |
13596 | } | |
13597 | _ACEOF | |
13598 | if ac_fn_c_try_compile "$LINENO"; then : | |
13599 | ||
13600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13601 | $as_echo "yes" >&6; } | |
13602 | ||
13603 | $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h | |
13604 | ||
13605 | ||
13606 | else | |
13607 | ||
13608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13609 | $as_echo "no" >&6; } | |
13610 | ||
13611 | fi | |
13612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13613 | ||
13614 | ||
13615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5 | |
13616 | $as_echo_n "checking for -Wno-format-truncation support... " >&6; } | |
13617 | ||
13618 | saved_flags="$CFLAGS" | |
13619 | CFLAGS="$CFLAGS -Wno-format-truncation" | |
13620 | ||
13621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13622 | /* end confdefs.h. */ | |
13623 | ||
13624 | int | |
13625 | main () | |
13626 | { | |
13627 | ||
13628 | ; | |
13629 | return 0; | |
13630 | } | |
13631 | _ACEOF | |
13632 | if ac_fn_c_try_compile "$LINENO"; then : | |
13633 | ||
13634 | NO_FORMAT_TRUNCATION=-Wno-format-truncation | |
13635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13636 | $as_echo "yes" >&6; } | |
13637 | ||
13638 | else | |
13639 | ||
13640 | NO_FORMAT_TRUNCATION= | |
13641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13642 | $as_echo "no" >&6; } | |
13643 | ||
13644 | fi | |
13645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13646 | ||
13647 | CFLAGS="$saved_flags" | |
13648 | ||
13649 | ||
87d546d8 TG |
13650 | for ac_func in mlockall |
13651 | do : | |
13652 | ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" | |
13653 | if test "x$ac_cv_func_mlockall" = xyes; then : | |
13654 | cat >>confdefs.h <<_ACEOF | |
13655 | #define HAVE_MLOCKALL 1 | |
13656 | _ACEOF | |
13657 | ||
13658 | fi | |
13659 | done | |
13660 | ||
13661 | ;; | |
13662 | kernel) | |
13663 | ||
13664 | ||
13665 | # Check whether --with-linux was given. | |
13666 | if test "${with_linux+set}" = set; then : | |
13667 | withval=$with_linux; kernelsrc="$withval" | |
13668 | fi | |
13669 | ||
13670 | ||
13671 | ||
13672 | # Check whether --with-linux-obj was given. | |
13673 | if test "${with_linux_obj+set}" = set; then : | |
13674 | withval=$with_linux_obj; kernelbuild="$withval" | |
13675 | fi | |
13676 | ||
13677 | ||
13678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5 | |
13679 | $as_echo_n "checking kernel source directory... " >&6; } | |
13680 | if test -z "$kernelsrc"; then : | |
13681 | ||
13682 | if test -e "/lib/modules/$(uname -r)/source"; then : | |
13683 | ||
13684 | headersdir="/lib/modules/$(uname -r)/source" | |
13685 | sourcelink=$(readlink -f "$headersdir") | |
13686 | ||
13687 | elif test -e "/lib/modules/$(uname -r)/build"; then : | |
13688 | ||
13689 | headersdir="/lib/modules/$(uname -r)/build" | |
13690 | sourcelink=$(readlink -f "$headersdir") | |
13691 | ||
13692 | else | |
13693 | ||
13694 | sourcelink=$(ls -1d /usr/src/kernels/* \ | |
13695 | /usr/src/linux-* \ | |
13696 | 2>/dev/null | grep -v obj | tail -1) | |
13697 | ||
13698 | fi | |
13699 | ||
13700 | if test -n "$sourcelink" && test -e ${sourcelink}; then : | |
13701 | ||
13702 | kernelsrc=`readlink -f ${sourcelink}` | |
13703 | ||
13704 | else | |
13705 | ||
13706 | kernelsrc="Not found" | |
13707 | ||
13708 | fi | |
13709 | ||
13710 | else | |
13711 | ||
13712 | if test "$kernelsrc" = "NONE"; then : | |
13713 | ||
13714 | kernsrcver=NONE | |
13715 | ||
13716 | fi | |
13717 | ||
13718 | fi | |
13719 | ||
13720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5 | |
13721 | $as_echo "$kernelsrc" >&6; } | |
13722 | if test ! -d "$kernelsrc"; then : | |
13723 | ||
13724 | as_fn_error $? " | |
13725 | *** Please make sure the kernel devel package for your distribution | |
13726 | *** is installed and then try again. If that fails, you can specify the | |
13727 | *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5 | |
13728 | ||
13729 | fi | |
13730 | ||
13731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5 | |
13732 | $as_echo_n "checking kernel build directory... " >&6; } | |
13733 | if test -z "$kernelbuild"; then : | |
13734 | ||
13735 | if test -e "/lib/modules/$(uname -r)/build"; then : | |
13736 | ||
13737 | kernelbuild=`readlink -f /lib/modules/$(uname -r)/build` | |
13738 | ||
13739 | elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then : | |
13740 | ||
13741 | kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu} | |
13742 | ||
13743 | elif test -d ${kernelsrc}-obj/${target_cpu}/default; then : | |
13744 | ||
13745 | kernelbuild=${kernelsrc}-obj/${target_cpu}/default | |
13746 | ||
13747 | elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then : | |
13748 | ||
13749 | kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu} | |
13750 | ||
13751 | else | |
13752 | ||
13753 | kernelbuild=${kernelsrc} | |
13754 | ||
13755 | fi | |
13756 | ||
13757 | fi | |
13758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5 | |
13759 | $as_echo "$kernelbuild" >&6; } | |
13760 | ||
13761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5 | |
13762 | $as_echo_n "checking kernel source version... " >&6; } | |
13763 | utsrelease1=$kernelbuild/include/linux/version.h | |
13764 | utsrelease2=$kernelbuild/include/linux/utsrelease.h | |
13765 | utsrelease3=$kernelbuild/include/generated/utsrelease.h | |
13766 | if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then : | |
13767 | ||
13768 | utsrelease=linux/version.h | |
13769 | ||
13770 | elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then : | |
13771 | ||
13772 | utsrelease=linux/utsrelease.h | |
13773 | ||
13774 | elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then : | |
13775 | ||
13776 | utsrelease=generated/utsrelease.h | |
13777 | ||
13778 | fi | |
13779 | ||
13780 | if test "$utsrelease"; then : | |
13781 | ||
13782 | kernsrcver=`(echo "#include <$utsrelease>"; | |
13783 | echo "kernsrcver=UTS_RELEASE") | | |
13784 | cpp -I $kernelbuild/include | | |
13785 | grep "^kernsrcver=" | cut -d \" -f 2` | |
13786 | ||
13787 | if test -z "$kernsrcver"; then : | |
13788 | ||
13789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
13790 | $as_echo "Not found" >&6; } | |
13791 | as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5 | |
13792 | ||
13793 | fi | |
13794 | ||
13795 | else | |
13796 | ||
13797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
13798 | $as_echo "Not found" >&6; } | |
13799 | if test "x$enable_linux_builtin" != xyes; then | |
13800 | as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5 | |
13801 | else | |
13802 | as_fn_error $? " | |
13803 | *** Cannot find UTS_RELEASE definition. | |
13804 | *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5 | |
13805 | fi | |
13806 | ||
13807 | fi | |
13808 | ||
13809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5 | |
13810 | $as_echo "$kernsrcver" >&6; } | |
13811 | ||
13812 | LINUX=${kernelsrc} | |
13813 | LINUX_OBJ=${kernelbuild} | |
13814 | LINUX_VERSION=${kernsrcver} | |
13815 | ||
13816 | ||
13817 | ||
13818 | ||
13819 | ||
13820 | ||
13821 | modpost=$LINUX/scripts/Makefile.modpost | |
13822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5 | |
13823 | $as_echo_n "checking kernel file name for module symbols... " >&6; } | |
13824 | if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then : | |
13825 | ||
13826 | if grep -q Modules.symvers $modpost; then : | |
13827 | ||
13828 | LINUX_SYMBOLS=Modules.symvers | |
13829 | ||
13830 | else | |
13831 | ||
13832 | LINUX_SYMBOLS=Module.symvers | |
13833 | ||
13834 | fi | |
13835 | ||
13836 | if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then : | |
13837 | ||
13838 | as_fn_error $? " | |
13839 | *** Please make sure the kernel devel package for your distribution | |
13840 | *** is installed. If you are building with a custom kernel, make sure the | |
13841 | *** kernel is configured, built, and the '--with-linux=PATH' configure | |
13842 | *** option refers to the location of the kernel source." "$LINENO" 5 | |
13843 | ||
13844 | fi | |
13845 | ||
13846 | else | |
13847 | ||
13848 | LINUX_SYMBOLS=NONE | |
13849 | ||
13850 | fi | |
13851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5 | |
13852 | $as_echo "$LINUX_SYMBOLS" >&6; } | |
13853 | ||
13854 | ||
13855 | ||
13856 | ||
13857 | ||
13858 | # Check whether --with-spl was given. | |
13859 | if test "${with_spl+set}" = set; then : | |
13860 | withval=$with_spl; splsrc="$withval" | |
13861 | fi | |
13862 | ||
13863 | ||
13864 | ||
13865 | # Check whether --with-spl-obj was given. | |
13866 | if test "${with_spl_obj+set}" = set; then : | |
13867 | withval=$with_spl_obj; splbuild="$withval" | |
13868 | fi | |
13869 | ||
13870 | ||
13871 | ||
13872 | # Check whether --with-spl-timeout was given. | |
13873 | if test "${with_spl_timeout+set}" = set; then : | |
13874 | withval=$with_spl_timeout; timeout="$withval" | |
13875 | else | |
13876 | timeout=0 | |
13877 | fi | |
13878 | ||
13879 | ||
13880 | splsrc0="/var/lib/dkms/spl/${VERSION}/build" | |
13881 | splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}" | |
13882 | splsrc2="/usr/local/src/spl-${VERSION}" | |
13883 | splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}" | |
13884 | splsrc4="/usr/src/spl-${VERSION}" | |
13885 | splsrc5="../spl/" | |
13886 | splsrc6="$LINUX" | |
13887 | ||
13888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5 | |
13889 | $as_echo_n "checking spl source directory... " >&6; } | |
13890 | if test -z "${splsrc}"; then : | |
13891 | ||
13892 | if test -e "${splsrc0}/spl.release.in"; then : | |
13893 | ||
13894 | splsrc=${splsrc0} | |
13895 | ||
13896 | elif test -e "${splsrc1}/spl.release.in"; then : | |
13897 | ||
13898 | splsrc=${splsrc1} | |
13899 | ||
13900 | elif test -e "${splsrc2}/spl.release.in"; then : | |
13901 | ||
13902 | splsrc=${splsrc2} | |
13903 | ||
13904 | elif test -e "${splsrc3}/spl.release.in"; then : | |
13905 | ||
13906 | splsrc=$(readlink -f "${splsrc3}") | |
13907 | ||
13908 | elif test -e "${splsrc4}/spl.release.in" ; then : | |
13909 | ||
13910 | splsrc=${splsrc4} | |
13911 | ||
13912 | elif test -e "${splsrc5}/spl.release.in"; then : | |
13913 | ||
13914 | splsrc=$(readlink -f "${splsrc5}") | |
13915 | ||
13916 | elif test -e "${splsrc6}/spl.release.in" ; then : | |
13917 | ||
13918 | splsrc=${splsrc6} | |
13919 | ||
13920 | else | |
13921 | ||
13922 | splsrc="Not found" | |
13923 | ||
13924 | fi | |
13925 | ||
13926 | else | |
13927 | ||
13928 | if test "$splsrc" = "NONE"; then : | |
13929 | ||
13930 | splbuild=NONE | |
13931 | splsrcver=NONE | |
13932 | ||
13933 | fi | |
13934 | ||
13935 | fi | |
13936 | ||
13937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5 | |
13938 | $as_echo "$splsrc" >&6; } | |
13939 | if test ! -e "$splsrc/spl.release.in"; then : | |
13940 | ||
13941 | as_fn_error $? " | |
13942 | *** Please make sure the kmod spl devel package for your distribution | |
13943 | *** is installed then try again. If that fails you can specify the | |
13944 | *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5 | |
13945 | ||
13946 | fi | |
13947 | ||
13948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5 | |
13949 | $as_echo_n "checking spl build directory... " >&6; } | |
13950 | while true; do | |
13951 | if test -z "$splbuild"; then : | |
13952 | ||
13953 | if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then : | |
13954 | ||
13955 | splbuild="${splsrc}/${LINUX_VERSION}" | |
13956 | ||
13957 | elif test -e "${splsrc}/spl_config.h" ; then : | |
13958 | ||
13959 | splbuild="${splsrc}" | |
13960 | ||
13961 | elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then : | |
13962 | ||
13963 | splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,') | |
13964 | ||
13965 | else | |
13966 | ||
13967 | splbuild="Not found" | |
13968 | ||
13969 | fi | |
13970 | ||
13971 | fi | |
13972 | if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then : | |
13973 | ||
13974 | break; | |
13975 | ||
13976 | else | |
13977 | ||
13978 | sleep 1 | |
13979 | timeout=$((timeout-1)) | |
13980 | ||
13981 | fi | |
13982 | done | |
13983 | ||
13984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5 | |
13985 | $as_echo "$splbuild" >&6; } | |
13986 | if ! test -e "$splbuild/spl_config.h"; then : | |
13987 | ||
13988 | as_fn_error $? " | |
13989 | *** Please make sure the kmod spl devel <kernel> package for your | |
13990 | *** distribution is installed then try again. If that fails you | |
13991 | *** can specify the location of the spl objects with the | |
13992 | *** '--with-spl-obj=PATH' option." "$LINENO" 5 | |
13993 | ||
13994 | fi | |
13995 | ||
13996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5 | |
13997 | $as_echo_n "checking spl source version... " >&6; } | |
13998 | if test -r $splbuild/spl_config.h && | |
13999 | fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then : | |
14000 | ||
14001 | ||
14002 | splsrcver=`(echo "#include <spl_config.h>"; | |
14003 | echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") | | |
14004 | cpp -I $splbuild | | |
14005 | grep "^splsrcver=" | tr -d \" | cut -d= -f2` | |
14006 | ||
14007 | fi | |
14008 | ||
14009 | if test -z "$splsrcver"; then : | |
14010 | ||
14011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
14012 | $as_echo "Not found" >&6; } | |
14013 | as_fn_error $? " | |
14014 | *** Cannot determine the version of the spl source. | |
14015 | *** Please prepare the spl source before running this script" "$LINENO" 5 | |
14016 | ||
14017 | fi | |
14018 | ||
14019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5 | |
14020 | $as_echo "$splsrcver" >&6; } | |
14021 | ||
14022 | SPL=${splsrc} | |
14023 | SPL_OBJ=${splbuild} | |
14024 | SPL_VERSION=${splsrcver} | |
14025 | ||
14026 | ||
14027 | ||
14028 | ||
14029 | ||
14030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5 | |
14031 | $as_echo_n "checking spl file name for module symbols... " >&6; } | |
14032 | SPL_SYMBOLS=NONE | |
14033 | ||
14034 | while true; do | |
14035 | if test -r $SPL_OBJ/Module.symvers; then : | |
14036 | ||
14037 | SPL_SYMBOLS=Module.symvers | |
14038 | ||
14039 | elif test -r $SPL_OBJ/Modules.symvers; then : | |
14040 | ||
14041 | SPL_SYMBOLS=Modules.symvers | |
14042 | ||
14043 | elif test -r $SPL_OBJ/module/Module.symvers; then : | |
14044 | ||
14045 | SPL_SYMBOLS=Module.symvers | |
14046 | ||
14047 | elif test -r $SPL_OBJ/module/Modules.symvers; then : | |
14048 | ||
14049 | SPL_SYMBOLS=Modules.symvers | |
14050 | ||
14051 | fi | |
14052 | ||
14053 | if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then : | |
14054 | ||
14055 | break; | |
14056 | ||
14057 | else | |
14058 | ||
14059 | sleep 1 | |
14060 | timeout=$((timeout-1)) | |
14061 | ||
14062 | fi | |
14063 | done | |
14064 | ||
14065 | if test "$SPL_SYMBOLS" = NONE; then : | |
14066 | ||
14067 | SPL_SYMBOLS=$LINUX_SYMBOLS | |
14068 | ||
14069 | fi | |
14070 | ||
14071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5 | |
14072 | $as_echo "$SPL_SYMBOLS" >&6; } | |
14073 | ||
14074 | ||
14075 | ||
14076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5 | |
14077 | $as_echo_n "checking whether modules can be built... " >&6; } | |
14078 | ||
14079 | ||
14080 | cat confdefs.h - <<_ACEOF >conftest.c | |
14081 | ||
14082 | ||
14083 | int | |
14084 | main (void) | |
14085 | { | |
14086 | ||
14087 | ; | |
14088 | return 0; | |
14089 | } | |
14090 | ||
14091 | _ACEOF | |
14092 | ||
14093 | ||
14094 | ||
14095 | cat - <<_ACEOF >conftest.h | |
14096 | ||
14097 | _ACEOF | |
14098 | ||
14099 | ||
14100 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14101 | echo "obj-m := conftest.o" >build/Makefile | |
14102 | modpost_flag='' | |
14103 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14104 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14105 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14106 | (eval $ac_try) 2>&5 | |
14107 | ac_status=$? | |
14108 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14109 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14110 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14111 | (eval $ac_try) 2>&5 | |
14112 | ac_status=$? | |
14113 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14114 | test $ac_status = 0; }; }; then : | |
14115 | ||
14116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14117 | $as_echo "yes" >&6; } | |
14118 | ||
14119 | else | |
14120 | $as_echo "$as_me: failed program was:" >&5 | |
14121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14122 | ||
14123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14124 | $as_echo "no" >&6; } | |
14125 | if test "x$enable_linux_builtin" != xyes; then | |
14126 | as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5 | |
14127 | else | |
14128 | as_fn_error $? " | |
14129 | *** Unable to build an empty module. | |
14130 | *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5 | |
14131 | fi | |
14132 | ||
14133 | ||
14134 | ||
14135 | fi | |
14136 | rm -Rf build | |
14137 | ||
14138 | ||
14139 | ||
14140 | ||
14141 | if test "x$cross_compiling" != xyes; then : | |
14142 | ||
14143 | if test "$cross_compiling" = yes; then : | |
14144 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14145 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14146 | as_fn_error $? "cannot run test program while cross compiling | |
14147 | See \`config.log' for more details" "$LINENO" 5; } | |
14148 | else | |
14149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14150 | /* end confdefs.h. */ | |
14151 | ||
14152 | ||
14153 | #include "$LINUX/include/linux/license.h" | |
14154 | ||
14155 | int | |
14156 | main () | |
14157 | { | |
14158 | ||
14159 | return !license_is_gpl_compatible("$ZFS_META_LICENSE"); | |
14160 | ||
14161 | ; | |
14162 | return 0; | |
14163 | } | |
14164 | ||
14165 | _ACEOF | |
14166 | if ac_fn_c_try_run "$LINENO"; then : | |
14167 | ||
14168 | ||
14169 | $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h | |
14170 | ||
14171 | ||
14172 | fi | |
14173 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14174 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14175 | fi | |
14176 | ||
14177 | ||
14178 | fi | |
14179 | ||
14180 | ||
14181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5 | |
14182 | $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; } | |
14183 | ||
14184 | ||
14185 | cat confdefs.h - <<_ACEOF >conftest.c | |
14186 | ||
14187 | ||
14188 | #include <linux/module.h> | |
14189 | ||
14190 | int | |
14191 | main (void) | |
14192 | { | |
14193 | ||
14194 | #if (THREAD_SIZE < 16384) | |
14195 | #error "THREAD_SIZE is less than 16K" | |
14196 | #endif | |
14197 | ||
14198 | ; | |
14199 | return 0; | |
14200 | } | |
14201 | ||
14202 | _ACEOF | |
14203 | ||
14204 | ||
14205 | ||
14206 | cat - <<_ACEOF >conftest.h | |
14207 | ||
14208 | _ACEOF | |
14209 | ||
14210 | ||
14211 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14212 | echo "obj-m := conftest.o" >build/Makefile | |
14213 | modpost_flag='' | |
14214 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14215 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14216 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14217 | (eval $ac_try) 2>&5 | |
14218 | ac_status=$? | |
14219 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14220 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14221 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14222 | (eval $ac_try) 2>&5 | |
14223 | ac_status=$? | |
14224 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14225 | test $ac_status = 0; }; }; then : | |
14226 | ||
14227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14228 | $as_echo "yes" >&6; } | |
14229 | ||
14230 | $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h | |
14231 | ||
14232 | ||
14233 | else | |
14234 | $as_echo "$as_me: failed program was:" >&5 | |
14235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14236 | ||
14237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14238 | $as_echo "no" >&6; } | |
14239 | ||
14240 | ||
14241 | ||
14242 | fi | |
14243 | rm -Rf build | |
14244 | ||
14245 | ||
14246 | ||
14247 | ||
14248 | ||
14249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5 | |
14250 | $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; } | |
14251 | ||
14252 | ||
14253 | cat confdefs.h - <<_ACEOF >conftest.c | |
14254 | ||
14255 | ||
14256 | #include <linux/module.h> | |
14257 | ||
14258 | int | |
14259 | main (void) | |
14260 | { | |
14261 | ||
14262 | #ifndef CONFIG_DEBUG_LOCK_ALLOC | |
14263 | #error CONFIG_DEBUG_LOCK_ALLOC not #defined | |
14264 | #endif | |
14265 | ||
14266 | ; | |
14267 | return 0; | |
14268 | } | |
14269 | ||
14270 | _ACEOF | |
14271 | ||
14272 | ||
14273 | ||
14274 | cat - <<_ACEOF >conftest.h | |
14275 | ||
14276 | _ACEOF | |
14277 | ||
14278 | ||
14279 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14280 | echo "obj-m := conftest.o" >build/Makefile | |
14281 | modpost_flag='' | |
14282 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14283 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14284 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14285 | (eval $ac_try) 2>&5 | |
14286 | ac_status=$? | |
14287 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14288 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
14294 | ||
14295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14296 | $as_echo "yes" >&6; } | |
14297 | ||
14298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5 | |
14299 | $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; } | |
14300 | tmp_flags="$EXTRA_KCFLAGS" | |
14301 | ||
14302 | ||
14303 | cat confdefs.h - <<_ACEOF >conftest.c | |
14304 | ||
14305 | ||
14306 | #include <linux/module.h> | |
14307 | #include <linux/mutex.h> | |
14308 | ||
14309 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
14310 | ||
14311 | int | |
14312 | main (void) | |
14313 | { | |
14314 | ||
14315 | struct mutex lock; | |
14316 | ||
14317 | mutex_init(&lock); | |
14318 | mutex_lock(&lock); | |
14319 | mutex_unlock(&lock); | |
14320 | ||
14321 | ; | |
14322 | return 0; | |
14323 | } | |
14324 | ||
14325 | _ACEOF | |
14326 | ||
14327 | ||
14328 | ||
14329 | cat - <<_ACEOF >conftest.h | |
14330 | ||
14331 | _ACEOF | |
14332 | ||
14333 | ||
14334 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14335 | echo "obj-m := conftest.o" >build/Makefile | |
14336 | modpost_flag='' | |
14337 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14338 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14339 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14340 | (eval $ac_try) 2>&5 | |
14341 | ac_status=$? | |
14342 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14343 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14344 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14345 | (eval $ac_try) 2>&5 | |
14346 | ac_status=$? | |
14347 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14348 | test $ac_status = 0; }; }; then : | |
14349 | ||
14350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14351 | $as_echo "no" >&6; } | |
14352 | ||
14353 | else | |
14354 | $as_echo "$as_me: failed program was:" >&5 | |
14355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14356 | ||
14357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14358 | $as_echo "yes" >&6; } | |
14359 | as_fn_error $? " | |
14360 | *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible | |
14361 | *** with the CDDL license and will prevent the module linking stage | |
14362 | *** from succeeding. You must rebuild your kernel without this | |
14363 | *** option enabled." "$LINENO" 5 | |
14364 | ||
14365 | ||
14366 | ||
14367 | fi | |
14368 | rm -Rf build | |
14369 | ||
14370 | ||
14371 | EXTRA_KCFLAGS="$tmp_flags" | |
14372 | ||
14373 | ||
14374 | else | |
14375 | $as_echo "$as_me: failed program was:" >&5 | |
14376 | sed '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 | ||
14383 | ||
14384 | fi | |
14385 | rm -Rf build | |
14386 | ||
14387 | ||
14388 | ||
14389 | ||
14390 | ||
14391 | ||
14392 | tmp_flags="$EXTRA_KCFLAGS" | |
14393 | EXTRA_KCFLAGS="-I\$(src)" | |
14394 | ||
14395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5 | |
14396 | $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; } | |
14397 | ||
14398 | ||
14399 | cat confdefs.h - <<_ACEOF >conftest.c | |
14400 | ||
14401 | ||
14402 | #include <linux/module.h> | |
14403 | MODULE_LICENSE(ZFS_META_LICENSE); | |
14404 | ||
14405 | #define CREATE_TRACE_POINTS | |
14406 | #include "conftest.h" | |
14407 | ||
14408 | int | |
14409 | main (void) | |
14410 | { | |
14411 | ||
14412 | trace_zfs_autoconf_event_one(1UL); | |
14413 | trace_zfs_autoconf_event_two(2UL); | |
14414 | ||
14415 | ; | |
14416 | return 0; | |
14417 | } | |
14418 | ||
14419 | _ACEOF | |
14420 | ||
14421 | ||
14422 | ||
14423 | cat - <<_ACEOF >conftest.h | |
14424 | ||
14425 | #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ) | |
14426 | #define _CONFTEST_H | |
14427 | ||
14428 | #undef TRACE_SYSTEM | |
14429 | #define TRACE_SYSTEM zfs | |
14430 | #include <linux/tracepoint.h> | |
14431 | ||
14432 | DECLARE_EVENT_CLASS(zfs_autoconf_event_class, | |
14433 | TP_PROTO(unsigned long i), | |
14434 | TP_ARGS(i), | |
14435 | TP_STRUCT__entry( | |
14436 | __field(unsigned long, i) | |
14437 | ), | |
14438 | TP_fast_assign( | |
14439 | __entry->i = i; | |
14440 | ), | |
14441 | TP_printk("i = %lu", __entry->i) | |
14442 | ); | |
14443 | ||
14444 | #define DEFINE_AUTOCONF_EVENT(name) \ | |
14445 | DEFINE_EVENT(zfs_autoconf_event_class, name, \ | |
14446 | TP_PROTO(unsigned long i), \ | |
14447 | TP_ARGS(i)) | |
14448 | DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one); | |
14449 | DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two); | |
14450 | ||
14451 | #endif /* _CONFTEST_H */ | |
14452 | ||
14453 | #undef TRACE_INCLUDE_PATH | |
14454 | #define TRACE_INCLUDE_PATH . | |
14455 | #define TRACE_INCLUDE_FILE conftest | |
14456 | #include <trace/define_trace.h> | |
14457 | ||
14458 | _ACEOF | |
14459 | ||
14460 | ||
14461 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14462 | echo "obj-m := conftest.o" >build/Makefile | |
14463 | modpost_flag='' | |
14464 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14465 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14466 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14467 | (eval $ac_try) 2>&5 | |
14468 | ac_status=$? | |
14469 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14470 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14471 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14472 | (eval $ac_try) 2>&5 | |
14473 | ac_status=$? | |
14474 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14475 | test $ac_status = 0; }; }; then : | |
14476 | ||
14477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14478 | $as_echo "yes" >&6; } | |
14479 | ||
14480 | $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h | |
14481 | ||
14482 | ||
14483 | else | |
14484 | $as_echo "$as_me: failed program was:" >&5 | |
14485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14486 | ||
14487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14488 | $as_echo "no" >&6; } | |
14489 | ||
14490 | ||
14491 | ||
14492 | fi | |
14493 | rm -Rf build | |
14494 | ||
14495 | ||
14496 | EXTRA_KCFLAGS="$tmp_flags" | |
14497 | ||
14498 | ||
14499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5 | |
14500 | $as_echo_n "checking whether current->bio_tail exists... " >&6; } | |
14501 | ||
14502 | ||
14503 | cat confdefs.h - <<_ACEOF >conftest.c | |
14504 | ||
14505 | ||
14506 | #include <linux/sched.h> | |
14507 | ||
14508 | int | |
14509 | main (void) | |
14510 | { | |
14511 | ||
14512 | current->bio_tail = (struct bio **) NULL; | |
14513 | ||
14514 | ; | |
14515 | return 0; | |
14516 | } | |
14517 | ||
14518 | _ACEOF | |
14519 | ||
14520 | ||
14521 | ||
14522 | cat - <<_ACEOF >conftest.h | |
14523 | ||
14524 | _ACEOF | |
14525 | ||
14526 | ||
14527 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14528 | echo "obj-m := conftest.o" >build/Makefile | |
14529 | modpost_flag='' | |
14530 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14531 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14532 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14533 | (eval $ac_try) 2>&5 | |
14534 | ac_status=$? | |
14535 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14536 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14537 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14538 | (eval $ac_try) 2>&5 | |
14539 | ac_status=$? | |
14540 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14541 | test $ac_status = 0; }; }; then : | |
14542 | ||
14543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14544 | $as_echo "yes" >&6; } | |
14545 | ||
14546 | $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h | |
14547 | ||
14548 | ||
14549 | else | |
14550 | $as_echo "$as_me: failed program was:" >&5 | |
14551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14552 | ||
14553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14554 | $as_echo "no" >&6; } | |
14555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5 | |
14556 | $as_echo_n "checking whether current->bio_list exists... " >&6; } | |
14557 | ||
14558 | ||
14559 | cat confdefs.h - <<_ACEOF >conftest.c | |
14560 | ||
14561 | ||
14562 | #include <linux/sched.h> | |
14563 | ||
14564 | int | |
14565 | main (void) | |
14566 | { | |
14567 | ||
14568 | current->bio_list = (struct bio_list *) NULL; | |
14569 | ||
14570 | ; | |
14571 | return 0; | |
14572 | } | |
14573 | ||
14574 | _ACEOF | |
14575 | ||
14576 | ||
14577 | ||
14578 | cat - <<_ACEOF >conftest.h | |
14579 | ||
14580 | _ACEOF | |
14581 | ||
14582 | ||
14583 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14584 | echo "obj-m := conftest.o" >build/Makefile | |
14585 | modpost_flag='' | |
14586 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14587 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14588 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14589 | (eval $ac_try) 2>&5 | |
14590 | ac_status=$? | |
14591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14592 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14593 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14594 | (eval $ac_try) 2>&5 | |
14595 | ac_status=$? | |
14596 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14597 | test $ac_status = 0; }; }; then : | |
14598 | ||
14599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14600 | $as_echo "yes" >&6; } | |
14601 | ||
14602 | $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h | |
14603 | ||
14604 | ||
14605 | else | |
14606 | $as_echo "$as_me: failed program was:" >&5 | |
14607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14608 | ||
14609 | as_fn_error $? "no - Please file a bug report at | |
14610 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
14611 | ||
14612 | ||
14613 | ||
14614 | fi | |
14615 | rm -Rf build | |
14616 | ||
14617 | ||
14618 | ||
14619 | ||
14620 | ||
14621 | fi | |
14622 | rm -Rf build | |
14623 | ||
14624 | ||
14625 | ||
14626 | ||
14627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5 | |
14628 | $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; } | |
14629 | ||
14630 | ||
14631 | cat confdefs.h - <<_ACEOF >conftest.c | |
14632 | ||
14633 | ||
14634 | #include <linux/bio.h> | |
14635 | ||
14636 | int | |
14637 | main (void) | |
14638 | { | |
14639 | ||
14640 | blk_qc_t blk_qc; | |
14641 | struct bio *bio = NULL; | |
14642 | blk_qc = submit_bio(bio); | |
14643 | ||
14644 | ; | |
14645 | return 0; | |
14646 | } | |
14647 | ||
14648 | _ACEOF | |
14649 | ||
14650 | ||
14651 | ||
14652 | cat - <<_ACEOF >conftest.h | |
14653 | ||
14654 | _ACEOF | |
14655 | ||
14656 | ||
14657 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14658 | echo "obj-m := conftest.o" >build/Makefile | |
14659 | modpost_flag='' | |
14660 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14661 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14662 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14663 | (eval $ac_try) 2>&5 | |
14664 | ac_status=$? | |
14665 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14666 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14667 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14668 | (eval $ac_try) 2>&5 | |
14669 | ac_status=$? | |
14670 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14671 | test $ac_status = 0; }; }; then : | |
14672 | ||
14673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14674 | $as_echo "yes" >&6; } | |
14675 | ||
14676 | $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h | |
14677 | ||
14678 | ||
14679 | else | |
14680 | $as_echo "$as_me: failed program was:" >&5 | |
14681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14682 | ||
14683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14684 | $as_echo "no" >&6; } | |
14685 | ||
14686 | ||
14687 | ||
14688 | fi | |
14689 | rm -Rf build | |
14690 | ||
14691 | ||
14692 | ||
14693 | ||
14694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5 | |
14695 | $as_echo_n "checking block device operation prototypes... " >&6; } | |
14696 | tmp_flags="$EXTRA_KCFLAGS" | |
14697 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
14698 | ||
14699 | ||
14700 | cat confdefs.h - <<_ACEOF >conftest.c | |
14701 | ||
14702 | ||
14703 | #include <linux/blkdev.h> | |
14704 | ||
14705 | int blk_open(struct block_device *bdev, fmode_t mode) | |
14706 | { return 0; } | |
14707 | int blk_ioctl(struct block_device *bdev, fmode_t mode, | |
14708 | unsigned x, unsigned long y) { return 0; } | |
14709 | int blk_compat_ioctl(struct block_device * bdev, fmode_t mode, | |
14710 | unsigned x, unsigned long y) { return 0; } | |
14711 | ||
14712 | static const struct block_device_operations | |
14713 | bops __attribute__ ((unused)) = { | |
14714 | .open = blk_open, | |
14715 | .release = NULL, | |
14716 | .ioctl = blk_ioctl, | |
14717 | .compat_ioctl = blk_compat_ioctl, | |
14718 | }; | |
14719 | ||
14720 | int | |
14721 | main (void) | |
14722 | { | |
14723 | ||
14724 | ||
14725 | ; | |
14726 | return 0; | |
14727 | } | |
14728 | ||
14729 | _ACEOF | |
14730 | ||
14731 | ||
14732 | ||
14733 | cat - <<_ACEOF >conftest.h | |
14734 | ||
14735 | _ACEOF | |
14736 | ||
14737 | ||
14738 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14739 | echo "obj-m := conftest.o" >build/Makefile | |
14740 | modpost_flag='' | |
14741 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14742 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14743 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14744 | (eval $ac_try) 2>&5 | |
14745 | ac_status=$? | |
14746 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14747 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14748 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14749 | (eval $ac_try) 2>&5 | |
14750 | ac_status=$? | |
14751 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14752 | test $ac_status = 0; }; }; then : | |
14753 | ||
14754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5 | |
14755 | $as_echo "struct block_device" >&6; } | |
14756 | ||
14757 | $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h | |
14758 | ||
14759 | ||
14760 | else | |
14761 | $as_echo "$as_me: failed program was:" >&5 | |
14762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14763 | ||
14764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5 | |
14765 | $as_echo "struct inode" >&6; } | |
14766 | ||
14767 | ||
14768 | ||
14769 | fi | |
14770 | rm -Rf build | |
14771 | ||
14772 | ||
14773 | EXTRA_KCFLAGS="$tmp_flags" | |
14774 | ||
14775 | ||
14776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5 | |
14777 | $as_echo_n "checking whether block_device_operations.release is void... " >&6; } | |
14778 | tmp_flags="$EXTRA_KCFLAGS" | |
14779 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
14780 | ||
14781 | ||
14782 | cat confdefs.h - <<_ACEOF >conftest.c | |
14783 | ||
14784 | ||
14785 | #include <linux/blkdev.h> | |
14786 | ||
14787 | void blk_release(struct gendisk *g, fmode_t mode) { return; } | |
14788 | ||
14789 | static const struct block_device_operations | |
14790 | bops __attribute__ ((unused)) = { | |
14791 | .open = NULL, | |
14792 | .release = blk_release, | |
14793 | .ioctl = NULL, | |
14794 | .compat_ioctl = NULL, | |
14795 | }; | |
14796 | ||
14797 | int | |
14798 | main (void) | |
14799 | { | |
14800 | ||
14801 | ||
14802 | ; | |
14803 | return 0; | |
14804 | } | |
14805 | ||
14806 | _ACEOF | |
14807 | ||
14808 | ||
14809 | ||
14810 | cat - <<_ACEOF >conftest.h | |
14811 | ||
14812 | _ACEOF | |
14813 | ||
14814 | ||
14815 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14816 | echo "obj-m := conftest.o" >build/Makefile | |
14817 | modpost_flag='' | |
14818 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14819 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14820 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14821 | (eval $ac_try) 2>&5 | |
14822 | ac_status=$? | |
14823 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14824 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14825 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14826 | (eval $ac_try) 2>&5 | |
14827 | ac_status=$? | |
14828 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14829 | test $ac_status = 0; }; }; then : | |
14830 | ||
14831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5 | |
14832 | $as_echo "void" >&6; } | |
14833 | ||
14834 | $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h | |
14835 | ||
14836 | ||
14837 | else | |
14838 | $as_echo "$as_me: failed program was:" >&5 | |
14839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14840 | ||
14841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 | |
14842 | $as_echo "int" >&6; } | |
14843 | ||
14844 | ||
14845 | ||
14846 | fi | |
14847 | rm -Rf build | |
14848 | ||
14849 | ||
14850 | EXTRA_KCFLAGS="$tmp_flags" | |
14851 | ||
14852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5 | |
14853 | $as_echo_n "checking whether kernel defines fmode_t... " >&6; } | |
14854 | ||
14855 | ||
14856 | cat confdefs.h - <<_ACEOF >conftest.c | |
14857 | ||
14858 | ||
14859 | #include <linux/types.h> | |
14860 | ||
14861 | int | |
14862 | main (void) | |
14863 | { | |
14864 | ||
14865 | fmode_t *ptr __attribute__ ((unused)); | |
14866 | ||
14867 | ; | |
14868 | return 0; | |
14869 | } | |
14870 | ||
14871 | _ACEOF | |
14872 | ||
14873 | ||
14874 | ||
14875 | cat - <<_ACEOF >conftest.h | |
14876 | ||
14877 | _ACEOF | |
14878 | ||
14879 | ||
14880 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14881 | echo "obj-m := conftest.o" >build/Makefile | |
14882 | modpost_flag='' | |
14883 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14884 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14885 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14886 | (eval $ac_try) 2>&5 | |
14887 | ac_status=$? | |
14888 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14889 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14890 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14891 | (eval $ac_try) 2>&5 | |
14892 | ac_status=$? | |
14893 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14894 | test $ac_status = 0; }; }; then : | |
14895 | ||
14896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14897 | $as_echo "yes" >&6; } | |
14898 | ||
14899 | $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h | |
14900 | ||
14901 | ||
14902 | else | |
14903 | $as_echo "$as_me: failed program was:" >&5 | |
14904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14905 | ||
14906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14907 | $as_echo "no" >&6; } | |
14908 | ||
14909 | ||
14910 | ||
14911 | fi | |
14912 | rm -Rf build | |
14913 | ||
14914 | ||
14915 | ||
14916 | ||
14917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5 | |
14918 | $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; } | |
14919 | ||
14920 | ||
14921 | cat confdefs.h - <<_ACEOF >conftest.c | |
14922 | ||
14923 | ||
14924 | #include <linux/kobject.h> | |
14925 | ||
14926 | int | |
14927 | main (void) | |
14928 | { | |
14929 | ||
14930 | int val __attribute__ ((unused)); | |
14931 | val = KOBJ_NAME_LEN; | |
14932 | ||
14933 | ; | |
14934 | return 0; | |
14935 | } | |
14936 | ||
14937 | _ACEOF | |
14938 | ||
14939 | ||
14940 | ||
14941 | cat - <<_ACEOF >conftest.h | |
14942 | ||
14943 | _ACEOF | |
14944 | ||
14945 | ||
14946 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14947 | echo "obj-m := conftest.o" >build/Makefile | |
14948 | modpost_flag='' | |
14949 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14950 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14951 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14952 | (eval $ac_try) 2>&5 | |
14953 | ac_status=$? | |
14954 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14955 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14956 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14957 | (eval $ac_try) 2>&5 | |
14958 | ac_status=$? | |
14959 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14960 | test $ac_status = 0; }; }; then : | |
14961 | ||
14962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14963 | $as_echo "yes" >&6; } | |
14964 | ||
14965 | $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h | |
14966 | ||
14967 | ||
14968 | else | |
14969 | $as_echo "$as_me: failed program was:" >&5 | |
14970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14971 | ||
14972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14973 | $as_echo "no" >&6; } | |
14974 | ||
14975 | ||
14976 | ||
14977 | fi | |
14978 | rm -Rf build | |
14979 | ||
14980 | ||
14981 | ||
14982 | ||
14983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5 | |
14984 | $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; } | |
14985 | ||
14986 | ||
14987 | cat confdefs.h - <<_ACEOF >conftest.c | |
14988 | ||
14989 | ||
14990 | #include <linux/fs.h> | |
14991 | ||
14992 | int | |
14993 | main (void) | |
14994 | { | |
14995 | ||
14996 | struct block_device *bdev = NULL; | |
14997 | (void) blkdev_get(bdev, 0, NULL); | |
14998 | ||
14999 | ; | |
15000 | return 0; | |
15001 | } | |
15002 | ||
15003 | _ACEOF | |
15004 | ||
15005 | ||
15006 | ||
15007 | cat - <<_ACEOF >conftest.h | |
15008 | ||
15009 | _ACEOF | |
15010 | ||
15011 | ||
15012 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15013 | echo "obj-m := conftest.o" >build/Makefile | |
15014 | modpost_flag='' | |
15015 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15016 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15017 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15018 | (eval $ac_try) 2>&5 | |
15019 | ac_status=$? | |
15020 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15021 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15022 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15023 | (eval $ac_try) 2>&5 | |
15024 | ac_status=$? | |
15025 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15026 | test $ac_status = 0; }; }; then : | |
15027 | ||
15028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15029 | $as_echo "yes" >&6; } | |
15030 | ||
15031 | $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h | |
15032 | ||
15033 | ||
15034 | else | |
15035 | $as_echo "$as_me: failed program was:" >&5 | |
15036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15037 | ||
15038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15039 | $as_echo "no" >&6; } | |
15040 | ||
15041 | ||
15042 | ||
15043 | fi | |
15044 | rm -Rf build | |
15045 | ||
15046 | ||
15047 | ||
15048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5 | |
15049 | $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; } | |
15050 | ||
15051 | ||
15052 | ||
15053 | cat confdefs.h - <<_ACEOF >conftest.c | |
15054 | ||
15055 | ||
15056 | #include <linux/fs.h> | |
15057 | ||
15058 | int | |
15059 | main (void) | |
15060 | { | |
15061 | ||
15062 | blkdev_get_by_path(NULL, 0, NULL); | |
15063 | ||
15064 | ; | |
15065 | return 0; | |
15066 | } | |
15067 | ||
15068 | _ACEOF | |
15069 | ||
15070 | ||
15071 | ||
15072 | cat - <<_ACEOF >conftest.h | |
15073 | ||
15074 | _ACEOF | |
15075 | ||
15076 | ||
15077 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15078 | echo "obj-m := conftest.o" >build/Makefile | |
15079 | modpost_flag='' | |
15080 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15081 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15082 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15083 | (eval $ac_try) 2>&5 | |
15084 | ac_status=$? | |
15085 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15086 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15087 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15088 | (eval $ac_try) 2>&5 | |
15089 | ac_status=$? | |
15090 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15091 | test $ac_status = 0; }; }; then : | |
15092 | rc=0 | |
15093 | else | |
15094 | $as_echo "$as_me: failed program was:" >&5 | |
15095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15096 | rc=1 | |
15097 | ||
15098 | ||
15099 | fi | |
15100 | rm -Rf build | |
15101 | ||
15102 | ||
15103 | if test $rc -ne 0; then : | |
15104 | ||
15105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15106 | $as_echo "no" >&6; } | |
15107 | ||
15108 | else | |
15109 | if test "x$enable_linux_builtin" != xyes; then | |
15110 | ||
15111 | grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \ | |
15112 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
15113 | rc=$? | |
15114 | if test $rc -ne 0; then | |
15115 | export=0 | |
15116 | for file in fs/block_dev.c; do | |
15117 | grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \ | |
15118 | "$LINUX/$file" 2>/dev/null | |
15119 | rc=$? | |
15120 | if test $rc -eq 0; then | |
15121 | export=1 | |
15122 | break; | |
15123 | fi | |
15124 | done | |
15125 | if test $export -eq 0; then : | |
15126 | rc=1 | |
15127 | else : | |
15128 | rc=0 | |
15129 | fi | |
15130 | else : | |
15131 | rc=0 | |
15132 | fi | |
15133 | ||
15134 | fi | |
15135 | if test $rc -ne 0; then : | |
15136 | ||
15137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15138 | $as_echo "no" >&6; } | |
15139 | ||
15140 | else : | |
15141 | ||
15142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15143 | $as_echo "yes" >&6; } | |
15144 | ||
15145 | $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h | |
15146 | ||
15147 | ||
15148 | fi | |
15149 | fi | |
15150 | ||
15151 | ||
15152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5 | |
15153 | $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; } | |
15154 | ||
15155 | ||
15156 | ||
15157 | cat confdefs.h - <<_ACEOF >conftest.c | |
15158 | ||
15159 | ||
15160 | #include <linux/fs.h> | |
15161 | ||
15162 | int | |
15163 | main (void) | |
15164 | { | |
15165 | ||
15166 | open_bdev_exclusive(NULL, 0, NULL); | |
15167 | ||
15168 | ; | |
15169 | return 0; | |
15170 | } | |
15171 | ||
15172 | _ACEOF | |
15173 | ||
15174 | ||
15175 | ||
15176 | cat - <<_ACEOF >conftest.h | |
15177 | ||
15178 | _ACEOF | |
15179 | ||
15180 | ||
15181 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15182 | echo "obj-m := conftest.o" >build/Makefile | |
15183 | modpost_flag='' | |
15184 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15185 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15186 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15187 | (eval $ac_try) 2>&5 | |
15188 | ac_status=$? | |
15189 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15190 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15191 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15192 | (eval $ac_try) 2>&5 | |
15193 | ac_status=$? | |
15194 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15195 | test $ac_status = 0; }; }; then : | |
15196 | rc=0 | |
15197 | else | |
15198 | $as_echo "$as_me: failed program was:" >&5 | |
15199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15200 | rc=1 | |
15201 | ||
15202 | ||
15203 | fi | |
15204 | rm -Rf build | |
15205 | ||
15206 | ||
15207 | if test $rc -ne 0; then : | |
15208 | ||
15209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15210 | $as_echo "no" >&6; } | |
15211 | ||
15212 | else | |
15213 | if test "x$enable_linux_builtin" != xyes; then | |
15214 | ||
15215 | grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \ | |
15216 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
15217 | rc=$? | |
15218 | if test $rc -ne 0; then | |
15219 | export=0 | |
15220 | for file in fs/block_dev.c; do | |
15221 | grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \ | |
15222 | "$LINUX/$file" 2>/dev/null | |
15223 | rc=$? | |
15224 | if test $rc -eq 0; then | |
15225 | export=1 | |
15226 | break; | |
15227 | fi | |
15228 | done | |
15229 | if test $export -eq 0; then : | |
15230 | rc=1 | |
15231 | else : | |
15232 | rc=0 | |
15233 | fi | |
15234 | else : | |
15235 | rc=0 | |
15236 | fi | |
15237 | ||
15238 | fi | |
15239 | if test $rc -ne 0; then : | |
15240 | ||
15241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15242 | $as_echo "no" >&6; } | |
15243 | ||
15244 | else : | |
15245 | ||
15246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15247 | $as_echo "yes" >&6; } | |
15248 | ||
15249 | $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h | |
15250 | ||
15251 | ||
15252 | fi | |
15253 | fi | |
15254 | ||
15255 | ||
15256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5 | |
15257 | $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; } | |
15258 | ||
15259 | ||
15260 | ||
15261 | cat confdefs.h - <<_ACEOF >conftest.c | |
15262 | ||
15263 | ||
15264 | #include <linux/fs.h> | |
15265 | ||
15266 | int | |
15267 | main (void) | |
15268 | { | |
15269 | ||
15270 | lookup_bdev(NULL); | |
15271 | ||
15272 | ; | |
15273 | return 0; | |
15274 | } | |
15275 | ||
15276 | _ACEOF | |
15277 | ||
15278 | ||
15279 | ||
15280 | cat - <<_ACEOF >conftest.h | |
15281 | ||
15282 | _ACEOF | |
15283 | ||
15284 | ||
15285 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15286 | echo "obj-m := conftest.o" >build/Makefile | |
15287 | modpost_flag='' | |
15288 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15289 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15290 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15291 | (eval $ac_try) 2>&5 | |
15292 | ac_status=$? | |
15293 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15294 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
15300 | rc=0 | |
15301 | else | |
15302 | $as_echo "$as_me: failed program was:" >&5 | |
15303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15304 | rc=1 | |
15305 | ||
15306 | ||
15307 | fi | |
15308 | rm -Rf build | |
15309 | ||
15310 | ||
15311 | if test $rc -ne 0; then : | |
15312 | ||
15313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15314 | $as_echo "no" >&6; } | |
15315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5 | |
15316 | $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; } | |
15317 | ||
15318 | ||
15319 | ||
15320 | cat confdefs.h - <<_ACEOF >conftest.c | |
15321 | ||
15322 | ||
15323 | #include <linux/fs.h> | |
15324 | ||
15325 | int | |
15326 | main (void) | |
15327 | { | |
15328 | ||
15329 | lookup_bdev(NULL, FMODE_READ); | |
15330 | ||
15331 | ; | |
15332 | return 0; | |
15333 | } | |
15334 | ||
15335 | _ACEOF | |
15336 | ||
15337 | ||
15338 | ||
15339 | cat - <<_ACEOF >conftest.h | |
15340 | ||
15341 | _ACEOF | |
15342 | ||
15343 | ||
15344 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15345 | echo "obj-m := conftest.o" >build/Makefile | |
15346 | modpost_flag='' | |
15347 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15348 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15349 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15350 | (eval $ac_try) 2>&5 | |
15351 | ac_status=$? | |
15352 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15353 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15354 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15355 | (eval $ac_try) 2>&5 | |
15356 | ac_status=$? | |
15357 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15358 | test $ac_status = 0; }; }; then : | |
15359 | rc=0 | |
15360 | else | |
15361 | $as_echo "$as_me: failed program was:" >&5 | |
15362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15363 | rc=1 | |
15364 | ||
15365 | ||
15366 | fi | |
15367 | rm -Rf build | |
15368 | ||
15369 | ||
15370 | if test $rc -ne 0; then : | |
15371 | ||
15372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15373 | $as_echo "no" >&6; } | |
15374 | ||
15375 | else | |
15376 | if test "x$enable_linux_builtin" != xyes; then | |
15377 | ||
15378 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
15379 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
15380 | rc=$? | |
15381 | if test $rc -ne 0; then | |
15382 | export=0 | |
15383 | for file in fs/block_dev.c; do | |
15384 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
15385 | "$LINUX/$file" 2>/dev/null | |
15386 | rc=$? | |
15387 | if test $rc -eq 0; then | |
15388 | export=1 | |
15389 | break; | |
15390 | fi | |
15391 | done | |
15392 | if test $export -eq 0; then : | |
15393 | rc=1 | |
15394 | else : | |
15395 | rc=0 | |
15396 | fi | |
15397 | else : | |
15398 | rc=0 | |
15399 | fi | |
15400 | ||
15401 | fi | |
15402 | if test $rc -ne 0; then : | |
15403 | ||
15404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15405 | $as_echo "no" >&6; } | |
15406 | ||
15407 | else : | |
15408 | ||
15409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15410 | $as_echo "yes" >&6; } | |
15411 | ||
15412 | $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h | |
15413 | ||
15414 | ||
15415 | fi | |
15416 | fi | |
15417 | ||
15418 | ||
15419 | else | |
15420 | if test "x$enable_linux_builtin" != xyes; then | |
15421 | ||
15422 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
15423 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
15424 | rc=$? | |
15425 | if test $rc -ne 0; then | |
15426 | export=0 | |
15427 | for file in fs/block_dev.c; do | |
15428 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
15429 | "$LINUX/$file" 2>/dev/null | |
15430 | rc=$? | |
15431 | if test $rc -eq 0; then | |
15432 | export=1 | |
15433 | break; | |
15434 | fi | |
15435 | done | |
15436 | if test $export -eq 0; then : | |
15437 | rc=1 | |
15438 | else : | |
15439 | rc=0 | |
15440 | fi | |
15441 | else : | |
15442 | rc=0 | |
15443 | fi | |
15444 | ||
15445 | fi | |
15446 | if test $rc -ne 0; then : | |
15447 | ||
15448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15449 | $as_echo "no" >&6; } | |
15450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5 | |
15451 | $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; } | |
15452 | ||
15453 | ||
15454 | ||
15455 | cat confdefs.h - <<_ACEOF >conftest.c | |
15456 | ||
15457 | ||
15458 | #include <linux/fs.h> | |
15459 | ||
15460 | int | |
15461 | main (void) | |
15462 | { | |
15463 | ||
15464 | lookup_bdev(NULL, FMODE_READ); | |
15465 | ||
15466 | ; | |
15467 | return 0; | |
15468 | } | |
15469 | ||
15470 | _ACEOF | |
15471 | ||
15472 | ||
15473 | ||
15474 | cat - <<_ACEOF >conftest.h | |
15475 | ||
15476 | _ACEOF | |
15477 | ||
15478 | ||
15479 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15480 | echo "obj-m := conftest.o" >build/Makefile | |
15481 | modpost_flag='' | |
15482 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15483 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15484 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15485 | (eval $ac_try) 2>&5 | |
15486 | ac_status=$? | |
15487 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15488 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15489 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15490 | (eval $ac_try) 2>&5 | |
15491 | ac_status=$? | |
15492 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15493 | test $ac_status = 0; }; }; then : | |
15494 | rc=0 | |
15495 | else | |
15496 | $as_echo "$as_me: failed program was:" >&5 | |
15497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15498 | rc=1 | |
15499 | ||
15500 | ||
15501 | fi | |
15502 | rm -Rf build | |
15503 | ||
15504 | ||
15505 | if test $rc -ne 0; then : | |
15506 | ||
15507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15508 | $as_echo "no" >&6; } | |
15509 | ||
15510 | else | |
15511 | if test "x$enable_linux_builtin" != xyes; then | |
15512 | ||
15513 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
15514 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
15515 | rc=$? | |
15516 | if test $rc -ne 0; then | |
15517 | export=0 | |
15518 | for file in fs/block_dev.c; do | |
15519 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
15520 | "$LINUX/$file" 2>/dev/null | |
15521 | rc=$? | |
15522 | if test $rc -eq 0; then | |
15523 | export=1 | |
15524 | break; | |
15525 | fi | |
15526 | done | |
15527 | if test $export -eq 0; then : | |
15528 | rc=1 | |
15529 | else : | |
15530 | rc=0 | |
15531 | fi | |
15532 | else : | |
15533 | rc=0 | |
15534 | fi | |
15535 | ||
15536 | fi | |
15537 | if test $rc -ne 0; then : | |
15538 | ||
15539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15540 | $as_echo "no" >&6; } | |
15541 | ||
15542 | else : | |
15543 | ||
15544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15545 | $as_echo "yes" >&6; } | |
15546 | ||
15547 | $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h | |
15548 | ||
15549 | ||
15550 | fi | |
15551 | fi | |
15552 | ||
15553 | ||
15554 | else : | |
15555 | ||
15556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15557 | $as_echo "yes" >&6; } | |
15558 | ||
15559 | $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h | |
15560 | ||
15561 | ||
15562 | fi | |
15563 | fi | |
15564 | ||
15565 | ||
15566 | ||
15567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5 | |
15568 | $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; } | |
15569 | ||
15570 | ||
15571 | cat confdefs.h - <<_ACEOF >conftest.c | |
15572 | ||
15573 | ||
15574 | #include <linux/buffer_head.h> | |
15575 | ||
15576 | int | |
15577 | main (void) | |
15578 | { | |
15579 | ||
15580 | struct block_device *bdev = NULL; | |
15581 | invalidate_bdev(bdev); | |
15582 | ||
15583 | ; | |
15584 | return 0; | |
15585 | } | |
15586 | ||
15587 | _ACEOF | |
15588 | ||
15589 | ||
15590 | ||
15591 | cat - <<_ACEOF >conftest.h | |
15592 | ||
15593 | _ACEOF | |
15594 | ||
15595 | ||
15596 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15597 | echo "obj-m := conftest.o" >build/Makefile | |
15598 | modpost_flag='' | |
15599 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15600 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15601 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15602 | (eval $ac_try) 2>&5 | |
15603 | ac_status=$? | |
15604 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15605 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15606 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15607 | (eval $ac_try) 2>&5 | |
15608 | ac_status=$? | |
15609 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15610 | test $ac_status = 0; }; }; then : | |
15611 | ||
15612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15613 | $as_echo "yes" >&6; } | |
15614 | ||
15615 | $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h | |
15616 | ||
15617 | ||
15618 | else | |
15619 | $as_echo "$as_me: failed program was:" >&5 | |
15620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15621 | ||
15622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15623 | $as_echo "no" >&6; } | |
15624 | ||
15625 | ||
15626 | ||
15627 | fi | |
15628 | rm -Rf build | |
15629 | ||
15630 | ||
15631 | ||
15632 | ||
15633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5 | |
15634 | $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; } | |
15635 | tmp_flags="$EXTRA_KCFLAGS" | |
15636 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
15637 | ||
15638 | ||
15639 | cat confdefs.h - <<_ACEOF >conftest.c | |
15640 | ||
15641 | ||
15642 | #include <linux/blkdev.h> | |
15643 | ||
15644 | int | |
15645 | main (void) | |
15646 | { | |
15647 | ||
15648 | struct block_device *bdev = NULL; | |
15649 | bdev_logical_block_size(bdev); | |
15650 | ||
15651 | ; | |
15652 | return 0; | |
15653 | } | |
15654 | ||
15655 | _ACEOF | |
15656 | ||
15657 | ||
15658 | ||
15659 | cat - <<_ACEOF >conftest.h | |
15660 | ||
15661 | _ACEOF | |
15662 | ||
15663 | ||
15664 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15665 | echo "obj-m := conftest.o" >build/Makefile | |
15666 | modpost_flag='' | |
15667 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15668 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15669 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15670 | (eval $ac_try) 2>&5 | |
15671 | ac_status=$? | |
15672 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15673 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15674 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15675 | (eval $ac_try) 2>&5 | |
15676 | ac_status=$? | |
15677 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15678 | test $ac_status = 0; }; }; then : | |
15679 | ||
15680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15681 | $as_echo "yes" >&6; } | |
15682 | ||
15683 | $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h | |
15684 | ||
15685 | ||
15686 | else | |
15687 | $as_echo "$as_me: failed program was:" >&5 | |
15688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15689 | ||
15690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15691 | $as_echo "no" >&6; } | |
15692 | ||
15693 | ||
15694 | ||
15695 | fi | |
15696 | rm -Rf build | |
15697 | ||
15698 | ||
15699 | EXTRA_KCFLAGS="$tmp_flags" | |
15700 | ||
15701 | ||
15702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5 | |
15703 | $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; } | |
15704 | tmp_flags="$EXTRA_KCFLAGS" | |
15705 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
15706 | ||
15707 | ||
15708 | cat confdefs.h - <<_ACEOF >conftest.c | |
15709 | ||
15710 | ||
15711 | #include <linux/blkdev.h> | |
15712 | ||
15713 | int | |
15714 | main (void) | |
15715 | { | |
15716 | ||
15717 | struct block_device *bdev = NULL; | |
15718 | bdev_physical_block_size(bdev); | |
15719 | ||
15720 | ; | |
15721 | return 0; | |
15722 | } | |
15723 | ||
15724 | _ACEOF | |
15725 | ||
15726 | ||
15727 | ||
15728 | cat - <<_ACEOF >conftest.h | |
15729 | ||
15730 | _ACEOF | |
15731 | ||
15732 | ||
15733 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15734 | echo "obj-m := conftest.o" >build/Makefile | |
15735 | modpost_flag='' | |
15736 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15737 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15738 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15739 | (eval $ac_try) 2>&5 | |
15740 | ac_status=$? | |
15741 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15742 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15743 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15744 | (eval $ac_try) 2>&5 | |
15745 | ac_status=$? | |
15746 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15747 | test $ac_status = 0; }; }; then : | |
15748 | ||
15749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15750 | $as_echo "yes" >&6; } | |
15751 | ||
15752 | $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h | |
15753 | ||
15754 | ||
15755 | else | |
15756 | $as_echo "$as_me: failed program was:" >&5 | |
15757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15758 | ||
15759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15760 | $as_echo "no" >&6; } | |
15761 | ||
15762 | ||
15763 | ||
15764 | fi | |
15765 | rm -Rf build | |
15766 | ||
15767 | ||
15768 | EXTRA_KCFLAGS="$tmp_flags" | |
15769 | ||
15770 | ||
15771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5 | |
15772 | $as_echo_n "checking whether bio has bi_iter... " >&6; } | |
15773 | ||
15774 | ||
15775 | cat confdefs.h - <<_ACEOF >conftest.c | |
15776 | ||
15777 | ||
15778 | #include <linux/bio.h> | |
15779 | ||
15780 | int | |
15781 | main (void) | |
15782 | { | |
15783 | ||
15784 | struct bio bio; | |
15785 | bio.bi_iter.bi_sector = 0; | |
15786 | ||
15787 | ; | |
15788 | return 0; | |
15789 | } | |
15790 | ||
15791 | _ACEOF | |
15792 | ||
15793 | ||
15794 | ||
15795 | cat - <<_ACEOF >conftest.h | |
15796 | ||
15797 | _ACEOF | |
15798 | ||
15799 | ||
15800 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15801 | echo "obj-m := conftest.o" >build/Makefile | |
15802 | modpost_flag='' | |
15803 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15804 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15805 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15806 | (eval $ac_try) 2>&5 | |
15807 | ac_status=$? | |
15808 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15809 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15810 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15811 | (eval $ac_try) 2>&5 | |
15812 | ac_status=$? | |
15813 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15814 | test $ac_status = 0; }; }; then : | |
15815 | ||
15816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15817 | $as_echo "yes" >&6; } | |
15818 | ||
15819 | $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h | |
15820 | ||
15821 | ||
15822 | else | |
15823 | $as_echo "$as_me: failed program was:" >&5 | |
15824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15825 | ||
15826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15827 | $as_echo "no" >&6; } | |
15828 | ||
15829 | ||
15830 | ||
15831 | fi | |
15832 | rm -Rf build | |
15833 | ||
15834 | ||
15835 | ||
15836 | ||
15837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5 | |
15838 | $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; } | |
15839 | ||
15840 | ||
15841 | cat confdefs.h - <<_ACEOF >conftest.c | |
15842 | ||
15843 | ||
15844 | #include <linux/bio.h> | |
15845 | ||
15846 | int | |
15847 | main (void) | |
15848 | { | |
15849 | ||
15850 | int flags __attribute__ ((unused)); | |
15851 | flags = ((1 << BIO_RW_FAILFAST_DEV) | | |
15852 | (1 << BIO_RW_FAILFAST_TRANSPORT) | | |
15853 | (1 << BIO_RW_FAILFAST_DRIVER)); | |
15854 | ||
15855 | ; | |
15856 | return 0; | |
15857 | } | |
15858 | ||
15859 | _ACEOF | |
15860 | ||
15861 | ||
15862 | ||
15863 | cat - <<_ACEOF >conftest.h | |
15864 | ||
15865 | _ACEOF | |
15866 | ||
15867 | ||
15868 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15869 | echo "obj-m := conftest.o" >build/Makefile | |
15870 | modpost_flag='' | |
15871 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15872 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15873 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15874 | (eval $ac_try) 2>&5 | |
15875 | ac_status=$? | |
15876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15877 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15878 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15879 | (eval $ac_try) 2>&5 | |
15880 | ac_status=$? | |
15881 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15882 | test $ac_status = 0; }; }; then : | |
15883 | ||
15884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15885 | $as_echo "yes" >&6; } | |
15886 | ||
15887 | $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h | |
15888 | ||
15889 | ||
15890 | else | |
15891 | $as_echo "$as_me: failed program was:" >&5 | |
15892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15893 | ||
15894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15895 | $as_echo "no" >&6; } | |
15896 | ||
15897 | ||
15898 | ||
15899 | fi | |
15900 | rm -Rf build | |
15901 | ||
15902 | ||
15903 | ||
15904 | ||
15905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5 | |
15906 | $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; } | |
15907 | ||
15908 | ||
15909 | cat confdefs.h - <<_ACEOF >conftest.c | |
15910 | ||
15911 | ||
15912 | #include <linux/bio.h> | |
15913 | ||
15914 | int | |
15915 | main (void) | |
15916 | { | |
15917 | ||
15918 | int flags __attribute__ ((unused)); | |
15919 | flags = REQ_FAILFAST_MASK; | |
15920 | ||
15921 | ; | |
15922 | return 0; | |
15923 | } | |
15924 | ||
15925 | _ACEOF | |
15926 | ||
15927 | ||
15928 | ||
15929 | cat - <<_ACEOF >conftest.h | |
15930 | ||
15931 | _ACEOF | |
15932 | ||
15933 | ||
15934 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15935 | echo "obj-m := conftest.o" >build/Makefile | |
15936 | modpost_flag='' | |
15937 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15938 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15939 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15940 | (eval $ac_try) 2>&5 | |
15941 | ac_status=$? | |
15942 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15943 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15944 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15945 | (eval $ac_try) 2>&5 | |
15946 | ac_status=$? | |
15947 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15948 | test $ac_status = 0; }; }; then : | |
15949 | ||
15950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15951 | $as_echo "yes" >&6; } | |
15952 | ||
15953 | $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h | |
15954 | ||
15955 | ||
15956 | else | |
15957 | $as_echo "$as_me: failed program was:" >&5 | |
15958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15959 | ||
15960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15961 | $as_echo "no" >&6; } | |
15962 | ||
15963 | ||
15964 | ||
15965 | fi | |
15966 | rm -Rf build | |
15967 | ||
15968 | ||
15969 | ||
15970 | ||
15971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5 | |
15972 | $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; } | |
15973 | ||
15974 | ||
15975 | cat confdefs.h - <<_ACEOF >conftest.c | |
15976 | ||
15977 | ||
15978 | #include <linux/blk_types.h> | |
15979 | ||
15980 | int | |
15981 | main (void) | |
15982 | { | |
15983 | ||
15984 | int op __attribute__ ((unused)) = REQ_OP_DISCARD; | |
15985 | ||
15986 | ; | |
15987 | return 0; | |
15988 | } | |
15989 | ||
15990 | _ACEOF | |
15991 | ||
15992 | ||
15993 | ||
15994 | cat - <<_ACEOF >conftest.h | |
15995 | ||
15996 | _ACEOF | |
15997 | ||
15998 | ||
15999 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16000 | echo "obj-m := conftest.o" >build/Makefile | |
16001 | modpost_flag='' | |
16002 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16003 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16004 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16005 | (eval $ac_try) 2>&5 | |
16006 | ac_status=$? | |
16007 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16008 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16009 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16010 | (eval $ac_try) 2>&5 | |
16011 | ac_status=$? | |
16012 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16013 | test $ac_status = 0; }; }; then : | |
16014 | ||
16015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16016 | $as_echo "yes" >&6; } | |
16017 | ||
16018 | $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h | |
16019 | ||
16020 | ||
16021 | else | |
16022 | $as_echo "$as_me: failed program was:" >&5 | |
16023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16024 | ||
16025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16026 | $as_echo "no" >&6; } | |
16027 | ||
16028 | ||
16029 | ||
16030 | fi | |
16031 | rm -Rf build | |
16032 | ||
16033 | ||
16034 | ||
16035 | ||
16036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5 | |
16037 | $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; } | |
16038 | ||
16039 | ||
16040 | cat confdefs.h - <<_ACEOF >conftest.c | |
16041 | ||
16042 | ||
16043 | #include <linux/blk_types.h> | |
16044 | ||
16045 | int | |
16046 | main (void) | |
16047 | { | |
16048 | ||
16049 | int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE; | |
16050 | ||
16051 | ; | |
16052 | return 0; | |
16053 | } | |
16054 | ||
16055 | _ACEOF | |
16056 | ||
16057 | ||
16058 | ||
16059 | cat - <<_ACEOF >conftest.h | |
16060 | ||
16061 | _ACEOF | |
16062 | ||
16063 | ||
16064 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16065 | echo "obj-m := conftest.o" >build/Makefile | |
16066 | modpost_flag='' | |
16067 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16068 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16069 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16070 | (eval $ac_try) 2>&5 | |
16071 | ac_status=$? | |
16072 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16073 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16074 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16075 | (eval $ac_try) 2>&5 | |
16076 | ac_status=$? | |
16077 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16078 | test $ac_status = 0; }; }; then : | |
16079 | ||
16080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16081 | $as_echo "yes" >&6; } | |
16082 | ||
16083 | $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h | |
16084 | ||
16085 | ||
16086 | else | |
16087 | $as_echo "$as_me: failed program was:" >&5 | |
16088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16089 | ||
16090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16091 | $as_echo "no" >&6; } | |
16092 | ||
16093 | ||
16094 | ||
16095 | fi | |
16096 | rm -Rf build | |
16097 | ||
16098 | ||
16099 | ||
16100 | ||
16101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5 | |
16102 | $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; } | |
16103 | ||
16104 | ||
16105 | cat confdefs.h - <<_ACEOF >conftest.c | |
16106 | ||
16107 | ||
16108 | #include <linux/blk_types.h> | |
16109 | ||
16110 | int | |
16111 | main (void) | |
16112 | { | |
16113 | ||
16114 | int op __attribute__ ((unused)) = REQ_OP_FLUSH; | |
16115 | ||
16116 | ; | |
16117 | return 0; | |
16118 | } | |
16119 | ||
16120 | _ACEOF | |
16121 | ||
16122 | ||
16123 | ||
16124 | cat - <<_ACEOF >conftest.h | |
16125 | ||
16126 | _ACEOF | |
16127 | ||
16128 | ||
16129 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16130 | echo "obj-m := conftest.o" >build/Makefile | |
16131 | modpost_flag='' | |
16132 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16133 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16134 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16135 | (eval $ac_try) 2>&5 | |
16136 | ac_status=$? | |
16137 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16138 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16139 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16140 | (eval $ac_try) 2>&5 | |
16141 | ac_status=$? | |
16142 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16143 | test $ac_status = 0; }; }; then : | |
16144 | ||
16145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16146 | $as_echo "yes" >&6; } | |
16147 | ||
16148 | $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h | |
16149 | ||
16150 | ||
16151 | else | |
16152 | $as_echo "$as_me: failed program was:" >&5 | |
16153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16154 | ||
16155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16156 | $as_echo "no" >&6; } | |
16157 | ||
16158 | ||
16159 | ||
16160 | fi | |
16161 | rm -Rf build | |
16162 | ||
16163 | ||
16164 | ||
16165 | ||
16166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5 | |
16167 | $as_echo_n "checking whether bio->bi_opf is defined... " >&6; } | |
16168 | ||
16169 | ||
16170 | cat confdefs.h - <<_ACEOF >conftest.c | |
16171 | ||
16172 | ||
16173 | #include <linux/bio.h> | |
16174 | ||
16175 | int | |
16176 | main (void) | |
16177 | { | |
16178 | ||
16179 | struct bio bio __attribute__ ((unused)); | |
16180 | bio.bi_opf = 0; | |
16181 | ||
16182 | ; | |
16183 | return 0; | |
16184 | } | |
16185 | ||
16186 | _ACEOF | |
16187 | ||
16188 | ||
16189 | ||
16190 | cat - <<_ACEOF >conftest.h | |
16191 | ||
16192 | _ACEOF | |
16193 | ||
16194 | ||
16195 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16196 | echo "obj-m := conftest.o" >build/Makefile | |
16197 | modpost_flag='' | |
16198 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16199 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16200 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16201 | (eval $ac_try) 2>&5 | |
16202 | ac_status=$? | |
16203 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16204 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16205 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16206 | (eval $ac_try) 2>&5 | |
16207 | ac_status=$? | |
16208 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16209 | test $ac_status = 0; }; }; then : | |
16210 | ||
16211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16212 | $as_echo "yes" >&6; } | |
16213 | ||
16214 | $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h | |
16215 | ||
16216 | ||
16217 | else | |
16218 | $as_echo "$as_me: failed program was:" >&5 | |
16219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16220 | ||
16221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16222 | $as_echo "no" >&6; } | |
16223 | ||
16224 | ||
16225 | ||
16226 | fi | |
16227 | rm -Rf build | |
16228 | ||
16229 | ||
16230 | ||
16231 | ||
16232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5 | |
16233 | $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; } | |
16234 | ||
16235 | ||
16236 | cat confdefs.h - <<_ACEOF >conftest.c | |
16237 | ||
16238 | ||
16239 | #include <linux/bio.h> | |
16240 | ||
16241 | void wanted_end_io(struct bio *bio) { return; } | |
16242 | ||
16243 | bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io; | |
16244 | ||
16245 | int | |
16246 | main (void) | |
16247 | { | |
16248 | ||
16249 | ||
16250 | ; | |
16251 | return 0; | |
16252 | } | |
16253 | ||
16254 | _ACEOF | |
16255 | ||
16256 | ||
16257 | ||
16258 | cat - <<_ACEOF >conftest.h | |
16259 | ||
16260 | _ACEOF | |
16261 | ||
16262 | ||
16263 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16264 | echo "obj-m := conftest.o" >build/Makefile | |
16265 | modpost_flag='' | |
16266 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16267 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16268 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16269 | (eval $ac_try) 2>&5 | |
16270 | ac_status=$? | |
16271 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16272 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16273 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16274 | (eval $ac_try) 2>&5 | |
16275 | ac_status=$? | |
16276 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16277 | test $ac_status = 0; }; }; then : | |
16278 | ||
16279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16280 | $as_echo "yes" >&6; } | |
16281 | ||
16282 | $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h | |
16283 | ||
16284 | ||
16285 | else | |
16286 | $as_echo "$as_me: failed program was:" >&5 | |
16287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16288 | ||
16289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16290 | $as_echo "no" >&6; } | |
16291 | ||
16292 | ||
16293 | ||
16294 | fi | |
16295 | rm -Rf build | |
16296 | ||
16297 | ||
16298 | ||
16299 | ||
1681e039 CIK |
16300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5 |
16301 | $as_echo_n "checking whether bio->bi_status exists... " >&6; } | |
16302 | ||
16303 | ||
16304 | cat confdefs.h - <<_ACEOF >conftest.c | |
16305 | ||
16306 | ||
16307 | #include <linux/bio.h> | |
16308 | ||
16309 | int | |
16310 | main (void) | |
16311 | { | |
16312 | ||
16313 | struct bio bio __attribute__ ((unused)); | |
16314 | blk_status_t status __attribute__ ((unused)) = BLK_STS_OK; | |
16315 | ||
16316 | bio.bi_status = status; | |
16317 | ||
16318 | ; | |
16319 | return 0; | |
16320 | } | |
16321 | ||
16322 | _ACEOF | |
16323 | ||
16324 | ||
16325 | ||
16326 | cat - <<_ACEOF >conftest.h | |
16327 | ||
16328 | _ACEOF | |
16329 | ||
16330 | ||
16331 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16332 | echo "obj-m := conftest.o" >build/Makefile | |
16333 | modpost_flag='' | |
16334 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16335 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16336 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16337 | (eval $ac_try) 2>&5 | |
16338 | ac_status=$? | |
16339 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16340 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16341 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16342 | (eval $ac_try) 2>&5 | |
16343 | ac_status=$? | |
16344 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16345 | test $ac_status = 0; }; }; then : | |
16346 | ||
16347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16348 | $as_echo "yes" >&6; } | |
16349 | ||
16350 | $as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h | |
16351 | ||
16352 | ||
16353 | else | |
16354 | $as_echo "$as_me: failed program was:" >&5 | |
16355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16356 | ||
16357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16358 | $as_echo "no" >&6; } | |
16359 | ||
16360 | ||
16361 | ||
16362 | fi | |
16363 | rm -Rf build | |
16364 | ||
16365 | ||
16366 | ||
16367 | ||
87d546d8 TG |
16368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5 |
16369 | $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; } | |
16370 | ||
16371 | ||
16372 | cat confdefs.h - <<_ACEOF >conftest.c | |
16373 | ||
16374 | ||
16375 | #include <linux/bio.h> | |
16376 | ||
16377 | int | |
16378 | main (void) | |
16379 | { | |
16380 | ||
16381 | int flags __attribute__ ((unused)); | |
16382 | flags = BIO_RW_BARRIER; | |
16383 | ||
16384 | ; | |
16385 | return 0; | |
16386 | } | |
16387 | ||
16388 | _ACEOF | |
16389 | ||
16390 | ||
16391 | ||
16392 | cat - <<_ACEOF >conftest.h | |
16393 | ||
16394 | _ACEOF | |
16395 | ||
16396 | ||
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 | |
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' | |
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 | ||
16413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16414 | $as_echo "yes" >&6; } | |
16415 | ||
16416 | $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h | |
16417 | ||
16418 | ||
16419 | else | |
16420 | $as_echo "$as_me: failed program was:" >&5 | |
16421 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16422 | ||
16423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16424 | $as_echo "no" >&6; } | |
16425 | ||
16426 | ||
16427 | ||
16428 | fi | |
16429 | rm -Rf build | |
16430 | ||
16431 | ||
16432 | ||
16433 | ||
16434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5 | |
16435 | $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; } | |
16436 | ||
16437 | ||
16438 | cat confdefs.h - <<_ACEOF >conftest.c | |
16439 | ||
16440 | ||
16441 | #include <linux/bio.h> | |
16442 | ||
16443 | int | |
16444 | main (void) | |
16445 | { | |
16446 | ||
16447 | int flags __attribute__ ((unused)); | |
16448 | flags = BIO_RW_DISCARD; | |
16449 | ||
16450 | ; | |
16451 | return 0; | |
16452 | } | |
16453 | ||
16454 | _ACEOF | |
16455 | ||
16456 | ||
16457 | ||
16458 | cat - <<_ACEOF >conftest.h | |
16459 | ||
16460 | _ACEOF | |
16461 | ||
16462 | ||
16463 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16464 | echo "obj-m := conftest.o" >build/Makefile | |
16465 | modpost_flag='' | |
16466 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16467 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16468 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16469 | (eval $ac_try) 2>&5 | |
16470 | ac_status=$? | |
16471 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16472 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16473 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16474 | (eval $ac_try) 2>&5 | |
16475 | ac_status=$? | |
16476 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16477 | test $ac_status = 0; }; }; then : | |
16478 | ||
16479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16480 | $as_echo "yes" >&6; } | |
16481 | ||
16482 | $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h | |
16483 | ||
16484 | ||
16485 | else | |
16486 | $as_echo "$as_me: failed program was:" >&5 | |
16487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16488 | ||
16489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16490 | $as_echo "no" >&6; } | |
16491 | ||
16492 | ||
16493 | ||
16494 | fi | |
16495 | rm -Rf build | |
16496 | ||
16497 | ||
16498 | ||
16499 | ||
16500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5 | |
16501 | $as_echo_n "checking whether blk_queue_flush() is available... " >&6; } | |
16502 | tmp_flags="$EXTRA_KCFLAGS" | |
16503 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16504 | ||
16505 | ||
16506 | cat confdefs.h - <<_ACEOF >conftest.c | |
16507 | ||
16508 | ||
16509 | #include <linux/blkdev.h> | |
16510 | ||
16511 | int | |
16512 | main (void) | |
16513 | { | |
16514 | ||
16515 | struct request_queue *q = NULL; | |
16516 | (void) blk_queue_flush(q, REQ_FLUSH); | |
16517 | ||
16518 | ; | |
16519 | return 0; | |
16520 | } | |
16521 | ||
16522 | _ACEOF | |
16523 | ||
16524 | ||
16525 | ||
16526 | cat - <<_ACEOF >conftest.h | |
16527 | ||
16528 | _ACEOF | |
16529 | ||
16530 | ||
16531 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16532 | echo "obj-m := conftest.o" >build/Makefile | |
16533 | modpost_flag='' | |
16534 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16535 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16536 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16537 | (eval $ac_try) 2>&5 | |
16538 | ac_status=$? | |
16539 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16540 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16541 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16542 | (eval $ac_try) 2>&5 | |
16543 | ac_status=$? | |
16544 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16545 | test $ac_status = 0; }; }; then : | |
16546 | ||
16547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16548 | $as_echo "yes" >&6; } | |
16549 | ||
16550 | $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h | |
16551 | ||
16552 | ||
16553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5 | |
16554 | $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; } | |
16555 | ||
16556 | ||
16557 | cat confdefs.h - <<_ACEOF >conftest.c | |
16558 | ||
16559 | ||
16560 | #include <linux/module.h> | |
16561 | #include <linux/blkdev.h> | |
16562 | ||
16563 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
16564 | ||
16565 | int | |
16566 | main (void) | |
16567 | { | |
16568 | ||
16569 | struct request_queue *q = NULL; | |
16570 | (void) blk_queue_flush(q, REQ_FLUSH); | |
16571 | ||
16572 | ; | |
16573 | return 0; | |
16574 | } | |
16575 | ||
16576 | _ACEOF | |
16577 | ||
16578 | ||
16579 | ||
16580 | cat - <<_ACEOF >conftest.h | |
16581 | ||
16582 | _ACEOF | |
16583 | ||
16584 | ||
16585 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16586 | echo "obj-m := conftest.o" >build/Makefile | |
16587 | modpost_flag='' | |
16588 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16589 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16590 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16591 | (eval $ac_try) 2>&5 | |
16592 | ac_status=$? | |
16593 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16594 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16595 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16596 | (eval $ac_try) 2>&5 | |
16597 | ac_status=$? | |
16598 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16599 | test $ac_status = 0; }; }; then : | |
16600 | ||
16601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16602 | $as_echo "no" >&6; } | |
16603 | ||
16604 | else | |
16605 | $as_echo "$as_me: failed program was:" >&5 | |
16606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16607 | ||
16608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16609 | $as_echo "yes" >&6; } | |
16610 | ||
16611 | $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h | |
16612 | ||
16613 | ||
16614 | ||
16615 | ||
16616 | fi | |
16617 | rm -Rf build | |
16618 | ||
16619 | ||
16620 | ||
16621 | else | |
16622 | $as_echo "$as_me: failed program was:" >&5 | |
16623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16624 | ||
16625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16626 | $as_echo "no" >&6; } | |
16627 | ||
16628 | ||
16629 | ||
16630 | fi | |
16631 | rm -Rf build | |
16632 | ||
16633 | ||
16634 | ||
16635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5 | |
16636 | $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; } | |
16637 | ||
16638 | ||
16639 | cat confdefs.h - <<_ACEOF >conftest.c | |
16640 | ||
16641 | ||
16642 | #include <linux/kernel.h> | |
16643 | #include <linux/blkdev.h> | |
16644 | ||
16645 | ||
16646 | int | |
16647 | main (void) | |
16648 | { | |
16649 | ||
16650 | struct request_queue *q = NULL; | |
16651 | blk_queue_write_cache(q, true, true); | |
16652 | ||
16653 | ; | |
16654 | return 0; | |
16655 | } | |
16656 | ||
16657 | _ACEOF | |
16658 | ||
16659 | ||
16660 | ||
16661 | cat - <<_ACEOF >conftest.h | |
16662 | ||
16663 | _ACEOF | |
16664 | ||
16665 | ||
16666 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16667 | echo "obj-m := conftest.o" >build/Makefile | |
16668 | modpost_flag='' | |
16669 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16670 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16671 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16672 | (eval $ac_try) 2>&5 | |
16673 | ac_status=$? | |
16674 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16675 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16676 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16677 | (eval $ac_try) 2>&5 | |
16678 | ac_status=$? | |
16679 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16680 | test $ac_status = 0; }; }; then : | |
16681 | ||
16682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16683 | $as_echo "yes" >&6; } | |
16684 | ||
16685 | $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h | |
16686 | ||
16687 | ||
16688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5 | |
16689 | $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; } | |
16690 | ||
16691 | ||
16692 | cat confdefs.h - <<_ACEOF >conftest.c | |
16693 | ||
16694 | ||
16695 | #include <linux/kernel.h> | |
16696 | #include <linux/module.h> | |
16697 | #include <linux/blkdev.h> | |
16698 | ||
16699 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
16700 | ||
16701 | int | |
16702 | main (void) | |
16703 | { | |
16704 | ||
16705 | struct request_queue *q = NULL; | |
16706 | blk_queue_write_cache(q, true, true); | |
16707 | ||
16708 | ; | |
16709 | return 0; | |
16710 | } | |
16711 | ||
16712 | _ACEOF | |
16713 | ||
16714 | ||
16715 | ||
16716 | cat - <<_ACEOF >conftest.h | |
16717 | ||
16718 | _ACEOF | |
16719 | ||
16720 | ||
16721 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16722 | echo "obj-m := conftest.o" >build/Makefile | |
16723 | modpost_flag='' | |
16724 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16725 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16726 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16727 | (eval $ac_try) 2>&5 | |
16728 | ac_status=$? | |
16729 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16730 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16731 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16732 | (eval $ac_try) 2>&5 | |
16733 | ac_status=$? | |
16734 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16735 | test $ac_status = 0; }; }; then : | |
16736 | ||
16737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16738 | $as_echo "no" >&6; } | |
16739 | ||
16740 | else | |
16741 | $as_echo "$as_me: failed program was:" >&5 | |
16742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16743 | ||
16744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16745 | $as_echo "yes" >&6; } | |
16746 | ||
16747 | $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h | |
16748 | ||
16749 | ||
16750 | ||
16751 | ||
16752 | fi | |
16753 | rm -Rf build | |
16754 | ||
16755 | ||
16756 | ||
16757 | else | |
16758 | $as_echo "$as_me: failed program was:" >&5 | |
16759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16760 | ||
16761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16762 | $as_echo "no" >&6; } | |
16763 | ||
16764 | ||
16765 | ||
16766 | fi | |
16767 | rm -Rf build | |
16768 | ||
16769 | ||
16770 | ||
16771 | EXTRA_KCFLAGS="$tmp_flags" | |
16772 | ||
16773 | ||
16774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5 | |
16775 | $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; } | |
16776 | tmp_flags="$EXTRA_KCFLAGS" | |
16777 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16778 | ||
16779 | ||
16780 | cat confdefs.h - <<_ACEOF >conftest.c | |
16781 | ||
16782 | ||
16783 | #include <linux/blkdev.h> | |
16784 | ||
16785 | int | |
16786 | main (void) | |
16787 | { | |
16788 | ||
16789 | struct request_queue *q = NULL; | |
16790 | (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS); | |
16791 | ||
16792 | ; | |
16793 | return 0; | |
16794 | } | |
16795 | ||
16796 | _ACEOF | |
16797 | ||
16798 | ||
16799 | ||
16800 | cat - <<_ACEOF >conftest.h | |
16801 | ||
16802 | _ACEOF | |
16803 | ||
16804 | ||
16805 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16806 | echo "obj-m := conftest.o" >build/Makefile | |
16807 | modpost_flag='' | |
16808 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16809 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16810 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16811 | (eval $ac_try) 2>&5 | |
16812 | ac_status=$? | |
16813 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16814 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16815 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16816 | (eval $ac_try) 2>&5 | |
16817 | ac_status=$? | |
16818 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16819 | test $ac_status = 0; }; }; then : | |
16820 | ||
16821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16822 | $as_echo "yes" >&6; } | |
16823 | ||
16824 | $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h | |
16825 | ||
16826 | ||
16827 | else | |
16828 | $as_echo "$as_me: failed program was:" >&5 | |
16829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16830 | ||
16831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16832 | $as_echo "no" >&6; } | |
16833 | ||
16834 | ||
16835 | ||
16836 | fi | |
16837 | rm -Rf build | |
16838 | ||
16839 | ||
16840 | EXTRA_KCFLAGS="$tmp_flags" | |
16841 | ||
16842 | ||
16843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5 | |
16844 | $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; } | |
16845 | tmp_flags="$EXTRA_KCFLAGS" | |
16846 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16847 | ||
16848 | ||
16849 | cat confdefs.h - <<_ACEOF >conftest.c | |
16850 | ||
16851 | ||
16852 | #include <linux/blkdev.h> | |
16853 | ||
16854 | int | |
16855 | main (void) | |
16856 | { | |
16857 | ||
16858 | struct request_queue *q = NULL; | |
16859 | (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS); | |
16860 | ||
16861 | ; | |
16862 | return 0; | |
16863 | } | |
16864 | ||
16865 | _ACEOF | |
16866 | ||
16867 | ||
16868 | ||
16869 | cat - <<_ACEOF >conftest.h | |
16870 | ||
16871 | _ACEOF | |
16872 | ||
16873 | ||
16874 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16875 | echo "obj-m := conftest.o" >build/Makefile | |
16876 | modpost_flag='' | |
16877 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16878 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16879 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16880 | (eval $ac_try) 2>&5 | |
16881 | ac_status=$? | |
16882 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16883 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16884 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16885 | (eval $ac_try) 2>&5 | |
16886 | ac_status=$? | |
16887 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16888 | test $ac_status = 0; }; }; then : | |
16889 | ||
16890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16891 | $as_echo "yes" >&6; } | |
16892 | ||
16893 | $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h | |
16894 | ||
16895 | ||
16896 | else | |
16897 | $as_echo "$as_me: failed program was:" >&5 | |
16898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16899 | ||
16900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16901 | $as_echo "no" >&6; } | |
16902 | ||
16903 | ||
16904 | ||
16905 | fi | |
16906 | rm -Rf build | |
16907 | ||
16908 | ||
16909 | EXTRA_KCFLAGS="$tmp_flags" | |
16910 | ||
16911 | ||
16912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5 | |
16913 | $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; } | |
16914 | tmp_flags="$EXTRA_KCFLAGS" | |
16915 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16916 | ||
16917 | ||
16918 | cat confdefs.h - <<_ACEOF >conftest.c | |
16919 | ||
16920 | ||
16921 | #include <linux/blkdev.h> | |
16922 | ||
16923 | int | |
16924 | main (void) | |
16925 | { | |
16926 | ||
16927 | extern enum bio_rw_flags rw; | |
16928 | ||
16929 | rw = BIO_RW_UNPLUG; | |
16930 | ||
16931 | ; | |
16932 | return 0; | |
16933 | } | |
16934 | ||
16935 | _ACEOF | |
16936 | ||
16937 | ||
16938 | ||
16939 | cat - <<_ACEOF >conftest.h | |
16940 | ||
16941 | _ACEOF | |
16942 | ||
16943 | ||
16944 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16945 | echo "obj-m := conftest.o" >build/Makefile | |
16946 | modpost_flag='' | |
16947 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16948 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16949 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16950 | (eval $ac_try) 2>&5 | |
16951 | ac_status=$? | |
16952 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16953 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16954 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16955 | (eval $ac_try) 2>&5 | |
16956 | ac_status=$? | |
16957 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16958 | test $ac_status = 0; }; }; then : | |
16959 | ||
16960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16961 | $as_echo "yes" >&6; } | |
16962 | ||
16963 | $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h | |
16964 | ||
16965 | ||
16966 | else | |
16967 | $as_echo "$as_me: failed program was:" >&5 | |
16968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16969 | ||
16970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16971 | $as_echo "no" >&6; } | |
16972 | ||
16973 | ||
16974 | ||
16975 | fi | |
16976 | rm -Rf build | |
16977 | ||
16978 | ||
16979 | EXTRA_KCFLAGS="$tmp_flags" | |
16980 | ||
16981 | ||
16982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5 | |
16983 | $as_echo_n "checking whether struct blk_plug is available... " >&6; } | |
16984 | tmp_flags="$EXTRA_KCFLAGS" | |
16985 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16986 | ||
16987 | ||
16988 | cat confdefs.h - <<_ACEOF >conftest.c | |
16989 | ||
16990 | ||
16991 | #include <linux/blkdev.h> | |
16992 | ||
16993 | int | |
16994 | main (void) | |
16995 | { | |
16996 | ||
16997 | struct blk_plug plug; | |
16998 | ||
16999 | blk_start_plug(&plug); | |
17000 | blk_finish_plug(&plug); | |
17001 | ||
17002 | ; | |
17003 | return 0; | |
17004 | } | |
17005 | ||
17006 | _ACEOF | |
17007 | ||
17008 | ||
17009 | ||
17010 | cat - <<_ACEOF >conftest.h | |
17011 | ||
17012 | _ACEOF | |
17013 | ||
17014 | ||
17015 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17016 | echo "obj-m := conftest.o" >build/Makefile | |
17017 | modpost_flag='' | |
17018 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17019 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17020 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17021 | (eval $ac_try) 2>&5 | |
17022 | ac_status=$? | |
17023 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17024 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17025 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17026 | (eval $ac_try) 2>&5 | |
17027 | ac_status=$? | |
17028 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17029 | test $ac_status = 0; }; }; then : | |
17030 | ||
17031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17032 | $as_echo "yes" >&6; } | |
17033 | ||
17034 | $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h | |
17035 | ||
17036 | ||
17037 | else | |
17038 | $as_echo "$as_me: failed program was:" >&5 | |
17039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17040 | ||
17041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17042 | $as_echo "no" >&6; } | |
17043 | ||
17044 | ||
17045 | ||
17046 | fi | |
17047 | rm -Rf build | |
17048 | ||
17049 | ||
17050 | EXTRA_KCFLAGS="$tmp_flags" | |
17051 | ||
17052 | ||
17053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5 | |
17054 | $as_echo_n "checking whether get_disk_ro() is available... " >&6; } | |
17055 | tmp_flags="$EXTRA_KCFLAGS" | |
17056 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
17057 | ||
17058 | ||
17059 | cat confdefs.h - <<_ACEOF >conftest.c | |
17060 | ||
17061 | ||
17062 | #include <linux/blkdev.h> | |
17063 | ||
17064 | int | |
17065 | main (void) | |
17066 | { | |
17067 | ||
17068 | struct gendisk *disk = NULL; | |
17069 | (void) get_disk_ro(disk); | |
17070 | ||
17071 | ; | |
17072 | return 0; | |
17073 | } | |
17074 | ||
17075 | _ACEOF | |
17076 | ||
17077 | ||
17078 | ||
17079 | cat - <<_ACEOF >conftest.h | |
17080 | ||
17081 | _ACEOF | |
17082 | ||
17083 | ||
17084 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17085 | echo "obj-m := conftest.o" >build/Makefile | |
17086 | modpost_flag='' | |
17087 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17088 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17089 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17090 | (eval $ac_try) 2>&5 | |
17091 | ac_status=$? | |
17092 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17093 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17094 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17095 | (eval $ac_try) 2>&5 | |
17096 | ac_status=$? | |
17097 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17098 | test $ac_status = 0; }; }; then : | |
17099 | ||
17100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17101 | $as_echo "yes" >&6; } | |
17102 | ||
17103 | $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h | |
17104 | ||
17105 | ||
17106 | else | |
17107 | $as_echo "$as_me: failed program was:" >&5 | |
17108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17109 | ||
17110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17111 | $as_echo "no" >&6; } | |
17112 | ||
17113 | ||
17114 | ||
17115 | fi | |
17116 | rm -Rf build | |
17117 | ||
17118 | ||
17119 | EXTRA_KCFLAGS="$tmp_flags" | |
17120 | ||
17121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5 | |
17122 | $as_echo_n "checking whether get_gendisk() is available... " >&6; } | |
17123 | ||
17124 | ||
17125 | ||
17126 | cat confdefs.h - <<_ACEOF >conftest.c | |
17127 | ||
17128 | ||
17129 | #include <linux/genhd.h> | |
17130 | ||
17131 | int | |
17132 | main (void) | |
17133 | { | |
17134 | ||
17135 | get_gendisk(0, NULL); | |
17136 | ||
17137 | ; | |
17138 | return 0; | |
17139 | } | |
17140 | ||
17141 | _ACEOF | |
17142 | ||
17143 | ||
17144 | ||
17145 | cat - <<_ACEOF >conftest.h | |
17146 | ||
17147 | _ACEOF | |
17148 | ||
17149 | ||
17150 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17151 | echo "obj-m := conftest.o" >build/Makefile | |
17152 | modpost_flag='' | |
17153 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17154 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17155 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17156 | (eval $ac_try) 2>&5 | |
17157 | ac_status=$? | |
17158 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17159 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17160 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17161 | (eval $ac_try) 2>&5 | |
17162 | ac_status=$? | |
17163 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17164 | test $ac_status = 0; }; }; then : | |
17165 | rc=0 | |
17166 | else | |
17167 | $as_echo "$as_me: failed program was:" >&5 | |
17168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17169 | rc=1 | |
17170 | ||
17171 | ||
17172 | fi | |
17173 | rm -Rf build | |
17174 | ||
17175 | ||
17176 | if test $rc -ne 0; then : | |
17177 | ||
17178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17179 | $as_echo "no" >&6; } | |
17180 | ||
17181 | else | |
17182 | if test "x$enable_linux_builtin" != xyes; then | |
17183 | ||
17184 | grep -q -E '[[:space:]]get_gendisk[[:space:]]' \ | |
17185 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
17186 | rc=$? | |
17187 | if test $rc -ne 0; then | |
17188 | export=0 | |
17189 | for file in block/genhd.c; do | |
17190 | grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \ | |
17191 | "$LINUX/$file" 2>/dev/null | |
17192 | rc=$? | |
17193 | if test $rc -eq 0; then | |
17194 | export=1 | |
17195 | break; | |
17196 | fi | |
17197 | done | |
17198 | if test $export -eq 0; then : | |
17199 | rc=1 | |
17200 | else : | |
17201 | rc=0 | |
17202 | fi | |
17203 | else : | |
17204 | rc=0 | |
17205 | fi | |
17206 | ||
17207 | fi | |
17208 | if test $rc -ne 0; then : | |
17209 | ||
17210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17211 | $as_echo "no" >&6; } | |
17212 | ||
17213 | else : | |
17214 | ||
17215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17216 | $as_echo "yes" >&6; } | |
17217 | ||
17218 | $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h | |
17219 | ||
17220 | ||
17221 | fi | |
17222 | fi | |
17223 | ||
17224 | ||
17225 | ||
17226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5 | |
17227 | $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; } | |
17228 | ||
17229 | ||
17230 | cat confdefs.h - <<_ACEOF >conftest.c | |
17231 | ||
17232 | ||
1ec59ff7 | 17233 | #include <linux/bio.h> |
87d546d8 TG |
17234 | |
17235 | int | |
17236 | main (void) | |
17237 | { | |
17238 | ||
17239 | struct bio *bio __attribute__ ((unused)) = NULL; | |
17240 | ||
17241 | bio_set_op_attrs(bio, 0, 0); | |
17242 | ||
17243 | ; | |
17244 | return 0; | |
17245 | } | |
17246 | ||
17247 | _ACEOF | |
17248 | ||
17249 | ||
17250 | ||
17251 | cat - <<_ACEOF >conftest.h | |
17252 | ||
17253 | _ACEOF | |
17254 | ||
17255 | ||
17256 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17257 | echo "obj-m := conftest.o" >build/Makefile | |
17258 | modpost_flag='' | |
17259 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17260 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
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; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17266 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17267 | (eval $ac_try) 2>&5 | |
17268 | ac_status=$? | |
17269 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17270 | test $ac_status = 0; }; }; then : | |
17271 | ||
17272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17273 | $as_echo "yes" >&6; } | |
17274 | ||
17275 | $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h | |
17276 | ||
17277 | ||
17278 | else | |
17279 | $as_echo "$as_me: failed program was:" >&5 | |
17280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17281 | ||
17282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17283 | $as_echo "no" >&6; } | |
17284 | ||
17285 | ||
17286 | ||
17287 | fi | |
17288 | rm -Rf build | |
17289 | ||
17290 | ||
17291 | ||
17292 | ||
17293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5 | |
17294 | $as_echo_n "checking whether generic_readlink is global... " >&6; } | |
17295 | ||
17296 | ||
17297 | cat confdefs.h - <<_ACEOF >conftest.c | |
17298 | ||
17299 | ||
17300 | #include <linux/fs.h> | |
17301 | ||
17302 | int | |
17303 | main (void) | |
17304 | { | |
17305 | ||
17306 | int i __attribute__ ((unused)); | |
17307 | ||
17308 | i = generic_readlink(NULL, NULL, 0); | |
17309 | ||
17310 | ; | |
17311 | return 0; | |
17312 | } | |
17313 | ||
17314 | _ACEOF | |
17315 | ||
17316 | ||
17317 | ||
17318 | cat - <<_ACEOF >conftest.h | |
17319 | ||
17320 | _ACEOF | |
17321 | ||
17322 | ||
17323 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17324 | echo "obj-m := conftest.o" >build/Makefile | |
17325 | modpost_flag='' | |
17326 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17327 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17328 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17329 | (eval $ac_try) 2>&5 | |
17330 | ac_status=$? | |
17331 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17332 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17333 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17334 | (eval $ac_try) 2>&5 | |
17335 | ac_status=$? | |
17336 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17337 | test $ac_status = 0; }; }; then : | |
17338 | ||
17339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17340 | $as_echo "yes" >&6; } | |
17341 | ||
17342 | $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h | |
17343 | ||
17344 | ||
17345 | else | |
17346 | $as_echo "$as_me: failed program was:" >&5 | |
17347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17348 | ||
17349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17350 | $as_echo "no" >&6; } | |
17351 | ||
17352 | ||
17353 | ||
17354 | fi | |
17355 | rm -Rf build | |
17356 | ||
17357 | ||
17358 | ||
17359 | ||
17360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5 | |
17361 | $as_echo_n "checking whether ql->discard_granularity is available... " >&6; } | |
17362 | ||
17363 | ||
17364 | cat confdefs.h - <<_ACEOF >conftest.c | |
17365 | ||
17366 | ||
17367 | #include <linux/blkdev.h> | |
17368 | ||
17369 | int | |
17370 | main (void) | |
17371 | { | |
17372 | ||
17373 | struct queue_limits ql __attribute__ ((unused)); | |
17374 | ||
17375 | ql.discard_granularity = 0; | |
17376 | ||
17377 | ; | |
17378 | return 0; | |
17379 | } | |
17380 | ||
17381 | _ACEOF | |
17382 | ||
17383 | ||
17384 | ||
17385 | cat - <<_ACEOF >conftest.h | |
17386 | ||
17387 | _ACEOF | |
17388 | ||
17389 | ||
17390 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17391 | echo "obj-m := conftest.o" >build/Makefile | |
17392 | modpost_flag='' | |
17393 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17394 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17395 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17396 | (eval $ac_try) 2>&5 | |
17397 | ac_status=$? | |
17398 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17399 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17400 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17401 | (eval $ac_try) 2>&5 | |
17402 | ac_status=$? | |
17403 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17404 | test $ac_status = 0; }; }; then : | |
17405 | ||
17406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17407 | $as_echo "yes" >&6; } | |
17408 | ||
17409 | $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h | |
17410 | ||
17411 | ||
17412 | else | |
17413 | $as_echo "$as_me: failed program was:" >&5 | |
17414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17415 | ||
17416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17417 | $as_echo "no" >&6; } | |
17418 | ||
17419 | ||
17420 | ||
17421 | fi | |
17422 | rm -Rf build | |
17423 | ||
17424 | ||
17425 | ||
17426 | ||
17427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5 | |
17428 | $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; } | |
17429 | ||
17430 | ||
17431 | cat confdefs.h - <<_ACEOF >conftest.c | |
17432 | ||
17433 | ||
17434 | #include <linux/fs.h> | |
17435 | #include <linux/xattr.h> | |
17436 | ||
17437 | const struct xattr_handler xattr_test_handler = { | |
17438 | .prefix = "test", | |
17439 | .get = NULL, | |
17440 | .set = NULL, | |
17441 | }; | |
17442 | ||
17443 | const struct xattr_handler *xattr_handlers[] = { | |
17444 | &xattr_test_handler, | |
17445 | }; | |
17446 | ||
17447 | const struct super_block sb __attribute__ ((unused)) = { | |
17448 | .s_xattr = xattr_handlers, | |
17449 | }; | |
17450 | ||
17451 | int | |
17452 | main (void) | |
17453 | { | |
17454 | ||
17455 | ||
17456 | ; | |
17457 | return 0; | |
17458 | } | |
17459 | ||
17460 | _ACEOF | |
17461 | ||
17462 | ||
17463 | ||
17464 | cat - <<_ACEOF >conftest.h | |
17465 | ||
17466 | _ACEOF | |
17467 | ||
17468 | ||
17469 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17470 | echo "obj-m := conftest.o" >build/Makefile | |
17471 | modpost_flag='' | |
17472 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17473 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17474 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17475 | (eval $ac_try) 2>&5 | |
17476 | ac_status=$? | |
17477 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17478 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17479 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17480 | (eval $ac_try) 2>&5 | |
17481 | ac_status=$? | |
17482 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17483 | test $ac_status = 0; }; }; then : | |
17484 | ||
17485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17486 | $as_echo "yes" >&6; } | |
17487 | ||
17488 | $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h | |
17489 | ||
17490 | ||
17491 | else | |
17492 | $as_echo "$as_me: failed program was:" >&5 | |
17493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17494 | ||
17495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17496 | $as_echo "no" >&6; } | |
17497 | ||
17498 | ||
17499 | ||
17500 | fi | |
17501 | rm -Rf build | |
17502 | ||
17503 | ||
17504 | ||
17505 | ||
17506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5 | |
17507 | $as_echo_n "checking whether xattr_handler has name... " >&6; } | |
17508 | ||
17509 | ||
17510 | cat confdefs.h - <<_ACEOF >conftest.c | |
17511 | ||
17512 | ||
17513 | #include <linux/xattr.h> | |
17514 | ||
17515 | static const struct xattr_handler | |
17516 | xops __attribute__ ((unused)) = { | |
17517 | .name = XATTR_NAME_POSIX_ACL_ACCESS, | |
17518 | }; | |
17519 | ||
17520 | int | |
17521 | main (void) | |
17522 | { | |
17523 | ||
17524 | ||
17525 | ; | |
17526 | return 0; | |
17527 | } | |
17528 | ||
17529 | _ACEOF | |
17530 | ||
17531 | ||
17532 | ||
17533 | cat - <<_ACEOF >conftest.h | |
17534 | ||
17535 | _ACEOF | |
17536 | ||
17537 | ||
17538 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17539 | echo "obj-m := conftest.o" >build/Makefile | |
17540 | modpost_flag='' | |
17541 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17542 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17543 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17544 | (eval $ac_try) 2>&5 | |
17545 | ac_status=$? | |
17546 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17547 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17548 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17549 | (eval $ac_try) 2>&5 | |
17550 | ac_status=$? | |
17551 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17552 | test $ac_status = 0; }; }; then : | |
17553 | ||
17554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17555 | $as_echo "yes" >&6; } | |
17556 | ||
17557 | $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h | |
17558 | ||
17559 | ||
17560 | else | |
17561 | $as_echo "$as_me: failed program was:" >&5 | |
17562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17563 | ||
17564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17565 | $as_echo "no" >&6; } | |
17566 | ||
17567 | ||
17568 | ||
17569 | fi | |
17570 | rm -Rf build | |
17571 | ||
17572 | ||
17573 | ||
17574 | ||
17575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5 | |
17576 | $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; } | |
17577 | ||
17578 | ||
17579 | cat confdefs.h - <<_ACEOF >conftest.c | |
17580 | ||
17581 | ||
17582 | #include <linux/xattr.h> | |
17583 | ||
17584 | int get(const struct xattr_handler *handler, | |
17585 | struct dentry *dentry, struct inode *inode, | |
17586 | const char *name, void *buffer, size_t size) { return 0; } | |
17587 | static const struct xattr_handler | |
17588 | xops __attribute__ ((unused)) = { | |
17589 | .get = get, | |
17590 | }; | |
17591 | ||
17592 | int | |
17593 | main (void) | |
17594 | { | |
17595 | ||
17596 | ||
17597 | ; | |
17598 | return 0; | |
17599 | } | |
17600 | ||
17601 | _ACEOF | |
17602 | ||
17603 | ||
17604 | ||
17605 | cat - <<_ACEOF >conftest.h | |
17606 | ||
17607 | _ACEOF | |
17608 | ||
17609 | ||
17610 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17611 | echo "obj-m := conftest.o" >build/Makefile | |
17612 | modpost_flag='' | |
17613 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17614 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17615 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17616 | (eval $ac_try) 2>&5 | |
17617 | ac_status=$? | |
17618 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17619 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17620 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17621 | (eval $ac_try) 2>&5 | |
17622 | ac_status=$? | |
17623 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17624 | test $ac_status = 0; }; }; then : | |
17625 | ||
17626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17627 | $as_echo "yes" >&6; } | |
17628 | ||
17629 | $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h | |
17630 | ||
17631 | ||
17632 | else | |
17633 | $as_echo "$as_me: failed program was:" >&5 | |
17634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17635 | ||
17636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5 | |
17637 | $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; } | |
17638 | ||
17639 | ||
17640 | cat confdefs.h - <<_ACEOF >conftest.c | |
17641 | ||
17642 | ||
17643 | #include <linux/xattr.h> | |
17644 | ||
17645 | int get(const struct xattr_handler *handler, | |
17646 | struct dentry *dentry, const char *name, | |
17647 | void *buffer, size_t size) { return 0; } | |
17648 | static const struct xattr_handler | |
17649 | xops __attribute__ ((unused)) = { | |
17650 | .get = get, | |
17651 | }; | |
17652 | ||
17653 | int | |
17654 | main (void) | |
17655 | { | |
17656 | ||
17657 | ||
17658 | ; | |
17659 | return 0; | |
17660 | } | |
17661 | ||
17662 | _ACEOF | |
17663 | ||
17664 | ||
17665 | ||
17666 | cat - <<_ACEOF >conftest.h | |
17667 | ||
17668 | _ACEOF | |
17669 | ||
17670 | ||
17671 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17672 | echo "obj-m := conftest.o" >build/Makefile | |
17673 | modpost_flag='' | |
17674 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17675 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17676 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17677 | (eval $ac_try) 2>&5 | |
17678 | ac_status=$? | |
17679 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17680 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17681 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17682 | (eval $ac_try) 2>&5 | |
17683 | ac_status=$? | |
17684 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17685 | test $ac_status = 0; }; }; then : | |
17686 | ||
17687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17688 | $as_echo "yes" >&6; } | |
17689 | ||
17690 | $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h | |
17691 | ||
17692 | ||
17693 | else | |
17694 | $as_echo "$as_me: failed program was:" >&5 | |
17695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17696 | ||
17697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17698 | $as_echo "no" >&6; } | |
17699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5 | |
17700 | $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; } | |
17701 | ||
17702 | ||
17703 | cat confdefs.h - <<_ACEOF >conftest.c | |
17704 | ||
17705 | ||
17706 | #include <linux/xattr.h> | |
17707 | ||
17708 | int get(struct dentry *dentry, const char *name, | |
17709 | void *buffer, size_t size, int handler_flags) | |
17710 | { return 0; } | |
17711 | static const struct xattr_handler | |
17712 | xops __attribute__ ((unused)) = { | |
17713 | .get = get, | |
17714 | }; | |
17715 | ||
17716 | int | |
17717 | main (void) | |
17718 | { | |
17719 | ||
17720 | ||
17721 | ; | |
17722 | return 0; | |
17723 | } | |
17724 | ||
17725 | _ACEOF | |
17726 | ||
17727 | ||
17728 | ||
17729 | cat - <<_ACEOF >conftest.h | |
17730 | ||
17731 | _ACEOF | |
17732 | ||
17733 | ||
17734 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17735 | echo "obj-m := conftest.o" >build/Makefile | |
17736 | modpost_flag='' | |
17737 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17738 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17739 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17740 | (eval $ac_try) 2>&5 | |
17741 | ac_status=$? | |
17742 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17743 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17744 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17745 | (eval $ac_try) 2>&5 | |
17746 | ac_status=$? | |
17747 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17748 | test $ac_status = 0; }; }; then : | |
17749 | ||
17750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17751 | $as_echo "yes" >&6; } | |
17752 | ||
17753 | $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h | |
17754 | ||
17755 | ||
17756 | else | |
17757 | $as_echo "$as_me: failed program was:" >&5 | |
17758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17759 | ||
17760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17761 | $as_echo "no" >&6; } | |
17762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5 | |
17763 | $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; } | |
17764 | ||
17765 | ||
17766 | cat confdefs.h - <<_ACEOF >conftest.c | |
17767 | ||
17768 | ||
17769 | #include <linux/xattr.h> | |
17770 | ||
17771 | int get(struct inode *ip, const char *name, | |
17772 | void *buffer, size_t size) { return 0; } | |
17773 | static const struct xattr_handler | |
17774 | xops __attribute__ ((unused)) = { | |
17775 | .get = get, | |
17776 | }; | |
17777 | ||
17778 | int | |
17779 | main (void) | |
17780 | { | |
17781 | ||
17782 | ||
17783 | ; | |
17784 | return 0; | |
17785 | } | |
17786 | ||
17787 | _ACEOF | |
17788 | ||
17789 | ||
17790 | ||
17791 | cat - <<_ACEOF >conftest.h | |
17792 | ||
17793 | _ACEOF | |
17794 | ||
17795 | ||
17796 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17797 | echo "obj-m := conftest.o" >build/Makefile | |
17798 | modpost_flag='' | |
17799 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17800 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17801 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17802 | (eval $ac_try) 2>&5 | |
17803 | ac_status=$? | |
17804 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17805 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17806 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17807 | (eval $ac_try) 2>&5 | |
17808 | ac_status=$? | |
17809 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17810 | test $ac_status = 0; }; }; then : | |
17811 | ||
17812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17813 | $as_echo "yes" >&6; } | |
17814 | ||
17815 | $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h | |
17816 | ||
17817 | ||
17818 | else | |
17819 | $as_echo "$as_me: failed program was:" >&5 | |
17820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17821 | ||
17822 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
17823 | ||
17824 | ||
17825 | ||
17826 | fi | |
17827 | rm -Rf build | |
17828 | ||
17829 | ||
17830 | ||
17831 | ||
17832 | ||
17833 | fi | |
17834 | rm -Rf build | |
17835 | ||
17836 | ||
17837 | ||
17838 | ||
17839 | ||
17840 | fi | |
17841 | rm -Rf build | |
17842 | ||
17843 | ||
17844 | ||
17845 | ||
17846 | ||
17847 | fi | |
17848 | rm -Rf build | |
17849 | ||
17850 | ||
17851 | ||
17852 | ||
17853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5 | |
17854 | $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; } | |
17855 | ||
17856 | ||
17857 | cat confdefs.h - <<_ACEOF >conftest.c | |
17858 | ||
17859 | ||
17860 | #include <linux/xattr.h> | |
17861 | ||
17862 | int set(const struct xattr_handler *handler, | |
17863 | struct dentry *dentry, struct inode *inode, | |
17864 | const char *name, const void *buffer, | |
17865 | size_t size, int flags) | |
17866 | { return 0; } | |
17867 | static const struct xattr_handler | |
17868 | xops __attribute__ ((unused)) = { | |
17869 | .set = set, | |
17870 | }; | |
17871 | ||
17872 | int | |
17873 | main (void) | |
17874 | { | |
17875 | ||
17876 | ||
17877 | ; | |
17878 | return 0; | |
17879 | } | |
17880 | ||
17881 | _ACEOF | |
17882 | ||
17883 | ||
17884 | ||
17885 | cat - <<_ACEOF >conftest.h | |
17886 | ||
17887 | _ACEOF | |
17888 | ||
17889 | ||
17890 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17891 | echo "obj-m := conftest.o" >build/Makefile | |
17892 | modpost_flag='' | |
17893 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17894 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17895 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17896 | (eval $ac_try) 2>&5 | |
17897 | ac_status=$? | |
17898 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17899 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17900 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17901 | (eval $ac_try) 2>&5 | |
17902 | ac_status=$? | |
17903 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17904 | test $ac_status = 0; }; }; then : | |
17905 | ||
17906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17907 | $as_echo "yes" >&6; } | |
17908 | ||
17909 | $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h | |
17910 | ||
17911 | ||
17912 | else | |
17913 | $as_echo "$as_me: failed program was:" >&5 | |
17914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17915 | ||
17916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5 | |
17917 | $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; } | |
17918 | ||
17919 | ||
17920 | cat confdefs.h - <<_ACEOF >conftest.c | |
17921 | ||
17922 | ||
17923 | #include <linux/xattr.h> | |
17924 | ||
17925 | int set(const struct xattr_handler *handler, | |
17926 | struct dentry *dentry, const char *name, | |
17927 | const void *buffer, size_t size, int flags) | |
17928 | { return 0; } | |
17929 | static const struct xattr_handler | |
17930 | xops __attribute__ ((unused)) = { | |
17931 | .set = set, | |
17932 | }; | |
17933 | ||
17934 | int | |
17935 | main (void) | |
17936 | { | |
17937 | ||
17938 | ||
17939 | ; | |
17940 | return 0; | |
17941 | } | |
17942 | ||
17943 | _ACEOF | |
17944 | ||
17945 | ||
17946 | ||
17947 | cat - <<_ACEOF >conftest.h | |
17948 | ||
17949 | _ACEOF | |
17950 | ||
17951 | ||
17952 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17953 | echo "obj-m := conftest.o" >build/Makefile | |
17954 | modpost_flag='' | |
17955 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17956 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17957 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17958 | (eval $ac_try) 2>&5 | |
17959 | ac_status=$? | |
17960 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17961 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17962 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17963 | (eval $ac_try) 2>&5 | |
17964 | ac_status=$? | |
17965 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17966 | test $ac_status = 0; }; }; then : | |
17967 | ||
17968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17969 | $as_echo "yes" >&6; } | |
17970 | ||
17971 | $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h | |
17972 | ||
17973 | ||
17974 | else | |
17975 | $as_echo "$as_me: failed program was:" >&5 | |
17976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17977 | ||
17978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17979 | $as_echo "no" >&6; } | |
17980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5 | |
17981 | $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; } | |
17982 | ||
17983 | ||
17984 | cat confdefs.h - <<_ACEOF >conftest.c | |
17985 | ||
17986 | ||
17987 | #include <linux/xattr.h> | |
17988 | ||
17989 | int set(struct dentry *dentry, const char *name, | |
17990 | const void *buffer, size_t size, int flags, | |
17991 | int handler_flags) { return 0; } | |
17992 | static const struct xattr_handler | |
17993 | xops __attribute__ ((unused)) = { | |
17994 | .set = set, | |
17995 | }; | |
17996 | ||
17997 | int | |
17998 | main (void) | |
17999 | { | |
18000 | ||
18001 | ||
18002 | ; | |
18003 | return 0; | |
18004 | } | |
18005 | ||
18006 | _ACEOF | |
18007 | ||
18008 | ||
18009 | ||
18010 | cat - <<_ACEOF >conftest.h | |
18011 | ||
18012 | _ACEOF | |
18013 | ||
18014 | ||
18015 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18016 | echo "obj-m := conftest.o" >build/Makefile | |
18017 | modpost_flag='' | |
18018 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18019 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18020 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18021 | (eval $ac_try) 2>&5 | |
18022 | ac_status=$? | |
18023 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18024 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18025 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18026 | (eval $ac_try) 2>&5 | |
18027 | ac_status=$? | |
18028 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18029 | test $ac_status = 0; }; }; then : | |
18030 | ||
18031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18032 | $as_echo "yes" >&6; } | |
18033 | ||
18034 | $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h | |
18035 | ||
18036 | ||
18037 | else | |
18038 | $as_echo "$as_me: failed program was:" >&5 | |
18039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18040 | ||
18041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18042 | $as_echo "no" >&6; } | |
18043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5 | |
18044 | $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; } | |
18045 | ||
18046 | ||
18047 | cat confdefs.h - <<_ACEOF >conftest.c | |
18048 | ||
18049 | ||
18050 | #include <linux/xattr.h> | |
18051 | ||
18052 | int set(struct inode *ip, const char *name, | |
18053 | const void *buffer, size_t size, int flags) | |
18054 | { return 0; } | |
18055 | static const struct xattr_handler | |
18056 | xops __attribute__ ((unused)) = { | |
18057 | .set = set, | |
18058 | }; | |
18059 | ||
18060 | int | |
18061 | main (void) | |
18062 | { | |
18063 | ||
18064 | ||
18065 | ; | |
18066 | return 0; | |
18067 | } | |
18068 | ||
18069 | _ACEOF | |
18070 | ||
18071 | ||
18072 | ||
18073 | cat - <<_ACEOF >conftest.h | |
18074 | ||
18075 | _ACEOF | |
18076 | ||
18077 | ||
18078 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18079 | echo "obj-m := conftest.o" >build/Makefile | |
18080 | modpost_flag='' | |
18081 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18082 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18083 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18084 | (eval $ac_try) 2>&5 | |
18085 | ac_status=$? | |
18086 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18087 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18088 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18089 | (eval $ac_try) 2>&5 | |
18090 | ac_status=$? | |
18091 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18092 | test $ac_status = 0; }; }; then : | |
18093 | ||
18094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18095 | $as_echo "yes" >&6; } | |
18096 | ||
18097 | $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h | |
18098 | ||
18099 | ||
18100 | else | |
18101 | $as_echo "$as_me: failed program was:" >&5 | |
18102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18103 | ||
18104 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
18105 | ||
18106 | ||
18107 | ||
18108 | fi | |
18109 | rm -Rf build | |
18110 | ||
18111 | ||
18112 | ||
18113 | ||
18114 | ||
18115 | fi | |
18116 | rm -Rf build | |
18117 | ||
18118 | ||
18119 | ||
18120 | ||
18121 | ||
18122 | fi | |
18123 | rm -Rf build | |
18124 | ||
18125 | ||
18126 | ||
18127 | ||
18128 | ||
18129 | fi | |
18130 | rm -Rf build | |
18131 | ||
18132 | ||
18133 | ||
18134 | ||
18135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5 | |
18136 | $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; } | |
18137 | ||
18138 | ||
18139 | cat confdefs.h - <<_ACEOF >conftest.c | |
18140 | ||
18141 | ||
18142 | #include <linux/xattr.h> | |
18143 | ||
18144 | bool list(struct dentry *dentry) { return 0; } | |
18145 | static const struct xattr_handler | |
18146 | xops __attribute__ ((unused)) = { | |
18147 | .list = list, | |
18148 | }; | |
18149 | ||
18150 | int | |
18151 | main (void) | |
18152 | { | |
18153 | ||
18154 | ||
18155 | ; | |
18156 | return 0; | |
18157 | } | |
18158 | ||
18159 | _ACEOF | |
18160 | ||
18161 | ||
18162 | ||
18163 | cat - <<_ACEOF >conftest.h | |
18164 | ||
18165 | _ACEOF | |
18166 | ||
18167 | ||
18168 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18169 | echo "obj-m := conftest.o" >build/Makefile | |
18170 | modpost_flag='' | |
18171 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18172 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18173 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18174 | (eval $ac_try) 2>&5 | |
18175 | ac_status=$? | |
18176 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18177 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18178 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18179 | (eval $ac_try) 2>&5 | |
18180 | ac_status=$? | |
18181 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18182 | test $ac_status = 0; }; }; then : | |
18183 | ||
18184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18185 | $as_echo "yes" >&6; } | |
18186 | ||
18187 | $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h | |
18188 | ||
18189 | ||
18190 | else | |
18191 | $as_echo "$as_me: failed program was:" >&5 | |
18192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18193 | ||
18194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18195 | $as_echo "no" >&6; } | |
18196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5 | |
18197 | $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; } | |
18198 | ||
18199 | ||
18200 | cat confdefs.h - <<_ACEOF >conftest.c | |
18201 | ||
18202 | ||
18203 | #include <linux/xattr.h> | |
18204 | ||
18205 | size_t list(const struct xattr_handler *handler, | |
18206 | struct dentry *dentry, char *list, size_t list_size, | |
18207 | const char *name, size_t name_len) { return 0; } | |
18208 | static const struct xattr_handler | |
18209 | xops __attribute__ ((unused)) = { | |
18210 | .list = list, | |
18211 | }; | |
18212 | ||
18213 | int | |
18214 | main (void) | |
18215 | { | |
18216 | ||
18217 | ||
18218 | ; | |
18219 | return 0; | |
18220 | } | |
18221 | ||
18222 | _ACEOF | |
18223 | ||
18224 | ||
18225 | ||
18226 | cat - <<_ACEOF >conftest.h | |
18227 | ||
18228 | _ACEOF | |
18229 | ||
18230 | ||
18231 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18232 | echo "obj-m := conftest.o" >build/Makefile | |
18233 | modpost_flag='' | |
18234 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18235 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18236 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18237 | (eval $ac_try) 2>&5 | |
18238 | ac_status=$? | |
18239 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18240 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18241 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18242 | (eval $ac_try) 2>&5 | |
18243 | ac_status=$? | |
18244 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18245 | test $ac_status = 0; }; }; then : | |
18246 | ||
18247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18248 | $as_echo "yes" >&6; } | |
18249 | ||
18250 | $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h | |
18251 | ||
18252 | ||
18253 | else | |
18254 | $as_echo "$as_me: failed program was:" >&5 | |
18255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18256 | ||
18257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18258 | $as_echo "no" >&6; } | |
18259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5 | |
18260 | $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; } | |
18261 | ||
18262 | ||
18263 | cat confdefs.h - <<_ACEOF >conftest.c | |
18264 | ||
18265 | ||
18266 | #include <linux/xattr.h> | |
18267 | ||
18268 | size_t list(struct dentry *dentry, | |
18269 | char *list, size_t list_size, | |
18270 | const char *name, size_t name_len, | |
18271 | int handler_flags) { return 0; } | |
18272 | static const struct xattr_handler | |
18273 | xops __attribute__ ((unused)) = { | |
18274 | .list = list, | |
18275 | }; | |
18276 | ||
18277 | int | |
18278 | main (void) | |
18279 | { | |
18280 | ||
18281 | ||
18282 | ; | |
18283 | return 0; | |
18284 | } | |
18285 | ||
18286 | _ACEOF | |
18287 | ||
18288 | ||
18289 | ||
18290 | cat - <<_ACEOF >conftest.h | |
18291 | ||
18292 | _ACEOF | |
18293 | ||
18294 | ||
18295 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18296 | echo "obj-m := conftest.o" >build/Makefile | |
18297 | modpost_flag='' | |
18298 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18299 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18300 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18301 | (eval $ac_try) 2>&5 | |
18302 | ac_status=$? | |
18303 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18304 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18305 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18306 | (eval $ac_try) 2>&5 | |
18307 | ac_status=$? | |
18308 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18309 | test $ac_status = 0; }; }; then : | |
18310 | ||
18311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18312 | $as_echo "yes" >&6; } | |
18313 | ||
18314 | $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h | |
18315 | ||
18316 | ||
18317 | else | |
18318 | $as_echo "$as_me: failed program was:" >&5 | |
18319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18320 | ||
18321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18322 | $as_echo "no" >&6; } | |
18323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5 | |
18324 | $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; } | |
18325 | ||
18326 | ||
18327 | cat confdefs.h - <<_ACEOF >conftest.c | |
18328 | ||
18329 | ||
18330 | #include <linux/xattr.h> | |
18331 | ||
18332 | size_t list(struct inode *ip, char *lst, | |
18333 | size_t list_size, const char *name, | |
18334 | size_t name_len) { return 0; } | |
18335 | static const struct xattr_handler | |
18336 | xops __attribute__ ((unused)) = { | |
18337 | .list = list, | |
18338 | }; | |
18339 | ||
18340 | int | |
18341 | main (void) | |
18342 | { | |
18343 | ||
18344 | ||
18345 | ; | |
18346 | return 0; | |
18347 | } | |
18348 | ||
18349 | _ACEOF | |
18350 | ||
18351 | ||
18352 | ||
18353 | cat - <<_ACEOF >conftest.h | |
18354 | ||
18355 | _ACEOF | |
18356 | ||
18357 | ||
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 | |
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' | |
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 | ||
18374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18375 | $as_echo "yes" >&6; } | |
18376 | ||
18377 | $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h | |
18378 | ||
18379 | ||
18380 | else | |
18381 | $as_echo "$as_me: failed program was:" >&5 | |
18382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18383 | ||
18384 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
18385 | ||
18386 | ||
18387 | ||
18388 | fi | |
18389 | rm -Rf build | |
18390 | ||
18391 | ||
18392 | ||
18393 | ||
18394 | ||
18395 | fi | |
18396 | rm -Rf build | |
18397 | ||
18398 | ||
18399 | ||
18400 | ||
18401 | ||
18402 | fi | |
18403 | rm -Rf build | |
18404 | ||
18405 | ||
18406 | ||
18407 | ||
18408 | ||
18409 | fi | |
18410 | rm -Rf build | |
18411 | ||
18412 | ||
18413 | ||
18414 | ||
18415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5 | |
18416 | $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; } | |
18417 | ||
18418 | ||
18419 | cat confdefs.h - <<_ACEOF >conftest.c | |
18420 | ||
18421 | ||
18422 | #include <linux/fs.h> | |
18423 | ||
18424 | int | |
18425 | main (void) | |
18426 | { | |
18427 | ||
18428 | struct inode *ip = NULL; | |
18429 | (void) inode_owner_or_capable(ip); | |
18430 | ||
18431 | ; | |
18432 | return 0; | |
18433 | } | |
18434 | ||
18435 | _ACEOF | |
18436 | ||
18437 | ||
18438 | ||
18439 | cat - <<_ACEOF >conftest.h | |
18440 | ||
18441 | _ACEOF | |
18442 | ||
18443 | ||
18444 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18445 | echo "obj-m := conftest.o" >build/Makefile | |
18446 | modpost_flag='' | |
18447 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18448 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18449 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18450 | (eval $ac_try) 2>&5 | |
18451 | ac_status=$? | |
18452 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18453 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18454 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18455 | (eval $ac_try) 2>&5 | |
18456 | ac_status=$? | |
18457 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18458 | test $ac_status = 0; }; }; then : | |
18459 | ||
18460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18461 | $as_echo "yes" >&6; } | |
18462 | ||
18463 | $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h | |
18464 | ||
18465 | ||
18466 | else | |
18467 | $as_echo "$as_me: failed program was:" >&5 | |
18468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18469 | ||
18470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18471 | $as_echo "no" >&6; } | |
18472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5 | |
18473 | $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; } | |
18474 | ||
18475 | ||
18476 | cat confdefs.h - <<_ACEOF >conftest.c | |
18477 | ||
18478 | ||
18479 | #include <linux/fs.h> | |
18480 | #include <linux/sched.h> | |
18481 | ||
18482 | int | |
18483 | main (void) | |
18484 | { | |
18485 | ||
18486 | struct inode *ip = NULL; | |
18487 | (void) is_owner_or_cap(ip); | |
18488 | ||
18489 | ; | |
18490 | return 0; | |
18491 | } | |
18492 | ||
18493 | _ACEOF | |
18494 | ||
18495 | ||
18496 | ||
18497 | cat - <<_ACEOF >conftest.h | |
18498 | ||
18499 | _ACEOF | |
18500 | ||
18501 | ||
18502 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18503 | echo "obj-m := conftest.o" >build/Makefile | |
18504 | modpost_flag='' | |
18505 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18506 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18507 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18508 | (eval $ac_try) 2>&5 | |
18509 | ac_status=$? | |
18510 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18511 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18512 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18513 | (eval $ac_try) 2>&5 | |
18514 | ac_status=$? | |
18515 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18516 | test $ac_status = 0; }; }; then : | |
18517 | ||
18518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18519 | $as_echo "yes" >&6; } | |
18520 | ||
18521 | $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h | |
18522 | ||
18523 | ||
18524 | else | |
18525 | $as_echo "$as_me: failed program was:" >&5 | |
18526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18527 | ||
18528 | as_fn_error $? "no - Please file a bug report at | |
18529 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
18530 | ||
18531 | ||
18532 | ||
18533 | fi | |
18534 | rm -Rf build | |
18535 | ||
18536 | ||
18537 | ||
18538 | ||
18539 | ||
18540 | fi | |
18541 | rm -Rf build | |
18542 | ||
18543 | ||
18544 | ||
18545 | ||
18546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5 | |
18547 | $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; } | |
18548 | ||
18549 | ||
18550 | cat confdefs.h - <<_ACEOF >conftest.c | |
18551 | ||
18552 | ||
18553 | #include <linux/cred.h> | |
18554 | #include <linux/fs.h> | |
18555 | #include <linux/posix_acl_xattr.h> | |
18556 | ||
18557 | int | |
18558 | main (void) | |
18559 | { | |
18560 | ||
18561 | posix_acl_from_xattr(&init_user_ns, NULL, 0); | |
18562 | ||
18563 | ; | |
18564 | return 0; | |
18565 | } | |
18566 | ||
18567 | _ACEOF | |
18568 | ||
18569 | ||
18570 | ||
18571 | cat - <<_ACEOF >conftest.h | |
18572 | ||
18573 | _ACEOF | |
18574 | ||
18575 | ||
18576 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18577 | echo "obj-m := conftest.o" >build/Makefile | |
18578 | modpost_flag='' | |
18579 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18580 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18581 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18582 | (eval $ac_try) 2>&5 | |
18583 | ac_status=$? | |
18584 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18585 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18586 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18587 | (eval $ac_try) 2>&5 | |
18588 | ac_status=$? | |
18589 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18590 | test $ac_status = 0; }; }; then : | |
18591 | ||
18592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18593 | $as_echo "yes" >&6; } | |
18594 | ||
18595 | $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h | |
18596 | ||
18597 | ||
18598 | else | |
18599 | $as_echo "$as_me: failed program was:" >&5 | |
18600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18601 | ||
18602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18603 | $as_echo "no" >&6; } | |
18604 | ||
18605 | ||
18606 | ||
18607 | fi | |
18608 | rm -Rf build | |
18609 | ||
18610 | ||
18611 | ||
18612 | ||
18613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5 | |
18614 | $as_echo_n "checking whether posix_acl_release() is available... " >&6; } | |
18615 | ||
18616 | ||
18617 | cat confdefs.h - <<_ACEOF >conftest.c | |
18618 | ||
18619 | ||
18620 | #include <linux/cred.h> | |
18621 | #include <linux/fs.h> | |
18622 | #include <linux/posix_acl.h> | |
18623 | ||
18624 | int | |
18625 | main (void) | |
18626 | { | |
18627 | ||
18628 | struct posix_acl* tmp = posix_acl_alloc(1, 0); | |
18629 | posix_acl_release(tmp); | |
18630 | ||
18631 | ; | |
18632 | return 0; | |
18633 | } | |
18634 | ||
18635 | _ACEOF | |
18636 | ||
18637 | ||
18638 | ||
18639 | cat - <<_ACEOF >conftest.h | |
18640 | ||
18641 | _ACEOF | |
18642 | ||
18643 | ||
18644 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18645 | echo "obj-m := conftest.o" >build/Makefile | |
18646 | modpost_flag='' | |
18647 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18648 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18649 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18650 | (eval $ac_try) 2>&5 | |
18651 | ac_status=$? | |
18652 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18653 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18654 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18655 | (eval $ac_try) 2>&5 | |
18656 | ac_status=$? | |
18657 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18658 | test $ac_status = 0; }; }; then : | |
18659 | ||
18660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18661 | $as_echo "yes" >&6; } | |
18662 | ||
18663 | $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h | |
18664 | ||
18665 | ||
18666 | else | |
18667 | $as_echo "$as_me: failed program was:" >&5 | |
18668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18669 | ||
18670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18671 | $as_echo "no" >&6; } | |
18672 | ||
18673 | ||
18674 | ||
18675 | fi | |
18676 | rm -Rf build | |
18677 | ||
18678 | ||
18679 | ||
18680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5 | |
18681 | $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; } | |
18682 | ||
18683 | ||
18684 | cat confdefs.h - <<_ACEOF >conftest.c | |
18685 | ||
18686 | ||
18687 | #include <linux/cred.h> | |
18688 | #include <linux/fs.h> | |
18689 | #include <linux/posix_acl.h> | |
18690 | ||
18691 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
18692 | ||
18693 | int | |
18694 | main (void) | |
18695 | { | |
18696 | ||
18697 | struct posix_acl* tmp = posix_acl_alloc(1, 0); | |
18698 | posix_acl_release(tmp); | |
18699 | ||
18700 | ; | |
18701 | return 0; | |
18702 | } | |
18703 | ||
18704 | _ACEOF | |
18705 | ||
18706 | ||
18707 | ||
18708 | cat - <<_ACEOF >conftest.h | |
18709 | ||
18710 | _ACEOF | |
18711 | ||
18712 | ||
18713 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18714 | echo "obj-m := conftest.o" >build/Makefile | |
18715 | modpost_flag='' | |
18716 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18717 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
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; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18723 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18724 | (eval $ac_try) 2>&5 | |
18725 | ac_status=$? | |
18726 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18727 | test $ac_status = 0; }; }; then : | |
18728 | ||
18729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18730 | $as_echo "no" >&6; } | |
18731 | ||
18732 | else | |
18733 | $as_echo "$as_me: failed program was:" >&5 | |
18734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18735 | ||
18736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18737 | $as_echo "yes" >&6; } | |
18738 | ||
18739 | $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h | |
18740 | ||
18741 | ||
18742 | ||
18743 | ||
18744 | fi | |
18745 | rm -Rf build | |
18746 | ||
18747 | ||
18748 | ||
18749 | ||
18750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5 | |
18751 | $as_echo_n "checking whether set_cached_acl() is usable... " >&6; } | |
18752 | ||
18753 | ||
18754 | cat confdefs.h - <<_ACEOF >conftest.c | |
18755 | ||
18756 | ||
18757 | #include <linux/module.h> | |
18758 | #include <linux/cred.h> | |
18759 | #include <linux/fs.h> | |
18760 | #include <linux/posix_acl.h> | |
18761 | ||
18762 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
18763 | ||
18764 | int | |
18765 | main (void) | |
18766 | { | |
18767 | ||
18768 | struct inode *ip = NULL; | |
18769 | struct posix_acl *acl = posix_acl_alloc(1, 0); | |
18770 | set_cached_acl(ip, ACL_TYPE_ACCESS, acl); | |
18771 | forget_cached_acl(ip, ACL_TYPE_ACCESS); | |
18772 | ||
18773 | ; | |
18774 | return 0; | |
18775 | } | |
18776 | ||
18777 | _ACEOF | |
18778 | ||
18779 | ||
18780 | ||
18781 | cat - <<_ACEOF >conftest.h | |
18782 | ||
18783 | _ACEOF | |
18784 | ||
18785 | ||
18786 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18787 | echo "obj-m := conftest.o" >build/Makefile | |
18788 | modpost_flag='' | |
18789 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18790 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18791 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18792 | (eval $ac_try) 2>&5 | |
18793 | ac_status=$? | |
18794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18795 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18796 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18797 | (eval $ac_try) 2>&5 | |
18798 | ac_status=$? | |
18799 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18800 | test $ac_status = 0; }; }; then : | |
18801 | ||
18802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18803 | $as_echo "yes" >&6; } | |
18804 | ||
18805 | $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h | |
18806 | ||
18807 | ||
18808 | else | |
18809 | $as_echo "$as_me: failed program was:" >&5 | |
18810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18811 | ||
18812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18813 | $as_echo "no" >&6; } | |
18814 | ||
18815 | ||
18816 | ||
18817 | fi | |
18818 | rm -Rf build | |
18819 | ||
18820 | ||
18821 | ||
18822 | ||
18823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5 | |
18824 | $as_echo_n "checking whether posix_acl_chmod exists... " >&6; } | |
18825 | ||
18826 | ||
18827 | cat confdefs.h - <<_ACEOF >conftest.c | |
18828 | ||
18829 | ||
18830 | #include <linux/fs.h> | |
18831 | #include <linux/posix_acl.h> | |
18832 | ||
18833 | int | |
18834 | main (void) | |
18835 | { | |
18836 | ||
18837 | posix_acl_chmod(NULL, 0, 0) | |
18838 | ||
18839 | ; | |
18840 | return 0; | |
18841 | } | |
18842 | ||
18843 | _ACEOF | |
18844 | ||
18845 | ||
18846 | ||
18847 | cat - <<_ACEOF >conftest.h | |
18848 | ||
18849 | _ACEOF | |
18850 | ||
18851 | ||
18852 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18853 | echo "obj-m := conftest.o" >build/Makefile | |
18854 | modpost_flag='' | |
18855 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18856 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18857 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18858 | (eval $ac_try) 2>&5 | |
18859 | ac_status=$? | |
18860 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18861 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18862 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18863 | (eval $ac_try) 2>&5 | |
18864 | ac_status=$? | |
18865 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18866 | test $ac_status = 0; }; }; then : | |
18867 | ||
18868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18869 | $as_echo "yes" >&6; } | |
18870 | ||
18871 | $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h | |
18872 | ||
18873 | ||
18874 | else | |
18875 | $as_echo "$as_me: failed program was:" >&5 | |
18876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18877 | ||
18878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18879 | $as_echo "no" >&6; } | |
18880 | ||
18881 | ||
18882 | ||
18883 | fi | |
18884 | rm -Rf build | |
18885 | ||
18886 | ||
18887 | ||
18888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5 | |
18889 | $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; } | |
18890 | ||
18891 | ||
18892 | cat confdefs.h - <<_ACEOF >conftest.c | |
18893 | ||
18894 | ||
18895 | #include <linux/fs.h> | |
18896 | #include <linux/posix_acl.h> | |
18897 | ||
18898 | int | |
18899 | main (void) | |
18900 | { | |
18901 | ||
18902 | __posix_acl_chmod(NULL, 0, 0) | |
18903 | ||
18904 | ; | |
18905 | return 0; | |
18906 | } | |
18907 | ||
18908 | _ACEOF | |
18909 | ||
18910 | ||
18911 | ||
18912 | cat - <<_ACEOF >conftest.h | |
18913 | ||
18914 | _ACEOF | |
18915 | ||
18916 | ||
18917 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18918 | echo "obj-m := conftest.o" >build/Makefile | |
18919 | modpost_flag='' | |
18920 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18921 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18922 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18923 | (eval $ac_try) 2>&5 | |
18924 | ac_status=$? | |
18925 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18926 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18927 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18928 | (eval $ac_try) 2>&5 | |
18929 | ac_status=$? | |
18930 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18931 | test $ac_status = 0; }; }; then : | |
18932 | ||
18933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18934 | $as_echo "yes" >&6; } | |
18935 | ||
18936 | $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h | |
18937 | ||
18938 | ||
18939 | else | |
18940 | $as_echo "$as_me: failed program was:" >&5 | |
18941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18942 | ||
18943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18944 | $as_echo "no" >&6; } | |
18945 | ||
18946 | ||
18947 | ||
18948 | fi | |
18949 | rm -Rf build | |
18950 | ||
18951 | ||
18952 | ||
18953 | ||
18954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5 | |
18955 | $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; } | |
18956 | ||
18957 | ||
18958 | cat confdefs.h - <<_ACEOF >conftest.c | |
18959 | ||
18960 | ||
18961 | #include <linux/fs.h> | |
18962 | #include <linux/posix_acl.h> | |
18963 | ||
18964 | int | |
18965 | main (void) | |
18966 | { | |
18967 | ||
18968 | umode_t tmp; | |
18969 | posix_acl_equiv_mode(NULL,&tmp); | |
18970 | ||
18971 | ; | |
18972 | return 0; | |
18973 | } | |
18974 | ||
18975 | _ACEOF | |
18976 | ||
18977 | ||
18978 | ||
18979 | cat - <<_ACEOF >conftest.h | |
18980 | ||
18981 | _ACEOF | |
18982 | ||
18983 | ||
18984 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18985 | echo "obj-m := conftest.o" >build/Makefile | |
18986 | modpost_flag='' | |
18987 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18988 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18989 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18990 | (eval $ac_try) 2>&5 | |
18991 | ac_status=$? | |
18992 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18993 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18994 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18995 | (eval $ac_try) 2>&5 | |
18996 | ac_status=$? | |
18997 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18998 | test $ac_status = 0; }; }; then : | |
18999 | ||
19000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19001 | $as_echo "yes" >&6; } | |
19002 | ||
19003 | $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h | |
19004 | ||
19005 | ||
19006 | else | |
19007 | $as_echo "$as_me: failed program was:" >&5 | |
19008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19009 | ||
19010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19011 | $as_echo "no" >&6; } | |
19012 | ||
19013 | ||
19014 | ||
19015 | fi | |
19016 | rm -Rf build | |
19017 | ||
19018 | ||
19019 | ||
19020 | ||
19021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5 | |
19022 | $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; } | |
19023 | ||
19024 | ||
19025 | cat confdefs.h - <<_ACEOF >conftest.c | |
19026 | ||
19027 | ||
19028 | #include <linux/fs.h> | |
19029 | #include <linux/posix_acl.h> | |
19030 | ||
19031 | int | |
19032 | main (void) | |
19033 | { | |
19034 | ||
19035 | struct user_namespace *user_ns = NULL; | |
19036 | const struct posix_acl *acl = NULL; | |
19037 | int error; | |
19038 | ||
19039 | error = posix_acl_valid(user_ns, acl); | |
19040 | ||
19041 | ; | |
19042 | return 0; | |
19043 | } | |
19044 | ||
19045 | _ACEOF | |
19046 | ||
19047 | ||
19048 | ||
19049 | cat - <<_ACEOF >conftest.h | |
19050 | ||
19051 | _ACEOF | |
19052 | ||
19053 | ||
19054 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19055 | echo "obj-m := conftest.o" >build/Makefile | |
19056 | modpost_flag='' | |
19057 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19058 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19059 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19060 | (eval $ac_try) 2>&5 | |
19061 | ac_status=$? | |
19062 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19063 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19064 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19065 | (eval $ac_try) 2>&5 | |
19066 | ac_status=$? | |
19067 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19068 | test $ac_status = 0; }; }; then : | |
19069 | ||
19070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19071 | $as_echo "yes" >&6; } | |
19072 | ||
19073 | $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h | |
19074 | ||
19075 | ||
19076 | else | |
19077 | $as_echo "$as_me: failed program was:" >&5 | |
19078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19079 | ||
19080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19081 | $as_echo "no" >&6; } | |
19082 | ||
19083 | ||
19084 | ||
19085 | fi | |
19086 | rm -Rf build | |
19087 | ||
19088 | ||
19089 | ||
19090 | ||
19091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5 | |
19092 | $as_echo_n "checking whether iops->permission() exists... " >&6; } | |
19093 | ||
19094 | ||
19095 | cat confdefs.h - <<_ACEOF >conftest.c | |
19096 | ||
19097 | ||
19098 | #include <linux/fs.h> | |
19099 | ||
19100 | int permission_fn(struct inode *inode, int mask) { return 0; } | |
19101 | ||
19102 | static const struct inode_operations | |
19103 | iops __attribute__ ((unused)) = { | |
19104 | .permission = permission_fn, | |
19105 | }; | |
19106 | ||
19107 | int | |
19108 | main (void) | |
19109 | { | |
19110 | ||
19111 | ||
19112 | ; | |
19113 | return 0; | |
19114 | } | |
19115 | ||
19116 | _ACEOF | |
19117 | ||
19118 | ||
19119 | ||
19120 | cat - <<_ACEOF >conftest.h | |
19121 | ||
19122 | _ACEOF | |
19123 | ||
19124 | ||
19125 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19126 | echo "obj-m := conftest.o" >build/Makefile | |
19127 | modpost_flag='' | |
19128 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19129 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19130 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19131 | (eval $ac_try) 2>&5 | |
19132 | ac_status=$? | |
19133 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19134 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19135 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19136 | (eval $ac_try) 2>&5 | |
19137 | ac_status=$? | |
19138 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19139 | test $ac_status = 0; }; }; then : | |
19140 | ||
19141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19142 | $as_echo "yes" >&6; } | |
19143 | ||
19144 | $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h | |
19145 | ||
19146 | ||
19147 | else | |
19148 | $as_echo "$as_me: failed program was:" >&5 | |
19149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19150 | ||
19151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19152 | $as_echo "no" >&6; } | |
19153 | ||
19154 | ||
19155 | ||
19156 | fi | |
19157 | rm -Rf build | |
19158 | ||
19159 | ||
19160 | ||
19161 | ||
19162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5 | |
19163 | $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; } | |
19164 | ||
19165 | ||
19166 | cat confdefs.h - <<_ACEOF >conftest.c | |
19167 | ||
19168 | ||
19169 | #include <linux/fs.h> | |
19170 | ||
19171 | int permission_fn(struct inode *inode, int mask, | |
19172 | struct nameidata *nd) { return 0; } | |
19173 | ||
19174 | static const struct inode_operations | |
19175 | iops __attribute__ ((unused)) = { | |
19176 | .permission = permission_fn, | |
19177 | }; | |
19178 | ||
19179 | int | |
19180 | main (void) | |
19181 | { | |
19182 | ||
19183 | ||
19184 | ; | |
19185 | return 0; | |
19186 | } | |
19187 | ||
19188 | _ACEOF | |
19189 | ||
19190 | ||
19191 | ||
19192 | cat - <<_ACEOF >conftest.h | |
19193 | ||
19194 | _ACEOF | |
19195 | ||
19196 | ||
19197 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19198 | echo "obj-m := conftest.o" >build/Makefile | |
19199 | modpost_flag='' | |
19200 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19201 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19202 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19203 | (eval $ac_try) 2>&5 | |
19204 | ac_status=$? | |
19205 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19206 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19207 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19208 | (eval $ac_try) 2>&5 | |
19209 | ac_status=$? | |
19210 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19211 | test $ac_status = 0; }; }; then : | |
19212 | ||
19213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19214 | $as_echo "yes" >&6; } | |
19215 | ||
19216 | $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h | |
19217 | ||
19218 | ||
19219 | $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h | |
19220 | ||
19221 | ||
19222 | else | |
19223 | $as_echo "$as_me: failed program was:" >&5 | |
19224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19225 | ||
19226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19227 | $as_echo "no" >&6; } | |
19228 | ||
19229 | ||
19230 | ||
19231 | fi | |
19232 | rm -Rf build | |
19233 | ||
19234 | ||
19235 | ||
19236 | ||
19237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5 | |
19238 | $as_echo_n "checking whether iops->check_acl() exists... " >&6; } | |
19239 | ||
19240 | ||
19241 | cat confdefs.h - <<_ACEOF >conftest.c | |
19242 | ||
19243 | ||
19244 | #include <linux/fs.h> | |
19245 | ||
19246 | int check_acl_fn(struct inode *inode, int mask) { return 0; } | |
19247 | ||
19248 | static const struct inode_operations | |
19249 | iops __attribute__ ((unused)) = { | |
19250 | .check_acl = check_acl_fn, | |
19251 | }; | |
19252 | ||
19253 | int | |
19254 | main (void) | |
19255 | { | |
19256 | ||
19257 | ||
19258 | ; | |
19259 | return 0; | |
19260 | } | |
19261 | ||
19262 | _ACEOF | |
19263 | ||
19264 | ||
19265 | ||
19266 | cat - <<_ACEOF >conftest.h | |
19267 | ||
19268 | _ACEOF | |
19269 | ||
19270 | ||
19271 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19272 | echo "obj-m := conftest.o" >build/Makefile | |
19273 | modpost_flag='' | |
19274 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19275 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19276 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19277 | (eval $ac_try) 2>&5 | |
19278 | ac_status=$? | |
19279 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19280 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19281 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19282 | (eval $ac_try) 2>&5 | |
19283 | ac_status=$? | |
19284 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19285 | test $ac_status = 0; }; }; then : | |
19286 | ||
19287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19288 | $as_echo "yes" >&6; } | |
19289 | ||
19290 | $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h | |
19291 | ||
19292 | ||
19293 | else | |
19294 | $as_echo "$as_me: failed program was:" >&5 | |
19295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19296 | ||
19297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19298 | $as_echo "no" >&6; } | |
19299 | ||
19300 | ||
19301 | ||
19302 | fi | |
19303 | rm -Rf build | |
19304 | ||
19305 | ||
19306 | ||
19307 | ||
19308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5 | |
19309 | $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; } | |
19310 | ||
19311 | ||
19312 | cat confdefs.h - <<_ACEOF >conftest.c | |
19313 | ||
19314 | ||
19315 | #include <linux/fs.h> | |
19316 | ||
19317 | int check_acl_fn(struct inode *inode, int mask, | |
19318 | unsigned int flags) { return 0; } | |
19319 | ||
19320 | static const struct inode_operations | |
19321 | iops __attribute__ ((unused)) = { | |
19322 | .check_acl = check_acl_fn, | |
19323 | }; | |
19324 | ||
19325 | int | |
19326 | main (void) | |
19327 | { | |
19328 | ||
19329 | ||
19330 | ; | |
19331 | return 0; | |
19332 | } | |
19333 | ||
19334 | _ACEOF | |
19335 | ||
19336 | ||
19337 | ||
19338 | cat - <<_ACEOF >conftest.h | |
19339 | ||
19340 | _ACEOF | |
19341 | ||
19342 | ||
19343 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19344 | echo "obj-m := conftest.o" >build/Makefile | |
19345 | modpost_flag='' | |
19346 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19347 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19348 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19349 | (eval $ac_try) 2>&5 | |
19350 | ac_status=$? | |
19351 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19352 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19353 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19354 | (eval $ac_try) 2>&5 | |
19355 | ac_status=$? | |
19356 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19357 | test $ac_status = 0; }; }; then : | |
19358 | ||
19359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19360 | $as_echo "yes" >&6; } | |
19361 | ||
19362 | $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h | |
19363 | ||
19364 | ||
19365 | $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h | |
19366 | ||
19367 | ||
19368 | else | |
19369 | $as_echo "$as_me: failed program was:" >&5 | |
19370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19371 | ||
19372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19373 | $as_echo "no" >&6; } | |
19374 | ||
19375 | ||
19376 | ||
19377 | fi | |
19378 | rm -Rf build | |
19379 | ||
19380 | ||
19381 | ||
19382 | ||
19383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5 | |
19384 | $as_echo_n "checking whether iops->get_acl() exists... " >&6; } | |
19385 | ||
19386 | ||
19387 | cat confdefs.h - <<_ACEOF >conftest.c | |
19388 | ||
19389 | ||
19390 | #include <linux/fs.h> | |
19391 | ||
19392 | struct posix_acl *get_acl_fn(struct inode *inode, int type) | |
19393 | { return NULL; } | |
19394 | ||
19395 | static const struct inode_operations | |
19396 | iops __attribute__ ((unused)) = { | |
19397 | .get_acl = get_acl_fn, | |
19398 | }; | |
19399 | ||
19400 | int | |
19401 | main (void) | |
19402 | { | |
19403 | ||
19404 | ||
19405 | ; | |
19406 | return 0; | |
19407 | } | |
19408 | ||
19409 | _ACEOF | |
19410 | ||
19411 | ||
19412 | ||
19413 | cat - <<_ACEOF >conftest.h | |
19414 | ||
19415 | _ACEOF | |
19416 | ||
19417 | ||
19418 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19419 | echo "obj-m := conftest.o" >build/Makefile | |
19420 | modpost_flag='' | |
19421 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19422 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19423 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19424 | (eval $ac_try) 2>&5 | |
19425 | ac_status=$? | |
19426 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19427 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19428 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19429 | (eval $ac_try) 2>&5 | |
19430 | ac_status=$? | |
19431 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19432 | test $ac_status = 0; }; }; then : | |
19433 | ||
19434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19435 | $as_echo "yes" >&6; } | |
19436 | ||
19437 | $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h | |
19438 | ||
19439 | ||
19440 | else | |
19441 | $as_echo "$as_me: failed program was:" >&5 | |
19442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19443 | ||
19444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19445 | $as_echo "no" >&6; } | |
19446 | ||
19447 | ||
19448 | ||
19449 | fi | |
19450 | rm -Rf build | |
19451 | ||
19452 | ||
19453 | ||
19454 | ||
19455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5 | |
19456 | $as_echo_n "checking whether iops->set_acl() exists... " >&6; } | |
19457 | ||
19458 | ||
19459 | cat confdefs.h - <<_ACEOF >conftest.c | |
19460 | ||
19461 | ||
19462 | #include <linux/fs.h> | |
19463 | ||
19464 | int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type) | |
19465 | { return 0; } | |
19466 | ||
19467 | static const struct inode_operations | |
19468 | iops __attribute__ ((unused)) = { | |
19469 | .set_acl = set_acl_fn, | |
19470 | }; | |
19471 | ||
19472 | int | |
19473 | main (void) | |
19474 | { | |
19475 | ||
19476 | ||
19477 | ; | |
19478 | return 0; | |
19479 | } | |
19480 | ||
19481 | _ACEOF | |
19482 | ||
19483 | ||
19484 | ||
19485 | cat - <<_ACEOF >conftest.h | |
19486 | ||
19487 | _ACEOF | |
19488 | ||
19489 | ||
19490 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19491 | echo "obj-m := conftest.o" >build/Makefile | |
19492 | modpost_flag='' | |
19493 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19494 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19495 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19496 | (eval $ac_try) 2>&5 | |
19497 | ac_status=$? | |
19498 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19499 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19500 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19501 | (eval $ac_try) 2>&5 | |
19502 | ac_status=$? | |
19503 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19504 | test $ac_status = 0; }; }; then : | |
19505 | ||
19506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19507 | $as_echo "yes" >&6; } | |
19508 | ||
19509 | $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h | |
19510 | ||
19511 | ||
19512 | else | |
19513 | $as_echo "$as_me: failed program was:" >&5 | |
19514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19515 | ||
19516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19517 | $as_echo "no" >&6; } | |
19518 | ||
19519 | ||
19520 | ||
19521 | fi | |
19522 | rm -Rf build | |
19523 | ||
19524 | ||
19525 | ||
19526 | ||
3e990ae0 CIK |
19527 | |
19528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5 | |
19529 | $as_echo_n "checking whether iops->getattr() takes a path... " >&6; } | |
19530 | ||
19531 | ||
19532 | cat confdefs.h - <<_ACEOF >conftest.c | |
19533 | ||
19534 | ||
19535 | #include <linux/fs.h> | |
19536 | ||
19537 | int test_getattr( | |
19538 | const struct path *p, struct kstat *k, | |
19539 | u32 request_mask, unsigned int query_flags) | |
19540 | { return 0; } | |
19541 | ||
19542 | static const struct inode_operations | |
19543 | iops __attribute__ ((unused)) = { | |
19544 | .getattr = test_getattr, | |
19545 | }; | |
19546 | ||
19547 | int | |
19548 | main (void) | |
19549 | { | |
19550 | ||
19551 | ||
19552 | ; | |
19553 | return 0; | |
19554 | } | |
19555 | ||
19556 | _ACEOF | |
19557 | ||
19558 | ||
19559 | ||
19560 | cat - <<_ACEOF >conftest.h | |
19561 | ||
19562 | _ACEOF | |
19563 | ||
19564 | ||
19565 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19566 | echo "obj-m := conftest.o" >build/Makefile | |
19567 | modpost_flag='' | |
19568 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19569 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19570 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19571 | (eval $ac_try) 2>&5 | |
19572 | ac_status=$? | |
19573 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19574 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19575 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19576 | (eval $ac_try) 2>&5 | |
19577 | ac_status=$? | |
19578 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19579 | test $ac_status = 0; }; }; then : | |
19580 | ||
19581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19582 | $as_echo "yes" >&6; } | |
19583 | ||
19584 | $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h | |
19585 | ||
19586 | ||
19587 | else | |
19588 | $as_echo "$as_me: failed program was:" >&5 | |
19589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19590 | ||
19591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19592 | $as_echo "no" >&6; } | |
19593 | ||
19594 | ||
19595 | ||
19596 | fi | |
19597 | rm -Rf build | |
19598 | ||
19599 | ||
19600 | ||
19601 | ||
19602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5 | |
19603 | $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; } | |
19604 | ||
19605 | ||
19606 | cat confdefs.h - <<_ACEOF >conftest.c | |
19607 | ||
19608 | ||
19609 | #include <linux/fs.h> | |
19610 | ||
19611 | int test_getattr( | |
19612 | struct vfsmount *mnt, struct dentry *d, | |
19613 | struct kstat *k) | |
19614 | { return 0; } | |
19615 | ||
19616 | static const struct inode_operations | |
19617 | iops __attribute__ ((unused)) = { | |
19618 | .getattr = test_getattr, | |
19619 | }; | |
19620 | ||
19621 | int | |
19622 | main (void) | |
19623 | { | |
19624 | ||
19625 | ||
19626 | ; | |
19627 | return 0; | |
19628 | } | |
19629 | ||
19630 | _ACEOF | |
19631 | ||
19632 | ||
19633 | ||
19634 | cat - <<_ACEOF >conftest.h | |
19635 | ||
19636 | _ACEOF | |
19637 | ||
19638 | ||
19639 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19640 | echo "obj-m := conftest.o" >build/Makefile | |
19641 | modpost_flag='' | |
19642 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19643 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19644 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19645 | (eval $ac_try) 2>&5 | |
19646 | ac_status=$? | |
19647 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19648 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19649 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19650 | (eval $ac_try) 2>&5 | |
19651 | ac_status=$? | |
19652 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19653 | test $ac_status = 0; }; }; then : | |
19654 | ||
19655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19656 | $as_echo "yes" >&6; } | |
19657 | ||
19658 | $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h | |
19659 | ||
19660 | ||
19661 | else | |
19662 | $as_echo "$as_me: failed program was:" >&5 | |
19663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19664 | ||
19665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19666 | $as_echo "no" >&6; } | |
19667 | ||
19668 | ||
19669 | ||
19670 | fi | |
19671 | rm -Rf build | |
19672 | ||
19673 | ||
19674 | ||
19675 | ||
19676 | ||
87d546d8 TG |
19677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5 |
19678 | $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; } | |
19679 | ||
19680 | ||
19681 | cat confdefs.h - <<_ACEOF >conftest.c | |
19682 | ||
19683 | ||
19684 | #include <linux/fs.h> | |
19685 | ||
19686 | int | |
19687 | main (void) | |
19688 | { | |
19689 | ||
19690 | void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL); | |
19691 | ||
19692 | ; | |
19693 | return 0; | |
19694 | } | |
19695 | ||
19696 | _ACEOF | |
19697 | ||
19698 | ||
19699 | ||
19700 | cat - <<_ACEOF >conftest.h | |
19701 | ||
19702 | _ACEOF | |
19703 | ||
19704 | ||
19705 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19706 | echo "obj-m := conftest.o" >build/Makefile | |
19707 | modpost_flag='' | |
19708 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19709 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19710 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19711 | (eval $ac_try) 2>&5 | |
19712 | ac_status=$? | |
19713 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19714 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19715 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19716 | (eval $ac_try) 2>&5 | |
19717 | ac_status=$? | |
19718 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19719 | test $ac_status = 0; }; }; then : | |
19720 | ||
19721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19722 | $as_echo "yes" >&6; } | |
19723 | ||
19724 | $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h | |
19725 | ||
19726 | ||
19727 | else | |
19728 | $as_echo "$as_me: failed program was:" >&5 | |
19729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19730 | ||
19731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19732 | $as_echo "no" >&6; } | |
19733 | ||
19734 | ||
19735 | ||
19736 | fi | |
19737 | rm -Rf build | |
19738 | ||
19739 | ||
19740 | ||
19741 | ||
19742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5 | |
19743 | $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; } | |
19744 | ||
19745 | ||
19746 | ||
19747 | cat confdefs.h - <<_ACEOF >conftest.c | |
19748 | ||
19749 | ||
19750 | #include <linux/fs.h> | |
19751 | ||
19752 | int show_options (struct seq_file * x, struct dentry * y) { return 0; }; | |
19753 | static struct super_operations sops __attribute__ ((unused)) = { | |
19754 | .show_options = show_options, | |
19755 | }; | |
19756 | ||
19757 | int | |
19758 | main (void) | |
19759 | { | |
19760 | ||
19761 | ||
19762 | ; | |
19763 | return 0; | |
19764 | } | |
19765 | ||
19766 | _ACEOF | |
19767 | ||
19768 | ||
19769 | ||
19770 | cat - <<_ACEOF >conftest.h | |
19771 | ||
19772 | _ACEOF | |
19773 | ||
19774 | ||
19775 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19776 | echo "obj-m := conftest.o" >build/Makefile | |
19777 | modpost_flag='' | |
19778 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19779 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19780 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19781 | (eval $ac_try) 2>&5 | |
19782 | ac_status=$? | |
19783 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19784 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19785 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19786 | (eval $ac_try) 2>&5 | |
19787 | ac_status=$? | |
19788 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19789 | test $ac_status = 0; }; }; then : | |
19790 | ||
19791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19792 | $as_echo "yes" >&6; } | |
19793 | ||
19794 | $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h | |
19795 | ||
19796 | ||
19797 | else | |
19798 | $as_echo "$as_me: failed program was:" >&5 | |
19799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19800 | ||
19801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19802 | $as_echo "no" >&6; } | |
19803 | ||
19804 | ||
19805 | ||
19806 | fi | |
19807 | rm -Rf build | |
19808 | ||
19809 | ||
19810 | ||
19811 | ||
19812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5 | |
19813 | $as_echo_n "checking whether file_inode() is available... " >&6; } | |
19814 | ||
19815 | ||
19816 | cat confdefs.h - <<_ACEOF >conftest.c | |
19817 | ||
19818 | ||
19819 | #include <linux/fs.h> | |
19820 | ||
19821 | int | |
19822 | main (void) | |
19823 | { | |
19824 | ||
19825 | struct file *f = NULL; | |
19826 | file_inode(f); | |
19827 | ||
19828 | ; | |
19829 | return 0; | |
19830 | } | |
19831 | ||
19832 | _ACEOF | |
19833 | ||
19834 | ||
19835 | ||
19836 | cat - <<_ACEOF >conftest.h | |
19837 | ||
19838 | _ACEOF | |
19839 | ||
19840 | ||
19841 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19842 | echo "obj-m := conftest.o" >build/Makefile | |
19843 | modpost_flag='' | |
19844 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19845 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19846 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19847 | (eval $ac_try) 2>&5 | |
19848 | ac_status=$? | |
19849 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19850 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19851 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19852 | (eval $ac_try) 2>&5 | |
19853 | ac_status=$? | |
19854 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19855 | test $ac_status = 0; }; }; then : | |
19856 | ||
19857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19858 | $as_echo "yes" >&6; } | |
19859 | ||
19860 | $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h | |
19861 | ||
19862 | ||
19863 | else | |
19864 | $as_echo "$as_me: failed program was:" >&5 | |
19865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19866 | ||
19867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19868 | $as_echo "no" >&6; } | |
19869 | ||
19870 | ||
19871 | ||
19872 | fi | |
19873 | rm -Rf build | |
19874 | ||
19875 | ||
19876 | ||
19877 | ||
19878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5 | |
19879 | $as_echo_n "checking whether fops->fsync() wants... " >&6; } | |
19880 | ||
19881 | ||
19882 | ||
19883 | cat confdefs.h - <<_ACEOF >conftest.c | |
19884 | ||
19885 | ||
19886 | #include <linux/fs.h> | |
19887 | ||
19888 | int test_fsync(struct file *f, struct dentry *dentry, int x) | |
19889 | { return 0; } | |
19890 | ||
19891 | static const struct file_operations | |
19892 | fops __attribute__ ((unused)) = { | |
19893 | .fsync = test_fsync, | |
19894 | }; | |
19895 | ||
19896 | int | |
19897 | main (void) | |
19898 | { | |
19899 | ||
19900 | ||
19901 | ; | |
19902 | return 0; | |
19903 | } | |
19904 | ||
19905 | _ACEOF | |
19906 | ||
19907 | ||
19908 | ||
19909 | cat - <<_ACEOF >conftest.h | |
19910 | ||
19911 | _ACEOF | |
19912 | ||
19913 | ||
19914 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19915 | echo "obj-m := conftest.o" >build/Makefile | |
19916 | modpost_flag='' | |
19917 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19918 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19919 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19920 | (eval $ac_try) 2>&5 | |
19921 | ac_status=$? | |
19922 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19923 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19924 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19925 | (eval $ac_try) 2>&5 | |
19926 | ac_status=$? | |
19927 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19928 | test $ac_status = 0; }; }; then : | |
19929 | ||
19930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5 | |
19931 | $as_echo "dentry" >&6; } | |
19932 | ||
19933 | $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h | |
19934 | ||
19935 | ||
19936 | else | |
19937 | $as_echo "$as_me: failed program was:" >&5 | |
19938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19939 | ||
19940 | ||
19941 | ||
19942 | ||
19943 | fi | |
19944 | rm -Rf build | |
19945 | ||
19946 | ||
19947 | ||
19948 | ||
19949 | ||
19950 | ||
19951 | cat confdefs.h - <<_ACEOF >conftest.c | |
19952 | ||
19953 | ||
19954 | #include <linux/fs.h> | |
19955 | ||
19956 | int test_fsync(struct file *f, int x) { return 0; } | |
19957 | ||
19958 | static const struct file_operations | |
19959 | fops __attribute__ ((unused)) = { | |
19960 | .fsync = test_fsync, | |
19961 | }; | |
19962 | ||
19963 | int | |
19964 | main (void) | |
19965 | { | |
19966 | ||
19967 | ||
19968 | ; | |
19969 | return 0; | |
19970 | } | |
19971 | ||
19972 | _ACEOF | |
19973 | ||
19974 | ||
19975 | ||
19976 | cat - <<_ACEOF >conftest.h | |
19977 | ||
19978 | _ACEOF | |
19979 | ||
19980 | ||
19981 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19982 | echo "obj-m := conftest.o" >build/Makefile | |
19983 | modpost_flag='' | |
19984 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19985 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19986 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19987 | (eval $ac_try) 2>&5 | |
19988 | ac_status=$? | |
19989 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19990 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19991 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19992 | (eval $ac_try) 2>&5 | |
19993 | ac_status=$? | |
19994 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19995 | test $ac_status = 0; }; }; then : | |
19996 | ||
19997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5 | |
19998 | $as_echo "no dentry" >&6; } | |
19999 | ||
20000 | $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h | |
20001 | ||
20002 | ||
20003 | else | |
20004 | $as_echo "$as_me: failed program was:" >&5 | |
20005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20006 | ||
20007 | ||
20008 | ||
20009 | ||
20010 | fi | |
20011 | rm -Rf build | |
20012 | ||
20013 | ||
20014 | ||
20015 | ||
20016 | ||
20017 | ||
20018 | cat confdefs.h - <<_ACEOF >conftest.c | |
20019 | ||
20020 | ||
20021 | #include <linux/fs.h> | |
20022 | ||
20023 | int test_fsync(struct file *f, loff_t a, loff_t b, int c) | |
20024 | { return 0; } | |
20025 | ||
20026 | static const struct file_operations | |
20027 | fops __attribute__ ((unused)) = { | |
20028 | .fsync = test_fsync, | |
20029 | }; | |
20030 | ||
20031 | int | |
20032 | main (void) | |
20033 | { | |
20034 | ||
20035 | ||
20036 | ; | |
20037 | return 0; | |
20038 | } | |
20039 | ||
20040 | _ACEOF | |
20041 | ||
20042 | ||
20043 | ||
20044 | cat - <<_ACEOF >conftest.h | |
20045 | ||
20046 | _ACEOF | |
20047 | ||
20048 | ||
20049 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20050 | echo "obj-m := conftest.o" >build/Makefile | |
20051 | modpost_flag='' | |
20052 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20053 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20054 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20055 | (eval $ac_try) 2>&5 | |
20056 | ac_status=$? | |
20057 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20058 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20059 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20060 | (eval $ac_try) 2>&5 | |
20061 | ac_status=$? | |
20062 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20063 | test $ac_status = 0; }; }; then : | |
20064 | ||
20065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5 | |
20066 | $as_echo "range" >&6; } | |
20067 | ||
20068 | $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h | |
20069 | ||
20070 | ||
20071 | else | |
20072 | $as_echo "$as_me: failed program was:" >&5 | |
20073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20074 | ||
20075 | ||
20076 | ||
20077 | ||
20078 | fi | |
20079 | rm -Rf build | |
20080 | ||
20081 | ||
20082 | ||
20083 | ||
20084 | ||
20085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5 | |
20086 | $as_echo_n "checking whether sops->evict_inode() exists... " >&6; } | |
20087 | ||
20088 | ||
20089 | cat confdefs.h - <<_ACEOF >conftest.c | |
20090 | ||
20091 | ||
20092 | #include <linux/fs.h> | |
20093 | void evict_inode (struct inode * t) { return; } | |
20094 | static struct super_operations sops __attribute__ ((unused)) = { | |
20095 | .evict_inode = evict_inode, | |
20096 | }; | |
20097 | ||
20098 | int | |
20099 | main (void) | |
20100 | { | |
20101 | ||
20102 | ||
20103 | ; | |
20104 | return 0; | |
20105 | } | |
20106 | ||
20107 | _ACEOF | |
20108 | ||
20109 | ||
20110 | ||
20111 | cat - <<_ACEOF >conftest.h | |
20112 | ||
20113 | _ACEOF | |
20114 | ||
20115 | ||
20116 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20117 | echo "obj-m := conftest.o" >build/Makefile | |
20118 | modpost_flag='' | |
20119 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20120 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20121 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20122 | (eval $ac_try) 2>&5 | |
20123 | ac_status=$? | |
20124 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20125 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20126 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20127 | (eval $ac_try) 2>&5 | |
20128 | ac_status=$? | |
20129 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20130 | test $ac_status = 0; }; }; then : | |
20131 | ||
20132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20133 | $as_echo "yes" >&6; } | |
20134 | ||
20135 | $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h | |
20136 | ||
20137 | ||
20138 | else | |
20139 | $as_echo "$as_me: failed program was:" >&5 | |
20140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20141 | ||
20142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20143 | $as_echo "no" >&6; } | |
20144 | ||
20145 | ||
20146 | ||
20147 | fi | |
20148 | rm -Rf build | |
20149 | ||
20150 | ||
20151 | ||
20152 | ||
20153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5 | |
20154 | $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; } | |
20155 | ||
20156 | ||
20157 | cat confdefs.h - <<_ACEOF >conftest.c | |
20158 | ||
20159 | ||
20160 | #include <linux/fs.h> | |
20161 | ||
20162 | void dirty_inode(struct inode *a, int b) { return; } | |
20163 | ||
20164 | static const struct super_operations | |
20165 | sops __attribute__ ((unused)) = { | |
20166 | .dirty_inode = dirty_inode, | |
20167 | }; | |
20168 | ||
20169 | int | |
20170 | main (void) | |
20171 | { | |
20172 | ||
20173 | ||
20174 | ; | |
20175 | return 0; | |
20176 | } | |
20177 | ||
20178 | _ACEOF | |
20179 | ||
20180 | ||
20181 | ||
20182 | cat - <<_ACEOF >conftest.h | |
20183 | ||
20184 | _ACEOF | |
20185 | ||
20186 | ||
20187 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20188 | echo "obj-m := conftest.o" >build/Makefile | |
20189 | modpost_flag='' | |
20190 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20191 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20192 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20193 | (eval $ac_try) 2>&5 | |
20194 | ac_status=$? | |
20195 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20196 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20197 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20198 | (eval $ac_try) 2>&5 | |
20199 | ac_status=$? | |
20200 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20201 | test $ac_status = 0; }; }; then : | |
20202 | ||
20203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20204 | $as_echo "yes" >&6; } | |
20205 | ||
20206 | $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h | |
20207 | ||
20208 | ||
20209 | else | |
20210 | $as_echo "$as_me: failed program was:" >&5 | |
20211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20212 | ||
20213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20214 | $as_echo "no" >&6; } | |
20215 | ||
20216 | ||
20217 | ||
20218 | fi | |
20219 | rm -Rf build | |
20220 | ||
20221 | ||
20222 | ||
20223 | ||
20224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5 | |
20225 | $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; } | |
20226 | ||
20227 | ||
20228 | cat confdefs.h - <<_ACEOF >conftest.c | |
20229 | ||
20230 | ||
20231 | #include <linux/fs.h> | |
20232 | ||
20233 | int nr_cached_objects(struct super_block *sb) { return 0; } | |
20234 | ||
20235 | static const struct super_operations | |
20236 | sops __attribute__ ((unused)) = { | |
20237 | .nr_cached_objects = nr_cached_objects, | |
20238 | }; | |
20239 | ||
20240 | int | |
20241 | main (void) | |
20242 | { | |
20243 | ||
20244 | ||
20245 | ; | |
20246 | return 0; | |
20247 | } | |
20248 | ||
20249 | _ACEOF | |
20250 | ||
20251 | ||
20252 | ||
20253 | cat - <<_ACEOF >conftest.h | |
20254 | ||
20255 | _ACEOF | |
20256 | ||
20257 | ||
20258 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20259 | echo "obj-m := conftest.o" >build/Makefile | |
20260 | modpost_flag='' | |
20261 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20262 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20263 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20264 | (eval $ac_try) 2>&5 | |
20265 | ac_status=$? | |
20266 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20267 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20268 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20269 | (eval $ac_try) 2>&5 | |
20270 | ac_status=$? | |
20271 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20272 | test $ac_status = 0; }; }; then : | |
20273 | ||
20274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20275 | $as_echo "yes" >&6; } | |
20276 | ||
20277 | $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h | |
20278 | ||
20279 | ||
20280 | else | |
20281 | $as_echo "$as_me: failed program was:" >&5 | |
20282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20283 | ||
20284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20285 | $as_echo "no" >&6; } | |
20286 | ||
20287 | ||
20288 | ||
20289 | fi | |
20290 | rm -Rf build | |
20291 | ||
20292 | ||
20293 | ||
20294 | ||
20295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5 | |
20296 | $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; } | |
20297 | ||
20298 | ||
20299 | cat confdefs.h - <<_ACEOF >conftest.c | |
20300 | ||
20301 | ||
20302 | #include <linux/fs.h> | |
20303 | ||
20304 | void free_cached_objects(struct super_block *sb, int x) | |
20305 | { return; } | |
20306 | ||
20307 | static const struct super_operations | |
20308 | sops __attribute__ ((unused)) = { | |
20309 | .free_cached_objects = free_cached_objects, | |
20310 | }; | |
20311 | ||
20312 | int | |
20313 | main (void) | |
20314 | { | |
20315 | ||
20316 | ||
20317 | ; | |
20318 | return 0; | |
20319 | } | |
20320 | ||
20321 | _ACEOF | |
20322 | ||
20323 | ||
20324 | ||
20325 | cat - <<_ACEOF >conftest.h | |
20326 | ||
20327 | _ACEOF | |
20328 | ||
20329 | ||
20330 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20331 | echo "obj-m := conftest.o" >build/Makefile | |
20332 | modpost_flag='' | |
20333 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20334 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20335 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20336 | (eval $ac_try) 2>&5 | |
20337 | ac_status=$? | |
20338 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20339 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20340 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20341 | (eval $ac_try) 2>&5 | |
20342 | ac_status=$? | |
20343 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20344 | test $ac_status = 0; }; }; then : | |
20345 | ||
20346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20347 | $as_echo "yes" >&6; } | |
20348 | ||
20349 | $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h | |
20350 | ||
20351 | ||
20352 | else | |
20353 | $as_echo "$as_me: failed program was:" >&5 | |
20354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20355 | ||
20356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20357 | $as_echo "no" >&6; } | |
20358 | ||
20359 | ||
20360 | ||
20361 | fi | |
20362 | rm -Rf build | |
20363 | ||
20364 | ||
20365 | ||
20366 | ||
20367 | ||
20368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5 | |
20369 | $as_echo_n "checking whether fops->fallocate() exists... " >&6; } | |
20370 | ||
20371 | ||
20372 | cat confdefs.h - <<_ACEOF >conftest.c | |
20373 | ||
20374 | ||
20375 | #include <linux/fs.h> | |
20376 | ||
20377 | long test_fallocate(struct file *file, int mode, | |
20378 | loff_t offset, loff_t len) { return 0; } | |
20379 | ||
20380 | static const struct file_operations | |
20381 | fops __attribute__ ((unused)) = { | |
20382 | .fallocate = test_fallocate, | |
20383 | }; | |
20384 | ||
20385 | int | |
20386 | main (void) | |
20387 | { | |
20388 | ||
20389 | ||
20390 | ; | |
20391 | return 0; | |
20392 | } | |
20393 | ||
20394 | _ACEOF | |
20395 | ||
20396 | ||
20397 | ||
20398 | cat - <<_ACEOF >conftest.h | |
20399 | ||
20400 | _ACEOF | |
20401 | ||
20402 | ||
20403 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20404 | echo "obj-m := conftest.o" >build/Makefile | |
20405 | modpost_flag='' | |
20406 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20407 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20408 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20409 | (eval $ac_try) 2>&5 | |
20410 | ac_status=$? | |
20411 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20412 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20413 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20414 | (eval $ac_try) 2>&5 | |
20415 | ac_status=$? | |
20416 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20417 | test $ac_status = 0; }; }; then : | |
20418 | ||
20419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20420 | $as_echo "yes" >&6; } | |
20421 | ||
20422 | $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h | |
20423 | ||
20424 | ||
20425 | else | |
20426 | $as_echo "$as_me: failed program was:" >&5 | |
20427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20428 | ||
20429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20430 | $as_echo "no" >&6; } | |
20431 | ||
20432 | ||
20433 | ||
20434 | fi | |
20435 | rm -Rf build | |
20436 | ||
20437 | ||
20438 | ||
20439 | ||
20440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5 | |
20441 | $as_echo_n "checking whether iops->fallocate() exists... " >&6; } | |
20442 | ||
20443 | ||
20444 | cat confdefs.h - <<_ACEOF >conftest.c | |
20445 | ||
20446 | ||
20447 | #include <linux/fs.h> | |
20448 | ||
20449 | long test_fallocate(struct inode *inode, int mode, | |
20450 | loff_t offset, loff_t len) { return 0; } | |
20451 | ||
20452 | static const struct inode_operations | |
20453 | fops __attribute__ ((unused)) = { | |
20454 | .fallocate = test_fallocate, | |
20455 | }; | |
20456 | ||
20457 | int | |
20458 | main (void) | |
20459 | { | |
20460 | ||
20461 | ||
20462 | ; | |
20463 | return 0; | |
20464 | } | |
20465 | ||
20466 | _ACEOF | |
20467 | ||
20468 | ||
20469 | ||
20470 | cat - <<_ACEOF >conftest.h | |
20471 | ||
20472 | _ACEOF | |
20473 | ||
20474 | ||
20475 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20476 | echo "obj-m := conftest.o" >build/Makefile | |
20477 | modpost_flag='' | |
20478 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20479 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20480 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20481 | (eval $ac_try) 2>&5 | |
20482 | ac_status=$? | |
20483 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20484 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20485 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20486 | (eval $ac_try) 2>&5 | |
20487 | ac_status=$? | |
20488 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20489 | test $ac_status = 0; }; }; then : | |
20490 | ||
20491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20492 | $as_echo "yes" >&6; } | |
20493 | ||
20494 | $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h | |
20495 | ||
20496 | ||
20497 | else | |
20498 | $as_echo "$as_me: failed program was:" >&5 | |
20499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20500 | ||
20501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20502 | $as_echo "no" >&6; } | |
20503 | ||
20504 | ||
20505 | ||
20506 | fi | |
20507 | rm -Rf build | |
20508 | ||
20509 | ||
20510 | ||
20511 | ||
20512 | ||
20513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5 | |
20514 | $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; } | |
20515 | ||
20516 | ||
20517 | cat confdefs.h - <<_ACEOF >conftest.c | |
20518 | ||
20519 | ||
20520 | #include <linux/fs.h> | |
20521 | ||
20522 | static const struct file_operations | |
20523 | fops __attribute__ ((unused)) = { | |
20524 | .aio_fsync = NULL, | |
20525 | }; | |
20526 | ||
20527 | int | |
20528 | main (void) | |
20529 | { | |
20530 | ||
20531 | ||
20532 | ; | |
20533 | return 0; | |
20534 | } | |
20535 | ||
20536 | _ACEOF | |
20537 | ||
20538 | ||
20539 | ||
20540 | cat - <<_ACEOF >conftest.h | |
20541 | ||
20542 | _ACEOF | |
20543 | ||
20544 | ||
20545 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20546 | echo "obj-m := conftest.o" >build/Makefile | |
20547 | modpost_flag='' | |
20548 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20549 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20550 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20551 | (eval $ac_try) 2>&5 | |
20552 | ac_status=$? | |
20553 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20554 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20555 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20556 | (eval $ac_try) 2>&5 | |
20557 | ac_status=$? | |
20558 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20559 | test $ac_status = 0; }; }; then : | |
20560 | ||
20561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20562 | $as_echo "yes" >&6; } | |
20563 | ||
20564 | $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h | |
20565 | ||
20566 | ||
20567 | else | |
20568 | $as_echo "$as_me: failed program was:" >&5 | |
20569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20570 | ||
20571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20572 | $as_echo "no" >&6; } | |
20573 | ||
20574 | ||
20575 | ||
20576 | fi | |
20577 | rm -Rf build | |
20578 | ||
20579 | ||
20580 | ||
20581 | ||
20582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5 | |
20583 | $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; } | |
20584 | ||
20585 | ||
20586 | cat confdefs.h - <<_ACEOF >conftest.c | |
20587 | ||
20588 | ||
20589 | #include <linux/fs.h> | |
20590 | ||
20591 | int mkdir(struct inode *inode, struct dentry *dentry, | |
20592 | umode_t umode) { return 0; } | |
20593 | ||
20594 | static const struct inode_operations | |
20595 | iops __attribute__ ((unused)) = { | |
20596 | .mkdir = mkdir, | |
20597 | }; | |
20598 | ||
20599 | int | |
20600 | main (void) | |
20601 | { | |
20602 | ||
20603 | ||
20604 | ; | |
20605 | return 0; | |
20606 | } | |
20607 | ||
20608 | _ACEOF | |
20609 | ||
20610 | ||
20611 | ||
20612 | cat - <<_ACEOF >conftest.h | |
20613 | ||
20614 | _ACEOF | |
20615 | ||
20616 | ||
20617 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20618 | echo "obj-m := conftest.o" >build/Makefile | |
20619 | modpost_flag='' | |
20620 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20621 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20622 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20623 | (eval $ac_try) 2>&5 | |
20624 | ac_status=$? | |
20625 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20626 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20627 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20628 | (eval $ac_try) 2>&5 | |
20629 | ac_status=$? | |
20630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20631 | test $ac_status = 0; }; }; then : | |
20632 | ||
20633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20634 | $as_echo "yes" >&6; } | |
20635 | ||
20636 | $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h | |
20637 | ||
20638 | ||
20639 | else | |
20640 | $as_echo "$as_me: failed program was:" >&5 | |
20641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20642 | ||
20643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20644 | $as_echo "no" >&6; } | |
20645 | ||
20646 | ||
20647 | ||
20648 | fi | |
20649 | rm -Rf build | |
20650 | ||
20651 | ||
20652 | ||
20653 | ||
20654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5 | |
20655 | $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; } | |
20656 | ||
20657 | ||
20658 | cat confdefs.h - <<_ACEOF >conftest.c | |
20659 | ||
20660 | ||
20661 | #include <linux/fs.h> | |
20662 | ||
20663 | struct dentry *inode_lookup(struct inode *inode, | |
20664 | struct dentry *dentry, struct nameidata *nidata) | |
20665 | { return NULL; } | |
20666 | ||
20667 | static const struct inode_operations iops | |
20668 | __attribute__ ((unused)) = { | |
20669 | .lookup = inode_lookup, | |
20670 | }; | |
20671 | ||
20672 | int | |
20673 | main (void) | |
20674 | { | |
20675 | ||
20676 | ||
20677 | ; | |
20678 | return 0; | |
20679 | } | |
20680 | ||
20681 | _ACEOF | |
20682 | ||
20683 | ||
20684 | ||
20685 | cat - <<_ACEOF >conftest.h | |
20686 | ||
20687 | _ACEOF | |
20688 | ||
20689 | ||
20690 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20691 | echo "obj-m := conftest.o" >build/Makefile | |
20692 | modpost_flag='' | |
20693 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20694 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20695 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20696 | (eval $ac_try) 2>&5 | |
20697 | ac_status=$? | |
20698 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20699 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20700 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20701 | (eval $ac_try) 2>&5 | |
20702 | ac_status=$? | |
20703 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20704 | test $ac_status = 0; }; }; then : | |
20705 | ||
20706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20707 | $as_echo "yes" >&6; } | |
20708 | ||
20709 | $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h | |
20710 | ||
20711 | ||
20712 | else | |
20713 | $as_echo "$as_me: failed program was:" >&5 | |
20714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20715 | ||
20716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20717 | $as_echo "no" >&6; } | |
20718 | ||
20719 | ||
20720 | ||
20721 | fi | |
20722 | rm -Rf build | |
20723 | ||
20724 | ||
20725 | ||
20726 | ||
20727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5 | |
20728 | $as_echo_n "checking whether iops->create() passes nameidata... " >&6; } | |
20729 | ||
20730 | ||
20731 | cat confdefs.h - <<_ACEOF >conftest.c | |
20732 | ||
20733 | ||
20734 | #include <linux/fs.h> | |
20735 | ||
20736 | #ifdef HAVE_MKDIR_UMODE_T | |
20737 | int inode_create(struct inode *inode ,struct dentry *dentry, | |
20738 | umode_t umode, struct nameidata *nidata) { return 0; } | |
20739 | #else | |
20740 | int inode_create(struct inode *inode,struct dentry *dentry, | |
20741 | int umode, struct nameidata * nidata) { return 0; } | |
20742 | #endif | |
20743 | ||
20744 | static const struct inode_operations | |
20745 | iops __attribute__ ((unused)) = { | |
20746 | .create = inode_create, | |
20747 | }; | |
20748 | ||
20749 | int | |
20750 | main (void) | |
20751 | { | |
20752 | ||
20753 | ||
20754 | ; | |
20755 | return 0; | |
20756 | } | |
20757 | ||
20758 | _ACEOF | |
20759 | ||
20760 | ||
20761 | ||
20762 | cat - <<_ACEOF >conftest.h | |
20763 | ||
20764 | _ACEOF | |
20765 | ||
20766 | ||
20767 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20768 | echo "obj-m := conftest.o" >build/Makefile | |
20769 | modpost_flag='' | |
20770 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20771 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20772 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20773 | (eval $ac_try) 2>&5 | |
20774 | ac_status=$? | |
20775 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20776 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20777 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20778 | (eval $ac_try) 2>&5 | |
20779 | ac_status=$? | |
20780 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20781 | test $ac_status = 0; }; }; then : | |
20782 | ||
20783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20784 | $as_echo "yes" >&6; } | |
20785 | ||
20786 | $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h | |
20787 | ||
20788 | ||
20789 | else | |
20790 | $as_echo "$as_me: failed program was:" >&5 | |
20791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20792 | ||
20793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20794 | $as_echo "no" >&6; } | |
20795 | ||
20796 | ||
20797 | ||
20798 | fi | |
20799 | rm -Rf build | |
20800 | ||
20801 | ||
20802 | ||
20803 | ||
20804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5 | |
20805 | $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; } | |
20806 | ||
20807 | ||
20808 | cat confdefs.h - <<_ACEOF >conftest.c | |
20809 | ||
20810 | ||
20811 | #include <linux/fs.h> | |
20812 | const char *get_link(struct dentry *de, struct inode *ip, | |
20813 | struct delayed_call *done) { return "symlink"; } | |
20814 | static struct inode_operations | |
20815 | iops __attribute__ ((unused)) = { | |
20816 | .get_link = get_link, | |
20817 | }; | |
20818 | ||
20819 | int | |
20820 | main (void) | |
20821 | { | |
20822 | ||
20823 | ||
20824 | ; | |
20825 | return 0; | |
20826 | } | |
20827 | ||
20828 | _ACEOF | |
20829 | ||
20830 | ||
20831 | ||
20832 | cat - <<_ACEOF >conftest.h | |
20833 | ||
20834 | _ACEOF | |
20835 | ||
20836 | ||
20837 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20838 | echo "obj-m := conftest.o" >build/Makefile | |
20839 | modpost_flag='' | |
20840 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20841 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20842 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20843 | (eval $ac_try) 2>&5 | |
20844 | ac_status=$? | |
20845 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20846 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20847 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20848 | (eval $ac_try) 2>&5 | |
20849 | ac_status=$? | |
20850 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20851 | test $ac_status = 0; }; }; then : | |
20852 | ||
20853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20854 | $as_echo "yes" >&6; } | |
20855 | ||
20856 | $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h | |
20857 | ||
20858 | ||
20859 | else | |
20860 | $as_echo "$as_me: failed program was:" >&5 | |
20861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20862 | ||
20863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20864 | $as_echo "no" >&6; } | |
20865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5 | |
20866 | $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; } | |
20867 | ||
20868 | ||
20869 | cat confdefs.h - <<_ACEOF >conftest.c | |
20870 | ||
20871 | ||
20872 | #include <linux/fs.h> | |
20873 | const char *get_link(struct dentry *de, struct | |
20874 | inode *ip, void **cookie) { return "symlink"; } | |
20875 | static struct inode_operations | |
20876 | iops __attribute__ ((unused)) = { | |
20877 | .get_link = get_link, | |
20878 | }; | |
20879 | ||
20880 | int | |
20881 | main (void) | |
20882 | { | |
20883 | ||
20884 | ||
20885 | ; | |
20886 | return 0; | |
20887 | } | |
20888 | ||
20889 | _ACEOF | |
20890 | ||
20891 | ||
20892 | ||
20893 | cat - <<_ACEOF >conftest.h | |
20894 | ||
20895 | _ACEOF | |
20896 | ||
20897 | ||
20898 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20899 | echo "obj-m := conftest.o" >build/Makefile | |
20900 | modpost_flag='' | |
20901 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20902 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20903 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20904 | (eval $ac_try) 2>&5 | |
20905 | ac_status=$? | |
20906 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20907 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20908 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20909 | (eval $ac_try) 2>&5 | |
20910 | ac_status=$? | |
20911 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20912 | test $ac_status = 0; }; }; then : | |
20913 | ||
20914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20915 | $as_echo "yes" >&6; } | |
20916 | ||
20917 | $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h | |
20918 | ||
20919 | ||
20920 | else | |
20921 | $as_echo "$as_me: failed program was:" >&5 | |
20922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20923 | ||
20924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20925 | $as_echo "no" >&6; } | |
20926 | ||
20927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5 | |
20928 | $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; } | |
20929 | ||
20930 | ||
20931 | cat confdefs.h - <<_ACEOF >conftest.c | |
20932 | ||
20933 | ||
20934 | #include <linux/fs.h> | |
20935 | const char *follow_link(struct dentry *de, | |
20936 | void **cookie) { return "symlink"; } | |
20937 | static struct inode_operations | |
20938 | iops __attribute__ ((unused)) = { | |
20939 | .follow_link = follow_link, | |
20940 | }; | |
20941 | ||
20942 | int | |
20943 | main (void) | |
20944 | { | |
20945 | ||
20946 | ||
20947 | ; | |
20948 | return 0; | |
20949 | } | |
20950 | ||
20951 | _ACEOF | |
20952 | ||
20953 | ||
20954 | ||
20955 | cat - <<_ACEOF >conftest.h | |
20956 | ||
20957 | _ACEOF | |
20958 | ||
20959 | ||
20960 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20961 | echo "obj-m := conftest.o" >build/Makefile | |
20962 | modpost_flag='' | |
20963 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20964 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20965 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20966 | (eval $ac_try) 2>&5 | |
20967 | ac_status=$? | |
20968 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20969 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20970 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20971 | (eval $ac_try) 2>&5 | |
20972 | ac_status=$? | |
20973 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20974 | test $ac_status = 0; }; }; then : | |
20975 | ||
20976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20977 | $as_echo "yes" >&6; } | |
20978 | ||
20979 | $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h | |
20980 | ||
20981 | ||
20982 | else | |
20983 | $as_echo "$as_me: failed program was:" >&5 | |
20984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20985 | ||
20986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20987 | $as_echo "no" >&6; } | |
20988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5 | |
20989 | $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; } | |
20990 | ||
20991 | ||
20992 | cat confdefs.h - <<_ACEOF >conftest.c | |
20993 | ||
20994 | ||
20995 | #include <linux/fs.h> | |
20996 | void *follow_link(struct dentry *de, struct | |
20997 | nameidata *nd) { return (void *)NULL; } | |
20998 | static struct inode_operations | |
20999 | iops __attribute__ ((unused)) = { | |
21000 | .follow_link = follow_link, | |
21001 | }; | |
21002 | ||
21003 | int | |
21004 | main (void) | |
21005 | { | |
21006 | ||
21007 | ||
21008 | ; | |
21009 | return 0; | |
21010 | } | |
21011 | ||
21012 | _ACEOF | |
21013 | ||
21014 | ||
21015 | ||
21016 | cat - <<_ACEOF >conftest.h | |
21017 | ||
21018 | _ACEOF | |
21019 | ||
21020 | ||
21021 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21022 | echo "obj-m := conftest.o" >build/Makefile | |
21023 | modpost_flag='' | |
21024 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21025 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21026 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21027 | (eval $ac_try) 2>&5 | |
21028 | ac_status=$? | |
21029 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21030 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21031 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21032 | (eval $ac_try) 2>&5 | |
21033 | ac_status=$? | |
21034 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21035 | test $ac_status = 0; }; }; then : | |
21036 | ||
21037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21038 | $as_echo "yes" >&6; } | |
21039 | ||
21040 | $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h | |
21041 | ||
21042 | ||
21043 | else | |
21044 | $as_echo "$as_me: failed program was:" >&5 | |
21045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21046 | ||
21047 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
21048 | ||
21049 | ||
21050 | ||
21051 | fi | |
21052 | rm -Rf build | |
21053 | ||
21054 | ||
21055 | ||
21056 | ||
21057 | ||
21058 | fi | |
21059 | rm -Rf build | |
21060 | ||
21061 | ||
21062 | ||
21063 | ||
21064 | ||
21065 | ||
21066 | fi | |
21067 | rm -Rf build | |
21068 | ||
21069 | ||
21070 | ||
21071 | ||
21072 | ||
21073 | fi | |
21074 | rm -Rf build | |
21075 | ||
21076 | ||
21077 | ||
21078 | ||
21079 | ||
21080 | ||
21081 | cat confdefs.h - <<_ACEOF >conftest.c | |
21082 | ||
21083 | ||
21084 | #if !defined(HAVE_GET_LINK_DELAYED) | |
21085 | #error "Expecting get_link() delayed done" | |
21086 | #endif | |
21087 | ||
21088 | int | |
21089 | main (void) | |
21090 | { | |
21091 | ||
21092 | ||
21093 | ; | |
21094 | return 0; | |
21095 | } | |
21096 | ||
21097 | _ACEOF | |
21098 | ||
21099 | ||
21100 | ||
21101 | cat - <<_ACEOF >conftest.h | |
21102 | ||
21103 | _ACEOF | |
21104 | ||
21105 | ||
21106 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21107 | echo "obj-m := conftest.o" >build/Makefile | |
21108 | modpost_flag='' | |
21109 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21110 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21111 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21112 | (eval $ac_try) 2>&5 | |
21113 | ac_status=$? | |
21114 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21115 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21116 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21117 | (eval $ac_try) 2>&5 | |
21118 | ac_status=$? | |
21119 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21120 | test $ac_status = 0; }; }; then : | |
21121 | ||
21122 | ||
21123 | $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h | |
21124 | ||
21125 | ||
21126 | else | |
21127 | $as_echo "$as_me: failed program was:" >&5 | |
21128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21129 | ||
21130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5 | |
21131 | $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; } | |
21132 | ||
21133 | ||
21134 | cat confdefs.h - <<_ACEOF >conftest.c | |
21135 | ||
21136 | ||
21137 | #include <linux/fs.h> | |
21138 | void put_link(struct inode *ip, void *cookie) | |
21139 | { return; } | |
21140 | static struct inode_operations | |
21141 | iops __attribute__ ((unused)) = { | |
21142 | .put_link = put_link, | |
21143 | }; | |
21144 | ||
21145 | int | |
21146 | main (void) | |
21147 | { | |
21148 | ||
21149 | ||
21150 | ; | |
21151 | return 0; | |
21152 | } | |
21153 | ||
21154 | _ACEOF | |
21155 | ||
21156 | ||
21157 | ||
21158 | cat - <<_ACEOF >conftest.h | |
21159 | ||
21160 | _ACEOF | |
21161 | ||
21162 | ||
21163 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21164 | echo "obj-m := conftest.o" >build/Makefile | |
21165 | modpost_flag='' | |
21166 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21167 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21168 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21169 | (eval $ac_try) 2>&5 | |
21170 | ac_status=$? | |
21171 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21172 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21173 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21174 | (eval $ac_try) 2>&5 | |
21175 | ac_status=$? | |
21176 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21177 | test $ac_status = 0; }; }; then : | |
21178 | ||
21179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21180 | $as_echo "yes" >&6; } | |
21181 | ||
21182 | $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h | |
21183 | ||
21184 | ||
21185 | else | |
21186 | $as_echo "$as_me: failed program was:" >&5 | |
21187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21188 | ||
21189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21190 | $as_echo "no" >&6; } | |
21191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5 | |
21192 | $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; } | |
21193 | ||
21194 | ||
21195 | cat confdefs.h - <<_ACEOF >conftest.c | |
21196 | ||
21197 | ||
21198 | #include <linux/fs.h> | |
21199 | void put_link(struct dentry *de, struct | |
21200 | nameidata *nd, void *ptr) { return; } | |
21201 | static struct inode_operations | |
21202 | iops __attribute__ ((unused)) = { | |
21203 | .put_link = put_link, | |
21204 | }; | |
21205 | ||
21206 | int | |
21207 | main (void) | |
21208 | { | |
21209 | ||
21210 | ||
21211 | ; | |
21212 | return 0; | |
21213 | } | |
21214 | ||
21215 | _ACEOF | |
21216 | ||
21217 | ||
21218 | ||
21219 | cat - <<_ACEOF >conftest.h | |
21220 | ||
21221 | _ACEOF | |
21222 | ||
21223 | ||
21224 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21225 | echo "obj-m := conftest.o" >build/Makefile | |
21226 | modpost_flag='' | |
21227 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21228 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21229 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21230 | (eval $ac_try) 2>&5 | |
21231 | ac_status=$? | |
21232 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21233 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21234 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21235 | (eval $ac_try) 2>&5 | |
21236 | ac_status=$? | |
21237 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21238 | test $ac_status = 0; }; }; then : | |
21239 | ||
21240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21241 | $as_echo "yes" >&6; } | |
21242 | ||
21243 | $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h | |
21244 | ||
21245 | ||
21246 | else | |
21247 | $as_echo "$as_me: failed program was:" >&5 | |
21248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21249 | ||
21250 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
21251 | ||
21252 | ||
21253 | ||
21254 | fi | |
21255 | rm -Rf build | |
21256 | ||
21257 | ||
21258 | ||
21259 | ||
21260 | ||
21261 | fi | |
21262 | rm -Rf build | |
21263 | ||
21264 | ||
21265 | ||
21266 | ||
21267 | ||
21268 | fi | |
21269 | rm -Rf build | |
21270 | ||
21271 | ||
21272 | ||
21273 | ||
21274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5 | |
21275 | $as_echo_n "checking whether iops->truncate_range() exists... " >&6; } | |
21276 | ||
21277 | ||
21278 | cat confdefs.h - <<_ACEOF >conftest.c | |
21279 | ||
21280 | ||
21281 | #include <linux/fs.h> | |
21282 | void truncate_range(struct inode *inode, loff_t start, | |
21283 | loff_t end) { return; } | |
21284 | static struct inode_operations iops __attribute__ ((unused)) = { | |
21285 | .truncate_range = truncate_range, | |
21286 | }; | |
21287 | ||
21288 | int | |
21289 | main (void) | |
21290 | { | |
21291 | ||
21292 | ||
21293 | ; | |
21294 | return 0; | |
21295 | } | |
21296 | ||
21297 | _ACEOF | |
21298 | ||
21299 | ||
21300 | ||
21301 | cat - <<_ACEOF >conftest.h | |
21302 | ||
21303 | _ACEOF | |
21304 | ||
21305 | ||
21306 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21307 | echo "obj-m := conftest.o" >build/Makefile | |
21308 | modpost_flag='' | |
21309 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21310 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21311 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21312 | (eval $ac_try) 2>&5 | |
21313 | ac_status=$? | |
21314 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21315 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21316 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21317 | (eval $ac_try) 2>&5 | |
21318 | ac_status=$? | |
21319 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21320 | test $ac_status = 0; }; }; then : | |
21321 | ||
21322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21323 | $as_echo "yes" >&6; } | |
21324 | ||
21325 | $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h | |
21326 | ||
21327 | ||
21328 | else | |
21329 | $as_echo "$as_me: failed program was:" >&5 | |
21330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21331 | ||
21332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21333 | $as_echo "no" >&6; } | |
21334 | ||
21335 | ||
21336 | ||
21337 | fi | |
21338 | rm -Rf build | |
21339 | ||
21340 | ||
21341 | ||
21342 | ||
21343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5 | |
21344 | $as_echo_n "checking whether dops->d_automount() exists... " >&6; } | |
21345 | ||
21346 | ||
21347 | cat confdefs.h - <<_ACEOF >conftest.c | |
21348 | ||
21349 | ||
21350 | #include <linux/dcache.h> | |
21351 | struct vfsmount *d_automount(struct path *p) { return NULL; } | |
21352 | struct dentry_operations dops __attribute__ ((unused)) = { | |
21353 | .d_automount = d_automount, | |
21354 | }; | |
21355 | ||
21356 | int | |
21357 | main (void) | |
21358 | { | |
21359 | ||
21360 | ||
21361 | ; | |
21362 | return 0; | |
21363 | } | |
21364 | ||
21365 | _ACEOF | |
21366 | ||
21367 | ||
21368 | ||
21369 | cat - <<_ACEOF >conftest.h | |
21370 | ||
21371 | _ACEOF | |
21372 | ||
21373 | ||
21374 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21375 | echo "obj-m := conftest.o" >build/Makefile | |
21376 | modpost_flag='' | |
21377 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21378 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21379 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21380 | (eval $ac_try) 2>&5 | |
21381 | ac_status=$? | |
21382 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21383 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21384 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21385 | (eval $ac_try) 2>&5 | |
21386 | ac_status=$? | |
21387 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21388 | test $ac_status = 0; }; }; then : | |
21389 | ||
21390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21391 | $as_echo "yes" >&6; } | |
21392 | ||
21393 | $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h | |
21394 | ||
21395 | ||
21396 | else | |
21397 | $as_echo "$as_me: failed program was:" >&5 | |
21398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21399 | ||
21400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21401 | $as_echo "no" >&6; } | |
21402 | ||
21403 | ||
21404 | ||
21405 | fi | |
21406 | rm -Rf build | |
21407 | ||
21408 | ||
21409 | ||
21410 | ||
21411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5 | |
21412 | $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; } | |
21413 | ||
21414 | ||
21415 | cat confdefs.h - <<_ACEOF >conftest.c | |
21416 | ||
21417 | ||
21418 | #include <linux/exportfs.h> | |
21419 | int encode_fh(struct inode *inode, __u32 *fh, int *max_len, | |
21420 | struct inode *parent) { return 0; } | |
21421 | static struct export_operations eops __attribute__ ((unused))={ | |
21422 | .encode_fh = encode_fh, | |
21423 | }; | |
21424 | ||
21425 | int | |
21426 | main (void) | |
21427 | { | |
21428 | ||
21429 | ||
21430 | ; | |
21431 | return 0; | |
21432 | } | |
21433 | ||
21434 | _ACEOF | |
21435 | ||
21436 | ||
21437 | ||
21438 | cat - <<_ACEOF >conftest.h | |
21439 | ||
21440 | _ACEOF | |
21441 | ||
21442 | ||
21443 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21444 | echo "obj-m := conftest.o" >build/Makefile | |
21445 | modpost_flag='' | |
21446 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21447 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21448 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21449 | (eval $ac_try) 2>&5 | |
21450 | ac_status=$? | |
21451 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21452 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21453 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21454 | (eval $ac_try) 2>&5 | |
21455 | ac_status=$? | |
21456 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21457 | test $ac_status = 0; }; }; then : | |
21458 | ||
21459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21460 | $as_echo "yes" >&6; } | |
21461 | ||
21462 | $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h | |
21463 | ||
21464 | ||
21465 | else | |
21466 | $as_echo "$as_me: failed program was:" >&5 | |
21467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21468 | ||
21469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21470 | $as_echo "no" >&6; } | |
21471 | ||
21472 | ||
21473 | ||
21474 | fi | |
21475 | rm -Rf build | |
21476 | ||
21477 | ||
21478 | ||
21479 | ||
21480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5 | |
21481 | $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; } | |
21482 | ||
21483 | ||
21484 | cat confdefs.h - <<_ACEOF >conftest.c | |
21485 | ||
21486 | ||
21487 | #include <linux/exportfs.h> | |
21488 | int commit_metadata(struct inode *inode) { return 0; } | |
21489 | static struct export_operations eops __attribute__ ((unused))={ | |
21490 | .commit_metadata = commit_metadata, | |
21491 | }; | |
21492 | ||
21493 | int | |
21494 | main (void) | |
21495 | { | |
21496 | ||
21497 | ||
21498 | ; | |
21499 | return 0; | |
21500 | } | |
21501 | ||
21502 | _ACEOF | |
21503 | ||
21504 | ||
21505 | ||
21506 | cat - <<_ACEOF >conftest.h | |
21507 | ||
21508 | _ACEOF | |
21509 | ||
21510 | ||
21511 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21512 | echo "obj-m := conftest.o" >build/Makefile | |
21513 | modpost_flag='' | |
21514 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21515 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21516 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21517 | (eval $ac_try) 2>&5 | |
21518 | ac_status=$? | |
21519 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21520 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21521 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21522 | (eval $ac_try) 2>&5 | |
21523 | ac_status=$? | |
21524 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21525 | test $ac_status = 0; }; }; then : | |
21526 | ||
21527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21528 | $as_echo "yes" >&6; } | |
21529 | ||
21530 | $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h | |
21531 | ||
21532 | ||
21533 | else | |
21534 | $as_echo "$as_me: failed program was:" >&5 | |
21535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21536 | ||
21537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21538 | $as_echo "no" >&6; } | |
21539 | ||
21540 | ||
21541 | ||
21542 | fi | |
21543 | rm -Rf build | |
21544 | ||
21545 | ||
21546 | ||
21547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5 | |
21548 | $as_echo_n "checking whether clear_inode() is available... " >&6; } | |
21549 | ||
21550 | ||
21551 | ||
21552 | cat confdefs.h - <<_ACEOF >conftest.c | |
21553 | ||
21554 | ||
21555 | #include <linux/fs.h> | |
21556 | ||
21557 | int | |
21558 | main (void) | |
21559 | { | |
21560 | ||
21561 | clear_inode(NULL); | |
21562 | ||
21563 | ; | |
21564 | return 0; | |
21565 | } | |
21566 | ||
21567 | _ACEOF | |
21568 | ||
21569 | ||
21570 | ||
21571 | cat - <<_ACEOF >conftest.h | |
21572 | ||
21573 | _ACEOF | |
21574 | ||
21575 | ||
21576 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21577 | echo "obj-m := conftest.o" >build/Makefile | |
21578 | modpost_flag='' | |
21579 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21580 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21581 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21582 | (eval $ac_try) 2>&5 | |
21583 | ac_status=$? | |
21584 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21585 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21586 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21587 | (eval $ac_try) 2>&5 | |
21588 | ac_status=$? | |
21589 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21590 | test $ac_status = 0; }; }; then : | |
21591 | rc=0 | |
21592 | else | |
21593 | $as_echo "$as_me: failed program was:" >&5 | |
21594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21595 | rc=1 | |
21596 | ||
21597 | ||
21598 | fi | |
21599 | rm -Rf build | |
21600 | ||
21601 | ||
21602 | if test $rc -ne 0; then : | |
21603 | ||
21604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21605 | $as_echo "no" >&6; } | |
21606 | ||
21607 | else | |
21608 | if test "x$enable_linux_builtin" != xyes; then | |
21609 | ||
21610 | grep -q -E '[[:space:]]clear_inode[[:space:]]' \ | |
21611 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21612 | rc=$? | |
21613 | if test $rc -ne 0; then | |
21614 | export=0 | |
21615 | for file in fs/inode.c; do | |
21616 | grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \ | |
21617 | "$LINUX/$file" 2>/dev/null | |
21618 | rc=$? | |
21619 | if test $rc -eq 0; then | |
21620 | export=1 | |
21621 | break; | |
21622 | fi | |
21623 | done | |
21624 | if test $export -eq 0; then : | |
21625 | rc=1 | |
21626 | else : | |
21627 | rc=0 | |
21628 | fi | |
21629 | else : | |
21630 | rc=0 | |
21631 | fi | |
21632 | ||
21633 | fi | |
21634 | if test $rc -ne 0; then : | |
21635 | ||
21636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21637 | $as_echo "no" >&6; } | |
21638 | ||
21639 | else : | |
21640 | ||
21641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21642 | $as_echo "yes" >&6; } | |
21643 | ||
21644 | $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h | |
21645 | ||
21646 | ||
21647 | fi | |
21648 | fi | |
21649 | ||
21650 | ||
21651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5 | |
21652 | $as_echo_n "checking whether setattr_prepare() is available... " >&6; } | |
21653 | ||
21654 | ||
21655 | ||
21656 | cat confdefs.h - <<_ACEOF >conftest.c | |
21657 | ||
21658 | ||
21659 | #include <linux/fs.h> | |
21660 | ||
21661 | int | |
21662 | main (void) | |
21663 | { | |
21664 | ||
21665 | struct dentry *dentry = NULL; | |
21666 | struct iattr *attr = NULL; | |
21667 | int error; | |
21668 | ||
21669 | error = setattr_prepare(dentry, attr); | |
21670 | ||
21671 | ; | |
21672 | return 0; | |
21673 | } | |
21674 | ||
21675 | _ACEOF | |
21676 | ||
21677 | ||
21678 | ||
21679 | cat - <<_ACEOF >conftest.h | |
21680 | ||
21681 | _ACEOF | |
21682 | ||
21683 | ||
21684 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21685 | echo "obj-m := conftest.o" >build/Makefile | |
21686 | modpost_flag='' | |
21687 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21688 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21689 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21690 | (eval $ac_try) 2>&5 | |
21691 | ac_status=$? | |
21692 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21693 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21694 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21695 | (eval $ac_try) 2>&5 | |
21696 | ac_status=$? | |
21697 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21698 | test $ac_status = 0; }; }; then : | |
21699 | rc=0 | |
21700 | else | |
21701 | $as_echo "$as_me: failed program was:" >&5 | |
21702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21703 | rc=1 | |
21704 | ||
21705 | ||
21706 | fi | |
21707 | rm -Rf build | |
21708 | ||
21709 | ||
21710 | if test $rc -ne 0; then : | |
21711 | ||
21712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21713 | $as_echo "no" >&6; } | |
21714 | ||
21715 | else | |
21716 | if test "x$enable_linux_builtin" != xyes; then | |
21717 | ||
21718 | grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \ | |
21719 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21720 | rc=$? | |
21721 | if test $rc -ne 0; then | |
21722 | export=0 | |
21723 | for file in fs/attr.c; do | |
21724 | grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \ | |
21725 | "$LINUX/$file" 2>/dev/null | |
21726 | rc=$? | |
21727 | if test $rc -eq 0; then | |
21728 | export=1 | |
21729 | break; | |
21730 | fi | |
21731 | done | |
21732 | if test $export -eq 0; then : | |
21733 | rc=1 | |
21734 | else : | |
21735 | rc=0 | |
21736 | fi | |
21737 | else : | |
21738 | rc=0 | |
21739 | fi | |
21740 | ||
21741 | fi | |
21742 | if test $rc -ne 0; then : | |
21743 | ||
21744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21745 | $as_echo "no" >&6; } | |
21746 | ||
21747 | else : | |
21748 | ||
21749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21750 | $as_echo "yes" >&6; } | |
21751 | ||
21752 | $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h | |
21753 | ||
21754 | ||
21755 | fi | |
21756 | fi | |
21757 | ||
21758 | ||
21759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5 | |
21760 | $as_echo_n "checking whether insert_inode_locked() is available... " >&6; } | |
21761 | ||
21762 | ||
21763 | ||
21764 | cat confdefs.h - <<_ACEOF >conftest.c | |
21765 | ||
21766 | ||
21767 | #include <linux/fs.h> | |
21768 | ||
21769 | int | |
21770 | main (void) | |
21771 | { | |
21772 | ||
21773 | insert_inode_locked(NULL); | |
21774 | ||
21775 | ; | |
21776 | return 0; | |
21777 | } | |
21778 | ||
21779 | _ACEOF | |
21780 | ||
21781 | ||
21782 | ||
21783 | cat - <<_ACEOF >conftest.h | |
21784 | ||
21785 | _ACEOF | |
21786 | ||
21787 | ||
21788 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21789 | echo "obj-m := conftest.o" >build/Makefile | |
21790 | modpost_flag='' | |
21791 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21792 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21793 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21794 | (eval $ac_try) 2>&5 | |
21795 | ac_status=$? | |
21796 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21797 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21798 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21799 | (eval $ac_try) 2>&5 | |
21800 | ac_status=$? | |
21801 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21802 | test $ac_status = 0; }; }; then : | |
21803 | rc=0 | |
21804 | else | |
21805 | $as_echo "$as_me: failed program was:" >&5 | |
21806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21807 | rc=1 | |
21808 | ||
21809 | ||
21810 | fi | |
21811 | rm -Rf build | |
21812 | ||
21813 | ||
21814 | if test $rc -ne 0; then : | |
21815 | ||
21816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21817 | $as_echo "no" >&6; } | |
21818 | ||
21819 | else | |
21820 | if test "x$enable_linux_builtin" != xyes; then | |
21821 | ||
21822 | grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \ | |
21823 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21824 | rc=$? | |
21825 | if test $rc -ne 0; then | |
21826 | export=0 | |
21827 | for file in fs/inode.c; do | |
21828 | grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \ | |
21829 | "$LINUX/$file" 2>/dev/null | |
21830 | rc=$? | |
21831 | if test $rc -eq 0; then | |
21832 | export=1 | |
21833 | break; | |
21834 | fi | |
21835 | done | |
21836 | if test $export -eq 0; then : | |
21837 | rc=1 | |
21838 | else : | |
21839 | rc=0 | |
21840 | fi | |
21841 | else : | |
21842 | rc=0 | |
21843 | fi | |
21844 | ||
21845 | fi | |
21846 | if test $rc -ne 0; then : | |
21847 | ||
21848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21849 | $as_echo "no" >&6; } | |
21850 | ||
21851 | else : | |
21852 | ||
21853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21854 | $as_echo "yes" >&6; } | |
21855 | ||
21856 | $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h | |
21857 | ||
21858 | ||
21859 | fi | |
21860 | fi | |
21861 | ||
21862 | ||
21863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5 | |
21864 | $as_echo_n "checking whether d_make_root() is available... " >&6; } | |
21865 | ||
21866 | ||
21867 | ||
21868 | cat confdefs.h - <<_ACEOF >conftest.c | |
21869 | ||
21870 | ||
21871 | #include <linux/dcache.h> | |
21872 | ||
21873 | int | |
21874 | main (void) | |
21875 | { | |
21876 | ||
21877 | d_make_root(NULL); | |
21878 | ||
21879 | ; | |
21880 | return 0; | |
21881 | } | |
21882 | ||
21883 | _ACEOF | |
21884 | ||
21885 | ||
21886 | ||
21887 | cat - <<_ACEOF >conftest.h | |
21888 | ||
21889 | _ACEOF | |
21890 | ||
21891 | ||
21892 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21893 | echo "obj-m := conftest.o" >build/Makefile | |
21894 | modpost_flag='' | |
21895 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21896 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21897 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21898 | (eval $ac_try) 2>&5 | |
21899 | ac_status=$? | |
21900 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21901 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21902 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21903 | (eval $ac_try) 2>&5 | |
21904 | ac_status=$? | |
21905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21906 | test $ac_status = 0; }; }; then : | |
21907 | rc=0 | |
21908 | else | |
21909 | $as_echo "$as_me: failed program was:" >&5 | |
21910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21911 | rc=1 | |
21912 | ||
21913 | ||
21914 | fi | |
21915 | rm -Rf build | |
21916 | ||
21917 | ||
21918 | if test $rc -ne 0; then : | |
21919 | ||
21920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21921 | $as_echo "no" >&6; } | |
21922 | ||
21923 | else | |
21924 | if test "x$enable_linux_builtin" != xyes; then | |
21925 | ||
21926 | grep -q -E '[[:space:]]d_make_root[[:space:]]' \ | |
21927 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21928 | rc=$? | |
21929 | if test $rc -ne 0; then | |
21930 | export=0 | |
21931 | for file in fs/dcache.c; do | |
21932 | grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \ | |
21933 | "$LINUX/$file" 2>/dev/null | |
21934 | rc=$? | |
21935 | if test $rc -eq 0; then | |
21936 | export=1 | |
21937 | break; | |
21938 | fi | |
21939 | done | |
21940 | if test $export -eq 0; then : | |
21941 | rc=1 | |
21942 | else : | |
21943 | rc=0 | |
21944 | fi | |
21945 | else : | |
21946 | rc=0 | |
21947 | fi | |
21948 | ||
21949 | fi | |
21950 | if test $rc -ne 0; then : | |
21951 | ||
21952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21953 | $as_echo "no" >&6; } | |
21954 | ||
21955 | else : | |
21956 | ||
21957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21958 | $as_echo "yes" >&6; } | |
21959 | ||
21960 | $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h | |
21961 | ||
21962 | ||
21963 | fi | |
21964 | fi | |
21965 | ||
21966 | ||
21967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5 | |
21968 | $as_echo_n "checking whether d_obtain_alias() is available... " >&6; } | |
21969 | ||
21970 | ||
21971 | ||
21972 | cat confdefs.h - <<_ACEOF >conftest.c | |
21973 | ||
21974 | ||
21975 | #include <linux/dcache.h> | |
21976 | ||
21977 | int | |
21978 | main (void) | |
21979 | { | |
21980 | ||
21981 | d_obtain_alias(NULL); | |
21982 | ||
21983 | ; | |
21984 | return 0; | |
21985 | } | |
21986 | ||
21987 | _ACEOF | |
21988 | ||
21989 | ||
21990 | ||
21991 | cat - <<_ACEOF >conftest.h | |
21992 | ||
21993 | _ACEOF | |
21994 | ||
21995 | ||
21996 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21997 | echo "obj-m := conftest.o" >build/Makefile | |
21998 | modpost_flag='' | |
21999 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22000 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22001 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22002 | (eval $ac_try) 2>&5 | |
22003 | ac_status=$? | |
22004 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22005 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22006 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22007 | (eval $ac_try) 2>&5 | |
22008 | ac_status=$? | |
22009 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22010 | test $ac_status = 0; }; }; then : | |
22011 | rc=0 | |
22012 | else | |
22013 | $as_echo "$as_me: failed program was:" >&5 | |
22014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22015 | rc=1 | |
22016 | ||
22017 | ||
22018 | fi | |
22019 | rm -Rf build | |
22020 | ||
22021 | ||
22022 | if test $rc -ne 0; then : | |
22023 | ||
22024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22025 | $as_echo "no" >&6; } | |
22026 | ||
22027 | else | |
22028 | if test "x$enable_linux_builtin" != xyes; then | |
22029 | ||
22030 | grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \ | |
22031 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
22032 | rc=$? | |
22033 | if test $rc -ne 0; then | |
22034 | export=0 | |
22035 | for file in fs/dcache.c; do | |
22036 | grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \ | |
22037 | "$LINUX/$file" 2>/dev/null | |
22038 | rc=$? | |
22039 | if test $rc -eq 0; then | |
22040 | export=1 | |
22041 | break; | |
22042 | fi | |
22043 | done | |
22044 | if test $export -eq 0; then : | |
22045 | rc=1 | |
22046 | else : | |
22047 | rc=0 | |
22048 | fi | |
22049 | else : | |
22050 | rc=0 | |
22051 | fi | |
22052 | ||
22053 | fi | |
22054 | if test $rc -ne 0; then : | |
22055 | ||
22056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22057 | $as_echo "no" >&6; } | |
22058 | ||
22059 | else : | |
22060 | ||
22061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22062 | $as_echo "yes" >&6; } | |
22063 | ||
22064 | $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h | |
22065 | ||
22066 | ||
22067 | fi | |
22068 | fi | |
22069 | ||
22070 | ||
22071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5 | |
22072 | $as_echo_n "checking whether d_prune_aliases() is available... " >&6; } | |
22073 | ||
22074 | ||
22075 | ||
22076 | cat confdefs.h - <<_ACEOF >conftest.c | |
22077 | ||
22078 | ||
22079 | #include <linux/dcache.h> | |
22080 | ||
22081 | int | |
22082 | main (void) | |
22083 | { | |
22084 | ||
22085 | struct inode *ip = NULL; | |
22086 | d_prune_aliases(ip); | |
22087 | ||
22088 | ; | |
22089 | return 0; | |
22090 | } | |
22091 | ||
22092 | _ACEOF | |
22093 | ||
22094 | ||
22095 | ||
22096 | cat - <<_ACEOF >conftest.h | |
22097 | ||
22098 | _ACEOF | |
22099 | ||
22100 | ||
22101 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22102 | echo "obj-m := conftest.o" >build/Makefile | |
22103 | modpost_flag='' | |
22104 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22105 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22106 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22107 | (eval $ac_try) 2>&5 | |
22108 | ac_status=$? | |
22109 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22110 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22111 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22112 | (eval $ac_try) 2>&5 | |
22113 | ac_status=$? | |
22114 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22115 | test $ac_status = 0; }; }; then : | |
22116 | rc=0 | |
22117 | else | |
22118 | $as_echo "$as_me: failed program was:" >&5 | |
22119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22120 | rc=1 | |
22121 | ||
22122 | ||
22123 | fi | |
22124 | rm -Rf build | |
22125 | ||
22126 | ||
22127 | if test $rc -ne 0; then : | |
22128 | ||
22129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22130 | $as_echo "no" >&6; } | |
22131 | ||
22132 | else | |
22133 | if test "x$enable_linux_builtin" != xyes; then | |
22134 | ||
22135 | grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \ | |
22136 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
22137 | rc=$? | |
22138 | if test $rc -ne 0; then | |
22139 | export=0 | |
22140 | for file in fs/dcache.c; do | |
22141 | grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \ | |
22142 | "$LINUX/$file" 2>/dev/null | |
22143 | rc=$? | |
22144 | if test $rc -eq 0; then | |
22145 | export=1 | |
22146 | break; | |
22147 | fi | |
22148 | done | |
22149 | if test $export -eq 0; then : | |
22150 | rc=1 | |
22151 | else : | |
22152 | rc=0 | |
22153 | fi | |
22154 | else : | |
22155 | rc=0 | |
22156 | fi | |
22157 | ||
22158 | fi | |
22159 | if test $rc -ne 0; then : | |
22160 | ||
22161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22162 | $as_echo "no" >&6; } | |
22163 | ||
22164 | else : | |
22165 | ||
22166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22167 | $as_echo "yes" >&6; } | |
22168 | ||
22169 | $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h | |
22170 | ||
22171 | ||
22172 | fi | |
22173 | fi | |
22174 | ||
22175 | ||
22176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5 | |
22177 | $as_echo_n "checking whether d_set_d_op() is available... " >&6; } | |
22178 | ||
22179 | ||
22180 | ||
22181 | cat confdefs.h - <<_ACEOF >conftest.c | |
22182 | ||
22183 | ||
22184 | #include <linux/dcache.h> | |
22185 | ||
22186 | int | |
22187 | main (void) | |
22188 | { | |
22189 | ||
22190 | d_set_d_op(NULL, NULL); | |
22191 | ||
22192 | ; | |
22193 | return 0; | |
22194 | } | |
22195 | ||
22196 | _ACEOF | |
22197 | ||
22198 | ||
22199 | ||
22200 | cat - <<_ACEOF >conftest.h | |
22201 | ||
22202 | _ACEOF | |
22203 | ||
22204 | ||
22205 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22206 | echo "obj-m := conftest.o" >build/Makefile | |
22207 | modpost_flag='' | |
22208 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22209 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22210 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22211 | (eval $ac_try) 2>&5 | |
22212 | ac_status=$? | |
22213 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22214 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22215 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22216 | (eval $ac_try) 2>&5 | |
22217 | ac_status=$? | |
22218 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22219 | test $ac_status = 0; }; }; then : | |
22220 | rc=0 | |
22221 | else | |
22222 | $as_echo "$as_me: failed program was:" >&5 | |
22223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22224 | rc=1 | |
22225 | ||
22226 | ||
22227 | fi | |
22228 | rm -Rf build | |
22229 | ||
22230 | ||
22231 | if test $rc -ne 0; then : | |
22232 | ||
22233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22234 | $as_echo "no" >&6; } | |
22235 | ||
22236 | else | |
22237 | if test "x$enable_linux_builtin" != xyes; then | |
22238 | ||
22239 | grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \ | |
22240 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
22241 | rc=$? | |
22242 | if test $rc -ne 0; then | |
22243 | export=0 | |
22244 | for file in fs/dcache.c; do | |
22245 | grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \ | |
22246 | "$LINUX/$file" 2>/dev/null | |
22247 | rc=$? | |
22248 | if test $rc -eq 0; then | |
22249 | export=1 | |
22250 | break; | |
22251 | fi | |
22252 | done | |
22253 | if test $export -eq 0; then : | |
22254 | rc=1 | |
22255 | else : | |
22256 | rc=0 | |
22257 | fi | |
22258 | else : | |
22259 | rc=0 | |
22260 | fi | |
22261 | ||
22262 | fi | |
22263 | if test $rc -ne 0; then : | |
22264 | ||
22265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22266 | $as_echo "no" >&6; } | |
22267 | ||
22268 | else : | |
22269 | ||
22270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22271 | $as_echo "yes" >&6; } | |
22272 | ||
22273 | $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h | |
22274 | ||
22275 | ||
22276 | fi | |
22277 | fi | |
22278 | ||
22279 | ||
22280 | ||
22281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5 | |
22282 | $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; } | |
22283 | ||
22284 | ||
22285 | cat confdefs.h - <<_ACEOF >conftest.c | |
22286 | ||
22287 | ||
22288 | #include <linux/dcache.h> | |
22289 | ||
22290 | int revalidate (struct dentry *dentry, | |
22291 | struct nameidata *nidata) { return 0; } | |
22292 | ||
22293 | static const struct dentry_operations | |
22294 | dops __attribute__ ((unused)) = { | |
22295 | .d_revalidate = revalidate, | |
22296 | }; | |
22297 | ||
22298 | int | |
22299 | main (void) | |
22300 | { | |
22301 | ||
22302 | ||
22303 | ; | |
22304 | return 0; | |
22305 | } | |
22306 | ||
22307 | _ACEOF | |
22308 | ||
22309 | ||
22310 | ||
22311 | cat - <<_ACEOF >conftest.h | |
22312 | ||
22313 | _ACEOF | |
22314 | ||
22315 | ||
22316 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22317 | echo "obj-m := conftest.o" >build/Makefile | |
22318 | modpost_flag='' | |
22319 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22320 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22321 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22322 | (eval $ac_try) 2>&5 | |
22323 | ac_status=$? | |
22324 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22325 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22326 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22327 | (eval $ac_try) 2>&5 | |
22328 | ac_status=$? | |
22329 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22330 | test $ac_status = 0; }; }; then : | |
22331 | ||
22332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22333 | $as_echo "yes" >&6; } | |
22334 | ||
22335 | $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h | |
22336 | ||
22337 | ||
22338 | else | |
22339 | $as_echo "$as_me: failed program was:" >&5 | |
22340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22341 | ||
22342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22343 | $as_echo "no" >&6; } | |
22344 | ||
22345 | ||
22346 | ||
22347 | fi | |
22348 | rm -Rf build | |
22349 | ||
22350 | ||
22351 | ||
22352 | ||
22353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5 | |
22354 | $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; } | |
22355 | ||
22356 | ||
22357 | cat confdefs.h - <<_ACEOF >conftest.c | |
22358 | ||
22359 | ||
22360 | #include <linux/dcache.h> | |
22361 | ||
22362 | const struct dentry_operations test_d_op = { | |
22363 | .d_revalidate = NULL, | |
22364 | }; | |
22365 | ||
22366 | int | |
22367 | main (void) | |
22368 | { | |
22369 | ||
22370 | struct dentry d __attribute__ ((unused)); | |
22371 | ||
22372 | d.d_op = &test_d_op; | |
22373 | ||
22374 | ; | |
22375 | return 0; | |
22376 | } | |
22377 | ||
22378 | _ACEOF | |
22379 | ||
22380 | ||
22381 | ||
22382 | cat - <<_ACEOF >conftest.h | |
22383 | ||
22384 | _ACEOF | |
22385 | ||
22386 | ||
22387 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22388 | echo "obj-m := conftest.o" >build/Makefile | |
22389 | modpost_flag='' | |
22390 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22391 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22392 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22393 | (eval $ac_try) 2>&5 | |
22394 | ac_status=$? | |
22395 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22396 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22397 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22398 | (eval $ac_try) 2>&5 | |
22399 | ac_status=$? | |
22400 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22401 | test $ac_status = 0; }; }; then : | |
22402 | ||
22403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22404 | $as_echo "yes" >&6; } | |
22405 | ||
22406 | $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h | |
22407 | ||
22408 | ||
22409 | else | |
22410 | $as_echo "$as_me: failed program was:" >&5 | |
22411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22412 | ||
22413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22414 | $as_echo "no" >&6; } | |
22415 | ||
22416 | ||
22417 | ||
22418 | fi | |
22419 | rm -Rf build | |
22420 | ||
22421 | ||
22422 | ||
22423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5 | |
22424 | $as_echo_n "checking whether check_disk_size_change() is available... " >&6; } | |
22425 | ||
22426 | ||
22427 | ||
22428 | cat confdefs.h - <<_ACEOF >conftest.c | |
22429 | ||
22430 | ||
22431 | #include <linux/fs.h> | |
22432 | ||
22433 | int | |
22434 | main (void) | |
22435 | { | |
22436 | ||
22437 | check_disk_size_change(NULL, NULL); | |
22438 | ||
22439 | ; | |
22440 | return 0; | |
22441 | } | |
22442 | ||
22443 | _ACEOF | |
22444 | ||
22445 | ||
22446 | ||
22447 | cat - <<_ACEOF >conftest.h | |
22448 | ||
22449 | _ACEOF | |
22450 | ||
22451 | ||
22452 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22453 | echo "obj-m := conftest.o" >build/Makefile | |
22454 | modpost_flag='' | |
22455 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22456 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22457 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22458 | (eval $ac_try) 2>&5 | |
22459 | ac_status=$? | |
22460 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22461 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22462 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22463 | (eval $ac_try) 2>&5 | |
22464 | ac_status=$? | |
22465 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22466 | test $ac_status = 0; }; }; then : | |
22467 | rc=0 | |
22468 | else | |
22469 | $as_echo "$as_me: failed program was:" >&5 | |
22470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22471 | rc=1 | |
22472 | ||
22473 | ||
22474 | fi | |
22475 | rm -Rf build | |
22476 | ||
22477 | ||
22478 | if test $rc -ne 0; then : | |
22479 | ||
22480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22481 | $as_echo "no" >&6; } | |
22482 | ||
22483 | else | |
22484 | if test "x$enable_linux_builtin" != xyes; then | |
22485 | ||
22486 | grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \ | |
22487 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
22488 | rc=$? | |
22489 | if test $rc -ne 0; then | |
22490 | export=0 | |
22491 | for file in fs/block_dev.c; do | |
22492 | grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \ | |
22493 | "$LINUX/$file" 2>/dev/null | |
22494 | rc=$? | |
22495 | if test $rc -eq 0; then | |
22496 | export=1 | |
22497 | break; | |
22498 | fi | |
22499 | done | |
22500 | if test $export -eq 0; then : | |
22501 | rc=1 | |
22502 | else : | |
22503 | rc=0 | |
22504 | fi | |
22505 | else : | |
22506 | rc=0 | |
22507 | fi | |
22508 | ||
22509 | fi | |
22510 | if test $rc -ne 0; then : | |
22511 | ||
22512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22513 | $as_echo "no" >&6; } | |
22514 | ||
22515 | else : | |
22516 | ||
22517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22518 | $as_echo "yes" >&6; } | |
22519 | ||
22520 | $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h | |
22521 | ||
22522 | ||
22523 | fi | |
22524 | fi | |
22525 | ||
22526 | ||
22527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5 | |
22528 | $as_echo_n "checking whether truncate_setsize() is available... " >&6; } | |
22529 | ||
22530 | ||
22531 | ||
22532 | cat confdefs.h - <<_ACEOF >conftest.c | |
22533 | ||
22534 | ||
22535 | #include <linux/mm.h> | |
22536 | ||
22537 | int | |
22538 | main (void) | |
22539 | { | |
22540 | ||
22541 | truncate_setsize(NULL, 0); | |
22542 | ||
22543 | ; | |
22544 | return 0; | |
22545 | } | |
22546 | ||
22547 | _ACEOF | |
22548 | ||
22549 | ||
22550 | ||
22551 | cat - <<_ACEOF >conftest.h | |
22552 | ||
22553 | _ACEOF | |
22554 | ||
22555 | ||
22556 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22557 | echo "obj-m := conftest.o" >build/Makefile | |
22558 | modpost_flag='' | |
22559 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22560 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22561 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22562 | (eval $ac_try) 2>&5 | |
22563 | ac_status=$? | |
22564 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22565 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22566 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22567 | (eval $ac_try) 2>&5 | |
22568 | ac_status=$? | |
22569 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22570 | test $ac_status = 0; }; }; then : | |
22571 | rc=0 | |
22572 | else | |
22573 | $as_echo "$as_me: failed program was:" >&5 | |
22574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22575 | rc=1 | |
22576 | ||
22577 | ||
22578 | fi | |
22579 | rm -Rf build | |
22580 | ||
22581 | ||
22582 | if test $rc -ne 0; then : | |
22583 | ||
22584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22585 | $as_echo "no" >&6; } | |
22586 | ||
22587 | else | |
22588 | if test "x$enable_linux_builtin" != xyes; then | |
22589 | ||
22590 | grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \ | |
22591 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
22592 | rc=$? | |
22593 | if test $rc -ne 0; then | |
22594 | export=0 | |
22595 | for file in mm/truncate.c; do | |
22596 | grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \ | |
22597 | "$LINUX/$file" 2>/dev/null | |
22598 | rc=$? | |
22599 | if test $rc -eq 0; then | |
22600 | export=1 | |
22601 | break; | |
22602 | fi | |
22603 | done | |
22604 | if test $export -eq 0; then : | |
22605 | rc=1 | |
22606 | else : | |
22607 | rc=0 | |
22608 | fi | |
22609 | else : | |
22610 | rc=0 | |
22611 | fi | |
22612 | ||
22613 | fi | |
22614 | if test $rc -ne 0; then : | |
22615 | ||
22616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22617 | $as_echo "no" >&6; } | |
22618 | ||
22619 | else : | |
22620 | ||
22621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22622 | $as_echo "yes" >&6; } | |
22623 | ||
22624 | $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h | |
22625 | ||
22626 | ||
22627 | fi | |
22628 | fi | |
22629 | ||
22630 | ||
22631 | ||
22632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5 | |
22633 | $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; } | |
22634 | ||
22635 | ||
22636 | cat confdefs.h - <<_ACEOF >conftest.c | |
22637 | ||
22638 | ||
22639 | #include <linux/security.h> | |
22640 | ||
22641 | int | |
22642 | main (void) | |
22643 | { | |
22644 | ||
22645 | struct inode *ip __attribute__ ((unused)) = NULL; | |
22646 | struct inode *dip __attribute__ ((unused)) = NULL; | |
22647 | const struct qstr *str __attribute__ ((unused)) = NULL; | |
22648 | char *name __attribute__ ((unused)) = NULL; | |
22649 | void *value __attribute__ ((unused)) = NULL; | |
22650 | size_t len __attribute__ ((unused)) = 0; | |
22651 | ||
22652 | security_inode_init_security(ip, dip, str, &name, &value, &len); | |
22653 | ||
22654 | ; | |
22655 | return 0; | |
22656 | } | |
22657 | ||
22658 | _ACEOF | |
22659 | ||
22660 | ||
22661 | ||
22662 | cat - <<_ACEOF >conftest.h | |
22663 | ||
22664 | _ACEOF | |
22665 | ||
22666 | ||
22667 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22668 | echo "obj-m := conftest.o" >build/Makefile | |
22669 | modpost_flag='' | |
22670 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22671 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22672 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22673 | (eval $ac_try) 2>&5 | |
22674 | ac_status=$? | |
22675 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22676 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22677 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22678 | (eval $ac_try) 2>&5 | |
22679 | ac_status=$? | |
22680 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22681 | test $ac_status = 0; }; }; then : | |
22682 | ||
22683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22684 | $as_echo "yes" >&6; } | |
22685 | ||
22686 | $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h | |
22687 | ||
22688 | ||
22689 | else | |
22690 | $as_echo "$as_me: failed program was:" >&5 | |
22691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22692 | ||
22693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22694 | $as_echo "no" >&6; } | |
22695 | ||
22696 | ||
22697 | ||
22698 | fi | |
22699 | rm -Rf build | |
22700 | ||
22701 | ||
22702 | ||
22703 | ||
22704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5 | |
22705 | $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; } | |
22706 | ||
22707 | ||
22708 | cat confdefs.h - <<_ACEOF >conftest.c | |
22709 | ||
22710 | ||
22711 | #include <linux/security.h> | |
22712 | ||
22713 | int | |
22714 | main (void) | |
22715 | { | |
22716 | ||
22717 | struct inode *ip __attribute__ ((unused)) = NULL; | |
22718 | struct inode *dip __attribute__ ((unused)) = NULL; | |
22719 | const struct qstr *str __attribute__ ((unused)) = NULL; | |
22720 | initxattrs func __attribute__ ((unused)) = NULL; | |
22721 | ||
22722 | security_inode_init_security(ip, dip, str, func, NULL); | |
22723 | ||
22724 | ; | |
22725 | return 0; | |
22726 | } | |
22727 | ||
22728 | _ACEOF | |
22729 | ||
22730 | ||
22731 | ||
22732 | cat - <<_ACEOF >conftest.h | |
22733 | ||
22734 | _ACEOF | |
22735 | ||
22736 | ||
22737 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22738 | echo "obj-m := conftest.o" >build/Makefile | |
22739 | modpost_flag='' | |
22740 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22741 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22742 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22743 | (eval $ac_try) 2>&5 | |
22744 | ac_status=$? | |
22745 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22746 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22747 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22748 | (eval $ac_try) 2>&5 | |
22749 | ac_status=$? | |
22750 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22751 | test $ac_status = 0; }; }; then : | |
22752 | ||
22753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22754 | $as_echo "yes" >&6; } | |
22755 | ||
22756 | $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h | |
22757 | ||
22758 | ||
22759 | else | |
22760 | $as_echo "$as_me: failed program was:" >&5 | |
22761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22762 | ||
22763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22764 | $as_echo "no" >&6; } | |
22765 | ||
22766 | ||
22767 | ||
22768 | fi | |
22769 | rm -Rf build | |
22770 | ||
22771 | ||
22772 | ||
22773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5 | |
22774 | $as_echo_n "checking whether mount_nodev() is available... " >&6; } | |
22775 | ||
22776 | ||
22777 | ||
22778 | cat confdefs.h - <<_ACEOF >conftest.c | |
22779 | ||
22780 | ||
22781 | #include <linux/fs.h> | |
22782 | ||
22783 | int | |
22784 | main (void) | |
22785 | { | |
22786 | ||
22787 | mount_nodev(NULL, 0, NULL, NULL); | |
22788 | ||
22789 | ; | |
22790 | return 0; | |
22791 | } | |
22792 | ||
22793 | _ACEOF | |
22794 | ||
22795 | ||
22796 | ||
22797 | cat - <<_ACEOF >conftest.h | |
22798 | ||
22799 | _ACEOF | |
22800 | ||
22801 | ||
22802 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22803 | echo "obj-m := conftest.o" >build/Makefile | |
22804 | modpost_flag='' | |
22805 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22806 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22807 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22808 | (eval $ac_try) 2>&5 | |
22809 | ac_status=$? | |
22810 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22811 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22812 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22813 | (eval $ac_try) 2>&5 | |
22814 | ac_status=$? | |
22815 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22816 | test $ac_status = 0; }; }; then : | |
22817 | rc=0 | |
22818 | else | |
22819 | $as_echo "$as_me: failed program was:" >&5 | |
22820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22821 | rc=1 | |
22822 | ||
22823 | ||
22824 | fi | |
22825 | rm -Rf build | |
22826 | ||
22827 | ||
22828 | if test $rc -ne 0; then : | |
22829 | ||
22830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22831 | $as_echo "no" >&6; } | |
22832 | ||
22833 | else | |
22834 | if test "x$enable_linux_builtin" != xyes; then | |
22835 | ||
22836 | grep -q -E '[[:space:]]mount_nodev[[:space:]]' \ | |
22837 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
22838 | rc=$? | |
22839 | if test $rc -ne 0; then | |
22840 | export=0 | |
22841 | for file in fs/super.c; do | |
22842 | grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \ | |
22843 | "$LINUX/$file" 2>/dev/null | |
22844 | rc=$? | |
22845 | if test $rc -eq 0; then | |
22846 | export=1 | |
22847 | break; | |
22848 | fi | |
22849 | done | |
22850 | if test $export -eq 0; then : | |
22851 | rc=1 | |
22852 | else : | |
22853 | rc=0 | |
22854 | fi | |
22855 | else : | |
22856 | rc=0 | |
22857 | fi | |
22858 | ||
22859 | fi | |
22860 | if test $rc -ne 0; then : | |
22861 | ||
22862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22863 | $as_echo "no" >&6; } | |
22864 | ||
22865 | else : | |
22866 | ||
22867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22868 | $as_echo "yes" >&6; } | |
22869 | ||
22870 | $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h | |
22871 | ||
22872 | ||
22873 | fi | |
22874 | fi | |
22875 | ||
22876 | ||
22877 | ||
22878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5 | |
22879 | $as_echo_n "checking whether super_block has s_shrink... " >&6; } | |
22880 | ||
22881 | ||
22882 | cat confdefs.h - <<_ACEOF >conftest.c | |
22883 | ||
22884 | ||
22885 | #include <linux/fs.h> | |
22886 | ||
22887 | int shrink(struct shrinker *s, struct shrink_control *sc) | |
22888 | { return 0; } | |
22889 | ||
22890 | static const struct super_block | |
22891 | sb __attribute__ ((unused)) = { | |
22892 | .s_shrink.shrink = shrink, | |
22893 | .s_shrink.seeks = DEFAULT_SEEKS, | |
22894 | .s_shrink.batch = 0, | |
22895 | }; | |
22896 | ||
22897 | int | |
22898 | main (void) | |
22899 | { | |
22900 | ||
22901 | ||
22902 | ; | |
22903 | return 0; | |
22904 | } | |
22905 | ||
22906 | _ACEOF | |
22907 | ||
22908 | ||
22909 | ||
22910 | cat - <<_ACEOF >conftest.h | |
22911 | ||
22912 | _ACEOF | |
22913 | ||
22914 | ||
22915 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22916 | echo "obj-m := conftest.o" >build/Makefile | |
22917 | modpost_flag='' | |
22918 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22919 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22920 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22921 | (eval $ac_try) 2>&5 | |
22922 | ac_status=$? | |
22923 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22924 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22925 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22926 | (eval $ac_try) 2>&5 | |
22927 | ac_status=$? | |
22928 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22929 | test $ac_status = 0; }; }; then : | |
22930 | ||
22931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22932 | $as_echo "yes" >&6; } | |
22933 | ||
22934 | $as_echo "#define HAVE_SHRINK 1" >>confdefs.h | |
22935 | ||
22936 | ||
22937 | ||
22938 | else | |
22939 | $as_echo "$as_me: failed program was:" >&5 | |
22940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22941 | ||
22942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22943 | $as_echo "no" >&6; } | |
22944 | ||
22945 | ||
22946 | ||
22947 | fi | |
22948 | rm -Rf build | |
22949 | ||
22950 | ||
22951 | ||
22952 | ||
22953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5 | |
22954 | $as_echo_n "checking whether shrink_control has nid... " >&6; } | |
22955 | ||
22956 | ||
22957 | cat confdefs.h - <<_ACEOF >conftest.c | |
22958 | ||
22959 | ||
22960 | #include <linux/fs.h> | |
22961 | ||
22962 | int | |
22963 | main (void) | |
22964 | { | |
22965 | ||
22966 | struct shrink_control sc __attribute__ ((unused)); | |
22967 | unsigned long scnidsize __attribute__ ((unused)) = | |
22968 | sizeof(sc.nid); | |
22969 | ||
22970 | ; | |
22971 | return 0; | |
22972 | } | |
22973 | ||
22974 | _ACEOF | |
22975 | ||
22976 | ||
22977 | ||
22978 | cat - <<_ACEOF >conftest.h | |
22979 | ||
22980 | _ACEOF | |
22981 | ||
22982 | ||
22983 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22984 | echo "obj-m := conftest.o" >build/Makefile | |
22985 | modpost_flag='' | |
22986 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22987 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22988 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22989 | (eval $ac_try) 2>&5 | |
22990 | ac_status=$? | |
22991 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22992 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22993 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22994 | (eval $ac_try) 2>&5 | |
22995 | ac_status=$? | |
22996 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22997 | test $ac_status = 0; }; }; then : | |
22998 | ||
22999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23000 | $as_echo "yes" >&6; } | |
23001 | ||
23002 | $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h | |
23003 | ||
23004 | ||
23005 | else | |
23006 | $as_echo "$as_me: failed program was:" >&5 | |
23007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23008 | ||
23009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23010 | $as_echo "no" >&6; } | |
23011 | ||
23012 | ||
23013 | ||
23014 | fi | |
23015 | rm -Rf build | |
23016 | ||
23017 | ||
23018 | ||
23019 | ||
23020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5 | |
23021 | $as_echo_n "checking whether super_block has s_instances list_head... " >&6; } | |
23022 | ||
23023 | ||
23024 | cat confdefs.h - <<_ACEOF >conftest.c | |
23025 | ||
23026 | ||
23027 | #include <linux/fs.h> | |
23028 | ||
23029 | int | |
23030 | main (void) | |
23031 | { | |
23032 | ||
23033 | struct super_block sb __attribute__ ((unused)); | |
23034 | ||
23035 | INIT_LIST_HEAD(&sb.s_instances); | |
23036 | ||
23037 | ; | |
23038 | return 0; | |
23039 | } | |
23040 | ||
23041 | _ACEOF | |
23042 | ||
23043 | ||
23044 | ||
23045 | cat - <<_ACEOF >conftest.h | |
23046 | ||
23047 | _ACEOF | |
23048 | ||
23049 | ||
23050 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23051 | echo "obj-m := conftest.o" >build/Makefile | |
23052 | modpost_flag='' | |
23053 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23054 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23055 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23056 | (eval $ac_try) 2>&5 | |
23057 | ac_status=$? | |
23058 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23059 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23060 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23061 | (eval $ac_try) 2>&5 | |
23062 | ac_status=$? | |
23063 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23064 | test $ac_status = 0; }; }; then : | |
23065 | ||
23066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23067 | $as_echo "yes" >&6; } | |
23068 | ||
23069 | $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h | |
23070 | ||
23071 | ||
23072 | else | |
23073 | $as_echo "$as_me: failed program was:" >&5 | |
23074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23075 | ||
23076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23077 | $as_echo "no" >&6; } | |
23078 | ||
23079 | ||
23080 | ||
23081 | fi | |
23082 | rm -Rf build | |
23083 | ||
23084 | ||
23085 | ||
23086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5 | |
23087 | $as_echo_n "checking whether super_block has s_d_op... " >&6; } | |
23088 | ||
23089 | ||
23090 | cat confdefs.h - <<_ACEOF >conftest.c | |
23091 | ||
23092 | ||
23093 | #include <linux/fs.h> | |
23094 | ||
23095 | int | |
23096 | main (void) | |
23097 | { | |
23098 | ||
23099 | struct super_block sb __attribute__ ((unused)); | |
23100 | sb.s_d_op = NULL; | |
23101 | ||
23102 | ; | |
23103 | return 0; | |
23104 | } | |
23105 | ||
23106 | _ACEOF | |
23107 | ||
23108 | ||
23109 | ||
23110 | cat - <<_ACEOF >conftest.h | |
23111 | ||
23112 | _ACEOF | |
23113 | ||
23114 | ||
23115 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23116 | echo "obj-m := conftest.o" >build/Makefile | |
23117 | modpost_flag='' | |
23118 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23119 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23120 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23121 | (eval $ac_try) 2>&5 | |
23122 | ac_status=$? | |
23123 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23124 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23125 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23126 | (eval $ac_try) 2>&5 | |
23127 | ac_status=$? | |
23128 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23129 | test $ac_status = 0; }; }; then : | |
23130 | ||
23131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23132 | $as_echo "yes" >&6; } | |
23133 | ||
23134 | $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h | |
23135 | ||
23136 | ||
23137 | else | |
23138 | $as_echo "$as_me: failed program was:" >&5 | |
23139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23140 | ||
23141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23142 | $as_echo "no" >&6; } | |
23143 | ||
23144 | ||
23145 | ||
23146 | fi | |
23147 | rm -Rf build | |
23148 | ||
23149 | ||
23150 | ||
23151 | ||
df9d7621 CIK |
23152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5 |
23153 | $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; } | |
87d546d8 TG |
23154 | |
23155 | ||
23156 | ||
23157 | cat confdefs.h - <<_ACEOF >conftest.c | |
23158 | ||
23159 | ||
df9d7621 CIK |
23160 | #include <linux/fs.h> |
23161 | struct super_block sb; | |
87d546d8 TG |
23162 | |
23163 | int | |
23164 | main (void) | |
23165 | { | |
23166 | ||
23167 | char *name = "bdi"; | |
23168 | int error __attribute__((unused)) = | |
df9d7621 | 23169 | super_setup_bdi_name(&sb, name); |
87d546d8 TG |
23170 | |
23171 | ; | |
23172 | return 0; | |
23173 | } | |
23174 | ||
23175 | _ACEOF | |
23176 | ||
23177 | ||
23178 | ||
23179 | cat - <<_ACEOF >conftest.h | |
23180 | ||
23181 | _ACEOF | |
23182 | ||
23183 | ||
23184 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23185 | echo "obj-m := conftest.o" >build/Makefile | |
23186 | modpost_flag='' | |
23187 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23188 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23189 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23190 | (eval $ac_try) 2>&5 | |
23191 | ac_status=$? | |
23192 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23193 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23194 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23195 | (eval $ac_try) 2>&5 | |
23196 | ac_status=$? | |
23197 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23198 | test $ac_status = 0; }; }; then : | |
23199 | rc=0 | |
23200 | else | |
23201 | $as_echo "$as_me: failed program was:" >&5 | |
23202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23203 | rc=1 | |
23204 | ||
23205 | ||
23206 | fi | |
23207 | rm -Rf build | |
23208 | ||
23209 | ||
23210 | if test $rc -ne 0; then : | |
23211 | ||
23212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23213 | $as_echo "no" >&6; } | |
df9d7621 CIK |
23214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5 |
23215 | $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; } | |
87d546d8 TG |
23216 | |
23217 | ||
23218 | ||
23219 | cat confdefs.h - <<_ACEOF >conftest.c | |
23220 | ||
23221 | ||
23222 | #include <linux/backing-dev.h> | |
23223 | struct backing_dev_info bdi; | |
23224 | ||
23225 | int | |
23226 | main (void) | |
23227 | { | |
23228 | ||
23229 | char *name = "bdi"; | |
87d546d8 | 23230 | int error __attribute__((unused)) = |
df9d7621 | 23231 | bdi_setup_and_register(&bdi, name); |
87d546d8 TG |
23232 | |
23233 | ; | |
23234 | return 0; | |
23235 | } | |
23236 | ||
23237 | _ACEOF | |
23238 | ||
23239 | ||
23240 | ||
23241 | cat - <<_ACEOF >conftest.h | |
23242 | ||
23243 | _ACEOF | |
23244 | ||
23245 | ||
23246 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23247 | echo "obj-m := conftest.o" >build/Makefile | |
23248 | modpost_flag='' | |
23249 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23250 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23251 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23252 | (eval $ac_try) 2>&5 | |
23253 | ac_status=$? | |
23254 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23255 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23256 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23257 | (eval $ac_try) 2>&5 | |
23258 | ac_status=$? | |
23259 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23260 | test $ac_status = 0; }; }; then : | |
23261 | rc=0 | |
23262 | else | |
23263 | $as_echo "$as_me: failed program was:" >&5 | |
23264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23265 | rc=1 | |
23266 | ||
23267 | ||
23268 | fi | |
23269 | rm -Rf build | |
23270 | ||
23271 | ||
23272 | if test $rc -ne 0; then : | |
23273 | ||
23274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23275 | $as_echo "no" >&6; } | |
df9d7621 CIK |
23276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 |
23277 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
23278 | ||
23279 | ||
23280 | ||
23281 | cat confdefs.h - <<_ACEOF >conftest.c | |
23282 | ||
23283 | ||
23284 | #include <linux/backing-dev.h> | |
23285 | struct backing_dev_info bdi; | |
23286 | ||
23287 | int | |
23288 | main (void) | |
23289 | { | |
23290 | ||
23291 | char *name = "bdi"; | |
23292 | unsigned int cap = BDI_CAP_MAP_COPY; | |
23293 | int error __attribute__((unused)) = | |
23294 | bdi_setup_and_register(&bdi, name, cap); | |
23295 | ||
23296 | ; | |
23297 | return 0; | |
23298 | } | |
23299 | ||
23300 | _ACEOF | |
23301 | ||
23302 | ||
23303 | ||
23304 | cat - <<_ACEOF >conftest.h | |
23305 | ||
23306 | _ACEOF | |
23307 | ||
23308 | ||
23309 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23310 | echo "obj-m := conftest.o" >build/Makefile | |
23311 | modpost_flag='' | |
23312 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23313 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23314 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23315 | (eval $ac_try) 2>&5 | |
23316 | ac_status=$? | |
23317 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23318 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23319 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23320 | (eval $ac_try) 2>&5 | |
23321 | ac_status=$? | |
23322 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23323 | test $ac_status = 0; }; }; then : | |
23324 | rc=0 | |
23325 | else | |
23326 | $as_echo "$as_me: failed program was:" >&5 | |
23327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23328 | rc=1 | |
23329 | ||
23330 | ||
23331 | fi | |
23332 | rm -Rf build | |
23333 | ||
23334 | ||
23335 | if test $rc -ne 0; then : | |
23336 | ||
23337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23338 | $as_echo "no" >&6; } | |
87d546d8 TG |
23339 | |
23340 | else | |
23341 | if test "x$enable_linux_builtin" != xyes; then | |
23342 | ||
23343 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
23344 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23345 | rc=$? | |
23346 | if test $rc -ne 0; then | |
23347 | export=0 | |
23348 | for file in mm/backing-dev.c; do | |
23349 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
23350 | "$LINUX/$file" 2>/dev/null | |
23351 | rc=$? | |
23352 | if test $rc -eq 0; then | |
23353 | export=1 | |
23354 | break; | |
23355 | fi | |
23356 | done | |
23357 | if test $export -eq 0; then : | |
23358 | rc=1 | |
23359 | else : | |
23360 | rc=0 | |
23361 | fi | |
23362 | else : | |
23363 | rc=0 | |
23364 | fi | |
23365 | ||
23366 | fi | |
23367 | if test $rc -ne 0; then : | |
23368 | ||
df9d7621 | 23369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
23370 | $as_echo "no" >&6; } |
23371 | ||
23372 | else : | |
23373 | ||
df9d7621 | 23374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
23375 | $as_echo "yes" >&6; } |
23376 | ||
23377 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
23378 | ||
23379 | ||
23380 | fi | |
23381 | fi | |
23382 | ||
23383 | ||
23384 | else | |
23385 | if test "x$enable_linux_builtin" != xyes; then | |
23386 | ||
23387 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
23388 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23389 | rc=$? | |
23390 | if test $rc -ne 0; then | |
23391 | export=0 | |
23392 | for file in mm/backing-dev.c; do | |
23393 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
23394 | "$LINUX/$file" 2>/dev/null | |
23395 | rc=$? | |
23396 | if test $rc -eq 0; then | |
23397 | export=1 | |
23398 | break; | |
23399 | fi | |
23400 | done | |
23401 | if test $export -eq 0; then : | |
23402 | rc=1 | |
23403 | else : | |
23404 | rc=0 | |
23405 | fi | |
23406 | else : | |
23407 | rc=0 | |
23408 | fi | |
23409 | ||
23410 | fi | |
23411 | if test $rc -ne 0; then : | |
23412 | ||
df9d7621 | 23413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 | 23414 | $as_echo "no" >&6; } |
df9d7621 | 23415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 |
87d546d8 TG |
23416 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } |
23417 | ||
23418 | ||
23419 | ||
23420 | cat confdefs.h - <<_ACEOF >conftest.c | |
23421 | ||
23422 | ||
df9d7621 CIK |
23423 | #include <linux/backing-dev.h> |
23424 | struct backing_dev_info bdi; | |
87d546d8 TG |
23425 | |
23426 | int | |
23427 | main (void) | |
23428 | { | |
23429 | ||
df9d7621 CIK |
23430 | char *name = "bdi"; |
23431 | unsigned int cap = BDI_CAP_MAP_COPY; | |
23432 | int error __attribute__((unused)) = | |
23433 | bdi_setup_and_register(&bdi, name, cap); | |
87d546d8 TG |
23434 | |
23435 | ; | |
23436 | return 0; | |
23437 | } | |
23438 | ||
23439 | _ACEOF | |
23440 | ||
23441 | ||
23442 | ||
23443 | cat - <<_ACEOF >conftest.h | |
23444 | ||
23445 | _ACEOF | |
23446 | ||
23447 | ||
23448 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23449 | echo "obj-m := conftest.o" >build/Makefile | |
23450 | modpost_flag='' | |
23451 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23452 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23453 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23454 | (eval $ac_try) 2>&5 | |
23455 | ac_status=$? | |
23456 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23457 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23458 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23459 | (eval $ac_try) 2>&5 | |
23460 | ac_status=$? | |
23461 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23462 | test $ac_status = 0; }; }; then : | |
23463 | rc=0 | |
23464 | else | |
23465 | $as_echo "$as_me: failed program was:" >&5 | |
23466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23467 | rc=1 | |
23468 | ||
23469 | ||
23470 | fi | |
23471 | rm -Rf build | |
23472 | ||
23473 | ||
23474 | if test $rc -ne 0; then : | |
23475 | ||
df9d7621 | 23476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
23477 | $as_echo "no" >&6; } |
23478 | ||
23479 | else | |
23480 | if test "x$enable_linux_builtin" != xyes; then | |
23481 | ||
23482 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
23483 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23484 | rc=$? | |
23485 | if test $rc -ne 0; then | |
23486 | export=0 | |
23487 | for file in mm/backing-dev.c; do | |
23488 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
23489 | "$LINUX/$file" 2>/dev/null | |
23490 | rc=$? | |
23491 | if test $rc -eq 0; then | |
23492 | export=1 | |
23493 | break; | |
23494 | fi | |
23495 | done | |
23496 | if test $export -eq 0; then : | |
23497 | rc=1 | |
23498 | else : | |
23499 | rc=0 | |
23500 | fi | |
23501 | else : | |
23502 | rc=0 | |
23503 | fi | |
23504 | ||
23505 | fi | |
23506 | if test $rc -ne 0; then : | |
23507 | ||
df9d7621 | 23508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
23509 | $as_echo "no" >&6; } |
23510 | ||
23511 | else : | |
23512 | ||
df9d7621 | 23513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
23514 | $as_echo "yes" >&6; } |
23515 | ||
23516 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
23517 | ||
23518 | ||
23519 | fi | |
23520 | fi | |
23521 | ||
23522 | ||
23523 | else : | |
23524 | ||
df9d7621 | 23525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
23526 | $as_echo "yes" >&6; } |
23527 | ||
23528 | $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
23529 | ||
23530 | ||
23531 | fi | |
23532 | fi | |
23533 | ||
23534 | ||
df9d7621 CIK |
23535 | else |
23536 | if test "x$enable_linux_builtin" != xyes; then | |
23537 | ||
23538 | grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \ | |
23539 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23540 | rc=$? | |
23541 | if test $rc -ne 0; then | |
23542 | export=0 | |
23543 | for file in fs/super.c; do | |
23544 | grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \ | |
23545 | "$LINUX/$file" 2>/dev/null | |
23546 | rc=$? | |
23547 | if test $rc -eq 0; then | |
23548 | export=1 | |
23549 | break; | |
23550 | fi | |
23551 | done | |
23552 | if test $export -eq 0; then : | |
23553 | rc=1 | |
23554 | else : | |
23555 | rc=0 | |
23556 | fi | |
23557 | else : | |
23558 | rc=0 | |
23559 | fi | |
23560 | ||
23561 | fi | |
23562 | if test $rc -ne 0; then : | |
23563 | ||
23564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23565 | $as_echo "no" >&6; } | |
23566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5 | |
23567 | $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; } | |
87d546d8 | 23568 | |
87d546d8 TG |
23569 | |
23570 | ||
23571 | cat confdefs.h - <<_ACEOF >conftest.c | |
23572 | ||
23573 | ||
df9d7621 CIK |
23574 | #include <linux/backing-dev.h> |
23575 | struct backing_dev_info bdi; | |
87d546d8 TG |
23576 | |
23577 | int | |
23578 | main (void) | |
23579 | { | |
23580 | ||
df9d7621 CIK |
23581 | char *name = "bdi"; |
23582 | int error __attribute__((unused)) = | |
23583 | bdi_setup_and_register(&bdi, name); | |
87d546d8 TG |
23584 | |
23585 | ; | |
23586 | return 0; | |
23587 | } | |
23588 | ||
23589 | _ACEOF | |
23590 | ||
23591 | ||
23592 | ||
23593 | cat - <<_ACEOF >conftest.h | |
23594 | ||
23595 | _ACEOF | |
23596 | ||
23597 | ||
23598 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23599 | echo "obj-m := conftest.o" >build/Makefile | |
23600 | modpost_flag='' | |
23601 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23602 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23603 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23604 | (eval $ac_try) 2>&5 | |
23605 | ac_status=$? | |
23606 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23607 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23608 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23609 | (eval $ac_try) 2>&5 | |
23610 | ac_status=$? | |
23611 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23612 | test $ac_status = 0; }; }; then : | |
df9d7621 | 23613 | rc=0 |
87d546d8 TG |
23614 | else |
23615 | $as_echo "$as_me: failed program was:" >&5 | |
23616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
df9d7621 | 23617 | rc=1 |
87d546d8 TG |
23618 | |
23619 | ||
23620 | fi | |
23621 | rm -Rf build | |
23622 | ||
23623 | ||
df9d7621 | 23624 | if test $rc -ne 0; then : |
87d546d8 | 23625 | |
df9d7621 CIK |
23626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
23627 | $as_echo "no" >&6; } | |
23628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 | |
23629 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
87d546d8 | 23630 | |
87d546d8 TG |
23631 | |
23632 | ||
23633 | cat confdefs.h - <<_ACEOF >conftest.c | |
23634 | ||
23635 | ||
df9d7621 CIK |
23636 | #include <linux/backing-dev.h> |
23637 | struct backing_dev_info bdi; | |
87d546d8 TG |
23638 | |
23639 | int | |
23640 | main (void) | |
23641 | { | |
23642 | ||
df9d7621 CIK |
23643 | char *name = "bdi"; |
23644 | unsigned int cap = BDI_CAP_MAP_COPY; | |
23645 | int error __attribute__((unused)) = | |
23646 | bdi_setup_and_register(&bdi, name, cap); | |
87d546d8 TG |
23647 | |
23648 | ; | |
23649 | return 0; | |
23650 | } | |
23651 | ||
23652 | _ACEOF | |
23653 | ||
23654 | ||
23655 | ||
23656 | cat - <<_ACEOF >conftest.h | |
23657 | ||
23658 | _ACEOF | |
23659 | ||
23660 | ||
23661 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23662 | echo "obj-m := conftest.o" >build/Makefile | |
23663 | modpost_flag='' | |
23664 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23665 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23666 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23667 | (eval $ac_try) 2>&5 | |
23668 | ac_status=$? | |
23669 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23670 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
df9d7621 CIK |
23676 | rc=0 |
23677 | else | |
23678 | $as_echo "$as_me: failed program was:" >&5 | |
23679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23680 | rc=1 | |
87d546d8 | 23681 | |
87d546d8 | 23682 | |
df9d7621 CIK |
23683 | fi |
23684 | rm -Rf build | |
87d546d8 TG |
23685 | |
23686 | ||
df9d7621 | 23687 | if test $rc -ne 0; then : |
87d546d8 | 23688 | |
df9d7621 | 23689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
23690 | $as_echo "no" >&6; } |
23691 | ||
df9d7621 CIK |
23692 | else |
23693 | if test "x$enable_linux_builtin" != xyes; then | |
87d546d8 | 23694 | |
df9d7621 CIK |
23695 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ |
23696 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23697 | rc=$? | |
23698 | if test $rc -ne 0; then | |
23699 | export=0 | |
23700 | for file in mm/backing-dev.c; do | |
23701 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
23702 | "$LINUX/$file" 2>/dev/null | |
23703 | rc=$? | |
23704 | if test $rc -eq 0; then | |
23705 | export=1 | |
23706 | break; | |
23707 | fi | |
23708 | done | |
23709 | if test $export -eq 0; then : | |
23710 | rc=1 | |
23711 | else : | |
23712 | rc=0 | |
23713 | fi | |
23714 | else : | |
23715 | rc=0 | |
23716 | fi | |
87d546d8 | 23717 | |
df9d7621 CIK |
23718 | fi |
23719 | if test $rc -ne 0; then : | |
87d546d8 | 23720 | |
df9d7621 CIK |
23721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
23722 | $as_echo "no" >&6; } | |
87d546d8 | 23723 | |
df9d7621 CIK |
23724 | else : |
23725 | ||
23726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23727 | $as_echo "yes" >&6; } | |
23728 | ||
23729 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
23730 | ||
23731 | ||
23732 | fi | |
23733 | fi | |
23734 | ||
23735 | ||
23736 | else | |
23737 | if test "x$enable_linux_builtin" != xyes; then | |
23738 | ||
23739 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
23740 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23741 | rc=$? | |
23742 | if test $rc -ne 0; then | |
23743 | export=0 | |
23744 | for file in mm/backing-dev.c; do | |
23745 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
23746 | "$LINUX/$file" 2>/dev/null | |
23747 | rc=$? | |
23748 | if test $rc -eq 0; then | |
23749 | export=1 | |
23750 | break; | |
23751 | fi | |
23752 | done | |
23753 | if test $export -eq 0; then : | |
23754 | rc=1 | |
23755 | else : | |
23756 | rc=0 | |
23757 | fi | |
23758 | else : | |
23759 | rc=0 | |
23760 | fi | |
23761 | ||
23762 | fi | |
23763 | if test $rc -ne 0; then : | |
23764 | ||
23765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23766 | $as_echo "no" >&6; } | |
23767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 | |
23768 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
87d546d8 | 23769 | |
87d546d8 TG |
23770 | |
23771 | ||
23772 | cat confdefs.h - <<_ACEOF >conftest.c | |
23773 | ||
23774 | ||
df9d7621 CIK |
23775 | #include <linux/backing-dev.h> |
23776 | struct backing_dev_info bdi; | |
87d546d8 TG |
23777 | |
23778 | int | |
23779 | main (void) | |
23780 | { | |
23781 | ||
df9d7621 CIK |
23782 | char *name = "bdi"; |
23783 | unsigned int cap = BDI_CAP_MAP_COPY; | |
23784 | int error __attribute__((unused)) = | |
23785 | bdi_setup_and_register(&bdi, name, cap); | |
87d546d8 TG |
23786 | |
23787 | ; | |
23788 | return 0; | |
23789 | } | |
23790 | ||
23791 | _ACEOF | |
23792 | ||
23793 | ||
23794 | ||
23795 | cat - <<_ACEOF >conftest.h | |
23796 | ||
23797 | _ACEOF | |
23798 | ||
23799 | ||
23800 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23801 | echo "obj-m := conftest.o" >build/Makefile | |
23802 | modpost_flag='' | |
23803 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23804 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23805 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23806 | (eval $ac_try) 2>&5 | |
23807 | ac_status=$? | |
23808 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23809 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23810 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23811 | (eval $ac_try) 2>&5 | |
23812 | ac_status=$? | |
23813 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23814 | test $ac_status = 0; }; }; then : | |
df9d7621 | 23815 | rc=0 |
87d546d8 TG |
23816 | else |
23817 | $as_echo "$as_me: failed program was:" >&5 | |
23818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
df9d7621 | 23819 | rc=1 |
87d546d8 | 23820 | |
df9d7621 CIK |
23821 | |
23822 | fi | |
23823 | rm -Rf build | |
23824 | ||
23825 | ||
23826 | if test $rc -ne 0; then : | |
23827 | ||
23828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23829 | $as_echo "no" >&6; } | |
23830 | ||
23831 | else | |
23832 | if test "x$enable_linux_builtin" != xyes; then | |
23833 | ||
23834 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
23835 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23836 | rc=$? | |
23837 | if test $rc -ne 0; then | |
23838 | export=0 | |
23839 | for file in mm/backing-dev.c; do | |
23840 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
23841 | "$LINUX/$file" 2>/dev/null | |
23842 | rc=$? | |
23843 | if test $rc -eq 0; then | |
23844 | export=1 | |
23845 | break; | |
23846 | fi | |
23847 | done | |
23848 | if test $export -eq 0; then : | |
23849 | rc=1 | |
23850 | else : | |
23851 | rc=0 | |
23852 | fi | |
23853 | else : | |
23854 | rc=0 | |
23855 | fi | |
23856 | ||
23857 | fi | |
23858 | if test $rc -ne 0; then : | |
23859 | ||
23860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23861 | $as_echo "no" >&6; } | |
23862 | ||
23863 | else : | |
23864 | ||
23865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23866 | $as_echo "yes" >&6; } | |
23867 | ||
23868 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
23869 | ||
23870 | ||
23871 | fi | |
23872 | fi | |
23873 | ||
23874 | ||
23875 | else : | |
23876 | ||
23877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23878 | $as_echo "yes" >&6; } | |
23879 | ||
23880 | $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
23881 | ||
23882 | ||
23883 | fi | |
23884 | fi | |
23885 | ||
23886 | ||
23887 | else : | |
23888 | ||
23889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23890 | $as_echo "yes" >&6; } | |
23891 | ||
23892 | $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h | |
23893 | ||
23894 | ||
23895 | fi | |
23896 | fi | |
23897 | ||
23898 | ||
23899 | ||
23900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5 | |
23901 | $as_echo_n "checking whether set_nlink() is available... " >&6; } | |
23902 | ||
23903 | ||
23904 | cat confdefs.h - <<_ACEOF >conftest.c | |
23905 | ||
23906 | ||
23907 | #include <linux/fs.h> | |
23908 | ||
23909 | int | |
23910 | main (void) | |
23911 | { | |
23912 | ||
23913 | struct inode node; | |
23914 | unsigned int link = 0; | |
23915 | (void) set_nlink(&node, link); | |
23916 | ||
23917 | ; | |
23918 | return 0; | |
23919 | } | |
23920 | ||
23921 | _ACEOF | |
23922 | ||
23923 | ||
23924 | ||
23925 | cat - <<_ACEOF >conftest.h | |
23926 | ||
23927 | _ACEOF | |
23928 | ||
23929 | ||
23930 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23931 | echo "obj-m := conftest.o" >build/Makefile | |
23932 | modpost_flag='' | |
23933 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23934 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23935 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23936 | (eval $ac_try) 2>&5 | |
23937 | ac_status=$? | |
23938 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23939 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23940 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23941 | (eval $ac_try) 2>&5 | |
23942 | ac_status=$? | |
23943 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23944 | test $ac_status = 0; }; }; then : | |
23945 | ||
23946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23947 | $as_echo "yes" >&6; } | |
23948 | ||
23949 | $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h | |
23950 | ||
23951 | ||
23952 | else | |
23953 | $as_echo "$as_me: failed program was:" >&5 | |
23954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23955 | ||
23956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23957 | $as_echo "no" >&6; } | |
23958 | ||
23959 | ||
23960 | ||
23961 | fi | |
23962 | rm -Rf build | |
23963 | ||
23964 | ||
23965 | ||
23966 | ||
23967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5 | |
23968 | $as_echo_n "checking whether elevator_change() is available... " >&6; } | |
23969 | tmp_flags="$EXTRA_KCFLAGS" | |
23970 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
23971 | ||
23972 | ||
23973 | cat confdefs.h - <<_ACEOF >conftest.c | |
23974 | ||
23975 | ||
23976 | #include <linux/blkdev.h> | |
23977 | #include <linux/elevator.h> | |
23978 | ||
23979 | int | |
23980 | main (void) | |
23981 | { | |
23982 | ||
23983 | int ret; | |
23984 | struct request_queue *q = NULL; | |
23985 | char *elevator = NULL; | |
23986 | ret = elevator_change(q, elevator); | |
23987 | ||
23988 | ; | |
23989 | return 0; | |
23990 | } | |
23991 | ||
23992 | _ACEOF | |
23993 | ||
23994 | ||
23995 | ||
23996 | cat - <<_ACEOF >conftest.h | |
23997 | ||
23998 | _ACEOF | |
23999 | ||
24000 | ||
24001 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24002 | echo "obj-m := conftest.o" >build/Makefile | |
24003 | modpost_flag='' | |
24004 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24005 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24006 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24007 | (eval $ac_try) 2>&5 | |
24008 | ac_status=$? | |
24009 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24010 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24011 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24012 | (eval $ac_try) 2>&5 | |
24013 | ac_status=$? | |
24014 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24015 | test $ac_status = 0; }; }; then : | |
24016 | ||
24017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24018 | $as_echo "yes" >&6; } | |
24019 | ||
24020 | $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h | |
24021 | ||
24022 | ||
24023 | else | |
24024 | $as_echo "$as_me: failed program was:" >&5 | |
24025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24026 | ||
24027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24028 | $as_echo "no" >&6; } | |
24029 | ||
24030 | ||
24031 | ||
24032 | fi | |
24033 | rm -Rf build | |
24034 | ||
24035 | ||
24036 | EXTRA_KCFLAGS="$tmp_flags" | |
24037 | ||
24038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5 | |
24039 | $as_echo_n "checking whether sget() wants 5 args... " >&6; } | |
24040 | ||
24041 | ||
24042 | cat confdefs.h - <<_ACEOF >conftest.c | |
24043 | ||
24044 | ||
24045 | #include <linux/fs.h> | |
24046 | ||
24047 | int | |
24048 | main (void) | |
24049 | { | |
24050 | ||
24051 | struct file_system_type *type = NULL; | |
24052 | int (*test)(struct super_block *,void *) = NULL; | |
24053 | int (*set)(struct super_block *,void *) = NULL; | |
24054 | int flags = 0; | |
24055 | void *data = NULL; | |
24056 | (void) sget(type, test, set, flags, data); | |
24057 | ||
24058 | ; | |
24059 | return 0; | |
24060 | } | |
24061 | ||
24062 | _ACEOF | |
24063 | ||
24064 | ||
24065 | ||
24066 | cat - <<_ACEOF >conftest.h | |
24067 | ||
24068 | _ACEOF | |
24069 | ||
24070 | ||
24071 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24072 | echo "obj-m := conftest.o" >build/Makefile | |
24073 | modpost_flag='' | |
24074 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24075 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24076 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24077 | (eval $ac_try) 2>&5 | |
24078 | ac_status=$? | |
24079 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24080 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24081 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24082 | (eval $ac_try) 2>&5 | |
24083 | ac_status=$? | |
24084 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24085 | test $ac_status = 0; }; }; then : | |
24086 | ||
24087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24088 | $as_echo "yes" >&6; } | |
24089 | ||
24090 | $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h | |
24091 | ||
24092 | ||
24093 | else | |
24094 | $as_echo "$as_me: failed program was:" >&5 | |
24095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24096 | ||
24097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24098 | $as_echo "no" >&6; } | |
87d546d8 TG |
24099 | |
24100 | ||
24101 | ||
24102 | fi | |
24103 | rm -Rf build | |
24104 | ||
24105 | ||
24106 | ||
24107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5 | |
24108 | $as_echo_n "checking whether lseek_execute() is available... " >&6; } | |
24109 | ||
24110 | ||
24111 | ||
24112 | cat confdefs.h - <<_ACEOF >conftest.c | |
24113 | ||
24114 | ||
24115 | #include <linux/fs.h> | |
24116 | ||
24117 | int | |
24118 | main (void) | |
24119 | { | |
24120 | ||
24121 | struct file *fp __attribute__ ((unused)) = NULL; | |
24122 | struct inode *ip __attribute__ ((unused)) = NULL; | |
24123 | loff_t offset __attribute__ ((unused)) = 0; | |
24124 | loff_t maxsize __attribute__ ((unused)) = 0; | |
24125 | ||
24126 | lseek_execute(fp, ip, offset, maxsize); | |
24127 | ||
24128 | ; | |
24129 | return 0; | |
24130 | } | |
24131 | ||
24132 | _ACEOF | |
24133 | ||
24134 | ||
24135 | ||
24136 | cat - <<_ACEOF >conftest.h | |
24137 | ||
24138 | _ACEOF | |
24139 | ||
24140 | ||
24141 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24142 | echo "obj-m := conftest.o" >build/Makefile | |
24143 | modpost_flag='' | |
24144 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24145 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24146 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24147 | (eval $ac_try) 2>&5 | |
24148 | ac_status=$? | |
24149 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24150 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24151 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24152 | (eval $ac_try) 2>&5 | |
24153 | ac_status=$? | |
24154 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24155 | test $ac_status = 0; }; }; then : | |
24156 | rc=0 | |
24157 | else | |
24158 | $as_echo "$as_me: failed program was:" >&5 | |
24159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24160 | rc=1 | |
24161 | ||
24162 | ||
24163 | fi | |
24164 | rm -Rf build | |
24165 | ||
24166 | ||
24167 | if test $rc -ne 0; then : | |
24168 | ||
24169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24170 | $as_echo "no" >&6; } | |
24171 | ||
24172 | else | |
24173 | if test "x$enable_linux_builtin" != xyes; then | |
24174 | ||
24175 | grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \ | |
24176 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
24177 | rc=$? | |
24178 | if test $rc -ne 0; then | |
24179 | export=0 | |
24180 | for file in fs/read_write.c; do | |
24181 | grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \ | |
24182 | "$LINUX/$file" 2>/dev/null | |
24183 | rc=$? | |
24184 | if test $rc -eq 0; then | |
24185 | export=1 | |
24186 | break; | |
24187 | fi | |
24188 | done | |
24189 | if test $export -eq 0; then : | |
24190 | rc=1 | |
24191 | else : | |
24192 | rc=0 | |
24193 | fi | |
24194 | else : | |
24195 | rc=0 | |
24196 | fi | |
24197 | ||
24198 | fi | |
24199 | if test $rc -ne 0; then : | |
24200 | ||
24201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24202 | $as_echo "no" >&6; } | |
24203 | ||
24204 | else : | |
24205 | ||
24206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24207 | $as_echo "yes" >&6; } | |
24208 | ||
24209 | $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h | |
24210 | ||
24211 | ||
24212 | fi | |
24213 | fi | |
24214 | ||
24215 | ||
24216 | ||
24217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5 | |
24218 | $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; } | |
24219 | ||
24220 | ||
24221 | cat confdefs.h - <<_ACEOF >conftest.c | |
24222 | ||
24223 | ||
24224 | #include <linux/fs.h> | |
24225 | int iterate(struct file *filp, struct dir_context * context) | |
24226 | { return 0; } | |
24227 | ||
24228 | static const struct file_operations fops | |
24229 | __attribute__ ((unused)) = { | |
24230 | .iterate_shared = iterate, | |
24231 | }; | |
24232 | ||
24233 | int | |
24234 | main (void) | |
24235 | { | |
24236 | ||
24237 | ||
24238 | ; | |
24239 | return 0; | |
24240 | } | |
24241 | ||
24242 | _ACEOF | |
24243 | ||
24244 | ||
24245 | ||
24246 | cat - <<_ACEOF >conftest.h | |
24247 | ||
24248 | _ACEOF | |
24249 | ||
24250 | ||
24251 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24252 | echo "obj-m := conftest.o" >build/Makefile | |
24253 | modpost_flag='' | |
24254 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24255 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24256 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24257 | (eval $ac_try) 2>&5 | |
24258 | ac_status=$? | |
24259 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24260 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24261 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24262 | (eval $ac_try) 2>&5 | |
24263 | ac_status=$? | |
24264 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24265 | test $ac_status = 0; }; }; then : | |
24266 | ||
24267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24268 | $as_echo "yes" >&6; } | |
24269 | ||
24270 | $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h | |
24271 | ||
24272 | ||
24273 | else | |
24274 | $as_echo "$as_me: failed program was:" >&5 | |
24275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24276 | ||
24277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24278 | $as_echo "no" >&6; } | |
24279 | ||
24280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5 | |
24281 | $as_echo_n "checking whether fops->iterate() is available... " >&6; } | |
24282 | ||
24283 | ||
24284 | cat confdefs.h - <<_ACEOF >conftest.c | |
24285 | ||
24286 | ||
24287 | #include <linux/fs.h> | |
24288 | int iterate(struct file *filp, struct dir_context * context) | |
24289 | { return 0; } | |
24290 | ||
24291 | static const struct file_operations fops | |
24292 | __attribute__ ((unused)) = { | |
24293 | .iterate = iterate, | |
24294 | }; | |
24295 | ||
24296 | int | |
24297 | main (void) | |
24298 | { | |
24299 | ||
24300 | ||
24301 | ; | |
24302 | return 0; | |
24303 | } | |
24304 | ||
24305 | _ACEOF | |
24306 | ||
24307 | ||
24308 | ||
24309 | cat - <<_ACEOF >conftest.h | |
24310 | ||
24311 | _ACEOF | |
24312 | ||
24313 | ||
24314 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24315 | echo "obj-m := conftest.o" >build/Makefile | |
24316 | modpost_flag='' | |
24317 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24318 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24319 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24320 | (eval $ac_try) 2>&5 | |
24321 | ac_status=$? | |
24322 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24323 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24324 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24325 | (eval $ac_try) 2>&5 | |
24326 | ac_status=$? | |
24327 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24328 | test $ac_status = 0; }; }; then : | |
24329 | ||
24330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24331 | $as_echo "yes" >&6; } | |
24332 | ||
24333 | $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h | |
24334 | ||
24335 | ||
24336 | else | |
24337 | $as_echo "$as_me: failed program was:" >&5 | |
24338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24339 | ||
24340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24341 | $as_echo "no" >&6; } | |
24342 | ||
24343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5 | |
24344 | $as_echo_n "checking whether fops->readdir() is available... " >&6; } | |
24345 | ||
24346 | ||
24347 | cat confdefs.h - <<_ACEOF >conftest.c | |
24348 | ||
24349 | ||
24350 | #include <linux/fs.h> | |
24351 | int readdir(struct file *filp, void *entry, filldir_t func) | |
24352 | { return 0; } | |
24353 | ||
24354 | static const struct file_operations fops | |
24355 | __attribute__ ((unused)) = { | |
24356 | .readdir = readdir, | |
24357 | }; | |
24358 | ||
24359 | int | |
24360 | main (void) | |
24361 | { | |
24362 | ||
24363 | ||
24364 | ; | |
24365 | return 0; | |
24366 | } | |
24367 | ||
24368 | _ACEOF | |
24369 | ||
24370 | ||
24371 | ||
24372 | cat - <<_ACEOF >conftest.h | |
24373 | ||
24374 | _ACEOF | |
24375 | ||
24376 | ||
24377 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24378 | echo "obj-m := conftest.o" >build/Makefile | |
24379 | modpost_flag='' | |
24380 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24381 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24382 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24383 | (eval $ac_try) 2>&5 | |
24384 | ac_status=$? | |
24385 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24386 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24387 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24388 | (eval $ac_try) 2>&5 | |
24389 | ac_status=$? | |
24390 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24391 | test $ac_status = 0; }; }; then : | |
24392 | ||
24393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24394 | $as_echo "yes" >&6; } | |
24395 | ||
24396 | $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h | |
24397 | ||
24398 | ||
24399 | else | |
24400 | $as_echo "$as_me: failed program was:" >&5 | |
24401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24402 | ||
24403 | as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5 | |
24404 | ||
24405 | ||
24406 | ||
24407 | fi | |
24408 | rm -Rf build | |
24409 | ||
24410 | ||
24411 | ||
24412 | ||
24413 | ||
24414 | fi | |
24415 | rm -Rf build | |
24416 | ||
24417 | ||
24418 | ||
24419 | ||
24420 | ||
24421 | fi | |
24422 | rm -Rf build | |
24423 | ||
24424 | ||
24425 | ||
24426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5 | |
24427 | $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; } | |
24428 | ||
24429 | ||
24430 | cat confdefs.h - <<_ACEOF >conftest.c | |
24431 | ||
24432 | ||
24433 | #include <linux/fs.h> | |
24434 | ||
24435 | ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to) | |
24436 | { return 0; } | |
24437 | ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from) | |
24438 | { return 0; } | |
24439 | ||
24440 | static const struct file_operations | |
24441 | fops __attribute__ ((unused)) = { | |
24442 | .read_iter = test_read, | |
24443 | .write_iter = test_write, | |
24444 | }; | |
24445 | ||
24446 | int | |
24447 | main (void) | |
24448 | { | |
24449 | ||
24450 | ||
24451 | ; | |
24452 | return 0; | |
24453 | } | |
24454 | ||
24455 | _ACEOF | |
24456 | ||
24457 | ||
24458 | ||
24459 | cat - <<_ACEOF >conftest.h | |
24460 | ||
24461 | _ACEOF | |
24462 | ||
24463 | ||
24464 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24465 | echo "obj-m := conftest.o" >build/Makefile | |
24466 | modpost_flag='' | |
24467 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24468 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24469 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24470 | (eval $ac_try) 2>&5 | |
24471 | ac_status=$? | |
24472 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24473 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24474 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24475 | (eval $ac_try) 2>&5 | |
24476 | ac_status=$? | |
24477 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24478 | test $ac_status = 0; }; }; then : | |
24479 | ||
24480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24481 | $as_echo "yes" >&6; } | |
24482 | ||
24483 | $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h | |
24484 | ||
24485 | ||
5b5f25ca CIK |
24486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5 |
24487 | $as_echo_n "checking whether new_sync_read() is available... " >&6; } | |
24488 | ||
24489 | ||
24490 | cat confdefs.h - <<_ACEOF >conftest.c | |
24491 | ||
24492 | ||
24493 | #include <linux/fs.h> | |
24494 | ||
24495 | int | |
24496 | main (void) | |
24497 | { | |
24498 | ||
24499 | new_sync_read(NULL, NULL, 0, NULL); | |
24500 | ||
24501 | ; | |
24502 | return 0; | |
24503 | } | |
24504 | ||
24505 | _ACEOF | |
24506 | ||
24507 | ||
24508 | ||
24509 | cat - <<_ACEOF >conftest.h | |
24510 | ||
24511 | _ACEOF | |
24512 | ||
24513 | ||
24514 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24515 | echo "obj-m := conftest.o" >build/Makefile | |
24516 | modpost_flag='' | |
24517 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24518 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24519 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24520 | (eval $ac_try) 2>&5 | |
24521 | ac_status=$? | |
24522 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24523 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24524 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24525 | (eval $ac_try) 2>&5 | |
24526 | ac_status=$? | |
24527 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24528 | test $ac_status = 0; }; }; then : | |
24529 | ||
24530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24531 | $as_echo "yes" >&6; } | |
24532 | ||
24533 | $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h | |
24534 | ||
24535 | ||
24536 | else | |
24537 | $as_echo "$as_me: failed program was:" >&5 | |
24538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24539 | ||
24540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24541 | $as_echo "no" >&6; } | |
24542 | ||
24543 | ||
24544 | ||
24545 | fi | |
24546 | rm -Rf build | |
24547 | ||
24548 | ||
24549 | ||
24550 | ||
87d546d8 TG |
24551 | else |
24552 | $as_echo "$as_me: failed program was:" >&5 | |
24553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24554 | ||
24555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24556 | $as_echo "no" >&6; } | |
24557 | ||
24558 | ||
24559 | ||
24560 | fi | |
24561 | rm -Rf build | |
24562 | ||
24563 | ||
24564 | ||
24565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5 | |
24566 | $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; } | |
24567 | ||
24568 | ||
24569 | cat confdefs.h - <<_ACEOF >conftest.c | |
24570 | ||
24571 | ||
24572 | #include <linux/fs.h> | |
24573 | ||
24574 | ||
24575 | int | |
24576 | main (void) | |
24577 | { | |
24578 | ||
24579 | struct kiocb *iocb = NULL; | |
24580 | struct iov_iter *iov = NULL; | |
24581 | generic_write_checks(iocb, iov); | |
24582 | ||
24583 | ; | |
24584 | return 0; | |
24585 | } | |
24586 | ||
24587 | _ACEOF | |
24588 | ||
24589 | ||
24590 | ||
24591 | cat - <<_ACEOF >conftest.h | |
24592 | ||
24593 | _ACEOF | |
24594 | ||
24595 | ||
24596 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24597 | echo "obj-m := conftest.o" >build/Makefile | |
24598 | modpost_flag='' | |
24599 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24600 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24601 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24602 | (eval $ac_try) 2>&5 | |
24603 | ac_status=$? | |
24604 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24605 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24606 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24607 | (eval $ac_try) 2>&5 | |
24608 | ac_status=$? | |
24609 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24610 | test $ac_status = 0; }; }; then : | |
24611 | ||
24612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24613 | $as_echo "yes" >&6; } | |
24614 | ||
24615 | $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h | |
24616 | ||
24617 | ||
24618 | else | |
24619 | $as_echo "$as_me: failed program was:" >&5 | |
24620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24621 | ||
24622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24623 | $as_echo "no" >&6; } | |
24624 | ||
24625 | ||
24626 | ||
24627 | fi | |
24628 | rm -Rf build | |
24629 | ||
24630 | ||
24631 | ||
24632 | ||
24633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5 | |
24634 | $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; } | |
24635 | ||
24636 | ||
24637 | cat confdefs.h - <<_ACEOF >conftest.c | |
24638 | ||
24639 | ||
24640 | #include <linux/pagemap.h> | |
24641 | ||
24642 | int | |
24643 | main (void) | |
24644 | { | |
24645 | ||
24646 | struct page page; | |
24647 | kmap_atomic(&page); | |
24648 | ||
24649 | ; | |
24650 | return 0; | |
24651 | } | |
24652 | ||
24653 | _ACEOF | |
24654 | ||
24655 | ||
24656 | ||
24657 | cat - <<_ACEOF >conftest.h | |
24658 | ||
24659 | _ACEOF | |
24660 | ||
24661 | ||
24662 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24663 | echo "obj-m := conftest.o" >build/Makefile | |
24664 | modpost_flag='' | |
24665 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24666 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24667 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24668 | (eval $ac_try) 2>&5 | |
24669 | ac_status=$? | |
24670 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24671 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24672 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24673 | (eval $ac_try) 2>&5 | |
24674 | ac_status=$? | |
24675 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24676 | test $ac_status = 0; }; }; then : | |
24677 | ||
24678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24679 | $as_echo "yes" >&6; } | |
24680 | ||
24681 | $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h | |
24682 | ||
24683 | ||
24684 | else | |
24685 | $as_echo "$as_me: failed program was:" >&5 | |
24686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24687 | ||
24688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24689 | $as_echo "no" >&6; } | |
24690 | ||
24691 | ||
24692 | ||
24693 | fi | |
24694 | rm -Rf build | |
24695 | ||
24696 | ||
24697 | ||
24698 | ||
24699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5 | |
24700 | $as_echo_n "checking whether follow_down_one() is available... " >&6; } | |
24701 | ||
24702 | ||
24703 | cat confdefs.h - <<_ACEOF >conftest.c | |
24704 | ||
24705 | ||
24706 | #include <linux/namei.h> | |
24707 | ||
24708 | int | |
24709 | main (void) | |
24710 | { | |
24711 | ||
24712 | struct path *p = NULL; | |
24713 | follow_down_one(p); | |
24714 | ||
24715 | ; | |
24716 | return 0; | |
24717 | } | |
24718 | ||
24719 | _ACEOF | |
24720 | ||
24721 | ||
24722 | ||
24723 | cat - <<_ACEOF >conftest.h | |
24724 | ||
24725 | _ACEOF | |
24726 | ||
24727 | ||
24728 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24729 | echo "obj-m := conftest.o" >build/Makefile | |
24730 | modpost_flag='' | |
24731 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24732 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24733 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24734 | (eval $ac_try) 2>&5 | |
24735 | ac_status=$? | |
24736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24737 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24738 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24739 | (eval $ac_try) 2>&5 | |
24740 | ac_status=$? | |
24741 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24742 | test $ac_status = 0; }; }; then : | |
24743 | ||
24744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24745 | $as_echo "yes" >&6; } | |
24746 | ||
24747 | $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h | |
24748 | ||
24749 | ||
24750 | else | |
24751 | $as_echo "$as_me: failed program was:" >&5 | |
24752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24753 | ||
24754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24755 | $as_echo "no" >&6; } | |
24756 | ||
24757 | ||
24758 | ||
24759 | fi | |
24760 | rm -Rf build | |
24761 | ||
24762 | ||
24763 | ||
24764 | ||
24765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5 | |
24766 | $as_echo_n "checking whether make_request_fn() returns int... " >&6; } | |
24767 | ||
24768 | ||
24769 | cat confdefs.h - <<_ACEOF >conftest.c | |
24770 | ||
24771 | ||
24772 | #include <linux/blkdev.h> | |
24773 | ||
24774 | int make_request(struct request_queue *q, struct bio *bio) | |
24775 | { | |
24776 | return (0); | |
24777 | } | |
24778 | ||
24779 | int | |
24780 | main (void) | |
24781 | { | |
24782 | ||
24783 | blk_queue_make_request(NULL, &make_request); | |
24784 | ||
24785 | ; | |
24786 | return 0; | |
24787 | } | |
24788 | ||
24789 | _ACEOF | |
24790 | ||
24791 | ||
24792 | ||
24793 | cat - <<_ACEOF >conftest.h | |
24794 | ||
24795 | _ACEOF | |
24796 | ||
24797 | ||
24798 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24799 | echo "obj-m := conftest.o" >build/Makefile | |
24800 | modpost_flag='' | |
24801 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24802 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24803 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24804 | (eval $ac_try) 2>&5 | |
24805 | ac_status=$? | |
24806 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24807 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24808 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24809 | (eval $ac_try) 2>&5 | |
24810 | ac_status=$? | |
24811 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24812 | test $ac_status = 0; }; }; then : | |
24813 | ||
24814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24815 | $as_echo "yes" >&6; } | |
24816 | ||
24817 | $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h | |
24818 | ||
24819 | ||
24820 | $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h | |
24821 | ||
24822 | ||
24823 | else | |
24824 | $as_echo "$as_me: failed program was:" >&5 | |
24825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24826 | ||
24827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24828 | $as_echo "no" >&6; } | |
24829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5 | |
24830 | $as_echo_n "checking whether make_request_fn() returns void... " >&6; } | |
24831 | ||
24832 | ||
24833 | cat confdefs.h - <<_ACEOF >conftest.c | |
24834 | ||
24835 | ||
24836 | #include <linux/blkdev.h> | |
24837 | ||
24838 | void make_request(struct request_queue *q, struct bio *bio) | |
24839 | { | |
24840 | return; | |
24841 | } | |
24842 | ||
24843 | int | |
24844 | main (void) | |
24845 | { | |
24846 | ||
24847 | blk_queue_make_request(NULL, &make_request); | |
24848 | ||
24849 | ; | |
24850 | return 0; | |
24851 | } | |
24852 | ||
24853 | _ACEOF | |
24854 | ||
24855 | ||
24856 | ||
24857 | cat - <<_ACEOF >conftest.h | |
24858 | ||
24859 | _ACEOF | |
24860 | ||
24861 | ||
24862 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24863 | echo "obj-m := conftest.o" >build/Makefile | |
24864 | modpost_flag='' | |
24865 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24866 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24867 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24868 | (eval $ac_try) 2>&5 | |
24869 | ac_status=$? | |
24870 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24871 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24872 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24873 | (eval $ac_try) 2>&5 | |
24874 | ac_status=$? | |
24875 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24876 | test $ac_status = 0; }; }; then : | |
24877 | ||
24878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24879 | $as_echo "yes" >&6; } | |
24880 | ||
24881 | $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h | |
24882 | ||
24883 | ||
24884 | else | |
24885 | $as_echo "$as_me: failed program was:" >&5 | |
24886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24887 | ||
24888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24889 | $as_echo "no" >&6; } | |
24890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5 | |
24891 | $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; } | |
24892 | ||
24893 | ||
24894 | cat confdefs.h - <<_ACEOF >conftest.c | |
24895 | ||
24896 | ||
24897 | #include <linux/blkdev.h> | |
24898 | ||
24899 | blk_qc_t make_request(struct request_queue *q, struct bio *bio) | |
24900 | { | |
24901 | return (BLK_QC_T_NONE); | |
24902 | } | |
24903 | ||
24904 | int | |
24905 | main (void) | |
24906 | { | |
24907 | ||
24908 | blk_queue_make_request(NULL, &make_request); | |
24909 | ||
24910 | ; | |
24911 | return 0; | |
24912 | } | |
24913 | ||
24914 | _ACEOF | |
24915 | ||
24916 | ||
24917 | ||
24918 | cat - <<_ACEOF >conftest.h | |
24919 | ||
24920 | _ACEOF | |
24921 | ||
24922 | ||
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 | |
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' | |
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 | ||
24942 | $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h | |
24943 | ||
24944 | ||
24945 | $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h | |
24946 | ||
24947 | ||
24948 | else | |
24949 | $as_echo "$as_me: failed program was:" >&5 | |
24950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24951 | ||
24952 | as_fn_error $? "no - Please file a bug report at | |
24953 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
24954 | ||
24955 | ||
24956 | ||
24957 | fi | |
24958 | rm -Rf build | |
24959 | ||
24960 | ||
24961 | ||
24962 | ||
24963 | ||
24964 | fi | |
24965 | rm -Rf build | |
24966 | ||
24967 | ||
24968 | ||
24969 | ||
24970 | ||
24971 | fi | |
24972 | rm -Rf build | |
24973 | ||
24974 | ||
24975 | ||
24976 | ||
24977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5 | |
24978 | $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; } | |
24979 | ||
24980 | ||
24981 | ||
24982 | cat confdefs.h - <<_ACEOF >conftest.c | |
24983 | ||
24984 | ||
24985 | #include <linux/bio.h> | |
24986 | ||
24987 | void (*generic_start_io_acct_f)(int, unsigned long, | |
24988 | struct hd_struct *) = &generic_start_io_acct; | |
24989 | void (*generic_end_io_acct_f)(int, struct hd_struct *, | |
24990 | unsigned long) = &generic_end_io_acct; | |
24991 | ||
24992 | int | |
24993 | main (void) | |
24994 | { | |
24995 | ||
24996 | generic_start_io_acct(0, 0, NULL); | |
24997 | generic_end_io_acct(0, NULL, 0); | |
24998 | ||
24999 | ; | |
25000 | return 0; | |
25001 | } | |
25002 | ||
25003 | _ACEOF | |
25004 | ||
25005 | ||
25006 | ||
25007 | cat - <<_ACEOF >conftest.h | |
25008 | ||
25009 | _ACEOF | |
25010 | ||
25011 | ||
25012 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25013 | echo "obj-m := conftest.o" >build/Makefile | |
25014 | modpost_flag='' | |
25015 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25016 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25017 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25018 | (eval $ac_try) 2>&5 | |
25019 | ac_status=$? | |
25020 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25021 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25022 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25023 | (eval $ac_try) 2>&5 | |
25024 | ac_status=$? | |
25025 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25026 | test $ac_status = 0; }; }; then : | |
25027 | rc=0 | |
25028 | else | |
25029 | $as_echo "$as_me: failed program was:" >&5 | |
25030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25031 | rc=1 | |
25032 | ||
25033 | ||
25034 | fi | |
25035 | rm -Rf build | |
25036 | ||
25037 | ||
25038 | if test $rc -ne 0; then : | |
25039 | ||
25040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25041 | $as_echo "no" >&6; } | |
25042 | ||
25043 | else | |
25044 | if test "x$enable_linux_builtin" != xyes; then | |
25045 | ||
25046 | grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \ | |
25047 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
25048 | rc=$? | |
25049 | if test $rc -ne 0; then | |
25050 | export=0 | |
25051 | for file in block/bio.c; do | |
25052 | grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \ | |
25053 | "$LINUX/$file" 2>/dev/null | |
25054 | rc=$? | |
25055 | if test $rc -eq 0; then | |
25056 | export=1 | |
25057 | break; | |
25058 | fi | |
25059 | done | |
25060 | if test $export -eq 0; then : | |
25061 | rc=1 | |
25062 | else : | |
25063 | rc=0 | |
25064 | fi | |
25065 | else : | |
25066 | rc=0 | |
25067 | fi | |
25068 | ||
25069 | fi | |
25070 | if test $rc -ne 0; then : | |
25071 | ||
25072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25073 | $as_echo "no" >&6; } | |
25074 | ||
25075 | else : | |
25076 | ||
25077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25078 | $as_echo "yes" >&6; } | |
25079 | ||
25080 | $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h | |
25081 | ||
25082 | ||
25083 | fi | |
25084 | fi | |
25085 | ||
25086 | ||
25087 | ||
25088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5 | |
25089 | $as_echo_n "checking whether iops->rename() wants flags... " >&6; } | |
25090 | ||
25091 | ||
25092 | cat confdefs.h - <<_ACEOF >conftest.c | |
25093 | ||
25094 | ||
25095 | #include <linux/fs.h> | |
25096 | int rename_fn(struct inode *sip, struct dentry *sdp, | |
25097 | struct inode *tip, struct dentry *tdp, | |
25098 | unsigned int flags) { return 0; } | |
25099 | ||
25100 | static const struct inode_operations | |
25101 | iops __attribute__ ((unused)) = { | |
25102 | .rename = rename_fn, | |
25103 | }; | |
25104 | ||
25105 | int | |
25106 | main (void) | |
25107 | { | |
25108 | ||
25109 | ||
25110 | ; | |
25111 | return 0; | |
25112 | } | |
25113 | ||
25114 | _ACEOF | |
25115 | ||
25116 | ||
25117 | ||
25118 | cat - <<_ACEOF >conftest.h | |
25119 | ||
25120 | _ACEOF | |
25121 | ||
25122 | ||
25123 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25124 | echo "obj-m := conftest.o" >build/Makefile | |
25125 | modpost_flag='' | |
25126 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25127 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25128 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25129 | (eval $ac_try) 2>&5 | |
25130 | ac_status=$? | |
25131 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25132 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25133 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25134 | (eval $ac_try) 2>&5 | |
25135 | ac_status=$? | |
25136 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25137 | test $ac_status = 0; }; }; then : | |
25138 | ||
25139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25140 | $as_echo "yes" >&6; } | |
25141 | ||
df9d7621 CIK |
25142 | $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h |
25143 | ||
25144 | ||
25145 | else | |
25146 | $as_echo "$as_me: failed program was:" >&5 | |
25147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25148 | ||
25149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25150 | $as_echo "no" >&6; } | |
25151 | ||
25152 | ||
25153 | ||
25154 | fi | |
25155 | rm -Rf build | |
25156 | ||
25157 | ||
25158 | ||
25159 | ||
25160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5 | |
25161 | $as_echo_n "checking whether generic_setxattr() exists... " >&6; } | |
25162 | ||
25163 | ||
25164 | cat confdefs.h - <<_ACEOF >conftest.c | |
25165 | ||
25166 | ||
25167 | #include <linux/fs.h> | |
25168 | #include <linux/xattr.h> | |
25169 | ||
25170 | static const struct inode_operations | |
25171 | iops __attribute__ ((unused)) = { | |
25172 | .setxattr = generic_setxattr | |
25173 | }; | |
25174 | ||
25175 | int | |
25176 | main (void) | |
25177 | { | |
25178 | ||
25179 | ||
25180 | ; | |
25181 | return 0; | |
25182 | } | |
25183 | ||
25184 | _ACEOF | |
25185 | ||
25186 | ||
25187 | ||
25188 | cat - <<_ACEOF >conftest.h | |
25189 | ||
25190 | _ACEOF | |
25191 | ||
25192 | ||
25193 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25194 | echo "obj-m := conftest.o" >build/Makefile | |
25195 | modpost_flag='' | |
25196 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25197 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25198 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25199 | (eval $ac_try) 2>&5 | |
25200 | ac_status=$? | |
25201 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25202 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25203 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25204 | (eval $ac_try) 2>&5 | |
25205 | ac_status=$? | |
25206 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25207 | test $ac_status = 0; }; }; then : | |
25208 | ||
25209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25210 | $as_echo "yes" >&6; } | |
25211 | ||
25212 | $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h | |
87d546d8 TG |
25213 | |
25214 | ||
25215 | else | |
25216 | $as_echo "$as_me: failed program was:" >&5 | |
25217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25218 | ||
25219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25220 | $as_echo "no" >&6; } | |
25221 | ||
25222 | ||
25223 | ||
25224 | fi | |
25225 | rm -Rf build | |
25226 | ||
25227 | ||
25228 | ||
df9d7621 CIK |
25229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5 |
25230 | $as_echo_n "checking whether current_time() exists... " >&6; } | |
87d546d8 | 25231 | |
87d546d8 TG |
25232 | |
25233 | ||
25234 | cat confdefs.h - <<_ACEOF >conftest.c | |
25235 | ||
25236 | ||
25237 | #include <linux/fs.h> | |
87d546d8 TG |
25238 | |
25239 | int | |
25240 | main (void) | |
25241 | { | |
25242 | ||
df9d7621 CIK |
25243 | struct inode ip; |
25244 | struct timespec now __attribute__ ((unused)); | |
25245 | ||
25246 | now = current_time(&ip); | |
87d546d8 TG |
25247 | |
25248 | ; | |
25249 | return 0; | |
25250 | } | |
25251 | ||
25252 | _ACEOF | |
25253 | ||
25254 | ||
25255 | ||
25256 | cat - <<_ACEOF >conftest.h | |
25257 | ||
25258 | _ACEOF | |
25259 | ||
25260 | ||
25261 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25262 | echo "obj-m := conftest.o" >build/Makefile | |
25263 | modpost_flag='' | |
25264 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25265 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25266 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25267 | (eval $ac_try) 2>&5 | |
25268 | ac_status=$? | |
25269 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25270 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25271 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25272 | (eval $ac_try) 2>&5 | |
25273 | ac_status=$? | |
25274 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25275 | test $ac_status = 0; }; }; then : | |
df9d7621 CIK |
25276 | rc=0 |
25277 | else | |
25278 | $as_echo "$as_me: failed program was:" >&5 | |
25279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25280 | rc=1 | |
87d546d8 | 25281 | |
87d546d8 | 25282 | |
df9d7621 CIK |
25283 | fi |
25284 | rm -Rf build | |
87d546d8 TG |
25285 | |
25286 | ||
df9d7621 CIK |
25287 | if test $rc -ne 0; then : |
25288 | ||
25289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25290 | $as_echo "no" >&6; } | |
25291 | ||
25292 | else | |
25293 | if test "x$enable_linux_builtin" != xyes; then | |
25294 | ||
25295 | grep -q -E '[[:space:]]current_time[[:space:]]' \ | |
25296 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
25297 | rc=$? | |
25298 | if test $rc -ne 0; then | |
25299 | export=0 | |
25300 | for file in fs/inode.c; do | |
25301 | grep -q -E "EXPORT_SYMBOL.*(current_time)" \ | |
25302 | "$LINUX/$file" 2>/dev/null | |
25303 | rc=$? | |
25304 | if test $rc -eq 0; then | |
25305 | export=1 | |
25306 | break; | |
25307 | fi | |
25308 | done | |
25309 | if test $export -eq 0; then : | |
25310 | rc=1 | |
25311 | else : | |
25312 | rc=0 | |
25313 | fi | |
25314 | else : | |
25315 | rc=0 | |
25316 | fi | |
25317 | ||
25318 | fi | |
25319 | if test $rc -ne 0; then : | |
87d546d8 TG |
25320 | |
25321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25322 | $as_echo "no" >&6; } | |
25323 | ||
df9d7621 | 25324 | else : |
87d546d8 | 25325 | |
df9d7621 CIK |
25326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
25327 | $as_echo "yes" >&6; } | |
25328 | ||
25329 | $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h | |
87d546d8 | 25330 | |
87d546d8 | 25331 | |
df9d7621 CIK |
25332 | fi |
25333 | fi | |
87d546d8 TG |
25334 | |
25335 | ||
25336 | ||
25337 | if test "$LINUX_OBJ" != "$LINUX"; then : | |
25338 | ||
25339 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
25340 | ||
25341 | fi | |
25342 | ||
25343 | ||
25344 | ||
25345 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE" | |
25346 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE" | |
25347 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL" | |
25348 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\"" | |
25349 | ||
25350 | ||
25351 | ;; | |
25352 | all) | |
25353 | ||
25354 | ||
25355 | # Check whether --with-linux was given. | |
25356 | if test "${with_linux+set}" = set; then : | |
25357 | withval=$with_linux; kernelsrc="$withval" | |
25358 | fi | |
25359 | ||
25360 | ||
25361 | ||
25362 | # Check whether --with-linux-obj was given. | |
25363 | if test "${with_linux_obj+set}" = set; then : | |
25364 | withval=$with_linux_obj; kernelbuild="$withval" | |
25365 | fi | |
25366 | ||
25367 | ||
25368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5 | |
25369 | $as_echo_n "checking kernel source directory... " >&6; } | |
25370 | if test -z "$kernelsrc"; then : | |
25371 | ||
25372 | if test -e "/lib/modules/$(uname -r)/source"; then : | |
25373 | ||
25374 | headersdir="/lib/modules/$(uname -r)/source" | |
25375 | sourcelink=$(readlink -f "$headersdir") | |
25376 | ||
25377 | elif test -e "/lib/modules/$(uname -r)/build"; then : | |
25378 | ||
25379 | headersdir="/lib/modules/$(uname -r)/build" | |
25380 | sourcelink=$(readlink -f "$headersdir") | |
25381 | ||
25382 | else | |
25383 | ||
25384 | sourcelink=$(ls -1d /usr/src/kernels/* \ | |
25385 | /usr/src/linux-* \ | |
25386 | 2>/dev/null | grep -v obj | tail -1) | |
25387 | ||
25388 | fi | |
25389 | ||
25390 | if test -n "$sourcelink" && test -e ${sourcelink}; then : | |
25391 | ||
25392 | kernelsrc=`readlink -f ${sourcelink}` | |
25393 | ||
25394 | else | |
25395 | ||
25396 | kernelsrc="Not found" | |
25397 | ||
25398 | fi | |
25399 | ||
25400 | else | |
25401 | ||
25402 | if test "$kernelsrc" = "NONE"; then : | |
25403 | ||
25404 | kernsrcver=NONE | |
25405 | ||
25406 | fi | |
25407 | ||
25408 | fi | |
25409 | ||
25410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5 | |
25411 | $as_echo "$kernelsrc" >&6; } | |
25412 | if test ! -d "$kernelsrc"; then : | |
25413 | ||
25414 | as_fn_error $? " | |
25415 | *** Please make sure the kernel devel package for your distribution | |
25416 | *** is installed and then try again. If that fails, you can specify the | |
25417 | *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5 | |
25418 | ||
25419 | fi | |
25420 | ||
25421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5 | |
25422 | $as_echo_n "checking kernel build directory... " >&6; } | |
25423 | if test -z "$kernelbuild"; then : | |
25424 | ||
25425 | if test -e "/lib/modules/$(uname -r)/build"; then : | |
25426 | ||
25427 | kernelbuild=`readlink -f /lib/modules/$(uname -r)/build` | |
25428 | ||
25429 | elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then : | |
25430 | ||
25431 | kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu} | |
25432 | ||
25433 | elif test -d ${kernelsrc}-obj/${target_cpu}/default; then : | |
25434 | ||
25435 | kernelbuild=${kernelsrc}-obj/${target_cpu}/default | |
25436 | ||
25437 | elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then : | |
25438 | ||
25439 | kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu} | |
25440 | ||
25441 | else | |
25442 | ||
25443 | kernelbuild=${kernelsrc} | |
25444 | ||
25445 | fi | |
25446 | ||
25447 | fi | |
25448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5 | |
25449 | $as_echo "$kernelbuild" >&6; } | |
25450 | ||
25451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5 | |
25452 | $as_echo_n "checking kernel source version... " >&6; } | |
25453 | utsrelease1=$kernelbuild/include/linux/version.h | |
25454 | utsrelease2=$kernelbuild/include/linux/utsrelease.h | |
25455 | utsrelease3=$kernelbuild/include/generated/utsrelease.h | |
25456 | if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then : | |
25457 | ||
25458 | utsrelease=linux/version.h | |
25459 | ||
25460 | elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then : | |
25461 | ||
25462 | utsrelease=linux/utsrelease.h | |
25463 | ||
25464 | elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then : | |
25465 | ||
25466 | utsrelease=generated/utsrelease.h | |
25467 | ||
25468 | fi | |
25469 | ||
25470 | if test "$utsrelease"; then : | |
25471 | ||
25472 | kernsrcver=`(echo "#include <$utsrelease>"; | |
25473 | echo "kernsrcver=UTS_RELEASE") | | |
25474 | cpp -I $kernelbuild/include | | |
25475 | grep "^kernsrcver=" | cut -d \" -f 2` | |
25476 | ||
25477 | if test -z "$kernsrcver"; then : | |
25478 | ||
25479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
25480 | $as_echo "Not found" >&6; } | |
25481 | as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5 | |
25482 | ||
25483 | fi | |
25484 | ||
25485 | else | |
25486 | ||
25487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
25488 | $as_echo "Not found" >&6; } | |
25489 | if test "x$enable_linux_builtin" != xyes; then | |
25490 | as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5 | |
25491 | else | |
25492 | as_fn_error $? " | |
25493 | *** Cannot find UTS_RELEASE definition. | |
25494 | *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5 | |
25495 | fi | |
25496 | ||
25497 | fi | |
25498 | ||
25499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5 | |
25500 | $as_echo "$kernsrcver" >&6; } | |
25501 | ||
25502 | LINUX=${kernelsrc} | |
25503 | LINUX_OBJ=${kernelbuild} | |
25504 | LINUX_VERSION=${kernsrcver} | |
25505 | ||
25506 | ||
25507 | ||
25508 | ||
25509 | ||
25510 | ||
25511 | modpost=$LINUX/scripts/Makefile.modpost | |
25512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5 | |
25513 | $as_echo_n "checking kernel file name for module symbols... " >&6; } | |
25514 | if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then : | |
25515 | ||
25516 | if grep -q Modules.symvers $modpost; then : | |
25517 | ||
25518 | LINUX_SYMBOLS=Modules.symvers | |
25519 | ||
25520 | else | |
25521 | ||
25522 | LINUX_SYMBOLS=Module.symvers | |
25523 | ||
25524 | fi | |
25525 | ||
25526 | if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then : | |
25527 | ||
25528 | as_fn_error $? " | |
25529 | *** Please make sure the kernel devel package for your distribution | |
25530 | *** is installed. If you are building with a custom kernel, make sure the | |
25531 | *** kernel is configured, built, and the '--with-linux=PATH' configure | |
25532 | *** option refers to the location of the kernel source." "$LINENO" 5 | |
25533 | ||
25534 | fi | |
25535 | ||
25536 | else | |
25537 | ||
25538 | LINUX_SYMBOLS=NONE | |
25539 | ||
25540 | fi | |
25541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5 | |
25542 | $as_echo "$LINUX_SYMBOLS" >&6; } | |
25543 | ||
25544 | ||
25545 | ||
25546 | ||
25547 | ||
25548 | # Check whether --with-spl was given. | |
25549 | if test "${with_spl+set}" = set; then : | |
25550 | withval=$with_spl; splsrc="$withval" | |
25551 | fi | |
25552 | ||
25553 | ||
25554 | ||
25555 | # Check whether --with-spl-obj was given. | |
25556 | if test "${with_spl_obj+set}" = set; then : | |
25557 | withval=$with_spl_obj; splbuild="$withval" | |
25558 | fi | |
25559 | ||
25560 | ||
25561 | ||
25562 | # Check whether --with-spl-timeout was given. | |
25563 | if test "${with_spl_timeout+set}" = set; then : | |
25564 | withval=$with_spl_timeout; timeout="$withval" | |
25565 | else | |
25566 | timeout=0 | |
25567 | fi | |
25568 | ||
25569 | ||
25570 | splsrc0="/var/lib/dkms/spl/${VERSION}/build" | |
25571 | splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}" | |
25572 | splsrc2="/usr/local/src/spl-${VERSION}" | |
25573 | splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}" | |
25574 | splsrc4="/usr/src/spl-${VERSION}" | |
25575 | splsrc5="../spl/" | |
25576 | splsrc6="$LINUX" | |
25577 | ||
25578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5 | |
25579 | $as_echo_n "checking spl source directory... " >&6; } | |
25580 | if test -z "${splsrc}"; then : | |
25581 | ||
25582 | if test -e "${splsrc0}/spl.release.in"; then : | |
25583 | ||
25584 | splsrc=${splsrc0} | |
25585 | ||
25586 | elif test -e "${splsrc1}/spl.release.in"; then : | |
25587 | ||
25588 | splsrc=${splsrc1} | |
25589 | ||
25590 | elif test -e "${splsrc2}/spl.release.in"; then : | |
25591 | ||
25592 | splsrc=${splsrc2} | |
25593 | ||
25594 | elif test -e "${splsrc3}/spl.release.in"; then : | |
25595 | ||
25596 | splsrc=$(readlink -f "${splsrc3}") | |
25597 | ||
25598 | elif test -e "${splsrc4}/spl.release.in" ; then : | |
25599 | ||
25600 | splsrc=${splsrc4} | |
25601 | ||
25602 | elif test -e "${splsrc5}/spl.release.in"; then : | |
25603 | ||
25604 | splsrc=$(readlink -f "${splsrc5}") | |
25605 | ||
25606 | elif test -e "${splsrc6}/spl.release.in" ; then : | |
25607 | ||
25608 | splsrc=${splsrc6} | |
25609 | ||
25610 | else | |
25611 | ||
25612 | splsrc="Not found" | |
25613 | ||
25614 | fi | |
25615 | ||
25616 | else | |
25617 | ||
25618 | if test "$splsrc" = "NONE"; then : | |
25619 | ||
25620 | splbuild=NONE | |
25621 | splsrcver=NONE | |
25622 | ||
25623 | fi | |
25624 | ||
25625 | fi | |
25626 | ||
25627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5 | |
25628 | $as_echo "$splsrc" >&6; } | |
25629 | if test ! -e "$splsrc/spl.release.in"; then : | |
25630 | ||
25631 | as_fn_error $? " | |
25632 | *** Please make sure the kmod spl devel package for your distribution | |
25633 | *** is installed then try again. If that fails you can specify the | |
25634 | *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5 | |
25635 | ||
25636 | fi | |
25637 | ||
25638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5 | |
25639 | $as_echo_n "checking spl build directory... " >&6; } | |
25640 | while true; do | |
25641 | if test -z "$splbuild"; then : | |
25642 | ||
25643 | if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then : | |
25644 | ||
25645 | splbuild="${splsrc}/${LINUX_VERSION}" | |
25646 | ||
25647 | elif test -e "${splsrc}/spl_config.h" ; then : | |
25648 | ||
25649 | splbuild="${splsrc}" | |
25650 | ||
25651 | elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then : | |
25652 | ||
25653 | splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,') | |
25654 | ||
25655 | else | |
25656 | ||
25657 | splbuild="Not found" | |
25658 | ||
25659 | fi | |
25660 | ||
25661 | fi | |
25662 | if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then : | |
25663 | ||
25664 | break; | |
25665 | ||
25666 | else | |
25667 | ||
25668 | sleep 1 | |
25669 | timeout=$((timeout-1)) | |
25670 | ||
25671 | fi | |
25672 | done | |
25673 | ||
25674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5 | |
25675 | $as_echo "$splbuild" >&6; } | |
25676 | if ! test -e "$splbuild/spl_config.h"; then : | |
25677 | ||
25678 | as_fn_error $? " | |
25679 | *** Please make sure the kmod spl devel <kernel> package for your | |
25680 | *** distribution is installed then try again. If that fails you | |
25681 | *** can specify the location of the spl objects with the | |
25682 | *** '--with-spl-obj=PATH' option." "$LINENO" 5 | |
25683 | ||
25684 | fi | |
25685 | ||
25686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5 | |
25687 | $as_echo_n "checking spl source version... " >&6; } | |
25688 | if test -r $splbuild/spl_config.h && | |
25689 | fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then : | |
25690 | ||
25691 | ||
25692 | splsrcver=`(echo "#include <spl_config.h>"; | |
25693 | echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") | | |
25694 | cpp -I $splbuild | | |
25695 | grep "^splsrcver=" | tr -d \" | cut -d= -f2` | |
25696 | ||
25697 | fi | |
25698 | ||
25699 | if test -z "$splsrcver"; then : | |
25700 | ||
25701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
25702 | $as_echo "Not found" >&6; } | |
25703 | as_fn_error $? " | |
25704 | *** Cannot determine the version of the spl source. | |
25705 | *** Please prepare the spl source before running this script" "$LINENO" 5 | |
25706 | ||
25707 | fi | |
25708 | ||
25709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5 | |
25710 | $as_echo "$splsrcver" >&6; } | |
25711 | ||
25712 | SPL=${splsrc} | |
25713 | SPL_OBJ=${splbuild} | |
25714 | SPL_VERSION=${splsrcver} | |
25715 | ||
25716 | ||
25717 | ||
25718 | ||
25719 | ||
25720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5 | |
25721 | $as_echo_n "checking spl file name for module symbols... " >&6; } | |
25722 | SPL_SYMBOLS=NONE | |
25723 | ||
25724 | while true; do | |
25725 | if test -r $SPL_OBJ/Module.symvers; then : | |
25726 | ||
25727 | SPL_SYMBOLS=Module.symvers | |
25728 | ||
25729 | elif test -r $SPL_OBJ/Modules.symvers; then : | |
25730 | ||
25731 | SPL_SYMBOLS=Modules.symvers | |
25732 | ||
25733 | elif test -r $SPL_OBJ/module/Module.symvers; then : | |
25734 | ||
25735 | SPL_SYMBOLS=Module.symvers | |
25736 | ||
25737 | elif test -r $SPL_OBJ/module/Modules.symvers; then : | |
25738 | ||
25739 | SPL_SYMBOLS=Modules.symvers | |
25740 | ||
25741 | fi | |
25742 | ||
25743 | if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then : | |
25744 | ||
25745 | break; | |
25746 | ||
25747 | else | |
25748 | ||
25749 | sleep 1 | |
25750 | timeout=$((timeout-1)) | |
25751 | ||
25752 | fi | |
25753 | done | |
25754 | ||
25755 | if test "$SPL_SYMBOLS" = NONE; then : | |
25756 | ||
25757 | SPL_SYMBOLS=$LINUX_SYMBOLS | |
25758 | ||
25759 | fi | |
25760 | ||
25761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5 | |
25762 | $as_echo "$SPL_SYMBOLS" >&6; } | |
25763 | ||
25764 | ||
25765 | ||
25766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5 | |
25767 | $as_echo_n "checking whether modules can be built... " >&6; } | |
25768 | ||
25769 | ||
25770 | cat confdefs.h - <<_ACEOF >conftest.c | |
25771 | ||
25772 | ||
25773 | int | |
25774 | main (void) | |
25775 | { | |
25776 | ||
25777 | ; | |
25778 | return 0; | |
25779 | } | |
25780 | ||
25781 | _ACEOF | |
25782 | ||
25783 | ||
25784 | ||
25785 | cat - <<_ACEOF >conftest.h | |
25786 | ||
25787 | _ACEOF | |
25788 | ||
25789 | ||
25790 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25791 | echo "obj-m := conftest.o" >build/Makefile | |
25792 | modpost_flag='' | |
25793 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25794 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25795 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25796 | (eval $ac_try) 2>&5 | |
25797 | ac_status=$? | |
25798 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25799 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25800 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25801 | (eval $ac_try) 2>&5 | |
25802 | ac_status=$? | |
25803 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25804 | test $ac_status = 0; }; }; then : | |
25805 | ||
25806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25807 | $as_echo "yes" >&6; } | |
25808 | ||
25809 | else | |
25810 | $as_echo "$as_me: failed program was:" >&5 | |
25811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25812 | ||
25813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25814 | $as_echo "no" >&6; } | |
25815 | if test "x$enable_linux_builtin" != xyes; then | |
25816 | as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5 | |
25817 | else | |
25818 | as_fn_error $? " | |
25819 | *** Unable to build an empty module. | |
25820 | *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5 | |
25821 | fi | |
25822 | ||
25823 | ||
25824 | ||
25825 | fi | |
25826 | rm -Rf build | |
25827 | ||
25828 | ||
25829 | ||
25830 | ||
25831 | if test "x$cross_compiling" != xyes; then : | |
25832 | ||
25833 | if test "$cross_compiling" = yes; then : | |
25834 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
25835 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
25836 | as_fn_error $? "cannot run test program while cross compiling | |
25837 | See \`config.log' for more details" "$LINENO" 5; } | |
25838 | else | |
25839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25840 | /* end confdefs.h. */ | |
25841 | ||
25842 | ||
25843 | #include "$LINUX/include/linux/license.h" | |
25844 | ||
25845 | int | |
25846 | main () | |
25847 | { | |
25848 | ||
25849 | return !license_is_gpl_compatible("$ZFS_META_LICENSE"); | |
25850 | ||
25851 | ; | |
25852 | return 0; | |
25853 | } | |
25854 | ||
25855 | _ACEOF | |
25856 | if ac_fn_c_try_run "$LINENO"; then : | |
25857 | ||
25858 | ||
25859 | $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h | |
25860 | ||
25861 | ||
25862 | fi | |
25863 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
25864 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
25865 | fi | |
25866 | ||
25867 | ||
25868 | fi | |
25869 | ||
25870 | ||
25871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5 | |
25872 | $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; } | |
25873 | ||
25874 | ||
25875 | cat confdefs.h - <<_ACEOF >conftest.c | |
25876 | ||
25877 | ||
25878 | #include <linux/module.h> | |
25879 | ||
25880 | int | |
25881 | main (void) | |
25882 | { | |
25883 | ||
25884 | #if (THREAD_SIZE < 16384) | |
25885 | #error "THREAD_SIZE is less than 16K" | |
25886 | #endif | |
25887 | ||
25888 | ; | |
25889 | return 0; | |
25890 | } | |
25891 | ||
25892 | _ACEOF | |
25893 | ||
25894 | ||
25895 | ||
25896 | cat - <<_ACEOF >conftest.h | |
25897 | ||
25898 | _ACEOF | |
25899 | ||
25900 | ||
25901 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25902 | echo "obj-m := conftest.o" >build/Makefile | |
25903 | modpost_flag='' | |
25904 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25905 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25906 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25907 | (eval $ac_try) 2>&5 | |
25908 | ac_status=$? | |
25909 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25910 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25911 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25912 | (eval $ac_try) 2>&5 | |
25913 | ac_status=$? | |
25914 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25915 | test $ac_status = 0; }; }; then : | |
25916 | ||
25917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25918 | $as_echo "yes" >&6; } | |
25919 | ||
25920 | $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h | |
25921 | ||
25922 | ||
25923 | else | |
25924 | $as_echo "$as_me: failed program was:" >&5 | |
25925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25926 | ||
25927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25928 | $as_echo "no" >&6; } | |
25929 | ||
25930 | ||
25931 | ||
25932 | fi | |
25933 | rm -Rf build | |
25934 | ||
25935 | ||
25936 | ||
25937 | ||
25938 | ||
25939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5 | |
25940 | $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; } | |
25941 | ||
25942 | ||
25943 | cat confdefs.h - <<_ACEOF >conftest.c | |
25944 | ||
25945 | ||
25946 | #include <linux/module.h> | |
25947 | ||
25948 | int | |
25949 | main (void) | |
25950 | { | |
25951 | ||
25952 | #ifndef CONFIG_DEBUG_LOCK_ALLOC | |
25953 | #error CONFIG_DEBUG_LOCK_ALLOC not #defined | |
25954 | #endif | |
25955 | ||
25956 | ; | |
25957 | return 0; | |
25958 | } | |
25959 | ||
25960 | _ACEOF | |
25961 | ||
25962 | ||
25963 | ||
25964 | cat - <<_ACEOF >conftest.h | |
25965 | ||
25966 | _ACEOF | |
25967 | ||
25968 | ||
25969 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25970 | echo "obj-m := conftest.o" >build/Makefile | |
25971 | modpost_flag='' | |
25972 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25973 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25974 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25975 | (eval $ac_try) 2>&5 | |
25976 | ac_status=$? | |
25977 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25978 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25979 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25980 | (eval $ac_try) 2>&5 | |
25981 | ac_status=$? | |
25982 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25983 | test $ac_status = 0; }; }; then : | |
25984 | ||
25985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25986 | $as_echo "yes" >&6; } | |
25987 | ||
25988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5 | |
25989 | $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; } | |
25990 | tmp_flags="$EXTRA_KCFLAGS" | |
25991 | ||
25992 | ||
25993 | cat confdefs.h - <<_ACEOF >conftest.c | |
25994 | ||
25995 | ||
25996 | #include <linux/module.h> | |
25997 | #include <linux/mutex.h> | |
25998 | ||
25999 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
26000 | ||
26001 | int | |
26002 | main (void) | |
26003 | { | |
26004 | ||
26005 | struct mutex lock; | |
26006 | ||
26007 | mutex_init(&lock); | |
26008 | mutex_lock(&lock); | |
26009 | mutex_unlock(&lock); | |
26010 | ||
26011 | ; | |
26012 | return 0; | |
26013 | } | |
26014 | ||
26015 | _ACEOF | |
26016 | ||
26017 | ||
26018 | ||
26019 | cat - <<_ACEOF >conftest.h | |
26020 | ||
26021 | _ACEOF | |
26022 | ||
26023 | ||
26024 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26025 | echo "obj-m := conftest.o" >build/Makefile | |
26026 | modpost_flag='' | |
26027 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26028 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26029 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26030 | (eval $ac_try) 2>&5 | |
26031 | ac_status=$? | |
26032 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26033 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26034 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26035 | (eval $ac_try) 2>&5 | |
26036 | ac_status=$? | |
26037 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26038 | test $ac_status = 0; }; }; then : | |
26039 | ||
26040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26041 | $as_echo "no" >&6; } | |
26042 | ||
26043 | else | |
26044 | $as_echo "$as_me: failed program was:" >&5 | |
26045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26046 | ||
26047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26048 | $as_echo "yes" >&6; } | |
26049 | as_fn_error $? " | |
26050 | *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible | |
26051 | *** with the CDDL license and will prevent the module linking stage | |
26052 | *** from succeeding. You must rebuild your kernel without this | |
26053 | *** option enabled." "$LINENO" 5 | |
26054 | ||
26055 | ||
26056 | ||
26057 | fi | |
26058 | rm -Rf build | |
26059 | ||
26060 | ||
26061 | EXTRA_KCFLAGS="$tmp_flags" | |
26062 | ||
26063 | ||
26064 | else | |
26065 | $as_echo "$as_me: failed program was:" >&5 | |
26066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26067 | ||
26068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26069 | $as_echo "no" >&6; } | |
26070 | ||
26071 | ||
26072 | ||
26073 | ||
26074 | fi | |
26075 | rm -Rf build | |
26076 | ||
26077 | ||
26078 | ||
26079 | ||
26080 | ||
26081 | ||
26082 | tmp_flags="$EXTRA_KCFLAGS" | |
26083 | EXTRA_KCFLAGS="-I\$(src)" | |
26084 | ||
26085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5 | |
26086 | $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; } | |
26087 | ||
26088 | ||
26089 | cat confdefs.h - <<_ACEOF >conftest.c | |
26090 | ||
26091 | ||
26092 | #include <linux/module.h> | |
26093 | MODULE_LICENSE(ZFS_META_LICENSE); | |
26094 | ||
26095 | #define CREATE_TRACE_POINTS | |
26096 | #include "conftest.h" | |
26097 | ||
26098 | int | |
26099 | main (void) | |
26100 | { | |
26101 | ||
26102 | trace_zfs_autoconf_event_one(1UL); | |
26103 | trace_zfs_autoconf_event_two(2UL); | |
26104 | ||
26105 | ; | |
26106 | return 0; | |
26107 | } | |
26108 | ||
26109 | _ACEOF | |
26110 | ||
26111 | ||
26112 | ||
26113 | cat - <<_ACEOF >conftest.h | |
26114 | ||
26115 | #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ) | |
26116 | #define _CONFTEST_H | |
26117 | ||
26118 | #undef TRACE_SYSTEM | |
26119 | #define TRACE_SYSTEM zfs | |
26120 | #include <linux/tracepoint.h> | |
26121 | ||
26122 | DECLARE_EVENT_CLASS(zfs_autoconf_event_class, | |
26123 | TP_PROTO(unsigned long i), | |
26124 | TP_ARGS(i), | |
26125 | TP_STRUCT__entry( | |
26126 | __field(unsigned long, i) | |
26127 | ), | |
26128 | TP_fast_assign( | |
26129 | __entry->i = i; | |
26130 | ), | |
26131 | TP_printk("i = %lu", __entry->i) | |
26132 | ); | |
26133 | ||
26134 | #define DEFINE_AUTOCONF_EVENT(name) \ | |
26135 | DEFINE_EVENT(zfs_autoconf_event_class, name, \ | |
26136 | TP_PROTO(unsigned long i), \ | |
26137 | TP_ARGS(i)) | |
26138 | DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one); | |
26139 | DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two); | |
26140 | ||
26141 | #endif /* _CONFTEST_H */ | |
26142 | ||
26143 | #undef TRACE_INCLUDE_PATH | |
26144 | #define TRACE_INCLUDE_PATH . | |
26145 | #define TRACE_INCLUDE_FILE conftest | |
26146 | #include <trace/define_trace.h> | |
26147 | ||
26148 | _ACEOF | |
26149 | ||
26150 | ||
26151 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26152 | echo "obj-m := conftest.o" >build/Makefile | |
26153 | modpost_flag='' | |
26154 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26155 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26156 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26157 | (eval $ac_try) 2>&5 | |
26158 | ac_status=$? | |
26159 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26160 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26161 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26162 | (eval $ac_try) 2>&5 | |
26163 | ac_status=$? | |
26164 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26165 | test $ac_status = 0; }; }; then : | |
26166 | ||
26167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26168 | $as_echo "yes" >&6; } | |
26169 | ||
26170 | $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h | |
26171 | ||
26172 | ||
26173 | else | |
26174 | $as_echo "$as_me: failed program was:" >&5 | |
26175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26176 | ||
26177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26178 | $as_echo "no" >&6; } | |
26179 | ||
26180 | ||
26181 | ||
26182 | fi | |
26183 | rm -Rf build | |
26184 | ||
26185 | ||
26186 | EXTRA_KCFLAGS="$tmp_flags" | |
26187 | ||
26188 | ||
26189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5 | |
26190 | $as_echo_n "checking whether current->bio_tail exists... " >&6; } | |
26191 | ||
26192 | ||
26193 | cat confdefs.h - <<_ACEOF >conftest.c | |
26194 | ||
26195 | ||
26196 | #include <linux/sched.h> | |
26197 | ||
26198 | int | |
26199 | main (void) | |
26200 | { | |
26201 | ||
26202 | current->bio_tail = (struct bio **) NULL; | |
26203 | ||
26204 | ; | |
26205 | return 0; | |
26206 | } | |
26207 | ||
26208 | _ACEOF | |
26209 | ||
26210 | ||
26211 | ||
26212 | cat - <<_ACEOF >conftest.h | |
26213 | ||
26214 | _ACEOF | |
26215 | ||
26216 | ||
26217 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26218 | echo "obj-m := conftest.o" >build/Makefile | |
26219 | modpost_flag='' | |
26220 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26221 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26222 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26223 | (eval $ac_try) 2>&5 | |
26224 | ac_status=$? | |
26225 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26226 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26227 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26228 | (eval $ac_try) 2>&5 | |
26229 | ac_status=$? | |
26230 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26231 | test $ac_status = 0; }; }; then : | |
26232 | ||
26233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26234 | $as_echo "yes" >&6; } | |
26235 | ||
26236 | $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h | |
26237 | ||
26238 | ||
26239 | else | |
26240 | $as_echo "$as_me: failed program was:" >&5 | |
26241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26242 | ||
26243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26244 | $as_echo "no" >&6; } | |
26245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5 | |
26246 | $as_echo_n "checking whether current->bio_list exists... " >&6; } | |
26247 | ||
26248 | ||
26249 | cat confdefs.h - <<_ACEOF >conftest.c | |
26250 | ||
26251 | ||
26252 | #include <linux/sched.h> | |
26253 | ||
26254 | int | |
26255 | main (void) | |
26256 | { | |
26257 | ||
26258 | current->bio_list = (struct bio_list *) NULL; | |
26259 | ||
26260 | ; | |
26261 | return 0; | |
26262 | } | |
26263 | ||
26264 | _ACEOF | |
26265 | ||
26266 | ||
26267 | ||
26268 | cat - <<_ACEOF >conftest.h | |
26269 | ||
26270 | _ACEOF | |
26271 | ||
26272 | ||
26273 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26274 | echo "obj-m := conftest.o" >build/Makefile | |
26275 | modpost_flag='' | |
26276 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26277 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26278 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26279 | (eval $ac_try) 2>&5 | |
26280 | ac_status=$? | |
26281 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26282 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26283 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26284 | (eval $ac_try) 2>&5 | |
26285 | ac_status=$? | |
26286 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26287 | test $ac_status = 0; }; }; then : | |
26288 | ||
26289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26290 | $as_echo "yes" >&6; } | |
26291 | ||
26292 | $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h | |
26293 | ||
26294 | ||
26295 | else | |
26296 | $as_echo "$as_me: failed program was:" >&5 | |
26297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26298 | ||
26299 | as_fn_error $? "no - Please file a bug report at | |
26300 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
26301 | ||
26302 | ||
26303 | ||
26304 | fi | |
26305 | rm -Rf build | |
26306 | ||
26307 | ||
26308 | ||
26309 | ||
26310 | ||
26311 | fi | |
26312 | rm -Rf build | |
26313 | ||
26314 | ||
26315 | ||
26316 | ||
26317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5 | |
26318 | $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; } | |
26319 | ||
26320 | ||
26321 | cat confdefs.h - <<_ACEOF >conftest.c | |
26322 | ||
26323 | ||
26324 | #include <linux/bio.h> | |
26325 | ||
26326 | int | |
26327 | main (void) | |
26328 | { | |
26329 | ||
26330 | blk_qc_t blk_qc; | |
26331 | struct bio *bio = NULL; | |
26332 | blk_qc = submit_bio(bio); | |
26333 | ||
26334 | ; | |
26335 | return 0; | |
26336 | } | |
26337 | ||
26338 | _ACEOF | |
26339 | ||
26340 | ||
26341 | ||
26342 | cat - <<_ACEOF >conftest.h | |
26343 | ||
26344 | _ACEOF | |
26345 | ||
26346 | ||
26347 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26348 | echo "obj-m := conftest.o" >build/Makefile | |
26349 | modpost_flag='' | |
26350 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26351 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26352 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26353 | (eval $ac_try) 2>&5 | |
26354 | ac_status=$? | |
26355 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26356 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26357 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26358 | (eval $ac_try) 2>&5 | |
26359 | ac_status=$? | |
26360 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26361 | test $ac_status = 0; }; }; then : | |
26362 | ||
26363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26364 | $as_echo "yes" >&6; } | |
26365 | ||
26366 | $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h | |
26367 | ||
26368 | ||
26369 | else | |
26370 | $as_echo "$as_me: failed program was:" >&5 | |
26371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26372 | ||
26373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26374 | $as_echo "no" >&6; } | |
26375 | ||
26376 | ||
26377 | ||
26378 | fi | |
26379 | rm -Rf build | |
26380 | ||
26381 | ||
26382 | ||
26383 | ||
26384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5 | |
26385 | $as_echo_n "checking block device operation prototypes... " >&6; } | |
26386 | tmp_flags="$EXTRA_KCFLAGS" | |
26387 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
26388 | ||
26389 | ||
26390 | cat confdefs.h - <<_ACEOF >conftest.c | |
26391 | ||
26392 | ||
26393 | #include <linux/blkdev.h> | |
26394 | ||
26395 | int blk_open(struct block_device *bdev, fmode_t mode) | |
26396 | { return 0; } | |
26397 | int blk_ioctl(struct block_device *bdev, fmode_t mode, | |
26398 | unsigned x, unsigned long y) { return 0; } | |
26399 | int blk_compat_ioctl(struct block_device * bdev, fmode_t mode, | |
26400 | unsigned x, unsigned long y) { return 0; } | |
26401 | ||
26402 | static const struct block_device_operations | |
26403 | bops __attribute__ ((unused)) = { | |
26404 | .open = blk_open, | |
26405 | .release = NULL, | |
26406 | .ioctl = blk_ioctl, | |
26407 | .compat_ioctl = blk_compat_ioctl, | |
26408 | }; | |
26409 | ||
26410 | int | |
26411 | main (void) | |
26412 | { | |
26413 | ||
26414 | ||
26415 | ; | |
26416 | return 0; | |
26417 | } | |
26418 | ||
26419 | _ACEOF | |
26420 | ||
26421 | ||
26422 | ||
26423 | cat - <<_ACEOF >conftest.h | |
26424 | ||
26425 | _ACEOF | |
26426 | ||
26427 | ||
26428 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26429 | echo "obj-m := conftest.o" >build/Makefile | |
26430 | modpost_flag='' | |
26431 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26432 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26433 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26434 | (eval $ac_try) 2>&5 | |
26435 | ac_status=$? | |
26436 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26437 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26438 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26439 | (eval $ac_try) 2>&5 | |
26440 | ac_status=$? | |
26441 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26442 | test $ac_status = 0; }; }; then : | |
26443 | ||
26444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5 | |
26445 | $as_echo "struct block_device" >&6; } | |
26446 | ||
26447 | $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h | |
26448 | ||
26449 | ||
26450 | else | |
26451 | $as_echo "$as_me: failed program was:" >&5 | |
26452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26453 | ||
26454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5 | |
26455 | $as_echo "struct inode" >&6; } | |
26456 | ||
26457 | ||
26458 | ||
26459 | fi | |
26460 | rm -Rf build | |
26461 | ||
26462 | ||
26463 | EXTRA_KCFLAGS="$tmp_flags" | |
26464 | ||
26465 | ||
26466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5 | |
26467 | $as_echo_n "checking whether block_device_operations.release is void... " >&6; } | |
26468 | tmp_flags="$EXTRA_KCFLAGS" | |
26469 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
26470 | ||
26471 | ||
26472 | cat confdefs.h - <<_ACEOF >conftest.c | |
26473 | ||
26474 | ||
26475 | #include <linux/blkdev.h> | |
26476 | ||
26477 | void blk_release(struct gendisk *g, fmode_t mode) { return; } | |
26478 | ||
26479 | static const struct block_device_operations | |
26480 | bops __attribute__ ((unused)) = { | |
26481 | .open = NULL, | |
26482 | .release = blk_release, | |
26483 | .ioctl = NULL, | |
26484 | .compat_ioctl = NULL, | |
26485 | }; | |
26486 | ||
26487 | int | |
26488 | main (void) | |
26489 | { | |
26490 | ||
26491 | ||
26492 | ; | |
26493 | return 0; | |
26494 | } | |
26495 | ||
26496 | _ACEOF | |
26497 | ||
26498 | ||
26499 | ||
26500 | cat - <<_ACEOF >conftest.h | |
26501 | ||
26502 | _ACEOF | |
26503 | ||
26504 | ||
26505 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26506 | echo "obj-m := conftest.o" >build/Makefile | |
26507 | modpost_flag='' | |
26508 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26509 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26510 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26511 | (eval $ac_try) 2>&5 | |
26512 | ac_status=$? | |
26513 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26514 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26515 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26516 | (eval $ac_try) 2>&5 | |
26517 | ac_status=$? | |
26518 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26519 | test $ac_status = 0; }; }; then : | |
26520 | ||
26521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5 | |
26522 | $as_echo "void" >&6; } | |
26523 | ||
26524 | $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h | |
26525 | ||
26526 | ||
26527 | else | |
26528 | $as_echo "$as_me: failed program was:" >&5 | |
26529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26530 | ||
26531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 | |
26532 | $as_echo "int" >&6; } | |
26533 | ||
26534 | ||
26535 | ||
26536 | fi | |
26537 | rm -Rf build | |
26538 | ||
26539 | ||
26540 | EXTRA_KCFLAGS="$tmp_flags" | |
26541 | ||
26542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5 | |
26543 | $as_echo_n "checking whether kernel defines fmode_t... " >&6; } | |
26544 | ||
26545 | ||
26546 | cat confdefs.h - <<_ACEOF >conftest.c | |
26547 | ||
26548 | ||
26549 | #include <linux/types.h> | |
26550 | ||
26551 | int | |
26552 | main (void) | |
26553 | { | |
26554 | ||
26555 | fmode_t *ptr __attribute__ ((unused)); | |
26556 | ||
26557 | ; | |
26558 | return 0; | |
26559 | } | |
26560 | ||
26561 | _ACEOF | |
26562 | ||
26563 | ||
26564 | ||
26565 | cat - <<_ACEOF >conftest.h | |
26566 | ||
26567 | _ACEOF | |
26568 | ||
26569 | ||
26570 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26571 | echo "obj-m := conftest.o" >build/Makefile | |
26572 | modpost_flag='' | |
26573 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26574 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26575 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26576 | (eval $ac_try) 2>&5 | |
26577 | ac_status=$? | |
26578 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26579 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26580 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26581 | (eval $ac_try) 2>&5 | |
26582 | ac_status=$? | |
26583 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26584 | test $ac_status = 0; }; }; then : | |
26585 | ||
26586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26587 | $as_echo "yes" >&6; } | |
26588 | ||
26589 | $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h | |
26590 | ||
26591 | ||
26592 | else | |
26593 | $as_echo "$as_me: failed program was:" >&5 | |
26594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26595 | ||
26596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26597 | $as_echo "no" >&6; } | |
26598 | ||
26599 | ||
26600 | ||
26601 | fi | |
26602 | rm -Rf build | |
26603 | ||
26604 | ||
26605 | ||
26606 | ||
26607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5 | |
26608 | $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; } | |
26609 | ||
26610 | ||
26611 | cat confdefs.h - <<_ACEOF >conftest.c | |
26612 | ||
26613 | ||
26614 | #include <linux/kobject.h> | |
26615 | ||
26616 | int | |
26617 | main (void) | |
26618 | { | |
26619 | ||
26620 | int val __attribute__ ((unused)); | |
26621 | val = KOBJ_NAME_LEN; | |
26622 | ||
26623 | ; | |
26624 | return 0; | |
26625 | } | |
26626 | ||
26627 | _ACEOF | |
26628 | ||
26629 | ||
26630 | ||
26631 | cat - <<_ACEOF >conftest.h | |
26632 | ||
26633 | _ACEOF | |
26634 | ||
26635 | ||
26636 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26637 | echo "obj-m := conftest.o" >build/Makefile | |
26638 | modpost_flag='' | |
26639 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26640 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26641 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26642 | (eval $ac_try) 2>&5 | |
26643 | ac_status=$? | |
26644 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26645 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26646 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26647 | (eval $ac_try) 2>&5 | |
26648 | ac_status=$? | |
26649 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26650 | test $ac_status = 0; }; }; then : | |
26651 | ||
26652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26653 | $as_echo "yes" >&6; } | |
26654 | ||
26655 | $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h | |
26656 | ||
26657 | ||
26658 | else | |
26659 | $as_echo "$as_me: failed program was:" >&5 | |
26660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26661 | ||
26662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26663 | $as_echo "no" >&6; } | |
26664 | ||
26665 | ||
26666 | ||
26667 | fi | |
26668 | rm -Rf build | |
26669 | ||
26670 | ||
26671 | ||
26672 | ||
26673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5 | |
26674 | $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; } | |
26675 | ||
26676 | ||
26677 | cat confdefs.h - <<_ACEOF >conftest.c | |
26678 | ||
26679 | ||
26680 | #include <linux/fs.h> | |
26681 | ||
26682 | int | |
26683 | main (void) | |
26684 | { | |
26685 | ||
26686 | struct block_device *bdev = NULL; | |
26687 | (void) blkdev_get(bdev, 0, NULL); | |
26688 | ||
26689 | ; | |
26690 | return 0; | |
26691 | } | |
26692 | ||
26693 | _ACEOF | |
26694 | ||
26695 | ||
26696 | ||
26697 | cat - <<_ACEOF >conftest.h | |
26698 | ||
26699 | _ACEOF | |
26700 | ||
26701 | ||
26702 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26703 | echo "obj-m := conftest.o" >build/Makefile | |
26704 | modpost_flag='' | |
26705 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26706 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26707 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26708 | (eval $ac_try) 2>&5 | |
26709 | ac_status=$? | |
26710 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26711 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26712 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26713 | (eval $ac_try) 2>&5 | |
26714 | ac_status=$? | |
26715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26716 | test $ac_status = 0; }; }; then : | |
26717 | ||
26718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26719 | $as_echo "yes" >&6; } | |
26720 | ||
26721 | $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h | |
26722 | ||
26723 | ||
26724 | else | |
26725 | $as_echo "$as_me: failed program was:" >&5 | |
26726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26727 | ||
26728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26729 | $as_echo "no" >&6; } | |
26730 | ||
26731 | ||
26732 | ||
26733 | fi | |
26734 | rm -Rf build | |
26735 | ||
26736 | ||
26737 | ||
26738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5 | |
26739 | $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; } | |
26740 | ||
26741 | ||
26742 | ||
26743 | cat confdefs.h - <<_ACEOF >conftest.c | |
26744 | ||
26745 | ||
26746 | #include <linux/fs.h> | |
26747 | ||
26748 | int | |
26749 | main (void) | |
26750 | { | |
26751 | ||
26752 | blkdev_get_by_path(NULL, 0, NULL); | |
26753 | ||
26754 | ; | |
26755 | return 0; | |
26756 | } | |
26757 | ||
26758 | _ACEOF | |
26759 | ||
26760 | ||
26761 | ||
26762 | cat - <<_ACEOF >conftest.h | |
26763 | ||
26764 | _ACEOF | |
26765 | ||
26766 | ||
26767 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26768 | echo "obj-m := conftest.o" >build/Makefile | |
26769 | modpost_flag='' | |
26770 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26771 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26772 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26773 | (eval $ac_try) 2>&5 | |
26774 | ac_status=$? | |
26775 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26776 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26777 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26778 | (eval $ac_try) 2>&5 | |
26779 | ac_status=$? | |
26780 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26781 | test $ac_status = 0; }; }; then : | |
26782 | rc=0 | |
26783 | else | |
26784 | $as_echo "$as_me: failed program was:" >&5 | |
26785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26786 | rc=1 | |
26787 | ||
26788 | ||
26789 | fi | |
26790 | rm -Rf build | |
26791 | ||
26792 | ||
26793 | if test $rc -ne 0; then : | |
26794 | ||
26795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26796 | $as_echo "no" >&6; } | |
26797 | ||
26798 | else | |
26799 | if test "x$enable_linux_builtin" != xyes; then | |
26800 | ||
26801 | grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \ | |
26802 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
26803 | rc=$? | |
26804 | if test $rc -ne 0; then | |
26805 | export=0 | |
26806 | for file in fs/block_dev.c; do | |
26807 | grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \ | |
26808 | "$LINUX/$file" 2>/dev/null | |
26809 | rc=$? | |
26810 | if test $rc -eq 0; then | |
26811 | export=1 | |
26812 | break; | |
26813 | fi | |
26814 | done | |
26815 | if test $export -eq 0; then : | |
26816 | rc=1 | |
26817 | else : | |
26818 | rc=0 | |
26819 | fi | |
26820 | else : | |
26821 | rc=0 | |
26822 | fi | |
26823 | ||
26824 | fi | |
26825 | if test $rc -ne 0; then : | |
26826 | ||
26827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26828 | $as_echo "no" >&6; } | |
26829 | ||
26830 | else : | |
26831 | ||
26832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26833 | $as_echo "yes" >&6; } | |
26834 | ||
26835 | $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h | |
26836 | ||
26837 | ||
26838 | fi | |
26839 | fi | |
26840 | ||
26841 | ||
26842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5 | |
26843 | $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; } | |
26844 | ||
26845 | ||
26846 | ||
26847 | cat confdefs.h - <<_ACEOF >conftest.c | |
26848 | ||
26849 | ||
26850 | #include <linux/fs.h> | |
26851 | ||
26852 | int | |
26853 | main (void) | |
26854 | { | |
26855 | ||
26856 | open_bdev_exclusive(NULL, 0, NULL); | |
26857 | ||
26858 | ; | |
26859 | return 0; | |
26860 | } | |
26861 | ||
26862 | _ACEOF | |
26863 | ||
26864 | ||
26865 | ||
26866 | cat - <<_ACEOF >conftest.h | |
26867 | ||
26868 | _ACEOF | |
26869 | ||
26870 | ||
26871 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26872 | echo "obj-m := conftest.o" >build/Makefile | |
26873 | modpost_flag='' | |
26874 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26875 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26876 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26877 | (eval $ac_try) 2>&5 | |
26878 | ac_status=$? | |
26879 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26880 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26881 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26882 | (eval $ac_try) 2>&5 | |
26883 | ac_status=$? | |
26884 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26885 | test $ac_status = 0; }; }; then : | |
26886 | rc=0 | |
26887 | else | |
26888 | $as_echo "$as_me: failed program was:" >&5 | |
26889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26890 | rc=1 | |
26891 | ||
26892 | ||
26893 | fi | |
26894 | rm -Rf build | |
26895 | ||
26896 | ||
26897 | if test $rc -ne 0; then : | |
26898 | ||
26899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26900 | $as_echo "no" >&6; } | |
26901 | ||
26902 | else | |
26903 | if test "x$enable_linux_builtin" != xyes; then | |
26904 | ||
26905 | grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \ | |
26906 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
26907 | rc=$? | |
26908 | if test $rc -ne 0; then | |
26909 | export=0 | |
26910 | for file in fs/block_dev.c; do | |
26911 | grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \ | |
26912 | "$LINUX/$file" 2>/dev/null | |
26913 | rc=$? | |
26914 | if test $rc -eq 0; then | |
26915 | export=1 | |
26916 | break; | |
26917 | fi | |
26918 | done | |
26919 | if test $export -eq 0; then : | |
26920 | rc=1 | |
26921 | else : | |
26922 | rc=0 | |
26923 | fi | |
26924 | else : | |
26925 | rc=0 | |
26926 | fi | |
26927 | ||
26928 | fi | |
26929 | if test $rc -ne 0; then : | |
26930 | ||
26931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26932 | $as_echo "no" >&6; } | |
26933 | ||
26934 | else : | |
26935 | ||
26936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26937 | $as_echo "yes" >&6; } | |
26938 | ||
26939 | $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h | |
26940 | ||
26941 | ||
26942 | fi | |
26943 | fi | |
26944 | ||
26945 | ||
26946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5 | |
26947 | $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; } | |
26948 | ||
26949 | ||
26950 | ||
26951 | cat confdefs.h - <<_ACEOF >conftest.c | |
26952 | ||
26953 | ||
26954 | #include <linux/fs.h> | |
26955 | ||
26956 | int | |
26957 | main (void) | |
26958 | { | |
26959 | ||
26960 | lookup_bdev(NULL); | |
26961 | ||
26962 | ; | |
26963 | return 0; | |
26964 | } | |
26965 | ||
26966 | _ACEOF | |
26967 | ||
26968 | ||
26969 | ||
26970 | cat - <<_ACEOF >conftest.h | |
26971 | ||
26972 | _ACEOF | |
26973 | ||
26974 | ||
26975 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26976 | echo "obj-m := conftest.o" >build/Makefile | |
26977 | modpost_flag='' | |
26978 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26979 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26980 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26981 | (eval $ac_try) 2>&5 | |
26982 | ac_status=$? | |
26983 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26984 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26985 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26986 | (eval $ac_try) 2>&5 | |
26987 | ac_status=$? | |
26988 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26989 | test $ac_status = 0; }; }; then : | |
26990 | rc=0 | |
26991 | else | |
26992 | $as_echo "$as_me: failed program was:" >&5 | |
26993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26994 | rc=1 | |
26995 | ||
26996 | ||
26997 | fi | |
26998 | rm -Rf build | |
26999 | ||
27000 | ||
27001 | if test $rc -ne 0; then : | |
27002 | ||
27003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27004 | $as_echo "no" >&6; } | |
27005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5 | |
27006 | $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; } | |
27007 | ||
27008 | ||
27009 | ||
27010 | cat confdefs.h - <<_ACEOF >conftest.c | |
27011 | ||
27012 | ||
27013 | #include <linux/fs.h> | |
27014 | ||
27015 | int | |
27016 | main (void) | |
27017 | { | |
27018 | ||
27019 | lookup_bdev(NULL, FMODE_READ); | |
27020 | ||
27021 | ; | |
27022 | return 0; | |
27023 | } | |
27024 | ||
27025 | _ACEOF | |
27026 | ||
27027 | ||
27028 | ||
27029 | cat - <<_ACEOF >conftest.h | |
27030 | ||
27031 | _ACEOF | |
27032 | ||
27033 | ||
27034 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27035 | echo "obj-m := conftest.o" >build/Makefile | |
27036 | modpost_flag='' | |
27037 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27038 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27039 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27040 | (eval $ac_try) 2>&5 | |
27041 | ac_status=$? | |
27042 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27043 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27044 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27045 | (eval $ac_try) 2>&5 | |
27046 | ac_status=$? | |
27047 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27048 | test $ac_status = 0; }; }; then : | |
27049 | rc=0 | |
27050 | else | |
27051 | $as_echo "$as_me: failed program was:" >&5 | |
27052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27053 | rc=1 | |
27054 | ||
27055 | ||
27056 | fi | |
27057 | rm -Rf build | |
27058 | ||
27059 | ||
27060 | if test $rc -ne 0; then : | |
27061 | ||
27062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27063 | $as_echo "no" >&6; } | |
27064 | ||
27065 | else | |
27066 | if test "x$enable_linux_builtin" != xyes; then | |
27067 | ||
27068 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
27069 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
27070 | rc=$? | |
27071 | if test $rc -ne 0; then | |
27072 | export=0 | |
27073 | for file in fs/block_dev.c; do | |
27074 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
27075 | "$LINUX/$file" 2>/dev/null | |
27076 | rc=$? | |
27077 | if test $rc -eq 0; then | |
27078 | export=1 | |
27079 | break; | |
27080 | fi | |
27081 | done | |
27082 | if test $export -eq 0; then : | |
27083 | rc=1 | |
27084 | else : | |
27085 | rc=0 | |
27086 | fi | |
27087 | else : | |
27088 | rc=0 | |
27089 | fi | |
27090 | ||
27091 | fi | |
27092 | if test $rc -ne 0; then : | |
27093 | ||
27094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27095 | $as_echo "no" >&6; } | |
27096 | ||
27097 | else : | |
27098 | ||
27099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27100 | $as_echo "yes" >&6; } | |
27101 | ||
27102 | $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h | |
27103 | ||
27104 | ||
27105 | fi | |
27106 | fi | |
27107 | ||
27108 | ||
27109 | else | |
27110 | if test "x$enable_linux_builtin" != xyes; then | |
27111 | ||
27112 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
27113 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
27114 | rc=$? | |
27115 | if test $rc -ne 0; then | |
27116 | export=0 | |
27117 | for file in fs/block_dev.c; do | |
27118 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
27119 | "$LINUX/$file" 2>/dev/null | |
27120 | rc=$? | |
27121 | if test $rc -eq 0; then | |
27122 | export=1 | |
27123 | break; | |
27124 | fi | |
27125 | done | |
27126 | if test $export -eq 0; then : | |
27127 | rc=1 | |
27128 | else : | |
27129 | rc=0 | |
27130 | fi | |
27131 | else : | |
27132 | rc=0 | |
27133 | fi | |
27134 | ||
27135 | fi | |
27136 | if test $rc -ne 0; then : | |
27137 | ||
27138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27139 | $as_echo "no" >&6; } | |
27140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5 | |
27141 | $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; } | |
27142 | ||
27143 | ||
27144 | ||
27145 | cat confdefs.h - <<_ACEOF >conftest.c | |
27146 | ||
27147 | ||
27148 | #include <linux/fs.h> | |
27149 | ||
27150 | int | |
27151 | main (void) | |
27152 | { | |
27153 | ||
27154 | lookup_bdev(NULL, FMODE_READ); | |
27155 | ||
27156 | ; | |
27157 | return 0; | |
27158 | } | |
27159 | ||
27160 | _ACEOF | |
27161 | ||
27162 | ||
27163 | ||
27164 | cat - <<_ACEOF >conftest.h | |
27165 | ||
27166 | _ACEOF | |
27167 | ||
27168 | ||
27169 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27170 | echo "obj-m := conftest.o" >build/Makefile | |
27171 | modpost_flag='' | |
27172 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27173 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27174 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27175 | (eval $ac_try) 2>&5 | |
27176 | ac_status=$? | |
27177 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27178 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27179 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27180 | (eval $ac_try) 2>&5 | |
27181 | ac_status=$? | |
27182 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27183 | test $ac_status = 0; }; }; then : | |
27184 | rc=0 | |
27185 | else | |
27186 | $as_echo "$as_me: failed program was:" >&5 | |
27187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27188 | rc=1 | |
27189 | ||
27190 | ||
27191 | fi | |
27192 | rm -Rf build | |
27193 | ||
27194 | ||
27195 | if test $rc -ne 0; then : | |
27196 | ||
27197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27198 | $as_echo "no" >&6; } | |
27199 | ||
27200 | else | |
27201 | if test "x$enable_linux_builtin" != xyes; then | |
27202 | ||
27203 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
27204 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
27205 | rc=$? | |
27206 | if test $rc -ne 0; then | |
27207 | export=0 | |
27208 | for file in fs/block_dev.c; do | |
27209 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
27210 | "$LINUX/$file" 2>/dev/null | |
27211 | rc=$? | |
27212 | if test $rc -eq 0; then | |
27213 | export=1 | |
27214 | break; | |
27215 | fi | |
27216 | done | |
27217 | if test $export -eq 0; then : | |
27218 | rc=1 | |
27219 | else : | |
27220 | rc=0 | |
27221 | fi | |
27222 | else : | |
27223 | rc=0 | |
27224 | fi | |
27225 | ||
27226 | fi | |
27227 | if test $rc -ne 0; then : | |
27228 | ||
27229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27230 | $as_echo "no" >&6; } | |
27231 | ||
27232 | else : | |
27233 | ||
27234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27235 | $as_echo "yes" >&6; } | |
27236 | ||
27237 | $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h | |
27238 | ||
27239 | ||
27240 | fi | |
27241 | fi | |
27242 | ||
27243 | ||
27244 | else : | |
27245 | ||
27246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27247 | $as_echo "yes" >&6; } | |
27248 | ||
27249 | $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h | |
27250 | ||
27251 | ||
27252 | fi | |
27253 | fi | |
27254 | ||
27255 | ||
27256 | ||
27257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5 | |
27258 | $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; } | |
27259 | ||
27260 | ||
27261 | cat confdefs.h - <<_ACEOF >conftest.c | |
27262 | ||
27263 | ||
27264 | #include <linux/buffer_head.h> | |
27265 | ||
27266 | int | |
27267 | main (void) | |
27268 | { | |
27269 | ||
27270 | struct block_device *bdev = NULL; | |
27271 | invalidate_bdev(bdev); | |
27272 | ||
27273 | ; | |
27274 | return 0; | |
27275 | } | |
27276 | ||
27277 | _ACEOF | |
27278 | ||
27279 | ||
27280 | ||
27281 | cat - <<_ACEOF >conftest.h | |
27282 | ||
27283 | _ACEOF | |
27284 | ||
27285 | ||
27286 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27287 | echo "obj-m := conftest.o" >build/Makefile | |
27288 | modpost_flag='' | |
27289 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27290 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27291 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27292 | (eval $ac_try) 2>&5 | |
27293 | ac_status=$? | |
27294 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27295 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27296 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27297 | (eval $ac_try) 2>&5 | |
27298 | ac_status=$? | |
27299 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27300 | test $ac_status = 0; }; }; then : | |
27301 | ||
27302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27303 | $as_echo "yes" >&6; } | |
27304 | ||
27305 | $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h | |
27306 | ||
27307 | ||
27308 | else | |
27309 | $as_echo "$as_me: failed program was:" >&5 | |
27310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27311 | ||
27312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27313 | $as_echo "no" >&6; } | |
27314 | ||
27315 | ||
27316 | ||
27317 | fi | |
27318 | rm -Rf build | |
27319 | ||
27320 | ||
27321 | ||
27322 | ||
27323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5 | |
27324 | $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; } | |
27325 | tmp_flags="$EXTRA_KCFLAGS" | |
27326 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
27327 | ||
27328 | ||
27329 | cat confdefs.h - <<_ACEOF >conftest.c | |
27330 | ||
27331 | ||
27332 | #include <linux/blkdev.h> | |
27333 | ||
27334 | int | |
27335 | main (void) | |
27336 | { | |
27337 | ||
27338 | struct block_device *bdev = NULL; | |
27339 | bdev_logical_block_size(bdev); | |
27340 | ||
27341 | ; | |
27342 | return 0; | |
27343 | } | |
27344 | ||
27345 | _ACEOF | |
27346 | ||
27347 | ||
27348 | ||
27349 | cat - <<_ACEOF >conftest.h | |
27350 | ||
27351 | _ACEOF | |
27352 | ||
27353 | ||
27354 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27355 | echo "obj-m := conftest.o" >build/Makefile | |
27356 | modpost_flag='' | |
27357 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27358 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27359 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27360 | (eval $ac_try) 2>&5 | |
27361 | ac_status=$? | |
27362 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27363 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27364 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27365 | (eval $ac_try) 2>&5 | |
27366 | ac_status=$? | |
27367 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27368 | test $ac_status = 0; }; }; then : | |
27369 | ||
27370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27371 | $as_echo "yes" >&6; } | |
27372 | ||
27373 | $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h | |
27374 | ||
27375 | ||
27376 | else | |
27377 | $as_echo "$as_me: failed program was:" >&5 | |
27378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27379 | ||
27380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27381 | $as_echo "no" >&6; } | |
27382 | ||
27383 | ||
27384 | ||
27385 | fi | |
27386 | rm -Rf build | |
27387 | ||
27388 | ||
27389 | EXTRA_KCFLAGS="$tmp_flags" | |
27390 | ||
27391 | ||
27392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5 | |
27393 | $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; } | |
27394 | tmp_flags="$EXTRA_KCFLAGS" | |
27395 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
27396 | ||
27397 | ||
27398 | cat confdefs.h - <<_ACEOF >conftest.c | |
27399 | ||
27400 | ||
27401 | #include <linux/blkdev.h> | |
27402 | ||
27403 | int | |
27404 | main (void) | |
27405 | { | |
27406 | ||
27407 | struct block_device *bdev = NULL; | |
27408 | bdev_physical_block_size(bdev); | |
27409 | ||
27410 | ; | |
27411 | return 0; | |
27412 | } | |
27413 | ||
27414 | _ACEOF | |
27415 | ||
27416 | ||
27417 | ||
27418 | cat - <<_ACEOF >conftest.h | |
27419 | ||
27420 | _ACEOF | |
27421 | ||
27422 | ||
27423 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27424 | echo "obj-m := conftest.o" >build/Makefile | |
27425 | modpost_flag='' | |
27426 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27427 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27428 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27429 | (eval $ac_try) 2>&5 | |
27430 | ac_status=$? | |
27431 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27432 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27433 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27434 | (eval $ac_try) 2>&5 | |
27435 | ac_status=$? | |
27436 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27437 | test $ac_status = 0; }; }; then : | |
27438 | ||
27439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27440 | $as_echo "yes" >&6; } | |
27441 | ||
27442 | $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h | |
27443 | ||
27444 | ||
27445 | else | |
27446 | $as_echo "$as_me: failed program was:" >&5 | |
27447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27448 | ||
27449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27450 | $as_echo "no" >&6; } | |
27451 | ||
27452 | ||
27453 | ||
27454 | fi | |
27455 | rm -Rf build | |
27456 | ||
27457 | ||
27458 | EXTRA_KCFLAGS="$tmp_flags" | |
27459 | ||
27460 | ||
27461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5 | |
27462 | $as_echo_n "checking whether bio has bi_iter... " >&6; } | |
27463 | ||
27464 | ||
27465 | cat confdefs.h - <<_ACEOF >conftest.c | |
27466 | ||
27467 | ||
27468 | #include <linux/bio.h> | |
27469 | ||
27470 | int | |
27471 | main (void) | |
27472 | { | |
27473 | ||
27474 | struct bio bio; | |
27475 | bio.bi_iter.bi_sector = 0; | |
27476 | ||
27477 | ; | |
27478 | return 0; | |
27479 | } | |
27480 | ||
27481 | _ACEOF | |
27482 | ||
27483 | ||
27484 | ||
27485 | cat - <<_ACEOF >conftest.h | |
27486 | ||
27487 | _ACEOF | |
27488 | ||
27489 | ||
27490 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27491 | echo "obj-m := conftest.o" >build/Makefile | |
27492 | modpost_flag='' | |
27493 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27494 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27495 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27496 | (eval $ac_try) 2>&5 | |
27497 | ac_status=$? | |
27498 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27499 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27500 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27501 | (eval $ac_try) 2>&5 | |
27502 | ac_status=$? | |
27503 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27504 | test $ac_status = 0; }; }; then : | |
27505 | ||
27506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27507 | $as_echo "yes" >&6; } | |
27508 | ||
27509 | $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h | |
27510 | ||
27511 | ||
27512 | else | |
27513 | $as_echo "$as_me: failed program was:" >&5 | |
27514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27515 | ||
27516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27517 | $as_echo "no" >&6; } | |
27518 | ||
27519 | ||
27520 | ||
27521 | fi | |
27522 | rm -Rf build | |
27523 | ||
27524 | ||
27525 | ||
27526 | ||
27527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5 | |
27528 | $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; } | |
27529 | ||
27530 | ||
27531 | cat confdefs.h - <<_ACEOF >conftest.c | |
27532 | ||
27533 | ||
27534 | #include <linux/bio.h> | |
27535 | ||
27536 | int | |
27537 | main (void) | |
27538 | { | |
27539 | ||
27540 | int flags __attribute__ ((unused)); | |
27541 | flags = ((1 << BIO_RW_FAILFAST_DEV) | | |
27542 | (1 << BIO_RW_FAILFAST_TRANSPORT) | | |
27543 | (1 << BIO_RW_FAILFAST_DRIVER)); | |
27544 | ||
27545 | ; | |
27546 | return 0; | |
27547 | } | |
27548 | ||
27549 | _ACEOF | |
27550 | ||
27551 | ||
27552 | ||
27553 | cat - <<_ACEOF >conftest.h | |
27554 | ||
27555 | _ACEOF | |
27556 | ||
27557 | ||
27558 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27559 | echo "obj-m := conftest.o" >build/Makefile | |
27560 | modpost_flag='' | |
27561 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27562 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27563 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27564 | (eval $ac_try) 2>&5 | |
27565 | ac_status=$? | |
27566 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27567 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27568 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27569 | (eval $ac_try) 2>&5 | |
27570 | ac_status=$? | |
27571 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27572 | test $ac_status = 0; }; }; then : | |
27573 | ||
27574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27575 | $as_echo "yes" >&6; } | |
27576 | ||
27577 | $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h | |
27578 | ||
27579 | ||
27580 | else | |
27581 | $as_echo "$as_me: failed program was:" >&5 | |
27582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27583 | ||
27584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27585 | $as_echo "no" >&6; } | |
27586 | ||
27587 | ||
27588 | ||
27589 | fi | |
27590 | rm -Rf build | |
27591 | ||
27592 | ||
27593 | ||
27594 | ||
27595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5 | |
27596 | $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; } | |
27597 | ||
27598 | ||
27599 | cat confdefs.h - <<_ACEOF >conftest.c | |
27600 | ||
27601 | ||
27602 | #include <linux/bio.h> | |
27603 | ||
27604 | int | |
27605 | main (void) | |
27606 | { | |
27607 | ||
27608 | int flags __attribute__ ((unused)); | |
27609 | flags = REQ_FAILFAST_MASK; | |
27610 | ||
27611 | ; | |
27612 | return 0; | |
27613 | } | |
27614 | ||
27615 | _ACEOF | |
27616 | ||
27617 | ||
27618 | ||
27619 | cat - <<_ACEOF >conftest.h | |
27620 | ||
27621 | _ACEOF | |
27622 | ||
27623 | ||
27624 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27625 | echo "obj-m := conftest.o" >build/Makefile | |
27626 | modpost_flag='' | |
27627 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27628 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27629 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27630 | (eval $ac_try) 2>&5 | |
27631 | ac_status=$? | |
27632 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27633 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27634 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27635 | (eval $ac_try) 2>&5 | |
27636 | ac_status=$? | |
27637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27638 | test $ac_status = 0; }; }; then : | |
27639 | ||
27640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27641 | $as_echo "yes" >&6; } | |
27642 | ||
27643 | $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h | |
27644 | ||
27645 | ||
27646 | else | |
27647 | $as_echo "$as_me: failed program was:" >&5 | |
27648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27649 | ||
27650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27651 | $as_echo "no" >&6; } | |
27652 | ||
27653 | ||
27654 | ||
27655 | fi | |
27656 | rm -Rf build | |
27657 | ||
27658 | ||
27659 | ||
27660 | ||
27661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5 | |
27662 | $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; } | |
27663 | ||
27664 | ||
27665 | cat confdefs.h - <<_ACEOF >conftest.c | |
27666 | ||
27667 | ||
27668 | #include <linux/blk_types.h> | |
27669 | ||
27670 | int | |
27671 | main (void) | |
27672 | { | |
27673 | ||
27674 | int op __attribute__ ((unused)) = REQ_OP_DISCARD; | |
27675 | ||
27676 | ; | |
27677 | return 0; | |
27678 | } | |
27679 | ||
27680 | _ACEOF | |
27681 | ||
27682 | ||
27683 | ||
27684 | cat - <<_ACEOF >conftest.h | |
27685 | ||
27686 | _ACEOF | |
27687 | ||
27688 | ||
27689 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27690 | echo "obj-m := conftest.o" >build/Makefile | |
27691 | modpost_flag='' | |
27692 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27693 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27694 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27695 | (eval $ac_try) 2>&5 | |
27696 | ac_status=$? | |
27697 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27698 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27699 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27700 | (eval $ac_try) 2>&5 | |
27701 | ac_status=$? | |
27702 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27703 | test $ac_status = 0; }; }; then : | |
27704 | ||
27705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27706 | $as_echo "yes" >&6; } | |
27707 | ||
27708 | $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h | |
27709 | ||
27710 | ||
27711 | else | |
27712 | $as_echo "$as_me: failed program was:" >&5 | |
27713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27714 | ||
27715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27716 | $as_echo "no" >&6; } | |
27717 | ||
27718 | ||
27719 | ||
27720 | fi | |
27721 | rm -Rf build | |
27722 | ||
27723 | ||
27724 | ||
27725 | ||
27726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5 | |
27727 | $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; } | |
27728 | ||
27729 | ||
27730 | cat confdefs.h - <<_ACEOF >conftest.c | |
27731 | ||
27732 | ||
27733 | #include <linux/blk_types.h> | |
27734 | ||
27735 | int | |
27736 | main (void) | |
27737 | { | |
27738 | ||
27739 | int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE; | |
27740 | ||
27741 | ; | |
27742 | return 0; | |
27743 | } | |
27744 | ||
27745 | _ACEOF | |
27746 | ||
27747 | ||
27748 | ||
27749 | cat - <<_ACEOF >conftest.h | |
27750 | ||
27751 | _ACEOF | |
27752 | ||
27753 | ||
27754 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27755 | echo "obj-m := conftest.o" >build/Makefile | |
27756 | modpost_flag='' | |
27757 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27758 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27759 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27760 | (eval $ac_try) 2>&5 | |
27761 | ac_status=$? | |
27762 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27763 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27764 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27765 | (eval $ac_try) 2>&5 | |
27766 | ac_status=$? | |
27767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27768 | test $ac_status = 0; }; }; then : | |
27769 | ||
27770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27771 | $as_echo "yes" >&6; } | |
27772 | ||
27773 | $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h | |
27774 | ||
27775 | ||
27776 | else | |
27777 | $as_echo "$as_me: failed program was:" >&5 | |
27778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27779 | ||
27780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27781 | $as_echo "no" >&6; } | |
27782 | ||
27783 | ||
27784 | ||
27785 | fi | |
27786 | rm -Rf build | |
27787 | ||
27788 | ||
27789 | ||
27790 | ||
27791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5 | |
27792 | $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; } | |
27793 | ||
27794 | ||
27795 | cat confdefs.h - <<_ACEOF >conftest.c | |
27796 | ||
27797 | ||
27798 | #include <linux/blk_types.h> | |
27799 | ||
27800 | int | |
27801 | main (void) | |
27802 | { | |
27803 | ||
27804 | int op __attribute__ ((unused)) = REQ_OP_FLUSH; | |
27805 | ||
27806 | ; | |
27807 | return 0; | |
27808 | } | |
27809 | ||
27810 | _ACEOF | |
27811 | ||
27812 | ||
27813 | ||
27814 | cat - <<_ACEOF >conftest.h | |
27815 | ||
27816 | _ACEOF | |
27817 | ||
27818 | ||
27819 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27820 | echo "obj-m := conftest.o" >build/Makefile | |
27821 | modpost_flag='' | |
27822 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27823 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27824 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27825 | (eval $ac_try) 2>&5 | |
27826 | ac_status=$? | |
27827 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27828 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27829 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27830 | (eval $ac_try) 2>&5 | |
27831 | ac_status=$? | |
27832 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27833 | test $ac_status = 0; }; }; then : | |
27834 | ||
27835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27836 | $as_echo "yes" >&6; } | |
27837 | ||
27838 | $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h | |
27839 | ||
27840 | ||
27841 | else | |
27842 | $as_echo "$as_me: failed program was:" >&5 | |
27843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27844 | ||
27845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27846 | $as_echo "no" >&6; } | |
27847 | ||
27848 | ||
27849 | ||
27850 | fi | |
27851 | rm -Rf build | |
27852 | ||
27853 | ||
27854 | ||
27855 | ||
27856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5 | |
27857 | $as_echo_n "checking whether bio->bi_opf is defined... " >&6; } | |
27858 | ||
27859 | ||
27860 | cat confdefs.h - <<_ACEOF >conftest.c | |
27861 | ||
27862 | ||
27863 | #include <linux/bio.h> | |
27864 | ||
27865 | int | |
27866 | main (void) | |
27867 | { | |
27868 | ||
27869 | struct bio bio __attribute__ ((unused)); | |
27870 | bio.bi_opf = 0; | |
27871 | ||
27872 | ; | |
27873 | return 0; | |
27874 | } | |
27875 | ||
27876 | _ACEOF | |
27877 | ||
27878 | ||
27879 | ||
27880 | cat - <<_ACEOF >conftest.h | |
27881 | ||
27882 | _ACEOF | |
27883 | ||
27884 | ||
27885 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27886 | echo "obj-m := conftest.o" >build/Makefile | |
27887 | modpost_flag='' | |
27888 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27889 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27890 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27891 | (eval $ac_try) 2>&5 | |
27892 | ac_status=$? | |
27893 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27894 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27895 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27896 | (eval $ac_try) 2>&5 | |
27897 | ac_status=$? | |
27898 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27899 | test $ac_status = 0; }; }; then : | |
27900 | ||
27901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27902 | $as_echo "yes" >&6; } | |
27903 | ||
27904 | $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h | |
27905 | ||
27906 | ||
27907 | else | |
27908 | $as_echo "$as_me: failed program was:" >&5 | |
27909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27910 | ||
27911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27912 | $as_echo "no" >&6; } | |
27913 | ||
27914 | ||
27915 | ||
27916 | fi | |
27917 | rm -Rf build | |
27918 | ||
27919 | ||
27920 | ||
27921 | ||
27922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5 | |
27923 | $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; } | |
27924 | ||
27925 | ||
27926 | cat confdefs.h - <<_ACEOF >conftest.c | |
27927 | ||
27928 | ||
27929 | #include <linux/bio.h> | |
27930 | ||
27931 | void wanted_end_io(struct bio *bio) { return; } | |
27932 | ||
27933 | bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io; | |
27934 | ||
27935 | int | |
27936 | main (void) | |
27937 | { | |
27938 | ||
27939 | ||
27940 | ; | |
27941 | return 0; | |
27942 | } | |
27943 | ||
27944 | _ACEOF | |
27945 | ||
27946 | ||
27947 | ||
27948 | cat - <<_ACEOF >conftest.h | |
27949 | ||
27950 | _ACEOF | |
27951 | ||
27952 | ||
27953 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27954 | echo "obj-m := conftest.o" >build/Makefile | |
27955 | modpost_flag='' | |
27956 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27957 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27958 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27959 | (eval $ac_try) 2>&5 | |
27960 | ac_status=$? | |
27961 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27962 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27963 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27964 | (eval $ac_try) 2>&5 | |
27965 | ac_status=$? | |
27966 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27967 | test $ac_status = 0; }; }; then : | |
27968 | ||
27969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27970 | $as_echo "yes" >&6; } | |
27971 | ||
27972 | $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h | |
27973 | ||
27974 | ||
27975 | else | |
27976 | $as_echo "$as_me: failed program was:" >&5 | |
27977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27978 | ||
27979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27980 | $as_echo "no" >&6; } | |
27981 | ||
27982 | ||
27983 | ||
27984 | fi | |
27985 | rm -Rf build | |
27986 | ||
27987 | ||
27988 | ||
27989 | ||
1681e039 CIK |
27990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5 |
27991 | $as_echo_n "checking whether bio->bi_status exists... " >&6; } | |
27992 | ||
27993 | ||
27994 | cat confdefs.h - <<_ACEOF >conftest.c | |
27995 | ||
27996 | ||
27997 | #include <linux/bio.h> | |
27998 | ||
27999 | int | |
28000 | main (void) | |
28001 | { | |
28002 | ||
28003 | struct bio bio __attribute__ ((unused)); | |
28004 | blk_status_t status __attribute__ ((unused)) = BLK_STS_OK; | |
28005 | ||
28006 | bio.bi_status = status; | |
28007 | ||
28008 | ; | |
28009 | return 0; | |
28010 | } | |
28011 | ||
28012 | _ACEOF | |
28013 | ||
28014 | ||
28015 | ||
28016 | cat - <<_ACEOF >conftest.h | |
28017 | ||
28018 | _ACEOF | |
28019 | ||
28020 | ||
28021 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28022 | echo "obj-m := conftest.o" >build/Makefile | |
28023 | modpost_flag='' | |
28024 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28025 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28026 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28027 | (eval $ac_try) 2>&5 | |
28028 | ac_status=$? | |
28029 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28030 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28031 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28032 | (eval $ac_try) 2>&5 | |
28033 | ac_status=$? | |
28034 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28035 | test $ac_status = 0; }; }; then : | |
28036 | ||
28037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28038 | $as_echo "yes" >&6; } | |
28039 | ||
28040 | $as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h | |
28041 | ||
28042 | ||
28043 | else | |
28044 | $as_echo "$as_me: failed program was:" >&5 | |
28045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28046 | ||
28047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28048 | $as_echo "no" >&6; } | |
28049 | ||
28050 | ||
28051 | ||
28052 | fi | |
28053 | rm -Rf build | |
28054 | ||
28055 | ||
28056 | ||
28057 | ||
87d546d8 TG |
28058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5 |
28059 | $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; } | |
28060 | ||
28061 | ||
28062 | cat confdefs.h - <<_ACEOF >conftest.c | |
28063 | ||
28064 | ||
28065 | #include <linux/bio.h> | |
28066 | ||
28067 | int | |
28068 | main (void) | |
28069 | { | |
28070 | ||
28071 | int flags __attribute__ ((unused)); | |
28072 | flags = BIO_RW_BARRIER; | |
28073 | ||
28074 | ; | |
28075 | return 0; | |
28076 | } | |
28077 | ||
28078 | _ACEOF | |
28079 | ||
28080 | ||
28081 | ||
28082 | cat - <<_ACEOF >conftest.h | |
28083 | ||
28084 | _ACEOF | |
28085 | ||
28086 | ||
28087 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28088 | echo "obj-m := conftest.o" >build/Makefile | |
28089 | modpost_flag='' | |
28090 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28091 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28092 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28093 | (eval $ac_try) 2>&5 | |
28094 | ac_status=$? | |
28095 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28096 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28097 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28098 | (eval $ac_try) 2>&5 | |
28099 | ac_status=$? | |
28100 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28101 | test $ac_status = 0; }; }; then : | |
28102 | ||
28103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28104 | $as_echo "yes" >&6; } | |
28105 | ||
28106 | $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h | |
28107 | ||
28108 | ||
28109 | else | |
28110 | $as_echo "$as_me: failed program was:" >&5 | |
28111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28112 | ||
28113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28114 | $as_echo "no" >&6; } | |
28115 | ||
28116 | ||
28117 | ||
28118 | fi | |
28119 | rm -Rf build | |
28120 | ||
28121 | ||
28122 | ||
28123 | ||
28124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5 | |
28125 | $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; } | |
28126 | ||
28127 | ||
28128 | cat confdefs.h - <<_ACEOF >conftest.c | |
28129 | ||
28130 | ||
28131 | #include <linux/bio.h> | |
28132 | ||
28133 | int | |
28134 | main (void) | |
28135 | { | |
28136 | ||
28137 | int flags __attribute__ ((unused)); | |
28138 | flags = BIO_RW_DISCARD; | |
28139 | ||
28140 | ; | |
28141 | return 0; | |
28142 | } | |
28143 | ||
28144 | _ACEOF | |
28145 | ||
28146 | ||
28147 | ||
28148 | cat - <<_ACEOF >conftest.h | |
28149 | ||
28150 | _ACEOF | |
28151 | ||
28152 | ||
28153 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28154 | echo "obj-m := conftest.o" >build/Makefile | |
28155 | modpost_flag='' | |
28156 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28157 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28158 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28159 | (eval $ac_try) 2>&5 | |
28160 | ac_status=$? | |
28161 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28162 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28163 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28164 | (eval $ac_try) 2>&5 | |
28165 | ac_status=$? | |
28166 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28167 | test $ac_status = 0; }; }; then : | |
28168 | ||
28169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28170 | $as_echo "yes" >&6; } | |
28171 | ||
28172 | $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h | |
28173 | ||
28174 | ||
28175 | else | |
28176 | $as_echo "$as_me: failed program was:" >&5 | |
28177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28178 | ||
28179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28180 | $as_echo "no" >&6; } | |
28181 | ||
28182 | ||
28183 | ||
28184 | fi | |
28185 | rm -Rf build | |
28186 | ||
28187 | ||
28188 | ||
28189 | ||
28190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5 | |
28191 | $as_echo_n "checking whether blk_queue_flush() is available... " >&6; } | |
28192 | tmp_flags="$EXTRA_KCFLAGS" | |
28193 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
28194 | ||
28195 | ||
28196 | cat confdefs.h - <<_ACEOF >conftest.c | |
28197 | ||
28198 | ||
28199 | #include <linux/blkdev.h> | |
28200 | ||
28201 | int | |
28202 | main (void) | |
28203 | { | |
28204 | ||
28205 | struct request_queue *q = NULL; | |
28206 | (void) blk_queue_flush(q, REQ_FLUSH); | |
28207 | ||
28208 | ; | |
28209 | return 0; | |
28210 | } | |
28211 | ||
28212 | _ACEOF | |
28213 | ||
28214 | ||
28215 | ||
28216 | cat - <<_ACEOF >conftest.h | |
28217 | ||
28218 | _ACEOF | |
28219 | ||
28220 | ||
28221 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28222 | echo "obj-m := conftest.o" >build/Makefile | |
28223 | modpost_flag='' | |
28224 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28225 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28226 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28227 | (eval $ac_try) 2>&5 | |
28228 | ac_status=$? | |
28229 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28230 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28231 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28232 | (eval $ac_try) 2>&5 | |
28233 | ac_status=$? | |
28234 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28235 | test $ac_status = 0; }; }; then : | |
28236 | ||
28237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28238 | $as_echo "yes" >&6; } | |
28239 | ||
28240 | $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h | |
28241 | ||
28242 | ||
28243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5 | |
28244 | $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; } | |
28245 | ||
28246 | ||
28247 | cat confdefs.h - <<_ACEOF >conftest.c | |
28248 | ||
28249 | ||
28250 | #include <linux/module.h> | |
28251 | #include <linux/blkdev.h> | |
28252 | ||
28253 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
28254 | ||
28255 | int | |
28256 | main (void) | |
28257 | { | |
28258 | ||
28259 | struct request_queue *q = NULL; | |
28260 | (void) blk_queue_flush(q, REQ_FLUSH); | |
28261 | ||
28262 | ; | |
28263 | return 0; | |
28264 | } | |
28265 | ||
28266 | _ACEOF | |
28267 | ||
28268 | ||
28269 | ||
28270 | cat - <<_ACEOF >conftest.h | |
28271 | ||
28272 | _ACEOF | |
28273 | ||
28274 | ||
28275 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28276 | echo "obj-m := conftest.o" >build/Makefile | |
28277 | modpost_flag='' | |
28278 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28279 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28280 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28281 | (eval $ac_try) 2>&5 | |
28282 | ac_status=$? | |
28283 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28284 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28285 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28286 | (eval $ac_try) 2>&5 | |
28287 | ac_status=$? | |
28288 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28289 | test $ac_status = 0; }; }; then : | |
28290 | ||
28291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28292 | $as_echo "no" >&6; } | |
28293 | ||
28294 | else | |
28295 | $as_echo "$as_me: failed program was:" >&5 | |
28296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28297 | ||
28298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28299 | $as_echo "yes" >&6; } | |
28300 | ||
28301 | $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h | |
28302 | ||
28303 | ||
28304 | ||
28305 | ||
28306 | fi | |
28307 | rm -Rf build | |
28308 | ||
28309 | ||
28310 | ||
28311 | else | |
28312 | $as_echo "$as_me: failed program was:" >&5 | |
28313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28314 | ||
28315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28316 | $as_echo "no" >&6; } | |
28317 | ||
28318 | ||
28319 | ||
28320 | fi | |
28321 | rm -Rf build | |
28322 | ||
28323 | ||
28324 | ||
28325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5 | |
28326 | $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; } | |
28327 | ||
28328 | ||
28329 | cat confdefs.h - <<_ACEOF >conftest.c | |
28330 | ||
28331 | ||
28332 | #include <linux/kernel.h> | |
28333 | #include <linux/blkdev.h> | |
28334 | ||
28335 | ||
28336 | int | |
28337 | main (void) | |
28338 | { | |
28339 | ||
28340 | struct request_queue *q = NULL; | |
28341 | blk_queue_write_cache(q, true, true); | |
28342 | ||
28343 | ; | |
28344 | return 0; | |
28345 | } | |
28346 | ||
28347 | _ACEOF | |
28348 | ||
28349 | ||
28350 | ||
28351 | cat - <<_ACEOF >conftest.h | |
28352 | ||
28353 | _ACEOF | |
28354 | ||
28355 | ||
28356 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28357 | echo "obj-m := conftest.o" >build/Makefile | |
28358 | modpost_flag='' | |
28359 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28360 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28361 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28362 | (eval $ac_try) 2>&5 | |
28363 | ac_status=$? | |
28364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28365 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28366 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28367 | (eval $ac_try) 2>&5 | |
28368 | ac_status=$? | |
28369 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28370 | test $ac_status = 0; }; }; then : | |
28371 | ||
28372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28373 | $as_echo "yes" >&6; } | |
28374 | ||
28375 | $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h | |
28376 | ||
28377 | ||
28378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5 | |
28379 | $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; } | |
28380 | ||
28381 | ||
28382 | cat confdefs.h - <<_ACEOF >conftest.c | |
28383 | ||
28384 | ||
28385 | #include <linux/kernel.h> | |
28386 | #include <linux/module.h> | |
28387 | #include <linux/blkdev.h> | |
28388 | ||
28389 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
28390 | ||
28391 | int | |
28392 | main (void) | |
28393 | { | |
28394 | ||
28395 | struct request_queue *q = NULL; | |
28396 | blk_queue_write_cache(q, true, true); | |
28397 | ||
28398 | ; | |
28399 | return 0; | |
28400 | } | |
28401 | ||
28402 | _ACEOF | |
28403 | ||
28404 | ||
28405 | ||
28406 | cat - <<_ACEOF >conftest.h | |
28407 | ||
28408 | _ACEOF | |
28409 | ||
28410 | ||
28411 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28412 | echo "obj-m := conftest.o" >build/Makefile | |
28413 | modpost_flag='' | |
28414 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28415 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28416 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28417 | (eval $ac_try) 2>&5 | |
28418 | ac_status=$? | |
28419 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28420 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28421 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28422 | (eval $ac_try) 2>&5 | |
28423 | ac_status=$? | |
28424 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28425 | test $ac_status = 0; }; }; then : | |
28426 | ||
28427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28428 | $as_echo "no" >&6; } | |
28429 | ||
28430 | else | |
28431 | $as_echo "$as_me: failed program was:" >&5 | |
28432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28433 | ||
28434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28435 | $as_echo "yes" >&6; } | |
28436 | ||
28437 | $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h | |
28438 | ||
28439 | ||
28440 | ||
28441 | ||
28442 | fi | |
28443 | rm -Rf build | |
28444 | ||
28445 | ||
28446 | ||
28447 | else | |
28448 | $as_echo "$as_me: failed program was:" >&5 | |
28449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28450 | ||
28451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28452 | $as_echo "no" >&6; } | |
28453 | ||
28454 | ||
28455 | ||
28456 | fi | |
28457 | rm -Rf build | |
28458 | ||
28459 | ||
28460 | ||
28461 | EXTRA_KCFLAGS="$tmp_flags" | |
28462 | ||
28463 | ||
28464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5 | |
28465 | $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; } | |
28466 | tmp_flags="$EXTRA_KCFLAGS" | |
28467 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
28468 | ||
28469 | ||
28470 | cat confdefs.h - <<_ACEOF >conftest.c | |
28471 | ||
28472 | ||
28473 | #include <linux/blkdev.h> | |
28474 | ||
28475 | int | |
28476 | main (void) | |
28477 | { | |
28478 | ||
28479 | struct request_queue *q = NULL; | |
28480 | (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS); | |
28481 | ||
28482 | ; | |
28483 | return 0; | |
28484 | } | |
28485 | ||
28486 | _ACEOF | |
28487 | ||
28488 | ||
28489 | ||
28490 | cat - <<_ACEOF >conftest.h | |
28491 | ||
28492 | _ACEOF | |
28493 | ||
28494 | ||
28495 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28496 | echo "obj-m := conftest.o" >build/Makefile | |
28497 | modpost_flag='' | |
28498 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28499 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28500 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28501 | (eval $ac_try) 2>&5 | |
28502 | ac_status=$? | |
28503 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28504 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28505 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28506 | (eval $ac_try) 2>&5 | |
28507 | ac_status=$? | |
28508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28509 | test $ac_status = 0; }; }; then : | |
28510 | ||
28511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28512 | $as_echo "yes" >&6; } | |
28513 | ||
28514 | $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h | |
28515 | ||
28516 | ||
28517 | else | |
28518 | $as_echo "$as_me: failed program was:" >&5 | |
28519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28520 | ||
28521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28522 | $as_echo "no" >&6; } | |
28523 | ||
28524 | ||
28525 | ||
28526 | fi | |
28527 | rm -Rf build | |
28528 | ||
28529 | ||
28530 | EXTRA_KCFLAGS="$tmp_flags" | |
28531 | ||
28532 | ||
28533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5 | |
28534 | $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; } | |
28535 | tmp_flags="$EXTRA_KCFLAGS" | |
28536 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
28537 | ||
28538 | ||
28539 | cat confdefs.h - <<_ACEOF >conftest.c | |
28540 | ||
28541 | ||
28542 | #include <linux/blkdev.h> | |
28543 | ||
28544 | int | |
28545 | main (void) | |
28546 | { | |
28547 | ||
28548 | struct request_queue *q = NULL; | |
28549 | (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS); | |
28550 | ||
28551 | ; | |
28552 | return 0; | |
28553 | } | |
28554 | ||
28555 | _ACEOF | |
28556 | ||
28557 | ||
28558 | ||
28559 | cat - <<_ACEOF >conftest.h | |
28560 | ||
28561 | _ACEOF | |
28562 | ||
28563 | ||
28564 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28565 | echo "obj-m := conftest.o" >build/Makefile | |
28566 | modpost_flag='' | |
28567 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28568 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28569 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28570 | (eval $ac_try) 2>&5 | |
28571 | ac_status=$? | |
28572 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28573 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28574 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28575 | (eval $ac_try) 2>&5 | |
28576 | ac_status=$? | |
28577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28578 | test $ac_status = 0; }; }; then : | |
28579 | ||
28580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28581 | $as_echo "yes" >&6; } | |
28582 | ||
28583 | $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h | |
28584 | ||
28585 | ||
28586 | else | |
28587 | $as_echo "$as_me: failed program was:" >&5 | |
28588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28589 | ||
28590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28591 | $as_echo "no" >&6; } | |
28592 | ||
28593 | ||
28594 | ||
28595 | fi | |
28596 | rm -Rf build | |
28597 | ||
28598 | ||
28599 | EXTRA_KCFLAGS="$tmp_flags" | |
28600 | ||
28601 | ||
28602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5 | |
28603 | $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; } | |
28604 | tmp_flags="$EXTRA_KCFLAGS" | |
28605 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
28606 | ||
28607 | ||
28608 | cat confdefs.h - <<_ACEOF >conftest.c | |
28609 | ||
28610 | ||
28611 | #include <linux/blkdev.h> | |
28612 | ||
28613 | int | |
28614 | main (void) | |
28615 | { | |
28616 | ||
28617 | extern enum bio_rw_flags rw; | |
28618 | ||
28619 | rw = BIO_RW_UNPLUG; | |
28620 | ||
28621 | ; | |
28622 | return 0; | |
28623 | } | |
28624 | ||
28625 | _ACEOF | |
28626 | ||
28627 | ||
28628 | ||
28629 | cat - <<_ACEOF >conftest.h | |
28630 | ||
28631 | _ACEOF | |
28632 | ||
28633 | ||
28634 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28635 | echo "obj-m := conftest.o" >build/Makefile | |
28636 | modpost_flag='' | |
28637 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28638 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28639 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28640 | (eval $ac_try) 2>&5 | |
28641 | ac_status=$? | |
28642 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28643 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28644 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28645 | (eval $ac_try) 2>&5 | |
28646 | ac_status=$? | |
28647 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28648 | test $ac_status = 0; }; }; then : | |
28649 | ||
28650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28651 | $as_echo "yes" >&6; } | |
28652 | ||
28653 | $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h | |
28654 | ||
28655 | ||
28656 | else | |
28657 | $as_echo "$as_me: failed program was:" >&5 | |
28658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28659 | ||
28660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28661 | $as_echo "no" >&6; } | |
28662 | ||
28663 | ||
28664 | ||
28665 | fi | |
28666 | rm -Rf build | |
28667 | ||
28668 | ||
28669 | EXTRA_KCFLAGS="$tmp_flags" | |
28670 | ||
28671 | ||
28672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5 | |
28673 | $as_echo_n "checking whether struct blk_plug is available... " >&6; } | |
28674 | tmp_flags="$EXTRA_KCFLAGS" | |
28675 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
28676 | ||
28677 | ||
28678 | cat confdefs.h - <<_ACEOF >conftest.c | |
28679 | ||
28680 | ||
28681 | #include <linux/blkdev.h> | |
28682 | ||
28683 | int | |
28684 | main (void) | |
28685 | { | |
28686 | ||
28687 | struct blk_plug plug; | |
28688 | ||
28689 | blk_start_plug(&plug); | |
28690 | blk_finish_plug(&plug); | |
28691 | ||
28692 | ; | |
28693 | return 0; | |
28694 | } | |
28695 | ||
28696 | _ACEOF | |
28697 | ||
28698 | ||
28699 | ||
28700 | cat - <<_ACEOF >conftest.h | |
28701 | ||
28702 | _ACEOF | |
28703 | ||
28704 | ||
28705 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28706 | echo "obj-m := conftest.o" >build/Makefile | |
28707 | modpost_flag='' | |
28708 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28709 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28710 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28711 | (eval $ac_try) 2>&5 | |
28712 | ac_status=$? | |
28713 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28714 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28715 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28716 | (eval $ac_try) 2>&5 | |
28717 | ac_status=$? | |
28718 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28719 | test $ac_status = 0; }; }; then : | |
28720 | ||
28721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28722 | $as_echo "yes" >&6; } | |
28723 | ||
28724 | $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h | |
28725 | ||
28726 | ||
28727 | else | |
28728 | $as_echo "$as_me: failed program was:" >&5 | |
28729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28730 | ||
28731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28732 | $as_echo "no" >&6; } | |
28733 | ||
28734 | ||
28735 | ||
28736 | fi | |
28737 | rm -Rf build | |
28738 | ||
28739 | ||
28740 | EXTRA_KCFLAGS="$tmp_flags" | |
28741 | ||
28742 | ||
28743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5 | |
28744 | $as_echo_n "checking whether get_disk_ro() is available... " >&6; } | |
28745 | tmp_flags="$EXTRA_KCFLAGS" | |
28746 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
28747 | ||
28748 | ||
28749 | cat confdefs.h - <<_ACEOF >conftest.c | |
28750 | ||
28751 | ||
28752 | #include <linux/blkdev.h> | |
28753 | ||
28754 | int | |
28755 | main (void) | |
28756 | { | |
28757 | ||
28758 | struct gendisk *disk = NULL; | |
28759 | (void) get_disk_ro(disk); | |
28760 | ||
28761 | ; | |
28762 | return 0; | |
28763 | } | |
28764 | ||
28765 | _ACEOF | |
28766 | ||
28767 | ||
28768 | ||
28769 | cat - <<_ACEOF >conftest.h | |
28770 | ||
28771 | _ACEOF | |
28772 | ||
28773 | ||
28774 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28775 | echo "obj-m := conftest.o" >build/Makefile | |
28776 | modpost_flag='' | |
28777 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28778 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28779 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28780 | (eval $ac_try) 2>&5 | |
28781 | ac_status=$? | |
28782 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28783 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28784 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28785 | (eval $ac_try) 2>&5 | |
28786 | ac_status=$? | |
28787 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28788 | test $ac_status = 0; }; }; then : | |
28789 | ||
28790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28791 | $as_echo "yes" >&6; } | |
28792 | ||
28793 | $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h | |
28794 | ||
28795 | ||
28796 | else | |
28797 | $as_echo "$as_me: failed program was:" >&5 | |
28798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28799 | ||
28800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28801 | $as_echo "no" >&6; } | |
28802 | ||
28803 | ||
28804 | ||
28805 | fi | |
28806 | rm -Rf build | |
28807 | ||
28808 | ||
28809 | EXTRA_KCFLAGS="$tmp_flags" | |
28810 | ||
28811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5 | |
28812 | $as_echo_n "checking whether get_gendisk() is available... " >&6; } | |
28813 | ||
28814 | ||
28815 | ||
28816 | cat confdefs.h - <<_ACEOF >conftest.c | |
28817 | ||
28818 | ||
28819 | #include <linux/genhd.h> | |
28820 | ||
28821 | int | |
28822 | main (void) | |
28823 | { | |
28824 | ||
28825 | get_gendisk(0, NULL); | |
28826 | ||
28827 | ; | |
28828 | return 0; | |
28829 | } | |
28830 | ||
28831 | _ACEOF | |
28832 | ||
28833 | ||
28834 | ||
28835 | cat - <<_ACEOF >conftest.h | |
28836 | ||
28837 | _ACEOF | |
28838 | ||
28839 | ||
28840 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28841 | echo "obj-m := conftest.o" >build/Makefile | |
28842 | modpost_flag='' | |
28843 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28844 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28845 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28846 | (eval $ac_try) 2>&5 | |
28847 | ac_status=$? | |
28848 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28849 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28850 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28851 | (eval $ac_try) 2>&5 | |
28852 | ac_status=$? | |
28853 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28854 | test $ac_status = 0; }; }; then : | |
28855 | rc=0 | |
28856 | else | |
28857 | $as_echo "$as_me: failed program was:" >&5 | |
28858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28859 | rc=1 | |
28860 | ||
28861 | ||
28862 | fi | |
28863 | rm -Rf build | |
28864 | ||
28865 | ||
28866 | if test $rc -ne 0; then : | |
28867 | ||
28868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28869 | $as_echo "no" >&6; } | |
28870 | ||
28871 | else | |
28872 | if test "x$enable_linux_builtin" != xyes; then | |
28873 | ||
28874 | grep -q -E '[[:space:]]get_gendisk[[:space:]]' \ | |
28875 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
28876 | rc=$? | |
28877 | if test $rc -ne 0; then | |
28878 | export=0 | |
28879 | for file in block/genhd.c; do | |
28880 | grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \ | |
28881 | "$LINUX/$file" 2>/dev/null | |
28882 | rc=$? | |
28883 | if test $rc -eq 0; then | |
28884 | export=1 | |
28885 | break; | |
28886 | fi | |
28887 | done | |
28888 | if test $export -eq 0; then : | |
28889 | rc=1 | |
28890 | else : | |
28891 | rc=0 | |
28892 | fi | |
28893 | else : | |
28894 | rc=0 | |
28895 | fi | |
28896 | ||
28897 | fi | |
28898 | if test $rc -ne 0; then : | |
28899 | ||
28900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28901 | $as_echo "no" >&6; } | |
28902 | ||
28903 | else : | |
28904 | ||
28905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28906 | $as_echo "yes" >&6; } | |
28907 | ||
28908 | $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h | |
28909 | ||
28910 | ||
28911 | fi | |
28912 | fi | |
28913 | ||
28914 | ||
28915 | ||
28916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5 | |
28917 | $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; } | |
28918 | ||
28919 | ||
28920 | cat confdefs.h - <<_ACEOF >conftest.c | |
28921 | ||
28922 | ||
1ec59ff7 | 28923 | #include <linux/bio.h> |
87d546d8 TG |
28924 | |
28925 | int | |
28926 | main (void) | |
28927 | { | |
28928 | ||
28929 | struct bio *bio __attribute__ ((unused)) = NULL; | |
28930 | ||
28931 | bio_set_op_attrs(bio, 0, 0); | |
28932 | ||
28933 | ; | |
28934 | return 0; | |
28935 | } | |
28936 | ||
28937 | _ACEOF | |
28938 | ||
28939 | ||
28940 | ||
28941 | cat - <<_ACEOF >conftest.h | |
28942 | ||
28943 | _ACEOF | |
28944 | ||
28945 | ||
28946 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28947 | echo "obj-m := conftest.o" >build/Makefile | |
28948 | modpost_flag='' | |
28949 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28950 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28951 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28952 | (eval $ac_try) 2>&5 | |
28953 | ac_status=$? | |
28954 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28955 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28956 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28957 | (eval $ac_try) 2>&5 | |
28958 | ac_status=$? | |
28959 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28960 | test $ac_status = 0; }; }; then : | |
28961 | ||
28962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28963 | $as_echo "yes" >&6; } | |
28964 | ||
28965 | $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h | |
28966 | ||
28967 | ||
28968 | else | |
28969 | $as_echo "$as_me: failed program was:" >&5 | |
28970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28971 | ||
28972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28973 | $as_echo "no" >&6; } | |
28974 | ||
28975 | ||
28976 | ||
28977 | fi | |
28978 | rm -Rf build | |
28979 | ||
28980 | ||
28981 | ||
28982 | ||
28983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5 | |
28984 | $as_echo_n "checking whether generic_readlink is global... " >&6; } | |
28985 | ||
28986 | ||
28987 | cat confdefs.h - <<_ACEOF >conftest.c | |
28988 | ||
28989 | ||
28990 | #include <linux/fs.h> | |
28991 | ||
28992 | int | |
28993 | main (void) | |
28994 | { | |
28995 | ||
28996 | int i __attribute__ ((unused)); | |
28997 | ||
28998 | i = generic_readlink(NULL, NULL, 0); | |
28999 | ||
29000 | ; | |
29001 | return 0; | |
29002 | } | |
29003 | ||
29004 | _ACEOF | |
29005 | ||
29006 | ||
29007 | ||
29008 | cat - <<_ACEOF >conftest.h | |
29009 | ||
29010 | _ACEOF | |
29011 | ||
29012 | ||
29013 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29014 | echo "obj-m := conftest.o" >build/Makefile | |
29015 | modpost_flag='' | |
29016 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29017 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
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; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29023 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29024 | (eval $ac_try) 2>&5 | |
29025 | ac_status=$? | |
29026 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29027 | test $ac_status = 0; }; }; then : | |
29028 | ||
29029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29030 | $as_echo "yes" >&6; } | |
29031 | ||
29032 | $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h | |
29033 | ||
29034 | ||
29035 | else | |
29036 | $as_echo "$as_me: failed program was:" >&5 | |
29037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29038 | ||
29039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29040 | $as_echo "no" >&6; } | |
29041 | ||
29042 | ||
29043 | ||
29044 | fi | |
29045 | rm -Rf build | |
29046 | ||
29047 | ||
29048 | ||
29049 | ||
29050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5 | |
29051 | $as_echo_n "checking whether ql->discard_granularity is available... " >&6; } | |
29052 | ||
29053 | ||
29054 | cat confdefs.h - <<_ACEOF >conftest.c | |
29055 | ||
29056 | ||
29057 | #include <linux/blkdev.h> | |
29058 | ||
29059 | int | |
29060 | main (void) | |
29061 | { | |
29062 | ||
29063 | struct queue_limits ql __attribute__ ((unused)); | |
29064 | ||
29065 | ql.discard_granularity = 0; | |
29066 | ||
29067 | ; | |
29068 | return 0; | |
29069 | } | |
29070 | ||
29071 | _ACEOF | |
29072 | ||
29073 | ||
29074 | ||
29075 | cat - <<_ACEOF >conftest.h | |
29076 | ||
29077 | _ACEOF | |
29078 | ||
29079 | ||
29080 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29081 | echo "obj-m := conftest.o" >build/Makefile | |
29082 | modpost_flag='' | |
29083 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29084 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29085 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29086 | (eval $ac_try) 2>&5 | |
29087 | ac_status=$? | |
29088 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29089 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29090 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29091 | (eval $ac_try) 2>&5 | |
29092 | ac_status=$? | |
29093 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29094 | test $ac_status = 0; }; }; then : | |
29095 | ||
29096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29097 | $as_echo "yes" >&6; } | |
29098 | ||
29099 | $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h | |
29100 | ||
29101 | ||
29102 | else | |
29103 | $as_echo "$as_me: failed program was:" >&5 | |
29104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29105 | ||
29106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29107 | $as_echo "no" >&6; } | |
29108 | ||
29109 | ||
29110 | ||
29111 | fi | |
29112 | rm -Rf build | |
29113 | ||
29114 | ||
29115 | ||
29116 | ||
29117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5 | |
29118 | $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; } | |
29119 | ||
29120 | ||
29121 | cat confdefs.h - <<_ACEOF >conftest.c | |
29122 | ||
29123 | ||
29124 | #include <linux/fs.h> | |
29125 | #include <linux/xattr.h> | |
29126 | ||
29127 | const struct xattr_handler xattr_test_handler = { | |
29128 | .prefix = "test", | |
29129 | .get = NULL, | |
29130 | .set = NULL, | |
29131 | }; | |
29132 | ||
29133 | const struct xattr_handler *xattr_handlers[] = { | |
29134 | &xattr_test_handler, | |
29135 | }; | |
29136 | ||
29137 | const struct super_block sb __attribute__ ((unused)) = { | |
29138 | .s_xattr = xattr_handlers, | |
29139 | }; | |
29140 | ||
29141 | int | |
29142 | main (void) | |
29143 | { | |
29144 | ||
29145 | ||
29146 | ; | |
29147 | return 0; | |
29148 | } | |
29149 | ||
29150 | _ACEOF | |
29151 | ||
29152 | ||
29153 | ||
29154 | cat - <<_ACEOF >conftest.h | |
29155 | ||
29156 | _ACEOF | |
29157 | ||
29158 | ||
29159 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29160 | echo "obj-m := conftest.o" >build/Makefile | |
29161 | modpost_flag='' | |
29162 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29163 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29164 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29165 | (eval $ac_try) 2>&5 | |
29166 | ac_status=$? | |
29167 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29168 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29169 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29170 | (eval $ac_try) 2>&5 | |
29171 | ac_status=$? | |
29172 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29173 | test $ac_status = 0; }; }; then : | |
29174 | ||
29175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29176 | $as_echo "yes" >&6; } | |
29177 | ||
29178 | $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h | |
29179 | ||
29180 | ||
29181 | else | |
29182 | $as_echo "$as_me: failed program was:" >&5 | |
29183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29184 | ||
29185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29186 | $as_echo "no" >&6; } | |
29187 | ||
29188 | ||
29189 | ||
29190 | fi | |
29191 | rm -Rf build | |
29192 | ||
29193 | ||
29194 | ||
29195 | ||
29196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5 | |
29197 | $as_echo_n "checking whether xattr_handler has name... " >&6; } | |
29198 | ||
29199 | ||
29200 | cat confdefs.h - <<_ACEOF >conftest.c | |
29201 | ||
29202 | ||
29203 | #include <linux/xattr.h> | |
29204 | ||
29205 | static const struct xattr_handler | |
29206 | xops __attribute__ ((unused)) = { | |
29207 | .name = XATTR_NAME_POSIX_ACL_ACCESS, | |
29208 | }; | |
29209 | ||
29210 | int | |
29211 | main (void) | |
29212 | { | |
29213 | ||
29214 | ||
29215 | ; | |
29216 | return 0; | |
29217 | } | |
29218 | ||
29219 | _ACEOF | |
29220 | ||
29221 | ||
29222 | ||
29223 | cat - <<_ACEOF >conftest.h | |
29224 | ||
29225 | _ACEOF | |
29226 | ||
29227 | ||
29228 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29229 | echo "obj-m := conftest.o" >build/Makefile | |
29230 | modpost_flag='' | |
29231 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29232 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29233 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29234 | (eval $ac_try) 2>&5 | |
29235 | ac_status=$? | |
29236 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29237 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29238 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29239 | (eval $ac_try) 2>&5 | |
29240 | ac_status=$? | |
29241 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29242 | test $ac_status = 0; }; }; then : | |
29243 | ||
29244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29245 | $as_echo "yes" >&6; } | |
29246 | ||
29247 | $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h | |
29248 | ||
29249 | ||
29250 | else | |
29251 | $as_echo "$as_me: failed program was:" >&5 | |
29252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29253 | ||
29254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29255 | $as_echo "no" >&6; } | |
29256 | ||
29257 | ||
29258 | ||
29259 | fi | |
29260 | rm -Rf build | |
29261 | ||
29262 | ||
29263 | ||
29264 | ||
29265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5 | |
29266 | $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; } | |
29267 | ||
29268 | ||
29269 | cat confdefs.h - <<_ACEOF >conftest.c | |
29270 | ||
29271 | ||
29272 | #include <linux/xattr.h> | |
29273 | ||
29274 | int get(const struct xattr_handler *handler, | |
29275 | struct dentry *dentry, struct inode *inode, | |
29276 | const char *name, void *buffer, size_t size) { return 0; } | |
29277 | static const struct xattr_handler | |
29278 | xops __attribute__ ((unused)) = { | |
29279 | .get = get, | |
29280 | }; | |
29281 | ||
29282 | int | |
29283 | main (void) | |
29284 | { | |
29285 | ||
29286 | ||
29287 | ; | |
29288 | return 0; | |
29289 | } | |
29290 | ||
29291 | _ACEOF | |
29292 | ||
29293 | ||
29294 | ||
29295 | cat - <<_ACEOF >conftest.h | |
29296 | ||
29297 | _ACEOF | |
29298 | ||
29299 | ||
29300 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29301 | echo "obj-m := conftest.o" >build/Makefile | |
29302 | modpost_flag='' | |
29303 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29304 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29305 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29306 | (eval $ac_try) 2>&5 | |
29307 | ac_status=$? | |
29308 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29309 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29310 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29311 | (eval $ac_try) 2>&5 | |
29312 | ac_status=$? | |
29313 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29314 | test $ac_status = 0; }; }; then : | |
29315 | ||
29316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29317 | $as_echo "yes" >&6; } | |
29318 | ||
29319 | $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h | |
29320 | ||
29321 | ||
29322 | else | |
29323 | $as_echo "$as_me: failed program was:" >&5 | |
29324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29325 | ||
29326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5 | |
29327 | $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; } | |
29328 | ||
29329 | ||
29330 | cat confdefs.h - <<_ACEOF >conftest.c | |
29331 | ||
29332 | ||
29333 | #include <linux/xattr.h> | |
29334 | ||
29335 | int get(const struct xattr_handler *handler, | |
29336 | struct dentry *dentry, const char *name, | |
29337 | void *buffer, size_t size) { return 0; } | |
29338 | static const struct xattr_handler | |
29339 | xops __attribute__ ((unused)) = { | |
29340 | .get = get, | |
29341 | }; | |
29342 | ||
29343 | int | |
29344 | main (void) | |
29345 | { | |
29346 | ||
29347 | ||
29348 | ; | |
29349 | return 0; | |
29350 | } | |
29351 | ||
29352 | _ACEOF | |
29353 | ||
29354 | ||
29355 | ||
29356 | cat - <<_ACEOF >conftest.h | |
29357 | ||
29358 | _ACEOF | |
29359 | ||
29360 | ||
29361 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29362 | echo "obj-m := conftest.o" >build/Makefile | |
29363 | modpost_flag='' | |
29364 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29365 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29366 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29367 | (eval $ac_try) 2>&5 | |
29368 | ac_status=$? | |
29369 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29370 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29371 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29372 | (eval $ac_try) 2>&5 | |
29373 | ac_status=$? | |
29374 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29375 | test $ac_status = 0; }; }; then : | |
29376 | ||
29377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29378 | $as_echo "yes" >&6; } | |
29379 | ||
29380 | $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h | |
29381 | ||
29382 | ||
29383 | else | |
29384 | $as_echo "$as_me: failed program was:" >&5 | |
29385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29386 | ||
29387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29388 | $as_echo "no" >&6; } | |
29389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5 | |
29390 | $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; } | |
29391 | ||
29392 | ||
29393 | cat confdefs.h - <<_ACEOF >conftest.c | |
29394 | ||
29395 | ||
29396 | #include <linux/xattr.h> | |
29397 | ||
29398 | int get(struct dentry *dentry, const char *name, | |
29399 | void *buffer, size_t size, int handler_flags) | |
29400 | { return 0; } | |
29401 | static const struct xattr_handler | |
29402 | xops __attribute__ ((unused)) = { | |
29403 | .get = get, | |
29404 | }; | |
29405 | ||
29406 | int | |
29407 | main (void) | |
29408 | { | |
29409 | ||
29410 | ||
29411 | ; | |
29412 | return 0; | |
29413 | } | |
29414 | ||
29415 | _ACEOF | |
29416 | ||
29417 | ||
29418 | ||
29419 | cat - <<_ACEOF >conftest.h | |
29420 | ||
29421 | _ACEOF | |
29422 | ||
29423 | ||
29424 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29425 | echo "obj-m := conftest.o" >build/Makefile | |
29426 | modpost_flag='' | |
29427 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29428 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29429 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29430 | (eval $ac_try) 2>&5 | |
29431 | ac_status=$? | |
29432 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29433 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29434 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29435 | (eval $ac_try) 2>&5 | |
29436 | ac_status=$? | |
29437 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29438 | test $ac_status = 0; }; }; then : | |
29439 | ||
29440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29441 | $as_echo "yes" >&6; } | |
29442 | ||
29443 | $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h | |
29444 | ||
29445 | ||
29446 | else | |
29447 | $as_echo "$as_me: failed program was:" >&5 | |
29448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29449 | ||
29450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29451 | $as_echo "no" >&6; } | |
29452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5 | |
29453 | $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; } | |
29454 | ||
29455 | ||
29456 | cat confdefs.h - <<_ACEOF >conftest.c | |
29457 | ||
29458 | ||
29459 | #include <linux/xattr.h> | |
29460 | ||
29461 | int get(struct inode *ip, const char *name, | |
29462 | void *buffer, size_t size) { return 0; } | |
29463 | static const struct xattr_handler | |
29464 | xops __attribute__ ((unused)) = { | |
29465 | .get = get, | |
29466 | }; | |
29467 | ||
29468 | int | |
29469 | main (void) | |
29470 | { | |
29471 | ||
29472 | ||
29473 | ; | |
29474 | return 0; | |
29475 | } | |
29476 | ||
29477 | _ACEOF | |
29478 | ||
29479 | ||
29480 | ||
29481 | cat - <<_ACEOF >conftest.h | |
29482 | ||
29483 | _ACEOF | |
29484 | ||
29485 | ||
29486 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29487 | echo "obj-m := conftest.o" >build/Makefile | |
29488 | modpost_flag='' | |
29489 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29490 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29491 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29492 | (eval $ac_try) 2>&5 | |
29493 | ac_status=$? | |
29494 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29495 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29496 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29497 | (eval $ac_try) 2>&5 | |
29498 | ac_status=$? | |
29499 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29500 | test $ac_status = 0; }; }; then : | |
29501 | ||
29502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29503 | $as_echo "yes" >&6; } | |
29504 | ||
29505 | $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h | |
29506 | ||
29507 | ||
29508 | else | |
29509 | $as_echo "$as_me: failed program was:" >&5 | |
29510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29511 | ||
29512 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
29513 | ||
29514 | ||
29515 | ||
29516 | fi | |
29517 | rm -Rf build | |
29518 | ||
29519 | ||
29520 | ||
29521 | ||
29522 | ||
29523 | fi | |
29524 | rm -Rf build | |
29525 | ||
29526 | ||
29527 | ||
29528 | ||
29529 | ||
29530 | fi | |
29531 | rm -Rf build | |
29532 | ||
29533 | ||
29534 | ||
29535 | ||
29536 | ||
29537 | fi | |
29538 | rm -Rf build | |
29539 | ||
29540 | ||
29541 | ||
29542 | ||
29543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5 | |
29544 | $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; } | |
29545 | ||
29546 | ||
29547 | cat confdefs.h - <<_ACEOF >conftest.c | |
29548 | ||
29549 | ||
29550 | #include <linux/xattr.h> | |
29551 | ||
29552 | int set(const struct xattr_handler *handler, | |
29553 | struct dentry *dentry, struct inode *inode, | |
29554 | const char *name, const void *buffer, | |
29555 | size_t size, int flags) | |
29556 | { return 0; } | |
29557 | static const struct xattr_handler | |
29558 | xops __attribute__ ((unused)) = { | |
29559 | .set = set, | |
29560 | }; | |
29561 | ||
29562 | int | |
29563 | main (void) | |
29564 | { | |
29565 | ||
29566 | ||
29567 | ; | |
29568 | return 0; | |
29569 | } | |
29570 | ||
29571 | _ACEOF | |
29572 | ||
29573 | ||
29574 | ||
29575 | cat - <<_ACEOF >conftest.h | |
29576 | ||
29577 | _ACEOF | |
29578 | ||
29579 | ||
29580 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29581 | echo "obj-m := conftest.o" >build/Makefile | |
29582 | modpost_flag='' | |
29583 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29584 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29585 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29586 | (eval $ac_try) 2>&5 | |
29587 | ac_status=$? | |
29588 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29589 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29590 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29591 | (eval $ac_try) 2>&5 | |
29592 | ac_status=$? | |
29593 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29594 | test $ac_status = 0; }; }; then : | |
29595 | ||
29596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29597 | $as_echo "yes" >&6; } | |
29598 | ||
29599 | $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h | |
29600 | ||
29601 | ||
29602 | else | |
29603 | $as_echo "$as_me: failed program was:" >&5 | |
29604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29605 | ||
29606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5 | |
29607 | $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; } | |
29608 | ||
29609 | ||
29610 | cat confdefs.h - <<_ACEOF >conftest.c | |
29611 | ||
29612 | ||
29613 | #include <linux/xattr.h> | |
29614 | ||
29615 | int set(const struct xattr_handler *handler, | |
29616 | struct dentry *dentry, const char *name, | |
29617 | const void *buffer, size_t size, int flags) | |
29618 | { return 0; } | |
29619 | static const struct xattr_handler | |
29620 | xops __attribute__ ((unused)) = { | |
29621 | .set = set, | |
29622 | }; | |
29623 | ||
29624 | int | |
29625 | main (void) | |
29626 | { | |
29627 | ||
29628 | ||
29629 | ; | |
29630 | return 0; | |
29631 | } | |
29632 | ||
29633 | _ACEOF | |
29634 | ||
29635 | ||
29636 | ||
29637 | cat - <<_ACEOF >conftest.h | |
29638 | ||
29639 | _ACEOF | |
29640 | ||
29641 | ||
29642 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29643 | echo "obj-m := conftest.o" >build/Makefile | |
29644 | modpost_flag='' | |
29645 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29646 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29647 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29648 | (eval $ac_try) 2>&5 | |
29649 | ac_status=$? | |
29650 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29651 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29652 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29653 | (eval $ac_try) 2>&5 | |
29654 | ac_status=$? | |
29655 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29656 | test $ac_status = 0; }; }; then : | |
29657 | ||
29658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29659 | $as_echo "yes" >&6; } | |
29660 | ||
29661 | $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h | |
29662 | ||
29663 | ||
29664 | else | |
29665 | $as_echo "$as_me: failed program was:" >&5 | |
29666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29667 | ||
29668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29669 | $as_echo "no" >&6; } | |
29670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5 | |
29671 | $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; } | |
29672 | ||
29673 | ||
29674 | cat confdefs.h - <<_ACEOF >conftest.c | |
29675 | ||
29676 | ||
29677 | #include <linux/xattr.h> | |
29678 | ||
29679 | int set(struct dentry *dentry, const char *name, | |
29680 | const void *buffer, size_t size, int flags, | |
29681 | int handler_flags) { return 0; } | |
29682 | static const struct xattr_handler | |
29683 | xops __attribute__ ((unused)) = { | |
29684 | .set = set, | |
29685 | }; | |
29686 | ||
29687 | int | |
29688 | main (void) | |
29689 | { | |
29690 | ||
29691 | ||
29692 | ; | |
29693 | return 0; | |
29694 | } | |
29695 | ||
29696 | _ACEOF | |
29697 | ||
29698 | ||
29699 | ||
29700 | cat - <<_ACEOF >conftest.h | |
29701 | ||
29702 | _ACEOF | |
29703 | ||
29704 | ||
29705 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29706 | echo "obj-m := conftest.o" >build/Makefile | |
29707 | modpost_flag='' | |
29708 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29709 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29710 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29711 | (eval $ac_try) 2>&5 | |
29712 | ac_status=$? | |
29713 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29714 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29715 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29716 | (eval $ac_try) 2>&5 | |
29717 | ac_status=$? | |
29718 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29719 | test $ac_status = 0; }; }; then : | |
29720 | ||
29721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29722 | $as_echo "yes" >&6; } | |
29723 | ||
29724 | $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h | |
29725 | ||
29726 | ||
29727 | else | |
29728 | $as_echo "$as_me: failed program was:" >&5 | |
29729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29730 | ||
29731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29732 | $as_echo "no" >&6; } | |
29733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5 | |
29734 | $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; } | |
29735 | ||
29736 | ||
29737 | cat confdefs.h - <<_ACEOF >conftest.c | |
29738 | ||
29739 | ||
29740 | #include <linux/xattr.h> | |
29741 | ||
29742 | int set(struct inode *ip, const char *name, | |
29743 | const void *buffer, size_t size, int flags) | |
29744 | { return 0; } | |
29745 | static const struct xattr_handler | |
29746 | xops __attribute__ ((unused)) = { | |
29747 | .set = set, | |
29748 | }; | |
29749 | ||
29750 | int | |
29751 | main (void) | |
29752 | { | |
29753 | ||
29754 | ||
29755 | ; | |
29756 | return 0; | |
29757 | } | |
29758 | ||
29759 | _ACEOF | |
29760 | ||
29761 | ||
29762 | ||
29763 | cat - <<_ACEOF >conftest.h | |
29764 | ||
29765 | _ACEOF | |
29766 | ||
29767 | ||
29768 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29769 | echo "obj-m := conftest.o" >build/Makefile | |
29770 | modpost_flag='' | |
29771 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29772 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29773 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29774 | (eval $ac_try) 2>&5 | |
29775 | ac_status=$? | |
29776 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29777 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29778 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29779 | (eval $ac_try) 2>&5 | |
29780 | ac_status=$? | |
29781 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29782 | test $ac_status = 0; }; }; then : | |
29783 | ||
29784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29785 | $as_echo "yes" >&6; } | |
29786 | ||
29787 | $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h | |
29788 | ||
29789 | ||
29790 | else | |
29791 | $as_echo "$as_me: failed program was:" >&5 | |
29792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29793 | ||
29794 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
29795 | ||
29796 | ||
29797 | ||
29798 | fi | |
29799 | rm -Rf build | |
29800 | ||
29801 | ||
29802 | ||
29803 | ||
29804 | ||
29805 | fi | |
29806 | rm -Rf build | |
29807 | ||
29808 | ||
29809 | ||
29810 | ||
29811 | ||
29812 | fi | |
29813 | rm -Rf build | |
29814 | ||
29815 | ||
29816 | ||
29817 | ||
29818 | ||
29819 | fi | |
29820 | rm -Rf build | |
29821 | ||
29822 | ||
29823 | ||
29824 | ||
29825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5 | |
29826 | $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; } | |
29827 | ||
29828 | ||
29829 | cat confdefs.h - <<_ACEOF >conftest.c | |
29830 | ||
29831 | ||
29832 | #include <linux/xattr.h> | |
29833 | ||
29834 | bool list(struct dentry *dentry) { return 0; } | |
29835 | static const struct xattr_handler | |
29836 | xops __attribute__ ((unused)) = { | |
29837 | .list = list, | |
29838 | }; | |
29839 | ||
29840 | int | |
29841 | main (void) | |
29842 | { | |
29843 | ||
29844 | ||
29845 | ; | |
29846 | return 0; | |
29847 | } | |
29848 | ||
29849 | _ACEOF | |
29850 | ||
29851 | ||
29852 | ||
29853 | cat - <<_ACEOF >conftest.h | |
29854 | ||
29855 | _ACEOF | |
29856 | ||
29857 | ||
29858 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29859 | echo "obj-m := conftest.o" >build/Makefile | |
29860 | modpost_flag='' | |
29861 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29862 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29863 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29864 | (eval $ac_try) 2>&5 | |
29865 | ac_status=$? | |
29866 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29867 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29868 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29869 | (eval $ac_try) 2>&5 | |
29870 | ac_status=$? | |
29871 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29872 | test $ac_status = 0; }; }; then : | |
29873 | ||
29874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29875 | $as_echo "yes" >&6; } | |
29876 | ||
29877 | $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h | |
29878 | ||
29879 | ||
29880 | else | |
29881 | $as_echo "$as_me: failed program was:" >&5 | |
29882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29883 | ||
29884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29885 | $as_echo "no" >&6; } | |
29886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5 | |
29887 | $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; } | |
29888 | ||
29889 | ||
29890 | cat confdefs.h - <<_ACEOF >conftest.c | |
29891 | ||
29892 | ||
29893 | #include <linux/xattr.h> | |
29894 | ||
29895 | size_t list(const struct xattr_handler *handler, | |
29896 | struct dentry *dentry, char *list, size_t list_size, | |
29897 | const char *name, size_t name_len) { return 0; } | |
29898 | static const struct xattr_handler | |
29899 | xops __attribute__ ((unused)) = { | |
29900 | .list = list, | |
29901 | }; | |
29902 | ||
29903 | int | |
29904 | main (void) | |
29905 | { | |
29906 | ||
29907 | ||
29908 | ; | |
29909 | return 0; | |
29910 | } | |
29911 | ||
29912 | _ACEOF | |
29913 | ||
29914 | ||
29915 | ||
29916 | cat - <<_ACEOF >conftest.h | |
29917 | ||
29918 | _ACEOF | |
29919 | ||
29920 | ||
29921 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29922 | echo "obj-m := conftest.o" >build/Makefile | |
29923 | modpost_flag='' | |
29924 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29925 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29926 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29927 | (eval $ac_try) 2>&5 | |
29928 | ac_status=$? | |
29929 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29930 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29931 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29932 | (eval $ac_try) 2>&5 | |
29933 | ac_status=$? | |
29934 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29935 | test $ac_status = 0; }; }; then : | |
29936 | ||
29937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29938 | $as_echo "yes" >&6; } | |
29939 | ||
29940 | $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h | |
29941 | ||
29942 | ||
29943 | else | |
29944 | $as_echo "$as_me: failed program was:" >&5 | |
29945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29946 | ||
29947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29948 | $as_echo "no" >&6; } | |
29949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5 | |
29950 | $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; } | |
29951 | ||
29952 | ||
29953 | cat confdefs.h - <<_ACEOF >conftest.c | |
29954 | ||
29955 | ||
29956 | #include <linux/xattr.h> | |
29957 | ||
29958 | size_t list(struct dentry *dentry, | |
29959 | char *list, size_t list_size, | |
29960 | const char *name, size_t name_len, | |
29961 | int handler_flags) { return 0; } | |
29962 | static const struct xattr_handler | |
29963 | xops __attribute__ ((unused)) = { | |
29964 | .list = list, | |
29965 | }; | |
29966 | ||
29967 | int | |
29968 | main (void) | |
29969 | { | |
29970 | ||
29971 | ||
29972 | ; | |
29973 | return 0; | |
29974 | } | |
29975 | ||
29976 | _ACEOF | |
29977 | ||
29978 | ||
29979 | ||
29980 | cat - <<_ACEOF >conftest.h | |
29981 | ||
29982 | _ACEOF | |
29983 | ||
29984 | ||
29985 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29986 | echo "obj-m := conftest.o" >build/Makefile | |
29987 | modpost_flag='' | |
29988 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29989 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29990 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29991 | (eval $ac_try) 2>&5 | |
29992 | ac_status=$? | |
29993 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29994 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29995 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29996 | (eval $ac_try) 2>&5 | |
29997 | ac_status=$? | |
29998 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29999 | test $ac_status = 0; }; }; then : | |
30000 | ||
30001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30002 | $as_echo "yes" >&6; } | |
30003 | ||
30004 | $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h | |
30005 | ||
30006 | ||
30007 | else | |
30008 | $as_echo "$as_me: failed program was:" >&5 | |
30009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30010 | ||
30011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30012 | $as_echo "no" >&6; } | |
30013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5 | |
30014 | $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; } | |
30015 | ||
30016 | ||
30017 | cat confdefs.h - <<_ACEOF >conftest.c | |
30018 | ||
30019 | ||
30020 | #include <linux/xattr.h> | |
30021 | ||
30022 | size_t list(struct inode *ip, char *lst, | |
30023 | size_t list_size, const char *name, | |
30024 | size_t name_len) { return 0; } | |
30025 | static const struct xattr_handler | |
30026 | xops __attribute__ ((unused)) = { | |
30027 | .list = list, | |
30028 | }; | |
30029 | ||
30030 | int | |
30031 | main (void) | |
30032 | { | |
30033 | ||
30034 | ||
30035 | ; | |
30036 | return 0; | |
30037 | } | |
30038 | ||
30039 | _ACEOF | |
30040 | ||
30041 | ||
30042 | ||
30043 | cat - <<_ACEOF >conftest.h | |
30044 | ||
30045 | _ACEOF | |
30046 | ||
30047 | ||
30048 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30049 | echo "obj-m := conftest.o" >build/Makefile | |
30050 | modpost_flag='' | |
30051 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30052 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30053 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30054 | (eval $ac_try) 2>&5 | |
30055 | ac_status=$? | |
30056 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30057 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30058 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30059 | (eval $ac_try) 2>&5 | |
30060 | ac_status=$? | |
30061 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30062 | test $ac_status = 0; }; }; then : | |
30063 | ||
30064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30065 | $as_echo "yes" >&6; } | |
30066 | ||
30067 | $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h | |
30068 | ||
30069 | ||
30070 | else | |
30071 | $as_echo "$as_me: failed program was:" >&5 | |
30072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30073 | ||
30074 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
30075 | ||
30076 | ||
30077 | ||
30078 | fi | |
30079 | rm -Rf build | |
30080 | ||
30081 | ||
30082 | ||
30083 | ||
30084 | ||
30085 | fi | |
30086 | rm -Rf build | |
30087 | ||
30088 | ||
30089 | ||
30090 | ||
30091 | ||
30092 | fi | |
30093 | rm -Rf build | |
30094 | ||
30095 | ||
30096 | ||
30097 | ||
30098 | ||
30099 | fi | |
30100 | rm -Rf build | |
30101 | ||
30102 | ||
30103 | ||
30104 | ||
30105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5 | |
30106 | $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; } | |
30107 | ||
30108 | ||
30109 | cat confdefs.h - <<_ACEOF >conftest.c | |
30110 | ||
30111 | ||
30112 | #include <linux/fs.h> | |
30113 | ||
30114 | int | |
30115 | main (void) | |
30116 | { | |
30117 | ||
30118 | struct inode *ip = NULL; | |
30119 | (void) inode_owner_or_capable(ip); | |
30120 | ||
30121 | ; | |
30122 | return 0; | |
30123 | } | |
30124 | ||
30125 | _ACEOF | |
30126 | ||
30127 | ||
30128 | ||
30129 | cat - <<_ACEOF >conftest.h | |
30130 | ||
30131 | _ACEOF | |
30132 | ||
30133 | ||
30134 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30135 | echo "obj-m := conftest.o" >build/Makefile | |
30136 | modpost_flag='' | |
30137 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30138 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30139 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30140 | (eval $ac_try) 2>&5 | |
30141 | ac_status=$? | |
30142 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30143 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30144 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30145 | (eval $ac_try) 2>&5 | |
30146 | ac_status=$? | |
30147 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30148 | test $ac_status = 0; }; }; then : | |
30149 | ||
30150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30151 | $as_echo "yes" >&6; } | |
30152 | ||
30153 | $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h | |
30154 | ||
30155 | ||
30156 | else | |
30157 | $as_echo "$as_me: failed program was:" >&5 | |
30158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30159 | ||
30160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30161 | $as_echo "no" >&6; } | |
30162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5 | |
30163 | $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; } | |
30164 | ||
30165 | ||
30166 | cat confdefs.h - <<_ACEOF >conftest.c | |
30167 | ||
30168 | ||
30169 | #include <linux/fs.h> | |
30170 | #include <linux/sched.h> | |
30171 | ||
30172 | int | |
30173 | main (void) | |
30174 | { | |
30175 | ||
30176 | struct inode *ip = NULL; | |
30177 | (void) is_owner_or_cap(ip); | |
30178 | ||
30179 | ; | |
30180 | return 0; | |
30181 | } | |
30182 | ||
30183 | _ACEOF | |
30184 | ||
30185 | ||
30186 | ||
30187 | cat - <<_ACEOF >conftest.h | |
30188 | ||
30189 | _ACEOF | |
30190 | ||
30191 | ||
30192 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30193 | echo "obj-m := conftest.o" >build/Makefile | |
30194 | modpost_flag='' | |
30195 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30196 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30197 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30198 | (eval $ac_try) 2>&5 | |
30199 | ac_status=$? | |
30200 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30201 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30202 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30203 | (eval $ac_try) 2>&5 | |
30204 | ac_status=$? | |
30205 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30206 | test $ac_status = 0; }; }; then : | |
30207 | ||
30208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30209 | $as_echo "yes" >&6; } | |
30210 | ||
30211 | $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h | |
30212 | ||
30213 | ||
30214 | else | |
30215 | $as_echo "$as_me: failed program was:" >&5 | |
30216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30217 | ||
30218 | as_fn_error $? "no - Please file a bug report at | |
30219 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
30220 | ||
30221 | ||
30222 | ||
30223 | fi | |
30224 | rm -Rf build | |
30225 | ||
30226 | ||
30227 | ||
30228 | ||
30229 | ||
30230 | fi | |
30231 | rm -Rf build | |
30232 | ||
30233 | ||
30234 | ||
30235 | ||
30236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5 | |
30237 | $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; } | |
30238 | ||
30239 | ||
30240 | cat confdefs.h - <<_ACEOF >conftest.c | |
30241 | ||
30242 | ||
30243 | #include <linux/cred.h> | |
30244 | #include <linux/fs.h> | |
30245 | #include <linux/posix_acl_xattr.h> | |
30246 | ||
30247 | int | |
30248 | main (void) | |
30249 | { | |
30250 | ||
30251 | posix_acl_from_xattr(&init_user_ns, NULL, 0); | |
30252 | ||
30253 | ; | |
30254 | return 0; | |
30255 | } | |
30256 | ||
30257 | _ACEOF | |
30258 | ||
30259 | ||
30260 | ||
30261 | cat - <<_ACEOF >conftest.h | |
30262 | ||
30263 | _ACEOF | |
30264 | ||
30265 | ||
30266 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30267 | echo "obj-m := conftest.o" >build/Makefile | |
30268 | modpost_flag='' | |
30269 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30270 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30271 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30272 | (eval $ac_try) 2>&5 | |
30273 | ac_status=$? | |
30274 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30275 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30276 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30277 | (eval $ac_try) 2>&5 | |
30278 | ac_status=$? | |
30279 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30280 | test $ac_status = 0; }; }; then : | |
30281 | ||
30282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30283 | $as_echo "yes" >&6; } | |
30284 | ||
30285 | $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h | |
30286 | ||
30287 | ||
30288 | else | |
30289 | $as_echo "$as_me: failed program was:" >&5 | |
30290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30291 | ||
30292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30293 | $as_echo "no" >&6; } | |
30294 | ||
30295 | ||
30296 | ||
30297 | fi | |
30298 | rm -Rf build | |
30299 | ||
30300 | ||
30301 | ||
30302 | ||
30303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5 | |
30304 | $as_echo_n "checking whether posix_acl_release() is available... " >&6; } | |
30305 | ||
30306 | ||
30307 | cat confdefs.h - <<_ACEOF >conftest.c | |
30308 | ||
30309 | ||
30310 | #include <linux/cred.h> | |
30311 | #include <linux/fs.h> | |
30312 | #include <linux/posix_acl.h> | |
30313 | ||
30314 | int | |
30315 | main (void) | |
30316 | { | |
30317 | ||
30318 | struct posix_acl* tmp = posix_acl_alloc(1, 0); | |
30319 | posix_acl_release(tmp); | |
30320 | ||
30321 | ; | |
30322 | return 0; | |
30323 | } | |
30324 | ||
30325 | _ACEOF | |
30326 | ||
30327 | ||
30328 | ||
30329 | cat - <<_ACEOF >conftest.h | |
30330 | ||
30331 | _ACEOF | |
30332 | ||
30333 | ||
30334 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30335 | echo "obj-m := conftest.o" >build/Makefile | |
30336 | modpost_flag='' | |
30337 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30338 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30339 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30340 | (eval $ac_try) 2>&5 | |
30341 | ac_status=$? | |
30342 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30343 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30344 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30345 | (eval $ac_try) 2>&5 | |
30346 | ac_status=$? | |
30347 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30348 | test $ac_status = 0; }; }; then : | |
30349 | ||
30350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30351 | $as_echo "yes" >&6; } | |
30352 | ||
30353 | $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h | |
30354 | ||
30355 | ||
30356 | else | |
30357 | $as_echo "$as_me: failed program was:" >&5 | |
30358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30359 | ||
30360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30361 | $as_echo "no" >&6; } | |
30362 | ||
30363 | ||
30364 | ||
30365 | fi | |
30366 | rm -Rf build | |
30367 | ||
30368 | ||
30369 | ||
30370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5 | |
30371 | $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; } | |
30372 | ||
30373 | ||
30374 | cat confdefs.h - <<_ACEOF >conftest.c | |
30375 | ||
30376 | ||
30377 | #include <linux/cred.h> | |
30378 | #include <linux/fs.h> | |
30379 | #include <linux/posix_acl.h> | |
30380 | ||
30381 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
30382 | ||
30383 | int | |
30384 | main (void) | |
30385 | { | |
30386 | ||
30387 | struct posix_acl* tmp = posix_acl_alloc(1, 0); | |
30388 | posix_acl_release(tmp); | |
30389 | ||
30390 | ; | |
30391 | return 0; | |
30392 | } | |
30393 | ||
30394 | _ACEOF | |
30395 | ||
30396 | ||
30397 | ||
30398 | cat - <<_ACEOF >conftest.h | |
30399 | ||
30400 | _ACEOF | |
30401 | ||
30402 | ||
30403 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30404 | echo "obj-m := conftest.o" >build/Makefile | |
30405 | modpost_flag='' | |
30406 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30407 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30408 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30409 | (eval $ac_try) 2>&5 | |
30410 | ac_status=$? | |
30411 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30412 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30413 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30414 | (eval $ac_try) 2>&5 | |
30415 | ac_status=$? | |
30416 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30417 | test $ac_status = 0; }; }; then : | |
30418 | ||
30419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30420 | $as_echo "no" >&6; } | |
30421 | ||
30422 | else | |
30423 | $as_echo "$as_me: failed program was:" >&5 | |
30424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30425 | ||
30426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30427 | $as_echo "yes" >&6; } | |
30428 | ||
30429 | $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h | |
30430 | ||
30431 | ||
30432 | ||
30433 | ||
30434 | fi | |
30435 | rm -Rf build | |
30436 | ||
30437 | ||
30438 | ||
30439 | ||
30440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5 | |
30441 | $as_echo_n "checking whether set_cached_acl() is usable... " >&6; } | |
30442 | ||
30443 | ||
30444 | cat confdefs.h - <<_ACEOF >conftest.c | |
30445 | ||
30446 | ||
30447 | #include <linux/module.h> | |
30448 | #include <linux/cred.h> | |
30449 | #include <linux/fs.h> | |
30450 | #include <linux/posix_acl.h> | |
30451 | ||
30452 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
30453 | ||
30454 | int | |
30455 | main (void) | |
30456 | { | |
30457 | ||
30458 | struct inode *ip = NULL; | |
30459 | struct posix_acl *acl = posix_acl_alloc(1, 0); | |
30460 | set_cached_acl(ip, ACL_TYPE_ACCESS, acl); | |
30461 | forget_cached_acl(ip, ACL_TYPE_ACCESS); | |
30462 | ||
30463 | ; | |
30464 | return 0; | |
30465 | } | |
30466 | ||
30467 | _ACEOF | |
30468 | ||
30469 | ||
30470 | ||
30471 | cat - <<_ACEOF >conftest.h | |
30472 | ||
30473 | _ACEOF | |
30474 | ||
30475 | ||
30476 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30477 | echo "obj-m := conftest.o" >build/Makefile | |
30478 | modpost_flag='' | |
30479 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30480 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30481 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30482 | (eval $ac_try) 2>&5 | |
30483 | ac_status=$? | |
30484 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30485 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30486 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30487 | (eval $ac_try) 2>&5 | |
30488 | ac_status=$? | |
30489 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30490 | test $ac_status = 0; }; }; then : | |
30491 | ||
30492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30493 | $as_echo "yes" >&6; } | |
30494 | ||
30495 | $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h | |
30496 | ||
30497 | ||
30498 | else | |
30499 | $as_echo "$as_me: failed program was:" >&5 | |
30500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30501 | ||
30502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30503 | $as_echo "no" >&6; } | |
30504 | ||
30505 | ||
30506 | ||
30507 | fi | |
30508 | rm -Rf build | |
30509 | ||
30510 | ||
30511 | ||
30512 | ||
30513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5 | |
30514 | $as_echo_n "checking whether posix_acl_chmod exists... " >&6; } | |
30515 | ||
30516 | ||
30517 | cat confdefs.h - <<_ACEOF >conftest.c | |
30518 | ||
30519 | ||
30520 | #include <linux/fs.h> | |
30521 | #include <linux/posix_acl.h> | |
30522 | ||
30523 | int | |
30524 | main (void) | |
30525 | { | |
30526 | ||
30527 | posix_acl_chmod(NULL, 0, 0) | |
30528 | ||
30529 | ; | |
30530 | return 0; | |
30531 | } | |
30532 | ||
30533 | _ACEOF | |
30534 | ||
30535 | ||
30536 | ||
30537 | cat - <<_ACEOF >conftest.h | |
30538 | ||
30539 | _ACEOF | |
30540 | ||
30541 | ||
30542 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30543 | echo "obj-m := conftest.o" >build/Makefile | |
30544 | modpost_flag='' | |
30545 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30546 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30547 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30548 | (eval $ac_try) 2>&5 | |
30549 | ac_status=$? | |
30550 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30551 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30552 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30553 | (eval $ac_try) 2>&5 | |
30554 | ac_status=$? | |
30555 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30556 | test $ac_status = 0; }; }; then : | |
30557 | ||
30558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30559 | $as_echo "yes" >&6; } | |
30560 | ||
30561 | $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h | |
30562 | ||
30563 | ||
30564 | else | |
30565 | $as_echo "$as_me: failed program was:" >&5 | |
30566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30567 | ||
30568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30569 | $as_echo "no" >&6; } | |
30570 | ||
30571 | ||
30572 | ||
30573 | fi | |
30574 | rm -Rf build | |
30575 | ||
30576 | ||
30577 | ||
30578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5 | |
30579 | $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; } | |
30580 | ||
30581 | ||
30582 | cat confdefs.h - <<_ACEOF >conftest.c | |
30583 | ||
30584 | ||
30585 | #include <linux/fs.h> | |
30586 | #include <linux/posix_acl.h> | |
30587 | ||
30588 | int | |
30589 | main (void) | |
30590 | { | |
30591 | ||
30592 | __posix_acl_chmod(NULL, 0, 0) | |
30593 | ||
30594 | ; | |
30595 | return 0; | |
30596 | } | |
30597 | ||
30598 | _ACEOF | |
30599 | ||
30600 | ||
30601 | ||
30602 | cat - <<_ACEOF >conftest.h | |
30603 | ||
30604 | _ACEOF | |
30605 | ||
30606 | ||
30607 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30608 | echo "obj-m := conftest.o" >build/Makefile | |
30609 | modpost_flag='' | |
30610 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30611 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30612 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30613 | (eval $ac_try) 2>&5 | |
30614 | ac_status=$? | |
30615 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30616 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30617 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30618 | (eval $ac_try) 2>&5 | |
30619 | ac_status=$? | |
30620 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30621 | test $ac_status = 0; }; }; then : | |
30622 | ||
30623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30624 | $as_echo "yes" >&6; } | |
30625 | ||
30626 | $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h | |
30627 | ||
30628 | ||
30629 | else | |
30630 | $as_echo "$as_me: failed program was:" >&5 | |
30631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30632 | ||
30633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30634 | $as_echo "no" >&6; } | |
30635 | ||
30636 | ||
30637 | ||
30638 | fi | |
30639 | rm -Rf build | |
30640 | ||
30641 | ||
30642 | ||
30643 | ||
30644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5 | |
30645 | $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; } | |
30646 | ||
30647 | ||
30648 | cat confdefs.h - <<_ACEOF >conftest.c | |
30649 | ||
30650 | ||
30651 | #include <linux/fs.h> | |
30652 | #include <linux/posix_acl.h> | |
30653 | ||
30654 | int | |
30655 | main (void) | |
30656 | { | |
30657 | ||
30658 | umode_t tmp; | |
30659 | posix_acl_equiv_mode(NULL,&tmp); | |
30660 | ||
30661 | ; | |
30662 | return 0; | |
30663 | } | |
30664 | ||
30665 | _ACEOF | |
30666 | ||
30667 | ||
30668 | ||
30669 | cat - <<_ACEOF >conftest.h | |
30670 | ||
30671 | _ACEOF | |
30672 | ||
30673 | ||
30674 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30675 | echo "obj-m := conftest.o" >build/Makefile | |
30676 | modpost_flag='' | |
30677 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30678 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30679 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30680 | (eval $ac_try) 2>&5 | |
30681 | ac_status=$? | |
30682 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30683 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30684 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30685 | (eval $ac_try) 2>&5 | |
30686 | ac_status=$? | |
30687 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30688 | test $ac_status = 0; }; }; then : | |
30689 | ||
30690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30691 | $as_echo "yes" >&6; } | |
30692 | ||
30693 | $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h | |
30694 | ||
30695 | ||
30696 | else | |
30697 | $as_echo "$as_me: failed program was:" >&5 | |
30698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30699 | ||
30700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30701 | $as_echo "no" >&6; } | |
30702 | ||
30703 | ||
30704 | ||
30705 | fi | |
30706 | rm -Rf build | |
30707 | ||
30708 | ||
30709 | ||
30710 | ||
30711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5 | |
30712 | $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; } | |
30713 | ||
30714 | ||
30715 | cat confdefs.h - <<_ACEOF >conftest.c | |
30716 | ||
30717 | ||
30718 | #include <linux/fs.h> | |
30719 | #include <linux/posix_acl.h> | |
30720 | ||
30721 | int | |
30722 | main (void) | |
30723 | { | |
30724 | ||
30725 | struct user_namespace *user_ns = NULL; | |
30726 | const struct posix_acl *acl = NULL; | |
30727 | int error; | |
30728 | ||
30729 | error = posix_acl_valid(user_ns, acl); | |
30730 | ||
30731 | ; | |
30732 | return 0; | |
30733 | } | |
30734 | ||
30735 | _ACEOF | |
30736 | ||
30737 | ||
30738 | ||
30739 | cat - <<_ACEOF >conftest.h | |
30740 | ||
30741 | _ACEOF | |
30742 | ||
30743 | ||
30744 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30745 | echo "obj-m := conftest.o" >build/Makefile | |
30746 | modpost_flag='' | |
30747 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30748 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30749 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30750 | (eval $ac_try) 2>&5 | |
30751 | ac_status=$? | |
30752 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30753 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30754 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30755 | (eval $ac_try) 2>&5 | |
30756 | ac_status=$? | |
30757 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30758 | test $ac_status = 0; }; }; then : | |
30759 | ||
30760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30761 | $as_echo "yes" >&6; } | |
30762 | ||
30763 | $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h | |
30764 | ||
30765 | ||
30766 | else | |
30767 | $as_echo "$as_me: failed program was:" >&5 | |
30768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30769 | ||
30770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30771 | $as_echo "no" >&6; } | |
30772 | ||
30773 | ||
30774 | ||
30775 | fi | |
30776 | rm -Rf build | |
30777 | ||
30778 | ||
30779 | ||
30780 | ||
30781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5 | |
30782 | $as_echo_n "checking whether iops->permission() exists... " >&6; } | |
30783 | ||
30784 | ||
30785 | cat confdefs.h - <<_ACEOF >conftest.c | |
30786 | ||
30787 | ||
30788 | #include <linux/fs.h> | |
30789 | ||
30790 | int permission_fn(struct inode *inode, int mask) { return 0; } | |
30791 | ||
30792 | static const struct inode_operations | |
30793 | iops __attribute__ ((unused)) = { | |
30794 | .permission = permission_fn, | |
30795 | }; | |
30796 | ||
30797 | int | |
30798 | main (void) | |
30799 | { | |
30800 | ||
30801 | ||
30802 | ; | |
30803 | return 0; | |
30804 | } | |
30805 | ||
30806 | _ACEOF | |
30807 | ||
30808 | ||
30809 | ||
30810 | cat - <<_ACEOF >conftest.h | |
30811 | ||
30812 | _ACEOF | |
30813 | ||
30814 | ||
30815 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30816 | echo "obj-m := conftest.o" >build/Makefile | |
30817 | modpost_flag='' | |
30818 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30819 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30820 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30821 | (eval $ac_try) 2>&5 | |
30822 | ac_status=$? | |
30823 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30824 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30825 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30826 | (eval $ac_try) 2>&5 | |
30827 | ac_status=$? | |
30828 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30829 | test $ac_status = 0; }; }; then : | |
30830 | ||
30831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30832 | $as_echo "yes" >&6; } | |
30833 | ||
30834 | $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h | |
30835 | ||
30836 | ||
30837 | else | |
30838 | $as_echo "$as_me: failed program was:" >&5 | |
30839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30840 | ||
30841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30842 | $as_echo "no" >&6; } | |
30843 | ||
30844 | ||
30845 | ||
30846 | fi | |
30847 | rm -Rf build | |
30848 | ||
30849 | ||
30850 | ||
30851 | ||
30852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5 | |
30853 | $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; } | |
30854 | ||
30855 | ||
30856 | cat confdefs.h - <<_ACEOF >conftest.c | |
30857 | ||
30858 | ||
30859 | #include <linux/fs.h> | |
30860 | ||
30861 | int permission_fn(struct inode *inode, int mask, | |
30862 | struct nameidata *nd) { return 0; } | |
30863 | ||
30864 | static const struct inode_operations | |
30865 | iops __attribute__ ((unused)) = { | |
30866 | .permission = permission_fn, | |
30867 | }; | |
30868 | ||
30869 | int | |
30870 | main (void) | |
30871 | { | |
30872 | ||
30873 | ||
30874 | ; | |
30875 | return 0; | |
30876 | } | |
30877 | ||
30878 | _ACEOF | |
30879 | ||
30880 | ||
30881 | ||
30882 | cat - <<_ACEOF >conftest.h | |
30883 | ||
30884 | _ACEOF | |
30885 | ||
30886 | ||
30887 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30888 | echo "obj-m := conftest.o" >build/Makefile | |
30889 | modpost_flag='' | |
30890 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30891 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30892 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30893 | (eval $ac_try) 2>&5 | |
30894 | ac_status=$? | |
30895 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30896 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30897 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30898 | (eval $ac_try) 2>&5 | |
30899 | ac_status=$? | |
30900 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30901 | test $ac_status = 0; }; }; then : | |
30902 | ||
30903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30904 | $as_echo "yes" >&6; } | |
30905 | ||
30906 | $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h | |
30907 | ||
30908 | ||
30909 | $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h | |
30910 | ||
30911 | ||
30912 | else | |
30913 | $as_echo "$as_me: failed program was:" >&5 | |
30914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30915 | ||
30916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30917 | $as_echo "no" >&6; } | |
30918 | ||
30919 | ||
30920 | ||
30921 | fi | |
30922 | rm -Rf build | |
30923 | ||
30924 | ||
30925 | ||
30926 | ||
30927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5 | |
30928 | $as_echo_n "checking whether iops->check_acl() exists... " >&6; } | |
30929 | ||
30930 | ||
30931 | cat confdefs.h - <<_ACEOF >conftest.c | |
30932 | ||
30933 | ||
30934 | #include <linux/fs.h> | |
30935 | ||
30936 | int check_acl_fn(struct inode *inode, int mask) { return 0; } | |
30937 | ||
30938 | static const struct inode_operations | |
30939 | iops __attribute__ ((unused)) = { | |
30940 | .check_acl = check_acl_fn, | |
30941 | }; | |
30942 | ||
30943 | int | |
30944 | main (void) | |
30945 | { | |
30946 | ||
30947 | ||
30948 | ; | |
30949 | return 0; | |
30950 | } | |
30951 | ||
30952 | _ACEOF | |
30953 | ||
30954 | ||
30955 | ||
30956 | cat - <<_ACEOF >conftest.h | |
30957 | ||
30958 | _ACEOF | |
30959 | ||
30960 | ||
30961 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30962 | echo "obj-m := conftest.o" >build/Makefile | |
30963 | modpost_flag='' | |
30964 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30965 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30966 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30967 | (eval $ac_try) 2>&5 | |
30968 | ac_status=$? | |
30969 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30970 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30971 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30972 | (eval $ac_try) 2>&5 | |
30973 | ac_status=$? | |
30974 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30975 | test $ac_status = 0; }; }; then : | |
30976 | ||
30977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30978 | $as_echo "yes" >&6; } | |
30979 | ||
30980 | $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h | |
30981 | ||
30982 | ||
30983 | else | |
30984 | $as_echo "$as_me: failed program was:" >&5 | |
30985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30986 | ||
30987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30988 | $as_echo "no" >&6; } | |
30989 | ||
30990 | ||
30991 | ||
30992 | fi | |
30993 | rm -Rf build | |
30994 | ||
30995 | ||
30996 | ||
30997 | ||
30998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5 | |
30999 | $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; } | |
31000 | ||
31001 | ||
31002 | cat confdefs.h - <<_ACEOF >conftest.c | |
31003 | ||
31004 | ||
31005 | #include <linux/fs.h> | |
31006 | ||
31007 | int check_acl_fn(struct inode *inode, int mask, | |
31008 | unsigned int flags) { return 0; } | |
31009 | ||
31010 | static const struct inode_operations | |
31011 | iops __attribute__ ((unused)) = { | |
31012 | .check_acl = check_acl_fn, | |
31013 | }; | |
31014 | ||
31015 | int | |
31016 | main (void) | |
31017 | { | |
31018 | ||
31019 | ||
31020 | ; | |
31021 | return 0; | |
31022 | } | |
31023 | ||
31024 | _ACEOF | |
31025 | ||
31026 | ||
31027 | ||
31028 | cat - <<_ACEOF >conftest.h | |
31029 | ||
31030 | _ACEOF | |
31031 | ||
31032 | ||
31033 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31034 | echo "obj-m := conftest.o" >build/Makefile | |
31035 | modpost_flag='' | |
31036 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31037 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31038 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31039 | (eval $ac_try) 2>&5 | |
31040 | ac_status=$? | |
31041 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31042 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31043 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31044 | (eval $ac_try) 2>&5 | |
31045 | ac_status=$? | |
31046 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31047 | test $ac_status = 0; }; }; then : | |
31048 | ||
31049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31050 | $as_echo "yes" >&6; } | |
31051 | ||
31052 | $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h | |
31053 | ||
31054 | ||
31055 | $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h | |
31056 | ||
31057 | ||
31058 | else | |
31059 | $as_echo "$as_me: failed program was:" >&5 | |
31060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31061 | ||
31062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31063 | $as_echo "no" >&6; } | |
31064 | ||
31065 | ||
31066 | ||
31067 | fi | |
31068 | rm -Rf build | |
31069 | ||
31070 | ||
31071 | ||
31072 | ||
31073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5 | |
31074 | $as_echo_n "checking whether iops->get_acl() exists... " >&6; } | |
31075 | ||
31076 | ||
31077 | cat confdefs.h - <<_ACEOF >conftest.c | |
31078 | ||
31079 | ||
31080 | #include <linux/fs.h> | |
31081 | ||
31082 | struct posix_acl *get_acl_fn(struct inode *inode, int type) | |
31083 | { return NULL; } | |
31084 | ||
31085 | static const struct inode_operations | |
31086 | iops __attribute__ ((unused)) = { | |
31087 | .get_acl = get_acl_fn, | |
31088 | }; | |
31089 | ||
31090 | int | |
31091 | main (void) | |
31092 | { | |
31093 | ||
31094 | ||
31095 | ; | |
31096 | return 0; | |
31097 | } | |
31098 | ||
31099 | _ACEOF | |
31100 | ||
31101 | ||
31102 | ||
31103 | cat - <<_ACEOF >conftest.h | |
31104 | ||
31105 | _ACEOF | |
31106 | ||
31107 | ||
31108 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31109 | echo "obj-m := conftest.o" >build/Makefile | |
31110 | modpost_flag='' | |
31111 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31112 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31113 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31114 | (eval $ac_try) 2>&5 | |
31115 | ac_status=$? | |
31116 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31117 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31118 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31119 | (eval $ac_try) 2>&5 | |
31120 | ac_status=$? | |
31121 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31122 | test $ac_status = 0; }; }; then : | |
31123 | ||
31124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31125 | $as_echo "yes" >&6; } | |
31126 | ||
31127 | $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h | |
31128 | ||
31129 | ||
31130 | else | |
31131 | $as_echo "$as_me: failed program was:" >&5 | |
31132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31133 | ||
31134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31135 | $as_echo "no" >&6; } | |
31136 | ||
31137 | ||
31138 | ||
31139 | fi | |
31140 | rm -Rf build | |
31141 | ||
31142 | ||
31143 | ||
31144 | ||
31145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5 | |
31146 | $as_echo_n "checking whether iops->set_acl() exists... " >&6; } | |
31147 | ||
31148 | ||
31149 | cat confdefs.h - <<_ACEOF >conftest.c | |
31150 | ||
31151 | ||
31152 | #include <linux/fs.h> | |
31153 | ||
31154 | int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type) | |
31155 | { return 0; } | |
31156 | ||
31157 | static const struct inode_operations | |
31158 | iops __attribute__ ((unused)) = { | |
31159 | .set_acl = set_acl_fn, | |
31160 | }; | |
31161 | ||
31162 | int | |
31163 | main (void) | |
31164 | { | |
31165 | ||
31166 | ||
31167 | ; | |
31168 | return 0; | |
31169 | } | |
31170 | ||
31171 | _ACEOF | |
31172 | ||
31173 | ||
31174 | ||
31175 | cat - <<_ACEOF >conftest.h | |
31176 | ||
31177 | _ACEOF | |
31178 | ||
31179 | ||
31180 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31181 | echo "obj-m := conftest.o" >build/Makefile | |
31182 | modpost_flag='' | |
31183 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31184 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31185 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31186 | (eval $ac_try) 2>&5 | |
31187 | ac_status=$? | |
31188 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31189 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31190 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31191 | (eval $ac_try) 2>&5 | |
31192 | ac_status=$? | |
31193 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31194 | test $ac_status = 0; }; }; then : | |
31195 | ||
31196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31197 | $as_echo "yes" >&6; } | |
31198 | ||
31199 | $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h | |
31200 | ||
31201 | ||
31202 | else | |
31203 | $as_echo "$as_me: failed program was:" >&5 | |
31204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31205 | ||
31206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31207 | $as_echo "no" >&6; } | |
31208 | ||
31209 | ||
31210 | ||
31211 | fi | |
31212 | rm -Rf build | |
31213 | ||
31214 | ||
31215 | ||
31216 | ||
3e990ae0 CIK |
31217 | |
31218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5 | |
31219 | $as_echo_n "checking whether iops->getattr() takes a path... " >&6; } | |
31220 | ||
31221 | ||
31222 | cat confdefs.h - <<_ACEOF >conftest.c | |
31223 | ||
31224 | ||
31225 | #include <linux/fs.h> | |
31226 | ||
31227 | int test_getattr( | |
31228 | const struct path *p, struct kstat *k, | |
31229 | u32 request_mask, unsigned int query_flags) | |
31230 | { return 0; } | |
31231 | ||
31232 | static const struct inode_operations | |
31233 | iops __attribute__ ((unused)) = { | |
31234 | .getattr = test_getattr, | |
31235 | }; | |
31236 | ||
31237 | int | |
31238 | main (void) | |
31239 | { | |
31240 | ||
31241 | ||
31242 | ; | |
31243 | return 0; | |
31244 | } | |
31245 | ||
31246 | _ACEOF | |
31247 | ||
31248 | ||
31249 | ||
31250 | cat - <<_ACEOF >conftest.h | |
31251 | ||
31252 | _ACEOF | |
31253 | ||
31254 | ||
31255 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31256 | echo "obj-m := conftest.o" >build/Makefile | |
31257 | modpost_flag='' | |
31258 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31259 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31260 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31261 | (eval $ac_try) 2>&5 | |
31262 | ac_status=$? | |
31263 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31264 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31265 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31266 | (eval $ac_try) 2>&5 | |
31267 | ac_status=$? | |
31268 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31269 | test $ac_status = 0; }; }; then : | |
31270 | ||
31271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31272 | $as_echo "yes" >&6; } | |
31273 | ||
31274 | $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h | |
31275 | ||
31276 | ||
31277 | else | |
31278 | $as_echo "$as_me: failed program was:" >&5 | |
31279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31280 | ||
31281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31282 | $as_echo "no" >&6; } | |
31283 | ||
31284 | ||
31285 | ||
31286 | fi | |
31287 | rm -Rf build | |
31288 | ||
31289 | ||
31290 | ||
31291 | ||
31292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5 | |
31293 | $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; } | |
31294 | ||
31295 | ||
31296 | cat confdefs.h - <<_ACEOF >conftest.c | |
31297 | ||
31298 | ||
31299 | #include <linux/fs.h> | |
31300 | ||
31301 | int test_getattr( | |
31302 | struct vfsmount *mnt, struct dentry *d, | |
31303 | struct kstat *k) | |
31304 | { return 0; } | |
31305 | ||
31306 | static const struct inode_operations | |
31307 | iops __attribute__ ((unused)) = { | |
31308 | .getattr = test_getattr, | |
31309 | }; | |
31310 | ||
31311 | int | |
31312 | main (void) | |
31313 | { | |
31314 | ||
31315 | ||
31316 | ; | |
31317 | return 0; | |
31318 | } | |
31319 | ||
31320 | _ACEOF | |
31321 | ||
31322 | ||
31323 | ||
31324 | cat - <<_ACEOF >conftest.h | |
31325 | ||
31326 | _ACEOF | |
31327 | ||
31328 | ||
31329 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31330 | echo "obj-m := conftest.o" >build/Makefile | |
31331 | modpost_flag='' | |
31332 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31333 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31334 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31335 | (eval $ac_try) 2>&5 | |
31336 | ac_status=$? | |
31337 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31338 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31339 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31340 | (eval $ac_try) 2>&5 | |
31341 | ac_status=$? | |
31342 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31343 | test $ac_status = 0; }; }; then : | |
31344 | ||
31345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31346 | $as_echo "yes" >&6; } | |
31347 | ||
31348 | $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h | |
31349 | ||
31350 | ||
31351 | else | |
31352 | $as_echo "$as_me: failed program was:" >&5 | |
31353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31354 | ||
31355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31356 | $as_echo "no" >&6; } | |
31357 | ||
31358 | ||
31359 | ||
31360 | fi | |
31361 | rm -Rf build | |
31362 | ||
31363 | ||
31364 | ||
31365 | ||
31366 | ||
87d546d8 TG |
31367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5 |
31368 | $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; } | |
31369 | ||
31370 | ||
31371 | cat confdefs.h - <<_ACEOF >conftest.c | |
31372 | ||
31373 | ||
31374 | #include <linux/fs.h> | |
31375 | ||
31376 | int | |
31377 | main (void) | |
31378 | { | |
31379 | ||
31380 | void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL); | |
31381 | ||
31382 | ; | |
31383 | return 0; | |
31384 | } | |
31385 | ||
31386 | _ACEOF | |
31387 | ||
31388 | ||
31389 | ||
31390 | cat - <<_ACEOF >conftest.h | |
31391 | ||
31392 | _ACEOF | |
31393 | ||
31394 | ||
31395 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31396 | echo "obj-m := conftest.o" >build/Makefile | |
31397 | modpost_flag='' | |
31398 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31399 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31400 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31401 | (eval $ac_try) 2>&5 | |
31402 | ac_status=$? | |
31403 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31404 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31405 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31406 | (eval $ac_try) 2>&5 | |
31407 | ac_status=$? | |
31408 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31409 | test $ac_status = 0; }; }; then : | |
31410 | ||
31411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31412 | $as_echo "yes" >&6; } | |
31413 | ||
31414 | $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h | |
31415 | ||
31416 | ||
31417 | else | |
31418 | $as_echo "$as_me: failed program was:" >&5 | |
31419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31420 | ||
31421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31422 | $as_echo "no" >&6; } | |
31423 | ||
31424 | ||
31425 | ||
31426 | fi | |
31427 | rm -Rf build | |
31428 | ||
31429 | ||
31430 | ||
31431 | ||
31432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5 | |
31433 | $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; } | |
31434 | ||
31435 | ||
31436 | ||
31437 | cat confdefs.h - <<_ACEOF >conftest.c | |
31438 | ||
31439 | ||
31440 | #include <linux/fs.h> | |
31441 | ||
31442 | int show_options (struct seq_file * x, struct dentry * y) { return 0; }; | |
31443 | static struct super_operations sops __attribute__ ((unused)) = { | |
31444 | .show_options = show_options, | |
31445 | }; | |
31446 | ||
31447 | int | |
31448 | main (void) | |
31449 | { | |
31450 | ||
31451 | ||
31452 | ; | |
31453 | return 0; | |
31454 | } | |
31455 | ||
31456 | _ACEOF | |
31457 | ||
31458 | ||
31459 | ||
31460 | cat - <<_ACEOF >conftest.h | |
31461 | ||
31462 | _ACEOF | |
31463 | ||
31464 | ||
31465 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31466 | echo "obj-m := conftest.o" >build/Makefile | |
31467 | modpost_flag='' | |
31468 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31469 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31470 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31471 | (eval $ac_try) 2>&5 | |
31472 | ac_status=$? | |
31473 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31474 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31475 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31476 | (eval $ac_try) 2>&5 | |
31477 | ac_status=$? | |
31478 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31479 | test $ac_status = 0; }; }; then : | |
31480 | ||
31481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31482 | $as_echo "yes" >&6; } | |
31483 | ||
31484 | $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h | |
31485 | ||
31486 | ||
31487 | else | |
31488 | $as_echo "$as_me: failed program was:" >&5 | |
31489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31490 | ||
31491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31492 | $as_echo "no" >&6; } | |
31493 | ||
31494 | ||
31495 | ||
31496 | fi | |
31497 | rm -Rf build | |
31498 | ||
31499 | ||
31500 | ||
31501 | ||
31502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5 | |
31503 | $as_echo_n "checking whether file_inode() is available... " >&6; } | |
31504 | ||
31505 | ||
31506 | cat confdefs.h - <<_ACEOF >conftest.c | |
31507 | ||
31508 | ||
31509 | #include <linux/fs.h> | |
31510 | ||
31511 | int | |
31512 | main (void) | |
31513 | { | |
31514 | ||
31515 | struct file *f = NULL; | |
31516 | file_inode(f); | |
31517 | ||
31518 | ; | |
31519 | return 0; | |
31520 | } | |
31521 | ||
31522 | _ACEOF | |
31523 | ||
31524 | ||
31525 | ||
31526 | cat - <<_ACEOF >conftest.h | |
31527 | ||
31528 | _ACEOF | |
31529 | ||
31530 | ||
31531 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31532 | echo "obj-m := conftest.o" >build/Makefile | |
31533 | modpost_flag='' | |
31534 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31535 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31536 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31537 | (eval $ac_try) 2>&5 | |
31538 | ac_status=$? | |
31539 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31540 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31541 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31542 | (eval $ac_try) 2>&5 | |
31543 | ac_status=$? | |
31544 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31545 | test $ac_status = 0; }; }; then : | |
31546 | ||
31547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31548 | $as_echo "yes" >&6; } | |
31549 | ||
31550 | $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h | |
31551 | ||
31552 | ||
31553 | else | |
31554 | $as_echo "$as_me: failed program was:" >&5 | |
31555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31556 | ||
31557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31558 | $as_echo "no" >&6; } | |
31559 | ||
31560 | ||
31561 | ||
31562 | fi | |
31563 | rm -Rf build | |
31564 | ||
31565 | ||
31566 | ||
31567 | ||
31568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5 | |
31569 | $as_echo_n "checking whether fops->fsync() wants... " >&6; } | |
31570 | ||
31571 | ||
31572 | ||
31573 | cat confdefs.h - <<_ACEOF >conftest.c | |
31574 | ||
31575 | ||
31576 | #include <linux/fs.h> | |
31577 | ||
31578 | int test_fsync(struct file *f, struct dentry *dentry, int x) | |
31579 | { return 0; } | |
31580 | ||
31581 | static const struct file_operations | |
31582 | fops __attribute__ ((unused)) = { | |
31583 | .fsync = test_fsync, | |
31584 | }; | |
31585 | ||
31586 | int | |
31587 | main (void) | |
31588 | { | |
31589 | ||
31590 | ||
31591 | ; | |
31592 | return 0; | |
31593 | } | |
31594 | ||
31595 | _ACEOF | |
31596 | ||
31597 | ||
31598 | ||
31599 | cat - <<_ACEOF >conftest.h | |
31600 | ||
31601 | _ACEOF | |
31602 | ||
31603 | ||
31604 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31605 | echo "obj-m := conftest.o" >build/Makefile | |
31606 | modpost_flag='' | |
31607 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31608 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31609 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31610 | (eval $ac_try) 2>&5 | |
31611 | ac_status=$? | |
31612 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31613 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31614 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31615 | (eval $ac_try) 2>&5 | |
31616 | ac_status=$? | |
31617 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31618 | test $ac_status = 0; }; }; then : | |
31619 | ||
31620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5 | |
31621 | $as_echo "dentry" >&6; } | |
31622 | ||
31623 | $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h | |
31624 | ||
31625 | ||
31626 | else | |
31627 | $as_echo "$as_me: failed program was:" >&5 | |
31628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31629 | ||
31630 | ||
31631 | ||
31632 | ||
31633 | fi | |
31634 | rm -Rf build | |
31635 | ||
31636 | ||
31637 | ||
31638 | ||
31639 | ||
31640 | ||
31641 | cat confdefs.h - <<_ACEOF >conftest.c | |
31642 | ||
31643 | ||
31644 | #include <linux/fs.h> | |
31645 | ||
31646 | int test_fsync(struct file *f, int x) { return 0; } | |
31647 | ||
31648 | static const struct file_operations | |
31649 | fops __attribute__ ((unused)) = { | |
31650 | .fsync = test_fsync, | |
31651 | }; | |
31652 | ||
31653 | int | |
31654 | main (void) | |
31655 | { | |
31656 | ||
31657 | ||
31658 | ; | |
31659 | return 0; | |
31660 | } | |
31661 | ||
31662 | _ACEOF | |
31663 | ||
31664 | ||
31665 | ||
31666 | cat - <<_ACEOF >conftest.h | |
31667 | ||
31668 | _ACEOF | |
31669 | ||
31670 | ||
31671 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31672 | echo "obj-m := conftest.o" >build/Makefile | |
31673 | modpost_flag='' | |
31674 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31675 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31676 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31677 | (eval $ac_try) 2>&5 | |
31678 | ac_status=$? | |
31679 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31680 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31681 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31682 | (eval $ac_try) 2>&5 | |
31683 | ac_status=$? | |
31684 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31685 | test $ac_status = 0; }; }; then : | |
31686 | ||
31687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5 | |
31688 | $as_echo "no dentry" >&6; } | |
31689 | ||
31690 | $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h | |
31691 | ||
31692 | ||
31693 | else | |
31694 | $as_echo "$as_me: failed program was:" >&5 | |
31695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31696 | ||
31697 | ||
31698 | ||
31699 | ||
31700 | fi | |
31701 | rm -Rf build | |
31702 | ||
31703 | ||
31704 | ||
31705 | ||
31706 | ||
31707 | ||
31708 | cat confdefs.h - <<_ACEOF >conftest.c | |
31709 | ||
31710 | ||
31711 | #include <linux/fs.h> | |
31712 | ||
31713 | int test_fsync(struct file *f, loff_t a, loff_t b, int c) | |
31714 | { return 0; } | |
31715 | ||
31716 | static const struct file_operations | |
31717 | fops __attribute__ ((unused)) = { | |
31718 | .fsync = test_fsync, | |
31719 | }; | |
31720 | ||
31721 | int | |
31722 | main (void) | |
31723 | { | |
31724 | ||
31725 | ||
31726 | ; | |
31727 | return 0; | |
31728 | } | |
31729 | ||
31730 | _ACEOF | |
31731 | ||
31732 | ||
31733 | ||
31734 | cat - <<_ACEOF >conftest.h | |
31735 | ||
31736 | _ACEOF | |
31737 | ||
31738 | ||
31739 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31740 | echo "obj-m := conftest.o" >build/Makefile | |
31741 | modpost_flag='' | |
31742 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31743 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31744 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31745 | (eval $ac_try) 2>&5 | |
31746 | ac_status=$? | |
31747 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31748 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31749 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31750 | (eval $ac_try) 2>&5 | |
31751 | ac_status=$? | |
31752 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31753 | test $ac_status = 0; }; }; then : | |
31754 | ||
31755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5 | |
31756 | $as_echo "range" >&6; } | |
31757 | ||
31758 | $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h | |
31759 | ||
31760 | ||
31761 | else | |
31762 | $as_echo "$as_me: failed program was:" >&5 | |
31763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31764 | ||
31765 | ||
31766 | ||
31767 | ||
31768 | fi | |
31769 | rm -Rf build | |
31770 | ||
31771 | ||
31772 | ||
31773 | ||
31774 | ||
31775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5 | |
31776 | $as_echo_n "checking whether sops->evict_inode() exists... " >&6; } | |
31777 | ||
31778 | ||
31779 | cat confdefs.h - <<_ACEOF >conftest.c | |
31780 | ||
31781 | ||
31782 | #include <linux/fs.h> | |
31783 | void evict_inode (struct inode * t) { return; } | |
31784 | static struct super_operations sops __attribute__ ((unused)) = { | |
31785 | .evict_inode = evict_inode, | |
31786 | }; | |
31787 | ||
31788 | int | |
31789 | main (void) | |
31790 | { | |
31791 | ||
31792 | ||
31793 | ; | |
31794 | return 0; | |
31795 | } | |
31796 | ||
31797 | _ACEOF | |
31798 | ||
31799 | ||
31800 | ||
31801 | cat - <<_ACEOF >conftest.h | |
31802 | ||
31803 | _ACEOF | |
31804 | ||
31805 | ||
31806 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31807 | echo "obj-m := conftest.o" >build/Makefile | |
31808 | modpost_flag='' | |
31809 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31810 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31811 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31812 | (eval $ac_try) 2>&5 | |
31813 | ac_status=$? | |
31814 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31815 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31816 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31817 | (eval $ac_try) 2>&5 | |
31818 | ac_status=$? | |
31819 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31820 | test $ac_status = 0; }; }; then : | |
31821 | ||
31822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31823 | $as_echo "yes" >&6; } | |
31824 | ||
31825 | $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h | |
31826 | ||
31827 | ||
31828 | else | |
31829 | $as_echo "$as_me: failed program was:" >&5 | |
31830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31831 | ||
31832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31833 | $as_echo "no" >&6; } | |
31834 | ||
31835 | ||
31836 | ||
31837 | fi | |
31838 | rm -Rf build | |
31839 | ||
31840 | ||
31841 | ||
31842 | ||
31843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5 | |
31844 | $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; } | |
31845 | ||
31846 | ||
31847 | cat confdefs.h - <<_ACEOF >conftest.c | |
31848 | ||
31849 | ||
31850 | #include <linux/fs.h> | |
31851 | ||
31852 | void dirty_inode(struct inode *a, int b) { return; } | |
31853 | ||
31854 | static const struct super_operations | |
31855 | sops __attribute__ ((unused)) = { | |
31856 | .dirty_inode = dirty_inode, | |
31857 | }; | |
31858 | ||
31859 | int | |
31860 | main (void) | |
31861 | { | |
31862 | ||
31863 | ||
31864 | ; | |
31865 | return 0; | |
31866 | } | |
31867 | ||
31868 | _ACEOF | |
31869 | ||
31870 | ||
31871 | ||
31872 | cat - <<_ACEOF >conftest.h | |
31873 | ||
31874 | _ACEOF | |
31875 | ||
31876 | ||
31877 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31878 | echo "obj-m := conftest.o" >build/Makefile | |
31879 | modpost_flag='' | |
31880 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31881 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31882 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31883 | (eval $ac_try) 2>&5 | |
31884 | ac_status=$? | |
31885 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31886 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31887 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31888 | (eval $ac_try) 2>&5 | |
31889 | ac_status=$? | |
31890 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31891 | test $ac_status = 0; }; }; then : | |
31892 | ||
31893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31894 | $as_echo "yes" >&6; } | |
31895 | ||
31896 | $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h | |
31897 | ||
31898 | ||
31899 | else | |
31900 | $as_echo "$as_me: failed program was:" >&5 | |
31901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31902 | ||
31903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31904 | $as_echo "no" >&6; } | |
31905 | ||
31906 | ||
31907 | ||
31908 | fi | |
31909 | rm -Rf build | |
31910 | ||
31911 | ||
31912 | ||
31913 | ||
31914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5 | |
31915 | $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; } | |
31916 | ||
31917 | ||
31918 | cat confdefs.h - <<_ACEOF >conftest.c | |
31919 | ||
31920 | ||
31921 | #include <linux/fs.h> | |
31922 | ||
31923 | int nr_cached_objects(struct super_block *sb) { return 0; } | |
31924 | ||
31925 | static const struct super_operations | |
31926 | sops __attribute__ ((unused)) = { | |
31927 | .nr_cached_objects = nr_cached_objects, | |
31928 | }; | |
31929 | ||
31930 | int | |
31931 | main (void) | |
31932 | { | |
31933 | ||
31934 | ||
31935 | ; | |
31936 | return 0; | |
31937 | } | |
31938 | ||
31939 | _ACEOF | |
31940 | ||
31941 | ||
31942 | ||
31943 | cat - <<_ACEOF >conftest.h | |
31944 | ||
31945 | _ACEOF | |
31946 | ||
31947 | ||
31948 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31949 | echo "obj-m := conftest.o" >build/Makefile | |
31950 | modpost_flag='' | |
31951 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31952 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31953 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31954 | (eval $ac_try) 2>&5 | |
31955 | ac_status=$? | |
31956 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31957 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31958 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31959 | (eval $ac_try) 2>&5 | |
31960 | ac_status=$? | |
31961 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31962 | test $ac_status = 0; }; }; then : | |
31963 | ||
31964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31965 | $as_echo "yes" >&6; } | |
31966 | ||
31967 | $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h | |
31968 | ||
31969 | ||
31970 | else | |
31971 | $as_echo "$as_me: failed program was:" >&5 | |
31972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31973 | ||
31974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31975 | $as_echo "no" >&6; } | |
31976 | ||
31977 | ||
31978 | ||
31979 | fi | |
31980 | rm -Rf build | |
31981 | ||
31982 | ||
31983 | ||
31984 | ||
31985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5 | |
31986 | $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; } | |
31987 | ||
31988 | ||
31989 | cat confdefs.h - <<_ACEOF >conftest.c | |
31990 | ||
31991 | ||
31992 | #include <linux/fs.h> | |
31993 | ||
31994 | void free_cached_objects(struct super_block *sb, int x) | |
31995 | { return; } | |
31996 | ||
31997 | static const struct super_operations | |
31998 | sops __attribute__ ((unused)) = { | |
31999 | .free_cached_objects = free_cached_objects, | |
32000 | }; | |
32001 | ||
32002 | int | |
32003 | main (void) | |
32004 | { | |
32005 | ||
32006 | ||
32007 | ; | |
32008 | return 0; | |
32009 | } | |
32010 | ||
32011 | _ACEOF | |
32012 | ||
32013 | ||
32014 | ||
32015 | cat - <<_ACEOF >conftest.h | |
32016 | ||
32017 | _ACEOF | |
32018 | ||
32019 | ||
32020 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32021 | echo "obj-m := conftest.o" >build/Makefile | |
32022 | modpost_flag='' | |
32023 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32024 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32025 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32026 | (eval $ac_try) 2>&5 | |
32027 | ac_status=$? | |
32028 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32029 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32030 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32031 | (eval $ac_try) 2>&5 | |
32032 | ac_status=$? | |
32033 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32034 | test $ac_status = 0; }; }; then : | |
32035 | ||
32036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32037 | $as_echo "yes" >&6; } | |
32038 | ||
32039 | $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h | |
32040 | ||
32041 | ||
32042 | else | |
32043 | $as_echo "$as_me: failed program was:" >&5 | |
32044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32045 | ||
32046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32047 | $as_echo "no" >&6; } | |
32048 | ||
32049 | ||
32050 | ||
32051 | fi | |
32052 | rm -Rf build | |
32053 | ||
32054 | ||
32055 | ||
32056 | ||
32057 | ||
32058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5 | |
32059 | $as_echo_n "checking whether fops->fallocate() exists... " >&6; } | |
32060 | ||
32061 | ||
32062 | cat confdefs.h - <<_ACEOF >conftest.c | |
32063 | ||
32064 | ||
32065 | #include <linux/fs.h> | |
32066 | ||
32067 | long test_fallocate(struct file *file, int mode, | |
32068 | loff_t offset, loff_t len) { return 0; } | |
32069 | ||
32070 | static const struct file_operations | |
32071 | fops __attribute__ ((unused)) = { | |
32072 | .fallocate = test_fallocate, | |
32073 | }; | |
32074 | ||
32075 | int | |
32076 | main (void) | |
32077 | { | |
32078 | ||
32079 | ||
32080 | ; | |
32081 | return 0; | |
32082 | } | |
32083 | ||
32084 | _ACEOF | |
32085 | ||
32086 | ||
32087 | ||
32088 | cat - <<_ACEOF >conftest.h | |
32089 | ||
32090 | _ACEOF | |
32091 | ||
32092 | ||
32093 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32094 | echo "obj-m := conftest.o" >build/Makefile | |
32095 | modpost_flag='' | |
32096 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32097 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32098 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32099 | (eval $ac_try) 2>&5 | |
32100 | ac_status=$? | |
32101 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32102 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32103 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32104 | (eval $ac_try) 2>&5 | |
32105 | ac_status=$? | |
32106 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32107 | test $ac_status = 0; }; }; then : | |
32108 | ||
32109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32110 | $as_echo "yes" >&6; } | |
32111 | ||
32112 | $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h | |
32113 | ||
32114 | ||
32115 | else | |
32116 | $as_echo "$as_me: failed program was:" >&5 | |
32117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32118 | ||
32119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32120 | $as_echo "no" >&6; } | |
32121 | ||
32122 | ||
32123 | ||
32124 | fi | |
32125 | rm -Rf build | |
32126 | ||
32127 | ||
32128 | ||
32129 | ||
32130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5 | |
32131 | $as_echo_n "checking whether iops->fallocate() exists... " >&6; } | |
32132 | ||
32133 | ||
32134 | cat confdefs.h - <<_ACEOF >conftest.c | |
32135 | ||
32136 | ||
32137 | #include <linux/fs.h> | |
32138 | ||
32139 | long test_fallocate(struct inode *inode, int mode, | |
32140 | loff_t offset, loff_t len) { return 0; } | |
32141 | ||
32142 | static const struct inode_operations | |
32143 | fops __attribute__ ((unused)) = { | |
32144 | .fallocate = test_fallocate, | |
32145 | }; | |
32146 | ||
32147 | int | |
32148 | main (void) | |
32149 | { | |
32150 | ||
32151 | ||
32152 | ; | |
32153 | return 0; | |
32154 | } | |
32155 | ||
32156 | _ACEOF | |
32157 | ||
32158 | ||
32159 | ||
32160 | cat - <<_ACEOF >conftest.h | |
32161 | ||
32162 | _ACEOF | |
32163 | ||
32164 | ||
32165 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32166 | echo "obj-m := conftest.o" >build/Makefile | |
32167 | modpost_flag='' | |
32168 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32169 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32170 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32171 | (eval $ac_try) 2>&5 | |
32172 | ac_status=$? | |
32173 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32174 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32175 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32176 | (eval $ac_try) 2>&5 | |
32177 | ac_status=$? | |
32178 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32179 | test $ac_status = 0; }; }; then : | |
32180 | ||
32181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32182 | $as_echo "yes" >&6; } | |
32183 | ||
32184 | $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h | |
32185 | ||
32186 | ||
32187 | else | |
32188 | $as_echo "$as_me: failed program was:" >&5 | |
32189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32190 | ||
32191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32192 | $as_echo "no" >&6; } | |
32193 | ||
32194 | ||
32195 | ||
32196 | fi | |
32197 | rm -Rf build | |
32198 | ||
32199 | ||
32200 | ||
32201 | ||
32202 | ||
32203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5 | |
32204 | $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; } | |
32205 | ||
32206 | ||
32207 | cat confdefs.h - <<_ACEOF >conftest.c | |
32208 | ||
32209 | ||
32210 | #include <linux/fs.h> | |
32211 | ||
32212 | static const struct file_operations | |
32213 | fops __attribute__ ((unused)) = { | |
32214 | .aio_fsync = NULL, | |
32215 | }; | |
32216 | ||
32217 | int | |
32218 | main (void) | |
32219 | { | |
32220 | ||
32221 | ||
32222 | ; | |
32223 | return 0; | |
32224 | } | |
32225 | ||
32226 | _ACEOF | |
32227 | ||
32228 | ||
32229 | ||
32230 | cat - <<_ACEOF >conftest.h | |
32231 | ||
32232 | _ACEOF | |
32233 | ||
32234 | ||
32235 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32236 | echo "obj-m := conftest.o" >build/Makefile | |
32237 | modpost_flag='' | |
32238 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32239 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32240 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32241 | (eval $ac_try) 2>&5 | |
32242 | ac_status=$? | |
32243 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32244 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32245 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32246 | (eval $ac_try) 2>&5 | |
32247 | ac_status=$? | |
32248 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32249 | test $ac_status = 0; }; }; then : | |
32250 | ||
32251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32252 | $as_echo "yes" >&6; } | |
32253 | ||
32254 | $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h | |
32255 | ||
32256 | ||
32257 | else | |
32258 | $as_echo "$as_me: failed program was:" >&5 | |
32259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32260 | ||
32261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32262 | $as_echo "no" >&6; } | |
32263 | ||
32264 | ||
32265 | ||
32266 | fi | |
32267 | rm -Rf build | |
32268 | ||
32269 | ||
32270 | ||
32271 | ||
32272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5 | |
32273 | $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; } | |
32274 | ||
32275 | ||
32276 | cat confdefs.h - <<_ACEOF >conftest.c | |
32277 | ||
32278 | ||
32279 | #include <linux/fs.h> | |
32280 | ||
32281 | int mkdir(struct inode *inode, struct dentry *dentry, | |
32282 | umode_t umode) { return 0; } | |
32283 | ||
32284 | static const struct inode_operations | |
32285 | iops __attribute__ ((unused)) = { | |
32286 | .mkdir = mkdir, | |
32287 | }; | |
32288 | ||
32289 | int | |
32290 | main (void) | |
32291 | { | |
32292 | ||
32293 | ||
32294 | ; | |
32295 | return 0; | |
32296 | } | |
32297 | ||
32298 | _ACEOF | |
32299 | ||
32300 | ||
32301 | ||
32302 | cat - <<_ACEOF >conftest.h | |
32303 | ||
32304 | _ACEOF | |
32305 | ||
32306 | ||
32307 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32308 | echo "obj-m := conftest.o" >build/Makefile | |
32309 | modpost_flag='' | |
32310 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32311 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32312 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32313 | (eval $ac_try) 2>&5 | |
32314 | ac_status=$? | |
32315 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32316 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32317 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32318 | (eval $ac_try) 2>&5 | |
32319 | ac_status=$? | |
32320 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32321 | test $ac_status = 0; }; }; then : | |
32322 | ||
32323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32324 | $as_echo "yes" >&6; } | |
32325 | ||
32326 | $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h | |
32327 | ||
32328 | ||
32329 | else | |
32330 | $as_echo "$as_me: failed program was:" >&5 | |
32331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32332 | ||
32333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32334 | $as_echo "no" >&6; } | |
32335 | ||
32336 | ||
32337 | ||
32338 | fi | |
32339 | rm -Rf build | |
32340 | ||
32341 | ||
32342 | ||
32343 | ||
32344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5 | |
32345 | $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; } | |
32346 | ||
32347 | ||
32348 | cat confdefs.h - <<_ACEOF >conftest.c | |
32349 | ||
32350 | ||
32351 | #include <linux/fs.h> | |
32352 | ||
32353 | struct dentry *inode_lookup(struct inode *inode, | |
32354 | struct dentry *dentry, struct nameidata *nidata) | |
32355 | { return NULL; } | |
32356 | ||
32357 | static const struct inode_operations iops | |
32358 | __attribute__ ((unused)) = { | |
32359 | .lookup = inode_lookup, | |
32360 | }; | |
32361 | ||
32362 | int | |
32363 | main (void) | |
32364 | { | |
32365 | ||
32366 | ||
32367 | ; | |
32368 | return 0; | |
32369 | } | |
32370 | ||
32371 | _ACEOF | |
32372 | ||
32373 | ||
32374 | ||
32375 | cat - <<_ACEOF >conftest.h | |
32376 | ||
32377 | _ACEOF | |
32378 | ||
32379 | ||
32380 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32381 | echo "obj-m := conftest.o" >build/Makefile | |
32382 | modpost_flag='' | |
32383 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32384 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32385 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32386 | (eval $ac_try) 2>&5 | |
32387 | ac_status=$? | |
32388 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32389 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32390 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32391 | (eval $ac_try) 2>&5 | |
32392 | ac_status=$? | |
32393 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32394 | test $ac_status = 0; }; }; then : | |
32395 | ||
32396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32397 | $as_echo "yes" >&6; } | |
32398 | ||
32399 | $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h | |
32400 | ||
32401 | ||
32402 | else | |
32403 | $as_echo "$as_me: failed program was:" >&5 | |
32404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32405 | ||
32406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32407 | $as_echo "no" >&6; } | |
32408 | ||
32409 | ||
32410 | ||
32411 | fi | |
32412 | rm -Rf build | |
32413 | ||
32414 | ||
32415 | ||
32416 | ||
32417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5 | |
32418 | $as_echo_n "checking whether iops->create() passes nameidata... " >&6; } | |
32419 | ||
32420 | ||
32421 | cat confdefs.h - <<_ACEOF >conftest.c | |
32422 | ||
32423 | ||
32424 | #include <linux/fs.h> | |
32425 | ||
32426 | #ifdef HAVE_MKDIR_UMODE_T | |
32427 | int inode_create(struct inode *inode ,struct dentry *dentry, | |
32428 | umode_t umode, struct nameidata *nidata) { return 0; } | |
32429 | #else | |
32430 | int inode_create(struct inode *inode,struct dentry *dentry, | |
32431 | int umode, struct nameidata * nidata) { return 0; } | |
32432 | #endif | |
32433 | ||
32434 | static const struct inode_operations | |
32435 | iops __attribute__ ((unused)) = { | |
32436 | .create = inode_create, | |
32437 | }; | |
32438 | ||
32439 | int | |
32440 | main (void) | |
32441 | { | |
32442 | ||
32443 | ||
32444 | ; | |
32445 | return 0; | |
32446 | } | |
32447 | ||
32448 | _ACEOF | |
32449 | ||
32450 | ||
32451 | ||
32452 | cat - <<_ACEOF >conftest.h | |
32453 | ||
32454 | _ACEOF | |
32455 | ||
32456 | ||
32457 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32458 | echo "obj-m := conftest.o" >build/Makefile | |
32459 | modpost_flag='' | |
32460 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32461 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32462 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32463 | (eval $ac_try) 2>&5 | |
32464 | ac_status=$? | |
32465 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32466 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32467 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32468 | (eval $ac_try) 2>&5 | |
32469 | ac_status=$? | |
32470 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32471 | test $ac_status = 0; }; }; then : | |
32472 | ||
32473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32474 | $as_echo "yes" >&6; } | |
32475 | ||
32476 | $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h | |
32477 | ||
32478 | ||
32479 | else | |
32480 | $as_echo "$as_me: failed program was:" >&5 | |
32481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32482 | ||
32483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32484 | $as_echo "no" >&6; } | |
32485 | ||
32486 | ||
32487 | ||
32488 | fi | |
32489 | rm -Rf build | |
32490 | ||
32491 | ||
32492 | ||
32493 | ||
32494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5 | |
32495 | $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; } | |
32496 | ||
32497 | ||
32498 | cat confdefs.h - <<_ACEOF >conftest.c | |
32499 | ||
32500 | ||
32501 | #include <linux/fs.h> | |
32502 | const char *get_link(struct dentry *de, struct inode *ip, | |
32503 | struct delayed_call *done) { return "symlink"; } | |
32504 | static struct inode_operations | |
32505 | iops __attribute__ ((unused)) = { | |
32506 | .get_link = get_link, | |
32507 | }; | |
32508 | ||
32509 | int | |
32510 | main (void) | |
32511 | { | |
32512 | ||
32513 | ||
32514 | ; | |
32515 | return 0; | |
32516 | } | |
32517 | ||
32518 | _ACEOF | |
32519 | ||
32520 | ||
32521 | ||
32522 | cat - <<_ACEOF >conftest.h | |
32523 | ||
32524 | _ACEOF | |
32525 | ||
32526 | ||
32527 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32528 | echo "obj-m := conftest.o" >build/Makefile | |
32529 | modpost_flag='' | |
32530 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32531 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32532 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32533 | (eval $ac_try) 2>&5 | |
32534 | ac_status=$? | |
32535 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32536 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32537 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32538 | (eval $ac_try) 2>&5 | |
32539 | ac_status=$? | |
32540 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32541 | test $ac_status = 0; }; }; then : | |
32542 | ||
32543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32544 | $as_echo "yes" >&6; } | |
32545 | ||
32546 | $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h | |
32547 | ||
32548 | ||
32549 | else | |
32550 | $as_echo "$as_me: failed program was:" >&5 | |
32551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32552 | ||
32553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32554 | $as_echo "no" >&6; } | |
32555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5 | |
32556 | $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; } | |
32557 | ||
32558 | ||
32559 | cat confdefs.h - <<_ACEOF >conftest.c | |
32560 | ||
32561 | ||
32562 | #include <linux/fs.h> | |
32563 | const char *get_link(struct dentry *de, struct | |
32564 | inode *ip, void **cookie) { return "symlink"; } | |
32565 | static struct inode_operations | |
32566 | iops __attribute__ ((unused)) = { | |
32567 | .get_link = get_link, | |
32568 | }; | |
32569 | ||
32570 | int | |
32571 | main (void) | |
32572 | { | |
32573 | ||
32574 | ||
32575 | ; | |
32576 | return 0; | |
32577 | } | |
32578 | ||
32579 | _ACEOF | |
32580 | ||
32581 | ||
32582 | ||
32583 | cat - <<_ACEOF >conftest.h | |
32584 | ||
32585 | _ACEOF | |
32586 | ||
32587 | ||
32588 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32589 | echo "obj-m := conftest.o" >build/Makefile | |
32590 | modpost_flag='' | |
32591 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32592 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32593 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32594 | (eval $ac_try) 2>&5 | |
32595 | ac_status=$? | |
32596 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32597 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32598 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32599 | (eval $ac_try) 2>&5 | |
32600 | ac_status=$? | |
32601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32602 | test $ac_status = 0; }; }; then : | |
32603 | ||
32604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32605 | $as_echo "yes" >&6; } | |
32606 | ||
32607 | $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h | |
32608 | ||
32609 | ||
32610 | else | |
32611 | $as_echo "$as_me: failed program was:" >&5 | |
32612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32613 | ||
32614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32615 | $as_echo "no" >&6; } | |
32616 | ||
32617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5 | |
32618 | $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; } | |
32619 | ||
32620 | ||
32621 | cat confdefs.h - <<_ACEOF >conftest.c | |
32622 | ||
32623 | ||
32624 | #include <linux/fs.h> | |
32625 | const char *follow_link(struct dentry *de, | |
32626 | void **cookie) { return "symlink"; } | |
32627 | static struct inode_operations | |
32628 | iops __attribute__ ((unused)) = { | |
32629 | .follow_link = follow_link, | |
32630 | }; | |
32631 | ||
32632 | int | |
32633 | main (void) | |
32634 | { | |
32635 | ||
32636 | ||
32637 | ; | |
32638 | return 0; | |
32639 | } | |
32640 | ||
32641 | _ACEOF | |
32642 | ||
32643 | ||
32644 | ||
32645 | cat - <<_ACEOF >conftest.h | |
32646 | ||
32647 | _ACEOF | |
32648 | ||
32649 | ||
32650 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32651 | echo "obj-m := conftest.o" >build/Makefile | |
32652 | modpost_flag='' | |
32653 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32654 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32655 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32656 | (eval $ac_try) 2>&5 | |
32657 | ac_status=$? | |
32658 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32659 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32660 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32661 | (eval $ac_try) 2>&5 | |
32662 | ac_status=$? | |
32663 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32664 | test $ac_status = 0; }; }; then : | |
32665 | ||
32666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32667 | $as_echo "yes" >&6; } | |
32668 | ||
32669 | $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h | |
32670 | ||
32671 | ||
32672 | else | |
32673 | $as_echo "$as_me: failed program was:" >&5 | |
32674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32675 | ||
32676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32677 | $as_echo "no" >&6; } | |
32678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5 | |
32679 | $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; } | |
32680 | ||
32681 | ||
32682 | cat confdefs.h - <<_ACEOF >conftest.c | |
32683 | ||
32684 | ||
32685 | #include <linux/fs.h> | |
32686 | void *follow_link(struct dentry *de, struct | |
32687 | nameidata *nd) { return (void *)NULL; } | |
32688 | static struct inode_operations | |
32689 | iops __attribute__ ((unused)) = { | |
32690 | .follow_link = follow_link, | |
32691 | }; | |
32692 | ||
32693 | int | |
32694 | main (void) | |
32695 | { | |
32696 | ||
32697 | ||
32698 | ; | |
32699 | return 0; | |
32700 | } | |
32701 | ||
32702 | _ACEOF | |
32703 | ||
32704 | ||
32705 | ||
32706 | cat - <<_ACEOF >conftest.h | |
32707 | ||
32708 | _ACEOF | |
32709 | ||
32710 | ||
32711 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32712 | echo "obj-m := conftest.o" >build/Makefile | |
32713 | modpost_flag='' | |
32714 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32715 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32716 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32717 | (eval $ac_try) 2>&5 | |
32718 | ac_status=$? | |
32719 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32720 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32721 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32722 | (eval $ac_try) 2>&5 | |
32723 | ac_status=$? | |
32724 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32725 | test $ac_status = 0; }; }; then : | |
32726 | ||
df9d7621 CIK |
32727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
32728 | $as_echo "yes" >&6; } | |
32729 | ||
32730 | $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h | |
32731 | ||
32732 | ||
32733 | else | |
32734 | $as_echo "$as_me: failed program was:" >&5 | |
32735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32736 | ||
32737 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
32738 | ||
32739 | ||
32740 | ||
32741 | fi | |
32742 | rm -Rf build | |
32743 | ||
32744 | ||
32745 | ||
32746 | ||
32747 | ||
32748 | fi | |
32749 | rm -Rf build | |
32750 | ||
32751 | ||
32752 | ||
32753 | ||
32754 | ||
32755 | ||
32756 | fi | |
32757 | rm -Rf build | |
32758 | ||
32759 | ||
32760 | ||
32761 | ||
32762 | ||
32763 | fi | |
32764 | rm -Rf build | |
32765 | ||
32766 | ||
32767 | ||
32768 | ||
32769 | ||
32770 | ||
32771 | cat confdefs.h - <<_ACEOF >conftest.c | |
32772 | ||
32773 | ||
32774 | #if !defined(HAVE_GET_LINK_DELAYED) | |
32775 | #error "Expecting get_link() delayed done" | |
32776 | #endif | |
32777 | ||
32778 | int | |
32779 | main (void) | |
32780 | { | |
32781 | ||
32782 | ||
32783 | ; | |
32784 | return 0; | |
32785 | } | |
32786 | ||
32787 | _ACEOF | |
32788 | ||
32789 | ||
32790 | ||
32791 | cat - <<_ACEOF >conftest.h | |
32792 | ||
32793 | _ACEOF | |
32794 | ||
32795 | ||
32796 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32797 | echo "obj-m := conftest.o" >build/Makefile | |
32798 | modpost_flag='' | |
32799 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32800 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32801 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32802 | (eval $ac_try) 2>&5 | |
32803 | ac_status=$? | |
32804 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32805 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32806 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32807 | (eval $ac_try) 2>&5 | |
32808 | ac_status=$? | |
32809 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32810 | test $ac_status = 0; }; }; then : | |
32811 | ||
32812 | ||
32813 | $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h | |
32814 | ||
32815 | ||
32816 | else | |
32817 | $as_echo "$as_me: failed program was:" >&5 | |
32818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32819 | ||
32820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5 | |
32821 | $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; } | |
32822 | ||
32823 | ||
32824 | cat confdefs.h - <<_ACEOF >conftest.c | |
32825 | ||
32826 | ||
32827 | #include <linux/fs.h> | |
32828 | void put_link(struct inode *ip, void *cookie) | |
32829 | { return; } | |
32830 | static struct inode_operations | |
32831 | iops __attribute__ ((unused)) = { | |
32832 | .put_link = put_link, | |
32833 | }; | |
32834 | ||
32835 | int | |
32836 | main (void) | |
32837 | { | |
32838 | ||
32839 | ||
32840 | ; | |
32841 | return 0; | |
32842 | } | |
32843 | ||
32844 | _ACEOF | |
32845 | ||
32846 | ||
32847 | ||
32848 | cat - <<_ACEOF >conftest.h | |
32849 | ||
32850 | _ACEOF | |
32851 | ||
32852 | ||
32853 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32854 | echo "obj-m := conftest.o" >build/Makefile | |
32855 | modpost_flag='' | |
32856 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32857 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32858 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32859 | (eval $ac_try) 2>&5 | |
32860 | ac_status=$? | |
32861 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32862 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32863 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32864 | (eval $ac_try) 2>&5 | |
32865 | ac_status=$? | |
32866 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32867 | test $ac_status = 0; }; }; then : | |
32868 | ||
32869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32870 | $as_echo "yes" >&6; } | |
32871 | ||
32872 | $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h | |
32873 | ||
32874 | ||
32875 | else | |
32876 | $as_echo "$as_me: failed program was:" >&5 | |
32877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32878 | ||
32879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32880 | $as_echo "no" >&6; } | |
32881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5 | |
32882 | $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; } | |
32883 | ||
32884 | ||
32885 | cat confdefs.h - <<_ACEOF >conftest.c | |
32886 | ||
32887 | ||
32888 | #include <linux/fs.h> | |
32889 | void put_link(struct dentry *de, struct | |
32890 | nameidata *nd, void *ptr) { return; } | |
32891 | static struct inode_operations | |
32892 | iops __attribute__ ((unused)) = { | |
32893 | .put_link = put_link, | |
32894 | }; | |
32895 | ||
32896 | int | |
32897 | main (void) | |
32898 | { | |
32899 | ||
32900 | ||
32901 | ; | |
32902 | return 0; | |
32903 | } | |
32904 | ||
32905 | _ACEOF | |
32906 | ||
32907 | ||
32908 | ||
32909 | cat - <<_ACEOF >conftest.h | |
32910 | ||
32911 | _ACEOF | |
32912 | ||
32913 | ||
32914 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32915 | echo "obj-m := conftest.o" >build/Makefile | |
32916 | modpost_flag='' | |
32917 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32918 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32919 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32920 | (eval $ac_try) 2>&5 | |
32921 | ac_status=$? | |
32922 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32923 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32924 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32925 | (eval $ac_try) 2>&5 | |
32926 | ac_status=$? | |
32927 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32928 | test $ac_status = 0; }; }; then : | |
32929 | ||
32930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
87d546d8 TG |
32931 | $as_echo "yes" >&6; } |
32932 | ||
df9d7621 | 32933 | $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h |
87d546d8 TG |
32934 | |
32935 | ||
32936 | else | |
32937 | $as_echo "$as_me: failed program was:" >&5 | |
32938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32939 | ||
df9d7621 | 32940 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 |
87d546d8 TG |
32941 | |
32942 | ||
32943 | ||
32944 | fi | |
32945 | rm -Rf build | |
32946 | ||
32947 | ||
32948 | ||
32949 | ||
32950 | ||
87d546d8 TG |
32951 | fi |
32952 | rm -Rf build | |
32953 | ||
32954 | ||
32955 | ||
32956 | ||
32957 | ||
32958 | fi | |
32959 | rm -Rf build | |
32960 | ||
32961 | ||
32962 | ||
32963 | ||
df9d7621 CIK |
32964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5 |
32965 | $as_echo_n "checking whether iops->truncate_range() exists... " >&6; } | |
87d546d8 TG |
32966 | |
32967 | ||
32968 | cat confdefs.h - <<_ACEOF >conftest.c | |
32969 | ||
32970 | ||
df9d7621 CIK |
32971 | #include <linux/fs.h> |
32972 | void truncate_range(struct inode *inode, loff_t start, | |
32973 | loff_t end) { return; } | |
32974 | static struct inode_operations iops __attribute__ ((unused)) = { | |
32975 | .truncate_range = truncate_range, | |
32976 | }; | |
87d546d8 TG |
32977 | |
32978 | int | |
32979 | main (void) | |
32980 | { | |
32981 | ||
32982 | ||
32983 | ; | |
32984 | return 0; | |
32985 | } | |
32986 | ||
32987 | _ACEOF | |
32988 | ||
32989 | ||
32990 | ||
32991 | cat - <<_ACEOF >conftest.h | |
32992 | ||
32993 | _ACEOF | |
32994 | ||
32995 | ||
32996 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32997 | echo "obj-m := conftest.o" >build/Makefile | |
32998 | modpost_flag='' | |
32999 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33000 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33001 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33002 | (eval $ac_try) 2>&5 | |
33003 | ac_status=$? | |
33004 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33005 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33006 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33007 | (eval $ac_try) 2>&5 | |
33008 | ac_status=$? | |
33009 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33010 | test $ac_status = 0; }; }; then : | |
33011 | ||
df9d7621 CIK |
33012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33013 | $as_echo "yes" >&6; } | |
87d546d8 | 33014 | |
df9d7621 | 33015 | $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h |
87d546d8 TG |
33016 | |
33017 | ||
33018 | else | |
33019 | $as_echo "$as_me: failed program was:" >&5 | |
33020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33021 | ||
df9d7621 CIK |
33022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33023 | $as_echo "no" >&6; } | |
33024 | ||
33025 | ||
33026 | ||
33027 | fi | |
33028 | rm -Rf build | |
33029 | ||
33030 | ||
33031 | ||
33032 | ||
33033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5 | |
33034 | $as_echo_n "checking whether dops->d_automount() exists... " >&6; } | |
87d546d8 TG |
33035 | |
33036 | ||
33037 | cat confdefs.h - <<_ACEOF >conftest.c | |
33038 | ||
33039 | ||
df9d7621 CIK |
33040 | #include <linux/dcache.h> |
33041 | struct vfsmount *d_automount(struct path *p) { return NULL; } | |
33042 | struct dentry_operations dops __attribute__ ((unused)) = { | |
33043 | .d_automount = d_automount, | |
33044 | }; | |
87d546d8 TG |
33045 | |
33046 | int | |
33047 | main (void) | |
33048 | { | |
33049 | ||
33050 | ||
33051 | ; | |
33052 | return 0; | |
33053 | } | |
33054 | ||
33055 | _ACEOF | |
33056 | ||
33057 | ||
33058 | ||
33059 | cat - <<_ACEOF >conftest.h | |
33060 | ||
33061 | _ACEOF | |
33062 | ||
33063 | ||
33064 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33065 | echo "obj-m := conftest.o" >build/Makefile | |
33066 | modpost_flag='' | |
33067 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33068 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33069 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33070 | (eval $ac_try) 2>&5 | |
33071 | ac_status=$? | |
33072 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33073 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33074 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33075 | (eval $ac_try) 2>&5 | |
33076 | ac_status=$? | |
33077 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33078 | test $ac_status = 0; }; }; then : | |
33079 | ||
df9d7621 | 33080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
33081 | $as_echo "yes" >&6; } |
33082 | ||
df9d7621 | 33083 | $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h |
87d546d8 TG |
33084 | |
33085 | ||
33086 | else | |
33087 | $as_echo "$as_me: failed program was:" >&5 | |
33088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33089 | ||
df9d7621 | 33090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 | 33091 | $as_echo "no" >&6; } |
df9d7621 CIK |
33092 | |
33093 | ||
33094 | ||
33095 | fi | |
33096 | rm -Rf build | |
33097 | ||
33098 | ||
33099 | ||
33100 | ||
33101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5 | |
33102 | $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; } | |
87d546d8 TG |
33103 | |
33104 | ||
33105 | cat confdefs.h - <<_ACEOF >conftest.c | |
33106 | ||
33107 | ||
df9d7621 CIK |
33108 | #include <linux/exportfs.h> |
33109 | int encode_fh(struct inode *inode, __u32 *fh, int *max_len, | |
33110 | struct inode *parent) { return 0; } | |
33111 | static struct export_operations eops __attribute__ ((unused))={ | |
33112 | .encode_fh = encode_fh, | |
33113 | }; | |
87d546d8 TG |
33114 | |
33115 | int | |
33116 | main (void) | |
33117 | { | |
33118 | ||
33119 | ||
33120 | ; | |
33121 | return 0; | |
33122 | } | |
33123 | ||
33124 | _ACEOF | |
33125 | ||
33126 | ||
33127 | ||
33128 | cat - <<_ACEOF >conftest.h | |
33129 | ||
33130 | _ACEOF | |
33131 | ||
33132 | ||
33133 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33134 | echo "obj-m := conftest.o" >build/Makefile | |
33135 | modpost_flag='' | |
33136 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33137 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33138 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33139 | (eval $ac_try) 2>&5 | |
33140 | ac_status=$? | |
33141 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33142 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33143 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33144 | (eval $ac_try) 2>&5 | |
33145 | ac_status=$? | |
33146 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33147 | test $ac_status = 0; }; }; then : | |
33148 | ||
df9d7621 | 33149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
33150 | $as_echo "yes" >&6; } |
33151 | ||
df9d7621 | 33152 | $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h |
87d546d8 TG |
33153 | |
33154 | ||
33155 | else | |
33156 | $as_echo "$as_me: failed program was:" >&5 | |
33157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33158 | ||
df9d7621 CIK |
33159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33160 | $as_echo "no" >&6; } | |
87d546d8 TG |
33161 | |
33162 | ||
33163 | ||
33164 | fi | |
33165 | rm -Rf build | |
33166 | ||
33167 | ||
33168 | ||
33169 | ||
df9d7621 CIK |
33170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5 |
33171 | $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; } | |
33172 | ||
87d546d8 | 33173 | |
df9d7621 CIK |
33174 | cat confdefs.h - <<_ACEOF >conftest.c |
33175 | ||
33176 | ||
33177 | #include <linux/exportfs.h> | |
33178 | int commit_metadata(struct inode *inode) { return 0; } | |
33179 | static struct export_operations eops __attribute__ ((unused))={ | |
33180 | .commit_metadata = commit_metadata, | |
33181 | }; | |
33182 | ||
33183 | int | |
33184 | main (void) | |
33185 | { | |
33186 | ||
33187 | ||
33188 | ; | |
33189 | return 0; | |
33190 | } | |
87d546d8 | 33191 | |
df9d7621 CIK |
33192 | _ACEOF |
33193 | ||
33194 | ||
33195 | ||
33196 | cat - <<_ACEOF >conftest.h | |
33197 | ||
33198 | _ACEOF | |
33199 | ||
33200 | ||
33201 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33202 | echo "obj-m := conftest.o" >build/Makefile | |
33203 | modpost_flag='' | |
33204 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33205 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33206 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33207 | (eval $ac_try) 2>&5 | |
33208 | ac_status=$? | |
33209 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33210 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33211 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33212 | (eval $ac_try) 2>&5 | |
33213 | ac_status=$? | |
33214 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33215 | test $ac_status = 0; }; }; then : | |
33216 | ||
33217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33218 | $as_echo "yes" >&6; } | |
33219 | ||
33220 | $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h | |
33221 | ||
33222 | ||
33223 | else | |
33224 | $as_echo "$as_me: failed program was:" >&5 | |
33225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
87d546d8 | 33226 | |
df9d7621 CIK |
33227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33228 | $as_echo "no" >&6; } | |
87d546d8 TG |
33229 | |
33230 | ||
33231 | ||
33232 | fi | |
33233 | rm -Rf build | |
33234 | ||
33235 | ||
33236 | ||
df9d7621 CIK |
33237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5 |
33238 | $as_echo_n "checking whether clear_inode() is available... " >&6; } | |
87d546d8 | 33239 | |
87d546d8 TG |
33240 | |
33241 | ||
33242 | cat confdefs.h - <<_ACEOF >conftest.c | |
33243 | ||
33244 | ||
33245 | #include <linux/fs.h> | |
87d546d8 TG |
33246 | |
33247 | int | |
33248 | main (void) | |
33249 | { | |
33250 | ||
df9d7621 | 33251 | clear_inode(NULL); |
87d546d8 TG |
33252 | |
33253 | ; | |
33254 | return 0; | |
33255 | } | |
33256 | ||
33257 | _ACEOF | |
33258 | ||
33259 | ||
33260 | ||
33261 | cat - <<_ACEOF >conftest.h | |
33262 | ||
33263 | _ACEOF | |
33264 | ||
33265 | ||
33266 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33267 | echo "obj-m := conftest.o" >build/Makefile | |
33268 | modpost_flag='' | |
33269 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33270 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33271 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33272 | (eval $ac_try) 2>&5 | |
33273 | ac_status=$? | |
33274 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33275 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33276 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33277 | (eval $ac_try) 2>&5 | |
33278 | ac_status=$? | |
33279 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33280 | test $ac_status = 0; }; }; then : | |
df9d7621 CIK |
33281 | rc=0 |
33282 | else | |
33283 | $as_echo "$as_me: failed program was:" >&5 | |
33284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33285 | rc=1 | |
87d546d8 | 33286 | |
87d546d8 | 33287 | |
df9d7621 CIK |
33288 | fi |
33289 | rm -Rf build | |
87d546d8 TG |
33290 | |
33291 | ||
df9d7621 CIK |
33292 | if test $rc -ne 0; then : |
33293 | ||
33294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33295 | $as_echo "no" >&6; } | |
33296 | ||
33297 | else | |
33298 | if test "x$enable_linux_builtin" != xyes; then | |
33299 | ||
33300 | grep -q -E '[[:space:]]clear_inode[[:space:]]' \ | |
33301 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
33302 | rc=$? | |
33303 | if test $rc -ne 0; then | |
33304 | export=0 | |
33305 | for file in fs/inode.c; do | |
33306 | grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \ | |
33307 | "$LINUX/$file" 2>/dev/null | |
33308 | rc=$? | |
33309 | if test $rc -eq 0; then | |
33310 | export=1 | |
33311 | break; | |
33312 | fi | |
33313 | done | |
33314 | if test $export -eq 0; then : | |
33315 | rc=1 | |
33316 | else : | |
33317 | rc=0 | |
33318 | fi | |
33319 | else : | |
33320 | rc=0 | |
33321 | fi | |
33322 | ||
33323 | fi | |
33324 | if test $rc -ne 0; then : | |
87d546d8 TG |
33325 | |
33326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33327 | $as_echo "no" >&6; } | |
33328 | ||
df9d7621 | 33329 | else : |
87d546d8 | 33330 | |
df9d7621 CIK |
33331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33332 | $as_echo "yes" >&6; } | |
87d546d8 | 33333 | |
df9d7621 | 33334 | $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h |
87d546d8 TG |
33335 | |
33336 | ||
df9d7621 CIK |
33337 | fi |
33338 | fi | |
87d546d8 TG |
33339 | |
33340 | ||
df9d7621 CIK |
33341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5 |
33342 | $as_echo_n "checking whether setattr_prepare() is available... " >&6; } | |
33343 | ||
87d546d8 TG |
33344 | |
33345 | ||
33346 | cat confdefs.h - <<_ACEOF >conftest.c | |
33347 | ||
33348 | ||
df9d7621 | 33349 | #include <linux/fs.h> |
87d546d8 TG |
33350 | |
33351 | int | |
33352 | main (void) | |
33353 | { | |
33354 | ||
df9d7621 CIK |
33355 | struct dentry *dentry = NULL; |
33356 | struct iattr *attr = NULL; | |
33357 | int error; | |
33358 | ||
33359 | error = setattr_prepare(dentry, attr); | |
87d546d8 TG |
33360 | |
33361 | ; | |
33362 | return 0; | |
33363 | } | |
33364 | ||
33365 | _ACEOF | |
33366 | ||
33367 | ||
33368 | ||
33369 | cat - <<_ACEOF >conftest.h | |
33370 | ||
33371 | _ACEOF | |
33372 | ||
33373 | ||
33374 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33375 | echo "obj-m := conftest.o" >build/Makefile | |
33376 | modpost_flag='' | |
33377 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33378 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33379 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33380 | (eval $ac_try) 2>&5 | |
33381 | ac_status=$? | |
33382 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33383 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33384 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33385 | (eval $ac_try) 2>&5 | |
33386 | ac_status=$? | |
33387 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33388 | test $ac_status = 0; }; }; then : | |
df9d7621 CIK |
33389 | rc=0 |
33390 | else | |
33391 | $as_echo "$as_me: failed program was:" >&5 | |
33392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33393 | rc=1 | |
33394 | ||
33395 | ||
33396 | fi | |
33397 | rm -Rf build | |
33398 | ||
33399 | ||
33400 | if test $rc -ne 0; then : | |
87d546d8 | 33401 | |
df9d7621 CIK |
33402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33403 | $as_echo "no" >&6; } | |
87d546d8 | 33404 | |
df9d7621 CIK |
33405 | else |
33406 | if test "x$enable_linux_builtin" != xyes; then | |
87d546d8 | 33407 | |
df9d7621 CIK |
33408 | grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \ |
33409 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
33410 | rc=$? | |
33411 | if test $rc -ne 0; then | |
33412 | export=0 | |
33413 | for file in fs/attr.c; do | |
33414 | grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \ | |
33415 | "$LINUX/$file" 2>/dev/null | |
33416 | rc=$? | |
33417 | if test $rc -eq 0; then | |
33418 | export=1 | |
33419 | break; | |
33420 | fi | |
33421 | done | |
33422 | if test $export -eq 0; then : | |
33423 | rc=1 | |
33424 | else : | |
33425 | rc=0 | |
33426 | fi | |
33427 | else : | |
33428 | rc=0 | |
33429 | fi | |
87d546d8 | 33430 | |
df9d7621 CIK |
33431 | fi |
33432 | if test $rc -ne 0; then : | |
87d546d8 TG |
33433 | |
33434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33435 | $as_echo "no" >&6; } | |
33436 | ||
df9d7621 | 33437 | else : |
87d546d8 | 33438 | |
df9d7621 CIK |
33439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33440 | $as_echo "yes" >&6; } | |
87d546d8 | 33441 | |
df9d7621 | 33442 | $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h |
87d546d8 TG |
33443 | |
33444 | ||
df9d7621 CIK |
33445 | fi |
33446 | fi | |
87d546d8 TG |
33447 | |
33448 | ||
df9d7621 CIK |
33449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5 |
33450 | $as_echo_n "checking whether insert_inode_locked() is available... " >&6; } | |
33451 | ||
87d546d8 TG |
33452 | |
33453 | ||
33454 | cat confdefs.h - <<_ACEOF >conftest.c | |
33455 | ||
33456 | ||
df9d7621 | 33457 | #include <linux/fs.h> |
87d546d8 TG |
33458 | |
33459 | int | |
33460 | main (void) | |
33461 | { | |
33462 | ||
df9d7621 | 33463 | insert_inode_locked(NULL); |
87d546d8 TG |
33464 | |
33465 | ; | |
33466 | return 0; | |
33467 | } | |
33468 | ||
33469 | _ACEOF | |
33470 | ||
33471 | ||
33472 | ||
33473 | cat - <<_ACEOF >conftest.h | |
33474 | ||
33475 | _ACEOF | |
33476 | ||
33477 | ||
33478 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33479 | echo "obj-m := conftest.o" >build/Makefile | |
33480 | modpost_flag='' | |
33481 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33482 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33483 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33484 | (eval $ac_try) 2>&5 | |
33485 | ac_status=$? | |
33486 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33487 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33488 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33489 | (eval $ac_try) 2>&5 | |
33490 | ac_status=$? | |
33491 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33492 | test $ac_status = 0; }; }; then : | |
df9d7621 CIK |
33493 | rc=0 |
33494 | else | |
33495 | $as_echo "$as_me: failed program was:" >&5 | |
33496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33497 | rc=1 | |
87d546d8 | 33498 | |
87d546d8 | 33499 | |
df9d7621 CIK |
33500 | fi |
33501 | rm -Rf build | |
87d546d8 TG |
33502 | |
33503 | ||
df9d7621 | 33504 | if test $rc -ne 0; then : |
87d546d8 TG |
33505 | |
33506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33507 | $as_echo "no" >&6; } | |
33508 | ||
df9d7621 CIK |
33509 | else |
33510 | if test "x$enable_linux_builtin" != xyes; then | |
87d546d8 | 33511 | |
df9d7621 CIK |
33512 | grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \ |
33513 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
33514 | rc=$? | |
33515 | if test $rc -ne 0; then | |
33516 | export=0 | |
33517 | for file in fs/inode.c; do | |
33518 | grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \ | |
33519 | "$LINUX/$file" 2>/dev/null | |
33520 | rc=$? | |
33521 | if test $rc -eq 0; then | |
33522 | export=1 | |
33523 | break; | |
33524 | fi | |
33525 | done | |
33526 | if test $export -eq 0; then : | |
33527 | rc=1 | |
33528 | else : | |
33529 | rc=0 | |
33530 | fi | |
33531 | else : | |
33532 | rc=0 | |
33533 | fi | |
87d546d8 | 33534 | |
df9d7621 CIK |
33535 | fi |
33536 | if test $rc -ne 0; then : | |
87d546d8 | 33537 | |
df9d7621 CIK |
33538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33539 | $as_echo "no" >&6; } | |
87d546d8 | 33540 | |
df9d7621 | 33541 | else : |
87d546d8 | 33542 | |
df9d7621 CIK |
33543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33544 | $as_echo "yes" >&6; } | |
33545 | ||
33546 | $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h | |
33547 | ||
33548 | ||
33549 | fi | |
33550 | fi | |
33551 | ||
33552 | ||
33553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5 | |
33554 | $as_echo_n "checking whether d_make_root() is available... " >&6; } | |
87d546d8 | 33555 | |
87d546d8 TG |
33556 | |
33557 | ||
33558 | cat confdefs.h - <<_ACEOF >conftest.c | |
33559 | ||
33560 | ||
df9d7621 | 33561 | #include <linux/dcache.h> |
87d546d8 TG |
33562 | |
33563 | int | |
33564 | main (void) | |
33565 | { | |
33566 | ||
df9d7621 | 33567 | d_make_root(NULL); |
87d546d8 TG |
33568 | |
33569 | ; | |
33570 | return 0; | |
33571 | } | |
33572 | ||
33573 | _ACEOF | |
33574 | ||
33575 | ||
33576 | ||
33577 | cat - <<_ACEOF >conftest.h | |
33578 | ||
33579 | _ACEOF | |
33580 | ||
33581 | ||
33582 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33583 | echo "obj-m := conftest.o" >build/Makefile | |
33584 | modpost_flag='' | |
33585 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33586 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33587 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33588 | (eval $ac_try) 2>&5 | |
33589 | ac_status=$? | |
33590 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33591 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33592 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33593 | (eval $ac_try) 2>&5 | |
33594 | ac_status=$? | |
33595 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33596 | test $ac_status = 0; }; }; then : | |
df9d7621 CIK |
33597 | rc=0 |
33598 | else | |
33599 | $as_echo "$as_me: failed program was:" >&5 | |
33600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33601 | rc=1 | |
87d546d8 | 33602 | |
87d546d8 | 33603 | |
df9d7621 CIK |
33604 | fi |
33605 | rm -Rf build | |
87d546d8 TG |
33606 | |
33607 | ||
df9d7621 | 33608 | if test $rc -ne 0; then : |
87d546d8 TG |
33609 | |
33610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33611 | $as_echo "no" >&6; } | |
33612 | ||
df9d7621 CIK |
33613 | else |
33614 | if test "x$enable_linux_builtin" != xyes; then | |
87d546d8 | 33615 | |
df9d7621 CIK |
33616 | grep -q -E '[[:space:]]d_make_root[[:space:]]' \ |
33617 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
33618 | rc=$? | |
33619 | if test $rc -ne 0; then | |
33620 | export=0 | |
33621 | for file in fs/dcache.c; do | |
33622 | grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \ | |
33623 | "$LINUX/$file" 2>/dev/null | |
33624 | rc=$? | |
33625 | if test $rc -eq 0; then | |
33626 | export=1 | |
33627 | break; | |
33628 | fi | |
33629 | done | |
33630 | if test $export -eq 0; then : | |
33631 | rc=1 | |
33632 | else : | |
33633 | rc=0 | |
33634 | fi | |
33635 | else : | |
33636 | rc=0 | |
33637 | fi | |
87d546d8 | 33638 | |
df9d7621 CIK |
33639 | fi |
33640 | if test $rc -ne 0; then : | |
87d546d8 | 33641 | |
df9d7621 CIK |
33642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33643 | $as_echo "no" >&6; } | |
87d546d8 | 33644 | |
df9d7621 | 33645 | else : |
87d546d8 | 33646 | |
df9d7621 CIK |
33647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33648 | $as_echo "yes" >&6; } | |
33649 | ||
33650 | $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h | |
33651 | ||
33652 | ||
33653 | fi | |
33654 | fi | |
33655 | ||
33656 | ||
33657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5 | |
33658 | $as_echo_n "checking whether d_obtain_alias() is available... " >&6; } | |
87d546d8 TG |
33659 | |
33660 | ||
33661 | ||
33662 | cat confdefs.h - <<_ACEOF >conftest.c | |
33663 | ||
33664 | ||
df9d7621 | 33665 | #include <linux/dcache.h> |
87d546d8 TG |
33666 | |
33667 | int | |
33668 | main (void) | |
33669 | { | |
33670 | ||
df9d7621 | 33671 | d_obtain_alias(NULL); |
87d546d8 TG |
33672 | |
33673 | ; | |
33674 | return 0; | |
33675 | } | |
33676 | ||
33677 | _ACEOF | |
33678 | ||
33679 | ||
33680 | ||
33681 | cat - <<_ACEOF >conftest.h | |
33682 | ||
33683 | _ACEOF | |
33684 | ||
33685 | ||
33686 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33687 | echo "obj-m := conftest.o" >build/Makefile | |
33688 | modpost_flag='' | |
33689 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33690 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33691 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33692 | (eval $ac_try) 2>&5 | |
33693 | ac_status=$? | |
33694 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33695 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33696 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33697 | (eval $ac_try) 2>&5 | |
33698 | ac_status=$? | |
33699 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33700 | test $ac_status = 0; }; }; then : | |
33701 | rc=0 | |
33702 | else | |
33703 | $as_echo "$as_me: failed program was:" >&5 | |
33704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33705 | rc=1 | |
33706 | ||
33707 | ||
33708 | fi | |
33709 | rm -Rf build | |
33710 | ||
33711 | ||
33712 | if test $rc -ne 0; then : | |
33713 | ||
33714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33715 | $as_echo "no" >&6; } | |
33716 | ||
33717 | else | |
33718 | if test "x$enable_linux_builtin" != xyes; then | |
33719 | ||
df9d7621 | 33720 | grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \ |
87d546d8 TG |
33721 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
33722 | rc=$? | |
33723 | if test $rc -ne 0; then | |
33724 | export=0 | |
df9d7621 CIK |
33725 | for file in fs/dcache.c; do |
33726 | grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \ | |
87d546d8 TG |
33727 | "$LINUX/$file" 2>/dev/null |
33728 | rc=$? | |
33729 | if test $rc -eq 0; then | |
33730 | export=1 | |
33731 | break; | |
33732 | fi | |
33733 | done | |
33734 | if test $export -eq 0; then : | |
33735 | rc=1 | |
33736 | else : | |
33737 | rc=0 | |
33738 | fi | |
33739 | else : | |
33740 | rc=0 | |
33741 | fi | |
33742 | ||
33743 | fi | |
33744 | if test $rc -ne 0; then : | |
33745 | ||
33746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33747 | $as_echo "no" >&6; } | |
33748 | ||
33749 | else : | |
33750 | ||
33751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33752 | $as_echo "yes" >&6; } | |
33753 | ||
df9d7621 | 33754 | $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h |
87d546d8 TG |
33755 | |
33756 | ||
33757 | fi | |
33758 | fi | |
33759 | ||
33760 | ||
df9d7621 CIK |
33761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5 |
33762 | $as_echo_n "checking whether d_prune_aliases() is available... " >&6; } | |
87d546d8 TG |
33763 | |
33764 | ||
33765 | ||
33766 | cat confdefs.h - <<_ACEOF >conftest.c | |
33767 | ||
33768 | ||
df9d7621 | 33769 | #include <linux/dcache.h> |
87d546d8 TG |
33770 | |
33771 | int | |
33772 | main (void) | |
33773 | { | |
33774 | ||
df9d7621 CIK |
33775 | struct inode *ip = NULL; |
33776 | d_prune_aliases(ip); | |
87d546d8 TG |
33777 | |
33778 | ; | |
33779 | return 0; | |
33780 | } | |
33781 | ||
33782 | _ACEOF | |
33783 | ||
33784 | ||
33785 | ||
33786 | cat - <<_ACEOF >conftest.h | |
33787 | ||
33788 | _ACEOF | |
33789 | ||
33790 | ||
33791 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33792 | echo "obj-m := conftest.o" >build/Makefile | |
33793 | modpost_flag='' | |
33794 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33795 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33796 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33797 | (eval $ac_try) 2>&5 | |
33798 | ac_status=$? | |
33799 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33800 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33801 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33802 | (eval $ac_try) 2>&5 | |
33803 | ac_status=$? | |
33804 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33805 | test $ac_status = 0; }; }; then : | |
33806 | rc=0 | |
33807 | else | |
33808 | $as_echo "$as_me: failed program was:" >&5 | |
33809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33810 | rc=1 | |
33811 | ||
33812 | ||
33813 | fi | |
33814 | rm -Rf build | |
33815 | ||
33816 | ||
33817 | if test $rc -ne 0; then : | |
33818 | ||
33819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33820 | $as_echo "no" >&6; } | |
33821 | ||
33822 | else | |
33823 | if test "x$enable_linux_builtin" != xyes; then | |
33824 | ||
df9d7621 | 33825 | grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \ |
87d546d8 TG |
33826 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
33827 | rc=$? | |
33828 | if test $rc -ne 0; then | |
33829 | export=0 | |
df9d7621 CIK |
33830 | for file in fs/dcache.c; do |
33831 | grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \ | |
87d546d8 TG |
33832 | "$LINUX/$file" 2>/dev/null |
33833 | rc=$? | |
33834 | if test $rc -eq 0; then | |
33835 | export=1 | |
33836 | break; | |
33837 | fi | |
33838 | done | |
33839 | if test $export -eq 0; then : | |
33840 | rc=1 | |
33841 | else : | |
33842 | rc=0 | |
33843 | fi | |
33844 | else : | |
33845 | rc=0 | |
33846 | fi | |
33847 | ||
33848 | fi | |
33849 | if test $rc -ne 0; then : | |
33850 | ||
33851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33852 | $as_echo "no" >&6; } | |
33853 | ||
33854 | else : | |
33855 | ||
33856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33857 | $as_echo "yes" >&6; } | |
33858 | ||
df9d7621 | 33859 | $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h |
87d546d8 TG |
33860 | |
33861 | ||
33862 | fi | |
33863 | fi | |
33864 | ||
33865 | ||
df9d7621 CIK |
33866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5 |
33867 | $as_echo_n "checking whether d_set_d_op() is available... " >&6; } | |
87d546d8 TG |
33868 | |
33869 | ||
33870 | ||
33871 | cat confdefs.h - <<_ACEOF >conftest.c | |
33872 | ||
33873 | ||
df9d7621 | 33874 | #include <linux/dcache.h> |
87d546d8 TG |
33875 | |
33876 | int | |
33877 | main (void) | |
33878 | { | |
33879 | ||
df9d7621 | 33880 | d_set_d_op(NULL, NULL); |
87d546d8 TG |
33881 | |
33882 | ; | |
33883 | return 0; | |
33884 | } | |
33885 | ||
33886 | _ACEOF | |
33887 | ||
33888 | ||
33889 | ||
33890 | cat - <<_ACEOF >conftest.h | |
33891 | ||
33892 | _ACEOF | |
33893 | ||
33894 | ||
33895 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33896 | echo "obj-m := conftest.o" >build/Makefile | |
33897 | modpost_flag='' | |
33898 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33899 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33900 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33901 | (eval $ac_try) 2>&5 | |
33902 | ac_status=$? | |
33903 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33904 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33905 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33906 | (eval $ac_try) 2>&5 | |
33907 | ac_status=$? | |
33908 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33909 | test $ac_status = 0; }; }; then : | |
33910 | rc=0 | |
33911 | else | |
33912 | $as_echo "$as_me: failed program was:" >&5 | |
33913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33914 | rc=1 | |
33915 | ||
33916 | ||
33917 | fi | |
33918 | rm -Rf build | |
33919 | ||
33920 | ||
33921 | if test $rc -ne 0; then : | |
33922 | ||
33923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33924 | $as_echo "no" >&6; } | |
33925 | ||
33926 | else | |
33927 | if test "x$enable_linux_builtin" != xyes; then | |
33928 | ||
df9d7621 | 33929 | grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \ |
87d546d8 TG |
33930 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
33931 | rc=$? | |
33932 | if test $rc -ne 0; then | |
33933 | export=0 | |
df9d7621 CIK |
33934 | for file in fs/dcache.c; do |
33935 | grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \ | |
87d546d8 TG |
33936 | "$LINUX/$file" 2>/dev/null |
33937 | rc=$? | |
33938 | if test $rc -eq 0; then | |
33939 | export=1 | |
33940 | break; | |
33941 | fi | |
33942 | done | |
33943 | if test $export -eq 0; then : | |
33944 | rc=1 | |
33945 | else : | |
33946 | rc=0 | |
33947 | fi | |
33948 | else : | |
33949 | rc=0 | |
33950 | fi | |
33951 | ||
33952 | fi | |
33953 | if test $rc -ne 0; then : | |
33954 | ||
33955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33956 | $as_echo "no" >&6; } | |
33957 | ||
33958 | else : | |
33959 | ||
33960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33961 | $as_echo "yes" >&6; } | |
33962 | ||
df9d7621 | 33963 | $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h |
87d546d8 TG |
33964 | |
33965 | ||
33966 | fi | |
33967 | fi | |
33968 | ||
33969 | ||
87d546d8 | 33970 | |
df9d7621 CIK |
33971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5 |
33972 | $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; } | |
87d546d8 TG |
33973 | |
33974 | ||
33975 | cat confdefs.h - <<_ACEOF >conftest.c | |
33976 | ||
33977 | ||
33978 | #include <linux/dcache.h> | |
33979 | ||
df9d7621 CIK |
33980 | int revalidate (struct dentry *dentry, |
33981 | struct nameidata *nidata) { return 0; } | |
33982 | ||
33983 | static const struct dentry_operations | |
33984 | dops __attribute__ ((unused)) = { | |
33985 | .d_revalidate = revalidate, | |
33986 | }; | |
33987 | ||
87d546d8 TG |
33988 | int |
33989 | main (void) | |
33990 | { | |
33991 | ||
87d546d8 TG |
33992 | |
33993 | ; | |
33994 | return 0; | |
33995 | } | |
33996 | ||
33997 | _ACEOF | |
33998 | ||
33999 | ||
34000 | ||
34001 | cat - <<_ACEOF >conftest.h | |
34002 | ||
34003 | _ACEOF | |
34004 | ||
34005 | ||
34006 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34007 | echo "obj-m := conftest.o" >build/Makefile | |
34008 | modpost_flag='' | |
34009 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34010 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34011 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34012 | (eval $ac_try) 2>&5 | |
34013 | ac_status=$? | |
34014 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34015 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34016 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34017 | (eval $ac_try) 2>&5 | |
34018 | ac_status=$? | |
34019 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34020 | test $ac_status = 0; }; }; then : | |
87d546d8 | 34021 | |
df9d7621 CIK |
34022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
34023 | $as_echo "yes" >&6; } | |
87d546d8 | 34024 | |
df9d7621 | 34025 | $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h |
87d546d8 | 34026 | |
87d546d8 | 34027 | |
df9d7621 CIK |
34028 | else |
34029 | $as_echo "$as_me: failed program was:" >&5 | |
34030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
87d546d8 TG |
34031 | |
34032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34033 | $as_echo "no" >&6; } | |
34034 | ||
87d546d8 | 34035 | |
87d546d8 | 34036 | |
df9d7621 CIK |
34037 | fi |
34038 | rm -Rf build | |
87d546d8 | 34039 | |
87d546d8 TG |
34040 | |
34041 | ||
87d546d8 | 34042 | |
df9d7621 CIK |
34043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5 |
34044 | $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; } | |
87d546d8 TG |
34045 | |
34046 | ||
34047 | cat confdefs.h - <<_ACEOF >conftest.c | |
34048 | ||
34049 | ||
34050 | #include <linux/dcache.h> | |
34051 | ||
df9d7621 CIK |
34052 | const struct dentry_operations test_d_op = { |
34053 | .d_revalidate = NULL, | |
34054 | }; | |
34055 | ||
87d546d8 TG |
34056 | int |
34057 | main (void) | |
34058 | { | |
34059 | ||
df9d7621 CIK |
34060 | struct dentry d __attribute__ ((unused)); |
34061 | ||
34062 | d.d_op = &test_d_op; | |
87d546d8 TG |
34063 | |
34064 | ; | |
34065 | return 0; | |
34066 | } | |
34067 | ||
34068 | _ACEOF | |
34069 | ||
34070 | ||
34071 | ||
34072 | cat - <<_ACEOF >conftest.h | |
34073 | ||
34074 | _ACEOF | |
34075 | ||
34076 | ||
34077 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34078 | echo "obj-m := conftest.o" >build/Makefile | |
34079 | modpost_flag='' | |
34080 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34081 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34082 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34083 | (eval $ac_try) 2>&5 | |
34084 | ac_status=$? | |
34085 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34086 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34087 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34088 | (eval $ac_try) 2>&5 | |
34089 | ac_status=$? | |
34090 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34091 | test $ac_status = 0; }; }; then : | |
87d546d8 | 34092 | |
df9d7621 CIK |
34093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
34094 | $as_echo "yes" >&6; } | |
87d546d8 | 34095 | |
df9d7621 | 34096 | $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h |
87d546d8 | 34097 | |
87d546d8 | 34098 | |
df9d7621 CIK |
34099 | else |
34100 | $as_echo "$as_me: failed program was:" >&5 | |
34101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
87d546d8 TG |
34102 | |
34103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34104 | $as_echo "no" >&6; } | |
34105 | ||
87d546d8 | 34106 | |
87d546d8 | 34107 | |
df9d7621 CIK |
34108 | fi |
34109 | rm -Rf build | |
87d546d8 | 34110 | |
87d546d8 TG |
34111 | |
34112 | ||
df9d7621 CIK |
34113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5 |
34114 | $as_echo_n "checking whether check_disk_size_change() is available... " >&6; } | |
87d546d8 TG |
34115 | |
34116 | ||
34117 | ||
34118 | cat confdefs.h - <<_ACEOF >conftest.c | |
34119 | ||
34120 | ||
df9d7621 | 34121 | #include <linux/fs.h> |
87d546d8 TG |
34122 | |
34123 | int | |
34124 | main (void) | |
34125 | { | |
34126 | ||
df9d7621 | 34127 | check_disk_size_change(NULL, NULL); |
87d546d8 TG |
34128 | |
34129 | ; | |
34130 | return 0; | |
34131 | } | |
34132 | ||
34133 | _ACEOF | |
34134 | ||
34135 | ||
34136 | ||
34137 | cat - <<_ACEOF >conftest.h | |
34138 | ||
34139 | _ACEOF | |
34140 | ||
34141 | ||
34142 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34143 | echo "obj-m := conftest.o" >build/Makefile | |
34144 | modpost_flag='' | |
34145 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34146 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34147 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34148 | (eval $ac_try) 2>&5 | |
34149 | ac_status=$? | |
34150 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34151 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34152 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34153 | (eval $ac_try) 2>&5 | |
34154 | ac_status=$? | |
34155 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34156 | test $ac_status = 0; }; }; then : | |
34157 | rc=0 | |
34158 | else | |
34159 | $as_echo "$as_me: failed program was:" >&5 | |
34160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34161 | rc=1 | |
34162 | ||
34163 | ||
34164 | fi | |
34165 | rm -Rf build | |
34166 | ||
34167 | ||
34168 | if test $rc -ne 0; then : | |
34169 | ||
34170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34171 | $as_echo "no" >&6; } | |
34172 | ||
34173 | else | |
34174 | if test "x$enable_linux_builtin" != xyes; then | |
34175 | ||
df9d7621 | 34176 | grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \ |
87d546d8 TG |
34177 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
34178 | rc=$? | |
34179 | if test $rc -ne 0; then | |
34180 | export=0 | |
df9d7621 CIK |
34181 | for file in fs/block_dev.c; do |
34182 | grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \ | |
87d546d8 TG |
34183 | "$LINUX/$file" 2>/dev/null |
34184 | rc=$? | |
34185 | if test $rc -eq 0; then | |
34186 | export=1 | |
34187 | break; | |
34188 | fi | |
34189 | done | |
34190 | if test $export -eq 0; then : | |
34191 | rc=1 | |
34192 | else : | |
34193 | rc=0 | |
34194 | fi | |
34195 | else : | |
34196 | rc=0 | |
34197 | fi | |
34198 | ||
34199 | fi | |
34200 | if test $rc -ne 0; then : | |
34201 | ||
34202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34203 | $as_echo "no" >&6; } | |
34204 | ||
34205 | else : | |
34206 | ||
34207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34208 | $as_echo "yes" >&6; } | |
34209 | ||
df9d7621 | 34210 | $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h |
87d546d8 TG |
34211 | |
34212 | ||
34213 | fi | |
34214 | fi | |
34215 | ||
34216 | ||
df9d7621 CIK |
34217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5 |
34218 | $as_echo_n "checking whether truncate_setsize() is available... " >&6; } | |
87d546d8 TG |
34219 | |
34220 | ||
34221 | ||
34222 | cat confdefs.h - <<_ACEOF >conftest.c | |
34223 | ||
34224 | ||
df9d7621 | 34225 | #include <linux/mm.h> |
87d546d8 TG |
34226 | |
34227 | int | |
34228 | main (void) | |
34229 | { | |
34230 | ||
df9d7621 | 34231 | truncate_setsize(NULL, 0); |
87d546d8 TG |
34232 | |
34233 | ; | |
34234 | return 0; | |
34235 | } | |
34236 | ||
34237 | _ACEOF | |
34238 | ||
34239 | ||
34240 | ||
34241 | cat - <<_ACEOF >conftest.h | |
34242 | ||
34243 | _ACEOF | |
34244 | ||
34245 | ||
34246 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34247 | echo "obj-m := conftest.o" >build/Makefile | |
34248 | modpost_flag='' | |
34249 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34250 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34251 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34252 | (eval $ac_try) 2>&5 | |
34253 | ac_status=$? | |
34254 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34255 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34256 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34257 | (eval $ac_try) 2>&5 | |
34258 | ac_status=$? | |
34259 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34260 | test $ac_status = 0; }; }; then : | |
34261 | rc=0 | |
34262 | else | |
34263 | $as_echo "$as_me: failed program was:" >&5 | |
34264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34265 | rc=1 | |
34266 | ||
34267 | ||
34268 | fi | |
34269 | rm -Rf build | |
34270 | ||
34271 | ||
34272 | if test $rc -ne 0; then : | |
34273 | ||
34274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34275 | $as_echo "no" >&6; } | |
34276 | ||
34277 | else | |
34278 | if test "x$enable_linux_builtin" != xyes; then | |
34279 | ||
df9d7621 | 34280 | grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \ |
87d546d8 TG |
34281 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
34282 | rc=$? | |
34283 | if test $rc -ne 0; then | |
34284 | export=0 | |
df9d7621 CIK |
34285 | for file in mm/truncate.c; do |
34286 | grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \ | |
87d546d8 TG |
34287 | "$LINUX/$file" 2>/dev/null |
34288 | rc=$? | |
34289 | if test $rc -eq 0; then | |
34290 | export=1 | |
34291 | break; | |
34292 | fi | |
34293 | done | |
34294 | if test $export -eq 0; then : | |
34295 | rc=1 | |
34296 | else : | |
34297 | rc=0 | |
34298 | fi | |
34299 | else : | |
34300 | rc=0 | |
34301 | fi | |
34302 | ||
34303 | fi | |
34304 | if test $rc -ne 0; then : | |
34305 | ||
34306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34307 | $as_echo "no" >&6; } | |
34308 | ||
34309 | else : | |
34310 | ||
34311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34312 | $as_echo "yes" >&6; } | |
34313 | ||
df9d7621 | 34314 | $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h |
87d546d8 TG |
34315 | |
34316 | ||
34317 | fi | |
34318 | fi | |
34319 | ||
34320 | ||
34321 | ||
df9d7621 CIK |
34322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5 |
34323 | $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; } | |
87d546d8 TG |
34324 | |
34325 | ||
34326 | cat confdefs.h - <<_ACEOF >conftest.c | |
34327 | ||
34328 | ||
df9d7621 | 34329 | #include <linux/security.h> |
87d546d8 TG |
34330 | |
34331 | int | |
34332 | main (void) | |
34333 | { | |
34334 | ||
df9d7621 CIK |
34335 | struct inode *ip __attribute__ ((unused)) = NULL; |
34336 | struct inode *dip __attribute__ ((unused)) = NULL; | |
34337 | const struct qstr *str __attribute__ ((unused)) = NULL; | |
34338 | char *name __attribute__ ((unused)) = NULL; | |
34339 | void *value __attribute__ ((unused)) = NULL; | |
34340 | size_t len __attribute__ ((unused)) = 0; | |
34341 | ||
34342 | security_inode_init_security(ip, dip, str, &name, &value, &len); | |
87d546d8 TG |
34343 | |
34344 | ; | |
34345 | return 0; | |
34346 | } | |
34347 | ||
34348 | _ACEOF | |
34349 | ||
34350 | ||
34351 | ||
34352 | cat - <<_ACEOF >conftest.h | |
34353 | ||
34354 | _ACEOF | |
34355 | ||
34356 | ||
34357 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34358 | echo "obj-m := conftest.o" >build/Makefile | |
34359 | modpost_flag='' | |
34360 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34361 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34362 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34363 | (eval $ac_try) 2>&5 | |
34364 | ac_status=$? | |
34365 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34366 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34367 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34368 | (eval $ac_try) 2>&5 | |
34369 | ac_status=$? | |
34370 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34371 | test $ac_status = 0; }; }; then : | |
34372 | ||
34373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34374 | $as_echo "yes" >&6; } | |
34375 | ||
df9d7621 | 34376 | $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h |
87d546d8 TG |
34377 | |
34378 | ||
34379 | else | |
34380 | $as_echo "$as_me: failed program was:" >&5 | |
34381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34382 | ||
34383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34384 | $as_echo "no" >&6; } | |
34385 | ||
34386 | ||
34387 | ||
34388 | fi | |
34389 | rm -Rf build | |
34390 | ||
34391 | ||
34392 | ||
34393 | ||
df9d7621 CIK |
34394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5 |
34395 | $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; } | |
87d546d8 TG |
34396 | |
34397 | ||
34398 | cat confdefs.h - <<_ACEOF >conftest.c | |
34399 | ||
34400 | ||
df9d7621 | 34401 | #include <linux/security.h> |
87d546d8 TG |
34402 | |
34403 | int | |
34404 | main (void) | |
34405 | { | |
34406 | ||
df9d7621 CIK |
34407 | struct inode *ip __attribute__ ((unused)) = NULL; |
34408 | struct inode *dip __attribute__ ((unused)) = NULL; | |
34409 | const struct qstr *str __attribute__ ((unused)) = NULL; | |
34410 | initxattrs func __attribute__ ((unused)) = NULL; | |
87d546d8 | 34411 | |
df9d7621 | 34412 | security_inode_init_security(ip, dip, str, func, NULL); |
87d546d8 TG |
34413 | |
34414 | ; | |
34415 | return 0; | |
34416 | } | |
34417 | ||
34418 | _ACEOF | |
34419 | ||
34420 | ||
34421 | ||
34422 | cat - <<_ACEOF >conftest.h | |
34423 | ||
34424 | _ACEOF | |
34425 | ||
34426 | ||
34427 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34428 | echo "obj-m := conftest.o" >build/Makefile | |
34429 | modpost_flag='' | |
34430 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34431 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34432 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34433 | (eval $ac_try) 2>&5 | |
34434 | ac_status=$? | |
34435 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34436 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34437 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34438 | (eval $ac_try) 2>&5 | |
34439 | ac_status=$? | |
34440 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34441 | test $ac_status = 0; }; }; then : | |
34442 | ||
34443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34444 | $as_echo "yes" >&6; } | |
34445 | ||
df9d7621 | 34446 | $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h |
87d546d8 TG |
34447 | |
34448 | ||
34449 | else | |
34450 | $as_echo "$as_me: failed program was:" >&5 | |
34451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34452 | ||
34453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34454 | $as_echo "no" >&6; } | |
34455 | ||
34456 | ||
34457 | ||
34458 | fi | |
34459 | rm -Rf build | |
34460 | ||
34461 | ||
34462 | ||
df9d7621 CIK |
34463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5 |
34464 | $as_echo_n "checking whether mount_nodev() is available... " >&6; } | |
87d546d8 TG |
34465 | |
34466 | ||
34467 | ||
34468 | cat confdefs.h - <<_ACEOF >conftest.c | |
34469 | ||
34470 | ||
34471 | #include <linux/fs.h> | |
34472 | ||
34473 | int | |
34474 | main (void) | |
34475 | { | |
34476 | ||
df9d7621 | 34477 | mount_nodev(NULL, 0, NULL, NULL); |
87d546d8 TG |
34478 | |
34479 | ; | |
34480 | return 0; | |
34481 | } | |
34482 | ||
34483 | _ACEOF | |
34484 | ||
34485 | ||
34486 | ||
34487 | cat - <<_ACEOF >conftest.h | |
34488 | ||
34489 | _ACEOF | |
34490 | ||
34491 | ||
34492 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34493 | echo "obj-m := conftest.o" >build/Makefile | |
34494 | modpost_flag='' | |
34495 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34496 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34497 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34498 | (eval $ac_try) 2>&5 | |
34499 | ac_status=$? | |
34500 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34501 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34502 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34503 | (eval $ac_try) 2>&5 | |
34504 | ac_status=$? | |
34505 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34506 | test $ac_status = 0; }; }; then : | |
34507 | rc=0 | |
34508 | else | |
34509 | $as_echo "$as_me: failed program was:" >&5 | |
34510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34511 | rc=1 | |
34512 | ||
34513 | ||
34514 | fi | |
34515 | rm -Rf build | |
34516 | ||
34517 | ||
34518 | if test $rc -ne 0; then : | |
34519 | ||
34520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34521 | $as_echo "no" >&6; } | |
34522 | ||
34523 | else | |
34524 | if test "x$enable_linux_builtin" != xyes; then | |
34525 | ||
df9d7621 | 34526 | grep -q -E '[[:space:]]mount_nodev[[:space:]]' \ |
87d546d8 TG |
34527 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
34528 | rc=$? | |
34529 | if test $rc -ne 0; then | |
34530 | export=0 | |
df9d7621 CIK |
34531 | for file in fs/super.c; do |
34532 | grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \ | |
87d546d8 TG |
34533 | "$LINUX/$file" 2>/dev/null |
34534 | rc=$? | |
34535 | if test $rc -eq 0; then | |
34536 | export=1 | |
34537 | break; | |
34538 | fi | |
34539 | done | |
34540 | if test $export -eq 0; then : | |
34541 | rc=1 | |
34542 | else : | |
34543 | rc=0 | |
34544 | fi | |
34545 | else : | |
34546 | rc=0 | |
34547 | fi | |
34548 | ||
34549 | fi | |
34550 | if test $rc -ne 0; then : | |
34551 | ||
34552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34553 | $as_echo "no" >&6; } | |
34554 | ||
34555 | else : | |
34556 | ||
34557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34558 | $as_echo "yes" >&6; } | |
34559 | ||
df9d7621 | 34560 | $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h |
87d546d8 TG |
34561 | |
34562 | ||
34563 | fi | |
34564 | fi | |
34565 | ||
34566 | ||
87d546d8 | 34567 | |
df9d7621 CIK |
34568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5 |
34569 | $as_echo_n "checking whether super_block has s_shrink... " >&6; } | |
87d546d8 TG |
34570 | |
34571 | ||
34572 | cat confdefs.h - <<_ACEOF >conftest.c | |
34573 | ||
34574 | ||
df9d7621 CIK |
34575 | #include <linux/fs.h> |
34576 | ||
34577 | int shrink(struct shrinker *s, struct shrink_control *sc) | |
34578 | { return 0; } | |
34579 | ||
34580 | static const struct super_block | |
34581 | sb __attribute__ ((unused)) = { | |
34582 | .s_shrink.shrink = shrink, | |
34583 | .s_shrink.seeks = DEFAULT_SEEKS, | |
34584 | .s_shrink.batch = 0, | |
34585 | }; | |
87d546d8 TG |
34586 | |
34587 | int | |
34588 | main (void) | |
34589 | { | |
34590 | ||
87d546d8 TG |
34591 | |
34592 | ; | |
34593 | return 0; | |
34594 | } | |
34595 | ||
34596 | _ACEOF | |
34597 | ||
34598 | ||
34599 | ||
34600 | cat - <<_ACEOF >conftest.h | |
34601 | ||
34602 | _ACEOF | |
34603 | ||
34604 | ||
34605 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34606 | echo "obj-m := conftest.o" >build/Makefile | |
34607 | modpost_flag='' | |
34608 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34609 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34610 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34611 | (eval $ac_try) 2>&5 | |
34612 | ac_status=$? | |
34613 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34614 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34615 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34616 | (eval $ac_try) 2>&5 | |
34617 | ac_status=$? | |
34618 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34619 | test $ac_status = 0; }; }; then : | |
87d546d8 | 34620 | |
df9d7621 CIK |
34621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
34622 | $as_echo "yes" >&6; } | |
87d546d8 | 34623 | |
df9d7621 | 34624 | $as_echo "#define HAVE_SHRINK 1" >>confdefs.h |
87d546d8 | 34625 | |
df9d7621 CIK |
34626 | |
34627 | ||
34628 | else | |
34629 | $as_echo "$as_me: failed program was:" >&5 | |
34630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
87d546d8 TG |
34631 | |
34632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34633 | $as_echo "no" >&6; } | |
34634 | ||
87d546d8 | 34635 | |
87d546d8 | 34636 | |
df9d7621 CIK |
34637 | fi |
34638 | rm -Rf build | |
87d546d8 | 34639 | |
87d546d8 TG |
34640 | |
34641 | ||
34642 | ||
df9d7621 CIK |
34643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5 |
34644 | $as_echo_n "checking whether shrink_control has nid... " >&6; } | |
87d546d8 TG |
34645 | |
34646 | ||
34647 | cat confdefs.h - <<_ACEOF >conftest.c | |
34648 | ||
34649 | ||
df9d7621 | 34650 | #include <linux/fs.h> |
87d546d8 TG |
34651 | |
34652 | int | |
34653 | main (void) | |
34654 | { | |
34655 | ||
df9d7621 CIK |
34656 | struct shrink_control sc __attribute__ ((unused)); |
34657 | unsigned long scnidsize __attribute__ ((unused)) = | |
34658 | sizeof(sc.nid); | |
87d546d8 TG |
34659 | |
34660 | ; | |
34661 | return 0; | |
34662 | } | |
34663 | ||
34664 | _ACEOF | |
34665 | ||
34666 | ||
34667 | ||
34668 | cat - <<_ACEOF >conftest.h | |
34669 | ||
34670 | _ACEOF | |
34671 | ||
34672 | ||
34673 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34674 | echo "obj-m := conftest.o" >build/Makefile | |
34675 | modpost_flag='' | |
34676 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34677 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34678 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34679 | (eval $ac_try) 2>&5 | |
34680 | ac_status=$? | |
34681 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34682 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34683 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34684 | (eval $ac_try) 2>&5 | |
34685 | ac_status=$? | |
34686 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34687 | test $ac_status = 0; }; }; then : | |
34688 | ||
34689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34690 | $as_echo "yes" >&6; } | |
34691 | ||
df9d7621 | 34692 | $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h |
87d546d8 TG |
34693 | |
34694 | ||
34695 | else | |
34696 | $as_echo "$as_me: failed program was:" >&5 | |
34697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34698 | ||
34699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34700 | $as_echo "no" >&6; } | |
34701 | ||
34702 | ||
34703 | ||
34704 | fi | |
34705 | rm -Rf build | |
34706 | ||
34707 | ||
34708 | ||
34709 | ||
df9d7621 CIK |
34710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5 |
34711 | $as_echo_n "checking whether super_block has s_instances list_head... " >&6; } | |
87d546d8 TG |
34712 | |
34713 | ||
34714 | cat confdefs.h - <<_ACEOF >conftest.c | |
34715 | ||
34716 | ||
df9d7621 | 34717 | #include <linux/fs.h> |
87d546d8 TG |
34718 | |
34719 | int | |
34720 | main (void) | |
34721 | { | |
34722 | ||
df9d7621 | 34723 | struct super_block sb __attribute__ ((unused)); |
87d546d8 | 34724 | |
df9d7621 | 34725 | INIT_LIST_HEAD(&sb.s_instances); |
87d546d8 TG |
34726 | |
34727 | ; | |
34728 | return 0; | |
34729 | } | |
34730 | ||
34731 | _ACEOF | |
34732 | ||
34733 | ||
34734 | ||
34735 | cat - <<_ACEOF >conftest.h | |
34736 | ||
34737 | _ACEOF | |
34738 | ||
34739 | ||
34740 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34741 | echo "obj-m := conftest.o" >build/Makefile | |
34742 | modpost_flag='' | |
34743 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34744 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34745 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34746 | (eval $ac_try) 2>&5 | |
34747 | ac_status=$? | |
34748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34749 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34750 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34751 | (eval $ac_try) 2>&5 | |
34752 | ac_status=$? | |
34753 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34754 | test $ac_status = 0; }; }; then : | |
34755 | ||
34756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34757 | $as_echo "yes" >&6; } | |
34758 | ||
df9d7621 | 34759 | $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h |
87d546d8 TG |
34760 | |
34761 | ||
34762 | else | |
34763 | $as_echo "$as_me: failed program was:" >&5 | |
34764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34765 | ||
34766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34767 | $as_echo "no" >&6; } | |
34768 | ||
34769 | ||
34770 | ||
34771 | fi | |
34772 | rm -Rf build | |
34773 | ||
34774 | ||
34775 | ||
df9d7621 CIK |
34776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5 |
34777 | $as_echo_n "checking whether super_block has s_d_op... " >&6; } | |
87d546d8 TG |
34778 | |
34779 | ||
34780 | cat confdefs.h - <<_ACEOF >conftest.c | |
34781 | ||
34782 | ||
34783 | #include <linux/fs.h> | |
34784 | ||
34785 | int | |
34786 | main (void) | |
34787 | { | |
34788 | ||
df9d7621 CIK |
34789 | struct super_block sb __attribute__ ((unused)); |
34790 | sb.s_d_op = NULL; | |
87d546d8 TG |
34791 | |
34792 | ; | |
34793 | return 0; | |
34794 | } | |
34795 | ||
34796 | _ACEOF | |
34797 | ||
34798 | ||
34799 | ||
34800 | cat - <<_ACEOF >conftest.h | |
34801 | ||
34802 | _ACEOF | |
34803 | ||
34804 | ||
34805 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34806 | echo "obj-m := conftest.o" >build/Makefile | |
34807 | modpost_flag='' | |
34808 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34809 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34810 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34811 | (eval $ac_try) 2>&5 | |
34812 | ac_status=$? | |
34813 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34814 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34815 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34816 | (eval $ac_try) 2>&5 | |
34817 | ac_status=$? | |
34818 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34819 | test $ac_status = 0; }; }; then : | |
87d546d8 | 34820 | |
df9d7621 CIK |
34821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
34822 | $as_echo "yes" >&6; } | |
87d546d8 | 34823 | |
df9d7621 | 34824 | $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h |
87d546d8 | 34825 | |
87d546d8 | 34826 | |
df9d7621 CIK |
34827 | else |
34828 | $as_echo "$as_me: failed program was:" >&5 | |
34829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
87d546d8 TG |
34830 | |
34831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34832 | $as_echo "no" >&6; } | |
34833 | ||
87d546d8 | 34834 | |
87d546d8 | 34835 | |
df9d7621 CIK |
34836 | fi |
34837 | rm -Rf build | |
87d546d8 TG |
34838 | |
34839 | ||
87d546d8 TG |
34840 | |
34841 | ||
df9d7621 CIK |
34842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5 |
34843 | $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; } | |
87d546d8 | 34844 | |
87d546d8 TG |
34845 | |
34846 | ||
34847 | cat confdefs.h - <<_ACEOF >conftest.c | |
34848 | ||
34849 | ||
34850 | #include <linux/fs.h> | |
df9d7621 | 34851 | struct super_block sb; |
87d546d8 TG |
34852 | |
34853 | int | |
34854 | main (void) | |
34855 | { | |
34856 | ||
df9d7621 CIK |
34857 | char *name = "bdi"; |
34858 | int error __attribute__((unused)) = | |
34859 | super_setup_bdi_name(&sb, name); | |
87d546d8 TG |
34860 | |
34861 | ; | |
34862 | return 0; | |
34863 | } | |
34864 | ||
34865 | _ACEOF | |
34866 | ||
34867 | ||
34868 | ||
34869 | cat - <<_ACEOF >conftest.h | |
34870 | ||
34871 | _ACEOF | |
34872 | ||
34873 | ||
34874 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34875 | echo "obj-m := conftest.o" >build/Makefile | |
34876 | modpost_flag='' | |
34877 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34878 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34879 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34880 | (eval $ac_try) 2>&5 | |
34881 | ac_status=$? | |
34882 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34883 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34884 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34885 | (eval $ac_try) 2>&5 | |
34886 | ac_status=$? | |
34887 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34888 | test $ac_status = 0; }; }; then : | |
df9d7621 | 34889 | rc=0 |
87d546d8 TG |
34890 | else |
34891 | $as_echo "$as_me: failed program was:" >&5 | |
34892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
df9d7621 | 34893 | rc=1 |
87d546d8 TG |
34894 | |
34895 | ||
34896 | fi | |
34897 | rm -Rf build | |
34898 | ||
34899 | ||
df9d7621 | 34900 | if test $rc -ne 0; then : |
87d546d8 | 34901 | |
df9d7621 CIK |
34902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
34903 | $as_echo "no" >&6; } | |
34904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5 | |
34905 | $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; } | |
87d546d8 | 34906 | |
87d546d8 TG |
34907 | |
34908 | ||
34909 | cat confdefs.h - <<_ACEOF >conftest.c | |
34910 | ||
34911 | ||
df9d7621 CIK |
34912 | #include <linux/backing-dev.h> |
34913 | struct backing_dev_info bdi; | |
87d546d8 TG |
34914 | |
34915 | int | |
34916 | main (void) | |
34917 | { | |
34918 | ||
df9d7621 CIK |
34919 | char *name = "bdi"; |
34920 | int error __attribute__((unused)) = | |
34921 | bdi_setup_and_register(&bdi, name); | |
87d546d8 TG |
34922 | |
34923 | ; | |
34924 | return 0; | |
34925 | } | |
34926 | ||
34927 | _ACEOF | |
34928 | ||
34929 | ||
34930 | ||
34931 | cat - <<_ACEOF >conftest.h | |
34932 | ||
34933 | _ACEOF | |
34934 | ||
34935 | ||
34936 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34937 | echo "obj-m := conftest.o" >build/Makefile | |
34938 | modpost_flag='' | |
34939 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34940 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34941 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34942 | (eval $ac_try) 2>&5 | |
34943 | ac_status=$? | |
34944 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34945 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34946 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34947 | (eval $ac_try) 2>&5 | |
34948 | ac_status=$? | |
34949 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34950 | test $ac_status = 0; }; }; then : | |
df9d7621 | 34951 | rc=0 |
87d546d8 TG |
34952 | else |
34953 | $as_echo "$as_me: failed program was:" >&5 | |
34954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
df9d7621 | 34955 | rc=1 |
87d546d8 TG |
34956 | |
34957 | ||
34958 | fi | |
34959 | rm -Rf build | |
34960 | ||
34961 | ||
df9d7621 | 34962 | if test $rc -ne 0; then : |
87d546d8 | 34963 | |
df9d7621 CIK |
34964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
34965 | $as_echo "no" >&6; } | |
34966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 | |
34967 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
87d546d8 | 34968 | |
87d546d8 TG |
34969 | |
34970 | ||
34971 | cat confdefs.h - <<_ACEOF >conftest.c | |
34972 | ||
34973 | ||
df9d7621 CIK |
34974 | #include <linux/backing-dev.h> |
34975 | struct backing_dev_info bdi; | |
87d546d8 TG |
34976 | |
34977 | int | |
34978 | main (void) | |
34979 | { | |
34980 | ||
df9d7621 CIK |
34981 | char *name = "bdi"; |
34982 | unsigned int cap = BDI_CAP_MAP_COPY; | |
34983 | int error __attribute__((unused)) = | |
34984 | bdi_setup_and_register(&bdi, name, cap); | |
87d546d8 TG |
34985 | |
34986 | ; | |
34987 | return 0; | |
34988 | } | |
34989 | ||
34990 | _ACEOF | |
34991 | ||
34992 | ||
34993 | ||
34994 | cat - <<_ACEOF >conftest.h | |
34995 | ||
34996 | _ACEOF | |
34997 | ||
34998 | ||
34999 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35000 | echo "obj-m := conftest.o" >build/Makefile | |
35001 | modpost_flag='' | |
35002 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35003 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35004 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35005 | (eval $ac_try) 2>&5 | |
35006 | ac_status=$? | |
35007 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35008 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35009 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35010 | (eval $ac_try) 2>&5 | |
35011 | ac_status=$? | |
35012 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35013 | test $ac_status = 0; }; }; then : | |
df9d7621 CIK |
35014 | rc=0 |
35015 | else | |
35016 | $as_echo "$as_me: failed program was:" >&5 | |
35017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35018 | rc=1 | |
87d546d8 | 35019 | |
87d546d8 | 35020 | |
df9d7621 CIK |
35021 | fi |
35022 | rm -Rf build | |
87d546d8 TG |
35023 | |
35024 | ||
df9d7621 | 35025 | if test $rc -ne 0; then : |
87d546d8 | 35026 | |
df9d7621 | 35027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
35028 | $as_echo "no" >&6; } |
35029 | ||
df9d7621 CIK |
35030 | else |
35031 | if test "x$enable_linux_builtin" != xyes; then | |
35032 | ||
35033 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
35034 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35035 | rc=$? | |
35036 | if test $rc -ne 0; then | |
35037 | export=0 | |
35038 | for file in mm/backing-dev.c; do | |
35039 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
35040 | "$LINUX/$file" 2>/dev/null | |
35041 | rc=$? | |
35042 | if test $rc -eq 0; then | |
35043 | export=1 | |
35044 | break; | |
35045 | fi | |
35046 | done | |
35047 | if test $export -eq 0; then : | |
35048 | rc=1 | |
35049 | else : | |
35050 | rc=0 | |
35051 | fi | |
35052 | else : | |
35053 | rc=0 | |
35054 | fi | |
87d546d8 | 35055 | |
df9d7621 CIK |
35056 | fi |
35057 | if test $rc -ne 0; then : | |
87d546d8 | 35058 | |
df9d7621 CIK |
35059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
35060 | $as_echo "no" >&6; } | |
35061 | ||
35062 | else : | |
35063 | ||
35064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35065 | $as_echo "yes" >&6; } | |
35066 | ||
35067 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
35068 | ||
35069 | ||
35070 | fi | |
35071 | fi | |
35072 | ||
35073 | ||
35074 | else | |
35075 | if test "x$enable_linux_builtin" != xyes; then | |
35076 | ||
35077 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
35078 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35079 | rc=$? | |
35080 | if test $rc -ne 0; then | |
35081 | export=0 | |
35082 | for file in mm/backing-dev.c; do | |
35083 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
35084 | "$LINUX/$file" 2>/dev/null | |
35085 | rc=$? | |
35086 | if test $rc -eq 0; then | |
35087 | export=1 | |
35088 | break; | |
35089 | fi | |
35090 | done | |
35091 | if test $export -eq 0; then : | |
35092 | rc=1 | |
35093 | else : | |
35094 | rc=0 | |
35095 | fi | |
35096 | else : | |
35097 | rc=0 | |
35098 | fi | |
87d546d8 | 35099 | |
df9d7621 CIK |
35100 | fi |
35101 | if test $rc -ne 0; then : | |
87d546d8 | 35102 | |
df9d7621 CIK |
35103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
35104 | $as_echo "no" >&6; } | |
35105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 | |
35106 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
87d546d8 | 35107 | |
87d546d8 TG |
35108 | |
35109 | ||
35110 | cat confdefs.h - <<_ACEOF >conftest.c | |
35111 | ||
35112 | ||
df9d7621 CIK |
35113 | #include <linux/backing-dev.h> |
35114 | struct backing_dev_info bdi; | |
87d546d8 TG |
35115 | |
35116 | int | |
35117 | main (void) | |
35118 | { | |
35119 | ||
df9d7621 CIK |
35120 | char *name = "bdi"; |
35121 | unsigned int cap = BDI_CAP_MAP_COPY; | |
35122 | int error __attribute__((unused)) = | |
35123 | bdi_setup_and_register(&bdi, name, cap); | |
87d546d8 TG |
35124 | |
35125 | ; | |
35126 | return 0; | |
35127 | } | |
35128 | ||
35129 | _ACEOF | |
35130 | ||
35131 | ||
35132 | ||
35133 | cat - <<_ACEOF >conftest.h | |
35134 | ||
35135 | _ACEOF | |
35136 | ||
35137 | ||
35138 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35139 | echo "obj-m := conftest.o" >build/Makefile | |
35140 | modpost_flag='' | |
35141 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35142 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35143 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35144 | (eval $ac_try) 2>&5 | |
35145 | ac_status=$? | |
35146 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35147 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35148 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35149 | (eval $ac_try) 2>&5 | |
35150 | ac_status=$? | |
35151 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35152 | test $ac_status = 0; }; }; then : | |
df9d7621 CIK |
35153 | rc=0 |
35154 | else | |
35155 | $as_echo "$as_me: failed program was:" >&5 | |
35156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35157 | rc=1 | |
87d546d8 | 35158 | |
87d546d8 | 35159 | |
df9d7621 CIK |
35160 | fi |
35161 | rm -Rf build | |
87d546d8 TG |
35162 | |
35163 | ||
df9d7621 | 35164 | if test $rc -ne 0; then : |
87d546d8 | 35165 | |
df9d7621 | 35166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
35167 | $as_echo "no" >&6; } |
35168 | ||
df9d7621 CIK |
35169 | else |
35170 | if test "x$enable_linux_builtin" != xyes; then | |
35171 | ||
35172 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
35173 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35174 | rc=$? | |
35175 | if test $rc -ne 0; then | |
35176 | export=0 | |
35177 | for file in mm/backing-dev.c; do | |
35178 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
35179 | "$LINUX/$file" 2>/dev/null | |
35180 | rc=$? | |
35181 | if test $rc -eq 0; then | |
35182 | export=1 | |
35183 | break; | |
35184 | fi | |
35185 | done | |
35186 | if test $export -eq 0; then : | |
35187 | rc=1 | |
35188 | else : | |
35189 | rc=0 | |
35190 | fi | |
35191 | else : | |
35192 | rc=0 | |
35193 | fi | |
87d546d8 | 35194 | |
df9d7621 CIK |
35195 | fi |
35196 | if test $rc -ne 0; then : | |
87d546d8 | 35197 | |
df9d7621 CIK |
35198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
35199 | $as_echo "no" >&6; } | |
87d546d8 | 35200 | |
df9d7621 CIK |
35201 | else : |
35202 | ||
35203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35204 | $as_echo "yes" >&6; } | |
35205 | ||
35206 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
35207 | ||
35208 | ||
35209 | fi | |
35210 | fi | |
35211 | ||
35212 | ||
35213 | else : | |
35214 | ||
35215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35216 | $as_echo "yes" >&6; } | |
87d546d8 | 35217 | |
df9d7621 CIK |
35218 | $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h |
35219 | ||
35220 | ||
35221 | fi | |
35222 | fi | |
35223 | ||
35224 | ||
35225 | else | |
35226 | if test "x$enable_linux_builtin" != xyes; then | |
35227 | ||
35228 | grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \ | |
35229 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35230 | rc=$? | |
35231 | if test $rc -ne 0; then | |
35232 | export=0 | |
35233 | for file in fs/super.c; do | |
35234 | grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \ | |
35235 | "$LINUX/$file" 2>/dev/null | |
35236 | rc=$? | |
35237 | if test $rc -eq 0; then | |
35238 | export=1 | |
35239 | break; | |
35240 | fi | |
35241 | done | |
35242 | if test $export -eq 0; then : | |
35243 | rc=1 | |
35244 | else : | |
35245 | rc=0 | |
35246 | fi | |
35247 | else : | |
35248 | rc=0 | |
35249 | fi | |
87d546d8 | 35250 | |
df9d7621 CIK |
35251 | fi |
35252 | if test $rc -ne 0; then : | |
87d546d8 | 35253 | |
df9d7621 CIK |
35254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
35255 | $as_echo "no" >&6; } | |
35256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5 | |
87d546d8 TG |
35257 | $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; } |
35258 | ||
35259 | ||
35260 | ||
35261 | cat confdefs.h - <<_ACEOF >conftest.c | |
35262 | ||
35263 | ||
df9d7621 CIK |
35264 | #include <linux/backing-dev.h> |
35265 | struct backing_dev_info bdi; | |
87d546d8 TG |
35266 | |
35267 | int | |
35268 | main (void) | |
35269 | { | |
35270 | ||
df9d7621 CIK |
35271 | char *name = "bdi"; |
35272 | int error __attribute__((unused)) = | |
35273 | bdi_setup_and_register(&bdi, name); | |
87d546d8 TG |
35274 | |
35275 | ; | |
35276 | return 0; | |
35277 | } | |
35278 | ||
35279 | _ACEOF | |
35280 | ||
35281 | ||
35282 | ||
35283 | cat - <<_ACEOF >conftest.h | |
35284 | ||
35285 | _ACEOF | |
35286 | ||
35287 | ||
35288 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35289 | echo "obj-m := conftest.o" >build/Makefile | |
35290 | modpost_flag='' | |
35291 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35292 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35293 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35294 | (eval $ac_try) 2>&5 | |
35295 | ac_status=$? | |
35296 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35297 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35298 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35299 | (eval $ac_try) 2>&5 | |
35300 | ac_status=$? | |
35301 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35302 | test $ac_status = 0; }; }; then : | |
35303 | rc=0 | |
35304 | else | |
35305 | $as_echo "$as_me: failed program was:" >&5 | |
35306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35307 | rc=1 | |
35308 | ||
35309 | ||
35310 | fi | |
35311 | rm -Rf build | |
35312 | ||
35313 | ||
35314 | if test $rc -ne 0; then : | |
35315 | ||
df9d7621 | 35316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 | 35317 | $as_echo "no" >&6; } |
df9d7621 | 35318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 |
87d546d8 TG |
35319 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } |
35320 | ||
35321 | ||
35322 | ||
35323 | cat confdefs.h - <<_ACEOF >conftest.c | |
35324 | ||
35325 | ||
df9d7621 CIK |
35326 | #include <linux/backing-dev.h> |
35327 | struct backing_dev_info bdi; | |
87d546d8 TG |
35328 | |
35329 | int | |
35330 | main (void) | |
35331 | { | |
35332 | ||
df9d7621 CIK |
35333 | char *name = "bdi"; |
35334 | unsigned int cap = BDI_CAP_MAP_COPY; | |
35335 | int error __attribute__((unused)) = | |
35336 | bdi_setup_and_register(&bdi, name, cap); | |
87d546d8 TG |
35337 | |
35338 | ; | |
35339 | return 0; | |
35340 | } | |
35341 | ||
35342 | _ACEOF | |
35343 | ||
35344 | ||
35345 | ||
35346 | cat - <<_ACEOF >conftest.h | |
35347 | ||
35348 | _ACEOF | |
35349 | ||
35350 | ||
35351 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35352 | echo "obj-m := conftest.o" >build/Makefile | |
35353 | modpost_flag='' | |
35354 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35355 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35356 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35357 | (eval $ac_try) 2>&5 | |
35358 | ac_status=$? | |
35359 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35360 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35361 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35362 | (eval $ac_try) 2>&5 | |
35363 | ac_status=$? | |
35364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35365 | test $ac_status = 0; }; }; then : | |
35366 | rc=0 | |
35367 | else | |
35368 | $as_echo "$as_me: failed program was:" >&5 | |
35369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35370 | rc=1 | |
35371 | ||
35372 | ||
35373 | fi | |
35374 | rm -Rf build | |
35375 | ||
35376 | ||
35377 | if test $rc -ne 0; then : | |
35378 | ||
df9d7621 | 35379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
35380 | $as_echo "no" >&6; } |
35381 | ||
35382 | else | |
35383 | if test "x$enable_linux_builtin" != xyes; then | |
35384 | ||
35385 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
35386 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35387 | rc=$? | |
35388 | if test $rc -ne 0; then | |
35389 | export=0 | |
35390 | for file in mm/backing-dev.c; do | |
35391 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
35392 | "$LINUX/$file" 2>/dev/null | |
35393 | rc=$? | |
35394 | if test $rc -eq 0; then | |
35395 | export=1 | |
35396 | break; | |
35397 | fi | |
35398 | done | |
35399 | if test $export -eq 0; then : | |
35400 | rc=1 | |
35401 | else : | |
35402 | rc=0 | |
35403 | fi | |
35404 | else : | |
35405 | rc=0 | |
35406 | fi | |
35407 | ||
35408 | fi | |
35409 | if test $rc -ne 0; then : | |
35410 | ||
df9d7621 | 35411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
35412 | $as_echo "no" >&6; } |
35413 | ||
35414 | else : | |
35415 | ||
df9d7621 | 35416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
35417 | $as_echo "yes" >&6; } |
35418 | ||
35419 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
35420 | ||
35421 | ||
35422 | fi | |
35423 | fi | |
35424 | ||
35425 | ||
35426 | else | |
35427 | if test "x$enable_linux_builtin" != xyes; then | |
35428 | ||
35429 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
35430 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35431 | rc=$? | |
35432 | if test $rc -ne 0; then | |
35433 | export=0 | |
35434 | for file in mm/backing-dev.c; do | |
35435 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
35436 | "$LINUX/$file" 2>/dev/null | |
35437 | rc=$? | |
35438 | if test $rc -eq 0; then | |
35439 | export=1 | |
35440 | break; | |
35441 | fi | |
35442 | done | |
35443 | if test $export -eq 0; then : | |
35444 | rc=1 | |
35445 | else : | |
35446 | rc=0 | |
35447 | fi | |
35448 | else : | |
35449 | rc=0 | |
35450 | fi | |
35451 | ||
35452 | fi | |
35453 | if test $rc -ne 0; then : | |
35454 | ||
df9d7621 | 35455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 | 35456 | $as_echo "no" >&6; } |
df9d7621 | 35457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 |
87d546d8 TG |
35458 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } |
35459 | ||
35460 | ||
35461 | ||
35462 | cat confdefs.h - <<_ACEOF >conftest.c | |
35463 | ||
35464 | ||
df9d7621 CIK |
35465 | #include <linux/backing-dev.h> |
35466 | struct backing_dev_info bdi; | |
87d546d8 TG |
35467 | |
35468 | int | |
35469 | main (void) | |
35470 | { | |
35471 | ||
df9d7621 CIK |
35472 | char *name = "bdi"; |
35473 | unsigned int cap = BDI_CAP_MAP_COPY; | |
35474 | int error __attribute__((unused)) = | |
35475 | bdi_setup_and_register(&bdi, name, cap); | |
87d546d8 TG |
35476 | |
35477 | ; | |
35478 | return 0; | |
35479 | } | |
35480 | ||
35481 | _ACEOF | |
35482 | ||
35483 | ||
35484 | ||
35485 | cat - <<_ACEOF >conftest.h | |
35486 | ||
35487 | _ACEOF | |
35488 | ||
35489 | ||
35490 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35491 | echo "obj-m := conftest.o" >build/Makefile | |
35492 | modpost_flag='' | |
35493 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35494 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35495 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35496 | (eval $ac_try) 2>&5 | |
35497 | ac_status=$? | |
35498 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35499 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35500 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35501 | (eval $ac_try) 2>&5 | |
35502 | ac_status=$? | |
35503 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35504 | test $ac_status = 0; }; }; then : | |
35505 | rc=0 | |
35506 | else | |
35507 | $as_echo "$as_me: failed program was:" >&5 | |
35508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35509 | rc=1 | |
35510 | ||
35511 | ||
35512 | fi | |
35513 | rm -Rf build | |
35514 | ||
35515 | ||
35516 | if test $rc -ne 0; then : | |
35517 | ||
df9d7621 | 35518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
35519 | $as_echo "no" >&6; } |
35520 | ||
35521 | else | |
35522 | if test "x$enable_linux_builtin" != xyes; then | |
35523 | ||
35524 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
35525 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35526 | rc=$? | |
35527 | if test $rc -ne 0; then | |
35528 | export=0 | |
35529 | for file in mm/backing-dev.c; do | |
35530 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
35531 | "$LINUX/$file" 2>/dev/null | |
35532 | rc=$? | |
35533 | if test $rc -eq 0; then | |
35534 | export=1 | |
35535 | break; | |
35536 | fi | |
35537 | done | |
35538 | if test $export -eq 0; then : | |
35539 | rc=1 | |
35540 | else : | |
35541 | rc=0 | |
35542 | fi | |
35543 | else : | |
35544 | rc=0 | |
35545 | fi | |
35546 | ||
35547 | fi | |
35548 | if test $rc -ne 0; then : | |
35549 | ||
df9d7621 | 35550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
35551 | $as_echo "no" >&6; } |
35552 | ||
35553 | else : | |
35554 | ||
df9d7621 | 35555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
35556 | $as_echo "yes" >&6; } |
35557 | ||
35558 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
35559 | ||
35560 | ||
35561 | fi | |
35562 | fi | |
35563 | ||
35564 | ||
35565 | else : | |
35566 | ||
df9d7621 | 35567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
35568 | $as_echo "yes" >&6; } |
35569 | ||
35570 | $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
35571 | ||
35572 | ||
35573 | fi | |
35574 | fi | |
35575 | ||
35576 | ||
df9d7621 CIK |
35577 | else : |
35578 | ||
35579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35580 | $as_echo "yes" >&6; } | |
35581 | ||
35582 | $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h | |
35583 | ||
35584 | ||
35585 | fi | |
35586 | fi | |
35587 | ||
35588 | ||
87d546d8 TG |
35589 | |
35590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5 | |
35591 | $as_echo_n "checking whether set_nlink() is available... " >&6; } | |
35592 | ||
35593 | ||
35594 | cat confdefs.h - <<_ACEOF >conftest.c | |
35595 | ||
35596 | ||
35597 | #include <linux/fs.h> | |
35598 | ||
35599 | int | |
35600 | main (void) | |
35601 | { | |
35602 | ||
35603 | struct inode node; | |
35604 | unsigned int link = 0; | |
35605 | (void) set_nlink(&node, link); | |
35606 | ||
35607 | ; | |
35608 | return 0; | |
35609 | } | |
35610 | ||
35611 | _ACEOF | |
35612 | ||
35613 | ||
35614 | ||
35615 | cat - <<_ACEOF >conftest.h | |
35616 | ||
35617 | _ACEOF | |
35618 | ||
35619 | ||
35620 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35621 | echo "obj-m := conftest.o" >build/Makefile | |
35622 | modpost_flag='' | |
35623 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35624 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35625 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35626 | (eval $ac_try) 2>&5 | |
35627 | ac_status=$? | |
35628 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35629 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35630 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35631 | (eval $ac_try) 2>&5 | |
35632 | ac_status=$? | |
35633 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35634 | test $ac_status = 0; }; }; then : | |
35635 | ||
35636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35637 | $as_echo "yes" >&6; } | |
35638 | ||
35639 | $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h | |
35640 | ||
35641 | ||
35642 | else | |
35643 | $as_echo "$as_me: failed program was:" >&5 | |
35644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35645 | ||
35646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35647 | $as_echo "no" >&6; } | |
35648 | ||
35649 | ||
35650 | ||
35651 | fi | |
35652 | rm -Rf build | |
35653 | ||
35654 | ||
35655 | ||
35656 | ||
35657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5 | |
35658 | $as_echo_n "checking whether elevator_change() is available... " >&6; } | |
35659 | tmp_flags="$EXTRA_KCFLAGS" | |
35660 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
35661 | ||
35662 | ||
35663 | cat confdefs.h - <<_ACEOF >conftest.c | |
35664 | ||
35665 | ||
35666 | #include <linux/blkdev.h> | |
35667 | #include <linux/elevator.h> | |
35668 | ||
35669 | int | |
35670 | main (void) | |
35671 | { | |
35672 | ||
35673 | int ret; | |
35674 | struct request_queue *q = NULL; | |
35675 | char *elevator = NULL; | |
35676 | ret = elevator_change(q, elevator); | |
35677 | ||
35678 | ; | |
35679 | return 0; | |
35680 | } | |
35681 | ||
35682 | _ACEOF | |
35683 | ||
35684 | ||
35685 | ||
35686 | cat - <<_ACEOF >conftest.h | |
35687 | ||
35688 | _ACEOF | |
35689 | ||
35690 | ||
35691 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35692 | echo "obj-m := conftest.o" >build/Makefile | |
35693 | modpost_flag='' | |
35694 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35695 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35696 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35697 | (eval $ac_try) 2>&5 | |
35698 | ac_status=$? | |
35699 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35700 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35701 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35702 | (eval $ac_try) 2>&5 | |
35703 | ac_status=$? | |
35704 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35705 | test $ac_status = 0; }; }; then : | |
35706 | ||
35707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35708 | $as_echo "yes" >&6; } | |
35709 | ||
35710 | $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h | |
35711 | ||
35712 | ||
35713 | else | |
35714 | $as_echo "$as_me: failed program was:" >&5 | |
35715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35716 | ||
35717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35718 | $as_echo "no" >&6; } | |
35719 | ||
35720 | ||
35721 | ||
35722 | fi | |
35723 | rm -Rf build | |
35724 | ||
35725 | ||
35726 | EXTRA_KCFLAGS="$tmp_flags" | |
35727 | ||
35728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5 | |
35729 | $as_echo_n "checking whether sget() wants 5 args... " >&6; } | |
35730 | ||
35731 | ||
35732 | cat confdefs.h - <<_ACEOF >conftest.c | |
35733 | ||
35734 | ||
35735 | #include <linux/fs.h> | |
35736 | ||
35737 | int | |
35738 | main (void) | |
35739 | { | |
35740 | ||
35741 | struct file_system_type *type = NULL; | |
35742 | int (*test)(struct super_block *,void *) = NULL; | |
35743 | int (*set)(struct super_block *,void *) = NULL; | |
35744 | int flags = 0; | |
35745 | void *data = NULL; | |
35746 | (void) sget(type, test, set, flags, data); | |
35747 | ||
35748 | ; | |
35749 | return 0; | |
35750 | } | |
35751 | ||
35752 | _ACEOF | |
35753 | ||
35754 | ||
35755 | ||
35756 | cat - <<_ACEOF >conftest.h | |
35757 | ||
35758 | _ACEOF | |
35759 | ||
35760 | ||
35761 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35762 | echo "obj-m := conftest.o" >build/Makefile | |
35763 | modpost_flag='' | |
35764 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35765 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35766 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35767 | (eval $ac_try) 2>&5 | |
35768 | ac_status=$? | |
35769 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35770 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35771 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35772 | (eval $ac_try) 2>&5 | |
35773 | ac_status=$? | |
35774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35775 | test $ac_status = 0; }; }; then : | |
35776 | ||
35777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35778 | $as_echo "yes" >&6; } | |
35779 | ||
35780 | $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h | |
35781 | ||
35782 | ||
35783 | else | |
35784 | $as_echo "$as_me: failed program was:" >&5 | |
35785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35786 | ||
35787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35788 | $as_echo "no" >&6; } | |
35789 | ||
35790 | ||
35791 | ||
35792 | fi | |
35793 | rm -Rf build | |
35794 | ||
35795 | ||
35796 | ||
35797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5 | |
35798 | $as_echo_n "checking whether lseek_execute() is available... " >&6; } | |
35799 | ||
35800 | ||
35801 | ||
35802 | cat confdefs.h - <<_ACEOF >conftest.c | |
35803 | ||
35804 | ||
35805 | #include <linux/fs.h> | |
35806 | ||
35807 | int | |
35808 | main (void) | |
35809 | { | |
35810 | ||
35811 | struct file *fp __attribute__ ((unused)) = NULL; | |
35812 | struct inode *ip __attribute__ ((unused)) = NULL; | |
35813 | loff_t offset __attribute__ ((unused)) = 0; | |
35814 | loff_t maxsize __attribute__ ((unused)) = 0; | |
35815 | ||
35816 | lseek_execute(fp, ip, offset, maxsize); | |
35817 | ||
35818 | ; | |
35819 | return 0; | |
35820 | } | |
35821 | ||
35822 | _ACEOF | |
35823 | ||
35824 | ||
35825 | ||
35826 | cat - <<_ACEOF >conftest.h | |
35827 | ||
35828 | _ACEOF | |
35829 | ||
35830 | ||
35831 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35832 | echo "obj-m := conftest.o" >build/Makefile | |
35833 | modpost_flag='' | |
35834 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35835 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35836 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35837 | (eval $ac_try) 2>&5 | |
35838 | ac_status=$? | |
35839 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35840 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35841 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35842 | (eval $ac_try) 2>&5 | |
35843 | ac_status=$? | |
35844 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35845 | test $ac_status = 0; }; }; then : | |
35846 | rc=0 | |
35847 | else | |
35848 | $as_echo "$as_me: failed program was:" >&5 | |
35849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35850 | rc=1 | |
35851 | ||
35852 | ||
35853 | fi | |
35854 | rm -Rf build | |
35855 | ||
35856 | ||
35857 | if test $rc -ne 0; then : | |
35858 | ||
35859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35860 | $as_echo "no" >&6; } | |
35861 | ||
35862 | else | |
35863 | if test "x$enable_linux_builtin" != xyes; then | |
35864 | ||
35865 | grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \ | |
35866 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35867 | rc=$? | |
35868 | if test $rc -ne 0; then | |
35869 | export=0 | |
35870 | for file in fs/read_write.c; do | |
35871 | grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \ | |
35872 | "$LINUX/$file" 2>/dev/null | |
35873 | rc=$? | |
35874 | if test $rc -eq 0; then | |
35875 | export=1 | |
35876 | break; | |
35877 | fi | |
35878 | done | |
35879 | if test $export -eq 0; then : | |
35880 | rc=1 | |
35881 | else : | |
35882 | rc=0 | |
35883 | fi | |
35884 | else : | |
35885 | rc=0 | |
35886 | fi | |
35887 | ||
35888 | fi | |
35889 | if test $rc -ne 0; then : | |
35890 | ||
35891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35892 | $as_echo "no" >&6; } | |
35893 | ||
35894 | else : | |
35895 | ||
35896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35897 | $as_echo "yes" >&6; } | |
35898 | ||
35899 | $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h | |
35900 | ||
35901 | ||
35902 | fi | |
35903 | fi | |
35904 | ||
35905 | ||
35906 | ||
35907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5 | |
35908 | $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; } | |
35909 | ||
35910 | ||
35911 | cat confdefs.h - <<_ACEOF >conftest.c | |
35912 | ||
35913 | ||
35914 | #include <linux/fs.h> | |
35915 | int iterate(struct file *filp, struct dir_context * context) | |
35916 | { return 0; } | |
35917 | ||
35918 | static const struct file_operations fops | |
35919 | __attribute__ ((unused)) = { | |
35920 | .iterate_shared = iterate, | |
35921 | }; | |
35922 | ||
35923 | int | |
35924 | main (void) | |
35925 | { | |
35926 | ||
35927 | ||
35928 | ; | |
35929 | return 0; | |
35930 | } | |
35931 | ||
35932 | _ACEOF | |
35933 | ||
35934 | ||
35935 | ||
35936 | cat - <<_ACEOF >conftest.h | |
35937 | ||
35938 | _ACEOF | |
35939 | ||
35940 | ||
35941 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35942 | echo "obj-m := conftest.o" >build/Makefile | |
35943 | modpost_flag='' | |
35944 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35945 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35946 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35947 | (eval $ac_try) 2>&5 | |
35948 | ac_status=$? | |
35949 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35950 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35951 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35952 | (eval $ac_try) 2>&5 | |
35953 | ac_status=$? | |
35954 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35955 | test $ac_status = 0; }; }; then : | |
35956 | ||
35957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35958 | $as_echo "yes" >&6; } | |
35959 | ||
35960 | $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h | |
35961 | ||
35962 | ||
35963 | else | |
35964 | $as_echo "$as_me: failed program was:" >&5 | |
35965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35966 | ||
35967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35968 | $as_echo "no" >&6; } | |
35969 | ||
35970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5 | |
35971 | $as_echo_n "checking whether fops->iterate() is available... " >&6; } | |
35972 | ||
35973 | ||
35974 | cat confdefs.h - <<_ACEOF >conftest.c | |
35975 | ||
35976 | ||
35977 | #include <linux/fs.h> | |
35978 | int iterate(struct file *filp, struct dir_context * context) | |
35979 | { return 0; } | |
35980 | ||
35981 | static const struct file_operations fops | |
35982 | __attribute__ ((unused)) = { | |
35983 | .iterate = iterate, | |
35984 | }; | |
35985 | ||
35986 | int | |
35987 | main (void) | |
35988 | { | |
35989 | ||
35990 | ||
35991 | ; | |
35992 | return 0; | |
35993 | } | |
35994 | ||
35995 | _ACEOF | |
35996 | ||
35997 | ||
35998 | ||
35999 | cat - <<_ACEOF >conftest.h | |
36000 | ||
36001 | _ACEOF | |
36002 | ||
36003 | ||
36004 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36005 | echo "obj-m := conftest.o" >build/Makefile | |
36006 | modpost_flag='' | |
36007 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36008 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36009 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36010 | (eval $ac_try) 2>&5 | |
36011 | ac_status=$? | |
36012 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36013 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36014 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36015 | (eval $ac_try) 2>&5 | |
36016 | ac_status=$? | |
36017 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36018 | test $ac_status = 0; }; }; then : | |
36019 | ||
36020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36021 | $as_echo "yes" >&6; } | |
36022 | ||
36023 | $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h | |
36024 | ||
36025 | ||
36026 | else | |
36027 | $as_echo "$as_me: failed program was:" >&5 | |
36028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36029 | ||
36030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36031 | $as_echo "no" >&6; } | |
36032 | ||
36033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5 | |
36034 | $as_echo_n "checking whether fops->readdir() is available... " >&6; } | |
36035 | ||
36036 | ||
36037 | cat confdefs.h - <<_ACEOF >conftest.c | |
36038 | ||
36039 | ||
36040 | #include <linux/fs.h> | |
36041 | int readdir(struct file *filp, void *entry, filldir_t func) | |
36042 | { return 0; } | |
36043 | ||
36044 | static const struct file_operations fops | |
36045 | __attribute__ ((unused)) = { | |
36046 | .readdir = readdir, | |
36047 | }; | |
36048 | ||
36049 | int | |
36050 | main (void) | |
36051 | { | |
36052 | ||
36053 | ||
36054 | ; | |
36055 | return 0; | |
36056 | } | |
36057 | ||
36058 | _ACEOF | |
36059 | ||
36060 | ||
36061 | ||
36062 | cat - <<_ACEOF >conftest.h | |
36063 | ||
36064 | _ACEOF | |
36065 | ||
36066 | ||
36067 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36068 | echo "obj-m := conftest.o" >build/Makefile | |
36069 | modpost_flag='' | |
36070 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36071 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36072 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36073 | (eval $ac_try) 2>&5 | |
36074 | ac_status=$? | |
36075 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36076 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36077 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36078 | (eval $ac_try) 2>&5 | |
36079 | ac_status=$? | |
36080 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36081 | test $ac_status = 0; }; }; then : | |
36082 | ||
36083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36084 | $as_echo "yes" >&6; } | |
36085 | ||
36086 | $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h | |
36087 | ||
36088 | ||
36089 | else | |
36090 | $as_echo "$as_me: failed program was:" >&5 | |
36091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36092 | ||
36093 | as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5 | |
36094 | ||
36095 | ||
36096 | ||
36097 | fi | |
36098 | rm -Rf build | |
36099 | ||
36100 | ||
36101 | ||
36102 | ||
36103 | ||
36104 | fi | |
36105 | rm -Rf build | |
36106 | ||
36107 | ||
36108 | ||
36109 | ||
36110 | ||
36111 | fi | |
36112 | rm -Rf build | |
36113 | ||
36114 | ||
36115 | ||
36116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5 | |
36117 | $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; } | |
36118 | ||
36119 | ||
36120 | cat confdefs.h - <<_ACEOF >conftest.c | |
36121 | ||
36122 | ||
36123 | #include <linux/fs.h> | |
36124 | ||
36125 | ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to) | |
36126 | { return 0; } | |
36127 | ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from) | |
36128 | { return 0; } | |
36129 | ||
36130 | static const struct file_operations | |
36131 | fops __attribute__ ((unused)) = { | |
36132 | .read_iter = test_read, | |
36133 | .write_iter = test_write, | |
36134 | }; | |
36135 | ||
36136 | int | |
36137 | main (void) | |
36138 | { | |
36139 | ||
36140 | ||
36141 | ; | |
36142 | return 0; | |
36143 | } | |
36144 | ||
36145 | _ACEOF | |
36146 | ||
36147 | ||
36148 | ||
36149 | cat - <<_ACEOF >conftest.h | |
36150 | ||
36151 | _ACEOF | |
36152 | ||
36153 | ||
36154 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36155 | echo "obj-m := conftest.o" >build/Makefile | |
36156 | modpost_flag='' | |
36157 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36158 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36159 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36160 | (eval $ac_try) 2>&5 | |
36161 | ac_status=$? | |
36162 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36163 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36164 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36165 | (eval $ac_try) 2>&5 | |
36166 | ac_status=$? | |
36167 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36168 | test $ac_status = 0; }; }; then : | |
36169 | ||
36170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36171 | $as_echo "yes" >&6; } | |
36172 | ||
36173 | $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h | |
36174 | ||
36175 | ||
5b5f25ca CIK |
36176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5 |
36177 | $as_echo_n "checking whether new_sync_read() is available... " >&6; } | |
36178 | ||
36179 | ||
36180 | cat confdefs.h - <<_ACEOF >conftest.c | |
36181 | ||
36182 | ||
36183 | #include <linux/fs.h> | |
36184 | ||
36185 | int | |
36186 | main (void) | |
36187 | { | |
36188 | ||
36189 | new_sync_read(NULL, NULL, 0, NULL); | |
36190 | ||
36191 | ; | |
36192 | return 0; | |
36193 | } | |
36194 | ||
36195 | _ACEOF | |
36196 | ||
36197 | ||
36198 | ||
36199 | cat - <<_ACEOF >conftest.h | |
36200 | ||
36201 | _ACEOF | |
36202 | ||
36203 | ||
36204 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36205 | echo "obj-m := conftest.o" >build/Makefile | |
36206 | modpost_flag='' | |
36207 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36208 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36209 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36210 | (eval $ac_try) 2>&5 | |
36211 | ac_status=$? | |
36212 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36213 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36214 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36215 | (eval $ac_try) 2>&5 | |
36216 | ac_status=$? | |
36217 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36218 | test $ac_status = 0; }; }; then : | |
36219 | ||
36220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36221 | $as_echo "yes" >&6; } | |
36222 | ||
36223 | $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h | |
36224 | ||
36225 | ||
36226 | else | |
36227 | $as_echo "$as_me: failed program was:" >&5 | |
36228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36229 | ||
36230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36231 | $as_echo "no" >&6; } | |
36232 | ||
36233 | ||
36234 | ||
36235 | fi | |
36236 | rm -Rf build | |
36237 | ||
36238 | ||
36239 | ||
36240 | ||
87d546d8 TG |
36241 | else |
36242 | $as_echo "$as_me: failed program was:" >&5 | |
36243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36244 | ||
36245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36246 | $as_echo "no" >&6; } | |
36247 | ||
36248 | ||
36249 | ||
36250 | fi | |
36251 | rm -Rf build | |
36252 | ||
36253 | ||
36254 | ||
36255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5 | |
36256 | $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; } | |
36257 | ||
36258 | ||
36259 | cat confdefs.h - <<_ACEOF >conftest.c | |
36260 | ||
36261 | ||
36262 | #include <linux/fs.h> | |
36263 | ||
36264 | ||
36265 | int | |
36266 | main (void) | |
36267 | { | |
36268 | ||
36269 | struct kiocb *iocb = NULL; | |
36270 | struct iov_iter *iov = NULL; | |
36271 | generic_write_checks(iocb, iov); | |
36272 | ||
36273 | ; | |
36274 | return 0; | |
36275 | } | |
36276 | ||
36277 | _ACEOF | |
36278 | ||
36279 | ||
36280 | ||
36281 | cat - <<_ACEOF >conftest.h | |
36282 | ||
36283 | _ACEOF | |
36284 | ||
36285 | ||
36286 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36287 | echo "obj-m := conftest.o" >build/Makefile | |
36288 | modpost_flag='' | |
36289 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36290 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36291 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36292 | (eval $ac_try) 2>&5 | |
36293 | ac_status=$? | |
36294 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36295 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36296 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36297 | (eval $ac_try) 2>&5 | |
36298 | ac_status=$? | |
36299 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36300 | test $ac_status = 0; }; }; then : | |
36301 | ||
36302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36303 | $as_echo "yes" >&6; } | |
36304 | ||
36305 | $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h | |
36306 | ||
36307 | ||
36308 | else | |
36309 | $as_echo "$as_me: failed program was:" >&5 | |
36310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36311 | ||
36312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36313 | $as_echo "no" >&6; } | |
36314 | ||
36315 | ||
36316 | ||
36317 | fi | |
36318 | rm -Rf build | |
36319 | ||
36320 | ||
36321 | ||
36322 | ||
36323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5 | |
36324 | $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; } | |
36325 | ||
36326 | ||
36327 | cat confdefs.h - <<_ACEOF >conftest.c | |
36328 | ||
36329 | ||
36330 | #include <linux/pagemap.h> | |
36331 | ||
36332 | int | |
36333 | main (void) | |
36334 | { | |
36335 | ||
36336 | struct page page; | |
36337 | kmap_atomic(&page); | |
36338 | ||
36339 | ; | |
36340 | return 0; | |
36341 | } | |
36342 | ||
36343 | _ACEOF | |
36344 | ||
36345 | ||
36346 | ||
36347 | cat - <<_ACEOF >conftest.h | |
36348 | ||
36349 | _ACEOF | |
36350 | ||
36351 | ||
36352 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36353 | echo "obj-m := conftest.o" >build/Makefile | |
36354 | modpost_flag='' | |
36355 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36356 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36357 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36358 | (eval $ac_try) 2>&5 | |
36359 | ac_status=$? | |
36360 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36361 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36362 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36363 | (eval $ac_try) 2>&5 | |
36364 | ac_status=$? | |
36365 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36366 | test $ac_status = 0; }; }; then : | |
36367 | ||
36368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36369 | $as_echo "yes" >&6; } | |
36370 | ||
36371 | $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h | |
36372 | ||
36373 | ||
36374 | else | |
36375 | $as_echo "$as_me: failed program was:" >&5 | |
36376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36377 | ||
36378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36379 | $as_echo "no" >&6; } | |
36380 | ||
36381 | ||
36382 | ||
36383 | fi | |
36384 | rm -Rf build | |
36385 | ||
36386 | ||
36387 | ||
36388 | ||
36389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5 | |
36390 | $as_echo_n "checking whether follow_down_one() is available... " >&6; } | |
36391 | ||
36392 | ||
36393 | cat confdefs.h - <<_ACEOF >conftest.c | |
36394 | ||
36395 | ||
36396 | #include <linux/namei.h> | |
36397 | ||
36398 | int | |
36399 | main (void) | |
36400 | { | |
36401 | ||
36402 | struct path *p = NULL; | |
36403 | follow_down_one(p); | |
36404 | ||
36405 | ; | |
36406 | return 0; | |
36407 | } | |
36408 | ||
36409 | _ACEOF | |
36410 | ||
36411 | ||
36412 | ||
36413 | cat - <<_ACEOF >conftest.h | |
36414 | ||
36415 | _ACEOF | |
36416 | ||
36417 | ||
36418 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36419 | echo "obj-m := conftest.o" >build/Makefile | |
36420 | modpost_flag='' | |
36421 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36422 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36423 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36424 | (eval $ac_try) 2>&5 | |
36425 | ac_status=$? | |
36426 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36427 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36428 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36429 | (eval $ac_try) 2>&5 | |
36430 | ac_status=$? | |
36431 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36432 | test $ac_status = 0; }; }; then : | |
36433 | ||
36434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36435 | $as_echo "yes" >&6; } | |
36436 | ||
36437 | $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h | |
36438 | ||
36439 | ||
36440 | else | |
36441 | $as_echo "$as_me: failed program was:" >&5 | |
36442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36443 | ||
36444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36445 | $as_echo "no" >&6; } | |
36446 | ||
36447 | ||
36448 | ||
36449 | fi | |
36450 | rm -Rf build | |
36451 | ||
36452 | ||
36453 | ||
36454 | ||
36455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5 | |
36456 | $as_echo_n "checking whether make_request_fn() returns int... " >&6; } | |
36457 | ||
36458 | ||
36459 | cat confdefs.h - <<_ACEOF >conftest.c | |
36460 | ||
36461 | ||
36462 | #include <linux/blkdev.h> | |
36463 | ||
36464 | int make_request(struct request_queue *q, struct bio *bio) | |
36465 | { | |
36466 | return (0); | |
36467 | } | |
36468 | ||
36469 | int | |
36470 | main (void) | |
36471 | { | |
36472 | ||
36473 | blk_queue_make_request(NULL, &make_request); | |
36474 | ||
36475 | ; | |
36476 | return 0; | |
36477 | } | |
36478 | ||
36479 | _ACEOF | |
36480 | ||
36481 | ||
36482 | ||
36483 | cat - <<_ACEOF >conftest.h | |
36484 | ||
36485 | _ACEOF | |
36486 | ||
36487 | ||
36488 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36489 | echo "obj-m := conftest.o" >build/Makefile | |
36490 | modpost_flag='' | |
36491 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36492 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36493 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36494 | (eval $ac_try) 2>&5 | |
36495 | ac_status=$? | |
36496 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36497 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36498 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36499 | (eval $ac_try) 2>&5 | |
36500 | ac_status=$? | |
36501 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36502 | test $ac_status = 0; }; }; then : | |
36503 | ||
36504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36505 | $as_echo "yes" >&6; } | |
36506 | ||
36507 | $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h | |
36508 | ||
36509 | ||
36510 | $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h | |
36511 | ||
36512 | ||
36513 | else | |
36514 | $as_echo "$as_me: failed program was:" >&5 | |
36515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36516 | ||
36517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36518 | $as_echo "no" >&6; } | |
36519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5 | |
36520 | $as_echo_n "checking whether make_request_fn() returns void... " >&6; } | |
36521 | ||
36522 | ||
36523 | cat confdefs.h - <<_ACEOF >conftest.c | |
36524 | ||
36525 | ||
36526 | #include <linux/blkdev.h> | |
36527 | ||
36528 | void make_request(struct request_queue *q, struct bio *bio) | |
36529 | { | |
36530 | return; | |
36531 | } | |
36532 | ||
36533 | int | |
36534 | main (void) | |
36535 | { | |
36536 | ||
36537 | blk_queue_make_request(NULL, &make_request); | |
36538 | ||
36539 | ; | |
36540 | return 0; | |
36541 | } | |
36542 | ||
36543 | _ACEOF | |
36544 | ||
36545 | ||
36546 | ||
36547 | cat - <<_ACEOF >conftest.h | |
36548 | ||
36549 | _ACEOF | |
36550 | ||
36551 | ||
36552 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36553 | echo "obj-m := conftest.o" >build/Makefile | |
36554 | modpost_flag='' | |
36555 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36556 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36557 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36558 | (eval $ac_try) 2>&5 | |
36559 | ac_status=$? | |
36560 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36561 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36562 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36563 | (eval $ac_try) 2>&5 | |
36564 | ac_status=$? | |
36565 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36566 | test $ac_status = 0; }; }; then : | |
36567 | ||
36568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36569 | $as_echo "yes" >&6; } | |
36570 | ||
36571 | $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h | |
36572 | ||
36573 | ||
36574 | else | |
36575 | $as_echo "$as_me: failed program was:" >&5 | |
36576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36577 | ||
36578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36579 | $as_echo "no" >&6; } | |
36580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5 | |
36581 | $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; } | |
36582 | ||
36583 | ||
36584 | cat confdefs.h - <<_ACEOF >conftest.c | |
36585 | ||
36586 | ||
36587 | #include <linux/blkdev.h> | |
36588 | ||
36589 | blk_qc_t make_request(struct request_queue *q, struct bio *bio) | |
36590 | { | |
36591 | return (BLK_QC_T_NONE); | |
36592 | } | |
36593 | ||
36594 | int | |
36595 | main (void) | |
36596 | { | |
36597 | ||
36598 | blk_queue_make_request(NULL, &make_request); | |
36599 | ||
36600 | ; | |
36601 | return 0; | |
36602 | } | |
36603 | ||
36604 | _ACEOF | |
36605 | ||
36606 | ||
36607 | ||
36608 | cat - <<_ACEOF >conftest.h | |
36609 | ||
36610 | _ACEOF | |
36611 | ||
36612 | ||
36613 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36614 | echo "obj-m := conftest.o" >build/Makefile | |
36615 | modpost_flag='' | |
36616 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36617 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36618 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36619 | (eval $ac_try) 2>&5 | |
36620 | ac_status=$? | |
36621 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36622 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36623 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36624 | (eval $ac_try) 2>&5 | |
36625 | ac_status=$? | |
36626 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36627 | test $ac_status = 0; }; }; then : | |
36628 | ||
36629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36630 | $as_echo "yes" >&6; } | |
36631 | ||
36632 | $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h | |
36633 | ||
36634 | ||
36635 | $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h | |
36636 | ||
36637 | ||
36638 | else | |
36639 | $as_echo "$as_me: failed program was:" >&5 | |
36640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36641 | ||
36642 | as_fn_error $? "no - Please file a bug report at | |
36643 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
36644 | ||
36645 | ||
36646 | ||
36647 | fi | |
36648 | rm -Rf build | |
36649 | ||
36650 | ||
36651 | ||
36652 | ||
36653 | ||
36654 | fi | |
36655 | rm -Rf build | |
36656 | ||
36657 | ||
36658 | ||
36659 | ||
36660 | ||
36661 | fi | |
36662 | rm -Rf build | |
36663 | ||
36664 | ||
36665 | ||
36666 | ||
36667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5 | |
36668 | $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; } | |
36669 | ||
36670 | ||
36671 | ||
36672 | cat confdefs.h - <<_ACEOF >conftest.c | |
36673 | ||
36674 | ||
36675 | #include <linux/bio.h> | |
36676 | ||
36677 | void (*generic_start_io_acct_f)(int, unsigned long, | |
36678 | struct hd_struct *) = &generic_start_io_acct; | |
36679 | void (*generic_end_io_acct_f)(int, struct hd_struct *, | |
36680 | unsigned long) = &generic_end_io_acct; | |
36681 | ||
36682 | int | |
36683 | main (void) | |
36684 | { | |
36685 | ||
36686 | generic_start_io_acct(0, 0, NULL); | |
36687 | generic_end_io_acct(0, NULL, 0); | |
36688 | ||
36689 | ; | |
36690 | return 0; | |
36691 | } | |
36692 | ||
36693 | _ACEOF | |
36694 | ||
36695 | ||
36696 | ||
36697 | cat - <<_ACEOF >conftest.h | |
36698 | ||
36699 | _ACEOF | |
36700 | ||
36701 | ||
36702 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36703 | echo "obj-m := conftest.o" >build/Makefile | |
36704 | modpost_flag='' | |
36705 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36706 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36707 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36708 | (eval $ac_try) 2>&5 | |
36709 | ac_status=$? | |
36710 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36711 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36712 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36713 | (eval $ac_try) 2>&5 | |
36714 | ac_status=$? | |
36715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36716 | test $ac_status = 0; }; }; then : | |
36717 | rc=0 | |
36718 | else | |
36719 | $as_echo "$as_me: failed program was:" >&5 | |
36720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36721 | rc=1 | |
36722 | ||
36723 | ||
36724 | fi | |
36725 | rm -Rf build | |
36726 | ||
36727 | ||
36728 | if test $rc -ne 0; then : | |
36729 | ||
36730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36731 | $as_echo "no" >&6; } | |
36732 | ||
36733 | else | |
36734 | if test "x$enable_linux_builtin" != xyes; then | |
36735 | ||
36736 | grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \ | |
36737 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
36738 | rc=$? | |
36739 | if test $rc -ne 0; then | |
36740 | export=0 | |
36741 | for file in block/bio.c; do | |
36742 | grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \ | |
36743 | "$LINUX/$file" 2>/dev/null | |
36744 | rc=$? | |
36745 | if test $rc -eq 0; then | |
36746 | export=1 | |
36747 | break; | |
36748 | fi | |
36749 | done | |
36750 | if test $export -eq 0; then : | |
36751 | rc=1 | |
36752 | else : | |
36753 | rc=0 | |
36754 | fi | |
36755 | else : | |
36756 | rc=0 | |
36757 | fi | |
36758 | ||
36759 | fi | |
36760 | if test $rc -ne 0; then : | |
36761 | ||
36762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36763 | $as_echo "no" >&6; } | |
36764 | ||
36765 | else : | |
36766 | ||
36767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36768 | $as_echo "yes" >&6; } | |
36769 | ||
36770 | $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h | |
36771 | ||
36772 | ||
36773 | fi | |
36774 | fi | |
36775 | ||
36776 | ||
36777 | ||
36778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5 | |
36779 | $as_echo_n "checking whether iops->rename() wants flags... " >&6; } | |
36780 | ||
36781 | ||
36782 | cat confdefs.h - <<_ACEOF >conftest.c | |
36783 | ||
36784 | ||
36785 | #include <linux/fs.h> | |
36786 | int rename_fn(struct inode *sip, struct dentry *sdp, | |
36787 | struct inode *tip, struct dentry *tdp, | |
36788 | unsigned int flags) { return 0; } | |
36789 | ||
36790 | static const struct inode_operations | |
36791 | iops __attribute__ ((unused)) = { | |
36792 | .rename = rename_fn, | |
36793 | }; | |
36794 | ||
36795 | int | |
36796 | main (void) | |
36797 | { | |
36798 | ||
36799 | ||
36800 | ; | |
36801 | return 0; | |
36802 | } | |
36803 | ||
36804 | _ACEOF | |
36805 | ||
36806 | ||
36807 | ||
36808 | cat - <<_ACEOF >conftest.h | |
36809 | ||
36810 | _ACEOF | |
36811 | ||
36812 | ||
36813 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36814 | echo "obj-m := conftest.o" >build/Makefile | |
36815 | modpost_flag='' | |
36816 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36817 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36818 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36819 | (eval $ac_try) 2>&5 | |
36820 | ac_status=$? | |
36821 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36822 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36823 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36824 | (eval $ac_try) 2>&5 | |
36825 | ac_status=$? | |
36826 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36827 | test $ac_status = 0; }; }; then : | |
36828 | ||
36829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36830 | $as_echo "yes" >&6; } | |
36831 | ||
36832 | $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h | |
36833 | ||
36834 | ||
36835 | else | |
36836 | $as_echo "$as_me: failed program was:" >&5 | |
36837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36838 | ||
36839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36840 | $as_echo "no" >&6; } | |
36841 | ||
36842 | ||
36843 | ||
36844 | fi | |
36845 | rm -Rf build | |
36846 | ||
36847 | ||
36848 | ||
36849 | ||
36850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5 | |
36851 | $as_echo_n "checking whether generic_setxattr() exists... " >&6; } | |
36852 | ||
36853 | ||
36854 | cat confdefs.h - <<_ACEOF >conftest.c | |
36855 | ||
36856 | ||
36857 | #include <linux/fs.h> | |
36858 | #include <linux/xattr.h> | |
36859 | ||
36860 | static const struct inode_operations | |
36861 | iops __attribute__ ((unused)) = { | |
36862 | .setxattr = generic_setxattr | |
36863 | }; | |
36864 | ||
36865 | int | |
36866 | main (void) | |
36867 | { | |
36868 | ||
36869 | ||
36870 | ; | |
36871 | return 0; | |
36872 | } | |
36873 | ||
36874 | _ACEOF | |
36875 | ||
36876 | ||
36877 | ||
36878 | cat - <<_ACEOF >conftest.h | |
36879 | ||
36880 | _ACEOF | |
36881 | ||
36882 | ||
36883 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36884 | echo "obj-m := conftest.o" >build/Makefile | |
36885 | modpost_flag='' | |
36886 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36887 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36888 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36889 | (eval $ac_try) 2>&5 | |
36890 | ac_status=$? | |
36891 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36892 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36893 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36894 | (eval $ac_try) 2>&5 | |
36895 | ac_status=$? | |
36896 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36897 | test $ac_status = 0; }; }; then : | |
36898 | ||
36899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36900 | $as_echo "yes" >&6; } | |
36901 | ||
36902 | $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h | |
36903 | ||
36904 | ||
36905 | else | |
36906 | $as_echo "$as_me: failed program was:" >&5 | |
36907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36908 | ||
36909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36910 | $as_echo "no" >&6; } | |
36911 | ||
36912 | ||
36913 | ||
36914 | fi | |
36915 | rm -Rf build | |
36916 | ||
36917 | ||
36918 | ||
df9d7621 CIK |
36919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5 |
36920 | $as_echo_n "checking whether current_time() exists... " >&6; } | |
36921 | ||
36922 | ||
36923 | ||
36924 | cat confdefs.h - <<_ACEOF >conftest.c | |
36925 | ||
36926 | ||
36927 | #include <linux/fs.h> | |
36928 | ||
36929 | int | |
36930 | main (void) | |
36931 | { | |
36932 | ||
36933 | struct inode ip; | |
36934 | struct timespec now __attribute__ ((unused)); | |
36935 | ||
36936 | now = current_time(&ip); | |
36937 | ||
36938 | ; | |
36939 | return 0; | |
36940 | } | |
36941 | ||
36942 | _ACEOF | |
36943 | ||
36944 | ||
36945 | ||
36946 | cat - <<_ACEOF >conftest.h | |
36947 | ||
36948 | _ACEOF | |
36949 | ||
36950 | ||
36951 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36952 | echo "obj-m := conftest.o" >build/Makefile | |
36953 | modpost_flag='' | |
36954 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36955 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36956 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36957 | (eval $ac_try) 2>&5 | |
36958 | ac_status=$? | |
36959 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36960 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36961 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36962 | (eval $ac_try) 2>&5 | |
36963 | ac_status=$? | |
36964 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36965 | test $ac_status = 0; }; }; then : | |
36966 | rc=0 | |
36967 | else | |
36968 | $as_echo "$as_me: failed program was:" >&5 | |
36969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36970 | rc=1 | |
36971 | ||
36972 | ||
36973 | fi | |
36974 | rm -Rf build | |
36975 | ||
36976 | ||
36977 | if test $rc -ne 0; then : | |
36978 | ||
36979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36980 | $as_echo "no" >&6; } | |
36981 | ||
36982 | else | |
36983 | if test "x$enable_linux_builtin" != xyes; then | |
36984 | ||
36985 | grep -q -E '[[:space:]]current_time[[:space:]]' \ | |
36986 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
36987 | rc=$? | |
36988 | if test $rc -ne 0; then | |
36989 | export=0 | |
36990 | for file in fs/inode.c; do | |
36991 | grep -q -E "EXPORT_SYMBOL.*(current_time)" \ | |
36992 | "$LINUX/$file" 2>/dev/null | |
36993 | rc=$? | |
36994 | if test $rc -eq 0; then | |
36995 | export=1 | |
36996 | break; | |
36997 | fi | |
36998 | done | |
36999 | if test $export -eq 0; then : | |
37000 | rc=1 | |
37001 | else : | |
37002 | rc=0 | |
37003 | fi | |
37004 | else : | |
37005 | rc=0 | |
37006 | fi | |
37007 | ||
37008 | fi | |
37009 | if test $rc -ne 0; then : | |
37010 | ||
37011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
37012 | $as_echo "no" >&6; } | |
37013 | ||
37014 | else : | |
37015 | ||
37016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
37017 | $as_echo "yes" >&6; } | |
37018 | ||
37019 | $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h | |
37020 | ||
37021 | ||
37022 | fi | |
37023 | fi | |
37024 | ||
37025 | ||
87d546d8 TG |
37026 | |
37027 | if test "$LINUX_OBJ" != "$LINUX"; then : | |
37028 | ||
37029 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
37030 | ||
37031 | fi | |
37032 | ||
37033 | ||
37034 | ||
37035 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE" | |
37036 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE" | |
37037 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL" | |
37038 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\"" | |
37039 | ||
37040 | ||
37041 | ||
37042 | ||
37043 | ||
37044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5 | |
37045 | $as_echo_n "checking for dkms.conf file... " >&6; } | |
37046 | if test -e dkms.conf; then : | |
37047 | ||
37048 | as_fn_error $? " | |
37049 | *** ZFS should not be manually built in the DKMS source tree. | |
37050 | *** Remove all ZFS packages before compiling the ZoL sources. | |
37051 | *** Running \"make install\" breaks ZFS packages." "$LINENO" 5 | |
37052 | ||
37053 | else | |
37054 | ||
37055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
37056 | $as_echo "not found" >&6; } | |
37057 | ||
37058 | fi | |
37059 | ||
37060 | ||
37061 | ||
37062 | # Check whether --with-mounthelperdir was given. | |
37063 | if test "${with_mounthelperdir+set}" = set; then : | |
37064 | withval=$with_mounthelperdir; mounthelperdir=$withval | |
37065 | else | |
37066 | mounthelperdir=/sbin | |
37067 | fi | |
37068 | ||
37069 | ||
37070 | ||
37071 | ||
37072 | ||
37073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5 | |
37074 | $as_echo_n "checking for udev directories... " >&6; } | |
37075 | ||
37076 | # Check whether --with-udevdir was given. | |
37077 | if test "${with_udevdir+set}" = set; then : | |
37078 | withval=$with_udevdir; udevdir=$withval | |
37079 | else | |
37080 | udevdir=check | |
37081 | fi | |
37082 | ||
37083 | ||
37084 | if test "x$udevdir" = xcheck; then : | |
37085 | ||
37086 | path1=/lib/udev | |
37087 | path2=/usr/lib/udev | |
37088 | default=$path2 | |
37089 | ||
37090 | if test -d "$path1"; then : | |
37091 | udevdir="$path1" | |
37092 | else | |
37093 | ||
37094 | if test -d "$path2"; then : | |
37095 | udevdir="$path2" | |
37096 | else | |
37097 | udevdir="$default" | |
37098 | fi | |
37099 | ||
37100 | fi | |
37101 | ||
37102 | fi | |
37103 | ||
37104 | ||
37105 | # Check whether --with-udevruledir was given. | |
37106 | if test "${with_udevruledir+set}" = set; then : | |
37107 | withval=$with_udevruledir; udevruledir=$withval | |
37108 | else | |
37109 | udevruledir="${udevdir}/rules.d" | |
37110 | fi | |
37111 | ||
37112 | ||
37113 | ||
37114 | ||
37115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5 | |
37116 | $as_echo "$udevdir;$udevruledir" >&6; } | |
37117 | ||
37118 | ||
37119 | # Check whether --enable-systemd was given. | |
37120 | if test "${enable_systemd+set}" = set; then : | |
37121 | enableval=$enable_systemd; | |
37122 | else | |
37123 | enable_systemd=yes | |
37124 | fi | |
37125 | ||
37126 | ||
37127 | ||
37128 | # Check whether --with-systemdunitdir was given. | |
37129 | if test "${with_systemdunitdir+set}" = set; then : | |
37130 | withval=$with_systemdunitdir; systemdunitdir=$withval | |
37131 | else | |
37132 | systemdunitdir=/usr/lib/systemd/system | |
37133 | fi | |
37134 | ||
37135 | ||
37136 | ||
37137 | # Check whether --with-systemdpresetdir was given. | |
37138 | if test "${with_systemdpresetdir+set}" = set; then : | |
37139 | withval=$with_systemdpresetdir; systemdpresetdir=$withval | |
37140 | else | |
37141 | systemdpresetdir=/usr/lib/systemd/system-preset | |
37142 | fi | |
37143 | ||
37144 | ||
37145 | ||
37146 | # Check whether --with-systemdmodulesloaddir was given. | |
37147 | if test "${with_systemdmodulesloaddir+set}" = set; then : | |
37148 | withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval | |
37149 | else | |
37150 | systemdmodulesloaddir=/usr/lib/modules-load.d | |
37151 | fi | |
37152 | ||
37153 | ||
37154 | ||
37155 | if test "x$enable_systemd" = xyes; then : | |
37156 | ||
37157 | ZFS_INIT_SYSTEMD=systemd | |
37158 | ZFS_MODULE_LOAD=modules-load.d | |
37159 | modulesloaddir=$systemdmodulesloaddir | |
37160 | ||
37161 | fi | |
37162 | ||
37163 | ||
37164 | ||
37165 | ||
37166 | ||
37167 | ||
37168 | ||
37169 | ||
37170 | # Check whether --enable-sysvinit was given. | |
37171 | if test "${enable_sysvinit+set}" = set; then : | |
37172 | enableval=$enable_sysvinit; | |
37173 | else | |
37174 | enable_sysvinit=yes | |
37175 | fi | |
37176 | ||
37177 | ||
37178 | if test "x$enable_sysvinit" = xyes; then : | |
37179 | ZFS_INIT_SYSV=init.d | |
37180 | fi | |
37181 | ||
37182 | ||
37183 | ||
37184 | ||
37185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5 | |
37186 | $as_echo_n "checking for dracut directory... " >&6; } | |
37187 | ||
37188 | # Check whether --with-dracutdir was given. | |
37189 | if test "${with_dracutdir+set}" = set; then : | |
37190 | withval=$with_dracutdir; dracutdir=$withval | |
37191 | else | |
37192 | dracutdir=check | |
37193 | fi | |
37194 | ||
37195 | ||
37196 | if test "x$dracutdir" = xcheck; then : | |
37197 | ||
37198 | path1=/usr/share/dracut | |
37199 | path2=/usr/lib/dracut | |
37200 | default=$path2 | |
37201 | ||
37202 | if test -d "$path1"; then : | |
37203 | dracutdir="$path1" | |
37204 | else | |
37205 | ||
37206 | if test -d "$path2"; then : | |
37207 | dracutdir="$path2" | |
37208 | else | |
37209 | dracutdir="$default" | |
37210 | fi | |
37211 | ||
37212 | fi | |
37213 | ||
37214 | fi | |
37215 | ||
37216 | ||
37217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5 | |
37218 | $as_echo "$dracutdir" >&6; } | |
37219 | ||
37220 | ||
37221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5 | |
37222 | $as_echo_n "checking for target asm dir... " >&6; } | |
37223 | TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/` | |
37224 | ||
37225 | case $TARGET_ARCH in | |
37226 | i386|x86_64) | |
37227 | TARGET_ASM_DIR=asm-${TARGET_ARCH} | |
37228 | ;; | |
37229 | *) | |
37230 | TARGET_ASM_DIR=asm-generic | |
37231 | ;; | |
37232 | esac | |
37233 | ||
37234 | ||
37235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5 | |
37236 | $as_echo "$TARGET_ASM_DIR" >&6; } | |
37237 | ||
37238 | ||
37239 | ZLIB= | |
37240 | ||
37241 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
37242 | if test "x$ac_cv_header_zlib_h" = xyes; then : | |
37243 | ||
37244 | else | |
37245 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37246 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37247 | as_fn_error $? " | |
37248 | *** zlib.h missing, zlib-devel package required | |
37249 | See \`config.log' for more details" "$LINENO" 5; } | |
37250 | fi | |
37251 | ||
37252 | ||
37253 | ||
37254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5 | |
37255 | $as_echo_n "checking for compress2 in -lz... " >&6; } | |
37256 | if ${ac_cv_lib_z_compress2+:} false; then : | |
37257 | $as_echo_n "(cached) " >&6 | |
37258 | else | |
37259 | ac_check_lib_save_LIBS=$LIBS | |
37260 | LIBS="-lz $LIBS" | |
37261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37262 | /* end confdefs.h. */ | |
37263 | ||
37264 | /* Override any GCC internal prototype to avoid an error. | |
37265 | Use char because int might match the return type of a GCC | |
37266 | builtin and then its argument prototype would still apply. */ | |
37267 | #ifdef __cplusplus | |
37268 | extern "C" | |
37269 | #endif | |
37270 | char compress2 (); | |
37271 | int | |
37272 | main () | |
37273 | { | |
37274 | return compress2 (); | |
37275 | ; | |
37276 | return 0; | |
37277 | } | |
37278 | _ACEOF | |
37279 | if ac_fn_c_try_link "$LINENO"; then : | |
37280 | ac_cv_lib_z_compress2=yes | |
37281 | else | |
37282 | ac_cv_lib_z_compress2=no | |
37283 | fi | |
37284 | rm -f core conftest.err conftest.$ac_objext \ | |
37285 | conftest$ac_exeext conftest.$ac_ext | |
37286 | LIBS=$ac_check_lib_save_LIBS | |
37287 | fi | |
37288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5 | |
37289 | $as_echo "$ac_cv_lib_z_compress2" >&6; } | |
37290 | if test "x$ac_cv_lib_z_compress2" = xyes; then : | |
37291 | cat >>confdefs.h <<_ACEOF | |
37292 | #define HAVE_LIBZ 1 | |
37293 | _ACEOF | |
37294 | ||
37295 | LIBS="-lz $LIBS" | |
37296 | ||
37297 | else | |
37298 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37299 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37300 | as_fn_error $? " | |
37301 | *** compress2() missing, zlib-devel package required | |
37302 | See \`config.log' for more details" "$LINENO" 5; } | |
37303 | fi | |
37304 | ||
37305 | ||
37306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 | |
37307 | $as_echo_n "checking for uncompress in -lz... " >&6; } | |
37308 | if ${ac_cv_lib_z_uncompress+:} false; then : | |
37309 | $as_echo_n "(cached) " >&6 | |
37310 | else | |
37311 | ac_check_lib_save_LIBS=$LIBS | |
37312 | LIBS="-lz $LIBS" | |
37313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37314 | /* end confdefs.h. */ | |
37315 | ||
37316 | /* Override any GCC internal prototype to avoid an error. | |
37317 | Use char because int might match the return type of a GCC | |
37318 | builtin and then its argument prototype would still apply. */ | |
37319 | #ifdef __cplusplus | |
37320 | extern "C" | |
37321 | #endif | |
37322 | char uncompress (); | |
37323 | int | |
37324 | main () | |
37325 | { | |
37326 | return uncompress (); | |
37327 | ; | |
37328 | return 0; | |
37329 | } | |
37330 | _ACEOF | |
37331 | if ac_fn_c_try_link "$LINENO"; then : | |
37332 | ac_cv_lib_z_uncompress=yes | |
37333 | else | |
37334 | ac_cv_lib_z_uncompress=no | |
37335 | fi | |
37336 | rm -f core conftest.err conftest.$ac_objext \ | |
37337 | conftest$ac_exeext conftest.$ac_ext | |
37338 | LIBS=$ac_check_lib_save_LIBS | |
37339 | fi | |
37340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 | |
37341 | $as_echo "$ac_cv_lib_z_uncompress" >&6; } | |
37342 | if test "x$ac_cv_lib_z_uncompress" = xyes; then : | |
37343 | cat >>confdefs.h <<_ACEOF | |
37344 | #define HAVE_LIBZ 1 | |
37345 | _ACEOF | |
37346 | ||
37347 | LIBS="-lz $LIBS" | |
37348 | ||
37349 | else | |
37350 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37351 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37352 | as_fn_error $? " | |
37353 | *** uncompress() missing, zlib-devel package required | |
37354 | See \`config.log' for more details" "$LINENO" 5; } | |
37355 | fi | |
37356 | ||
37357 | ||
37358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5 | |
37359 | $as_echo_n "checking for crc32 in -lz... " >&6; } | |
37360 | if ${ac_cv_lib_z_crc32+:} false; then : | |
37361 | $as_echo_n "(cached) " >&6 | |
37362 | else | |
37363 | ac_check_lib_save_LIBS=$LIBS | |
37364 | LIBS="-lz $LIBS" | |
37365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37366 | /* end confdefs.h. */ | |
37367 | ||
37368 | /* Override any GCC internal prototype to avoid an error. | |
37369 | Use char because int might match the return type of a GCC | |
37370 | builtin and then its argument prototype would still apply. */ | |
37371 | #ifdef __cplusplus | |
37372 | extern "C" | |
37373 | #endif | |
37374 | char crc32 (); | |
37375 | int | |
37376 | main () | |
37377 | { | |
37378 | return crc32 (); | |
37379 | ; | |
37380 | return 0; | |
37381 | } | |
37382 | _ACEOF | |
37383 | if ac_fn_c_try_link "$LINENO"; then : | |
37384 | ac_cv_lib_z_crc32=yes | |
37385 | else | |
37386 | ac_cv_lib_z_crc32=no | |
37387 | fi | |
37388 | rm -f core conftest.err conftest.$ac_objext \ | |
37389 | conftest$ac_exeext conftest.$ac_ext | |
37390 | LIBS=$ac_check_lib_save_LIBS | |
37391 | fi | |
37392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5 | |
37393 | $as_echo "$ac_cv_lib_z_crc32" >&6; } | |
37394 | if test "x$ac_cv_lib_z_crc32" = xyes; then : | |
37395 | cat >>confdefs.h <<_ACEOF | |
37396 | #define HAVE_LIBZ 1 | |
37397 | _ACEOF | |
37398 | ||
37399 | LIBS="-lz $LIBS" | |
37400 | ||
37401 | else | |
37402 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37403 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37404 | as_fn_error $? " | |
37405 | *** crc32() missing, zlib-devel package required | |
37406 | See \`config.log' for more details" "$LINENO" 5; } | |
37407 | fi | |
37408 | ||
37409 | ||
37410 | ZLIB="-lz" | |
37411 | ||
37412 | ||
37413 | $as_echo "#define HAVE_ZLIB 1" >>confdefs.h | |
37414 | ||
37415 | ||
37416 | ||
37417 | LIBUUID= | |
37418 | ||
37419 | ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" | |
37420 | if test "x$ac_cv_header_uuid_uuid_h" = xyes; then : | |
37421 | ||
37422 | else | |
37423 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37424 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37425 | as_fn_error $? " | |
37426 | *** uuid/uuid.h missing, libuuid-devel package required | |
37427 | See \`config.log' for more details" "$LINENO" 5; } | |
37428 | fi | |
37429 | ||
37430 | ||
37431 | ||
37432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 | |
37433 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } | |
37434 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : | |
37435 | $as_echo_n "(cached) " >&6 | |
37436 | else | |
37437 | ac_check_lib_save_LIBS=$LIBS | |
37438 | LIBS="-luuid $LIBS" | |
37439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37440 | /* end confdefs.h. */ | |
37441 | ||
37442 | /* Override any GCC internal prototype to avoid an error. | |
37443 | Use char because int might match the return type of a GCC | |
37444 | builtin and then its argument prototype would still apply. */ | |
37445 | #ifdef __cplusplus | |
37446 | extern "C" | |
37447 | #endif | |
37448 | char uuid_generate (); | |
37449 | int | |
37450 | main () | |
37451 | { | |
37452 | return uuid_generate (); | |
37453 | ; | |
37454 | return 0; | |
37455 | } | |
37456 | _ACEOF | |
37457 | if ac_fn_c_try_link "$LINENO"; then : | |
37458 | ac_cv_lib_uuid_uuid_generate=yes | |
37459 | else | |
37460 | ac_cv_lib_uuid_uuid_generate=no | |
37461 | fi | |
37462 | rm -f core conftest.err conftest.$ac_objext \ | |
37463 | conftest$ac_exeext conftest.$ac_ext | |
37464 | LIBS=$ac_check_lib_save_LIBS | |
37465 | fi | |
37466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 | |
37467 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
37468 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : | |
37469 | cat >>confdefs.h <<_ACEOF | |
37470 | #define HAVE_LIBUUID 1 | |
37471 | _ACEOF | |
37472 | ||
37473 | LIBS="-luuid $LIBS" | |
37474 | ||
37475 | else | |
37476 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37477 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37478 | as_fn_error $? " | |
37479 | *** uuid_generate() missing, libuuid-devel package required | |
37480 | See \`config.log' for more details" "$LINENO" 5; } | |
37481 | fi | |
37482 | ||
37483 | ||
37484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5 | |
37485 | $as_echo_n "checking for uuid_is_null in -luuid... " >&6; } | |
37486 | if ${ac_cv_lib_uuid_uuid_is_null+:} false; then : | |
37487 | $as_echo_n "(cached) " >&6 | |
37488 | else | |
37489 | ac_check_lib_save_LIBS=$LIBS | |
37490 | LIBS="-luuid $LIBS" | |
37491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37492 | /* end confdefs.h. */ | |
37493 | ||
37494 | /* Override any GCC internal prototype to avoid an error. | |
37495 | Use char because int might match the return type of a GCC | |
37496 | builtin and then its argument prototype would still apply. */ | |
37497 | #ifdef __cplusplus | |
37498 | extern "C" | |
37499 | #endif | |
37500 | char uuid_is_null (); | |
37501 | int | |
37502 | main () | |
37503 | { | |
37504 | return uuid_is_null (); | |
37505 | ; | |
37506 | return 0; | |
37507 | } | |
37508 | _ACEOF | |
37509 | if ac_fn_c_try_link "$LINENO"; then : | |
37510 | ac_cv_lib_uuid_uuid_is_null=yes | |
37511 | else | |
37512 | ac_cv_lib_uuid_uuid_is_null=no | |
37513 | fi | |
37514 | rm -f core conftest.err conftest.$ac_objext \ | |
37515 | conftest$ac_exeext conftest.$ac_ext | |
37516 | LIBS=$ac_check_lib_save_LIBS | |
37517 | fi | |
37518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5 | |
37519 | $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; } | |
37520 | if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes; then : | |
37521 | cat >>confdefs.h <<_ACEOF | |
37522 | #define HAVE_LIBUUID 1 | |
37523 | _ACEOF | |
37524 | ||
37525 | LIBS="-luuid $LIBS" | |
37526 | ||
37527 | else | |
37528 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37529 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37530 | as_fn_error $? " | |
37531 | *** uuid_is_null() missing, libuuid-devel package required | |
37532 | See \`config.log' for more details" "$LINENO" 5; } | |
37533 | fi | |
37534 | ||
37535 | ||
37536 | LIBUUID="-luuid" | |
37537 | ||
37538 | ||
37539 | $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h | |
37540 | ||
37541 | ||
37542 | ||
37543 | ||
37544 | # Check whether --with-blkid was given. | |
37545 | if test "${with_blkid+set}" = set; then : | |
37546 | withval=$with_blkid; | |
37547 | else | |
37548 | with_blkid=check | |
37549 | fi | |
37550 | ||
37551 | ||
37552 | LIBBLKID= | |
37553 | if test "x$with_blkid" = xyes; then : | |
37554 | ||
37555 | LIBBLKID="-lblkid" | |
37556 | ||
37557 | ||
37558 | $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h | |
37559 | ||
37560 | ||
37561 | fi | |
37562 | ||
37563 | if test "x$with_blkid" = xcheck; then : | |
37564 | ||
37565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 | |
37566 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } | |
37567 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : | |
37568 | $as_echo_n "(cached) " >&6 | |
37569 | else | |
37570 | ac_check_lib_save_LIBS=$LIBS | |
37571 | LIBS="-lblkid $LIBS" | |
37572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37573 | /* end confdefs.h. */ | |
37574 | ||
37575 | /* Override any GCC internal prototype to avoid an error. | |
37576 | Use char because int might match the return type of a GCC | |
37577 | builtin and then its argument prototype would still apply. */ | |
37578 | #ifdef __cplusplus | |
37579 | extern "C" | |
37580 | #endif | |
37581 | char blkid_get_cache (); | |
37582 | int | |
37583 | main () | |
37584 | { | |
37585 | return blkid_get_cache (); | |
37586 | ; | |
37587 | return 0; | |
37588 | } | |
37589 | _ACEOF | |
37590 | if ac_fn_c_try_link "$LINENO"; then : | |
37591 | ac_cv_lib_blkid_blkid_get_cache=yes | |
37592 | else | |
37593 | ac_cv_lib_blkid_blkid_get_cache=no | |
37594 | fi | |
37595 | rm -f core conftest.err conftest.$ac_objext \ | |
37596 | conftest$ac_exeext conftest.$ac_ext | |
37597 | LIBS=$ac_check_lib_save_LIBS | |
37598 | fi | |
37599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 | |
37600 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
37601 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : | |
37602 | ||
37603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5 | |
37604 | $as_echo_n "checking for blkid zfs support... " >&6; } | |
37605 | ||
37606 | ZFS_DEV=`mktemp` | |
37607 | truncate -s 64M $ZFS_DEV | |
37608 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
37609 | dd of=$ZFS_DEV bs=1k count=8 \ | |
37610 | seek=128 conv=notrunc &>/dev/null \ | |
37611 | >/dev/null 2>/dev/null | |
37612 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
37613 | dd of=$ZFS_DEV bs=1k count=8 \ | |
37614 | seek=132 conv=notrunc &>/dev/null \ | |
37615 | >/dev/null 2>/dev/null | |
37616 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
37617 | dd of=$ZFS_DEV bs=1k count=8 \ | |
37618 | seek=136 conv=notrunc &>/dev/null \ | |
37619 | >/dev/null 2>/dev/null | |
37620 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
37621 | dd of=$ZFS_DEV bs=1k count=8 \ | |
37622 | seek=140 conv=notrunc &>/dev/null \ | |
37623 | >/dev/null 2>/dev/null | |
37624 | ||
37625 | saved_LIBS="$LIBS" | |
37626 | LIBS="-lblkid" | |
37627 | ||
37628 | if test "$cross_compiling" = yes; then : | |
37629 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37630 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37631 | as_fn_error $? "cannot run test program while cross compiling | |
37632 | See \`config.log' for more details" "$LINENO" 5; } | |
37633 | else | |
37634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37635 | /* end confdefs.h. */ | |
37636 | ||
37637 | #include <stdio.h> | |
37638 | #include <stdlib.h> | |
37639 | #include <blkid/blkid.h> | |
37640 | ||
37641 | int | |
37642 | main () | |
37643 | { | |
37644 | ||
37645 | blkid_cache cache; | |
37646 | char *value; | |
37647 | ||
37648 | if (blkid_get_cache(&cache, NULL) < 0) | |
37649 | return 1; | |
37650 | ||
37651 | value = blkid_get_tag_value(cache, "TYPE", | |
37652 | "$ZFS_DEV"); | |
37653 | if (!value) { | |
37654 | blkid_put_cache(cache); | |
37655 | return 2; | |
37656 | } | |
37657 | ||
37658 | if (strcmp(value, "zfs_member")) { | |
37659 | free(value); | |
37660 | blkid_put_cache(cache); | |
37661 | return 0; | |
37662 | } | |
37663 | ||
37664 | free(value); | |
37665 | blkid_put_cache(cache); | |
37666 | ||
37667 | ; | |
37668 | return 0; | |
37669 | } | |
37670 | _ACEOF | |
37671 | if ac_fn_c_try_run "$LINENO"; then : | |
37672 | ||
37673 | rm -f $ZFS_DEV | |
37674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
37675 | $as_echo "yes" >&6; } | |
37676 | LIBBLKID="-lblkid" | |
37677 | ||
37678 | ||
37679 | $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h | |
37680 | ||
37681 | ||
37682 | else | |
37683 | ||
37684 | rm -f $ZFS_DEV | |
37685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
37686 | $as_echo "no" >&6; } | |
37687 | if test "x$with_blkid" != xcheck; then : | |
37688 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37689 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37690 | as_fn_error $? "--with-blkid given but unavailable | |
37691 | See \`config.log' for more details" "$LINENO" 5; } | |
37692 | fi | |
37693 | ||
37694 | fi | |
37695 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
37696 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
37697 | fi | |
37698 | ||
37699 | ||
37700 | LIBS="$saved_LIBS" | |
37701 | ||
37702 | else | |
37703 | ||
37704 | if test "x$with_blkid" != xcheck; then : | |
37705 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37706 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37707 | as_fn_error $? "--with-blkid given but unavailable | |
37708 | See \`config.log' for more details" "$LINENO" 5; } | |
37709 | fi | |
37710 | ||
37711 | ||
37712 | fi | |
37713 | ||
37714 | ||
37715 | fi | |
37716 | ||
37717 | ||
37718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5 | |
37719 | $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; } | |
37720 | ||
37721 | saved_flags="$CFLAGS" | |
37722 | CFLAGS="$CFLAGS -Wframe-larger-than=1024" | |
37723 | ||
37724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37725 | /* end confdefs.h. */ | |
37726 | ||
37727 | int | |
37728 | main () | |
37729 | { | |
37730 | ||
37731 | ; | |
37732 | return 0; | |
37733 | } | |
37734 | _ACEOF | |
37735 | if ac_fn_c_try_compile "$LINENO"; then : | |
37736 | ||
37737 | FRAME_LARGER_THAN=-Wframe-larger-than=1024 | |
37738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
37739 | $as_echo "yes" >&6; } | |
37740 | ||
37741 | else | |
37742 | ||
37743 | FRAME_LARGER_THAN= | |
37744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
37745 | $as_echo "no" >&6; } | |
37746 | ||
37747 | fi | |
37748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
37749 | ||
37750 | CFLAGS="$saved_flags" | |
37751 | ||
37752 | ||
37753 | ||
37754 | if test "x$runstatedir" = x; then | |
37755 | runstatedir='${localstatedir}/run' | |
37756 | ||
37757 | fi | |
37758 | ||
1ec59ff7 CIK |
37759 | |
37760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5 | |
37761 | $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; } | |
37762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37763 | /* end confdefs.h. */ | |
37764 | ||
37765 | #include <sys/sysmacros.h> | |
37766 | ||
37767 | int | |
37768 | main () | |
37769 | { | |
37770 | ||
37771 | int k; | |
37772 | k = makedev(0,0); | |
37773 | ||
37774 | ; | |
37775 | return 0; | |
37776 | } | |
37777 | _ACEOF | |
37778 | if ac_fn_c_try_compile "$LINENO"; then : | |
37779 | ||
37780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
37781 | $as_echo "yes" >&6; } | |
37782 | ||
37783 | $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h | |
37784 | ||
37785 | ||
37786 | else | |
37787 | ||
37788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
37789 | $as_echo "no" >&6; } | |
37790 | ||
37791 | fi | |
37792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
37793 | ||
37794 | ||
37795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5 | |
37796 | $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; } | |
37797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37798 | /* end confdefs.h. */ | |
37799 | ||
37800 | #include <sys/mkdev.h> | |
37801 | ||
37802 | int | |
37803 | main () | |
37804 | { | |
37805 | ||
37806 | int k; | |
37807 | k = makedev(0,0); | |
37808 | ||
37809 | ; | |
37810 | return 0; | |
37811 | } | |
37812 | _ACEOF | |
37813 | if ac_fn_c_try_compile "$LINENO"; then : | |
37814 | ||
37815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
37816 | $as_echo "yes" >&6; } | |
37817 | ||
37818 | $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h | |
37819 | ||
37820 | ||
37821 | else | |
37822 | ||
37823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
37824 | $as_echo "no" >&6; } | |
37825 | ||
37826 | fi | |
37827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
37828 | ||
37829 | ||
37830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5 | |
37831 | $as_echo_n "checking for -Wno-format-truncation support... " >&6; } | |
37832 | ||
37833 | saved_flags="$CFLAGS" | |
37834 | CFLAGS="$CFLAGS -Wno-format-truncation" | |
37835 | ||
37836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37837 | /* end confdefs.h. */ | |
37838 | ||
37839 | int | |
37840 | main () | |
37841 | { | |
37842 | ||
37843 | ; | |
37844 | return 0; | |
37845 | } | |
37846 | _ACEOF | |
37847 | if ac_fn_c_try_compile "$LINENO"; then : | |
37848 | ||
37849 | NO_FORMAT_TRUNCATION=-Wno-format-truncation | |
37850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
37851 | $as_echo "yes" >&6; } | |
37852 | ||
37853 | else | |
37854 | ||
37855 | NO_FORMAT_TRUNCATION= | |
37856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
37857 | $as_echo "no" >&6; } | |
37858 | ||
37859 | fi | |
37860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
37861 | ||
37862 | CFLAGS="$saved_flags" | |
37863 | ||
37864 | ||
87d546d8 TG |
37865 | for ac_func in mlockall |
37866 | do : | |
37867 | ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" | |
37868 | if test "x$ac_cv_func_mlockall" = xyes; then : | |
37869 | cat >>confdefs.h <<_ACEOF | |
37870 | #define HAVE_MLOCKALL 1 | |
37871 | _ACEOF | |
37872 | ||
37873 | fi | |
37874 | done | |
37875 | ||
37876 | ;; | |
37877 | srpm) ;; | |
37878 | *) | |
37879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 | |
37880 | $as_echo "Error!" >&6; } | |
37881 | as_fn_error $? "Bad value \"$ZFS_CONFIG\" for --with-config, | |
37882 | user kernel|user|all|srpm" "$LINENO" 5 ;; | |
37883 | esac | |
37884 | ||
37885 | if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then | |
37886 | CONFIG_USER_TRUE= | |
37887 | CONFIG_USER_FALSE='#' | |
37888 | else | |
37889 | CONFIG_USER_TRUE='#' | |
37890 | CONFIG_USER_FALSE= | |
37891 | fi | |
37892 | ||
37893 | if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all && | |
37894 | test "x$enable_linux_builtin" != xyes ; then | |
37895 | CONFIG_KERNEL_TRUE= | |
37896 | CONFIG_KERNEL_FALSE='#' | |
37897 | else | |
37898 | CONFIG_KERNEL_TRUE='#' | |
37899 | CONFIG_KERNEL_FALSE= | |
37900 | fi | |
37901 | ||
37902 | ||
37903 | ||
37904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5 | |
37905 | $as_echo_n "checking whether debugging is enabled... " >&6; } | |
37906 | # Check whether --enable-debug was given. | |
37907 | if test "${enable_debug+set}" = set; then : | |
37908 | enableval=$enable_debug; | |
37909 | else | |
37910 | enable_debug=no | |
37911 | fi | |
37912 | ||
37913 | ||
37914 | if test "x$enable_debug" = xyes; then : | |
37915 | ||
37916 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror" | |
37917 | HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror" | |
37918 | DEBUG_CFLAGS="-DDEBUG -Werror" | |
37919 | DEBUG_STACKFLAGS="-fstack-check" | |
37920 | DEBUG_ZFS="_with_debug" | |
37921 | ||
37922 | $as_echo "#define ZFS_DEBUG 1" >>confdefs.h | |
37923 | ||
37924 | ||
37925 | else | |
37926 | ||
37927 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG " | |
37928 | HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG " | |
37929 | DEBUG_CFLAGS="-DNDEBUG" | |
37930 | DEBUG_STACKFLAGS="" | |
37931 | DEBUG_ZFS="_without_debug" | |
37932 | ||
37933 | fi | |
37934 | ||
37935 | ||
37936 | ||
37937 | ||
37938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 | |
37939 | $as_echo "$enable_debug" >&6; } | |
37940 | ||
37941 | ||
37942 | # Check whether --enable-debug-dmu-tx was given. | |
37943 | if test "${enable_debug_dmu_tx+set}" = set; then : | |
37944 | enableval=$enable_debug_dmu_tx; | |
37945 | else | |
37946 | enable_debug_dmu_tx=no | |
37947 | fi | |
37948 | ||
37949 | ||
37950 | if test "x$enable_debug_dmu_tx" = xyes; then : | |
37951 | ||
37952 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_DMU_TX" | |
37953 | DEBUG_DMU_TX="_with_debug_dmu_tx" | |
37954 | ||
37955 | $as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h | |
37956 | ||
37957 | ||
37958 | else | |
37959 | ||
37960 | DEBUG_DMU_TX="_without_debug_dmu_tx" | |
37961 | ||
37962 | fi | |
37963 | ||
37964 | ||
37965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5 | |
37966 | $as_echo_n "checking whether dmu tx validation is enabled... " >&6; } | |
37967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5 | |
37968 | $as_echo "$enable_debug_dmu_tx" >&6; } | |
37969 | ||
37970 | ||
37971 | ac_config_files="$ac_config_files 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 zfs.release" | |
37972 | ||
37973 | ||
37974 | cat >confcache <<\_ACEOF | |
37975 | # This file is a shell script that caches the results of configure | |
37976 | # tests run on this system so they can be shared between configure | |
37977 | # scripts and configure runs, see configure's option --config-cache. | |
37978 | # It is not useful on other systems. If it contains results you don't | |
37979 | # want to keep, you may remove or edit it. | |
37980 | # | |
37981 | # config.status only pays attention to the cache file if you give it | |
37982 | # the --recheck option to rerun configure. | |
37983 | # | |
37984 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
37985 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
37986 | # following values. | |
37987 | ||
37988 | _ACEOF | |
37989 | ||
37990 | # The following way of writing the cache mishandles newlines in values, | |
37991 | # but we know of no workaround that is simple, portable, and efficient. | |
37992 | # So, we kill variables containing newlines. | |
37993 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
37994 | # and sets the high bit in the cache file unless we assign to the vars. | |
37995 | ( | |
37996 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
37997 | eval ac_val=\$$ac_var | |
37998 | case $ac_val in #( | |
37999 | *${as_nl}*) | |
38000 | case $ac_var in #( | |
38001 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
38002 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
38003 | esac | |
38004 | case $ac_var in #( | |
38005 | _ | IFS | as_nl) ;; #( | |
38006 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
38007 | *) { eval $ac_var=; unset $ac_var;} ;; | |
38008 | esac ;; | |
38009 | esac | |
38010 | done | |
38011 | ||
38012 | (set) 2>&1 | | |
38013 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
38014 | *${as_nl}ac_space=\ *) | |
38015 | # `set' does not quote correctly, so add quotes: double-quote | |
38016 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
38017 | sed -n \ | |
38018 | "s/'/'\\\\''/g; | |
38019 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
38020 | ;; #( | |
38021 | *) | |
38022 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
38023 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
38024 | ;; | |
38025 | esac | | |
38026 | sort | |
38027 | ) | | |
38028 | sed ' | |
38029 | /^ac_cv_env_/b end | |
38030 | t clear | |
38031 | :clear | |
38032 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
38033 | t end | |
38034 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
38035 | :end' >>confcache | |
38036 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
38037 | if test -w "$cache_file"; then | |
38038 | if test "x$cache_file" != "x/dev/null"; then | |
38039 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
38040 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
38041 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
38042 | cat confcache >"$cache_file" | |
38043 | else | |
38044 | case $cache_file in #( | |
38045 | */* | ?:*) | |
38046 | mv -f confcache "$cache_file"$$ && | |
38047 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
38048 | *) | |
38049 | mv -f confcache "$cache_file" ;; | |
38050 | esac | |
38051 | fi | |
38052 | fi | |
38053 | else | |
38054 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
38055 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
38056 | fi | |
38057 | fi | |
38058 | rm -f confcache | |
38059 | ||
38060 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
38061 | # Let make expand exec_prefix. | |
38062 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
38063 | ||
38064 | DEFS=-DHAVE_CONFIG_H | |
38065 | ||
38066 | ac_libobjs= | |
38067 | ac_ltlibobjs= | |
38068 | U= | |
38069 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
38070 | # 1. Remove the extension, and $U if already installed. | |
38071 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
38072 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
38073 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
38074 | # will be set to the directory where LIBOBJS objects are built. | |
38075 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
38076 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
38077 | done | |
38078 | LIBOBJS=$ac_libobjs | |
38079 | ||
38080 | LTLIBOBJS=$ac_ltlibobjs | |
38081 | ||
38082 | ||
38083 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
38084 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
38085 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
38086 | fi | |
38087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
38088 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
38089 | if test -n "$am_sleep_pid"; then | |
38090 | # Hide warnings about reused PIDs. | |
38091 | wait $am_sleep_pid 2>/dev/null | |
38092 | fi | |
38093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
38094 | $as_echo "done" >&6; } | |
38095 | if test -n "$EXEEXT"; then | |
38096 | am__EXEEXT_TRUE= | |
38097 | am__EXEEXT_FALSE='#' | |
38098 | else | |
38099 | am__EXEEXT_TRUE='#' | |
38100 | am__EXEEXT_FALSE= | |
38101 | fi | |
38102 | ||
38103 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
38104 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
38105 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
38106 | fi | |
38107 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
38108 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
38109 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
38110 | fi | |
38111 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then | |
38112 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. | |
38113 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
38114 | fi | |
38115 | if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then | |
38116 | as_fn_error $? "conditional \"CONFIG_USER\" was never defined. | |
38117 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
38118 | fi | |
38119 | if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then | |
38120 | as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined. | |
38121 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
38122 | fi | |
38123 | ||
38124 | : "${CONFIG_STATUS=./config.status}" | |
38125 | ac_write_fail=0 | |
38126 | ac_clean_files_save=$ac_clean_files | |
38127 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
38128 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
38129 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
38130 | as_write_fail=0 | |
38131 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
38132 | #! $SHELL | |
38133 | # Generated by $as_me. | |
38134 | # Run this file to recreate the current configuration. | |
38135 | # Compiler output produced by configure, useful for debugging | |
38136 | # configure, is in config.log if it exists. | |
38137 | ||
38138 | debug=false | |
38139 | ac_cs_recheck=false | |
38140 | ac_cs_silent=false | |
38141 | ||
38142 | SHELL=\${CONFIG_SHELL-$SHELL} | |
38143 | export SHELL | |
38144 | _ASEOF | |
38145 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
38146 | ## -------------------- ## | |
38147 | ## M4sh Initialization. ## | |
38148 | ## -------------------- ## | |
38149 | ||
38150 | # Be more Bourne compatible | |
38151 | DUALCASE=1; export DUALCASE # for MKS sh | |
38152 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
38153 | emulate sh | |
38154 | NULLCMD=: | |
38155 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
38156 | # is contrary to our usage. Disable this feature. | |
38157 | alias -g '${1+"$@"}'='"$@"' | |
38158 | setopt NO_GLOB_SUBST | |
38159 | else | |
38160 | case `(set -o) 2>/dev/null` in #( | |
38161 | *posix*) : | |
38162 | set -o posix ;; #( | |
38163 | *) : | |
38164 | ;; | |
38165 | esac | |
38166 | fi | |
38167 | ||
38168 | ||
38169 | as_nl=' | |
38170 | ' | |
38171 | export as_nl | |
38172 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38173 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
38174 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
38175 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
38176 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
38177 | # but without wasting forks for bash or zsh. | |
38178 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
38179 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
38180 | as_echo='print -r --' | |
38181 | as_echo_n='print -rn --' | |
38182 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
38183 | as_echo='printf %s\n' | |
38184 | as_echo_n='printf %s' | |
38185 | else | |
38186 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
38187 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
38188 | as_echo_n='/usr/ucb/echo -n' | |
38189 | else | |
38190 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
38191 | as_echo_n_body='eval | |
38192 | arg=$1; | |
38193 | case $arg in #( | |
38194 | *"$as_nl"*) | |
38195 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
38196 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
38197 | esac; | |
38198 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
38199 | ' | |
38200 | export as_echo_n_body | |
38201 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
38202 | fi | |
38203 | export as_echo_body | |
38204 | as_echo='sh -c $as_echo_body as_echo' | |
38205 | fi | |
38206 | ||
38207 | # The user is always right. | |
38208 | if test "${PATH_SEPARATOR+set}" != set; then | |
38209 | PATH_SEPARATOR=: | |
38210 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
38211 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
38212 | PATH_SEPARATOR=';' | |
38213 | } | |
38214 | fi | |
38215 | ||
38216 | ||
38217 | # IFS | |
38218 | # We need space, tab and new line, in precisely that order. Quoting is | |
38219 | # there to prevent editors from complaining about space-tab. | |
38220 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
38221 | # splitting by setting IFS to empty value.) | |
38222 | IFS=" "" $as_nl" | |
38223 | ||
38224 | # Find who we are. Look in the path if we contain no directory separator. | |
38225 | as_myself= | |
38226 | case $0 in #(( | |
38227 | *[\\/]* ) as_myself=$0 ;; | |
38228 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38229 | for as_dir in $PATH | |
38230 | do | |
38231 | IFS=$as_save_IFS | |
38232 | test -z "$as_dir" && as_dir=. | |
38233 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
38234 | done | |
38235 | IFS=$as_save_IFS | |
38236 | ||
38237 | ;; | |
38238 | esac | |
38239 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
38240 | # in which case we are not to be found in the path. | |
38241 | if test "x$as_myself" = x; then | |
38242 | as_myself=$0 | |
38243 | fi | |
38244 | if test ! -f "$as_myself"; then | |
38245 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
38246 | exit 1 | |
38247 | fi | |
38248 | ||
38249 | # Unset variables that we do not need and which cause bugs (e.g. in | |
38250 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
38251 | # suppresses any "Segmentation fault" message there. '((' could | |
38252 | # trigger a bug in pdksh 5.2.14. | |
38253 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
38254 | do eval test x\${$as_var+set} = xset \ | |
38255 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
38256 | done | |
38257 | PS1='$ ' | |
38258 | PS2='> ' | |
38259 | PS4='+ ' | |
38260 | ||
38261 | # NLS nuisances. | |
38262 | LC_ALL=C | |
38263 | export LC_ALL | |
38264 | LANGUAGE=C | |
38265 | export LANGUAGE | |
38266 | ||
38267 | # CDPATH. | |
38268 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
38269 | ||
38270 | ||
38271 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
38272 | # ---------------------------------------- | |
38273 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
38274 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
38275 | # script with STATUS, using 1 if that was 0. | |
38276 | as_fn_error () | |
38277 | { | |
38278 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
38279 | if test "$4"; then | |
38280 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
38281 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
38282 | fi | |
38283 | $as_echo "$as_me: error: $2" >&2 | |
38284 | as_fn_exit $as_status | |
38285 | } # as_fn_error | |
38286 | ||
38287 | ||
38288 | # as_fn_set_status STATUS | |
38289 | # ----------------------- | |
38290 | # Set $? to STATUS, without forking. | |
38291 | as_fn_set_status () | |
38292 | { | |
38293 | return $1 | |
38294 | } # as_fn_set_status | |
38295 | ||
38296 | # as_fn_exit STATUS | |
38297 | # ----------------- | |
38298 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
38299 | as_fn_exit () | |
38300 | { | |
38301 | set +e | |
38302 | as_fn_set_status $1 | |
38303 | exit $1 | |
38304 | } # as_fn_exit | |
38305 | ||
38306 | # as_fn_unset VAR | |
38307 | # --------------- | |
38308 | # Portably unset VAR. | |
38309 | as_fn_unset () | |
38310 | { | |
38311 | { eval $1=; unset $1;} | |
38312 | } | |
38313 | as_unset=as_fn_unset | |
38314 | # as_fn_append VAR VALUE | |
38315 | # ---------------------- | |
38316 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
38317 | # advantage of any shell optimizations that allow amortized linear growth over | |
38318 | # repeated appends, instead of the typical quadratic growth present in naive | |
38319 | # implementations. | |
38320 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
38321 | eval 'as_fn_append () | |
38322 | { | |
38323 | eval $1+=\$2 | |
38324 | }' | |
38325 | else | |
38326 | as_fn_append () | |
38327 | { | |
38328 | eval $1=\$$1\$2 | |
38329 | } | |
38330 | fi # as_fn_append | |
38331 | ||
38332 | # as_fn_arith ARG... | |
38333 | # ------------------ | |
38334 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
38335 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
38336 | # must be portable across $(()) and expr. | |
38337 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
38338 | eval 'as_fn_arith () | |
38339 | { | |
38340 | as_val=$(( $* )) | |
38341 | }' | |
38342 | else | |
38343 | as_fn_arith () | |
38344 | { | |
38345 | as_val=`expr "$@" || test $? -eq 1` | |
38346 | } | |
38347 | fi # as_fn_arith | |
38348 | ||
38349 | ||
38350 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
38351 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
38352 | as_expr=expr | |
38353 | else | |
38354 | as_expr=false | |
38355 | fi | |
38356 | ||
38357 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
38358 | as_basename=basename | |
38359 | else | |
38360 | as_basename=false | |
38361 | fi | |
38362 | ||
38363 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
38364 | as_dirname=dirname | |
38365 | else | |
38366 | as_dirname=false | |
38367 | fi | |
38368 | ||
38369 | as_me=`$as_basename -- "$0" || | |
38370 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
38371 | X"$0" : 'X\(//\)$' \| \ | |
38372 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
38373 | $as_echo X/"$0" | | |
38374 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
38375 | s//\1/ | |
38376 | q | |
38377 | } | |
38378 | /^X\/\(\/\/\)$/{ | |
38379 | s//\1/ | |
38380 | q | |
38381 | } | |
38382 | /^X\/\(\/\).*/{ | |
38383 | s//\1/ | |
38384 | q | |
38385 | } | |
38386 | s/.*/./; q'` | |
38387 | ||
38388 | # Avoid depending upon Character Ranges. | |
38389 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
38390 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
38391 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
38392 | as_cr_digits='0123456789' | |
38393 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
38394 | ||
38395 | ECHO_C= ECHO_N= ECHO_T= | |
38396 | case `echo -n x` in #((((( | |
38397 | -n*) | |
38398 | case `echo 'xy\c'` in | |
38399 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
38400 | xy) ECHO_C='\c';; | |
38401 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
38402 | ECHO_T=' ';; | |
38403 | esac;; | |
38404 | *) | |
38405 | ECHO_N='-n';; | |
38406 | esac | |
38407 | ||
38408 | rm -f conf$$ conf$$.exe conf$$.file | |
38409 | if test -d conf$$.dir; then | |
38410 | rm -f conf$$.dir/conf$$.file | |
38411 | else | |
38412 | rm -f conf$$.dir | |
38413 | mkdir conf$$.dir 2>/dev/null | |
38414 | fi | |
38415 | if (echo >conf$$.file) 2>/dev/null; then | |
38416 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
38417 | as_ln_s='ln -s' | |
38418 | # ... but there are two gotchas: | |
38419 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
38420 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
38421 | # In both cases, we have to default to `cp -pR'. | |
38422 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
38423 | as_ln_s='cp -pR' | |
38424 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
38425 | as_ln_s=ln | |
38426 | else | |
38427 | as_ln_s='cp -pR' | |
38428 | fi | |
38429 | else | |
38430 | as_ln_s='cp -pR' | |
38431 | fi | |
38432 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
38433 | rmdir conf$$.dir 2>/dev/null | |
38434 | ||
38435 | ||
38436 | # as_fn_mkdir_p | |
38437 | # ------------- | |
38438 | # Create "$as_dir" as a directory, including parents if necessary. | |
38439 | as_fn_mkdir_p () | |
38440 | { | |
38441 | ||
38442 | case $as_dir in #( | |
38443 | -*) as_dir=./$as_dir;; | |
38444 | esac | |
38445 | test -d "$as_dir" || eval $as_mkdir_p || { | |
38446 | as_dirs= | |
38447 | while :; do | |
38448 | case $as_dir in #( | |
38449 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
38450 | *) as_qdir=$as_dir;; | |
38451 | esac | |
38452 | as_dirs="'$as_qdir' $as_dirs" | |
38453 | as_dir=`$as_dirname -- "$as_dir" || | |
38454 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
38455 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
38456 | X"$as_dir" : 'X\(//\)$' \| \ | |
38457 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
38458 | $as_echo X"$as_dir" | | |
38459 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
38460 | s//\1/ | |
38461 | q | |
38462 | } | |
38463 | /^X\(\/\/\)[^/].*/{ | |
38464 | s//\1/ | |
38465 | q | |
38466 | } | |
38467 | /^X\(\/\/\)$/{ | |
38468 | s//\1/ | |
38469 | q | |
38470 | } | |
38471 | /^X\(\/\).*/{ | |
38472 | s//\1/ | |
38473 | q | |
38474 | } | |
38475 | s/.*/./; q'` | |
38476 | test -d "$as_dir" && break | |
38477 | done | |
38478 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
38479 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
38480 | ||
38481 | ||
38482 | } # as_fn_mkdir_p | |
38483 | if mkdir -p . 2>/dev/null; then | |
38484 | as_mkdir_p='mkdir -p "$as_dir"' | |
38485 | else | |
38486 | test -d ./-p && rmdir ./-p | |
38487 | as_mkdir_p=false | |
38488 | fi | |
38489 | ||
38490 | ||
38491 | # as_fn_executable_p FILE | |
38492 | # ----------------------- | |
38493 | # Test if FILE is an executable regular file. | |
38494 | as_fn_executable_p () | |
38495 | { | |
38496 | test -f "$1" && test -x "$1" | |
38497 | } # as_fn_executable_p | |
38498 | as_test_x='test -x' | |
38499 | as_executable_p=as_fn_executable_p | |
38500 | ||
38501 | # Sed expression to map a string onto a valid CPP name. | |
38502 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
38503 | ||
38504 | # Sed expression to map a string onto a valid variable name. | |
38505 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
38506 | ||
38507 | ||
38508 | exec 6>&1 | |
38509 | ## ----------------------------------- ## | |
38510 | ## Main body of $CONFIG_STATUS script. ## | |
38511 | ## ----------------------------------- ## | |
38512 | _ASEOF | |
38513 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
38514 | ||
38515 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
38516 | # Save the log message, to keep $0 and so on meaningful, and to | |
38517 | # report actual input values of CONFIG_FILES etc. instead of their | |
38518 | # values after options handling. | |
38519 | ac_log=" | |
1ec59ff7 | 38520 | This file was extended by zfs $as_me 0.6.5.11, which was |
87d546d8 TG |
38521 | generated by GNU Autoconf 2.69. Invocation command line was |
38522 | ||
38523 | CONFIG_FILES = $CONFIG_FILES | |
38524 | CONFIG_HEADERS = $CONFIG_HEADERS | |
38525 | CONFIG_LINKS = $CONFIG_LINKS | |
38526 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
38527 | $ $0 $@ | |
38528 | ||
38529 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
38530 | " | |
38531 | ||
38532 | _ACEOF | |
38533 | ||
38534 | case $ac_config_files in *" | |
38535 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
38536 | esac | |
38537 | ||
38538 | case $ac_config_headers in *" | |
38539 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
38540 | esac | |
38541 | ||
38542 | ||
38543 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
38544 | # Files that config.status was made for. | |
38545 | config_files="$ac_config_files" | |
38546 | config_headers="$ac_config_headers" | |
38547 | config_commands="$ac_config_commands" | |
38548 | ||
38549 | _ACEOF | |
38550 | ||
38551 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
38552 | ac_cs_usage="\ | |
38553 | \`$as_me' instantiates files and other configuration actions | |
38554 | from templates according to the current configuration. Unless the files | |
38555 | and actions are specified as TAGs, all are instantiated by default. | |
38556 | ||
38557 | Usage: $0 [OPTION]... [TAG]... | |
38558 | ||
38559 | -h, --help print this help, then exit | |
38560 | -V, --version print version number and configuration settings, then exit | |
38561 | --config print configuration, then exit | |
38562 | -q, --quiet, --silent | |
38563 | do not print progress messages | |
38564 | -d, --debug don't remove temporary files | |
38565 | --recheck update $as_me by reconfiguring in the same conditions | |
38566 | --file=FILE[:TEMPLATE] | |
38567 | instantiate the configuration file FILE | |
38568 | --header=FILE[:TEMPLATE] | |
38569 | instantiate the configuration header FILE | |
38570 | ||
38571 | Configuration files: | |
38572 | $config_files | |
38573 | ||
38574 | Configuration headers: | |
38575 | $config_headers | |
38576 | ||
38577 | Configuration commands: | |
38578 | $config_commands | |
38579 | ||
38580 | Report bugs to the package provider." | |
38581 | ||
38582 | _ACEOF | |
38583 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
38584 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
38585 | ac_cs_version="\\ | |
1ec59ff7 | 38586 | zfs config.status 0.6.5.11 |
87d546d8 TG |
38587 | configured by $0, generated by GNU Autoconf 2.69, |
38588 | with options \\"\$ac_cs_config\\" | |
38589 | ||
38590 | Copyright (C) 2012 Free Software Foundation, Inc. | |
38591 | This config.status script is free software; the Free Software Foundation | |
38592 | gives unlimited permission to copy, distribute and modify it." | |
38593 | ||
38594 | ac_pwd='$ac_pwd' | |
38595 | srcdir='$srcdir' | |
38596 | INSTALL='$INSTALL' | |
38597 | MKDIR_P='$MKDIR_P' | |
38598 | AWK='$AWK' | |
38599 | test -n "\$AWK" || AWK=awk | |
38600 | _ACEOF | |
38601 | ||
38602 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
38603 | # The default lists apply if the user does not specify any file. | |
38604 | ac_need_defaults=: | |
38605 | while test $# != 0 | |
38606 | do | |
38607 | case $1 in | |
38608 | --*=?*) | |
38609 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
38610 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
38611 | ac_shift=: | |
38612 | ;; | |
38613 | --*=) | |
38614 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
38615 | ac_optarg= | |
38616 | ac_shift=: | |
38617 | ;; | |
38618 | *) | |
38619 | ac_option=$1 | |
38620 | ac_optarg=$2 | |
38621 | ac_shift=shift | |
38622 | ;; | |
38623 | esac | |
38624 | ||
38625 | case $ac_option in | |
38626 | # Handling of the options. | |
38627 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
38628 | ac_cs_recheck=: ;; | |
38629 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
38630 | $as_echo "$ac_cs_version"; exit ;; | |
38631 | --config | --confi | --conf | --con | --co | --c ) | |
38632 | $as_echo "$ac_cs_config"; exit ;; | |
38633 | --debug | --debu | --deb | --de | --d | -d ) | |
38634 | debug=: ;; | |
38635 | --file | --fil | --fi | --f ) | |
38636 | $ac_shift | |
38637 | case $ac_optarg in | |
38638 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
38639 | '') as_fn_error $? "missing file argument" ;; | |
38640 | esac | |
38641 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
38642 | ac_need_defaults=false;; | |
38643 | --header | --heade | --head | --hea ) | |
38644 | $ac_shift | |
38645 | case $ac_optarg in | |
38646 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
38647 | esac | |
38648 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
38649 | ac_need_defaults=false;; | |
38650 | --he | --h) | |
38651 | # Conflict between --help and --header | |
38652 | as_fn_error $? "ambiguous option: \`$1' | |
38653 | Try \`$0 --help' for more information.";; | |
38654 | --help | --hel | -h ) | |
38655 | $as_echo "$ac_cs_usage"; exit ;; | |
38656 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
38657 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
38658 | ac_cs_silent=: ;; | |
38659 | ||
38660 | # This is an error. | |
38661 | -*) as_fn_error $? "unrecognized option: \`$1' | |
38662 | Try \`$0 --help' for more information." ;; | |
38663 | ||
38664 | *) as_fn_append ac_config_targets " $1" | |
38665 | ac_need_defaults=false ;; | |
38666 | ||
38667 | esac | |
38668 | shift | |
38669 | done | |
38670 | ||
38671 | ac_configure_extra_args= | |
38672 | ||
38673 | if $ac_cs_silent; then | |
38674 | exec 6>/dev/null | |
38675 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
38676 | fi | |
38677 | ||
38678 | _ACEOF | |
38679 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
38680 | if \$ac_cs_recheck; then | |
38681 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
38682 | shift | |
38683 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
38684 | CONFIG_SHELL='$SHELL' | |
38685 | export CONFIG_SHELL | |
38686 | exec "\$@" | |
38687 | fi | |
38688 | ||
38689 | _ACEOF | |
38690 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
38691 | exec 5>>config.log | |
38692 | { | |
38693 | echo | |
38694 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
38695 | ## Running $as_me. ## | |
38696 | _ASBOX | |
38697 | $as_echo "$ac_log" | |
38698 | } >&5 | |
38699 | ||
38700 | _ACEOF | |
38701 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
38702 | # | |
38703 | # INIT-COMMANDS | |
38704 | # | |
38705 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
38706 | ||
38707 | ||
38708 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
38709 | # if CDPATH is set. | |
38710 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
38711 | ||
38712 | sed_quote_subst='$sed_quote_subst' | |
38713 | double_quote_subst='$double_quote_subst' | |
38714 | delay_variable_subst='$delay_variable_subst' | |
38715 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
38716 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
38717 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
38718 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
38719 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
38720 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
38721 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' | |
38722 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
38723 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
38724 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
38725 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
38726 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
38727 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
38728 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
38729 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
38730 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
38731 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
38732 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
38733 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
38734 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
38735 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
38736 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
38737 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
38738 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
38739 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
38740 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
38741 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
38742 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
38743 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
38744 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
38745 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
38746 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
38747 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
38748 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
38749 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
38750 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
38751 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
38752 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
38753 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
38754 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
38755 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
38756 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
38757 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
38758 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
38759 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
38760 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
38761 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
38762 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
38763 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
38764 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
38765 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
38766 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
38767 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
38768 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
38769 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
38770 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
38771 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' | |
38772 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
38773 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
38774 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' | |
38775 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
38776 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
38777 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' | |
38778 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
38779 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
38780 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
38781 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
38782 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
38783 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
38784 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
38785 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
38786 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
38787 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
38788 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
38789 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
38790 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
38791 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
38792 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
38793 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
38794 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
38795 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
38796 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
38797 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
38798 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
38799 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
38800 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
38801 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
38802 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
38803 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
38804 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
38805 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
38806 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
38807 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
38808 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
38809 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
38810 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
38811 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
38812 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
38813 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
38814 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
38815 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
38816 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
38817 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
38818 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
38819 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
38820 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
38821 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
38822 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
38823 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
38824 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
38825 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
38826 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
38827 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
38828 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
38829 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
38830 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
38831 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
38832 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
38833 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
38834 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
38835 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
38836 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
38837 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
38838 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
38839 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
38840 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
38841 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
38842 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' | |
38843 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
38844 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
38845 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
38846 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
38847 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
38848 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
38849 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
38850 | ||
38851 | LTCC='$LTCC' | |
38852 | LTCFLAGS='$LTCFLAGS' | |
38853 | compiler='$compiler_DEFAULT' | |
38854 | ||
38855 | # A function that is used when there is no print builtin or printf. | |
38856 | func_fallback_echo () | |
38857 | { | |
38858 | eval 'cat <<_LTECHO_EOF | |
38859 | \$1 | |
38860 | _LTECHO_EOF' | |
38861 | } | |
38862 | ||
38863 | # Quote evaled strings. | |
38864 | for var in SHELL \ | |
38865 | ECHO \ | |
38866 | PATH_SEPARATOR \ | |
38867 | SED \ | |
38868 | GREP \ | |
38869 | EGREP \ | |
38870 | FGREP \ | |
38871 | LD \ | |
38872 | NM \ | |
38873 | LN_S \ | |
38874 | lt_SP2NL \ | |
38875 | lt_NL2SP \ | |
38876 | reload_flag \ | |
38877 | OBJDUMP \ | |
38878 | deplibs_check_method \ | |
38879 | file_magic_cmd \ | |
38880 | file_magic_glob \ | |
38881 | want_nocaseglob \ | |
38882 | DLLTOOL \ | |
38883 | sharedlib_from_linklib_cmd \ | |
38884 | AR \ | |
38885 | AR_FLAGS \ | |
38886 | archiver_list_spec \ | |
38887 | STRIP \ | |
38888 | RANLIB \ | |
38889 | CC \ | |
38890 | CFLAGS \ | |
38891 | compiler \ | |
38892 | lt_cv_sys_global_symbol_pipe \ | |
38893 | lt_cv_sys_global_symbol_to_cdecl \ | |
38894 | lt_cv_sys_global_symbol_to_import \ | |
38895 | lt_cv_sys_global_symbol_to_c_name_address \ | |
38896 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
38897 | lt_cv_nm_interface \ | |
38898 | nm_file_list_spec \ | |
38899 | lt_cv_truncate_bin \ | |
38900 | lt_prog_compiler_no_builtin_flag \ | |
38901 | lt_prog_compiler_pic \ | |
38902 | lt_prog_compiler_wl \ | |
38903 | lt_prog_compiler_static \ | |
38904 | lt_cv_prog_compiler_c_o \ | |
38905 | need_locks \ | |
38906 | MANIFEST_TOOL \ | |
38907 | DSYMUTIL \ | |
38908 | NMEDIT \ | |
38909 | LIPO \ | |
38910 | OTOOL \ | |
38911 | OTOOL64 \ | |
38912 | shrext_cmds \ | |
38913 | export_dynamic_flag_spec \ | |
38914 | whole_archive_flag_spec \ | |
38915 | compiler_needs_object \ | |
38916 | with_gnu_ld \ | |
38917 | allow_undefined_flag \ | |
38918 | no_undefined_flag \ | |
38919 | hardcode_libdir_flag_spec \ | |
38920 | hardcode_libdir_separator \ | |
38921 | exclude_expsyms \ | |
38922 | include_expsyms \ | |
38923 | file_list_spec \ | |
38924 | variables_saved_for_relink \ | |
38925 | libname_spec \ | |
38926 | library_names_spec \ | |
38927 | soname_spec \ | |
38928 | install_override_mode \ | |
38929 | finish_eval \ | |
38930 | old_striplib \ | |
38931 | striplib; do | |
38932 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
38933 | *[\\\\\\\`\\"\\\$]*) | |
38934 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes | |
38935 | ;; | |
38936 | *) | |
38937 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
38938 | ;; | |
38939 | esac | |
38940 | done | |
38941 | ||
38942 | # Double-quote double-evaled strings. | |
38943 | for var in reload_cmds \ | |
38944 | old_postinstall_cmds \ | |
38945 | old_postuninstall_cmds \ | |
38946 | old_archive_cmds \ | |
38947 | extract_expsyms_cmds \ | |
38948 | old_archive_from_new_cmds \ | |
38949 | old_archive_from_expsyms_cmds \ | |
38950 | archive_cmds \ | |
38951 | archive_expsym_cmds \ | |
38952 | module_cmds \ | |
38953 | module_expsym_cmds \ | |
38954 | export_symbols_cmds \ | |
38955 | prelink_cmds \ | |
38956 | postlink_cmds \ | |
38957 | postinstall_cmds \ | |
38958 | postuninstall_cmds \ | |
38959 | finish_cmds \ | |
38960 | sys_lib_search_path_spec \ | |
38961 | configure_time_dlsearch_path \ | |
38962 | configure_time_lt_sys_library_path; do | |
38963 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
38964 | *[\\\\\\\`\\"\\\$]*) | |
38965 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes | |
38966 | ;; | |
38967 | *) | |
38968 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
38969 | ;; | |
38970 | esac | |
38971 | done | |
38972 | ||
38973 | ac_aux_dir='$ac_aux_dir' | |
38974 | ||
38975 | # See if we are running on zsh, and set the options that allow our | |
38976 | # commands through without removal of \ escapes INIT. | |
38977 | if test -n "\${ZSH_VERSION+set}"; then | |
38978 | setopt NO_GLOB_SUBST | |
38979 | fi | |
38980 | ||
38981 | ||
38982 | PACKAGE='$PACKAGE' | |
38983 | VERSION='$VERSION' | |
38984 | RM='$RM' | |
38985 | ofile='$ofile' | |
38986 | ||
38987 | ||
38988 | ||
38989 | ||
38990 | _ACEOF | |
38991 | ||
38992 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
38993 | ||
38994 | # Handling of arguments. | |
38995 | for ac_config_target in $ac_config_targets | |
38996 | do | |
38997 | case $ac_config_target in | |
38998 | "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;; | |
38999 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
39000 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
39001 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
39002 | "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;; | |
39003 | "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;; | |
39004 | "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;; | |
39005 | "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;; | |
39006 | "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;; | |
39007 | "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;; | |
39008 | "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;; | |
39009 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
39010 | "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;; | |
39011 | "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;; | |
39012 | "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;; | |
39013 | "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;; | |
39014 | "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;; | |
39015 | "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;; | |
39016 | ||
39017 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
39018 | esac | |
39019 | done | |
39020 | ||
39021 | ||
39022 | # If the user did not use the arguments to specify the items to instantiate, | |
39023 | # then the envvar interface is used. Set only those that are not. | |
39024 | # We use the long form for the default assignment because of an extremely | |
39025 | # bizarre bug on SunOS 4.1.3. | |
39026 | if $ac_need_defaults; then | |
39027 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
39028 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
39029 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
39030 | fi | |
39031 | ||
39032 | # Have a temporary directory for convenience. Make it in the build tree | |
39033 | # simply because there is no reason against having it here, and in addition, | |
39034 | # creating and moving files from /tmp can sometimes cause problems. | |
39035 | # Hook for its removal unless debugging. | |
39036 | # Note that there is a small window in which the directory will not be cleaned: | |
39037 | # after its creation but before its name has been assigned to `$tmp'. | |
39038 | $debug || | |
39039 | { | |
39040 | tmp= ac_tmp= | |
39041 | trap 'exit_status=$? | |
39042 | : "${ac_tmp:=$tmp}" | |
39043 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
39044 | ' 0 | |
39045 | trap 'as_fn_exit 1' 1 2 13 15 | |
39046 | } | |
39047 | # Create a (secure) tmp directory for tmp files. | |
39048 | ||
39049 | { | |
39050 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
39051 | test -d "$tmp" | |
39052 | } || | |
39053 | { | |
39054 | tmp=./conf$$-$RANDOM | |
39055 | (umask 077 && mkdir "$tmp") | |
39056 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
39057 | ac_tmp=$tmp | |
39058 | ||
39059 | # Set up the scripts for CONFIG_FILES section. | |
39060 | # No need to generate them if there are no CONFIG_FILES. | |
39061 | # This happens for instance with `./config.status config.h'. | |
39062 | if test -n "$CONFIG_FILES"; then | |
39063 | ||
39064 | ||
39065 | ac_cr=`echo X | tr X '\015'` | |
39066 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
39067 | # But we know of no other shell where ac_cr would be empty at this | |
39068 | # point, so we can use a bashism as a fallback. | |
39069 | if test "x$ac_cr" = x; then | |
39070 | eval ac_cr=\$\'\\r\' | |
39071 | fi | |
39072 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
39073 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
39074 | ac_cs_awk_cr='\\r' | |
39075 | else | |
39076 | ac_cs_awk_cr=$ac_cr | |
39077 | fi | |
39078 | ||
39079 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
39080 | _ACEOF | |
39081 | ||
39082 | ||
39083 | { | |
39084 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
39085 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
39086 | echo "_ACEOF" | |
39087 | } >conf$$subs.sh || | |
39088 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
39089 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
39090 | ac_delim='%!_!# ' | |
39091 | for ac_last_try in false false false false false :; do | |
39092 | . ./conf$$subs.sh || | |
39093 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
39094 | ||
39095 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
39096 | if test $ac_delim_n = $ac_delim_num; then | |
39097 | break | |
39098 | elif $ac_last_try; then | |
39099 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
39100 | else | |
39101 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
39102 | fi | |
39103 | done | |
39104 | rm -f conf$$subs.sh | |
39105 | ||
39106 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
39107 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
39108 | _ACEOF | |
39109 | sed -n ' | |
39110 | h | |
39111 | s/^/S["/; s/!.*/"]=/ | |
39112 | p | |
39113 | g | |
39114 | s/^[^!]*!// | |
39115 | :repl | |
39116 | t repl | |
39117 | s/'"$ac_delim"'$// | |
39118 | t delim | |
39119 | :nl | |
39120 | h | |
39121 | s/\(.\{148\}\)..*/\1/ | |
39122 | t more1 | |
39123 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
39124 | p | |
39125 | n | |
39126 | b repl | |
39127 | :more1 | |
39128 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
39129 | p | |
39130 | g | |
39131 | s/.\{148\}// | |
39132 | t nl | |
39133 | :delim | |
39134 | h | |
39135 | s/\(.\{148\}\)..*/\1/ | |
39136 | t more2 | |
39137 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
39138 | p | |
39139 | b | |
39140 | :more2 | |
39141 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
39142 | p | |
39143 | g | |
39144 | s/.\{148\}// | |
39145 | t delim | |
39146 | ' <conf$$subs.awk | sed ' | |
39147 | /^[^""]/{ | |
39148 | N | |
39149 | s/\n// | |
39150 | } | |
39151 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
39152 | rm -f conf$$subs.awk | |
39153 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
39154 | _ACAWK | |
39155 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
39156 | for (key in S) S_is_set[key] = 1 | |
39157 | FS = "\a" | |
39158 | ||
39159 | } | |
39160 | { | |
39161 | line = $ 0 | |
39162 | nfields = split(line, field, "@") | |
39163 | substed = 0 | |
39164 | len = length(field[1]) | |
39165 | for (i = 2; i < nfields; i++) { | |
39166 | key = field[i] | |
39167 | keylen = length(key) | |
39168 | if (S_is_set[key]) { | |
39169 | value = S[key] | |
39170 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
39171 | len += length(value) + length(field[++i]) | |
39172 | substed = 1 | |
39173 | } else | |
39174 | len += 1 + keylen | |
39175 | } | |
39176 | ||
39177 | print line | |
39178 | } | |
39179 | ||
39180 | _ACAWK | |
39181 | _ACEOF | |
39182 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
39183 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
39184 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
39185 | else | |
39186 | cat | |
39187 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
39188 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
39189 | _ACEOF | |
39190 | ||
39191 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
39192 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
39193 | # trailing colons and then remove the whole line if VPATH becomes empty | |
39194 | # (actually we leave an empty line to preserve line numbers). | |
39195 | if test "x$srcdir" = x.; then | |
39196 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
39197 | h | |
39198 | s/// | |
39199 | s/^/:/ | |
39200 | s/[ ]*$/:/ | |
39201 | s/:\$(srcdir):/:/g | |
39202 | s/:\${srcdir}:/:/g | |
39203 | s/:@srcdir@:/:/g | |
39204 | s/^:*// | |
39205 | s/:*$// | |
39206 | x | |
39207 | s/\(=[ ]*\).*/\1/ | |
39208 | G | |
39209 | s/\n// | |
39210 | s/^[^=]*=[ ]*$// | |
39211 | }' | |
39212 | fi | |
39213 | ||
39214 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
39215 | fi # test -n "$CONFIG_FILES" | |
39216 | ||
39217 | # Set up the scripts for CONFIG_HEADERS section. | |
39218 | # No need to generate them if there are no CONFIG_HEADERS. | |
39219 | # This happens for instance with `./config.status Makefile'. | |
39220 | if test -n "$CONFIG_HEADERS"; then | |
39221 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
39222 | BEGIN { | |
39223 | _ACEOF | |
39224 | ||
39225 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
39226 | # here-document in config.status, that substitutes the proper values into | |
39227 | # config.h.in to produce config.h. | |
39228 | ||
39229 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
39230 | # handling of long lines. | |
39231 | ac_delim='%!_!# ' | |
39232 | for ac_last_try in false false :; do | |
39233 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
39234 | if test -z "$ac_tt"; then | |
39235 | break | |
39236 | elif $ac_last_try; then | |
39237 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
39238 | else | |
39239 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
39240 | fi | |
39241 | done | |
39242 | ||
39243 | # For the awk script, D is an array of macro values keyed by name, | |
39244 | # likewise P contains macro parameters if any. Preserve backslash | |
39245 | # newline sequences. | |
39246 | ||
39247 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
39248 | sed -n ' | |
39249 | s/.\{148\}/&'"$ac_delim"'/g | |
39250 | t rset | |
39251 | :rset | |
39252 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
39253 | t def | |
39254 | d | |
39255 | :def | |
39256 | s/\\$// | |
39257 | t bsnl | |
39258 | s/["\\]/\\&/g | |
39259 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
39260 | D["\1"]=" \3"/p | |
39261 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
39262 | d | |
39263 | :bsnl | |
39264 | s/["\\]/\\&/g | |
39265 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
39266 | D["\1"]=" \3\\\\\\n"\\/p | |
39267 | t cont | |
39268 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
39269 | t cont | |
39270 | d | |
39271 | :cont | |
39272 | n | |
39273 | s/.\{148\}/&'"$ac_delim"'/g | |
39274 | t clear | |
39275 | :clear | |
39276 | s/\\$// | |
39277 | t bsnlc | |
39278 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
39279 | d | |
39280 | :bsnlc | |
39281 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
39282 | b cont | |
39283 | ' <confdefs.h | sed ' | |
39284 | s/'"$ac_delim"'/"\\\ | |
39285 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
39286 | ||
39287 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
39288 | for (key in D) D_is_set[key] = 1 | |
39289 | FS = "\a" | |
39290 | } | |
39291 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
39292 | line = \$ 0 | |
39293 | split(line, arg, " ") | |
39294 | if (arg[1] == "#") { | |
39295 | defundef = arg[2] | |
39296 | mac1 = arg[3] | |
39297 | } else { | |
39298 | defundef = substr(arg[1], 2) | |
39299 | mac1 = arg[2] | |
39300 | } | |
39301 | split(mac1, mac2, "(") #) | |
39302 | macro = mac2[1] | |
39303 | prefix = substr(line, 1, index(line, defundef) - 1) | |
39304 | if (D_is_set[macro]) { | |
39305 | # Preserve the white space surrounding the "#". | |
39306 | print prefix "define", macro P[macro] D[macro] | |
39307 | next | |
39308 | } else { | |
39309 | # Replace #undef with comments. This is necessary, for example, | |
39310 | # in the case of _POSIX_SOURCE, which is predefined and required | |
39311 | # on some systems where configure will not decide to define it. | |
39312 | if (defundef == "undef") { | |
39313 | print "/*", prefix defundef, macro, "*/" | |
39314 | next | |
39315 | } | |
39316 | } | |
39317 | } | |
39318 | { print } | |
39319 | _ACAWK | |
39320 | _ACEOF | |
39321 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
39322 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
39323 | fi # test -n "$CONFIG_HEADERS" | |
39324 | ||
39325 | ||
39326 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
39327 | shift | |
39328 | for ac_tag | |
39329 | do | |
39330 | case $ac_tag in | |
39331 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
39332 | esac | |
39333 | case $ac_mode$ac_tag in | |
39334 | :[FHL]*:*);; | |
39335 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
39336 | :[FH]-) ac_tag=-:-;; | |
39337 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
39338 | esac | |
39339 | ac_save_IFS=$IFS | |
39340 | IFS=: | |
39341 | set x $ac_tag | |
39342 | IFS=$ac_save_IFS | |
39343 | shift | |
39344 | ac_file=$1 | |
39345 | shift | |
39346 | ||
39347 | case $ac_mode in | |
39348 | :L) ac_source=$1;; | |
39349 | :[FH]) | |
39350 | ac_file_inputs= | |
39351 | for ac_f | |
39352 | do | |
39353 | case $ac_f in | |
39354 | -) ac_f="$ac_tmp/stdin";; | |
39355 | *) # Look for the file first in the build tree, then in the source tree | |
39356 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
39357 | # because $ac_f cannot contain `:'. | |
39358 | test -f "$ac_f" || | |
39359 | case $ac_f in | |
39360 | [\\/$]*) false;; | |
39361 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
39362 | esac || | |
39363 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
39364 | esac | |
39365 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
39366 | as_fn_append ac_file_inputs " '$ac_f'" | |
39367 | done | |
39368 | ||
39369 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
39370 | # use $as_me), people would be surprised to read: | |
39371 | # /* config.h. Generated by config.status. */ | |
39372 | configure_input='Generated from '` | |
39373 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
39374 | `' by configure.' | |
39375 | if test x"$ac_file" != x-; then | |
39376 | configure_input="$ac_file. $configure_input" | |
39377 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
39378 | $as_echo "$as_me: creating $ac_file" >&6;} | |
39379 | fi | |
39380 | # Neutralize special characters interpreted by sed in replacement strings. | |
39381 | case $configure_input in #( | |
39382 | *\&* | *\|* | *\\* ) | |
39383 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
39384 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
39385 | *) ac_sed_conf_input=$configure_input;; | |
39386 | esac | |
39387 | ||
39388 | case $ac_tag in | |
39389 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
39390 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
39391 | esac | |
39392 | ;; | |
39393 | esac | |
39394 | ||
39395 | ac_dir=`$as_dirname -- "$ac_file" || | |
39396 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
39397 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
39398 | X"$ac_file" : 'X\(//\)$' \| \ | |
39399 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
39400 | $as_echo X"$ac_file" | | |
39401 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
39402 | s//\1/ | |
39403 | q | |
39404 | } | |
39405 | /^X\(\/\/\)[^/].*/{ | |
39406 | s//\1/ | |
39407 | q | |
39408 | } | |
39409 | /^X\(\/\/\)$/{ | |
39410 | s//\1/ | |
39411 | q | |
39412 | } | |
39413 | /^X\(\/\).*/{ | |
39414 | s//\1/ | |
39415 | q | |
39416 | } | |
39417 | s/.*/./; q'` | |
39418 | as_dir="$ac_dir"; as_fn_mkdir_p | |
39419 | ac_builddir=. | |
39420 | ||
39421 | case "$ac_dir" in | |
39422 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
39423 | *) | |
39424 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
39425 | # A ".." for each directory in $ac_dir_suffix. | |
39426 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
39427 | case $ac_top_builddir_sub in | |
39428 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
39429 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
39430 | esac ;; | |
39431 | esac | |
39432 | ac_abs_top_builddir=$ac_pwd | |
39433 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
39434 | # for backward compatibility: | |
39435 | ac_top_builddir=$ac_top_build_prefix | |
39436 | ||
39437 | case $srcdir in | |
39438 | .) # We are building in place. | |
39439 | ac_srcdir=. | |
39440 | ac_top_srcdir=$ac_top_builddir_sub | |
39441 | ac_abs_top_srcdir=$ac_pwd ;; | |
39442 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
39443 | ac_srcdir=$srcdir$ac_dir_suffix; | |
39444 | ac_top_srcdir=$srcdir | |
39445 | ac_abs_top_srcdir=$srcdir ;; | |
39446 | *) # Relative name. | |
39447 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
39448 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
39449 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
39450 | esac | |
39451 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
39452 | ||
39453 | ||
39454 | case $ac_mode in | |
39455 | :F) | |
39456 | # | |
39457 | # CONFIG_FILE | |
39458 | # | |
39459 | ||
39460 | case $INSTALL in | |
39461 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
39462 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
39463 | esac | |
39464 | ac_MKDIR_P=$MKDIR_P | |
39465 | case $MKDIR_P in | |
39466 | [\\/$]* | ?:[\\/]* ) ;; | |
39467 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
39468 | esac | |
39469 | _ACEOF | |
39470 | ||
39471 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
39472 | # If the template does not know about datarootdir, expand it. | |
39473 | # FIXME: This hack should be removed a few years after 2.60. | |
39474 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
39475 | ac_sed_dataroot=' | |
39476 | /datarootdir/ { | |
39477 | p | |
39478 | q | |
39479 | } | |
39480 | /@datadir@/p | |
39481 | /@docdir@/p | |
39482 | /@infodir@/p | |
39483 | /@localedir@/p | |
39484 | /@mandir@/p' | |
39485 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
39486 | *datarootdir*) ac_datarootdir_seen=yes;; | |
39487 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
39488 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
39489 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
39490 | _ACEOF | |
39491 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
39492 | ac_datarootdir_hack=' | |
39493 | s&@datadir@&$datadir&g | |
39494 | s&@docdir@&$docdir&g | |
39495 | s&@infodir@&$infodir&g | |
39496 | s&@localedir@&$localedir&g | |
39497 | s&@mandir@&$mandir&g | |
39498 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
39499 | esac | |
39500 | _ACEOF | |
39501 | ||
39502 | # Neutralize VPATH when `$srcdir' = `.'. | |
39503 | # Shell code in configure.ac might set extrasub. | |
39504 | # FIXME: do we really want to maintain this feature? | |
39505 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
39506 | ac_sed_extra="$ac_vpsub | |
39507 | $extrasub | |
39508 | _ACEOF | |
39509 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
39510 | :t | |
39511 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
39512 | s|@configure_input@|$ac_sed_conf_input|;t t | |
39513 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
39514 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
39515 | s&@srcdir@&$ac_srcdir&;t t | |
39516 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
39517 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
39518 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
39519 | s&@builddir@&$ac_builddir&;t t | |
39520 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
39521 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
39522 | s&@INSTALL@&$ac_INSTALL&;t t | |
39523 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
39524 | $ac_datarootdir_hack | |
39525 | " | |
39526 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
39527 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
39528 | ||
39529 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
39530 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
39531 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
39532 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
39533 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
39534 | which seems to be undefined. Please make sure it is defined" >&5 | |
39535 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
39536 | which seems to be undefined. Please make sure it is defined" >&2;} | |
39537 | ||
39538 | rm -f "$ac_tmp/stdin" | |
39539 | case $ac_file in | |
39540 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
39541 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
39542 | esac \ | |
39543 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
39544 | ;; | |
39545 | :H) | |
39546 | # | |
39547 | # CONFIG_HEADER | |
39548 | # | |
39549 | if test x"$ac_file" != x-; then | |
39550 | { | |
39551 | $as_echo "/* $configure_input */" \ | |
39552 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
39553 | } >"$ac_tmp/config.h" \ | |
39554 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
39555 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
39556 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
39557 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
39558 | else | |
39559 | rm -f "$ac_file" | |
39560 | mv "$ac_tmp/config.h" "$ac_file" \ | |
39561 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
39562 | fi | |
39563 | else | |
39564 | $as_echo "/* $configure_input */" \ | |
39565 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
39566 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
39567 | fi | |
39568 | # Compute "$ac_file"'s index in $config_headers. | |
39569 | _am_arg="$ac_file" | |
39570 | _am_stamp_count=1 | |
39571 | for _am_header in $config_headers :; do | |
39572 | case $_am_header in | |
39573 | $_am_arg | $_am_arg:* ) | |
39574 | break ;; | |
39575 | * ) | |
39576 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
39577 | esac | |
39578 | done | |
39579 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
39580 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
39581 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
39582 | X"$_am_arg" : 'X\(//\)$' \| \ | |
39583 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
39584 | $as_echo X"$_am_arg" | | |
39585 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
39586 | s//\1/ | |
39587 | q | |
39588 | } | |
39589 | /^X\(\/\/\)[^/].*/{ | |
39590 | s//\1/ | |
39591 | q | |
39592 | } | |
39593 | /^X\(\/\/\)$/{ | |
39594 | s//\1/ | |
39595 | q | |
39596 | } | |
39597 | /^X\(\/\).*/{ | |
39598 | s//\1/ | |
39599 | q | |
39600 | } | |
39601 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
39602 | ;; | |
39603 | ||
39604 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
39605 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
39606 | ;; | |
39607 | esac | |
39608 | ||
39609 | ||
39610 | case $ac_file$ac_mode in | |
39611 | "zfs_config.h":H) | |
39612 | (mv zfs_config.h zfs_config.h.tmp && | |
39613 | awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h && | |
39614 | rm zfs_config.h.tmp) || exit 1 ;; | |
39615 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
39616 | # Older Autoconf quotes --file arguments for eval, but not when files | |
39617 | # are listed without --file. Let's play safe and only enable the eval | |
39618 | # if we detect the quoting. | |
39619 | case $CONFIG_FILES in | |
39620 | *\'*) eval set x "$CONFIG_FILES" ;; | |
39621 | *) set x $CONFIG_FILES ;; | |
39622 | esac | |
39623 | shift | |
39624 | for mf | |
39625 | do | |
39626 | # Strip MF so we end up with the name of the file. | |
39627 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
39628 | # Check whether this is an Automake generated Makefile or not. | |
39629 | # We used to match only the files named 'Makefile.in', but | |
39630 | # some people rename them; so instead we look at the file content. | |
39631 | # Grep'ing the first line is not enough: some people post-process | |
39632 | # each Makefile.in and add a new line on top of each file to say so. | |
39633 | # Grep'ing the whole file is not good either: AIX grep has a line | |
39634 | # limit of 2048, but all sed's we know have understand at least 4000. | |
39635 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
39636 | dirpart=`$as_dirname -- "$mf" || | |
39637 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
39638 | X"$mf" : 'X\(//\)[^/]' \| \ | |
39639 | X"$mf" : 'X\(//\)$' \| \ | |
39640 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
39641 | $as_echo X"$mf" | | |
39642 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
39643 | s//\1/ | |
39644 | q | |
39645 | } | |
39646 | /^X\(\/\/\)[^/].*/{ | |
39647 | s//\1/ | |
39648 | q | |
39649 | } | |
39650 | /^X\(\/\/\)$/{ | |
39651 | s//\1/ | |
39652 | q | |
39653 | } | |
39654 | /^X\(\/\).*/{ | |
39655 | s//\1/ | |
39656 | q | |
39657 | } | |
39658 | s/.*/./; q'` | |
39659 | else | |
39660 | continue | |
39661 | fi | |
39662 | # Extract the definition of DEPDIR, am__include, and am__quote | |
39663 | # from the Makefile without running 'make'. | |
39664 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
39665 | test -z "$DEPDIR" && continue | |
39666 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
39667 | test -z "$am__include" && continue | |
39668 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
39669 | # Find all dependency output files, they are included files with | |
39670 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
39671 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
39672 | # expansion. | |
39673 | for file in `sed -n " | |
39674 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
39675 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
39676 | # Make sure the directory exists. | |
39677 | test -f "$dirpart/$file" && continue | |
39678 | fdir=`$as_dirname -- "$file" || | |
39679 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
39680 | X"$file" : 'X\(//\)[^/]' \| \ | |
39681 | X"$file" : 'X\(//\)$' \| \ | |
39682 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
39683 | $as_echo X"$file" | | |
39684 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
39685 | s//\1/ | |
39686 | q | |
39687 | } | |
39688 | /^X\(\/\/\)[^/].*/{ | |
39689 | s//\1/ | |
39690 | q | |
39691 | } | |
39692 | /^X\(\/\/\)$/{ | |
39693 | s//\1/ | |
39694 | q | |
39695 | } | |
39696 | /^X\(\/\).*/{ | |
39697 | s//\1/ | |
39698 | q | |
39699 | } | |
39700 | s/.*/./; q'` | |
39701 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
39702 | # echo "creating $dirpart/$file" | |
39703 | echo '# dummy' > "$dirpart/$file" | |
39704 | done | |
39705 | done | |
39706 | } | |
39707 | ;; | |
39708 | "libtool":C) | |
39709 | ||
39710 | # See if we are running on zsh, and set the options that allow our | |
39711 | # commands through without removal of \ escapes. | |
39712 | if test -n "${ZSH_VERSION+set}"; then | |
39713 | setopt NO_GLOB_SUBST | |
39714 | fi | |
39715 | ||
39716 | cfgfile=${ofile}T | |
39717 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
39718 | $RM "$cfgfile" | |
39719 | ||
39720 | cat <<_LT_EOF >> "$cfgfile" | |
39721 | #! $SHELL | |
39722 | # Generated automatically by $as_me ($PACKAGE) $VERSION | |
39723 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
39724 | ||
39725 | # Provide generalized library-building support services. | |
39726 | # Written by Gordon Matzigkeit, 1996 | |
39727 | ||
39728 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
39729 | # This is free software; see the source for copying conditions. There is NO | |
39730 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
39731 | ||
39732 | # GNU Libtool is free software; you can redistribute it and/or modify | |
39733 | # it under the terms of the GNU General Public License as published by | |
39734 | # the Free Software Foundation; either version 2 of of the License, or | |
39735 | # (at your option) any later version. | |
39736 | # | |
39737 | # As a special exception to the GNU General Public License, if you | |
39738 | # distribute this file as part of a program or library that is built | |
39739 | # using GNU Libtool, you may include this file under the same | |
39740 | # distribution terms that you use for the rest of that program. | |
39741 | # | |
39742 | # GNU Libtool is distributed in the hope that it will be useful, but | |
39743 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
39744 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
39745 | # GNU General Public License for more details. | |
39746 | # | |
39747 | # You should have received a copy of the GNU General Public License | |
39748 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
39749 | ||
39750 | ||
39751 | # The names of the tagged configurations supported by this script. | |
39752 | available_tags='' | |
39753 | ||
39754 | # Configured defaults for sys_lib_dlsearch_path munging. | |
39755 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
39756 | ||
39757 | # ### BEGIN LIBTOOL CONFIG | |
39758 | ||
39759 | # Which release of libtool.m4 was used? | |
39760 | macro_version=$macro_version | |
39761 | macro_revision=$macro_revision | |
39762 | ||
39763 | # Whether or not to build shared libraries. | |
39764 | build_libtool_libs=$enable_shared | |
39765 | ||
39766 | # Whether or not to build static libraries. | |
39767 | build_old_libs=$enable_static | |
39768 | ||
39769 | # What type of objects to build. | |
39770 | pic_mode=$pic_mode | |
39771 | ||
39772 | # Whether or not to optimize for fast installation. | |
39773 | fast_install=$enable_fast_install | |
39774 | ||
39775 | # Shared archive member basename,for filename based shared library versioning on AIX. | |
39776 | shared_archive_member_spec=$shared_archive_member_spec | |
39777 | ||
39778 | # Shell to use when invoking shell scripts. | |
39779 | SHELL=$lt_SHELL | |
39780 | ||
39781 | # An echo program that protects backslashes. | |
39782 | ECHO=$lt_ECHO | |
39783 | ||
39784 | # The PATH separator for the build system. | |
39785 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
39786 | ||
39787 | # The host system. | |
39788 | host_alias=$host_alias | |
39789 | host=$host | |
39790 | host_os=$host_os | |
39791 | ||
39792 | # The build system. | |
39793 | build_alias=$build_alias | |
39794 | build=$build | |
39795 | build_os=$build_os | |
39796 | ||
39797 | # A sed program that does not truncate output. | |
39798 | SED=$lt_SED | |
39799 | ||
39800 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
39801 | Xsed="\$SED -e 1s/^X//" | |
39802 | ||
39803 | # A grep program that handles long lines. | |
39804 | GREP=$lt_GREP | |
39805 | ||
39806 | # An ERE matcher. | |
39807 | EGREP=$lt_EGREP | |
39808 | ||
39809 | # A literal string matcher. | |
39810 | FGREP=$lt_FGREP | |
39811 | ||
39812 | # A BSD- or MS-compatible name lister. | |
39813 | NM=$lt_NM | |
39814 | ||
39815 | # Whether we need soft or hard links. | |
39816 | LN_S=$lt_LN_S | |
39817 | ||
39818 | # What is the maximum length of a command? | |
39819 | max_cmd_len=$max_cmd_len | |
39820 | ||
39821 | # Object file suffix (normally "o"). | |
39822 | objext=$ac_objext | |
39823 | ||
39824 | # Executable file suffix (normally ""). | |
39825 | exeext=$exeext | |
39826 | ||
39827 | # whether the shell understands "unset". | |
39828 | lt_unset=$lt_unset | |
39829 | ||
39830 | # turn spaces into newlines. | |
39831 | SP2NL=$lt_lt_SP2NL | |
39832 | ||
39833 | # turn newlines into spaces. | |
39834 | NL2SP=$lt_lt_NL2SP | |
39835 | ||
39836 | # convert \$build file names to \$host format. | |
39837 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
39838 | ||
39839 | # convert \$build files to toolchain format. | |
39840 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
39841 | ||
39842 | # An object symbol dumper. | |
39843 | OBJDUMP=$lt_OBJDUMP | |
39844 | ||
39845 | # Method to check whether dependent libraries are shared objects. | |
39846 | deplibs_check_method=$lt_deplibs_check_method | |
39847 | ||
39848 | # Command to use when deplibs_check_method = "file_magic". | |
39849 | file_magic_cmd=$lt_file_magic_cmd | |
39850 | ||
39851 | # How to find potential files when deplibs_check_method = "file_magic". | |
39852 | file_magic_glob=$lt_file_magic_glob | |
39853 | ||
39854 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
39855 | want_nocaseglob=$lt_want_nocaseglob | |
39856 | ||
39857 | # DLL creation program. | |
39858 | DLLTOOL=$lt_DLLTOOL | |
39859 | ||
39860 | # Command to associate shared and link libraries. | |
39861 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
39862 | ||
39863 | # The archiver. | |
39864 | AR=$lt_AR | |
39865 | ||
39866 | # Flags to create an archive. | |
39867 | AR_FLAGS=$lt_AR_FLAGS | |
39868 | ||
39869 | # How to feed a file listing to the archiver. | |
39870 | archiver_list_spec=$lt_archiver_list_spec | |
39871 | ||
39872 | # A symbol stripping program. | |
39873 | STRIP=$lt_STRIP | |
39874 | ||
39875 | # Commands used to install an old-style archive. | |
39876 | RANLIB=$lt_RANLIB | |
39877 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
39878 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
39879 | ||
39880 | # Whether to use a lock for old archive extraction. | |
39881 | lock_old_archive_extraction=$lock_old_archive_extraction | |
39882 | ||
39883 | # A C compiler. | |
39884 | LTCC=$lt_CC | |
39885 | ||
39886 | # LTCC compiler flags. | |
39887 | LTCFLAGS=$lt_CFLAGS | |
39888 | ||
39889 | # Take the output of nm and produce a listing of raw symbols and C names. | |
39890 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
39891 | ||
39892 | # Transform the output of nm in a proper C declaration. | |
39893 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
39894 | ||
39895 | # Transform the output of nm into a list of symbols to manually relocate. | |
39896 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
39897 | ||
39898 | # Transform the output of nm in a C name address pair. | |
39899 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
39900 | ||
39901 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
39902 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
39903 | ||
39904 | # The name lister interface. | |
39905 | nm_interface=$lt_lt_cv_nm_interface | |
39906 | ||
39907 | # Specify filename containing input files for \$NM. | |
39908 | nm_file_list_spec=$lt_nm_file_list_spec | |
39909 | ||
39910 | # The root where to search for dependent libraries,and where our libraries should be installed. | |
39911 | lt_sysroot=$lt_sysroot | |
39912 | ||
39913 | # Command to truncate a binary pipe. | |
39914 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
39915 | ||
39916 | # The name of the directory that contains temporary libtool files. | |
39917 | objdir=$objdir | |
39918 | ||
39919 | # Used to examine libraries when file_magic_cmd begins with "file". | |
39920 | MAGIC_CMD=$MAGIC_CMD | |
39921 | ||
39922 | # Must we lock files when doing compilation? | |
39923 | need_locks=$lt_need_locks | |
39924 | ||
39925 | # Manifest tool. | |
39926 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
39927 | ||
39928 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
39929 | DSYMUTIL=$lt_DSYMUTIL | |
39930 | ||
39931 | # Tool to change global to local symbols on Mac OS X. | |
39932 | NMEDIT=$lt_NMEDIT | |
39933 | ||
39934 | # Tool to manipulate fat objects and archives on Mac OS X. | |
39935 | LIPO=$lt_LIPO | |
39936 | ||
39937 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
39938 | OTOOL=$lt_OTOOL | |
39939 | ||
39940 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
39941 | OTOOL64=$lt_OTOOL64 | |
39942 | ||
39943 | # Old archive suffix (normally "a"). | |
39944 | libext=$libext | |
39945 | ||
39946 | # Shared library suffix (normally ".so"). | |
39947 | shrext_cmds=$lt_shrext_cmds | |
39948 | ||
39949 | # The commands to extract the exported symbol list from a shared archive. | |
39950 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
39951 | ||
39952 | # Variables whose values should be saved in libtool wrapper scripts and | |
39953 | # restored at link time. | |
39954 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
39955 | ||
39956 | # Do we need the "lib" prefix for modules? | |
39957 | need_lib_prefix=$need_lib_prefix | |
39958 | ||
39959 | # Do we need a version for libraries? | |
39960 | need_version=$need_version | |
39961 | ||
39962 | # Library versioning type. | |
39963 | version_type=$version_type | |
39964 | ||
39965 | # Shared library runtime path variable. | |
39966 | runpath_var=$runpath_var | |
39967 | ||
39968 | # Shared library path variable. | |
39969 | shlibpath_var=$shlibpath_var | |
39970 | ||
39971 | # Is shlibpath searched before the hard-coded library search path? | |
39972 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
39973 | ||
39974 | # Format of library name prefix. | |
39975 | libname_spec=$lt_libname_spec | |
39976 | ||
39977 | # List of archive names. First name is the real one, the rest are links. | |
39978 | # The last name is the one that the linker finds with -lNAME | |
39979 | library_names_spec=$lt_library_names_spec | |
39980 | ||
39981 | # The coded name of the library, if different from the real name. | |
39982 | soname_spec=$lt_soname_spec | |
39983 | ||
39984 | # Permission mode override for installation of shared libraries. | |
39985 | install_override_mode=$lt_install_override_mode | |
39986 | ||
39987 | # Command to use after installation of a shared archive. | |
39988 | postinstall_cmds=$lt_postinstall_cmds | |
39989 | ||
39990 | # Command to use after uninstallation of a shared archive. | |
39991 | postuninstall_cmds=$lt_postuninstall_cmds | |
39992 | ||
39993 | # Commands used to finish a libtool library installation in a directory. | |
39994 | finish_cmds=$lt_finish_cmds | |
39995 | ||
39996 | # As "finish_cmds", except a single script fragment to be evaled but | |
39997 | # not shown. | |
39998 | finish_eval=$lt_finish_eval | |
39999 | ||
40000 | # Whether we should hardcode library paths into libraries. | |
40001 | hardcode_into_libs=$hardcode_into_libs | |
40002 | ||
40003 | # Compile-time system search path for libraries. | |
40004 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
40005 | ||
40006 | # Detected run-time system search path for libraries. | |
40007 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
40008 | ||
40009 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
40010 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
40011 | ||
40012 | # Whether dlopen is supported. | |
40013 | dlopen_support=$enable_dlopen | |
40014 | ||
40015 | # Whether dlopen of programs is supported. | |
40016 | dlopen_self=$enable_dlopen_self | |
40017 | ||
40018 | # Whether dlopen of statically linked programs is supported. | |
40019 | dlopen_self_static=$enable_dlopen_self_static | |
40020 | ||
40021 | # Commands to strip libraries. | |
40022 | old_striplib=$lt_old_striplib | |
40023 | striplib=$lt_striplib | |
40024 | ||
40025 | ||
40026 | # The linker used to build libraries. | |
40027 | LD=$lt_LD | |
40028 | ||
40029 | # How to create reloadable object files. | |
40030 | reload_flag=$lt_reload_flag | |
40031 | reload_cmds=$lt_reload_cmds | |
40032 | ||
40033 | # Commands used to build an old-style archive. | |
40034 | old_archive_cmds=$lt_old_archive_cmds | |
40035 | ||
40036 | # A language specific compiler. | |
40037 | CC=$lt_compiler | |
40038 | ||
40039 | # Is the compiler the GNU compiler? | |
40040 | with_gcc=$GCC | |
40041 | ||
40042 | # Compiler flag to turn off builtin functions. | |
40043 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
40044 | ||
40045 | # Additional compiler flags for building library objects. | |
40046 | pic_flag=$lt_lt_prog_compiler_pic | |
40047 | ||
40048 | # How to pass a linker flag through the compiler. | |
40049 | wl=$lt_lt_prog_compiler_wl | |
40050 | ||
40051 | # Compiler flag to prevent dynamic linking. | |
40052 | link_static_flag=$lt_lt_prog_compiler_static | |
40053 | ||
40054 | # Does compiler simultaneously support -c and -o options? | |
40055 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
40056 | ||
40057 | # Whether or not to add -lc for building shared libraries. | |
40058 | build_libtool_need_lc=$archive_cmds_need_lc | |
40059 | ||
40060 | # Whether or not to disallow shared libs when runtime libs are static. | |
40061 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
40062 | ||
40063 | # Compiler flag to allow reflexive dlopens. | |
40064 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
40065 | ||
40066 | # Compiler flag to generate shared objects directly from archives. | |
40067 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
40068 | ||
40069 | # Whether the compiler copes with passing no objects directly. | |
40070 | compiler_needs_object=$lt_compiler_needs_object | |
40071 | ||
40072 | # Create an old-style archive from a shared archive. | |
40073 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
40074 | ||
40075 | # Create a temporary old-style archive to link instead of a shared archive. | |
40076 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
40077 | ||
40078 | # Commands used to build a shared archive. | |
40079 | archive_cmds=$lt_archive_cmds | |
40080 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
40081 | ||
40082 | # Commands used to build a loadable module if different from building | |
40083 | # a shared archive. | |
40084 | module_cmds=$lt_module_cmds | |
40085 | module_expsym_cmds=$lt_module_expsym_cmds | |
40086 | ||
40087 | # Whether we are building with GNU ld or not. | |
40088 | with_gnu_ld=$lt_with_gnu_ld | |
40089 | ||
40090 | # Flag that allows shared libraries with undefined symbols to be built. | |
40091 | allow_undefined_flag=$lt_allow_undefined_flag | |
40092 | ||
40093 | # Flag that enforces no undefined symbols. | |
40094 | no_undefined_flag=$lt_no_undefined_flag | |
40095 | ||
40096 | # Flag to hardcode \$libdir into a binary during linking. | |
40097 | # This must work even if \$libdir does not exist | |
40098 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
40099 | ||
40100 | # Whether we need a single "-rpath" flag with a separated argument. | |
40101 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
40102 | ||
40103 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
40104 | # DIR into the resulting binary. | |
40105 | hardcode_direct=$hardcode_direct | |
40106 | ||
40107 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
40108 | # DIR into the resulting binary and the resulting library dependency is | |
40109 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the | |
40110 | # library is relocated. | |
40111 | hardcode_direct_absolute=$hardcode_direct_absolute | |
40112 | ||
40113 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
40114 | # into the resulting binary. | |
40115 | hardcode_minus_L=$hardcode_minus_L | |
40116 | ||
40117 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
40118 | # into the resulting binary. | |
40119 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
40120 | ||
40121 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
40122 | # into the library and all subsequent libraries and executables linked | |
40123 | # against it. | |
40124 | hardcode_automatic=$hardcode_automatic | |
40125 | ||
40126 | # Set to yes if linker adds runtime paths of dependent libraries | |
40127 | # to runtime path list. | |
40128 | inherit_rpath=$inherit_rpath | |
40129 | ||
40130 | # Whether libtool must link a program against all its dependency libraries. | |
40131 | link_all_deplibs=$link_all_deplibs | |
40132 | ||
40133 | # Set to "yes" if exported symbols are required. | |
40134 | always_export_symbols=$always_export_symbols | |
40135 | ||
40136 | # The commands to list exported symbols. | |
40137 | export_symbols_cmds=$lt_export_symbols_cmds | |
40138 | ||
40139 | # Symbols that should not be listed in the preloaded symbols. | |
40140 | exclude_expsyms=$lt_exclude_expsyms | |
40141 | ||
40142 | # Symbols that must always be exported. | |
40143 | include_expsyms=$lt_include_expsyms | |
40144 | ||
40145 | # Commands necessary for linking programs (against libraries) with templates. | |
40146 | prelink_cmds=$lt_prelink_cmds | |
40147 | ||
40148 | # Commands necessary for finishing linking programs. | |
40149 | postlink_cmds=$lt_postlink_cmds | |
40150 | ||
40151 | # Specify filename containing input files. | |
40152 | file_list_spec=$lt_file_list_spec | |
40153 | ||
40154 | # How to hardcode a shared library path into an executable. | |
40155 | hardcode_action=$hardcode_action | |
40156 | ||
40157 | # ### END LIBTOOL CONFIG | |
40158 | ||
40159 | _LT_EOF | |
40160 | ||
40161 | cat <<'_LT_EOF' >> "$cfgfile" | |
40162 | ||
40163 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
40164 | ||
40165 | # func_munge_path_list VARIABLE PATH | |
40166 | # ----------------------------------- | |
40167 | # VARIABLE is name of variable containing _space_ separated list of | |
40168 | # directories to be munged by the contents of PATH, which is string | |
40169 | # having a format: | |
40170 | # "DIR[:DIR]:" | |
40171 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
40172 | # ":DIR[:DIR]" | |
40173 | # string "DIR[ DIR]" will be appended to VARIABLE | |
40174 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
40175 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
40176 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
40177 | # "DIR[:DIR]" | |
40178 | # VARIABLE will be replaced by "DIR[ DIR]" | |
40179 | func_munge_path_list () | |
40180 | { | |
40181 | case x$2 in | |
40182 | x) | |
40183 | ;; | |
40184 | *:) | |
40185 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
40186 | ;; | |
40187 | x:*) | |
40188 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
40189 | ;; | |
40190 | *::*) | |
40191 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
40192 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
40193 | ;; | |
40194 | *) | |
40195 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
40196 | ;; | |
40197 | esac | |
40198 | } | |
40199 | ||
40200 | ||
40201 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
40202 | func_cc_basename () | |
40203 | { | |
40204 | for cc_temp in $*""; do | |
40205 | case $cc_temp in | |
40206 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
40207 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
40208 | \-*) ;; | |
40209 | *) break;; | |
40210 | esac | |
40211 | done | |
40212 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
40213 | } | |
40214 | ||
40215 | ||
40216 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
40217 | ||
40218 | _LT_EOF | |
40219 | ||
40220 | case $host_os in | |
40221 | aix3*) | |
40222 | cat <<\_LT_EOF >> "$cfgfile" | |
40223 | # AIX sometimes has problems with the GCC collect2 program. For some | |
40224 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
40225 | # vanish in a puff of smoke. | |
40226 | if test set != "${COLLECT_NAMES+set}"; then | |
40227 | COLLECT_NAMES= | |
40228 | export COLLECT_NAMES | |
40229 | fi | |
40230 | _LT_EOF | |
40231 | ;; | |
40232 | esac | |
40233 | ||
40234 | ||
40235 | ltmain=$ac_aux_dir/ltmain.sh | |
40236 | ||
40237 | ||
40238 | # We use sed instead of cat because bash on DJGPP gets confused if | |
40239 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
40240 | # text mode, it properly converts lines to CR/LF. This bash problem | |
40241 | # is reportedly fixed, but why not run on old versions too? | |
40242 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
40243 | || (rm -f "$cfgfile"; exit 1) | |
40244 | ||
40245 | mv -f "$cfgfile" "$ofile" || | |
40246 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
40247 | chmod +x "$ofile" | |
40248 | ||
40249 | ;; | |
40250 | ||
40251 | esac | |
40252 | done # for ac_tag | |
40253 | ||
40254 | ||
40255 | as_fn_exit 0 | |
40256 | _ACEOF | |
40257 | ac_clean_files=$ac_clean_files_save | |
40258 | ||
40259 | test $ac_write_fail = 0 || | |
40260 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
40261 | ||
40262 | ||
40263 | # configure is writing to config.log, and then calls config.status. | |
40264 | # config.status does its own redirection, appending to config.log. | |
40265 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
40266 | # by configure, so config.status won't be able to write to it; its | |
40267 | # output is simply discarded. So we exec the FD to /dev/null, | |
40268 | # effectively closing config.log, so it can be properly (re)opened and | |
40269 | # appended to by config.status. When coming back to configure, we | |
40270 | # need to make the FD available again. | |
40271 | if test "$no_create" != yes; then | |
40272 | ac_cs_success=: | |
40273 | ac_config_status_args= | |
40274 | test "$silent" = yes && | |
40275 | ac_config_status_args="$ac_config_status_args --quiet" | |
40276 | exec 5>/dev/null | |
40277 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
40278 | exec 5>>config.log | |
40279 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
40280 | # would make configure fail if this is the last instruction. | |
40281 | $ac_cs_success || as_fn_exit 1 | |
40282 | fi | |
40283 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
40284 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
40285 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
40286 | fi | |
40287 |