]>
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 | ||
16300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5 | |
16301 | $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&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 | int flags __attribute__ ((unused)); | |
16314 | flags = BIO_RW_BARRIER; | |
16315 | ||
16316 | ; | |
16317 | return 0; | |
16318 | } | |
16319 | ||
16320 | _ACEOF | |
16321 | ||
16322 | ||
16323 | ||
16324 | cat - <<_ACEOF >conftest.h | |
16325 | ||
16326 | _ACEOF | |
16327 | ||
16328 | ||
16329 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16330 | echo "obj-m := conftest.o" >build/Makefile | |
16331 | modpost_flag='' | |
16332 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16333 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16334 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16335 | (eval $ac_try) 2>&5 | |
16336 | ac_status=$? | |
16337 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16338 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16339 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16340 | (eval $ac_try) 2>&5 | |
16341 | ac_status=$? | |
16342 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16343 | test $ac_status = 0; }; }; then : | |
16344 | ||
16345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16346 | $as_echo "yes" >&6; } | |
16347 | ||
16348 | $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h | |
16349 | ||
16350 | ||
16351 | else | |
16352 | $as_echo "$as_me: failed program was:" >&5 | |
16353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16354 | ||
16355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16356 | $as_echo "no" >&6; } | |
16357 | ||
16358 | ||
16359 | ||
16360 | fi | |
16361 | rm -Rf build | |
16362 | ||
16363 | ||
16364 | ||
16365 | ||
16366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5 | |
16367 | $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; } | |
16368 | ||
16369 | ||
16370 | cat confdefs.h - <<_ACEOF >conftest.c | |
16371 | ||
16372 | ||
16373 | #include <linux/bio.h> | |
16374 | ||
16375 | int | |
16376 | main (void) | |
16377 | { | |
16378 | ||
16379 | int flags __attribute__ ((unused)); | |
16380 | flags = BIO_RW_DISCARD; | |
16381 | ||
16382 | ; | |
16383 | return 0; | |
16384 | } | |
16385 | ||
16386 | _ACEOF | |
16387 | ||
16388 | ||
16389 | ||
16390 | cat - <<_ACEOF >conftest.h | |
16391 | ||
16392 | _ACEOF | |
16393 | ||
16394 | ||
16395 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16396 | echo "obj-m := conftest.o" >build/Makefile | |
16397 | modpost_flag='' | |
16398 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16399 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16400 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16401 | (eval $ac_try) 2>&5 | |
16402 | ac_status=$? | |
16403 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16404 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16405 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16406 | (eval $ac_try) 2>&5 | |
16407 | ac_status=$? | |
16408 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16409 | test $ac_status = 0; }; }; then : | |
16410 | ||
16411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16412 | $as_echo "yes" >&6; } | |
16413 | ||
16414 | $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h | |
16415 | ||
16416 | ||
16417 | else | |
16418 | $as_echo "$as_me: failed program was:" >&5 | |
16419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16420 | ||
16421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16422 | $as_echo "no" >&6; } | |
16423 | ||
16424 | ||
16425 | ||
16426 | fi | |
16427 | rm -Rf build | |
16428 | ||
16429 | ||
16430 | ||
16431 | ||
16432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5 | |
16433 | $as_echo_n "checking whether blk_queue_flush() is available... " >&6; } | |
16434 | tmp_flags="$EXTRA_KCFLAGS" | |
16435 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16436 | ||
16437 | ||
16438 | cat confdefs.h - <<_ACEOF >conftest.c | |
16439 | ||
16440 | ||
16441 | #include <linux/blkdev.h> | |
16442 | ||
16443 | int | |
16444 | main (void) | |
16445 | { | |
16446 | ||
16447 | struct request_queue *q = NULL; | |
16448 | (void) blk_queue_flush(q, REQ_FLUSH); | |
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_BLK_QUEUE_FLUSH 1" >>confdefs.h | |
16483 | ||
16484 | ||
16485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5 | |
16486 | $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; } | |
16487 | ||
16488 | ||
16489 | cat confdefs.h - <<_ACEOF >conftest.c | |
16490 | ||
16491 | ||
16492 | #include <linux/module.h> | |
16493 | #include <linux/blkdev.h> | |
16494 | ||
16495 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
16496 | ||
16497 | int | |
16498 | main (void) | |
16499 | { | |
16500 | ||
16501 | struct request_queue *q = NULL; | |
16502 | (void) blk_queue_flush(q, REQ_FLUSH); | |
16503 | ||
16504 | ; | |
16505 | return 0; | |
16506 | } | |
16507 | ||
16508 | _ACEOF | |
16509 | ||
16510 | ||
16511 | ||
16512 | cat - <<_ACEOF >conftest.h | |
16513 | ||
16514 | _ACEOF | |
16515 | ||
16516 | ||
16517 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16518 | echo "obj-m := conftest.o" >build/Makefile | |
16519 | modpost_flag='' | |
16520 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16521 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16522 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16523 | (eval $ac_try) 2>&5 | |
16524 | ac_status=$? | |
16525 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16526 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16527 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16528 | (eval $ac_try) 2>&5 | |
16529 | ac_status=$? | |
16530 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16531 | test $ac_status = 0; }; }; then : | |
16532 | ||
16533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16534 | $as_echo "no" >&6; } | |
16535 | ||
16536 | else | |
16537 | $as_echo "$as_me: failed program was:" >&5 | |
16538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16539 | ||
16540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16541 | $as_echo "yes" >&6; } | |
16542 | ||
16543 | $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h | |
16544 | ||
16545 | ||
16546 | ||
16547 | ||
16548 | fi | |
16549 | rm -Rf build | |
16550 | ||
16551 | ||
16552 | ||
16553 | else | |
16554 | $as_echo "$as_me: failed program was:" >&5 | |
16555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16556 | ||
16557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16558 | $as_echo "no" >&6; } | |
16559 | ||
16560 | ||
16561 | ||
16562 | fi | |
16563 | rm -Rf build | |
16564 | ||
16565 | ||
16566 | ||
16567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5 | |
16568 | $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; } | |
16569 | ||
16570 | ||
16571 | cat confdefs.h - <<_ACEOF >conftest.c | |
16572 | ||
16573 | ||
16574 | #include <linux/kernel.h> | |
16575 | #include <linux/blkdev.h> | |
16576 | ||
16577 | ||
16578 | int | |
16579 | main (void) | |
16580 | { | |
16581 | ||
16582 | struct request_queue *q = NULL; | |
16583 | blk_queue_write_cache(q, true, true); | |
16584 | ||
16585 | ; | |
16586 | return 0; | |
16587 | } | |
16588 | ||
16589 | _ACEOF | |
16590 | ||
16591 | ||
16592 | ||
16593 | cat - <<_ACEOF >conftest.h | |
16594 | ||
16595 | _ACEOF | |
16596 | ||
16597 | ||
16598 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16599 | echo "obj-m := conftest.o" >build/Makefile | |
16600 | modpost_flag='' | |
16601 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16602 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16603 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16604 | (eval $ac_try) 2>&5 | |
16605 | ac_status=$? | |
16606 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16607 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16608 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16609 | (eval $ac_try) 2>&5 | |
16610 | ac_status=$? | |
16611 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16612 | test $ac_status = 0; }; }; then : | |
16613 | ||
16614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16615 | $as_echo "yes" >&6; } | |
16616 | ||
16617 | $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h | |
16618 | ||
16619 | ||
16620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5 | |
16621 | $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; } | |
16622 | ||
16623 | ||
16624 | cat confdefs.h - <<_ACEOF >conftest.c | |
16625 | ||
16626 | ||
16627 | #include <linux/kernel.h> | |
16628 | #include <linux/module.h> | |
16629 | #include <linux/blkdev.h> | |
16630 | ||
16631 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
16632 | ||
16633 | int | |
16634 | main (void) | |
16635 | { | |
16636 | ||
16637 | struct request_queue *q = NULL; | |
16638 | blk_queue_write_cache(q, true, true); | |
16639 | ||
16640 | ; | |
16641 | return 0; | |
16642 | } | |
16643 | ||
16644 | _ACEOF | |
16645 | ||
16646 | ||
16647 | ||
16648 | cat - <<_ACEOF >conftest.h | |
16649 | ||
16650 | _ACEOF | |
16651 | ||
16652 | ||
16653 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16654 | echo "obj-m := conftest.o" >build/Makefile | |
16655 | modpost_flag='' | |
16656 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16657 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16658 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16659 | (eval $ac_try) 2>&5 | |
16660 | ac_status=$? | |
16661 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16662 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16663 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16664 | (eval $ac_try) 2>&5 | |
16665 | ac_status=$? | |
16666 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16667 | test $ac_status = 0; }; }; then : | |
16668 | ||
16669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16670 | $as_echo "no" >&6; } | |
16671 | ||
16672 | else | |
16673 | $as_echo "$as_me: failed program was:" >&5 | |
16674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16675 | ||
16676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16677 | $as_echo "yes" >&6; } | |
16678 | ||
16679 | $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h | |
16680 | ||
16681 | ||
16682 | ||
16683 | ||
16684 | fi | |
16685 | rm -Rf build | |
16686 | ||
16687 | ||
16688 | ||
16689 | else | |
16690 | $as_echo "$as_me: failed program was:" >&5 | |
16691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16692 | ||
16693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16694 | $as_echo "no" >&6; } | |
16695 | ||
16696 | ||
16697 | ||
16698 | fi | |
16699 | rm -Rf build | |
16700 | ||
16701 | ||
16702 | ||
16703 | EXTRA_KCFLAGS="$tmp_flags" | |
16704 | ||
16705 | ||
16706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5 | |
16707 | $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; } | |
16708 | tmp_flags="$EXTRA_KCFLAGS" | |
16709 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16710 | ||
16711 | ||
16712 | cat confdefs.h - <<_ACEOF >conftest.c | |
16713 | ||
16714 | ||
16715 | #include <linux/blkdev.h> | |
16716 | ||
16717 | int | |
16718 | main (void) | |
16719 | { | |
16720 | ||
16721 | struct request_queue *q = NULL; | |
16722 | (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS); | |
16723 | ||
16724 | ; | |
16725 | return 0; | |
16726 | } | |
16727 | ||
16728 | _ACEOF | |
16729 | ||
16730 | ||
16731 | ||
16732 | cat - <<_ACEOF >conftest.h | |
16733 | ||
16734 | _ACEOF | |
16735 | ||
16736 | ||
16737 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16738 | echo "obj-m := conftest.o" >build/Makefile | |
16739 | modpost_flag='' | |
16740 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16741 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16742 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16743 | (eval $ac_try) 2>&5 | |
16744 | ac_status=$? | |
16745 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16746 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16747 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16748 | (eval $ac_try) 2>&5 | |
16749 | ac_status=$? | |
16750 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16751 | test $ac_status = 0; }; }; then : | |
16752 | ||
16753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16754 | $as_echo "yes" >&6; } | |
16755 | ||
16756 | $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h | |
16757 | ||
16758 | ||
16759 | else | |
16760 | $as_echo "$as_me: failed program was:" >&5 | |
16761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16762 | ||
16763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16764 | $as_echo "no" >&6; } | |
16765 | ||
16766 | ||
16767 | ||
16768 | fi | |
16769 | rm -Rf build | |
16770 | ||
16771 | ||
16772 | EXTRA_KCFLAGS="$tmp_flags" | |
16773 | ||
16774 | ||
16775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5 | |
16776 | $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; } | |
16777 | tmp_flags="$EXTRA_KCFLAGS" | |
16778 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16779 | ||
16780 | ||
16781 | cat confdefs.h - <<_ACEOF >conftest.c | |
16782 | ||
16783 | ||
16784 | #include <linux/blkdev.h> | |
16785 | ||
16786 | int | |
16787 | main (void) | |
16788 | { | |
16789 | ||
16790 | struct request_queue *q = NULL; | |
16791 | (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS); | |
16792 | ||
16793 | ; | |
16794 | return 0; | |
16795 | } | |
16796 | ||
16797 | _ACEOF | |
16798 | ||
16799 | ||
16800 | ||
16801 | cat - <<_ACEOF >conftest.h | |
16802 | ||
16803 | _ACEOF | |
16804 | ||
16805 | ||
16806 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16807 | echo "obj-m := conftest.o" >build/Makefile | |
16808 | modpost_flag='' | |
16809 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16810 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16811 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16812 | (eval $ac_try) 2>&5 | |
16813 | ac_status=$? | |
16814 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16815 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16816 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16817 | (eval $ac_try) 2>&5 | |
16818 | ac_status=$? | |
16819 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16820 | test $ac_status = 0; }; }; then : | |
16821 | ||
16822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16823 | $as_echo "yes" >&6; } | |
16824 | ||
16825 | $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h | |
16826 | ||
16827 | ||
16828 | else | |
16829 | $as_echo "$as_me: failed program was:" >&5 | |
16830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16831 | ||
16832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16833 | $as_echo "no" >&6; } | |
16834 | ||
16835 | ||
16836 | ||
16837 | fi | |
16838 | rm -Rf build | |
16839 | ||
16840 | ||
16841 | EXTRA_KCFLAGS="$tmp_flags" | |
16842 | ||
16843 | ||
16844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5 | |
16845 | $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; } | |
16846 | tmp_flags="$EXTRA_KCFLAGS" | |
16847 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16848 | ||
16849 | ||
16850 | cat confdefs.h - <<_ACEOF >conftest.c | |
16851 | ||
16852 | ||
16853 | #include <linux/blkdev.h> | |
16854 | ||
16855 | int | |
16856 | main (void) | |
16857 | { | |
16858 | ||
16859 | extern enum bio_rw_flags rw; | |
16860 | ||
16861 | rw = BIO_RW_UNPLUG; | |
16862 | ||
16863 | ; | |
16864 | return 0; | |
16865 | } | |
16866 | ||
16867 | _ACEOF | |
16868 | ||
16869 | ||
16870 | ||
16871 | cat - <<_ACEOF >conftest.h | |
16872 | ||
16873 | _ACEOF | |
16874 | ||
16875 | ||
16876 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16877 | echo "obj-m := conftest.o" >build/Makefile | |
16878 | modpost_flag='' | |
16879 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16880 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16881 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16882 | (eval $ac_try) 2>&5 | |
16883 | ac_status=$? | |
16884 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16885 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16886 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16887 | (eval $ac_try) 2>&5 | |
16888 | ac_status=$? | |
16889 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16890 | test $ac_status = 0; }; }; then : | |
16891 | ||
16892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16893 | $as_echo "yes" >&6; } | |
16894 | ||
16895 | $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h | |
16896 | ||
16897 | ||
16898 | else | |
16899 | $as_echo "$as_me: failed program was:" >&5 | |
16900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16901 | ||
16902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16903 | $as_echo "no" >&6; } | |
16904 | ||
16905 | ||
16906 | ||
16907 | fi | |
16908 | rm -Rf build | |
16909 | ||
16910 | ||
16911 | EXTRA_KCFLAGS="$tmp_flags" | |
16912 | ||
16913 | ||
16914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5 | |
16915 | $as_echo_n "checking whether struct blk_plug is available... " >&6; } | |
16916 | tmp_flags="$EXTRA_KCFLAGS" | |
16917 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16918 | ||
16919 | ||
16920 | cat confdefs.h - <<_ACEOF >conftest.c | |
16921 | ||
16922 | ||
16923 | #include <linux/blkdev.h> | |
16924 | ||
16925 | int | |
16926 | main (void) | |
16927 | { | |
16928 | ||
16929 | struct blk_plug plug; | |
16930 | ||
16931 | blk_start_plug(&plug); | |
16932 | blk_finish_plug(&plug); | |
16933 | ||
16934 | ; | |
16935 | return 0; | |
16936 | } | |
16937 | ||
16938 | _ACEOF | |
16939 | ||
16940 | ||
16941 | ||
16942 | cat - <<_ACEOF >conftest.h | |
16943 | ||
16944 | _ACEOF | |
16945 | ||
16946 | ||
16947 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16948 | echo "obj-m := conftest.o" >build/Makefile | |
16949 | modpost_flag='' | |
16950 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16951 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16952 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16953 | (eval $ac_try) 2>&5 | |
16954 | ac_status=$? | |
16955 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16956 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16957 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16958 | (eval $ac_try) 2>&5 | |
16959 | ac_status=$? | |
16960 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16961 | test $ac_status = 0; }; }; then : | |
16962 | ||
16963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16964 | $as_echo "yes" >&6; } | |
16965 | ||
16966 | $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h | |
16967 | ||
16968 | ||
16969 | else | |
16970 | $as_echo "$as_me: failed program was:" >&5 | |
16971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16972 | ||
16973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16974 | $as_echo "no" >&6; } | |
16975 | ||
16976 | ||
16977 | ||
16978 | fi | |
16979 | rm -Rf build | |
16980 | ||
16981 | ||
16982 | EXTRA_KCFLAGS="$tmp_flags" | |
16983 | ||
16984 | ||
16985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5 | |
16986 | $as_echo_n "checking whether get_disk_ro() is available... " >&6; } | |
16987 | tmp_flags="$EXTRA_KCFLAGS" | |
16988 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16989 | ||
16990 | ||
16991 | cat confdefs.h - <<_ACEOF >conftest.c | |
16992 | ||
16993 | ||
16994 | #include <linux/blkdev.h> | |
16995 | ||
16996 | int | |
16997 | main (void) | |
16998 | { | |
16999 | ||
17000 | struct gendisk *disk = NULL; | |
17001 | (void) get_disk_ro(disk); | |
17002 | ||
17003 | ; | |
17004 | return 0; | |
17005 | } | |
17006 | ||
17007 | _ACEOF | |
17008 | ||
17009 | ||
17010 | ||
17011 | cat - <<_ACEOF >conftest.h | |
17012 | ||
17013 | _ACEOF | |
17014 | ||
17015 | ||
17016 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17017 | echo "obj-m := conftest.o" >build/Makefile | |
17018 | modpost_flag='' | |
17019 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17020 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17021 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17022 | (eval $ac_try) 2>&5 | |
17023 | ac_status=$? | |
17024 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17025 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17026 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17027 | (eval $ac_try) 2>&5 | |
17028 | ac_status=$? | |
17029 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17030 | test $ac_status = 0; }; }; then : | |
17031 | ||
17032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17033 | $as_echo "yes" >&6; } | |
17034 | ||
17035 | $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h | |
17036 | ||
17037 | ||
17038 | else | |
17039 | $as_echo "$as_me: failed program was:" >&5 | |
17040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17041 | ||
17042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17043 | $as_echo "no" >&6; } | |
17044 | ||
17045 | ||
17046 | ||
17047 | fi | |
17048 | rm -Rf build | |
17049 | ||
17050 | ||
17051 | EXTRA_KCFLAGS="$tmp_flags" | |
17052 | ||
17053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5 | |
17054 | $as_echo_n "checking whether get_gendisk() is available... " >&6; } | |
17055 | ||
17056 | ||
17057 | ||
17058 | cat confdefs.h - <<_ACEOF >conftest.c | |
17059 | ||
17060 | ||
17061 | #include <linux/genhd.h> | |
17062 | ||
17063 | int | |
17064 | main (void) | |
17065 | { | |
17066 | ||
17067 | get_gendisk(0, NULL); | |
17068 | ||
17069 | ; | |
17070 | return 0; | |
17071 | } | |
17072 | ||
17073 | _ACEOF | |
17074 | ||
17075 | ||
17076 | ||
17077 | cat - <<_ACEOF >conftest.h | |
17078 | ||
17079 | _ACEOF | |
17080 | ||
17081 | ||
17082 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17083 | echo "obj-m := conftest.o" >build/Makefile | |
17084 | modpost_flag='' | |
17085 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17086 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17087 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17088 | (eval $ac_try) 2>&5 | |
17089 | ac_status=$? | |
17090 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17091 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17092 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17093 | (eval $ac_try) 2>&5 | |
17094 | ac_status=$? | |
17095 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17096 | test $ac_status = 0; }; }; then : | |
17097 | rc=0 | |
17098 | else | |
17099 | $as_echo "$as_me: failed program was:" >&5 | |
17100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17101 | rc=1 | |
17102 | ||
17103 | ||
17104 | fi | |
17105 | rm -Rf build | |
17106 | ||
17107 | ||
17108 | if test $rc -ne 0; then : | |
17109 | ||
17110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17111 | $as_echo "no" >&6; } | |
17112 | ||
17113 | else | |
17114 | if test "x$enable_linux_builtin" != xyes; then | |
17115 | ||
17116 | grep -q -E '[[:space:]]get_gendisk[[:space:]]' \ | |
17117 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
17118 | rc=$? | |
17119 | if test $rc -ne 0; then | |
17120 | export=0 | |
17121 | for file in block/genhd.c; do | |
17122 | grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \ | |
17123 | "$LINUX/$file" 2>/dev/null | |
17124 | rc=$? | |
17125 | if test $rc -eq 0; then | |
17126 | export=1 | |
17127 | break; | |
17128 | fi | |
17129 | done | |
17130 | if test $export -eq 0; then : | |
17131 | rc=1 | |
17132 | else : | |
17133 | rc=0 | |
17134 | fi | |
17135 | else : | |
17136 | rc=0 | |
17137 | fi | |
17138 | ||
17139 | fi | |
17140 | if test $rc -ne 0; then : | |
17141 | ||
17142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17143 | $as_echo "no" >&6; } | |
17144 | ||
17145 | else : | |
17146 | ||
17147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17148 | $as_echo "yes" >&6; } | |
17149 | ||
17150 | $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h | |
17151 | ||
17152 | ||
17153 | fi | |
17154 | fi | |
17155 | ||
17156 | ||
17157 | ||
17158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5 | |
17159 | $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; } | |
17160 | ||
17161 | ||
17162 | cat confdefs.h - <<_ACEOF >conftest.c | |
17163 | ||
17164 | ||
1ec59ff7 | 17165 | #include <linux/bio.h> |
87d546d8 TG |
17166 | |
17167 | int | |
17168 | main (void) | |
17169 | { | |
17170 | ||
17171 | struct bio *bio __attribute__ ((unused)) = NULL; | |
17172 | ||
17173 | bio_set_op_attrs(bio, 0, 0); | |
17174 | ||
17175 | ; | |
17176 | return 0; | |
17177 | } | |
17178 | ||
17179 | _ACEOF | |
17180 | ||
17181 | ||
17182 | ||
17183 | cat - <<_ACEOF >conftest.h | |
17184 | ||
17185 | _ACEOF | |
17186 | ||
17187 | ||
17188 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17189 | echo "obj-m := conftest.o" >build/Makefile | |
17190 | modpost_flag='' | |
17191 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17192 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17193 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17194 | (eval $ac_try) 2>&5 | |
17195 | ac_status=$? | |
17196 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17197 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17198 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17199 | (eval $ac_try) 2>&5 | |
17200 | ac_status=$? | |
17201 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17202 | test $ac_status = 0; }; }; then : | |
17203 | ||
17204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17205 | $as_echo "yes" >&6; } | |
17206 | ||
17207 | $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h | |
17208 | ||
17209 | ||
17210 | else | |
17211 | $as_echo "$as_me: failed program was:" >&5 | |
17212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17213 | ||
17214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17215 | $as_echo "no" >&6; } | |
17216 | ||
17217 | ||
17218 | ||
17219 | fi | |
17220 | rm -Rf build | |
17221 | ||
17222 | ||
17223 | ||
17224 | ||
17225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5 | |
17226 | $as_echo_n "checking whether generic_readlink is global... " >&6; } | |
17227 | ||
17228 | ||
17229 | cat confdefs.h - <<_ACEOF >conftest.c | |
17230 | ||
17231 | ||
17232 | #include <linux/fs.h> | |
17233 | ||
17234 | int | |
17235 | main (void) | |
17236 | { | |
17237 | ||
17238 | int i __attribute__ ((unused)); | |
17239 | ||
17240 | i = generic_readlink(NULL, NULL, 0); | |
17241 | ||
17242 | ; | |
17243 | return 0; | |
17244 | } | |
17245 | ||
17246 | _ACEOF | |
17247 | ||
17248 | ||
17249 | ||
17250 | cat - <<_ACEOF >conftest.h | |
17251 | ||
17252 | _ACEOF | |
17253 | ||
17254 | ||
17255 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17256 | echo "obj-m := conftest.o" >build/Makefile | |
17257 | modpost_flag='' | |
17258 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17259 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17260 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17261 | (eval $ac_try) 2>&5 | |
17262 | ac_status=$? | |
17263 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17264 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17265 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17266 | (eval $ac_try) 2>&5 | |
17267 | ac_status=$? | |
17268 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17269 | test $ac_status = 0; }; }; then : | |
17270 | ||
17271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17272 | $as_echo "yes" >&6; } | |
17273 | ||
17274 | $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h | |
17275 | ||
17276 | ||
17277 | else | |
17278 | $as_echo "$as_me: failed program was:" >&5 | |
17279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17280 | ||
17281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17282 | $as_echo "no" >&6; } | |
17283 | ||
17284 | ||
17285 | ||
17286 | fi | |
17287 | rm -Rf build | |
17288 | ||
17289 | ||
17290 | ||
17291 | ||
17292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5 | |
17293 | $as_echo_n "checking whether ql->discard_granularity is available... " >&6; } | |
17294 | ||
17295 | ||
17296 | cat confdefs.h - <<_ACEOF >conftest.c | |
17297 | ||
17298 | ||
17299 | #include <linux/blkdev.h> | |
17300 | ||
17301 | int | |
17302 | main (void) | |
17303 | { | |
17304 | ||
17305 | struct queue_limits ql __attribute__ ((unused)); | |
17306 | ||
17307 | ql.discard_granularity = 0; | |
17308 | ||
17309 | ; | |
17310 | return 0; | |
17311 | } | |
17312 | ||
17313 | _ACEOF | |
17314 | ||
17315 | ||
17316 | ||
17317 | cat - <<_ACEOF >conftest.h | |
17318 | ||
17319 | _ACEOF | |
17320 | ||
17321 | ||
17322 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17323 | echo "obj-m := conftest.o" >build/Makefile | |
17324 | modpost_flag='' | |
17325 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17326 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17327 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17328 | (eval $ac_try) 2>&5 | |
17329 | ac_status=$? | |
17330 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17331 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17332 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17333 | (eval $ac_try) 2>&5 | |
17334 | ac_status=$? | |
17335 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17336 | test $ac_status = 0; }; }; then : | |
17337 | ||
17338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17339 | $as_echo "yes" >&6; } | |
17340 | ||
17341 | $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h | |
17342 | ||
17343 | ||
17344 | else | |
17345 | $as_echo "$as_me: failed program was:" >&5 | |
17346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17347 | ||
17348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17349 | $as_echo "no" >&6; } | |
17350 | ||
17351 | ||
17352 | ||
17353 | fi | |
17354 | rm -Rf build | |
17355 | ||
17356 | ||
17357 | ||
17358 | ||
17359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5 | |
17360 | $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; } | |
17361 | ||
17362 | ||
17363 | cat confdefs.h - <<_ACEOF >conftest.c | |
17364 | ||
17365 | ||
17366 | #include <linux/fs.h> | |
17367 | #include <linux/xattr.h> | |
17368 | ||
17369 | const struct xattr_handler xattr_test_handler = { | |
17370 | .prefix = "test", | |
17371 | .get = NULL, | |
17372 | .set = NULL, | |
17373 | }; | |
17374 | ||
17375 | const struct xattr_handler *xattr_handlers[] = { | |
17376 | &xattr_test_handler, | |
17377 | }; | |
17378 | ||
17379 | const struct super_block sb __attribute__ ((unused)) = { | |
17380 | .s_xattr = xattr_handlers, | |
17381 | }; | |
17382 | ||
17383 | int | |
17384 | main (void) | |
17385 | { | |
17386 | ||
17387 | ||
17388 | ; | |
17389 | return 0; | |
17390 | } | |
17391 | ||
17392 | _ACEOF | |
17393 | ||
17394 | ||
17395 | ||
17396 | cat - <<_ACEOF >conftest.h | |
17397 | ||
17398 | _ACEOF | |
17399 | ||
17400 | ||
17401 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17402 | echo "obj-m := conftest.o" >build/Makefile | |
17403 | modpost_flag='' | |
17404 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17405 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17406 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17407 | (eval $ac_try) 2>&5 | |
17408 | ac_status=$? | |
17409 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17410 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17411 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17412 | (eval $ac_try) 2>&5 | |
17413 | ac_status=$? | |
17414 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17415 | test $ac_status = 0; }; }; then : | |
17416 | ||
17417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17418 | $as_echo "yes" >&6; } | |
17419 | ||
17420 | $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h | |
17421 | ||
17422 | ||
17423 | else | |
17424 | $as_echo "$as_me: failed program was:" >&5 | |
17425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17426 | ||
17427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17428 | $as_echo "no" >&6; } | |
17429 | ||
17430 | ||
17431 | ||
17432 | fi | |
17433 | rm -Rf build | |
17434 | ||
17435 | ||
17436 | ||
17437 | ||
17438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5 | |
17439 | $as_echo_n "checking whether xattr_handler has name... " >&6; } | |
17440 | ||
17441 | ||
17442 | cat confdefs.h - <<_ACEOF >conftest.c | |
17443 | ||
17444 | ||
17445 | #include <linux/xattr.h> | |
17446 | ||
17447 | static const struct xattr_handler | |
17448 | xops __attribute__ ((unused)) = { | |
17449 | .name = XATTR_NAME_POSIX_ACL_ACCESS, | |
17450 | }; | |
17451 | ||
17452 | int | |
17453 | main (void) | |
17454 | { | |
17455 | ||
17456 | ||
17457 | ; | |
17458 | return 0; | |
17459 | } | |
17460 | ||
17461 | _ACEOF | |
17462 | ||
17463 | ||
17464 | ||
17465 | cat - <<_ACEOF >conftest.h | |
17466 | ||
17467 | _ACEOF | |
17468 | ||
17469 | ||
17470 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17471 | echo "obj-m := conftest.o" >build/Makefile | |
17472 | modpost_flag='' | |
17473 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17474 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17475 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17476 | (eval $ac_try) 2>&5 | |
17477 | ac_status=$? | |
17478 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17479 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17480 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17481 | (eval $ac_try) 2>&5 | |
17482 | ac_status=$? | |
17483 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17484 | test $ac_status = 0; }; }; then : | |
17485 | ||
17486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17487 | $as_echo "yes" >&6; } | |
17488 | ||
17489 | $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h | |
17490 | ||
17491 | ||
17492 | else | |
17493 | $as_echo "$as_me: failed program was:" >&5 | |
17494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17495 | ||
17496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17497 | $as_echo "no" >&6; } | |
17498 | ||
17499 | ||
17500 | ||
17501 | fi | |
17502 | rm -Rf build | |
17503 | ||
17504 | ||
17505 | ||
17506 | ||
17507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5 | |
17508 | $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; } | |
17509 | ||
17510 | ||
17511 | cat confdefs.h - <<_ACEOF >conftest.c | |
17512 | ||
17513 | ||
17514 | #include <linux/xattr.h> | |
17515 | ||
17516 | int get(const struct xattr_handler *handler, | |
17517 | struct dentry *dentry, struct inode *inode, | |
17518 | const char *name, void *buffer, size_t size) { return 0; } | |
17519 | static const struct xattr_handler | |
17520 | xops __attribute__ ((unused)) = { | |
17521 | .get = get, | |
17522 | }; | |
17523 | ||
17524 | int | |
17525 | main (void) | |
17526 | { | |
17527 | ||
17528 | ||
17529 | ; | |
17530 | return 0; | |
17531 | } | |
17532 | ||
17533 | _ACEOF | |
17534 | ||
17535 | ||
17536 | ||
17537 | cat - <<_ACEOF >conftest.h | |
17538 | ||
17539 | _ACEOF | |
17540 | ||
17541 | ||
17542 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17543 | echo "obj-m := conftest.o" >build/Makefile | |
17544 | modpost_flag='' | |
17545 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17546 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17547 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17548 | (eval $ac_try) 2>&5 | |
17549 | ac_status=$? | |
17550 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17551 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17552 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17553 | (eval $ac_try) 2>&5 | |
17554 | ac_status=$? | |
17555 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17556 | test $ac_status = 0; }; }; then : | |
17557 | ||
17558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17559 | $as_echo "yes" >&6; } | |
17560 | ||
17561 | $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h | |
17562 | ||
17563 | ||
17564 | else | |
17565 | $as_echo "$as_me: failed program was:" >&5 | |
17566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17567 | ||
17568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5 | |
17569 | $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; } | |
17570 | ||
17571 | ||
17572 | cat confdefs.h - <<_ACEOF >conftest.c | |
17573 | ||
17574 | ||
17575 | #include <linux/xattr.h> | |
17576 | ||
17577 | int get(const struct xattr_handler *handler, | |
17578 | struct dentry *dentry, const char *name, | |
17579 | void *buffer, size_t size) { return 0; } | |
17580 | static const struct xattr_handler | |
17581 | xops __attribute__ ((unused)) = { | |
17582 | .get = get, | |
17583 | }; | |
17584 | ||
17585 | int | |
17586 | main (void) | |
17587 | { | |
17588 | ||
17589 | ||
17590 | ; | |
17591 | return 0; | |
17592 | } | |
17593 | ||
17594 | _ACEOF | |
17595 | ||
17596 | ||
17597 | ||
17598 | cat - <<_ACEOF >conftest.h | |
17599 | ||
17600 | _ACEOF | |
17601 | ||
17602 | ||
17603 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17604 | echo "obj-m := conftest.o" >build/Makefile | |
17605 | modpost_flag='' | |
17606 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17607 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17608 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17609 | (eval $ac_try) 2>&5 | |
17610 | ac_status=$? | |
17611 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17612 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17613 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17614 | (eval $ac_try) 2>&5 | |
17615 | ac_status=$? | |
17616 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17617 | test $ac_status = 0; }; }; then : | |
17618 | ||
17619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17620 | $as_echo "yes" >&6; } | |
17621 | ||
17622 | $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h | |
17623 | ||
17624 | ||
17625 | else | |
17626 | $as_echo "$as_me: failed program was:" >&5 | |
17627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17628 | ||
17629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17630 | $as_echo "no" >&6; } | |
17631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5 | |
17632 | $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; } | |
17633 | ||
17634 | ||
17635 | cat confdefs.h - <<_ACEOF >conftest.c | |
17636 | ||
17637 | ||
17638 | #include <linux/xattr.h> | |
17639 | ||
17640 | int get(struct dentry *dentry, const char *name, | |
17641 | void *buffer, size_t size, int handler_flags) | |
17642 | { return 0; } | |
17643 | static const struct xattr_handler | |
17644 | xops __attribute__ ((unused)) = { | |
17645 | .get = get, | |
17646 | }; | |
17647 | ||
17648 | int | |
17649 | main (void) | |
17650 | { | |
17651 | ||
17652 | ||
17653 | ; | |
17654 | return 0; | |
17655 | } | |
17656 | ||
17657 | _ACEOF | |
17658 | ||
17659 | ||
17660 | ||
17661 | cat - <<_ACEOF >conftest.h | |
17662 | ||
17663 | _ACEOF | |
17664 | ||
17665 | ||
17666 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17667 | echo "obj-m := conftest.o" >build/Makefile | |
17668 | modpost_flag='' | |
17669 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17670 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17671 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17672 | (eval $ac_try) 2>&5 | |
17673 | ac_status=$? | |
17674 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17675 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
17681 | ||
17682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17683 | $as_echo "yes" >&6; } | |
17684 | ||
17685 | $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h | |
17686 | ||
17687 | ||
17688 | else | |
17689 | $as_echo "$as_me: failed program was:" >&5 | |
17690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17691 | ||
17692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17693 | $as_echo "no" >&6; } | |
17694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5 | |
17695 | $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; } | |
17696 | ||
17697 | ||
17698 | cat confdefs.h - <<_ACEOF >conftest.c | |
17699 | ||
17700 | ||
17701 | #include <linux/xattr.h> | |
17702 | ||
17703 | int get(struct inode *ip, const char *name, | |
17704 | void *buffer, size_t size) { return 0; } | |
17705 | static const struct xattr_handler | |
17706 | xops __attribute__ ((unused)) = { | |
17707 | .get = get, | |
17708 | }; | |
17709 | ||
17710 | int | |
17711 | main (void) | |
17712 | { | |
17713 | ||
17714 | ||
17715 | ; | |
17716 | return 0; | |
17717 | } | |
17718 | ||
17719 | _ACEOF | |
17720 | ||
17721 | ||
17722 | ||
17723 | cat - <<_ACEOF >conftest.h | |
17724 | ||
17725 | _ACEOF | |
17726 | ||
17727 | ||
17728 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17729 | echo "obj-m := conftest.o" >build/Makefile | |
17730 | modpost_flag='' | |
17731 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17732 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17733 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17734 | (eval $ac_try) 2>&5 | |
17735 | ac_status=$? | |
17736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17737 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17738 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17739 | (eval $ac_try) 2>&5 | |
17740 | ac_status=$? | |
17741 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17742 | test $ac_status = 0; }; }; then : | |
17743 | ||
17744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17745 | $as_echo "yes" >&6; } | |
17746 | ||
17747 | $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h | |
17748 | ||
17749 | ||
17750 | else | |
17751 | $as_echo "$as_me: failed program was:" >&5 | |
17752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17753 | ||
17754 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
17755 | ||
17756 | ||
17757 | ||
17758 | fi | |
17759 | rm -Rf build | |
17760 | ||
17761 | ||
17762 | ||
17763 | ||
17764 | ||
17765 | fi | |
17766 | rm -Rf build | |
17767 | ||
17768 | ||
17769 | ||
17770 | ||
17771 | ||
17772 | fi | |
17773 | rm -Rf build | |
17774 | ||
17775 | ||
17776 | ||
17777 | ||
17778 | ||
17779 | fi | |
17780 | rm -Rf build | |
17781 | ||
17782 | ||
17783 | ||
17784 | ||
17785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5 | |
17786 | $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; } | |
17787 | ||
17788 | ||
17789 | cat confdefs.h - <<_ACEOF >conftest.c | |
17790 | ||
17791 | ||
17792 | #include <linux/xattr.h> | |
17793 | ||
17794 | int set(const struct xattr_handler *handler, | |
17795 | struct dentry *dentry, struct inode *inode, | |
17796 | const char *name, const void *buffer, | |
17797 | size_t size, int flags) | |
17798 | { return 0; } | |
17799 | static const struct xattr_handler | |
17800 | xops __attribute__ ((unused)) = { | |
17801 | .set = set, | |
17802 | }; | |
17803 | ||
17804 | int | |
17805 | main (void) | |
17806 | { | |
17807 | ||
17808 | ||
17809 | ; | |
17810 | return 0; | |
17811 | } | |
17812 | ||
17813 | _ACEOF | |
17814 | ||
17815 | ||
17816 | ||
17817 | cat - <<_ACEOF >conftest.h | |
17818 | ||
17819 | _ACEOF | |
17820 | ||
17821 | ||
17822 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17823 | echo "obj-m := conftest.o" >build/Makefile | |
17824 | modpost_flag='' | |
17825 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17826 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17827 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17828 | (eval $ac_try) 2>&5 | |
17829 | ac_status=$? | |
17830 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17831 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17832 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17833 | (eval $ac_try) 2>&5 | |
17834 | ac_status=$? | |
17835 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17836 | test $ac_status = 0; }; }; then : | |
17837 | ||
17838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17839 | $as_echo "yes" >&6; } | |
17840 | ||
17841 | $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h | |
17842 | ||
17843 | ||
17844 | else | |
17845 | $as_echo "$as_me: failed program was:" >&5 | |
17846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17847 | ||
17848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5 | |
17849 | $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; } | |
17850 | ||
17851 | ||
17852 | cat confdefs.h - <<_ACEOF >conftest.c | |
17853 | ||
17854 | ||
17855 | #include <linux/xattr.h> | |
17856 | ||
17857 | int set(const struct xattr_handler *handler, | |
17858 | struct dentry *dentry, const char *name, | |
17859 | const void *buffer, size_t size, int flags) | |
17860 | { return 0; } | |
17861 | static const struct xattr_handler | |
17862 | xops __attribute__ ((unused)) = { | |
17863 | .set = set, | |
17864 | }; | |
17865 | ||
17866 | int | |
17867 | main (void) | |
17868 | { | |
17869 | ||
17870 | ||
17871 | ; | |
17872 | return 0; | |
17873 | } | |
17874 | ||
17875 | _ACEOF | |
17876 | ||
17877 | ||
17878 | ||
17879 | cat - <<_ACEOF >conftest.h | |
17880 | ||
17881 | _ACEOF | |
17882 | ||
17883 | ||
17884 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17885 | echo "obj-m := conftest.o" >build/Makefile | |
17886 | modpost_flag='' | |
17887 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17888 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17889 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17890 | (eval $ac_try) 2>&5 | |
17891 | ac_status=$? | |
17892 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17893 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17894 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17895 | (eval $ac_try) 2>&5 | |
17896 | ac_status=$? | |
17897 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17898 | test $ac_status = 0; }; }; then : | |
17899 | ||
17900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17901 | $as_echo "yes" >&6; } | |
17902 | ||
17903 | $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h | |
17904 | ||
17905 | ||
17906 | else | |
17907 | $as_echo "$as_me: failed program was:" >&5 | |
17908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17909 | ||
17910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17911 | $as_echo "no" >&6; } | |
17912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5 | |
17913 | $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; } | |
17914 | ||
17915 | ||
17916 | cat confdefs.h - <<_ACEOF >conftest.c | |
17917 | ||
17918 | ||
17919 | #include <linux/xattr.h> | |
17920 | ||
17921 | int set(struct dentry *dentry, const char *name, | |
17922 | const void *buffer, size_t size, int flags, | |
17923 | int handler_flags) { return 0; } | |
17924 | static const struct xattr_handler | |
17925 | xops __attribute__ ((unused)) = { | |
17926 | .set = set, | |
17927 | }; | |
17928 | ||
17929 | int | |
17930 | main (void) | |
17931 | { | |
17932 | ||
17933 | ||
17934 | ; | |
17935 | return 0; | |
17936 | } | |
17937 | ||
17938 | _ACEOF | |
17939 | ||
17940 | ||
17941 | ||
17942 | cat - <<_ACEOF >conftest.h | |
17943 | ||
17944 | _ACEOF | |
17945 | ||
17946 | ||
17947 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17948 | echo "obj-m := conftest.o" >build/Makefile | |
17949 | modpost_flag='' | |
17950 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17951 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17952 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17953 | (eval $ac_try) 2>&5 | |
17954 | ac_status=$? | |
17955 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17956 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
17962 | ||
17963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17964 | $as_echo "yes" >&6; } | |
17965 | ||
17966 | $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h | |
17967 | ||
17968 | ||
17969 | else | |
17970 | $as_echo "$as_me: failed program was:" >&5 | |
17971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17972 | ||
17973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17974 | $as_echo "no" >&6; } | |
17975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5 | |
17976 | $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; } | |
17977 | ||
17978 | ||
17979 | cat confdefs.h - <<_ACEOF >conftest.c | |
17980 | ||
17981 | ||
17982 | #include <linux/xattr.h> | |
17983 | ||
17984 | int set(struct inode *ip, const char *name, | |
17985 | const void *buffer, size_t size, int flags) | |
17986 | { return 0; } | |
17987 | static const struct xattr_handler | |
17988 | xops __attribute__ ((unused)) = { | |
17989 | .set = set, | |
17990 | }; | |
17991 | ||
17992 | int | |
17993 | main (void) | |
17994 | { | |
17995 | ||
17996 | ||
17997 | ; | |
17998 | return 0; | |
17999 | } | |
18000 | ||
18001 | _ACEOF | |
18002 | ||
18003 | ||
18004 | ||
18005 | cat - <<_ACEOF >conftest.h | |
18006 | ||
18007 | _ACEOF | |
18008 | ||
18009 | ||
18010 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18011 | echo "obj-m := conftest.o" >build/Makefile | |
18012 | modpost_flag='' | |
18013 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18014 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18015 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18016 | (eval $ac_try) 2>&5 | |
18017 | ac_status=$? | |
18018 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18019 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
18025 | ||
18026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18027 | $as_echo "yes" >&6; } | |
18028 | ||
18029 | $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h | |
18030 | ||
18031 | ||
18032 | else | |
18033 | $as_echo "$as_me: failed program was:" >&5 | |
18034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18035 | ||
18036 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
18037 | ||
18038 | ||
18039 | ||
18040 | fi | |
18041 | rm -Rf build | |
18042 | ||
18043 | ||
18044 | ||
18045 | ||
18046 | ||
18047 | fi | |
18048 | rm -Rf build | |
18049 | ||
18050 | ||
18051 | ||
18052 | ||
18053 | ||
18054 | fi | |
18055 | rm -Rf build | |
18056 | ||
18057 | ||
18058 | ||
18059 | ||
18060 | ||
18061 | fi | |
18062 | rm -Rf build | |
18063 | ||
18064 | ||
18065 | ||
18066 | ||
18067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5 | |
18068 | $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; } | |
18069 | ||
18070 | ||
18071 | cat confdefs.h - <<_ACEOF >conftest.c | |
18072 | ||
18073 | ||
18074 | #include <linux/xattr.h> | |
18075 | ||
18076 | bool list(struct dentry *dentry) { return 0; } | |
18077 | static const struct xattr_handler | |
18078 | xops __attribute__ ((unused)) = { | |
18079 | .list = list, | |
18080 | }; | |
18081 | ||
18082 | int | |
18083 | main (void) | |
18084 | { | |
18085 | ||
18086 | ||
18087 | ; | |
18088 | return 0; | |
18089 | } | |
18090 | ||
18091 | _ACEOF | |
18092 | ||
18093 | ||
18094 | ||
18095 | cat - <<_ACEOF >conftest.h | |
18096 | ||
18097 | _ACEOF | |
18098 | ||
18099 | ||
18100 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18101 | echo "obj-m := conftest.o" >build/Makefile | |
18102 | modpost_flag='' | |
18103 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18104 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18105 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18106 | (eval $ac_try) 2>&5 | |
18107 | ac_status=$? | |
18108 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18109 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18110 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18111 | (eval $ac_try) 2>&5 | |
18112 | ac_status=$? | |
18113 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18114 | test $ac_status = 0; }; }; then : | |
18115 | ||
18116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18117 | $as_echo "yes" >&6; } | |
18118 | ||
18119 | $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h | |
18120 | ||
18121 | ||
18122 | else | |
18123 | $as_echo "$as_me: failed program was:" >&5 | |
18124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18125 | ||
18126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18127 | $as_echo "no" >&6; } | |
18128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5 | |
18129 | $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; } | |
18130 | ||
18131 | ||
18132 | cat confdefs.h - <<_ACEOF >conftest.c | |
18133 | ||
18134 | ||
18135 | #include <linux/xattr.h> | |
18136 | ||
18137 | size_t list(const struct xattr_handler *handler, | |
18138 | struct dentry *dentry, char *list, size_t list_size, | |
18139 | const char *name, size_t name_len) { return 0; } | |
18140 | static const struct xattr_handler | |
18141 | xops __attribute__ ((unused)) = { | |
18142 | .list = list, | |
18143 | }; | |
18144 | ||
18145 | int | |
18146 | main (void) | |
18147 | { | |
18148 | ||
18149 | ||
18150 | ; | |
18151 | return 0; | |
18152 | } | |
18153 | ||
18154 | _ACEOF | |
18155 | ||
18156 | ||
18157 | ||
18158 | cat - <<_ACEOF >conftest.h | |
18159 | ||
18160 | _ACEOF | |
18161 | ||
18162 | ||
18163 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18164 | echo "obj-m := conftest.o" >build/Makefile | |
18165 | modpost_flag='' | |
18166 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18167 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18168 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18169 | (eval $ac_try) 2>&5 | |
18170 | ac_status=$? | |
18171 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18172 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
18178 | ||
18179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18180 | $as_echo "yes" >&6; } | |
18181 | ||
18182 | $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h | |
18183 | ||
18184 | ||
18185 | else | |
18186 | $as_echo "$as_me: failed program was:" >&5 | |
18187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18188 | ||
18189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18190 | $as_echo "no" >&6; } | |
18191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5 | |
18192 | $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; } | |
18193 | ||
18194 | ||
18195 | cat confdefs.h - <<_ACEOF >conftest.c | |
18196 | ||
18197 | ||
18198 | #include <linux/xattr.h> | |
18199 | ||
18200 | size_t list(struct dentry *dentry, | |
18201 | char *list, size_t list_size, | |
18202 | const char *name, size_t name_len, | |
18203 | int handler_flags) { return 0; } | |
18204 | static const struct xattr_handler | |
18205 | xops __attribute__ ((unused)) = { | |
18206 | .list = list, | |
18207 | }; | |
18208 | ||
18209 | int | |
18210 | main (void) | |
18211 | { | |
18212 | ||
18213 | ||
18214 | ; | |
18215 | return 0; | |
18216 | } | |
18217 | ||
18218 | _ACEOF | |
18219 | ||
18220 | ||
18221 | ||
18222 | cat - <<_ACEOF >conftest.h | |
18223 | ||
18224 | _ACEOF | |
18225 | ||
18226 | ||
18227 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18228 | echo "obj-m := conftest.o" >build/Makefile | |
18229 | modpost_flag='' | |
18230 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18231 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18232 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18233 | (eval $ac_try) 2>&5 | |
18234 | ac_status=$? | |
18235 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18236 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18237 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18238 | (eval $ac_try) 2>&5 | |
18239 | ac_status=$? | |
18240 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18241 | test $ac_status = 0; }; }; then : | |
18242 | ||
18243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18244 | $as_echo "yes" >&6; } | |
18245 | ||
18246 | $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h | |
18247 | ||
18248 | ||
18249 | else | |
18250 | $as_echo "$as_me: failed program was:" >&5 | |
18251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18252 | ||
18253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18254 | $as_echo "no" >&6; } | |
18255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5 | |
18256 | $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; } | |
18257 | ||
18258 | ||
18259 | cat confdefs.h - <<_ACEOF >conftest.c | |
18260 | ||
18261 | ||
18262 | #include <linux/xattr.h> | |
18263 | ||
18264 | size_t list(struct inode *ip, char *lst, | |
18265 | size_t list_size, const char *name, | |
18266 | size_t name_len) { return 0; } | |
18267 | static const struct xattr_handler | |
18268 | xops __attribute__ ((unused)) = { | |
18269 | .list = list, | |
18270 | }; | |
18271 | ||
18272 | int | |
18273 | main (void) | |
18274 | { | |
18275 | ||
18276 | ||
18277 | ; | |
18278 | return 0; | |
18279 | } | |
18280 | ||
18281 | _ACEOF | |
18282 | ||
18283 | ||
18284 | ||
18285 | cat - <<_ACEOF >conftest.h | |
18286 | ||
18287 | _ACEOF | |
18288 | ||
18289 | ||
18290 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18291 | echo "obj-m := conftest.o" >build/Makefile | |
18292 | modpost_flag='' | |
18293 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18294 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18295 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18296 | (eval $ac_try) 2>&5 | |
18297 | ac_status=$? | |
18298 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18299 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
18305 | ||
18306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18307 | $as_echo "yes" >&6; } | |
18308 | ||
18309 | $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h | |
18310 | ||
18311 | ||
18312 | else | |
18313 | $as_echo "$as_me: failed program was:" >&5 | |
18314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18315 | ||
18316 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
18317 | ||
18318 | ||
18319 | ||
18320 | fi | |
18321 | rm -Rf build | |
18322 | ||
18323 | ||
18324 | ||
18325 | ||
18326 | ||
18327 | fi | |
18328 | rm -Rf build | |
18329 | ||
18330 | ||
18331 | ||
18332 | ||
18333 | ||
18334 | fi | |
18335 | rm -Rf build | |
18336 | ||
18337 | ||
18338 | ||
18339 | ||
18340 | ||
18341 | fi | |
18342 | rm -Rf build | |
18343 | ||
18344 | ||
18345 | ||
18346 | ||
18347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5 | |
18348 | $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; } | |
18349 | ||
18350 | ||
18351 | cat confdefs.h - <<_ACEOF >conftest.c | |
18352 | ||
18353 | ||
18354 | #include <linux/fs.h> | |
18355 | ||
18356 | int | |
18357 | main (void) | |
18358 | { | |
18359 | ||
18360 | struct inode *ip = NULL; | |
18361 | (void) inode_owner_or_capable(ip); | |
18362 | ||
18363 | ; | |
18364 | return 0; | |
18365 | } | |
18366 | ||
18367 | _ACEOF | |
18368 | ||
18369 | ||
18370 | ||
18371 | cat - <<_ACEOF >conftest.h | |
18372 | ||
18373 | _ACEOF | |
18374 | ||
18375 | ||
18376 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18377 | echo "obj-m := conftest.o" >build/Makefile | |
18378 | modpost_flag='' | |
18379 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18380 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18381 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18382 | (eval $ac_try) 2>&5 | |
18383 | ac_status=$? | |
18384 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18385 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18386 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18387 | (eval $ac_try) 2>&5 | |
18388 | ac_status=$? | |
18389 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18390 | test $ac_status = 0; }; }; then : | |
18391 | ||
18392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18393 | $as_echo "yes" >&6; } | |
18394 | ||
18395 | $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h | |
18396 | ||
18397 | ||
18398 | else | |
18399 | $as_echo "$as_me: failed program was:" >&5 | |
18400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18401 | ||
18402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18403 | $as_echo "no" >&6; } | |
18404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5 | |
18405 | $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; } | |
18406 | ||
18407 | ||
18408 | cat confdefs.h - <<_ACEOF >conftest.c | |
18409 | ||
18410 | ||
18411 | #include <linux/fs.h> | |
18412 | #include <linux/sched.h> | |
18413 | ||
18414 | int | |
18415 | main (void) | |
18416 | { | |
18417 | ||
18418 | struct inode *ip = NULL; | |
18419 | (void) is_owner_or_cap(ip); | |
18420 | ||
18421 | ; | |
18422 | return 0; | |
18423 | } | |
18424 | ||
18425 | _ACEOF | |
18426 | ||
18427 | ||
18428 | ||
18429 | cat - <<_ACEOF >conftest.h | |
18430 | ||
18431 | _ACEOF | |
18432 | ||
18433 | ||
18434 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18435 | echo "obj-m := conftest.o" >build/Makefile | |
18436 | modpost_flag='' | |
18437 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18438 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18439 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18440 | (eval $ac_try) 2>&5 | |
18441 | ac_status=$? | |
18442 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18443 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18444 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18445 | (eval $ac_try) 2>&5 | |
18446 | ac_status=$? | |
18447 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18448 | test $ac_status = 0; }; }; then : | |
18449 | ||
18450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18451 | $as_echo "yes" >&6; } | |
18452 | ||
18453 | $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h | |
18454 | ||
18455 | ||
18456 | else | |
18457 | $as_echo "$as_me: failed program was:" >&5 | |
18458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18459 | ||
18460 | as_fn_error $? "no - Please file a bug report at | |
18461 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
18462 | ||
18463 | ||
18464 | ||
18465 | fi | |
18466 | rm -Rf build | |
18467 | ||
18468 | ||
18469 | ||
18470 | ||
18471 | ||
18472 | fi | |
18473 | rm -Rf build | |
18474 | ||
18475 | ||
18476 | ||
18477 | ||
18478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5 | |
18479 | $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; } | |
18480 | ||
18481 | ||
18482 | cat confdefs.h - <<_ACEOF >conftest.c | |
18483 | ||
18484 | ||
18485 | #include <linux/cred.h> | |
18486 | #include <linux/fs.h> | |
18487 | #include <linux/posix_acl_xattr.h> | |
18488 | ||
18489 | int | |
18490 | main (void) | |
18491 | { | |
18492 | ||
18493 | posix_acl_from_xattr(&init_user_ns, NULL, 0); | |
18494 | ||
18495 | ; | |
18496 | return 0; | |
18497 | } | |
18498 | ||
18499 | _ACEOF | |
18500 | ||
18501 | ||
18502 | ||
18503 | cat - <<_ACEOF >conftest.h | |
18504 | ||
18505 | _ACEOF | |
18506 | ||
18507 | ||
18508 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18509 | echo "obj-m := conftest.o" >build/Makefile | |
18510 | modpost_flag='' | |
18511 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18512 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18513 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18514 | (eval $ac_try) 2>&5 | |
18515 | ac_status=$? | |
18516 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18517 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18518 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18519 | (eval $ac_try) 2>&5 | |
18520 | ac_status=$? | |
18521 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18522 | test $ac_status = 0; }; }; then : | |
18523 | ||
18524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18525 | $as_echo "yes" >&6; } | |
18526 | ||
18527 | $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h | |
18528 | ||
18529 | ||
18530 | else | |
18531 | $as_echo "$as_me: failed program was:" >&5 | |
18532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18533 | ||
18534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18535 | $as_echo "no" >&6; } | |
18536 | ||
18537 | ||
18538 | ||
18539 | fi | |
18540 | rm -Rf build | |
18541 | ||
18542 | ||
18543 | ||
18544 | ||
18545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5 | |
18546 | $as_echo_n "checking whether posix_acl_release() is available... " >&6; } | |
18547 | ||
18548 | ||
18549 | cat confdefs.h - <<_ACEOF >conftest.c | |
18550 | ||
18551 | ||
18552 | #include <linux/cred.h> | |
18553 | #include <linux/fs.h> | |
18554 | #include <linux/posix_acl.h> | |
18555 | ||
18556 | int | |
18557 | main (void) | |
18558 | { | |
18559 | ||
18560 | struct posix_acl* tmp = posix_acl_alloc(1, 0); | |
18561 | posix_acl_release(tmp); | |
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_RELEASE 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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5 | |
18613 | $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; } | |
18614 | ||
18615 | ||
18616 | cat confdefs.h - <<_ACEOF >conftest.c | |
18617 | ||
18618 | ||
18619 | #include <linux/cred.h> | |
18620 | #include <linux/fs.h> | |
18621 | #include <linux/posix_acl.h> | |
18622 | ||
18623 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
18624 | ||
18625 | int | |
18626 | main (void) | |
18627 | { | |
18628 | ||
18629 | struct posix_acl* tmp = posix_acl_alloc(1, 0); | |
18630 | posix_acl_release(tmp); | |
18631 | ||
18632 | ; | |
18633 | return 0; | |
18634 | } | |
18635 | ||
18636 | _ACEOF | |
18637 | ||
18638 | ||
18639 | ||
18640 | cat - <<_ACEOF >conftest.h | |
18641 | ||
18642 | _ACEOF | |
18643 | ||
18644 | ||
18645 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18646 | echo "obj-m := conftest.o" >build/Makefile | |
18647 | modpost_flag='' | |
18648 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18649 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18650 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18651 | (eval $ac_try) 2>&5 | |
18652 | ac_status=$? | |
18653 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18654 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18655 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18656 | (eval $ac_try) 2>&5 | |
18657 | ac_status=$? | |
18658 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18659 | test $ac_status = 0; }; }; then : | |
18660 | ||
18661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18662 | $as_echo "no" >&6; } | |
18663 | ||
18664 | else | |
18665 | $as_echo "$as_me: failed program was:" >&5 | |
18666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18667 | ||
18668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18669 | $as_echo "yes" >&6; } | |
18670 | ||
18671 | $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h | |
18672 | ||
18673 | ||
18674 | ||
18675 | ||
18676 | fi | |
18677 | rm -Rf build | |
18678 | ||
18679 | ||
18680 | ||
18681 | ||
18682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5 | |
18683 | $as_echo_n "checking whether set_cached_acl() is usable... " >&6; } | |
18684 | ||
18685 | ||
18686 | cat confdefs.h - <<_ACEOF >conftest.c | |
18687 | ||
18688 | ||
18689 | #include <linux/module.h> | |
18690 | #include <linux/cred.h> | |
18691 | #include <linux/fs.h> | |
18692 | #include <linux/posix_acl.h> | |
18693 | ||
18694 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
18695 | ||
18696 | int | |
18697 | main (void) | |
18698 | { | |
18699 | ||
18700 | struct inode *ip = NULL; | |
18701 | struct posix_acl *acl = posix_acl_alloc(1, 0); | |
18702 | set_cached_acl(ip, ACL_TYPE_ACCESS, acl); | |
18703 | forget_cached_acl(ip, ACL_TYPE_ACCESS); | |
18704 | ||
18705 | ; | |
18706 | return 0; | |
18707 | } | |
18708 | ||
18709 | _ACEOF | |
18710 | ||
18711 | ||
18712 | ||
18713 | cat - <<_ACEOF >conftest.h | |
18714 | ||
18715 | _ACEOF | |
18716 | ||
18717 | ||
18718 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18719 | echo "obj-m := conftest.o" >build/Makefile | |
18720 | modpost_flag='' | |
18721 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18722 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
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; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18728 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18729 | (eval $ac_try) 2>&5 | |
18730 | ac_status=$? | |
18731 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18732 | test $ac_status = 0; }; }; then : | |
18733 | ||
18734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18735 | $as_echo "yes" >&6; } | |
18736 | ||
18737 | $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h | |
18738 | ||
18739 | ||
18740 | else | |
18741 | $as_echo "$as_me: failed program was:" >&5 | |
18742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18743 | ||
18744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18745 | $as_echo "no" >&6; } | |
18746 | ||
18747 | ||
18748 | ||
18749 | fi | |
18750 | rm -Rf build | |
18751 | ||
18752 | ||
18753 | ||
18754 | ||
18755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5 | |
18756 | $as_echo_n "checking whether posix_acl_chmod exists... " >&6; } | |
18757 | ||
18758 | ||
18759 | cat confdefs.h - <<_ACEOF >conftest.c | |
18760 | ||
18761 | ||
18762 | #include <linux/fs.h> | |
18763 | #include <linux/posix_acl.h> | |
18764 | ||
18765 | int | |
18766 | main (void) | |
18767 | { | |
18768 | ||
18769 | posix_acl_chmod(NULL, 0, 0) | |
18770 | ||
18771 | ; | |
18772 | return 0; | |
18773 | } | |
18774 | ||
18775 | _ACEOF | |
18776 | ||
18777 | ||
18778 | ||
18779 | cat - <<_ACEOF >conftest.h | |
18780 | ||
18781 | _ACEOF | |
18782 | ||
18783 | ||
18784 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18785 | echo "obj-m := conftest.o" >build/Makefile | |
18786 | modpost_flag='' | |
18787 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18788 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18789 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18790 | (eval $ac_try) 2>&5 | |
18791 | ac_status=$? | |
18792 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18793 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18794 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18795 | (eval $ac_try) 2>&5 | |
18796 | ac_status=$? | |
18797 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18798 | test $ac_status = 0; }; }; then : | |
18799 | ||
18800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18801 | $as_echo "yes" >&6; } | |
18802 | ||
18803 | $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h | |
18804 | ||
18805 | ||
18806 | else | |
18807 | $as_echo "$as_me: failed program was:" >&5 | |
18808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18809 | ||
18810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18811 | $as_echo "no" >&6; } | |
18812 | ||
18813 | ||
18814 | ||
18815 | fi | |
18816 | rm -Rf build | |
18817 | ||
18818 | ||
18819 | ||
18820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5 | |
18821 | $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; } | |
18822 | ||
18823 | ||
18824 | cat confdefs.h - <<_ACEOF >conftest.c | |
18825 | ||
18826 | ||
18827 | #include <linux/fs.h> | |
18828 | #include <linux/posix_acl.h> | |
18829 | ||
18830 | int | |
18831 | main (void) | |
18832 | { | |
18833 | ||
18834 | __posix_acl_chmod(NULL, 0, 0) | |
18835 | ||
18836 | ; | |
18837 | return 0; | |
18838 | } | |
18839 | ||
18840 | _ACEOF | |
18841 | ||
18842 | ||
18843 | ||
18844 | cat - <<_ACEOF >conftest.h | |
18845 | ||
18846 | _ACEOF | |
18847 | ||
18848 | ||
18849 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18850 | echo "obj-m := conftest.o" >build/Makefile | |
18851 | modpost_flag='' | |
18852 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18853 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18854 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18855 | (eval $ac_try) 2>&5 | |
18856 | ac_status=$? | |
18857 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18858 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18859 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18860 | (eval $ac_try) 2>&5 | |
18861 | ac_status=$? | |
18862 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18863 | test $ac_status = 0; }; }; then : | |
18864 | ||
18865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18866 | $as_echo "yes" >&6; } | |
18867 | ||
18868 | $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h | |
18869 | ||
18870 | ||
18871 | else | |
18872 | $as_echo "$as_me: failed program was:" >&5 | |
18873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18874 | ||
18875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18876 | $as_echo "no" >&6; } | |
18877 | ||
18878 | ||
18879 | ||
18880 | fi | |
18881 | rm -Rf build | |
18882 | ||
18883 | ||
18884 | ||
18885 | ||
18886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5 | |
18887 | $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; } | |
18888 | ||
18889 | ||
18890 | cat confdefs.h - <<_ACEOF >conftest.c | |
18891 | ||
18892 | ||
18893 | #include <linux/fs.h> | |
18894 | #include <linux/posix_acl.h> | |
18895 | ||
18896 | int | |
18897 | main (void) | |
18898 | { | |
18899 | ||
18900 | umode_t tmp; | |
18901 | posix_acl_equiv_mode(NULL,&tmp); | |
18902 | ||
18903 | ; | |
18904 | return 0; | |
18905 | } | |
18906 | ||
18907 | _ACEOF | |
18908 | ||
18909 | ||
18910 | ||
18911 | cat - <<_ACEOF >conftest.h | |
18912 | ||
18913 | _ACEOF | |
18914 | ||
18915 | ||
18916 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18917 | echo "obj-m := conftest.o" >build/Makefile | |
18918 | modpost_flag='' | |
18919 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18920 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18921 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18922 | (eval $ac_try) 2>&5 | |
18923 | ac_status=$? | |
18924 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18925 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18926 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18927 | (eval $ac_try) 2>&5 | |
18928 | ac_status=$? | |
18929 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18930 | test $ac_status = 0; }; }; then : | |
18931 | ||
18932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18933 | $as_echo "yes" >&6; } | |
18934 | ||
18935 | $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h | |
18936 | ||
18937 | ||
18938 | else | |
18939 | $as_echo "$as_me: failed program was:" >&5 | |
18940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18941 | ||
18942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18943 | $as_echo "no" >&6; } | |
18944 | ||
18945 | ||
18946 | ||
18947 | fi | |
18948 | rm -Rf build | |
18949 | ||
18950 | ||
18951 | ||
18952 | ||
18953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5 | |
18954 | $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; } | |
18955 | ||
18956 | ||
18957 | cat confdefs.h - <<_ACEOF >conftest.c | |
18958 | ||
18959 | ||
18960 | #include <linux/fs.h> | |
18961 | #include <linux/posix_acl.h> | |
18962 | ||
18963 | int | |
18964 | main (void) | |
18965 | { | |
18966 | ||
18967 | struct user_namespace *user_ns = NULL; | |
18968 | const struct posix_acl *acl = NULL; | |
18969 | int error; | |
18970 | ||
18971 | error = posix_acl_valid(user_ns, acl); | |
18972 | ||
18973 | ; | |
18974 | return 0; | |
18975 | } | |
18976 | ||
18977 | _ACEOF | |
18978 | ||
18979 | ||
18980 | ||
18981 | cat - <<_ACEOF >conftest.h | |
18982 | ||
18983 | _ACEOF | |
18984 | ||
18985 | ||
18986 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18987 | echo "obj-m := conftest.o" >build/Makefile | |
18988 | modpost_flag='' | |
18989 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18990 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18991 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18992 | (eval $ac_try) 2>&5 | |
18993 | ac_status=$? | |
18994 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18995 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18996 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18997 | (eval $ac_try) 2>&5 | |
18998 | ac_status=$? | |
18999 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19000 | test $ac_status = 0; }; }; then : | |
19001 | ||
19002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19003 | $as_echo "yes" >&6; } | |
19004 | ||
19005 | $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h | |
19006 | ||
19007 | ||
19008 | else | |
19009 | $as_echo "$as_me: failed program was:" >&5 | |
19010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19011 | ||
19012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19013 | $as_echo "no" >&6; } | |
19014 | ||
19015 | ||
19016 | ||
19017 | fi | |
19018 | rm -Rf build | |
19019 | ||
19020 | ||
19021 | ||
19022 | ||
19023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5 | |
19024 | $as_echo_n "checking whether iops->permission() exists... " >&6; } | |
19025 | ||
19026 | ||
19027 | cat confdefs.h - <<_ACEOF >conftest.c | |
19028 | ||
19029 | ||
19030 | #include <linux/fs.h> | |
19031 | ||
19032 | int permission_fn(struct inode *inode, int mask) { return 0; } | |
19033 | ||
19034 | static const struct inode_operations | |
19035 | iops __attribute__ ((unused)) = { | |
19036 | .permission = permission_fn, | |
19037 | }; | |
19038 | ||
19039 | int | |
19040 | main (void) | |
19041 | { | |
19042 | ||
19043 | ||
19044 | ; | |
19045 | return 0; | |
19046 | } | |
19047 | ||
19048 | _ACEOF | |
19049 | ||
19050 | ||
19051 | ||
19052 | cat - <<_ACEOF >conftest.h | |
19053 | ||
19054 | _ACEOF | |
19055 | ||
19056 | ||
19057 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19058 | echo "obj-m := conftest.o" >build/Makefile | |
19059 | modpost_flag='' | |
19060 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19061 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19062 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19063 | (eval $ac_try) 2>&5 | |
19064 | ac_status=$? | |
19065 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19066 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19067 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19068 | (eval $ac_try) 2>&5 | |
19069 | ac_status=$? | |
19070 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19071 | test $ac_status = 0; }; }; then : | |
19072 | ||
19073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19074 | $as_echo "yes" >&6; } | |
19075 | ||
19076 | $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h | |
19077 | ||
19078 | ||
19079 | else | |
19080 | $as_echo "$as_me: failed program was:" >&5 | |
19081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19082 | ||
19083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19084 | $as_echo "no" >&6; } | |
19085 | ||
19086 | ||
19087 | ||
19088 | fi | |
19089 | rm -Rf build | |
19090 | ||
19091 | ||
19092 | ||
19093 | ||
19094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5 | |
19095 | $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; } | |
19096 | ||
19097 | ||
19098 | cat confdefs.h - <<_ACEOF >conftest.c | |
19099 | ||
19100 | ||
19101 | #include <linux/fs.h> | |
19102 | ||
19103 | int permission_fn(struct inode *inode, int mask, | |
19104 | struct nameidata *nd) { return 0; } | |
19105 | ||
19106 | static const struct inode_operations | |
19107 | iops __attribute__ ((unused)) = { | |
19108 | .permission = permission_fn, | |
19109 | }; | |
19110 | ||
19111 | int | |
19112 | main (void) | |
19113 | { | |
19114 | ||
19115 | ||
19116 | ; | |
19117 | return 0; | |
19118 | } | |
19119 | ||
19120 | _ACEOF | |
19121 | ||
19122 | ||
19123 | ||
19124 | cat - <<_ACEOF >conftest.h | |
19125 | ||
19126 | _ACEOF | |
19127 | ||
19128 | ||
19129 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19130 | echo "obj-m := conftest.o" >build/Makefile | |
19131 | modpost_flag='' | |
19132 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19133 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19134 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19135 | (eval $ac_try) 2>&5 | |
19136 | ac_status=$? | |
19137 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19138 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19139 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19140 | (eval $ac_try) 2>&5 | |
19141 | ac_status=$? | |
19142 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19143 | test $ac_status = 0; }; }; then : | |
19144 | ||
19145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19146 | $as_echo "yes" >&6; } | |
19147 | ||
19148 | $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h | |
19149 | ||
19150 | ||
19151 | $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h | |
19152 | ||
19153 | ||
19154 | else | |
19155 | $as_echo "$as_me: failed program was:" >&5 | |
19156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19157 | ||
19158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19159 | $as_echo "no" >&6; } | |
19160 | ||
19161 | ||
19162 | ||
19163 | fi | |
19164 | rm -Rf build | |
19165 | ||
19166 | ||
19167 | ||
19168 | ||
19169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5 | |
19170 | $as_echo_n "checking whether iops->check_acl() exists... " >&6; } | |
19171 | ||
19172 | ||
19173 | cat confdefs.h - <<_ACEOF >conftest.c | |
19174 | ||
19175 | ||
19176 | #include <linux/fs.h> | |
19177 | ||
19178 | int check_acl_fn(struct inode *inode, int mask) { return 0; } | |
19179 | ||
19180 | static const struct inode_operations | |
19181 | iops __attribute__ ((unused)) = { | |
19182 | .check_acl = check_acl_fn, | |
19183 | }; | |
19184 | ||
19185 | int | |
19186 | main (void) | |
19187 | { | |
19188 | ||
19189 | ||
19190 | ; | |
19191 | return 0; | |
19192 | } | |
19193 | ||
19194 | _ACEOF | |
19195 | ||
19196 | ||
19197 | ||
19198 | cat - <<_ACEOF >conftest.h | |
19199 | ||
19200 | _ACEOF | |
19201 | ||
19202 | ||
19203 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19204 | echo "obj-m := conftest.o" >build/Makefile | |
19205 | modpost_flag='' | |
19206 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19207 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19208 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19209 | (eval $ac_try) 2>&5 | |
19210 | ac_status=$? | |
19211 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19212 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19213 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19214 | (eval $ac_try) 2>&5 | |
19215 | ac_status=$? | |
19216 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19217 | test $ac_status = 0; }; }; then : | |
19218 | ||
19219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19220 | $as_echo "yes" >&6; } | |
19221 | ||
19222 | $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h | |
19223 | ||
19224 | ||
19225 | else | |
19226 | $as_echo "$as_me: failed program was:" >&5 | |
19227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19228 | ||
19229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19230 | $as_echo "no" >&6; } | |
19231 | ||
19232 | ||
19233 | ||
19234 | fi | |
19235 | rm -Rf build | |
19236 | ||
19237 | ||
19238 | ||
19239 | ||
19240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5 | |
19241 | $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; } | |
19242 | ||
19243 | ||
19244 | cat confdefs.h - <<_ACEOF >conftest.c | |
19245 | ||
19246 | ||
19247 | #include <linux/fs.h> | |
19248 | ||
19249 | int check_acl_fn(struct inode *inode, int mask, | |
19250 | unsigned int flags) { return 0; } | |
19251 | ||
19252 | static const struct inode_operations | |
19253 | iops __attribute__ ((unused)) = { | |
19254 | .check_acl = check_acl_fn, | |
19255 | }; | |
19256 | ||
19257 | int | |
19258 | main (void) | |
19259 | { | |
19260 | ||
19261 | ||
19262 | ; | |
19263 | return 0; | |
19264 | } | |
19265 | ||
19266 | _ACEOF | |
19267 | ||
19268 | ||
19269 | ||
19270 | cat - <<_ACEOF >conftest.h | |
19271 | ||
19272 | _ACEOF | |
19273 | ||
19274 | ||
19275 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19276 | echo "obj-m := conftest.o" >build/Makefile | |
19277 | modpost_flag='' | |
19278 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19279 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19280 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19281 | (eval $ac_try) 2>&5 | |
19282 | ac_status=$? | |
19283 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19284 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19285 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19286 | (eval $ac_try) 2>&5 | |
19287 | ac_status=$? | |
19288 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19289 | test $ac_status = 0; }; }; then : | |
19290 | ||
19291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19292 | $as_echo "yes" >&6; } | |
19293 | ||
19294 | $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h | |
19295 | ||
19296 | ||
19297 | $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h | |
19298 | ||
19299 | ||
19300 | else | |
19301 | $as_echo "$as_me: failed program was:" >&5 | |
19302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19303 | ||
19304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19305 | $as_echo "no" >&6; } | |
19306 | ||
19307 | ||
19308 | ||
19309 | fi | |
19310 | rm -Rf build | |
19311 | ||
19312 | ||
19313 | ||
19314 | ||
19315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5 | |
19316 | $as_echo_n "checking whether iops->get_acl() exists... " >&6; } | |
19317 | ||
19318 | ||
19319 | cat confdefs.h - <<_ACEOF >conftest.c | |
19320 | ||
19321 | ||
19322 | #include <linux/fs.h> | |
19323 | ||
19324 | struct posix_acl *get_acl_fn(struct inode *inode, int type) | |
19325 | { return NULL; } | |
19326 | ||
19327 | static const struct inode_operations | |
19328 | iops __attribute__ ((unused)) = { | |
19329 | .get_acl = get_acl_fn, | |
19330 | }; | |
19331 | ||
19332 | int | |
19333 | main (void) | |
19334 | { | |
19335 | ||
19336 | ||
19337 | ; | |
19338 | return 0; | |
19339 | } | |
19340 | ||
19341 | _ACEOF | |
19342 | ||
19343 | ||
19344 | ||
19345 | cat - <<_ACEOF >conftest.h | |
19346 | ||
19347 | _ACEOF | |
19348 | ||
19349 | ||
19350 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19351 | echo "obj-m := conftest.o" >build/Makefile | |
19352 | modpost_flag='' | |
19353 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19354 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19355 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19356 | (eval $ac_try) 2>&5 | |
19357 | ac_status=$? | |
19358 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19359 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19360 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19361 | (eval $ac_try) 2>&5 | |
19362 | ac_status=$? | |
19363 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19364 | test $ac_status = 0; }; }; then : | |
19365 | ||
19366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19367 | $as_echo "yes" >&6; } | |
19368 | ||
19369 | $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h | |
19370 | ||
19371 | ||
19372 | else | |
19373 | $as_echo "$as_me: failed program was:" >&5 | |
19374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19375 | ||
19376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19377 | $as_echo "no" >&6; } | |
19378 | ||
19379 | ||
19380 | ||
19381 | fi | |
19382 | rm -Rf build | |
19383 | ||
19384 | ||
19385 | ||
19386 | ||
19387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5 | |
19388 | $as_echo_n "checking whether iops->set_acl() exists... " >&6; } | |
19389 | ||
19390 | ||
19391 | cat confdefs.h - <<_ACEOF >conftest.c | |
19392 | ||
19393 | ||
19394 | #include <linux/fs.h> | |
19395 | ||
19396 | int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type) | |
19397 | { return 0; } | |
19398 | ||
19399 | static const struct inode_operations | |
19400 | iops __attribute__ ((unused)) = { | |
19401 | .set_acl = set_acl_fn, | |
19402 | }; | |
19403 | ||
19404 | int | |
19405 | main (void) | |
19406 | { | |
19407 | ||
19408 | ||
19409 | ; | |
19410 | return 0; | |
19411 | } | |
19412 | ||
19413 | _ACEOF | |
19414 | ||
19415 | ||
19416 | ||
19417 | cat - <<_ACEOF >conftest.h | |
19418 | ||
19419 | _ACEOF | |
19420 | ||
19421 | ||
19422 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19423 | echo "obj-m := conftest.o" >build/Makefile | |
19424 | modpost_flag='' | |
19425 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19426 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19427 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19428 | (eval $ac_try) 2>&5 | |
19429 | ac_status=$? | |
19430 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19431 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19432 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19433 | (eval $ac_try) 2>&5 | |
19434 | ac_status=$? | |
19435 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19436 | test $ac_status = 0; }; }; then : | |
19437 | ||
19438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19439 | $as_echo "yes" >&6; } | |
19440 | ||
19441 | $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h | |
19442 | ||
19443 | ||
19444 | else | |
19445 | $as_echo "$as_me: failed program was:" >&5 | |
19446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19447 | ||
19448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19449 | $as_echo "no" >&6; } | |
19450 | ||
19451 | ||
19452 | ||
19453 | fi | |
19454 | rm -Rf build | |
19455 | ||
19456 | ||
19457 | ||
19458 | ||
3e990ae0 CIK |
19459 | |
19460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5 | |
19461 | $as_echo_n "checking whether iops->getattr() takes a path... " >&6; } | |
19462 | ||
19463 | ||
19464 | cat confdefs.h - <<_ACEOF >conftest.c | |
19465 | ||
19466 | ||
19467 | #include <linux/fs.h> | |
19468 | ||
19469 | int test_getattr( | |
19470 | const struct path *p, struct kstat *k, | |
19471 | u32 request_mask, unsigned int query_flags) | |
19472 | { return 0; } | |
19473 | ||
19474 | static const struct inode_operations | |
19475 | iops __attribute__ ((unused)) = { | |
19476 | .getattr = test_getattr, | |
19477 | }; | |
19478 | ||
19479 | int | |
19480 | main (void) | |
19481 | { | |
19482 | ||
19483 | ||
19484 | ; | |
19485 | return 0; | |
19486 | } | |
19487 | ||
19488 | _ACEOF | |
19489 | ||
19490 | ||
19491 | ||
19492 | cat - <<_ACEOF >conftest.h | |
19493 | ||
19494 | _ACEOF | |
19495 | ||
19496 | ||
19497 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19498 | echo "obj-m := conftest.o" >build/Makefile | |
19499 | modpost_flag='' | |
19500 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19501 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19502 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19503 | (eval $ac_try) 2>&5 | |
19504 | ac_status=$? | |
19505 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19506 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19507 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19508 | (eval $ac_try) 2>&5 | |
19509 | ac_status=$? | |
19510 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19511 | test $ac_status = 0; }; }; then : | |
19512 | ||
19513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19514 | $as_echo "yes" >&6; } | |
19515 | ||
19516 | $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h | |
19517 | ||
19518 | ||
19519 | else | |
19520 | $as_echo "$as_me: failed program was:" >&5 | |
19521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19522 | ||
19523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19524 | $as_echo "no" >&6; } | |
19525 | ||
19526 | ||
19527 | ||
19528 | fi | |
19529 | rm -Rf build | |
19530 | ||
19531 | ||
19532 | ||
19533 | ||
19534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5 | |
19535 | $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; } | |
19536 | ||
19537 | ||
19538 | cat confdefs.h - <<_ACEOF >conftest.c | |
19539 | ||
19540 | ||
19541 | #include <linux/fs.h> | |
19542 | ||
19543 | int test_getattr( | |
19544 | struct vfsmount *mnt, struct dentry *d, | |
19545 | struct kstat *k) | |
19546 | { return 0; } | |
19547 | ||
19548 | static const struct inode_operations | |
19549 | iops __attribute__ ((unused)) = { | |
19550 | .getattr = test_getattr, | |
19551 | }; | |
19552 | ||
19553 | int | |
19554 | main (void) | |
19555 | { | |
19556 | ||
19557 | ||
19558 | ; | |
19559 | return 0; | |
19560 | } | |
19561 | ||
19562 | _ACEOF | |
19563 | ||
19564 | ||
19565 | ||
19566 | cat - <<_ACEOF >conftest.h | |
19567 | ||
19568 | _ACEOF | |
19569 | ||
19570 | ||
19571 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19572 | echo "obj-m := conftest.o" >build/Makefile | |
19573 | modpost_flag='' | |
19574 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19575 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19576 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19577 | (eval $ac_try) 2>&5 | |
19578 | ac_status=$? | |
19579 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19580 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19581 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19582 | (eval $ac_try) 2>&5 | |
19583 | ac_status=$? | |
19584 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19585 | test $ac_status = 0; }; }; then : | |
19586 | ||
19587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19588 | $as_echo "yes" >&6; } | |
19589 | ||
19590 | $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h | |
19591 | ||
19592 | ||
19593 | else | |
19594 | $as_echo "$as_me: failed program was:" >&5 | |
19595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19596 | ||
19597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19598 | $as_echo "no" >&6; } | |
19599 | ||
19600 | ||
19601 | ||
19602 | fi | |
19603 | rm -Rf build | |
19604 | ||
19605 | ||
19606 | ||
19607 | ||
19608 | ||
87d546d8 TG |
19609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5 |
19610 | $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; } | |
19611 | ||
19612 | ||
19613 | cat confdefs.h - <<_ACEOF >conftest.c | |
19614 | ||
19615 | ||
19616 | #include <linux/fs.h> | |
19617 | ||
19618 | int | |
19619 | main (void) | |
19620 | { | |
19621 | ||
19622 | void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL); | |
19623 | ||
19624 | ; | |
19625 | return 0; | |
19626 | } | |
19627 | ||
19628 | _ACEOF | |
19629 | ||
19630 | ||
19631 | ||
19632 | cat - <<_ACEOF >conftest.h | |
19633 | ||
19634 | _ACEOF | |
19635 | ||
19636 | ||
19637 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19638 | echo "obj-m := conftest.o" >build/Makefile | |
19639 | modpost_flag='' | |
19640 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19641 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19642 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19643 | (eval $ac_try) 2>&5 | |
19644 | ac_status=$? | |
19645 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19646 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19647 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19648 | (eval $ac_try) 2>&5 | |
19649 | ac_status=$? | |
19650 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19651 | test $ac_status = 0; }; }; then : | |
19652 | ||
19653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19654 | $as_echo "yes" >&6; } | |
19655 | ||
19656 | $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h | |
19657 | ||
19658 | ||
19659 | else | |
19660 | $as_echo "$as_me: failed program was:" >&5 | |
19661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19662 | ||
19663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19664 | $as_echo "no" >&6; } | |
19665 | ||
19666 | ||
19667 | ||
19668 | fi | |
19669 | rm -Rf build | |
19670 | ||
19671 | ||
19672 | ||
19673 | ||
19674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5 | |
19675 | $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; } | |
19676 | ||
19677 | ||
19678 | ||
19679 | cat confdefs.h - <<_ACEOF >conftest.c | |
19680 | ||
19681 | ||
19682 | #include <linux/fs.h> | |
19683 | ||
19684 | int show_options (struct seq_file * x, struct dentry * y) { return 0; }; | |
19685 | static struct super_operations sops __attribute__ ((unused)) = { | |
19686 | .show_options = show_options, | |
19687 | }; | |
19688 | ||
19689 | int | |
19690 | main (void) | |
19691 | { | |
19692 | ||
19693 | ||
19694 | ; | |
19695 | return 0; | |
19696 | } | |
19697 | ||
19698 | _ACEOF | |
19699 | ||
19700 | ||
19701 | ||
19702 | cat - <<_ACEOF >conftest.h | |
19703 | ||
19704 | _ACEOF | |
19705 | ||
19706 | ||
19707 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19708 | echo "obj-m := conftest.o" >build/Makefile | |
19709 | modpost_flag='' | |
19710 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19711 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19712 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19713 | (eval $ac_try) 2>&5 | |
19714 | ac_status=$? | |
19715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19716 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19717 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19718 | (eval $ac_try) 2>&5 | |
19719 | ac_status=$? | |
19720 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19721 | test $ac_status = 0; }; }; then : | |
19722 | ||
19723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19724 | $as_echo "yes" >&6; } | |
19725 | ||
19726 | $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h | |
19727 | ||
19728 | ||
19729 | else | |
19730 | $as_echo "$as_me: failed program was:" >&5 | |
19731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19732 | ||
19733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19734 | $as_echo "no" >&6; } | |
19735 | ||
19736 | ||
19737 | ||
19738 | fi | |
19739 | rm -Rf build | |
19740 | ||
19741 | ||
19742 | ||
19743 | ||
19744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5 | |
19745 | $as_echo_n "checking whether file_inode() is available... " >&6; } | |
19746 | ||
19747 | ||
19748 | cat confdefs.h - <<_ACEOF >conftest.c | |
19749 | ||
19750 | ||
19751 | #include <linux/fs.h> | |
19752 | ||
19753 | int | |
19754 | main (void) | |
19755 | { | |
19756 | ||
19757 | struct file *f = NULL; | |
19758 | file_inode(f); | |
19759 | ||
19760 | ; | |
19761 | return 0; | |
19762 | } | |
19763 | ||
19764 | _ACEOF | |
19765 | ||
19766 | ||
19767 | ||
19768 | cat - <<_ACEOF >conftest.h | |
19769 | ||
19770 | _ACEOF | |
19771 | ||
19772 | ||
19773 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19774 | echo "obj-m := conftest.o" >build/Makefile | |
19775 | modpost_flag='' | |
19776 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19777 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19778 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19779 | (eval $ac_try) 2>&5 | |
19780 | ac_status=$? | |
19781 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19782 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19783 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19784 | (eval $ac_try) 2>&5 | |
19785 | ac_status=$? | |
19786 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19787 | test $ac_status = 0; }; }; then : | |
19788 | ||
19789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19790 | $as_echo "yes" >&6; } | |
19791 | ||
19792 | $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h | |
19793 | ||
19794 | ||
19795 | else | |
19796 | $as_echo "$as_me: failed program was:" >&5 | |
19797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19798 | ||
19799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19800 | $as_echo "no" >&6; } | |
19801 | ||
19802 | ||
19803 | ||
19804 | fi | |
19805 | rm -Rf build | |
19806 | ||
19807 | ||
19808 | ||
19809 | ||
19810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5 | |
19811 | $as_echo_n "checking whether fops->fsync() wants... " >&6; } | |
19812 | ||
19813 | ||
19814 | ||
19815 | cat confdefs.h - <<_ACEOF >conftest.c | |
19816 | ||
19817 | ||
19818 | #include <linux/fs.h> | |
19819 | ||
19820 | int test_fsync(struct file *f, struct dentry *dentry, int x) | |
19821 | { return 0; } | |
19822 | ||
19823 | static const struct file_operations | |
19824 | fops __attribute__ ((unused)) = { | |
19825 | .fsync = test_fsync, | |
19826 | }; | |
19827 | ||
19828 | int | |
19829 | main (void) | |
19830 | { | |
19831 | ||
19832 | ||
19833 | ; | |
19834 | return 0; | |
19835 | } | |
19836 | ||
19837 | _ACEOF | |
19838 | ||
19839 | ||
19840 | ||
19841 | cat - <<_ACEOF >conftest.h | |
19842 | ||
19843 | _ACEOF | |
19844 | ||
19845 | ||
19846 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19847 | echo "obj-m := conftest.o" >build/Makefile | |
19848 | modpost_flag='' | |
19849 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19850 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19851 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19852 | (eval $ac_try) 2>&5 | |
19853 | ac_status=$? | |
19854 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19855 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19856 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19857 | (eval $ac_try) 2>&5 | |
19858 | ac_status=$? | |
19859 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19860 | test $ac_status = 0; }; }; then : | |
19861 | ||
19862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5 | |
19863 | $as_echo "dentry" >&6; } | |
19864 | ||
19865 | $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h | |
19866 | ||
19867 | ||
19868 | else | |
19869 | $as_echo "$as_me: failed program was:" >&5 | |
19870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19871 | ||
19872 | ||
19873 | ||
19874 | ||
19875 | fi | |
19876 | rm -Rf build | |
19877 | ||
19878 | ||
19879 | ||
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, int x) { return 0; } | |
19889 | ||
19890 | static const struct file_operations | |
19891 | fops __attribute__ ((unused)) = { | |
19892 | .fsync = test_fsync, | |
19893 | }; | |
19894 | ||
19895 | int | |
19896 | main (void) | |
19897 | { | |
19898 | ||
19899 | ||
19900 | ; | |
19901 | return 0; | |
19902 | } | |
19903 | ||
19904 | _ACEOF | |
19905 | ||
19906 | ||
19907 | ||
19908 | cat - <<_ACEOF >conftest.h | |
19909 | ||
19910 | _ACEOF | |
19911 | ||
19912 | ||
19913 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19914 | echo "obj-m := conftest.o" >build/Makefile | |
19915 | modpost_flag='' | |
19916 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19917 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19918 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19919 | (eval $ac_try) 2>&5 | |
19920 | ac_status=$? | |
19921 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19922 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19923 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19924 | (eval $ac_try) 2>&5 | |
19925 | ac_status=$? | |
19926 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19927 | test $ac_status = 0; }; }; then : | |
19928 | ||
19929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5 | |
19930 | $as_echo "no dentry" >&6; } | |
19931 | ||
19932 | $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h | |
19933 | ||
19934 | ||
19935 | else | |
19936 | $as_echo "$as_me: failed program was:" >&5 | |
19937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19938 | ||
19939 | ||
19940 | ||
19941 | ||
19942 | fi | |
19943 | rm -Rf build | |
19944 | ||
19945 | ||
19946 | ||
19947 | ||
19948 | ||
19949 | ||
19950 | cat confdefs.h - <<_ACEOF >conftest.c | |
19951 | ||
19952 | ||
19953 | #include <linux/fs.h> | |
19954 | ||
19955 | int test_fsync(struct file *f, loff_t a, loff_t b, int c) | |
19956 | { 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: range" >&5 | |
19998 | $as_echo "range" >&6; } | |
19999 | ||
20000 | $as_echo "#define HAVE_FSYNC_RANGE 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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5 | |
20018 | $as_echo_n "checking whether sops->evict_inode() exists... " >&6; } | |
20019 | ||
20020 | ||
20021 | cat confdefs.h - <<_ACEOF >conftest.c | |
20022 | ||
20023 | ||
20024 | #include <linux/fs.h> | |
20025 | void evict_inode (struct inode * t) { return; } | |
20026 | static struct super_operations sops __attribute__ ((unused)) = { | |
20027 | .evict_inode = evict_inode, | |
20028 | }; | |
20029 | ||
20030 | int | |
20031 | main (void) | |
20032 | { | |
20033 | ||
20034 | ||
20035 | ; | |
20036 | return 0; | |
20037 | } | |
20038 | ||
20039 | _ACEOF | |
20040 | ||
20041 | ||
20042 | ||
20043 | cat - <<_ACEOF >conftest.h | |
20044 | ||
20045 | _ACEOF | |
20046 | ||
20047 | ||
20048 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20049 | echo "obj-m := conftest.o" >build/Makefile | |
20050 | modpost_flag='' | |
20051 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20052 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20053 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20054 | (eval $ac_try) 2>&5 | |
20055 | ac_status=$? | |
20056 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20057 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20058 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20059 | (eval $ac_try) 2>&5 | |
20060 | ac_status=$? | |
20061 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20062 | test $ac_status = 0; }; }; then : | |
20063 | ||
20064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20065 | $as_echo "yes" >&6; } | |
20066 | ||
20067 | $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h | |
20068 | ||
20069 | ||
20070 | else | |
20071 | $as_echo "$as_me: failed program was:" >&5 | |
20072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20073 | ||
20074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20075 | $as_echo "no" >&6; } | |
20076 | ||
20077 | ||
20078 | ||
20079 | fi | |
20080 | rm -Rf build | |
20081 | ||
20082 | ||
20083 | ||
20084 | ||
20085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5 | |
20086 | $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; } | |
20087 | ||
20088 | ||
20089 | cat confdefs.h - <<_ACEOF >conftest.c | |
20090 | ||
20091 | ||
20092 | #include <linux/fs.h> | |
20093 | ||
20094 | void dirty_inode(struct inode *a, int b) { return; } | |
20095 | ||
20096 | static const struct super_operations | |
20097 | sops __attribute__ ((unused)) = { | |
20098 | .dirty_inode = dirty_inode, | |
20099 | }; | |
20100 | ||
20101 | int | |
20102 | main (void) | |
20103 | { | |
20104 | ||
20105 | ||
20106 | ; | |
20107 | return 0; | |
20108 | } | |
20109 | ||
20110 | _ACEOF | |
20111 | ||
20112 | ||
20113 | ||
20114 | cat - <<_ACEOF >conftest.h | |
20115 | ||
20116 | _ACEOF | |
20117 | ||
20118 | ||
20119 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20120 | echo "obj-m := conftest.o" >build/Makefile | |
20121 | modpost_flag='' | |
20122 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20123 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20124 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20125 | (eval $ac_try) 2>&5 | |
20126 | ac_status=$? | |
20127 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20128 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20129 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20130 | (eval $ac_try) 2>&5 | |
20131 | ac_status=$? | |
20132 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20133 | test $ac_status = 0; }; }; then : | |
20134 | ||
20135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20136 | $as_echo "yes" >&6; } | |
20137 | ||
20138 | $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h | |
20139 | ||
20140 | ||
20141 | else | |
20142 | $as_echo "$as_me: failed program was:" >&5 | |
20143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20144 | ||
20145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20146 | $as_echo "no" >&6; } | |
20147 | ||
20148 | ||
20149 | ||
20150 | fi | |
20151 | rm -Rf build | |
20152 | ||
20153 | ||
20154 | ||
20155 | ||
20156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5 | |
20157 | $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; } | |
20158 | ||
20159 | ||
20160 | cat confdefs.h - <<_ACEOF >conftest.c | |
20161 | ||
20162 | ||
20163 | #include <linux/fs.h> | |
20164 | ||
20165 | int nr_cached_objects(struct super_block *sb) { return 0; } | |
20166 | ||
20167 | static const struct super_operations | |
20168 | sops __attribute__ ((unused)) = { | |
20169 | .nr_cached_objects = nr_cached_objects, | |
20170 | }; | |
20171 | ||
20172 | int | |
20173 | main (void) | |
20174 | { | |
20175 | ||
20176 | ||
20177 | ; | |
20178 | return 0; | |
20179 | } | |
20180 | ||
20181 | _ACEOF | |
20182 | ||
20183 | ||
20184 | ||
20185 | cat - <<_ACEOF >conftest.h | |
20186 | ||
20187 | _ACEOF | |
20188 | ||
20189 | ||
20190 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20191 | echo "obj-m := conftest.o" >build/Makefile | |
20192 | modpost_flag='' | |
20193 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20194 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20195 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20196 | (eval $ac_try) 2>&5 | |
20197 | ac_status=$? | |
20198 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20199 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20200 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20201 | (eval $ac_try) 2>&5 | |
20202 | ac_status=$? | |
20203 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20204 | test $ac_status = 0; }; }; then : | |
20205 | ||
20206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20207 | $as_echo "yes" >&6; } | |
20208 | ||
20209 | $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h | |
20210 | ||
20211 | ||
20212 | else | |
20213 | $as_echo "$as_me: failed program was:" >&5 | |
20214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20215 | ||
20216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20217 | $as_echo "no" >&6; } | |
20218 | ||
20219 | ||
20220 | ||
20221 | fi | |
20222 | rm -Rf build | |
20223 | ||
20224 | ||
20225 | ||
20226 | ||
20227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5 | |
20228 | $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; } | |
20229 | ||
20230 | ||
20231 | cat confdefs.h - <<_ACEOF >conftest.c | |
20232 | ||
20233 | ||
20234 | #include <linux/fs.h> | |
20235 | ||
20236 | void free_cached_objects(struct super_block *sb, int x) | |
20237 | { return; } | |
20238 | ||
20239 | static const struct super_operations | |
20240 | sops __attribute__ ((unused)) = { | |
20241 | .free_cached_objects = free_cached_objects, | |
20242 | }; | |
20243 | ||
20244 | int | |
20245 | main (void) | |
20246 | { | |
20247 | ||
20248 | ||
20249 | ; | |
20250 | return 0; | |
20251 | } | |
20252 | ||
20253 | _ACEOF | |
20254 | ||
20255 | ||
20256 | ||
20257 | cat - <<_ACEOF >conftest.h | |
20258 | ||
20259 | _ACEOF | |
20260 | ||
20261 | ||
20262 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20263 | echo "obj-m := conftest.o" >build/Makefile | |
20264 | modpost_flag='' | |
20265 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20266 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20267 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20268 | (eval $ac_try) 2>&5 | |
20269 | ac_status=$? | |
20270 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20271 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20272 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20273 | (eval $ac_try) 2>&5 | |
20274 | ac_status=$? | |
20275 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20276 | test $ac_status = 0; }; }; then : | |
20277 | ||
20278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20279 | $as_echo "yes" >&6; } | |
20280 | ||
20281 | $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h | |
20282 | ||
20283 | ||
20284 | else | |
20285 | $as_echo "$as_me: failed program was:" >&5 | |
20286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20287 | ||
20288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20289 | $as_echo "no" >&6; } | |
20290 | ||
20291 | ||
20292 | ||
20293 | fi | |
20294 | rm -Rf build | |
20295 | ||
20296 | ||
20297 | ||
20298 | ||
20299 | ||
20300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5 | |
20301 | $as_echo_n "checking whether fops->fallocate() exists... " >&6; } | |
20302 | ||
20303 | ||
20304 | cat confdefs.h - <<_ACEOF >conftest.c | |
20305 | ||
20306 | ||
20307 | #include <linux/fs.h> | |
20308 | ||
20309 | long test_fallocate(struct file *file, int mode, | |
20310 | loff_t offset, loff_t len) { return 0; } | |
20311 | ||
20312 | static const struct file_operations | |
20313 | fops __attribute__ ((unused)) = { | |
20314 | .fallocate = test_fallocate, | |
20315 | }; | |
20316 | ||
20317 | int | |
20318 | main (void) | |
20319 | { | |
20320 | ||
20321 | ||
20322 | ; | |
20323 | return 0; | |
20324 | } | |
20325 | ||
20326 | _ACEOF | |
20327 | ||
20328 | ||
20329 | ||
20330 | cat - <<_ACEOF >conftest.h | |
20331 | ||
20332 | _ACEOF | |
20333 | ||
20334 | ||
20335 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20336 | echo "obj-m := conftest.o" >build/Makefile | |
20337 | modpost_flag='' | |
20338 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20339 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
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; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20345 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20346 | (eval $ac_try) 2>&5 | |
20347 | ac_status=$? | |
20348 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20349 | test $ac_status = 0; }; }; then : | |
20350 | ||
20351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20352 | $as_echo "yes" >&6; } | |
20353 | ||
20354 | $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h | |
20355 | ||
20356 | ||
20357 | else | |
20358 | $as_echo "$as_me: failed program was:" >&5 | |
20359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20360 | ||
20361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20362 | $as_echo "no" >&6; } | |
20363 | ||
20364 | ||
20365 | ||
20366 | fi | |
20367 | rm -Rf build | |
20368 | ||
20369 | ||
20370 | ||
20371 | ||
20372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5 | |
20373 | $as_echo_n "checking whether iops->fallocate() exists... " >&6; } | |
20374 | ||
20375 | ||
20376 | cat confdefs.h - <<_ACEOF >conftest.c | |
20377 | ||
20378 | ||
20379 | #include <linux/fs.h> | |
20380 | ||
20381 | long test_fallocate(struct inode *inode, int mode, | |
20382 | loff_t offset, loff_t len) { return 0; } | |
20383 | ||
20384 | static const struct inode_operations | |
20385 | fops __attribute__ ((unused)) = { | |
20386 | .fallocate = test_fallocate, | |
20387 | }; | |
20388 | ||
20389 | int | |
20390 | main (void) | |
20391 | { | |
20392 | ||
20393 | ||
20394 | ; | |
20395 | return 0; | |
20396 | } | |
20397 | ||
20398 | _ACEOF | |
20399 | ||
20400 | ||
20401 | ||
20402 | cat - <<_ACEOF >conftest.h | |
20403 | ||
20404 | _ACEOF | |
20405 | ||
20406 | ||
20407 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20408 | echo "obj-m := conftest.o" >build/Makefile | |
20409 | modpost_flag='' | |
20410 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20411 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20412 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20413 | (eval $ac_try) 2>&5 | |
20414 | ac_status=$? | |
20415 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20416 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20417 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20418 | (eval $ac_try) 2>&5 | |
20419 | ac_status=$? | |
20420 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20421 | test $ac_status = 0; }; }; then : | |
20422 | ||
20423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20424 | $as_echo "yes" >&6; } | |
20425 | ||
20426 | $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h | |
20427 | ||
20428 | ||
20429 | else | |
20430 | $as_echo "$as_me: failed program was:" >&5 | |
20431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20432 | ||
20433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20434 | $as_echo "no" >&6; } | |
20435 | ||
20436 | ||
20437 | ||
20438 | fi | |
20439 | rm -Rf build | |
20440 | ||
20441 | ||
20442 | ||
20443 | ||
20444 | ||
20445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5 | |
20446 | $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; } | |
20447 | ||
20448 | ||
20449 | cat confdefs.h - <<_ACEOF >conftest.c | |
20450 | ||
20451 | ||
20452 | #include <linux/fs.h> | |
20453 | ||
20454 | static const struct file_operations | |
20455 | fops __attribute__ ((unused)) = { | |
20456 | .aio_fsync = NULL, | |
20457 | }; | |
20458 | ||
20459 | int | |
20460 | main (void) | |
20461 | { | |
20462 | ||
20463 | ||
20464 | ; | |
20465 | return 0; | |
20466 | } | |
20467 | ||
20468 | _ACEOF | |
20469 | ||
20470 | ||
20471 | ||
20472 | cat - <<_ACEOF >conftest.h | |
20473 | ||
20474 | _ACEOF | |
20475 | ||
20476 | ||
20477 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20478 | echo "obj-m := conftest.o" >build/Makefile | |
20479 | modpost_flag='' | |
20480 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20481 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20482 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20483 | (eval $ac_try) 2>&5 | |
20484 | ac_status=$? | |
20485 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20486 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20487 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20488 | (eval $ac_try) 2>&5 | |
20489 | ac_status=$? | |
20490 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20491 | test $ac_status = 0; }; }; then : | |
20492 | ||
20493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20494 | $as_echo "yes" >&6; } | |
20495 | ||
20496 | $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h | |
20497 | ||
20498 | ||
20499 | else | |
20500 | $as_echo "$as_me: failed program was:" >&5 | |
20501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20502 | ||
20503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20504 | $as_echo "no" >&6; } | |
20505 | ||
20506 | ||
20507 | ||
20508 | fi | |
20509 | rm -Rf build | |
20510 | ||
20511 | ||
20512 | ||
20513 | ||
20514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5 | |
20515 | $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; } | |
20516 | ||
20517 | ||
20518 | cat confdefs.h - <<_ACEOF >conftest.c | |
20519 | ||
20520 | ||
20521 | #include <linux/fs.h> | |
20522 | ||
20523 | int mkdir(struct inode *inode, struct dentry *dentry, | |
20524 | umode_t umode) { return 0; } | |
20525 | ||
20526 | static const struct inode_operations | |
20527 | iops __attribute__ ((unused)) = { | |
20528 | .mkdir = mkdir, | |
20529 | }; | |
20530 | ||
20531 | int | |
20532 | main (void) | |
20533 | { | |
20534 | ||
20535 | ||
20536 | ; | |
20537 | return 0; | |
20538 | } | |
20539 | ||
20540 | _ACEOF | |
20541 | ||
20542 | ||
20543 | ||
20544 | cat - <<_ACEOF >conftest.h | |
20545 | ||
20546 | _ACEOF | |
20547 | ||
20548 | ||
20549 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20550 | echo "obj-m := conftest.o" >build/Makefile | |
20551 | modpost_flag='' | |
20552 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20553 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20554 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20555 | (eval $ac_try) 2>&5 | |
20556 | ac_status=$? | |
20557 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20558 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20559 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20560 | (eval $ac_try) 2>&5 | |
20561 | ac_status=$? | |
20562 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20563 | test $ac_status = 0; }; }; then : | |
20564 | ||
20565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20566 | $as_echo "yes" >&6; } | |
20567 | ||
20568 | $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h | |
20569 | ||
20570 | ||
20571 | else | |
20572 | $as_echo "$as_me: failed program was:" >&5 | |
20573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20574 | ||
20575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20576 | $as_echo "no" >&6; } | |
20577 | ||
20578 | ||
20579 | ||
20580 | fi | |
20581 | rm -Rf build | |
20582 | ||
20583 | ||
20584 | ||
20585 | ||
20586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5 | |
20587 | $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; } | |
20588 | ||
20589 | ||
20590 | cat confdefs.h - <<_ACEOF >conftest.c | |
20591 | ||
20592 | ||
20593 | #include <linux/fs.h> | |
20594 | ||
20595 | struct dentry *inode_lookup(struct inode *inode, | |
20596 | struct dentry *dentry, struct nameidata *nidata) | |
20597 | { return NULL; } | |
20598 | ||
20599 | static const struct inode_operations iops | |
20600 | __attribute__ ((unused)) = { | |
20601 | .lookup = inode_lookup, | |
20602 | }; | |
20603 | ||
20604 | int | |
20605 | main (void) | |
20606 | { | |
20607 | ||
20608 | ||
20609 | ; | |
20610 | return 0; | |
20611 | } | |
20612 | ||
20613 | _ACEOF | |
20614 | ||
20615 | ||
20616 | ||
20617 | cat - <<_ACEOF >conftest.h | |
20618 | ||
20619 | _ACEOF | |
20620 | ||
20621 | ||
20622 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20623 | echo "obj-m := conftest.o" >build/Makefile | |
20624 | modpost_flag='' | |
20625 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20626 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
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; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20632 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20633 | (eval $ac_try) 2>&5 | |
20634 | ac_status=$? | |
20635 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20636 | test $ac_status = 0; }; }; then : | |
20637 | ||
20638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20639 | $as_echo "yes" >&6; } | |
20640 | ||
20641 | $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h | |
20642 | ||
20643 | ||
20644 | else | |
20645 | $as_echo "$as_me: failed program was:" >&5 | |
20646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20647 | ||
20648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20649 | $as_echo "no" >&6; } | |
20650 | ||
20651 | ||
20652 | ||
20653 | fi | |
20654 | rm -Rf build | |
20655 | ||
20656 | ||
20657 | ||
20658 | ||
20659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5 | |
20660 | $as_echo_n "checking whether iops->create() passes nameidata... " >&6; } | |
20661 | ||
20662 | ||
20663 | cat confdefs.h - <<_ACEOF >conftest.c | |
20664 | ||
20665 | ||
20666 | #include <linux/fs.h> | |
20667 | ||
20668 | #ifdef HAVE_MKDIR_UMODE_T | |
20669 | int inode_create(struct inode *inode ,struct dentry *dentry, | |
20670 | umode_t umode, struct nameidata *nidata) { return 0; } | |
20671 | #else | |
20672 | int inode_create(struct inode *inode,struct dentry *dentry, | |
20673 | int umode, struct nameidata * nidata) { return 0; } | |
20674 | #endif | |
20675 | ||
20676 | static const struct inode_operations | |
20677 | iops __attribute__ ((unused)) = { | |
20678 | .create = inode_create, | |
20679 | }; | |
20680 | ||
20681 | int | |
20682 | main (void) | |
20683 | { | |
20684 | ||
20685 | ||
20686 | ; | |
20687 | return 0; | |
20688 | } | |
20689 | ||
20690 | _ACEOF | |
20691 | ||
20692 | ||
20693 | ||
20694 | cat - <<_ACEOF >conftest.h | |
20695 | ||
20696 | _ACEOF | |
20697 | ||
20698 | ||
20699 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20700 | echo "obj-m := conftest.o" >build/Makefile | |
20701 | modpost_flag='' | |
20702 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20703 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20704 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20705 | (eval $ac_try) 2>&5 | |
20706 | ac_status=$? | |
20707 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20708 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20709 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20710 | (eval $ac_try) 2>&5 | |
20711 | ac_status=$? | |
20712 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20713 | test $ac_status = 0; }; }; then : | |
20714 | ||
20715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20716 | $as_echo "yes" >&6; } | |
20717 | ||
20718 | $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h | |
20719 | ||
20720 | ||
20721 | else | |
20722 | $as_echo "$as_me: failed program was:" >&5 | |
20723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20724 | ||
20725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20726 | $as_echo "no" >&6; } | |
20727 | ||
20728 | ||
20729 | ||
20730 | fi | |
20731 | rm -Rf build | |
20732 | ||
20733 | ||
20734 | ||
20735 | ||
20736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5 | |
20737 | $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; } | |
20738 | ||
20739 | ||
20740 | cat confdefs.h - <<_ACEOF >conftest.c | |
20741 | ||
20742 | ||
20743 | #include <linux/fs.h> | |
20744 | const char *get_link(struct dentry *de, struct inode *ip, | |
20745 | struct delayed_call *done) { return "symlink"; } | |
20746 | static struct inode_operations | |
20747 | iops __attribute__ ((unused)) = { | |
20748 | .get_link = get_link, | |
20749 | }; | |
20750 | ||
20751 | int | |
20752 | main (void) | |
20753 | { | |
20754 | ||
20755 | ||
20756 | ; | |
20757 | return 0; | |
20758 | } | |
20759 | ||
20760 | _ACEOF | |
20761 | ||
20762 | ||
20763 | ||
20764 | cat - <<_ACEOF >conftest.h | |
20765 | ||
20766 | _ACEOF | |
20767 | ||
20768 | ||
20769 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20770 | echo "obj-m := conftest.o" >build/Makefile | |
20771 | modpost_flag='' | |
20772 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20773 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20774 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20775 | (eval $ac_try) 2>&5 | |
20776 | ac_status=$? | |
20777 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20778 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20779 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20780 | (eval $ac_try) 2>&5 | |
20781 | ac_status=$? | |
20782 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20783 | test $ac_status = 0; }; }; then : | |
20784 | ||
20785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20786 | $as_echo "yes" >&6; } | |
20787 | ||
20788 | $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h | |
20789 | ||
20790 | ||
20791 | else | |
20792 | $as_echo "$as_me: failed program was:" >&5 | |
20793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20794 | ||
20795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20796 | $as_echo "no" >&6; } | |
20797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5 | |
20798 | $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; } | |
20799 | ||
20800 | ||
20801 | cat confdefs.h - <<_ACEOF >conftest.c | |
20802 | ||
20803 | ||
20804 | #include <linux/fs.h> | |
20805 | const char *get_link(struct dentry *de, struct | |
20806 | inode *ip, void **cookie) { return "symlink"; } | |
20807 | static struct inode_operations | |
20808 | iops __attribute__ ((unused)) = { | |
20809 | .get_link = get_link, | |
20810 | }; | |
20811 | ||
20812 | int | |
20813 | main (void) | |
20814 | { | |
20815 | ||
20816 | ||
20817 | ; | |
20818 | return 0; | |
20819 | } | |
20820 | ||
20821 | _ACEOF | |
20822 | ||
20823 | ||
20824 | ||
20825 | cat - <<_ACEOF >conftest.h | |
20826 | ||
20827 | _ACEOF | |
20828 | ||
20829 | ||
20830 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20831 | echo "obj-m := conftest.o" >build/Makefile | |
20832 | modpost_flag='' | |
20833 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20834 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20835 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20836 | (eval $ac_try) 2>&5 | |
20837 | ac_status=$? | |
20838 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20839 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20840 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20841 | (eval $ac_try) 2>&5 | |
20842 | ac_status=$? | |
20843 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20844 | test $ac_status = 0; }; }; then : | |
20845 | ||
20846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20847 | $as_echo "yes" >&6; } | |
20848 | ||
20849 | $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h | |
20850 | ||
20851 | ||
20852 | else | |
20853 | $as_echo "$as_me: failed program was:" >&5 | |
20854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20855 | ||
20856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20857 | $as_echo "no" >&6; } | |
20858 | ||
20859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5 | |
20860 | $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; } | |
20861 | ||
20862 | ||
20863 | cat confdefs.h - <<_ACEOF >conftest.c | |
20864 | ||
20865 | ||
20866 | #include <linux/fs.h> | |
20867 | const char *follow_link(struct dentry *de, | |
20868 | void **cookie) { return "symlink"; } | |
20869 | static struct inode_operations | |
20870 | iops __attribute__ ((unused)) = { | |
20871 | .follow_link = follow_link, | |
20872 | }; | |
20873 | ||
20874 | int | |
20875 | main (void) | |
20876 | { | |
20877 | ||
20878 | ||
20879 | ; | |
20880 | return 0; | |
20881 | } | |
20882 | ||
20883 | _ACEOF | |
20884 | ||
20885 | ||
20886 | ||
20887 | cat - <<_ACEOF >conftest.h | |
20888 | ||
20889 | _ACEOF | |
20890 | ||
20891 | ||
20892 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20893 | echo "obj-m := conftest.o" >build/Makefile | |
20894 | modpost_flag='' | |
20895 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20896 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20897 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20898 | (eval $ac_try) 2>&5 | |
20899 | ac_status=$? | |
20900 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20901 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20902 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20903 | (eval $ac_try) 2>&5 | |
20904 | ac_status=$? | |
20905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20906 | test $ac_status = 0; }; }; then : | |
20907 | ||
20908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20909 | $as_echo "yes" >&6; } | |
20910 | ||
20911 | $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h | |
20912 | ||
20913 | ||
20914 | else | |
20915 | $as_echo "$as_me: failed program was:" >&5 | |
20916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20917 | ||
20918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20919 | $as_echo "no" >&6; } | |
20920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5 | |
20921 | $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; } | |
20922 | ||
20923 | ||
20924 | cat confdefs.h - <<_ACEOF >conftest.c | |
20925 | ||
20926 | ||
20927 | #include <linux/fs.h> | |
20928 | void *follow_link(struct dentry *de, struct | |
20929 | nameidata *nd) { return (void *)NULL; } | |
20930 | static struct inode_operations | |
20931 | iops __attribute__ ((unused)) = { | |
20932 | .follow_link = follow_link, | |
20933 | }; | |
20934 | ||
20935 | int | |
20936 | main (void) | |
20937 | { | |
20938 | ||
20939 | ||
20940 | ; | |
20941 | return 0; | |
20942 | } | |
20943 | ||
20944 | _ACEOF | |
20945 | ||
20946 | ||
20947 | ||
20948 | cat - <<_ACEOF >conftest.h | |
20949 | ||
20950 | _ACEOF | |
20951 | ||
20952 | ||
20953 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20954 | echo "obj-m := conftest.o" >build/Makefile | |
20955 | modpost_flag='' | |
20956 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20957 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20958 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20959 | (eval $ac_try) 2>&5 | |
20960 | ac_status=$? | |
20961 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20962 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20963 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20964 | (eval $ac_try) 2>&5 | |
20965 | ac_status=$? | |
20966 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20967 | test $ac_status = 0; }; }; then : | |
20968 | ||
20969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20970 | $as_echo "yes" >&6; } | |
20971 | ||
20972 | $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h | |
20973 | ||
20974 | ||
20975 | else | |
20976 | $as_echo "$as_me: failed program was:" >&5 | |
20977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20978 | ||
20979 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
20980 | ||
20981 | ||
20982 | ||
20983 | fi | |
20984 | rm -Rf build | |
20985 | ||
20986 | ||
20987 | ||
20988 | ||
20989 | ||
20990 | fi | |
20991 | rm -Rf build | |
20992 | ||
20993 | ||
20994 | ||
20995 | ||
20996 | ||
20997 | ||
20998 | fi | |
20999 | rm -Rf build | |
21000 | ||
21001 | ||
21002 | ||
21003 | ||
21004 | ||
21005 | fi | |
21006 | rm -Rf build | |
21007 | ||
21008 | ||
21009 | ||
21010 | ||
21011 | ||
21012 | ||
21013 | cat confdefs.h - <<_ACEOF >conftest.c | |
21014 | ||
21015 | ||
21016 | #if !defined(HAVE_GET_LINK_DELAYED) | |
21017 | #error "Expecting get_link() delayed done" | |
21018 | #endif | |
21019 | ||
21020 | int | |
21021 | main (void) | |
21022 | { | |
21023 | ||
21024 | ||
21025 | ; | |
21026 | return 0; | |
21027 | } | |
21028 | ||
21029 | _ACEOF | |
21030 | ||
21031 | ||
21032 | ||
21033 | cat - <<_ACEOF >conftest.h | |
21034 | ||
21035 | _ACEOF | |
21036 | ||
21037 | ||
21038 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21039 | echo "obj-m := conftest.o" >build/Makefile | |
21040 | modpost_flag='' | |
21041 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21042 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21043 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21044 | (eval $ac_try) 2>&5 | |
21045 | ac_status=$? | |
21046 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21047 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21048 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21049 | (eval $ac_try) 2>&5 | |
21050 | ac_status=$? | |
21051 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21052 | test $ac_status = 0; }; }; then : | |
21053 | ||
21054 | ||
21055 | $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h | |
21056 | ||
21057 | ||
21058 | else | |
21059 | $as_echo "$as_me: failed program was:" >&5 | |
21060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21061 | ||
21062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5 | |
21063 | $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; } | |
21064 | ||
21065 | ||
21066 | cat confdefs.h - <<_ACEOF >conftest.c | |
21067 | ||
21068 | ||
21069 | #include <linux/fs.h> | |
21070 | void put_link(struct inode *ip, void *cookie) | |
21071 | { return; } | |
21072 | static struct inode_operations | |
21073 | iops __attribute__ ((unused)) = { | |
21074 | .put_link = put_link, | |
21075 | }; | |
21076 | ||
21077 | int | |
21078 | main (void) | |
21079 | { | |
21080 | ||
21081 | ||
21082 | ; | |
21083 | return 0; | |
21084 | } | |
21085 | ||
21086 | _ACEOF | |
21087 | ||
21088 | ||
21089 | ||
21090 | cat - <<_ACEOF >conftest.h | |
21091 | ||
21092 | _ACEOF | |
21093 | ||
21094 | ||
21095 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21096 | echo "obj-m := conftest.o" >build/Makefile | |
21097 | modpost_flag='' | |
21098 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21099 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21100 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21101 | (eval $ac_try) 2>&5 | |
21102 | ac_status=$? | |
21103 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21104 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21105 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21106 | (eval $ac_try) 2>&5 | |
21107 | ac_status=$? | |
21108 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21109 | test $ac_status = 0; }; }; then : | |
21110 | ||
21111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21112 | $as_echo "yes" >&6; } | |
21113 | ||
21114 | $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h | |
21115 | ||
21116 | ||
21117 | else | |
21118 | $as_echo "$as_me: failed program was:" >&5 | |
21119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21120 | ||
21121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21122 | $as_echo "no" >&6; } | |
21123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5 | |
21124 | $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; } | |
21125 | ||
21126 | ||
21127 | cat confdefs.h - <<_ACEOF >conftest.c | |
21128 | ||
21129 | ||
21130 | #include <linux/fs.h> | |
21131 | void put_link(struct dentry *de, struct | |
21132 | nameidata *nd, void *ptr) { return; } | |
21133 | static struct inode_operations | |
21134 | iops __attribute__ ((unused)) = { | |
21135 | .put_link = put_link, | |
21136 | }; | |
21137 | ||
21138 | int | |
21139 | main (void) | |
21140 | { | |
21141 | ||
21142 | ||
21143 | ; | |
21144 | return 0; | |
21145 | } | |
21146 | ||
21147 | _ACEOF | |
21148 | ||
21149 | ||
21150 | ||
21151 | cat - <<_ACEOF >conftest.h | |
21152 | ||
21153 | _ACEOF | |
21154 | ||
21155 | ||
21156 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21157 | echo "obj-m := conftest.o" >build/Makefile | |
21158 | modpost_flag='' | |
21159 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21160 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21161 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21162 | (eval $ac_try) 2>&5 | |
21163 | ac_status=$? | |
21164 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21165 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21166 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21167 | (eval $ac_try) 2>&5 | |
21168 | ac_status=$? | |
21169 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21170 | test $ac_status = 0; }; }; then : | |
21171 | ||
21172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21173 | $as_echo "yes" >&6; } | |
21174 | ||
21175 | $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h | |
21176 | ||
21177 | ||
21178 | else | |
21179 | $as_echo "$as_me: failed program was:" >&5 | |
21180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21181 | ||
21182 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
21183 | ||
21184 | ||
21185 | ||
21186 | fi | |
21187 | rm -Rf build | |
21188 | ||
21189 | ||
21190 | ||
21191 | ||
21192 | ||
21193 | fi | |
21194 | rm -Rf build | |
21195 | ||
21196 | ||
21197 | ||
21198 | ||
21199 | ||
21200 | fi | |
21201 | rm -Rf build | |
21202 | ||
21203 | ||
21204 | ||
21205 | ||
21206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5 | |
21207 | $as_echo_n "checking whether iops->truncate_range() exists... " >&6; } | |
21208 | ||
21209 | ||
21210 | cat confdefs.h - <<_ACEOF >conftest.c | |
21211 | ||
21212 | ||
21213 | #include <linux/fs.h> | |
21214 | void truncate_range(struct inode *inode, loff_t start, | |
21215 | loff_t end) { return; } | |
21216 | static struct inode_operations iops __attribute__ ((unused)) = { | |
21217 | .truncate_range = truncate_range, | |
21218 | }; | |
21219 | ||
21220 | int | |
21221 | main (void) | |
21222 | { | |
21223 | ||
21224 | ||
21225 | ; | |
21226 | return 0; | |
21227 | } | |
21228 | ||
21229 | _ACEOF | |
21230 | ||
21231 | ||
21232 | ||
21233 | cat - <<_ACEOF >conftest.h | |
21234 | ||
21235 | _ACEOF | |
21236 | ||
21237 | ||
21238 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21239 | echo "obj-m := conftest.o" >build/Makefile | |
21240 | modpost_flag='' | |
21241 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21242 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21243 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21244 | (eval $ac_try) 2>&5 | |
21245 | ac_status=$? | |
21246 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21247 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21248 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21249 | (eval $ac_try) 2>&5 | |
21250 | ac_status=$? | |
21251 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21252 | test $ac_status = 0; }; }; then : | |
21253 | ||
21254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21255 | $as_echo "yes" >&6; } | |
21256 | ||
21257 | $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h | |
21258 | ||
21259 | ||
21260 | else | |
21261 | $as_echo "$as_me: failed program was:" >&5 | |
21262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21263 | ||
21264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21265 | $as_echo "no" >&6; } | |
21266 | ||
21267 | ||
21268 | ||
21269 | fi | |
21270 | rm -Rf build | |
21271 | ||
21272 | ||
21273 | ||
21274 | ||
21275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5 | |
21276 | $as_echo_n "checking whether dops->d_automount() exists... " >&6; } | |
21277 | ||
21278 | ||
21279 | cat confdefs.h - <<_ACEOF >conftest.c | |
21280 | ||
21281 | ||
21282 | #include <linux/dcache.h> | |
21283 | struct vfsmount *d_automount(struct path *p) { return NULL; } | |
21284 | struct dentry_operations dops __attribute__ ((unused)) = { | |
21285 | .d_automount = d_automount, | |
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_AUTOMOUNT 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 eops->encode_fh() wants inode" >&5 | |
21344 | $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; } | |
21345 | ||
21346 | ||
21347 | cat confdefs.h - <<_ACEOF >conftest.c | |
21348 | ||
21349 | ||
21350 | #include <linux/exportfs.h> | |
21351 | int encode_fh(struct inode *inode, __u32 *fh, int *max_len, | |
21352 | struct inode *parent) { return 0; } | |
21353 | static struct export_operations eops __attribute__ ((unused))={ | |
21354 | .encode_fh = encode_fh, | |
21355 | }; | |
21356 | ||
21357 | int | |
21358 | main (void) | |
21359 | { | |
21360 | ||
21361 | ||
21362 | ; | |
21363 | return 0; | |
21364 | } | |
21365 | ||
21366 | _ACEOF | |
21367 | ||
21368 | ||
21369 | ||
21370 | cat - <<_ACEOF >conftest.h | |
21371 | ||
21372 | _ACEOF | |
21373 | ||
21374 | ||
21375 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21376 | echo "obj-m := conftest.o" >build/Makefile | |
21377 | modpost_flag='' | |
21378 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21379 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21380 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21381 | (eval $ac_try) 2>&5 | |
21382 | ac_status=$? | |
21383 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21384 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21385 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21386 | (eval $ac_try) 2>&5 | |
21387 | ac_status=$? | |
21388 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21389 | test $ac_status = 0; }; }; then : | |
21390 | ||
21391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21392 | $as_echo "yes" >&6; } | |
21393 | ||
21394 | $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h | |
21395 | ||
21396 | ||
21397 | else | |
21398 | $as_echo "$as_me: failed program was:" >&5 | |
21399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21400 | ||
21401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21402 | $as_echo "no" >&6; } | |
21403 | ||
21404 | ||
21405 | ||
21406 | fi | |
21407 | rm -Rf build | |
21408 | ||
21409 | ||
21410 | ||
21411 | ||
21412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5 | |
21413 | $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; } | |
21414 | ||
21415 | ||
21416 | cat confdefs.h - <<_ACEOF >conftest.c | |
21417 | ||
21418 | ||
21419 | #include <linux/exportfs.h> | |
21420 | int commit_metadata(struct inode *inode) { return 0; } | |
21421 | static struct export_operations eops __attribute__ ((unused))={ | |
21422 | .commit_metadata = commit_metadata, | |
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_COMMIT_METADATA 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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5 | |
21480 | $as_echo_n "checking whether clear_inode() is available... " >&6; } | |
21481 | ||
21482 | ||
21483 | ||
21484 | cat confdefs.h - <<_ACEOF >conftest.c | |
21485 | ||
21486 | ||
21487 | #include <linux/fs.h> | |
21488 | ||
21489 | int | |
21490 | main (void) | |
21491 | { | |
21492 | ||
21493 | clear_inode(NULL); | |
21494 | ||
21495 | ; | |
21496 | return 0; | |
21497 | } | |
21498 | ||
21499 | _ACEOF | |
21500 | ||
21501 | ||
21502 | ||
21503 | cat - <<_ACEOF >conftest.h | |
21504 | ||
21505 | _ACEOF | |
21506 | ||
21507 | ||
21508 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21509 | echo "obj-m := conftest.o" >build/Makefile | |
21510 | modpost_flag='' | |
21511 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21512 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21513 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21514 | (eval $ac_try) 2>&5 | |
21515 | ac_status=$? | |
21516 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21517 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21518 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21519 | (eval $ac_try) 2>&5 | |
21520 | ac_status=$? | |
21521 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21522 | test $ac_status = 0; }; }; then : | |
21523 | rc=0 | |
21524 | else | |
21525 | $as_echo "$as_me: failed program was:" >&5 | |
21526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21527 | rc=1 | |
21528 | ||
21529 | ||
21530 | fi | |
21531 | rm -Rf build | |
21532 | ||
21533 | ||
21534 | if test $rc -ne 0; then : | |
21535 | ||
21536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21537 | $as_echo "no" >&6; } | |
21538 | ||
21539 | else | |
21540 | if test "x$enable_linux_builtin" != xyes; then | |
21541 | ||
21542 | grep -q -E '[[:space:]]clear_inode[[:space:]]' \ | |
21543 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21544 | rc=$? | |
21545 | if test $rc -ne 0; then | |
21546 | export=0 | |
21547 | for file in fs/inode.c; do | |
21548 | grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \ | |
21549 | "$LINUX/$file" 2>/dev/null | |
21550 | rc=$? | |
21551 | if test $rc -eq 0; then | |
21552 | export=1 | |
21553 | break; | |
21554 | fi | |
21555 | done | |
21556 | if test $export -eq 0; then : | |
21557 | rc=1 | |
21558 | else : | |
21559 | rc=0 | |
21560 | fi | |
21561 | else : | |
21562 | rc=0 | |
21563 | fi | |
21564 | ||
21565 | fi | |
21566 | if test $rc -ne 0; then : | |
21567 | ||
21568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21569 | $as_echo "no" >&6; } | |
21570 | ||
21571 | else : | |
21572 | ||
21573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21574 | $as_echo "yes" >&6; } | |
21575 | ||
21576 | $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h | |
21577 | ||
21578 | ||
21579 | fi | |
21580 | fi | |
21581 | ||
21582 | ||
21583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5 | |
21584 | $as_echo_n "checking whether setattr_prepare() is available... " >&6; } | |
21585 | ||
21586 | ||
21587 | ||
21588 | cat confdefs.h - <<_ACEOF >conftest.c | |
21589 | ||
21590 | ||
21591 | #include <linux/fs.h> | |
21592 | ||
21593 | int | |
21594 | main (void) | |
21595 | { | |
21596 | ||
21597 | struct dentry *dentry = NULL; | |
21598 | struct iattr *attr = NULL; | |
21599 | int error; | |
21600 | ||
21601 | error = setattr_prepare(dentry, attr); | |
21602 | ||
21603 | ; | |
21604 | return 0; | |
21605 | } | |
21606 | ||
21607 | _ACEOF | |
21608 | ||
21609 | ||
21610 | ||
21611 | cat - <<_ACEOF >conftest.h | |
21612 | ||
21613 | _ACEOF | |
21614 | ||
21615 | ||
21616 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21617 | echo "obj-m := conftest.o" >build/Makefile | |
21618 | modpost_flag='' | |
21619 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21620 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21621 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21622 | (eval $ac_try) 2>&5 | |
21623 | ac_status=$? | |
21624 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21625 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21626 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21627 | (eval $ac_try) 2>&5 | |
21628 | ac_status=$? | |
21629 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21630 | test $ac_status = 0; }; }; then : | |
21631 | rc=0 | |
21632 | else | |
21633 | $as_echo "$as_me: failed program was:" >&5 | |
21634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21635 | rc=1 | |
21636 | ||
21637 | ||
21638 | fi | |
21639 | rm -Rf build | |
21640 | ||
21641 | ||
21642 | if test $rc -ne 0; then : | |
21643 | ||
21644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21645 | $as_echo "no" >&6; } | |
21646 | ||
21647 | else | |
21648 | if test "x$enable_linux_builtin" != xyes; then | |
21649 | ||
21650 | grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \ | |
21651 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21652 | rc=$? | |
21653 | if test $rc -ne 0; then | |
21654 | export=0 | |
21655 | for file in fs/attr.c; do | |
21656 | grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \ | |
21657 | "$LINUX/$file" 2>/dev/null | |
21658 | rc=$? | |
21659 | if test $rc -eq 0; then | |
21660 | export=1 | |
21661 | break; | |
21662 | fi | |
21663 | done | |
21664 | if test $export -eq 0; then : | |
21665 | rc=1 | |
21666 | else : | |
21667 | rc=0 | |
21668 | fi | |
21669 | else : | |
21670 | rc=0 | |
21671 | fi | |
21672 | ||
21673 | fi | |
21674 | if test $rc -ne 0; then : | |
21675 | ||
21676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21677 | $as_echo "no" >&6; } | |
21678 | ||
21679 | else : | |
21680 | ||
21681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21682 | $as_echo "yes" >&6; } | |
21683 | ||
21684 | $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h | |
21685 | ||
21686 | ||
21687 | fi | |
21688 | fi | |
21689 | ||
21690 | ||
21691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5 | |
21692 | $as_echo_n "checking whether insert_inode_locked() is available... " >&6; } | |
21693 | ||
21694 | ||
21695 | ||
21696 | cat confdefs.h - <<_ACEOF >conftest.c | |
21697 | ||
21698 | ||
21699 | #include <linux/fs.h> | |
21700 | ||
21701 | int | |
21702 | main (void) | |
21703 | { | |
21704 | ||
21705 | insert_inode_locked(NULL); | |
21706 | ||
21707 | ; | |
21708 | return 0; | |
21709 | } | |
21710 | ||
21711 | _ACEOF | |
21712 | ||
21713 | ||
21714 | ||
21715 | cat - <<_ACEOF >conftest.h | |
21716 | ||
21717 | _ACEOF | |
21718 | ||
21719 | ||
21720 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21721 | echo "obj-m := conftest.o" >build/Makefile | |
21722 | modpost_flag='' | |
21723 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21724 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21725 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21726 | (eval $ac_try) 2>&5 | |
21727 | ac_status=$? | |
21728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21729 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21730 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21731 | (eval $ac_try) 2>&5 | |
21732 | ac_status=$? | |
21733 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21734 | test $ac_status = 0; }; }; then : | |
21735 | rc=0 | |
21736 | else | |
21737 | $as_echo "$as_me: failed program was:" >&5 | |
21738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21739 | rc=1 | |
21740 | ||
21741 | ||
21742 | fi | |
21743 | rm -Rf build | |
21744 | ||
21745 | ||
21746 | if test $rc -ne 0; then : | |
21747 | ||
21748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21749 | $as_echo "no" >&6; } | |
21750 | ||
21751 | else | |
21752 | if test "x$enable_linux_builtin" != xyes; then | |
21753 | ||
21754 | grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \ | |
21755 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21756 | rc=$? | |
21757 | if test $rc -ne 0; then | |
21758 | export=0 | |
21759 | for file in fs/inode.c; do | |
21760 | grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \ | |
21761 | "$LINUX/$file" 2>/dev/null | |
21762 | rc=$? | |
21763 | if test $rc -eq 0; then | |
21764 | export=1 | |
21765 | break; | |
21766 | fi | |
21767 | done | |
21768 | if test $export -eq 0; then : | |
21769 | rc=1 | |
21770 | else : | |
21771 | rc=0 | |
21772 | fi | |
21773 | else : | |
21774 | rc=0 | |
21775 | fi | |
21776 | ||
21777 | fi | |
21778 | if test $rc -ne 0; then : | |
21779 | ||
21780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21781 | $as_echo "no" >&6; } | |
21782 | ||
21783 | else : | |
21784 | ||
21785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21786 | $as_echo "yes" >&6; } | |
21787 | ||
21788 | $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h | |
21789 | ||
21790 | ||
21791 | fi | |
21792 | fi | |
21793 | ||
21794 | ||
21795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5 | |
21796 | $as_echo_n "checking whether d_make_root() is available... " >&6; } | |
21797 | ||
21798 | ||
21799 | ||
21800 | cat confdefs.h - <<_ACEOF >conftest.c | |
21801 | ||
21802 | ||
21803 | #include <linux/dcache.h> | |
21804 | ||
21805 | int | |
21806 | main (void) | |
21807 | { | |
21808 | ||
21809 | d_make_root(NULL); | |
21810 | ||
21811 | ; | |
21812 | return 0; | |
21813 | } | |
21814 | ||
21815 | _ACEOF | |
21816 | ||
21817 | ||
21818 | ||
21819 | cat - <<_ACEOF >conftest.h | |
21820 | ||
21821 | _ACEOF | |
21822 | ||
21823 | ||
21824 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21825 | echo "obj-m := conftest.o" >build/Makefile | |
21826 | modpost_flag='' | |
21827 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21828 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21829 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21830 | (eval $ac_try) 2>&5 | |
21831 | ac_status=$? | |
21832 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21833 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21834 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21835 | (eval $ac_try) 2>&5 | |
21836 | ac_status=$? | |
21837 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21838 | test $ac_status = 0; }; }; then : | |
21839 | rc=0 | |
21840 | else | |
21841 | $as_echo "$as_me: failed program was:" >&5 | |
21842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21843 | rc=1 | |
21844 | ||
21845 | ||
21846 | fi | |
21847 | rm -Rf build | |
21848 | ||
21849 | ||
21850 | if test $rc -ne 0; then : | |
21851 | ||
21852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21853 | $as_echo "no" >&6; } | |
21854 | ||
21855 | else | |
21856 | if test "x$enable_linux_builtin" != xyes; then | |
21857 | ||
21858 | grep -q -E '[[:space:]]d_make_root[[:space:]]' \ | |
21859 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21860 | rc=$? | |
21861 | if test $rc -ne 0; then | |
21862 | export=0 | |
21863 | for file in fs/dcache.c; do | |
21864 | grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \ | |
21865 | "$LINUX/$file" 2>/dev/null | |
21866 | rc=$? | |
21867 | if test $rc -eq 0; then | |
21868 | export=1 | |
21869 | break; | |
21870 | fi | |
21871 | done | |
21872 | if test $export -eq 0; then : | |
21873 | rc=1 | |
21874 | else : | |
21875 | rc=0 | |
21876 | fi | |
21877 | else : | |
21878 | rc=0 | |
21879 | fi | |
21880 | ||
21881 | fi | |
21882 | if test $rc -ne 0; then : | |
21883 | ||
21884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21885 | $as_echo "no" >&6; } | |
21886 | ||
21887 | else : | |
21888 | ||
21889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21890 | $as_echo "yes" >&6; } | |
21891 | ||
21892 | $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h | |
21893 | ||
21894 | ||
21895 | fi | |
21896 | fi | |
21897 | ||
21898 | ||
21899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5 | |
21900 | $as_echo_n "checking whether d_obtain_alias() is available... " >&6; } | |
21901 | ||
21902 | ||
21903 | ||
21904 | cat confdefs.h - <<_ACEOF >conftest.c | |
21905 | ||
21906 | ||
21907 | #include <linux/dcache.h> | |
21908 | ||
21909 | int | |
21910 | main (void) | |
21911 | { | |
21912 | ||
21913 | d_obtain_alias(NULL); | |
21914 | ||
21915 | ; | |
21916 | return 0; | |
21917 | } | |
21918 | ||
21919 | _ACEOF | |
21920 | ||
21921 | ||
21922 | ||
21923 | cat - <<_ACEOF >conftest.h | |
21924 | ||
21925 | _ACEOF | |
21926 | ||
21927 | ||
21928 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21929 | echo "obj-m := conftest.o" >build/Makefile | |
21930 | modpost_flag='' | |
21931 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21932 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21933 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21934 | (eval $ac_try) 2>&5 | |
21935 | ac_status=$? | |
21936 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21937 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21938 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21939 | (eval $ac_try) 2>&5 | |
21940 | ac_status=$? | |
21941 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21942 | test $ac_status = 0; }; }; then : | |
21943 | rc=0 | |
21944 | else | |
21945 | $as_echo "$as_me: failed program was:" >&5 | |
21946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21947 | rc=1 | |
21948 | ||
21949 | ||
21950 | fi | |
21951 | rm -Rf build | |
21952 | ||
21953 | ||
21954 | if test $rc -ne 0; then : | |
21955 | ||
21956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21957 | $as_echo "no" >&6; } | |
21958 | ||
21959 | else | |
21960 | if test "x$enable_linux_builtin" != xyes; then | |
21961 | ||
21962 | grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \ | |
21963 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21964 | rc=$? | |
21965 | if test $rc -ne 0; then | |
21966 | export=0 | |
21967 | for file in fs/dcache.c; do | |
21968 | grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \ | |
21969 | "$LINUX/$file" 2>/dev/null | |
21970 | rc=$? | |
21971 | if test $rc -eq 0; then | |
21972 | export=1 | |
21973 | break; | |
21974 | fi | |
21975 | done | |
21976 | if test $export -eq 0; then : | |
21977 | rc=1 | |
21978 | else : | |
21979 | rc=0 | |
21980 | fi | |
21981 | else : | |
21982 | rc=0 | |
21983 | fi | |
21984 | ||
21985 | fi | |
21986 | if test $rc -ne 0; then : | |
21987 | ||
21988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21989 | $as_echo "no" >&6; } | |
21990 | ||
21991 | else : | |
21992 | ||
21993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21994 | $as_echo "yes" >&6; } | |
21995 | ||
21996 | $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h | |
21997 | ||
21998 | ||
21999 | fi | |
22000 | fi | |
22001 | ||
22002 | ||
22003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5 | |
22004 | $as_echo_n "checking whether d_prune_aliases() is available... " >&6; } | |
22005 | ||
22006 | ||
22007 | ||
22008 | cat confdefs.h - <<_ACEOF >conftest.c | |
22009 | ||
22010 | ||
22011 | #include <linux/dcache.h> | |
22012 | ||
22013 | int | |
22014 | main (void) | |
22015 | { | |
22016 | ||
22017 | struct inode *ip = NULL; | |
22018 | d_prune_aliases(ip); | |
22019 | ||
22020 | ; | |
22021 | return 0; | |
22022 | } | |
22023 | ||
22024 | _ACEOF | |
22025 | ||
22026 | ||
22027 | ||
22028 | cat - <<_ACEOF >conftest.h | |
22029 | ||
22030 | _ACEOF | |
22031 | ||
22032 | ||
22033 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22034 | echo "obj-m := conftest.o" >build/Makefile | |
22035 | modpost_flag='' | |
22036 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22037 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22038 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22039 | (eval $ac_try) 2>&5 | |
22040 | ac_status=$? | |
22041 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22042 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22043 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22044 | (eval $ac_try) 2>&5 | |
22045 | ac_status=$? | |
22046 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22047 | test $ac_status = 0; }; }; then : | |
22048 | rc=0 | |
22049 | else | |
22050 | $as_echo "$as_me: failed program was:" >&5 | |
22051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22052 | rc=1 | |
22053 | ||
22054 | ||
22055 | fi | |
22056 | rm -Rf build | |
22057 | ||
22058 | ||
22059 | if test $rc -ne 0; then : | |
22060 | ||
22061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22062 | $as_echo "no" >&6; } | |
22063 | ||
22064 | else | |
22065 | if test "x$enable_linux_builtin" != xyes; then | |
22066 | ||
22067 | grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \ | |
22068 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
22069 | rc=$? | |
22070 | if test $rc -ne 0; then | |
22071 | export=0 | |
22072 | for file in fs/dcache.c; do | |
22073 | grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \ | |
22074 | "$LINUX/$file" 2>/dev/null | |
22075 | rc=$? | |
22076 | if test $rc -eq 0; then | |
22077 | export=1 | |
22078 | break; | |
22079 | fi | |
22080 | done | |
22081 | if test $export -eq 0; then : | |
22082 | rc=1 | |
22083 | else : | |
22084 | rc=0 | |
22085 | fi | |
22086 | else : | |
22087 | rc=0 | |
22088 | fi | |
22089 | ||
22090 | fi | |
22091 | if test $rc -ne 0; then : | |
22092 | ||
22093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22094 | $as_echo "no" >&6; } | |
22095 | ||
22096 | else : | |
22097 | ||
22098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22099 | $as_echo "yes" >&6; } | |
22100 | ||
22101 | $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h | |
22102 | ||
22103 | ||
22104 | fi | |
22105 | fi | |
22106 | ||
22107 | ||
22108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5 | |
22109 | $as_echo_n "checking whether d_set_d_op() is available... " >&6; } | |
22110 | ||
22111 | ||
22112 | ||
22113 | cat confdefs.h - <<_ACEOF >conftest.c | |
22114 | ||
22115 | ||
22116 | #include <linux/dcache.h> | |
22117 | ||
22118 | int | |
22119 | main (void) | |
22120 | { | |
22121 | ||
22122 | d_set_d_op(NULL, NULL); | |
22123 | ||
22124 | ; | |
22125 | return 0; | |
22126 | } | |
22127 | ||
22128 | _ACEOF | |
22129 | ||
22130 | ||
22131 | ||
22132 | cat - <<_ACEOF >conftest.h | |
22133 | ||
22134 | _ACEOF | |
22135 | ||
22136 | ||
22137 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22138 | echo "obj-m := conftest.o" >build/Makefile | |
22139 | modpost_flag='' | |
22140 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22141 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22142 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22143 | (eval $ac_try) 2>&5 | |
22144 | ac_status=$? | |
22145 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22146 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22147 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22148 | (eval $ac_try) 2>&5 | |
22149 | ac_status=$? | |
22150 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22151 | test $ac_status = 0; }; }; then : | |
22152 | rc=0 | |
22153 | else | |
22154 | $as_echo "$as_me: failed program was:" >&5 | |
22155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22156 | rc=1 | |
22157 | ||
22158 | ||
22159 | fi | |
22160 | rm -Rf build | |
22161 | ||
22162 | ||
22163 | if test $rc -ne 0; then : | |
22164 | ||
22165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22166 | $as_echo "no" >&6; } | |
22167 | ||
22168 | else | |
22169 | if test "x$enable_linux_builtin" != xyes; then | |
22170 | ||
22171 | grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \ | |
22172 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
22173 | rc=$? | |
22174 | if test $rc -ne 0; then | |
22175 | export=0 | |
22176 | for file in fs/dcache.c; do | |
22177 | grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \ | |
22178 | "$LINUX/$file" 2>/dev/null | |
22179 | rc=$? | |
22180 | if test $rc -eq 0; then | |
22181 | export=1 | |
22182 | break; | |
22183 | fi | |
22184 | done | |
22185 | if test $export -eq 0; then : | |
22186 | rc=1 | |
22187 | else : | |
22188 | rc=0 | |
22189 | fi | |
22190 | else : | |
22191 | rc=0 | |
22192 | fi | |
22193 | ||
22194 | fi | |
22195 | if test $rc -ne 0; then : | |
22196 | ||
22197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22198 | $as_echo "no" >&6; } | |
22199 | ||
22200 | else : | |
22201 | ||
22202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22203 | $as_echo "yes" >&6; } | |
22204 | ||
22205 | $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h | |
22206 | ||
22207 | ||
22208 | fi | |
22209 | fi | |
22210 | ||
22211 | ||
22212 | ||
22213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5 | |
22214 | $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; } | |
22215 | ||
22216 | ||
22217 | cat confdefs.h - <<_ACEOF >conftest.c | |
22218 | ||
22219 | ||
22220 | #include <linux/dcache.h> | |
22221 | ||
22222 | int revalidate (struct dentry *dentry, | |
22223 | struct nameidata *nidata) { return 0; } | |
22224 | ||
22225 | static const struct dentry_operations | |
22226 | dops __attribute__ ((unused)) = { | |
22227 | .d_revalidate = revalidate, | |
22228 | }; | |
22229 | ||
22230 | int | |
22231 | main (void) | |
22232 | { | |
22233 | ||
22234 | ||
22235 | ; | |
22236 | return 0; | |
22237 | } | |
22238 | ||
22239 | _ACEOF | |
22240 | ||
22241 | ||
22242 | ||
22243 | cat - <<_ACEOF >conftest.h | |
22244 | ||
22245 | _ACEOF | |
22246 | ||
22247 | ||
22248 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22249 | echo "obj-m := conftest.o" >build/Makefile | |
22250 | modpost_flag='' | |
22251 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22252 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22253 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22254 | (eval $ac_try) 2>&5 | |
22255 | ac_status=$? | |
22256 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22257 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22258 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22259 | (eval $ac_try) 2>&5 | |
22260 | ac_status=$? | |
22261 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22262 | test $ac_status = 0; }; }; then : | |
22263 | ||
22264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22265 | $as_echo "yes" >&6; } | |
22266 | ||
22267 | $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h | |
22268 | ||
22269 | ||
22270 | else | |
22271 | $as_echo "$as_me: failed program was:" >&5 | |
22272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22273 | ||
22274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22275 | $as_echo "no" >&6; } | |
22276 | ||
22277 | ||
22278 | ||
22279 | fi | |
22280 | rm -Rf build | |
22281 | ||
22282 | ||
22283 | ||
22284 | ||
22285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5 | |
22286 | $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; } | |
22287 | ||
22288 | ||
22289 | cat confdefs.h - <<_ACEOF >conftest.c | |
22290 | ||
22291 | ||
22292 | #include <linux/dcache.h> | |
22293 | ||
22294 | const struct dentry_operations test_d_op = { | |
22295 | .d_revalidate = NULL, | |
22296 | }; | |
22297 | ||
22298 | int | |
22299 | main (void) | |
22300 | { | |
22301 | ||
22302 | struct dentry d __attribute__ ((unused)); | |
22303 | ||
22304 | d.d_op = &test_d_op; | |
22305 | ||
22306 | ; | |
22307 | return 0; | |
22308 | } | |
22309 | ||
22310 | _ACEOF | |
22311 | ||
22312 | ||
22313 | ||
22314 | cat - <<_ACEOF >conftest.h | |
22315 | ||
22316 | _ACEOF | |
22317 | ||
22318 | ||
22319 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22320 | echo "obj-m := conftest.o" >build/Makefile | |
22321 | modpost_flag='' | |
22322 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22323 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22324 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22325 | (eval $ac_try) 2>&5 | |
22326 | ac_status=$? | |
22327 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22328 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22329 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22330 | (eval $ac_try) 2>&5 | |
22331 | ac_status=$? | |
22332 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22333 | test $ac_status = 0; }; }; then : | |
22334 | ||
22335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22336 | $as_echo "yes" >&6; } | |
22337 | ||
22338 | $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h | |
22339 | ||
22340 | ||
22341 | else | |
22342 | $as_echo "$as_me: failed program was:" >&5 | |
22343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22344 | ||
22345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22346 | $as_echo "no" >&6; } | |
22347 | ||
22348 | ||
22349 | ||
22350 | fi | |
22351 | rm -Rf build | |
22352 | ||
22353 | ||
22354 | ||
22355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5 | |
22356 | $as_echo_n "checking whether check_disk_size_change() is available... " >&6; } | |
22357 | ||
22358 | ||
22359 | ||
22360 | cat confdefs.h - <<_ACEOF >conftest.c | |
22361 | ||
22362 | ||
22363 | #include <linux/fs.h> | |
22364 | ||
22365 | int | |
22366 | main (void) | |
22367 | { | |
22368 | ||
22369 | check_disk_size_change(NULL, NULL); | |
22370 | ||
22371 | ; | |
22372 | return 0; | |
22373 | } | |
22374 | ||
22375 | _ACEOF | |
22376 | ||
22377 | ||
22378 | ||
22379 | cat - <<_ACEOF >conftest.h | |
22380 | ||
22381 | _ACEOF | |
22382 | ||
22383 | ||
22384 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22385 | echo "obj-m := conftest.o" >build/Makefile | |
22386 | modpost_flag='' | |
22387 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22388 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22389 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22390 | (eval $ac_try) 2>&5 | |
22391 | ac_status=$? | |
22392 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22393 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22394 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22395 | (eval $ac_try) 2>&5 | |
22396 | ac_status=$? | |
22397 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22398 | test $ac_status = 0; }; }; then : | |
22399 | rc=0 | |
22400 | else | |
22401 | $as_echo "$as_me: failed program was:" >&5 | |
22402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22403 | rc=1 | |
22404 | ||
22405 | ||
22406 | fi | |
22407 | rm -Rf build | |
22408 | ||
22409 | ||
22410 | if test $rc -ne 0; then : | |
22411 | ||
22412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22413 | $as_echo "no" >&6; } | |
22414 | ||
22415 | else | |
22416 | if test "x$enable_linux_builtin" != xyes; then | |
22417 | ||
22418 | grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \ | |
22419 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
22420 | rc=$? | |
22421 | if test $rc -ne 0; then | |
22422 | export=0 | |
22423 | for file in fs/block_dev.c; do | |
22424 | grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \ | |
22425 | "$LINUX/$file" 2>/dev/null | |
22426 | rc=$? | |
22427 | if test $rc -eq 0; then | |
22428 | export=1 | |
22429 | break; | |
22430 | fi | |
22431 | done | |
22432 | if test $export -eq 0; then : | |
22433 | rc=1 | |
22434 | else : | |
22435 | rc=0 | |
22436 | fi | |
22437 | else : | |
22438 | rc=0 | |
22439 | fi | |
22440 | ||
22441 | fi | |
22442 | if test $rc -ne 0; then : | |
22443 | ||
22444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22445 | $as_echo "no" >&6; } | |
22446 | ||
22447 | else : | |
22448 | ||
22449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22450 | $as_echo "yes" >&6; } | |
22451 | ||
22452 | $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h | |
22453 | ||
22454 | ||
22455 | fi | |
22456 | fi | |
22457 | ||
22458 | ||
22459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5 | |
22460 | $as_echo_n "checking whether truncate_setsize() is available... " >&6; } | |
22461 | ||
22462 | ||
22463 | ||
22464 | cat confdefs.h - <<_ACEOF >conftest.c | |
22465 | ||
22466 | ||
22467 | #include <linux/mm.h> | |
22468 | ||
22469 | int | |
22470 | main (void) | |
22471 | { | |
22472 | ||
22473 | truncate_setsize(NULL, 0); | |
22474 | ||
22475 | ; | |
22476 | return 0; | |
22477 | } | |
22478 | ||
22479 | _ACEOF | |
22480 | ||
22481 | ||
22482 | ||
22483 | cat - <<_ACEOF >conftest.h | |
22484 | ||
22485 | _ACEOF | |
22486 | ||
22487 | ||
22488 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22489 | echo "obj-m := conftest.o" >build/Makefile | |
22490 | modpost_flag='' | |
22491 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22492 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22493 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22494 | (eval $ac_try) 2>&5 | |
22495 | ac_status=$? | |
22496 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22497 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22498 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22499 | (eval $ac_try) 2>&5 | |
22500 | ac_status=$? | |
22501 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22502 | test $ac_status = 0; }; }; then : | |
22503 | rc=0 | |
22504 | else | |
22505 | $as_echo "$as_me: failed program was:" >&5 | |
22506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22507 | rc=1 | |
22508 | ||
22509 | ||
22510 | fi | |
22511 | rm -Rf build | |
22512 | ||
22513 | ||
22514 | if test $rc -ne 0; then : | |
22515 | ||
22516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22517 | $as_echo "no" >&6; } | |
22518 | ||
22519 | else | |
22520 | if test "x$enable_linux_builtin" != xyes; then | |
22521 | ||
22522 | grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \ | |
22523 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
22524 | rc=$? | |
22525 | if test $rc -ne 0; then | |
22526 | export=0 | |
22527 | for file in mm/truncate.c; do | |
22528 | grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \ | |
22529 | "$LINUX/$file" 2>/dev/null | |
22530 | rc=$? | |
22531 | if test $rc -eq 0; then | |
22532 | export=1 | |
22533 | break; | |
22534 | fi | |
22535 | done | |
22536 | if test $export -eq 0; then : | |
22537 | rc=1 | |
22538 | else : | |
22539 | rc=0 | |
22540 | fi | |
22541 | else : | |
22542 | rc=0 | |
22543 | fi | |
22544 | ||
22545 | fi | |
22546 | if test $rc -ne 0; then : | |
22547 | ||
22548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22549 | $as_echo "no" >&6; } | |
22550 | ||
22551 | else : | |
22552 | ||
22553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22554 | $as_echo "yes" >&6; } | |
22555 | ||
22556 | $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h | |
22557 | ||
22558 | ||
22559 | fi | |
22560 | fi | |
22561 | ||
22562 | ||
22563 | ||
22564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5 | |
22565 | $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; } | |
22566 | ||
22567 | ||
22568 | cat confdefs.h - <<_ACEOF >conftest.c | |
22569 | ||
22570 | ||
22571 | #include <linux/security.h> | |
22572 | ||
22573 | int | |
22574 | main (void) | |
22575 | { | |
22576 | ||
22577 | struct inode *ip __attribute__ ((unused)) = NULL; | |
22578 | struct inode *dip __attribute__ ((unused)) = NULL; | |
22579 | const struct qstr *str __attribute__ ((unused)) = NULL; | |
22580 | char *name __attribute__ ((unused)) = NULL; | |
22581 | void *value __attribute__ ((unused)) = NULL; | |
22582 | size_t len __attribute__ ((unused)) = 0; | |
22583 | ||
22584 | security_inode_init_security(ip, dip, str, &name, &value, &len); | |
22585 | ||
22586 | ; | |
22587 | return 0; | |
22588 | } | |
22589 | ||
22590 | _ACEOF | |
22591 | ||
22592 | ||
22593 | ||
22594 | cat - <<_ACEOF >conftest.h | |
22595 | ||
22596 | _ACEOF | |
22597 | ||
22598 | ||
22599 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22600 | echo "obj-m := conftest.o" >build/Makefile | |
22601 | modpost_flag='' | |
22602 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22603 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22604 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22605 | (eval $ac_try) 2>&5 | |
22606 | ac_status=$? | |
22607 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22608 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22609 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22610 | (eval $ac_try) 2>&5 | |
22611 | ac_status=$? | |
22612 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22613 | test $ac_status = 0; }; }; then : | |
22614 | ||
22615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22616 | $as_echo "yes" >&6; } | |
22617 | ||
22618 | $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h | |
22619 | ||
22620 | ||
22621 | else | |
22622 | $as_echo "$as_me: failed program was:" >&5 | |
22623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22624 | ||
22625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22626 | $as_echo "no" >&6; } | |
22627 | ||
22628 | ||
22629 | ||
22630 | fi | |
22631 | rm -Rf build | |
22632 | ||
22633 | ||
22634 | ||
22635 | ||
22636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5 | |
22637 | $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; } | |
22638 | ||
22639 | ||
22640 | cat confdefs.h - <<_ACEOF >conftest.c | |
22641 | ||
22642 | ||
22643 | #include <linux/security.h> | |
22644 | ||
22645 | int | |
22646 | main (void) | |
22647 | { | |
22648 | ||
22649 | struct inode *ip __attribute__ ((unused)) = NULL; | |
22650 | struct inode *dip __attribute__ ((unused)) = NULL; | |
22651 | const struct qstr *str __attribute__ ((unused)) = NULL; | |
22652 | initxattrs func __attribute__ ((unused)) = NULL; | |
22653 | ||
22654 | security_inode_init_security(ip, dip, str, func, NULL); | |
22655 | ||
22656 | ; | |
22657 | return 0; | |
22658 | } | |
22659 | ||
22660 | _ACEOF | |
22661 | ||
22662 | ||
22663 | ||
22664 | cat - <<_ACEOF >conftest.h | |
22665 | ||
22666 | _ACEOF | |
22667 | ||
22668 | ||
22669 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22670 | echo "obj-m := conftest.o" >build/Makefile | |
22671 | modpost_flag='' | |
22672 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22673 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22674 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22675 | (eval $ac_try) 2>&5 | |
22676 | ac_status=$? | |
22677 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22678 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22679 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22680 | (eval $ac_try) 2>&5 | |
22681 | ac_status=$? | |
22682 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22683 | test $ac_status = 0; }; }; then : | |
22684 | ||
22685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22686 | $as_echo "yes" >&6; } | |
22687 | ||
22688 | $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h | |
22689 | ||
22690 | ||
22691 | else | |
22692 | $as_echo "$as_me: failed program was:" >&5 | |
22693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22694 | ||
22695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22696 | $as_echo "no" >&6; } | |
22697 | ||
22698 | ||
22699 | ||
22700 | fi | |
22701 | rm -Rf build | |
22702 | ||
22703 | ||
22704 | ||
22705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5 | |
22706 | $as_echo_n "checking whether mount_nodev() is available... " >&6; } | |
22707 | ||
22708 | ||
22709 | ||
22710 | cat confdefs.h - <<_ACEOF >conftest.c | |
22711 | ||
22712 | ||
22713 | #include <linux/fs.h> | |
22714 | ||
22715 | int | |
22716 | main (void) | |
22717 | { | |
22718 | ||
22719 | mount_nodev(NULL, 0, NULL, NULL); | |
22720 | ||
22721 | ; | |
22722 | return 0; | |
22723 | } | |
22724 | ||
22725 | _ACEOF | |
22726 | ||
22727 | ||
22728 | ||
22729 | cat - <<_ACEOF >conftest.h | |
22730 | ||
22731 | _ACEOF | |
22732 | ||
22733 | ||
22734 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22735 | echo "obj-m := conftest.o" >build/Makefile | |
22736 | modpost_flag='' | |
22737 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22738 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22739 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22740 | (eval $ac_try) 2>&5 | |
22741 | ac_status=$? | |
22742 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22743 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22744 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22745 | (eval $ac_try) 2>&5 | |
22746 | ac_status=$? | |
22747 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22748 | test $ac_status = 0; }; }; then : | |
22749 | rc=0 | |
22750 | else | |
22751 | $as_echo "$as_me: failed program was:" >&5 | |
22752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22753 | rc=1 | |
22754 | ||
22755 | ||
22756 | fi | |
22757 | rm -Rf build | |
22758 | ||
22759 | ||
22760 | if test $rc -ne 0; then : | |
22761 | ||
22762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22763 | $as_echo "no" >&6; } | |
22764 | ||
22765 | else | |
22766 | if test "x$enable_linux_builtin" != xyes; then | |
22767 | ||
22768 | grep -q -E '[[:space:]]mount_nodev[[:space:]]' \ | |
22769 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
22770 | rc=$? | |
22771 | if test $rc -ne 0; then | |
22772 | export=0 | |
22773 | for file in fs/super.c; do | |
22774 | grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \ | |
22775 | "$LINUX/$file" 2>/dev/null | |
22776 | rc=$? | |
22777 | if test $rc -eq 0; then | |
22778 | export=1 | |
22779 | break; | |
22780 | fi | |
22781 | done | |
22782 | if test $export -eq 0; then : | |
22783 | rc=1 | |
22784 | else : | |
22785 | rc=0 | |
22786 | fi | |
22787 | else : | |
22788 | rc=0 | |
22789 | fi | |
22790 | ||
22791 | fi | |
22792 | if test $rc -ne 0; then : | |
22793 | ||
22794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22795 | $as_echo "no" >&6; } | |
22796 | ||
22797 | else : | |
22798 | ||
22799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22800 | $as_echo "yes" >&6; } | |
22801 | ||
22802 | $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h | |
22803 | ||
22804 | ||
22805 | fi | |
22806 | fi | |
22807 | ||
22808 | ||
22809 | ||
22810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5 | |
22811 | $as_echo_n "checking whether super_block has s_shrink... " >&6; } | |
22812 | ||
22813 | ||
22814 | cat confdefs.h - <<_ACEOF >conftest.c | |
22815 | ||
22816 | ||
22817 | #include <linux/fs.h> | |
22818 | ||
22819 | int shrink(struct shrinker *s, struct shrink_control *sc) | |
22820 | { return 0; } | |
22821 | ||
22822 | static const struct super_block | |
22823 | sb __attribute__ ((unused)) = { | |
22824 | .s_shrink.shrink = shrink, | |
22825 | .s_shrink.seeks = DEFAULT_SEEKS, | |
22826 | .s_shrink.batch = 0, | |
22827 | }; | |
22828 | ||
22829 | int | |
22830 | main (void) | |
22831 | { | |
22832 | ||
22833 | ||
22834 | ; | |
22835 | return 0; | |
22836 | } | |
22837 | ||
22838 | _ACEOF | |
22839 | ||
22840 | ||
22841 | ||
22842 | cat - <<_ACEOF >conftest.h | |
22843 | ||
22844 | _ACEOF | |
22845 | ||
22846 | ||
22847 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22848 | echo "obj-m := conftest.o" >build/Makefile | |
22849 | modpost_flag='' | |
22850 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22851 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22852 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22853 | (eval $ac_try) 2>&5 | |
22854 | ac_status=$? | |
22855 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22856 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22857 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22858 | (eval $ac_try) 2>&5 | |
22859 | ac_status=$? | |
22860 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22861 | test $ac_status = 0; }; }; then : | |
22862 | ||
22863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22864 | $as_echo "yes" >&6; } | |
22865 | ||
22866 | $as_echo "#define HAVE_SHRINK 1" >>confdefs.h | |
22867 | ||
22868 | ||
22869 | ||
22870 | else | |
22871 | $as_echo "$as_me: failed program was:" >&5 | |
22872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22873 | ||
22874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22875 | $as_echo "no" >&6; } | |
22876 | ||
22877 | ||
22878 | ||
22879 | fi | |
22880 | rm -Rf build | |
22881 | ||
22882 | ||
22883 | ||
22884 | ||
22885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5 | |
22886 | $as_echo_n "checking whether shrink_control has nid... " >&6; } | |
22887 | ||
22888 | ||
22889 | cat confdefs.h - <<_ACEOF >conftest.c | |
22890 | ||
22891 | ||
22892 | #include <linux/fs.h> | |
22893 | ||
22894 | int | |
22895 | main (void) | |
22896 | { | |
22897 | ||
22898 | struct shrink_control sc __attribute__ ((unused)); | |
22899 | unsigned long scnidsize __attribute__ ((unused)) = | |
22900 | sizeof(sc.nid); | |
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 SHRINK_CONTROL_HAS_NID 1" >>confdefs.h | |
22935 | ||
22936 | ||
22937 | else | |
22938 | $as_echo "$as_me: failed program was:" >&5 | |
22939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22940 | ||
22941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22942 | $as_echo "no" >&6; } | |
22943 | ||
22944 | ||
22945 | ||
22946 | fi | |
22947 | rm -Rf build | |
22948 | ||
22949 | ||
22950 | ||
22951 | ||
22952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5 | |
22953 | $as_echo_n "checking whether super_block has s_instances list_head... " >&6; } | |
22954 | ||
22955 | ||
22956 | cat confdefs.h - <<_ACEOF >conftest.c | |
22957 | ||
22958 | ||
22959 | #include <linux/fs.h> | |
22960 | ||
22961 | int | |
22962 | main (void) | |
22963 | { | |
22964 | ||
22965 | struct super_block sb __attribute__ ((unused)); | |
22966 | ||
22967 | INIT_LIST_HEAD(&sb.s_instances); | |
22968 | ||
22969 | ; | |
22970 | return 0; | |
22971 | } | |
22972 | ||
22973 | _ACEOF | |
22974 | ||
22975 | ||
22976 | ||
22977 | cat - <<_ACEOF >conftest.h | |
22978 | ||
22979 | _ACEOF | |
22980 | ||
22981 | ||
22982 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22983 | echo "obj-m := conftest.o" >build/Makefile | |
22984 | modpost_flag='' | |
22985 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22986 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22987 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22988 | (eval $ac_try) 2>&5 | |
22989 | ac_status=$? | |
22990 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22991 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22992 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22993 | (eval $ac_try) 2>&5 | |
22994 | ac_status=$? | |
22995 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22996 | test $ac_status = 0; }; }; then : | |
22997 | ||
22998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22999 | $as_echo "yes" >&6; } | |
23000 | ||
23001 | $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h | |
23002 | ||
23003 | ||
23004 | else | |
23005 | $as_echo "$as_me: failed program was:" >&5 | |
23006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23007 | ||
23008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23009 | $as_echo "no" >&6; } | |
23010 | ||
23011 | ||
23012 | ||
23013 | fi | |
23014 | rm -Rf build | |
23015 | ||
23016 | ||
23017 | ||
23018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5 | |
23019 | $as_echo_n "checking whether super_block has s_d_op... " >&6; } | |
23020 | ||
23021 | ||
23022 | cat confdefs.h - <<_ACEOF >conftest.c | |
23023 | ||
23024 | ||
23025 | #include <linux/fs.h> | |
23026 | ||
23027 | int | |
23028 | main (void) | |
23029 | { | |
23030 | ||
23031 | struct super_block sb __attribute__ ((unused)); | |
23032 | sb.s_d_op = NULL; | |
23033 | ||
23034 | ; | |
23035 | return 0; | |
23036 | } | |
23037 | ||
23038 | _ACEOF | |
23039 | ||
23040 | ||
23041 | ||
23042 | cat - <<_ACEOF >conftest.h | |
23043 | ||
23044 | _ACEOF | |
23045 | ||
23046 | ||
23047 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23048 | echo "obj-m := conftest.o" >build/Makefile | |
23049 | modpost_flag='' | |
23050 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23051 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23052 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23053 | (eval $ac_try) 2>&5 | |
23054 | ac_status=$? | |
23055 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23056 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23057 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23058 | (eval $ac_try) 2>&5 | |
23059 | ac_status=$? | |
23060 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23061 | test $ac_status = 0; }; }; then : | |
23062 | ||
23063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23064 | $as_echo "yes" >&6; } | |
23065 | ||
23066 | $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h | |
23067 | ||
23068 | ||
23069 | else | |
23070 | $as_echo "$as_me: failed program was:" >&5 | |
23071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23072 | ||
23073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23074 | $as_echo "no" >&6; } | |
23075 | ||
23076 | ||
23077 | ||
23078 | fi | |
23079 | rm -Rf build | |
23080 | ||
23081 | ||
23082 | ||
23083 | ||
df9d7621 CIK |
23084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5 |
23085 | $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; } | |
87d546d8 TG |
23086 | |
23087 | ||
23088 | ||
23089 | cat confdefs.h - <<_ACEOF >conftest.c | |
23090 | ||
23091 | ||
df9d7621 CIK |
23092 | #include <linux/fs.h> |
23093 | struct super_block sb; | |
87d546d8 TG |
23094 | |
23095 | int | |
23096 | main (void) | |
23097 | { | |
23098 | ||
23099 | char *name = "bdi"; | |
23100 | int error __attribute__((unused)) = | |
df9d7621 | 23101 | super_setup_bdi_name(&sb, name); |
87d546d8 TG |
23102 | |
23103 | ; | |
23104 | return 0; | |
23105 | } | |
23106 | ||
23107 | _ACEOF | |
23108 | ||
23109 | ||
23110 | ||
23111 | cat - <<_ACEOF >conftest.h | |
23112 | ||
23113 | _ACEOF | |
23114 | ||
23115 | ||
23116 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23117 | echo "obj-m := conftest.o" >build/Makefile | |
23118 | modpost_flag='' | |
23119 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23120 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23121 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23122 | (eval $ac_try) 2>&5 | |
23123 | ac_status=$? | |
23124 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23125 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23126 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23127 | (eval $ac_try) 2>&5 | |
23128 | ac_status=$? | |
23129 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23130 | test $ac_status = 0; }; }; then : | |
23131 | rc=0 | |
23132 | else | |
23133 | $as_echo "$as_me: failed program was:" >&5 | |
23134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23135 | rc=1 | |
23136 | ||
23137 | ||
23138 | fi | |
23139 | rm -Rf build | |
23140 | ||
23141 | ||
23142 | if test $rc -ne 0; then : | |
23143 | ||
23144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23145 | $as_echo "no" >&6; } | |
df9d7621 CIK |
23146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5 |
23147 | $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; } | |
87d546d8 TG |
23148 | |
23149 | ||
23150 | ||
23151 | cat confdefs.h - <<_ACEOF >conftest.c | |
23152 | ||
23153 | ||
23154 | #include <linux/backing-dev.h> | |
23155 | struct backing_dev_info bdi; | |
23156 | ||
23157 | int | |
23158 | main (void) | |
23159 | { | |
23160 | ||
23161 | char *name = "bdi"; | |
87d546d8 | 23162 | int error __attribute__((unused)) = |
df9d7621 | 23163 | bdi_setup_and_register(&bdi, name); |
87d546d8 TG |
23164 | |
23165 | ; | |
23166 | return 0; | |
23167 | } | |
23168 | ||
23169 | _ACEOF | |
23170 | ||
23171 | ||
23172 | ||
23173 | cat - <<_ACEOF >conftest.h | |
23174 | ||
23175 | _ACEOF | |
23176 | ||
23177 | ||
23178 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23179 | echo "obj-m := conftest.o" >build/Makefile | |
23180 | modpost_flag='' | |
23181 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23182 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23183 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23184 | (eval $ac_try) 2>&5 | |
23185 | ac_status=$? | |
23186 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23187 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23188 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23189 | (eval $ac_try) 2>&5 | |
23190 | ac_status=$? | |
23191 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23192 | test $ac_status = 0; }; }; then : | |
23193 | rc=0 | |
23194 | else | |
23195 | $as_echo "$as_me: failed program was:" >&5 | |
23196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23197 | rc=1 | |
23198 | ||
23199 | ||
23200 | fi | |
23201 | rm -Rf build | |
23202 | ||
23203 | ||
23204 | if test $rc -ne 0; then : | |
23205 | ||
23206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23207 | $as_echo "no" >&6; } | |
df9d7621 CIK |
23208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 |
23209 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
23210 | ||
23211 | ||
23212 | ||
23213 | cat confdefs.h - <<_ACEOF >conftest.c | |
23214 | ||
23215 | ||
23216 | #include <linux/backing-dev.h> | |
23217 | struct backing_dev_info bdi; | |
23218 | ||
23219 | int | |
23220 | main (void) | |
23221 | { | |
23222 | ||
23223 | char *name = "bdi"; | |
23224 | unsigned int cap = BDI_CAP_MAP_COPY; | |
23225 | int error __attribute__((unused)) = | |
23226 | bdi_setup_and_register(&bdi, name, cap); | |
23227 | ||
23228 | ; | |
23229 | return 0; | |
23230 | } | |
23231 | ||
23232 | _ACEOF | |
23233 | ||
23234 | ||
23235 | ||
23236 | cat - <<_ACEOF >conftest.h | |
23237 | ||
23238 | _ACEOF | |
23239 | ||
23240 | ||
23241 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23242 | echo "obj-m := conftest.o" >build/Makefile | |
23243 | modpost_flag='' | |
23244 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23245 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23246 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23247 | (eval $ac_try) 2>&5 | |
23248 | ac_status=$? | |
23249 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23250 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
23256 | rc=0 | |
23257 | else | |
23258 | $as_echo "$as_me: failed program was:" >&5 | |
23259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23260 | rc=1 | |
23261 | ||
23262 | ||
23263 | fi | |
23264 | rm -Rf build | |
23265 | ||
23266 | ||
23267 | if test $rc -ne 0; then : | |
23268 | ||
23269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23270 | $as_echo "no" >&6; } | |
87d546d8 TG |
23271 | |
23272 | else | |
23273 | if test "x$enable_linux_builtin" != xyes; then | |
23274 | ||
23275 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
23276 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23277 | rc=$? | |
23278 | if test $rc -ne 0; then | |
23279 | export=0 | |
23280 | for file in mm/backing-dev.c; do | |
23281 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
23282 | "$LINUX/$file" 2>/dev/null | |
23283 | rc=$? | |
23284 | if test $rc -eq 0; then | |
23285 | export=1 | |
23286 | break; | |
23287 | fi | |
23288 | done | |
23289 | if test $export -eq 0; then : | |
23290 | rc=1 | |
23291 | else : | |
23292 | rc=0 | |
23293 | fi | |
23294 | else : | |
23295 | rc=0 | |
23296 | fi | |
23297 | ||
23298 | fi | |
23299 | if test $rc -ne 0; then : | |
23300 | ||
df9d7621 | 23301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
23302 | $as_echo "no" >&6; } |
23303 | ||
23304 | else : | |
23305 | ||
df9d7621 | 23306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
23307 | $as_echo "yes" >&6; } |
23308 | ||
23309 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
23310 | ||
23311 | ||
23312 | fi | |
23313 | fi | |
23314 | ||
23315 | ||
23316 | else | |
23317 | if test "x$enable_linux_builtin" != xyes; then | |
23318 | ||
23319 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
23320 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23321 | rc=$? | |
23322 | if test $rc -ne 0; then | |
23323 | export=0 | |
23324 | for file in mm/backing-dev.c; do | |
23325 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
23326 | "$LINUX/$file" 2>/dev/null | |
23327 | rc=$? | |
23328 | if test $rc -eq 0; then | |
23329 | export=1 | |
23330 | break; | |
23331 | fi | |
23332 | done | |
23333 | if test $export -eq 0; then : | |
23334 | rc=1 | |
23335 | else : | |
23336 | rc=0 | |
23337 | fi | |
23338 | else : | |
23339 | rc=0 | |
23340 | fi | |
23341 | ||
23342 | fi | |
23343 | if test $rc -ne 0; then : | |
23344 | ||
df9d7621 | 23345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 | 23346 | $as_echo "no" >&6; } |
df9d7621 | 23347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 |
87d546d8 TG |
23348 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } |
23349 | ||
23350 | ||
23351 | ||
23352 | cat confdefs.h - <<_ACEOF >conftest.c | |
23353 | ||
23354 | ||
df9d7621 CIK |
23355 | #include <linux/backing-dev.h> |
23356 | struct backing_dev_info bdi; | |
87d546d8 TG |
23357 | |
23358 | int | |
23359 | main (void) | |
23360 | { | |
23361 | ||
df9d7621 CIK |
23362 | char *name = "bdi"; |
23363 | unsigned int cap = BDI_CAP_MAP_COPY; | |
23364 | int error __attribute__((unused)) = | |
23365 | bdi_setup_and_register(&bdi, name, cap); | |
87d546d8 TG |
23366 | |
23367 | ; | |
23368 | return 0; | |
23369 | } | |
23370 | ||
23371 | _ACEOF | |
23372 | ||
23373 | ||
23374 | ||
23375 | cat - <<_ACEOF >conftest.h | |
23376 | ||
23377 | _ACEOF | |
23378 | ||
23379 | ||
23380 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23381 | echo "obj-m := conftest.o" >build/Makefile | |
23382 | modpost_flag='' | |
23383 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23384 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23385 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23386 | (eval $ac_try) 2>&5 | |
23387 | ac_status=$? | |
23388 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23389 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23390 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23391 | (eval $ac_try) 2>&5 | |
23392 | ac_status=$? | |
23393 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23394 | test $ac_status = 0; }; }; then : | |
23395 | rc=0 | |
23396 | else | |
23397 | $as_echo "$as_me: failed program was:" >&5 | |
23398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23399 | rc=1 | |
23400 | ||
23401 | ||
23402 | fi | |
23403 | rm -Rf build | |
23404 | ||
23405 | ||
23406 | if test $rc -ne 0; then : | |
23407 | ||
df9d7621 | 23408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
23409 | $as_echo "no" >&6; } |
23410 | ||
23411 | else | |
23412 | if test "x$enable_linux_builtin" != xyes; then | |
23413 | ||
23414 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
23415 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23416 | rc=$? | |
23417 | if test $rc -ne 0; then | |
23418 | export=0 | |
23419 | for file in mm/backing-dev.c; do | |
23420 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
23421 | "$LINUX/$file" 2>/dev/null | |
23422 | rc=$? | |
23423 | if test $rc -eq 0; then | |
23424 | export=1 | |
23425 | break; | |
23426 | fi | |
23427 | done | |
23428 | if test $export -eq 0; then : | |
23429 | rc=1 | |
23430 | else : | |
23431 | rc=0 | |
23432 | fi | |
23433 | else : | |
23434 | rc=0 | |
23435 | fi | |
23436 | ||
23437 | fi | |
23438 | if test $rc -ne 0; then : | |
23439 | ||
df9d7621 | 23440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
23441 | $as_echo "no" >&6; } |
23442 | ||
23443 | else : | |
23444 | ||
df9d7621 | 23445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
23446 | $as_echo "yes" >&6; } |
23447 | ||
23448 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
23449 | ||
23450 | ||
23451 | fi | |
23452 | fi | |
23453 | ||
23454 | ||
23455 | else : | |
23456 | ||
df9d7621 | 23457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
23458 | $as_echo "yes" >&6; } |
23459 | ||
23460 | $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
23461 | ||
23462 | ||
23463 | fi | |
23464 | fi | |
23465 | ||
23466 | ||
df9d7621 CIK |
23467 | else |
23468 | if test "x$enable_linux_builtin" != xyes; then | |
23469 | ||
23470 | grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \ | |
23471 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23472 | rc=$? | |
23473 | if test $rc -ne 0; then | |
23474 | export=0 | |
23475 | for file in fs/super.c; do | |
23476 | grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \ | |
23477 | "$LINUX/$file" 2>/dev/null | |
23478 | rc=$? | |
23479 | if test $rc -eq 0; then | |
23480 | export=1 | |
23481 | break; | |
23482 | fi | |
23483 | done | |
23484 | if test $export -eq 0; then : | |
23485 | rc=1 | |
23486 | else : | |
23487 | rc=0 | |
23488 | fi | |
23489 | else : | |
23490 | rc=0 | |
23491 | fi | |
23492 | ||
23493 | fi | |
23494 | if test $rc -ne 0; then : | |
23495 | ||
23496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23497 | $as_echo "no" >&6; } | |
23498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5 | |
23499 | $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; } | |
87d546d8 | 23500 | |
87d546d8 TG |
23501 | |
23502 | ||
23503 | cat confdefs.h - <<_ACEOF >conftest.c | |
23504 | ||
23505 | ||
df9d7621 CIK |
23506 | #include <linux/backing-dev.h> |
23507 | struct backing_dev_info bdi; | |
87d546d8 TG |
23508 | |
23509 | int | |
23510 | main (void) | |
23511 | { | |
23512 | ||
df9d7621 CIK |
23513 | char *name = "bdi"; |
23514 | int error __attribute__((unused)) = | |
23515 | bdi_setup_and_register(&bdi, name); | |
87d546d8 TG |
23516 | |
23517 | ; | |
23518 | return 0; | |
23519 | } | |
23520 | ||
23521 | _ACEOF | |
23522 | ||
23523 | ||
23524 | ||
23525 | cat - <<_ACEOF >conftest.h | |
23526 | ||
23527 | _ACEOF | |
23528 | ||
23529 | ||
23530 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23531 | echo "obj-m := conftest.o" >build/Makefile | |
23532 | modpost_flag='' | |
23533 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23534 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23535 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23536 | (eval $ac_try) 2>&5 | |
23537 | ac_status=$? | |
23538 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23539 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23540 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23541 | (eval $ac_try) 2>&5 | |
23542 | ac_status=$? | |
23543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23544 | test $ac_status = 0; }; }; then : | |
df9d7621 | 23545 | rc=0 |
87d546d8 TG |
23546 | else |
23547 | $as_echo "$as_me: failed program was:" >&5 | |
23548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
df9d7621 | 23549 | rc=1 |
87d546d8 TG |
23550 | |
23551 | ||
23552 | fi | |
23553 | rm -Rf build | |
23554 | ||
23555 | ||
df9d7621 | 23556 | if test $rc -ne 0; then : |
87d546d8 | 23557 | |
df9d7621 CIK |
23558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
23559 | $as_echo "no" >&6; } | |
23560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 | |
23561 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
87d546d8 | 23562 | |
87d546d8 TG |
23563 | |
23564 | ||
23565 | cat confdefs.h - <<_ACEOF >conftest.c | |
23566 | ||
23567 | ||
df9d7621 CIK |
23568 | #include <linux/backing-dev.h> |
23569 | struct backing_dev_info bdi; | |
87d546d8 TG |
23570 | |
23571 | int | |
23572 | main (void) | |
23573 | { | |
23574 | ||
df9d7621 CIK |
23575 | char *name = "bdi"; |
23576 | unsigned int cap = BDI_CAP_MAP_COPY; | |
23577 | int error __attribute__((unused)) = | |
23578 | bdi_setup_and_register(&bdi, name, cap); | |
87d546d8 TG |
23579 | |
23580 | ; | |
23581 | return 0; | |
23582 | } | |
23583 | ||
23584 | _ACEOF | |
23585 | ||
23586 | ||
23587 | ||
23588 | cat - <<_ACEOF >conftest.h | |
23589 | ||
23590 | _ACEOF | |
23591 | ||
23592 | ||
23593 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23594 | echo "obj-m := conftest.o" >build/Makefile | |
23595 | modpost_flag='' | |
23596 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23597 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23598 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23599 | (eval $ac_try) 2>&5 | |
23600 | ac_status=$? | |
23601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23602 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
df9d7621 CIK |
23608 | rc=0 |
23609 | else | |
23610 | $as_echo "$as_me: failed program was:" >&5 | |
23611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23612 | rc=1 | |
87d546d8 | 23613 | |
87d546d8 | 23614 | |
df9d7621 CIK |
23615 | fi |
23616 | rm -Rf build | |
87d546d8 TG |
23617 | |
23618 | ||
df9d7621 | 23619 | if test $rc -ne 0; then : |
87d546d8 | 23620 | |
df9d7621 | 23621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
23622 | $as_echo "no" >&6; } |
23623 | ||
df9d7621 CIK |
23624 | else |
23625 | if test "x$enable_linux_builtin" != xyes; then | |
87d546d8 | 23626 | |
df9d7621 CIK |
23627 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ |
23628 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23629 | rc=$? | |
23630 | if test $rc -ne 0; then | |
23631 | export=0 | |
23632 | for file in mm/backing-dev.c; do | |
23633 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
23634 | "$LINUX/$file" 2>/dev/null | |
23635 | rc=$? | |
23636 | if test $rc -eq 0; then | |
23637 | export=1 | |
23638 | break; | |
23639 | fi | |
23640 | done | |
23641 | if test $export -eq 0; then : | |
23642 | rc=1 | |
23643 | else : | |
23644 | rc=0 | |
23645 | fi | |
23646 | else : | |
23647 | rc=0 | |
23648 | fi | |
87d546d8 | 23649 | |
df9d7621 CIK |
23650 | fi |
23651 | if test $rc -ne 0; then : | |
87d546d8 | 23652 | |
df9d7621 CIK |
23653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
23654 | $as_echo "no" >&6; } | |
87d546d8 | 23655 | |
df9d7621 CIK |
23656 | else : |
23657 | ||
23658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23659 | $as_echo "yes" >&6; } | |
23660 | ||
23661 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
23662 | ||
23663 | ||
23664 | fi | |
23665 | fi | |
23666 | ||
23667 | ||
23668 | else | |
23669 | if test "x$enable_linux_builtin" != xyes; then | |
23670 | ||
23671 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
23672 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23673 | rc=$? | |
23674 | if test $rc -ne 0; then | |
23675 | export=0 | |
23676 | for file in mm/backing-dev.c; do | |
23677 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
23678 | "$LINUX/$file" 2>/dev/null | |
23679 | rc=$? | |
23680 | if test $rc -eq 0; then | |
23681 | export=1 | |
23682 | break; | |
23683 | fi | |
23684 | done | |
23685 | if test $export -eq 0; then : | |
23686 | rc=1 | |
23687 | else : | |
23688 | rc=0 | |
23689 | fi | |
23690 | else : | |
23691 | rc=0 | |
23692 | fi | |
23693 | ||
23694 | fi | |
23695 | if test $rc -ne 0; then : | |
23696 | ||
23697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23698 | $as_echo "no" >&6; } | |
23699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 | |
23700 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
87d546d8 | 23701 | |
87d546d8 TG |
23702 | |
23703 | ||
23704 | cat confdefs.h - <<_ACEOF >conftest.c | |
23705 | ||
23706 | ||
df9d7621 CIK |
23707 | #include <linux/backing-dev.h> |
23708 | struct backing_dev_info bdi; | |
87d546d8 TG |
23709 | |
23710 | int | |
23711 | main (void) | |
23712 | { | |
23713 | ||
df9d7621 CIK |
23714 | char *name = "bdi"; |
23715 | unsigned int cap = BDI_CAP_MAP_COPY; | |
23716 | int error __attribute__((unused)) = | |
23717 | bdi_setup_and_register(&bdi, name, cap); | |
87d546d8 TG |
23718 | |
23719 | ; | |
23720 | return 0; | |
23721 | } | |
23722 | ||
23723 | _ACEOF | |
23724 | ||
23725 | ||
23726 | ||
23727 | cat - <<_ACEOF >conftest.h | |
23728 | ||
23729 | _ACEOF | |
23730 | ||
23731 | ||
23732 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23733 | echo "obj-m := conftest.o" >build/Makefile | |
23734 | modpost_flag='' | |
23735 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23736 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23737 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23738 | (eval $ac_try) 2>&5 | |
23739 | ac_status=$? | |
23740 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23741 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23742 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23743 | (eval $ac_try) 2>&5 | |
23744 | ac_status=$? | |
23745 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23746 | test $ac_status = 0; }; }; then : | |
df9d7621 | 23747 | rc=0 |
87d546d8 TG |
23748 | else |
23749 | $as_echo "$as_me: failed program was:" >&5 | |
23750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
df9d7621 | 23751 | rc=1 |
87d546d8 | 23752 | |
df9d7621 CIK |
23753 | |
23754 | fi | |
23755 | rm -Rf build | |
23756 | ||
23757 | ||
23758 | if test $rc -ne 0; then : | |
23759 | ||
23760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23761 | $as_echo "no" >&6; } | |
23762 | ||
23763 | else | |
23764 | if test "x$enable_linux_builtin" != xyes; then | |
23765 | ||
23766 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
23767 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23768 | rc=$? | |
23769 | if test $rc -ne 0; then | |
23770 | export=0 | |
23771 | for file in mm/backing-dev.c; do | |
23772 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
23773 | "$LINUX/$file" 2>/dev/null | |
23774 | rc=$? | |
23775 | if test $rc -eq 0; then | |
23776 | export=1 | |
23777 | break; | |
23778 | fi | |
23779 | done | |
23780 | if test $export -eq 0; then : | |
23781 | rc=1 | |
23782 | else : | |
23783 | rc=0 | |
23784 | fi | |
23785 | else : | |
23786 | rc=0 | |
23787 | fi | |
23788 | ||
23789 | fi | |
23790 | if test $rc -ne 0; then : | |
23791 | ||
23792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23793 | $as_echo "no" >&6; } | |
23794 | ||
23795 | else : | |
23796 | ||
23797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23798 | $as_echo "yes" >&6; } | |
23799 | ||
23800 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
23801 | ||
23802 | ||
23803 | fi | |
23804 | fi | |
23805 | ||
23806 | ||
23807 | else : | |
23808 | ||
23809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23810 | $as_echo "yes" >&6; } | |
23811 | ||
23812 | $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
23813 | ||
23814 | ||
23815 | fi | |
23816 | fi | |
23817 | ||
23818 | ||
23819 | else : | |
23820 | ||
23821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23822 | $as_echo "yes" >&6; } | |
23823 | ||
23824 | $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h | |
23825 | ||
23826 | ||
23827 | fi | |
23828 | fi | |
23829 | ||
23830 | ||
23831 | ||
23832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5 | |
23833 | $as_echo_n "checking whether set_nlink() is available... " >&6; } | |
23834 | ||
23835 | ||
23836 | cat confdefs.h - <<_ACEOF >conftest.c | |
23837 | ||
23838 | ||
23839 | #include <linux/fs.h> | |
23840 | ||
23841 | int | |
23842 | main (void) | |
23843 | { | |
23844 | ||
23845 | struct inode node; | |
23846 | unsigned int link = 0; | |
23847 | (void) set_nlink(&node, link); | |
23848 | ||
23849 | ; | |
23850 | return 0; | |
23851 | } | |
23852 | ||
23853 | _ACEOF | |
23854 | ||
23855 | ||
23856 | ||
23857 | cat - <<_ACEOF >conftest.h | |
23858 | ||
23859 | _ACEOF | |
23860 | ||
23861 | ||
23862 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23863 | echo "obj-m := conftest.o" >build/Makefile | |
23864 | modpost_flag='' | |
23865 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23866 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23867 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23868 | (eval $ac_try) 2>&5 | |
23869 | ac_status=$? | |
23870 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23871 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23872 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23873 | (eval $ac_try) 2>&5 | |
23874 | ac_status=$? | |
23875 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23876 | test $ac_status = 0; }; }; then : | |
23877 | ||
23878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23879 | $as_echo "yes" >&6; } | |
23880 | ||
23881 | $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h | |
23882 | ||
23883 | ||
23884 | else | |
23885 | $as_echo "$as_me: failed program was:" >&5 | |
23886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23887 | ||
23888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23889 | $as_echo "no" >&6; } | |
23890 | ||
23891 | ||
23892 | ||
23893 | fi | |
23894 | rm -Rf build | |
23895 | ||
23896 | ||
23897 | ||
23898 | ||
23899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5 | |
23900 | $as_echo_n "checking whether elevator_change() is available... " >&6; } | |
23901 | tmp_flags="$EXTRA_KCFLAGS" | |
23902 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
23903 | ||
23904 | ||
23905 | cat confdefs.h - <<_ACEOF >conftest.c | |
23906 | ||
23907 | ||
23908 | #include <linux/blkdev.h> | |
23909 | #include <linux/elevator.h> | |
23910 | ||
23911 | int | |
23912 | main (void) | |
23913 | { | |
23914 | ||
23915 | int ret; | |
23916 | struct request_queue *q = NULL; | |
23917 | char *elevator = NULL; | |
23918 | ret = elevator_change(q, elevator); | |
23919 | ||
23920 | ; | |
23921 | return 0; | |
23922 | } | |
23923 | ||
23924 | _ACEOF | |
23925 | ||
23926 | ||
23927 | ||
23928 | cat - <<_ACEOF >conftest.h | |
23929 | ||
23930 | _ACEOF | |
23931 | ||
23932 | ||
23933 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23934 | echo "obj-m := conftest.o" >build/Makefile | |
23935 | modpost_flag='' | |
23936 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23937 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23938 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23939 | (eval $ac_try) 2>&5 | |
23940 | ac_status=$? | |
23941 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23942 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23943 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23944 | (eval $ac_try) 2>&5 | |
23945 | ac_status=$? | |
23946 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23947 | test $ac_status = 0; }; }; then : | |
23948 | ||
23949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23950 | $as_echo "yes" >&6; } | |
23951 | ||
23952 | $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h | |
23953 | ||
23954 | ||
23955 | else | |
23956 | $as_echo "$as_me: failed program was:" >&5 | |
23957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23958 | ||
23959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23960 | $as_echo "no" >&6; } | |
23961 | ||
23962 | ||
23963 | ||
23964 | fi | |
23965 | rm -Rf build | |
23966 | ||
23967 | ||
23968 | EXTRA_KCFLAGS="$tmp_flags" | |
23969 | ||
23970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5 | |
23971 | $as_echo_n "checking whether sget() wants 5 args... " >&6; } | |
23972 | ||
23973 | ||
23974 | cat confdefs.h - <<_ACEOF >conftest.c | |
23975 | ||
23976 | ||
23977 | #include <linux/fs.h> | |
23978 | ||
23979 | int | |
23980 | main (void) | |
23981 | { | |
23982 | ||
23983 | struct file_system_type *type = NULL; | |
23984 | int (*test)(struct super_block *,void *) = NULL; | |
23985 | int (*set)(struct super_block *,void *) = NULL; | |
23986 | int flags = 0; | |
23987 | void *data = NULL; | |
23988 | (void) sget(type, test, set, flags, data); | |
23989 | ||
23990 | ; | |
23991 | return 0; | |
23992 | } | |
23993 | ||
23994 | _ACEOF | |
23995 | ||
23996 | ||
23997 | ||
23998 | cat - <<_ACEOF >conftest.h | |
23999 | ||
24000 | _ACEOF | |
24001 | ||
24002 | ||
24003 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24004 | echo "obj-m := conftest.o" >build/Makefile | |
24005 | modpost_flag='' | |
24006 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24007 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24008 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24009 | (eval $ac_try) 2>&5 | |
24010 | ac_status=$? | |
24011 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24012 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24013 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24014 | (eval $ac_try) 2>&5 | |
24015 | ac_status=$? | |
24016 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24017 | test $ac_status = 0; }; }; then : | |
24018 | ||
24019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24020 | $as_echo "yes" >&6; } | |
24021 | ||
24022 | $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h | |
24023 | ||
24024 | ||
24025 | else | |
24026 | $as_echo "$as_me: failed program was:" >&5 | |
24027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24028 | ||
24029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24030 | $as_echo "no" >&6; } | |
87d546d8 TG |
24031 | |
24032 | ||
24033 | ||
24034 | fi | |
24035 | rm -Rf build | |
24036 | ||
24037 | ||
24038 | ||
24039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5 | |
24040 | $as_echo_n "checking whether lseek_execute() is available... " >&6; } | |
24041 | ||
24042 | ||
24043 | ||
24044 | cat confdefs.h - <<_ACEOF >conftest.c | |
24045 | ||
24046 | ||
24047 | #include <linux/fs.h> | |
24048 | ||
24049 | int | |
24050 | main (void) | |
24051 | { | |
24052 | ||
24053 | struct file *fp __attribute__ ((unused)) = NULL; | |
24054 | struct inode *ip __attribute__ ((unused)) = NULL; | |
24055 | loff_t offset __attribute__ ((unused)) = 0; | |
24056 | loff_t maxsize __attribute__ ((unused)) = 0; | |
24057 | ||
24058 | lseek_execute(fp, ip, offset, maxsize); | |
24059 | ||
24060 | ; | |
24061 | return 0; | |
24062 | } | |
24063 | ||
24064 | _ACEOF | |
24065 | ||
24066 | ||
24067 | ||
24068 | cat - <<_ACEOF >conftest.h | |
24069 | ||
24070 | _ACEOF | |
24071 | ||
24072 | ||
24073 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24074 | echo "obj-m := conftest.o" >build/Makefile | |
24075 | modpost_flag='' | |
24076 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24077 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24078 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24079 | (eval $ac_try) 2>&5 | |
24080 | ac_status=$? | |
24081 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24082 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24083 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24084 | (eval $ac_try) 2>&5 | |
24085 | ac_status=$? | |
24086 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24087 | test $ac_status = 0; }; }; then : | |
24088 | rc=0 | |
24089 | else | |
24090 | $as_echo "$as_me: failed program was:" >&5 | |
24091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24092 | rc=1 | |
24093 | ||
24094 | ||
24095 | fi | |
24096 | rm -Rf build | |
24097 | ||
24098 | ||
24099 | if test $rc -ne 0; then : | |
24100 | ||
24101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24102 | $as_echo "no" >&6; } | |
24103 | ||
24104 | else | |
24105 | if test "x$enable_linux_builtin" != xyes; then | |
24106 | ||
24107 | grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \ | |
24108 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
24109 | rc=$? | |
24110 | if test $rc -ne 0; then | |
24111 | export=0 | |
24112 | for file in fs/read_write.c; do | |
24113 | grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \ | |
24114 | "$LINUX/$file" 2>/dev/null | |
24115 | rc=$? | |
24116 | if test $rc -eq 0; then | |
24117 | export=1 | |
24118 | break; | |
24119 | fi | |
24120 | done | |
24121 | if test $export -eq 0; then : | |
24122 | rc=1 | |
24123 | else : | |
24124 | rc=0 | |
24125 | fi | |
24126 | else : | |
24127 | rc=0 | |
24128 | fi | |
24129 | ||
24130 | fi | |
24131 | if test $rc -ne 0; then : | |
24132 | ||
24133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24134 | $as_echo "no" >&6; } | |
24135 | ||
24136 | else : | |
24137 | ||
24138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24139 | $as_echo "yes" >&6; } | |
24140 | ||
24141 | $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h | |
24142 | ||
24143 | ||
24144 | fi | |
24145 | fi | |
24146 | ||
24147 | ||
24148 | ||
24149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5 | |
24150 | $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; } | |
24151 | ||
24152 | ||
24153 | cat confdefs.h - <<_ACEOF >conftest.c | |
24154 | ||
24155 | ||
24156 | #include <linux/fs.h> | |
24157 | int iterate(struct file *filp, struct dir_context * context) | |
24158 | { return 0; } | |
24159 | ||
24160 | static const struct file_operations fops | |
24161 | __attribute__ ((unused)) = { | |
24162 | .iterate_shared = iterate, | |
24163 | }; | |
24164 | ||
24165 | int | |
24166 | main (void) | |
24167 | { | |
24168 | ||
24169 | ||
24170 | ; | |
24171 | return 0; | |
24172 | } | |
24173 | ||
24174 | _ACEOF | |
24175 | ||
24176 | ||
24177 | ||
24178 | cat - <<_ACEOF >conftest.h | |
24179 | ||
24180 | _ACEOF | |
24181 | ||
24182 | ||
24183 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24184 | echo "obj-m := conftest.o" >build/Makefile | |
24185 | modpost_flag='' | |
24186 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24187 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24188 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24189 | (eval $ac_try) 2>&5 | |
24190 | ac_status=$? | |
24191 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24192 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24193 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24194 | (eval $ac_try) 2>&5 | |
24195 | ac_status=$? | |
24196 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24197 | test $ac_status = 0; }; }; then : | |
24198 | ||
24199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24200 | $as_echo "yes" >&6; } | |
24201 | ||
24202 | $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h | |
24203 | ||
24204 | ||
24205 | else | |
24206 | $as_echo "$as_me: failed program was:" >&5 | |
24207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24208 | ||
24209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24210 | $as_echo "no" >&6; } | |
24211 | ||
24212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5 | |
24213 | $as_echo_n "checking whether fops->iterate() is available... " >&6; } | |
24214 | ||
24215 | ||
24216 | cat confdefs.h - <<_ACEOF >conftest.c | |
24217 | ||
24218 | ||
24219 | #include <linux/fs.h> | |
24220 | int iterate(struct file *filp, struct dir_context * context) | |
24221 | { return 0; } | |
24222 | ||
24223 | static const struct file_operations fops | |
24224 | __attribute__ ((unused)) = { | |
24225 | .iterate = iterate, | |
24226 | }; | |
24227 | ||
24228 | int | |
24229 | main (void) | |
24230 | { | |
24231 | ||
24232 | ||
24233 | ; | |
24234 | return 0; | |
24235 | } | |
24236 | ||
24237 | _ACEOF | |
24238 | ||
24239 | ||
24240 | ||
24241 | cat - <<_ACEOF >conftest.h | |
24242 | ||
24243 | _ACEOF | |
24244 | ||
24245 | ||
24246 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24247 | echo "obj-m := conftest.o" >build/Makefile | |
24248 | modpost_flag='' | |
24249 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24250 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24251 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24252 | (eval $ac_try) 2>&5 | |
24253 | ac_status=$? | |
24254 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24255 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
24261 | ||
24262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24263 | $as_echo "yes" >&6; } | |
24264 | ||
24265 | $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h | |
24266 | ||
24267 | ||
24268 | else | |
24269 | $as_echo "$as_me: failed program was:" >&5 | |
24270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24271 | ||
24272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24273 | $as_echo "no" >&6; } | |
24274 | ||
24275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5 | |
24276 | $as_echo_n "checking whether fops->readdir() is available... " >&6; } | |
24277 | ||
24278 | ||
24279 | cat confdefs.h - <<_ACEOF >conftest.c | |
24280 | ||
24281 | ||
24282 | #include <linux/fs.h> | |
24283 | int readdir(struct file *filp, void *entry, filldir_t func) | |
24284 | { return 0; } | |
24285 | ||
24286 | static const struct file_operations fops | |
24287 | __attribute__ ((unused)) = { | |
24288 | .readdir = readdir, | |
24289 | }; | |
24290 | ||
24291 | int | |
24292 | main (void) | |
24293 | { | |
24294 | ||
24295 | ||
24296 | ; | |
24297 | return 0; | |
24298 | } | |
24299 | ||
24300 | _ACEOF | |
24301 | ||
24302 | ||
24303 | ||
24304 | cat - <<_ACEOF >conftest.h | |
24305 | ||
24306 | _ACEOF | |
24307 | ||
24308 | ||
24309 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24310 | echo "obj-m := conftest.o" >build/Makefile | |
24311 | modpost_flag='' | |
24312 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24313 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24314 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24315 | (eval $ac_try) 2>&5 | |
24316 | ac_status=$? | |
24317 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24318 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
24324 | ||
24325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24326 | $as_echo "yes" >&6; } | |
24327 | ||
24328 | $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h | |
24329 | ||
24330 | ||
24331 | else | |
24332 | $as_echo "$as_me: failed program was:" >&5 | |
24333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24334 | ||
24335 | as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5 | |
24336 | ||
24337 | ||
24338 | ||
24339 | fi | |
24340 | rm -Rf build | |
24341 | ||
24342 | ||
24343 | ||
24344 | ||
24345 | ||
24346 | fi | |
24347 | rm -Rf build | |
24348 | ||
24349 | ||
24350 | ||
24351 | ||
24352 | ||
24353 | fi | |
24354 | rm -Rf build | |
24355 | ||
24356 | ||
24357 | ||
24358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5 | |
24359 | $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; } | |
24360 | ||
24361 | ||
24362 | cat confdefs.h - <<_ACEOF >conftest.c | |
24363 | ||
24364 | ||
24365 | #include <linux/fs.h> | |
24366 | ||
24367 | ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to) | |
24368 | { return 0; } | |
24369 | ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from) | |
24370 | { return 0; } | |
24371 | ||
24372 | static const struct file_operations | |
24373 | fops __attribute__ ((unused)) = { | |
24374 | .read_iter = test_read, | |
24375 | .write_iter = test_write, | |
24376 | }; | |
24377 | ||
24378 | int | |
24379 | main (void) | |
24380 | { | |
24381 | ||
24382 | ||
24383 | ; | |
24384 | return 0; | |
24385 | } | |
24386 | ||
24387 | _ACEOF | |
24388 | ||
24389 | ||
24390 | ||
24391 | cat - <<_ACEOF >conftest.h | |
24392 | ||
24393 | _ACEOF | |
24394 | ||
24395 | ||
24396 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24397 | echo "obj-m := conftest.o" >build/Makefile | |
24398 | modpost_flag='' | |
24399 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24400 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24401 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24402 | (eval $ac_try) 2>&5 | |
24403 | ac_status=$? | |
24404 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24405 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24406 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24407 | (eval $ac_try) 2>&5 | |
24408 | ac_status=$? | |
24409 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24410 | test $ac_status = 0; }; }; then : | |
24411 | ||
24412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24413 | $as_echo "yes" >&6; } | |
24414 | ||
24415 | $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h | |
24416 | ||
24417 | ||
5b5f25ca CIK |
24418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5 |
24419 | $as_echo_n "checking whether new_sync_read() is available... " >&6; } | |
24420 | ||
24421 | ||
24422 | cat confdefs.h - <<_ACEOF >conftest.c | |
24423 | ||
24424 | ||
24425 | #include <linux/fs.h> | |
24426 | ||
24427 | int | |
24428 | main (void) | |
24429 | { | |
24430 | ||
24431 | new_sync_read(NULL, NULL, 0, NULL); | |
24432 | ||
24433 | ; | |
24434 | return 0; | |
24435 | } | |
24436 | ||
24437 | _ACEOF | |
24438 | ||
24439 | ||
24440 | ||
24441 | cat - <<_ACEOF >conftest.h | |
24442 | ||
24443 | _ACEOF | |
24444 | ||
24445 | ||
24446 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24447 | echo "obj-m := conftest.o" >build/Makefile | |
24448 | modpost_flag='' | |
24449 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24450 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24451 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24452 | (eval $ac_try) 2>&5 | |
24453 | ac_status=$? | |
24454 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24455 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24456 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24457 | (eval $ac_try) 2>&5 | |
24458 | ac_status=$? | |
24459 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24460 | test $ac_status = 0; }; }; then : | |
24461 | ||
24462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24463 | $as_echo "yes" >&6; } | |
24464 | ||
24465 | $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h | |
24466 | ||
24467 | ||
24468 | else | |
24469 | $as_echo "$as_me: failed program was:" >&5 | |
24470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24471 | ||
24472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24473 | $as_echo "no" >&6; } | |
24474 | ||
24475 | ||
24476 | ||
24477 | fi | |
24478 | rm -Rf build | |
24479 | ||
24480 | ||
24481 | ||
24482 | ||
87d546d8 TG |
24483 | else |
24484 | $as_echo "$as_me: failed program was:" >&5 | |
24485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24486 | ||
24487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24488 | $as_echo "no" >&6; } | |
24489 | ||
24490 | ||
24491 | ||
24492 | fi | |
24493 | rm -Rf build | |
24494 | ||
24495 | ||
24496 | ||
24497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5 | |
24498 | $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; } | |
24499 | ||
24500 | ||
24501 | cat confdefs.h - <<_ACEOF >conftest.c | |
24502 | ||
24503 | ||
24504 | #include <linux/fs.h> | |
24505 | ||
24506 | ||
24507 | int | |
24508 | main (void) | |
24509 | { | |
24510 | ||
24511 | struct kiocb *iocb = NULL; | |
24512 | struct iov_iter *iov = NULL; | |
24513 | generic_write_checks(iocb, iov); | |
24514 | ||
24515 | ; | |
24516 | return 0; | |
24517 | } | |
24518 | ||
24519 | _ACEOF | |
24520 | ||
24521 | ||
24522 | ||
24523 | cat - <<_ACEOF >conftest.h | |
24524 | ||
24525 | _ACEOF | |
24526 | ||
24527 | ||
24528 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24529 | echo "obj-m := conftest.o" >build/Makefile | |
24530 | modpost_flag='' | |
24531 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24532 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24533 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24534 | (eval $ac_try) 2>&5 | |
24535 | ac_status=$? | |
24536 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24537 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24538 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24539 | (eval $ac_try) 2>&5 | |
24540 | ac_status=$? | |
24541 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24542 | test $ac_status = 0; }; }; then : | |
24543 | ||
24544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24545 | $as_echo "yes" >&6; } | |
24546 | ||
24547 | $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h | |
24548 | ||
24549 | ||
24550 | else | |
24551 | $as_echo "$as_me: failed program was:" >&5 | |
24552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24553 | ||
24554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24555 | $as_echo "no" >&6; } | |
24556 | ||
24557 | ||
24558 | ||
24559 | fi | |
24560 | rm -Rf build | |
24561 | ||
24562 | ||
24563 | ||
24564 | ||
24565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5 | |
24566 | $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; } | |
24567 | ||
24568 | ||
24569 | cat confdefs.h - <<_ACEOF >conftest.c | |
24570 | ||
24571 | ||
24572 | #include <linux/pagemap.h> | |
24573 | ||
24574 | int | |
24575 | main (void) | |
24576 | { | |
24577 | ||
24578 | struct page page; | |
24579 | kmap_atomic(&page); | |
24580 | ||
24581 | ; | |
24582 | return 0; | |
24583 | } | |
24584 | ||
24585 | _ACEOF | |
24586 | ||
24587 | ||
24588 | ||
24589 | cat - <<_ACEOF >conftest.h | |
24590 | ||
24591 | _ACEOF | |
24592 | ||
24593 | ||
24594 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24595 | echo "obj-m := conftest.o" >build/Makefile | |
24596 | modpost_flag='' | |
24597 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24598 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24599 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24600 | (eval $ac_try) 2>&5 | |
24601 | ac_status=$? | |
24602 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24603 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24604 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24605 | (eval $ac_try) 2>&5 | |
24606 | ac_status=$? | |
24607 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24608 | test $ac_status = 0; }; }; then : | |
24609 | ||
24610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24611 | $as_echo "yes" >&6; } | |
24612 | ||
24613 | $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h | |
24614 | ||
24615 | ||
24616 | else | |
24617 | $as_echo "$as_me: failed program was:" >&5 | |
24618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24619 | ||
24620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24621 | $as_echo "no" >&6; } | |
24622 | ||
24623 | ||
24624 | ||
24625 | fi | |
24626 | rm -Rf build | |
24627 | ||
24628 | ||
24629 | ||
24630 | ||
24631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5 | |
24632 | $as_echo_n "checking whether follow_down_one() is available... " >&6; } | |
24633 | ||
24634 | ||
24635 | cat confdefs.h - <<_ACEOF >conftest.c | |
24636 | ||
24637 | ||
24638 | #include <linux/namei.h> | |
24639 | ||
24640 | int | |
24641 | main (void) | |
24642 | { | |
24643 | ||
24644 | struct path *p = NULL; | |
24645 | follow_down_one(p); | |
24646 | ||
24647 | ; | |
24648 | return 0; | |
24649 | } | |
24650 | ||
24651 | _ACEOF | |
24652 | ||
24653 | ||
24654 | ||
24655 | cat - <<_ACEOF >conftest.h | |
24656 | ||
24657 | _ACEOF | |
24658 | ||
24659 | ||
24660 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24661 | echo "obj-m := conftest.o" >build/Makefile | |
24662 | modpost_flag='' | |
24663 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24664 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24665 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24666 | (eval $ac_try) 2>&5 | |
24667 | ac_status=$? | |
24668 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24669 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24670 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24671 | (eval $ac_try) 2>&5 | |
24672 | ac_status=$? | |
24673 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24674 | test $ac_status = 0; }; }; then : | |
24675 | ||
24676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24677 | $as_echo "yes" >&6; } | |
24678 | ||
24679 | $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h | |
24680 | ||
24681 | ||
24682 | else | |
24683 | $as_echo "$as_me: failed program was:" >&5 | |
24684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24685 | ||
24686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24687 | $as_echo "no" >&6; } | |
24688 | ||
24689 | ||
24690 | ||
24691 | fi | |
24692 | rm -Rf build | |
24693 | ||
24694 | ||
24695 | ||
24696 | ||
24697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5 | |
24698 | $as_echo_n "checking whether make_request_fn() returns int... " >&6; } | |
24699 | ||
24700 | ||
24701 | cat confdefs.h - <<_ACEOF >conftest.c | |
24702 | ||
24703 | ||
24704 | #include <linux/blkdev.h> | |
24705 | ||
24706 | int make_request(struct request_queue *q, struct bio *bio) | |
24707 | { | |
24708 | return (0); | |
24709 | } | |
24710 | ||
24711 | int | |
24712 | main (void) | |
24713 | { | |
24714 | ||
24715 | blk_queue_make_request(NULL, &make_request); | |
24716 | ||
24717 | ; | |
24718 | return 0; | |
24719 | } | |
24720 | ||
24721 | _ACEOF | |
24722 | ||
24723 | ||
24724 | ||
24725 | cat - <<_ACEOF >conftest.h | |
24726 | ||
24727 | _ACEOF | |
24728 | ||
24729 | ||
24730 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24731 | echo "obj-m := conftest.o" >build/Makefile | |
24732 | modpost_flag='' | |
24733 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24734 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24735 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24736 | (eval $ac_try) 2>&5 | |
24737 | ac_status=$? | |
24738 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24739 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24740 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24741 | (eval $ac_try) 2>&5 | |
24742 | ac_status=$? | |
24743 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24744 | test $ac_status = 0; }; }; then : | |
24745 | ||
24746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24747 | $as_echo "yes" >&6; } | |
24748 | ||
24749 | $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h | |
24750 | ||
24751 | ||
24752 | $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h | |
24753 | ||
24754 | ||
24755 | else | |
24756 | $as_echo "$as_me: failed program was:" >&5 | |
24757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24758 | ||
24759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24760 | $as_echo "no" >&6; } | |
24761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5 | |
24762 | $as_echo_n "checking whether make_request_fn() returns void... " >&6; } | |
24763 | ||
24764 | ||
24765 | cat confdefs.h - <<_ACEOF >conftest.c | |
24766 | ||
24767 | ||
24768 | #include <linux/blkdev.h> | |
24769 | ||
24770 | void make_request(struct request_queue *q, struct bio *bio) | |
24771 | { | |
24772 | return; | |
24773 | } | |
24774 | ||
24775 | int | |
24776 | main (void) | |
24777 | { | |
24778 | ||
24779 | blk_queue_make_request(NULL, &make_request); | |
24780 | ||
24781 | ; | |
24782 | return 0; | |
24783 | } | |
24784 | ||
24785 | _ACEOF | |
24786 | ||
24787 | ||
24788 | ||
24789 | cat - <<_ACEOF >conftest.h | |
24790 | ||
24791 | _ACEOF | |
24792 | ||
24793 | ||
24794 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24795 | echo "obj-m := conftest.o" >build/Makefile | |
24796 | modpost_flag='' | |
24797 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24798 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24799 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24800 | (eval $ac_try) 2>&5 | |
24801 | ac_status=$? | |
24802 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24803 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24804 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24805 | (eval $ac_try) 2>&5 | |
24806 | ac_status=$? | |
24807 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24808 | test $ac_status = 0; }; }; then : | |
24809 | ||
24810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24811 | $as_echo "yes" >&6; } | |
24812 | ||
24813 | $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h | |
24814 | ||
24815 | ||
24816 | else | |
24817 | $as_echo "$as_me: failed program was:" >&5 | |
24818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24819 | ||
24820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24821 | $as_echo "no" >&6; } | |
24822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5 | |
24823 | $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; } | |
24824 | ||
24825 | ||
24826 | cat confdefs.h - <<_ACEOF >conftest.c | |
24827 | ||
24828 | ||
24829 | #include <linux/blkdev.h> | |
24830 | ||
24831 | blk_qc_t make_request(struct request_queue *q, struct bio *bio) | |
24832 | { | |
24833 | return (BLK_QC_T_NONE); | |
24834 | } | |
24835 | ||
24836 | int | |
24837 | main (void) | |
24838 | { | |
24839 | ||
24840 | blk_queue_make_request(NULL, &make_request); | |
24841 | ||
24842 | ; | |
24843 | return 0; | |
24844 | } | |
24845 | ||
24846 | _ACEOF | |
24847 | ||
24848 | ||
24849 | ||
24850 | cat - <<_ACEOF >conftest.h | |
24851 | ||
24852 | _ACEOF | |
24853 | ||
24854 | ||
24855 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24856 | echo "obj-m := conftest.o" >build/Makefile | |
24857 | modpost_flag='' | |
24858 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24859 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24860 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24861 | (eval $ac_try) 2>&5 | |
24862 | ac_status=$? | |
24863 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24864 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24865 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24866 | (eval $ac_try) 2>&5 | |
24867 | ac_status=$? | |
24868 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24869 | test $ac_status = 0; }; }; then : | |
24870 | ||
24871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24872 | $as_echo "yes" >&6; } | |
24873 | ||
24874 | $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h | |
24875 | ||
24876 | ||
24877 | $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h | |
24878 | ||
24879 | ||
24880 | else | |
24881 | $as_echo "$as_me: failed program was:" >&5 | |
24882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24883 | ||
24884 | as_fn_error $? "no - Please file a bug report at | |
24885 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
24886 | ||
24887 | ||
24888 | ||
24889 | fi | |
24890 | rm -Rf build | |
24891 | ||
24892 | ||
24893 | ||
24894 | ||
24895 | ||
24896 | fi | |
24897 | rm -Rf build | |
24898 | ||
24899 | ||
24900 | ||
24901 | ||
24902 | ||
24903 | fi | |
24904 | rm -Rf build | |
24905 | ||
24906 | ||
24907 | ||
24908 | ||
24909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5 | |
24910 | $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; } | |
24911 | ||
24912 | ||
24913 | ||
24914 | cat confdefs.h - <<_ACEOF >conftest.c | |
24915 | ||
24916 | ||
24917 | #include <linux/bio.h> | |
24918 | ||
24919 | void (*generic_start_io_acct_f)(int, unsigned long, | |
24920 | struct hd_struct *) = &generic_start_io_acct; | |
24921 | void (*generic_end_io_acct_f)(int, struct hd_struct *, | |
24922 | unsigned long) = &generic_end_io_acct; | |
24923 | ||
24924 | int | |
24925 | main (void) | |
24926 | { | |
24927 | ||
24928 | generic_start_io_acct(0, 0, NULL); | |
24929 | generic_end_io_acct(0, NULL, 0); | |
24930 | ||
24931 | ; | |
24932 | return 0; | |
24933 | } | |
24934 | ||
24935 | _ACEOF | |
24936 | ||
24937 | ||
24938 | ||
24939 | cat - <<_ACEOF >conftest.h | |
24940 | ||
24941 | _ACEOF | |
24942 | ||
24943 | ||
24944 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24945 | echo "obj-m := conftest.o" >build/Makefile | |
24946 | modpost_flag='' | |
24947 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24948 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24949 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24950 | (eval $ac_try) 2>&5 | |
24951 | ac_status=$? | |
24952 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24953 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24954 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24955 | (eval $ac_try) 2>&5 | |
24956 | ac_status=$? | |
24957 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24958 | test $ac_status = 0; }; }; then : | |
24959 | rc=0 | |
24960 | else | |
24961 | $as_echo "$as_me: failed program was:" >&5 | |
24962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24963 | rc=1 | |
24964 | ||
24965 | ||
24966 | fi | |
24967 | rm -Rf build | |
24968 | ||
24969 | ||
24970 | if test $rc -ne 0; then : | |
24971 | ||
24972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24973 | $as_echo "no" >&6; } | |
24974 | ||
24975 | else | |
24976 | if test "x$enable_linux_builtin" != xyes; then | |
24977 | ||
24978 | grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \ | |
24979 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
24980 | rc=$? | |
24981 | if test $rc -ne 0; then | |
24982 | export=0 | |
24983 | for file in block/bio.c; do | |
24984 | grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \ | |
24985 | "$LINUX/$file" 2>/dev/null | |
24986 | rc=$? | |
24987 | if test $rc -eq 0; then | |
24988 | export=1 | |
24989 | break; | |
24990 | fi | |
24991 | done | |
24992 | if test $export -eq 0; then : | |
24993 | rc=1 | |
24994 | else : | |
24995 | rc=0 | |
24996 | fi | |
24997 | else : | |
24998 | rc=0 | |
24999 | fi | |
25000 | ||
25001 | fi | |
25002 | if test $rc -ne 0; then : | |
25003 | ||
25004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25005 | $as_echo "no" >&6; } | |
25006 | ||
25007 | else : | |
25008 | ||
25009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25010 | $as_echo "yes" >&6; } | |
25011 | ||
25012 | $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h | |
25013 | ||
25014 | ||
25015 | fi | |
25016 | fi | |
25017 | ||
25018 | ||
25019 | ||
25020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5 | |
25021 | $as_echo_n "checking whether iops->rename() wants flags... " >&6; } | |
25022 | ||
25023 | ||
25024 | cat confdefs.h - <<_ACEOF >conftest.c | |
25025 | ||
25026 | ||
25027 | #include <linux/fs.h> | |
25028 | int rename_fn(struct inode *sip, struct dentry *sdp, | |
25029 | struct inode *tip, struct dentry *tdp, | |
25030 | unsigned int flags) { return 0; } | |
25031 | ||
25032 | static const struct inode_operations | |
25033 | iops __attribute__ ((unused)) = { | |
25034 | .rename = rename_fn, | |
25035 | }; | |
25036 | ||
25037 | int | |
25038 | main (void) | |
25039 | { | |
25040 | ||
25041 | ||
25042 | ; | |
25043 | return 0; | |
25044 | } | |
25045 | ||
25046 | _ACEOF | |
25047 | ||
25048 | ||
25049 | ||
25050 | cat - <<_ACEOF >conftest.h | |
25051 | ||
25052 | _ACEOF | |
25053 | ||
25054 | ||
25055 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25056 | echo "obj-m := conftest.o" >build/Makefile | |
25057 | modpost_flag='' | |
25058 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25059 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25060 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25061 | (eval $ac_try) 2>&5 | |
25062 | ac_status=$? | |
25063 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25064 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25065 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25066 | (eval $ac_try) 2>&5 | |
25067 | ac_status=$? | |
25068 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25069 | test $ac_status = 0; }; }; then : | |
25070 | ||
25071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25072 | $as_echo "yes" >&6; } | |
25073 | ||
df9d7621 CIK |
25074 | $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h |
25075 | ||
25076 | ||
25077 | else | |
25078 | $as_echo "$as_me: failed program was:" >&5 | |
25079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25080 | ||
25081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25082 | $as_echo "no" >&6; } | |
25083 | ||
25084 | ||
25085 | ||
25086 | fi | |
25087 | rm -Rf build | |
25088 | ||
25089 | ||
25090 | ||
25091 | ||
25092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5 | |
25093 | $as_echo_n "checking whether generic_setxattr() exists... " >&6; } | |
25094 | ||
25095 | ||
25096 | cat confdefs.h - <<_ACEOF >conftest.c | |
25097 | ||
25098 | ||
25099 | #include <linux/fs.h> | |
25100 | #include <linux/xattr.h> | |
25101 | ||
25102 | static const struct inode_operations | |
25103 | iops __attribute__ ((unused)) = { | |
25104 | .setxattr = generic_setxattr | |
25105 | }; | |
25106 | ||
25107 | int | |
25108 | main (void) | |
25109 | { | |
25110 | ||
25111 | ||
25112 | ; | |
25113 | return 0; | |
25114 | } | |
25115 | ||
25116 | _ACEOF | |
25117 | ||
25118 | ||
25119 | ||
25120 | cat - <<_ACEOF >conftest.h | |
25121 | ||
25122 | _ACEOF | |
25123 | ||
25124 | ||
25125 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25126 | echo "obj-m := conftest.o" >build/Makefile | |
25127 | modpost_flag='' | |
25128 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25129 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25130 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25131 | (eval $ac_try) 2>&5 | |
25132 | ac_status=$? | |
25133 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25134 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25135 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25136 | (eval $ac_try) 2>&5 | |
25137 | ac_status=$? | |
25138 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25139 | test $ac_status = 0; }; }; then : | |
25140 | ||
25141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25142 | $as_echo "yes" >&6; } | |
25143 | ||
25144 | $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h | |
87d546d8 TG |
25145 | |
25146 | ||
25147 | else | |
25148 | $as_echo "$as_me: failed program was:" >&5 | |
25149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25150 | ||
25151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25152 | $as_echo "no" >&6; } | |
25153 | ||
25154 | ||
25155 | ||
25156 | fi | |
25157 | rm -Rf build | |
25158 | ||
25159 | ||
25160 | ||
df9d7621 CIK |
25161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5 |
25162 | $as_echo_n "checking whether current_time() exists... " >&6; } | |
87d546d8 | 25163 | |
87d546d8 TG |
25164 | |
25165 | ||
25166 | cat confdefs.h - <<_ACEOF >conftest.c | |
25167 | ||
25168 | ||
25169 | #include <linux/fs.h> | |
87d546d8 TG |
25170 | |
25171 | int | |
25172 | main (void) | |
25173 | { | |
25174 | ||
df9d7621 CIK |
25175 | struct inode ip; |
25176 | struct timespec now __attribute__ ((unused)); | |
25177 | ||
25178 | now = current_time(&ip); | |
87d546d8 TG |
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 : | |
df9d7621 CIK |
25208 | rc=0 |
25209 | else | |
25210 | $as_echo "$as_me: failed program was:" >&5 | |
25211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25212 | rc=1 | |
87d546d8 | 25213 | |
87d546d8 | 25214 | |
df9d7621 CIK |
25215 | fi |
25216 | rm -Rf build | |
87d546d8 TG |
25217 | |
25218 | ||
df9d7621 CIK |
25219 | if test $rc -ne 0; then : |
25220 | ||
25221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25222 | $as_echo "no" >&6; } | |
25223 | ||
25224 | else | |
25225 | if test "x$enable_linux_builtin" != xyes; then | |
25226 | ||
25227 | grep -q -E '[[:space:]]current_time[[:space:]]' \ | |
25228 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
25229 | rc=$? | |
25230 | if test $rc -ne 0; then | |
25231 | export=0 | |
25232 | for file in fs/inode.c; do | |
25233 | grep -q -E "EXPORT_SYMBOL.*(current_time)" \ | |
25234 | "$LINUX/$file" 2>/dev/null | |
25235 | rc=$? | |
25236 | if test $rc -eq 0; then | |
25237 | export=1 | |
25238 | break; | |
25239 | fi | |
25240 | done | |
25241 | if test $export -eq 0; then : | |
25242 | rc=1 | |
25243 | else : | |
25244 | rc=0 | |
25245 | fi | |
25246 | else : | |
25247 | rc=0 | |
25248 | fi | |
25249 | ||
25250 | fi | |
25251 | if test $rc -ne 0; then : | |
87d546d8 TG |
25252 | |
25253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25254 | $as_echo "no" >&6; } | |
25255 | ||
df9d7621 | 25256 | else : |
87d546d8 | 25257 | |
df9d7621 CIK |
25258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
25259 | $as_echo "yes" >&6; } | |
25260 | ||
25261 | $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h | |
87d546d8 | 25262 | |
87d546d8 | 25263 | |
df9d7621 CIK |
25264 | fi |
25265 | fi | |
87d546d8 TG |
25266 | |
25267 | ||
25268 | ||
25269 | if test "$LINUX_OBJ" != "$LINUX"; then : | |
25270 | ||
25271 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
25272 | ||
25273 | fi | |
25274 | ||
25275 | ||
25276 | ||
25277 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE" | |
25278 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE" | |
25279 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL" | |
25280 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\"" | |
25281 | ||
25282 | ||
25283 | ;; | |
25284 | all) | |
25285 | ||
25286 | ||
25287 | # Check whether --with-linux was given. | |
25288 | if test "${with_linux+set}" = set; then : | |
25289 | withval=$with_linux; kernelsrc="$withval" | |
25290 | fi | |
25291 | ||
25292 | ||
25293 | ||
25294 | # Check whether --with-linux-obj was given. | |
25295 | if test "${with_linux_obj+set}" = set; then : | |
25296 | withval=$with_linux_obj; kernelbuild="$withval" | |
25297 | fi | |
25298 | ||
25299 | ||
25300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5 | |
25301 | $as_echo_n "checking kernel source directory... " >&6; } | |
25302 | if test -z "$kernelsrc"; then : | |
25303 | ||
25304 | if test -e "/lib/modules/$(uname -r)/source"; then : | |
25305 | ||
25306 | headersdir="/lib/modules/$(uname -r)/source" | |
25307 | sourcelink=$(readlink -f "$headersdir") | |
25308 | ||
25309 | elif test -e "/lib/modules/$(uname -r)/build"; then : | |
25310 | ||
25311 | headersdir="/lib/modules/$(uname -r)/build" | |
25312 | sourcelink=$(readlink -f "$headersdir") | |
25313 | ||
25314 | else | |
25315 | ||
25316 | sourcelink=$(ls -1d /usr/src/kernels/* \ | |
25317 | /usr/src/linux-* \ | |
25318 | 2>/dev/null | grep -v obj | tail -1) | |
25319 | ||
25320 | fi | |
25321 | ||
25322 | if test -n "$sourcelink" && test -e ${sourcelink}; then : | |
25323 | ||
25324 | kernelsrc=`readlink -f ${sourcelink}` | |
25325 | ||
25326 | else | |
25327 | ||
25328 | kernelsrc="Not found" | |
25329 | ||
25330 | fi | |
25331 | ||
25332 | else | |
25333 | ||
25334 | if test "$kernelsrc" = "NONE"; then : | |
25335 | ||
25336 | kernsrcver=NONE | |
25337 | ||
25338 | fi | |
25339 | ||
25340 | fi | |
25341 | ||
25342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5 | |
25343 | $as_echo "$kernelsrc" >&6; } | |
25344 | if test ! -d "$kernelsrc"; then : | |
25345 | ||
25346 | as_fn_error $? " | |
25347 | *** Please make sure the kernel devel package for your distribution | |
25348 | *** is installed and then try again. If that fails, you can specify the | |
25349 | *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5 | |
25350 | ||
25351 | fi | |
25352 | ||
25353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5 | |
25354 | $as_echo_n "checking kernel build directory... " >&6; } | |
25355 | if test -z "$kernelbuild"; then : | |
25356 | ||
25357 | if test -e "/lib/modules/$(uname -r)/build"; then : | |
25358 | ||
25359 | kernelbuild=`readlink -f /lib/modules/$(uname -r)/build` | |
25360 | ||
25361 | elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then : | |
25362 | ||
25363 | kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu} | |
25364 | ||
25365 | elif test -d ${kernelsrc}-obj/${target_cpu}/default; then : | |
25366 | ||
25367 | kernelbuild=${kernelsrc}-obj/${target_cpu}/default | |
25368 | ||
25369 | elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then : | |
25370 | ||
25371 | kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu} | |
25372 | ||
25373 | else | |
25374 | ||
25375 | kernelbuild=${kernelsrc} | |
25376 | ||
25377 | fi | |
25378 | ||
25379 | fi | |
25380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5 | |
25381 | $as_echo "$kernelbuild" >&6; } | |
25382 | ||
25383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5 | |
25384 | $as_echo_n "checking kernel source version... " >&6; } | |
25385 | utsrelease1=$kernelbuild/include/linux/version.h | |
25386 | utsrelease2=$kernelbuild/include/linux/utsrelease.h | |
25387 | utsrelease3=$kernelbuild/include/generated/utsrelease.h | |
25388 | if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then : | |
25389 | ||
25390 | utsrelease=linux/version.h | |
25391 | ||
25392 | elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then : | |
25393 | ||
25394 | utsrelease=linux/utsrelease.h | |
25395 | ||
25396 | elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then : | |
25397 | ||
25398 | utsrelease=generated/utsrelease.h | |
25399 | ||
25400 | fi | |
25401 | ||
25402 | if test "$utsrelease"; then : | |
25403 | ||
25404 | kernsrcver=`(echo "#include <$utsrelease>"; | |
25405 | echo "kernsrcver=UTS_RELEASE") | | |
25406 | cpp -I $kernelbuild/include | | |
25407 | grep "^kernsrcver=" | cut -d \" -f 2` | |
25408 | ||
25409 | if test -z "$kernsrcver"; then : | |
25410 | ||
25411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
25412 | $as_echo "Not found" >&6; } | |
25413 | as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5 | |
25414 | ||
25415 | fi | |
25416 | ||
25417 | else | |
25418 | ||
25419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
25420 | $as_echo "Not found" >&6; } | |
25421 | if test "x$enable_linux_builtin" != xyes; then | |
25422 | as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5 | |
25423 | else | |
25424 | as_fn_error $? " | |
25425 | *** Cannot find UTS_RELEASE definition. | |
25426 | *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5 | |
25427 | fi | |
25428 | ||
25429 | fi | |
25430 | ||
25431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5 | |
25432 | $as_echo "$kernsrcver" >&6; } | |
25433 | ||
25434 | LINUX=${kernelsrc} | |
25435 | LINUX_OBJ=${kernelbuild} | |
25436 | LINUX_VERSION=${kernsrcver} | |
25437 | ||
25438 | ||
25439 | ||
25440 | ||
25441 | ||
25442 | ||
25443 | modpost=$LINUX/scripts/Makefile.modpost | |
25444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5 | |
25445 | $as_echo_n "checking kernel file name for module symbols... " >&6; } | |
25446 | if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then : | |
25447 | ||
25448 | if grep -q Modules.symvers $modpost; then : | |
25449 | ||
25450 | LINUX_SYMBOLS=Modules.symvers | |
25451 | ||
25452 | else | |
25453 | ||
25454 | LINUX_SYMBOLS=Module.symvers | |
25455 | ||
25456 | fi | |
25457 | ||
25458 | if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then : | |
25459 | ||
25460 | as_fn_error $? " | |
25461 | *** Please make sure the kernel devel package for your distribution | |
25462 | *** is installed. If you are building with a custom kernel, make sure the | |
25463 | *** kernel is configured, built, and the '--with-linux=PATH' configure | |
25464 | *** option refers to the location of the kernel source." "$LINENO" 5 | |
25465 | ||
25466 | fi | |
25467 | ||
25468 | else | |
25469 | ||
25470 | LINUX_SYMBOLS=NONE | |
25471 | ||
25472 | fi | |
25473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5 | |
25474 | $as_echo "$LINUX_SYMBOLS" >&6; } | |
25475 | ||
25476 | ||
25477 | ||
25478 | ||
25479 | ||
25480 | # Check whether --with-spl was given. | |
25481 | if test "${with_spl+set}" = set; then : | |
25482 | withval=$with_spl; splsrc="$withval" | |
25483 | fi | |
25484 | ||
25485 | ||
25486 | ||
25487 | # Check whether --with-spl-obj was given. | |
25488 | if test "${with_spl_obj+set}" = set; then : | |
25489 | withval=$with_spl_obj; splbuild="$withval" | |
25490 | fi | |
25491 | ||
25492 | ||
25493 | ||
25494 | # Check whether --with-spl-timeout was given. | |
25495 | if test "${with_spl_timeout+set}" = set; then : | |
25496 | withval=$with_spl_timeout; timeout="$withval" | |
25497 | else | |
25498 | timeout=0 | |
25499 | fi | |
25500 | ||
25501 | ||
25502 | splsrc0="/var/lib/dkms/spl/${VERSION}/build" | |
25503 | splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}" | |
25504 | splsrc2="/usr/local/src/spl-${VERSION}" | |
25505 | splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}" | |
25506 | splsrc4="/usr/src/spl-${VERSION}" | |
25507 | splsrc5="../spl/" | |
25508 | splsrc6="$LINUX" | |
25509 | ||
25510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5 | |
25511 | $as_echo_n "checking spl source directory... " >&6; } | |
25512 | if test -z "${splsrc}"; then : | |
25513 | ||
25514 | if test -e "${splsrc0}/spl.release.in"; then : | |
25515 | ||
25516 | splsrc=${splsrc0} | |
25517 | ||
25518 | elif test -e "${splsrc1}/spl.release.in"; then : | |
25519 | ||
25520 | splsrc=${splsrc1} | |
25521 | ||
25522 | elif test -e "${splsrc2}/spl.release.in"; then : | |
25523 | ||
25524 | splsrc=${splsrc2} | |
25525 | ||
25526 | elif test -e "${splsrc3}/spl.release.in"; then : | |
25527 | ||
25528 | splsrc=$(readlink -f "${splsrc3}") | |
25529 | ||
25530 | elif test -e "${splsrc4}/spl.release.in" ; then : | |
25531 | ||
25532 | splsrc=${splsrc4} | |
25533 | ||
25534 | elif test -e "${splsrc5}/spl.release.in"; then : | |
25535 | ||
25536 | splsrc=$(readlink -f "${splsrc5}") | |
25537 | ||
25538 | elif test -e "${splsrc6}/spl.release.in" ; then : | |
25539 | ||
25540 | splsrc=${splsrc6} | |
25541 | ||
25542 | else | |
25543 | ||
25544 | splsrc="Not found" | |
25545 | ||
25546 | fi | |
25547 | ||
25548 | else | |
25549 | ||
25550 | if test "$splsrc" = "NONE"; then : | |
25551 | ||
25552 | splbuild=NONE | |
25553 | splsrcver=NONE | |
25554 | ||
25555 | fi | |
25556 | ||
25557 | fi | |
25558 | ||
25559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5 | |
25560 | $as_echo "$splsrc" >&6; } | |
25561 | if test ! -e "$splsrc/spl.release.in"; then : | |
25562 | ||
25563 | as_fn_error $? " | |
25564 | *** Please make sure the kmod spl devel package for your distribution | |
25565 | *** is installed then try again. If that fails you can specify the | |
25566 | *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5 | |
25567 | ||
25568 | fi | |
25569 | ||
25570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5 | |
25571 | $as_echo_n "checking spl build directory... " >&6; } | |
25572 | while true; do | |
25573 | if test -z "$splbuild"; then : | |
25574 | ||
25575 | if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then : | |
25576 | ||
25577 | splbuild="${splsrc}/${LINUX_VERSION}" | |
25578 | ||
25579 | elif test -e "${splsrc}/spl_config.h" ; then : | |
25580 | ||
25581 | splbuild="${splsrc}" | |
25582 | ||
25583 | elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then : | |
25584 | ||
25585 | splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,') | |
25586 | ||
25587 | else | |
25588 | ||
25589 | splbuild="Not found" | |
25590 | ||
25591 | fi | |
25592 | ||
25593 | fi | |
25594 | if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then : | |
25595 | ||
25596 | break; | |
25597 | ||
25598 | else | |
25599 | ||
25600 | sleep 1 | |
25601 | timeout=$((timeout-1)) | |
25602 | ||
25603 | fi | |
25604 | done | |
25605 | ||
25606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5 | |
25607 | $as_echo "$splbuild" >&6; } | |
25608 | if ! test -e "$splbuild/spl_config.h"; then : | |
25609 | ||
25610 | as_fn_error $? " | |
25611 | *** Please make sure the kmod spl devel <kernel> package for your | |
25612 | *** distribution is installed then try again. If that fails you | |
25613 | *** can specify the location of the spl objects with the | |
25614 | *** '--with-spl-obj=PATH' option." "$LINENO" 5 | |
25615 | ||
25616 | fi | |
25617 | ||
25618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5 | |
25619 | $as_echo_n "checking spl source version... " >&6; } | |
25620 | if test -r $splbuild/spl_config.h && | |
25621 | fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then : | |
25622 | ||
25623 | ||
25624 | splsrcver=`(echo "#include <spl_config.h>"; | |
25625 | echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") | | |
25626 | cpp -I $splbuild | | |
25627 | grep "^splsrcver=" | tr -d \" | cut -d= -f2` | |
25628 | ||
25629 | fi | |
25630 | ||
25631 | if test -z "$splsrcver"; then : | |
25632 | ||
25633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
25634 | $as_echo "Not found" >&6; } | |
25635 | as_fn_error $? " | |
25636 | *** Cannot determine the version of the spl source. | |
25637 | *** Please prepare the spl source before running this script" "$LINENO" 5 | |
25638 | ||
25639 | fi | |
25640 | ||
25641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5 | |
25642 | $as_echo "$splsrcver" >&6; } | |
25643 | ||
25644 | SPL=${splsrc} | |
25645 | SPL_OBJ=${splbuild} | |
25646 | SPL_VERSION=${splsrcver} | |
25647 | ||
25648 | ||
25649 | ||
25650 | ||
25651 | ||
25652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5 | |
25653 | $as_echo_n "checking spl file name for module symbols... " >&6; } | |
25654 | SPL_SYMBOLS=NONE | |
25655 | ||
25656 | while true; do | |
25657 | if test -r $SPL_OBJ/Module.symvers; then : | |
25658 | ||
25659 | SPL_SYMBOLS=Module.symvers | |
25660 | ||
25661 | elif test -r $SPL_OBJ/Modules.symvers; then : | |
25662 | ||
25663 | SPL_SYMBOLS=Modules.symvers | |
25664 | ||
25665 | elif test -r $SPL_OBJ/module/Module.symvers; then : | |
25666 | ||
25667 | SPL_SYMBOLS=Module.symvers | |
25668 | ||
25669 | elif test -r $SPL_OBJ/module/Modules.symvers; then : | |
25670 | ||
25671 | SPL_SYMBOLS=Modules.symvers | |
25672 | ||
25673 | fi | |
25674 | ||
25675 | if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then : | |
25676 | ||
25677 | break; | |
25678 | ||
25679 | else | |
25680 | ||
25681 | sleep 1 | |
25682 | timeout=$((timeout-1)) | |
25683 | ||
25684 | fi | |
25685 | done | |
25686 | ||
25687 | if test "$SPL_SYMBOLS" = NONE; then : | |
25688 | ||
25689 | SPL_SYMBOLS=$LINUX_SYMBOLS | |
25690 | ||
25691 | fi | |
25692 | ||
25693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5 | |
25694 | $as_echo "$SPL_SYMBOLS" >&6; } | |
25695 | ||
25696 | ||
25697 | ||
25698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5 | |
25699 | $as_echo_n "checking whether modules can be built... " >&6; } | |
25700 | ||
25701 | ||
25702 | cat confdefs.h - <<_ACEOF >conftest.c | |
25703 | ||
25704 | ||
25705 | int | |
25706 | main (void) | |
25707 | { | |
25708 | ||
25709 | ; | |
25710 | return 0; | |
25711 | } | |
25712 | ||
25713 | _ACEOF | |
25714 | ||
25715 | ||
25716 | ||
25717 | cat - <<_ACEOF >conftest.h | |
25718 | ||
25719 | _ACEOF | |
25720 | ||
25721 | ||
25722 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25723 | echo "obj-m := conftest.o" >build/Makefile | |
25724 | modpost_flag='' | |
25725 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25726 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25727 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25728 | (eval $ac_try) 2>&5 | |
25729 | ac_status=$? | |
25730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25731 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25732 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25733 | (eval $ac_try) 2>&5 | |
25734 | ac_status=$? | |
25735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25736 | test $ac_status = 0; }; }; then : | |
25737 | ||
25738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25739 | $as_echo "yes" >&6; } | |
25740 | ||
25741 | else | |
25742 | $as_echo "$as_me: failed program was:" >&5 | |
25743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25744 | ||
25745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25746 | $as_echo "no" >&6; } | |
25747 | if test "x$enable_linux_builtin" != xyes; then | |
25748 | as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5 | |
25749 | else | |
25750 | as_fn_error $? " | |
25751 | *** Unable to build an empty module. | |
25752 | *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5 | |
25753 | fi | |
25754 | ||
25755 | ||
25756 | ||
25757 | fi | |
25758 | rm -Rf build | |
25759 | ||
25760 | ||
25761 | ||
25762 | ||
25763 | if test "x$cross_compiling" != xyes; then : | |
25764 | ||
25765 | if test "$cross_compiling" = yes; then : | |
25766 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
25767 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
25768 | as_fn_error $? "cannot run test program while cross compiling | |
25769 | See \`config.log' for more details" "$LINENO" 5; } | |
25770 | else | |
25771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25772 | /* end confdefs.h. */ | |
25773 | ||
25774 | ||
25775 | #include "$LINUX/include/linux/license.h" | |
25776 | ||
25777 | int | |
25778 | main () | |
25779 | { | |
25780 | ||
25781 | return !license_is_gpl_compatible("$ZFS_META_LICENSE"); | |
25782 | ||
25783 | ; | |
25784 | return 0; | |
25785 | } | |
25786 | ||
25787 | _ACEOF | |
25788 | if ac_fn_c_try_run "$LINENO"; then : | |
25789 | ||
25790 | ||
25791 | $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h | |
25792 | ||
25793 | ||
25794 | fi | |
25795 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
25796 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
25797 | fi | |
25798 | ||
25799 | ||
25800 | fi | |
25801 | ||
25802 | ||
25803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5 | |
25804 | $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; } | |
25805 | ||
25806 | ||
25807 | cat confdefs.h - <<_ACEOF >conftest.c | |
25808 | ||
25809 | ||
25810 | #include <linux/module.h> | |
25811 | ||
25812 | int | |
25813 | main (void) | |
25814 | { | |
25815 | ||
25816 | #if (THREAD_SIZE < 16384) | |
25817 | #error "THREAD_SIZE is less than 16K" | |
25818 | #endif | |
25819 | ||
25820 | ; | |
25821 | return 0; | |
25822 | } | |
25823 | ||
25824 | _ACEOF | |
25825 | ||
25826 | ||
25827 | ||
25828 | cat - <<_ACEOF >conftest.h | |
25829 | ||
25830 | _ACEOF | |
25831 | ||
25832 | ||
25833 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25834 | echo "obj-m := conftest.o" >build/Makefile | |
25835 | modpost_flag='' | |
25836 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25837 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25838 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25839 | (eval $ac_try) 2>&5 | |
25840 | ac_status=$? | |
25841 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25842 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25843 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25844 | (eval $ac_try) 2>&5 | |
25845 | ac_status=$? | |
25846 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25847 | test $ac_status = 0; }; }; then : | |
25848 | ||
25849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25850 | $as_echo "yes" >&6; } | |
25851 | ||
25852 | $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h | |
25853 | ||
25854 | ||
25855 | else | |
25856 | $as_echo "$as_me: failed program was:" >&5 | |
25857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25858 | ||
25859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25860 | $as_echo "no" >&6; } | |
25861 | ||
25862 | ||
25863 | ||
25864 | fi | |
25865 | rm -Rf build | |
25866 | ||
25867 | ||
25868 | ||
25869 | ||
25870 | ||
25871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5 | |
25872 | $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&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 | #ifndef CONFIG_DEBUG_LOCK_ALLOC | |
25885 | #error CONFIG_DEBUG_LOCK_ALLOC not #defined | |
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 "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5 | |
25921 | $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; } | |
25922 | tmp_flags="$EXTRA_KCFLAGS" | |
25923 | ||
25924 | ||
25925 | cat confdefs.h - <<_ACEOF >conftest.c | |
25926 | ||
25927 | ||
25928 | #include <linux/module.h> | |
25929 | #include <linux/mutex.h> | |
25930 | ||
25931 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
25932 | ||
25933 | int | |
25934 | main (void) | |
25935 | { | |
25936 | ||
25937 | struct mutex lock; | |
25938 | ||
25939 | mutex_init(&lock); | |
25940 | mutex_lock(&lock); | |
25941 | mutex_unlock(&lock); | |
25942 | ||
25943 | ; | |
25944 | return 0; | |
25945 | } | |
25946 | ||
25947 | _ACEOF | |
25948 | ||
25949 | ||
25950 | ||
25951 | cat - <<_ACEOF >conftest.h | |
25952 | ||
25953 | _ACEOF | |
25954 | ||
25955 | ||
25956 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25957 | echo "obj-m := conftest.o" >build/Makefile | |
25958 | modpost_flag='' | |
25959 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25960 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25961 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25962 | (eval $ac_try) 2>&5 | |
25963 | ac_status=$? | |
25964 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25965 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25966 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25967 | (eval $ac_try) 2>&5 | |
25968 | ac_status=$? | |
25969 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25970 | test $ac_status = 0; }; }; then : | |
25971 | ||
25972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25973 | $as_echo "no" >&6; } | |
25974 | ||
25975 | else | |
25976 | $as_echo "$as_me: failed program was:" >&5 | |
25977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25978 | ||
25979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25980 | $as_echo "yes" >&6; } | |
25981 | as_fn_error $? " | |
25982 | *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible | |
25983 | *** with the CDDL license and will prevent the module linking stage | |
25984 | *** from succeeding. You must rebuild your kernel without this | |
25985 | *** option enabled." "$LINENO" 5 | |
25986 | ||
25987 | ||
25988 | ||
25989 | fi | |
25990 | rm -Rf build | |
25991 | ||
25992 | ||
25993 | EXTRA_KCFLAGS="$tmp_flags" | |
25994 | ||
25995 | ||
25996 | else | |
25997 | $as_echo "$as_me: failed program was:" >&5 | |
25998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25999 | ||
26000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26001 | $as_echo "no" >&6; } | |
26002 | ||
26003 | ||
26004 | ||
26005 | ||
26006 | fi | |
26007 | rm -Rf build | |
26008 | ||
26009 | ||
26010 | ||
26011 | ||
26012 | ||
26013 | ||
26014 | tmp_flags="$EXTRA_KCFLAGS" | |
26015 | EXTRA_KCFLAGS="-I\$(src)" | |
26016 | ||
26017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5 | |
26018 | $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; } | |
26019 | ||
26020 | ||
26021 | cat confdefs.h - <<_ACEOF >conftest.c | |
26022 | ||
26023 | ||
26024 | #include <linux/module.h> | |
26025 | MODULE_LICENSE(ZFS_META_LICENSE); | |
26026 | ||
26027 | #define CREATE_TRACE_POINTS | |
26028 | #include "conftest.h" | |
26029 | ||
26030 | int | |
26031 | main (void) | |
26032 | { | |
26033 | ||
26034 | trace_zfs_autoconf_event_one(1UL); | |
26035 | trace_zfs_autoconf_event_two(2UL); | |
26036 | ||
26037 | ; | |
26038 | return 0; | |
26039 | } | |
26040 | ||
26041 | _ACEOF | |
26042 | ||
26043 | ||
26044 | ||
26045 | cat - <<_ACEOF >conftest.h | |
26046 | ||
26047 | #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ) | |
26048 | #define _CONFTEST_H | |
26049 | ||
26050 | #undef TRACE_SYSTEM | |
26051 | #define TRACE_SYSTEM zfs | |
26052 | #include <linux/tracepoint.h> | |
26053 | ||
26054 | DECLARE_EVENT_CLASS(zfs_autoconf_event_class, | |
26055 | TP_PROTO(unsigned long i), | |
26056 | TP_ARGS(i), | |
26057 | TP_STRUCT__entry( | |
26058 | __field(unsigned long, i) | |
26059 | ), | |
26060 | TP_fast_assign( | |
26061 | __entry->i = i; | |
26062 | ), | |
26063 | TP_printk("i = %lu", __entry->i) | |
26064 | ); | |
26065 | ||
26066 | #define DEFINE_AUTOCONF_EVENT(name) \ | |
26067 | DEFINE_EVENT(zfs_autoconf_event_class, name, \ | |
26068 | TP_PROTO(unsigned long i), \ | |
26069 | TP_ARGS(i)) | |
26070 | DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one); | |
26071 | DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two); | |
26072 | ||
26073 | #endif /* _CONFTEST_H */ | |
26074 | ||
26075 | #undef TRACE_INCLUDE_PATH | |
26076 | #define TRACE_INCLUDE_PATH . | |
26077 | #define TRACE_INCLUDE_FILE conftest | |
26078 | #include <trace/define_trace.h> | |
26079 | ||
26080 | _ACEOF | |
26081 | ||
26082 | ||
26083 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26084 | echo "obj-m := conftest.o" >build/Makefile | |
26085 | modpost_flag='' | |
26086 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26087 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26088 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26089 | (eval $ac_try) 2>&5 | |
26090 | ac_status=$? | |
26091 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26092 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26093 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26094 | (eval $ac_try) 2>&5 | |
26095 | ac_status=$? | |
26096 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26097 | test $ac_status = 0; }; }; then : | |
26098 | ||
26099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26100 | $as_echo "yes" >&6; } | |
26101 | ||
26102 | $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h | |
26103 | ||
26104 | ||
26105 | else | |
26106 | $as_echo "$as_me: failed program was:" >&5 | |
26107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26108 | ||
26109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26110 | $as_echo "no" >&6; } | |
26111 | ||
26112 | ||
26113 | ||
26114 | fi | |
26115 | rm -Rf build | |
26116 | ||
26117 | ||
26118 | EXTRA_KCFLAGS="$tmp_flags" | |
26119 | ||
26120 | ||
26121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5 | |
26122 | $as_echo_n "checking whether current->bio_tail exists... " >&6; } | |
26123 | ||
26124 | ||
26125 | cat confdefs.h - <<_ACEOF >conftest.c | |
26126 | ||
26127 | ||
26128 | #include <linux/sched.h> | |
26129 | ||
26130 | int | |
26131 | main (void) | |
26132 | { | |
26133 | ||
26134 | current->bio_tail = (struct bio **) NULL; | |
26135 | ||
26136 | ; | |
26137 | return 0; | |
26138 | } | |
26139 | ||
26140 | _ACEOF | |
26141 | ||
26142 | ||
26143 | ||
26144 | cat - <<_ACEOF >conftest.h | |
26145 | ||
26146 | _ACEOF | |
26147 | ||
26148 | ||
26149 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26150 | echo "obj-m := conftest.o" >build/Makefile | |
26151 | modpost_flag='' | |
26152 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26153 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26154 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26155 | (eval $ac_try) 2>&5 | |
26156 | ac_status=$? | |
26157 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26158 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26159 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26160 | (eval $ac_try) 2>&5 | |
26161 | ac_status=$? | |
26162 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26163 | test $ac_status = 0; }; }; then : | |
26164 | ||
26165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26166 | $as_echo "yes" >&6; } | |
26167 | ||
26168 | $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h | |
26169 | ||
26170 | ||
26171 | else | |
26172 | $as_echo "$as_me: failed program was:" >&5 | |
26173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26174 | ||
26175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26176 | $as_echo "no" >&6; } | |
26177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5 | |
26178 | $as_echo_n "checking whether current->bio_list exists... " >&6; } | |
26179 | ||
26180 | ||
26181 | cat confdefs.h - <<_ACEOF >conftest.c | |
26182 | ||
26183 | ||
26184 | #include <linux/sched.h> | |
26185 | ||
26186 | int | |
26187 | main (void) | |
26188 | { | |
26189 | ||
26190 | current->bio_list = (struct bio_list *) NULL; | |
26191 | ||
26192 | ; | |
26193 | return 0; | |
26194 | } | |
26195 | ||
26196 | _ACEOF | |
26197 | ||
26198 | ||
26199 | ||
26200 | cat - <<_ACEOF >conftest.h | |
26201 | ||
26202 | _ACEOF | |
26203 | ||
26204 | ||
26205 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26206 | echo "obj-m := conftest.o" >build/Makefile | |
26207 | modpost_flag='' | |
26208 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26209 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26210 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26211 | (eval $ac_try) 2>&5 | |
26212 | ac_status=$? | |
26213 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26214 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26215 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26216 | (eval $ac_try) 2>&5 | |
26217 | ac_status=$? | |
26218 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26219 | test $ac_status = 0; }; }; then : | |
26220 | ||
26221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26222 | $as_echo "yes" >&6; } | |
26223 | ||
26224 | $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h | |
26225 | ||
26226 | ||
26227 | else | |
26228 | $as_echo "$as_me: failed program was:" >&5 | |
26229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26230 | ||
26231 | as_fn_error $? "no - Please file a bug report at | |
26232 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
26233 | ||
26234 | ||
26235 | ||
26236 | fi | |
26237 | rm -Rf build | |
26238 | ||
26239 | ||
26240 | ||
26241 | ||
26242 | ||
26243 | fi | |
26244 | rm -Rf build | |
26245 | ||
26246 | ||
26247 | ||
26248 | ||
26249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5 | |
26250 | $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; } | |
26251 | ||
26252 | ||
26253 | cat confdefs.h - <<_ACEOF >conftest.c | |
26254 | ||
26255 | ||
26256 | #include <linux/bio.h> | |
26257 | ||
26258 | int | |
26259 | main (void) | |
26260 | { | |
26261 | ||
26262 | blk_qc_t blk_qc; | |
26263 | struct bio *bio = NULL; | |
26264 | blk_qc = submit_bio(bio); | |
26265 | ||
26266 | ; | |
26267 | return 0; | |
26268 | } | |
26269 | ||
26270 | _ACEOF | |
26271 | ||
26272 | ||
26273 | ||
26274 | cat - <<_ACEOF >conftest.h | |
26275 | ||
26276 | _ACEOF | |
26277 | ||
26278 | ||
26279 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26280 | echo "obj-m := conftest.o" >build/Makefile | |
26281 | modpost_flag='' | |
26282 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26283 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26284 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26285 | (eval $ac_try) 2>&5 | |
26286 | ac_status=$? | |
26287 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26288 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26289 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26290 | (eval $ac_try) 2>&5 | |
26291 | ac_status=$? | |
26292 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26293 | test $ac_status = 0; }; }; then : | |
26294 | ||
26295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26296 | $as_echo "yes" >&6; } | |
26297 | ||
26298 | $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h | |
26299 | ||
26300 | ||
26301 | else | |
26302 | $as_echo "$as_me: failed program was:" >&5 | |
26303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26304 | ||
26305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26306 | $as_echo "no" >&6; } | |
26307 | ||
26308 | ||
26309 | ||
26310 | fi | |
26311 | rm -Rf build | |
26312 | ||
26313 | ||
26314 | ||
26315 | ||
26316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5 | |
26317 | $as_echo_n "checking block device operation prototypes... " >&6; } | |
26318 | tmp_flags="$EXTRA_KCFLAGS" | |
26319 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
26320 | ||
26321 | ||
26322 | cat confdefs.h - <<_ACEOF >conftest.c | |
26323 | ||
26324 | ||
26325 | #include <linux/blkdev.h> | |
26326 | ||
26327 | int blk_open(struct block_device *bdev, fmode_t mode) | |
26328 | { return 0; } | |
26329 | int blk_ioctl(struct block_device *bdev, fmode_t mode, | |
26330 | unsigned x, unsigned long y) { return 0; } | |
26331 | int blk_compat_ioctl(struct block_device * bdev, fmode_t mode, | |
26332 | unsigned x, unsigned long y) { return 0; } | |
26333 | ||
26334 | static const struct block_device_operations | |
26335 | bops __attribute__ ((unused)) = { | |
26336 | .open = blk_open, | |
26337 | .release = NULL, | |
26338 | .ioctl = blk_ioctl, | |
26339 | .compat_ioctl = blk_compat_ioctl, | |
26340 | }; | |
26341 | ||
26342 | int | |
26343 | main (void) | |
26344 | { | |
26345 | ||
26346 | ||
26347 | ; | |
26348 | return 0; | |
26349 | } | |
26350 | ||
26351 | _ACEOF | |
26352 | ||
26353 | ||
26354 | ||
26355 | cat - <<_ACEOF >conftest.h | |
26356 | ||
26357 | _ACEOF | |
26358 | ||
26359 | ||
26360 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26361 | echo "obj-m := conftest.o" >build/Makefile | |
26362 | modpost_flag='' | |
26363 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26364 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26365 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26366 | (eval $ac_try) 2>&5 | |
26367 | ac_status=$? | |
26368 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26369 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26370 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26371 | (eval $ac_try) 2>&5 | |
26372 | ac_status=$? | |
26373 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26374 | test $ac_status = 0; }; }; then : | |
26375 | ||
26376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5 | |
26377 | $as_echo "struct block_device" >&6; } | |
26378 | ||
26379 | $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h | |
26380 | ||
26381 | ||
26382 | else | |
26383 | $as_echo "$as_me: failed program was:" >&5 | |
26384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26385 | ||
26386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5 | |
26387 | $as_echo "struct inode" >&6; } | |
26388 | ||
26389 | ||
26390 | ||
26391 | fi | |
26392 | rm -Rf build | |
26393 | ||
26394 | ||
26395 | EXTRA_KCFLAGS="$tmp_flags" | |
26396 | ||
26397 | ||
26398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5 | |
26399 | $as_echo_n "checking whether block_device_operations.release is void... " >&6; } | |
26400 | tmp_flags="$EXTRA_KCFLAGS" | |
26401 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
26402 | ||
26403 | ||
26404 | cat confdefs.h - <<_ACEOF >conftest.c | |
26405 | ||
26406 | ||
26407 | #include <linux/blkdev.h> | |
26408 | ||
26409 | void blk_release(struct gendisk *g, fmode_t mode) { return; } | |
26410 | ||
26411 | static const struct block_device_operations | |
26412 | bops __attribute__ ((unused)) = { | |
26413 | .open = NULL, | |
26414 | .release = blk_release, | |
26415 | .ioctl = NULL, | |
26416 | .compat_ioctl = NULL, | |
26417 | }; | |
26418 | ||
26419 | int | |
26420 | main (void) | |
26421 | { | |
26422 | ||
26423 | ||
26424 | ; | |
26425 | return 0; | |
26426 | } | |
26427 | ||
26428 | _ACEOF | |
26429 | ||
26430 | ||
26431 | ||
26432 | cat - <<_ACEOF >conftest.h | |
26433 | ||
26434 | _ACEOF | |
26435 | ||
26436 | ||
26437 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26438 | echo "obj-m := conftest.o" >build/Makefile | |
26439 | modpost_flag='' | |
26440 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26441 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26442 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26443 | (eval $ac_try) 2>&5 | |
26444 | ac_status=$? | |
26445 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26446 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26447 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26448 | (eval $ac_try) 2>&5 | |
26449 | ac_status=$? | |
26450 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26451 | test $ac_status = 0; }; }; then : | |
26452 | ||
26453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5 | |
26454 | $as_echo "void" >&6; } | |
26455 | ||
26456 | $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h | |
26457 | ||
26458 | ||
26459 | else | |
26460 | $as_echo "$as_me: failed program was:" >&5 | |
26461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26462 | ||
26463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 | |
26464 | $as_echo "int" >&6; } | |
26465 | ||
26466 | ||
26467 | ||
26468 | fi | |
26469 | rm -Rf build | |
26470 | ||
26471 | ||
26472 | EXTRA_KCFLAGS="$tmp_flags" | |
26473 | ||
26474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5 | |
26475 | $as_echo_n "checking whether kernel defines fmode_t... " >&6; } | |
26476 | ||
26477 | ||
26478 | cat confdefs.h - <<_ACEOF >conftest.c | |
26479 | ||
26480 | ||
26481 | #include <linux/types.h> | |
26482 | ||
26483 | int | |
26484 | main (void) | |
26485 | { | |
26486 | ||
26487 | fmode_t *ptr __attribute__ ((unused)); | |
26488 | ||
26489 | ; | |
26490 | return 0; | |
26491 | } | |
26492 | ||
26493 | _ACEOF | |
26494 | ||
26495 | ||
26496 | ||
26497 | cat - <<_ACEOF >conftest.h | |
26498 | ||
26499 | _ACEOF | |
26500 | ||
26501 | ||
26502 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26503 | echo "obj-m := conftest.o" >build/Makefile | |
26504 | modpost_flag='' | |
26505 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26506 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26507 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26508 | (eval $ac_try) 2>&5 | |
26509 | ac_status=$? | |
26510 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26511 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26512 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26513 | (eval $ac_try) 2>&5 | |
26514 | ac_status=$? | |
26515 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26516 | test $ac_status = 0; }; }; then : | |
26517 | ||
26518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26519 | $as_echo "yes" >&6; } | |
26520 | ||
26521 | $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h | |
26522 | ||
26523 | ||
26524 | else | |
26525 | $as_echo "$as_me: failed program was:" >&5 | |
26526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26527 | ||
26528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26529 | $as_echo "no" >&6; } | |
26530 | ||
26531 | ||
26532 | ||
26533 | fi | |
26534 | rm -Rf build | |
26535 | ||
26536 | ||
26537 | ||
26538 | ||
26539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5 | |
26540 | $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; } | |
26541 | ||
26542 | ||
26543 | cat confdefs.h - <<_ACEOF >conftest.c | |
26544 | ||
26545 | ||
26546 | #include <linux/kobject.h> | |
26547 | ||
26548 | int | |
26549 | main (void) | |
26550 | { | |
26551 | ||
26552 | int val __attribute__ ((unused)); | |
26553 | val = KOBJ_NAME_LEN; | |
26554 | ||
26555 | ; | |
26556 | return 0; | |
26557 | } | |
26558 | ||
26559 | _ACEOF | |
26560 | ||
26561 | ||
26562 | ||
26563 | cat - <<_ACEOF >conftest.h | |
26564 | ||
26565 | _ACEOF | |
26566 | ||
26567 | ||
26568 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26569 | echo "obj-m := conftest.o" >build/Makefile | |
26570 | modpost_flag='' | |
26571 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26572 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26573 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26574 | (eval $ac_try) 2>&5 | |
26575 | ac_status=$? | |
26576 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26577 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26578 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26579 | (eval $ac_try) 2>&5 | |
26580 | ac_status=$? | |
26581 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26582 | test $ac_status = 0; }; }; then : | |
26583 | ||
26584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26585 | $as_echo "yes" >&6; } | |
26586 | ||
26587 | $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h | |
26588 | ||
26589 | ||
26590 | else | |
26591 | $as_echo "$as_me: failed program was:" >&5 | |
26592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26593 | ||
26594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26595 | $as_echo "no" >&6; } | |
26596 | ||
26597 | ||
26598 | ||
26599 | fi | |
26600 | rm -Rf build | |
26601 | ||
26602 | ||
26603 | ||
26604 | ||
26605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5 | |
26606 | $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; } | |
26607 | ||
26608 | ||
26609 | cat confdefs.h - <<_ACEOF >conftest.c | |
26610 | ||
26611 | ||
26612 | #include <linux/fs.h> | |
26613 | ||
26614 | int | |
26615 | main (void) | |
26616 | { | |
26617 | ||
26618 | struct block_device *bdev = NULL; | |
26619 | (void) blkdev_get(bdev, 0, NULL); | |
26620 | ||
26621 | ; | |
26622 | return 0; | |
26623 | } | |
26624 | ||
26625 | _ACEOF | |
26626 | ||
26627 | ||
26628 | ||
26629 | cat - <<_ACEOF >conftest.h | |
26630 | ||
26631 | _ACEOF | |
26632 | ||
26633 | ||
26634 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26635 | echo "obj-m := conftest.o" >build/Makefile | |
26636 | modpost_flag='' | |
26637 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26638 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26639 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26640 | (eval $ac_try) 2>&5 | |
26641 | ac_status=$? | |
26642 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26643 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26644 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26645 | (eval $ac_try) 2>&5 | |
26646 | ac_status=$? | |
26647 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26648 | test $ac_status = 0; }; }; then : | |
26649 | ||
26650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26651 | $as_echo "yes" >&6; } | |
26652 | ||
26653 | $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h | |
26654 | ||
26655 | ||
26656 | else | |
26657 | $as_echo "$as_me: failed program was:" >&5 | |
26658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26659 | ||
26660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26661 | $as_echo "no" >&6; } | |
26662 | ||
26663 | ||
26664 | ||
26665 | fi | |
26666 | rm -Rf build | |
26667 | ||
26668 | ||
26669 | ||
26670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5 | |
26671 | $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; } | |
26672 | ||
26673 | ||
26674 | ||
26675 | cat confdefs.h - <<_ACEOF >conftest.c | |
26676 | ||
26677 | ||
26678 | #include <linux/fs.h> | |
26679 | ||
26680 | int | |
26681 | main (void) | |
26682 | { | |
26683 | ||
26684 | blkdev_get_by_path(NULL, 0, NULL); | |
26685 | ||
26686 | ; | |
26687 | return 0; | |
26688 | } | |
26689 | ||
26690 | _ACEOF | |
26691 | ||
26692 | ||
26693 | ||
26694 | cat - <<_ACEOF >conftest.h | |
26695 | ||
26696 | _ACEOF | |
26697 | ||
26698 | ||
26699 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26700 | echo "obj-m := conftest.o" >build/Makefile | |
26701 | modpost_flag='' | |
26702 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26703 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26704 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26705 | (eval $ac_try) 2>&5 | |
26706 | ac_status=$? | |
26707 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26708 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26709 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26710 | (eval $ac_try) 2>&5 | |
26711 | ac_status=$? | |
26712 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26713 | test $ac_status = 0; }; }; then : | |
26714 | rc=0 | |
26715 | else | |
26716 | $as_echo "$as_me: failed program was:" >&5 | |
26717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26718 | rc=1 | |
26719 | ||
26720 | ||
26721 | fi | |
26722 | rm -Rf build | |
26723 | ||
26724 | ||
26725 | if test $rc -ne 0; then : | |
26726 | ||
26727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26728 | $as_echo "no" >&6; } | |
26729 | ||
26730 | else | |
26731 | if test "x$enable_linux_builtin" != xyes; then | |
26732 | ||
26733 | grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \ | |
26734 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
26735 | rc=$? | |
26736 | if test $rc -ne 0; then | |
26737 | export=0 | |
26738 | for file in fs/block_dev.c; do | |
26739 | grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \ | |
26740 | "$LINUX/$file" 2>/dev/null | |
26741 | rc=$? | |
26742 | if test $rc -eq 0; then | |
26743 | export=1 | |
26744 | break; | |
26745 | fi | |
26746 | done | |
26747 | if test $export -eq 0; then : | |
26748 | rc=1 | |
26749 | else : | |
26750 | rc=0 | |
26751 | fi | |
26752 | else : | |
26753 | rc=0 | |
26754 | fi | |
26755 | ||
26756 | fi | |
26757 | if test $rc -ne 0; then : | |
26758 | ||
26759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26760 | $as_echo "no" >&6; } | |
26761 | ||
26762 | else : | |
26763 | ||
26764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26765 | $as_echo "yes" >&6; } | |
26766 | ||
26767 | $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h | |
26768 | ||
26769 | ||
26770 | fi | |
26771 | fi | |
26772 | ||
26773 | ||
26774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5 | |
26775 | $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; } | |
26776 | ||
26777 | ||
26778 | ||
26779 | cat confdefs.h - <<_ACEOF >conftest.c | |
26780 | ||
26781 | ||
26782 | #include <linux/fs.h> | |
26783 | ||
26784 | int | |
26785 | main (void) | |
26786 | { | |
26787 | ||
26788 | open_bdev_exclusive(NULL, 0, NULL); | |
26789 | ||
26790 | ; | |
26791 | return 0; | |
26792 | } | |
26793 | ||
26794 | _ACEOF | |
26795 | ||
26796 | ||
26797 | ||
26798 | cat - <<_ACEOF >conftest.h | |
26799 | ||
26800 | _ACEOF | |
26801 | ||
26802 | ||
26803 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26804 | echo "obj-m := conftest.o" >build/Makefile | |
26805 | modpost_flag='' | |
26806 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26807 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26808 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26809 | (eval $ac_try) 2>&5 | |
26810 | ac_status=$? | |
26811 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26812 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26813 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26814 | (eval $ac_try) 2>&5 | |
26815 | ac_status=$? | |
26816 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26817 | test $ac_status = 0; }; }; then : | |
26818 | rc=0 | |
26819 | else | |
26820 | $as_echo "$as_me: failed program was:" >&5 | |
26821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26822 | rc=1 | |
26823 | ||
26824 | ||
26825 | fi | |
26826 | rm -Rf build | |
26827 | ||
26828 | ||
26829 | if test $rc -ne 0; then : | |
26830 | ||
26831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26832 | $as_echo "no" >&6; } | |
26833 | ||
26834 | else | |
26835 | if test "x$enable_linux_builtin" != xyes; then | |
26836 | ||
26837 | grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \ | |
26838 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
26839 | rc=$? | |
26840 | if test $rc -ne 0; then | |
26841 | export=0 | |
26842 | for file in fs/block_dev.c; do | |
26843 | grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \ | |
26844 | "$LINUX/$file" 2>/dev/null | |
26845 | rc=$? | |
26846 | if test $rc -eq 0; then | |
26847 | export=1 | |
26848 | break; | |
26849 | fi | |
26850 | done | |
26851 | if test $export -eq 0; then : | |
26852 | rc=1 | |
26853 | else : | |
26854 | rc=0 | |
26855 | fi | |
26856 | else : | |
26857 | rc=0 | |
26858 | fi | |
26859 | ||
26860 | fi | |
26861 | if test $rc -ne 0; then : | |
26862 | ||
26863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26864 | $as_echo "no" >&6; } | |
26865 | ||
26866 | else : | |
26867 | ||
26868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26869 | $as_echo "yes" >&6; } | |
26870 | ||
26871 | $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h | |
26872 | ||
26873 | ||
26874 | fi | |
26875 | fi | |
26876 | ||
26877 | ||
26878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5 | |
26879 | $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; } | |
26880 | ||
26881 | ||
26882 | ||
26883 | cat confdefs.h - <<_ACEOF >conftest.c | |
26884 | ||
26885 | ||
26886 | #include <linux/fs.h> | |
26887 | ||
26888 | int | |
26889 | main (void) | |
26890 | { | |
26891 | ||
26892 | lookup_bdev(NULL); | |
26893 | ||
26894 | ; | |
26895 | return 0; | |
26896 | } | |
26897 | ||
26898 | _ACEOF | |
26899 | ||
26900 | ||
26901 | ||
26902 | cat - <<_ACEOF >conftest.h | |
26903 | ||
26904 | _ACEOF | |
26905 | ||
26906 | ||
26907 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26908 | echo "obj-m := conftest.o" >build/Makefile | |
26909 | modpost_flag='' | |
26910 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26911 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26912 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26913 | (eval $ac_try) 2>&5 | |
26914 | ac_status=$? | |
26915 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26916 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26917 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26918 | (eval $ac_try) 2>&5 | |
26919 | ac_status=$? | |
26920 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26921 | test $ac_status = 0; }; }; then : | |
26922 | rc=0 | |
26923 | else | |
26924 | $as_echo "$as_me: failed program was:" >&5 | |
26925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26926 | rc=1 | |
26927 | ||
26928 | ||
26929 | fi | |
26930 | rm -Rf build | |
26931 | ||
26932 | ||
26933 | if test $rc -ne 0; then : | |
26934 | ||
26935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26936 | $as_echo "no" >&6; } | |
26937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5 | |
26938 | $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; } | |
26939 | ||
26940 | ||
26941 | ||
26942 | cat confdefs.h - <<_ACEOF >conftest.c | |
26943 | ||
26944 | ||
26945 | #include <linux/fs.h> | |
26946 | ||
26947 | int | |
26948 | main (void) | |
26949 | { | |
26950 | ||
26951 | lookup_bdev(NULL, FMODE_READ); | |
26952 | ||
26953 | ; | |
26954 | return 0; | |
26955 | } | |
26956 | ||
26957 | _ACEOF | |
26958 | ||
26959 | ||
26960 | ||
26961 | cat - <<_ACEOF >conftest.h | |
26962 | ||
26963 | _ACEOF | |
26964 | ||
26965 | ||
26966 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26967 | echo "obj-m := conftest.o" >build/Makefile | |
26968 | modpost_flag='' | |
26969 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26970 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26971 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26972 | (eval $ac_try) 2>&5 | |
26973 | ac_status=$? | |
26974 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26975 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26976 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26977 | (eval $ac_try) 2>&5 | |
26978 | ac_status=$? | |
26979 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26980 | test $ac_status = 0; }; }; then : | |
26981 | rc=0 | |
26982 | else | |
26983 | $as_echo "$as_me: failed program was:" >&5 | |
26984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26985 | rc=1 | |
26986 | ||
26987 | ||
26988 | fi | |
26989 | rm -Rf build | |
26990 | ||
26991 | ||
26992 | if test $rc -ne 0; then : | |
26993 | ||
26994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26995 | $as_echo "no" >&6; } | |
26996 | ||
26997 | else | |
26998 | if test "x$enable_linux_builtin" != xyes; then | |
26999 | ||
27000 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
27001 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
27002 | rc=$? | |
27003 | if test $rc -ne 0; then | |
27004 | export=0 | |
27005 | for file in fs/block_dev.c; do | |
27006 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
27007 | "$LINUX/$file" 2>/dev/null | |
27008 | rc=$? | |
27009 | if test $rc -eq 0; then | |
27010 | export=1 | |
27011 | break; | |
27012 | fi | |
27013 | done | |
27014 | if test $export -eq 0; then : | |
27015 | rc=1 | |
27016 | else : | |
27017 | rc=0 | |
27018 | fi | |
27019 | else : | |
27020 | rc=0 | |
27021 | fi | |
27022 | ||
27023 | fi | |
27024 | if test $rc -ne 0; then : | |
27025 | ||
27026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27027 | $as_echo "no" >&6; } | |
27028 | ||
27029 | else : | |
27030 | ||
27031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27032 | $as_echo "yes" >&6; } | |
27033 | ||
27034 | $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h | |
27035 | ||
27036 | ||
27037 | fi | |
27038 | fi | |
27039 | ||
27040 | ||
27041 | else | |
27042 | if test "x$enable_linux_builtin" != xyes; then | |
27043 | ||
27044 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
27045 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
27046 | rc=$? | |
27047 | if test $rc -ne 0; then | |
27048 | export=0 | |
27049 | for file in fs/block_dev.c; do | |
27050 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
27051 | "$LINUX/$file" 2>/dev/null | |
27052 | rc=$? | |
27053 | if test $rc -eq 0; then | |
27054 | export=1 | |
27055 | break; | |
27056 | fi | |
27057 | done | |
27058 | if test $export -eq 0; then : | |
27059 | rc=1 | |
27060 | else : | |
27061 | rc=0 | |
27062 | fi | |
27063 | else : | |
27064 | rc=0 | |
27065 | fi | |
27066 | ||
27067 | fi | |
27068 | if test $rc -ne 0; then : | |
27069 | ||
27070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27071 | $as_echo "no" >&6; } | |
27072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5 | |
27073 | $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; } | |
27074 | ||
27075 | ||
27076 | ||
27077 | cat confdefs.h - <<_ACEOF >conftest.c | |
27078 | ||
27079 | ||
27080 | #include <linux/fs.h> | |
27081 | ||
27082 | int | |
27083 | main (void) | |
27084 | { | |
27085 | ||
27086 | lookup_bdev(NULL, FMODE_READ); | |
27087 | ||
27088 | ; | |
27089 | return 0; | |
27090 | } | |
27091 | ||
27092 | _ACEOF | |
27093 | ||
27094 | ||
27095 | ||
27096 | cat - <<_ACEOF >conftest.h | |
27097 | ||
27098 | _ACEOF | |
27099 | ||
27100 | ||
27101 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27102 | echo "obj-m := conftest.o" >build/Makefile | |
27103 | modpost_flag='' | |
27104 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27105 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27106 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27107 | (eval $ac_try) 2>&5 | |
27108 | ac_status=$? | |
27109 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27110 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27111 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27112 | (eval $ac_try) 2>&5 | |
27113 | ac_status=$? | |
27114 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27115 | test $ac_status = 0; }; }; then : | |
27116 | rc=0 | |
27117 | else | |
27118 | $as_echo "$as_me: failed program was:" >&5 | |
27119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27120 | rc=1 | |
27121 | ||
27122 | ||
27123 | fi | |
27124 | rm -Rf build | |
27125 | ||
27126 | ||
27127 | if test $rc -ne 0; then : | |
27128 | ||
27129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27130 | $as_echo "no" >&6; } | |
27131 | ||
27132 | else | |
27133 | if test "x$enable_linux_builtin" != xyes; then | |
27134 | ||
27135 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
27136 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
27137 | rc=$? | |
27138 | if test $rc -ne 0; then | |
27139 | export=0 | |
27140 | for file in fs/block_dev.c; do | |
27141 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
27142 | "$LINUX/$file" 2>/dev/null | |
27143 | rc=$? | |
27144 | if test $rc -eq 0; then | |
27145 | export=1 | |
27146 | break; | |
27147 | fi | |
27148 | done | |
27149 | if test $export -eq 0; then : | |
27150 | rc=1 | |
27151 | else : | |
27152 | rc=0 | |
27153 | fi | |
27154 | else : | |
27155 | rc=0 | |
27156 | fi | |
27157 | ||
27158 | fi | |
27159 | if test $rc -ne 0; then : | |
27160 | ||
27161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27162 | $as_echo "no" >&6; } | |
27163 | ||
27164 | else : | |
27165 | ||
27166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27167 | $as_echo "yes" >&6; } | |
27168 | ||
27169 | $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h | |
27170 | ||
27171 | ||
27172 | fi | |
27173 | fi | |
27174 | ||
27175 | ||
27176 | else : | |
27177 | ||
27178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27179 | $as_echo "yes" >&6; } | |
27180 | ||
27181 | $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h | |
27182 | ||
27183 | ||
27184 | fi | |
27185 | fi | |
27186 | ||
27187 | ||
27188 | ||
27189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5 | |
27190 | $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; } | |
27191 | ||
27192 | ||
27193 | cat confdefs.h - <<_ACEOF >conftest.c | |
27194 | ||
27195 | ||
27196 | #include <linux/buffer_head.h> | |
27197 | ||
27198 | int | |
27199 | main (void) | |
27200 | { | |
27201 | ||
27202 | struct block_device *bdev = NULL; | |
27203 | invalidate_bdev(bdev); | |
27204 | ||
27205 | ; | |
27206 | return 0; | |
27207 | } | |
27208 | ||
27209 | _ACEOF | |
27210 | ||
27211 | ||
27212 | ||
27213 | cat - <<_ACEOF >conftest.h | |
27214 | ||
27215 | _ACEOF | |
27216 | ||
27217 | ||
27218 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27219 | echo "obj-m := conftest.o" >build/Makefile | |
27220 | modpost_flag='' | |
27221 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27222 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27223 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27224 | (eval $ac_try) 2>&5 | |
27225 | ac_status=$? | |
27226 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27227 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27228 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27229 | (eval $ac_try) 2>&5 | |
27230 | ac_status=$? | |
27231 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27232 | test $ac_status = 0; }; }; then : | |
27233 | ||
27234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27235 | $as_echo "yes" >&6; } | |
27236 | ||
27237 | $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h | |
27238 | ||
27239 | ||
27240 | else | |
27241 | $as_echo "$as_me: failed program was:" >&5 | |
27242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27243 | ||
27244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27245 | $as_echo "no" >&6; } | |
27246 | ||
27247 | ||
27248 | ||
27249 | fi | |
27250 | rm -Rf build | |
27251 | ||
27252 | ||
27253 | ||
27254 | ||
27255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5 | |
27256 | $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; } | |
27257 | tmp_flags="$EXTRA_KCFLAGS" | |
27258 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
27259 | ||
27260 | ||
27261 | cat confdefs.h - <<_ACEOF >conftest.c | |
27262 | ||
27263 | ||
27264 | #include <linux/blkdev.h> | |
27265 | ||
27266 | int | |
27267 | main (void) | |
27268 | { | |
27269 | ||
27270 | struct block_device *bdev = NULL; | |
27271 | bdev_logical_block_size(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_BDEV_LOGICAL_BLOCK_SIZE 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 | EXTRA_KCFLAGS="$tmp_flags" | |
27322 | ||
27323 | ||
27324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5 | |
27325 | $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; } | |
27326 | tmp_flags="$EXTRA_KCFLAGS" | |
27327 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
27328 | ||
27329 | ||
27330 | cat confdefs.h - <<_ACEOF >conftest.c | |
27331 | ||
27332 | ||
27333 | #include <linux/blkdev.h> | |
27334 | ||
27335 | int | |
27336 | main (void) | |
27337 | { | |
27338 | ||
27339 | struct block_device *bdev = NULL; | |
27340 | bdev_physical_block_size(bdev); | |
27341 | ||
27342 | ; | |
27343 | return 0; | |
27344 | } | |
27345 | ||
27346 | _ACEOF | |
27347 | ||
27348 | ||
27349 | ||
27350 | cat - <<_ACEOF >conftest.h | |
27351 | ||
27352 | _ACEOF | |
27353 | ||
27354 | ||
27355 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27356 | echo "obj-m := conftest.o" >build/Makefile | |
27357 | modpost_flag='' | |
27358 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27359 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27360 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27361 | (eval $ac_try) 2>&5 | |
27362 | ac_status=$? | |
27363 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27364 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27365 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27366 | (eval $ac_try) 2>&5 | |
27367 | ac_status=$? | |
27368 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27369 | test $ac_status = 0; }; }; then : | |
27370 | ||
27371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27372 | $as_echo "yes" >&6; } | |
27373 | ||
27374 | $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h | |
27375 | ||
27376 | ||
27377 | else | |
27378 | $as_echo "$as_me: failed program was:" >&5 | |
27379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27380 | ||
27381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27382 | $as_echo "no" >&6; } | |
27383 | ||
27384 | ||
27385 | ||
27386 | fi | |
27387 | rm -Rf build | |
27388 | ||
27389 | ||
27390 | EXTRA_KCFLAGS="$tmp_flags" | |
27391 | ||
27392 | ||
27393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5 | |
27394 | $as_echo_n "checking whether bio has bi_iter... " >&6; } | |
27395 | ||
27396 | ||
27397 | cat confdefs.h - <<_ACEOF >conftest.c | |
27398 | ||
27399 | ||
27400 | #include <linux/bio.h> | |
27401 | ||
27402 | int | |
27403 | main (void) | |
27404 | { | |
27405 | ||
27406 | struct bio bio; | |
27407 | bio.bi_iter.bi_sector = 0; | |
27408 | ||
27409 | ; | |
27410 | return 0; | |
27411 | } | |
27412 | ||
27413 | _ACEOF | |
27414 | ||
27415 | ||
27416 | ||
27417 | cat - <<_ACEOF >conftest.h | |
27418 | ||
27419 | _ACEOF | |
27420 | ||
27421 | ||
27422 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27423 | echo "obj-m := conftest.o" >build/Makefile | |
27424 | modpost_flag='' | |
27425 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27426 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27427 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27428 | (eval $ac_try) 2>&5 | |
27429 | ac_status=$? | |
27430 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27431 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27432 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27433 | (eval $ac_try) 2>&5 | |
27434 | ac_status=$? | |
27435 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27436 | test $ac_status = 0; }; }; then : | |
27437 | ||
27438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27439 | $as_echo "yes" >&6; } | |
27440 | ||
27441 | $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h | |
27442 | ||
27443 | ||
27444 | else | |
27445 | $as_echo "$as_me: failed program was:" >&5 | |
27446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27447 | ||
27448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27449 | $as_echo "no" >&6; } | |
27450 | ||
27451 | ||
27452 | ||
27453 | fi | |
27454 | rm -Rf build | |
27455 | ||
27456 | ||
27457 | ||
27458 | ||
27459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5 | |
27460 | $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; } | |
27461 | ||
27462 | ||
27463 | cat confdefs.h - <<_ACEOF >conftest.c | |
27464 | ||
27465 | ||
27466 | #include <linux/bio.h> | |
27467 | ||
27468 | int | |
27469 | main (void) | |
27470 | { | |
27471 | ||
27472 | int flags __attribute__ ((unused)); | |
27473 | flags = ((1 << BIO_RW_FAILFAST_DEV) | | |
27474 | (1 << BIO_RW_FAILFAST_TRANSPORT) | | |
27475 | (1 << BIO_RW_FAILFAST_DRIVER)); | |
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_RW_FAILFAST_DTD 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 REQ_FAILFAST_MASK is defined" >&5 | |
27528 | $as_echo_n "checking whether REQ_FAILFAST_MASK is 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 = REQ_FAILFAST_MASK; | |
27542 | ||
27543 | ; | |
27544 | return 0; | |
27545 | } | |
27546 | ||
27547 | _ACEOF | |
27548 | ||
27549 | ||
27550 | ||
27551 | cat - <<_ACEOF >conftest.h | |
27552 | ||
27553 | _ACEOF | |
27554 | ||
27555 | ||
27556 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27557 | echo "obj-m := conftest.o" >build/Makefile | |
27558 | modpost_flag='' | |
27559 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27560 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27561 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27562 | (eval $ac_try) 2>&5 | |
27563 | ac_status=$? | |
27564 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27565 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27566 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27567 | (eval $ac_try) 2>&5 | |
27568 | ac_status=$? | |
27569 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27570 | test $ac_status = 0; }; }; then : | |
27571 | ||
27572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27573 | $as_echo "yes" >&6; } | |
27574 | ||
27575 | $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h | |
27576 | ||
27577 | ||
27578 | else | |
27579 | $as_echo "$as_me: failed program was:" >&5 | |
27580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27581 | ||
27582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27583 | $as_echo "no" >&6; } | |
27584 | ||
27585 | ||
27586 | ||
27587 | fi | |
27588 | rm -Rf build | |
27589 | ||
27590 | ||
27591 | ||
27592 | ||
27593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5 | |
27594 | $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; } | |
27595 | ||
27596 | ||
27597 | cat confdefs.h - <<_ACEOF >conftest.c | |
27598 | ||
27599 | ||
27600 | #include <linux/blk_types.h> | |
27601 | ||
27602 | int | |
27603 | main (void) | |
27604 | { | |
27605 | ||
27606 | int op __attribute__ ((unused)) = REQ_OP_DISCARD; | |
27607 | ||
27608 | ; | |
27609 | return 0; | |
27610 | } | |
27611 | ||
27612 | _ACEOF | |
27613 | ||
27614 | ||
27615 | ||
27616 | cat - <<_ACEOF >conftest.h | |
27617 | ||
27618 | _ACEOF | |
27619 | ||
27620 | ||
27621 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27622 | echo "obj-m := conftest.o" >build/Makefile | |
27623 | modpost_flag='' | |
27624 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27625 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27626 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27627 | (eval $ac_try) 2>&5 | |
27628 | ac_status=$? | |
27629 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27630 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27631 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27632 | (eval $ac_try) 2>&5 | |
27633 | ac_status=$? | |
27634 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27635 | test $ac_status = 0; }; }; then : | |
27636 | ||
27637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27638 | $as_echo "yes" >&6; } | |
27639 | ||
27640 | $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h | |
27641 | ||
27642 | ||
27643 | else | |
27644 | $as_echo "$as_me: failed program was:" >&5 | |
27645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27646 | ||
27647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27648 | $as_echo "no" >&6; } | |
27649 | ||
27650 | ||
27651 | ||
27652 | fi | |
27653 | rm -Rf build | |
27654 | ||
27655 | ||
27656 | ||
27657 | ||
27658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5 | |
27659 | $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; } | |
27660 | ||
27661 | ||
27662 | cat confdefs.h - <<_ACEOF >conftest.c | |
27663 | ||
27664 | ||
27665 | #include <linux/blk_types.h> | |
27666 | ||
27667 | int | |
27668 | main (void) | |
27669 | { | |
27670 | ||
27671 | int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE; | |
27672 | ||
27673 | ; | |
27674 | return 0; | |
27675 | } | |
27676 | ||
27677 | _ACEOF | |
27678 | ||
27679 | ||
27680 | ||
27681 | cat - <<_ACEOF >conftest.h | |
27682 | ||
27683 | _ACEOF | |
27684 | ||
27685 | ||
27686 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27687 | echo "obj-m := conftest.o" >build/Makefile | |
27688 | modpost_flag='' | |
27689 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27690 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27691 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27692 | (eval $ac_try) 2>&5 | |
27693 | ac_status=$? | |
27694 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27695 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27696 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27697 | (eval $ac_try) 2>&5 | |
27698 | ac_status=$? | |
27699 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27700 | test $ac_status = 0; }; }; then : | |
27701 | ||
27702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27703 | $as_echo "yes" >&6; } | |
27704 | ||
27705 | $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h | |
27706 | ||
27707 | ||
27708 | else | |
27709 | $as_echo "$as_me: failed program was:" >&5 | |
27710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27711 | ||
27712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27713 | $as_echo "no" >&6; } | |
27714 | ||
27715 | ||
27716 | ||
27717 | fi | |
27718 | rm -Rf build | |
27719 | ||
27720 | ||
27721 | ||
27722 | ||
27723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5 | |
27724 | $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; } | |
27725 | ||
27726 | ||
27727 | cat confdefs.h - <<_ACEOF >conftest.c | |
27728 | ||
27729 | ||
27730 | #include <linux/blk_types.h> | |
27731 | ||
27732 | int | |
27733 | main (void) | |
27734 | { | |
27735 | ||
27736 | int op __attribute__ ((unused)) = REQ_OP_FLUSH; | |
27737 | ||
27738 | ; | |
27739 | return 0; | |
27740 | } | |
27741 | ||
27742 | _ACEOF | |
27743 | ||
27744 | ||
27745 | ||
27746 | cat - <<_ACEOF >conftest.h | |
27747 | ||
27748 | _ACEOF | |
27749 | ||
27750 | ||
27751 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27752 | echo "obj-m := conftest.o" >build/Makefile | |
27753 | modpost_flag='' | |
27754 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27755 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27756 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27757 | (eval $ac_try) 2>&5 | |
27758 | ac_status=$? | |
27759 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27760 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27761 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27762 | (eval $ac_try) 2>&5 | |
27763 | ac_status=$? | |
27764 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27765 | test $ac_status = 0; }; }; then : | |
27766 | ||
27767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27768 | $as_echo "yes" >&6; } | |
27769 | ||
27770 | $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h | |
27771 | ||
27772 | ||
27773 | else | |
27774 | $as_echo "$as_me: failed program was:" >&5 | |
27775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27776 | ||
27777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27778 | $as_echo "no" >&6; } | |
27779 | ||
27780 | ||
27781 | ||
27782 | fi | |
27783 | rm -Rf build | |
27784 | ||
27785 | ||
27786 | ||
27787 | ||
27788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5 | |
27789 | $as_echo_n "checking whether bio->bi_opf is defined... " >&6; } | |
27790 | ||
27791 | ||
27792 | cat confdefs.h - <<_ACEOF >conftest.c | |
27793 | ||
27794 | ||
27795 | #include <linux/bio.h> | |
27796 | ||
27797 | int | |
27798 | main (void) | |
27799 | { | |
27800 | ||
27801 | struct bio bio __attribute__ ((unused)); | |
27802 | bio.bi_opf = 0; | |
27803 | ||
27804 | ; | |
27805 | return 0; | |
27806 | } | |
27807 | ||
27808 | _ACEOF | |
27809 | ||
27810 | ||
27811 | ||
27812 | cat - <<_ACEOF >conftest.h | |
27813 | ||
27814 | _ACEOF | |
27815 | ||
27816 | ||
27817 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27818 | echo "obj-m := conftest.o" >build/Makefile | |
27819 | modpost_flag='' | |
27820 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27821 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27822 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27823 | (eval $ac_try) 2>&5 | |
27824 | ac_status=$? | |
27825 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27826 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27827 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27828 | (eval $ac_try) 2>&5 | |
27829 | ac_status=$? | |
27830 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27831 | test $ac_status = 0; }; }; then : | |
27832 | ||
27833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27834 | $as_echo "yes" >&6; } | |
27835 | ||
27836 | $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h | |
27837 | ||
27838 | ||
27839 | else | |
27840 | $as_echo "$as_me: failed program was:" >&5 | |
27841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27842 | ||
27843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27844 | $as_echo "no" >&6; } | |
27845 | ||
27846 | ||
27847 | ||
27848 | fi | |
27849 | rm -Rf build | |
27850 | ||
27851 | ||
27852 | ||
27853 | ||
27854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5 | |
27855 | $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; } | |
27856 | ||
27857 | ||
27858 | cat confdefs.h - <<_ACEOF >conftest.c | |
27859 | ||
27860 | ||
27861 | #include <linux/bio.h> | |
27862 | ||
27863 | void wanted_end_io(struct bio *bio) { return; } | |
27864 | ||
27865 | bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io; | |
27866 | ||
27867 | int | |
27868 | main (void) | |
27869 | { | |
27870 | ||
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_1ARG_BIO_END_IO_T 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_RW_BARRIER is defined" >&5 | |
27923 | $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; } | |
27924 | ||
27925 | ||
27926 | cat confdefs.h - <<_ACEOF >conftest.c | |
27927 | ||
27928 | ||
27929 | #include <linux/bio.h> | |
27930 | ||
27931 | int | |
27932 | main (void) | |
27933 | { | |
27934 | ||
27935 | int flags __attribute__ ((unused)); | |
27936 | flags = BIO_RW_BARRIER; | |
27937 | ||
27938 | ; | |
27939 | return 0; | |
27940 | } | |
27941 | ||
27942 | _ACEOF | |
27943 | ||
27944 | ||
27945 | ||
27946 | cat - <<_ACEOF >conftest.h | |
27947 | ||
27948 | _ACEOF | |
27949 | ||
27950 | ||
27951 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27952 | echo "obj-m := conftest.o" >build/Makefile | |
27953 | modpost_flag='' | |
27954 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27955 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27956 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27957 | (eval $ac_try) 2>&5 | |
27958 | ac_status=$? | |
27959 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27960 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27961 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27962 | (eval $ac_try) 2>&5 | |
27963 | ac_status=$? | |
27964 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27965 | test $ac_status = 0; }; }; then : | |
27966 | ||
27967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27968 | $as_echo "yes" >&6; } | |
27969 | ||
27970 | $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h | |
27971 | ||
27972 | ||
27973 | else | |
27974 | $as_echo "$as_me: failed program was:" >&5 | |
27975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27976 | ||
27977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27978 | $as_echo "no" >&6; } | |
27979 | ||
27980 | ||
27981 | ||
27982 | fi | |
27983 | rm -Rf build | |
27984 | ||
27985 | ||
27986 | ||
27987 | ||
27988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5 | |
27989 | $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; } | |
27990 | ||
27991 | ||
27992 | cat confdefs.h - <<_ACEOF >conftest.c | |
27993 | ||
27994 | ||
27995 | #include <linux/bio.h> | |
27996 | ||
27997 | int | |
27998 | main (void) | |
27999 | { | |
28000 | ||
28001 | int flags __attribute__ ((unused)); | |
28002 | flags = BIO_RW_DISCARD; | |
28003 | ||
28004 | ; | |
28005 | return 0; | |
28006 | } | |
28007 | ||
28008 | _ACEOF | |
28009 | ||
28010 | ||
28011 | ||
28012 | cat - <<_ACEOF >conftest.h | |
28013 | ||
28014 | _ACEOF | |
28015 | ||
28016 | ||
28017 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28018 | echo "obj-m := conftest.o" >build/Makefile | |
28019 | modpost_flag='' | |
28020 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28021 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28022 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28023 | (eval $ac_try) 2>&5 | |
28024 | ac_status=$? | |
28025 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28026 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28027 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28028 | (eval $ac_try) 2>&5 | |
28029 | ac_status=$? | |
28030 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28031 | test $ac_status = 0; }; }; then : | |
28032 | ||
28033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28034 | $as_echo "yes" >&6; } | |
28035 | ||
28036 | $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h | |
28037 | ||
28038 | ||
28039 | else | |
28040 | $as_echo "$as_me: failed program was:" >&5 | |
28041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28042 | ||
28043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28044 | $as_echo "no" >&6; } | |
28045 | ||
28046 | ||
28047 | ||
28048 | fi | |
28049 | rm -Rf build | |
28050 | ||
28051 | ||
28052 | ||
28053 | ||
28054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5 | |
28055 | $as_echo_n "checking whether blk_queue_flush() is available... " >&6; } | |
28056 | tmp_flags="$EXTRA_KCFLAGS" | |
28057 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
28058 | ||
28059 | ||
28060 | cat confdefs.h - <<_ACEOF >conftest.c | |
28061 | ||
28062 | ||
28063 | #include <linux/blkdev.h> | |
28064 | ||
28065 | int | |
28066 | main (void) | |
28067 | { | |
28068 | ||
28069 | struct request_queue *q = NULL; | |
28070 | (void) blk_queue_flush(q, REQ_FLUSH); | |
28071 | ||
28072 | ; | |
28073 | return 0; | |
28074 | } | |
28075 | ||
28076 | _ACEOF | |
28077 | ||
28078 | ||
28079 | ||
28080 | cat - <<_ACEOF >conftest.h | |
28081 | ||
28082 | _ACEOF | |
28083 | ||
28084 | ||
28085 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28086 | echo "obj-m := conftest.o" >build/Makefile | |
28087 | modpost_flag='' | |
28088 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28089 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28090 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28091 | (eval $ac_try) 2>&5 | |
28092 | ac_status=$? | |
28093 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28094 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28095 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28096 | (eval $ac_try) 2>&5 | |
28097 | ac_status=$? | |
28098 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28099 | test $ac_status = 0; }; }; then : | |
28100 | ||
28101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28102 | $as_echo "yes" >&6; } | |
28103 | ||
28104 | $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h | |
28105 | ||
28106 | ||
28107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5 | |
28108 | $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; } | |
28109 | ||
28110 | ||
28111 | cat confdefs.h - <<_ACEOF >conftest.c | |
28112 | ||
28113 | ||
28114 | #include <linux/module.h> | |
28115 | #include <linux/blkdev.h> | |
28116 | ||
28117 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
28118 | ||
28119 | int | |
28120 | main (void) | |
28121 | { | |
28122 | ||
28123 | struct request_queue *q = NULL; | |
28124 | (void) blk_queue_flush(q, REQ_FLUSH); | |
28125 | ||
28126 | ; | |
28127 | return 0; | |
28128 | } | |
28129 | ||
28130 | _ACEOF | |
28131 | ||
28132 | ||
28133 | ||
28134 | cat - <<_ACEOF >conftest.h | |
28135 | ||
28136 | _ACEOF | |
28137 | ||
28138 | ||
28139 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28140 | echo "obj-m := conftest.o" >build/Makefile | |
28141 | modpost_flag='' | |
28142 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28143 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28144 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28145 | (eval $ac_try) 2>&5 | |
28146 | ac_status=$? | |
28147 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28148 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28149 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28150 | (eval $ac_try) 2>&5 | |
28151 | ac_status=$? | |
28152 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28153 | test $ac_status = 0; }; }; then : | |
28154 | ||
28155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28156 | $as_echo "no" >&6; } | |
28157 | ||
28158 | else | |
28159 | $as_echo "$as_me: failed program was:" >&5 | |
28160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28161 | ||
28162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28163 | $as_echo "yes" >&6; } | |
28164 | ||
28165 | $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h | |
28166 | ||
28167 | ||
28168 | ||
28169 | ||
28170 | fi | |
28171 | rm -Rf build | |
28172 | ||
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5 | |
28190 | $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; } | |
28191 | ||
28192 | ||
28193 | cat confdefs.h - <<_ACEOF >conftest.c | |
28194 | ||
28195 | ||
28196 | #include <linux/kernel.h> | |
28197 | #include <linux/blkdev.h> | |
28198 | ||
28199 | ||
28200 | int | |
28201 | main (void) | |
28202 | { | |
28203 | ||
28204 | struct request_queue *q = NULL; | |
28205 | blk_queue_write_cache(q, true, true); | |
28206 | ||
28207 | ; | |
28208 | return 0; | |
28209 | } | |
28210 | ||
28211 | _ACEOF | |
28212 | ||
28213 | ||
28214 | ||
28215 | cat - <<_ACEOF >conftest.h | |
28216 | ||
28217 | _ACEOF | |
28218 | ||
28219 | ||
28220 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28221 | echo "obj-m := conftest.o" >build/Makefile | |
28222 | modpost_flag='' | |
28223 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28224 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28225 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28226 | (eval $ac_try) 2>&5 | |
28227 | ac_status=$? | |
28228 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28229 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28230 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28231 | (eval $ac_try) 2>&5 | |
28232 | ac_status=$? | |
28233 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28234 | test $ac_status = 0; }; }; then : | |
28235 | ||
28236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28237 | $as_echo "yes" >&6; } | |
28238 | ||
28239 | $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h | |
28240 | ||
28241 | ||
28242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5 | |
28243 | $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; } | |
28244 | ||
28245 | ||
28246 | cat confdefs.h - <<_ACEOF >conftest.c | |
28247 | ||
28248 | ||
28249 | #include <linux/kernel.h> | |
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 | blk_queue_write_cache(q, true, true); | |
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_WRITE_CACHE_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 | EXTRA_KCFLAGS="$tmp_flags" | |
28326 | ||
28327 | ||
28328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5 | |
28329 | $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; } | |
28330 | tmp_flags="$EXTRA_KCFLAGS" | |
28331 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
28332 | ||
28333 | ||
28334 | cat confdefs.h - <<_ACEOF >conftest.c | |
28335 | ||
28336 | ||
28337 | #include <linux/blkdev.h> | |
28338 | ||
28339 | int | |
28340 | main (void) | |
28341 | { | |
28342 | ||
28343 | struct request_queue *q = NULL; | |
28344 | (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS); | |
28345 | ||
28346 | ; | |
28347 | return 0; | |
28348 | } | |
28349 | ||
28350 | _ACEOF | |
28351 | ||
28352 | ||
28353 | ||
28354 | cat - <<_ACEOF >conftest.h | |
28355 | ||
28356 | _ACEOF | |
28357 | ||
28358 | ||
28359 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28360 | echo "obj-m := conftest.o" >build/Makefile | |
28361 | modpost_flag='' | |
28362 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28363 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28364 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28365 | (eval $ac_try) 2>&5 | |
28366 | ac_status=$? | |
28367 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28368 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28369 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28370 | (eval $ac_try) 2>&5 | |
28371 | ac_status=$? | |
28372 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28373 | test $ac_status = 0; }; }; then : | |
28374 | ||
28375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28376 | $as_echo "yes" >&6; } | |
28377 | ||
28378 | $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h | |
28379 | ||
28380 | ||
28381 | else | |
28382 | $as_echo "$as_me: failed program was:" >&5 | |
28383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28384 | ||
28385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28386 | $as_echo "no" >&6; } | |
28387 | ||
28388 | ||
28389 | ||
28390 | fi | |
28391 | rm -Rf build | |
28392 | ||
28393 | ||
28394 | EXTRA_KCFLAGS="$tmp_flags" | |
28395 | ||
28396 | ||
28397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5 | |
28398 | $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; } | |
28399 | tmp_flags="$EXTRA_KCFLAGS" | |
28400 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
28401 | ||
28402 | ||
28403 | cat confdefs.h - <<_ACEOF >conftest.c | |
28404 | ||
28405 | ||
28406 | #include <linux/blkdev.h> | |
28407 | ||
28408 | int | |
28409 | main (void) | |
28410 | { | |
28411 | ||
28412 | struct request_queue *q = NULL; | |
28413 | (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS); | |
28414 | ||
28415 | ; | |
28416 | return 0; | |
28417 | } | |
28418 | ||
28419 | _ACEOF | |
28420 | ||
28421 | ||
28422 | ||
28423 | cat - <<_ACEOF >conftest.h | |
28424 | ||
28425 | _ACEOF | |
28426 | ||
28427 | ||
28428 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28429 | echo "obj-m := conftest.o" >build/Makefile | |
28430 | modpost_flag='' | |
28431 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28432 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28433 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28434 | (eval $ac_try) 2>&5 | |
28435 | ac_status=$? | |
28436 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28437 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28438 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28439 | (eval $ac_try) 2>&5 | |
28440 | ac_status=$? | |
28441 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28442 | test $ac_status = 0; }; }; then : | |
28443 | ||
28444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28445 | $as_echo "yes" >&6; } | |
28446 | ||
28447 | $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h | |
28448 | ||
28449 | ||
28450 | else | |
28451 | $as_echo "$as_me: failed program was:" >&5 | |
28452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28453 | ||
28454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28455 | $as_echo "no" >&6; } | |
28456 | ||
28457 | ||
28458 | ||
28459 | fi | |
28460 | rm -Rf build | |
28461 | ||
28462 | ||
28463 | EXTRA_KCFLAGS="$tmp_flags" | |
28464 | ||
28465 | ||
28466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5 | |
28467 | $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; } | |
28468 | tmp_flags="$EXTRA_KCFLAGS" | |
28469 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
28470 | ||
28471 | ||
28472 | cat confdefs.h - <<_ACEOF >conftest.c | |
28473 | ||
28474 | ||
28475 | #include <linux/blkdev.h> | |
28476 | ||
28477 | int | |
28478 | main (void) | |
28479 | { | |
28480 | ||
28481 | extern enum bio_rw_flags rw; | |
28482 | ||
28483 | rw = BIO_RW_UNPLUG; | |
28484 | ||
28485 | ; | |
28486 | return 0; | |
28487 | } | |
28488 | ||
28489 | _ACEOF | |
28490 | ||
28491 | ||
28492 | ||
28493 | cat - <<_ACEOF >conftest.h | |
28494 | ||
28495 | _ACEOF | |
28496 | ||
28497 | ||
28498 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28499 | echo "obj-m := conftest.o" >build/Makefile | |
28500 | modpost_flag='' | |
28501 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28502 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28503 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28504 | (eval $ac_try) 2>&5 | |
28505 | ac_status=$? | |
28506 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28507 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28508 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28509 | (eval $ac_try) 2>&5 | |
28510 | ac_status=$? | |
28511 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28512 | test $ac_status = 0; }; }; then : | |
28513 | ||
28514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28515 | $as_echo "yes" >&6; } | |
28516 | ||
28517 | $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h | |
28518 | ||
28519 | ||
28520 | else | |
28521 | $as_echo "$as_me: failed program was:" >&5 | |
28522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28523 | ||
28524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28525 | $as_echo "no" >&6; } | |
28526 | ||
28527 | ||
28528 | ||
28529 | fi | |
28530 | rm -Rf build | |
28531 | ||
28532 | ||
28533 | EXTRA_KCFLAGS="$tmp_flags" | |
28534 | ||
28535 | ||
28536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5 | |
28537 | $as_echo_n "checking whether struct blk_plug is available... " >&6; } | |
28538 | tmp_flags="$EXTRA_KCFLAGS" | |
28539 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
28540 | ||
28541 | ||
28542 | cat confdefs.h - <<_ACEOF >conftest.c | |
28543 | ||
28544 | ||
28545 | #include <linux/blkdev.h> | |
28546 | ||
28547 | int | |
28548 | main (void) | |
28549 | { | |
28550 | ||
28551 | struct blk_plug plug; | |
28552 | ||
28553 | blk_start_plug(&plug); | |
28554 | blk_finish_plug(&plug); | |
28555 | ||
28556 | ; | |
28557 | return 0; | |
28558 | } | |
28559 | ||
28560 | _ACEOF | |
28561 | ||
28562 | ||
28563 | ||
28564 | cat - <<_ACEOF >conftest.h | |
28565 | ||
28566 | _ACEOF | |
28567 | ||
28568 | ||
28569 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28570 | echo "obj-m := conftest.o" >build/Makefile | |
28571 | modpost_flag='' | |
28572 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28573 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
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; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28579 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28580 | (eval $ac_try) 2>&5 | |
28581 | ac_status=$? | |
28582 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28583 | test $ac_status = 0; }; }; then : | |
28584 | ||
28585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28586 | $as_echo "yes" >&6; } | |
28587 | ||
28588 | $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h | |
28589 | ||
28590 | ||
28591 | else | |
28592 | $as_echo "$as_me: failed program was:" >&5 | |
28593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28594 | ||
28595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28596 | $as_echo "no" >&6; } | |
28597 | ||
28598 | ||
28599 | ||
28600 | fi | |
28601 | rm -Rf build | |
28602 | ||
28603 | ||
28604 | EXTRA_KCFLAGS="$tmp_flags" | |
28605 | ||
28606 | ||
28607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5 | |
28608 | $as_echo_n "checking whether get_disk_ro() is available... " >&6; } | |
28609 | tmp_flags="$EXTRA_KCFLAGS" | |
28610 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
28611 | ||
28612 | ||
28613 | cat confdefs.h - <<_ACEOF >conftest.c | |
28614 | ||
28615 | ||
28616 | #include <linux/blkdev.h> | |
28617 | ||
28618 | int | |
28619 | main (void) | |
28620 | { | |
28621 | ||
28622 | struct gendisk *disk = NULL; | |
28623 | (void) get_disk_ro(disk); | |
28624 | ||
28625 | ; | |
28626 | return 0; | |
28627 | } | |
28628 | ||
28629 | _ACEOF | |
28630 | ||
28631 | ||
28632 | ||
28633 | cat - <<_ACEOF >conftest.h | |
28634 | ||
28635 | _ACEOF | |
28636 | ||
28637 | ||
28638 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28639 | echo "obj-m := conftest.o" >build/Makefile | |
28640 | modpost_flag='' | |
28641 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28642 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28643 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28644 | (eval $ac_try) 2>&5 | |
28645 | ac_status=$? | |
28646 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28647 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28648 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28649 | (eval $ac_try) 2>&5 | |
28650 | ac_status=$? | |
28651 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28652 | test $ac_status = 0; }; }; then : | |
28653 | ||
28654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28655 | $as_echo "yes" >&6; } | |
28656 | ||
28657 | $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h | |
28658 | ||
28659 | ||
28660 | else | |
28661 | $as_echo "$as_me: failed program was:" >&5 | |
28662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28663 | ||
28664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28665 | $as_echo "no" >&6; } | |
28666 | ||
28667 | ||
28668 | ||
28669 | fi | |
28670 | rm -Rf build | |
28671 | ||
28672 | ||
28673 | EXTRA_KCFLAGS="$tmp_flags" | |
28674 | ||
28675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5 | |
28676 | $as_echo_n "checking whether get_gendisk() is available... " >&6; } | |
28677 | ||
28678 | ||
28679 | ||
28680 | cat confdefs.h - <<_ACEOF >conftest.c | |
28681 | ||
28682 | ||
28683 | #include <linux/genhd.h> | |
28684 | ||
28685 | int | |
28686 | main (void) | |
28687 | { | |
28688 | ||
28689 | get_gendisk(0, NULL); | |
28690 | ||
28691 | ; | |
28692 | return 0; | |
28693 | } | |
28694 | ||
28695 | _ACEOF | |
28696 | ||
28697 | ||
28698 | ||
28699 | cat - <<_ACEOF >conftest.h | |
28700 | ||
28701 | _ACEOF | |
28702 | ||
28703 | ||
28704 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28705 | echo "obj-m := conftest.o" >build/Makefile | |
28706 | modpost_flag='' | |
28707 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28708 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28709 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28710 | (eval $ac_try) 2>&5 | |
28711 | ac_status=$? | |
28712 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28713 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28714 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28715 | (eval $ac_try) 2>&5 | |
28716 | ac_status=$? | |
28717 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28718 | test $ac_status = 0; }; }; then : | |
28719 | rc=0 | |
28720 | else | |
28721 | $as_echo "$as_me: failed program was:" >&5 | |
28722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28723 | rc=1 | |
28724 | ||
28725 | ||
28726 | fi | |
28727 | rm -Rf build | |
28728 | ||
28729 | ||
28730 | if test $rc -ne 0; then : | |
28731 | ||
28732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28733 | $as_echo "no" >&6; } | |
28734 | ||
28735 | else | |
28736 | if test "x$enable_linux_builtin" != xyes; then | |
28737 | ||
28738 | grep -q -E '[[:space:]]get_gendisk[[:space:]]' \ | |
28739 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
28740 | rc=$? | |
28741 | if test $rc -ne 0; then | |
28742 | export=0 | |
28743 | for file in block/genhd.c; do | |
28744 | grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \ | |
28745 | "$LINUX/$file" 2>/dev/null | |
28746 | rc=$? | |
28747 | if test $rc -eq 0; then | |
28748 | export=1 | |
28749 | break; | |
28750 | fi | |
28751 | done | |
28752 | if test $export -eq 0; then : | |
28753 | rc=1 | |
28754 | else : | |
28755 | rc=0 | |
28756 | fi | |
28757 | else : | |
28758 | rc=0 | |
28759 | fi | |
28760 | ||
28761 | fi | |
28762 | if test $rc -ne 0; then : | |
28763 | ||
28764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28765 | $as_echo "no" >&6; } | |
28766 | ||
28767 | else : | |
28768 | ||
28769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28770 | $as_echo "yes" >&6; } | |
28771 | ||
28772 | $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h | |
28773 | ||
28774 | ||
28775 | fi | |
28776 | fi | |
28777 | ||
28778 | ||
28779 | ||
28780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5 | |
28781 | $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; } | |
28782 | ||
28783 | ||
28784 | cat confdefs.h - <<_ACEOF >conftest.c | |
28785 | ||
28786 | ||
1ec59ff7 | 28787 | #include <linux/bio.h> |
87d546d8 TG |
28788 | |
28789 | int | |
28790 | main (void) | |
28791 | { | |
28792 | ||
28793 | struct bio *bio __attribute__ ((unused)) = NULL; | |
28794 | ||
28795 | bio_set_op_attrs(bio, 0, 0); | |
28796 | ||
28797 | ; | |
28798 | return 0; | |
28799 | } | |
28800 | ||
28801 | _ACEOF | |
28802 | ||
28803 | ||
28804 | ||
28805 | cat - <<_ACEOF >conftest.h | |
28806 | ||
28807 | _ACEOF | |
28808 | ||
28809 | ||
28810 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28811 | echo "obj-m := conftest.o" >build/Makefile | |
28812 | modpost_flag='' | |
28813 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28814 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28815 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28816 | (eval $ac_try) 2>&5 | |
28817 | ac_status=$? | |
28818 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28819 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28820 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28821 | (eval $ac_try) 2>&5 | |
28822 | ac_status=$? | |
28823 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28824 | test $ac_status = 0; }; }; then : | |
28825 | ||
28826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28827 | $as_echo "yes" >&6; } | |
28828 | ||
28829 | $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h | |
28830 | ||
28831 | ||
28832 | else | |
28833 | $as_echo "$as_me: failed program was:" >&5 | |
28834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28835 | ||
28836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28837 | $as_echo "no" >&6; } | |
28838 | ||
28839 | ||
28840 | ||
28841 | fi | |
28842 | rm -Rf build | |
28843 | ||
28844 | ||
28845 | ||
28846 | ||
28847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5 | |
28848 | $as_echo_n "checking whether generic_readlink is global... " >&6; } | |
28849 | ||
28850 | ||
28851 | cat confdefs.h - <<_ACEOF >conftest.c | |
28852 | ||
28853 | ||
28854 | #include <linux/fs.h> | |
28855 | ||
28856 | int | |
28857 | main (void) | |
28858 | { | |
28859 | ||
28860 | int i __attribute__ ((unused)); | |
28861 | ||
28862 | i = generic_readlink(NULL, NULL, 0); | |
28863 | ||
28864 | ; | |
28865 | return 0; | |
28866 | } | |
28867 | ||
28868 | _ACEOF | |
28869 | ||
28870 | ||
28871 | ||
28872 | cat - <<_ACEOF >conftest.h | |
28873 | ||
28874 | _ACEOF | |
28875 | ||
28876 | ||
28877 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28878 | echo "obj-m := conftest.o" >build/Makefile | |
28879 | modpost_flag='' | |
28880 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28881 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28882 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28883 | (eval $ac_try) 2>&5 | |
28884 | ac_status=$? | |
28885 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28886 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28887 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28888 | (eval $ac_try) 2>&5 | |
28889 | ac_status=$? | |
28890 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28891 | test $ac_status = 0; }; }; then : | |
28892 | ||
28893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28894 | $as_echo "yes" >&6; } | |
28895 | ||
28896 | $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h | |
28897 | ||
28898 | ||
28899 | else | |
28900 | $as_echo "$as_me: failed program was:" >&5 | |
28901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28902 | ||
28903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28904 | $as_echo "no" >&6; } | |
28905 | ||
28906 | ||
28907 | ||
28908 | fi | |
28909 | rm -Rf build | |
28910 | ||
28911 | ||
28912 | ||
28913 | ||
28914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5 | |
28915 | $as_echo_n "checking whether ql->discard_granularity is available... " >&6; } | |
28916 | ||
28917 | ||
28918 | cat confdefs.h - <<_ACEOF >conftest.c | |
28919 | ||
28920 | ||
28921 | #include <linux/blkdev.h> | |
28922 | ||
28923 | int | |
28924 | main (void) | |
28925 | { | |
28926 | ||
28927 | struct queue_limits ql __attribute__ ((unused)); | |
28928 | ||
28929 | ql.discard_granularity = 0; | |
28930 | ||
28931 | ; | |
28932 | return 0; | |
28933 | } | |
28934 | ||
28935 | _ACEOF | |
28936 | ||
28937 | ||
28938 | ||
28939 | cat - <<_ACEOF >conftest.h | |
28940 | ||
28941 | _ACEOF | |
28942 | ||
28943 | ||
28944 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28945 | echo "obj-m := conftest.o" >build/Makefile | |
28946 | modpost_flag='' | |
28947 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28948 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28949 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28950 | (eval $ac_try) 2>&5 | |
28951 | ac_status=$? | |
28952 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28953 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28954 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28955 | (eval $ac_try) 2>&5 | |
28956 | ac_status=$? | |
28957 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28958 | test $ac_status = 0; }; }; then : | |
28959 | ||
28960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28961 | $as_echo "yes" >&6; } | |
28962 | ||
28963 | $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h | |
28964 | ||
28965 | ||
28966 | else | |
28967 | $as_echo "$as_me: failed program was:" >&5 | |
28968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28969 | ||
28970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28971 | $as_echo "no" >&6; } | |
28972 | ||
28973 | ||
28974 | ||
28975 | fi | |
28976 | rm -Rf build | |
28977 | ||
28978 | ||
28979 | ||
28980 | ||
28981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5 | |
28982 | $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; } | |
28983 | ||
28984 | ||
28985 | cat confdefs.h - <<_ACEOF >conftest.c | |
28986 | ||
28987 | ||
28988 | #include <linux/fs.h> | |
28989 | #include <linux/xattr.h> | |
28990 | ||
28991 | const struct xattr_handler xattr_test_handler = { | |
28992 | .prefix = "test", | |
28993 | .get = NULL, | |
28994 | .set = NULL, | |
28995 | }; | |
28996 | ||
28997 | const struct xattr_handler *xattr_handlers[] = { | |
28998 | &xattr_test_handler, | |
28999 | }; | |
29000 | ||
29001 | const struct super_block sb __attribute__ ((unused)) = { | |
29002 | .s_xattr = xattr_handlers, | |
29003 | }; | |
29004 | ||
29005 | int | |
29006 | main (void) | |
29007 | { | |
29008 | ||
29009 | ||
29010 | ; | |
29011 | return 0; | |
29012 | } | |
29013 | ||
29014 | _ACEOF | |
29015 | ||
29016 | ||
29017 | ||
29018 | cat - <<_ACEOF >conftest.h | |
29019 | ||
29020 | _ACEOF | |
29021 | ||
29022 | ||
29023 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29024 | echo "obj-m := conftest.o" >build/Makefile | |
29025 | modpost_flag='' | |
29026 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29027 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29028 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29029 | (eval $ac_try) 2>&5 | |
29030 | ac_status=$? | |
29031 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29032 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29033 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29034 | (eval $ac_try) 2>&5 | |
29035 | ac_status=$? | |
29036 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29037 | test $ac_status = 0; }; }; then : | |
29038 | ||
29039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29040 | $as_echo "yes" >&6; } | |
29041 | ||
29042 | $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h | |
29043 | ||
29044 | ||
29045 | else | |
29046 | $as_echo "$as_me: failed program was:" >&5 | |
29047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29048 | ||
29049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29050 | $as_echo "no" >&6; } | |
29051 | ||
29052 | ||
29053 | ||
29054 | fi | |
29055 | rm -Rf build | |
29056 | ||
29057 | ||
29058 | ||
29059 | ||
29060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5 | |
29061 | $as_echo_n "checking whether xattr_handler has name... " >&6; } | |
29062 | ||
29063 | ||
29064 | cat confdefs.h - <<_ACEOF >conftest.c | |
29065 | ||
29066 | ||
29067 | #include <linux/xattr.h> | |
29068 | ||
29069 | static const struct xattr_handler | |
29070 | xops __attribute__ ((unused)) = { | |
29071 | .name = XATTR_NAME_POSIX_ACL_ACCESS, | |
29072 | }; | |
29073 | ||
29074 | int | |
29075 | main (void) | |
29076 | { | |
29077 | ||
29078 | ||
29079 | ; | |
29080 | return 0; | |
29081 | } | |
29082 | ||
29083 | _ACEOF | |
29084 | ||
29085 | ||
29086 | ||
29087 | cat - <<_ACEOF >conftest.h | |
29088 | ||
29089 | _ACEOF | |
29090 | ||
29091 | ||
29092 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29093 | echo "obj-m := conftest.o" >build/Makefile | |
29094 | modpost_flag='' | |
29095 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29096 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29097 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29098 | (eval $ac_try) 2>&5 | |
29099 | ac_status=$? | |
29100 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29101 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29102 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29103 | (eval $ac_try) 2>&5 | |
29104 | ac_status=$? | |
29105 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29106 | test $ac_status = 0; }; }; then : | |
29107 | ||
29108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29109 | $as_echo "yes" >&6; } | |
29110 | ||
29111 | $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h | |
29112 | ||
29113 | ||
29114 | else | |
29115 | $as_echo "$as_me: failed program was:" >&5 | |
29116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29117 | ||
29118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29119 | $as_echo "no" >&6; } | |
29120 | ||
29121 | ||
29122 | ||
29123 | fi | |
29124 | rm -Rf build | |
29125 | ||
29126 | ||
29127 | ||
29128 | ||
29129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5 | |
29130 | $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; } | |
29131 | ||
29132 | ||
29133 | cat confdefs.h - <<_ACEOF >conftest.c | |
29134 | ||
29135 | ||
29136 | #include <linux/xattr.h> | |
29137 | ||
29138 | int get(const struct xattr_handler *handler, | |
29139 | struct dentry *dentry, struct inode *inode, | |
29140 | const char *name, void *buffer, size_t size) { return 0; } | |
29141 | static const struct xattr_handler | |
29142 | xops __attribute__ ((unused)) = { | |
29143 | .get = get, | |
29144 | }; | |
29145 | ||
29146 | int | |
29147 | main (void) | |
29148 | { | |
29149 | ||
29150 | ||
29151 | ; | |
29152 | return 0; | |
29153 | } | |
29154 | ||
29155 | _ACEOF | |
29156 | ||
29157 | ||
29158 | ||
29159 | cat - <<_ACEOF >conftest.h | |
29160 | ||
29161 | _ACEOF | |
29162 | ||
29163 | ||
29164 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29165 | echo "obj-m := conftest.o" >build/Makefile | |
29166 | modpost_flag='' | |
29167 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29168 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
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; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29174 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29175 | (eval $ac_try) 2>&5 | |
29176 | ac_status=$? | |
29177 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29178 | test $ac_status = 0; }; }; then : | |
29179 | ||
29180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29181 | $as_echo "yes" >&6; } | |
29182 | ||
29183 | $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h | |
29184 | ||
29185 | ||
29186 | else | |
29187 | $as_echo "$as_me: failed program was:" >&5 | |
29188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29189 | ||
29190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5 | |
29191 | $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; } | |
29192 | ||
29193 | ||
29194 | cat confdefs.h - <<_ACEOF >conftest.c | |
29195 | ||
29196 | ||
29197 | #include <linux/xattr.h> | |
29198 | ||
29199 | int get(const struct xattr_handler *handler, | |
29200 | struct dentry *dentry, const char *name, | |
29201 | void *buffer, size_t size) { return 0; } | |
29202 | static const struct xattr_handler | |
29203 | xops __attribute__ ((unused)) = { | |
29204 | .get = get, | |
29205 | }; | |
29206 | ||
29207 | int | |
29208 | main (void) | |
29209 | { | |
29210 | ||
29211 | ||
29212 | ; | |
29213 | return 0; | |
29214 | } | |
29215 | ||
29216 | _ACEOF | |
29217 | ||
29218 | ||
29219 | ||
29220 | cat - <<_ACEOF >conftest.h | |
29221 | ||
29222 | _ACEOF | |
29223 | ||
29224 | ||
29225 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29226 | echo "obj-m := conftest.o" >build/Makefile | |
29227 | modpost_flag='' | |
29228 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29229 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29230 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29231 | (eval $ac_try) 2>&5 | |
29232 | ac_status=$? | |
29233 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29234 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29235 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29236 | (eval $ac_try) 2>&5 | |
29237 | ac_status=$? | |
29238 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29239 | test $ac_status = 0; }; }; then : | |
29240 | ||
29241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29242 | $as_echo "yes" >&6; } | |
29243 | ||
29244 | $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h | |
29245 | ||
29246 | ||
29247 | else | |
29248 | $as_echo "$as_me: failed program was:" >&5 | |
29249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29250 | ||
29251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29252 | $as_echo "no" >&6; } | |
29253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5 | |
29254 | $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; } | |
29255 | ||
29256 | ||
29257 | cat confdefs.h - <<_ACEOF >conftest.c | |
29258 | ||
29259 | ||
29260 | #include <linux/xattr.h> | |
29261 | ||
29262 | int get(struct dentry *dentry, const char *name, | |
29263 | void *buffer, size_t size, int handler_flags) | |
29264 | { return 0; } | |
29265 | static const struct xattr_handler | |
29266 | xops __attribute__ ((unused)) = { | |
29267 | .get = get, | |
29268 | }; | |
29269 | ||
29270 | int | |
29271 | main (void) | |
29272 | { | |
29273 | ||
29274 | ||
29275 | ; | |
29276 | return 0; | |
29277 | } | |
29278 | ||
29279 | _ACEOF | |
29280 | ||
29281 | ||
29282 | ||
29283 | cat - <<_ACEOF >conftest.h | |
29284 | ||
29285 | _ACEOF | |
29286 | ||
29287 | ||
29288 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29289 | echo "obj-m := conftest.o" >build/Makefile | |
29290 | modpost_flag='' | |
29291 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29292 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29293 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29294 | (eval $ac_try) 2>&5 | |
29295 | ac_status=$? | |
29296 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29297 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29298 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29299 | (eval $ac_try) 2>&5 | |
29300 | ac_status=$? | |
29301 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29302 | test $ac_status = 0; }; }; then : | |
29303 | ||
29304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29305 | $as_echo "yes" >&6; } | |
29306 | ||
29307 | $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h | |
29308 | ||
29309 | ||
29310 | else | |
29311 | $as_echo "$as_me: failed program was:" >&5 | |
29312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29313 | ||
29314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29315 | $as_echo "no" >&6; } | |
29316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5 | |
29317 | $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; } | |
29318 | ||
29319 | ||
29320 | cat confdefs.h - <<_ACEOF >conftest.c | |
29321 | ||
29322 | ||
29323 | #include <linux/xattr.h> | |
29324 | ||
29325 | int get(struct inode *ip, const char *name, | |
29326 | void *buffer, size_t size) { return 0; } | |
29327 | static const struct xattr_handler | |
29328 | xops __attribute__ ((unused)) = { | |
29329 | .get = get, | |
29330 | }; | |
29331 | ||
29332 | int | |
29333 | main (void) | |
29334 | { | |
29335 | ||
29336 | ||
29337 | ; | |
29338 | return 0; | |
29339 | } | |
29340 | ||
29341 | _ACEOF | |
29342 | ||
29343 | ||
29344 | ||
29345 | cat - <<_ACEOF >conftest.h | |
29346 | ||
29347 | _ACEOF | |
29348 | ||
29349 | ||
29350 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29351 | echo "obj-m := conftest.o" >build/Makefile | |
29352 | modpost_flag='' | |
29353 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29354 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29355 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29356 | (eval $ac_try) 2>&5 | |
29357 | ac_status=$? | |
29358 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29359 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29360 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29361 | (eval $ac_try) 2>&5 | |
29362 | ac_status=$? | |
29363 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29364 | test $ac_status = 0; }; }; then : | |
29365 | ||
29366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29367 | $as_echo "yes" >&6; } | |
29368 | ||
29369 | $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h | |
29370 | ||
29371 | ||
29372 | else | |
29373 | $as_echo "$as_me: failed program was:" >&5 | |
29374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29375 | ||
29376 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
29377 | ||
29378 | ||
29379 | ||
29380 | fi | |
29381 | rm -Rf build | |
29382 | ||
29383 | ||
29384 | ||
29385 | ||
29386 | ||
29387 | fi | |
29388 | rm -Rf build | |
29389 | ||
29390 | ||
29391 | ||
29392 | ||
29393 | ||
29394 | fi | |
29395 | rm -Rf build | |
29396 | ||
29397 | ||
29398 | ||
29399 | ||
29400 | ||
29401 | fi | |
29402 | rm -Rf build | |
29403 | ||
29404 | ||
29405 | ||
29406 | ||
29407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5 | |
29408 | $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; } | |
29409 | ||
29410 | ||
29411 | cat confdefs.h - <<_ACEOF >conftest.c | |
29412 | ||
29413 | ||
29414 | #include <linux/xattr.h> | |
29415 | ||
29416 | int set(const struct xattr_handler *handler, | |
29417 | struct dentry *dentry, struct inode *inode, | |
29418 | const char *name, const void *buffer, | |
29419 | size_t size, int flags) | |
29420 | { return 0; } | |
29421 | static const struct xattr_handler | |
29422 | xops __attribute__ ((unused)) = { | |
29423 | .set = set, | |
29424 | }; | |
29425 | ||
29426 | int | |
29427 | main (void) | |
29428 | { | |
29429 | ||
29430 | ||
29431 | ; | |
29432 | return 0; | |
29433 | } | |
29434 | ||
29435 | _ACEOF | |
29436 | ||
29437 | ||
29438 | ||
29439 | cat - <<_ACEOF >conftest.h | |
29440 | ||
29441 | _ACEOF | |
29442 | ||
29443 | ||
29444 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29445 | echo "obj-m := conftest.o" >build/Makefile | |
29446 | modpost_flag='' | |
29447 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29448 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29449 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29450 | (eval $ac_try) 2>&5 | |
29451 | ac_status=$? | |
29452 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29453 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29454 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29455 | (eval $ac_try) 2>&5 | |
29456 | ac_status=$? | |
29457 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29458 | test $ac_status = 0; }; }; then : | |
29459 | ||
29460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29461 | $as_echo "yes" >&6; } | |
29462 | ||
29463 | $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h | |
29464 | ||
29465 | ||
29466 | else | |
29467 | $as_echo "$as_me: failed program was:" >&5 | |
29468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29469 | ||
29470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5 | |
29471 | $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; } | |
29472 | ||
29473 | ||
29474 | cat confdefs.h - <<_ACEOF >conftest.c | |
29475 | ||
29476 | ||
29477 | #include <linux/xattr.h> | |
29478 | ||
29479 | int set(const struct xattr_handler *handler, | |
29480 | struct dentry *dentry, const char *name, | |
29481 | const void *buffer, size_t size, int flags) | |
29482 | { return 0; } | |
29483 | static const struct xattr_handler | |
29484 | xops __attribute__ ((unused)) = { | |
29485 | .set = set, | |
29486 | }; | |
29487 | ||
29488 | int | |
29489 | main (void) | |
29490 | { | |
29491 | ||
29492 | ||
29493 | ; | |
29494 | return 0; | |
29495 | } | |
29496 | ||
29497 | _ACEOF | |
29498 | ||
29499 | ||
29500 | ||
29501 | cat - <<_ACEOF >conftest.h | |
29502 | ||
29503 | _ACEOF | |
29504 | ||
29505 | ||
29506 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29507 | echo "obj-m := conftest.o" >build/Makefile | |
29508 | modpost_flag='' | |
29509 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29510 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29511 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29512 | (eval $ac_try) 2>&5 | |
29513 | ac_status=$? | |
29514 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29515 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29516 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29517 | (eval $ac_try) 2>&5 | |
29518 | ac_status=$? | |
29519 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29520 | test $ac_status = 0; }; }; then : | |
29521 | ||
29522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29523 | $as_echo "yes" >&6; } | |
29524 | ||
29525 | $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h | |
29526 | ||
29527 | ||
29528 | else | |
29529 | $as_echo "$as_me: failed program was:" >&5 | |
29530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29531 | ||
29532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29533 | $as_echo "no" >&6; } | |
29534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5 | |
29535 | $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; } | |
29536 | ||
29537 | ||
29538 | cat confdefs.h - <<_ACEOF >conftest.c | |
29539 | ||
29540 | ||
29541 | #include <linux/xattr.h> | |
29542 | ||
29543 | int set(struct dentry *dentry, const char *name, | |
29544 | const void *buffer, size_t size, int flags, | |
29545 | int handler_flags) { return 0; } | |
29546 | static const struct xattr_handler | |
29547 | xops __attribute__ ((unused)) = { | |
29548 | .set = set, | |
29549 | }; | |
29550 | ||
29551 | int | |
29552 | main (void) | |
29553 | { | |
29554 | ||
29555 | ||
29556 | ; | |
29557 | return 0; | |
29558 | } | |
29559 | ||
29560 | _ACEOF | |
29561 | ||
29562 | ||
29563 | ||
29564 | cat - <<_ACEOF >conftest.h | |
29565 | ||
29566 | _ACEOF | |
29567 | ||
29568 | ||
29569 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29570 | echo "obj-m := conftest.o" >build/Makefile | |
29571 | modpost_flag='' | |
29572 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29573 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29574 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29575 | (eval $ac_try) 2>&5 | |
29576 | ac_status=$? | |
29577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29578 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29579 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29580 | (eval $ac_try) 2>&5 | |
29581 | ac_status=$? | |
29582 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29583 | test $ac_status = 0; }; }; then : | |
29584 | ||
29585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29586 | $as_echo "yes" >&6; } | |
29587 | ||
29588 | $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h | |
29589 | ||
29590 | ||
29591 | else | |
29592 | $as_echo "$as_me: failed program was:" >&5 | |
29593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29594 | ||
29595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29596 | $as_echo "no" >&6; } | |
29597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5 | |
29598 | $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; } | |
29599 | ||
29600 | ||
29601 | cat confdefs.h - <<_ACEOF >conftest.c | |
29602 | ||
29603 | ||
29604 | #include <linux/xattr.h> | |
29605 | ||
29606 | int set(struct inode *ip, const char *name, | |
29607 | const void *buffer, size_t size, int flags) | |
29608 | { return 0; } | |
29609 | static const struct xattr_handler | |
29610 | xops __attribute__ ((unused)) = { | |
29611 | .set = set, | |
29612 | }; | |
29613 | ||
29614 | int | |
29615 | main (void) | |
29616 | { | |
29617 | ||
29618 | ||
29619 | ; | |
29620 | return 0; | |
29621 | } | |
29622 | ||
29623 | _ACEOF | |
29624 | ||
29625 | ||
29626 | ||
29627 | cat - <<_ACEOF >conftest.h | |
29628 | ||
29629 | _ACEOF | |
29630 | ||
29631 | ||
29632 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29633 | echo "obj-m := conftest.o" >build/Makefile | |
29634 | modpost_flag='' | |
29635 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29636 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29637 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29638 | (eval $ac_try) 2>&5 | |
29639 | ac_status=$? | |
29640 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29641 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29642 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29643 | (eval $ac_try) 2>&5 | |
29644 | ac_status=$? | |
29645 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29646 | test $ac_status = 0; }; }; then : | |
29647 | ||
29648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29649 | $as_echo "yes" >&6; } | |
29650 | ||
29651 | $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h | |
29652 | ||
29653 | ||
29654 | else | |
29655 | $as_echo "$as_me: failed program was:" >&5 | |
29656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29657 | ||
29658 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
29659 | ||
29660 | ||
29661 | ||
29662 | fi | |
29663 | rm -Rf build | |
29664 | ||
29665 | ||
29666 | ||
29667 | ||
29668 | ||
29669 | fi | |
29670 | rm -Rf build | |
29671 | ||
29672 | ||
29673 | ||
29674 | ||
29675 | ||
29676 | fi | |
29677 | rm -Rf build | |
29678 | ||
29679 | ||
29680 | ||
29681 | ||
29682 | ||
29683 | fi | |
29684 | rm -Rf build | |
29685 | ||
29686 | ||
29687 | ||
29688 | ||
29689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5 | |
29690 | $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; } | |
29691 | ||
29692 | ||
29693 | cat confdefs.h - <<_ACEOF >conftest.c | |
29694 | ||
29695 | ||
29696 | #include <linux/xattr.h> | |
29697 | ||
29698 | bool list(struct dentry *dentry) { return 0; } | |
29699 | static const struct xattr_handler | |
29700 | xops __attribute__ ((unused)) = { | |
29701 | .list = list, | |
29702 | }; | |
29703 | ||
29704 | int | |
29705 | main (void) | |
29706 | { | |
29707 | ||
29708 | ||
29709 | ; | |
29710 | return 0; | |
29711 | } | |
29712 | ||
29713 | _ACEOF | |
29714 | ||
29715 | ||
29716 | ||
29717 | cat - <<_ACEOF >conftest.h | |
29718 | ||
29719 | _ACEOF | |
29720 | ||
29721 | ||
29722 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29723 | echo "obj-m := conftest.o" >build/Makefile | |
29724 | modpost_flag='' | |
29725 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29726 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29727 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29728 | (eval $ac_try) 2>&5 | |
29729 | ac_status=$? | |
29730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29731 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29732 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29733 | (eval $ac_try) 2>&5 | |
29734 | ac_status=$? | |
29735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29736 | test $ac_status = 0; }; }; then : | |
29737 | ||
29738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29739 | $as_echo "yes" >&6; } | |
29740 | ||
29741 | $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h | |
29742 | ||
29743 | ||
29744 | else | |
29745 | $as_echo "$as_me: failed program was:" >&5 | |
29746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29747 | ||
29748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29749 | $as_echo "no" >&6; } | |
29750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5 | |
29751 | $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; } | |
29752 | ||
29753 | ||
29754 | cat confdefs.h - <<_ACEOF >conftest.c | |
29755 | ||
29756 | ||
29757 | #include <linux/xattr.h> | |
29758 | ||
29759 | size_t list(const struct xattr_handler *handler, | |
29760 | struct dentry *dentry, char *list, size_t list_size, | |
29761 | const char *name, size_t name_len) { return 0; } | |
29762 | static const struct xattr_handler | |
29763 | xops __attribute__ ((unused)) = { | |
29764 | .list = list, | |
29765 | }; | |
29766 | ||
29767 | int | |
29768 | main (void) | |
29769 | { | |
29770 | ||
29771 | ||
29772 | ; | |
29773 | return 0; | |
29774 | } | |
29775 | ||
29776 | _ACEOF | |
29777 | ||
29778 | ||
29779 | ||
29780 | cat - <<_ACEOF >conftest.h | |
29781 | ||
29782 | _ACEOF | |
29783 | ||
29784 | ||
29785 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29786 | echo "obj-m := conftest.o" >build/Makefile | |
29787 | modpost_flag='' | |
29788 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29789 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29790 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29791 | (eval $ac_try) 2>&5 | |
29792 | ac_status=$? | |
29793 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29794 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29795 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29796 | (eval $ac_try) 2>&5 | |
29797 | ac_status=$? | |
29798 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29799 | test $ac_status = 0; }; }; then : | |
29800 | ||
29801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29802 | $as_echo "yes" >&6; } | |
29803 | ||
29804 | $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h | |
29805 | ||
29806 | ||
29807 | else | |
29808 | $as_echo "$as_me: failed program was:" >&5 | |
29809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29810 | ||
29811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29812 | $as_echo "no" >&6; } | |
29813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5 | |
29814 | $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; } | |
29815 | ||
29816 | ||
29817 | cat confdefs.h - <<_ACEOF >conftest.c | |
29818 | ||
29819 | ||
29820 | #include <linux/xattr.h> | |
29821 | ||
29822 | size_t list(struct dentry *dentry, | |
29823 | char *list, size_t list_size, | |
29824 | const char *name, size_t name_len, | |
29825 | int handler_flags) { return 0; } | |
29826 | static const struct xattr_handler | |
29827 | xops __attribute__ ((unused)) = { | |
29828 | .list = list, | |
29829 | }; | |
29830 | ||
29831 | int | |
29832 | main (void) | |
29833 | { | |
29834 | ||
29835 | ||
29836 | ; | |
29837 | return 0; | |
29838 | } | |
29839 | ||
29840 | _ACEOF | |
29841 | ||
29842 | ||
29843 | ||
29844 | cat - <<_ACEOF >conftest.h | |
29845 | ||
29846 | _ACEOF | |
29847 | ||
29848 | ||
29849 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29850 | echo "obj-m := conftest.o" >build/Makefile | |
29851 | modpost_flag='' | |
29852 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29853 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29854 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29855 | (eval $ac_try) 2>&5 | |
29856 | ac_status=$? | |
29857 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29858 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29859 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29860 | (eval $ac_try) 2>&5 | |
29861 | ac_status=$? | |
29862 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29863 | test $ac_status = 0; }; }; then : | |
29864 | ||
29865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29866 | $as_echo "yes" >&6; } | |
29867 | ||
29868 | $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h | |
29869 | ||
29870 | ||
29871 | else | |
29872 | $as_echo "$as_me: failed program was:" >&5 | |
29873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29874 | ||
29875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29876 | $as_echo "no" >&6; } | |
29877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5 | |
29878 | $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; } | |
29879 | ||
29880 | ||
29881 | cat confdefs.h - <<_ACEOF >conftest.c | |
29882 | ||
29883 | ||
29884 | #include <linux/xattr.h> | |
29885 | ||
29886 | size_t list(struct inode *ip, char *lst, | |
29887 | size_t list_size, const char *name, | |
29888 | size_t name_len) { return 0; } | |
29889 | static const struct xattr_handler | |
29890 | xops __attribute__ ((unused)) = { | |
29891 | .list = list, | |
29892 | }; | |
29893 | ||
29894 | int | |
29895 | main (void) | |
29896 | { | |
29897 | ||
29898 | ||
29899 | ; | |
29900 | return 0; | |
29901 | } | |
29902 | ||
29903 | _ACEOF | |
29904 | ||
29905 | ||
29906 | ||
29907 | cat - <<_ACEOF >conftest.h | |
29908 | ||
29909 | _ACEOF | |
29910 | ||
29911 | ||
29912 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29913 | echo "obj-m := conftest.o" >build/Makefile | |
29914 | modpost_flag='' | |
29915 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29916 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29917 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29918 | (eval $ac_try) 2>&5 | |
29919 | ac_status=$? | |
29920 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29921 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29922 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29923 | (eval $ac_try) 2>&5 | |
29924 | ac_status=$? | |
29925 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29926 | test $ac_status = 0; }; }; then : | |
29927 | ||
29928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29929 | $as_echo "yes" >&6; } | |
29930 | ||
29931 | $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h | |
29932 | ||
29933 | ||
29934 | else | |
29935 | $as_echo "$as_me: failed program was:" >&5 | |
29936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29937 | ||
29938 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
29939 | ||
29940 | ||
29941 | ||
29942 | fi | |
29943 | rm -Rf build | |
29944 | ||
29945 | ||
29946 | ||
29947 | ||
29948 | ||
29949 | fi | |
29950 | rm -Rf build | |
29951 | ||
29952 | ||
29953 | ||
29954 | ||
29955 | ||
29956 | fi | |
29957 | rm -Rf build | |
29958 | ||
29959 | ||
29960 | ||
29961 | ||
29962 | ||
29963 | fi | |
29964 | rm -Rf build | |
29965 | ||
29966 | ||
29967 | ||
29968 | ||
29969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5 | |
29970 | $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; } | |
29971 | ||
29972 | ||
29973 | cat confdefs.h - <<_ACEOF >conftest.c | |
29974 | ||
29975 | ||
29976 | #include <linux/fs.h> | |
29977 | ||
29978 | int | |
29979 | main (void) | |
29980 | { | |
29981 | ||
29982 | struct inode *ip = NULL; | |
29983 | (void) inode_owner_or_capable(ip); | |
29984 | ||
29985 | ; | |
29986 | return 0; | |
29987 | } | |
29988 | ||
29989 | _ACEOF | |
29990 | ||
29991 | ||
29992 | ||
29993 | cat - <<_ACEOF >conftest.h | |
29994 | ||
29995 | _ACEOF | |
29996 | ||
29997 | ||
29998 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29999 | echo "obj-m := conftest.o" >build/Makefile | |
30000 | modpost_flag='' | |
30001 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30002 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30003 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30004 | (eval $ac_try) 2>&5 | |
30005 | ac_status=$? | |
30006 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30007 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30008 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30009 | (eval $ac_try) 2>&5 | |
30010 | ac_status=$? | |
30011 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30012 | test $ac_status = 0; }; }; then : | |
30013 | ||
30014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30015 | $as_echo "yes" >&6; } | |
30016 | ||
30017 | $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h | |
30018 | ||
30019 | ||
30020 | else | |
30021 | $as_echo "$as_me: failed program was:" >&5 | |
30022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30023 | ||
30024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30025 | $as_echo "no" >&6; } | |
30026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5 | |
30027 | $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; } | |
30028 | ||
30029 | ||
30030 | cat confdefs.h - <<_ACEOF >conftest.c | |
30031 | ||
30032 | ||
30033 | #include <linux/fs.h> | |
30034 | #include <linux/sched.h> | |
30035 | ||
30036 | int | |
30037 | main (void) | |
30038 | { | |
30039 | ||
30040 | struct inode *ip = NULL; | |
30041 | (void) is_owner_or_cap(ip); | |
30042 | ||
30043 | ; | |
30044 | return 0; | |
30045 | } | |
30046 | ||
30047 | _ACEOF | |
30048 | ||
30049 | ||
30050 | ||
30051 | cat - <<_ACEOF >conftest.h | |
30052 | ||
30053 | _ACEOF | |
30054 | ||
30055 | ||
30056 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30057 | echo "obj-m := conftest.o" >build/Makefile | |
30058 | modpost_flag='' | |
30059 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30060 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30061 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30062 | (eval $ac_try) 2>&5 | |
30063 | ac_status=$? | |
30064 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30065 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30066 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30067 | (eval $ac_try) 2>&5 | |
30068 | ac_status=$? | |
30069 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30070 | test $ac_status = 0; }; }; then : | |
30071 | ||
30072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30073 | $as_echo "yes" >&6; } | |
30074 | ||
30075 | $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h | |
30076 | ||
30077 | ||
30078 | else | |
30079 | $as_echo "$as_me: failed program was:" >&5 | |
30080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30081 | ||
30082 | as_fn_error $? "no - Please file a bug report at | |
30083 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
30084 | ||
30085 | ||
30086 | ||
30087 | fi | |
30088 | rm -Rf build | |
30089 | ||
30090 | ||
30091 | ||
30092 | ||
30093 | ||
30094 | fi | |
30095 | rm -Rf build | |
30096 | ||
30097 | ||
30098 | ||
30099 | ||
30100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5 | |
30101 | $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; } | |
30102 | ||
30103 | ||
30104 | cat confdefs.h - <<_ACEOF >conftest.c | |
30105 | ||
30106 | ||
30107 | #include <linux/cred.h> | |
30108 | #include <linux/fs.h> | |
30109 | #include <linux/posix_acl_xattr.h> | |
30110 | ||
30111 | int | |
30112 | main (void) | |
30113 | { | |
30114 | ||
30115 | posix_acl_from_xattr(&init_user_ns, NULL, 0); | |
30116 | ||
30117 | ; | |
30118 | return 0; | |
30119 | } | |
30120 | ||
30121 | _ACEOF | |
30122 | ||
30123 | ||
30124 | ||
30125 | cat - <<_ACEOF >conftest.h | |
30126 | ||
30127 | _ACEOF | |
30128 | ||
30129 | ||
30130 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30131 | echo "obj-m := conftest.o" >build/Makefile | |
30132 | modpost_flag='' | |
30133 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30134 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30135 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30136 | (eval $ac_try) 2>&5 | |
30137 | ac_status=$? | |
30138 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30139 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30140 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30141 | (eval $ac_try) 2>&5 | |
30142 | ac_status=$? | |
30143 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30144 | test $ac_status = 0; }; }; then : | |
30145 | ||
30146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30147 | $as_echo "yes" >&6; } | |
30148 | ||
30149 | $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h | |
30150 | ||
30151 | ||
30152 | else | |
30153 | $as_echo "$as_me: failed program was:" >&5 | |
30154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30155 | ||
30156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30157 | $as_echo "no" >&6; } | |
30158 | ||
30159 | ||
30160 | ||
30161 | fi | |
30162 | rm -Rf build | |
30163 | ||
30164 | ||
30165 | ||
30166 | ||
30167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5 | |
30168 | $as_echo_n "checking whether posix_acl_release() is available... " >&6; } | |
30169 | ||
30170 | ||
30171 | cat confdefs.h - <<_ACEOF >conftest.c | |
30172 | ||
30173 | ||
30174 | #include <linux/cred.h> | |
30175 | #include <linux/fs.h> | |
30176 | #include <linux/posix_acl.h> | |
30177 | ||
30178 | int | |
30179 | main (void) | |
30180 | { | |
30181 | ||
30182 | struct posix_acl* tmp = posix_acl_alloc(1, 0); | |
30183 | posix_acl_release(tmp); | |
30184 | ||
30185 | ; | |
30186 | return 0; | |
30187 | } | |
30188 | ||
30189 | _ACEOF | |
30190 | ||
30191 | ||
30192 | ||
30193 | cat - <<_ACEOF >conftest.h | |
30194 | ||
30195 | _ACEOF | |
30196 | ||
30197 | ||
30198 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30199 | echo "obj-m := conftest.o" >build/Makefile | |
30200 | modpost_flag='' | |
30201 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30202 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30203 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30204 | (eval $ac_try) 2>&5 | |
30205 | ac_status=$? | |
30206 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30207 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30208 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30209 | (eval $ac_try) 2>&5 | |
30210 | ac_status=$? | |
30211 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30212 | test $ac_status = 0; }; }; then : | |
30213 | ||
30214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30215 | $as_echo "yes" >&6; } | |
30216 | ||
30217 | $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h | |
30218 | ||
30219 | ||
30220 | else | |
30221 | $as_echo "$as_me: failed program was:" >&5 | |
30222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30223 | ||
30224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30225 | $as_echo "no" >&6; } | |
30226 | ||
30227 | ||
30228 | ||
30229 | fi | |
30230 | rm -Rf build | |
30231 | ||
30232 | ||
30233 | ||
30234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5 | |
30235 | $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; } | |
30236 | ||
30237 | ||
30238 | cat confdefs.h - <<_ACEOF >conftest.c | |
30239 | ||
30240 | ||
30241 | #include <linux/cred.h> | |
30242 | #include <linux/fs.h> | |
30243 | #include <linux/posix_acl.h> | |
30244 | ||
30245 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
30246 | ||
30247 | int | |
30248 | main (void) | |
30249 | { | |
30250 | ||
30251 | struct posix_acl* tmp = posix_acl_alloc(1, 0); | |
30252 | posix_acl_release(tmp); | |
30253 | ||
30254 | ; | |
30255 | return 0; | |
30256 | } | |
30257 | ||
30258 | _ACEOF | |
30259 | ||
30260 | ||
30261 | ||
30262 | cat - <<_ACEOF >conftest.h | |
30263 | ||
30264 | _ACEOF | |
30265 | ||
30266 | ||
30267 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30268 | echo "obj-m := conftest.o" >build/Makefile | |
30269 | modpost_flag='' | |
30270 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30271 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30272 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30273 | (eval $ac_try) 2>&5 | |
30274 | ac_status=$? | |
30275 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30276 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30277 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30278 | (eval $ac_try) 2>&5 | |
30279 | ac_status=$? | |
30280 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30281 | test $ac_status = 0; }; }; then : | |
30282 | ||
30283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30284 | $as_echo "no" >&6; } | |
30285 | ||
30286 | else | |
30287 | $as_echo "$as_me: failed program was:" >&5 | |
30288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30289 | ||
30290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30291 | $as_echo "yes" >&6; } | |
30292 | ||
30293 | $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h | |
30294 | ||
30295 | ||
30296 | ||
30297 | ||
30298 | fi | |
30299 | rm -Rf build | |
30300 | ||
30301 | ||
30302 | ||
30303 | ||
30304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5 | |
30305 | $as_echo_n "checking whether set_cached_acl() is usable... " >&6; } | |
30306 | ||
30307 | ||
30308 | cat confdefs.h - <<_ACEOF >conftest.c | |
30309 | ||
30310 | ||
30311 | #include <linux/module.h> | |
30312 | #include <linux/cred.h> | |
30313 | #include <linux/fs.h> | |
30314 | #include <linux/posix_acl.h> | |
30315 | ||
30316 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
30317 | ||
30318 | int | |
30319 | main (void) | |
30320 | { | |
30321 | ||
30322 | struct inode *ip = NULL; | |
30323 | struct posix_acl *acl = posix_acl_alloc(1, 0); | |
30324 | set_cached_acl(ip, ACL_TYPE_ACCESS, acl); | |
30325 | forget_cached_acl(ip, ACL_TYPE_ACCESS); | |
30326 | ||
30327 | ; | |
30328 | return 0; | |
30329 | } | |
30330 | ||
30331 | _ACEOF | |
30332 | ||
30333 | ||
30334 | ||
30335 | cat - <<_ACEOF >conftest.h | |
30336 | ||
30337 | _ACEOF | |
30338 | ||
30339 | ||
30340 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30341 | echo "obj-m := conftest.o" >build/Makefile | |
30342 | modpost_flag='' | |
30343 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30344 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30345 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30346 | (eval $ac_try) 2>&5 | |
30347 | ac_status=$? | |
30348 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30349 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30350 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30351 | (eval $ac_try) 2>&5 | |
30352 | ac_status=$? | |
30353 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30354 | test $ac_status = 0; }; }; then : | |
30355 | ||
30356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30357 | $as_echo "yes" >&6; } | |
30358 | ||
30359 | $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h | |
30360 | ||
30361 | ||
30362 | else | |
30363 | $as_echo "$as_me: failed program was:" >&5 | |
30364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30365 | ||
30366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30367 | $as_echo "no" >&6; } | |
30368 | ||
30369 | ||
30370 | ||
30371 | fi | |
30372 | rm -Rf build | |
30373 | ||
30374 | ||
30375 | ||
30376 | ||
30377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5 | |
30378 | $as_echo_n "checking whether posix_acl_chmod exists... " >&6; } | |
30379 | ||
30380 | ||
30381 | cat confdefs.h - <<_ACEOF >conftest.c | |
30382 | ||
30383 | ||
30384 | #include <linux/fs.h> | |
30385 | #include <linux/posix_acl.h> | |
30386 | ||
30387 | int | |
30388 | main (void) | |
30389 | { | |
30390 | ||
30391 | posix_acl_chmod(NULL, 0, 0) | |
30392 | ||
30393 | ; | |
30394 | return 0; | |
30395 | } | |
30396 | ||
30397 | _ACEOF | |
30398 | ||
30399 | ||
30400 | ||
30401 | cat - <<_ACEOF >conftest.h | |
30402 | ||
30403 | _ACEOF | |
30404 | ||
30405 | ||
30406 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30407 | echo "obj-m := conftest.o" >build/Makefile | |
30408 | modpost_flag='' | |
30409 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30410 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30411 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30412 | (eval $ac_try) 2>&5 | |
30413 | ac_status=$? | |
30414 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30415 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30416 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30417 | (eval $ac_try) 2>&5 | |
30418 | ac_status=$? | |
30419 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30420 | test $ac_status = 0; }; }; then : | |
30421 | ||
30422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30423 | $as_echo "yes" >&6; } | |
30424 | ||
30425 | $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h | |
30426 | ||
30427 | ||
30428 | else | |
30429 | $as_echo "$as_me: failed program was:" >&5 | |
30430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30431 | ||
30432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30433 | $as_echo "no" >&6; } | |
30434 | ||
30435 | ||
30436 | ||
30437 | fi | |
30438 | rm -Rf build | |
30439 | ||
30440 | ||
30441 | ||
30442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5 | |
30443 | $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; } | |
30444 | ||
30445 | ||
30446 | cat confdefs.h - <<_ACEOF >conftest.c | |
30447 | ||
30448 | ||
30449 | #include <linux/fs.h> | |
30450 | #include <linux/posix_acl.h> | |
30451 | ||
30452 | int | |
30453 | main (void) | |
30454 | { | |
30455 | ||
30456 | __posix_acl_chmod(NULL, 0, 0) | |
30457 | ||
30458 | ; | |
30459 | return 0; | |
30460 | } | |
30461 | ||
30462 | _ACEOF | |
30463 | ||
30464 | ||
30465 | ||
30466 | cat - <<_ACEOF >conftest.h | |
30467 | ||
30468 | _ACEOF | |
30469 | ||
30470 | ||
30471 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30472 | echo "obj-m := conftest.o" >build/Makefile | |
30473 | modpost_flag='' | |
30474 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30475 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30476 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30477 | (eval $ac_try) 2>&5 | |
30478 | ac_status=$? | |
30479 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30480 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
30486 | ||
30487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30488 | $as_echo "yes" >&6; } | |
30489 | ||
30490 | $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h | |
30491 | ||
30492 | ||
30493 | else | |
30494 | $as_echo "$as_me: failed program was:" >&5 | |
30495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30496 | ||
30497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30498 | $as_echo "no" >&6; } | |
30499 | ||
30500 | ||
30501 | ||
30502 | fi | |
30503 | rm -Rf build | |
30504 | ||
30505 | ||
30506 | ||
30507 | ||
30508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5 | |
30509 | $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; } | |
30510 | ||
30511 | ||
30512 | cat confdefs.h - <<_ACEOF >conftest.c | |
30513 | ||
30514 | ||
30515 | #include <linux/fs.h> | |
30516 | #include <linux/posix_acl.h> | |
30517 | ||
30518 | int | |
30519 | main (void) | |
30520 | { | |
30521 | ||
30522 | umode_t tmp; | |
30523 | posix_acl_equiv_mode(NULL,&tmp); | |
30524 | ||
30525 | ; | |
30526 | return 0; | |
30527 | } | |
30528 | ||
30529 | _ACEOF | |
30530 | ||
30531 | ||
30532 | ||
30533 | cat - <<_ACEOF >conftest.h | |
30534 | ||
30535 | _ACEOF | |
30536 | ||
30537 | ||
30538 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30539 | echo "obj-m := conftest.o" >build/Makefile | |
30540 | modpost_flag='' | |
30541 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30542 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30543 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30544 | (eval $ac_try) 2>&5 | |
30545 | ac_status=$? | |
30546 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30547 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30548 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30549 | (eval $ac_try) 2>&5 | |
30550 | ac_status=$? | |
30551 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30552 | test $ac_status = 0; }; }; then : | |
30553 | ||
30554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30555 | $as_echo "yes" >&6; } | |
30556 | ||
30557 | $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h | |
30558 | ||
30559 | ||
30560 | else | |
30561 | $as_echo "$as_me: failed program was:" >&5 | |
30562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30563 | ||
30564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30565 | $as_echo "no" >&6; } | |
30566 | ||
30567 | ||
30568 | ||
30569 | fi | |
30570 | rm -Rf build | |
30571 | ||
30572 | ||
30573 | ||
30574 | ||
30575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5 | |
30576 | $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; } | |
30577 | ||
30578 | ||
30579 | cat confdefs.h - <<_ACEOF >conftest.c | |
30580 | ||
30581 | ||
30582 | #include <linux/fs.h> | |
30583 | #include <linux/posix_acl.h> | |
30584 | ||
30585 | int | |
30586 | main (void) | |
30587 | { | |
30588 | ||
30589 | struct user_namespace *user_ns = NULL; | |
30590 | const struct posix_acl *acl = NULL; | |
30591 | int error; | |
30592 | ||
30593 | error = posix_acl_valid(user_ns, acl); | |
30594 | ||
30595 | ; | |
30596 | return 0; | |
30597 | } | |
30598 | ||
30599 | _ACEOF | |
30600 | ||
30601 | ||
30602 | ||
30603 | cat - <<_ACEOF >conftest.h | |
30604 | ||
30605 | _ACEOF | |
30606 | ||
30607 | ||
30608 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30609 | echo "obj-m := conftest.o" >build/Makefile | |
30610 | modpost_flag='' | |
30611 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30612 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30613 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30614 | (eval $ac_try) 2>&5 | |
30615 | ac_status=$? | |
30616 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30617 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30618 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30619 | (eval $ac_try) 2>&5 | |
30620 | ac_status=$? | |
30621 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30622 | test $ac_status = 0; }; }; then : | |
30623 | ||
30624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30625 | $as_echo "yes" >&6; } | |
30626 | ||
30627 | $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h | |
30628 | ||
30629 | ||
30630 | else | |
30631 | $as_echo "$as_me: failed program was:" >&5 | |
30632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30633 | ||
30634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30635 | $as_echo "no" >&6; } | |
30636 | ||
30637 | ||
30638 | ||
30639 | fi | |
30640 | rm -Rf build | |
30641 | ||
30642 | ||
30643 | ||
30644 | ||
30645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5 | |
30646 | $as_echo_n "checking whether iops->permission() exists... " >&6; } | |
30647 | ||
30648 | ||
30649 | cat confdefs.h - <<_ACEOF >conftest.c | |
30650 | ||
30651 | ||
30652 | #include <linux/fs.h> | |
30653 | ||
30654 | int permission_fn(struct inode *inode, int mask) { return 0; } | |
30655 | ||
30656 | static const struct inode_operations | |
30657 | iops __attribute__ ((unused)) = { | |
30658 | .permission = permission_fn, | |
30659 | }; | |
30660 | ||
30661 | int | |
30662 | main (void) | |
30663 | { | |
30664 | ||
30665 | ||
30666 | ; | |
30667 | return 0; | |
30668 | } | |
30669 | ||
30670 | _ACEOF | |
30671 | ||
30672 | ||
30673 | ||
30674 | cat - <<_ACEOF >conftest.h | |
30675 | ||
30676 | _ACEOF | |
30677 | ||
30678 | ||
30679 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30680 | echo "obj-m := conftest.o" >build/Makefile | |
30681 | modpost_flag='' | |
30682 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30683 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
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; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30689 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30690 | (eval $ac_try) 2>&5 | |
30691 | ac_status=$? | |
30692 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30693 | test $ac_status = 0; }; }; then : | |
30694 | ||
30695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30696 | $as_echo "yes" >&6; } | |
30697 | ||
30698 | $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h | |
30699 | ||
30700 | ||
30701 | else | |
30702 | $as_echo "$as_me: failed program was:" >&5 | |
30703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30704 | ||
30705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30706 | $as_echo "no" >&6; } | |
30707 | ||
30708 | ||
30709 | ||
30710 | fi | |
30711 | rm -Rf build | |
30712 | ||
30713 | ||
30714 | ||
30715 | ||
30716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5 | |
30717 | $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; } | |
30718 | ||
30719 | ||
30720 | cat confdefs.h - <<_ACEOF >conftest.c | |
30721 | ||
30722 | ||
30723 | #include <linux/fs.h> | |
30724 | ||
30725 | int permission_fn(struct inode *inode, int mask, | |
30726 | struct nameidata *nd) { return 0; } | |
30727 | ||
30728 | static const struct inode_operations | |
30729 | iops __attribute__ ((unused)) = { | |
30730 | .permission = permission_fn, | |
30731 | }; | |
30732 | ||
30733 | int | |
30734 | main (void) | |
30735 | { | |
30736 | ||
30737 | ||
30738 | ; | |
30739 | return 0; | |
30740 | } | |
30741 | ||
30742 | _ACEOF | |
30743 | ||
30744 | ||
30745 | ||
30746 | cat - <<_ACEOF >conftest.h | |
30747 | ||
30748 | _ACEOF | |
30749 | ||
30750 | ||
30751 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30752 | echo "obj-m := conftest.o" >build/Makefile | |
30753 | modpost_flag='' | |
30754 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30755 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30756 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30757 | (eval $ac_try) 2>&5 | |
30758 | ac_status=$? | |
30759 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30760 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30761 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30762 | (eval $ac_try) 2>&5 | |
30763 | ac_status=$? | |
30764 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30765 | test $ac_status = 0; }; }; then : | |
30766 | ||
30767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30768 | $as_echo "yes" >&6; } | |
30769 | ||
30770 | $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h | |
30771 | ||
30772 | ||
30773 | $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h | |
30774 | ||
30775 | ||
30776 | else | |
30777 | $as_echo "$as_me: failed program was:" >&5 | |
30778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30779 | ||
30780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30781 | $as_echo "no" >&6; } | |
30782 | ||
30783 | ||
30784 | ||
30785 | fi | |
30786 | rm -Rf build | |
30787 | ||
30788 | ||
30789 | ||
30790 | ||
30791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5 | |
30792 | $as_echo_n "checking whether iops->check_acl() exists... " >&6; } | |
30793 | ||
30794 | ||
30795 | cat confdefs.h - <<_ACEOF >conftest.c | |
30796 | ||
30797 | ||
30798 | #include <linux/fs.h> | |
30799 | ||
30800 | int check_acl_fn(struct inode *inode, int mask) { return 0; } | |
30801 | ||
30802 | static const struct inode_operations | |
30803 | iops __attribute__ ((unused)) = { | |
30804 | .check_acl = check_acl_fn, | |
30805 | }; | |
30806 | ||
30807 | int | |
30808 | main (void) | |
30809 | { | |
30810 | ||
30811 | ||
30812 | ; | |
30813 | return 0; | |
30814 | } | |
30815 | ||
30816 | _ACEOF | |
30817 | ||
30818 | ||
30819 | ||
30820 | cat - <<_ACEOF >conftest.h | |
30821 | ||
30822 | _ACEOF | |
30823 | ||
30824 | ||
30825 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30826 | echo "obj-m := conftest.o" >build/Makefile | |
30827 | modpost_flag='' | |
30828 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30829 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30830 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30831 | (eval $ac_try) 2>&5 | |
30832 | ac_status=$? | |
30833 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30834 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30835 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30836 | (eval $ac_try) 2>&5 | |
30837 | ac_status=$? | |
30838 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30839 | test $ac_status = 0; }; }; then : | |
30840 | ||
30841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30842 | $as_echo "yes" >&6; } | |
30843 | ||
30844 | $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h | |
30845 | ||
30846 | ||
30847 | else | |
30848 | $as_echo "$as_me: failed program was:" >&5 | |
30849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30850 | ||
30851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30852 | $as_echo "no" >&6; } | |
30853 | ||
30854 | ||
30855 | ||
30856 | fi | |
30857 | rm -Rf build | |
30858 | ||
30859 | ||
30860 | ||
30861 | ||
30862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5 | |
30863 | $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; } | |
30864 | ||
30865 | ||
30866 | cat confdefs.h - <<_ACEOF >conftest.c | |
30867 | ||
30868 | ||
30869 | #include <linux/fs.h> | |
30870 | ||
30871 | int check_acl_fn(struct inode *inode, int mask, | |
30872 | unsigned int flags) { return 0; } | |
30873 | ||
30874 | static const struct inode_operations | |
30875 | iops __attribute__ ((unused)) = { | |
30876 | .check_acl = check_acl_fn, | |
30877 | }; | |
30878 | ||
30879 | int | |
30880 | main (void) | |
30881 | { | |
30882 | ||
30883 | ||
30884 | ; | |
30885 | return 0; | |
30886 | } | |
30887 | ||
30888 | _ACEOF | |
30889 | ||
30890 | ||
30891 | ||
30892 | cat - <<_ACEOF >conftest.h | |
30893 | ||
30894 | _ACEOF | |
30895 | ||
30896 | ||
30897 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30898 | echo "obj-m := conftest.o" >build/Makefile | |
30899 | modpost_flag='' | |
30900 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30901 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30902 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30903 | (eval $ac_try) 2>&5 | |
30904 | ac_status=$? | |
30905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30906 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30907 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30908 | (eval $ac_try) 2>&5 | |
30909 | ac_status=$? | |
30910 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30911 | test $ac_status = 0; }; }; then : | |
30912 | ||
30913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30914 | $as_echo "yes" >&6; } | |
30915 | ||
30916 | $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h | |
30917 | ||
30918 | ||
30919 | $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h | |
30920 | ||
30921 | ||
30922 | else | |
30923 | $as_echo "$as_me: failed program was:" >&5 | |
30924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30925 | ||
30926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30927 | $as_echo "no" >&6; } | |
30928 | ||
30929 | ||
30930 | ||
30931 | fi | |
30932 | rm -Rf build | |
30933 | ||
30934 | ||
30935 | ||
30936 | ||
30937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5 | |
30938 | $as_echo_n "checking whether iops->get_acl() exists... " >&6; } | |
30939 | ||
30940 | ||
30941 | cat confdefs.h - <<_ACEOF >conftest.c | |
30942 | ||
30943 | ||
30944 | #include <linux/fs.h> | |
30945 | ||
30946 | struct posix_acl *get_acl_fn(struct inode *inode, int type) | |
30947 | { return NULL; } | |
30948 | ||
30949 | static const struct inode_operations | |
30950 | iops __attribute__ ((unused)) = { | |
30951 | .get_acl = get_acl_fn, | |
30952 | }; | |
30953 | ||
30954 | int | |
30955 | main (void) | |
30956 | { | |
30957 | ||
30958 | ||
30959 | ; | |
30960 | return 0; | |
30961 | } | |
30962 | ||
30963 | _ACEOF | |
30964 | ||
30965 | ||
30966 | ||
30967 | cat - <<_ACEOF >conftest.h | |
30968 | ||
30969 | _ACEOF | |
30970 | ||
30971 | ||
30972 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30973 | echo "obj-m := conftest.o" >build/Makefile | |
30974 | modpost_flag='' | |
30975 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30976 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30977 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30978 | (eval $ac_try) 2>&5 | |
30979 | ac_status=$? | |
30980 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30981 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30982 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30983 | (eval $ac_try) 2>&5 | |
30984 | ac_status=$? | |
30985 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30986 | test $ac_status = 0; }; }; then : | |
30987 | ||
30988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30989 | $as_echo "yes" >&6; } | |
30990 | ||
30991 | $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h | |
30992 | ||
30993 | ||
30994 | else | |
30995 | $as_echo "$as_me: failed program was:" >&5 | |
30996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30997 | ||
30998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30999 | $as_echo "no" >&6; } | |
31000 | ||
31001 | ||
31002 | ||
31003 | fi | |
31004 | rm -Rf build | |
31005 | ||
31006 | ||
31007 | ||
31008 | ||
31009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5 | |
31010 | $as_echo_n "checking whether iops->set_acl() exists... " >&6; } | |
31011 | ||
31012 | ||
31013 | cat confdefs.h - <<_ACEOF >conftest.c | |
31014 | ||
31015 | ||
31016 | #include <linux/fs.h> | |
31017 | ||
31018 | int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type) | |
31019 | { return 0; } | |
31020 | ||
31021 | static const struct inode_operations | |
31022 | iops __attribute__ ((unused)) = { | |
31023 | .set_acl = set_acl_fn, | |
31024 | }; | |
31025 | ||
31026 | int | |
31027 | main (void) | |
31028 | { | |
31029 | ||
31030 | ||
31031 | ; | |
31032 | return 0; | |
31033 | } | |
31034 | ||
31035 | _ACEOF | |
31036 | ||
31037 | ||
31038 | ||
31039 | cat - <<_ACEOF >conftest.h | |
31040 | ||
31041 | _ACEOF | |
31042 | ||
31043 | ||
31044 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31045 | echo "obj-m := conftest.o" >build/Makefile | |
31046 | modpost_flag='' | |
31047 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31048 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31049 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31050 | (eval $ac_try) 2>&5 | |
31051 | ac_status=$? | |
31052 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31053 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31054 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31055 | (eval $ac_try) 2>&5 | |
31056 | ac_status=$? | |
31057 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31058 | test $ac_status = 0; }; }; then : | |
31059 | ||
31060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31061 | $as_echo "yes" >&6; } | |
31062 | ||
31063 | $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h | |
31064 | ||
31065 | ||
31066 | else | |
31067 | $as_echo "$as_me: failed program was:" >&5 | |
31068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31069 | ||
31070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31071 | $as_echo "no" >&6; } | |
31072 | ||
31073 | ||
31074 | ||
31075 | fi | |
31076 | rm -Rf build | |
31077 | ||
31078 | ||
31079 | ||
31080 | ||
3e990ae0 CIK |
31081 | |
31082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5 | |
31083 | $as_echo_n "checking whether iops->getattr() takes a path... " >&6; } | |
31084 | ||
31085 | ||
31086 | cat confdefs.h - <<_ACEOF >conftest.c | |
31087 | ||
31088 | ||
31089 | #include <linux/fs.h> | |
31090 | ||
31091 | int test_getattr( | |
31092 | const struct path *p, struct kstat *k, | |
31093 | u32 request_mask, unsigned int query_flags) | |
31094 | { return 0; } | |
31095 | ||
31096 | static const struct inode_operations | |
31097 | iops __attribute__ ((unused)) = { | |
31098 | .getattr = test_getattr, | |
31099 | }; | |
31100 | ||
31101 | int | |
31102 | main (void) | |
31103 | { | |
31104 | ||
31105 | ||
31106 | ; | |
31107 | return 0; | |
31108 | } | |
31109 | ||
31110 | _ACEOF | |
31111 | ||
31112 | ||
31113 | ||
31114 | cat - <<_ACEOF >conftest.h | |
31115 | ||
31116 | _ACEOF | |
31117 | ||
31118 | ||
31119 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31120 | echo "obj-m := conftest.o" >build/Makefile | |
31121 | modpost_flag='' | |
31122 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31123 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31124 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31125 | (eval $ac_try) 2>&5 | |
31126 | ac_status=$? | |
31127 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31128 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31129 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31130 | (eval $ac_try) 2>&5 | |
31131 | ac_status=$? | |
31132 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31133 | test $ac_status = 0; }; }; then : | |
31134 | ||
31135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31136 | $as_echo "yes" >&6; } | |
31137 | ||
31138 | $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h | |
31139 | ||
31140 | ||
31141 | else | |
31142 | $as_echo "$as_me: failed program was:" >&5 | |
31143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31144 | ||
31145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31146 | $as_echo "no" >&6; } | |
31147 | ||
31148 | ||
31149 | ||
31150 | fi | |
31151 | rm -Rf build | |
31152 | ||
31153 | ||
31154 | ||
31155 | ||
31156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5 | |
31157 | $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; } | |
31158 | ||
31159 | ||
31160 | cat confdefs.h - <<_ACEOF >conftest.c | |
31161 | ||
31162 | ||
31163 | #include <linux/fs.h> | |
31164 | ||
31165 | int test_getattr( | |
31166 | struct vfsmount *mnt, struct dentry *d, | |
31167 | struct kstat *k) | |
31168 | { return 0; } | |
31169 | ||
31170 | static const struct inode_operations | |
31171 | iops __attribute__ ((unused)) = { | |
31172 | .getattr = test_getattr, | |
31173 | }; | |
31174 | ||
31175 | int | |
31176 | main (void) | |
31177 | { | |
31178 | ||
31179 | ||
31180 | ; | |
31181 | return 0; | |
31182 | } | |
31183 | ||
31184 | _ACEOF | |
31185 | ||
31186 | ||
31187 | ||
31188 | cat - <<_ACEOF >conftest.h | |
31189 | ||
31190 | _ACEOF | |
31191 | ||
31192 | ||
31193 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31194 | echo "obj-m := conftest.o" >build/Makefile | |
31195 | modpost_flag='' | |
31196 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31197 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31198 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31199 | (eval $ac_try) 2>&5 | |
31200 | ac_status=$? | |
31201 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31202 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31203 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31204 | (eval $ac_try) 2>&5 | |
31205 | ac_status=$? | |
31206 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31207 | test $ac_status = 0; }; }; then : | |
31208 | ||
31209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31210 | $as_echo "yes" >&6; } | |
31211 | ||
31212 | $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h | |
31213 | ||
31214 | ||
31215 | else | |
31216 | $as_echo "$as_me: failed program was:" >&5 | |
31217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31218 | ||
31219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31220 | $as_echo "no" >&6; } | |
31221 | ||
31222 | ||
31223 | ||
31224 | fi | |
31225 | rm -Rf build | |
31226 | ||
31227 | ||
31228 | ||
31229 | ||
31230 | ||
87d546d8 TG |
31231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5 |
31232 | $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; } | |
31233 | ||
31234 | ||
31235 | cat confdefs.h - <<_ACEOF >conftest.c | |
31236 | ||
31237 | ||
31238 | #include <linux/fs.h> | |
31239 | ||
31240 | int | |
31241 | main (void) | |
31242 | { | |
31243 | ||
31244 | void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL); | |
31245 | ||
31246 | ; | |
31247 | return 0; | |
31248 | } | |
31249 | ||
31250 | _ACEOF | |
31251 | ||
31252 | ||
31253 | ||
31254 | cat - <<_ACEOF >conftest.h | |
31255 | ||
31256 | _ACEOF | |
31257 | ||
31258 | ||
31259 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31260 | echo "obj-m := conftest.o" >build/Makefile | |
31261 | modpost_flag='' | |
31262 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31263 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31264 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31265 | (eval $ac_try) 2>&5 | |
31266 | ac_status=$? | |
31267 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31268 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31269 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31270 | (eval $ac_try) 2>&5 | |
31271 | ac_status=$? | |
31272 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31273 | test $ac_status = 0; }; }; then : | |
31274 | ||
31275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31276 | $as_echo "yes" >&6; } | |
31277 | ||
31278 | $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h | |
31279 | ||
31280 | ||
31281 | else | |
31282 | $as_echo "$as_me: failed program was:" >&5 | |
31283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31284 | ||
31285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31286 | $as_echo "no" >&6; } | |
31287 | ||
31288 | ||
31289 | ||
31290 | fi | |
31291 | rm -Rf build | |
31292 | ||
31293 | ||
31294 | ||
31295 | ||
31296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5 | |
31297 | $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; } | |
31298 | ||
31299 | ||
31300 | ||
31301 | cat confdefs.h - <<_ACEOF >conftest.c | |
31302 | ||
31303 | ||
31304 | #include <linux/fs.h> | |
31305 | ||
31306 | int show_options (struct seq_file * x, struct dentry * y) { return 0; }; | |
31307 | static struct super_operations sops __attribute__ ((unused)) = { | |
31308 | .show_options = show_options, | |
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_SHOW_OPTIONS_WITH_DENTRY 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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5 | |
31367 | $as_echo_n "checking whether file_inode() is available... " >&6; } | |
31368 | ||
31369 | ||
31370 | cat confdefs.h - <<_ACEOF >conftest.c | |
31371 | ||
31372 | ||
31373 | #include <linux/fs.h> | |
31374 | ||
31375 | int | |
31376 | main (void) | |
31377 | { | |
31378 | ||
31379 | struct file *f = NULL; | |
31380 | file_inode(f); | |
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_FILE_INODE 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 fops->fsync() wants" >&5 | |
31433 | $as_echo_n "checking whether fops->fsync() wants... " >&6; } | |
31434 | ||
31435 | ||
31436 | ||
31437 | cat confdefs.h - <<_ACEOF >conftest.c | |
31438 | ||
31439 | ||
31440 | #include <linux/fs.h> | |
31441 | ||
31442 | int test_fsync(struct file *f, struct dentry *dentry, int x) | |
31443 | { return 0; } | |
31444 | ||
31445 | static const struct file_operations | |
31446 | fops __attribute__ ((unused)) = { | |
31447 | .fsync = test_fsync, | |
31448 | }; | |
31449 | ||
31450 | int | |
31451 | main (void) | |
31452 | { | |
31453 | ||
31454 | ||
31455 | ; | |
31456 | return 0; | |
31457 | } | |
31458 | ||
31459 | _ACEOF | |
31460 | ||
31461 | ||
31462 | ||
31463 | cat - <<_ACEOF >conftest.h | |
31464 | ||
31465 | _ACEOF | |
31466 | ||
31467 | ||
31468 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31469 | echo "obj-m := conftest.o" >build/Makefile | |
31470 | modpost_flag='' | |
31471 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31472 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31473 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31474 | (eval $ac_try) 2>&5 | |
31475 | ac_status=$? | |
31476 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31477 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31478 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31479 | (eval $ac_try) 2>&5 | |
31480 | ac_status=$? | |
31481 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31482 | test $ac_status = 0; }; }; then : | |
31483 | ||
31484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5 | |
31485 | $as_echo "dentry" >&6; } | |
31486 | ||
31487 | $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h | |
31488 | ||
31489 | ||
31490 | else | |
31491 | $as_echo "$as_me: failed program was:" >&5 | |
31492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31493 | ||
31494 | ||
31495 | ||
31496 | ||
31497 | fi | |
31498 | rm -Rf build | |
31499 | ||
31500 | ||
31501 | ||
31502 | ||
31503 | ||
31504 | ||
31505 | cat confdefs.h - <<_ACEOF >conftest.c | |
31506 | ||
31507 | ||
31508 | #include <linux/fs.h> | |
31509 | ||
31510 | int test_fsync(struct file *f, int x) { return 0; } | |
31511 | ||
31512 | static const struct file_operations | |
31513 | fops __attribute__ ((unused)) = { | |
31514 | .fsync = test_fsync, | |
31515 | }; | |
31516 | ||
31517 | int | |
31518 | main (void) | |
31519 | { | |
31520 | ||
31521 | ||
31522 | ; | |
31523 | return 0; | |
31524 | } | |
31525 | ||
31526 | _ACEOF | |
31527 | ||
31528 | ||
31529 | ||
31530 | cat - <<_ACEOF >conftest.h | |
31531 | ||
31532 | _ACEOF | |
31533 | ||
31534 | ||
31535 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31536 | echo "obj-m := conftest.o" >build/Makefile | |
31537 | modpost_flag='' | |
31538 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31539 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31540 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31541 | (eval $ac_try) 2>&5 | |
31542 | ac_status=$? | |
31543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31544 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31545 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31546 | (eval $ac_try) 2>&5 | |
31547 | ac_status=$? | |
31548 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31549 | test $ac_status = 0; }; }; then : | |
31550 | ||
31551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5 | |
31552 | $as_echo "no dentry" >&6; } | |
31553 | ||
31554 | $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h | |
31555 | ||
31556 | ||
31557 | else | |
31558 | $as_echo "$as_me: failed program was:" >&5 | |
31559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31560 | ||
31561 | ||
31562 | ||
31563 | ||
31564 | fi | |
31565 | rm -Rf build | |
31566 | ||
31567 | ||
31568 | ||
31569 | ||
31570 | ||
31571 | ||
31572 | cat confdefs.h - <<_ACEOF >conftest.c | |
31573 | ||
31574 | ||
31575 | #include <linux/fs.h> | |
31576 | ||
31577 | int test_fsync(struct file *f, loff_t a, loff_t b, int c) | |
31578 | { return 0; } | |
31579 | ||
31580 | static const struct file_operations | |
31581 | fops __attribute__ ((unused)) = { | |
31582 | .fsync = test_fsync, | |
31583 | }; | |
31584 | ||
31585 | int | |
31586 | main (void) | |
31587 | { | |
31588 | ||
31589 | ||
31590 | ; | |
31591 | return 0; | |
31592 | } | |
31593 | ||
31594 | _ACEOF | |
31595 | ||
31596 | ||
31597 | ||
31598 | cat - <<_ACEOF >conftest.h | |
31599 | ||
31600 | _ACEOF | |
31601 | ||
31602 | ||
31603 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31604 | echo "obj-m := conftest.o" >build/Makefile | |
31605 | modpost_flag='' | |
31606 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31607 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31608 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31609 | (eval $ac_try) 2>&5 | |
31610 | ac_status=$? | |
31611 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31612 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31613 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31614 | (eval $ac_try) 2>&5 | |
31615 | ac_status=$? | |
31616 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31617 | test $ac_status = 0; }; }; then : | |
31618 | ||
31619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5 | |
31620 | $as_echo "range" >&6; } | |
31621 | ||
31622 | $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h | |
31623 | ||
31624 | ||
31625 | else | |
31626 | $as_echo "$as_me: failed program was:" >&5 | |
31627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31628 | ||
31629 | ||
31630 | ||
31631 | ||
31632 | fi | |
31633 | rm -Rf build | |
31634 | ||
31635 | ||
31636 | ||
31637 | ||
31638 | ||
31639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5 | |
31640 | $as_echo_n "checking whether sops->evict_inode() exists... " >&6; } | |
31641 | ||
31642 | ||
31643 | cat confdefs.h - <<_ACEOF >conftest.c | |
31644 | ||
31645 | ||
31646 | #include <linux/fs.h> | |
31647 | void evict_inode (struct inode * t) { return; } | |
31648 | static struct super_operations sops __attribute__ ((unused)) = { | |
31649 | .evict_inode = evict_inode, | |
31650 | }; | |
31651 | ||
31652 | int | |
31653 | main (void) | |
31654 | { | |
31655 | ||
31656 | ||
31657 | ; | |
31658 | return 0; | |
31659 | } | |
31660 | ||
31661 | _ACEOF | |
31662 | ||
31663 | ||
31664 | ||
31665 | cat - <<_ACEOF >conftest.h | |
31666 | ||
31667 | _ACEOF | |
31668 | ||
31669 | ||
31670 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31671 | echo "obj-m := conftest.o" >build/Makefile | |
31672 | modpost_flag='' | |
31673 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31674 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31675 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31676 | (eval $ac_try) 2>&5 | |
31677 | ac_status=$? | |
31678 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31679 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31680 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31681 | (eval $ac_try) 2>&5 | |
31682 | ac_status=$? | |
31683 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31684 | test $ac_status = 0; }; }; then : | |
31685 | ||
31686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31687 | $as_echo "yes" >&6; } | |
31688 | ||
31689 | $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h | |
31690 | ||
31691 | ||
31692 | else | |
31693 | $as_echo "$as_me: failed program was:" >&5 | |
31694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31695 | ||
31696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31697 | $as_echo "no" >&6; } | |
31698 | ||
31699 | ||
31700 | ||
31701 | fi | |
31702 | rm -Rf build | |
31703 | ||
31704 | ||
31705 | ||
31706 | ||
31707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5 | |
31708 | $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; } | |
31709 | ||
31710 | ||
31711 | cat confdefs.h - <<_ACEOF >conftest.c | |
31712 | ||
31713 | ||
31714 | #include <linux/fs.h> | |
31715 | ||
31716 | void dirty_inode(struct inode *a, int b) { return; } | |
31717 | ||
31718 | static const struct super_operations | |
31719 | sops __attribute__ ((unused)) = { | |
31720 | .dirty_inode = dirty_inode, | |
31721 | }; | |
31722 | ||
31723 | int | |
31724 | main (void) | |
31725 | { | |
31726 | ||
31727 | ||
31728 | ; | |
31729 | return 0; | |
31730 | } | |
31731 | ||
31732 | _ACEOF | |
31733 | ||
31734 | ||
31735 | ||
31736 | cat - <<_ACEOF >conftest.h | |
31737 | ||
31738 | _ACEOF | |
31739 | ||
31740 | ||
31741 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31742 | echo "obj-m := conftest.o" >build/Makefile | |
31743 | modpost_flag='' | |
31744 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31745 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31746 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31747 | (eval $ac_try) 2>&5 | |
31748 | ac_status=$? | |
31749 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31750 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31751 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31752 | (eval $ac_try) 2>&5 | |
31753 | ac_status=$? | |
31754 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31755 | test $ac_status = 0; }; }; then : | |
31756 | ||
31757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31758 | $as_echo "yes" >&6; } | |
31759 | ||
31760 | $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h | |
31761 | ||
31762 | ||
31763 | else | |
31764 | $as_echo "$as_me: failed program was:" >&5 | |
31765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31766 | ||
31767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31768 | $as_echo "no" >&6; } | |
31769 | ||
31770 | ||
31771 | ||
31772 | fi | |
31773 | rm -Rf build | |
31774 | ||
31775 | ||
31776 | ||
31777 | ||
31778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5 | |
31779 | $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; } | |
31780 | ||
31781 | ||
31782 | cat confdefs.h - <<_ACEOF >conftest.c | |
31783 | ||
31784 | ||
31785 | #include <linux/fs.h> | |
31786 | ||
31787 | int nr_cached_objects(struct super_block *sb) { return 0; } | |
31788 | ||
31789 | static const struct super_operations | |
31790 | sops __attribute__ ((unused)) = { | |
31791 | .nr_cached_objects = nr_cached_objects, | |
31792 | }; | |
31793 | ||
31794 | int | |
31795 | main (void) | |
31796 | { | |
31797 | ||
31798 | ||
31799 | ; | |
31800 | return 0; | |
31801 | } | |
31802 | ||
31803 | _ACEOF | |
31804 | ||
31805 | ||
31806 | ||
31807 | cat - <<_ACEOF >conftest.h | |
31808 | ||
31809 | _ACEOF | |
31810 | ||
31811 | ||
31812 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31813 | echo "obj-m := conftest.o" >build/Makefile | |
31814 | modpost_flag='' | |
31815 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31816 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31817 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31818 | (eval $ac_try) 2>&5 | |
31819 | ac_status=$? | |
31820 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31821 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31822 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31823 | (eval $ac_try) 2>&5 | |
31824 | ac_status=$? | |
31825 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31826 | test $ac_status = 0; }; }; then : | |
31827 | ||
31828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31829 | $as_echo "yes" >&6; } | |
31830 | ||
31831 | $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h | |
31832 | ||
31833 | ||
31834 | else | |
31835 | $as_echo "$as_me: failed program was:" >&5 | |
31836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31837 | ||
31838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31839 | $as_echo "no" >&6; } | |
31840 | ||
31841 | ||
31842 | ||
31843 | fi | |
31844 | rm -Rf build | |
31845 | ||
31846 | ||
31847 | ||
31848 | ||
31849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5 | |
31850 | $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; } | |
31851 | ||
31852 | ||
31853 | cat confdefs.h - <<_ACEOF >conftest.c | |
31854 | ||
31855 | ||
31856 | #include <linux/fs.h> | |
31857 | ||
31858 | void free_cached_objects(struct super_block *sb, int x) | |
31859 | { return; } | |
31860 | ||
31861 | static const struct super_operations | |
31862 | sops __attribute__ ((unused)) = { | |
31863 | .free_cached_objects = free_cached_objects, | |
31864 | }; | |
31865 | ||
31866 | int | |
31867 | main (void) | |
31868 | { | |
31869 | ||
31870 | ||
31871 | ; | |
31872 | return 0; | |
31873 | } | |
31874 | ||
31875 | _ACEOF | |
31876 | ||
31877 | ||
31878 | ||
31879 | cat - <<_ACEOF >conftest.h | |
31880 | ||
31881 | _ACEOF | |
31882 | ||
31883 | ||
31884 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31885 | echo "obj-m := conftest.o" >build/Makefile | |
31886 | modpost_flag='' | |
31887 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31888 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31889 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31890 | (eval $ac_try) 2>&5 | |
31891 | ac_status=$? | |
31892 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31893 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31894 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31895 | (eval $ac_try) 2>&5 | |
31896 | ac_status=$? | |
31897 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31898 | test $ac_status = 0; }; }; then : | |
31899 | ||
31900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31901 | $as_echo "yes" >&6; } | |
31902 | ||
31903 | $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h | |
31904 | ||
31905 | ||
31906 | else | |
31907 | $as_echo "$as_me: failed program was:" >&5 | |
31908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31909 | ||
31910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31911 | $as_echo "no" >&6; } | |
31912 | ||
31913 | ||
31914 | ||
31915 | fi | |
31916 | rm -Rf build | |
31917 | ||
31918 | ||
31919 | ||
31920 | ||
31921 | ||
31922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5 | |
31923 | $as_echo_n "checking whether fops->fallocate() exists... " >&6; } | |
31924 | ||
31925 | ||
31926 | cat confdefs.h - <<_ACEOF >conftest.c | |
31927 | ||
31928 | ||
31929 | #include <linux/fs.h> | |
31930 | ||
31931 | long test_fallocate(struct file *file, int mode, | |
31932 | loff_t offset, loff_t len) { return 0; } | |
31933 | ||
31934 | static const struct file_operations | |
31935 | fops __attribute__ ((unused)) = { | |
31936 | .fallocate = test_fallocate, | |
31937 | }; | |
31938 | ||
31939 | int | |
31940 | main (void) | |
31941 | { | |
31942 | ||
31943 | ||
31944 | ; | |
31945 | return 0; | |
31946 | } | |
31947 | ||
31948 | _ACEOF | |
31949 | ||
31950 | ||
31951 | ||
31952 | cat - <<_ACEOF >conftest.h | |
31953 | ||
31954 | _ACEOF | |
31955 | ||
31956 | ||
31957 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31958 | echo "obj-m := conftest.o" >build/Makefile | |
31959 | modpost_flag='' | |
31960 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31961 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31962 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31963 | (eval $ac_try) 2>&5 | |
31964 | ac_status=$? | |
31965 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31966 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31967 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31968 | (eval $ac_try) 2>&5 | |
31969 | ac_status=$? | |
31970 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31971 | test $ac_status = 0; }; }; then : | |
31972 | ||
31973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31974 | $as_echo "yes" >&6; } | |
31975 | ||
31976 | $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h | |
31977 | ||
31978 | ||
31979 | else | |
31980 | $as_echo "$as_me: failed program was:" >&5 | |
31981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31982 | ||
31983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31984 | $as_echo "no" >&6; } | |
31985 | ||
31986 | ||
31987 | ||
31988 | fi | |
31989 | rm -Rf build | |
31990 | ||
31991 | ||
31992 | ||
31993 | ||
31994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5 | |
31995 | $as_echo_n "checking whether iops->fallocate() exists... " >&6; } | |
31996 | ||
31997 | ||
31998 | cat confdefs.h - <<_ACEOF >conftest.c | |
31999 | ||
32000 | ||
32001 | #include <linux/fs.h> | |
32002 | ||
32003 | long test_fallocate(struct inode *inode, int mode, | |
32004 | loff_t offset, loff_t len) { return 0; } | |
32005 | ||
32006 | static const struct inode_operations | |
32007 | fops __attribute__ ((unused)) = { | |
32008 | .fallocate = test_fallocate, | |
32009 | }; | |
32010 | ||
32011 | int | |
32012 | main (void) | |
32013 | { | |
32014 | ||
32015 | ||
32016 | ; | |
32017 | return 0; | |
32018 | } | |
32019 | ||
32020 | _ACEOF | |
32021 | ||
32022 | ||
32023 | ||
32024 | cat - <<_ACEOF >conftest.h | |
32025 | ||
32026 | _ACEOF | |
32027 | ||
32028 | ||
32029 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32030 | echo "obj-m := conftest.o" >build/Makefile | |
32031 | modpost_flag='' | |
32032 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32033 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32034 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32035 | (eval $ac_try) 2>&5 | |
32036 | ac_status=$? | |
32037 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32038 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32039 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32040 | (eval $ac_try) 2>&5 | |
32041 | ac_status=$? | |
32042 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32043 | test $ac_status = 0; }; }; then : | |
32044 | ||
32045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32046 | $as_echo "yes" >&6; } | |
32047 | ||
32048 | $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h | |
32049 | ||
32050 | ||
32051 | else | |
32052 | $as_echo "$as_me: failed program was:" >&5 | |
32053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32054 | ||
32055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32056 | $as_echo "no" >&6; } | |
32057 | ||
32058 | ||
32059 | ||
32060 | fi | |
32061 | rm -Rf build | |
32062 | ||
32063 | ||
32064 | ||
32065 | ||
32066 | ||
32067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5 | |
32068 | $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; } | |
32069 | ||
32070 | ||
32071 | cat confdefs.h - <<_ACEOF >conftest.c | |
32072 | ||
32073 | ||
32074 | #include <linux/fs.h> | |
32075 | ||
32076 | static const struct file_operations | |
32077 | fops __attribute__ ((unused)) = { | |
32078 | .aio_fsync = NULL, | |
32079 | }; | |
32080 | ||
32081 | int | |
32082 | main (void) | |
32083 | { | |
32084 | ||
32085 | ||
32086 | ; | |
32087 | return 0; | |
32088 | } | |
32089 | ||
32090 | _ACEOF | |
32091 | ||
32092 | ||
32093 | ||
32094 | cat - <<_ACEOF >conftest.h | |
32095 | ||
32096 | _ACEOF | |
32097 | ||
32098 | ||
32099 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32100 | echo "obj-m := conftest.o" >build/Makefile | |
32101 | modpost_flag='' | |
32102 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32103 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32104 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32105 | (eval $ac_try) 2>&5 | |
32106 | ac_status=$? | |
32107 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32108 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32109 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32110 | (eval $ac_try) 2>&5 | |
32111 | ac_status=$? | |
32112 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32113 | test $ac_status = 0; }; }; then : | |
32114 | ||
32115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32116 | $as_echo "yes" >&6; } | |
32117 | ||
32118 | $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h | |
32119 | ||
32120 | ||
32121 | else | |
32122 | $as_echo "$as_me: failed program was:" >&5 | |
32123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32124 | ||
32125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32126 | $as_echo "no" >&6; } | |
32127 | ||
32128 | ||
32129 | ||
32130 | fi | |
32131 | rm -Rf build | |
32132 | ||
32133 | ||
32134 | ||
32135 | ||
32136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5 | |
32137 | $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; } | |
32138 | ||
32139 | ||
32140 | cat confdefs.h - <<_ACEOF >conftest.c | |
32141 | ||
32142 | ||
32143 | #include <linux/fs.h> | |
32144 | ||
32145 | int mkdir(struct inode *inode, struct dentry *dentry, | |
32146 | umode_t umode) { return 0; } | |
32147 | ||
32148 | static const struct inode_operations | |
32149 | iops __attribute__ ((unused)) = { | |
32150 | .mkdir = mkdir, | |
32151 | }; | |
32152 | ||
32153 | int | |
32154 | main (void) | |
32155 | { | |
32156 | ||
32157 | ||
32158 | ; | |
32159 | return 0; | |
32160 | } | |
32161 | ||
32162 | _ACEOF | |
32163 | ||
32164 | ||
32165 | ||
32166 | cat - <<_ACEOF >conftest.h | |
32167 | ||
32168 | _ACEOF | |
32169 | ||
32170 | ||
32171 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32172 | echo "obj-m := conftest.o" >build/Makefile | |
32173 | modpost_flag='' | |
32174 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32175 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32176 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32177 | (eval $ac_try) 2>&5 | |
32178 | ac_status=$? | |
32179 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32180 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32181 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32182 | (eval $ac_try) 2>&5 | |
32183 | ac_status=$? | |
32184 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32185 | test $ac_status = 0; }; }; then : | |
32186 | ||
32187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32188 | $as_echo "yes" >&6; } | |
32189 | ||
32190 | $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h | |
32191 | ||
32192 | ||
32193 | else | |
32194 | $as_echo "$as_me: failed program was:" >&5 | |
32195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32196 | ||
32197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32198 | $as_echo "no" >&6; } | |
32199 | ||
32200 | ||
32201 | ||
32202 | fi | |
32203 | rm -Rf build | |
32204 | ||
32205 | ||
32206 | ||
32207 | ||
32208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5 | |
32209 | $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; } | |
32210 | ||
32211 | ||
32212 | cat confdefs.h - <<_ACEOF >conftest.c | |
32213 | ||
32214 | ||
32215 | #include <linux/fs.h> | |
32216 | ||
32217 | struct dentry *inode_lookup(struct inode *inode, | |
32218 | struct dentry *dentry, struct nameidata *nidata) | |
32219 | { return NULL; } | |
32220 | ||
32221 | static const struct inode_operations iops | |
32222 | __attribute__ ((unused)) = { | |
32223 | .lookup = inode_lookup, | |
32224 | }; | |
32225 | ||
32226 | int | |
32227 | main (void) | |
32228 | { | |
32229 | ||
32230 | ||
32231 | ; | |
32232 | return 0; | |
32233 | } | |
32234 | ||
32235 | _ACEOF | |
32236 | ||
32237 | ||
32238 | ||
32239 | cat - <<_ACEOF >conftest.h | |
32240 | ||
32241 | _ACEOF | |
32242 | ||
32243 | ||
32244 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32245 | echo "obj-m := conftest.o" >build/Makefile | |
32246 | modpost_flag='' | |
32247 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32248 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32249 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32250 | (eval $ac_try) 2>&5 | |
32251 | ac_status=$? | |
32252 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32253 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32254 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32255 | (eval $ac_try) 2>&5 | |
32256 | ac_status=$? | |
32257 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32258 | test $ac_status = 0; }; }; then : | |
32259 | ||
32260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32261 | $as_echo "yes" >&6; } | |
32262 | ||
32263 | $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h | |
32264 | ||
32265 | ||
32266 | else | |
32267 | $as_echo "$as_me: failed program was:" >&5 | |
32268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32269 | ||
32270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32271 | $as_echo "no" >&6; } | |
32272 | ||
32273 | ||
32274 | ||
32275 | fi | |
32276 | rm -Rf build | |
32277 | ||
32278 | ||
32279 | ||
32280 | ||
32281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5 | |
32282 | $as_echo_n "checking whether iops->create() passes nameidata... " >&6; } | |
32283 | ||
32284 | ||
32285 | cat confdefs.h - <<_ACEOF >conftest.c | |
32286 | ||
32287 | ||
32288 | #include <linux/fs.h> | |
32289 | ||
32290 | #ifdef HAVE_MKDIR_UMODE_T | |
32291 | int inode_create(struct inode *inode ,struct dentry *dentry, | |
32292 | umode_t umode, struct nameidata *nidata) { return 0; } | |
32293 | #else | |
32294 | int inode_create(struct inode *inode,struct dentry *dentry, | |
32295 | int umode, struct nameidata * nidata) { return 0; } | |
32296 | #endif | |
32297 | ||
32298 | static const struct inode_operations | |
32299 | iops __attribute__ ((unused)) = { | |
32300 | .create = inode_create, | |
32301 | }; | |
32302 | ||
32303 | int | |
32304 | main (void) | |
32305 | { | |
32306 | ||
32307 | ||
32308 | ; | |
32309 | return 0; | |
32310 | } | |
32311 | ||
32312 | _ACEOF | |
32313 | ||
32314 | ||
32315 | ||
32316 | cat - <<_ACEOF >conftest.h | |
32317 | ||
32318 | _ACEOF | |
32319 | ||
32320 | ||
32321 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32322 | echo "obj-m := conftest.o" >build/Makefile | |
32323 | modpost_flag='' | |
32324 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32325 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32326 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32327 | (eval $ac_try) 2>&5 | |
32328 | ac_status=$? | |
32329 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32330 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32331 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32332 | (eval $ac_try) 2>&5 | |
32333 | ac_status=$? | |
32334 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32335 | test $ac_status = 0; }; }; then : | |
32336 | ||
32337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32338 | $as_echo "yes" >&6; } | |
32339 | ||
32340 | $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h | |
32341 | ||
32342 | ||
32343 | else | |
32344 | $as_echo "$as_me: failed program was:" >&5 | |
32345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32346 | ||
32347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32348 | $as_echo "no" >&6; } | |
32349 | ||
32350 | ||
32351 | ||
32352 | fi | |
32353 | rm -Rf build | |
32354 | ||
32355 | ||
32356 | ||
32357 | ||
32358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5 | |
32359 | $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; } | |
32360 | ||
32361 | ||
32362 | cat confdefs.h - <<_ACEOF >conftest.c | |
32363 | ||
32364 | ||
32365 | #include <linux/fs.h> | |
32366 | const char *get_link(struct dentry *de, struct inode *ip, | |
32367 | struct delayed_call *done) { return "symlink"; } | |
32368 | static struct inode_operations | |
32369 | iops __attribute__ ((unused)) = { | |
32370 | .get_link = get_link, | |
32371 | }; | |
32372 | ||
32373 | int | |
32374 | main (void) | |
32375 | { | |
32376 | ||
32377 | ||
32378 | ; | |
32379 | return 0; | |
32380 | } | |
32381 | ||
32382 | _ACEOF | |
32383 | ||
32384 | ||
32385 | ||
32386 | cat - <<_ACEOF >conftest.h | |
32387 | ||
32388 | _ACEOF | |
32389 | ||
32390 | ||
32391 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32392 | echo "obj-m := conftest.o" >build/Makefile | |
32393 | modpost_flag='' | |
32394 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32395 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32396 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32397 | (eval $ac_try) 2>&5 | |
32398 | ac_status=$? | |
32399 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32400 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32401 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32402 | (eval $ac_try) 2>&5 | |
32403 | ac_status=$? | |
32404 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32405 | test $ac_status = 0; }; }; then : | |
32406 | ||
32407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32408 | $as_echo "yes" >&6; } | |
32409 | ||
32410 | $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h | |
32411 | ||
32412 | ||
32413 | else | |
32414 | $as_echo "$as_me: failed program was:" >&5 | |
32415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32416 | ||
32417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32418 | $as_echo "no" >&6; } | |
32419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5 | |
32420 | $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; } | |
32421 | ||
32422 | ||
32423 | cat confdefs.h - <<_ACEOF >conftest.c | |
32424 | ||
32425 | ||
32426 | #include <linux/fs.h> | |
32427 | const char *get_link(struct dentry *de, struct | |
32428 | inode *ip, void **cookie) { return "symlink"; } | |
32429 | static struct inode_operations | |
32430 | iops __attribute__ ((unused)) = { | |
32431 | .get_link = get_link, | |
32432 | }; | |
32433 | ||
32434 | int | |
32435 | main (void) | |
32436 | { | |
32437 | ||
32438 | ||
32439 | ; | |
32440 | return 0; | |
32441 | } | |
32442 | ||
32443 | _ACEOF | |
32444 | ||
32445 | ||
32446 | ||
32447 | cat - <<_ACEOF >conftest.h | |
32448 | ||
32449 | _ACEOF | |
32450 | ||
32451 | ||
32452 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32453 | echo "obj-m := conftest.o" >build/Makefile | |
32454 | modpost_flag='' | |
32455 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32456 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32457 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32458 | (eval $ac_try) 2>&5 | |
32459 | ac_status=$? | |
32460 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32461 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
32467 | ||
32468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32469 | $as_echo "yes" >&6; } | |
32470 | ||
32471 | $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h | |
32472 | ||
32473 | ||
32474 | else | |
32475 | $as_echo "$as_me: failed program was:" >&5 | |
32476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32477 | ||
32478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32479 | $as_echo "no" >&6; } | |
32480 | ||
32481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5 | |
32482 | $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; } | |
32483 | ||
32484 | ||
32485 | cat confdefs.h - <<_ACEOF >conftest.c | |
32486 | ||
32487 | ||
32488 | #include <linux/fs.h> | |
32489 | const char *follow_link(struct dentry *de, | |
32490 | void **cookie) { return "symlink"; } | |
32491 | static struct inode_operations | |
32492 | iops __attribute__ ((unused)) = { | |
32493 | .follow_link = follow_link, | |
32494 | }; | |
32495 | ||
32496 | int | |
32497 | main (void) | |
32498 | { | |
32499 | ||
32500 | ||
32501 | ; | |
32502 | return 0; | |
32503 | } | |
32504 | ||
32505 | _ACEOF | |
32506 | ||
32507 | ||
32508 | ||
32509 | cat - <<_ACEOF >conftest.h | |
32510 | ||
32511 | _ACEOF | |
32512 | ||
32513 | ||
32514 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32515 | echo "obj-m := conftest.o" >build/Makefile | |
32516 | modpost_flag='' | |
32517 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32518 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32519 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32520 | (eval $ac_try) 2>&5 | |
32521 | ac_status=$? | |
32522 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32523 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32524 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32525 | (eval $ac_try) 2>&5 | |
32526 | ac_status=$? | |
32527 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32528 | test $ac_status = 0; }; }; then : | |
32529 | ||
32530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32531 | $as_echo "yes" >&6; } | |
32532 | ||
32533 | $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h | |
32534 | ||
32535 | ||
32536 | else | |
32537 | $as_echo "$as_me: failed program was:" >&5 | |
32538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32539 | ||
32540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32541 | $as_echo "no" >&6; } | |
32542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5 | |
32543 | $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; } | |
32544 | ||
32545 | ||
32546 | cat confdefs.h - <<_ACEOF >conftest.c | |
32547 | ||
32548 | ||
32549 | #include <linux/fs.h> | |
32550 | void *follow_link(struct dentry *de, struct | |
32551 | nameidata *nd) { return (void *)NULL; } | |
32552 | static struct inode_operations | |
32553 | iops __attribute__ ((unused)) = { | |
32554 | .follow_link = follow_link, | |
32555 | }; | |
32556 | ||
32557 | int | |
32558 | main (void) | |
32559 | { | |
32560 | ||
32561 | ||
32562 | ; | |
32563 | return 0; | |
32564 | } | |
32565 | ||
32566 | _ACEOF | |
32567 | ||
32568 | ||
32569 | ||
32570 | cat - <<_ACEOF >conftest.h | |
32571 | ||
32572 | _ACEOF | |
32573 | ||
32574 | ||
32575 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32576 | echo "obj-m := conftest.o" >build/Makefile | |
32577 | modpost_flag='' | |
32578 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32579 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32580 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32581 | (eval $ac_try) 2>&5 | |
32582 | ac_status=$? | |
32583 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32584 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32585 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32586 | (eval $ac_try) 2>&5 | |
32587 | ac_status=$? | |
32588 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32589 | test $ac_status = 0; }; }; then : | |
32590 | ||
df9d7621 CIK |
32591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
32592 | $as_echo "yes" >&6; } | |
32593 | ||
32594 | $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h | |
32595 | ||
32596 | ||
32597 | else | |
32598 | $as_echo "$as_me: failed program was:" >&5 | |
32599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32600 | ||
32601 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
32602 | ||
32603 | ||
32604 | ||
32605 | fi | |
32606 | rm -Rf build | |
32607 | ||
32608 | ||
32609 | ||
32610 | ||
32611 | ||
32612 | fi | |
32613 | rm -Rf build | |
32614 | ||
32615 | ||
32616 | ||
32617 | ||
32618 | ||
32619 | ||
32620 | fi | |
32621 | rm -Rf build | |
32622 | ||
32623 | ||
32624 | ||
32625 | ||
32626 | ||
32627 | fi | |
32628 | rm -Rf build | |
32629 | ||
32630 | ||
32631 | ||
32632 | ||
32633 | ||
32634 | ||
32635 | cat confdefs.h - <<_ACEOF >conftest.c | |
32636 | ||
32637 | ||
32638 | #if !defined(HAVE_GET_LINK_DELAYED) | |
32639 | #error "Expecting get_link() delayed done" | |
32640 | #endif | |
32641 | ||
32642 | int | |
32643 | main (void) | |
32644 | { | |
32645 | ||
32646 | ||
32647 | ; | |
32648 | return 0; | |
32649 | } | |
32650 | ||
32651 | _ACEOF | |
32652 | ||
32653 | ||
32654 | ||
32655 | cat - <<_ACEOF >conftest.h | |
32656 | ||
32657 | _ACEOF | |
32658 | ||
32659 | ||
32660 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32661 | echo "obj-m := conftest.o" >build/Makefile | |
32662 | modpost_flag='' | |
32663 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32664 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32665 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32666 | (eval $ac_try) 2>&5 | |
32667 | ac_status=$? | |
32668 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32669 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32670 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32671 | (eval $ac_try) 2>&5 | |
32672 | ac_status=$? | |
32673 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32674 | test $ac_status = 0; }; }; then : | |
32675 | ||
32676 | ||
32677 | $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h | |
32678 | ||
32679 | ||
32680 | else | |
32681 | $as_echo "$as_me: failed program was:" >&5 | |
32682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32683 | ||
32684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5 | |
32685 | $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; } | |
32686 | ||
32687 | ||
32688 | cat confdefs.h - <<_ACEOF >conftest.c | |
32689 | ||
32690 | ||
32691 | #include <linux/fs.h> | |
32692 | void put_link(struct inode *ip, void *cookie) | |
32693 | { return; } | |
32694 | static struct inode_operations | |
32695 | iops __attribute__ ((unused)) = { | |
32696 | .put_link = put_link, | |
32697 | }; | |
32698 | ||
32699 | int | |
32700 | main (void) | |
32701 | { | |
32702 | ||
32703 | ||
32704 | ; | |
32705 | return 0; | |
32706 | } | |
32707 | ||
32708 | _ACEOF | |
32709 | ||
32710 | ||
32711 | ||
32712 | cat - <<_ACEOF >conftest.h | |
32713 | ||
32714 | _ACEOF | |
32715 | ||
32716 | ||
32717 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32718 | echo "obj-m := conftest.o" >build/Makefile | |
32719 | modpost_flag='' | |
32720 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32721 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32722 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32723 | (eval $ac_try) 2>&5 | |
32724 | ac_status=$? | |
32725 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32726 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32727 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32728 | (eval $ac_try) 2>&5 | |
32729 | ac_status=$? | |
32730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32731 | test $ac_status = 0; }; }; then : | |
32732 | ||
32733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32734 | $as_echo "yes" >&6; } | |
32735 | ||
32736 | $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h | |
32737 | ||
32738 | ||
32739 | else | |
32740 | $as_echo "$as_me: failed program was:" >&5 | |
32741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32742 | ||
32743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32744 | $as_echo "no" >&6; } | |
32745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5 | |
32746 | $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; } | |
32747 | ||
32748 | ||
32749 | cat confdefs.h - <<_ACEOF >conftest.c | |
32750 | ||
32751 | ||
32752 | #include <linux/fs.h> | |
32753 | void put_link(struct dentry *de, struct | |
32754 | nameidata *nd, void *ptr) { return; } | |
32755 | static struct inode_operations | |
32756 | iops __attribute__ ((unused)) = { | |
32757 | .put_link = put_link, | |
32758 | }; | |
32759 | ||
32760 | int | |
32761 | main (void) | |
32762 | { | |
32763 | ||
32764 | ||
32765 | ; | |
32766 | return 0; | |
32767 | } | |
32768 | ||
32769 | _ACEOF | |
32770 | ||
32771 | ||
32772 | ||
32773 | cat - <<_ACEOF >conftest.h | |
32774 | ||
32775 | _ACEOF | |
32776 | ||
32777 | ||
32778 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32779 | echo "obj-m := conftest.o" >build/Makefile | |
32780 | modpost_flag='' | |
32781 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32782 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32783 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32784 | (eval $ac_try) 2>&5 | |
32785 | ac_status=$? | |
32786 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32787 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32788 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32789 | (eval $ac_try) 2>&5 | |
32790 | ac_status=$? | |
32791 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32792 | test $ac_status = 0; }; }; then : | |
32793 | ||
32794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
87d546d8 TG |
32795 | $as_echo "yes" >&6; } |
32796 | ||
df9d7621 | 32797 | $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h |
87d546d8 TG |
32798 | |
32799 | ||
32800 | else | |
32801 | $as_echo "$as_me: failed program was:" >&5 | |
32802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32803 | ||
df9d7621 | 32804 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 |
87d546d8 TG |
32805 | |
32806 | ||
32807 | ||
32808 | fi | |
32809 | rm -Rf build | |
32810 | ||
32811 | ||
32812 | ||
32813 | ||
32814 | ||
87d546d8 TG |
32815 | fi |
32816 | rm -Rf build | |
32817 | ||
32818 | ||
32819 | ||
32820 | ||
32821 | ||
32822 | fi | |
32823 | rm -Rf build | |
32824 | ||
32825 | ||
32826 | ||
32827 | ||
df9d7621 CIK |
32828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5 |
32829 | $as_echo_n "checking whether iops->truncate_range() exists... " >&6; } | |
87d546d8 TG |
32830 | |
32831 | ||
32832 | cat confdefs.h - <<_ACEOF >conftest.c | |
32833 | ||
32834 | ||
df9d7621 CIK |
32835 | #include <linux/fs.h> |
32836 | void truncate_range(struct inode *inode, loff_t start, | |
32837 | loff_t end) { return; } | |
32838 | static struct inode_operations iops __attribute__ ((unused)) = { | |
32839 | .truncate_range = truncate_range, | |
32840 | }; | |
87d546d8 TG |
32841 | |
32842 | int | |
32843 | main (void) | |
32844 | { | |
32845 | ||
32846 | ||
32847 | ; | |
32848 | return 0; | |
32849 | } | |
32850 | ||
32851 | _ACEOF | |
32852 | ||
32853 | ||
32854 | ||
32855 | cat - <<_ACEOF >conftest.h | |
32856 | ||
32857 | _ACEOF | |
32858 | ||
32859 | ||
32860 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32861 | echo "obj-m := conftest.o" >build/Makefile | |
32862 | modpost_flag='' | |
32863 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32864 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32865 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32866 | (eval $ac_try) 2>&5 | |
32867 | ac_status=$? | |
32868 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32869 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32870 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32871 | (eval $ac_try) 2>&5 | |
32872 | ac_status=$? | |
32873 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32874 | test $ac_status = 0; }; }; then : | |
32875 | ||
df9d7621 CIK |
32876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
32877 | $as_echo "yes" >&6; } | |
87d546d8 | 32878 | |
df9d7621 | 32879 | $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h |
87d546d8 TG |
32880 | |
32881 | ||
32882 | else | |
32883 | $as_echo "$as_me: failed program was:" >&5 | |
32884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32885 | ||
df9d7621 CIK |
32886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
32887 | $as_echo "no" >&6; } | |
32888 | ||
32889 | ||
32890 | ||
32891 | fi | |
32892 | rm -Rf build | |
32893 | ||
32894 | ||
32895 | ||
32896 | ||
32897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5 | |
32898 | $as_echo_n "checking whether dops->d_automount() exists... " >&6; } | |
87d546d8 TG |
32899 | |
32900 | ||
32901 | cat confdefs.h - <<_ACEOF >conftest.c | |
32902 | ||
32903 | ||
df9d7621 CIK |
32904 | #include <linux/dcache.h> |
32905 | struct vfsmount *d_automount(struct path *p) { return NULL; } | |
32906 | struct dentry_operations dops __attribute__ ((unused)) = { | |
32907 | .d_automount = d_automount, | |
32908 | }; | |
87d546d8 TG |
32909 | |
32910 | int | |
32911 | main (void) | |
32912 | { | |
32913 | ||
32914 | ||
32915 | ; | |
32916 | return 0; | |
32917 | } | |
32918 | ||
32919 | _ACEOF | |
32920 | ||
32921 | ||
32922 | ||
32923 | cat - <<_ACEOF >conftest.h | |
32924 | ||
32925 | _ACEOF | |
32926 | ||
32927 | ||
32928 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32929 | echo "obj-m := conftest.o" >build/Makefile | |
32930 | modpost_flag='' | |
32931 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32932 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32933 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32934 | (eval $ac_try) 2>&5 | |
32935 | ac_status=$? | |
32936 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32937 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32938 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32939 | (eval $ac_try) 2>&5 | |
32940 | ac_status=$? | |
32941 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32942 | test $ac_status = 0; }; }; then : | |
32943 | ||
df9d7621 | 32944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
32945 | $as_echo "yes" >&6; } |
32946 | ||
df9d7621 | 32947 | $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h |
87d546d8 TG |
32948 | |
32949 | ||
32950 | else | |
32951 | $as_echo "$as_me: failed program was:" >&5 | |
32952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32953 | ||
df9d7621 | 32954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 | 32955 | $as_echo "no" >&6; } |
df9d7621 CIK |
32956 | |
32957 | ||
32958 | ||
32959 | fi | |
32960 | rm -Rf build | |
32961 | ||
32962 | ||
32963 | ||
32964 | ||
32965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5 | |
32966 | $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; } | |
87d546d8 TG |
32967 | |
32968 | ||
32969 | cat confdefs.h - <<_ACEOF >conftest.c | |
32970 | ||
32971 | ||
df9d7621 CIK |
32972 | #include <linux/exportfs.h> |
32973 | int encode_fh(struct inode *inode, __u32 *fh, int *max_len, | |
32974 | struct inode *parent) { return 0; } | |
32975 | static struct export_operations eops __attribute__ ((unused))={ | |
32976 | .encode_fh = encode_fh, | |
32977 | }; | |
87d546d8 TG |
32978 | |
32979 | int | |
32980 | main (void) | |
32981 | { | |
32982 | ||
32983 | ||
32984 | ; | |
32985 | return 0; | |
32986 | } | |
32987 | ||
32988 | _ACEOF | |
32989 | ||
32990 | ||
32991 | ||
32992 | cat - <<_ACEOF >conftest.h | |
32993 | ||
32994 | _ACEOF | |
32995 | ||
32996 | ||
32997 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32998 | echo "obj-m := conftest.o" >build/Makefile | |
32999 | modpost_flag='' | |
33000 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33001 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33002 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33003 | (eval $ac_try) 2>&5 | |
33004 | ac_status=$? | |
33005 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33006 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33007 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33008 | (eval $ac_try) 2>&5 | |
33009 | ac_status=$? | |
33010 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33011 | test $ac_status = 0; }; }; then : | |
33012 | ||
df9d7621 | 33013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
33014 | $as_echo "yes" >&6; } |
33015 | ||
df9d7621 | 33016 | $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h |
87d546d8 TG |
33017 | |
33018 | ||
33019 | else | |
33020 | $as_echo "$as_me: failed program was:" >&5 | |
33021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33022 | ||
df9d7621 CIK |
33023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33024 | $as_echo "no" >&6; } | |
87d546d8 TG |
33025 | |
33026 | ||
33027 | ||
33028 | fi | |
33029 | rm -Rf build | |
33030 | ||
33031 | ||
33032 | ||
33033 | ||
df9d7621 CIK |
33034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5 |
33035 | $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; } | |
33036 | ||
87d546d8 | 33037 | |
df9d7621 CIK |
33038 | cat confdefs.h - <<_ACEOF >conftest.c |
33039 | ||
33040 | ||
33041 | #include <linux/exportfs.h> | |
33042 | int commit_metadata(struct inode *inode) { return 0; } | |
33043 | static struct export_operations eops __attribute__ ((unused))={ | |
33044 | .commit_metadata = commit_metadata, | |
33045 | }; | |
33046 | ||
33047 | int | |
33048 | main (void) | |
33049 | { | |
33050 | ||
33051 | ||
33052 | ; | |
33053 | return 0; | |
33054 | } | |
87d546d8 | 33055 | |
df9d7621 CIK |
33056 | _ACEOF |
33057 | ||
33058 | ||
33059 | ||
33060 | cat - <<_ACEOF >conftest.h | |
33061 | ||
33062 | _ACEOF | |
33063 | ||
33064 | ||
33065 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33066 | echo "obj-m := conftest.o" >build/Makefile | |
33067 | modpost_flag='' | |
33068 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33069 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33070 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33071 | (eval $ac_try) 2>&5 | |
33072 | ac_status=$? | |
33073 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33074 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33075 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33076 | (eval $ac_try) 2>&5 | |
33077 | ac_status=$? | |
33078 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33079 | test $ac_status = 0; }; }; then : | |
33080 | ||
33081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33082 | $as_echo "yes" >&6; } | |
33083 | ||
33084 | $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h | |
33085 | ||
33086 | ||
33087 | else | |
33088 | $as_echo "$as_me: failed program was:" >&5 | |
33089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
87d546d8 | 33090 | |
df9d7621 CIK |
33091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33092 | $as_echo "no" >&6; } | |
87d546d8 TG |
33093 | |
33094 | ||
33095 | ||
33096 | fi | |
33097 | rm -Rf build | |
33098 | ||
33099 | ||
33100 | ||
df9d7621 CIK |
33101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5 |
33102 | $as_echo_n "checking whether clear_inode() is available... " >&6; } | |
87d546d8 | 33103 | |
87d546d8 TG |
33104 | |
33105 | ||
33106 | cat confdefs.h - <<_ACEOF >conftest.c | |
33107 | ||
33108 | ||
33109 | #include <linux/fs.h> | |
87d546d8 TG |
33110 | |
33111 | int | |
33112 | main (void) | |
33113 | { | |
33114 | ||
df9d7621 | 33115 | clear_inode(NULL); |
87d546d8 TG |
33116 | |
33117 | ; | |
33118 | return 0; | |
33119 | } | |
33120 | ||
33121 | _ACEOF | |
33122 | ||
33123 | ||
33124 | ||
33125 | cat - <<_ACEOF >conftest.h | |
33126 | ||
33127 | _ACEOF | |
33128 | ||
33129 | ||
33130 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33131 | echo "obj-m := conftest.o" >build/Makefile | |
33132 | modpost_flag='' | |
33133 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33134 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33135 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33136 | (eval $ac_try) 2>&5 | |
33137 | ac_status=$? | |
33138 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33139 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33140 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33141 | (eval $ac_try) 2>&5 | |
33142 | ac_status=$? | |
33143 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33144 | test $ac_status = 0; }; }; then : | |
df9d7621 CIK |
33145 | rc=0 |
33146 | else | |
33147 | $as_echo "$as_me: failed program was:" >&5 | |
33148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33149 | rc=1 | |
87d546d8 | 33150 | |
87d546d8 | 33151 | |
df9d7621 CIK |
33152 | fi |
33153 | rm -Rf build | |
87d546d8 TG |
33154 | |
33155 | ||
df9d7621 CIK |
33156 | if test $rc -ne 0; then : |
33157 | ||
33158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33159 | $as_echo "no" >&6; } | |
33160 | ||
33161 | else | |
33162 | if test "x$enable_linux_builtin" != xyes; then | |
33163 | ||
33164 | grep -q -E '[[:space:]]clear_inode[[:space:]]' \ | |
33165 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
33166 | rc=$? | |
33167 | if test $rc -ne 0; then | |
33168 | export=0 | |
33169 | for file in fs/inode.c; do | |
33170 | grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \ | |
33171 | "$LINUX/$file" 2>/dev/null | |
33172 | rc=$? | |
33173 | if test $rc -eq 0; then | |
33174 | export=1 | |
33175 | break; | |
33176 | fi | |
33177 | done | |
33178 | if test $export -eq 0; then : | |
33179 | rc=1 | |
33180 | else : | |
33181 | rc=0 | |
33182 | fi | |
33183 | else : | |
33184 | rc=0 | |
33185 | fi | |
33186 | ||
33187 | fi | |
33188 | if test $rc -ne 0; then : | |
87d546d8 TG |
33189 | |
33190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33191 | $as_echo "no" >&6; } | |
33192 | ||
df9d7621 | 33193 | else : |
87d546d8 | 33194 | |
df9d7621 CIK |
33195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33196 | $as_echo "yes" >&6; } | |
87d546d8 | 33197 | |
df9d7621 | 33198 | $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h |
87d546d8 TG |
33199 | |
33200 | ||
df9d7621 CIK |
33201 | fi |
33202 | fi | |
87d546d8 TG |
33203 | |
33204 | ||
df9d7621 CIK |
33205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5 |
33206 | $as_echo_n "checking whether setattr_prepare() is available... " >&6; } | |
33207 | ||
87d546d8 TG |
33208 | |
33209 | ||
33210 | cat confdefs.h - <<_ACEOF >conftest.c | |
33211 | ||
33212 | ||
df9d7621 | 33213 | #include <linux/fs.h> |
87d546d8 TG |
33214 | |
33215 | int | |
33216 | main (void) | |
33217 | { | |
33218 | ||
df9d7621 CIK |
33219 | struct dentry *dentry = NULL; |
33220 | struct iattr *attr = NULL; | |
33221 | int error; | |
33222 | ||
33223 | error = setattr_prepare(dentry, attr); | |
87d546d8 TG |
33224 | |
33225 | ; | |
33226 | return 0; | |
33227 | } | |
33228 | ||
33229 | _ACEOF | |
33230 | ||
33231 | ||
33232 | ||
33233 | cat - <<_ACEOF >conftest.h | |
33234 | ||
33235 | _ACEOF | |
33236 | ||
33237 | ||
33238 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33239 | echo "obj-m := conftest.o" >build/Makefile | |
33240 | modpost_flag='' | |
33241 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33242 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33243 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33244 | (eval $ac_try) 2>&5 | |
33245 | ac_status=$? | |
33246 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33247 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33248 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33249 | (eval $ac_try) 2>&5 | |
33250 | ac_status=$? | |
33251 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33252 | test $ac_status = 0; }; }; then : | |
df9d7621 CIK |
33253 | rc=0 |
33254 | else | |
33255 | $as_echo "$as_me: failed program was:" >&5 | |
33256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33257 | rc=1 | |
33258 | ||
33259 | ||
33260 | fi | |
33261 | rm -Rf build | |
33262 | ||
33263 | ||
33264 | if test $rc -ne 0; then : | |
87d546d8 | 33265 | |
df9d7621 CIK |
33266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33267 | $as_echo "no" >&6; } | |
87d546d8 | 33268 | |
df9d7621 CIK |
33269 | else |
33270 | if test "x$enable_linux_builtin" != xyes; then | |
87d546d8 | 33271 | |
df9d7621 CIK |
33272 | grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \ |
33273 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
33274 | rc=$? | |
33275 | if test $rc -ne 0; then | |
33276 | export=0 | |
33277 | for file in fs/attr.c; do | |
33278 | grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \ | |
33279 | "$LINUX/$file" 2>/dev/null | |
33280 | rc=$? | |
33281 | if test $rc -eq 0; then | |
33282 | export=1 | |
33283 | break; | |
33284 | fi | |
33285 | done | |
33286 | if test $export -eq 0; then : | |
33287 | rc=1 | |
33288 | else : | |
33289 | rc=0 | |
33290 | fi | |
33291 | else : | |
33292 | rc=0 | |
33293 | fi | |
87d546d8 | 33294 | |
df9d7621 CIK |
33295 | fi |
33296 | if test $rc -ne 0; then : | |
87d546d8 TG |
33297 | |
33298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33299 | $as_echo "no" >&6; } | |
33300 | ||
df9d7621 | 33301 | else : |
87d546d8 | 33302 | |
df9d7621 CIK |
33303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33304 | $as_echo "yes" >&6; } | |
87d546d8 | 33305 | |
df9d7621 | 33306 | $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h |
87d546d8 TG |
33307 | |
33308 | ||
df9d7621 CIK |
33309 | fi |
33310 | fi | |
87d546d8 TG |
33311 | |
33312 | ||
df9d7621 CIK |
33313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5 |
33314 | $as_echo_n "checking whether insert_inode_locked() is available... " >&6; } | |
33315 | ||
87d546d8 TG |
33316 | |
33317 | ||
33318 | cat confdefs.h - <<_ACEOF >conftest.c | |
33319 | ||
33320 | ||
df9d7621 | 33321 | #include <linux/fs.h> |
87d546d8 TG |
33322 | |
33323 | int | |
33324 | main (void) | |
33325 | { | |
33326 | ||
df9d7621 | 33327 | insert_inode_locked(NULL); |
87d546d8 TG |
33328 | |
33329 | ; | |
33330 | return 0; | |
33331 | } | |
33332 | ||
33333 | _ACEOF | |
33334 | ||
33335 | ||
33336 | ||
33337 | cat - <<_ACEOF >conftest.h | |
33338 | ||
33339 | _ACEOF | |
33340 | ||
33341 | ||
33342 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33343 | echo "obj-m := conftest.o" >build/Makefile | |
33344 | modpost_flag='' | |
33345 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33346 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33347 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33348 | (eval $ac_try) 2>&5 | |
33349 | ac_status=$? | |
33350 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33351 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33352 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33353 | (eval $ac_try) 2>&5 | |
33354 | ac_status=$? | |
33355 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33356 | test $ac_status = 0; }; }; then : | |
df9d7621 CIK |
33357 | rc=0 |
33358 | else | |
33359 | $as_echo "$as_me: failed program was:" >&5 | |
33360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33361 | rc=1 | |
87d546d8 | 33362 | |
87d546d8 | 33363 | |
df9d7621 CIK |
33364 | fi |
33365 | rm -Rf build | |
87d546d8 TG |
33366 | |
33367 | ||
df9d7621 | 33368 | if test $rc -ne 0; then : |
87d546d8 TG |
33369 | |
33370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33371 | $as_echo "no" >&6; } | |
33372 | ||
df9d7621 CIK |
33373 | else |
33374 | if test "x$enable_linux_builtin" != xyes; then | |
87d546d8 | 33375 | |
df9d7621 CIK |
33376 | grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \ |
33377 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
33378 | rc=$? | |
33379 | if test $rc -ne 0; then | |
33380 | export=0 | |
33381 | for file in fs/inode.c; do | |
33382 | grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \ | |
33383 | "$LINUX/$file" 2>/dev/null | |
33384 | rc=$? | |
33385 | if test $rc -eq 0; then | |
33386 | export=1 | |
33387 | break; | |
33388 | fi | |
33389 | done | |
33390 | if test $export -eq 0; then : | |
33391 | rc=1 | |
33392 | else : | |
33393 | rc=0 | |
33394 | fi | |
33395 | else : | |
33396 | rc=0 | |
33397 | fi | |
87d546d8 | 33398 | |
df9d7621 CIK |
33399 | fi |
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 | 33405 | else : |
87d546d8 | 33406 | |
df9d7621 CIK |
33407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33408 | $as_echo "yes" >&6; } | |
33409 | ||
33410 | $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h | |
33411 | ||
33412 | ||
33413 | fi | |
33414 | fi | |
33415 | ||
33416 | ||
33417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5 | |
33418 | $as_echo_n "checking whether d_make_root() is available... " >&6; } | |
87d546d8 | 33419 | |
87d546d8 TG |
33420 | |
33421 | ||
33422 | cat confdefs.h - <<_ACEOF >conftest.c | |
33423 | ||
33424 | ||
df9d7621 | 33425 | #include <linux/dcache.h> |
87d546d8 TG |
33426 | |
33427 | int | |
33428 | main (void) | |
33429 | { | |
33430 | ||
df9d7621 | 33431 | d_make_root(NULL); |
87d546d8 TG |
33432 | |
33433 | ; | |
33434 | return 0; | |
33435 | } | |
33436 | ||
33437 | _ACEOF | |
33438 | ||
33439 | ||
33440 | ||
33441 | cat - <<_ACEOF >conftest.h | |
33442 | ||
33443 | _ACEOF | |
33444 | ||
33445 | ||
33446 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33447 | echo "obj-m := conftest.o" >build/Makefile | |
33448 | modpost_flag='' | |
33449 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33450 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33451 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33452 | (eval $ac_try) 2>&5 | |
33453 | ac_status=$? | |
33454 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33455 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33456 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33457 | (eval $ac_try) 2>&5 | |
33458 | ac_status=$? | |
33459 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33460 | test $ac_status = 0; }; }; then : | |
df9d7621 CIK |
33461 | rc=0 |
33462 | else | |
33463 | $as_echo "$as_me: failed program was:" >&5 | |
33464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33465 | rc=1 | |
87d546d8 | 33466 | |
87d546d8 | 33467 | |
df9d7621 CIK |
33468 | fi |
33469 | rm -Rf build | |
87d546d8 TG |
33470 | |
33471 | ||
df9d7621 | 33472 | if test $rc -ne 0; then : |
87d546d8 TG |
33473 | |
33474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33475 | $as_echo "no" >&6; } | |
33476 | ||
df9d7621 CIK |
33477 | else |
33478 | if test "x$enable_linux_builtin" != xyes; then | |
87d546d8 | 33479 | |
df9d7621 CIK |
33480 | grep -q -E '[[:space:]]d_make_root[[:space:]]' \ |
33481 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
33482 | rc=$? | |
33483 | if test $rc -ne 0; then | |
33484 | export=0 | |
33485 | for file in fs/dcache.c; do | |
33486 | grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \ | |
33487 | "$LINUX/$file" 2>/dev/null | |
33488 | rc=$? | |
33489 | if test $rc -eq 0; then | |
33490 | export=1 | |
33491 | break; | |
33492 | fi | |
33493 | done | |
33494 | if test $export -eq 0; then : | |
33495 | rc=1 | |
33496 | else : | |
33497 | rc=0 | |
33498 | fi | |
33499 | else : | |
33500 | rc=0 | |
33501 | fi | |
87d546d8 | 33502 | |
df9d7621 CIK |
33503 | fi |
33504 | if test $rc -ne 0; then : | |
87d546d8 | 33505 | |
df9d7621 CIK |
33506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33507 | $as_echo "no" >&6; } | |
87d546d8 | 33508 | |
df9d7621 | 33509 | else : |
87d546d8 | 33510 | |
df9d7621 CIK |
33511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33512 | $as_echo "yes" >&6; } | |
33513 | ||
33514 | $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h | |
33515 | ||
33516 | ||
33517 | fi | |
33518 | fi | |
33519 | ||
33520 | ||
33521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5 | |
33522 | $as_echo_n "checking whether d_obtain_alias() is available... " >&6; } | |
87d546d8 TG |
33523 | |
33524 | ||
33525 | ||
33526 | cat confdefs.h - <<_ACEOF >conftest.c | |
33527 | ||
33528 | ||
df9d7621 | 33529 | #include <linux/dcache.h> |
87d546d8 TG |
33530 | |
33531 | int | |
33532 | main (void) | |
33533 | { | |
33534 | ||
df9d7621 | 33535 | d_obtain_alias(NULL); |
87d546d8 TG |
33536 | |
33537 | ; | |
33538 | return 0; | |
33539 | } | |
33540 | ||
33541 | _ACEOF | |
33542 | ||
33543 | ||
33544 | ||
33545 | cat - <<_ACEOF >conftest.h | |
33546 | ||
33547 | _ACEOF | |
33548 | ||
33549 | ||
33550 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33551 | echo "obj-m := conftest.o" >build/Makefile | |
33552 | modpost_flag='' | |
33553 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33554 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33555 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33556 | (eval $ac_try) 2>&5 | |
33557 | ac_status=$? | |
33558 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33559 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33560 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33561 | (eval $ac_try) 2>&5 | |
33562 | ac_status=$? | |
33563 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33564 | test $ac_status = 0; }; }; then : | |
33565 | rc=0 | |
33566 | else | |
33567 | $as_echo "$as_me: failed program was:" >&5 | |
33568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33569 | rc=1 | |
33570 | ||
33571 | ||
33572 | fi | |
33573 | rm -Rf build | |
33574 | ||
33575 | ||
33576 | if test $rc -ne 0; then : | |
33577 | ||
33578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33579 | $as_echo "no" >&6; } | |
33580 | ||
33581 | else | |
33582 | if test "x$enable_linux_builtin" != xyes; then | |
33583 | ||
df9d7621 | 33584 | grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \ |
87d546d8 TG |
33585 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
33586 | rc=$? | |
33587 | if test $rc -ne 0; then | |
33588 | export=0 | |
df9d7621 CIK |
33589 | for file in fs/dcache.c; do |
33590 | grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \ | |
87d546d8 TG |
33591 | "$LINUX/$file" 2>/dev/null |
33592 | rc=$? | |
33593 | if test $rc -eq 0; then | |
33594 | export=1 | |
33595 | break; | |
33596 | fi | |
33597 | done | |
33598 | if test $export -eq 0; then : | |
33599 | rc=1 | |
33600 | else : | |
33601 | rc=0 | |
33602 | fi | |
33603 | else : | |
33604 | rc=0 | |
33605 | fi | |
33606 | ||
33607 | fi | |
33608 | if test $rc -ne 0; then : | |
33609 | ||
33610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33611 | $as_echo "no" >&6; } | |
33612 | ||
33613 | else : | |
33614 | ||
33615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33616 | $as_echo "yes" >&6; } | |
33617 | ||
df9d7621 | 33618 | $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h |
87d546d8 TG |
33619 | |
33620 | ||
33621 | fi | |
33622 | fi | |
33623 | ||
33624 | ||
df9d7621 CIK |
33625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5 |
33626 | $as_echo_n "checking whether d_prune_aliases() is available... " >&6; } | |
87d546d8 TG |
33627 | |
33628 | ||
33629 | ||
33630 | cat confdefs.h - <<_ACEOF >conftest.c | |
33631 | ||
33632 | ||
df9d7621 | 33633 | #include <linux/dcache.h> |
87d546d8 TG |
33634 | |
33635 | int | |
33636 | main (void) | |
33637 | { | |
33638 | ||
df9d7621 CIK |
33639 | struct inode *ip = NULL; |
33640 | d_prune_aliases(ip); | |
87d546d8 TG |
33641 | |
33642 | ; | |
33643 | return 0; | |
33644 | } | |
33645 | ||
33646 | _ACEOF | |
33647 | ||
33648 | ||
33649 | ||
33650 | cat - <<_ACEOF >conftest.h | |
33651 | ||
33652 | _ACEOF | |
33653 | ||
33654 | ||
33655 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33656 | echo "obj-m := conftest.o" >build/Makefile | |
33657 | modpost_flag='' | |
33658 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33659 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33660 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33661 | (eval $ac_try) 2>&5 | |
33662 | ac_status=$? | |
33663 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33664 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33665 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33666 | (eval $ac_try) 2>&5 | |
33667 | ac_status=$? | |
33668 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33669 | test $ac_status = 0; }; }; then : | |
33670 | rc=0 | |
33671 | else | |
33672 | $as_echo "$as_me: failed program was:" >&5 | |
33673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33674 | rc=1 | |
33675 | ||
33676 | ||
33677 | fi | |
33678 | rm -Rf build | |
33679 | ||
33680 | ||
33681 | if test $rc -ne 0; then : | |
33682 | ||
33683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33684 | $as_echo "no" >&6; } | |
33685 | ||
33686 | else | |
33687 | if test "x$enable_linux_builtin" != xyes; then | |
33688 | ||
df9d7621 | 33689 | grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \ |
87d546d8 TG |
33690 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
33691 | rc=$? | |
33692 | if test $rc -ne 0; then | |
33693 | export=0 | |
df9d7621 CIK |
33694 | for file in fs/dcache.c; do |
33695 | grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \ | |
87d546d8 TG |
33696 | "$LINUX/$file" 2>/dev/null |
33697 | rc=$? | |
33698 | if test $rc -eq 0; then | |
33699 | export=1 | |
33700 | break; | |
33701 | fi | |
33702 | done | |
33703 | if test $export -eq 0; then : | |
33704 | rc=1 | |
33705 | else : | |
33706 | rc=0 | |
33707 | fi | |
33708 | else : | |
33709 | rc=0 | |
33710 | fi | |
33711 | ||
33712 | fi | |
33713 | if test $rc -ne 0; then : | |
33714 | ||
33715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33716 | $as_echo "no" >&6; } | |
33717 | ||
33718 | else : | |
33719 | ||
33720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33721 | $as_echo "yes" >&6; } | |
33722 | ||
df9d7621 | 33723 | $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h |
87d546d8 TG |
33724 | |
33725 | ||
33726 | fi | |
33727 | fi | |
33728 | ||
33729 | ||
df9d7621 CIK |
33730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5 |
33731 | $as_echo_n "checking whether d_set_d_op() is available... " >&6; } | |
87d546d8 TG |
33732 | |
33733 | ||
33734 | ||
33735 | cat confdefs.h - <<_ACEOF >conftest.c | |
33736 | ||
33737 | ||
df9d7621 | 33738 | #include <linux/dcache.h> |
87d546d8 TG |
33739 | |
33740 | int | |
33741 | main (void) | |
33742 | { | |
33743 | ||
df9d7621 | 33744 | d_set_d_op(NULL, NULL); |
87d546d8 TG |
33745 | |
33746 | ; | |
33747 | return 0; | |
33748 | } | |
33749 | ||
33750 | _ACEOF | |
33751 | ||
33752 | ||
33753 | ||
33754 | cat - <<_ACEOF >conftest.h | |
33755 | ||
33756 | _ACEOF | |
33757 | ||
33758 | ||
33759 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33760 | echo "obj-m := conftest.o" >build/Makefile | |
33761 | modpost_flag='' | |
33762 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33763 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33764 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33765 | (eval $ac_try) 2>&5 | |
33766 | ac_status=$? | |
33767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33768 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33769 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33770 | (eval $ac_try) 2>&5 | |
33771 | ac_status=$? | |
33772 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33773 | test $ac_status = 0; }; }; then : | |
33774 | rc=0 | |
33775 | else | |
33776 | $as_echo "$as_me: failed program was:" >&5 | |
33777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33778 | rc=1 | |
33779 | ||
33780 | ||
33781 | fi | |
33782 | rm -Rf build | |
33783 | ||
33784 | ||
33785 | if test $rc -ne 0; then : | |
33786 | ||
33787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33788 | $as_echo "no" >&6; } | |
33789 | ||
33790 | else | |
33791 | if test "x$enable_linux_builtin" != xyes; then | |
33792 | ||
df9d7621 | 33793 | grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \ |
87d546d8 TG |
33794 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
33795 | rc=$? | |
33796 | if test $rc -ne 0; then | |
33797 | export=0 | |
df9d7621 CIK |
33798 | for file in fs/dcache.c; do |
33799 | grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \ | |
87d546d8 TG |
33800 | "$LINUX/$file" 2>/dev/null |
33801 | rc=$? | |
33802 | if test $rc -eq 0; then | |
33803 | export=1 | |
33804 | break; | |
33805 | fi | |
33806 | done | |
33807 | if test $export -eq 0; then : | |
33808 | rc=1 | |
33809 | else : | |
33810 | rc=0 | |
33811 | fi | |
33812 | else : | |
33813 | rc=0 | |
33814 | fi | |
33815 | ||
33816 | fi | |
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 | ||
33824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33825 | $as_echo "yes" >&6; } | |
33826 | ||
df9d7621 | 33827 | $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h |
87d546d8 TG |
33828 | |
33829 | ||
33830 | fi | |
33831 | fi | |
33832 | ||
33833 | ||
87d546d8 | 33834 | |
df9d7621 CIK |
33835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5 |
33836 | $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; } | |
87d546d8 TG |
33837 | |
33838 | ||
33839 | cat confdefs.h - <<_ACEOF >conftest.c | |
33840 | ||
33841 | ||
33842 | #include <linux/dcache.h> | |
33843 | ||
df9d7621 CIK |
33844 | int revalidate (struct dentry *dentry, |
33845 | struct nameidata *nidata) { return 0; } | |
33846 | ||
33847 | static const struct dentry_operations | |
33848 | dops __attribute__ ((unused)) = { | |
33849 | .d_revalidate = revalidate, | |
33850 | }; | |
33851 | ||
87d546d8 TG |
33852 | int |
33853 | main (void) | |
33854 | { | |
33855 | ||
87d546d8 TG |
33856 | |
33857 | ; | |
33858 | return 0; | |
33859 | } | |
33860 | ||
33861 | _ACEOF | |
33862 | ||
33863 | ||
33864 | ||
33865 | cat - <<_ACEOF >conftest.h | |
33866 | ||
33867 | _ACEOF | |
33868 | ||
33869 | ||
33870 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33871 | echo "obj-m := conftest.o" >build/Makefile | |
33872 | modpost_flag='' | |
33873 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33874 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33875 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33876 | (eval $ac_try) 2>&5 | |
33877 | ac_status=$? | |
33878 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33879 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33880 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33881 | (eval $ac_try) 2>&5 | |
33882 | ac_status=$? | |
33883 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33884 | test $ac_status = 0; }; }; then : | |
87d546d8 | 33885 | |
df9d7621 CIK |
33886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33887 | $as_echo "yes" >&6; } | |
87d546d8 | 33888 | |
df9d7621 | 33889 | $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h |
87d546d8 | 33890 | |
87d546d8 | 33891 | |
df9d7621 CIK |
33892 | else |
33893 | $as_echo "$as_me: failed program was:" >&5 | |
33894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
87d546d8 TG |
33895 | |
33896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33897 | $as_echo "no" >&6; } | |
33898 | ||
87d546d8 | 33899 | |
87d546d8 | 33900 | |
df9d7621 CIK |
33901 | fi |
33902 | rm -Rf build | |
87d546d8 | 33903 | |
87d546d8 TG |
33904 | |
33905 | ||
87d546d8 | 33906 | |
df9d7621 CIK |
33907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5 |
33908 | $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; } | |
87d546d8 TG |
33909 | |
33910 | ||
33911 | cat confdefs.h - <<_ACEOF >conftest.c | |
33912 | ||
33913 | ||
33914 | #include <linux/dcache.h> | |
33915 | ||
df9d7621 CIK |
33916 | const struct dentry_operations test_d_op = { |
33917 | .d_revalidate = NULL, | |
33918 | }; | |
33919 | ||
87d546d8 TG |
33920 | int |
33921 | main (void) | |
33922 | { | |
33923 | ||
df9d7621 CIK |
33924 | struct dentry d __attribute__ ((unused)); |
33925 | ||
33926 | d.d_op = &test_d_op; | |
87d546d8 TG |
33927 | |
33928 | ; | |
33929 | return 0; | |
33930 | } | |
33931 | ||
33932 | _ACEOF | |
33933 | ||
33934 | ||
33935 | ||
33936 | cat - <<_ACEOF >conftest.h | |
33937 | ||
33938 | _ACEOF | |
33939 | ||
33940 | ||
33941 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33942 | echo "obj-m := conftest.o" >build/Makefile | |
33943 | modpost_flag='' | |
33944 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33945 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33946 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33947 | (eval $ac_try) 2>&5 | |
33948 | ac_status=$? | |
33949 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33950 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33951 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33952 | (eval $ac_try) 2>&5 | |
33953 | ac_status=$? | |
33954 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33955 | test $ac_status = 0; }; }; then : | |
87d546d8 | 33956 | |
df9d7621 CIK |
33957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33958 | $as_echo "yes" >&6; } | |
87d546d8 | 33959 | |
df9d7621 | 33960 | $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h |
87d546d8 | 33961 | |
87d546d8 | 33962 | |
df9d7621 CIK |
33963 | else |
33964 | $as_echo "$as_me: failed program was:" >&5 | |
33965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
87d546d8 TG |
33966 | |
33967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33968 | $as_echo "no" >&6; } | |
33969 | ||
87d546d8 | 33970 | |
87d546d8 | 33971 | |
df9d7621 CIK |
33972 | fi |
33973 | rm -Rf build | |
87d546d8 | 33974 | |
87d546d8 TG |
33975 | |
33976 | ||
df9d7621 CIK |
33977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5 |
33978 | $as_echo_n "checking whether check_disk_size_change() is available... " >&6; } | |
87d546d8 TG |
33979 | |
33980 | ||
33981 | ||
33982 | cat confdefs.h - <<_ACEOF >conftest.c | |
33983 | ||
33984 | ||
df9d7621 | 33985 | #include <linux/fs.h> |
87d546d8 TG |
33986 | |
33987 | int | |
33988 | main (void) | |
33989 | { | |
33990 | ||
df9d7621 | 33991 | check_disk_size_change(NULL, NULL); |
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 : | |
34021 | rc=0 | |
34022 | else | |
34023 | $as_echo "$as_me: failed program was:" >&5 | |
34024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34025 | rc=1 | |
34026 | ||
34027 | ||
34028 | fi | |
34029 | rm -Rf build | |
34030 | ||
34031 | ||
34032 | if test $rc -ne 0; then : | |
34033 | ||
34034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34035 | $as_echo "no" >&6; } | |
34036 | ||
34037 | else | |
34038 | if test "x$enable_linux_builtin" != xyes; then | |
34039 | ||
df9d7621 | 34040 | grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \ |
87d546d8 TG |
34041 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
34042 | rc=$? | |
34043 | if test $rc -ne 0; then | |
34044 | export=0 | |
df9d7621 CIK |
34045 | for file in fs/block_dev.c; do |
34046 | grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \ | |
87d546d8 TG |
34047 | "$LINUX/$file" 2>/dev/null |
34048 | rc=$? | |
34049 | if test $rc -eq 0; then | |
34050 | export=1 | |
34051 | break; | |
34052 | fi | |
34053 | done | |
34054 | if test $export -eq 0; then : | |
34055 | rc=1 | |
34056 | else : | |
34057 | rc=0 | |
34058 | fi | |
34059 | else : | |
34060 | rc=0 | |
34061 | fi | |
34062 | ||
34063 | fi | |
34064 | if test $rc -ne 0; then : | |
34065 | ||
34066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34067 | $as_echo "no" >&6; } | |
34068 | ||
34069 | else : | |
34070 | ||
34071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34072 | $as_echo "yes" >&6; } | |
34073 | ||
df9d7621 | 34074 | $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h |
87d546d8 TG |
34075 | |
34076 | ||
34077 | fi | |
34078 | fi | |
34079 | ||
34080 | ||
df9d7621 CIK |
34081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5 |
34082 | $as_echo_n "checking whether truncate_setsize() is available... " >&6; } | |
87d546d8 TG |
34083 | |
34084 | ||
34085 | ||
34086 | cat confdefs.h - <<_ACEOF >conftest.c | |
34087 | ||
34088 | ||
df9d7621 | 34089 | #include <linux/mm.h> |
87d546d8 TG |
34090 | |
34091 | int | |
34092 | main (void) | |
34093 | { | |
34094 | ||
df9d7621 | 34095 | truncate_setsize(NULL, 0); |
87d546d8 TG |
34096 | |
34097 | ; | |
34098 | return 0; | |
34099 | } | |
34100 | ||
34101 | _ACEOF | |
34102 | ||
34103 | ||
34104 | ||
34105 | cat - <<_ACEOF >conftest.h | |
34106 | ||
34107 | _ACEOF | |
34108 | ||
34109 | ||
34110 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34111 | echo "obj-m := conftest.o" >build/Makefile | |
34112 | modpost_flag='' | |
34113 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34114 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34115 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34116 | (eval $ac_try) 2>&5 | |
34117 | ac_status=$? | |
34118 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34119 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34120 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34121 | (eval $ac_try) 2>&5 | |
34122 | ac_status=$? | |
34123 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34124 | test $ac_status = 0; }; }; then : | |
34125 | rc=0 | |
34126 | else | |
34127 | $as_echo "$as_me: failed program was:" >&5 | |
34128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34129 | rc=1 | |
34130 | ||
34131 | ||
34132 | fi | |
34133 | rm -Rf build | |
34134 | ||
34135 | ||
34136 | if test $rc -ne 0; then : | |
34137 | ||
34138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34139 | $as_echo "no" >&6; } | |
34140 | ||
34141 | else | |
34142 | if test "x$enable_linux_builtin" != xyes; then | |
34143 | ||
df9d7621 | 34144 | grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \ |
87d546d8 TG |
34145 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
34146 | rc=$? | |
34147 | if test $rc -ne 0; then | |
34148 | export=0 | |
df9d7621 CIK |
34149 | for file in mm/truncate.c; do |
34150 | grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \ | |
87d546d8 TG |
34151 | "$LINUX/$file" 2>/dev/null |
34152 | rc=$? | |
34153 | if test $rc -eq 0; then | |
34154 | export=1 | |
34155 | break; | |
34156 | fi | |
34157 | done | |
34158 | if test $export -eq 0; then : | |
34159 | rc=1 | |
34160 | else : | |
34161 | rc=0 | |
34162 | fi | |
34163 | else : | |
34164 | rc=0 | |
34165 | fi | |
34166 | ||
34167 | fi | |
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 | ||
34175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34176 | $as_echo "yes" >&6; } | |
34177 | ||
df9d7621 | 34178 | $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h |
87d546d8 TG |
34179 | |
34180 | ||
34181 | fi | |
34182 | fi | |
34183 | ||
34184 | ||
34185 | ||
df9d7621 CIK |
34186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5 |
34187 | $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; } | |
87d546d8 TG |
34188 | |
34189 | ||
34190 | cat confdefs.h - <<_ACEOF >conftest.c | |
34191 | ||
34192 | ||
df9d7621 | 34193 | #include <linux/security.h> |
87d546d8 TG |
34194 | |
34195 | int | |
34196 | main (void) | |
34197 | { | |
34198 | ||
df9d7621 CIK |
34199 | struct inode *ip __attribute__ ((unused)) = NULL; |
34200 | struct inode *dip __attribute__ ((unused)) = NULL; | |
34201 | const struct qstr *str __attribute__ ((unused)) = NULL; | |
34202 | char *name __attribute__ ((unused)) = NULL; | |
34203 | void *value __attribute__ ((unused)) = NULL; | |
34204 | size_t len __attribute__ ((unused)) = 0; | |
34205 | ||
34206 | security_inode_init_security(ip, dip, str, &name, &value, &len); | |
87d546d8 TG |
34207 | |
34208 | ; | |
34209 | return 0; | |
34210 | } | |
34211 | ||
34212 | _ACEOF | |
34213 | ||
34214 | ||
34215 | ||
34216 | cat - <<_ACEOF >conftest.h | |
34217 | ||
34218 | _ACEOF | |
34219 | ||
34220 | ||
34221 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34222 | echo "obj-m := conftest.o" >build/Makefile | |
34223 | modpost_flag='' | |
34224 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34225 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34226 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34227 | (eval $ac_try) 2>&5 | |
34228 | ac_status=$? | |
34229 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34230 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34231 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34232 | (eval $ac_try) 2>&5 | |
34233 | ac_status=$? | |
34234 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34235 | test $ac_status = 0; }; }; then : | |
34236 | ||
34237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34238 | $as_echo "yes" >&6; } | |
34239 | ||
df9d7621 | 34240 | $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h |
87d546d8 TG |
34241 | |
34242 | ||
34243 | else | |
34244 | $as_echo "$as_me: failed program was:" >&5 | |
34245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34246 | ||
34247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34248 | $as_echo "no" >&6; } | |
34249 | ||
34250 | ||
34251 | ||
34252 | fi | |
34253 | rm -Rf build | |
34254 | ||
34255 | ||
34256 | ||
34257 | ||
df9d7621 CIK |
34258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5 |
34259 | $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; } | |
87d546d8 TG |
34260 | |
34261 | ||
34262 | cat confdefs.h - <<_ACEOF >conftest.c | |
34263 | ||
34264 | ||
df9d7621 | 34265 | #include <linux/security.h> |
87d546d8 TG |
34266 | |
34267 | int | |
34268 | main (void) | |
34269 | { | |
34270 | ||
df9d7621 CIK |
34271 | struct inode *ip __attribute__ ((unused)) = NULL; |
34272 | struct inode *dip __attribute__ ((unused)) = NULL; | |
34273 | const struct qstr *str __attribute__ ((unused)) = NULL; | |
34274 | initxattrs func __attribute__ ((unused)) = NULL; | |
87d546d8 | 34275 | |
df9d7621 | 34276 | security_inode_init_security(ip, dip, str, func, NULL); |
87d546d8 TG |
34277 | |
34278 | ; | |
34279 | return 0; | |
34280 | } | |
34281 | ||
34282 | _ACEOF | |
34283 | ||
34284 | ||
34285 | ||
34286 | cat - <<_ACEOF >conftest.h | |
34287 | ||
34288 | _ACEOF | |
34289 | ||
34290 | ||
34291 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34292 | echo "obj-m := conftest.o" >build/Makefile | |
34293 | modpost_flag='' | |
34294 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34295 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34296 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34297 | (eval $ac_try) 2>&5 | |
34298 | ac_status=$? | |
34299 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34300 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34301 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34302 | (eval $ac_try) 2>&5 | |
34303 | ac_status=$? | |
34304 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34305 | test $ac_status = 0; }; }; then : | |
34306 | ||
34307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34308 | $as_echo "yes" >&6; } | |
34309 | ||
df9d7621 | 34310 | $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h |
87d546d8 TG |
34311 | |
34312 | ||
34313 | else | |
34314 | $as_echo "$as_me: failed program was:" >&5 | |
34315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34316 | ||
34317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34318 | $as_echo "no" >&6; } | |
34319 | ||
34320 | ||
34321 | ||
34322 | fi | |
34323 | rm -Rf build | |
34324 | ||
34325 | ||
34326 | ||
df9d7621 CIK |
34327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5 |
34328 | $as_echo_n "checking whether mount_nodev() is available... " >&6; } | |
87d546d8 TG |
34329 | |
34330 | ||
34331 | ||
34332 | cat confdefs.h - <<_ACEOF >conftest.c | |
34333 | ||
34334 | ||
34335 | #include <linux/fs.h> | |
34336 | ||
34337 | int | |
34338 | main (void) | |
34339 | { | |
34340 | ||
df9d7621 | 34341 | mount_nodev(NULL, 0, NULL, NULL); |
87d546d8 TG |
34342 | |
34343 | ; | |
34344 | return 0; | |
34345 | } | |
34346 | ||
34347 | _ACEOF | |
34348 | ||
34349 | ||
34350 | ||
34351 | cat - <<_ACEOF >conftest.h | |
34352 | ||
34353 | _ACEOF | |
34354 | ||
34355 | ||
34356 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34357 | echo "obj-m := conftest.o" >build/Makefile | |
34358 | modpost_flag='' | |
34359 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34360 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34361 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34362 | (eval $ac_try) 2>&5 | |
34363 | ac_status=$? | |
34364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34365 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34366 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34367 | (eval $ac_try) 2>&5 | |
34368 | ac_status=$? | |
34369 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34370 | test $ac_status = 0; }; }; then : | |
34371 | rc=0 | |
34372 | else | |
34373 | $as_echo "$as_me: failed program was:" >&5 | |
34374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34375 | rc=1 | |
34376 | ||
34377 | ||
34378 | fi | |
34379 | rm -Rf build | |
34380 | ||
34381 | ||
34382 | if test $rc -ne 0; then : | |
34383 | ||
34384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34385 | $as_echo "no" >&6; } | |
34386 | ||
34387 | else | |
34388 | if test "x$enable_linux_builtin" != xyes; then | |
34389 | ||
df9d7621 | 34390 | grep -q -E '[[:space:]]mount_nodev[[:space:]]' \ |
87d546d8 TG |
34391 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
34392 | rc=$? | |
34393 | if test $rc -ne 0; then | |
34394 | export=0 | |
df9d7621 CIK |
34395 | for file in fs/super.c; do |
34396 | grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \ | |
87d546d8 TG |
34397 | "$LINUX/$file" 2>/dev/null |
34398 | rc=$? | |
34399 | if test $rc -eq 0; then | |
34400 | export=1 | |
34401 | break; | |
34402 | fi | |
34403 | done | |
34404 | if test $export -eq 0; then : | |
34405 | rc=1 | |
34406 | else : | |
34407 | rc=0 | |
34408 | fi | |
34409 | else : | |
34410 | rc=0 | |
34411 | fi | |
34412 | ||
34413 | fi | |
34414 | if test $rc -ne 0; then : | |
34415 | ||
34416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34417 | $as_echo "no" >&6; } | |
34418 | ||
34419 | else : | |
34420 | ||
34421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34422 | $as_echo "yes" >&6; } | |
34423 | ||
df9d7621 | 34424 | $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h |
87d546d8 TG |
34425 | |
34426 | ||
34427 | fi | |
34428 | fi | |
34429 | ||
34430 | ||
87d546d8 | 34431 | |
df9d7621 CIK |
34432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5 |
34433 | $as_echo_n "checking whether super_block has s_shrink... " >&6; } | |
87d546d8 TG |
34434 | |
34435 | ||
34436 | cat confdefs.h - <<_ACEOF >conftest.c | |
34437 | ||
34438 | ||
df9d7621 CIK |
34439 | #include <linux/fs.h> |
34440 | ||
34441 | int shrink(struct shrinker *s, struct shrink_control *sc) | |
34442 | { return 0; } | |
34443 | ||
34444 | static const struct super_block | |
34445 | sb __attribute__ ((unused)) = { | |
34446 | .s_shrink.shrink = shrink, | |
34447 | .s_shrink.seeks = DEFAULT_SEEKS, | |
34448 | .s_shrink.batch = 0, | |
34449 | }; | |
87d546d8 TG |
34450 | |
34451 | int | |
34452 | main (void) | |
34453 | { | |
34454 | ||
87d546d8 TG |
34455 | |
34456 | ; | |
34457 | return 0; | |
34458 | } | |
34459 | ||
34460 | _ACEOF | |
34461 | ||
34462 | ||
34463 | ||
34464 | cat - <<_ACEOF >conftest.h | |
34465 | ||
34466 | _ACEOF | |
34467 | ||
34468 | ||
34469 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34470 | echo "obj-m := conftest.o" >build/Makefile | |
34471 | modpost_flag='' | |
34472 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34473 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34474 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34475 | (eval $ac_try) 2>&5 | |
34476 | ac_status=$? | |
34477 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34478 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34479 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34480 | (eval $ac_try) 2>&5 | |
34481 | ac_status=$? | |
34482 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34483 | test $ac_status = 0; }; }; then : | |
87d546d8 | 34484 | |
df9d7621 CIK |
34485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
34486 | $as_echo "yes" >&6; } | |
87d546d8 | 34487 | |
df9d7621 | 34488 | $as_echo "#define HAVE_SHRINK 1" >>confdefs.h |
87d546d8 | 34489 | |
df9d7621 CIK |
34490 | |
34491 | ||
34492 | else | |
34493 | $as_echo "$as_me: failed program was:" >&5 | |
34494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
87d546d8 TG |
34495 | |
34496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34497 | $as_echo "no" >&6; } | |
34498 | ||
87d546d8 | 34499 | |
87d546d8 | 34500 | |
df9d7621 CIK |
34501 | fi |
34502 | rm -Rf build | |
87d546d8 | 34503 | |
87d546d8 TG |
34504 | |
34505 | ||
34506 | ||
df9d7621 CIK |
34507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5 |
34508 | $as_echo_n "checking whether shrink_control has nid... " >&6; } | |
87d546d8 TG |
34509 | |
34510 | ||
34511 | cat confdefs.h - <<_ACEOF >conftest.c | |
34512 | ||
34513 | ||
df9d7621 | 34514 | #include <linux/fs.h> |
87d546d8 TG |
34515 | |
34516 | int | |
34517 | main (void) | |
34518 | { | |
34519 | ||
df9d7621 CIK |
34520 | struct shrink_control sc __attribute__ ((unused)); |
34521 | unsigned long scnidsize __attribute__ ((unused)) = | |
34522 | sizeof(sc.nid); | |
87d546d8 TG |
34523 | |
34524 | ; | |
34525 | return 0; | |
34526 | } | |
34527 | ||
34528 | _ACEOF | |
34529 | ||
34530 | ||
34531 | ||
34532 | cat - <<_ACEOF >conftest.h | |
34533 | ||
34534 | _ACEOF | |
34535 | ||
34536 | ||
34537 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34538 | echo "obj-m := conftest.o" >build/Makefile | |
34539 | modpost_flag='' | |
34540 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34541 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34542 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34543 | (eval $ac_try) 2>&5 | |
34544 | ac_status=$? | |
34545 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34546 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34547 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34548 | (eval $ac_try) 2>&5 | |
34549 | ac_status=$? | |
34550 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34551 | test $ac_status = 0; }; }; then : | |
34552 | ||
34553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34554 | $as_echo "yes" >&6; } | |
34555 | ||
df9d7621 | 34556 | $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h |
87d546d8 TG |
34557 | |
34558 | ||
34559 | else | |
34560 | $as_echo "$as_me: failed program was:" >&5 | |
34561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34562 | ||
34563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34564 | $as_echo "no" >&6; } | |
34565 | ||
34566 | ||
34567 | ||
34568 | fi | |
34569 | rm -Rf build | |
34570 | ||
34571 | ||
34572 | ||
34573 | ||
df9d7621 CIK |
34574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5 |
34575 | $as_echo_n "checking whether super_block has s_instances list_head... " >&6; } | |
87d546d8 TG |
34576 | |
34577 | ||
34578 | cat confdefs.h - <<_ACEOF >conftest.c | |
34579 | ||
34580 | ||
df9d7621 | 34581 | #include <linux/fs.h> |
87d546d8 TG |
34582 | |
34583 | int | |
34584 | main (void) | |
34585 | { | |
34586 | ||
df9d7621 | 34587 | struct super_block sb __attribute__ ((unused)); |
87d546d8 | 34588 | |
df9d7621 | 34589 | INIT_LIST_HEAD(&sb.s_instances); |
87d546d8 TG |
34590 | |
34591 | ; | |
34592 | return 0; | |
34593 | } | |
34594 | ||
34595 | _ACEOF | |
34596 | ||
34597 | ||
34598 | ||
34599 | cat - <<_ACEOF >conftest.h | |
34600 | ||
34601 | _ACEOF | |
34602 | ||
34603 | ||
34604 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34605 | echo "obj-m := conftest.o" >build/Makefile | |
34606 | modpost_flag='' | |
34607 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34608 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34609 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34610 | (eval $ac_try) 2>&5 | |
34611 | ac_status=$? | |
34612 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34613 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34614 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34615 | (eval $ac_try) 2>&5 | |
34616 | ac_status=$? | |
34617 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34618 | test $ac_status = 0; }; }; then : | |
34619 | ||
34620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34621 | $as_echo "yes" >&6; } | |
34622 | ||
df9d7621 | 34623 | $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h |
87d546d8 TG |
34624 | |
34625 | ||
34626 | else | |
34627 | $as_echo "$as_me: failed program was:" >&5 | |
34628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34629 | ||
34630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34631 | $as_echo "no" >&6; } | |
34632 | ||
34633 | ||
34634 | ||
34635 | fi | |
34636 | rm -Rf build | |
34637 | ||
34638 | ||
34639 | ||
df9d7621 CIK |
34640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5 |
34641 | $as_echo_n "checking whether super_block has s_d_op... " >&6; } | |
87d546d8 TG |
34642 | |
34643 | ||
34644 | cat confdefs.h - <<_ACEOF >conftest.c | |
34645 | ||
34646 | ||
34647 | #include <linux/fs.h> | |
34648 | ||
34649 | int | |
34650 | main (void) | |
34651 | { | |
34652 | ||
df9d7621 CIK |
34653 | struct super_block sb __attribute__ ((unused)); |
34654 | sb.s_d_op = NULL; | |
87d546d8 TG |
34655 | |
34656 | ; | |
34657 | return 0; | |
34658 | } | |
34659 | ||
34660 | _ACEOF | |
34661 | ||
34662 | ||
34663 | ||
34664 | cat - <<_ACEOF >conftest.h | |
34665 | ||
34666 | _ACEOF | |
34667 | ||
34668 | ||
34669 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34670 | echo "obj-m := conftest.o" >build/Makefile | |
34671 | modpost_flag='' | |
34672 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34673 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34674 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34675 | (eval $ac_try) 2>&5 | |
34676 | ac_status=$? | |
34677 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34678 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34679 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34680 | (eval $ac_try) 2>&5 | |
34681 | ac_status=$? | |
34682 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34683 | test $ac_status = 0; }; }; then : | |
87d546d8 | 34684 | |
df9d7621 CIK |
34685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
34686 | $as_echo "yes" >&6; } | |
87d546d8 | 34687 | |
df9d7621 | 34688 | $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h |
87d546d8 | 34689 | |
87d546d8 | 34690 | |
df9d7621 CIK |
34691 | else |
34692 | $as_echo "$as_me: failed program was:" >&5 | |
34693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
87d546d8 TG |
34694 | |
34695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34696 | $as_echo "no" >&6; } | |
34697 | ||
87d546d8 | 34698 | |
87d546d8 | 34699 | |
df9d7621 CIK |
34700 | fi |
34701 | rm -Rf build | |
87d546d8 TG |
34702 | |
34703 | ||
87d546d8 TG |
34704 | |
34705 | ||
df9d7621 CIK |
34706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5 |
34707 | $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; } | |
87d546d8 | 34708 | |
87d546d8 TG |
34709 | |
34710 | ||
34711 | cat confdefs.h - <<_ACEOF >conftest.c | |
34712 | ||
34713 | ||
34714 | #include <linux/fs.h> | |
df9d7621 | 34715 | struct super_block sb; |
87d546d8 TG |
34716 | |
34717 | int | |
34718 | main (void) | |
34719 | { | |
34720 | ||
df9d7621 CIK |
34721 | char *name = "bdi"; |
34722 | int error __attribute__((unused)) = | |
34723 | super_setup_bdi_name(&sb, name); | |
87d546d8 TG |
34724 | |
34725 | ; | |
34726 | return 0; | |
34727 | } | |
34728 | ||
34729 | _ACEOF | |
34730 | ||
34731 | ||
34732 | ||
34733 | cat - <<_ACEOF >conftest.h | |
34734 | ||
34735 | _ACEOF | |
34736 | ||
34737 | ||
34738 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34739 | echo "obj-m := conftest.o" >build/Makefile | |
34740 | modpost_flag='' | |
34741 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34742 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34743 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34744 | (eval $ac_try) 2>&5 | |
34745 | ac_status=$? | |
34746 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34747 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34748 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34749 | (eval $ac_try) 2>&5 | |
34750 | ac_status=$? | |
34751 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34752 | test $ac_status = 0; }; }; then : | |
df9d7621 | 34753 | rc=0 |
87d546d8 TG |
34754 | else |
34755 | $as_echo "$as_me: failed program was:" >&5 | |
34756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
df9d7621 | 34757 | rc=1 |
87d546d8 TG |
34758 | |
34759 | ||
34760 | fi | |
34761 | rm -Rf build | |
34762 | ||
34763 | ||
df9d7621 | 34764 | if test $rc -ne 0; then : |
87d546d8 | 34765 | |
df9d7621 CIK |
34766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
34767 | $as_echo "no" >&6; } | |
34768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5 | |
34769 | $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; } | |
87d546d8 | 34770 | |
87d546d8 TG |
34771 | |
34772 | ||
34773 | cat confdefs.h - <<_ACEOF >conftest.c | |
34774 | ||
34775 | ||
df9d7621 CIK |
34776 | #include <linux/backing-dev.h> |
34777 | struct backing_dev_info bdi; | |
87d546d8 TG |
34778 | |
34779 | int | |
34780 | main (void) | |
34781 | { | |
34782 | ||
df9d7621 CIK |
34783 | char *name = "bdi"; |
34784 | int error __attribute__((unused)) = | |
34785 | bdi_setup_and_register(&bdi, name); | |
87d546d8 TG |
34786 | |
34787 | ; | |
34788 | return 0; | |
34789 | } | |
34790 | ||
34791 | _ACEOF | |
34792 | ||
34793 | ||
34794 | ||
34795 | cat - <<_ACEOF >conftest.h | |
34796 | ||
34797 | _ACEOF | |
34798 | ||
34799 | ||
34800 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34801 | echo "obj-m := conftest.o" >build/Makefile | |
34802 | modpost_flag='' | |
34803 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34804 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34805 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34806 | (eval $ac_try) 2>&5 | |
34807 | ac_status=$? | |
34808 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34809 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
df9d7621 | 34815 | rc=0 |
87d546d8 TG |
34816 | else |
34817 | $as_echo "$as_me: failed program was:" >&5 | |
34818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
df9d7621 | 34819 | rc=1 |
87d546d8 TG |
34820 | |
34821 | ||
34822 | fi | |
34823 | rm -Rf build | |
34824 | ||
34825 | ||
df9d7621 | 34826 | if test $rc -ne 0; then : |
87d546d8 | 34827 | |
df9d7621 CIK |
34828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
34829 | $as_echo "no" >&6; } | |
34830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 | |
34831 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
87d546d8 | 34832 | |
87d546d8 TG |
34833 | |
34834 | ||
34835 | cat confdefs.h - <<_ACEOF >conftest.c | |
34836 | ||
34837 | ||
df9d7621 CIK |
34838 | #include <linux/backing-dev.h> |
34839 | struct backing_dev_info bdi; | |
87d546d8 TG |
34840 | |
34841 | int | |
34842 | main (void) | |
34843 | { | |
34844 | ||
df9d7621 CIK |
34845 | char *name = "bdi"; |
34846 | unsigned int cap = BDI_CAP_MAP_COPY; | |
34847 | int error __attribute__((unused)) = | |
34848 | bdi_setup_and_register(&bdi, name, cap); | |
87d546d8 TG |
34849 | |
34850 | ; | |
34851 | return 0; | |
34852 | } | |
34853 | ||
34854 | _ACEOF | |
34855 | ||
34856 | ||
34857 | ||
34858 | cat - <<_ACEOF >conftest.h | |
34859 | ||
34860 | _ACEOF | |
34861 | ||
34862 | ||
34863 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34864 | echo "obj-m := conftest.o" >build/Makefile | |
34865 | modpost_flag='' | |
34866 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34867 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34868 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34869 | (eval $ac_try) 2>&5 | |
34870 | ac_status=$? | |
34871 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34872 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34873 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34874 | (eval $ac_try) 2>&5 | |
34875 | ac_status=$? | |
34876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34877 | test $ac_status = 0; }; }; then : | |
df9d7621 CIK |
34878 | rc=0 |
34879 | else | |
34880 | $as_echo "$as_me: failed program was:" >&5 | |
34881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34882 | rc=1 | |
87d546d8 | 34883 | |
87d546d8 | 34884 | |
df9d7621 CIK |
34885 | fi |
34886 | rm -Rf build | |
87d546d8 TG |
34887 | |
34888 | ||
df9d7621 | 34889 | if test $rc -ne 0; then : |
87d546d8 | 34890 | |
df9d7621 | 34891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
34892 | $as_echo "no" >&6; } |
34893 | ||
df9d7621 CIK |
34894 | else |
34895 | if test "x$enable_linux_builtin" != xyes; then | |
34896 | ||
34897 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
34898 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
34899 | rc=$? | |
34900 | if test $rc -ne 0; then | |
34901 | export=0 | |
34902 | for file in mm/backing-dev.c; do | |
34903 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
34904 | "$LINUX/$file" 2>/dev/null | |
34905 | rc=$? | |
34906 | if test $rc -eq 0; then | |
34907 | export=1 | |
34908 | break; | |
34909 | fi | |
34910 | done | |
34911 | if test $export -eq 0; then : | |
34912 | rc=1 | |
34913 | else : | |
34914 | rc=0 | |
34915 | fi | |
34916 | else : | |
34917 | rc=0 | |
34918 | fi | |
87d546d8 | 34919 | |
df9d7621 CIK |
34920 | fi |
34921 | if test $rc -ne 0; then : | |
87d546d8 | 34922 | |
df9d7621 CIK |
34923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
34924 | $as_echo "no" >&6; } | |
34925 | ||
34926 | else : | |
34927 | ||
34928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34929 | $as_echo "yes" >&6; } | |
34930 | ||
34931 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
34932 | ||
34933 | ||
34934 | fi | |
34935 | fi | |
34936 | ||
34937 | ||
34938 | else | |
34939 | if test "x$enable_linux_builtin" != xyes; then | |
34940 | ||
34941 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
34942 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
34943 | rc=$? | |
34944 | if test $rc -ne 0; then | |
34945 | export=0 | |
34946 | for file in mm/backing-dev.c; do | |
34947 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
34948 | "$LINUX/$file" 2>/dev/null | |
34949 | rc=$? | |
34950 | if test $rc -eq 0; then | |
34951 | export=1 | |
34952 | break; | |
34953 | fi | |
34954 | done | |
34955 | if test $export -eq 0; then : | |
34956 | rc=1 | |
34957 | else : | |
34958 | rc=0 | |
34959 | fi | |
34960 | else : | |
34961 | rc=0 | |
34962 | fi | |
87d546d8 | 34963 | |
df9d7621 CIK |
34964 | fi |
34965 | if test $rc -ne 0; then : | |
87d546d8 | 34966 | |
df9d7621 CIK |
34967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
34968 | $as_echo "no" >&6; } | |
34969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 | |
34970 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
87d546d8 | 34971 | |
87d546d8 TG |
34972 | |
34973 | ||
34974 | cat confdefs.h - <<_ACEOF >conftest.c | |
34975 | ||
34976 | ||
df9d7621 CIK |
34977 | #include <linux/backing-dev.h> |
34978 | struct backing_dev_info bdi; | |
87d546d8 TG |
34979 | |
34980 | int | |
34981 | main (void) | |
34982 | { | |
34983 | ||
df9d7621 CIK |
34984 | char *name = "bdi"; |
34985 | unsigned int cap = BDI_CAP_MAP_COPY; | |
34986 | int error __attribute__((unused)) = | |
34987 | bdi_setup_and_register(&bdi, name, cap); | |
87d546d8 TG |
34988 | |
34989 | ; | |
34990 | return 0; | |
34991 | } | |
34992 | ||
34993 | _ACEOF | |
34994 | ||
34995 | ||
34996 | ||
34997 | cat - <<_ACEOF >conftest.h | |
34998 | ||
34999 | _ACEOF | |
35000 | ||
35001 | ||
35002 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35003 | echo "obj-m := conftest.o" >build/Makefile | |
35004 | modpost_flag='' | |
35005 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35006 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35007 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35008 | (eval $ac_try) 2>&5 | |
35009 | ac_status=$? | |
35010 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35011 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35012 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35013 | (eval $ac_try) 2>&5 | |
35014 | ac_status=$? | |
35015 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35016 | test $ac_status = 0; }; }; then : | |
df9d7621 CIK |
35017 | rc=0 |
35018 | else | |
35019 | $as_echo "$as_me: failed program was:" >&5 | |
35020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35021 | rc=1 | |
87d546d8 | 35022 | |
87d546d8 | 35023 | |
df9d7621 CIK |
35024 | fi |
35025 | rm -Rf build | |
87d546d8 TG |
35026 | |
35027 | ||
df9d7621 | 35028 | if test $rc -ne 0; then : |
87d546d8 | 35029 | |
df9d7621 | 35030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
35031 | $as_echo "no" >&6; } |
35032 | ||
df9d7621 CIK |
35033 | else |
35034 | if test "x$enable_linux_builtin" != xyes; then | |
35035 | ||
35036 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
35037 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35038 | rc=$? | |
35039 | if test $rc -ne 0; then | |
35040 | export=0 | |
35041 | for file in mm/backing-dev.c; do | |
35042 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
35043 | "$LINUX/$file" 2>/dev/null | |
35044 | rc=$? | |
35045 | if test $rc -eq 0; then | |
35046 | export=1 | |
35047 | break; | |
35048 | fi | |
35049 | done | |
35050 | if test $export -eq 0; then : | |
35051 | rc=1 | |
35052 | else : | |
35053 | rc=0 | |
35054 | fi | |
35055 | else : | |
35056 | rc=0 | |
35057 | fi | |
87d546d8 | 35058 | |
df9d7621 CIK |
35059 | fi |
35060 | if test $rc -ne 0; then : | |
87d546d8 | 35061 | |
df9d7621 CIK |
35062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
35063 | $as_echo "no" >&6; } | |
87d546d8 | 35064 | |
df9d7621 CIK |
35065 | else : |
35066 | ||
35067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35068 | $as_echo "yes" >&6; } | |
35069 | ||
35070 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
35071 | ||
35072 | ||
35073 | fi | |
35074 | fi | |
35075 | ||
35076 | ||
35077 | else : | |
35078 | ||
35079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35080 | $as_echo "yes" >&6; } | |
87d546d8 | 35081 | |
df9d7621 CIK |
35082 | $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h |
35083 | ||
35084 | ||
35085 | fi | |
35086 | fi | |
35087 | ||
35088 | ||
35089 | else | |
35090 | if test "x$enable_linux_builtin" != xyes; then | |
35091 | ||
35092 | grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \ | |
35093 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35094 | rc=$? | |
35095 | if test $rc -ne 0; then | |
35096 | export=0 | |
35097 | for file in fs/super.c; do | |
35098 | grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \ | |
35099 | "$LINUX/$file" 2>/dev/null | |
35100 | rc=$? | |
35101 | if test $rc -eq 0; then | |
35102 | export=1 | |
35103 | break; | |
35104 | fi | |
35105 | done | |
35106 | if test $export -eq 0; then : | |
35107 | rc=1 | |
35108 | else : | |
35109 | rc=0 | |
35110 | fi | |
35111 | else : | |
35112 | rc=0 | |
35113 | fi | |
87d546d8 | 35114 | |
df9d7621 CIK |
35115 | fi |
35116 | if test $rc -ne 0; then : | |
87d546d8 | 35117 | |
df9d7621 CIK |
35118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
35119 | $as_echo "no" >&6; } | |
35120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5 | |
87d546d8 TG |
35121 | $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; } |
35122 | ||
35123 | ||
35124 | ||
35125 | cat confdefs.h - <<_ACEOF >conftest.c | |
35126 | ||
35127 | ||
df9d7621 CIK |
35128 | #include <linux/backing-dev.h> |
35129 | struct backing_dev_info bdi; | |
87d546d8 TG |
35130 | |
35131 | int | |
35132 | main (void) | |
35133 | { | |
35134 | ||
df9d7621 CIK |
35135 | char *name = "bdi"; |
35136 | int error __attribute__((unused)) = | |
35137 | bdi_setup_and_register(&bdi, name); | |
87d546d8 TG |
35138 | |
35139 | ; | |
35140 | return 0; | |
35141 | } | |
35142 | ||
35143 | _ACEOF | |
35144 | ||
35145 | ||
35146 | ||
35147 | cat - <<_ACEOF >conftest.h | |
35148 | ||
35149 | _ACEOF | |
35150 | ||
35151 | ||
35152 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35153 | echo "obj-m := conftest.o" >build/Makefile | |
35154 | modpost_flag='' | |
35155 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35156 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35157 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35158 | (eval $ac_try) 2>&5 | |
35159 | ac_status=$? | |
35160 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35161 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35162 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35163 | (eval $ac_try) 2>&5 | |
35164 | ac_status=$? | |
35165 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35166 | test $ac_status = 0; }; }; then : | |
35167 | rc=0 | |
35168 | else | |
35169 | $as_echo "$as_me: failed program was:" >&5 | |
35170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35171 | rc=1 | |
35172 | ||
35173 | ||
35174 | fi | |
35175 | rm -Rf build | |
35176 | ||
35177 | ||
35178 | if test $rc -ne 0; then : | |
35179 | ||
df9d7621 | 35180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 | 35181 | $as_echo "no" >&6; } |
df9d7621 | 35182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 |
87d546d8 TG |
35183 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } |
35184 | ||
35185 | ||
35186 | ||
35187 | cat confdefs.h - <<_ACEOF >conftest.c | |
35188 | ||
35189 | ||
df9d7621 CIK |
35190 | #include <linux/backing-dev.h> |
35191 | struct backing_dev_info bdi; | |
87d546d8 TG |
35192 | |
35193 | int | |
35194 | main (void) | |
35195 | { | |
35196 | ||
df9d7621 CIK |
35197 | char *name = "bdi"; |
35198 | unsigned int cap = BDI_CAP_MAP_COPY; | |
35199 | int error __attribute__((unused)) = | |
35200 | bdi_setup_and_register(&bdi, name, cap); | |
87d546d8 TG |
35201 | |
35202 | ; | |
35203 | return 0; | |
35204 | } | |
35205 | ||
35206 | _ACEOF | |
35207 | ||
35208 | ||
35209 | ||
35210 | cat - <<_ACEOF >conftest.h | |
35211 | ||
35212 | _ACEOF | |
35213 | ||
35214 | ||
35215 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35216 | echo "obj-m := conftest.o" >build/Makefile | |
35217 | modpost_flag='' | |
35218 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35219 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35220 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35221 | (eval $ac_try) 2>&5 | |
35222 | ac_status=$? | |
35223 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35224 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35225 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35226 | (eval $ac_try) 2>&5 | |
35227 | ac_status=$? | |
35228 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35229 | test $ac_status = 0; }; }; then : | |
35230 | rc=0 | |
35231 | else | |
35232 | $as_echo "$as_me: failed program was:" >&5 | |
35233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35234 | rc=1 | |
35235 | ||
35236 | ||
35237 | fi | |
35238 | rm -Rf build | |
35239 | ||
35240 | ||
35241 | if test $rc -ne 0; then : | |
35242 | ||
df9d7621 | 35243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
35244 | $as_echo "no" >&6; } |
35245 | ||
35246 | else | |
35247 | if test "x$enable_linux_builtin" != xyes; then | |
35248 | ||
35249 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
35250 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35251 | rc=$? | |
35252 | if test $rc -ne 0; then | |
35253 | export=0 | |
35254 | for file in mm/backing-dev.c; do | |
35255 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
35256 | "$LINUX/$file" 2>/dev/null | |
35257 | rc=$? | |
35258 | if test $rc -eq 0; then | |
35259 | export=1 | |
35260 | break; | |
35261 | fi | |
35262 | done | |
35263 | if test $export -eq 0; then : | |
35264 | rc=1 | |
35265 | else : | |
35266 | rc=0 | |
35267 | fi | |
35268 | else : | |
35269 | rc=0 | |
35270 | fi | |
35271 | ||
35272 | fi | |
35273 | if test $rc -ne 0; then : | |
35274 | ||
df9d7621 | 35275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
35276 | $as_echo "no" >&6; } |
35277 | ||
35278 | else : | |
35279 | ||
df9d7621 | 35280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
35281 | $as_echo "yes" >&6; } |
35282 | ||
35283 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
35284 | ||
35285 | ||
35286 | fi | |
35287 | fi | |
35288 | ||
35289 | ||
35290 | else | |
35291 | if test "x$enable_linux_builtin" != xyes; then | |
35292 | ||
35293 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
35294 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35295 | rc=$? | |
35296 | if test $rc -ne 0; then | |
35297 | export=0 | |
35298 | for file in mm/backing-dev.c; do | |
35299 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
35300 | "$LINUX/$file" 2>/dev/null | |
35301 | rc=$? | |
35302 | if test $rc -eq 0; then | |
35303 | export=1 | |
35304 | break; | |
35305 | fi | |
35306 | done | |
35307 | if test $export -eq 0; then : | |
35308 | rc=1 | |
35309 | else : | |
35310 | rc=0 | |
35311 | fi | |
35312 | else : | |
35313 | rc=0 | |
35314 | fi | |
35315 | ||
35316 | fi | |
35317 | if test $rc -ne 0; then : | |
35318 | ||
df9d7621 | 35319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 | 35320 | $as_echo "no" >&6; } |
df9d7621 | 35321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 |
87d546d8 TG |
35322 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } |
35323 | ||
35324 | ||
35325 | ||
35326 | cat confdefs.h - <<_ACEOF >conftest.c | |
35327 | ||
35328 | ||
df9d7621 CIK |
35329 | #include <linux/backing-dev.h> |
35330 | struct backing_dev_info bdi; | |
87d546d8 TG |
35331 | |
35332 | int | |
35333 | main (void) | |
35334 | { | |
35335 | ||
df9d7621 CIK |
35336 | char *name = "bdi"; |
35337 | unsigned int cap = BDI_CAP_MAP_COPY; | |
35338 | int error __attribute__((unused)) = | |
35339 | bdi_setup_and_register(&bdi, name, cap); | |
87d546d8 TG |
35340 | |
35341 | ; | |
35342 | return 0; | |
35343 | } | |
35344 | ||
35345 | _ACEOF | |
35346 | ||
35347 | ||
35348 | ||
35349 | cat - <<_ACEOF >conftest.h | |
35350 | ||
35351 | _ACEOF | |
35352 | ||
35353 | ||
35354 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35355 | echo "obj-m := conftest.o" >build/Makefile | |
35356 | modpost_flag='' | |
35357 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35358 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35359 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35360 | (eval $ac_try) 2>&5 | |
35361 | ac_status=$? | |
35362 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35363 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35364 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35365 | (eval $ac_try) 2>&5 | |
35366 | ac_status=$? | |
35367 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35368 | test $ac_status = 0; }; }; then : | |
35369 | rc=0 | |
35370 | else | |
35371 | $as_echo "$as_me: failed program was:" >&5 | |
35372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35373 | rc=1 | |
35374 | ||
35375 | ||
35376 | fi | |
35377 | rm -Rf build | |
35378 | ||
35379 | ||
35380 | if test $rc -ne 0; then : | |
35381 | ||
df9d7621 | 35382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
35383 | $as_echo "no" >&6; } |
35384 | ||
35385 | else | |
35386 | if test "x$enable_linux_builtin" != xyes; then | |
35387 | ||
35388 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
35389 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35390 | rc=$? | |
35391 | if test $rc -ne 0; then | |
35392 | export=0 | |
35393 | for file in mm/backing-dev.c; do | |
35394 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
35395 | "$LINUX/$file" 2>/dev/null | |
35396 | rc=$? | |
35397 | if test $rc -eq 0; then | |
35398 | export=1 | |
35399 | break; | |
35400 | fi | |
35401 | done | |
35402 | if test $export -eq 0; then : | |
35403 | rc=1 | |
35404 | else : | |
35405 | rc=0 | |
35406 | fi | |
35407 | else : | |
35408 | rc=0 | |
35409 | fi | |
35410 | ||
35411 | fi | |
35412 | if test $rc -ne 0; then : | |
35413 | ||
df9d7621 | 35414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
35415 | $as_echo "no" >&6; } |
35416 | ||
35417 | else : | |
35418 | ||
df9d7621 | 35419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
35420 | $as_echo "yes" >&6; } |
35421 | ||
35422 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
35423 | ||
35424 | ||
35425 | fi | |
35426 | fi | |
35427 | ||
35428 | ||
35429 | else : | |
35430 | ||
df9d7621 | 35431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
35432 | $as_echo "yes" >&6; } |
35433 | ||
35434 | $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
35435 | ||
35436 | ||
35437 | fi | |
35438 | fi | |
35439 | ||
35440 | ||
df9d7621 CIK |
35441 | else : |
35442 | ||
35443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35444 | $as_echo "yes" >&6; } | |
35445 | ||
35446 | $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h | |
35447 | ||
35448 | ||
35449 | fi | |
35450 | fi | |
35451 | ||
35452 | ||
87d546d8 TG |
35453 | |
35454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5 | |
35455 | $as_echo_n "checking whether set_nlink() is available... " >&6; } | |
35456 | ||
35457 | ||
35458 | cat confdefs.h - <<_ACEOF >conftest.c | |
35459 | ||
35460 | ||
35461 | #include <linux/fs.h> | |
35462 | ||
35463 | int | |
35464 | main (void) | |
35465 | { | |
35466 | ||
35467 | struct inode node; | |
35468 | unsigned int link = 0; | |
35469 | (void) set_nlink(&node, link); | |
35470 | ||
35471 | ; | |
35472 | return 0; | |
35473 | } | |
35474 | ||
35475 | _ACEOF | |
35476 | ||
35477 | ||
35478 | ||
35479 | cat - <<_ACEOF >conftest.h | |
35480 | ||
35481 | _ACEOF | |
35482 | ||
35483 | ||
35484 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35485 | echo "obj-m := conftest.o" >build/Makefile | |
35486 | modpost_flag='' | |
35487 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35488 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35489 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35490 | (eval $ac_try) 2>&5 | |
35491 | ac_status=$? | |
35492 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35493 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35494 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35495 | (eval $ac_try) 2>&5 | |
35496 | ac_status=$? | |
35497 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35498 | test $ac_status = 0; }; }; then : | |
35499 | ||
35500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35501 | $as_echo "yes" >&6; } | |
35502 | ||
35503 | $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h | |
35504 | ||
35505 | ||
35506 | else | |
35507 | $as_echo "$as_me: failed program was:" >&5 | |
35508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35509 | ||
35510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35511 | $as_echo "no" >&6; } | |
35512 | ||
35513 | ||
35514 | ||
35515 | fi | |
35516 | rm -Rf build | |
35517 | ||
35518 | ||
35519 | ||
35520 | ||
35521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5 | |
35522 | $as_echo_n "checking whether elevator_change() is available... " >&6; } | |
35523 | tmp_flags="$EXTRA_KCFLAGS" | |
35524 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
35525 | ||
35526 | ||
35527 | cat confdefs.h - <<_ACEOF >conftest.c | |
35528 | ||
35529 | ||
35530 | #include <linux/blkdev.h> | |
35531 | #include <linux/elevator.h> | |
35532 | ||
35533 | int | |
35534 | main (void) | |
35535 | { | |
35536 | ||
35537 | int ret; | |
35538 | struct request_queue *q = NULL; | |
35539 | char *elevator = NULL; | |
35540 | ret = elevator_change(q, elevator); | |
35541 | ||
35542 | ; | |
35543 | return 0; | |
35544 | } | |
35545 | ||
35546 | _ACEOF | |
35547 | ||
35548 | ||
35549 | ||
35550 | cat - <<_ACEOF >conftest.h | |
35551 | ||
35552 | _ACEOF | |
35553 | ||
35554 | ||
35555 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35556 | echo "obj-m := conftest.o" >build/Makefile | |
35557 | modpost_flag='' | |
35558 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35559 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35560 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35561 | (eval $ac_try) 2>&5 | |
35562 | ac_status=$? | |
35563 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35564 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35565 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35566 | (eval $ac_try) 2>&5 | |
35567 | ac_status=$? | |
35568 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35569 | test $ac_status = 0; }; }; then : | |
35570 | ||
35571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35572 | $as_echo "yes" >&6; } | |
35573 | ||
35574 | $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h | |
35575 | ||
35576 | ||
35577 | else | |
35578 | $as_echo "$as_me: failed program was:" >&5 | |
35579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35580 | ||
35581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35582 | $as_echo "no" >&6; } | |
35583 | ||
35584 | ||
35585 | ||
35586 | fi | |
35587 | rm -Rf build | |
35588 | ||
35589 | ||
35590 | EXTRA_KCFLAGS="$tmp_flags" | |
35591 | ||
35592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5 | |
35593 | $as_echo_n "checking whether sget() wants 5 args... " >&6; } | |
35594 | ||
35595 | ||
35596 | cat confdefs.h - <<_ACEOF >conftest.c | |
35597 | ||
35598 | ||
35599 | #include <linux/fs.h> | |
35600 | ||
35601 | int | |
35602 | main (void) | |
35603 | { | |
35604 | ||
35605 | struct file_system_type *type = NULL; | |
35606 | int (*test)(struct super_block *,void *) = NULL; | |
35607 | int (*set)(struct super_block *,void *) = NULL; | |
35608 | int flags = 0; | |
35609 | void *data = NULL; | |
35610 | (void) sget(type, test, set, flags, data); | |
35611 | ||
35612 | ; | |
35613 | return 0; | |
35614 | } | |
35615 | ||
35616 | _ACEOF | |
35617 | ||
35618 | ||
35619 | ||
35620 | cat - <<_ACEOF >conftest.h | |
35621 | ||
35622 | _ACEOF | |
35623 | ||
35624 | ||
35625 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35626 | echo "obj-m := conftest.o" >build/Makefile | |
35627 | modpost_flag='' | |
35628 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35629 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
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; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35635 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35636 | (eval $ac_try) 2>&5 | |
35637 | ac_status=$? | |
35638 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35639 | test $ac_status = 0; }; }; then : | |
35640 | ||
35641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35642 | $as_echo "yes" >&6; } | |
35643 | ||
35644 | $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h | |
35645 | ||
35646 | ||
35647 | else | |
35648 | $as_echo "$as_me: failed program was:" >&5 | |
35649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35650 | ||
35651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35652 | $as_echo "no" >&6; } | |
35653 | ||
35654 | ||
35655 | ||
35656 | fi | |
35657 | rm -Rf build | |
35658 | ||
35659 | ||
35660 | ||
35661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5 | |
35662 | $as_echo_n "checking whether lseek_execute() is available... " >&6; } | |
35663 | ||
35664 | ||
35665 | ||
35666 | cat confdefs.h - <<_ACEOF >conftest.c | |
35667 | ||
35668 | ||
35669 | #include <linux/fs.h> | |
35670 | ||
35671 | int | |
35672 | main (void) | |
35673 | { | |
35674 | ||
35675 | struct file *fp __attribute__ ((unused)) = NULL; | |
35676 | struct inode *ip __attribute__ ((unused)) = NULL; | |
35677 | loff_t offset __attribute__ ((unused)) = 0; | |
35678 | loff_t maxsize __attribute__ ((unused)) = 0; | |
35679 | ||
35680 | lseek_execute(fp, ip, offset, maxsize); | |
35681 | ||
35682 | ; | |
35683 | return 0; | |
35684 | } | |
35685 | ||
35686 | _ACEOF | |
35687 | ||
35688 | ||
35689 | ||
35690 | cat - <<_ACEOF >conftest.h | |
35691 | ||
35692 | _ACEOF | |
35693 | ||
35694 | ||
35695 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35696 | echo "obj-m := conftest.o" >build/Makefile | |
35697 | modpost_flag='' | |
35698 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35699 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35700 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35701 | (eval $ac_try) 2>&5 | |
35702 | ac_status=$? | |
35703 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35704 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35705 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35706 | (eval $ac_try) 2>&5 | |
35707 | ac_status=$? | |
35708 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35709 | test $ac_status = 0; }; }; then : | |
35710 | rc=0 | |
35711 | else | |
35712 | $as_echo "$as_me: failed program was:" >&5 | |
35713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35714 | rc=1 | |
35715 | ||
35716 | ||
35717 | fi | |
35718 | rm -Rf build | |
35719 | ||
35720 | ||
35721 | if test $rc -ne 0; then : | |
35722 | ||
35723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35724 | $as_echo "no" >&6; } | |
35725 | ||
35726 | else | |
35727 | if test "x$enable_linux_builtin" != xyes; then | |
35728 | ||
35729 | grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \ | |
35730 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35731 | rc=$? | |
35732 | if test $rc -ne 0; then | |
35733 | export=0 | |
35734 | for file in fs/read_write.c; do | |
35735 | grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \ | |
35736 | "$LINUX/$file" 2>/dev/null | |
35737 | rc=$? | |
35738 | if test $rc -eq 0; then | |
35739 | export=1 | |
35740 | break; | |
35741 | fi | |
35742 | done | |
35743 | if test $export -eq 0; then : | |
35744 | rc=1 | |
35745 | else : | |
35746 | rc=0 | |
35747 | fi | |
35748 | else : | |
35749 | rc=0 | |
35750 | fi | |
35751 | ||
35752 | fi | |
35753 | if test $rc -ne 0; then : | |
35754 | ||
35755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35756 | $as_echo "no" >&6; } | |
35757 | ||
35758 | else : | |
35759 | ||
35760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35761 | $as_echo "yes" >&6; } | |
35762 | ||
35763 | $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h | |
35764 | ||
35765 | ||
35766 | fi | |
35767 | fi | |
35768 | ||
35769 | ||
35770 | ||
35771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5 | |
35772 | $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; } | |
35773 | ||
35774 | ||
35775 | cat confdefs.h - <<_ACEOF >conftest.c | |
35776 | ||
35777 | ||
35778 | #include <linux/fs.h> | |
35779 | int iterate(struct file *filp, struct dir_context * context) | |
35780 | { return 0; } | |
35781 | ||
35782 | static const struct file_operations fops | |
35783 | __attribute__ ((unused)) = { | |
35784 | .iterate_shared = iterate, | |
35785 | }; | |
35786 | ||
35787 | int | |
35788 | main (void) | |
35789 | { | |
35790 | ||
35791 | ||
35792 | ; | |
35793 | return 0; | |
35794 | } | |
35795 | ||
35796 | _ACEOF | |
35797 | ||
35798 | ||
35799 | ||
35800 | cat - <<_ACEOF >conftest.h | |
35801 | ||
35802 | _ACEOF | |
35803 | ||
35804 | ||
35805 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35806 | echo "obj-m := conftest.o" >build/Makefile | |
35807 | modpost_flag='' | |
35808 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35809 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35810 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35811 | (eval $ac_try) 2>&5 | |
35812 | ac_status=$? | |
35813 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35814 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35815 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35816 | (eval $ac_try) 2>&5 | |
35817 | ac_status=$? | |
35818 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35819 | test $ac_status = 0; }; }; then : | |
35820 | ||
35821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35822 | $as_echo "yes" >&6; } | |
35823 | ||
35824 | $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h | |
35825 | ||
35826 | ||
35827 | else | |
35828 | $as_echo "$as_me: failed program was:" >&5 | |
35829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35830 | ||
35831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35832 | $as_echo "no" >&6; } | |
35833 | ||
35834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5 | |
35835 | $as_echo_n "checking whether fops->iterate() is available... " >&6; } | |
35836 | ||
35837 | ||
35838 | cat confdefs.h - <<_ACEOF >conftest.c | |
35839 | ||
35840 | ||
35841 | #include <linux/fs.h> | |
35842 | int iterate(struct file *filp, struct dir_context * context) | |
35843 | { return 0; } | |
35844 | ||
35845 | static const struct file_operations fops | |
35846 | __attribute__ ((unused)) = { | |
35847 | .iterate = iterate, | |
35848 | }; | |
35849 | ||
35850 | int | |
35851 | main (void) | |
35852 | { | |
35853 | ||
35854 | ||
35855 | ; | |
35856 | return 0; | |
35857 | } | |
35858 | ||
35859 | _ACEOF | |
35860 | ||
35861 | ||
35862 | ||
35863 | cat - <<_ACEOF >conftest.h | |
35864 | ||
35865 | _ACEOF | |
35866 | ||
35867 | ||
35868 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35869 | echo "obj-m := conftest.o" >build/Makefile | |
35870 | modpost_flag='' | |
35871 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35872 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35873 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35874 | (eval $ac_try) 2>&5 | |
35875 | ac_status=$? | |
35876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35877 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35878 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35879 | (eval $ac_try) 2>&5 | |
35880 | ac_status=$? | |
35881 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35882 | test $ac_status = 0; }; }; then : | |
35883 | ||
35884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35885 | $as_echo "yes" >&6; } | |
35886 | ||
35887 | $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h | |
35888 | ||
35889 | ||
35890 | else | |
35891 | $as_echo "$as_me: failed program was:" >&5 | |
35892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35893 | ||
35894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35895 | $as_echo "no" >&6; } | |
35896 | ||
35897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5 | |
35898 | $as_echo_n "checking whether fops->readdir() is available... " >&6; } | |
35899 | ||
35900 | ||
35901 | cat confdefs.h - <<_ACEOF >conftest.c | |
35902 | ||
35903 | ||
35904 | #include <linux/fs.h> | |
35905 | int readdir(struct file *filp, void *entry, filldir_t func) | |
35906 | { return 0; } | |
35907 | ||
35908 | static const struct file_operations fops | |
35909 | __attribute__ ((unused)) = { | |
35910 | .readdir = readdir, | |
35911 | }; | |
35912 | ||
35913 | int | |
35914 | main (void) | |
35915 | { | |
35916 | ||
35917 | ||
35918 | ; | |
35919 | return 0; | |
35920 | } | |
35921 | ||
35922 | _ACEOF | |
35923 | ||
35924 | ||
35925 | ||
35926 | cat - <<_ACEOF >conftest.h | |
35927 | ||
35928 | _ACEOF | |
35929 | ||
35930 | ||
35931 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35932 | echo "obj-m := conftest.o" >build/Makefile | |
35933 | modpost_flag='' | |
35934 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35935 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35936 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35937 | (eval $ac_try) 2>&5 | |
35938 | ac_status=$? | |
35939 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35940 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35941 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35942 | (eval $ac_try) 2>&5 | |
35943 | ac_status=$? | |
35944 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35945 | test $ac_status = 0; }; }; then : | |
35946 | ||
35947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35948 | $as_echo "yes" >&6; } | |
35949 | ||
35950 | $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h | |
35951 | ||
35952 | ||
35953 | else | |
35954 | $as_echo "$as_me: failed program was:" >&5 | |
35955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35956 | ||
35957 | as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5 | |
35958 | ||
35959 | ||
35960 | ||
35961 | fi | |
35962 | rm -Rf build | |
35963 | ||
35964 | ||
35965 | ||
35966 | ||
35967 | ||
35968 | fi | |
35969 | rm -Rf build | |
35970 | ||
35971 | ||
35972 | ||
35973 | ||
35974 | ||
35975 | fi | |
35976 | rm -Rf build | |
35977 | ||
35978 | ||
35979 | ||
35980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5 | |
35981 | $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; } | |
35982 | ||
35983 | ||
35984 | cat confdefs.h - <<_ACEOF >conftest.c | |
35985 | ||
35986 | ||
35987 | #include <linux/fs.h> | |
35988 | ||
35989 | ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to) | |
35990 | { return 0; } | |
35991 | ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from) | |
35992 | { return 0; } | |
35993 | ||
35994 | static const struct file_operations | |
35995 | fops __attribute__ ((unused)) = { | |
35996 | .read_iter = test_read, | |
35997 | .write_iter = test_write, | |
35998 | }; | |
35999 | ||
36000 | int | |
36001 | main (void) | |
36002 | { | |
36003 | ||
36004 | ||
36005 | ; | |
36006 | return 0; | |
36007 | } | |
36008 | ||
36009 | _ACEOF | |
36010 | ||
36011 | ||
36012 | ||
36013 | cat - <<_ACEOF >conftest.h | |
36014 | ||
36015 | _ACEOF | |
36016 | ||
36017 | ||
36018 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36019 | echo "obj-m := conftest.o" >build/Makefile | |
36020 | modpost_flag='' | |
36021 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36022 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36023 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36024 | (eval $ac_try) 2>&5 | |
36025 | ac_status=$? | |
36026 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36027 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36028 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36029 | (eval $ac_try) 2>&5 | |
36030 | ac_status=$? | |
36031 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36032 | test $ac_status = 0; }; }; then : | |
36033 | ||
36034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36035 | $as_echo "yes" >&6; } | |
36036 | ||
36037 | $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h | |
36038 | ||
36039 | ||
5b5f25ca CIK |
36040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5 |
36041 | $as_echo_n "checking whether new_sync_read() is available... " >&6; } | |
36042 | ||
36043 | ||
36044 | cat confdefs.h - <<_ACEOF >conftest.c | |
36045 | ||
36046 | ||
36047 | #include <linux/fs.h> | |
36048 | ||
36049 | int | |
36050 | main (void) | |
36051 | { | |
36052 | ||
36053 | new_sync_read(NULL, NULL, 0, NULL); | |
36054 | ||
36055 | ; | |
36056 | return 0; | |
36057 | } | |
36058 | ||
36059 | _ACEOF | |
36060 | ||
36061 | ||
36062 | ||
36063 | cat - <<_ACEOF >conftest.h | |
36064 | ||
36065 | _ACEOF | |
36066 | ||
36067 | ||
36068 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36069 | echo "obj-m := conftest.o" >build/Makefile | |
36070 | modpost_flag='' | |
36071 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36072 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36073 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36074 | (eval $ac_try) 2>&5 | |
36075 | ac_status=$? | |
36076 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36077 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36078 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36079 | (eval $ac_try) 2>&5 | |
36080 | ac_status=$? | |
36081 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36082 | test $ac_status = 0; }; }; then : | |
36083 | ||
36084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36085 | $as_echo "yes" >&6; } | |
36086 | ||
36087 | $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h | |
36088 | ||
36089 | ||
36090 | else | |
36091 | $as_echo "$as_me: failed program was:" >&5 | |
36092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36093 | ||
36094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36095 | $as_echo "no" >&6; } | |
36096 | ||
36097 | ||
36098 | ||
36099 | fi | |
36100 | rm -Rf build | |
36101 | ||
36102 | ||
36103 | ||
36104 | ||
87d546d8 TG |
36105 | else |
36106 | $as_echo "$as_me: failed program was:" >&5 | |
36107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36108 | ||
36109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36110 | $as_echo "no" >&6; } | |
36111 | ||
36112 | ||
36113 | ||
36114 | fi | |
36115 | rm -Rf build | |
36116 | ||
36117 | ||
36118 | ||
36119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5 | |
36120 | $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; } | |
36121 | ||
36122 | ||
36123 | cat confdefs.h - <<_ACEOF >conftest.c | |
36124 | ||
36125 | ||
36126 | #include <linux/fs.h> | |
36127 | ||
36128 | ||
36129 | int | |
36130 | main (void) | |
36131 | { | |
36132 | ||
36133 | struct kiocb *iocb = NULL; | |
36134 | struct iov_iter *iov = NULL; | |
36135 | generic_write_checks(iocb, iov); | |
36136 | ||
36137 | ; | |
36138 | return 0; | |
36139 | } | |
36140 | ||
36141 | _ACEOF | |
36142 | ||
36143 | ||
36144 | ||
36145 | cat - <<_ACEOF >conftest.h | |
36146 | ||
36147 | _ACEOF | |
36148 | ||
36149 | ||
36150 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36151 | echo "obj-m := conftest.o" >build/Makefile | |
36152 | modpost_flag='' | |
36153 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36154 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36155 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36156 | (eval $ac_try) 2>&5 | |
36157 | ac_status=$? | |
36158 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36159 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36160 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36161 | (eval $ac_try) 2>&5 | |
36162 | ac_status=$? | |
36163 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36164 | test $ac_status = 0; }; }; then : | |
36165 | ||
36166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36167 | $as_echo "yes" >&6; } | |
36168 | ||
36169 | $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h | |
36170 | ||
36171 | ||
36172 | else | |
36173 | $as_echo "$as_me: failed program was:" >&5 | |
36174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36175 | ||
36176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36177 | $as_echo "no" >&6; } | |
36178 | ||
36179 | ||
36180 | ||
36181 | fi | |
36182 | rm -Rf build | |
36183 | ||
36184 | ||
36185 | ||
36186 | ||
36187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5 | |
36188 | $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; } | |
36189 | ||
36190 | ||
36191 | cat confdefs.h - <<_ACEOF >conftest.c | |
36192 | ||
36193 | ||
36194 | #include <linux/pagemap.h> | |
36195 | ||
36196 | int | |
36197 | main (void) | |
36198 | { | |
36199 | ||
36200 | struct page page; | |
36201 | kmap_atomic(&page); | |
36202 | ||
36203 | ; | |
36204 | return 0; | |
36205 | } | |
36206 | ||
36207 | _ACEOF | |
36208 | ||
36209 | ||
36210 | ||
36211 | cat - <<_ACEOF >conftest.h | |
36212 | ||
36213 | _ACEOF | |
36214 | ||
36215 | ||
36216 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36217 | echo "obj-m := conftest.o" >build/Makefile | |
36218 | modpost_flag='' | |
36219 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36220 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36221 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36222 | (eval $ac_try) 2>&5 | |
36223 | ac_status=$? | |
36224 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36225 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36226 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36227 | (eval $ac_try) 2>&5 | |
36228 | ac_status=$? | |
36229 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36230 | test $ac_status = 0; }; }; then : | |
36231 | ||
36232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36233 | $as_echo "yes" >&6; } | |
36234 | ||
36235 | $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h | |
36236 | ||
36237 | ||
36238 | else | |
36239 | $as_echo "$as_me: failed program was:" >&5 | |
36240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36241 | ||
36242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36243 | $as_echo "no" >&6; } | |
36244 | ||
36245 | ||
36246 | ||
36247 | fi | |
36248 | rm -Rf build | |
36249 | ||
36250 | ||
36251 | ||
36252 | ||
36253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5 | |
36254 | $as_echo_n "checking whether follow_down_one() is available... " >&6; } | |
36255 | ||
36256 | ||
36257 | cat confdefs.h - <<_ACEOF >conftest.c | |
36258 | ||
36259 | ||
36260 | #include <linux/namei.h> | |
36261 | ||
36262 | int | |
36263 | main (void) | |
36264 | { | |
36265 | ||
36266 | struct path *p = NULL; | |
36267 | follow_down_one(p); | |
36268 | ||
36269 | ; | |
36270 | return 0; | |
36271 | } | |
36272 | ||
36273 | _ACEOF | |
36274 | ||
36275 | ||
36276 | ||
36277 | cat - <<_ACEOF >conftest.h | |
36278 | ||
36279 | _ACEOF | |
36280 | ||
36281 | ||
36282 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36283 | echo "obj-m := conftest.o" >build/Makefile | |
36284 | modpost_flag='' | |
36285 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36286 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36287 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36288 | (eval $ac_try) 2>&5 | |
36289 | ac_status=$? | |
36290 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36291 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36292 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36293 | (eval $ac_try) 2>&5 | |
36294 | ac_status=$? | |
36295 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36296 | test $ac_status = 0; }; }; then : | |
36297 | ||
36298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36299 | $as_echo "yes" >&6; } | |
36300 | ||
36301 | $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h | |
36302 | ||
36303 | ||
36304 | else | |
36305 | $as_echo "$as_me: failed program was:" >&5 | |
36306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36307 | ||
36308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36309 | $as_echo "no" >&6; } | |
36310 | ||
36311 | ||
36312 | ||
36313 | fi | |
36314 | rm -Rf build | |
36315 | ||
36316 | ||
36317 | ||
36318 | ||
36319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5 | |
36320 | $as_echo_n "checking whether make_request_fn() returns int... " >&6; } | |
36321 | ||
36322 | ||
36323 | cat confdefs.h - <<_ACEOF >conftest.c | |
36324 | ||
36325 | ||
36326 | #include <linux/blkdev.h> | |
36327 | ||
36328 | int make_request(struct request_queue *q, struct bio *bio) | |
36329 | { | |
36330 | return (0); | |
36331 | } | |
36332 | ||
36333 | int | |
36334 | main (void) | |
36335 | { | |
36336 | ||
36337 | blk_queue_make_request(NULL, &make_request); | |
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 MAKE_REQUEST_FN_RET int" >>confdefs.h | |
36372 | ||
36373 | ||
36374 | $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h | |
36375 | ||
36376 | ||
36377 | else | |
36378 | $as_echo "$as_me: failed program was:" >&5 | |
36379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36380 | ||
36381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36382 | $as_echo "no" >&6; } | |
36383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5 | |
36384 | $as_echo_n "checking whether make_request_fn() returns void... " >&6; } | |
36385 | ||
36386 | ||
36387 | cat confdefs.h - <<_ACEOF >conftest.c | |
36388 | ||
36389 | ||
36390 | #include <linux/blkdev.h> | |
36391 | ||
36392 | void make_request(struct request_queue *q, struct bio *bio) | |
36393 | { | |
36394 | return; | |
36395 | } | |
36396 | ||
36397 | int | |
36398 | main (void) | |
36399 | { | |
36400 | ||
36401 | blk_queue_make_request(NULL, &make_request); | |
36402 | ||
36403 | ; | |
36404 | return 0; | |
36405 | } | |
36406 | ||
36407 | _ACEOF | |
36408 | ||
36409 | ||
36410 | ||
36411 | cat - <<_ACEOF >conftest.h | |
36412 | ||
36413 | _ACEOF | |
36414 | ||
36415 | ||
36416 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36417 | echo "obj-m := conftest.o" >build/Makefile | |
36418 | modpost_flag='' | |
36419 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36420 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36421 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36422 | (eval $ac_try) 2>&5 | |
36423 | ac_status=$? | |
36424 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36425 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36426 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36427 | (eval $ac_try) 2>&5 | |
36428 | ac_status=$? | |
36429 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36430 | test $ac_status = 0; }; }; then : | |
36431 | ||
36432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36433 | $as_echo "yes" >&6; } | |
36434 | ||
36435 | $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h | |
36436 | ||
36437 | ||
36438 | else | |
36439 | $as_echo "$as_me: failed program was:" >&5 | |
36440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36441 | ||
36442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36443 | $as_echo "no" >&6; } | |
36444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5 | |
36445 | $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; } | |
36446 | ||
36447 | ||
36448 | cat confdefs.h - <<_ACEOF >conftest.c | |
36449 | ||
36450 | ||
36451 | #include <linux/blkdev.h> | |
36452 | ||
36453 | blk_qc_t make_request(struct request_queue *q, struct bio *bio) | |
36454 | { | |
36455 | return (BLK_QC_T_NONE); | |
36456 | } | |
36457 | ||
36458 | int | |
36459 | main (void) | |
36460 | { | |
36461 | ||
36462 | blk_queue_make_request(NULL, &make_request); | |
36463 | ||
36464 | ; | |
36465 | return 0; | |
36466 | } | |
36467 | ||
36468 | _ACEOF | |
36469 | ||
36470 | ||
36471 | ||
36472 | cat - <<_ACEOF >conftest.h | |
36473 | ||
36474 | _ACEOF | |
36475 | ||
36476 | ||
36477 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36478 | echo "obj-m := conftest.o" >build/Makefile | |
36479 | modpost_flag='' | |
36480 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36481 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36482 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36483 | (eval $ac_try) 2>&5 | |
36484 | ac_status=$? | |
36485 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36486 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36487 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36488 | (eval $ac_try) 2>&5 | |
36489 | ac_status=$? | |
36490 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36491 | test $ac_status = 0; }; }; then : | |
36492 | ||
36493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36494 | $as_echo "yes" >&6; } | |
36495 | ||
36496 | $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h | |
36497 | ||
36498 | ||
36499 | $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h | |
36500 | ||
36501 | ||
36502 | else | |
36503 | $as_echo "$as_me: failed program was:" >&5 | |
36504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36505 | ||
36506 | as_fn_error $? "no - Please file a bug report at | |
36507 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
36508 | ||
36509 | ||
36510 | ||
36511 | fi | |
36512 | rm -Rf build | |
36513 | ||
36514 | ||
36515 | ||
36516 | ||
36517 | ||
36518 | fi | |
36519 | rm -Rf build | |
36520 | ||
36521 | ||
36522 | ||
36523 | ||
36524 | ||
36525 | fi | |
36526 | rm -Rf build | |
36527 | ||
36528 | ||
36529 | ||
36530 | ||
36531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5 | |
36532 | $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; } | |
36533 | ||
36534 | ||
36535 | ||
36536 | cat confdefs.h - <<_ACEOF >conftest.c | |
36537 | ||
36538 | ||
36539 | #include <linux/bio.h> | |
36540 | ||
36541 | void (*generic_start_io_acct_f)(int, unsigned long, | |
36542 | struct hd_struct *) = &generic_start_io_acct; | |
36543 | void (*generic_end_io_acct_f)(int, struct hd_struct *, | |
36544 | unsigned long) = &generic_end_io_acct; | |
36545 | ||
36546 | int | |
36547 | main (void) | |
36548 | { | |
36549 | ||
36550 | generic_start_io_acct(0, 0, NULL); | |
36551 | generic_end_io_acct(0, NULL, 0); | |
36552 | ||
36553 | ; | |
36554 | return 0; | |
36555 | } | |
36556 | ||
36557 | _ACEOF | |
36558 | ||
36559 | ||
36560 | ||
36561 | cat - <<_ACEOF >conftest.h | |
36562 | ||
36563 | _ACEOF | |
36564 | ||
36565 | ||
36566 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36567 | echo "obj-m := conftest.o" >build/Makefile | |
36568 | modpost_flag='' | |
36569 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36570 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36571 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36572 | (eval $ac_try) 2>&5 | |
36573 | ac_status=$? | |
36574 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36575 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36576 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36577 | (eval $ac_try) 2>&5 | |
36578 | ac_status=$? | |
36579 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36580 | test $ac_status = 0; }; }; then : | |
36581 | rc=0 | |
36582 | else | |
36583 | $as_echo "$as_me: failed program was:" >&5 | |
36584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36585 | rc=1 | |
36586 | ||
36587 | ||
36588 | fi | |
36589 | rm -Rf build | |
36590 | ||
36591 | ||
36592 | if test $rc -ne 0; then : | |
36593 | ||
36594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36595 | $as_echo "no" >&6; } | |
36596 | ||
36597 | else | |
36598 | if test "x$enable_linux_builtin" != xyes; then | |
36599 | ||
36600 | grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \ | |
36601 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
36602 | rc=$? | |
36603 | if test $rc -ne 0; then | |
36604 | export=0 | |
36605 | for file in block/bio.c; do | |
36606 | grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \ | |
36607 | "$LINUX/$file" 2>/dev/null | |
36608 | rc=$? | |
36609 | if test $rc -eq 0; then | |
36610 | export=1 | |
36611 | break; | |
36612 | fi | |
36613 | done | |
36614 | if test $export -eq 0; then : | |
36615 | rc=1 | |
36616 | else : | |
36617 | rc=0 | |
36618 | fi | |
36619 | else : | |
36620 | rc=0 | |
36621 | fi | |
36622 | ||
36623 | fi | |
36624 | if test $rc -ne 0; then : | |
36625 | ||
36626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36627 | $as_echo "no" >&6; } | |
36628 | ||
36629 | else : | |
36630 | ||
36631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36632 | $as_echo "yes" >&6; } | |
36633 | ||
36634 | $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h | |
36635 | ||
36636 | ||
36637 | fi | |
36638 | fi | |
36639 | ||
36640 | ||
36641 | ||
36642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5 | |
36643 | $as_echo_n "checking whether iops->rename() wants flags... " >&6; } | |
36644 | ||
36645 | ||
36646 | cat confdefs.h - <<_ACEOF >conftest.c | |
36647 | ||
36648 | ||
36649 | #include <linux/fs.h> | |
36650 | int rename_fn(struct inode *sip, struct dentry *sdp, | |
36651 | struct inode *tip, struct dentry *tdp, | |
36652 | unsigned int flags) { return 0; } | |
36653 | ||
36654 | static const struct inode_operations | |
36655 | iops __attribute__ ((unused)) = { | |
36656 | .rename = rename_fn, | |
36657 | }; | |
36658 | ||
36659 | int | |
36660 | main (void) | |
36661 | { | |
36662 | ||
36663 | ||
36664 | ; | |
36665 | return 0; | |
36666 | } | |
36667 | ||
36668 | _ACEOF | |
36669 | ||
36670 | ||
36671 | ||
36672 | cat - <<_ACEOF >conftest.h | |
36673 | ||
36674 | _ACEOF | |
36675 | ||
36676 | ||
36677 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36678 | echo "obj-m := conftest.o" >build/Makefile | |
36679 | modpost_flag='' | |
36680 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36681 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36682 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36683 | (eval $ac_try) 2>&5 | |
36684 | ac_status=$? | |
36685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36686 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36687 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36688 | (eval $ac_try) 2>&5 | |
36689 | ac_status=$? | |
36690 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36691 | test $ac_status = 0; }; }; then : | |
36692 | ||
36693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36694 | $as_echo "yes" >&6; } | |
36695 | ||
36696 | $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h | |
36697 | ||
36698 | ||
36699 | else | |
36700 | $as_echo "$as_me: failed program was:" >&5 | |
36701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36702 | ||
36703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36704 | $as_echo "no" >&6; } | |
36705 | ||
36706 | ||
36707 | ||
36708 | fi | |
36709 | rm -Rf build | |
36710 | ||
36711 | ||
36712 | ||
36713 | ||
36714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5 | |
36715 | $as_echo_n "checking whether generic_setxattr() exists... " >&6; } | |
36716 | ||
36717 | ||
36718 | cat confdefs.h - <<_ACEOF >conftest.c | |
36719 | ||
36720 | ||
36721 | #include <linux/fs.h> | |
36722 | #include <linux/xattr.h> | |
36723 | ||
36724 | static const struct inode_operations | |
36725 | iops __attribute__ ((unused)) = { | |
36726 | .setxattr = generic_setxattr | |
36727 | }; | |
36728 | ||
36729 | int | |
36730 | main (void) | |
36731 | { | |
36732 | ||
36733 | ||
36734 | ; | |
36735 | return 0; | |
36736 | } | |
36737 | ||
36738 | _ACEOF | |
36739 | ||
36740 | ||
36741 | ||
36742 | cat - <<_ACEOF >conftest.h | |
36743 | ||
36744 | _ACEOF | |
36745 | ||
36746 | ||
36747 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36748 | echo "obj-m := conftest.o" >build/Makefile | |
36749 | modpost_flag='' | |
36750 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36751 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36752 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36753 | (eval $ac_try) 2>&5 | |
36754 | ac_status=$? | |
36755 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36756 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36757 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36758 | (eval $ac_try) 2>&5 | |
36759 | ac_status=$? | |
36760 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36761 | test $ac_status = 0; }; }; then : | |
36762 | ||
36763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36764 | $as_echo "yes" >&6; } | |
36765 | ||
36766 | $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h | |
36767 | ||
36768 | ||
36769 | else | |
36770 | $as_echo "$as_me: failed program was:" >&5 | |
36771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36772 | ||
36773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36774 | $as_echo "no" >&6; } | |
36775 | ||
36776 | ||
36777 | ||
36778 | fi | |
36779 | rm -Rf build | |
36780 | ||
36781 | ||
36782 | ||
df9d7621 CIK |
36783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5 |
36784 | $as_echo_n "checking whether current_time() exists... " >&6; } | |
36785 | ||
36786 | ||
36787 | ||
36788 | cat confdefs.h - <<_ACEOF >conftest.c | |
36789 | ||
36790 | ||
36791 | #include <linux/fs.h> | |
36792 | ||
36793 | int | |
36794 | main (void) | |
36795 | { | |
36796 | ||
36797 | struct inode ip; | |
36798 | struct timespec now __attribute__ ((unused)); | |
36799 | ||
36800 | now = current_time(&ip); | |
36801 | ||
36802 | ; | |
36803 | return 0; | |
36804 | } | |
36805 | ||
36806 | _ACEOF | |
36807 | ||
36808 | ||
36809 | ||
36810 | cat - <<_ACEOF >conftest.h | |
36811 | ||
36812 | _ACEOF | |
36813 | ||
36814 | ||
36815 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36816 | echo "obj-m := conftest.o" >build/Makefile | |
36817 | modpost_flag='' | |
36818 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36819 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36820 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36821 | (eval $ac_try) 2>&5 | |
36822 | ac_status=$? | |
36823 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36824 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36825 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36826 | (eval $ac_try) 2>&5 | |
36827 | ac_status=$? | |
36828 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36829 | test $ac_status = 0; }; }; then : | |
36830 | rc=0 | |
36831 | else | |
36832 | $as_echo "$as_me: failed program was:" >&5 | |
36833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36834 | rc=1 | |
36835 | ||
36836 | ||
36837 | fi | |
36838 | rm -Rf build | |
36839 | ||
36840 | ||
36841 | if test $rc -ne 0; then : | |
36842 | ||
36843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36844 | $as_echo "no" >&6; } | |
36845 | ||
36846 | else | |
36847 | if test "x$enable_linux_builtin" != xyes; then | |
36848 | ||
36849 | grep -q -E '[[:space:]]current_time[[:space:]]' \ | |
36850 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
36851 | rc=$? | |
36852 | if test $rc -ne 0; then | |
36853 | export=0 | |
36854 | for file in fs/inode.c; do | |
36855 | grep -q -E "EXPORT_SYMBOL.*(current_time)" \ | |
36856 | "$LINUX/$file" 2>/dev/null | |
36857 | rc=$? | |
36858 | if test $rc -eq 0; then | |
36859 | export=1 | |
36860 | break; | |
36861 | fi | |
36862 | done | |
36863 | if test $export -eq 0; then : | |
36864 | rc=1 | |
36865 | else : | |
36866 | rc=0 | |
36867 | fi | |
36868 | else : | |
36869 | rc=0 | |
36870 | fi | |
36871 | ||
36872 | fi | |
36873 | if test $rc -ne 0; then : | |
36874 | ||
36875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36876 | $as_echo "no" >&6; } | |
36877 | ||
36878 | else : | |
36879 | ||
36880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36881 | $as_echo "yes" >&6; } | |
36882 | ||
36883 | $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h | |
36884 | ||
36885 | ||
36886 | fi | |
36887 | fi | |
36888 | ||
36889 | ||
87d546d8 TG |
36890 | |
36891 | if test "$LINUX_OBJ" != "$LINUX"; then : | |
36892 | ||
36893 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
36894 | ||
36895 | fi | |
36896 | ||
36897 | ||
36898 | ||
36899 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE" | |
36900 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE" | |
36901 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL" | |
36902 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\"" | |
36903 | ||
36904 | ||
36905 | ||
36906 | ||
36907 | ||
36908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5 | |
36909 | $as_echo_n "checking for dkms.conf file... " >&6; } | |
36910 | if test -e dkms.conf; then : | |
36911 | ||
36912 | as_fn_error $? " | |
36913 | *** ZFS should not be manually built in the DKMS source tree. | |
36914 | *** Remove all ZFS packages before compiling the ZoL sources. | |
36915 | *** Running \"make install\" breaks ZFS packages." "$LINENO" 5 | |
36916 | ||
36917 | else | |
36918 | ||
36919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
36920 | $as_echo "not found" >&6; } | |
36921 | ||
36922 | fi | |
36923 | ||
36924 | ||
36925 | ||
36926 | # Check whether --with-mounthelperdir was given. | |
36927 | if test "${with_mounthelperdir+set}" = set; then : | |
36928 | withval=$with_mounthelperdir; mounthelperdir=$withval | |
36929 | else | |
36930 | mounthelperdir=/sbin | |
36931 | fi | |
36932 | ||
36933 | ||
36934 | ||
36935 | ||
36936 | ||
36937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5 | |
36938 | $as_echo_n "checking for udev directories... " >&6; } | |
36939 | ||
36940 | # Check whether --with-udevdir was given. | |
36941 | if test "${with_udevdir+set}" = set; then : | |
36942 | withval=$with_udevdir; udevdir=$withval | |
36943 | else | |
36944 | udevdir=check | |
36945 | fi | |
36946 | ||
36947 | ||
36948 | if test "x$udevdir" = xcheck; then : | |
36949 | ||
36950 | path1=/lib/udev | |
36951 | path2=/usr/lib/udev | |
36952 | default=$path2 | |
36953 | ||
36954 | if test -d "$path1"; then : | |
36955 | udevdir="$path1" | |
36956 | else | |
36957 | ||
36958 | if test -d "$path2"; then : | |
36959 | udevdir="$path2" | |
36960 | else | |
36961 | udevdir="$default" | |
36962 | fi | |
36963 | ||
36964 | fi | |
36965 | ||
36966 | fi | |
36967 | ||
36968 | ||
36969 | # Check whether --with-udevruledir was given. | |
36970 | if test "${with_udevruledir+set}" = set; then : | |
36971 | withval=$with_udevruledir; udevruledir=$withval | |
36972 | else | |
36973 | udevruledir="${udevdir}/rules.d" | |
36974 | fi | |
36975 | ||
36976 | ||
36977 | ||
36978 | ||
36979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5 | |
36980 | $as_echo "$udevdir;$udevruledir" >&6; } | |
36981 | ||
36982 | ||
36983 | # Check whether --enable-systemd was given. | |
36984 | if test "${enable_systemd+set}" = set; then : | |
36985 | enableval=$enable_systemd; | |
36986 | else | |
36987 | enable_systemd=yes | |
36988 | fi | |
36989 | ||
36990 | ||
36991 | ||
36992 | # Check whether --with-systemdunitdir was given. | |
36993 | if test "${with_systemdunitdir+set}" = set; then : | |
36994 | withval=$with_systemdunitdir; systemdunitdir=$withval | |
36995 | else | |
36996 | systemdunitdir=/usr/lib/systemd/system | |
36997 | fi | |
36998 | ||
36999 | ||
37000 | ||
37001 | # Check whether --with-systemdpresetdir was given. | |
37002 | if test "${with_systemdpresetdir+set}" = set; then : | |
37003 | withval=$with_systemdpresetdir; systemdpresetdir=$withval | |
37004 | else | |
37005 | systemdpresetdir=/usr/lib/systemd/system-preset | |
37006 | fi | |
37007 | ||
37008 | ||
37009 | ||
37010 | # Check whether --with-systemdmodulesloaddir was given. | |
37011 | if test "${with_systemdmodulesloaddir+set}" = set; then : | |
37012 | withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval | |
37013 | else | |
37014 | systemdmodulesloaddir=/usr/lib/modules-load.d | |
37015 | fi | |
37016 | ||
37017 | ||
37018 | ||
37019 | if test "x$enable_systemd" = xyes; then : | |
37020 | ||
37021 | ZFS_INIT_SYSTEMD=systemd | |
37022 | ZFS_MODULE_LOAD=modules-load.d | |
37023 | modulesloaddir=$systemdmodulesloaddir | |
37024 | ||
37025 | fi | |
37026 | ||
37027 | ||
37028 | ||
37029 | ||
37030 | ||
37031 | ||
37032 | ||
37033 | ||
37034 | # Check whether --enable-sysvinit was given. | |
37035 | if test "${enable_sysvinit+set}" = set; then : | |
37036 | enableval=$enable_sysvinit; | |
37037 | else | |
37038 | enable_sysvinit=yes | |
37039 | fi | |
37040 | ||
37041 | ||
37042 | if test "x$enable_sysvinit" = xyes; then : | |
37043 | ZFS_INIT_SYSV=init.d | |
37044 | fi | |
37045 | ||
37046 | ||
37047 | ||
37048 | ||
37049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5 | |
37050 | $as_echo_n "checking for dracut directory... " >&6; } | |
37051 | ||
37052 | # Check whether --with-dracutdir was given. | |
37053 | if test "${with_dracutdir+set}" = set; then : | |
37054 | withval=$with_dracutdir; dracutdir=$withval | |
37055 | else | |
37056 | dracutdir=check | |
37057 | fi | |
37058 | ||
37059 | ||
37060 | if test "x$dracutdir" = xcheck; then : | |
37061 | ||
37062 | path1=/usr/share/dracut | |
37063 | path2=/usr/lib/dracut | |
37064 | default=$path2 | |
37065 | ||
37066 | if test -d "$path1"; then : | |
37067 | dracutdir="$path1" | |
37068 | else | |
37069 | ||
37070 | if test -d "$path2"; then : | |
37071 | dracutdir="$path2" | |
37072 | else | |
37073 | dracutdir="$default" | |
37074 | fi | |
37075 | ||
37076 | fi | |
37077 | ||
37078 | fi | |
37079 | ||
37080 | ||
37081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5 | |
37082 | $as_echo "$dracutdir" >&6; } | |
37083 | ||
37084 | ||
37085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5 | |
37086 | $as_echo_n "checking for target asm dir... " >&6; } | |
37087 | TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/` | |
37088 | ||
37089 | case $TARGET_ARCH in | |
37090 | i386|x86_64) | |
37091 | TARGET_ASM_DIR=asm-${TARGET_ARCH} | |
37092 | ;; | |
37093 | *) | |
37094 | TARGET_ASM_DIR=asm-generic | |
37095 | ;; | |
37096 | esac | |
37097 | ||
37098 | ||
37099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5 | |
37100 | $as_echo "$TARGET_ASM_DIR" >&6; } | |
37101 | ||
37102 | ||
37103 | ZLIB= | |
37104 | ||
37105 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
37106 | if test "x$ac_cv_header_zlib_h" = xyes; then : | |
37107 | ||
37108 | else | |
37109 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37110 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37111 | as_fn_error $? " | |
37112 | *** zlib.h missing, zlib-devel package required | |
37113 | See \`config.log' for more details" "$LINENO" 5; } | |
37114 | fi | |
37115 | ||
37116 | ||
37117 | ||
37118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5 | |
37119 | $as_echo_n "checking for compress2 in -lz... " >&6; } | |
37120 | if ${ac_cv_lib_z_compress2+:} false; then : | |
37121 | $as_echo_n "(cached) " >&6 | |
37122 | else | |
37123 | ac_check_lib_save_LIBS=$LIBS | |
37124 | LIBS="-lz $LIBS" | |
37125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37126 | /* end confdefs.h. */ | |
37127 | ||
37128 | /* Override any GCC internal prototype to avoid an error. | |
37129 | Use char because int might match the return type of a GCC | |
37130 | builtin and then its argument prototype would still apply. */ | |
37131 | #ifdef __cplusplus | |
37132 | extern "C" | |
37133 | #endif | |
37134 | char compress2 (); | |
37135 | int | |
37136 | main () | |
37137 | { | |
37138 | return compress2 (); | |
37139 | ; | |
37140 | return 0; | |
37141 | } | |
37142 | _ACEOF | |
37143 | if ac_fn_c_try_link "$LINENO"; then : | |
37144 | ac_cv_lib_z_compress2=yes | |
37145 | else | |
37146 | ac_cv_lib_z_compress2=no | |
37147 | fi | |
37148 | rm -f core conftest.err conftest.$ac_objext \ | |
37149 | conftest$ac_exeext conftest.$ac_ext | |
37150 | LIBS=$ac_check_lib_save_LIBS | |
37151 | fi | |
37152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5 | |
37153 | $as_echo "$ac_cv_lib_z_compress2" >&6; } | |
37154 | if test "x$ac_cv_lib_z_compress2" = xyes; then : | |
37155 | cat >>confdefs.h <<_ACEOF | |
37156 | #define HAVE_LIBZ 1 | |
37157 | _ACEOF | |
37158 | ||
37159 | LIBS="-lz $LIBS" | |
37160 | ||
37161 | else | |
37162 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37163 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37164 | as_fn_error $? " | |
37165 | *** compress2() missing, zlib-devel package required | |
37166 | See \`config.log' for more details" "$LINENO" 5; } | |
37167 | fi | |
37168 | ||
37169 | ||
37170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 | |
37171 | $as_echo_n "checking for uncompress in -lz... " >&6; } | |
37172 | if ${ac_cv_lib_z_uncompress+:} false; then : | |
37173 | $as_echo_n "(cached) " >&6 | |
37174 | else | |
37175 | ac_check_lib_save_LIBS=$LIBS | |
37176 | LIBS="-lz $LIBS" | |
37177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37178 | /* end confdefs.h. */ | |
37179 | ||
37180 | /* Override any GCC internal prototype to avoid an error. | |
37181 | Use char because int might match the return type of a GCC | |
37182 | builtin and then its argument prototype would still apply. */ | |
37183 | #ifdef __cplusplus | |
37184 | extern "C" | |
37185 | #endif | |
37186 | char uncompress (); | |
37187 | int | |
37188 | main () | |
37189 | { | |
37190 | return uncompress (); | |
37191 | ; | |
37192 | return 0; | |
37193 | } | |
37194 | _ACEOF | |
37195 | if ac_fn_c_try_link "$LINENO"; then : | |
37196 | ac_cv_lib_z_uncompress=yes | |
37197 | else | |
37198 | ac_cv_lib_z_uncompress=no | |
37199 | fi | |
37200 | rm -f core conftest.err conftest.$ac_objext \ | |
37201 | conftest$ac_exeext conftest.$ac_ext | |
37202 | LIBS=$ac_check_lib_save_LIBS | |
37203 | fi | |
37204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 | |
37205 | $as_echo "$ac_cv_lib_z_uncompress" >&6; } | |
37206 | if test "x$ac_cv_lib_z_uncompress" = xyes; then : | |
37207 | cat >>confdefs.h <<_ACEOF | |
37208 | #define HAVE_LIBZ 1 | |
37209 | _ACEOF | |
37210 | ||
37211 | LIBS="-lz $LIBS" | |
37212 | ||
37213 | else | |
37214 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37215 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37216 | as_fn_error $? " | |
37217 | *** uncompress() missing, zlib-devel package required | |
37218 | See \`config.log' for more details" "$LINENO" 5; } | |
37219 | fi | |
37220 | ||
37221 | ||
37222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5 | |
37223 | $as_echo_n "checking for crc32 in -lz... " >&6; } | |
37224 | if ${ac_cv_lib_z_crc32+:} false; then : | |
37225 | $as_echo_n "(cached) " >&6 | |
37226 | else | |
37227 | ac_check_lib_save_LIBS=$LIBS | |
37228 | LIBS="-lz $LIBS" | |
37229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37230 | /* end confdefs.h. */ | |
37231 | ||
37232 | /* Override any GCC internal prototype to avoid an error. | |
37233 | Use char because int might match the return type of a GCC | |
37234 | builtin and then its argument prototype would still apply. */ | |
37235 | #ifdef __cplusplus | |
37236 | extern "C" | |
37237 | #endif | |
37238 | char crc32 (); | |
37239 | int | |
37240 | main () | |
37241 | { | |
37242 | return crc32 (); | |
37243 | ; | |
37244 | return 0; | |
37245 | } | |
37246 | _ACEOF | |
37247 | if ac_fn_c_try_link "$LINENO"; then : | |
37248 | ac_cv_lib_z_crc32=yes | |
37249 | else | |
37250 | ac_cv_lib_z_crc32=no | |
37251 | fi | |
37252 | rm -f core conftest.err conftest.$ac_objext \ | |
37253 | conftest$ac_exeext conftest.$ac_ext | |
37254 | LIBS=$ac_check_lib_save_LIBS | |
37255 | fi | |
37256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5 | |
37257 | $as_echo "$ac_cv_lib_z_crc32" >&6; } | |
37258 | if test "x$ac_cv_lib_z_crc32" = xyes; then : | |
37259 | cat >>confdefs.h <<_ACEOF | |
37260 | #define HAVE_LIBZ 1 | |
37261 | _ACEOF | |
37262 | ||
37263 | LIBS="-lz $LIBS" | |
37264 | ||
37265 | else | |
37266 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37267 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37268 | as_fn_error $? " | |
37269 | *** crc32() missing, zlib-devel package required | |
37270 | See \`config.log' for more details" "$LINENO" 5; } | |
37271 | fi | |
37272 | ||
37273 | ||
37274 | ZLIB="-lz" | |
37275 | ||
37276 | ||
37277 | $as_echo "#define HAVE_ZLIB 1" >>confdefs.h | |
37278 | ||
37279 | ||
37280 | ||
37281 | LIBUUID= | |
37282 | ||
37283 | ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" | |
37284 | if test "x$ac_cv_header_uuid_uuid_h" = xyes; then : | |
37285 | ||
37286 | else | |
37287 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37288 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37289 | as_fn_error $? " | |
37290 | *** uuid/uuid.h missing, libuuid-devel package required | |
37291 | See \`config.log' for more details" "$LINENO" 5; } | |
37292 | fi | |
37293 | ||
37294 | ||
37295 | ||
37296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 | |
37297 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } | |
37298 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : | |
37299 | $as_echo_n "(cached) " >&6 | |
37300 | else | |
37301 | ac_check_lib_save_LIBS=$LIBS | |
37302 | LIBS="-luuid $LIBS" | |
37303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37304 | /* end confdefs.h. */ | |
37305 | ||
37306 | /* Override any GCC internal prototype to avoid an error. | |
37307 | Use char because int might match the return type of a GCC | |
37308 | builtin and then its argument prototype would still apply. */ | |
37309 | #ifdef __cplusplus | |
37310 | extern "C" | |
37311 | #endif | |
37312 | char uuid_generate (); | |
37313 | int | |
37314 | main () | |
37315 | { | |
37316 | return uuid_generate (); | |
37317 | ; | |
37318 | return 0; | |
37319 | } | |
37320 | _ACEOF | |
37321 | if ac_fn_c_try_link "$LINENO"; then : | |
37322 | ac_cv_lib_uuid_uuid_generate=yes | |
37323 | else | |
37324 | ac_cv_lib_uuid_uuid_generate=no | |
37325 | fi | |
37326 | rm -f core conftest.err conftest.$ac_objext \ | |
37327 | conftest$ac_exeext conftest.$ac_ext | |
37328 | LIBS=$ac_check_lib_save_LIBS | |
37329 | fi | |
37330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 | |
37331 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
37332 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : | |
37333 | cat >>confdefs.h <<_ACEOF | |
37334 | #define HAVE_LIBUUID 1 | |
37335 | _ACEOF | |
37336 | ||
37337 | LIBS="-luuid $LIBS" | |
37338 | ||
37339 | else | |
37340 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37341 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37342 | as_fn_error $? " | |
37343 | *** uuid_generate() missing, libuuid-devel package required | |
37344 | See \`config.log' for more details" "$LINENO" 5; } | |
37345 | fi | |
37346 | ||
37347 | ||
37348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5 | |
37349 | $as_echo_n "checking for uuid_is_null in -luuid... " >&6; } | |
37350 | if ${ac_cv_lib_uuid_uuid_is_null+:} false; then : | |
37351 | $as_echo_n "(cached) " >&6 | |
37352 | else | |
37353 | ac_check_lib_save_LIBS=$LIBS | |
37354 | LIBS="-luuid $LIBS" | |
37355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37356 | /* end confdefs.h. */ | |
37357 | ||
37358 | /* Override any GCC internal prototype to avoid an error. | |
37359 | Use char because int might match the return type of a GCC | |
37360 | builtin and then its argument prototype would still apply. */ | |
37361 | #ifdef __cplusplus | |
37362 | extern "C" | |
37363 | #endif | |
37364 | char uuid_is_null (); | |
37365 | int | |
37366 | main () | |
37367 | { | |
37368 | return uuid_is_null (); | |
37369 | ; | |
37370 | return 0; | |
37371 | } | |
37372 | _ACEOF | |
37373 | if ac_fn_c_try_link "$LINENO"; then : | |
37374 | ac_cv_lib_uuid_uuid_is_null=yes | |
37375 | else | |
37376 | ac_cv_lib_uuid_uuid_is_null=no | |
37377 | fi | |
37378 | rm -f core conftest.err conftest.$ac_objext \ | |
37379 | conftest$ac_exeext conftest.$ac_ext | |
37380 | LIBS=$ac_check_lib_save_LIBS | |
37381 | fi | |
37382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5 | |
37383 | $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; } | |
37384 | if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes; then : | |
37385 | cat >>confdefs.h <<_ACEOF | |
37386 | #define HAVE_LIBUUID 1 | |
37387 | _ACEOF | |
37388 | ||
37389 | LIBS="-luuid $LIBS" | |
37390 | ||
37391 | else | |
37392 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37393 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37394 | as_fn_error $? " | |
37395 | *** uuid_is_null() missing, libuuid-devel package required | |
37396 | See \`config.log' for more details" "$LINENO" 5; } | |
37397 | fi | |
37398 | ||
37399 | ||
37400 | LIBUUID="-luuid" | |
37401 | ||
37402 | ||
37403 | $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h | |
37404 | ||
37405 | ||
37406 | ||
37407 | ||
37408 | # Check whether --with-blkid was given. | |
37409 | if test "${with_blkid+set}" = set; then : | |
37410 | withval=$with_blkid; | |
37411 | else | |
37412 | with_blkid=check | |
37413 | fi | |
37414 | ||
37415 | ||
37416 | LIBBLKID= | |
37417 | if test "x$with_blkid" = xyes; then : | |
37418 | ||
37419 | LIBBLKID="-lblkid" | |
37420 | ||
37421 | ||
37422 | $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h | |
37423 | ||
37424 | ||
37425 | fi | |
37426 | ||
37427 | if test "x$with_blkid" = xcheck; then : | |
37428 | ||
37429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 | |
37430 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } | |
37431 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : | |
37432 | $as_echo_n "(cached) " >&6 | |
37433 | else | |
37434 | ac_check_lib_save_LIBS=$LIBS | |
37435 | LIBS="-lblkid $LIBS" | |
37436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37437 | /* end confdefs.h. */ | |
37438 | ||
37439 | /* Override any GCC internal prototype to avoid an error. | |
37440 | Use char because int might match the return type of a GCC | |
37441 | builtin and then its argument prototype would still apply. */ | |
37442 | #ifdef __cplusplus | |
37443 | extern "C" | |
37444 | #endif | |
37445 | char blkid_get_cache (); | |
37446 | int | |
37447 | main () | |
37448 | { | |
37449 | return blkid_get_cache (); | |
37450 | ; | |
37451 | return 0; | |
37452 | } | |
37453 | _ACEOF | |
37454 | if ac_fn_c_try_link "$LINENO"; then : | |
37455 | ac_cv_lib_blkid_blkid_get_cache=yes | |
37456 | else | |
37457 | ac_cv_lib_blkid_blkid_get_cache=no | |
37458 | fi | |
37459 | rm -f core conftest.err conftest.$ac_objext \ | |
37460 | conftest$ac_exeext conftest.$ac_ext | |
37461 | LIBS=$ac_check_lib_save_LIBS | |
37462 | fi | |
37463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 | |
37464 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
37465 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : | |
37466 | ||
37467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5 | |
37468 | $as_echo_n "checking for blkid zfs support... " >&6; } | |
37469 | ||
37470 | ZFS_DEV=`mktemp` | |
37471 | truncate -s 64M $ZFS_DEV | |
37472 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
37473 | dd of=$ZFS_DEV bs=1k count=8 \ | |
37474 | seek=128 conv=notrunc &>/dev/null \ | |
37475 | >/dev/null 2>/dev/null | |
37476 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
37477 | dd of=$ZFS_DEV bs=1k count=8 \ | |
37478 | seek=132 conv=notrunc &>/dev/null \ | |
37479 | >/dev/null 2>/dev/null | |
37480 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
37481 | dd of=$ZFS_DEV bs=1k count=8 \ | |
37482 | seek=136 conv=notrunc &>/dev/null \ | |
37483 | >/dev/null 2>/dev/null | |
37484 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
37485 | dd of=$ZFS_DEV bs=1k count=8 \ | |
37486 | seek=140 conv=notrunc &>/dev/null \ | |
37487 | >/dev/null 2>/dev/null | |
37488 | ||
37489 | saved_LIBS="$LIBS" | |
37490 | LIBS="-lblkid" | |
37491 | ||
37492 | if test "$cross_compiling" = yes; then : | |
37493 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37494 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37495 | as_fn_error $? "cannot run test program while cross compiling | |
37496 | See \`config.log' for more details" "$LINENO" 5; } | |
37497 | else | |
37498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37499 | /* end confdefs.h. */ | |
37500 | ||
37501 | #include <stdio.h> | |
37502 | #include <stdlib.h> | |
37503 | #include <blkid/blkid.h> | |
37504 | ||
37505 | int | |
37506 | main () | |
37507 | { | |
37508 | ||
37509 | blkid_cache cache; | |
37510 | char *value; | |
37511 | ||
37512 | if (blkid_get_cache(&cache, NULL) < 0) | |
37513 | return 1; | |
37514 | ||
37515 | value = blkid_get_tag_value(cache, "TYPE", | |
37516 | "$ZFS_DEV"); | |
37517 | if (!value) { | |
37518 | blkid_put_cache(cache); | |
37519 | return 2; | |
37520 | } | |
37521 | ||
37522 | if (strcmp(value, "zfs_member")) { | |
37523 | free(value); | |
37524 | blkid_put_cache(cache); | |
37525 | return 0; | |
37526 | } | |
37527 | ||
37528 | free(value); | |
37529 | blkid_put_cache(cache); | |
37530 | ||
37531 | ; | |
37532 | return 0; | |
37533 | } | |
37534 | _ACEOF | |
37535 | if ac_fn_c_try_run "$LINENO"; then : | |
37536 | ||
37537 | rm -f $ZFS_DEV | |
37538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
37539 | $as_echo "yes" >&6; } | |
37540 | LIBBLKID="-lblkid" | |
37541 | ||
37542 | ||
37543 | $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h | |
37544 | ||
37545 | ||
37546 | else | |
37547 | ||
37548 | rm -f $ZFS_DEV | |
37549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
37550 | $as_echo "no" >&6; } | |
37551 | if test "x$with_blkid" != xcheck; then : | |
37552 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37553 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37554 | as_fn_error $? "--with-blkid given but unavailable | |
37555 | See \`config.log' for more details" "$LINENO" 5; } | |
37556 | fi | |
37557 | ||
37558 | fi | |
37559 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
37560 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
37561 | fi | |
37562 | ||
37563 | ||
37564 | LIBS="$saved_LIBS" | |
37565 | ||
37566 | else | |
37567 | ||
37568 | if test "x$with_blkid" != xcheck; then : | |
37569 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37570 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37571 | as_fn_error $? "--with-blkid given but unavailable | |
37572 | See \`config.log' for more details" "$LINENO" 5; } | |
37573 | fi | |
37574 | ||
37575 | ||
37576 | fi | |
37577 | ||
37578 | ||
37579 | fi | |
37580 | ||
37581 | ||
37582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5 | |
37583 | $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; } | |
37584 | ||
37585 | saved_flags="$CFLAGS" | |
37586 | CFLAGS="$CFLAGS -Wframe-larger-than=1024" | |
37587 | ||
37588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37589 | /* end confdefs.h. */ | |
37590 | ||
37591 | int | |
37592 | main () | |
37593 | { | |
37594 | ||
37595 | ; | |
37596 | return 0; | |
37597 | } | |
37598 | _ACEOF | |
37599 | if ac_fn_c_try_compile "$LINENO"; then : | |
37600 | ||
37601 | FRAME_LARGER_THAN=-Wframe-larger-than=1024 | |
37602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
37603 | $as_echo "yes" >&6; } | |
37604 | ||
37605 | else | |
37606 | ||
37607 | FRAME_LARGER_THAN= | |
37608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
37609 | $as_echo "no" >&6; } | |
37610 | ||
37611 | fi | |
37612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
37613 | ||
37614 | CFLAGS="$saved_flags" | |
37615 | ||
37616 | ||
37617 | ||
37618 | if test "x$runstatedir" = x; then | |
37619 | runstatedir='${localstatedir}/run' | |
37620 | ||
37621 | fi | |
37622 | ||
1ec59ff7 CIK |
37623 | |
37624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5 | |
37625 | $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; } | |
37626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37627 | /* end confdefs.h. */ | |
37628 | ||
37629 | #include <sys/sysmacros.h> | |
37630 | ||
37631 | int | |
37632 | main () | |
37633 | { | |
37634 | ||
37635 | int k; | |
37636 | k = makedev(0,0); | |
37637 | ||
37638 | ; | |
37639 | return 0; | |
37640 | } | |
37641 | _ACEOF | |
37642 | if ac_fn_c_try_compile "$LINENO"; then : | |
37643 | ||
37644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
37645 | $as_echo "yes" >&6; } | |
37646 | ||
37647 | $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h | |
37648 | ||
37649 | ||
37650 | else | |
37651 | ||
37652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
37653 | $as_echo "no" >&6; } | |
37654 | ||
37655 | fi | |
37656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
37657 | ||
37658 | ||
37659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5 | |
37660 | $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; } | |
37661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37662 | /* end confdefs.h. */ | |
37663 | ||
37664 | #include <sys/mkdev.h> | |
37665 | ||
37666 | int | |
37667 | main () | |
37668 | { | |
37669 | ||
37670 | int k; | |
37671 | k = makedev(0,0); | |
37672 | ||
37673 | ; | |
37674 | return 0; | |
37675 | } | |
37676 | _ACEOF | |
37677 | if ac_fn_c_try_compile "$LINENO"; then : | |
37678 | ||
37679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
37680 | $as_echo "yes" >&6; } | |
37681 | ||
37682 | $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h | |
37683 | ||
37684 | ||
37685 | else | |
37686 | ||
37687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
37688 | $as_echo "no" >&6; } | |
37689 | ||
37690 | fi | |
37691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
37692 | ||
37693 | ||
37694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5 | |
37695 | $as_echo_n "checking for -Wno-format-truncation support... " >&6; } | |
37696 | ||
37697 | saved_flags="$CFLAGS" | |
37698 | CFLAGS="$CFLAGS -Wno-format-truncation" | |
37699 | ||
37700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37701 | /* end confdefs.h. */ | |
37702 | ||
37703 | int | |
37704 | main () | |
37705 | { | |
37706 | ||
37707 | ; | |
37708 | return 0; | |
37709 | } | |
37710 | _ACEOF | |
37711 | if ac_fn_c_try_compile "$LINENO"; then : | |
37712 | ||
37713 | NO_FORMAT_TRUNCATION=-Wno-format-truncation | |
37714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
37715 | $as_echo "yes" >&6; } | |
37716 | ||
37717 | else | |
37718 | ||
37719 | NO_FORMAT_TRUNCATION= | |
37720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
37721 | $as_echo "no" >&6; } | |
37722 | ||
37723 | fi | |
37724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
37725 | ||
37726 | CFLAGS="$saved_flags" | |
37727 | ||
37728 | ||
87d546d8 TG |
37729 | for ac_func in mlockall |
37730 | do : | |
37731 | ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" | |
37732 | if test "x$ac_cv_func_mlockall" = xyes; then : | |
37733 | cat >>confdefs.h <<_ACEOF | |
37734 | #define HAVE_MLOCKALL 1 | |
37735 | _ACEOF | |
37736 | ||
37737 | fi | |
37738 | done | |
37739 | ||
37740 | ;; | |
37741 | srpm) ;; | |
37742 | *) | |
37743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 | |
37744 | $as_echo "Error!" >&6; } | |
37745 | as_fn_error $? "Bad value \"$ZFS_CONFIG\" for --with-config, | |
37746 | user kernel|user|all|srpm" "$LINENO" 5 ;; | |
37747 | esac | |
37748 | ||
37749 | if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then | |
37750 | CONFIG_USER_TRUE= | |
37751 | CONFIG_USER_FALSE='#' | |
37752 | else | |
37753 | CONFIG_USER_TRUE='#' | |
37754 | CONFIG_USER_FALSE= | |
37755 | fi | |
37756 | ||
37757 | if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all && | |
37758 | test "x$enable_linux_builtin" != xyes ; then | |
37759 | CONFIG_KERNEL_TRUE= | |
37760 | CONFIG_KERNEL_FALSE='#' | |
37761 | else | |
37762 | CONFIG_KERNEL_TRUE='#' | |
37763 | CONFIG_KERNEL_FALSE= | |
37764 | fi | |
37765 | ||
37766 | ||
37767 | ||
37768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5 | |
37769 | $as_echo_n "checking whether debugging is enabled... " >&6; } | |
37770 | # Check whether --enable-debug was given. | |
37771 | if test "${enable_debug+set}" = set; then : | |
37772 | enableval=$enable_debug; | |
37773 | else | |
37774 | enable_debug=no | |
37775 | fi | |
37776 | ||
37777 | ||
37778 | if test "x$enable_debug" = xyes; then : | |
37779 | ||
37780 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror" | |
37781 | HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror" | |
37782 | DEBUG_CFLAGS="-DDEBUG -Werror" | |
37783 | DEBUG_STACKFLAGS="-fstack-check" | |
37784 | DEBUG_ZFS="_with_debug" | |
37785 | ||
37786 | $as_echo "#define ZFS_DEBUG 1" >>confdefs.h | |
37787 | ||
37788 | ||
37789 | else | |
37790 | ||
37791 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG " | |
37792 | HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG " | |
37793 | DEBUG_CFLAGS="-DNDEBUG" | |
37794 | DEBUG_STACKFLAGS="" | |
37795 | DEBUG_ZFS="_without_debug" | |
37796 | ||
37797 | fi | |
37798 | ||
37799 | ||
37800 | ||
37801 | ||
37802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 | |
37803 | $as_echo "$enable_debug" >&6; } | |
37804 | ||
37805 | ||
37806 | # Check whether --enable-debug-dmu-tx was given. | |
37807 | if test "${enable_debug_dmu_tx+set}" = set; then : | |
37808 | enableval=$enable_debug_dmu_tx; | |
37809 | else | |
37810 | enable_debug_dmu_tx=no | |
37811 | fi | |
37812 | ||
37813 | ||
37814 | if test "x$enable_debug_dmu_tx" = xyes; then : | |
37815 | ||
37816 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_DMU_TX" | |
37817 | DEBUG_DMU_TX="_with_debug_dmu_tx" | |
37818 | ||
37819 | $as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h | |
37820 | ||
37821 | ||
37822 | else | |
37823 | ||
37824 | DEBUG_DMU_TX="_without_debug_dmu_tx" | |
37825 | ||
37826 | fi | |
37827 | ||
37828 | ||
37829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5 | |
37830 | $as_echo_n "checking whether dmu tx validation is enabled... " >&6; } | |
37831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5 | |
37832 | $as_echo "$enable_debug_dmu_tx" >&6; } | |
37833 | ||
37834 | ||
37835 | 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" | |
37836 | ||
37837 | ||
37838 | cat >confcache <<\_ACEOF | |
37839 | # This file is a shell script that caches the results of configure | |
37840 | # tests run on this system so they can be shared between configure | |
37841 | # scripts and configure runs, see configure's option --config-cache. | |
37842 | # It is not useful on other systems. If it contains results you don't | |
37843 | # want to keep, you may remove or edit it. | |
37844 | # | |
37845 | # config.status only pays attention to the cache file if you give it | |
37846 | # the --recheck option to rerun configure. | |
37847 | # | |
37848 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
37849 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
37850 | # following values. | |
37851 | ||
37852 | _ACEOF | |
37853 | ||
37854 | # The following way of writing the cache mishandles newlines in values, | |
37855 | # but we know of no workaround that is simple, portable, and efficient. | |
37856 | # So, we kill variables containing newlines. | |
37857 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
37858 | # and sets the high bit in the cache file unless we assign to the vars. | |
37859 | ( | |
37860 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
37861 | eval ac_val=\$$ac_var | |
37862 | case $ac_val in #( | |
37863 | *${as_nl}*) | |
37864 | case $ac_var in #( | |
37865 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
37866 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
37867 | esac | |
37868 | case $ac_var in #( | |
37869 | _ | IFS | as_nl) ;; #( | |
37870 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
37871 | *) { eval $ac_var=; unset $ac_var;} ;; | |
37872 | esac ;; | |
37873 | esac | |
37874 | done | |
37875 | ||
37876 | (set) 2>&1 | | |
37877 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
37878 | *${as_nl}ac_space=\ *) | |
37879 | # `set' does not quote correctly, so add quotes: double-quote | |
37880 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
37881 | sed -n \ | |
37882 | "s/'/'\\\\''/g; | |
37883 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
37884 | ;; #( | |
37885 | *) | |
37886 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
37887 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
37888 | ;; | |
37889 | esac | | |
37890 | sort | |
37891 | ) | | |
37892 | sed ' | |
37893 | /^ac_cv_env_/b end | |
37894 | t clear | |
37895 | :clear | |
37896 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
37897 | t end | |
37898 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
37899 | :end' >>confcache | |
37900 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
37901 | if test -w "$cache_file"; then | |
37902 | if test "x$cache_file" != "x/dev/null"; then | |
37903 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
37904 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
37905 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
37906 | cat confcache >"$cache_file" | |
37907 | else | |
37908 | case $cache_file in #( | |
37909 | */* | ?:*) | |
37910 | mv -f confcache "$cache_file"$$ && | |
37911 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
37912 | *) | |
37913 | mv -f confcache "$cache_file" ;; | |
37914 | esac | |
37915 | fi | |
37916 | fi | |
37917 | else | |
37918 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
37919 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
37920 | fi | |
37921 | fi | |
37922 | rm -f confcache | |
37923 | ||
37924 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
37925 | # Let make expand exec_prefix. | |
37926 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
37927 | ||
37928 | DEFS=-DHAVE_CONFIG_H | |
37929 | ||
37930 | ac_libobjs= | |
37931 | ac_ltlibobjs= | |
37932 | U= | |
37933 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
37934 | # 1. Remove the extension, and $U if already installed. | |
37935 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
37936 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
37937 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
37938 | # will be set to the directory where LIBOBJS objects are built. | |
37939 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
37940 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
37941 | done | |
37942 | LIBOBJS=$ac_libobjs | |
37943 | ||
37944 | LTLIBOBJS=$ac_ltlibobjs | |
37945 | ||
37946 | ||
37947 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
37948 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
37949 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
37950 | fi | |
37951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
37952 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
37953 | if test -n "$am_sleep_pid"; then | |
37954 | # Hide warnings about reused PIDs. | |
37955 | wait $am_sleep_pid 2>/dev/null | |
37956 | fi | |
37957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
37958 | $as_echo "done" >&6; } | |
37959 | if test -n "$EXEEXT"; then | |
37960 | am__EXEEXT_TRUE= | |
37961 | am__EXEEXT_FALSE='#' | |
37962 | else | |
37963 | am__EXEEXT_TRUE='#' | |
37964 | am__EXEEXT_FALSE= | |
37965 | fi | |
37966 | ||
37967 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
37968 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
37969 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
37970 | fi | |
37971 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
37972 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
37973 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
37974 | fi | |
37975 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then | |
37976 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. | |
37977 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
37978 | fi | |
37979 | if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then | |
37980 | as_fn_error $? "conditional \"CONFIG_USER\" was never defined. | |
37981 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
37982 | fi | |
37983 | if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then | |
37984 | as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined. | |
37985 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
37986 | fi | |
37987 | ||
37988 | : "${CONFIG_STATUS=./config.status}" | |
37989 | ac_write_fail=0 | |
37990 | ac_clean_files_save=$ac_clean_files | |
37991 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
37992 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
37993 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
37994 | as_write_fail=0 | |
37995 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
37996 | #! $SHELL | |
37997 | # Generated by $as_me. | |
37998 | # Run this file to recreate the current configuration. | |
37999 | # Compiler output produced by configure, useful for debugging | |
38000 | # configure, is in config.log if it exists. | |
38001 | ||
38002 | debug=false | |
38003 | ac_cs_recheck=false | |
38004 | ac_cs_silent=false | |
38005 | ||
38006 | SHELL=\${CONFIG_SHELL-$SHELL} | |
38007 | export SHELL | |
38008 | _ASEOF | |
38009 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
38010 | ## -------------------- ## | |
38011 | ## M4sh Initialization. ## | |
38012 | ## -------------------- ## | |
38013 | ||
38014 | # Be more Bourne compatible | |
38015 | DUALCASE=1; export DUALCASE # for MKS sh | |
38016 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
38017 | emulate sh | |
38018 | NULLCMD=: | |
38019 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
38020 | # is contrary to our usage. Disable this feature. | |
38021 | alias -g '${1+"$@"}'='"$@"' | |
38022 | setopt NO_GLOB_SUBST | |
38023 | else | |
38024 | case `(set -o) 2>/dev/null` in #( | |
38025 | *posix*) : | |
38026 | set -o posix ;; #( | |
38027 | *) : | |
38028 | ;; | |
38029 | esac | |
38030 | fi | |
38031 | ||
38032 | ||
38033 | as_nl=' | |
38034 | ' | |
38035 | export as_nl | |
38036 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38037 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
38038 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
38039 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
38040 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
38041 | # but without wasting forks for bash or zsh. | |
38042 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
38043 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
38044 | as_echo='print -r --' | |
38045 | as_echo_n='print -rn --' | |
38046 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
38047 | as_echo='printf %s\n' | |
38048 | as_echo_n='printf %s' | |
38049 | else | |
38050 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
38051 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
38052 | as_echo_n='/usr/ucb/echo -n' | |
38053 | else | |
38054 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
38055 | as_echo_n_body='eval | |
38056 | arg=$1; | |
38057 | case $arg in #( | |
38058 | *"$as_nl"*) | |
38059 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
38060 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
38061 | esac; | |
38062 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
38063 | ' | |
38064 | export as_echo_n_body | |
38065 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
38066 | fi | |
38067 | export as_echo_body | |
38068 | as_echo='sh -c $as_echo_body as_echo' | |
38069 | fi | |
38070 | ||
38071 | # The user is always right. | |
38072 | if test "${PATH_SEPARATOR+set}" != set; then | |
38073 | PATH_SEPARATOR=: | |
38074 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
38075 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
38076 | PATH_SEPARATOR=';' | |
38077 | } | |
38078 | fi | |
38079 | ||
38080 | ||
38081 | # IFS | |
38082 | # We need space, tab and new line, in precisely that order. Quoting is | |
38083 | # there to prevent editors from complaining about space-tab. | |
38084 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
38085 | # splitting by setting IFS to empty value.) | |
38086 | IFS=" "" $as_nl" | |
38087 | ||
38088 | # Find who we are. Look in the path if we contain no directory separator. | |
38089 | as_myself= | |
38090 | case $0 in #(( | |
38091 | *[\\/]* ) as_myself=$0 ;; | |
38092 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38093 | for as_dir in $PATH | |
38094 | do | |
38095 | IFS=$as_save_IFS | |
38096 | test -z "$as_dir" && as_dir=. | |
38097 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
38098 | done | |
38099 | IFS=$as_save_IFS | |
38100 | ||
38101 | ;; | |
38102 | esac | |
38103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
38104 | # in which case we are not to be found in the path. | |
38105 | if test "x$as_myself" = x; then | |
38106 | as_myself=$0 | |
38107 | fi | |
38108 | if test ! -f "$as_myself"; then | |
38109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
38110 | exit 1 | |
38111 | fi | |
38112 | ||
38113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
38114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
38115 | # suppresses any "Segmentation fault" message there. '((' could | |
38116 | # trigger a bug in pdksh 5.2.14. | |
38117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
38118 | do eval test x\${$as_var+set} = xset \ | |
38119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
38120 | done | |
38121 | PS1='$ ' | |
38122 | PS2='> ' | |
38123 | PS4='+ ' | |
38124 | ||
38125 | # NLS nuisances. | |
38126 | LC_ALL=C | |
38127 | export LC_ALL | |
38128 | LANGUAGE=C | |
38129 | export LANGUAGE | |
38130 | ||
38131 | # CDPATH. | |
38132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
38133 | ||
38134 | ||
38135 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
38136 | # ---------------------------------------- | |
38137 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
38138 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
38139 | # script with STATUS, using 1 if that was 0. | |
38140 | as_fn_error () | |
38141 | { | |
38142 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
38143 | if test "$4"; then | |
38144 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
38145 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
38146 | fi | |
38147 | $as_echo "$as_me: error: $2" >&2 | |
38148 | as_fn_exit $as_status | |
38149 | } # as_fn_error | |
38150 | ||
38151 | ||
38152 | # as_fn_set_status STATUS | |
38153 | # ----------------------- | |
38154 | # Set $? to STATUS, without forking. | |
38155 | as_fn_set_status () | |
38156 | { | |
38157 | return $1 | |
38158 | } # as_fn_set_status | |
38159 | ||
38160 | # as_fn_exit STATUS | |
38161 | # ----------------- | |
38162 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
38163 | as_fn_exit () | |
38164 | { | |
38165 | set +e | |
38166 | as_fn_set_status $1 | |
38167 | exit $1 | |
38168 | } # as_fn_exit | |
38169 | ||
38170 | # as_fn_unset VAR | |
38171 | # --------------- | |
38172 | # Portably unset VAR. | |
38173 | as_fn_unset () | |
38174 | { | |
38175 | { eval $1=; unset $1;} | |
38176 | } | |
38177 | as_unset=as_fn_unset | |
38178 | # as_fn_append VAR VALUE | |
38179 | # ---------------------- | |
38180 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
38181 | # advantage of any shell optimizations that allow amortized linear growth over | |
38182 | # repeated appends, instead of the typical quadratic growth present in naive | |
38183 | # implementations. | |
38184 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
38185 | eval 'as_fn_append () | |
38186 | { | |
38187 | eval $1+=\$2 | |
38188 | }' | |
38189 | else | |
38190 | as_fn_append () | |
38191 | { | |
38192 | eval $1=\$$1\$2 | |
38193 | } | |
38194 | fi # as_fn_append | |
38195 | ||
38196 | # as_fn_arith ARG... | |
38197 | # ------------------ | |
38198 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
38199 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
38200 | # must be portable across $(()) and expr. | |
38201 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
38202 | eval 'as_fn_arith () | |
38203 | { | |
38204 | as_val=$(( $* )) | |
38205 | }' | |
38206 | else | |
38207 | as_fn_arith () | |
38208 | { | |
38209 | as_val=`expr "$@" || test $? -eq 1` | |
38210 | } | |
38211 | fi # as_fn_arith | |
38212 | ||
38213 | ||
38214 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
38215 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
38216 | as_expr=expr | |
38217 | else | |
38218 | as_expr=false | |
38219 | fi | |
38220 | ||
38221 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
38222 | as_basename=basename | |
38223 | else | |
38224 | as_basename=false | |
38225 | fi | |
38226 | ||
38227 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
38228 | as_dirname=dirname | |
38229 | else | |
38230 | as_dirname=false | |
38231 | fi | |
38232 | ||
38233 | as_me=`$as_basename -- "$0" || | |
38234 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
38235 | X"$0" : 'X\(//\)$' \| \ | |
38236 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
38237 | $as_echo X/"$0" | | |
38238 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
38239 | s//\1/ | |
38240 | q | |
38241 | } | |
38242 | /^X\/\(\/\/\)$/{ | |
38243 | s//\1/ | |
38244 | q | |
38245 | } | |
38246 | /^X\/\(\/\).*/{ | |
38247 | s//\1/ | |
38248 | q | |
38249 | } | |
38250 | s/.*/./; q'` | |
38251 | ||
38252 | # Avoid depending upon Character Ranges. | |
38253 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
38254 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
38255 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
38256 | as_cr_digits='0123456789' | |
38257 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
38258 | ||
38259 | ECHO_C= ECHO_N= ECHO_T= | |
38260 | case `echo -n x` in #((((( | |
38261 | -n*) | |
38262 | case `echo 'xy\c'` in | |
38263 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
38264 | xy) ECHO_C='\c';; | |
38265 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
38266 | ECHO_T=' ';; | |
38267 | esac;; | |
38268 | *) | |
38269 | ECHO_N='-n';; | |
38270 | esac | |
38271 | ||
38272 | rm -f conf$$ conf$$.exe conf$$.file | |
38273 | if test -d conf$$.dir; then | |
38274 | rm -f conf$$.dir/conf$$.file | |
38275 | else | |
38276 | rm -f conf$$.dir | |
38277 | mkdir conf$$.dir 2>/dev/null | |
38278 | fi | |
38279 | if (echo >conf$$.file) 2>/dev/null; then | |
38280 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
38281 | as_ln_s='ln -s' | |
38282 | # ... but there are two gotchas: | |
38283 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
38284 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
38285 | # In both cases, we have to default to `cp -pR'. | |
38286 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
38287 | as_ln_s='cp -pR' | |
38288 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
38289 | as_ln_s=ln | |
38290 | else | |
38291 | as_ln_s='cp -pR' | |
38292 | fi | |
38293 | else | |
38294 | as_ln_s='cp -pR' | |
38295 | fi | |
38296 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
38297 | rmdir conf$$.dir 2>/dev/null | |
38298 | ||
38299 | ||
38300 | # as_fn_mkdir_p | |
38301 | # ------------- | |
38302 | # Create "$as_dir" as a directory, including parents if necessary. | |
38303 | as_fn_mkdir_p () | |
38304 | { | |
38305 | ||
38306 | case $as_dir in #( | |
38307 | -*) as_dir=./$as_dir;; | |
38308 | esac | |
38309 | test -d "$as_dir" || eval $as_mkdir_p || { | |
38310 | as_dirs= | |
38311 | while :; do | |
38312 | case $as_dir in #( | |
38313 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
38314 | *) as_qdir=$as_dir;; | |
38315 | esac | |
38316 | as_dirs="'$as_qdir' $as_dirs" | |
38317 | as_dir=`$as_dirname -- "$as_dir" || | |
38318 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
38319 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
38320 | X"$as_dir" : 'X\(//\)$' \| \ | |
38321 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
38322 | $as_echo X"$as_dir" | | |
38323 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
38324 | s//\1/ | |
38325 | q | |
38326 | } | |
38327 | /^X\(\/\/\)[^/].*/{ | |
38328 | s//\1/ | |
38329 | q | |
38330 | } | |
38331 | /^X\(\/\/\)$/{ | |
38332 | s//\1/ | |
38333 | q | |
38334 | } | |
38335 | /^X\(\/\).*/{ | |
38336 | s//\1/ | |
38337 | q | |
38338 | } | |
38339 | s/.*/./; q'` | |
38340 | test -d "$as_dir" && break | |
38341 | done | |
38342 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
38343 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
38344 | ||
38345 | ||
38346 | } # as_fn_mkdir_p | |
38347 | if mkdir -p . 2>/dev/null; then | |
38348 | as_mkdir_p='mkdir -p "$as_dir"' | |
38349 | else | |
38350 | test -d ./-p && rmdir ./-p | |
38351 | as_mkdir_p=false | |
38352 | fi | |
38353 | ||
38354 | ||
38355 | # as_fn_executable_p FILE | |
38356 | # ----------------------- | |
38357 | # Test if FILE is an executable regular file. | |
38358 | as_fn_executable_p () | |
38359 | { | |
38360 | test -f "$1" && test -x "$1" | |
38361 | } # as_fn_executable_p | |
38362 | as_test_x='test -x' | |
38363 | as_executable_p=as_fn_executable_p | |
38364 | ||
38365 | # Sed expression to map a string onto a valid CPP name. | |
38366 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
38367 | ||
38368 | # Sed expression to map a string onto a valid variable name. | |
38369 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
38370 | ||
38371 | ||
38372 | exec 6>&1 | |
38373 | ## ----------------------------------- ## | |
38374 | ## Main body of $CONFIG_STATUS script. ## | |
38375 | ## ----------------------------------- ## | |
38376 | _ASEOF | |
38377 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
38378 | ||
38379 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
38380 | # Save the log message, to keep $0 and so on meaningful, and to | |
38381 | # report actual input values of CONFIG_FILES etc. instead of their | |
38382 | # values after options handling. | |
38383 | ac_log=" | |
1ec59ff7 | 38384 | This file was extended by zfs $as_me 0.6.5.11, which was |
87d546d8 TG |
38385 | generated by GNU Autoconf 2.69. Invocation command line was |
38386 | ||
38387 | CONFIG_FILES = $CONFIG_FILES | |
38388 | CONFIG_HEADERS = $CONFIG_HEADERS | |
38389 | CONFIG_LINKS = $CONFIG_LINKS | |
38390 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
38391 | $ $0 $@ | |
38392 | ||
38393 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
38394 | " | |
38395 | ||
38396 | _ACEOF | |
38397 | ||
38398 | case $ac_config_files in *" | |
38399 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
38400 | esac | |
38401 | ||
38402 | case $ac_config_headers in *" | |
38403 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
38404 | esac | |
38405 | ||
38406 | ||
38407 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
38408 | # Files that config.status was made for. | |
38409 | config_files="$ac_config_files" | |
38410 | config_headers="$ac_config_headers" | |
38411 | config_commands="$ac_config_commands" | |
38412 | ||
38413 | _ACEOF | |
38414 | ||
38415 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
38416 | ac_cs_usage="\ | |
38417 | \`$as_me' instantiates files and other configuration actions | |
38418 | from templates according to the current configuration. Unless the files | |
38419 | and actions are specified as TAGs, all are instantiated by default. | |
38420 | ||
38421 | Usage: $0 [OPTION]... [TAG]... | |
38422 | ||
38423 | -h, --help print this help, then exit | |
38424 | -V, --version print version number and configuration settings, then exit | |
38425 | --config print configuration, then exit | |
38426 | -q, --quiet, --silent | |
38427 | do not print progress messages | |
38428 | -d, --debug don't remove temporary files | |
38429 | --recheck update $as_me by reconfiguring in the same conditions | |
38430 | --file=FILE[:TEMPLATE] | |
38431 | instantiate the configuration file FILE | |
38432 | --header=FILE[:TEMPLATE] | |
38433 | instantiate the configuration header FILE | |
38434 | ||
38435 | Configuration files: | |
38436 | $config_files | |
38437 | ||
38438 | Configuration headers: | |
38439 | $config_headers | |
38440 | ||
38441 | Configuration commands: | |
38442 | $config_commands | |
38443 | ||
38444 | Report bugs to the package provider." | |
38445 | ||
38446 | _ACEOF | |
38447 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
38448 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
38449 | ac_cs_version="\\ | |
1ec59ff7 | 38450 | zfs config.status 0.6.5.11 |
87d546d8 TG |
38451 | configured by $0, generated by GNU Autoconf 2.69, |
38452 | with options \\"\$ac_cs_config\\" | |
38453 | ||
38454 | Copyright (C) 2012 Free Software Foundation, Inc. | |
38455 | This config.status script is free software; the Free Software Foundation | |
38456 | gives unlimited permission to copy, distribute and modify it." | |
38457 | ||
38458 | ac_pwd='$ac_pwd' | |
38459 | srcdir='$srcdir' | |
38460 | INSTALL='$INSTALL' | |
38461 | MKDIR_P='$MKDIR_P' | |
38462 | AWK='$AWK' | |
38463 | test -n "\$AWK" || AWK=awk | |
38464 | _ACEOF | |
38465 | ||
38466 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
38467 | # The default lists apply if the user does not specify any file. | |
38468 | ac_need_defaults=: | |
38469 | while test $# != 0 | |
38470 | do | |
38471 | case $1 in | |
38472 | --*=?*) | |
38473 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
38474 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
38475 | ac_shift=: | |
38476 | ;; | |
38477 | --*=) | |
38478 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
38479 | ac_optarg= | |
38480 | ac_shift=: | |
38481 | ;; | |
38482 | *) | |
38483 | ac_option=$1 | |
38484 | ac_optarg=$2 | |
38485 | ac_shift=shift | |
38486 | ;; | |
38487 | esac | |
38488 | ||
38489 | case $ac_option in | |
38490 | # Handling of the options. | |
38491 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
38492 | ac_cs_recheck=: ;; | |
38493 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
38494 | $as_echo "$ac_cs_version"; exit ;; | |
38495 | --config | --confi | --conf | --con | --co | --c ) | |
38496 | $as_echo "$ac_cs_config"; exit ;; | |
38497 | --debug | --debu | --deb | --de | --d | -d ) | |
38498 | debug=: ;; | |
38499 | --file | --fil | --fi | --f ) | |
38500 | $ac_shift | |
38501 | case $ac_optarg in | |
38502 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
38503 | '') as_fn_error $? "missing file argument" ;; | |
38504 | esac | |
38505 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
38506 | ac_need_defaults=false;; | |
38507 | --header | --heade | --head | --hea ) | |
38508 | $ac_shift | |
38509 | case $ac_optarg in | |
38510 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
38511 | esac | |
38512 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
38513 | ac_need_defaults=false;; | |
38514 | --he | --h) | |
38515 | # Conflict between --help and --header | |
38516 | as_fn_error $? "ambiguous option: \`$1' | |
38517 | Try \`$0 --help' for more information.";; | |
38518 | --help | --hel | -h ) | |
38519 | $as_echo "$ac_cs_usage"; exit ;; | |
38520 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
38521 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
38522 | ac_cs_silent=: ;; | |
38523 | ||
38524 | # This is an error. | |
38525 | -*) as_fn_error $? "unrecognized option: \`$1' | |
38526 | Try \`$0 --help' for more information." ;; | |
38527 | ||
38528 | *) as_fn_append ac_config_targets " $1" | |
38529 | ac_need_defaults=false ;; | |
38530 | ||
38531 | esac | |
38532 | shift | |
38533 | done | |
38534 | ||
38535 | ac_configure_extra_args= | |
38536 | ||
38537 | if $ac_cs_silent; then | |
38538 | exec 6>/dev/null | |
38539 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
38540 | fi | |
38541 | ||
38542 | _ACEOF | |
38543 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
38544 | if \$ac_cs_recheck; then | |
38545 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
38546 | shift | |
38547 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
38548 | CONFIG_SHELL='$SHELL' | |
38549 | export CONFIG_SHELL | |
38550 | exec "\$@" | |
38551 | fi | |
38552 | ||
38553 | _ACEOF | |
38554 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
38555 | exec 5>>config.log | |
38556 | { | |
38557 | echo | |
38558 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
38559 | ## Running $as_me. ## | |
38560 | _ASBOX | |
38561 | $as_echo "$ac_log" | |
38562 | } >&5 | |
38563 | ||
38564 | _ACEOF | |
38565 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
38566 | # | |
38567 | # INIT-COMMANDS | |
38568 | # | |
38569 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
38570 | ||
38571 | ||
38572 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
38573 | # if CDPATH is set. | |
38574 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
38575 | ||
38576 | sed_quote_subst='$sed_quote_subst' | |
38577 | double_quote_subst='$double_quote_subst' | |
38578 | delay_variable_subst='$delay_variable_subst' | |
38579 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
38580 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
38581 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
38582 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
38583 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
38584 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
38585 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' | |
38586 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
38587 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
38588 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
38589 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
38590 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
38591 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
38592 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
38593 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
38594 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
38595 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
38596 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
38597 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
38598 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
38599 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
38600 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
38601 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
38602 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
38603 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
38604 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
38605 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
38606 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
38607 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
38608 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
38609 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
38610 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
38611 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
38612 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
38613 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
38614 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
38615 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
38616 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
38617 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
38618 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
38619 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
38620 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
38621 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
38622 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
38623 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
38624 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
38625 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
38626 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
38627 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
38628 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
38629 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
38630 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
38631 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
38632 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
38633 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
38634 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
38635 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' | |
38636 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
38637 | 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"`' | |
38638 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' | |
38639 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
38640 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
38641 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' | |
38642 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
38643 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
38644 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
38645 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
38646 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
38647 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
38648 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
38649 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
38650 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
38651 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
38652 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
38653 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
38654 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
38655 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
38656 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
38657 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
38658 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
38659 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
38660 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
38661 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
38662 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
38663 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
38664 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
38665 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
38666 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
38667 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
38668 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
38669 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
38670 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
38671 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
38672 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
38673 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
38674 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
38675 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
38676 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
38677 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
38678 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
38679 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
38680 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
38681 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
38682 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
38683 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
38684 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
38685 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
38686 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
38687 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
38688 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
38689 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
38690 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
38691 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
38692 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
38693 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
38694 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
38695 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
38696 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
38697 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
38698 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
38699 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
38700 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
38701 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
38702 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
38703 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
38704 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
38705 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
38706 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' | |
38707 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
38708 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
38709 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
38710 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
38711 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
38712 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
38713 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
38714 | ||
38715 | LTCC='$LTCC' | |
38716 | LTCFLAGS='$LTCFLAGS' | |
38717 | compiler='$compiler_DEFAULT' | |
38718 | ||
38719 | # A function that is used when there is no print builtin or printf. | |
38720 | func_fallback_echo () | |
38721 | { | |
38722 | eval 'cat <<_LTECHO_EOF | |
38723 | \$1 | |
38724 | _LTECHO_EOF' | |
38725 | } | |
38726 | ||
38727 | # Quote evaled strings. | |
38728 | for var in SHELL \ | |
38729 | ECHO \ | |
38730 | PATH_SEPARATOR \ | |
38731 | SED \ | |
38732 | GREP \ | |
38733 | EGREP \ | |
38734 | FGREP \ | |
38735 | LD \ | |
38736 | NM \ | |
38737 | LN_S \ | |
38738 | lt_SP2NL \ | |
38739 | lt_NL2SP \ | |
38740 | reload_flag \ | |
38741 | OBJDUMP \ | |
38742 | deplibs_check_method \ | |
38743 | file_magic_cmd \ | |
38744 | file_magic_glob \ | |
38745 | want_nocaseglob \ | |
38746 | DLLTOOL \ | |
38747 | sharedlib_from_linklib_cmd \ | |
38748 | AR \ | |
38749 | AR_FLAGS \ | |
38750 | archiver_list_spec \ | |
38751 | STRIP \ | |
38752 | RANLIB \ | |
38753 | CC \ | |
38754 | CFLAGS \ | |
38755 | compiler \ | |
38756 | lt_cv_sys_global_symbol_pipe \ | |
38757 | lt_cv_sys_global_symbol_to_cdecl \ | |
38758 | lt_cv_sys_global_symbol_to_import \ | |
38759 | lt_cv_sys_global_symbol_to_c_name_address \ | |
38760 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
38761 | lt_cv_nm_interface \ | |
38762 | nm_file_list_spec \ | |
38763 | lt_cv_truncate_bin \ | |
38764 | lt_prog_compiler_no_builtin_flag \ | |
38765 | lt_prog_compiler_pic \ | |
38766 | lt_prog_compiler_wl \ | |
38767 | lt_prog_compiler_static \ | |
38768 | lt_cv_prog_compiler_c_o \ | |
38769 | need_locks \ | |
38770 | MANIFEST_TOOL \ | |
38771 | DSYMUTIL \ | |
38772 | NMEDIT \ | |
38773 | LIPO \ | |
38774 | OTOOL \ | |
38775 | OTOOL64 \ | |
38776 | shrext_cmds \ | |
38777 | export_dynamic_flag_spec \ | |
38778 | whole_archive_flag_spec \ | |
38779 | compiler_needs_object \ | |
38780 | with_gnu_ld \ | |
38781 | allow_undefined_flag \ | |
38782 | no_undefined_flag \ | |
38783 | hardcode_libdir_flag_spec \ | |
38784 | hardcode_libdir_separator \ | |
38785 | exclude_expsyms \ | |
38786 | include_expsyms \ | |
38787 | file_list_spec \ | |
38788 | variables_saved_for_relink \ | |
38789 | libname_spec \ | |
38790 | library_names_spec \ | |
38791 | soname_spec \ | |
38792 | install_override_mode \ | |
38793 | finish_eval \ | |
38794 | old_striplib \ | |
38795 | striplib; do | |
38796 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
38797 | *[\\\\\\\`\\"\\\$]*) | |
38798 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes | |
38799 | ;; | |
38800 | *) | |
38801 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
38802 | ;; | |
38803 | esac | |
38804 | done | |
38805 | ||
38806 | # Double-quote double-evaled strings. | |
38807 | for var in reload_cmds \ | |
38808 | old_postinstall_cmds \ | |
38809 | old_postuninstall_cmds \ | |
38810 | old_archive_cmds \ | |
38811 | extract_expsyms_cmds \ | |
38812 | old_archive_from_new_cmds \ | |
38813 | old_archive_from_expsyms_cmds \ | |
38814 | archive_cmds \ | |
38815 | archive_expsym_cmds \ | |
38816 | module_cmds \ | |
38817 | module_expsym_cmds \ | |
38818 | export_symbols_cmds \ | |
38819 | prelink_cmds \ | |
38820 | postlink_cmds \ | |
38821 | postinstall_cmds \ | |
38822 | postuninstall_cmds \ | |
38823 | finish_cmds \ | |
38824 | sys_lib_search_path_spec \ | |
38825 | configure_time_dlsearch_path \ | |
38826 | configure_time_lt_sys_library_path; do | |
38827 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
38828 | *[\\\\\\\`\\"\\\$]*) | |
38829 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes | |
38830 | ;; | |
38831 | *) | |
38832 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
38833 | ;; | |
38834 | esac | |
38835 | done | |
38836 | ||
38837 | ac_aux_dir='$ac_aux_dir' | |
38838 | ||
38839 | # See if we are running on zsh, and set the options that allow our | |
38840 | # commands through without removal of \ escapes INIT. | |
38841 | if test -n "\${ZSH_VERSION+set}"; then | |
38842 | setopt NO_GLOB_SUBST | |
38843 | fi | |
38844 | ||
38845 | ||
38846 | PACKAGE='$PACKAGE' | |
38847 | VERSION='$VERSION' | |
38848 | RM='$RM' | |
38849 | ofile='$ofile' | |
38850 | ||
38851 | ||
38852 | ||
38853 | ||
38854 | _ACEOF | |
38855 | ||
38856 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
38857 | ||
38858 | # Handling of arguments. | |
38859 | for ac_config_target in $ac_config_targets | |
38860 | do | |
38861 | case $ac_config_target in | |
38862 | "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;; | |
38863 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
38864 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
38865 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
38866 | "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;; | |
38867 | "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;; | |
38868 | "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;; | |
38869 | "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;; | |
38870 | "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;; | |
38871 | "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;; | |
38872 | "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;; | |
38873 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
38874 | "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;; | |
38875 | "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;; | |
38876 | "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;; | |
38877 | "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;; | |
38878 | "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;; | |
38879 | "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;; | |
38880 | ||
38881 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
38882 | esac | |
38883 | done | |
38884 | ||
38885 | ||
38886 | # If the user did not use the arguments to specify the items to instantiate, | |
38887 | # then the envvar interface is used. Set only those that are not. | |
38888 | # We use the long form for the default assignment because of an extremely | |
38889 | # bizarre bug on SunOS 4.1.3. | |
38890 | if $ac_need_defaults; then | |
38891 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
38892 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
38893 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
38894 | fi | |
38895 | ||
38896 | # Have a temporary directory for convenience. Make it in the build tree | |
38897 | # simply because there is no reason against having it here, and in addition, | |
38898 | # creating and moving files from /tmp can sometimes cause problems. | |
38899 | # Hook for its removal unless debugging. | |
38900 | # Note that there is a small window in which the directory will not be cleaned: | |
38901 | # after its creation but before its name has been assigned to `$tmp'. | |
38902 | $debug || | |
38903 | { | |
38904 | tmp= ac_tmp= | |
38905 | trap 'exit_status=$? | |
38906 | : "${ac_tmp:=$tmp}" | |
38907 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
38908 | ' 0 | |
38909 | trap 'as_fn_exit 1' 1 2 13 15 | |
38910 | } | |
38911 | # Create a (secure) tmp directory for tmp files. | |
38912 | ||
38913 | { | |
38914 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
38915 | test -d "$tmp" | |
38916 | } || | |
38917 | { | |
38918 | tmp=./conf$$-$RANDOM | |
38919 | (umask 077 && mkdir "$tmp") | |
38920 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
38921 | ac_tmp=$tmp | |
38922 | ||
38923 | # Set up the scripts for CONFIG_FILES section. | |
38924 | # No need to generate them if there are no CONFIG_FILES. | |
38925 | # This happens for instance with `./config.status config.h'. | |
38926 | if test -n "$CONFIG_FILES"; then | |
38927 | ||
38928 | ||
38929 | ac_cr=`echo X | tr X '\015'` | |
38930 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
38931 | # But we know of no other shell where ac_cr would be empty at this | |
38932 | # point, so we can use a bashism as a fallback. | |
38933 | if test "x$ac_cr" = x; then | |
38934 | eval ac_cr=\$\'\\r\' | |
38935 | fi | |
38936 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
38937 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
38938 | ac_cs_awk_cr='\\r' | |
38939 | else | |
38940 | ac_cs_awk_cr=$ac_cr | |
38941 | fi | |
38942 | ||
38943 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
38944 | _ACEOF | |
38945 | ||
38946 | ||
38947 | { | |
38948 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
38949 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
38950 | echo "_ACEOF" | |
38951 | } >conf$$subs.sh || | |
38952 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
38953 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
38954 | ac_delim='%!_!# ' | |
38955 | for ac_last_try in false false false false false :; do | |
38956 | . ./conf$$subs.sh || | |
38957 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
38958 | ||
38959 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
38960 | if test $ac_delim_n = $ac_delim_num; then | |
38961 | break | |
38962 | elif $ac_last_try; then | |
38963 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
38964 | else | |
38965 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
38966 | fi | |
38967 | done | |
38968 | rm -f conf$$subs.sh | |
38969 | ||
38970 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
38971 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
38972 | _ACEOF | |
38973 | sed -n ' | |
38974 | h | |
38975 | s/^/S["/; s/!.*/"]=/ | |
38976 | p | |
38977 | g | |
38978 | s/^[^!]*!// | |
38979 | :repl | |
38980 | t repl | |
38981 | s/'"$ac_delim"'$// | |
38982 | t delim | |
38983 | :nl | |
38984 | h | |
38985 | s/\(.\{148\}\)..*/\1/ | |
38986 | t more1 | |
38987 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
38988 | p | |
38989 | n | |
38990 | b repl | |
38991 | :more1 | |
38992 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
38993 | p | |
38994 | g | |
38995 | s/.\{148\}// | |
38996 | t nl | |
38997 | :delim | |
38998 | h | |
38999 | s/\(.\{148\}\)..*/\1/ | |
39000 | t more2 | |
39001 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
39002 | p | |
39003 | b | |
39004 | :more2 | |
39005 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
39006 | p | |
39007 | g | |
39008 | s/.\{148\}// | |
39009 | t delim | |
39010 | ' <conf$$subs.awk | sed ' | |
39011 | /^[^""]/{ | |
39012 | N | |
39013 | s/\n// | |
39014 | } | |
39015 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
39016 | rm -f conf$$subs.awk | |
39017 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
39018 | _ACAWK | |
39019 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
39020 | for (key in S) S_is_set[key] = 1 | |
39021 | FS = "\a" | |
39022 | ||
39023 | } | |
39024 | { | |
39025 | line = $ 0 | |
39026 | nfields = split(line, field, "@") | |
39027 | substed = 0 | |
39028 | len = length(field[1]) | |
39029 | for (i = 2; i < nfields; i++) { | |
39030 | key = field[i] | |
39031 | keylen = length(key) | |
39032 | if (S_is_set[key]) { | |
39033 | value = S[key] | |
39034 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
39035 | len += length(value) + length(field[++i]) | |
39036 | substed = 1 | |
39037 | } else | |
39038 | len += 1 + keylen | |
39039 | } | |
39040 | ||
39041 | print line | |
39042 | } | |
39043 | ||
39044 | _ACAWK | |
39045 | _ACEOF | |
39046 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
39047 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
39048 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
39049 | else | |
39050 | cat | |
39051 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
39052 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
39053 | _ACEOF | |
39054 | ||
39055 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
39056 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
39057 | # trailing colons and then remove the whole line if VPATH becomes empty | |
39058 | # (actually we leave an empty line to preserve line numbers). | |
39059 | if test "x$srcdir" = x.; then | |
39060 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
39061 | h | |
39062 | s/// | |
39063 | s/^/:/ | |
39064 | s/[ ]*$/:/ | |
39065 | s/:\$(srcdir):/:/g | |
39066 | s/:\${srcdir}:/:/g | |
39067 | s/:@srcdir@:/:/g | |
39068 | s/^:*// | |
39069 | s/:*$// | |
39070 | x | |
39071 | s/\(=[ ]*\).*/\1/ | |
39072 | G | |
39073 | s/\n// | |
39074 | s/^[^=]*=[ ]*$// | |
39075 | }' | |
39076 | fi | |
39077 | ||
39078 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
39079 | fi # test -n "$CONFIG_FILES" | |
39080 | ||
39081 | # Set up the scripts for CONFIG_HEADERS section. | |
39082 | # No need to generate them if there are no CONFIG_HEADERS. | |
39083 | # This happens for instance with `./config.status Makefile'. | |
39084 | if test -n "$CONFIG_HEADERS"; then | |
39085 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
39086 | BEGIN { | |
39087 | _ACEOF | |
39088 | ||
39089 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
39090 | # here-document in config.status, that substitutes the proper values into | |
39091 | # config.h.in to produce config.h. | |
39092 | ||
39093 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
39094 | # handling of long lines. | |
39095 | ac_delim='%!_!# ' | |
39096 | for ac_last_try in false false :; do | |
39097 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
39098 | if test -z "$ac_tt"; then | |
39099 | break | |
39100 | elif $ac_last_try; then | |
39101 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
39102 | else | |
39103 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
39104 | fi | |
39105 | done | |
39106 | ||
39107 | # For the awk script, D is an array of macro values keyed by name, | |
39108 | # likewise P contains macro parameters if any. Preserve backslash | |
39109 | # newline sequences. | |
39110 | ||
39111 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
39112 | sed -n ' | |
39113 | s/.\{148\}/&'"$ac_delim"'/g | |
39114 | t rset | |
39115 | :rset | |
39116 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
39117 | t def | |
39118 | d | |
39119 | :def | |
39120 | s/\\$// | |
39121 | t bsnl | |
39122 | s/["\\]/\\&/g | |
39123 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
39124 | D["\1"]=" \3"/p | |
39125 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
39126 | d | |
39127 | :bsnl | |
39128 | s/["\\]/\\&/g | |
39129 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
39130 | D["\1"]=" \3\\\\\\n"\\/p | |
39131 | t cont | |
39132 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
39133 | t cont | |
39134 | d | |
39135 | :cont | |
39136 | n | |
39137 | s/.\{148\}/&'"$ac_delim"'/g | |
39138 | t clear | |
39139 | :clear | |
39140 | s/\\$// | |
39141 | t bsnlc | |
39142 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
39143 | d | |
39144 | :bsnlc | |
39145 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
39146 | b cont | |
39147 | ' <confdefs.h | sed ' | |
39148 | s/'"$ac_delim"'/"\\\ | |
39149 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
39150 | ||
39151 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
39152 | for (key in D) D_is_set[key] = 1 | |
39153 | FS = "\a" | |
39154 | } | |
39155 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
39156 | line = \$ 0 | |
39157 | split(line, arg, " ") | |
39158 | if (arg[1] == "#") { | |
39159 | defundef = arg[2] | |
39160 | mac1 = arg[3] | |
39161 | } else { | |
39162 | defundef = substr(arg[1], 2) | |
39163 | mac1 = arg[2] | |
39164 | } | |
39165 | split(mac1, mac2, "(") #) | |
39166 | macro = mac2[1] | |
39167 | prefix = substr(line, 1, index(line, defundef) - 1) | |
39168 | if (D_is_set[macro]) { | |
39169 | # Preserve the white space surrounding the "#". | |
39170 | print prefix "define", macro P[macro] D[macro] | |
39171 | next | |
39172 | } else { | |
39173 | # Replace #undef with comments. This is necessary, for example, | |
39174 | # in the case of _POSIX_SOURCE, which is predefined and required | |
39175 | # on some systems where configure will not decide to define it. | |
39176 | if (defundef == "undef") { | |
39177 | print "/*", prefix defundef, macro, "*/" | |
39178 | next | |
39179 | } | |
39180 | } | |
39181 | } | |
39182 | { print } | |
39183 | _ACAWK | |
39184 | _ACEOF | |
39185 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
39186 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
39187 | fi # test -n "$CONFIG_HEADERS" | |
39188 | ||
39189 | ||
39190 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
39191 | shift | |
39192 | for ac_tag | |
39193 | do | |
39194 | case $ac_tag in | |
39195 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
39196 | esac | |
39197 | case $ac_mode$ac_tag in | |
39198 | :[FHL]*:*);; | |
39199 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
39200 | :[FH]-) ac_tag=-:-;; | |
39201 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
39202 | esac | |
39203 | ac_save_IFS=$IFS | |
39204 | IFS=: | |
39205 | set x $ac_tag | |
39206 | IFS=$ac_save_IFS | |
39207 | shift | |
39208 | ac_file=$1 | |
39209 | shift | |
39210 | ||
39211 | case $ac_mode in | |
39212 | :L) ac_source=$1;; | |
39213 | :[FH]) | |
39214 | ac_file_inputs= | |
39215 | for ac_f | |
39216 | do | |
39217 | case $ac_f in | |
39218 | -) ac_f="$ac_tmp/stdin";; | |
39219 | *) # Look for the file first in the build tree, then in the source tree | |
39220 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
39221 | # because $ac_f cannot contain `:'. | |
39222 | test -f "$ac_f" || | |
39223 | case $ac_f in | |
39224 | [\\/$]*) false;; | |
39225 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
39226 | esac || | |
39227 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
39228 | esac | |
39229 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
39230 | as_fn_append ac_file_inputs " '$ac_f'" | |
39231 | done | |
39232 | ||
39233 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
39234 | # use $as_me), people would be surprised to read: | |
39235 | # /* config.h. Generated by config.status. */ | |
39236 | configure_input='Generated from '` | |
39237 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
39238 | `' by configure.' | |
39239 | if test x"$ac_file" != x-; then | |
39240 | configure_input="$ac_file. $configure_input" | |
39241 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
39242 | $as_echo "$as_me: creating $ac_file" >&6;} | |
39243 | fi | |
39244 | # Neutralize special characters interpreted by sed in replacement strings. | |
39245 | case $configure_input in #( | |
39246 | *\&* | *\|* | *\\* ) | |
39247 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
39248 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
39249 | *) ac_sed_conf_input=$configure_input;; | |
39250 | esac | |
39251 | ||
39252 | case $ac_tag in | |
39253 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
39254 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
39255 | esac | |
39256 | ;; | |
39257 | esac | |
39258 | ||
39259 | ac_dir=`$as_dirname -- "$ac_file" || | |
39260 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
39261 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
39262 | X"$ac_file" : 'X\(//\)$' \| \ | |
39263 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
39264 | $as_echo X"$ac_file" | | |
39265 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
39266 | s//\1/ | |
39267 | q | |
39268 | } | |
39269 | /^X\(\/\/\)[^/].*/{ | |
39270 | s//\1/ | |
39271 | q | |
39272 | } | |
39273 | /^X\(\/\/\)$/{ | |
39274 | s//\1/ | |
39275 | q | |
39276 | } | |
39277 | /^X\(\/\).*/{ | |
39278 | s//\1/ | |
39279 | q | |
39280 | } | |
39281 | s/.*/./; q'` | |
39282 | as_dir="$ac_dir"; as_fn_mkdir_p | |
39283 | ac_builddir=. | |
39284 | ||
39285 | case "$ac_dir" in | |
39286 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
39287 | *) | |
39288 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
39289 | # A ".." for each directory in $ac_dir_suffix. | |
39290 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
39291 | case $ac_top_builddir_sub in | |
39292 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
39293 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
39294 | esac ;; | |
39295 | esac | |
39296 | ac_abs_top_builddir=$ac_pwd | |
39297 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
39298 | # for backward compatibility: | |
39299 | ac_top_builddir=$ac_top_build_prefix | |
39300 | ||
39301 | case $srcdir in | |
39302 | .) # We are building in place. | |
39303 | ac_srcdir=. | |
39304 | ac_top_srcdir=$ac_top_builddir_sub | |
39305 | ac_abs_top_srcdir=$ac_pwd ;; | |
39306 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
39307 | ac_srcdir=$srcdir$ac_dir_suffix; | |
39308 | ac_top_srcdir=$srcdir | |
39309 | ac_abs_top_srcdir=$srcdir ;; | |
39310 | *) # Relative name. | |
39311 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
39312 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
39313 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
39314 | esac | |
39315 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
39316 | ||
39317 | ||
39318 | case $ac_mode in | |
39319 | :F) | |
39320 | # | |
39321 | # CONFIG_FILE | |
39322 | # | |
39323 | ||
39324 | case $INSTALL in | |
39325 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
39326 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
39327 | esac | |
39328 | ac_MKDIR_P=$MKDIR_P | |
39329 | case $MKDIR_P in | |
39330 | [\\/$]* | ?:[\\/]* ) ;; | |
39331 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
39332 | esac | |
39333 | _ACEOF | |
39334 | ||
39335 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
39336 | # If the template does not know about datarootdir, expand it. | |
39337 | # FIXME: This hack should be removed a few years after 2.60. | |
39338 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
39339 | ac_sed_dataroot=' | |
39340 | /datarootdir/ { | |
39341 | p | |
39342 | q | |
39343 | } | |
39344 | /@datadir@/p | |
39345 | /@docdir@/p | |
39346 | /@infodir@/p | |
39347 | /@localedir@/p | |
39348 | /@mandir@/p' | |
39349 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
39350 | *datarootdir*) ac_datarootdir_seen=yes;; | |
39351 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
39352 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
39353 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
39354 | _ACEOF | |
39355 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
39356 | ac_datarootdir_hack=' | |
39357 | s&@datadir@&$datadir&g | |
39358 | s&@docdir@&$docdir&g | |
39359 | s&@infodir@&$infodir&g | |
39360 | s&@localedir@&$localedir&g | |
39361 | s&@mandir@&$mandir&g | |
39362 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
39363 | esac | |
39364 | _ACEOF | |
39365 | ||
39366 | # Neutralize VPATH when `$srcdir' = `.'. | |
39367 | # Shell code in configure.ac might set extrasub. | |
39368 | # FIXME: do we really want to maintain this feature? | |
39369 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
39370 | ac_sed_extra="$ac_vpsub | |
39371 | $extrasub | |
39372 | _ACEOF | |
39373 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
39374 | :t | |
39375 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
39376 | s|@configure_input@|$ac_sed_conf_input|;t t | |
39377 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
39378 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
39379 | s&@srcdir@&$ac_srcdir&;t t | |
39380 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
39381 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
39382 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
39383 | s&@builddir@&$ac_builddir&;t t | |
39384 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
39385 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
39386 | s&@INSTALL@&$ac_INSTALL&;t t | |
39387 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
39388 | $ac_datarootdir_hack | |
39389 | " | |
39390 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
39391 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
39392 | ||
39393 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
39394 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
39395 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
39396 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
39397 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
39398 | which seems to be undefined. Please make sure it is defined" >&5 | |
39399 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
39400 | which seems to be undefined. Please make sure it is defined" >&2;} | |
39401 | ||
39402 | rm -f "$ac_tmp/stdin" | |
39403 | case $ac_file in | |
39404 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
39405 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
39406 | esac \ | |
39407 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
39408 | ;; | |
39409 | :H) | |
39410 | # | |
39411 | # CONFIG_HEADER | |
39412 | # | |
39413 | if test x"$ac_file" != x-; then | |
39414 | { | |
39415 | $as_echo "/* $configure_input */" \ | |
39416 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
39417 | } >"$ac_tmp/config.h" \ | |
39418 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
39419 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
39420 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
39421 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
39422 | else | |
39423 | rm -f "$ac_file" | |
39424 | mv "$ac_tmp/config.h" "$ac_file" \ | |
39425 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
39426 | fi | |
39427 | else | |
39428 | $as_echo "/* $configure_input */" \ | |
39429 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
39430 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
39431 | fi | |
39432 | # Compute "$ac_file"'s index in $config_headers. | |
39433 | _am_arg="$ac_file" | |
39434 | _am_stamp_count=1 | |
39435 | for _am_header in $config_headers :; do | |
39436 | case $_am_header in | |
39437 | $_am_arg | $_am_arg:* ) | |
39438 | break ;; | |
39439 | * ) | |
39440 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
39441 | esac | |
39442 | done | |
39443 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
39444 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
39445 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
39446 | X"$_am_arg" : 'X\(//\)$' \| \ | |
39447 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
39448 | $as_echo X"$_am_arg" | | |
39449 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
39450 | s//\1/ | |
39451 | q | |
39452 | } | |
39453 | /^X\(\/\/\)[^/].*/{ | |
39454 | s//\1/ | |
39455 | q | |
39456 | } | |
39457 | /^X\(\/\/\)$/{ | |
39458 | s//\1/ | |
39459 | q | |
39460 | } | |
39461 | /^X\(\/\).*/{ | |
39462 | s//\1/ | |
39463 | q | |
39464 | } | |
39465 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
39466 | ;; | |
39467 | ||
39468 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
39469 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
39470 | ;; | |
39471 | esac | |
39472 | ||
39473 | ||
39474 | case $ac_file$ac_mode in | |
39475 | "zfs_config.h":H) | |
39476 | (mv zfs_config.h zfs_config.h.tmp && | |
39477 | awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h && | |
39478 | rm zfs_config.h.tmp) || exit 1 ;; | |
39479 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
39480 | # Older Autoconf quotes --file arguments for eval, but not when files | |
39481 | # are listed without --file. Let's play safe and only enable the eval | |
39482 | # if we detect the quoting. | |
39483 | case $CONFIG_FILES in | |
39484 | *\'*) eval set x "$CONFIG_FILES" ;; | |
39485 | *) set x $CONFIG_FILES ;; | |
39486 | esac | |
39487 | shift | |
39488 | for mf | |
39489 | do | |
39490 | # Strip MF so we end up with the name of the file. | |
39491 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
39492 | # Check whether this is an Automake generated Makefile or not. | |
39493 | # We used to match only the files named 'Makefile.in', but | |
39494 | # some people rename them; so instead we look at the file content. | |
39495 | # Grep'ing the first line is not enough: some people post-process | |
39496 | # each Makefile.in and add a new line on top of each file to say so. | |
39497 | # Grep'ing the whole file is not good either: AIX grep has a line | |
39498 | # limit of 2048, but all sed's we know have understand at least 4000. | |
39499 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
39500 | dirpart=`$as_dirname -- "$mf" || | |
39501 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
39502 | X"$mf" : 'X\(//\)[^/]' \| \ | |
39503 | X"$mf" : 'X\(//\)$' \| \ | |
39504 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
39505 | $as_echo X"$mf" | | |
39506 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
39507 | s//\1/ | |
39508 | q | |
39509 | } | |
39510 | /^X\(\/\/\)[^/].*/{ | |
39511 | s//\1/ | |
39512 | q | |
39513 | } | |
39514 | /^X\(\/\/\)$/{ | |
39515 | s//\1/ | |
39516 | q | |
39517 | } | |
39518 | /^X\(\/\).*/{ | |
39519 | s//\1/ | |
39520 | q | |
39521 | } | |
39522 | s/.*/./; q'` | |
39523 | else | |
39524 | continue | |
39525 | fi | |
39526 | # Extract the definition of DEPDIR, am__include, and am__quote | |
39527 | # from the Makefile without running 'make'. | |
39528 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
39529 | test -z "$DEPDIR" && continue | |
39530 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
39531 | test -z "$am__include" && continue | |
39532 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
39533 | # Find all dependency output files, they are included files with | |
39534 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
39535 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
39536 | # expansion. | |
39537 | for file in `sed -n " | |
39538 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
39539 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
39540 | # Make sure the directory exists. | |
39541 | test -f "$dirpart/$file" && continue | |
39542 | fdir=`$as_dirname -- "$file" || | |
39543 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
39544 | X"$file" : 'X\(//\)[^/]' \| \ | |
39545 | X"$file" : 'X\(//\)$' \| \ | |
39546 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
39547 | $as_echo X"$file" | | |
39548 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
39549 | s//\1/ | |
39550 | q | |
39551 | } | |
39552 | /^X\(\/\/\)[^/].*/{ | |
39553 | s//\1/ | |
39554 | q | |
39555 | } | |
39556 | /^X\(\/\/\)$/{ | |
39557 | s//\1/ | |
39558 | q | |
39559 | } | |
39560 | /^X\(\/\).*/{ | |
39561 | s//\1/ | |
39562 | q | |
39563 | } | |
39564 | s/.*/./; q'` | |
39565 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
39566 | # echo "creating $dirpart/$file" | |
39567 | echo '# dummy' > "$dirpart/$file" | |
39568 | done | |
39569 | done | |
39570 | } | |
39571 | ;; | |
39572 | "libtool":C) | |
39573 | ||
39574 | # See if we are running on zsh, and set the options that allow our | |
39575 | # commands through without removal of \ escapes. | |
39576 | if test -n "${ZSH_VERSION+set}"; then | |
39577 | setopt NO_GLOB_SUBST | |
39578 | fi | |
39579 | ||
39580 | cfgfile=${ofile}T | |
39581 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
39582 | $RM "$cfgfile" | |
39583 | ||
39584 | cat <<_LT_EOF >> "$cfgfile" | |
39585 | #! $SHELL | |
39586 | # Generated automatically by $as_me ($PACKAGE) $VERSION | |
39587 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
39588 | ||
39589 | # Provide generalized library-building support services. | |
39590 | # Written by Gordon Matzigkeit, 1996 | |
39591 | ||
39592 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
39593 | # This is free software; see the source for copying conditions. There is NO | |
39594 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
39595 | ||
39596 | # GNU Libtool is free software; you can redistribute it and/or modify | |
39597 | # it under the terms of the GNU General Public License as published by | |
39598 | # the Free Software Foundation; either version 2 of of the License, or | |
39599 | # (at your option) any later version. | |
39600 | # | |
39601 | # As a special exception to the GNU General Public License, if you | |
39602 | # distribute this file as part of a program or library that is built | |
39603 | # using GNU Libtool, you may include this file under the same | |
39604 | # distribution terms that you use for the rest of that program. | |
39605 | # | |
39606 | # GNU Libtool is distributed in the hope that it will be useful, but | |
39607 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
39608 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
39609 | # GNU General Public License for more details. | |
39610 | # | |
39611 | # You should have received a copy of the GNU General Public License | |
39612 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
39613 | ||
39614 | ||
39615 | # The names of the tagged configurations supported by this script. | |
39616 | available_tags='' | |
39617 | ||
39618 | # Configured defaults for sys_lib_dlsearch_path munging. | |
39619 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
39620 | ||
39621 | # ### BEGIN LIBTOOL CONFIG | |
39622 | ||
39623 | # Which release of libtool.m4 was used? | |
39624 | macro_version=$macro_version | |
39625 | macro_revision=$macro_revision | |
39626 | ||
39627 | # Whether or not to build shared libraries. | |
39628 | build_libtool_libs=$enable_shared | |
39629 | ||
39630 | # Whether or not to build static libraries. | |
39631 | build_old_libs=$enable_static | |
39632 | ||
39633 | # What type of objects to build. | |
39634 | pic_mode=$pic_mode | |
39635 | ||
39636 | # Whether or not to optimize for fast installation. | |
39637 | fast_install=$enable_fast_install | |
39638 | ||
39639 | # Shared archive member basename,for filename based shared library versioning on AIX. | |
39640 | shared_archive_member_spec=$shared_archive_member_spec | |
39641 | ||
39642 | # Shell to use when invoking shell scripts. | |
39643 | SHELL=$lt_SHELL | |
39644 | ||
39645 | # An echo program that protects backslashes. | |
39646 | ECHO=$lt_ECHO | |
39647 | ||
39648 | # The PATH separator for the build system. | |
39649 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
39650 | ||
39651 | # The host system. | |
39652 | host_alias=$host_alias | |
39653 | host=$host | |
39654 | host_os=$host_os | |
39655 | ||
39656 | # The build system. | |
39657 | build_alias=$build_alias | |
39658 | build=$build | |
39659 | build_os=$build_os | |
39660 | ||
39661 | # A sed program that does not truncate output. | |
39662 | SED=$lt_SED | |
39663 | ||
39664 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
39665 | Xsed="\$SED -e 1s/^X//" | |
39666 | ||
39667 | # A grep program that handles long lines. | |
39668 | GREP=$lt_GREP | |
39669 | ||
39670 | # An ERE matcher. | |
39671 | EGREP=$lt_EGREP | |
39672 | ||
39673 | # A literal string matcher. | |
39674 | FGREP=$lt_FGREP | |
39675 | ||
39676 | # A BSD- or MS-compatible name lister. | |
39677 | NM=$lt_NM | |
39678 | ||
39679 | # Whether we need soft or hard links. | |
39680 | LN_S=$lt_LN_S | |
39681 | ||
39682 | # What is the maximum length of a command? | |
39683 | max_cmd_len=$max_cmd_len | |
39684 | ||
39685 | # Object file suffix (normally "o"). | |
39686 | objext=$ac_objext | |
39687 | ||
39688 | # Executable file suffix (normally ""). | |
39689 | exeext=$exeext | |
39690 | ||
39691 | # whether the shell understands "unset". | |
39692 | lt_unset=$lt_unset | |
39693 | ||
39694 | # turn spaces into newlines. | |
39695 | SP2NL=$lt_lt_SP2NL | |
39696 | ||
39697 | # turn newlines into spaces. | |
39698 | NL2SP=$lt_lt_NL2SP | |
39699 | ||
39700 | # convert \$build file names to \$host format. | |
39701 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
39702 | ||
39703 | # convert \$build files to toolchain format. | |
39704 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
39705 | ||
39706 | # An object symbol dumper. | |
39707 | OBJDUMP=$lt_OBJDUMP | |
39708 | ||
39709 | # Method to check whether dependent libraries are shared objects. | |
39710 | deplibs_check_method=$lt_deplibs_check_method | |
39711 | ||
39712 | # Command to use when deplibs_check_method = "file_magic". | |
39713 | file_magic_cmd=$lt_file_magic_cmd | |
39714 | ||
39715 | # How to find potential files when deplibs_check_method = "file_magic". | |
39716 | file_magic_glob=$lt_file_magic_glob | |
39717 | ||
39718 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
39719 | want_nocaseglob=$lt_want_nocaseglob | |
39720 | ||
39721 | # DLL creation program. | |
39722 | DLLTOOL=$lt_DLLTOOL | |
39723 | ||
39724 | # Command to associate shared and link libraries. | |
39725 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
39726 | ||
39727 | # The archiver. | |
39728 | AR=$lt_AR | |
39729 | ||
39730 | # Flags to create an archive. | |
39731 | AR_FLAGS=$lt_AR_FLAGS | |
39732 | ||
39733 | # How to feed a file listing to the archiver. | |
39734 | archiver_list_spec=$lt_archiver_list_spec | |
39735 | ||
39736 | # A symbol stripping program. | |
39737 | STRIP=$lt_STRIP | |
39738 | ||
39739 | # Commands used to install an old-style archive. | |
39740 | RANLIB=$lt_RANLIB | |
39741 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
39742 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
39743 | ||
39744 | # Whether to use a lock for old archive extraction. | |
39745 | lock_old_archive_extraction=$lock_old_archive_extraction | |
39746 | ||
39747 | # A C compiler. | |
39748 | LTCC=$lt_CC | |
39749 | ||
39750 | # LTCC compiler flags. | |
39751 | LTCFLAGS=$lt_CFLAGS | |
39752 | ||
39753 | # Take the output of nm and produce a listing of raw symbols and C names. | |
39754 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
39755 | ||
39756 | # Transform the output of nm in a proper C declaration. | |
39757 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
39758 | ||
39759 | # Transform the output of nm into a list of symbols to manually relocate. | |
39760 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
39761 | ||
39762 | # Transform the output of nm in a C name address pair. | |
39763 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
39764 | ||
39765 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
39766 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
39767 | ||
39768 | # The name lister interface. | |
39769 | nm_interface=$lt_lt_cv_nm_interface | |
39770 | ||
39771 | # Specify filename containing input files for \$NM. | |
39772 | nm_file_list_spec=$lt_nm_file_list_spec | |
39773 | ||
39774 | # The root where to search for dependent libraries,and where our libraries should be installed. | |
39775 | lt_sysroot=$lt_sysroot | |
39776 | ||
39777 | # Command to truncate a binary pipe. | |
39778 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
39779 | ||
39780 | # The name of the directory that contains temporary libtool files. | |
39781 | objdir=$objdir | |
39782 | ||
39783 | # Used to examine libraries when file_magic_cmd begins with "file". | |
39784 | MAGIC_CMD=$MAGIC_CMD | |
39785 | ||
39786 | # Must we lock files when doing compilation? | |
39787 | need_locks=$lt_need_locks | |
39788 | ||
39789 | # Manifest tool. | |
39790 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
39791 | ||
39792 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
39793 | DSYMUTIL=$lt_DSYMUTIL | |
39794 | ||
39795 | # Tool to change global to local symbols on Mac OS X. | |
39796 | NMEDIT=$lt_NMEDIT | |
39797 | ||
39798 | # Tool to manipulate fat objects and archives on Mac OS X. | |
39799 | LIPO=$lt_LIPO | |
39800 | ||
39801 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
39802 | OTOOL=$lt_OTOOL | |
39803 | ||
39804 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
39805 | OTOOL64=$lt_OTOOL64 | |
39806 | ||
39807 | # Old archive suffix (normally "a"). | |
39808 | libext=$libext | |
39809 | ||
39810 | # Shared library suffix (normally ".so"). | |
39811 | shrext_cmds=$lt_shrext_cmds | |
39812 | ||
39813 | # The commands to extract the exported symbol list from a shared archive. | |
39814 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
39815 | ||
39816 | # Variables whose values should be saved in libtool wrapper scripts and | |
39817 | # restored at link time. | |
39818 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
39819 | ||
39820 | # Do we need the "lib" prefix for modules? | |
39821 | need_lib_prefix=$need_lib_prefix | |
39822 | ||
39823 | # Do we need a version for libraries? | |
39824 | need_version=$need_version | |
39825 | ||
39826 | # Library versioning type. | |
39827 | version_type=$version_type | |
39828 | ||
39829 | # Shared library runtime path variable. | |
39830 | runpath_var=$runpath_var | |
39831 | ||
39832 | # Shared library path variable. | |
39833 | shlibpath_var=$shlibpath_var | |
39834 | ||
39835 | # Is shlibpath searched before the hard-coded library search path? | |
39836 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
39837 | ||
39838 | # Format of library name prefix. | |
39839 | libname_spec=$lt_libname_spec | |
39840 | ||
39841 | # List of archive names. First name is the real one, the rest are links. | |
39842 | # The last name is the one that the linker finds with -lNAME | |
39843 | library_names_spec=$lt_library_names_spec | |
39844 | ||
39845 | # The coded name of the library, if different from the real name. | |
39846 | soname_spec=$lt_soname_spec | |
39847 | ||
39848 | # Permission mode override for installation of shared libraries. | |
39849 | install_override_mode=$lt_install_override_mode | |
39850 | ||
39851 | # Command to use after installation of a shared archive. | |
39852 | postinstall_cmds=$lt_postinstall_cmds | |
39853 | ||
39854 | # Command to use after uninstallation of a shared archive. | |
39855 | postuninstall_cmds=$lt_postuninstall_cmds | |
39856 | ||
39857 | # Commands used to finish a libtool library installation in a directory. | |
39858 | finish_cmds=$lt_finish_cmds | |
39859 | ||
39860 | # As "finish_cmds", except a single script fragment to be evaled but | |
39861 | # not shown. | |
39862 | finish_eval=$lt_finish_eval | |
39863 | ||
39864 | # Whether we should hardcode library paths into libraries. | |
39865 | hardcode_into_libs=$hardcode_into_libs | |
39866 | ||
39867 | # Compile-time system search path for libraries. | |
39868 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
39869 | ||
39870 | # Detected run-time system search path for libraries. | |
39871 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
39872 | ||
39873 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
39874 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
39875 | ||
39876 | # Whether dlopen is supported. | |
39877 | dlopen_support=$enable_dlopen | |
39878 | ||
39879 | # Whether dlopen of programs is supported. | |
39880 | dlopen_self=$enable_dlopen_self | |
39881 | ||
39882 | # Whether dlopen of statically linked programs is supported. | |
39883 | dlopen_self_static=$enable_dlopen_self_static | |
39884 | ||
39885 | # Commands to strip libraries. | |
39886 | old_striplib=$lt_old_striplib | |
39887 | striplib=$lt_striplib | |
39888 | ||
39889 | ||
39890 | # The linker used to build libraries. | |
39891 | LD=$lt_LD | |
39892 | ||
39893 | # How to create reloadable object files. | |
39894 | reload_flag=$lt_reload_flag | |
39895 | reload_cmds=$lt_reload_cmds | |
39896 | ||
39897 | # Commands used to build an old-style archive. | |
39898 | old_archive_cmds=$lt_old_archive_cmds | |
39899 | ||
39900 | # A language specific compiler. | |
39901 | CC=$lt_compiler | |
39902 | ||
39903 | # Is the compiler the GNU compiler? | |
39904 | with_gcc=$GCC | |
39905 | ||
39906 | # Compiler flag to turn off builtin functions. | |
39907 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
39908 | ||
39909 | # Additional compiler flags for building library objects. | |
39910 | pic_flag=$lt_lt_prog_compiler_pic | |
39911 | ||
39912 | # How to pass a linker flag through the compiler. | |
39913 | wl=$lt_lt_prog_compiler_wl | |
39914 | ||
39915 | # Compiler flag to prevent dynamic linking. | |
39916 | link_static_flag=$lt_lt_prog_compiler_static | |
39917 | ||
39918 | # Does compiler simultaneously support -c and -o options? | |
39919 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
39920 | ||
39921 | # Whether or not to add -lc for building shared libraries. | |
39922 | build_libtool_need_lc=$archive_cmds_need_lc | |
39923 | ||
39924 | # Whether or not to disallow shared libs when runtime libs are static. | |
39925 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
39926 | ||
39927 | # Compiler flag to allow reflexive dlopens. | |
39928 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
39929 | ||
39930 | # Compiler flag to generate shared objects directly from archives. | |
39931 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
39932 | ||
39933 | # Whether the compiler copes with passing no objects directly. | |
39934 | compiler_needs_object=$lt_compiler_needs_object | |
39935 | ||
39936 | # Create an old-style archive from a shared archive. | |
39937 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
39938 | ||
39939 | # Create a temporary old-style archive to link instead of a shared archive. | |
39940 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
39941 | ||
39942 | # Commands used to build a shared archive. | |
39943 | archive_cmds=$lt_archive_cmds | |
39944 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
39945 | ||
39946 | # Commands used to build a loadable module if different from building | |
39947 | # a shared archive. | |
39948 | module_cmds=$lt_module_cmds | |
39949 | module_expsym_cmds=$lt_module_expsym_cmds | |
39950 | ||
39951 | # Whether we are building with GNU ld or not. | |
39952 | with_gnu_ld=$lt_with_gnu_ld | |
39953 | ||
39954 | # Flag that allows shared libraries with undefined symbols to be built. | |
39955 | allow_undefined_flag=$lt_allow_undefined_flag | |
39956 | ||
39957 | # Flag that enforces no undefined symbols. | |
39958 | no_undefined_flag=$lt_no_undefined_flag | |
39959 | ||
39960 | # Flag to hardcode \$libdir into a binary during linking. | |
39961 | # This must work even if \$libdir does not exist | |
39962 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
39963 | ||
39964 | # Whether we need a single "-rpath" flag with a separated argument. | |
39965 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
39966 | ||
39967 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
39968 | # DIR into the resulting binary. | |
39969 | hardcode_direct=$hardcode_direct | |
39970 | ||
39971 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
39972 | # DIR into the resulting binary and the resulting library dependency is | |
39973 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the | |
39974 | # library is relocated. | |
39975 | hardcode_direct_absolute=$hardcode_direct_absolute | |
39976 | ||
39977 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
39978 | # into the resulting binary. | |
39979 | hardcode_minus_L=$hardcode_minus_L | |
39980 | ||
39981 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
39982 | # into the resulting binary. | |
39983 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
39984 | ||
39985 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
39986 | # into the library and all subsequent libraries and executables linked | |
39987 | # against it. | |
39988 | hardcode_automatic=$hardcode_automatic | |
39989 | ||
39990 | # Set to yes if linker adds runtime paths of dependent libraries | |
39991 | # to runtime path list. | |
39992 | inherit_rpath=$inherit_rpath | |
39993 | ||
39994 | # Whether libtool must link a program against all its dependency libraries. | |
39995 | link_all_deplibs=$link_all_deplibs | |
39996 | ||
39997 | # Set to "yes" if exported symbols are required. | |
39998 | always_export_symbols=$always_export_symbols | |
39999 | ||
40000 | # The commands to list exported symbols. | |
40001 | export_symbols_cmds=$lt_export_symbols_cmds | |
40002 | ||
40003 | # Symbols that should not be listed in the preloaded symbols. | |
40004 | exclude_expsyms=$lt_exclude_expsyms | |
40005 | ||
40006 | # Symbols that must always be exported. | |
40007 | include_expsyms=$lt_include_expsyms | |
40008 | ||
40009 | # Commands necessary for linking programs (against libraries) with templates. | |
40010 | prelink_cmds=$lt_prelink_cmds | |
40011 | ||
40012 | # Commands necessary for finishing linking programs. | |
40013 | postlink_cmds=$lt_postlink_cmds | |
40014 | ||
40015 | # Specify filename containing input files. | |
40016 | file_list_spec=$lt_file_list_spec | |
40017 | ||
40018 | # How to hardcode a shared library path into an executable. | |
40019 | hardcode_action=$hardcode_action | |
40020 | ||
40021 | # ### END LIBTOOL CONFIG | |
40022 | ||
40023 | _LT_EOF | |
40024 | ||
40025 | cat <<'_LT_EOF' >> "$cfgfile" | |
40026 | ||
40027 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
40028 | ||
40029 | # func_munge_path_list VARIABLE PATH | |
40030 | # ----------------------------------- | |
40031 | # VARIABLE is name of variable containing _space_ separated list of | |
40032 | # directories to be munged by the contents of PATH, which is string | |
40033 | # having a format: | |
40034 | # "DIR[:DIR]:" | |
40035 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
40036 | # ":DIR[:DIR]" | |
40037 | # string "DIR[ DIR]" will be appended to VARIABLE | |
40038 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
40039 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
40040 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
40041 | # "DIR[:DIR]" | |
40042 | # VARIABLE will be replaced by "DIR[ DIR]" | |
40043 | func_munge_path_list () | |
40044 | { | |
40045 | case x$2 in | |
40046 | x) | |
40047 | ;; | |
40048 | *:) | |
40049 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
40050 | ;; | |
40051 | x:*) | |
40052 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
40053 | ;; | |
40054 | *::*) | |
40055 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
40056 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
40057 | ;; | |
40058 | *) | |
40059 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
40060 | ;; | |
40061 | esac | |
40062 | } | |
40063 | ||
40064 | ||
40065 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
40066 | func_cc_basename () | |
40067 | { | |
40068 | for cc_temp in $*""; do | |
40069 | case $cc_temp in | |
40070 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
40071 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
40072 | \-*) ;; | |
40073 | *) break;; | |
40074 | esac | |
40075 | done | |
40076 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
40077 | } | |
40078 | ||
40079 | ||
40080 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
40081 | ||
40082 | _LT_EOF | |
40083 | ||
40084 | case $host_os in | |
40085 | aix3*) | |
40086 | cat <<\_LT_EOF >> "$cfgfile" | |
40087 | # AIX sometimes has problems with the GCC collect2 program. For some | |
40088 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
40089 | # vanish in a puff of smoke. | |
40090 | if test set != "${COLLECT_NAMES+set}"; then | |
40091 | COLLECT_NAMES= | |
40092 | export COLLECT_NAMES | |
40093 | fi | |
40094 | _LT_EOF | |
40095 | ;; | |
40096 | esac | |
40097 | ||
40098 | ||
40099 | ltmain=$ac_aux_dir/ltmain.sh | |
40100 | ||
40101 | ||
40102 | # We use sed instead of cat because bash on DJGPP gets confused if | |
40103 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
40104 | # text mode, it properly converts lines to CR/LF. This bash problem | |
40105 | # is reportedly fixed, but why not run on old versions too? | |
40106 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
40107 | || (rm -f "$cfgfile"; exit 1) | |
40108 | ||
40109 | mv -f "$cfgfile" "$ofile" || | |
40110 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
40111 | chmod +x "$ofile" | |
40112 | ||
40113 | ;; | |
40114 | ||
40115 | esac | |
40116 | done # for ac_tag | |
40117 | ||
40118 | ||
40119 | as_fn_exit 0 | |
40120 | _ACEOF | |
40121 | ac_clean_files=$ac_clean_files_save | |
40122 | ||
40123 | test $ac_write_fail = 0 || | |
40124 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
40125 | ||
40126 | ||
40127 | # configure is writing to config.log, and then calls config.status. | |
40128 | # config.status does its own redirection, appending to config.log. | |
40129 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
40130 | # by configure, so config.status won't be able to write to it; its | |
40131 | # output is simply discarded. So we exec the FD to /dev/null, | |
40132 | # effectively closing config.log, so it can be properly (re)opened and | |
40133 | # appended to by config.status. When coming back to configure, we | |
40134 | # need to make the FD available again. | |
40135 | if test "$no_create" != yes; then | |
40136 | ac_cs_success=: | |
40137 | ac_config_status_args= | |
40138 | test "$silent" = yes && | |
40139 | ac_config_status_args="$ac_config_status_args --quiet" | |
40140 | exec 5>/dev/null | |
40141 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
40142 | exec 5>>config.log | |
40143 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
40144 | # would make configure fail if this is the last instruction. | |
40145 | $ac_cs_success || as_fn_exit 1 | |
40146 | fi | |
40147 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
40148 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
40149 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
40150 | fi | |
40151 |