]>
Commit | Line | Data |
---|---|---|
904dbe44 CIK |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
2078c8a7 | 3 | # Generated by GNU Autoconf 2.69 for zfs 0.6.5.6. |
904dbe44 CIK |
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' | |
2078c8a7 DJL |
590 | PACKAGE_VERSION='0.6.5.6' |
591 | PACKAGE_STRING='zfs 0.6.5.6' | |
904dbe44 CIK |
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 | |
653 | FRAME_LARGER_THAN | |
654 | LIBBLKID | |
655 | LIBUUID | |
656 | ZLIB | |
657 | dracutdir | |
658 | ZFS_INIT_SYSV | |
659 | modulesloaddir | |
660 | systemdpresetdir | |
661 | systemdunitdir | |
662 | ZFS_MODULE_LOAD | |
663 | ZFS_INIT_SYSTEMD | |
664 | udevruledir | |
665 | udevdir | |
666 | mounthelperdir | |
667 | NO_BOOL_COMPARE | |
668 | NO_UNUSED_BUT_SET_VARIABLE | |
669 | ZFS_CONFIG | |
670 | TARGET_ASM_DIR | |
671 | ALIEN_VERSION | |
672 | ALIEN | |
673 | HAVE_ALIEN | |
674 | DPKGBUILD_VERSION | |
675 | DPKGBUILD | |
676 | HAVE_DPKGBUILD | |
677 | DPKG_VERSION | |
678 | DPKG | |
679 | HAVE_DPKG | |
680 | SRPM_DEFINE_COMMON | |
681 | SRPM_DEFINE_DKMS | |
682 | SRPM_DEFINE_KMOD | |
683 | SRPM_DEFINE_UTIL | |
684 | RPM_DEFINE_COMMON | |
685 | RPM_DEFINE_DKMS | |
686 | RPM_DEFINE_KMOD | |
687 | RPM_DEFINE_UTIL | |
688 | RPM_SPEC_DIR | |
689 | RPMBUILD_VERSION | |
690 | RPMBUILD | |
691 | HAVE_RPMBUILD | |
692 | RPM_VERSION | |
693 | RPM | |
694 | HAVE_RPM | |
695 | DEFINE_INITRAMFS | |
696 | DEFAULT_INITCONF_DIR | |
697 | DEFAULT_INIT_SCRIPT | |
698 | DEFAULT_INIT_DIR | |
699 | DEFAULT_PACKAGE | |
700 | VENDOR | |
701 | am__fastdepCCAS_FALSE | |
702 | am__fastdepCCAS_TRUE | |
703 | CCASDEPMODE | |
704 | CCASFLAGS | |
705 | CCAS | |
706 | CPP | |
3258f645 | 707 | LT_SYS_LIBRARY_PATH |
904dbe44 CIK |
708 | OTOOL64 |
709 | OTOOL | |
710 | LIPO | |
711 | NMEDIT | |
712 | DSYMUTIL | |
713 | MANIFEST_TOOL | |
714 | RANLIB | |
715 | ac_ct_AR | |
716 | AR | |
717 | DLLTOOL | |
718 | OBJDUMP | |
719 | LN_S | |
720 | NM | |
721 | ac_ct_DUMPBIN | |
722 | DUMPBIN | |
723 | LD | |
724 | FGREP | |
725 | EGREP | |
726 | GREP | |
727 | SED | |
728 | LIBTOOL | |
729 | am__fastdepCC_FALSE | |
730 | am__fastdepCC_TRUE | |
731 | CCDEPMODE | |
732 | am__nodep | |
733 | AMDEPBACKSLASH | |
734 | AMDEP_FALSE | |
735 | AMDEP_TRUE | |
736 | am__quote | |
737 | am__include | |
738 | DEPDIR | |
739 | OBJEXT | |
740 | EXEEXT | |
741 | ac_ct_CC | |
742 | CPPFLAGS | |
743 | LDFLAGS | |
744 | CFLAGS | |
745 | CC | |
746 | am__untar | |
747 | am__tar | |
748 | AMTAR | |
749 | am__leading_dot | |
750 | SET_MAKE | |
751 | mkdir_p | |
752 | MKDIR_P | |
753 | INSTALL_STRIP_PROGRAM | |
754 | STRIP | |
755 | install_sh | |
756 | MAKEINFO | |
757 | AUTOHEADER | |
758 | AUTOMAKE | |
759 | AUTOCONF | |
760 | ACLOCAL | |
761 | VERSION | |
762 | PACKAGE | |
763 | CYGPATH_W | |
764 | am__isrc | |
765 | INSTALL_DATA | |
766 | INSTALL_SCRIPT | |
767 | INSTALL_PROGRAM | |
768 | AM_BACKSLASH | |
769 | AM_DEFAULT_VERBOSITY | |
770 | AM_DEFAULT_V | |
771 | AM_V | |
772 | MAINT | |
773 | MAINTAINER_MODE_FALSE | |
774 | MAINTAINER_MODE_TRUE | |
775 | target_os | |
776 | target_vendor | |
777 | target_cpu | |
778 | target | |
779 | host_os | |
780 | host_vendor | |
781 | host_cpu | |
782 | host | |
783 | build_os | |
784 | build_vendor | |
785 | build_cpu | |
786 | build | |
787 | ZFS_META_LT_AGE | |
788 | ZFS_META_LT_REVISION | |
789 | ZFS_META_LT_CURRENT | |
790 | ZFS_META_AUTHOR | |
791 | ZFS_META_DATA | |
792 | ZFS_META_ALIAS | |
793 | ZFS_META_LICENSE | |
794 | RELEASE | |
795 | ZFS_META_RELEASE | |
796 | ZFS_META_VERSION | |
797 | ZFS_META_NAME | |
798 | AWK | |
799 | target_alias | |
800 | host_alias | |
801 | build_alias | |
802 | LIBS | |
803 | ECHO_T | |
804 | ECHO_N | |
805 | ECHO_C | |
806 | DEFS | |
807 | mandir | |
808 | localedir | |
809 | libdir | |
810 | psdir | |
811 | pdfdir | |
812 | dvidir | |
813 | htmldir | |
814 | infodir | |
815 | docdir | |
816 | oldincludedir | |
817 | includedir | |
818 | runstatedir | |
819 | localstatedir | |
820 | sharedstatedir | |
821 | sysconfdir | |
822 | datadir | |
823 | datarootdir | |
824 | libexecdir | |
825 | sbindir | |
826 | bindir | |
827 | program_transform_name | |
828 | prefix | |
829 | exec_prefix | |
830 | PACKAGE_URL | |
831 | PACKAGE_BUGREPORT | |
832 | PACKAGE_STRING | |
833 | PACKAGE_VERSION | |
834 | PACKAGE_TARNAME | |
835 | PACKAGE_NAME | |
836 | PATH_SEPARATOR | |
837 | SHELL' | |
838 | ac_subst_files='' | |
839 | ac_user_opts=' | |
840 | enable_option_checking | |
841 | enable_maintainer_mode | |
842 | enable_silent_rules | |
843 | enable_dependency_tracking | |
844 | enable_shared | |
845 | enable_static | |
846 | with_pic | |
847 | enable_fast_install | |
3258f645 | 848 | with_aix_soname |
904dbe44 CIK |
849 | with_gnu_ld |
850 | with_sysroot | |
851 | enable_libtool_lock | |
852 | with_spec | |
853 | with_config | |
854 | enable_linux_builtin | |
855 | with_mounthelperdir | |
856 | with_udevdir | |
857 | with_udevruledir | |
858 | enable_systemd | |
859 | with_systemdunitdir | |
860 | with_systemdpresetdir | |
861 | with_systemdmodulesloaddir | |
862 | enable_sysvinit | |
863 | with_dracutdir | |
864 | with_blkid | |
865 | with_linux | |
866 | with_linux_obj | |
867 | with_spl | |
868 | with_spl_obj | |
869 | with_spl_timeout | |
870 | enable_debug | |
871 | enable_debug_dmu_tx | |
872 | ' | |
873 | ac_precious_vars='build_alias | |
874 | host_alias | |
875 | target_alias | |
876 | CC | |
877 | CFLAGS | |
878 | LDFLAGS | |
879 | LIBS | |
880 | CPPFLAGS | |
3258f645 | 881 | LT_SYS_LIBRARY_PATH |
904dbe44 CIK |
882 | CPP |
883 | CCAS | |
884 | CCASFLAGS' | |
885 | ||
886 | ||
887 | # Initialize some variables set by options. | |
888 | ac_init_help= | |
889 | ac_init_version=false | |
890 | ac_unrecognized_opts= | |
891 | ac_unrecognized_sep= | |
892 | # The variables have the same names as the options, with | |
893 | # dashes changed to underlines. | |
894 | cache_file=/dev/null | |
895 | exec_prefix=NONE | |
896 | no_create= | |
897 | no_recursion= | |
898 | prefix=NONE | |
899 | program_prefix=NONE | |
900 | program_suffix=NONE | |
901 | program_transform_name=s,x,x, | |
902 | silent= | |
903 | site= | |
904 | srcdir= | |
905 | verbose= | |
906 | x_includes=NONE | |
907 | x_libraries=NONE | |
908 | ||
909 | # Installation directory options. | |
910 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
911 | # and all the variables that are supposed to be based on exec_prefix | |
912 | # by default will actually change. | |
913 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
914 | # (The list follows the same order as the GNU Coding Standards.) | |
915 | bindir='${exec_prefix}/bin' | |
916 | sbindir='${exec_prefix}/sbin' | |
917 | libexecdir='${exec_prefix}/libexec' | |
918 | datarootdir='${prefix}/share' | |
919 | datadir='${datarootdir}' | |
920 | sysconfdir='${prefix}/etc' | |
921 | sharedstatedir='${prefix}/com' | |
922 | localstatedir='${prefix}/var' | |
923 | runstatedir='${localstatedir}/run' | |
924 | includedir='${prefix}/include' | |
925 | oldincludedir='/usr/include' | |
926 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
927 | infodir='${datarootdir}/info' | |
928 | htmldir='${docdir}' | |
929 | dvidir='${docdir}' | |
930 | pdfdir='${docdir}' | |
931 | psdir='${docdir}' | |
932 | libdir='${exec_prefix}/lib' | |
933 | localedir='${datarootdir}/locale' | |
934 | mandir='${datarootdir}/man' | |
935 | ||
936 | ac_prev= | |
937 | ac_dashdash= | |
938 | for ac_option | |
939 | do | |
940 | # If the previous option needs an argument, assign it. | |
941 | if test -n "$ac_prev"; then | |
942 | eval $ac_prev=\$ac_option | |
943 | ac_prev= | |
944 | continue | |
945 | fi | |
946 | ||
947 | case $ac_option in | |
948 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
949 | *=) ac_optarg= ;; | |
950 | *) ac_optarg=yes ;; | |
951 | esac | |
952 | ||
953 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
954 | ||
955 | case $ac_dashdash$ac_option in | |
956 | --) | |
957 | ac_dashdash=yes ;; | |
958 | ||
959 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
960 | ac_prev=bindir ;; | |
961 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
962 | bindir=$ac_optarg ;; | |
963 | ||
964 | -build | --build | --buil | --bui | --bu) | |
965 | ac_prev=build_alias ;; | |
966 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
967 | build_alias=$ac_optarg ;; | |
968 | ||
969 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
970 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
971 | ac_prev=cache_file ;; | |
972 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
973 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
974 | cache_file=$ac_optarg ;; | |
975 | ||
976 | --config-cache | -C) | |
977 | cache_file=config.cache ;; | |
978 | ||
979 | -datadir | --datadir | --datadi | --datad) | |
980 | ac_prev=datadir ;; | |
981 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
982 | datadir=$ac_optarg ;; | |
983 | ||
984 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
985 | | --dataroo | --dataro | --datar) | |
986 | ac_prev=datarootdir ;; | |
987 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
988 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
989 | datarootdir=$ac_optarg ;; | |
990 | ||
991 | -disable-* | --disable-*) | |
992 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
993 | # Reject names that are not valid shell variable names. | |
994 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
995 | as_fn_error $? "invalid feature name: $ac_useropt" | |
996 | ac_useropt_orig=$ac_useropt | |
997 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
998 | case $ac_user_opts in | |
999 | *" | |
1000 | "enable_$ac_useropt" | |
1001 | "*) ;; | |
1002 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1003 | ac_unrecognized_sep=', ';; | |
1004 | esac | |
1005 | eval enable_$ac_useropt=no ;; | |
1006 | ||
1007 | -docdir | --docdir | --docdi | --doc | --do) | |
1008 | ac_prev=docdir ;; | |
1009 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1010 | docdir=$ac_optarg ;; | |
1011 | ||
1012 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1013 | ac_prev=dvidir ;; | |
1014 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1015 | dvidir=$ac_optarg ;; | |
1016 | ||
1017 | -enable-* | --enable-*) | |
1018 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1019 | # Reject names that are not valid shell variable names. | |
1020 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1021 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1022 | ac_useropt_orig=$ac_useropt | |
1023 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1024 | case $ac_user_opts in | |
1025 | *" | |
1026 | "enable_$ac_useropt" | |
1027 | "*) ;; | |
1028 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1029 | ac_unrecognized_sep=', ';; | |
1030 | esac | |
1031 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1032 | ||
1033 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1034 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1035 | | --exec | --exe | --ex) | |
1036 | ac_prev=exec_prefix ;; | |
1037 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1038 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1039 | | --exec=* | --exe=* | --ex=*) | |
1040 | exec_prefix=$ac_optarg ;; | |
1041 | ||
1042 | -gas | --gas | --ga | --g) | |
1043 | # Obsolete; use --with-gas. | |
1044 | with_gas=yes ;; | |
1045 | ||
1046 | -help | --help | --hel | --he | -h) | |
1047 | ac_init_help=long ;; | |
1048 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1049 | ac_init_help=recursive ;; | |
1050 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1051 | ac_init_help=short ;; | |
1052 | ||
1053 | -host | --host | --hos | --ho) | |
1054 | ac_prev=host_alias ;; | |
1055 | -host=* | --host=* | --hos=* | --ho=*) | |
1056 | host_alias=$ac_optarg ;; | |
1057 | ||
1058 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1059 | ac_prev=htmldir ;; | |
1060 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1061 | | --ht=*) | |
1062 | htmldir=$ac_optarg ;; | |
1063 | ||
1064 | -includedir | --includedir | --includedi | --included | --include \ | |
1065 | | --includ | --inclu | --incl | --inc) | |
1066 | ac_prev=includedir ;; | |
1067 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1068 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1069 | includedir=$ac_optarg ;; | |
1070 | ||
1071 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1072 | ac_prev=infodir ;; | |
1073 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1074 | infodir=$ac_optarg ;; | |
1075 | ||
1076 | -libdir | --libdir | --libdi | --libd) | |
1077 | ac_prev=libdir ;; | |
1078 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1079 | libdir=$ac_optarg ;; | |
1080 | ||
1081 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1082 | | --libexe | --libex | --libe) | |
1083 | ac_prev=libexecdir ;; | |
1084 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1085 | | --libexe=* | --libex=* | --libe=*) | |
1086 | libexecdir=$ac_optarg ;; | |
1087 | ||
1088 | -localedir | --localedir | --localedi | --localed | --locale) | |
1089 | ac_prev=localedir ;; | |
1090 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1091 | localedir=$ac_optarg ;; | |
1092 | ||
1093 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1094 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1095 | ac_prev=localstatedir ;; | |
1096 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1097 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1098 | localstatedir=$ac_optarg ;; | |
1099 | ||
1100 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1101 | ac_prev=mandir ;; | |
1102 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1103 | mandir=$ac_optarg ;; | |
1104 | ||
1105 | -nfp | --nfp | --nf) | |
1106 | # Obsolete; use --without-fp. | |
1107 | with_fp=no ;; | |
1108 | ||
1109 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1110 | | --no-cr | --no-c | -n) | |
1111 | no_create=yes ;; | |
1112 | ||
1113 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1114 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1115 | no_recursion=yes ;; | |
1116 | ||
1117 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1118 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1119 | | --oldin | --oldi | --old | --ol | --o) | |
1120 | ac_prev=oldincludedir ;; | |
1121 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1122 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1123 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1124 | oldincludedir=$ac_optarg ;; | |
1125 | ||
1126 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1127 | ac_prev=prefix ;; | |
1128 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1129 | prefix=$ac_optarg ;; | |
1130 | ||
1131 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1132 | | --program-pre | --program-pr | --program-p) | |
1133 | ac_prev=program_prefix ;; | |
1134 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1135 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1136 | program_prefix=$ac_optarg ;; | |
1137 | ||
1138 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1139 | | --program-suf | --program-su | --program-s) | |
1140 | ac_prev=program_suffix ;; | |
1141 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1142 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1143 | program_suffix=$ac_optarg ;; | |
1144 | ||
1145 | -program-transform-name | --program-transform-name \ | |
1146 | | --program-transform-nam | --program-transform-na \ | |
1147 | | --program-transform-n | --program-transform- \ | |
1148 | | --program-transform | --program-transfor \ | |
1149 | | --program-transfo | --program-transf \ | |
1150 | | --program-trans | --program-tran \ | |
1151 | | --progr-tra | --program-tr | --program-t) | |
1152 | ac_prev=program_transform_name ;; | |
1153 | -program-transform-name=* | --program-transform-name=* \ | |
1154 | | --program-transform-nam=* | --program-transform-na=* \ | |
1155 | | --program-transform-n=* | --program-transform-=* \ | |
1156 | | --program-transform=* | --program-transfor=* \ | |
1157 | | --program-transfo=* | --program-transf=* \ | |
1158 | | --program-trans=* | --program-tran=* \ | |
1159 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1160 | program_transform_name=$ac_optarg ;; | |
1161 | ||
1162 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1163 | ac_prev=pdfdir ;; | |
1164 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1165 | pdfdir=$ac_optarg ;; | |
1166 | ||
1167 | -psdir | --psdir | --psdi | --psd | --ps) | |
1168 | ac_prev=psdir ;; | |
1169 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1170 | psdir=$ac_optarg ;; | |
1171 | ||
1172 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1173 | | -silent | --silent | --silen | --sile | --sil) | |
1174 | silent=yes ;; | |
1175 | ||
1176 | -runstatedir | --runstatedir | --runstatedi | --runstated \ | |
1177 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1178 | | --run | --ru | --r) | |
1179 | ac_prev=runstatedir ;; | |
1180 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1181 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1182 | | --run=* | --ru=* | --r=*) | |
1183 | runstatedir=$ac_optarg ;; | |
1184 | ||
1185 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1186 | ac_prev=sbindir ;; | |
1187 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1188 | | --sbi=* | --sb=*) | |
1189 | sbindir=$ac_optarg ;; | |
1190 | ||
1191 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1192 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1193 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1194 | | --sha | --sh) | |
1195 | ac_prev=sharedstatedir ;; | |
1196 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1197 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1198 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1199 | | --sha=* | --sh=*) | |
1200 | sharedstatedir=$ac_optarg ;; | |
1201 | ||
1202 | -site | --site | --sit) | |
1203 | ac_prev=site ;; | |
1204 | -site=* | --site=* | --sit=*) | |
1205 | site=$ac_optarg ;; | |
1206 | ||
1207 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1208 | ac_prev=srcdir ;; | |
1209 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1210 | srcdir=$ac_optarg ;; | |
1211 | ||
1212 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1213 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1214 | ac_prev=sysconfdir ;; | |
1215 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1216 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1217 | sysconfdir=$ac_optarg ;; | |
1218 | ||
1219 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1220 | ac_prev=target_alias ;; | |
1221 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1222 | target_alias=$ac_optarg ;; | |
1223 | ||
1224 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1225 | verbose=yes ;; | |
1226 | ||
1227 | -version | --version | --versio | --versi | --vers | -V) | |
1228 | ac_init_version=: ;; | |
1229 | ||
1230 | -with-* | --with-*) | |
1231 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1232 | # Reject names that are not valid shell variable names. | |
1233 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1234 | as_fn_error $? "invalid package name: $ac_useropt" | |
1235 | ac_useropt_orig=$ac_useropt | |
1236 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1237 | case $ac_user_opts in | |
1238 | *" | |
1239 | "with_$ac_useropt" | |
1240 | "*) ;; | |
1241 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1242 | ac_unrecognized_sep=', ';; | |
1243 | esac | |
1244 | eval with_$ac_useropt=\$ac_optarg ;; | |
1245 | ||
1246 | -without-* | --without-*) | |
1247 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1248 | # Reject names that are not valid shell variable names. | |
1249 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1250 | as_fn_error $? "invalid package name: $ac_useropt" | |
1251 | ac_useropt_orig=$ac_useropt | |
1252 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1253 | case $ac_user_opts in | |
1254 | *" | |
1255 | "with_$ac_useropt" | |
1256 | "*) ;; | |
1257 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1258 | ac_unrecognized_sep=', ';; | |
1259 | esac | |
1260 | eval with_$ac_useropt=no ;; | |
1261 | ||
1262 | --x) | |
1263 | # Obsolete; use --with-x. | |
1264 | with_x=yes ;; | |
1265 | ||
1266 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1267 | | --x-incl | --x-inc | --x-in | --x-i) | |
1268 | ac_prev=x_includes ;; | |
1269 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1270 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1271 | x_includes=$ac_optarg ;; | |
1272 | ||
1273 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1274 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1275 | ac_prev=x_libraries ;; | |
1276 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1277 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1278 | x_libraries=$ac_optarg ;; | |
1279 | ||
1280 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1281 | Try \`$0 --help' for more information" | |
1282 | ;; | |
1283 | ||
1284 | *=*) | |
1285 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1286 | # Reject names that are not valid shell variable names. | |
1287 | case $ac_envvar in #( | |
1288 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1289 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1290 | esac | |
1291 | eval $ac_envvar=\$ac_optarg | |
1292 | export $ac_envvar ;; | |
1293 | ||
1294 | *) | |
1295 | # FIXME: should be removed in autoconf 3.0. | |
1296 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1297 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1298 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1299 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1300 | ;; | |
1301 | ||
1302 | esac | |
1303 | done | |
1304 | ||
1305 | if test -n "$ac_prev"; then | |
1306 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1307 | as_fn_error $? "missing argument to $ac_option" | |
1308 | fi | |
1309 | ||
1310 | if test -n "$ac_unrecognized_opts"; then | |
1311 | case $enable_option_checking in | |
1312 | no) ;; | |
1313 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1314 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1315 | esac | |
1316 | fi | |
1317 | ||
1318 | # Check all directory arguments for consistency. | |
1319 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1320 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1321 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1322 | libdir localedir mandir runstatedir | |
1323 | do | |
1324 | eval ac_val=\$$ac_var | |
1325 | # Remove trailing slashes. | |
1326 | case $ac_val in | |
1327 | */ ) | |
1328 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1329 | eval $ac_var=\$ac_val;; | |
1330 | esac | |
1331 | # Be sure to have absolute directory names. | |
1332 | case $ac_val in | |
1333 | [\\/$]* | ?:[\\/]* ) continue;; | |
1334 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1335 | esac | |
1336 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1337 | done | |
1338 | ||
1339 | # There might be people who depend on the old broken behavior: `$host' | |
1340 | # used to hold the argument of --host etc. | |
1341 | # FIXME: To remove some day. | |
1342 | build=$build_alias | |
1343 | host=$host_alias | |
1344 | target=$target_alias | |
1345 | ||
1346 | # FIXME: To remove some day. | |
1347 | if test "x$host_alias" != x; then | |
1348 | if test "x$build_alias" = x; then | |
1349 | cross_compiling=maybe | |
1350 | elif test "x$build_alias" != "x$host_alias"; then | |
1351 | cross_compiling=yes | |
1352 | fi | |
1353 | fi | |
1354 | ||
1355 | ac_tool_prefix= | |
1356 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1357 | ||
1358 | test "$silent" = yes && exec 6>/dev/null | |
1359 | ||
1360 | ||
1361 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1362 | ac_ls_di=`ls -di .` && | |
1363 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1364 | as_fn_error $? "working directory cannot be determined" | |
1365 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1366 | as_fn_error $? "pwd does not report name of working directory" | |
1367 | ||
1368 | ||
1369 | # Find the source files, if location was not specified. | |
1370 | if test -z "$srcdir"; then | |
1371 | ac_srcdir_defaulted=yes | |
1372 | # Try the directory containing this script, then the parent directory. | |
1373 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1374 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1375 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1376 | X"$as_myself" : 'X\(//\)$' \| \ | |
1377 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1378 | $as_echo X"$as_myself" | | |
1379 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1380 | s//\1/ | |
1381 | q | |
1382 | } | |
1383 | /^X\(\/\/\)[^/].*/{ | |
1384 | s//\1/ | |
1385 | q | |
1386 | } | |
1387 | /^X\(\/\/\)$/{ | |
1388 | s//\1/ | |
1389 | q | |
1390 | } | |
1391 | /^X\(\/\).*/{ | |
1392 | s//\1/ | |
1393 | q | |
1394 | } | |
1395 | s/.*/./; q'` | |
1396 | srcdir=$ac_confdir | |
1397 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1398 | srcdir=.. | |
1399 | fi | |
1400 | else | |
1401 | ac_srcdir_defaulted=no | |
1402 | fi | |
1403 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1404 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1405 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1406 | fi | |
1407 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1408 | ac_abs_confdir=`( | |
1409 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1410 | pwd)` | |
1411 | # When building in place, set srcdir=. | |
1412 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1413 | srcdir=. | |
1414 | fi | |
1415 | # Remove unnecessary trailing slashes from srcdir. | |
1416 | # Double slashes in file names in object file debugging info | |
1417 | # mess up M-x gdb in Emacs. | |
1418 | case $srcdir in | |
1419 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1420 | esac | |
1421 | for ac_var in $ac_precious_vars; do | |
1422 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1423 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1424 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1425 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1426 | done | |
1427 | ||
1428 | # | |
1429 | # Report the --help message. | |
1430 | # | |
1431 | if test "$ac_init_help" = "long"; then | |
1432 | # Omit some internal or obsolete options to make the list less imposing. | |
1433 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1434 | cat <<_ACEOF | |
2078c8a7 | 1435 | \`configure' configures zfs 0.6.5.6 to adapt to many kinds of systems. |
904dbe44 CIK |
1436 | |
1437 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1438 | ||
1439 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1440 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1441 | ||
1442 | Defaults for the options are specified in brackets. | |
1443 | ||
1444 | Configuration: | |
1445 | -h, --help display this help and exit | |
1446 | --help=short display options specific to this package | |
1447 | --help=recursive display the short help of all the included packages | |
1448 | -V, --version display version information and exit | |
1449 | -q, --quiet, --silent do not print \`checking ...' messages | |
1450 | --cache-file=FILE cache test results in FILE [disabled] | |
1451 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1452 | -n, --no-create do not create output files | |
1453 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1454 | ||
1455 | Installation directories: | |
1456 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1457 | [$ac_default_prefix] | |
1458 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1459 | [PREFIX] | |
1460 | ||
1461 | By default, \`make install' will install all the files in | |
1462 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1463 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1464 | for instance \`--prefix=\$HOME'. | |
1465 | ||
1466 | For better control, use the options below. | |
1467 | ||
1468 | Fine tuning of the installation directories: | |
1469 | --bindir=DIR user executables [EPREFIX/bin] | |
1470 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1471 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1472 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1473 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1474 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1475 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] | |
1476 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1477 | --includedir=DIR C header files [PREFIX/include] | |
1478 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1479 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1480 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1481 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1482 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1483 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1484 | --docdir=DIR documentation root [DATAROOTDIR/doc/zfs] | |
1485 | --htmldir=DIR html documentation [DOCDIR] | |
1486 | --dvidir=DIR dvi documentation [DOCDIR] | |
1487 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1488 | --psdir=DIR ps documentation [DOCDIR] | |
1489 | _ACEOF | |
1490 | ||
1491 | cat <<\_ACEOF | |
1492 | ||
1493 | Program names: | |
1494 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1495 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1496 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1497 | ||
1498 | System types: | |
1499 | --build=BUILD configure for building on BUILD [guessed] | |
1500 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1501 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1502 | _ACEOF | |
1503 | fi | |
1504 | ||
1505 | if test -n "$ac_init_help"; then | |
1506 | case $ac_init_help in | |
2078c8a7 | 1507 | short | recursive ) echo "Configuration of zfs 0.6.5.6:";; |
904dbe44 CIK |
1508 | esac |
1509 | cat <<\_ACEOF | |
1510 | ||
1511 | Optional Features: | |
1512 | --disable-option-checking ignore unrecognized --enable/--with options | |
1513 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1514 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1515 | --enable-maintainer-mode | |
1516 | enable make rules and dependencies not useful (and | |
1517 | sometimes confusing) to the casual installer | |
1518 | --enable-silent-rules less verbose build output (undo: "make V=1") | |
1519 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1520 | --enable-dependency-tracking | |
1521 | do not reject slow dependency extractors | |
1522 | --disable-dependency-tracking | |
1523 | speeds up one-time build | |
1524 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1525 | --enable-static[=PKGS] build static libraries [default=yes] | |
1526 | --enable-fast-install[=PKGS] | |
1527 | optimize for fast installation [default=yes] | |
1528 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1529 | --enable-linux-builtin Configure for builtin in-tree kernel modules | |
1530 | [default=no] | |
1531 | --enable-systemd install systemd unit/preset files [[default: yes]] | |
1532 | --enable-sysvinit install SysV init scripts [default: yes] | |
1533 | --enable-debug Enable generic debug support [default=no] | |
1534 | --enable-debug-dmu-tx Enable dmu tx validation [default=no] | |
1535 | ||
1536 | Optional Packages: | |
1537 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1538 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1539 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use | |
1540 | both] | |
3258f645 TG |
1541 | --with-aix-soname=aix|svr4|both |
1542 | shared library versioning (aka "SONAME") variant to | |
1543 | provide on AIX, [default=aix]. | |
904dbe44 | 1544 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
3258f645 TG |
1545 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
1546 | compiler's sysroot if not specified). | |
904dbe44 CIK |
1547 | --with-spec=SPEC Spec files 'generic|redhat' |
1548 | --with-config=CONFIG Config file 'kernel|user|all|srpm' | |
1549 | --with-mounthelperdir=DIR | |
1550 | install mount.zfs in dir [[/sbin]] | |
1551 | --with-udevdir=DIR install udev helpers [default=check] | |
1552 | --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]] | |
1553 | --with-systemdunitdir=DIR | |
1554 | install systemd unit files in dir | |
1555 | [[/usr/lib/systemd/system]] | |
1556 | --with-systemdpresetdir=DIR | |
1557 | install systemd preset files in dir | |
1558 | [[/usr/lib/systemd/system-preset]] | |
1559 | --with-systemdmodulesloaddir=DIR | |
1560 | install systemd module load files into dir | |
1561 | [[/usr/lib/modules-load.d]] | |
1562 | --with-dracutdir=DIR install dracut helpers [default=check] | |
1563 | --with-blkid support blkid caching [default=check] | |
1564 | --with-linux=PATH Path to kernel source | |
1565 | --with-linux-obj=PATH Path to kernel build objects | |
1566 | --with-spl=PATH Path to spl source | |
1567 | --with-spl-obj=PATH Path to spl build objects | |
1568 | --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0] | |
1569 | ||
1570 | Some influential environment variables: | |
1571 | CC C compiler command | |
1572 | CFLAGS C compiler flags | |
1573 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1574 | nonstandard directory <lib dir> | |
1575 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1576 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1577 | you have headers in a nonstandard directory <include dir> | |
3258f645 TG |
1578 | LT_SYS_LIBRARY_PATH |
1579 | User-defined run-time library search path. | |
904dbe44 CIK |
1580 | CPP C preprocessor |
1581 | CCAS assembler compiler command (defaults to CC) | |
1582 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) | |
1583 | ||
1584 | Use these variables to override the choices made by `configure' or to help | |
1585 | it to find libraries and programs with nonstandard names/locations. | |
1586 | ||
1587 | Report bugs to the package provider. | |
1588 | _ACEOF | |
1589 | ac_status=$? | |
1590 | fi | |
1591 | ||
1592 | if test "$ac_init_help" = "recursive"; then | |
1593 | # If there are subdirs, report their specific --help. | |
1594 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1595 | test -d "$ac_dir" || | |
1596 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1597 | continue | |
1598 | ac_builddir=. | |
1599 | ||
1600 | case "$ac_dir" in | |
1601 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1602 | *) | |
1603 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1604 | # A ".." for each directory in $ac_dir_suffix. | |
1605 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1606 | case $ac_top_builddir_sub in | |
1607 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1608 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1609 | esac ;; | |
1610 | esac | |
1611 | ac_abs_top_builddir=$ac_pwd | |
1612 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1613 | # for backward compatibility: | |
1614 | ac_top_builddir=$ac_top_build_prefix | |
1615 | ||
1616 | case $srcdir in | |
1617 | .) # We are building in place. | |
1618 | ac_srcdir=. | |
1619 | ac_top_srcdir=$ac_top_builddir_sub | |
1620 | ac_abs_top_srcdir=$ac_pwd ;; | |
1621 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1622 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1623 | ac_top_srcdir=$srcdir | |
1624 | ac_abs_top_srcdir=$srcdir ;; | |
1625 | *) # Relative name. | |
1626 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1627 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1628 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1629 | esac | |
1630 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1631 | ||
1632 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1633 | # Check for guested configure. | |
1634 | if test -f "$ac_srcdir/configure.gnu"; then | |
1635 | echo && | |
1636 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1637 | elif test -f "$ac_srcdir/configure"; then | |
1638 | echo && | |
1639 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1640 | else | |
1641 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1642 | fi || ac_status=$? | |
1643 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1644 | done | |
1645 | fi | |
1646 | ||
1647 | test -n "$ac_init_help" && exit $ac_status | |
1648 | if $ac_init_version; then | |
1649 | cat <<\_ACEOF | |
2078c8a7 | 1650 | zfs configure 0.6.5.6 |
904dbe44 CIK |
1651 | generated by GNU Autoconf 2.69 |
1652 | ||
1653 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1654 | This configure script is free software; the Free Software Foundation | |
1655 | gives unlimited permission to copy, distribute and modify it. | |
1656 | _ACEOF | |
1657 | exit | |
1658 | fi | |
1659 | ||
1660 | ## ------------------------ ## | |
1661 | ## Autoconf initialization. ## | |
1662 | ## ------------------------ ## | |
1663 | ||
1664 | # ac_fn_c_try_compile LINENO | |
1665 | # -------------------------- | |
1666 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1667 | ac_fn_c_try_compile () | |
1668 | { | |
1669 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1670 | rm -f conftest.$ac_objext | |
1671 | if { { ac_try="$ac_compile" | |
1672 | case "(($ac_try" in | |
1673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1674 | *) ac_try_echo=$ac_try;; | |
1675 | esac | |
1676 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1677 | $as_echo "$ac_try_echo"; } >&5 | |
1678 | (eval "$ac_compile") 2>conftest.err | |
1679 | ac_status=$? | |
1680 | if test -s conftest.err; then | |
1681 | grep -v '^ *+' conftest.err >conftest.er1 | |
1682 | cat conftest.er1 >&5 | |
1683 | mv -f conftest.er1 conftest.err | |
1684 | fi | |
1685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1686 | test $ac_status = 0; } && { | |
1687 | test -z "$ac_c_werror_flag" || | |
1688 | test ! -s conftest.err | |
1689 | } && test -s conftest.$ac_objext; then : | |
1690 | ac_retval=0 | |
1691 | else | |
1692 | $as_echo "$as_me: failed program was:" >&5 | |
1693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1694 | ||
1695 | ac_retval=1 | |
1696 | fi | |
1697 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1698 | as_fn_set_status $ac_retval | |
1699 | ||
1700 | } # ac_fn_c_try_compile | |
1701 | ||
1702 | # ac_fn_c_try_link LINENO | |
1703 | # ----------------------- | |
1704 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1705 | ac_fn_c_try_link () | |
1706 | { | |
1707 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1708 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1709 | if { { ac_try="$ac_link" | |
1710 | case "(($ac_try" in | |
1711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1712 | *) ac_try_echo=$ac_try;; | |
1713 | esac | |
1714 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1715 | $as_echo "$ac_try_echo"; } >&5 | |
1716 | (eval "$ac_link") 2>conftest.err | |
1717 | ac_status=$? | |
1718 | if test -s conftest.err; then | |
1719 | grep -v '^ *+' conftest.err >conftest.er1 | |
1720 | cat conftest.er1 >&5 | |
1721 | mv -f conftest.er1 conftest.err | |
1722 | fi | |
1723 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1724 | test $ac_status = 0; } && { | |
1725 | test -z "$ac_c_werror_flag" || | |
1726 | test ! -s conftest.err | |
1727 | } && test -s conftest$ac_exeext && { | |
1728 | test "$cross_compiling" = yes || | |
1729 | test -x conftest$ac_exeext | |
1730 | }; then : | |
1731 | ac_retval=0 | |
1732 | else | |
1733 | $as_echo "$as_me: failed program was:" >&5 | |
1734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1735 | ||
1736 | ac_retval=1 | |
1737 | fi | |
1738 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1739 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1740 | # interfere with the next link command; also delete a directory that is | |
1741 | # left behind by Apple's compiler. We do this before executing the actions. | |
1742 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1743 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1744 | as_fn_set_status $ac_retval | |
1745 | ||
1746 | } # ac_fn_c_try_link | |
1747 | ||
1748 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1749 | # ------------------------------------------------------- | |
1750 | # Tests whether HEADER exists and can be compiled using the include files in | |
1751 | # INCLUDES, setting the cache variable VAR accordingly. | |
1752 | ac_fn_c_check_header_compile () | |
1753 | { | |
1754 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1756 | $as_echo_n "checking for $2... " >&6; } | |
1757 | if eval \${$3+:} false; then : | |
1758 | $as_echo_n "(cached) " >&6 | |
1759 | else | |
1760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1761 | /* end confdefs.h. */ | |
1762 | $4 | |
1763 | #include <$2> | |
1764 | _ACEOF | |
1765 | if ac_fn_c_try_compile "$LINENO"; then : | |
1766 | eval "$3=yes" | |
1767 | else | |
1768 | eval "$3=no" | |
1769 | fi | |
1770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1771 | fi | |
1772 | eval ac_res=\$$3 | |
1773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1774 | $as_echo "$ac_res" >&6; } | |
1775 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1776 | ||
1777 | } # ac_fn_c_check_header_compile | |
1778 | ||
1779 | # ac_fn_c_try_cpp LINENO | |
1780 | # ---------------------- | |
1781 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1782 | ac_fn_c_try_cpp () | |
1783 | { | |
1784 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1785 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1786 | case "(($ac_try" in | |
1787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1788 | *) ac_try_echo=$ac_try;; | |
1789 | esac | |
1790 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1791 | $as_echo "$ac_try_echo"; } >&5 | |
1792 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1793 | ac_status=$? | |
1794 | if test -s conftest.err; then | |
1795 | grep -v '^ *+' conftest.err >conftest.er1 | |
1796 | cat conftest.er1 >&5 | |
1797 | mv -f conftest.er1 conftest.err | |
1798 | fi | |
1799 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1800 | test $ac_status = 0; } > conftest.i && { | |
1801 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1802 | test ! -s conftest.err | |
1803 | }; then : | |
1804 | ac_retval=0 | |
1805 | else | |
1806 | $as_echo "$as_me: failed program was:" >&5 | |
1807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1808 | ||
1809 | ac_retval=1 | |
1810 | fi | |
1811 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1812 | as_fn_set_status $ac_retval | |
1813 | ||
1814 | } # ac_fn_c_try_cpp | |
1815 | ||
1816 | # ac_fn_c_try_run LINENO | |
1817 | # ---------------------- | |
1818 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1819 | # that executables *can* be run. | |
1820 | ac_fn_c_try_run () | |
1821 | { | |
1822 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1823 | if { { ac_try="$ac_link" | |
1824 | case "(($ac_try" in | |
1825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1826 | *) ac_try_echo=$ac_try;; | |
1827 | esac | |
1828 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1829 | $as_echo "$ac_try_echo"; } >&5 | |
1830 | (eval "$ac_link") 2>&5 | |
1831 | ac_status=$? | |
1832 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1833 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1834 | { { case "(($ac_try" in | |
1835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1836 | *) ac_try_echo=$ac_try;; | |
1837 | esac | |
1838 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1839 | $as_echo "$ac_try_echo"; } >&5 | |
1840 | (eval "$ac_try") 2>&5 | |
1841 | ac_status=$? | |
1842 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1843 | test $ac_status = 0; }; }; then : | |
1844 | ac_retval=0 | |
1845 | else | |
1846 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1847 | $as_echo "$as_me: failed program was:" >&5 | |
1848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1849 | ||
1850 | ac_retval=$ac_status | |
1851 | fi | |
1852 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1853 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1854 | as_fn_set_status $ac_retval | |
1855 | ||
1856 | } # ac_fn_c_try_run | |
1857 | ||
1858 | # ac_fn_c_check_func LINENO FUNC VAR | |
1859 | # ---------------------------------- | |
1860 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1861 | ac_fn_c_check_func () | |
1862 | { | |
1863 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1865 | $as_echo_n "checking for $2... " >&6; } | |
1866 | if eval \${$3+:} false; then : | |
1867 | $as_echo_n "(cached) " >&6 | |
1868 | else | |
1869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1870 | /* end confdefs.h. */ | |
1871 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1872 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1873 | #define $2 innocuous_$2 | |
1874 | ||
1875 | /* System header to define __stub macros and hopefully few prototypes, | |
1876 | which can conflict with char $2 (); below. | |
1877 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1878 | <limits.h> exists even on freestanding compilers. */ | |
1879 | ||
1880 | #ifdef __STDC__ | |
1881 | # include <limits.h> | |
1882 | #else | |
1883 | # include <assert.h> | |
1884 | #endif | |
1885 | ||
1886 | #undef $2 | |
1887 | ||
1888 | /* Override any GCC internal prototype to avoid an error. | |
1889 | Use char because int might match the return type of a GCC | |
1890 | builtin and then its argument prototype would still apply. */ | |
1891 | #ifdef __cplusplus | |
1892 | extern "C" | |
1893 | #endif | |
1894 | char $2 (); | |
1895 | /* The GNU C library defines this for functions which it implements | |
1896 | to always fail with ENOSYS. Some functions are actually named | |
1897 | something starting with __ and the normal name is an alias. */ | |
1898 | #if defined __stub_$2 || defined __stub___$2 | |
1899 | choke me | |
1900 | #endif | |
1901 | ||
1902 | int | |
1903 | main () | |
1904 | { | |
1905 | return $2 (); | |
1906 | ; | |
1907 | return 0; | |
1908 | } | |
1909 | _ACEOF | |
1910 | if ac_fn_c_try_link "$LINENO"; then : | |
1911 | eval "$3=yes" | |
1912 | else | |
1913 | eval "$3=no" | |
1914 | fi | |
1915 | rm -f core conftest.err conftest.$ac_objext \ | |
1916 | conftest$ac_exeext conftest.$ac_ext | |
1917 | fi | |
1918 | eval ac_res=\$$3 | |
1919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1920 | $as_echo "$ac_res" >&6; } | |
1921 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1922 | ||
1923 | } # ac_fn_c_check_func | |
1924 | ||
1925 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1926 | # ------------------------------------------------------- | |
1927 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1928 | # the include files in INCLUDES and setting the cache variable VAR | |
1929 | # accordingly. | |
1930 | ac_fn_c_check_header_mongrel () | |
1931 | { | |
1932 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1933 | if eval \${$3+:} false; then : | |
1934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1935 | $as_echo_n "checking for $2... " >&6; } | |
1936 | if eval \${$3+:} false; then : | |
1937 | $as_echo_n "(cached) " >&6 | |
1938 | fi | |
1939 | eval ac_res=\$$3 | |
1940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1941 | $as_echo "$ac_res" >&6; } | |
1942 | else | |
1943 | # Is the header compilable? | |
1944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1945 | $as_echo_n "checking $2 usability... " >&6; } | |
1946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1947 | /* end confdefs.h. */ | |
1948 | $4 | |
1949 | #include <$2> | |
1950 | _ACEOF | |
1951 | if ac_fn_c_try_compile "$LINENO"; then : | |
1952 | ac_header_compiler=yes | |
1953 | else | |
1954 | ac_header_compiler=no | |
1955 | fi | |
1956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1958 | $as_echo "$ac_header_compiler" >&6; } | |
1959 | ||
1960 | # Is the header present? | |
1961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1962 | $as_echo_n "checking $2 presence... " >&6; } | |
1963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1964 | /* end confdefs.h. */ | |
1965 | #include <$2> | |
1966 | _ACEOF | |
1967 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1968 | ac_header_preproc=yes | |
1969 | else | |
1970 | ac_header_preproc=no | |
1971 | fi | |
1972 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1974 | $as_echo "$ac_header_preproc" >&6; } | |
1975 | ||
1976 | # So? What about this header? | |
1977 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1978 | yes:no: ) | |
1979 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1980 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1981 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1982 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1983 | ;; | |
1984 | no:yes:* ) | |
1985 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1986 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1987 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1988 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1989 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1990 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1991 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1992 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1993 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1994 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1995 | ;; | |
1996 | esac | |
1997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1998 | $as_echo_n "checking for $2... " >&6; } | |
1999 | if eval \${$3+:} false; then : | |
2000 | $as_echo_n "(cached) " >&6 | |
2001 | else | |
2002 | eval "$3=\$ac_header_compiler" | |
2003 | fi | |
2004 | eval ac_res=\$$3 | |
2005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2006 | $as_echo "$ac_res" >&6; } | |
2007 | fi | |
2008 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2009 | ||
2010 | } # ac_fn_c_check_header_mongrel | |
2011 | cat >config.log <<_ACEOF | |
2012 | This file contains any messages produced by compilers while | |
2013 | running configure, to aid debugging if configure makes a mistake. | |
2014 | ||
2078c8a7 | 2015 | It was created by zfs $as_me 0.6.5.6, which was |
904dbe44 CIK |
2016 | generated by GNU Autoconf 2.69. Invocation command line was |
2017 | ||
2018 | $ $0 $@ | |
2019 | ||
2020 | _ACEOF | |
2021 | exec 5>>config.log | |
2022 | { | |
2023 | cat <<_ASUNAME | |
2024 | ## --------- ## | |
2025 | ## Platform. ## | |
2026 | ## --------- ## | |
2027 | ||
2028 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2029 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2030 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2031 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2032 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2033 | ||
2034 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2035 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2036 | ||
2037 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2038 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2039 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2040 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2041 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2042 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2043 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2044 | ||
2045 | _ASUNAME | |
2046 | ||
2047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2048 | for as_dir in $PATH | |
2049 | do | |
2050 | IFS=$as_save_IFS | |
2051 | test -z "$as_dir" && as_dir=. | |
2052 | $as_echo "PATH: $as_dir" | |
2053 | done | |
2054 | IFS=$as_save_IFS | |
2055 | ||
2056 | } >&5 | |
2057 | ||
2058 | cat >&5 <<_ACEOF | |
2059 | ||
2060 | ||
2061 | ## ----------- ## | |
2062 | ## Core tests. ## | |
2063 | ## ----------- ## | |
2064 | ||
2065 | _ACEOF | |
2066 | ||
2067 | ||
2068 | # Keep a trace of the command line. | |
2069 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2070 | # Strip out --silent because we don't want to record it for future runs. | |
2071 | # Also quote any args containing shell meta-characters. | |
2072 | # Make two passes to allow for proper duplicate-argument suppression. | |
2073 | ac_configure_args= | |
2074 | ac_configure_args0= | |
2075 | ac_configure_args1= | |
2076 | ac_must_keep_next=false | |
2077 | for ac_pass in 1 2 | |
2078 | do | |
2079 | for ac_arg | |
2080 | do | |
2081 | case $ac_arg in | |
2082 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2083 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2084 | | -silent | --silent | --silen | --sile | --sil) | |
2085 | continue ;; | |
2086 | *\'*) | |
2087 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2088 | esac | |
2089 | case $ac_pass in | |
2090 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2091 | 2) | |
2092 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2093 | if test $ac_must_keep_next = true; then | |
2094 | ac_must_keep_next=false # Got value, back to normal. | |
2095 | else | |
2096 | case $ac_arg in | |
2097 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2098 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2099 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2100 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2101 | case "$ac_configure_args0 " in | |
2102 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2103 | esac | |
2104 | ;; | |
2105 | -* ) ac_must_keep_next=true ;; | |
2106 | esac | |
2107 | fi | |
2108 | as_fn_append ac_configure_args " '$ac_arg'" | |
2109 | ;; | |
2110 | esac | |
2111 | done | |
2112 | done | |
2113 | { ac_configure_args0=; unset ac_configure_args0;} | |
2114 | { ac_configure_args1=; unset ac_configure_args1;} | |
2115 | ||
2116 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2117 | # config.log. We remove comments because anyway the quotes in there | |
2118 | # would cause problems or look ugly. | |
2119 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2120 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2121 | trap 'exit_status=$? | |
2122 | # Save into config.log some information that might help in debugging. | |
2123 | { | |
2124 | echo | |
2125 | ||
2126 | $as_echo "## ---------------- ## | |
2127 | ## Cache variables. ## | |
2128 | ## ---------------- ##" | |
2129 | echo | |
2130 | # The following way of writing the cache mishandles newlines in values, | |
2131 | ( | |
2132 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2133 | eval ac_val=\$$ac_var | |
2134 | case $ac_val in #( | |
2135 | *${as_nl}*) | |
2136 | case $ac_var in #( | |
2137 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2138 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2139 | esac | |
2140 | case $ac_var in #( | |
2141 | _ | IFS | as_nl) ;; #( | |
2142 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2143 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2144 | esac ;; | |
2145 | esac | |
2146 | done | |
2147 | (set) 2>&1 | | |
2148 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2149 | *${as_nl}ac_space=\ *) | |
2150 | sed -n \ | |
2151 | "s/'\''/'\''\\\\'\'''\''/g; | |
2152 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2153 | ;; #( | |
2154 | *) | |
2155 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2156 | ;; | |
2157 | esac | | |
2158 | sort | |
2159 | ) | |
2160 | echo | |
2161 | ||
2162 | $as_echo "## ----------------- ## | |
2163 | ## Output variables. ## | |
2164 | ## ----------------- ##" | |
2165 | echo | |
2166 | for ac_var in $ac_subst_vars | |
2167 | do | |
2168 | eval ac_val=\$$ac_var | |
2169 | case $ac_val in | |
2170 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2171 | esac | |
2172 | $as_echo "$ac_var='\''$ac_val'\''" | |
2173 | done | sort | |
2174 | echo | |
2175 | ||
2176 | if test -n "$ac_subst_files"; then | |
2177 | $as_echo "## ------------------- ## | |
2178 | ## File substitutions. ## | |
2179 | ## ------------------- ##" | |
2180 | echo | |
2181 | for ac_var in $ac_subst_files | |
2182 | do | |
2183 | eval ac_val=\$$ac_var | |
2184 | case $ac_val in | |
2185 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2186 | esac | |
2187 | $as_echo "$ac_var='\''$ac_val'\''" | |
2188 | done | sort | |
2189 | echo | |
2190 | fi | |
2191 | ||
2192 | if test -s confdefs.h; then | |
2193 | $as_echo "## ----------- ## | |
2194 | ## confdefs.h. ## | |
2195 | ## ----------- ##" | |
2196 | echo | |
2197 | cat confdefs.h | |
2198 | echo | |
2199 | fi | |
2200 | test "$ac_signal" != 0 && | |
2201 | $as_echo "$as_me: caught signal $ac_signal" | |
2202 | $as_echo "$as_me: exit $exit_status" | |
2203 | } >&5 | |
2204 | rm -f core *.core core.conftest.* && | |
2205 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2206 | exit $exit_status | |
2207 | ' 0 | |
2208 | for ac_signal in 1 2 13 15; do | |
2209 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2210 | done | |
2211 | ac_signal=0 | |
2212 | ||
2213 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2214 | rm -f -r conftest* confdefs.h | |
2215 | ||
2216 | $as_echo "/* confdefs.h */" > confdefs.h | |
2217 | ||
2218 | # Predefined preprocessor variables. | |
2219 | ||
2220 | cat >>confdefs.h <<_ACEOF | |
2221 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2222 | _ACEOF | |
2223 | ||
2224 | cat >>confdefs.h <<_ACEOF | |
2225 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2226 | _ACEOF | |
2227 | ||
2228 | cat >>confdefs.h <<_ACEOF | |
2229 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2230 | _ACEOF | |
2231 | ||
2232 | cat >>confdefs.h <<_ACEOF | |
2233 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2234 | _ACEOF | |
2235 | ||
2236 | cat >>confdefs.h <<_ACEOF | |
2237 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2238 | _ACEOF | |
2239 | ||
2240 | cat >>confdefs.h <<_ACEOF | |
2241 | #define PACKAGE_URL "$PACKAGE_URL" | |
2242 | _ACEOF | |
2243 | ||
2244 | ||
2245 | # Let the site file select an alternate cache file if it wants to. | |
2246 | # Prefer an explicitly selected file to automatically selected ones. | |
2247 | ac_site_file1=NONE | |
2248 | ac_site_file2=NONE | |
2249 | if test -n "$CONFIG_SITE"; then | |
2250 | # We do not want a PATH search for config.site. | |
2251 | case $CONFIG_SITE in #(( | |
2252 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2253 | */*) ac_site_file1=$CONFIG_SITE;; | |
2254 | *) ac_site_file1=./$CONFIG_SITE;; | |
2255 | esac | |
2256 | elif test "x$prefix" != xNONE; then | |
2257 | ac_site_file1=$prefix/share/config.site | |
2258 | ac_site_file2=$prefix/etc/config.site | |
2259 | else | |
2260 | ac_site_file1=$ac_default_prefix/share/config.site | |
2261 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2262 | fi | |
2263 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2264 | do | |
2265 | test "x$ac_site_file" = xNONE && continue | |
2266 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2267 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2268 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2269 | sed 's/^/| /' "$ac_site_file" >&5 | |
2270 | . "$ac_site_file" \ | |
2271 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2272 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2273 | as_fn_error $? "failed to load site script $ac_site_file | |
2274 | See \`config.log' for more details" "$LINENO" 5; } | |
2275 | fi | |
2276 | done | |
2277 | ||
2278 | if test -r "$cache_file"; then | |
2279 | # Some versions of bash will fail to source /dev/null (special files | |
2280 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2281 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2282 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2283 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2284 | case $cache_file in | |
2285 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2286 | *) . "./$cache_file";; | |
2287 | esac | |
2288 | fi | |
2289 | else | |
2290 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2291 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2292 | >$cache_file | |
2293 | fi | |
2294 | ||
2295 | # Check that the precious variables saved in the cache have kept the same | |
2296 | # value. | |
2297 | ac_cache_corrupted=false | |
2298 | for ac_var in $ac_precious_vars; do | |
2299 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2300 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2301 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2302 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2303 | case $ac_old_set,$ac_new_set in | |
2304 | set,) | |
2305 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2306 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2307 | ac_cache_corrupted=: ;; | |
2308 | ,set) | |
2309 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2310 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2311 | ac_cache_corrupted=: ;; | |
2312 | ,);; | |
2313 | *) | |
2314 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2315 | # differences in whitespace do not lead to failure. | |
2316 | ac_old_val_w=`echo x $ac_old_val` | |
2317 | ac_new_val_w=`echo x $ac_new_val` | |
2318 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2319 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2320 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2321 | ac_cache_corrupted=: | |
2322 | else | |
2323 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2324 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2325 | eval $ac_var=\$ac_old_val | |
2326 | fi | |
2327 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2328 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2329 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2330 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2331 | fi;; | |
2332 | esac | |
2333 | # Pass precious variables to config.status. | |
2334 | if test "$ac_new_set" = set; then | |
2335 | case $ac_new_val in | |
2336 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2337 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2338 | esac | |
2339 | case " $ac_configure_args " in | |
2340 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2341 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2342 | esac | |
2343 | fi | |
2344 | done | |
2345 | if $ac_cache_corrupted; then | |
2346 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2347 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2348 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2349 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2350 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2351 | fi | |
2352 | ## -------------------- ## | |
2353 | ## Main body of script. ## | |
2354 | ## -------------------- ## | |
2355 | ||
2356 | ac_ext=c | |
2357 | ac_cpp='$CPP $CPPFLAGS' | |
2358 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2359 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2360 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2361 | ||
2362 | ||
2363 | ac_ext=c | |
2364 | ac_cpp='$CPP $CPPFLAGS' | |
2365 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2366 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2367 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2368 | ||
2369 | ||
2370 | ||
2371 | ||
2372 | ||
2373 | for ac_prog in gawk mawk nawk awk | |
2374 | do | |
2375 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2376 | set dummy $ac_prog; ac_word=$2 | |
2377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2378 | $as_echo_n "checking for $ac_word... " >&6; } | |
2379 | if ${ac_cv_prog_AWK+:} false; then : | |
2380 | $as_echo_n "(cached) " >&6 | |
2381 | else | |
2382 | if test -n "$AWK"; then | |
2383 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2384 | else | |
2385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2386 | for as_dir in $PATH | |
2387 | do | |
2388 | IFS=$as_save_IFS | |
2389 | test -z "$as_dir" && as_dir=. | |
2390 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2391 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2392 | ac_cv_prog_AWK="$ac_prog" | |
2393 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2394 | break 2 | |
2395 | fi | |
2396 | done | |
2397 | done | |
2398 | IFS=$as_save_IFS | |
2399 | ||
2400 | fi | |
2401 | fi | |
2402 | AWK=$ac_cv_prog_AWK | |
2403 | if test -n "$AWK"; then | |
2404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2405 | $as_echo "$AWK" >&6; } | |
2406 | else | |
2407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2408 | $as_echo "no" >&6; } | |
2409 | fi | |
2410 | ||
2411 | ||
2412 | test -n "$AWK" && break | |
2413 | done | |
2414 | ||
2415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5 | |
2416 | $as_echo_n "checking metadata... " >&6; } | |
2417 | ||
2418 | META="$srcdir/META" | |
2419 | _zfs_ac_meta_type="none" | |
2420 | if test -f "$META"; then | |
2421 | _zfs_ac_meta_type="META file" | |
2422 | _dpkg_parsechangelog=$(dpkg-parsechangelog 2>/dev/null) | |
2423 | ||
2424 | ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`; | |
2425 | if test -n "$ZFS_META_NAME"; then | |
2426 | ||
2427 | cat >>confdefs.h <<_ACEOF | |
2428 | #define ZFS_META_NAME "$ZFS_META_NAME" | |
2429 | _ACEOF | |
2430 | ||
2431 | ||
2432 | fi | |
2433 | ||
2434 | ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`; | |
2435 | if test -n "$ZFS_META_VERSION"; then | |
2436 | ||
2437 | cat >>confdefs.h <<_ACEOF | |
2438 | #define ZFS_META_VERSION "$ZFS_META_VERSION" | |
2439 | _ACEOF | |
2440 | ||
2441 | ||
2442 | fi | |
2443 | ||
2444 | if test -n "${_dpkg_parsechangelog}"; then | |
2445 | _dpkg_version=$(echo "${_dpkg_parsechangelog}" \ | |
2446 | | $AWK '$1 == "Version:" { print $2; }' \ | |
2447 | | cut -d- -f1) | |
2448 | if test "${_dpkg_version}" != "$ZFS_META_VERSION"; then | |
2449 | as_fn_error $? " | |
2450 | *** Version $ZFS_META_VERSION in the META file is different than | |
2451 | *** version $_dpkg_version in the debian/changelog file. DKMS and DEB | |
2452 | *** packaging require that these files have the same version. | |
2453 | " "$LINENO" 5 | |
2454 | fi | |
2455 | fi | |
2456 | ||
2457 | ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`; | |
2458 | ||
2459 | if test -n "${_dpkg_parsechangelog}"; then | |
2460 | _dpkg_release=$(echo "${_dpkg_parsechangelog}" \ | |
2461 | | $AWK '$1 == "Version:" { print $2; }' \ | |
2462 | | cut -d- -f2-) | |
2463 | if test -n "${_dpkg_release}"; then | |
2464 | ZFS_META_RELEASE=${_dpkg_release} | |
2465 | _zfs_ac_meta_type="dpkg-parsechangelog" | |
2466 | fi | |
2467 | elif test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then | |
2468 | _match="${ZFS_META_NAME}-${ZFS_META_VERSION}" | |
2469 | _alias=$(git describe --match=${_match} 2>/dev/null) | |
2470 | _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g') | |
2471 | if test -n "${_release}"; then | |
2472 | ZFS_META_RELEASE=${_release} | |
2473 | _zfs_ac_meta_type="git describe" | |
2474 | fi | |
2475 | fi | |
2476 | ||
2477 | if test -n "$ZFS_META_RELEASE"; then | |
2478 | ||
2479 | cat >>confdefs.h <<_ACEOF | |
2480 | #define ZFS_META_RELEASE "$ZFS_META_RELEASE" | |
2481 | _ACEOF | |
2482 | ||
2483 | ||
2484 | ||
2485 | RELEASE="$ZFS_META_RELEASE" | |
2486 | ||
2487 | fi | |
2488 | ||
2489 | ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`; | |
2490 | if test -n "$ZFS_META_LICENSE"; then | |
2491 | ||
2492 | cat >>confdefs.h <<_ACEOF | |
2493 | #define ZFS_META_LICENSE "$ZFS_META_LICENSE" | |
2494 | _ACEOF | |
2495 | ||
2496 | ||
2497 | fi | |
2498 | ||
2499 | if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then | |
2500 | ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION" | |
2501 | test -n "$ZFS_META_RELEASE" && | |
2502 | ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE" | |
2503 | ||
2504 | cat >>confdefs.h <<_ACEOF | |
2505 | #define ZFS_META_ALIAS "$ZFS_META_ALIAS" | |
2506 | _ACEOF | |
2507 | ||
2508 | ||
2509 | fi | |
2510 | ||
2511 | ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`; | |
2512 | if test -n "$ZFS_META_DATA"; then | |
2513 | ||
2514 | cat >>confdefs.h <<_ACEOF | |
2515 | #define ZFS_META_DATA "$ZFS_META_DATA" | |
2516 | _ACEOF | |
2517 | ||
2518 | ||
2519 | fi | |
2520 | ||
2521 | ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`; | |
2522 | if test -n "$ZFS_META_AUTHOR"; then | |
2523 | ||
2524 | cat >>confdefs.h <<_ACEOF | |
2525 | #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR" | |
2526 | _ACEOF | |
2527 | ||
2528 | ||
2529 | fi | |
2530 | ||
2531 | ||
2532 | ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`; | |
2533 | ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`; | |
2534 | ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`; | |
2535 | if test -n "$ZFS_META_LT_CURRENT" \ | |
2536 | -o -n "$ZFS_META_LT_REVISION" \ | |
2537 | -o -n "$ZFS_META_LT_AGE"; then | |
2538 | test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0" | |
2539 | test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0" | |
2540 | test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0" | |
2541 | ||
2542 | cat >>confdefs.h <<_ACEOF | |
2543 | #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT" | |
2544 | _ACEOF | |
2545 | ||
2546 | ||
2547 | cat >>confdefs.h <<_ACEOF | |
2548 | #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION" | |
2549 | _ACEOF | |
2550 | ||
2551 | ||
2552 | cat >>confdefs.h <<_ACEOF | |
2553 | #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE" | |
2554 | _ACEOF | |
2555 | ||
2556 | ||
2557 | ||
2558 | ||
2559 | fi | |
2560 | fi | |
2561 | ||
2562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5 | |
2563 | $as_echo "$_zfs_ac_meta_type" >&6; } | |
2564 | ||
2565 | ||
2566 | ac_aux_dir= | |
2567 | for ac_dir in config "$srcdir"/config; do | |
2568 | if test -f "$ac_dir/install-sh"; then | |
2569 | ac_aux_dir=$ac_dir | |
2570 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2571 | break | |
2572 | elif test -f "$ac_dir/install.sh"; then | |
2573 | ac_aux_dir=$ac_dir | |
2574 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2575 | break | |
2576 | elif test -f "$ac_dir/shtool"; then | |
2577 | ac_aux_dir=$ac_dir | |
2578 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2579 | break | |
2580 | fi | |
2581 | done | |
2582 | if test -z "$ac_aux_dir"; then | |
2583 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 | |
2584 | fi | |
2585 | ||
2586 | # These three variables are undocumented and unsupported, | |
2587 | # and are intended to be withdrawn in a future Autoconf release. | |
2588 | # They can cause serious problems if a builder's source tree is in a directory | |
2589 | # whose full name contains unusual characters. | |
2590 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2591 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2592 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2593 | ||
2594 | ||
2595 | ||
2596 | # Make sure we can run config.sub. | |
2597 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2598 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2599 | ||
2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2601 | $as_echo_n "checking build system type... " >&6; } | |
2602 | if ${ac_cv_build+:} false; then : | |
2603 | $as_echo_n "(cached) " >&6 | |
2604 | else | |
2605 | ac_build_alias=$build_alias | |
2606 | test "x$ac_build_alias" = x && | |
2607 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2608 | test "x$ac_build_alias" = x && | |
2609 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2610 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2611 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2612 | ||
2613 | fi | |
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2615 | $as_echo "$ac_cv_build" >&6; } | |
2616 | case $ac_cv_build in | |
2617 | *-*-*) ;; | |
2618 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2619 | esac | |
2620 | build=$ac_cv_build | |
2621 | ac_save_IFS=$IFS; IFS='-' | |
2622 | set x $ac_cv_build | |
2623 | shift | |
2624 | build_cpu=$1 | |
2625 | build_vendor=$2 | |
2626 | shift; shift | |
2627 | # Remember, the first character of IFS is used to create $*, | |
2628 | # except with old shells: | |
2629 | build_os=$* | |
2630 | IFS=$ac_save_IFS | |
2631 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2632 | ||
2633 | ||
2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2635 | $as_echo_n "checking host system type... " >&6; } | |
2636 | if ${ac_cv_host+:} false; then : | |
2637 | $as_echo_n "(cached) " >&6 | |
2638 | else | |
2639 | if test "x$host_alias" = x; then | |
2640 | ac_cv_host=$ac_cv_build | |
2641 | else | |
2642 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2643 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2644 | fi | |
2645 | ||
2646 | fi | |
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2648 | $as_echo "$ac_cv_host" >&6; } | |
2649 | case $ac_cv_host in | |
2650 | *-*-*) ;; | |
2651 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2652 | esac | |
2653 | host=$ac_cv_host | |
2654 | ac_save_IFS=$IFS; IFS='-' | |
2655 | set x $ac_cv_host | |
2656 | shift | |
2657 | host_cpu=$1 | |
2658 | host_vendor=$2 | |
2659 | shift; shift | |
2660 | # Remember, the first character of IFS is used to create $*, | |
2661 | # except with old shells: | |
2662 | host_os=$* | |
2663 | IFS=$ac_save_IFS | |
2664 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2665 | ||
2666 | ||
2667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2668 | $as_echo_n "checking target system type... " >&6; } | |
2669 | if ${ac_cv_target+:} false; then : | |
2670 | $as_echo_n "(cached) " >&6 | |
2671 | else | |
2672 | if test "x$target_alias" = x; then | |
2673 | ac_cv_target=$ac_cv_host | |
2674 | else | |
2675 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2676 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2677 | fi | |
2678 | ||
2679 | fi | |
2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2681 | $as_echo "$ac_cv_target" >&6; } | |
2682 | case $ac_cv_target in | |
2683 | *-*-*) ;; | |
2684 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
2685 | esac | |
2686 | target=$ac_cv_target | |
2687 | ac_save_IFS=$IFS; IFS='-' | |
2688 | set x $ac_cv_target | |
2689 | shift | |
2690 | target_cpu=$1 | |
2691 | target_vendor=$2 | |
2692 | shift; shift | |
2693 | # Remember, the first character of IFS is used to create $*, | |
2694 | # except with old shells: | |
2695 | target_os=$* | |
2696 | IFS=$ac_save_IFS | |
2697 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2698 | ||
2699 | ||
2700 | # The aliases save the names the user supplied, while $host etc. | |
2701 | # will get canonicalized. | |
2702 | test -n "$target_alias" && | |
2703 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2704 | NONENONEs,x,x, && | |
2705 | program_prefix=${target_alias}- | |
2706 | ||
2707 | ||
2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2709 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
2710 | # Check whether --enable-maintainer-mode was given. | |
2711 | if test "${enable_maintainer_mode+set}" = set; then : | |
2712 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
2713 | else | |
2714 | USE_MAINTAINER_MODE=no | |
2715 | fi | |
2716 | ||
2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
2718 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
2719 | if test $USE_MAINTAINER_MODE = yes; then | |
2720 | MAINTAINER_MODE_TRUE= | |
2721 | MAINTAINER_MODE_FALSE='#' | |
2722 | else | |
2723 | MAINTAINER_MODE_TRUE='#' | |
2724 | MAINTAINER_MODE_FALSE= | |
2725 | fi | |
2726 | ||
2727 | MAINT=$MAINTAINER_MODE_TRUE | |
2728 | ||
2729 | ||
2730 | # Check whether --enable-silent-rules was given. | |
2731 | if test "${enable_silent_rules+set}" = set; then : | |
2732 | enableval=$enable_silent_rules; | |
2733 | fi | |
2734 | ||
2735 | case $enable_silent_rules in # ((( | |
2736 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2737 | no) AM_DEFAULT_VERBOSITY=1;; | |
2738 | *) AM_DEFAULT_VERBOSITY=0;; | |
2739 | esac | |
2740 | am_make=${MAKE-make} | |
2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2742 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2743 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2744 | $as_echo_n "(cached) " >&6 | |
2745 | else | |
2746 | if $as_echo 'TRUE=$(BAR$(V)) | |
2747 | BAR0=false | |
2748 | BAR1=true | |
2749 | V=1 | |
2750 | am__doit: | |
2751 | @$(TRUE) | |
2752 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2753 | am_cv_make_support_nested_variables=yes | |
2754 | else | |
2755 | am_cv_make_support_nested_variables=no | |
2756 | fi | |
2757 | fi | |
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2759 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2760 | if test $am_cv_make_support_nested_variables = yes; then | |
2761 | AM_V='$(V)' | |
2762 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2763 | else | |
2764 | AM_V=$AM_DEFAULT_VERBOSITY | |
2765 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2766 | fi | |
2767 | AM_BACKSLASH='\' | |
2768 | ||
2769 | am__api_version='1.15' | |
2770 | ||
2771 | # Find a good install program. We prefer a C program (faster), | |
2772 | # so one script is as good as another. But avoid the broken or | |
2773 | # incompatible versions: | |
2774 | # SysV /etc/install, /usr/sbin/install | |
2775 | # SunOS /usr/etc/install | |
2776 | # IRIX /sbin/install | |
2777 | # AIX /bin/install | |
2778 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2779 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2780 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2781 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2782 | # OS/2's system install, which has a completely different semantic | |
2783 | # ./install, which can be erroneously created by make from ./install.sh. | |
2784 | # Reject install programs that cannot install multiple files. | |
2785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2786 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2787 | if test -z "$INSTALL"; then | |
2788 | if ${ac_cv_path_install+:} false; then : | |
2789 | $as_echo_n "(cached) " >&6 | |
2790 | else | |
2791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2792 | for as_dir in $PATH | |
2793 | do | |
2794 | IFS=$as_save_IFS | |
2795 | test -z "$as_dir" && as_dir=. | |
2796 | # Account for people who put trailing slashes in PATH elements. | |
2797 | case $as_dir/ in #(( | |
2798 | ./ | .// | /[cC]/* | \ | |
2799 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2800 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2801 | /usr/ucb/* ) ;; | |
2802 | *) | |
2803 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2804 | # Don't use installbsd from OSF since it installs stuff as root | |
2805 | # by default. | |
2806 | for ac_prog in ginstall scoinst install; do | |
2807 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2808 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2809 | if test $ac_prog = install && | |
2810 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2811 | # AIX install. It has an incompatible calling convention. | |
2812 | : | |
2813 | elif test $ac_prog = install && | |
2814 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2815 | # program-specific install script used by HP pwplus--don't use. | |
2816 | : | |
2817 | else | |
2818 | rm -rf conftest.one conftest.two conftest.dir | |
2819 | echo one > conftest.one | |
2820 | echo two > conftest.two | |
2821 | mkdir conftest.dir | |
2822 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2823 | test -s conftest.one && test -s conftest.two && | |
2824 | test -s conftest.dir/conftest.one && | |
2825 | test -s conftest.dir/conftest.two | |
2826 | then | |
2827 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2828 | break 3 | |
2829 | fi | |
2830 | fi | |
2831 | fi | |
2832 | done | |
2833 | done | |
2834 | ;; | |
2835 | esac | |
2836 | ||
2837 | done | |
2838 | IFS=$as_save_IFS | |
2839 | ||
2840 | rm -rf conftest.one conftest.two conftest.dir | |
2841 | ||
2842 | fi | |
2843 | if test "${ac_cv_path_install+set}" = set; then | |
2844 | INSTALL=$ac_cv_path_install | |
2845 | else | |
2846 | # As a last resort, use the slow shell script. Don't cache a | |
2847 | # value for INSTALL within a source directory, because that will | |
2848 | # break other packages using the cache if that directory is | |
2849 | # removed, or if the value is a relative name. | |
2850 | INSTALL=$ac_install_sh | |
2851 | fi | |
2852 | fi | |
2853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2854 | $as_echo "$INSTALL" >&6; } | |
2855 | ||
2856 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2857 | # It thinks the first close brace ends the variable substitution. | |
2858 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2859 | ||
2860 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2861 | ||
2862 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2863 | ||
2864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2865 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2866 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2867 | # name. Accept space and tab only in the latter. | |
2868 | am_lf=' | |
2869 | ' | |
2870 | case `pwd` in | |
2871 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2872 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2873 | esac | |
2874 | case $srcdir in | |
2875 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2876 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2877 | esac | |
2878 | ||
2879 | # Do 'set' in a subshell so we don't clobber the current shell's | |
2880 | # arguments. Must try -L first in case configure is actually a | |
2881 | # symlink; some systems play weird games with the mod time of symlinks | |
2882 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2883 | # directory). | |
2884 | if ( | |
2885 | am_has_slept=no | |
2886 | for am_try in 1 2; do | |
2887 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2888 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2889 | if test "$*" = "X"; then | |
2890 | # -L didn't work. | |
2891 | set X `ls -t "$srcdir/configure" conftest.file` | |
2892 | fi | |
2893 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2894 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2895 | ||
2896 | # If neither matched, then we have a broken ls. This can happen | |
2897 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2898 | # broken ls alias from the environment. This has actually | |
2899 | # happened. Such a system could not be considered "sane". | |
2900 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2901 | alias in your environment" "$LINENO" 5 | |
2902 | fi | |
2903 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2904 | break | |
2905 | fi | |
2906 | # Just in case. | |
2907 | sleep 1 | |
2908 | am_has_slept=yes | |
2909 | done | |
2910 | test "$2" = conftest.file | |
2911 | ) | |
2912 | then | |
2913 | # Ok. | |
2914 | : | |
2915 | else | |
2916 | as_fn_error $? "newly created file is older than distributed files! | |
2917 | Check your system clock" "$LINENO" 5 | |
2918 | fi | |
2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2920 | $as_echo "yes" >&6; } | |
2921 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2922 | # generated files are strictly newer. | |
2923 | am_sleep_pid= | |
2924 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2925 | ( sleep 1 ) & | |
2926 | am_sleep_pid=$! | |
2927 | fi | |
2928 | ||
2929 | rm -f conftest.file | |
2930 | ||
2931 | test "$program_prefix" != NONE && | |
2932 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2933 | # Use a double $ so make ignores it. | |
2934 | test "$program_suffix" != NONE && | |
2935 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2936 | # Double any \ or $. | |
2937 | # By default was `s,x,x', remove it if useless. | |
2938 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2939 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2940 | ||
2941 | # Expand $ac_aux_dir to an absolute path. | |
2942 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2943 | ||
2944 | if test x"${MISSING+set}" != xset; then | |
2945 | case $am_aux_dir in | |
2946 | *\ * | *\ *) | |
2947 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2948 | *) | |
2949 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2950 | esac | |
2951 | fi | |
2952 | # Use eval to expand $SHELL | |
2953 | if eval "$MISSING --is-lightweight"; then | |
2954 | am_missing_run="$MISSING " | |
2955 | else | |
2956 | am_missing_run= | |
2957 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2958 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2959 | fi | |
2960 | ||
2961 | if test x"${install_sh+set}" != xset; then | |
2962 | case $am_aux_dir in | |
2963 | *\ * | *\ *) | |
2964 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2965 | *) | |
2966 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2967 | esac | |
2968 | fi | |
2969 | ||
2970 | # Installed binaries are usually stripped using 'strip' when the user | |
2971 | # run "make install-strip". However 'strip' might not be the right | |
2972 | # tool to use in cross-compilation environments, therefore Automake | |
2973 | # will honor the 'STRIP' environment variable to overrule this program. | |
2974 | if test "$cross_compiling" != no; then | |
2975 | if test -n "$ac_tool_prefix"; then | |
2976 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2977 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2979 | $as_echo_n "checking for $ac_word... " >&6; } | |
2980 | if ${ac_cv_prog_STRIP+:} false; then : | |
2981 | $as_echo_n "(cached) " >&6 | |
2982 | else | |
2983 | if test -n "$STRIP"; then | |
2984 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2985 | else | |
2986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2987 | for as_dir in $PATH | |
2988 | do | |
2989 | IFS=$as_save_IFS | |
2990 | test -z "$as_dir" && as_dir=. | |
2991 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2992 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2993 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2995 | break 2 | |
2996 | fi | |
2997 | done | |
2998 | done | |
2999 | IFS=$as_save_IFS | |
3000 | ||
3001 | fi | |
3002 | fi | |
3003 | STRIP=$ac_cv_prog_STRIP | |
3004 | if test -n "$STRIP"; then | |
3005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3006 | $as_echo "$STRIP" >&6; } | |
3007 | else | |
3008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3009 | $as_echo "no" >&6; } | |
3010 | fi | |
3011 | ||
3012 | ||
3013 | fi | |
3014 | if test -z "$ac_cv_prog_STRIP"; then | |
3015 | ac_ct_STRIP=$STRIP | |
3016 | # Extract the first word of "strip", so it can be a program name with args. | |
3017 | set dummy strip; ac_word=$2 | |
3018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3019 | $as_echo_n "checking for $ac_word... " >&6; } | |
3020 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
3021 | $as_echo_n "(cached) " >&6 | |
3022 | else | |
3023 | if test -n "$ac_ct_STRIP"; then | |
3024 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3025 | else | |
3026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3027 | for as_dir in $PATH | |
3028 | do | |
3029 | IFS=$as_save_IFS | |
3030 | test -z "$as_dir" && as_dir=. | |
3031 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3032 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3033 | ac_cv_prog_ac_ct_STRIP="strip" | |
3034 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3035 | break 2 | |
3036 | fi | |
3037 | done | |
3038 | done | |
3039 | IFS=$as_save_IFS | |
3040 | ||
3041 | fi | |
3042 | fi | |
3043 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3044 | if test -n "$ac_ct_STRIP"; then | |
3045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3046 | $as_echo "$ac_ct_STRIP" >&6; } | |
3047 | else | |
3048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3049 | $as_echo "no" >&6; } | |
3050 | fi | |
3051 | ||
3052 | if test "x$ac_ct_STRIP" = x; then | |
3053 | STRIP=":" | |
3054 | else | |
3055 | case $cross_compiling:$ac_tool_warned in | |
3056 | yes:) | |
3057 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3058 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3059 | ac_tool_warned=yes ;; | |
3060 | esac | |
3061 | STRIP=$ac_ct_STRIP | |
3062 | fi | |
3063 | else | |
3064 | STRIP="$ac_cv_prog_STRIP" | |
3065 | fi | |
3066 | ||
3067 | fi | |
3068 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3069 | ||
3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3071 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3072 | if test -z "$MKDIR_P"; then | |
3073 | if ${ac_cv_path_mkdir+:} false; then : | |
3074 | $as_echo_n "(cached) " >&6 | |
3075 | else | |
3076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3077 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3078 | do | |
3079 | IFS=$as_save_IFS | |
3080 | test -z "$as_dir" && as_dir=. | |
3081 | for ac_prog in mkdir gmkdir; do | |
3082 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3083 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
3084 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3085 | 'mkdir (GNU coreutils) '* | \ | |
3086 | 'mkdir (coreutils) '* | \ | |
3087 | 'mkdir (fileutils) '4.1*) | |
3088 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3089 | break 3;; | |
3090 | esac | |
3091 | done | |
3092 | done | |
3093 | done | |
3094 | IFS=$as_save_IFS | |
3095 | ||
3096 | fi | |
3097 | ||
3098 | test -d ./--version && rmdir ./--version | |
3099 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3100 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3101 | else | |
3102 | # As a last resort, use the slow shell script. Don't cache a | |
3103 | # value for MKDIR_P within a source directory, because that will | |
3104 | # break other packages using the cache if that directory is | |
3105 | # removed, or if the value is a relative name. | |
3106 | MKDIR_P="$ac_install_sh -d" | |
3107 | fi | |
3108 | fi | |
3109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3110 | $as_echo "$MKDIR_P" >&6; } | |
3111 | ||
3112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3113 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3114 | set x ${MAKE-make} | |
3115 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3116 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
3117 | $as_echo_n "(cached) " >&6 | |
3118 | else | |
3119 | cat >conftest.make <<\_ACEOF | |
3120 | SHELL = /bin/sh | |
3121 | all: | |
3122 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3123 | _ACEOF | |
3124 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
3125 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3126 | *@@@%%%=?*=@@@%%%*) | |
3127 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3128 | *) | |
3129 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3130 | esac | |
3131 | rm -f conftest.make | |
3132 | fi | |
3133 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3135 | $as_echo "yes" >&6; } | |
3136 | SET_MAKE= | |
3137 | else | |
3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3139 | $as_echo "no" >&6; } | |
3140 | SET_MAKE="MAKE=${MAKE-make}" | |
3141 | fi | |
3142 | ||
3143 | rm -rf .tst 2>/dev/null | |
3144 | mkdir .tst 2>/dev/null | |
3145 | if test -d .tst; then | |
3146 | am__leading_dot=. | |
3147 | else | |
3148 | am__leading_dot=_ | |
3149 | fi | |
3150 | rmdir .tst 2>/dev/null | |
3151 | ||
3152 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3153 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3154 | # is not polluted with repeated "-I." | |
3155 | am__isrc=' -I$(srcdir)' | |
3156 | # test to see if srcdir already configured | |
3157 | if test -f $srcdir/config.status; then | |
3158 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3159 | fi | |
3160 | fi | |
3161 | ||
3162 | # test whether we have cygpath | |
3163 | if test -z "$CYGPATH_W"; then | |
3164 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3165 | CYGPATH_W='cygpath -w' | |
3166 | else | |
3167 | CYGPATH_W=echo | |
3168 | fi | |
3169 | fi | |
3170 | ||
3171 | ||
3172 | # Define the identity of the package. | |
3173 | PACKAGE='zfs' | |
2078c8a7 | 3174 | VERSION='0.6.5.6' |
904dbe44 CIK |
3175 | |
3176 | ||
3177 | cat >>confdefs.h <<_ACEOF | |
3178 | #define PACKAGE "$PACKAGE" | |
3179 | _ACEOF | |
3180 | ||
3181 | ||
3182 | cat >>confdefs.h <<_ACEOF | |
3183 | #define VERSION "$VERSION" | |
3184 | _ACEOF | |
3185 | ||
3186 | # Some tools Automake needs. | |
3187 | ||
3188 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3189 | ||
3190 | ||
3191 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3192 | ||
3193 | ||
3194 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3195 | ||
3196 | ||
3197 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3198 | ||
3199 | ||
3200 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3201 | ||
3202 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3203 | # dies out for good. For more background, see: | |
3204 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3205 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3206 | mkdir_p='$(MKDIR_P)' | |
3207 | ||
3208 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3209 | # system "awk" is bad on some platforms. | |
3210 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
3211 | # in the wild :-( We should find a proper way to deprecate it ... | |
3212 | AMTAR='$${TAR-tar}' | |
3213 | ||
3214 | ||
3215 | # We'll loop over all known methods to create a tar archive until one works. | |
3216 | _am_tools='gnutar pax cpio none' | |
3217 | ||
3218 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
3219 | ||
3220 | ||
3221 | ||
3222 | ||
3223 | ||
3224 | ||
3225 | # POSIX will say in a future version that running "rm -f" with no argument | |
3226 | # is OK; and we want to be able to make that assumption in our Makefile | |
3227 | # recipes. So use an aggressive probe to check that the usage we want is | |
3228 | # actually supported "in the wild" to an acceptable degree. | |
3229 | # See automake bug#10828. | |
3230 | # To make any issue more visible, cause the running configure to be aborted | |
3231 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3232 | # user can still override this though. | |
3233 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3234 | cat >&2 <<'END' | |
3235 | Oops! | |
3236 | ||
3237 | Your 'rm' program seems unable to run without file operands specified | |
3238 | on the command line, even when the '-f' option is present. This is contrary | |
3239 | to the behaviour of most rm programs out there, and not conforming with | |
3240 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3241 | ||
3242 | Please tell bug-automake@gnu.org about your system, including the value | |
3243 | of your $PATH and any error possibly output before this message. This | |
3244 | can help us improve future automake versions. | |
3245 | ||
3246 | END | |
3247 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3248 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3249 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3250 | echo >&2 | |
3251 | else | |
3252 | cat >&2 <<'END' | |
3253 | Aborting the configuration process, to ensure you take notice of the issue. | |
3254 | ||
3255 | You can download and install GNU coreutils to get an 'rm' implementation | |
3256 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3257 | ||
3258 | If you want to complete the configuration process using your problematic | |
3259 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3260 | to "yes", and re-run configure. | |
3261 | ||
3262 | END | |
3263 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3264 | fi | |
3265 | fi | |
3266 | ||
3267 | ac_config_headers="$ac_config_headers zfs_config.h" | |
3268 | ||
3269 | ||
3270 | ||
3271 | ac_ext=c | |
3272 | ac_cpp='$CPP $CPPFLAGS' | |
3273 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3274 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3275 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3276 | if test -n "$ac_tool_prefix"; then | |
3277 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3278 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3280 | $as_echo_n "checking for $ac_word... " >&6; } | |
3281 | if ${ac_cv_prog_CC+:} false; then : | |
3282 | $as_echo_n "(cached) " >&6 | |
3283 | else | |
3284 | if test -n "$CC"; then | |
3285 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3286 | else | |
3287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3288 | for as_dir in $PATH | |
3289 | do | |
3290 | IFS=$as_save_IFS | |
3291 | test -z "$as_dir" && as_dir=. | |
3292 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3293 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3294 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3295 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3296 | break 2 | |
3297 | fi | |
3298 | done | |
3299 | done | |
3300 | IFS=$as_save_IFS | |
3301 | ||
3302 | fi | |
3303 | fi | |
3304 | CC=$ac_cv_prog_CC | |
3305 | if test -n "$CC"; then | |
3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3307 | $as_echo "$CC" >&6; } | |
3308 | else | |
3309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3310 | $as_echo "no" >&6; } | |
3311 | fi | |
3312 | ||
3313 | ||
3314 | fi | |
3315 | if test -z "$ac_cv_prog_CC"; then | |
3316 | ac_ct_CC=$CC | |
3317 | # Extract the first word of "gcc", so it can be a program name with args. | |
3318 | set dummy gcc; ac_word=$2 | |
3319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3320 | $as_echo_n "checking for $ac_word... " >&6; } | |
3321 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3322 | $as_echo_n "(cached) " >&6 | |
3323 | else | |
3324 | if test -n "$ac_ct_CC"; then | |
3325 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3326 | else | |
3327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3328 | for as_dir in $PATH | |
3329 | do | |
3330 | IFS=$as_save_IFS | |
3331 | test -z "$as_dir" && as_dir=. | |
3332 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3333 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3334 | ac_cv_prog_ac_ct_CC="gcc" | |
3335 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3336 | break 2 | |
3337 | fi | |
3338 | done | |
3339 | done | |
3340 | IFS=$as_save_IFS | |
3341 | ||
3342 | fi | |
3343 | fi | |
3344 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3345 | if test -n "$ac_ct_CC"; then | |
3346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3347 | $as_echo "$ac_ct_CC" >&6; } | |
3348 | else | |
3349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3350 | $as_echo "no" >&6; } | |
3351 | fi | |
3352 | ||
3353 | if test "x$ac_ct_CC" = x; then | |
3354 | CC="" | |
3355 | else | |
3356 | case $cross_compiling:$ac_tool_warned in | |
3357 | yes:) | |
3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3359 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3360 | ac_tool_warned=yes ;; | |
3361 | esac | |
3362 | CC=$ac_ct_CC | |
3363 | fi | |
3364 | else | |
3365 | CC="$ac_cv_prog_CC" | |
3366 | fi | |
3367 | ||
3368 | if test -z "$CC"; then | |
3369 | if test -n "$ac_tool_prefix"; then | |
3370 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3371 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3373 | $as_echo_n "checking for $ac_word... " >&6; } | |
3374 | if ${ac_cv_prog_CC+:} false; then : | |
3375 | $as_echo_n "(cached) " >&6 | |
3376 | else | |
3377 | if test -n "$CC"; then | |
3378 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3379 | else | |
3380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3381 | for as_dir in $PATH | |
3382 | do | |
3383 | IFS=$as_save_IFS | |
3384 | test -z "$as_dir" && as_dir=. | |
3385 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3386 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3387 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3388 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3389 | break 2 | |
3390 | fi | |
3391 | done | |
3392 | done | |
3393 | IFS=$as_save_IFS | |
3394 | ||
3395 | fi | |
3396 | fi | |
3397 | CC=$ac_cv_prog_CC | |
3398 | if test -n "$CC"; then | |
3399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3400 | $as_echo "$CC" >&6; } | |
3401 | else | |
3402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3403 | $as_echo "no" >&6; } | |
3404 | fi | |
3405 | ||
3406 | ||
3407 | fi | |
3408 | fi | |
3409 | if test -z "$CC"; then | |
3410 | # Extract the first word of "cc", so it can be a program name with args. | |
3411 | set dummy cc; ac_word=$2 | |
3412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3413 | $as_echo_n "checking for $ac_word... " >&6; } | |
3414 | if ${ac_cv_prog_CC+:} false; then : | |
3415 | $as_echo_n "(cached) " >&6 | |
3416 | else | |
3417 | if test -n "$CC"; then | |
3418 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3419 | else | |
3420 | ac_prog_rejected=no | |
3421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3422 | for as_dir in $PATH | |
3423 | do | |
3424 | IFS=$as_save_IFS | |
3425 | test -z "$as_dir" && as_dir=. | |
3426 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3427 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3428 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3429 | ac_prog_rejected=yes | |
3430 | continue | |
3431 | fi | |
3432 | ac_cv_prog_CC="cc" | |
3433 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3434 | break 2 | |
3435 | fi | |
3436 | done | |
3437 | done | |
3438 | IFS=$as_save_IFS | |
3439 | ||
3440 | if test $ac_prog_rejected = yes; then | |
3441 | # We found a bogon in the path, so make sure we never use it. | |
3442 | set dummy $ac_cv_prog_CC | |
3443 | shift | |
3444 | if test $# != 0; then | |
3445 | # We chose a different compiler from the bogus one. | |
3446 | # However, it has the same basename, so the bogon will be chosen | |
3447 | # first if we set CC to just the basename; use the full file name. | |
3448 | shift | |
3449 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3450 | fi | |
3451 | fi | |
3452 | fi | |
3453 | fi | |
3454 | CC=$ac_cv_prog_CC | |
3455 | if test -n "$CC"; then | |
3456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3457 | $as_echo "$CC" >&6; } | |
3458 | else | |
3459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3460 | $as_echo "no" >&6; } | |
3461 | fi | |
3462 | ||
3463 | ||
3464 | fi | |
3465 | if test -z "$CC"; then | |
3466 | if test -n "$ac_tool_prefix"; then | |
3467 | for ac_prog in cl.exe | |
3468 | do | |
3469 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3470 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3472 | $as_echo_n "checking for $ac_word... " >&6; } | |
3473 | if ${ac_cv_prog_CC+:} false; then : | |
3474 | $as_echo_n "(cached) " >&6 | |
3475 | else | |
3476 | if test -n "$CC"; then | |
3477 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3478 | else | |
3479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3480 | for as_dir in $PATH | |
3481 | do | |
3482 | IFS=$as_save_IFS | |
3483 | test -z "$as_dir" && as_dir=. | |
3484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3485 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3486 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3487 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3488 | break 2 | |
3489 | fi | |
3490 | done | |
3491 | done | |
3492 | IFS=$as_save_IFS | |
3493 | ||
3494 | fi | |
3495 | fi | |
3496 | CC=$ac_cv_prog_CC | |
3497 | if test -n "$CC"; then | |
3498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3499 | $as_echo "$CC" >&6; } | |
3500 | else | |
3501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3502 | $as_echo "no" >&6; } | |
3503 | fi | |
3504 | ||
3505 | ||
3506 | test -n "$CC" && break | |
3507 | done | |
3508 | fi | |
3509 | if test -z "$CC"; then | |
3510 | ac_ct_CC=$CC | |
3511 | for ac_prog in cl.exe | |
3512 | do | |
3513 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3514 | set dummy $ac_prog; ac_word=$2 | |
3515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3516 | $as_echo_n "checking for $ac_word... " >&6; } | |
3517 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3518 | $as_echo_n "(cached) " >&6 | |
3519 | else | |
3520 | if test -n "$ac_ct_CC"; then | |
3521 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3522 | else | |
3523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3524 | for as_dir in $PATH | |
3525 | do | |
3526 | IFS=$as_save_IFS | |
3527 | test -z "$as_dir" && as_dir=. | |
3528 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3529 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3530 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3531 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3532 | break 2 | |
3533 | fi | |
3534 | done | |
3535 | done | |
3536 | IFS=$as_save_IFS | |
3537 | ||
3538 | fi | |
3539 | fi | |
3540 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3541 | if test -n "$ac_ct_CC"; then | |
3542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3543 | $as_echo "$ac_ct_CC" >&6; } | |
3544 | else | |
3545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3546 | $as_echo "no" >&6; } | |
3547 | fi | |
3548 | ||
3549 | ||
3550 | test -n "$ac_ct_CC" && break | |
3551 | done | |
3552 | ||
3553 | if test "x$ac_ct_CC" = x; then | |
3554 | CC="" | |
3555 | else | |
3556 | case $cross_compiling:$ac_tool_warned in | |
3557 | yes:) | |
3558 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3559 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3560 | ac_tool_warned=yes ;; | |
3561 | esac | |
3562 | CC=$ac_ct_CC | |
3563 | fi | |
3564 | fi | |
3565 | ||
3566 | fi | |
3567 | ||
3568 | ||
3569 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3570 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3571 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3572 | See \`config.log' for more details" "$LINENO" 5; } | |
3573 | ||
3574 | # Provide some information about the compiler. | |
3575 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3576 | set X $ac_compile | |
3577 | ac_compiler=$2 | |
3578 | for ac_option in --version -v -V -qversion; do | |
3579 | { { ac_try="$ac_compiler $ac_option >&5" | |
3580 | case "(($ac_try" in | |
3581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3582 | *) ac_try_echo=$ac_try;; | |
3583 | esac | |
3584 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3585 | $as_echo "$ac_try_echo"; } >&5 | |
3586 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3587 | ac_status=$? | |
3588 | if test -s conftest.err; then | |
3589 | sed '10a\ | |
3590 | ... rest of stderr output deleted ... | |
3591 | 10q' conftest.err >conftest.er1 | |
3592 | cat conftest.er1 >&5 | |
3593 | fi | |
3594 | rm -f conftest.er1 conftest.err | |
3595 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3596 | test $ac_status = 0; } | |
3597 | done | |
3598 | ||
3599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3600 | /* end confdefs.h. */ | |
3601 | ||
3602 | int | |
3603 | main () | |
3604 | { | |
3605 | ||
3606 | ; | |
3607 | return 0; | |
3608 | } | |
3609 | _ACEOF | |
3610 | ac_clean_files_save=$ac_clean_files | |
3611 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3612 | # Try to create an executable without -o first, disregard a.out. | |
3613 | # It will help us diagnose broken compilers, and finding out an intuition | |
3614 | # of exeext. | |
3615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3616 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3617 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3618 | ||
3619 | # The possible output files: | |
3620 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3621 | ||
3622 | ac_rmfiles= | |
3623 | for ac_file in $ac_files | |
3624 | do | |
3625 | case $ac_file in | |
3626 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3627 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3628 | esac | |
3629 | done | |
3630 | rm -f $ac_rmfiles | |
3631 | ||
3632 | if { { ac_try="$ac_link_default" | |
3633 | case "(($ac_try" in | |
3634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3635 | *) ac_try_echo=$ac_try;; | |
3636 | esac | |
3637 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3638 | $as_echo "$ac_try_echo"; } >&5 | |
3639 | (eval "$ac_link_default") 2>&5 | |
3640 | ac_status=$? | |
3641 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3642 | test $ac_status = 0; }; then : | |
3643 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3644 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3645 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3646 | # so that the user can short-circuit this test for compilers unknown to | |
3647 | # Autoconf. | |
3648 | for ac_file in $ac_files '' | |
3649 | do | |
3650 | test -f "$ac_file" || continue | |
3651 | case $ac_file in | |
3652 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3653 | ;; | |
3654 | [ab].out ) | |
3655 | # We found the default executable, but exeext='' is most | |
3656 | # certainly right. | |
3657 | break;; | |
3658 | *.* ) | |
3659 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3660 | then :; else | |
3661 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3662 | fi | |
3663 | # We set ac_cv_exeext here because the later test for it is not | |
3664 | # safe: cross compilers may not add the suffix if given an `-o' | |
3665 | # argument, so we may need to know it at that point already. | |
3666 | # Even if this section looks crufty: it has the advantage of | |
3667 | # actually working. | |
3668 | break;; | |
3669 | * ) | |
3670 | break;; | |
3671 | esac | |
3672 | done | |
3673 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3674 | ||
3675 | else | |
3676 | ac_file='' | |
3677 | fi | |
3678 | if test -z "$ac_file"; then : | |
3679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3680 | $as_echo "no" >&6; } | |
3681 | $as_echo "$as_me: failed program was:" >&5 | |
3682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3683 | ||
3684 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3685 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3686 | as_fn_error 77 "C compiler cannot create executables | |
3687 | See \`config.log' for more details" "$LINENO" 5; } | |
3688 | else | |
3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3690 | $as_echo "yes" >&6; } | |
3691 | fi | |
3692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3693 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3695 | $as_echo "$ac_file" >&6; } | |
3696 | ac_exeext=$ac_cv_exeext | |
3697 | ||
3698 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3699 | ac_clean_files=$ac_clean_files_save | |
3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3701 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3702 | if { { ac_try="$ac_link" | |
3703 | case "(($ac_try" in | |
3704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3705 | *) ac_try_echo=$ac_try;; | |
3706 | esac | |
3707 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3708 | $as_echo "$ac_try_echo"; } >&5 | |
3709 | (eval "$ac_link") 2>&5 | |
3710 | ac_status=$? | |
3711 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3712 | test $ac_status = 0; }; then : | |
3713 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3714 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3715 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3716 | # `rm'. | |
3717 | for ac_file in conftest.exe conftest conftest.*; do | |
3718 | test -f "$ac_file" || continue | |
3719 | case $ac_file in | |
3720 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3721 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3722 | break;; | |
3723 | * ) break;; | |
3724 | esac | |
3725 | done | |
3726 | else | |
3727 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3728 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3729 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3730 | See \`config.log' for more details" "$LINENO" 5; } | |
3731 | fi | |
3732 | rm -f conftest conftest$ac_cv_exeext | |
3733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3734 | $as_echo "$ac_cv_exeext" >&6; } | |
3735 | ||
3736 | rm -f conftest.$ac_ext | |
3737 | EXEEXT=$ac_cv_exeext | |
3738 | ac_exeext=$EXEEXT | |
3739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3740 | /* end confdefs.h. */ | |
3741 | #include <stdio.h> | |
3742 | int | |
3743 | main () | |
3744 | { | |
3745 | FILE *f = fopen ("conftest.out", "w"); | |
3746 | return ferror (f) || fclose (f) != 0; | |
3747 | ||
3748 | ; | |
3749 | return 0; | |
3750 | } | |
3751 | _ACEOF | |
3752 | ac_clean_files="$ac_clean_files conftest.out" | |
3753 | # Check that the compiler produces executables we can run. If not, either | |
3754 | # the compiler is broken, or we cross compile. | |
3755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3756 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3757 | if test "$cross_compiling" != yes; then | |
3758 | { { ac_try="$ac_link" | |
3759 | case "(($ac_try" in | |
3760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3761 | *) ac_try_echo=$ac_try;; | |
3762 | esac | |
3763 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3764 | $as_echo "$ac_try_echo"; } >&5 | |
3765 | (eval "$ac_link") 2>&5 | |
3766 | ac_status=$? | |
3767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3768 | test $ac_status = 0; } | |
3769 | if { ac_try='./conftest$ac_cv_exeext' | |
3770 | { { case "(($ac_try" in | |
3771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3772 | *) ac_try_echo=$ac_try;; | |
3773 | esac | |
3774 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3775 | $as_echo "$ac_try_echo"; } >&5 | |
3776 | (eval "$ac_try") 2>&5 | |
3777 | ac_status=$? | |
3778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3779 | test $ac_status = 0; }; }; then | |
3780 | cross_compiling=no | |
3781 | else | |
3782 | if test "$cross_compiling" = maybe; then | |
3783 | cross_compiling=yes | |
3784 | else | |
3785 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3786 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3787 | as_fn_error $? "cannot run C compiled programs. | |
3788 | If you meant to cross compile, use \`--host'. | |
3789 | See \`config.log' for more details" "$LINENO" 5; } | |
3790 | fi | |
3791 | fi | |
3792 | fi | |
3793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3794 | $as_echo "$cross_compiling" >&6; } | |
3795 | ||
3796 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3797 | ac_clean_files=$ac_clean_files_save | |
3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3799 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3800 | if ${ac_cv_objext+:} false; then : | |
3801 | $as_echo_n "(cached) " >&6 | |
3802 | else | |
3803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3804 | /* end confdefs.h. */ | |
3805 | ||
3806 | int | |
3807 | main () | |
3808 | { | |
3809 | ||
3810 | ; | |
3811 | return 0; | |
3812 | } | |
3813 | _ACEOF | |
3814 | rm -f conftest.o conftest.obj | |
3815 | if { { ac_try="$ac_compile" | |
3816 | case "(($ac_try" in | |
3817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3818 | *) ac_try_echo=$ac_try;; | |
3819 | esac | |
3820 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3821 | $as_echo "$ac_try_echo"; } >&5 | |
3822 | (eval "$ac_compile") 2>&5 | |
3823 | ac_status=$? | |
3824 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3825 | test $ac_status = 0; }; then : | |
3826 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3827 | test -f "$ac_file" || continue; | |
3828 | case $ac_file in | |
3829 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3830 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3831 | break;; | |
3832 | esac | |
3833 | done | |
3834 | else | |
3835 | $as_echo "$as_me: failed program was:" >&5 | |
3836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3837 | ||
3838 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3839 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3840 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3841 | See \`config.log' for more details" "$LINENO" 5; } | |
3842 | fi | |
3843 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3844 | fi | |
3845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3846 | $as_echo "$ac_cv_objext" >&6; } | |
3847 | OBJEXT=$ac_cv_objext | |
3848 | ac_objext=$OBJEXT | |
3849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3850 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3851 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3852 | $as_echo_n "(cached) " >&6 | |
3853 | else | |
3854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3855 | /* end confdefs.h. */ | |
3856 | ||
3857 | int | |
3858 | main () | |
3859 | { | |
3860 | #ifndef __GNUC__ | |
3861 | choke me | |
3862 | #endif | |
3863 | ||
3864 | ; | |
3865 | return 0; | |
3866 | } | |
3867 | _ACEOF | |
3868 | if ac_fn_c_try_compile "$LINENO"; then : | |
3869 | ac_compiler_gnu=yes | |
3870 | else | |
3871 | ac_compiler_gnu=no | |
3872 | fi | |
3873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3874 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3875 | ||
3876 | fi | |
3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3878 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3879 | if test $ac_compiler_gnu = yes; then | |
3880 | GCC=yes | |
3881 | else | |
3882 | GCC= | |
3883 | fi | |
3884 | ac_test_CFLAGS=${CFLAGS+set} | |
3885 | ac_save_CFLAGS=$CFLAGS | |
3886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3887 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3888 | if ${ac_cv_prog_cc_g+:} false; then : | |
3889 | $as_echo_n "(cached) " >&6 | |
3890 | else | |
3891 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3892 | ac_c_werror_flag=yes | |
3893 | ac_cv_prog_cc_g=no | |
3894 | CFLAGS="-g" | |
3895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3896 | /* end confdefs.h. */ | |
3897 | ||
3898 | int | |
3899 | main () | |
3900 | { | |
3901 | ||
3902 | ; | |
3903 | return 0; | |
3904 | } | |
3905 | _ACEOF | |
3906 | if ac_fn_c_try_compile "$LINENO"; then : | |
3907 | ac_cv_prog_cc_g=yes | |
3908 | else | |
3909 | CFLAGS="" | |
3910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3911 | /* end confdefs.h. */ | |
3912 | ||
3913 | int | |
3914 | main () | |
3915 | { | |
3916 | ||
3917 | ; | |
3918 | return 0; | |
3919 | } | |
3920 | _ACEOF | |
3921 | if ac_fn_c_try_compile "$LINENO"; then : | |
3922 | ||
3923 | else | |
3924 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3925 | CFLAGS="-g" | |
3926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3927 | /* end confdefs.h. */ | |
3928 | ||
3929 | int | |
3930 | main () | |
3931 | { | |
3932 | ||
3933 | ; | |
3934 | return 0; | |
3935 | } | |
3936 | _ACEOF | |
3937 | if ac_fn_c_try_compile "$LINENO"; then : | |
3938 | ac_cv_prog_cc_g=yes | |
3939 | fi | |
3940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3941 | fi | |
3942 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3943 | fi | |
3944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3945 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3946 | fi | |
3947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3948 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3949 | if test "$ac_test_CFLAGS" = set; then | |
3950 | CFLAGS=$ac_save_CFLAGS | |
3951 | elif test $ac_cv_prog_cc_g = yes; then | |
3952 | if test "$GCC" = yes; then | |
3953 | CFLAGS="-g -O2" | |
3954 | else | |
3955 | CFLAGS="-g" | |
3956 | fi | |
3957 | else | |
3958 | if test "$GCC" = yes; then | |
3959 | CFLAGS="-O2" | |
3960 | else | |
3961 | CFLAGS= | |
3962 | fi | |
3963 | fi | |
3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3965 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3966 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3967 | $as_echo_n "(cached) " >&6 | |
3968 | else | |
3969 | ac_cv_prog_cc_c89=no | |
3970 | ac_save_CC=$CC | |
3971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3972 | /* end confdefs.h. */ | |
3973 | #include <stdarg.h> | |
3974 | #include <stdio.h> | |
3975 | struct stat; | |
3976 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3977 | struct buf { int x; }; | |
3978 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3979 | static char *e (p, i) | |
3980 | char **p; | |
3981 | int i; | |
3982 | { | |
3983 | return p[i]; | |
3984 | } | |
3985 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3986 | { | |
3987 | char *s; | |
3988 | va_list v; | |
3989 | va_start (v,p); | |
3990 | s = g (p, va_arg (v,int)); | |
3991 | va_end (v); | |
3992 | return s; | |
3993 | } | |
3994 | ||
3995 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3996 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3997 | These don't provoke an error unfortunately, instead are silently treated | |
3998 | as 'x'. The following induces an error, until -std is added to get | |
3999 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4000 | array size at least. It's necessary to write '\x00'==0 to get something | |
4001 | that's true only with -std. */ | |
4002 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4003 | ||
4004 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4005 | inside strings and character constants. */ | |
4006 | #define FOO(x) 'x' | |
4007 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4008 | ||
4009 | int test (int i, double x); | |
4010 | struct s1 {int (*f) (int a);}; | |
4011 | struct s2 {int (*f) (double a);}; | |
4012 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4013 | int argc; | |
4014 | char **argv; | |
4015 | int | |
4016 | main () | |
4017 | { | |
4018 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4019 | ; | |
4020 | return 0; | |
4021 | } | |
4022 | _ACEOF | |
4023 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4024 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4025 | do | |
4026 | CC="$ac_save_CC $ac_arg" | |
4027 | if ac_fn_c_try_compile "$LINENO"; then : | |
4028 | ac_cv_prog_cc_c89=$ac_arg | |
4029 | fi | |
4030 | rm -f core conftest.err conftest.$ac_objext | |
4031 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4032 | done | |
4033 | rm -f conftest.$ac_ext | |
4034 | CC=$ac_save_CC | |
4035 | ||
4036 | fi | |
4037 | # AC_CACHE_VAL | |
4038 | case "x$ac_cv_prog_cc_c89" in | |
4039 | x) | |
4040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4041 | $as_echo "none needed" >&6; } ;; | |
4042 | xno) | |
4043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4044 | $as_echo "unsupported" >&6; } ;; | |
4045 | *) | |
4046 | CC="$CC $ac_cv_prog_cc_c89" | |
4047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4048 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4049 | esac | |
4050 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4051 | ||
4052 | fi | |
4053 | ||
4054 | ac_ext=c | |
4055 | ac_cpp='$CPP $CPPFLAGS' | |
4056 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4057 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4058 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4059 | ||
4060 | ac_ext=c | |
4061 | ac_cpp='$CPP $CPPFLAGS' | |
4062 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4063 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4064 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4066 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4067 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4068 | $as_echo_n "(cached) " >&6 | |
4069 | else | |
4070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4071 | /* end confdefs.h. */ | |
4072 | ||
4073 | int | |
4074 | main () | |
4075 | { | |
4076 | ||
4077 | ; | |
4078 | return 0; | |
4079 | } | |
4080 | _ACEOF | |
4081 | # Make sure it works both with $CC and with simple cc. | |
4082 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4083 | # compilers refuse to overwrite an existing .o file with -o, | |
4084 | # though they will create one. | |
4085 | am_cv_prog_cc_c_o=yes | |
4086 | for am_i in 1 2; do | |
4087 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4088 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4089 | ac_status=$? | |
4090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4091 | (exit $ac_status); } \ | |
4092 | && test -f conftest2.$ac_objext; then | |
4093 | : OK | |
4094 | else | |
4095 | am_cv_prog_cc_c_o=no | |
4096 | break | |
4097 | fi | |
4098 | done | |
4099 | rm -f core conftest* | |
4100 | unset am_i | |
4101 | fi | |
4102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4103 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4104 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4105 | # Losing compiler, so override with the script. | |
4106 | # FIXME: It is wrong to rewrite CC. | |
4107 | # But if we don't then we get into trouble of one sort or another. | |
4108 | # A longer-term fix would be to have automake use am__CC in this case, | |
4109 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4110 | CC="$am_aux_dir/compile $CC" | |
4111 | fi | |
4112 | ac_ext=c | |
4113 | ac_cpp='$CPP $CPPFLAGS' | |
4114 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4115 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4116 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4117 | ||
4118 | DEPDIR="${am__leading_dot}deps" | |
4119 | ||
4120 | ac_config_commands="$ac_config_commands depfiles" | |
4121 | ||
4122 | ||
4123 | am_make=${MAKE-make} | |
4124 | cat > confinc << 'END' | |
4125 | am__doit: | |
4126 | @echo this is the am__doit target | |
4127 | .PHONY: am__doit | |
4128 | END | |
4129 | # If we don't find an include directive, just comment out the code. | |
4130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4131 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4132 | am__include="#" | |
4133 | am__quote= | |
4134 | _am_result=none | |
4135 | # First try GNU make style include. | |
4136 | echo "include confinc" > confmf | |
4137 | # Ignore all kinds of additional output from 'make'. | |
4138 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4139 | *the\ am__doit\ target*) | |
4140 | am__include=include | |
4141 | am__quote= | |
4142 | _am_result=GNU | |
4143 | ;; | |
4144 | esac | |
4145 | # Now try BSD make style include. | |
4146 | if test "$am__include" = "#"; then | |
4147 | echo '.include "confinc"' > confmf | |
4148 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4149 | *the\ am__doit\ target*) | |
4150 | am__include=.include | |
4151 | am__quote="\"" | |
4152 | _am_result=BSD | |
4153 | ;; | |
4154 | esac | |
4155 | fi | |
4156 | ||
4157 | ||
4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4159 | $as_echo "$_am_result" >&6; } | |
4160 | rm -f confinc confmf | |
4161 | ||
4162 | # Check whether --enable-dependency-tracking was given. | |
4163 | if test "${enable_dependency_tracking+set}" = set; then : | |
4164 | enableval=$enable_dependency_tracking; | |
4165 | fi | |
4166 | ||
4167 | if test "x$enable_dependency_tracking" != xno; then | |
4168 | am_depcomp="$ac_aux_dir/depcomp" | |
4169 | AMDEPBACKSLASH='\' | |
4170 | am__nodep='_no' | |
4171 | fi | |
4172 | if test "x$enable_dependency_tracking" != xno; then | |
4173 | AMDEP_TRUE= | |
4174 | AMDEP_FALSE='#' | |
4175 | else | |
4176 | AMDEP_TRUE='#' | |
4177 | AMDEP_FALSE= | |
4178 | fi | |
4179 | ||
4180 | ||
4181 | ||
4182 | depcc="$CC" am_compiler_list= | |
4183 | ||
4184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4185 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4186 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4187 | $as_echo_n "(cached) " >&6 | |
4188 | else | |
4189 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4190 | # We make a subdir and do the tests there. Otherwise we can end up | |
4191 | # making bogus files that we don't know about and never remove. For | |
4192 | # instance it was reported that on HP-UX the gcc test will end up | |
4193 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4194 | # in D". | |
4195 | rm -rf conftest.dir | |
4196 | mkdir conftest.dir | |
4197 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4198 | # using a relative directory. | |
4199 | cp "$am_depcomp" conftest.dir | |
4200 | cd conftest.dir | |
4201 | # We will build objects and dependencies in a subdirectory because | |
4202 | # it helps to detect inapplicable dependency modes. For instance | |
4203 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4204 | # side effect of compilation, but ICC will put the dependencies in | |
4205 | # the current directory while Tru64 will put them in the object | |
4206 | # directory. | |
4207 | mkdir sub | |
4208 | ||
4209 | am_cv_CC_dependencies_compiler_type=none | |
4210 | if test "$am_compiler_list" = ""; then | |
4211 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4212 | fi | |
4213 | am__universal=false | |
4214 | case " $depcc " in #( | |
4215 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4216 | esac | |
4217 | ||
4218 | for depmode in $am_compiler_list; do | |
4219 | # Setup a source with many dependencies, because some compilers | |
4220 | # like to wrap large dependency lists on column 80 (with \), and | |
4221 | # we should not choose a depcomp mode which is confused by this. | |
4222 | # | |
4223 | # We need to recreate these files for each test, as the compiler may | |
4224 | # overwrite some of them when testing with obscure command lines. | |
4225 | # This happens at least with the AIX C compiler. | |
4226 | : > sub/conftest.c | |
4227 | for i in 1 2 3 4 5 6; do | |
4228 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4229 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4230 | # Solaris 10 /bin/sh. | |
4231 | echo '/* dummy */' > sub/conftst$i.h | |
4232 | done | |
4233 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4234 | ||
4235 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4236 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4237 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4238 | # versions had trouble with output in subdirs. | |
4239 | am__obj=sub/conftest.${OBJEXT-o} | |
4240 | am__minus_obj="-o $am__obj" | |
4241 | case $depmode in | |
4242 | gcc) | |
4243 | # This depmode causes a compiler race in universal mode. | |
4244 | test "$am__universal" = false || continue | |
4245 | ;; | |
4246 | nosideeffect) | |
4247 | # After this tag, mechanisms are not by side-effect, so they'll | |
4248 | # only be used when explicitly requested. | |
4249 | if test "x$enable_dependency_tracking" = xyes; then | |
4250 | continue | |
4251 | else | |
4252 | break | |
4253 | fi | |
4254 | ;; | |
4255 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4256 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4257 | # not run yet. These depmodes are late enough in the game, and | |
4258 | # so weak that their functioning should not be impacted. | |
4259 | am__obj=conftest.${OBJEXT-o} | |
4260 | am__minus_obj= | |
4261 | ;; | |
4262 | none) break ;; | |
4263 | esac | |
4264 | if depmode=$depmode \ | |
4265 | source=sub/conftest.c object=$am__obj \ | |
4266 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4267 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4268 | >/dev/null 2>conftest.err && | |
4269 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4270 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4271 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4272 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4273 | # icc doesn't choke on unknown options, it will just issue warnings | |
4274 | # or remarks (even with -Werror). So we grep stderr for any message | |
4275 | # that says an option was ignored or not supported. | |
4276 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4277 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4278 | # The diagnosis changed in icc 8.0: | |
4279 | # icc: Command line remark: option '-MP' not supported | |
4280 | if (grep 'ignoring option' conftest.err || | |
4281 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4282 | am_cv_CC_dependencies_compiler_type=$depmode | |
4283 | break | |
4284 | fi | |
4285 | fi | |
4286 | done | |
4287 | ||
4288 | cd .. | |
4289 | rm -rf conftest.dir | |
4290 | else | |
4291 | am_cv_CC_dependencies_compiler_type=none | |
4292 | fi | |
4293 | ||
4294 | fi | |
4295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4296 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4297 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4298 | ||
4299 | if | |
4300 | test "x$enable_dependency_tracking" != xno \ | |
4301 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4302 | am__fastdepCC_TRUE= | |
4303 | am__fastdepCC_FALSE='#' | |
4304 | else | |
4305 | am__fastdepCC_TRUE='#' | |
4306 | am__fastdepCC_FALSE= | |
4307 | fi | |
4308 | ||
4309 | ||
4310 | case `pwd` in | |
4311 | *\ * | *\ *) | |
4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4313 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
4314 | esac | |
4315 | ||
4316 | ||
4317 | ||
3258f645 TG |
4318 | macro_version='2.4.6' |
4319 | macro_revision='2.4.6' | |
904dbe44 CIK |
4320 | |
4321 | ||
4322 | ||
4323 | ||
4324 | ||
4325 | ||
4326 | ||
4327 | ||
4328 | ||
4329 | ||
4330 | ||
4331 | ||
4332 | ||
3258f645 | 4333 | ltmain=$ac_aux_dir/ltmain.sh |
904dbe44 CIK |
4334 | |
4335 | # Backslashify metacharacters that are still active within | |
4336 | # double-quoted strings. | |
4337 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4338 | ||
4339 | # Same as above, but do not quote variable references. | |
4340 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4341 | ||
4342 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4343 | # double_quote_subst'ed string. | |
4344 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4345 | ||
4346 | # Sed substitution to delay expansion of an escaped single quote. | |
4347 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4348 | ||
4349 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4350 | no_glob_subst='s/\*/\\\*/g' | |
4351 | ||
4352 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4353 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4354 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4355 | ||
4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4357 | $as_echo_n "checking how to print strings... " >&6; } | |
4358 | # Test print first, because it will be a builtin if present. | |
4359 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4360 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4361 | ECHO='print -r --' | |
4362 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4363 | ECHO='printf %s\n' | |
4364 | else | |
4365 | # Use this function as a fallback that always works. | |
4366 | func_fallback_echo () | |
4367 | { | |
4368 | eval 'cat <<_LTECHO_EOF | |
4369 | $1 | |
4370 | _LTECHO_EOF' | |
4371 | } | |
4372 | ECHO='func_fallback_echo' | |
4373 | fi | |
4374 | ||
4375 | # func_echo_all arg... | |
4376 | # Invoke $ECHO with all args, space-separated. | |
4377 | func_echo_all () | |
4378 | { | |
4379 | $ECHO "" | |
4380 | } | |
4381 | ||
3258f645 | 4382 | case $ECHO in |
904dbe44 CIK |
4383 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
4384 | $as_echo "printf" >&6; } ;; | |
4385 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4386 | $as_echo "print -r" >&6; } ;; | |
4387 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4388 | $as_echo "cat" >&6; } ;; | |
4389 | esac | |
4390 | ||
4391 | ||
4392 | ||
4393 | ||
4394 | ||
4395 | ||
4396 | ||
4397 | ||
4398 | ||
4399 | ||
4400 | ||
4401 | ||
4402 | ||
4403 | ||
4404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
4405 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4406 | if ${ac_cv_path_SED+:} false; then : | |
4407 | $as_echo_n "(cached) " >&6 | |
4408 | else | |
4409 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4410 | for ac_i in 1 2 3 4 5 6 7; do | |
4411 | ac_script="$ac_script$as_nl$ac_script" | |
4412 | done | |
4413 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4414 | { ac_script=; unset ac_script;} | |
4415 | if test -z "$SED"; then | |
4416 | ac_path_SED_found=false | |
4417 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4419 | for as_dir in $PATH | |
4420 | do | |
4421 | IFS=$as_save_IFS | |
4422 | test -z "$as_dir" && as_dir=. | |
4423 | for ac_prog in sed gsed; do | |
4424 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4425 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4426 | as_fn_executable_p "$ac_path_SED" || continue | |
4427 | # Check for GNU ac_path_SED and select it if it is found. | |
4428 | # Check for GNU $ac_path_SED | |
4429 | case `"$ac_path_SED" --version 2>&1` in | |
4430 | *GNU*) | |
4431 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4432 | *) | |
4433 | ac_count=0 | |
4434 | $as_echo_n 0123456789 >"conftest.in" | |
4435 | while : | |
4436 | do | |
4437 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4438 | mv "conftest.tmp" "conftest.in" | |
4439 | cp "conftest.in" "conftest.nl" | |
4440 | $as_echo '' >> "conftest.nl" | |
4441 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4442 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4443 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4444 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4445 | # Best one so far, save it but keep looking for a better one | |
4446 | ac_cv_path_SED="$ac_path_SED" | |
4447 | ac_path_SED_max=$ac_count | |
4448 | fi | |
4449 | # 10*(2^10) chars as input seems more than enough | |
4450 | test $ac_count -gt 10 && break | |
4451 | done | |
4452 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4453 | esac | |
4454 | ||
4455 | $ac_path_SED_found && break 3 | |
4456 | done | |
4457 | done | |
4458 | done | |
4459 | IFS=$as_save_IFS | |
4460 | if test -z "$ac_cv_path_SED"; then | |
4461 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
4462 | fi | |
4463 | else | |
4464 | ac_cv_path_SED=$SED | |
4465 | fi | |
4466 | ||
4467 | fi | |
4468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4469 | $as_echo "$ac_cv_path_SED" >&6; } | |
4470 | SED="$ac_cv_path_SED" | |
4471 | rm -f conftest.sed | |
4472 | ||
4473 | test -z "$SED" && SED=sed | |
4474 | Xsed="$SED -e 1s/^X//" | |
4475 | ||
4476 | ||
4477 | ||
4478 | ||
4479 | ||
4480 | ||
4481 | ||
4482 | ||
4483 | ||
4484 | ||
4485 | ||
4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4487 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4488 | if ${ac_cv_path_GREP+:} false; then : | |
4489 | $as_echo_n "(cached) " >&6 | |
4490 | else | |
4491 | if test -z "$GREP"; then | |
4492 | ac_path_GREP_found=false | |
4493 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4495 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4496 | do | |
4497 | IFS=$as_save_IFS | |
4498 | test -z "$as_dir" && as_dir=. | |
4499 | for ac_prog in grep ggrep; do | |
4500 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4501 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4502 | as_fn_executable_p "$ac_path_GREP" || continue | |
4503 | # Check for GNU ac_path_GREP and select it if it is found. | |
4504 | # Check for GNU $ac_path_GREP | |
4505 | case `"$ac_path_GREP" --version 2>&1` in | |
4506 | *GNU*) | |
4507 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4508 | *) | |
4509 | ac_count=0 | |
4510 | $as_echo_n 0123456789 >"conftest.in" | |
4511 | while : | |
4512 | do | |
4513 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4514 | mv "conftest.tmp" "conftest.in" | |
4515 | cp "conftest.in" "conftest.nl" | |
4516 | $as_echo 'GREP' >> "conftest.nl" | |
4517 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4518 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4519 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4520 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4521 | # Best one so far, save it but keep looking for a better one | |
4522 | ac_cv_path_GREP="$ac_path_GREP" | |
4523 | ac_path_GREP_max=$ac_count | |
4524 | fi | |
4525 | # 10*(2^10) chars as input seems more than enough | |
4526 | test $ac_count -gt 10 && break | |
4527 | done | |
4528 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4529 | esac | |
4530 | ||
4531 | $ac_path_GREP_found && break 3 | |
4532 | done | |
4533 | done | |
4534 | done | |
4535 | IFS=$as_save_IFS | |
4536 | if test -z "$ac_cv_path_GREP"; then | |
4537 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4538 | fi | |
4539 | else | |
4540 | ac_cv_path_GREP=$GREP | |
4541 | fi | |
4542 | ||
4543 | fi | |
4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4545 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4546 | GREP="$ac_cv_path_GREP" | |
4547 | ||
4548 | ||
4549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4550 | $as_echo_n "checking for egrep... " >&6; } | |
4551 | if ${ac_cv_path_EGREP+:} false; then : | |
4552 | $as_echo_n "(cached) " >&6 | |
4553 | else | |
4554 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4555 | then ac_cv_path_EGREP="$GREP -E" | |
4556 | else | |
4557 | if test -z "$EGREP"; then | |
4558 | ac_path_EGREP_found=false | |
4559 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4561 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4562 | do | |
4563 | IFS=$as_save_IFS | |
4564 | test -z "$as_dir" && as_dir=. | |
4565 | for ac_prog in egrep; do | |
4566 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4567 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4568 | as_fn_executable_p "$ac_path_EGREP" || continue | |
4569 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4570 | # Check for GNU $ac_path_EGREP | |
4571 | case `"$ac_path_EGREP" --version 2>&1` in | |
4572 | *GNU*) | |
4573 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4574 | *) | |
4575 | ac_count=0 | |
4576 | $as_echo_n 0123456789 >"conftest.in" | |
4577 | while : | |
4578 | do | |
4579 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4580 | mv "conftest.tmp" "conftest.in" | |
4581 | cp "conftest.in" "conftest.nl" | |
4582 | $as_echo 'EGREP' >> "conftest.nl" | |
4583 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4584 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4585 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4586 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4587 | # Best one so far, save it but keep looking for a better one | |
4588 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4589 | ac_path_EGREP_max=$ac_count | |
4590 | fi | |
4591 | # 10*(2^10) chars as input seems more than enough | |
4592 | test $ac_count -gt 10 && break | |
4593 | done | |
4594 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4595 | esac | |
4596 | ||
4597 | $ac_path_EGREP_found && break 3 | |
4598 | done | |
4599 | done | |
4600 | done | |
4601 | IFS=$as_save_IFS | |
4602 | if test -z "$ac_cv_path_EGREP"; then | |
4603 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4604 | fi | |
4605 | else | |
4606 | ac_cv_path_EGREP=$EGREP | |
4607 | fi | |
4608 | ||
4609 | fi | |
4610 | fi | |
4611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4612 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4613 | EGREP="$ac_cv_path_EGREP" | |
4614 | ||
4615 | ||
4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
4617 | $as_echo_n "checking for fgrep... " >&6; } | |
4618 | if ${ac_cv_path_FGREP+:} false; then : | |
4619 | $as_echo_n "(cached) " >&6 | |
4620 | else | |
4621 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4622 | then ac_cv_path_FGREP="$GREP -F" | |
4623 | else | |
4624 | if test -z "$FGREP"; then | |
4625 | ac_path_FGREP_found=false | |
4626 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4628 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4629 | do | |
4630 | IFS=$as_save_IFS | |
4631 | test -z "$as_dir" && as_dir=. | |
4632 | for ac_prog in fgrep; do | |
4633 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4634 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4635 | as_fn_executable_p "$ac_path_FGREP" || continue | |
4636 | # Check for GNU ac_path_FGREP and select it if it is found. | |
4637 | # Check for GNU $ac_path_FGREP | |
4638 | case `"$ac_path_FGREP" --version 2>&1` in | |
4639 | *GNU*) | |
4640 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4641 | *) | |
4642 | ac_count=0 | |
4643 | $as_echo_n 0123456789 >"conftest.in" | |
4644 | while : | |
4645 | do | |
4646 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4647 | mv "conftest.tmp" "conftest.in" | |
4648 | cp "conftest.in" "conftest.nl" | |
4649 | $as_echo 'FGREP' >> "conftest.nl" | |
4650 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4651 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4652 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4653 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4654 | # Best one so far, save it but keep looking for a better one | |
4655 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4656 | ac_path_FGREP_max=$ac_count | |
4657 | fi | |
4658 | # 10*(2^10) chars as input seems more than enough | |
4659 | test $ac_count -gt 10 && break | |
4660 | done | |
4661 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4662 | esac | |
4663 | ||
4664 | $ac_path_FGREP_found && break 3 | |
4665 | done | |
4666 | done | |
4667 | done | |
4668 | IFS=$as_save_IFS | |
4669 | if test -z "$ac_cv_path_FGREP"; then | |
4670 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4671 | fi | |
4672 | else | |
4673 | ac_cv_path_FGREP=$FGREP | |
4674 | fi | |
4675 | ||
4676 | fi | |
4677 | fi | |
4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
4679 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4680 | FGREP="$ac_cv_path_FGREP" | |
4681 | ||
4682 | ||
4683 | test -z "$GREP" && GREP=grep | |
4684 | ||
4685 | ||
4686 | ||
4687 | ||
4688 | ||
4689 | ||
4690 | ||
4691 | ||
4692 | ||
4693 | ||
4694 | ||
4695 | ||
4696 | ||
4697 | ||
4698 | ||
4699 | ||
4700 | ||
4701 | ||
4702 | ||
4703 | # Check whether --with-gnu-ld was given. | |
4704 | if test "${with_gnu_ld+set}" = set; then : | |
3258f645 | 4705 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
904dbe44 CIK |
4706 | else |
4707 | with_gnu_ld=no | |
4708 | fi | |
4709 | ||
4710 | ac_prog=ld | |
3258f645 | 4711 | if test yes = "$GCC"; then |
904dbe44 CIK |
4712 | # Check if gcc -print-prog-name=ld gives a path. |
4713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
4714 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
4715 | case $host in | |
4716 | *-*-mingw*) | |
3258f645 | 4717 | # gcc leaves a trailing carriage return, which upsets mingw |
904dbe44 CIK |
4718 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4719 | *) | |
4720 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4721 | esac | |
4722 | case $ac_prog in | |
4723 | # Accept absolute paths. | |
4724 | [\\/]* | ?:[\\/]*) | |
4725 | re_direlt='/[^/][^/]*/\.\./' | |
4726 | # Canonicalize the pathname of ld | |
4727 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4728 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4729 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4730 | done | |
3258f645 | 4731 | test -z "$LD" && LD=$ac_prog |
904dbe44 CIK |
4732 | ;; |
4733 | "") | |
4734 | # If it fails, then pretend we aren't using GCC. | |
4735 | ac_prog=ld | |
4736 | ;; | |
4737 | *) | |
4738 | # If it is relative, then search for the first ld in PATH. | |
4739 | with_gnu_ld=unknown | |
4740 | ;; | |
4741 | esac | |
3258f645 | 4742 | elif test yes = "$with_gnu_ld"; then |
904dbe44 CIK |
4743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
4744 | $as_echo_n "checking for GNU ld... " >&6; } | |
4745 | else | |
4746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
4747 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
4748 | fi | |
4749 | if ${lt_cv_path_LD+:} false; then : | |
4750 | $as_echo_n "(cached) " >&6 | |
4751 | else | |
4752 | if test -z "$LD"; then | |
3258f645 | 4753 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
904dbe44 | 4754 | for ac_dir in $PATH; do |
3258f645 | 4755 | IFS=$lt_save_ifs |
904dbe44 CIK |
4756 | test -z "$ac_dir" && ac_dir=. |
4757 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3258f645 | 4758 | lt_cv_path_LD=$ac_dir/$ac_prog |
904dbe44 CIK |
4759 | # Check to see if the program is GNU ld. I'd rather use --version, |
4760 | # but apparently some variants of GNU ld only accept -v. | |
4761 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4762 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4763 | *GNU* | *'with BFD'*) | |
3258f645 | 4764 | test no != "$with_gnu_ld" && break |
904dbe44 CIK |
4765 | ;; |
4766 | *) | |
3258f645 | 4767 | test yes != "$with_gnu_ld" && break |
904dbe44 CIK |
4768 | ;; |
4769 | esac | |
4770 | fi | |
4771 | done | |
3258f645 | 4772 | IFS=$lt_save_ifs |
904dbe44 | 4773 | else |
3258f645 | 4774 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
904dbe44 CIK |
4775 | fi |
4776 | fi | |
4777 | ||
3258f645 | 4778 | LD=$lt_cv_path_LD |
904dbe44 CIK |
4779 | if test -n "$LD"; then |
4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
4781 | $as_echo "$LD" >&6; } | |
4782 | else | |
4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4784 | $as_echo "no" >&6; } | |
4785 | fi | |
4786 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
4787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
4788 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
4789 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
4790 | $as_echo_n "(cached) " >&6 | |
4791 | else | |
4792 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4793 | case `$LD -v 2>&1 </dev/null` in | |
4794 | *GNU* | *'with BFD'*) | |
4795 | lt_cv_prog_gnu_ld=yes | |
4796 | ;; | |
4797 | *) | |
4798 | lt_cv_prog_gnu_ld=no | |
4799 | ;; | |
4800 | esac | |
4801 | fi | |
4802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
4803 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
4804 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
4805 | ||
4806 | ||
4807 | ||
4808 | ||
4809 | ||
4810 | ||
4811 | ||
4812 | ||
4813 | ||
4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4815 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
4816 | if ${lt_cv_path_NM+:} false; then : | |
4817 | $as_echo_n "(cached) " >&6 | |
4818 | else | |
4819 | if test -n "$NM"; then | |
4820 | # Let the user override the test. | |
3258f645 | 4821 | lt_cv_path_NM=$NM |
904dbe44 | 4822 | else |
3258f645 | 4823 | lt_nm_to_check=${ac_tool_prefix}nm |
904dbe44 CIK |
4824 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4825 | lt_nm_to_check="$lt_nm_to_check nm" | |
4826 | fi | |
4827 | for lt_tmp_nm in $lt_nm_to_check; do | |
3258f645 | 4828 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
904dbe44 | 4829 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
3258f645 | 4830 | IFS=$lt_save_ifs |
904dbe44 | 4831 | test -z "$ac_dir" && ac_dir=. |
3258f645 TG |
4832 | tmp_nm=$ac_dir/$lt_tmp_nm |
4833 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
904dbe44 | 4834 | # Check to see if the nm accepts a BSD-compat flag. |
3258f645 | 4835 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
904dbe44 CIK |
4836 | # nm: unknown option "B" ignored |
4837 | # Tru64's nm complains that /dev/null is an invalid object file | |
3258f645 TG |
4838 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
4839 | case $build_os in | |
4840 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
4841 | *) lt_bad_file=/dev/null ;; | |
4842 | esac | |
4843 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
4844 | *$lt_bad_file* | *'Invalid file or object type'*) | |
904dbe44 | 4845 | lt_cv_path_NM="$tmp_nm -B" |
3258f645 | 4846 | break 2 |
904dbe44 CIK |
4847 | ;; |
4848 | *) | |
4849 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4850 | */dev/null*) | |
4851 | lt_cv_path_NM="$tmp_nm -p" | |
3258f645 | 4852 | break 2 |
904dbe44 CIK |
4853 | ;; |
4854 | *) | |
4855 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4856 | continue # so that we can try to find one that supports BSD flags | |
4857 | ;; | |
4858 | esac | |
4859 | ;; | |
4860 | esac | |
4861 | fi | |
4862 | done | |
3258f645 | 4863 | IFS=$lt_save_ifs |
904dbe44 CIK |
4864 | done |
4865 | : ${lt_cv_path_NM=no} | |
4866 | fi | |
4867 | fi | |
4868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
4869 | $as_echo "$lt_cv_path_NM" >&6; } | |
3258f645 TG |
4870 | if test no != "$lt_cv_path_NM"; then |
4871 | NM=$lt_cv_path_NM | |
904dbe44 CIK |
4872 | else |
4873 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4874 | if test -n "$DUMPBIN"; then : | |
4875 | # Let the user override the test. | |
4876 | else | |
4877 | if test -n "$ac_tool_prefix"; then | |
4878 | for ac_prog in dumpbin "link -dump" | |
4879 | do | |
4880 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4881 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4883 | $as_echo_n "checking for $ac_word... " >&6; } | |
4884 | if ${ac_cv_prog_DUMPBIN+:} false; then : | |
4885 | $as_echo_n "(cached) " >&6 | |
4886 | else | |
4887 | if test -n "$DUMPBIN"; then | |
4888 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4889 | else | |
4890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4891 | for as_dir in $PATH | |
4892 | do | |
4893 | IFS=$as_save_IFS | |
4894 | test -z "$as_dir" && as_dir=. | |
4895 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4896 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4897 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4899 | break 2 | |
4900 | fi | |
4901 | done | |
4902 | done | |
4903 | IFS=$as_save_IFS | |
4904 | ||
4905 | fi | |
4906 | fi | |
4907 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4908 | if test -n "$DUMPBIN"; then | |
4909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
4910 | $as_echo "$DUMPBIN" >&6; } | |
4911 | else | |
4912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4913 | $as_echo "no" >&6; } | |
4914 | fi | |
4915 | ||
4916 | ||
4917 | test -n "$DUMPBIN" && break | |
4918 | done | |
4919 | fi | |
4920 | if test -z "$DUMPBIN"; then | |
4921 | ac_ct_DUMPBIN=$DUMPBIN | |
4922 | for ac_prog in dumpbin "link -dump" | |
4923 | do | |
4924 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4925 | set dummy $ac_prog; ac_word=$2 | |
4926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4927 | $as_echo_n "checking for $ac_word... " >&6; } | |
4928 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
4929 | $as_echo_n "(cached) " >&6 | |
4930 | else | |
4931 | if test -n "$ac_ct_DUMPBIN"; then | |
4932 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4933 | else | |
4934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4935 | for as_dir in $PATH | |
4936 | do | |
4937 | IFS=$as_save_IFS | |
4938 | test -z "$as_dir" && as_dir=. | |
4939 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4940 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4941 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4942 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4943 | break 2 | |
4944 | fi | |
4945 | done | |
4946 | done | |
4947 | IFS=$as_save_IFS | |
4948 | ||
4949 | fi | |
4950 | fi | |
4951 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4952 | if test -n "$ac_ct_DUMPBIN"; then | |
4953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
4954 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
4955 | else | |
4956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4957 | $as_echo "no" >&6; } | |
4958 | fi | |
4959 | ||
4960 | ||
4961 | test -n "$ac_ct_DUMPBIN" && break | |
4962 | done | |
4963 | ||
4964 | if test "x$ac_ct_DUMPBIN" = x; then | |
4965 | DUMPBIN=":" | |
4966 | else | |
4967 | case $cross_compiling:$ac_tool_warned in | |
4968 | yes:) | |
4969 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4970 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4971 | ac_tool_warned=yes ;; | |
4972 | esac | |
4973 | DUMPBIN=$ac_ct_DUMPBIN | |
4974 | fi | |
4975 | fi | |
4976 | ||
3258f645 | 4977 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
904dbe44 | 4978 | *COFF*) |
3258f645 | 4979 | DUMPBIN="$DUMPBIN -symbols -headers" |
904dbe44 CIK |
4980 | ;; |
4981 | *) | |
4982 | DUMPBIN=: | |
4983 | ;; | |
4984 | esac | |
4985 | fi | |
4986 | ||
3258f645 TG |
4987 | if test : != "$DUMPBIN"; then |
4988 | NM=$DUMPBIN | |
904dbe44 CIK |
4989 | fi |
4990 | fi | |
4991 | test -z "$NM" && NM=nm | |
4992 | ||
4993 | ||
4994 | ||
4995 | ||
4996 | ||
4997 | ||
4998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
4999 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5000 | if ${lt_cv_nm_interface+:} false; then : | |
5001 | $as_echo_n "(cached) " >&6 | |
5002 | else | |
5003 | lt_cv_nm_interface="BSD nm" | |
5004 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5005 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5006 | (eval "$ac_compile" 2>conftest.err) | |
5007 | cat conftest.err >&5 | |
5008 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5009 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5010 | cat conftest.err >&5 | |
5011 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5012 | cat conftest.out >&5 | |
5013 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5014 | lt_cv_nm_interface="MS dumpbin" | |
5015 | fi | |
5016 | rm -f conftest* | |
5017 | fi | |
5018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
5019 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5020 | ||
5021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5022 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5023 | LN_S=$as_ln_s | |
5024 | if test "$LN_S" = "ln -s"; then | |
5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5026 | $as_echo "yes" >&6; } | |
5027 | else | |
5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5029 | $as_echo "no, using $LN_S" >&6; } | |
5030 | fi | |
5031 | ||
5032 | # find the maximum length of command line arguments | |
5033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5034 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5035 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
5036 | $as_echo_n "(cached) " >&6 | |
5037 | else | |
5038 | i=0 | |
3258f645 | 5039 | teststring=ABCD |
904dbe44 CIK |
5040 | |
5041 | case $build_os in | |
5042 | msdosdjgpp*) | |
5043 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5044 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5045 | # during glob expansion). Even if it were fixed, the result of this | |
5046 | # check would be larger than it should be. | |
5047 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5048 | ;; | |
5049 | ||
5050 | gnu*) | |
5051 | # Under GNU Hurd, this test is not required because there is | |
5052 | # no limit to the length of command line arguments. | |
5053 | # Libtool will interpret -1 as no limit whatsoever | |
5054 | lt_cv_sys_max_cmd_len=-1; | |
5055 | ;; | |
5056 | ||
5057 | cygwin* | mingw* | cegcc*) | |
5058 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5059 | # about 5 minutes as the teststring grows exponentially. | |
5060 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5061 | # you end up with a "frozen" computer, even though with patience | |
5062 | # the test eventually succeeds (with a max line length of 256k). | |
5063 | # Instead, let's just punt: use the minimum linelength reported by | |
5064 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5065 | lt_cv_sys_max_cmd_len=8192; | |
5066 | ;; | |
5067 | ||
5068 | mint*) | |
5069 | # On MiNT this can take a long time and run out of memory. | |
5070 | lt_cv_sys_max_cmd_len=8192; | |
5071 | ;; | |
5072 | ||
5073 | amigaos*) | |
5074 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5075 | # So we just punt and use a minimum line length of 8192. | |
5076 | lt_cv_sys_max_cmd_len=8192; | |
5077 | ;; | |
5078 | ||
3258f645 | 5079 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
904dbe44 CIK |
5080 | # This has been around since 386BSD, at least. Likely further. |
5081 | if test -x /sbin/sysctl; then | |
5082 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5083 | elif test -x /usr/sbin/sysctl; then | |
5084 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5085 | else | |
5086 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5087 | fi | |
5088 | # And add a safety zone | |
5089 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5090 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5091 | ;; | |
5092 | ||
5093 | interix*) | |
5094 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5095 | lt_cv_sys_max_cmd_len=196608 | |
5096 | ;; | |
5097 | ||
5098 | os2*) | |
5099 | # The test takes a long time on OS/2. | |
5100 | lt_cv_sys_max_cmd_len=8192 | |
5101 | ;; | |
5102 | ||
5103 | osf*) | |
5104 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5105 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5106 | # nice to cause kernel panics so lets avoid the loop below. | |
5107 | # First set a reasonable default. | |
5108 | lt_cv_sys_max_cmd_len=16384 | |
5109 | # | |
5110 | if test -x /sbin/sysconfig; then | |
5111 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5112 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5113 | esac | |
5114 | fi | |
5115 | ;; | |
5116 | sco3.2v5*) | |
5117 | lt_cv_sys_max_cmd_len=102400 | |
5118 | ;; | |
5119 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5120 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5121 | if test -n "$kargmax"; then | |
5122 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5123 | else | |
5124 | lt_cv_sys_max_cmd_len=32768 | |
5125 | fi | |
5126 | ;; | |
5127 | *) | |
5128 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5129 | if test -n "$lt_cv_sys_max_cmd_len" && \ | |
3258f645 | 5130 | test undefined != "$lt_cv_sys_max_cmd_len"; then |
904dbe44 CIK |
5131 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5132 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5133 | else | |
5134 | # Make teststring a little bigger before we do anything with it. | |
5135 | # a 1K string should be a reasonable start. | |
3258f645 | 5136 | for i in 1 2 3 4 5 6 7 8; do |
904dbe44 CIK |
5137 | teststring=$teststring$teststring |
5138 | done | |
5139 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5140 | # If test is not a shell built-in, we'll probably end up computing a | |
5141 | # maximum length that is only half of the actual maximum length, but | |
5142 | # we can't tell. | |
3258f645 | 5143 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
904dbe44 | 5144 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
3258f645 | 5145 | test 17 != "$i" # 1/2 MB should be enough |
904dbe44 CIK |
5146 | do |
5147 | i=`expr $i + 1` | |
5148 | teststring=$teststring$teststring | |
5149 | done | |
5150 | # Only check the string length outside the loop. | |
5151 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5152 | teststring= | |
5153 | # Add a significant safety factor because C++ compilers can tack on | |
5154 | # massive amounts of additional arguments before passing them to the | |
5155 | # linker. It appears as though 1/2 is a usable value. | |
5156 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5157 | fi | |
5158 | ;; | |
5159 | esac | |
5160 | ||
5161 | fi | |
5162 | ||
3258f645 | 5163 | if test -n "$lt_cv_sys_max_cmd_len"; then |
904dbe44 CIK |
5164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5165 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5166 | else | |
5167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
5168 | $as_echo "none" >&6; } | |
5169 | fi | |
5170 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
5171 | ||
5172 | ||
5173 | ||
5174 | ||
5175 | ||
5176 | ||
5177 | : ${CP="cp -f"} | |
5178 | : ${MV="mv -f"} | |
5179 | : ${RM="rm -f"} | |
5180 | ||
904dbe44 CIK |
5181 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5182 | lt_unset=unset | |
5183 | else | |
5184 | lt_unset=false | |
5185 | fi | |
5186 | ||
5187 | ||
5188 | ||
5189 | ||
5190 | ||
5191 | # test EBCDIC or ASCII | |
5192 | case `echo X|tr X '\101'` in | |
5193 | A) # ASCII based system | |
5194 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5195 | lt_SP2NL='tr \040 \012' | |
5196 | lt_NL2SP='tr \015\012 \040\040' | |
5197 | ;; | |
5198 | *) # EBCDIC based system | |
5199 | lt_SP2NL='tr \100 \n' | |
5200 | lt_NL2SP='tr \r\n \100\100' | |
5201 | ;; | |
5202 | esac | |
5203 | ||
5204 | ||
5205 | ||
5206 | ||
5207 | ||
5208 | ||
5209 | ||
5210 | ||
5211 | ||
5212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
5213 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
5214 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
5215 | $as_echo_n "(cached) " >&6 | |
5216 | else | |
5217 | case $host in | |
5218 | *-*-mingw* ) | |
5219 | case $build in | |
5220 | *-*-mingw* ) # actually msys | |
5221 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
5222 | ;; | |
5223 | *-*-cygwin* ) | |
5224 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
5225 | ;; | |
5226 | * ) # otherwise, assume *nix | |
5227 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
5228 | ;; | |
5229 | esac | |
5230 | ;; | |
5231 | *-*-cygwin* ) | |
5232 | case $build in | |
5233 | *-*-mingw* ) # actually msys | |
5234 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
5235 | ;; | |
5236 | *-*-cygwin* ) | |
5237 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5238 | ;; | |
5239 | * ) # otherwise, assume *nix | |
5240 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
5241 | ;; | |
5242 | esac | |
5243 | ;; | |
5244 | * ) # unhandled hosts (and "normal" native builds) | |
5245 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5246 | ;; | |
5247 | esac | |
5248 | ||
5249 | fi | |
5250 | ||
5251 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
5253 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
5254 | ||
5255 | ||
5256 | ||
5257 | ||
5258 | ||
5259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
5260 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
5261 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
5262 | $as_echo_n "(cached) " >&6 | |
5263 | else | |
5264 | #assume ordinary cross tools, or native build. | |
5265 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
5266 | case $host in | |
5267 | *-*-mingw* ) | |
5268 | case $build in | |
5269 | *-*-mingw* ) # actually msys | |
5270 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
5271 | ;; | |
5272 | esac | |
5273 | ;; | |
5274 | esac | |
5275 | ||
5276 | fi | |
5277 | ||
5278 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
5279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
5280 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
5281 | ||
5282 | ||
5283 | ||
5284 | ||
5285 | ||
5286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
5287 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5288 | if ${lt_cv_ld_reload_flag+:} false; then : | |
5289 | $as_echo_n "(cached) " >&6 | |
5290 | else | |
5291 | lt_cv_ld_reload_flag='-r' | |
5292 | fi | |
5293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
5294 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5295 | reload_flag=$lt_cv_ld_reload_flag | |
5296 | case $reload_flag in | |
5297 | "" | " "*) ;; | |
5298 | *) reload_flag=" $reload_flag" ;; | |
5299 | esac | |
5300 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5301 | case $host_os in | |
5302 | cygwin* | mingw* | pw32* | cegcc*) | |
3258f645 | 5303 | if test yes != "$GCC"; then |
904dbe44 CIK |
5304 | reload_cmds=false |
5305 | fi | |
5306 | ;; | |
5307 | darwin*) | |
3258f645 TG |
5308 | if test yes = "$GCC"; then |
5309 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
904dbe44 CIK |
5310 | else |
5311 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5312 | fi | |
5313 | ;; | |
5314 | esac | |
5315 | ||
5316 | ||
5317 | ||
5318 | ||
5319 | ||
5320 | ||
5321 | ||
5322 | ||
5323 | ||
5324 | if test -n "$ac_tool_prefix"; then | |
5325 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5326 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5328 | $as_echo_n "checking for $ac_word... " >&6; } | |
5329 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
5330 | $as_echo_n "(cached) " >&6 | |
5331 | else | |
5332 | if test -n "$OBJDUMP"; then | |
5333 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5334 | else | |
5335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5336 | for as_dir in $PATH | |
5337 | do | |
5338 | IFS=$as_save_IFS | |
5339 | test -z "$as_dir" && as_dir=. | |
5340 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5341 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5342 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5343 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5344 | break 2 | |
5345 | fi | |
5346 | done | |
5347 | done | |
5348 | IFS=$as_save_IFS | |
5349 | ||
5350 | fi | |
5351 | fi | |
5352 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5353 | if test -n "$OBJDUMP"; then | |
5354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
5355 | $as_echo "$OBJDUMP" >&6; } | |
5356 | else | |
5357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5358 | $as_echo "no" >&6; } | |
5359 | fi | |
5360 | ||
5361 | ||
5362 | fi | |
5363 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5364 | ac_ct_OBJDUMP=$OBJDUMP | |
5365 | # Extract the first word of "objdump", so it can be a program name with args. | |
5366 | set dummy objdump; ac_word=$2 | |
5367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5368 | $as_echo_n "checking for $ac_word... " >&6; } | |
5369 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
5370 | $as_echo_n "(cached) " >&6 | |
5371 | else | |
5372 | if test -n "$ac_ct_OBJDUMP"; then | |
5373 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5374 | else | |
5375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5376 | for as_dir in $PATH | |
5377 | do | |
5378 | IFS=$as_save_IFS | |
5379 | test -z "$as_dir" && as_dir=. | |
5380 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5381 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5382 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5384 | break 2 | |
5385 | fi | |
5386 | done | |
5387 | done | |
5388 | IFS=$as_save_IFS | |
5389 | ||
5390 | fi | |
5391 | fi | |
5392 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5393 | if test -n "$ac_ct_OBJDUMP"; then | |
5394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
5395 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5396 | else | |
5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5398 | $as_echo "no" >&6; } | |
5399 | fi | |
5400 | ||
5401 | if test "x$ac_ct_OBJDUMP" = x; then | |
5402 | OBJDUMP="false" | |
5403 | else | |
5404 | case $cross_compiling:$ac_tool_warned in | |
5405 | yes:) | |
5406 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5407 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5408 | ac_tool_warned=yes ;; | |
5409 | esac | |
5410 | OBJDUMP=$ac_ct_OBJDUMP | |
5411 | fi | |
5412 | else | |
5413 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5414 | fi | |
5415 | ||
5416 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5417 | ||
5418 | ||
5419 | ||
5420 | ||
5421 | ||
5422 | ||
5423 | ||
5424 | ||
5425 | ||
5426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
5427 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5428 | if ${lt_cv_deplibs_check_method+:} false; then : | |
5429 | $as_echo_n "(cached) " >&6 | |
5430 | else | |
5431 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5432 | lt_cv_file_magic_test_file= | |
5433 | lt_cv_deplibs_check_method='unknown' | |
5434 | # Need to set the preceding variable on all platforms that support | |
5435 | # interlibrary dependencies. | |
5436 | # 'none' -- dependencies not supported. | |
3258f645 | 5437 | # 'unknown' -- same as none, but documents that we really don't know. |
904dbe44 CIK |
5438 | # 'pass_all' -- all dependencies passed with no checks. |
5439 | # 'test_compile' -- check by making test program. | |
5440 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
3258f645 TG |
5441 | # that responds to the $file_magic_cmd with a given extended regex. |
5442 | # If you have 'file' or equivalent on your system and you're not sure | |
5443 | # whether 'pass_all' will *always* work, you probably want this one. | |
904dbe44 CIK |
5444 | |
5445 | case $host_os in | |
5446 | aix[4-9]*) | |
5447 | lt_cv_deplibs_check_method=pass_all | |
5448 | ;; | |
5449 | ||
5450 | beos*) | |
5451 | lt_cv_deplibs_check_method=pass_all | |
5452 | ;; | |
5453 | ||
5454 | bsdi[45]*) | |
5455 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5456 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5457 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5458 | ;; | |
5459 | ||
5460 | cygwin*) | |
5461 | # func_win32_libid is a shell function defined in ltmain.sh | |
5462 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5463 | lt_cv_file_magic_cmd='func_win32_libid' | |
5464 | ;; | |
5465 | ||
5466 | mingw* | pw32*) | |
5467 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5468 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5469 | # unless we find 'file', for example because we are cross-compiling. | |
3258f645 | 5470 | if ( file / ) >/dev/null 2>&1; then |
904dbe44 CIK |
5471 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5472 | lt_cv_file_magic_cmd='func_win32_libid' | |
5473 | else | |
5474 | # Keep this pattern in sync with the one in func_win32_libid. | |
5475 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
5476 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5477 | fi | |
5478 | ;; | |
5479 | ||
5480 | cegcc*) | |
5481 | # use the weaker test based on 'objdump'. See mingw*. | |
5482 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5483 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5484 | ;; | |
5485 | ||
5486 | darwin* | rhapsody*) | |
5487 | lt_cv_deplibs_check_method=pass_all | |
5488 | ;; | |
5489 | ||
5490 | freebsd* | dragonfly*) | |
5491 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5492 | case $host_cpu in | |
5493 | i*86 ) | |
5494 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5495 | # Let's accept both of them until this is cleared up. | |
5496 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5497 | lt_cv_file_magic_cmd=/usr/bin/file | |
5498 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5499 | ;; | |
5500 | esac | |
5501 | else | |
5502 | lt_cv_deplibs_check_method=pass_all | |
5503 | fi | |
5504 | ;; | |
5505 | ||
5506 | haiku*) | |
5507 | lt_cv_deplibs_check_method=pass_all | |
5508 | ;; | |
5509 | ||
5510 | hpux10.20* | hpux11*) | |
5511 | lt_cv_file_magic_cmd=/usr/bin/file | |
5512 | case $host_cpu in | |
5513 | ia64*) | |
5514 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5515 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5516 | ;; | |
5517 | hppa*64*) | |
5518 | 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]' | |
5519 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5520 | ;; | |
5521 | *) | |
5522 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
5523 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5524 | ;; | |
5525 | esac | |
5526 | ;; | |
5527 | ||
5528 | interix[3-9]*) | |
5529 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5530 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5531 | ;; | |
5532 | ||
5533 | irix5* | irix6* | nonstopux*) | |
5534 | case $LD in | |
5535 | *-32|*"-32 ") libmagic=32-bit;; | |
5536 | *-n32|*"-n32 ") libmagic=N32;; | |
5537 | *-64|*"-64 ") libmagic=64-bit;; | |
5538 | *) libmagic=never-match;; | |
5539 | esac | |
5540 | lt_cv_deplibs_check_method=pass_all | |
5541 | ;; | |
5542 | ||
5543 | # This must be glibc/ELF. | |
5544 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
5545 | lt_cv_deplibs_check_method=pass_all | |
5546 | ;; | |
5547 | ||
5548 | netbsd* | netbsdelf*-gnu) | |
5549 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5550 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5551 | else | |
5552 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5553 | fi | |
5554 | ;; | |
5555 | ||
5556 | newos6*) | |
5557 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5558 | lt_cv_file_magic_cmd=/usr/bin/file | |
5559 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5560 | ;; | |
5561 | ||
5562 | *nto* | *qnx*) | |
5563 | lt_cv_deplibs_check_method=pass_all | |
5564 | ;; | |
5565 | ||
3258f645 TG |
5566 | openbsd* | bitrig*) |
5567 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
904dbe44 CIK |
5568 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
5569 | else | |
5570 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5571 | fi | |
5572 | ;; | |
5573 | ||
5574 | osf3* | osf4* | osf5*) | |
5575 | lt_cv_deplibs_check_method=pass_all | |
5576 | ;; | |
5577 | ||
5578 | rdos*) | |
5579 | lt_cv_deplibs_check_method=pass_all | |
5580 | ;; | |
5581 | ||
5582 | solaris*) | |
5583 | lt_cv_deplibs_check_method=pass_all | |
5584 | ;; | |
5585 | ||
5586 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5587 | lt_cv_deplibs_check_method=pass_all | |
5588 | ;; | |
5589 | ||
5590 | sysv4 | sysv4.3*) | |
5591 | case $host_vendor in | |
5592 | motorola) | |
5593 | 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]' | |
5594 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5595 | ;; | |
5596 | ncr) | |
5597 | lt_cv_deplibs_check_method=pass_all | |
5598 | ;; | |
5599 | sequent) | |
5600 | lt_cv_file_magic_cmd='/bin/file' | |
5601 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5602 | ;; | |
5603 | sni) | |
5604 | lt_cv_file_magic_cmd='/bin/file' | |
5605 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5606 | lt_cv_file_magic_test_file=/lib/libc.so | |
5607 | ;; | |
5608 | siemens) | |
5609 | lt_cv_deplibs_check_method=pass_all | |
5610 | ;; | |
5611 | pc) | |
5612 | lt_cv_deplibs_check_method=pass_all | |
5613 | ;; | |
5614 | esac | |
5615 | ;; | |
5616 | ||
5617 | tpf*) | |
5618 | lt_cv_deplibs_check_method=pass_all | |
5619 | ;; | |
3258f645 TG |
5620 | os2*) |
5621 | lt_cv_deplibs_check_method=pass_all | |
5622 | ;; | |
904dbe44 CIK |
5623 | esac |
5624 | ||
5625 | fi | |
5626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
5627 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5628 | ||
5629 | file_magic_glob= | |
5630 | want_nocaseglob=no | |
5631 | if test "$build" = "$host"; then | |
5632 | case $host_os in | |
5633 | mingw* | pw32*) | |
5634 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5635 | want_nocaseglob=yes | |
5636 | else | |
5637 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5638 | fi | |
5639 | ;; | |
5640 | esac | |
5641 | fi | |
5642 | ||
5643 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5644 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5645 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5646 | ||
5647 | ||
5648 | ||
5649 | ||
5650 | ||
5651 | ||
5652 | ||
5653 | ||
5654 | ||
5655 | ||
5656 | ||
5657 | ||
5658 | ||
5659 | ||
5660 | ||
5661 | ||
5662 | ||
5663 | ||
5664 | ||
5665 | ||
5666 | ||
5667 | ||
5668 | if test -n "$ac_tool_prefix"; then | |
5669 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5670 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5672 | $as_echo_n "checking for $ac_word... " >&6; } | |
5673 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5674 | $as_echo_n "(cached) " >&6 | |
5675 | else | |
5676 | if test -n "$DLLTOOL"; then | |
5677 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5678 | else | |
5679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5680 | for as_dir in $PATH | |
5681 | do | |
5682 | IFS=$as_save_IFS | |
5683 | test -z "$as_dir" && as_dir=. | |
5684 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5685 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5686 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5688 | break 2 | |
5689 | fi | |
5690 | done | |
5691 | done | |
5692 | IFS=$as_save_IFS | |
5693 | ||
5694 | fi | |
5695 | fi | |
5696 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
5697 | if test -n "$DLLTOOL"; then | |
5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5699 | $as_echo "$DLLTOOL" >&6; } | |
5700 | else | |
5701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5702 | $as_echo "no" >&6; } | |
5703 | fi | |
5704 | ||
5705 | ||
5706 | fi | |
5707 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
5708 | ac_ct_DLLTOOL=$DLLTOOL | |
5709 | # Extract the first word of "dlltool", so it can be a program name with args. | |
5710 | set dummy dlltool; ac_word=$2 | |
5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5712 | $as_echo_n "checking for $ac_word... " >&6; } | |
5713 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
5714 | $as_echo_n "(cached) " >&6 | |
5715 | else | |
5716 | if test -n "$ac_ct_DLLTOOL"; then | |
5717 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5718 | else | |
5719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5720 | for as_dir in $PATH | |
5721 | do | |
5722 | IFS=$as_save_IFS | |
5723 | test -z "$as_dir" && as_dir=. | |
5724 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5725 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5726 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5728 | break 2 | |
5729 | fi | |
5730 | done | |
5731 | done | |
5732 | IFS=$as_save_IFS | |
5733 | ||
5734 | fi | |
5735 | fi | |
5736 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5737 | if test -n "$ac_ct_DLLTOOL"; then | |
5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5739 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5740 | else | |
5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5742 | $as_echo "no" >&6; } | |
5743 | fi | |
5744 | ||
5745 | if test "x$ac_ct_DLLTOOL" = x; then | |
5746 | DLLTOOL="false" | |
5747 | else | |
5748 | case $cross_compiling:$ac_tool_warned in | |
5749 | yes:) | |
5750 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5751 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5752 | ac_tool_warned=yes ;; | |
5753 | esac | |
5754 | DLLTOOL=$ac_ct_DLLTOOL | |
5755 | fi | |
5756 | else | |
5757 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5758 | fi | |
5759 | ||
5760 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5761 | ||
5762 | ||
5763 | ||
5764 | ||
5765 | ||
5766 | ||
5767 | ||
5768 | ||
5769 | ||
5770 | ||
5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
5772 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5773 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5774 | $as_echo_n "(cached) " >&6 | |
5775 | else | |
5776 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5777 | ||
5778 | case $host_os in | |
5779 | cygwin* | mingw* | pw32* | cegcc*) | |
3258f645 TG |
5780 | # two different shell functions defined in ltmain.sh; |
5781 | # decide which one to use based on capabilities of $DLLTOOL | |
904dbe44 CIK |
5782 | case `$DLLTOOL --help 2>&1` in |
5783 | *--identify-strict*) | |
5784 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
5785 | ;; | |
5786 | *) | |
5787 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
5788 | ;; | |
5789 | esac | |
5790 | ;; | |
5791 | *) | |
5792 | # fallback: assume linklib IS sharedlib | |
3258f645 | 5793 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
904dbe44 CIK |
5794 | ;; |
5795 | esac | |
5796 | ||
5797 | fi | |
5798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
5799 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5800 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5801 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
5802 | ||
5803 | ||
5804 | ||
5805 | ||
5806 | ||
5807 | ||
5808 | ||
5809 | ||
5810 | if test -n "$ac_tool_prefix"; then | |
5811 | for ac_prog in ar | |
5812 | do | |
5813 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5814 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5816 | $as_echo_n "checking for $ac_word... " >&6; } | |
5817 | if ${ac_cv_prog_AR+:} false; then : | |
5818 | $as_echo_n "(cached) " >&6 | |
5819 | else | |
5820 | if test -n "$AR"; then | |
5821 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5822 | else | |
5823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5824 | for as_dir in $PATH | |
5825 | do | |
5826 | IFS=$as_save_IFS | |
5827 | test -z "$as_dir" && as_dir=. | |
5828 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5829 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5830 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5832 | break 2 | |
5833 | fi | |
5834 | done | |
5835 | done | |
5836 | IFS=$as_save_IFS | |
5837 | ||
5838 | fi | |
5839 | fi | |
5840 | AR=$ac_cv_prog_AR | |
5841 | if test -n "$AR"; then | |
5842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5843 | $as_echo "$AR" >&6; } | |
5844 | else | |
5845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5846 | $as_echo "no" >&6; } | |
5847 | fi | |
5848 | ||
5849 | ||
5850 | test -n "$AR" && break | |
5851 | done | |
5852 | fi | |
5853 | if test -z "$AR"; then | |
5854 | ac_ct_AR=$AR | |
5855 | for ac_prog in ar | |
5856 | do | |
5857 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5858 | set dummy $ac_prog; ac_word=$2 | |
5859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5860 | $as_echo_n "checking for $ac_word... " >&6; } | |
5861 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
5862 | $as_echo_n "(cached) " >&6 | |
5863 | else | |
5864 | if test -n "$ac_ct_AR"; then | |
5865 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5866 | else | |
5867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5868 | for as_dir in $PATH | |
5869 | do | |
5870 | IFS=$as_save_IFS | |
5871 | test -z "$as_dir" && as_dir=. | |
5872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5873 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5874 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5876 | break 2 | |
5877 | fi | |
5878 | done | |
5879 | done | |
5880 | IFS=$as_save_IFS | |
5881 | ||
5882 | fi | |
5883 | fi | |
5884 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5885 | if test -n "$ac_ct_AR"; then | |
5886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5887 | $as_echo "$ac_ct_AR" >&6; } | |
5888 | else | |
5889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5890 | $as_echo "no" >&6; } | |
5891 | fi | |
5892 | ||
5893 | ||
5894 | test -n "$ac_ct_AR" && break | |
5895 | done | |
5896 | ||
5897 | if test "x$ac_ct_AR" = x; then | |
5898 | AR="false" | |
5899 | else | |
5900 | case $cross_compiling:$ac_tool_warned in | |
5901 | yes:) | |
5902 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5903 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5904 | ac_tool_warned=yes ;; | |
5905 | esac | |
5906 | AR=$ac_ct_AR | |
5907 | fi | |
5908 | fi | |
5909 | ||
5910 | : ${AR=ar} | |
5911 | : ${AR_FLAGS=cru} | |
5912 | ||
5913 | ||
5914 | ||
5915 | ||
5916 | ||
5917 | ||
5918 | ||
5919 | ||
5920 | ||
5921 | ||
5922 | ||
5923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
5924 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
5925 | if ${lt_cv_ar_at_file+:} false; then : | |
5926 | $as_echo_n "(cached) " >&6 | |
5927 | else | |
5928 | lt_cv_ar_at_file=no | |
5929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5930 | /* end confdefs.h. */ | |
5931 | ||
5932 | int | |
5933 | main () | |
5934 | { | |
5935 | ||
5936 | ; | |
5937 | return 0; | |
5938 | } | |
5939 | _ACEOF | |
5940 | if ac_fn_c_try_compile "$LINENO"; then : | |
5941 | echo conftest.$ac_objext > conftest.lst | |
5942 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
5943 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5944 | (eval $lt_ar_try) 2>&5 | |
5945 | ac_status=$? | |
5946 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5947 | test $ac_status = 0; } | |
3258f645 | 5948 | if test 0 -eq "$ac_status"; then |
904dbe44 CIK |
5949 | # Ensure the archiver fails upon bogus file names. |
5950 | rm -f conftest.$ac_objext libconftest.a | |
5951 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5952 | (eval $lt_ar_try) 2>&5 | |
5953 | ac_status=$? | |
5954 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5955 | test $ac_status = 0; } | |
3258f645 | 5956 | if test 0 -ne "$ac_status"; then |
904dbe44 CIK |
5957 | lt_cv_ar_at_file=@ |
5958 | fi | |
5959 | fi | |
5960 | rm -f conftest.* libconftest.a | |
5961 | ||
5962 | fi | |
5963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5964 | ||
5965 | fi | |
5966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
5967 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
5968 | ||
3258f645 | 5969 | if test no = "$lt_cv_ar_at_file"; then |
904dbe44 CIK |
5970 | archiver_list_spec= |
5971 | else | |
5972 | archiver_list_spec=$lt_cv_ar_at_file | |
5973 | fi | |
5974 | ||
5975 | ||
5976 | ||
5977 | ||
5978 | ||
5979 | ||
5980 | ||
5981 | if test -n "$ac_tool_prefix"; then | |
5982 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5983 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5985 | $as_echo_n "checking for $ac_word... " >&6; } | |
5986 | if ${ac_cv_prog_STRIP+:} false; then : | |
5987 | $as_echo_n "(cached) " >&6 | |
5988 | else | |
5989 | if test -n "$STRIP"; then | |
5990 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5991 | else | |
5992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5993 | for as_dir in $PATH | |
5994 | do | |
5995 | IFS=$as_save_IFS | |
5996 | test -z "$as_dir" && as_dir=. | |
5997 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5998 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5999 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6001 | break 2 | |
6002 | fi | |
6003 | done | |
6004 | done | |
6005 | IFS=$as_save_IFS | |
6006 | ||
6007 | fi | |
6008 | fi | |
6009 | STRIP=$ac_cv_prog_STRIP | |
6010 | if test -n "$STRIP"; then | |
6011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6012 | $as_echo "$STRIP" >&6; } | |
6013 | else | |
6014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6015 | $as_echo "no" >&6; } | |
6016 | fi | |
6017 | ||
6018 | ||
6019 | fi | |
6020 | if test -z "$ac_cv_prog_STRIP"; then | |
6021 | ac_ct_STRIP=$STRIP | |
6022 | # Extract the first word of "strip", so it can be a program name with args. | |
6023 | set dummy strip; ac_word=$2 | |
6024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6025 | $as_echo_n "checking for $ac_word... " >&6; } | |
6026 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
6027 | $as_echo_n "(cached) " >&6 | |
6028 | else | |
6029 | if test -n "$ac_ct_STRIP"; then | |
6030 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6031 | else | |
6032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6033 | for as_dir in $PATH | |
6034 | do | |
6035 | IFS=$as_save_IFS | |
6036 | test -z "$as_dir" && as_dir=. | |
6037 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6038 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6039 | ac_cv_prog_ac_ct_STRIP="strip" | |
6040 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6041 | break 2 | |
6042 | fi | |
6043 | done | |
6044 | done | |
6045 | IFS=$as_save_IFS | |
6046 | ||
6047 | fi | |
6048 | fi | |
6049 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6050 | if test -n "$ac_ct_STRIP"; then | |
6051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6052 | $as_echo "$ac_ct_STRIP" >&6; } | |
6053 | else | |
6054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6055 | $as_echo "no" >&6; } | |
6056 | fi | |
6057 | ||
6058 | if test "x$ac_ct_STRIP" = x; then | |
6059 | STRIP=":" | |
6060 | else | |
6061 | case $cross_compiling:$ac_tool_warned in | |
6062 | yes:) | |
6063 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6064 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6065 | ac_tool_warned=yes ;; | |
6066 | esac | |
6067 | STRIP=$ac_ct_STRIP | |
6068 | fi | |
6069 | else | |
6070 | STRIP="$ac_cv_prog_STRIP" | |
6071 | fi | |
6072 | ||
6073 | test -z "$STRIP" && STRIP=: | |
6074 | ||
6075 | ||
6076 | ||
6077 | ||
6078 | ||
6079 | ||
6080 | if test -n "$ac_tool_prefix"; then | |
6081 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6082 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6084 | $as_echo_n "checking for $ac_word... " >&6; } | |
6085 | if ${ac_cv_prog_RANLIB+:} false; then : | |
6086 | $as_echo_n "(cached) " >&6 | |
6087 | else | |
6088 | if test -n "$RANLIB"; then | |
6089 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6090 | else | |
6091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6092 | for as_dir in $PATH | |
6093 | do | |
6094 | IFS=$as_save_IFS | |
6095 | test -z "$as_dir" && as_dir=. | |
6096 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6097 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6098 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6100 | break 2 | |
6101 | fi | |
6102 | done | |
6103 | done | |
6104 | IFS=$as_save_IFS | |
6105 | ||
6106 | fi | |
6107 | fi | |
6108 | RANLIB=$ac_cv_prog_RANLIB | |
6109 | if test -n "$RANLIB"; then | |
6110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6111 | $as_echo "$RANLIB" >&6; } | |
6112 | else | |
6113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6114 | $as_echo "no" >&6; } | |
6115 | fi | |
6116 | ||
6117 | ||
6118 | fi | |
6119 | if test -z "$ac_cv_prog_RANLIB"; then | |
6120 | ac_ct_RANLIB=$RANLIB | |
6121 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6122 | set dummy ranlib; ac_word=$2 | |
6123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6124 | $as_echo_n "checking for $ac_word... " >&6; } | |
6125 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
6126 | $as_echo_n "(cached) " >&6 | |
6127 | else | |
6128 | if test -n "$ac_ct_RANLIB"; then | |
6129 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6130 | else | |
6131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6132 | for as_dir in $PATH | |
6133 | do | |
6134 | IFS=$as_save_IFS | |
6135 | test -z "$as_dir" && as_dir=. | |
6136 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6137 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6138 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6140 | break 2 | |
6141 | fi | |
6142 | done | |
6143 | done | |
6144 | IFS=$as_save_IFS | |
6145 | ||
6146 | fi | |
6147 | fi | |
6148 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6149 | if test -n "$ac_ct_RANLIB"; then | |
6150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6151 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6152 | else | |
6153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6154 | $as_echo "no" >&6; } | |
6155 | fi | |
6156 | ||
6157 | if test "x$ac_ct_RANLIB" = x; then | |
6158 | RANLIB=":" | |
6159 | else | |
6160 | case $cross_compiling:$ac_tool_warned in | |
6161 | yes:) | |
6162 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6163 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6164 | ac_tool_warned=yes ;; | |
6165 | esac | |
6166 | RANLIB=$ac_ct_RANLIB | |
6167 | fi | |
6168 | else | |
6169 | RANLIB="$ac_cv_prog_RANLIB" | |
6170 | fi | |
6171 | ||
6172 | test -z "$RANLIB" && RANLIB=: | |
6173 | ||
6174 | ||
6175 | ||
6176 | ||
6177 | ||
6178 | ||
6179 | # Determine commands to create old-style static archives. | |
6180 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6181 | old_postinstall_cmds='chmod 644 $oldlib' | |
6182 | old_postuninstall_cmds= | |
6183 | ||
6184 | if test -n "$RANLIB"; then | |
6185 | case $host_os in | |
3258f645 | 6186 | bitrig* | openbsd*) |
904dbe44 CIK |
6187 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
6188 | ;; | |
6189 | *) | |
6190 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
6191 | ;; | |
6192 | esac | |
6193 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
6194 | fi | |
6195 | ||
6196 | case $host_os in | |
6197 | darwin*) | |
6198 | lock_old_archive_extraction=yes ;; | |
6199 | *) | |
6200 | lock_old_archive_extraction=no ;; | |
6201 | esac | |
6202 | ||
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 | # If no C compiler was specified, use CC. | |
6242 | LTCC=${LTCC-"$CC"} | |
6243 | ||
6244 | # If no C compiler flags were specified, use CFLAGS. | |
6245 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6246 | ||
6247 | # Allow CC to be a program name with arguments. | |
6248 | compiler=$CC | |
6249 | ||
6250 | ||
6251 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
6253 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6254 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
6255 | $as_echo_n "(cached) " >&6 | |
6256 | else | |
6257 | ||
6258 | # These are sane defaults that work on at least a few old systems. | |
6259 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6260 | ||
6261 | # Character class describing NM global symbol codes. | |
6262 | symcode='[BCDEGRST]' | |
6263 | ||
6264 | # Regexp to match symbols that can be accessed directly from C. | |
6265 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6266 | ||
6267 | # Define system-specific variables. | |
6268 | case $host_os in | |
6269 | aix*) | |
6270 | symcode='[BCDT]' | |
6271 | ;; | |
6272 | cygwin* | mingw* | pw32* | cegcc*) | |
6273 | symcode='[ABCDGISTW]' | |
6274 | ;; | |
6275 | hpux*) | |
3258f645 | 6276 | if test ia64 = "$host_cpu"; then |
904dbe44 CIK |
6277 | symcode='[ABCDEGRST]' |
6278 | fi | |
6279 | ;; | |
6280 | irix* | nonstopux*) | |
6281 | symcode='[BCDEGRST]' | |
6282 | ;; | |
6283 | osf*) | |
6284 | symcode='[BCDEGQRST]' | |
6285 | ;; | |
6286 | solaris*) | |
6287 | symcode='[BDRT]' | |
6288 | ;; | |
6289 | sco3.2v5*) | |
6290 | symcode='[DT]' | |
6291 | ;; | |
6292 | sysv4.2uw2*) | |
6293 | symcode='[DT]' | |
6294 | ;; | |
6295 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6296 | symcode='[ABDT]' | |
6297 | ;; | |
6298 | sysv4) | |
6299 | symcode='[DFNSTU]' | |
6300 | ;; | |
6301 | esac | |
6302 | ||
6303 | # If we're using GNU nm, then use its standard symbol codes. | |
6304 | case `$NM -V 2>&1` in | |
6305 | *GNU* | *'with BFD'*) | |
6306 | symcode='[ABCDGIRSTW]' ;; | |
6307 | esac | |
6308 | ||
3258f645 TG |
6309 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6310 | # Gets list of data symbols to import. | |
6311 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
6312 | # Adjust the below global symbol transforms to fixup imported variables. | |
6313 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
6314 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
6315 | lt_c_name_lib_hook="\ | |
6316 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
6317 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
6318 | else | |
6319 | # Disable hooks by default. | |
6320 | lt_cv_sys_global_symbol_to_import= | |
6321 | lt_cdecl_hook= | |
6322 | lt_c_name_hook= | |
6323 | lt_c_name_lib_hook= | |
6324 | fi | |
6325 | ||
904dbe44 CIK |
6326 | # Transform an extracted symbol line into a proper C declaration. |
6327 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6328 | # so use this general approach. | |
3258f645 TG |
6329 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
6330 | $lt_cdecl_hook\ | |
6331 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
6332 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
904dbe44 CIK |
6333 | |
6334 | # Transform an extracted symbol line into symbol name and symbol address | |
3258f645 TG |
6335 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
6336 | $lt_c_name_hook\ | |
6337 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6338 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
6339 | ||
6340 | # Transform an extracted symbol line into symbol name with lib prefix and | |
6341 | # symbol address. | |
6342 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
6343 | $lt_c_name_lib_hook\ | |
6344 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6345 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
6346 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
904dbe44 CIK |
6347 | |
6348 | # Handle CRLF in mingw tool chain | |
6349 | opt_cr= | |
6350 | case $build_os in | |
6351 | mingw*) | |
6352 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6353 | ;; | |
6354 | esac | |
6355 | ||
6356 | # Try without a prefix underscore, then with it. | |
6357 | for ac_symprfx in "" "_"; do | |
6358 | ||
6359 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6360 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6361 | ||
6362 | # Write the raw and C identifiers. | |
6363 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
3258f645 TG |
6364 | # Fake it for dumpbin and say T for any non-static function, |
6365 | # D for any global variable and I for any imported variable. | |
904dbe44 CIK |
6366 | # Also find C++ and __fastcall symbols from MSVC++, |
6367 | # which start with @ or ?. | |
6368 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6369 | " {last_section=section; section=\$ 3};"\ | |
6370 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
6371 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
3258f645 TG |
6372 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
6373 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
6374 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
904dbe44 CIK |
6375 | " \$ 0!~/External *\|/{next};"\ |
6376 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6377 | " {if(hide[section]) next};"\ | |
3258f645 TG |
6378 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
6379 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
6380 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
6381 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
904dbe44 CIK |
6382 | " ' prfx=^$ac_symprfx" |
6383 | else | |
6384 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6385 | fi | |
6386 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
6387 | ||
6388 | # Check to see that the pipe works correctly. | |
6389 | pipe_works=no | |
6390 | ||
6391 | rm -f conftest* | |
6392 | cat > conftest.$ac_ext <<_LT_EOF | |
6393 | #ifdef __cplusplus | |
6394 | extern "C" { | |
6395 | #endif | |
6396 | char nm_test_var; | |
6397 | void nm_test_func(void); | |
6398 | void nm_test_func(void){} | |
6399 | #ifdef __cplusplus | |
6400 | } | |
6401 | #endif | |
6402 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6403 | _LT_EOF | |
6404 | ||
6405 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6406 | (eval $ac_compile) 2>&5 | |
6407 | ac_status=$? | |
6408 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6409 | test $ac_status = 0; }; then | |
6410 | # Now try to grab the symbols. | |
6411 | nlist=conftest.nm | |
6412 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
6413 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
6414 | ac_status=$? | |
6415 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6416 | test $ac_status = 0; } && test -s "$nlist"; then | |
6417 | # Try sorting and uniquifying the output. | |
6418 | if sort "$nlist" | uniq > "$nlist"T; then | |
6419 | mv -f "$nlist"T "$nlist" | |
6420 | else | |
6421 | rm -f "$nlist"T | |
6422 | fi | |
6423 | ||
6424 | # Make sure that we snagged all the symbols we need. | |
6425 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6426 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6427 | cat <<_LT_EOF > conftest.$ac_ext | |
6428 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
3258f645 TG |
6429 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
6430 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
904dbe44 CIK |
6431 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
6432 | # define LT_DLSYM_CONST | |
3258f645 | 6433 | #elif defined __osf__ |
904dbe44 CIK |
6434 | /* This system does not cope well with relocations in const data. */ |
6435 | # define LT_DLSYM_CONST | |
6436 | #else | |
6437 | # define LT_DLSYM_CONST const | |
6438 | #endif | |
6439 | ||
6440 | #ifdef __cplusplus | |
6441 | extern "C" { | |
6442 | #endif | |
6443 | ||
6444 | _LT_EOF | |
6445 | # Now generate the symbol file. | |
6446 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6447 | ||
6448 | cat <<_LT_EOF >> conftest.$ac_ext | |
6449 | ||
6450 | /* The mapping between symbol names and symbols. */ | |
6451 | LT_DLSYM_CONST struct { | |
6452 | const char *name; | |
6453 | void *address; | |
6454 | } | |
6455 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6456 | { | |
6457 | { "@PROGRAM@", (void *) 0 }, | |
6458 | _LT_EOF | |
3258f645 | 6459 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
904dbe44 CIK |
6460 | cat <<\_LT_EOF >> conftest.$ac_ext |
6461 | {0, (void *) 0} | |
6462 | }; | |
6463 | ||
6464 | /* This works around a problem in FreeBSD linker */ | |
6465 | #ifdef FREEBSD_WORKAROUND | |
6466 | static const void *lt_preloaded_setup() { | |
6467 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6468 | } | |
6469 | #endif | |
6470 | ||
6471 | #ifdef __cplusplus | |
6472 | } | |
6473 | #endif | |
6474 | _LT_EOF | |
6475 | # Now try linking the two files. | |
6476 | mv conftest.$ac_objext conftstm.$ac_objext | |
6477 | lt_globsym_save_LIBS=$LIBS | |
6478 | lt_globsym_save_CFLAGS=$CFLAGS | |
3258f645 | 6479 | LIBS=conftstm.$ac_objext |
904dbe44 CIK |
6480 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6481 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
6482 | (eval $ac_link) 2>&5 | |
6483 | ac_status=$? | |
6484 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3258f645 | 6485 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
904dbe44 CIK |
6486 | pipe_works=yes |
6487 | fi | |
6488 | LIBS=$lt_globsym_save_LIBS | |
6489 | CFLAGS=$lt_globsym_save_CFLAGS | |
6490 | else | |
6491 | echo "cannot find nm_test_func in $nlist" >&5 | |
6492 | fi | |
6493 | else | |
6494 | echo "cannot find nm_test_var in $nlist" >&5 | |
6495 | fi | |
6496 | else | |
6497 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6498 | fi | |
6499 | else | |
6500 | echo "$progname: failed program was:" >&5 | |
6501 | cat conftest.$ac_ext >&5 | |
6502 | fi | |
6503 | rm -rf conftest* conftst* | |
6504 | ||
6505 | # Do not use the global_symbol_pipe unless it works. | |
3258f645 | 6506 | if test yes = "$pipe_works"; then |
904dbe44 CIK |
6507 | break |
6508 | else | |
6509 | lt_cv_sys_global_symbol_pipe= | |
6510 | fi | |
6511 | done | |
6512 | ||
6513 | fi | |
6514 | ||
6515 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6516 | lt_cv_sys_global_symbol_to_cdecl= | |
6517 | fi | |
6518 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
6520 | $as_echo "failed" >&6; } | |
6521 | else | |
6522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
6523 | $as_echo "ok" >&6; } | |
6524 | fi | |
6525 | ||
6526 | # Response file support. | |
6527 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6528 | nm_file_list_spec='@' | |
6529 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6530 | nm_file_list_spec='@' | |
6531 | fi | |
6532 | ||
6533 | ||
6534 | ||
6535 | ||
6536 | ||
6537 | ||
6538 | ||
6539 | ||
6540 | ||
6541 | ||
6542 | ||
6543 | ||
6544 | ||
6545 | ||
6546 | ||
6547 | ||
3258f645 TG |
6548 | |
6549 | ||
6550 | ||
6551 | ||
6552 | ||
6553 | ||
6554 | ||
6555 | ||
6556 | ||
6557 | ||
904dbe44 CIK |
6558 | |
6559 | ||
6560 | ||
6561 | ||
6562 | ||
6563 | ||
6564 | ||
6565 | ||
6566 | ||
6567 | ||
6568 | ||
6569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
6570 | $as_echo_n "checking for sysroot... " >&6; } | |
6571 | ||
6572 | # Check whether --with-sysroot was given. | |
6573 | if test "${with_sysroot+set}" = set; then : | |
6574 | withval=$with_sysroot; | |
6575 | else | |
6576 | with_sysroot=no | |
6577 | fi | |
6578 | ||
6579 | ||
6580 | lt_sysroot= | |
3258f645 | 6581 | case $with_sysroot in #( |
904dbe44 | 6582 | yes) |
3258f645 | 6583 | if test yes = "$GCC"; then |
904dbe44 CIK |
6584 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
6585 | fi | |
6586 | ;; #( | |
6587 | /*) | |
6588 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6589 | ;; #( | |
6590 | no|'') | |
6591 | ;; #( | |
6592 | *) | |
3258f645 TG |
6593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
6594 | $as_echo "$with_sysroot" >&6; } | |
904dbe44 CIK |
6595 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
6596 | ;; | |
6597 | esac | |
6598 | ||
6599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6600 | $as_echo "${lt_sysroot:-no}" >&6; } | |
6601 | ||
6602 | ||
6603 | ||
6604 | ||
6605 | ||
3258f645 TG |
6606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
6607 | $as_echo_n "checking for a working dd... " >&6; } | |
6608 | if ${ac_cv_path_lt_DD+:} false; then : | |
6609 | $as_echo_n "(cached) " >&6 | |
6610 | else | |
6611 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6612 | cat conftest.i conftest.i >conftest2.i | |
6613 | : ${lt_DD:=$DD} | |
6614 | if test -z "$lt_DD"; then | |
6615 | ac_path_lt_DD_found=false | |
6616 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6618 | for as_dir in $PATH | |
6619 | do | |
6620 | IFS=$as_save_IFS | |
6621 | test -z "$as_dir" && as_dir=. | |
6622 | for ac_prog in dd; do | |
6623 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6624 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
6625 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
6626 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6627 | cmp -s conftest.i conftest.out \ | |
6628 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
6629 | fi | |
6630 | $ac_path_lt_DD_found && break 3 | |
6631 | done | |
6632 | done | |
6633 | done | |
6634 | IFS=$as_save_IFS | |
6635 | if test -z "$ac_cv_path_lt_DD"; then | |
6636 | : | |
6637 | fi | |
6638 | else | |
6639 | ac_cv_path_lt_DD=$lt_DD | |
6640 | fi | |
6641 | ||
6642 | rm -f conftest.i conftest2.i conftest.out | |
6643 | fi | |
6644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
6645 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
6646 | ||
6647 | ||
6648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
6649 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
6650 | if ${lt_cv_truncate_bin+:} false; then : | |
6651 | $as_echo_n "(cached) " >&6 | |
6652 | else | |
6653 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6654 | cat conftest.i conftest.i >conftest2.i | |
6655 | lt_cv_truncate_bin= | |
6656 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6657 | cmp -s conftest.i conftest.out \ | |
6658 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
6659 | fi | |
6660 | rm -f conftest.i conftest2.i conftest.out | |
6661 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
6662 | fi | |
6663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
6664 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
6665 | ||
6666 | ||
6667 | ||
6668 | ||
6669 | ||
6670 | ||
6671 | ||
6672 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
6673 | func_cc_basename () | |
6674 | { | |
6675 | for cc_temp in $*""; do | |
6676 | case $cc_temp in | |
6677 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6678 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6679 | \-*) ;; | |
6680 | *) break;; | |
6681 | esac | |
6682 | done | |
6683 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
6684 | } | |
6685 | ||
904dbe44 CIK |
6686 | # Check whether --enable-libtool-lock was given. |
6687 | if test "${enable_libtool_lock+set}" = set; then : | |
6688 | enableval=$enable_libtool_lock; | |
6689 | fi | |
6690 | ||
3258f645 | 6691 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
904dbe44 CIK |
6692 | |
6693 | # Some flags need to be propagated to the compiler or linker for good | |
6694 | # libtool support. | |
6695 | case $host in | |
6696 | ia64-*-hpux*) | |
3258f645 TG |
6697 | # Find out what ABI is being produced by ac_compile, and set mode |
6698 | # options accordingly. | |
904dbe44 CIK |
6699 | echo 'int i;' > conftest.$ac_ext |
6700 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6701 | (eval $ac_compile) 2>&5 | |
6702 | ac_status=$? | |
6703 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6704 | test $ac_status = 0; }; then | |
6705 | case `/usr/bin/file conftest.$ac_objext` in | |
6706 | *ELF-32*) | |
3258f645 | 6707 | HPUX_IA64_MODE=32 |
904dbe44 CIK |
6708 | ;; |
6709 | *ELF-64*) | |
3258f645 | 6710 | HPUX_IA64_MODE=64 |
904dbe44 CIK |
6711 | ;; |
6712 | esac | |
6713 | fi | |
6714 | rm -rf conftest* | |
6715 | ;; | |
6716 | *-*-irix6*) | |
3258f645 TG |
6717 | # Find out what ABI is being produced by ac_compile, and set linker |
6718 | # options accordingly. | |
904dbe44 CIK |
6719 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6720 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6721 | (eval $ac_compile) 2>&5 | |
6722 | ac_status=$? | |
6723 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6724 | test $ac_status = 0; }; then | |
3258f645 | 6725 | if test yes = "$lt_cv_prog_gnu_ld"; then |
904dbe44 CIK |
6726 | case `/usr/bin/file conftest.$ac_objext` in |
6727 | *32-bit*) | |
6728 | LD="${LD-ld} -melf32bsmip" | |
6729 | ;; | |
6730 | *N32*) | |
6731 | LD="${LD-ld} -melf32bmipn32" | |
6732 | ;; | |
6733 | *64-bit*) | |
6734 | LD="${LD-ld} -melf64bmip" | |
6735 | ;; | |
6736 | esac | |
6737 | else | |
6738 | case `/usr/bin/file conftest.$ac_objext` in | |
6739 | *32-bit*) | |
6740 | LD="${LD-ld} -32" | |
6741 | ;; | |
6742 | *N32*) | |
6743 | LD="${LD-ld} -n32" | |
6744 | ;; | |
6745 | *64-bit*) | |
6746 | LD="${LD-ld} -64" | |
6747 | ;; | |
6748 | esac | |
6749 | fi | |
6750 | fi | |
6751 | rm -rf conftest* | |
6752 | ;; | |
6753 | ||
3258f645 TG |
6754 | mips64*-*linux*) |
6755 | # Find out what ABI is being produced by ac_compile, and set linker | |
6756 | # options accordingly. | |
6757 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6758 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6759 | (eval $ac_compile) 2>&5 | |
6760 | ac_status=$? | |
6761 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6762 | test $ac_status = 0; }; then | |
6763 | emul=elf | |
6764 | case `/usr/bin/file conftest.$ac_objext` in | |
6765 | *32-bit*) | |
6766 | emul="${emul}32" | |
6767 | ;; | |
6768 | *64-bit*) | |
6769 | emul="${emul}64" | |
6770 | ;; | |
6771 | esac | |
6772 | case `/usr/bin/file conftest.$ac_objext` in | |
6773 | *MSB*) | |
6774 | emul="${emul}btsmip" | |
6775 | ;; | |
6776 | *LSB*) | |
6777 | emul="${emul}ltsmip" | |
6778 | ;; | |
6779 | esac | |
6780 | case `/usr/bin/file conftest.$ac_objext` in | |
6781 | *N32*) | |
6782 | emul="${emul}n32" | |
6783 | ;; | |
6784 | esac | |
6785 | LD="${LD-ld} -m $emul" | |
6786 | fi | |
6787 | rm -rf conftest* | |
6788 | ;; | |
6789 | ||
904dbe44 CIK |
6790 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
6791 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
3258f645 TG |
6792 | # Find out what ABI is being produced by ac_compile, and set linker |
6793 | # options accordingly. Note that the listed cases only cover the | |
6794 | # situations where additional linker options are needed (such as when | |
6795 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
6796 | # vice versa); the common cases where no linker options are needed do | |
6797 | # not appear in the list. | |
904dbe44 CIK |
6798 | echo 'int i;' > conftest.$ac_ext |
6799 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6800 | (eval $ac_compile) 2>&5 | |
6801 | ac_status=$? | |
6802 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6803 | test $ac_status = 0; }; then | |
6804 | case `/usr/bin/file conftest.o` in | |
6805 | *32-bit*) | |
6806 | case $host in | |
6807 | x86_64-*kfreebsd*-gnu) | |
6808 | LD="${LD-ld} -m elf_i386_fbsd" | |
6809 | ;; | |
6810 | x86_64-*linux*) | |
6811 | case `/usr/bin/file conftest.o` in | |
6812 | *x86-64*) | |
6813 | LD="${LD-ld} -m elf32_x86_64" | |
6814 | ;; | |
6815 | *) | |
6816 | LD="${LD-ld} -m elf_i386" | |
6817 | ;; | |
6818 | esac | |
6819 | ;; | |
3258f645 | 6820 | powerpc64le-*linux*) |
904dbe44 CIK |
6821 | LD="${LD-ld} -m elf32lppclinux" |
6822 | ;; | |
3258f645 | 6823 | powerpc64-*linux*) |
904dbe44 CIK |
6824 | LD="${LD-ld} -m elf32ppclinux" |
6825 | ;; | |
6826 | s390x-*linux*) | |
6827 | LD="${LD-ld} -m elf_s390" | |
6828 | ;; | |
6829 | sparc64-*linux*) | |
6830 | LD="${LD-ld} -m elf32_sparc" | |
6831 | ;; | |
6832 | esac | |
6833 | ;; | |
6834 | *64-bit*) | |
6835 | case $host in | |
6836 | x86_64-*kfreebsd*-gnu) | |
6837 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6838 | ;; | |
6839 | x86_64-*linux*) | |
6840 | LD="${LD-ld} -m elf_x86_64" | |
6841 | ;; | |
3258f645 | 6842 | powerpcle-*linux*) |
904dbe44 CIK |
6843 | LD="${LD-ld} -m elf64lppc" |
6844 | ;; | |
3258f645 | 6845 | powerpc-*linux*) |
904dbe44 CIK |
6846 | LD="${LD-ld} -m elf64ppc" |
6847 | ;; | |
6848 | s390*-*linux*|s390*-*tpf*) | |
6849 | LD="${LD-ld} -m elf64_s390" | |
6850 | ;; | |
6851 | sparc*-*linux*) | |
6852 | LD="${LD-ld} -m elf64_sparc" | |
6853 | ;; | |
6854 | esac | |
6855 | ;; | |
6856 | esac | |
6857 | fi | |
6858 | rm -rf conftest* | |
6859 | ;; | |
6860 | ||
6861 | *-*-sco3.2v5*) | |
6862 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
3258f645 | 6863 | SAVE_CFLAGS=$CFLAGS |
904dbe44 CIK |
6864 | CFLAGS="$CFLAGS -belf" |
6865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
6866 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6867 | if ${lt_cv_cc_needs_belf+:} false; then : | |
6868 | $as_echo_n "(cached) " >&6 | |
6869 | else | |
6870 | ac_ext=c | |
6871 | ac_cpp='$CPP $CPPFLAGS' | |
6872 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6873 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6874 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6875 | ||
6876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6877 | /* end confdefs.h. */ | |
6878 | ||
6879 | int | |
6880 | main () | |
6881 | { | |
6882 | ||
6883 | ; | |
6884 | return 0; | |
6885 | } | |
6886 | _ACEOF | |
6887 | if ac_fn_c_try_link "$LINENO"; then : | |
6888 | lt_cv_cc_needs_belf=yes | |
6889 | else | |
6890 | lt_cv_cc_needs_belf=no | |
6891 | fi | |
6892 | rm -f core conftest.err conftest.$ac_objext \ | |
6893 | conftest$ac_exeext conftest.$ac_ext | |
6894 | ac_ext=c | |
6895 | ac_cpp='$CPP $CPPFLAGS' | |
6896 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6897 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6898 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6899 | ||
6900 | fi | |
6901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
6902 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
3258f645 | 6903 | if test yes != "$lt_cv_cc_needs_belf"; then |
904dbe44 | 6904 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
3258f645 | 6905 | CFLAGS=$SAVE_CFLAGS |
904dbe44 CIK |
6906 | fi |
6907 | ;; | |
6908 | *-*solaris*) | |
3258f645 TG |
6909 | # Find out what ABI is being produced by ac_compile, and set linker |
6910 | # options accordingly. | |
904dbe44 CIK |
6911 | echo 'int i;' > conftest.$ac_ext |
6912 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6913 | (eval $ac_compile) 2>&5 | |
6914 | ac_status=$? | |
6915 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6916 | test $ac_status = 0; }; then | |
6917 | case `/usr/bin/file conftest.o` in | |
6918 | *64-bit*) | |
6919 | case $lt_cv_prog_gnu_ld in | |
6920 | yes*) | |
6921 | case $host in | |
3258f645 | 6922 | i?86-*-solaris*|x86_64-*-solaris*) |
904dbe44 CIK |
6923 | LD="${LD-ld} -m elf_x86_64" |
6924 | ;; | |
6925 | sparc*-*-solaris*) | |
6926 | LD="${LD-ld} -m elf64_sparc" | |
6927 | ;; | |
6928 | esac | |
6929 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
6930 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
3258f645 | 6931 | LD=${LD-ld}_sol2 |
904dbe44 CIK |
6932 | fi |
6933 | ;; | |
6934 | *) | |
6935 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6936 | LD="${LD-ld} -64" | |
6937 | fi | |
6938 | ;; | |
6939 | esac | |
6940 | ;; | |
6941 | esac | |
6942 | fi | |
6943 | rm -rf conftest* | |
6944 | ;; | |
6945 | esac | |
6946 | ||
3258f645 | 6947 | need_locks=$enable_libtool_lock |
904dbe44 CIK |
6948 | |
6949 | if test -n "$ac_tool_prefix"; then | |
6950 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
6951 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
6952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6953 | $as_echo_n "checking for $ac_word... " >&6; } | |
6954 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
6955 | $as_echo_n "(cached) " >&6 | |
6956 | else | |
6957 | if test -n "$MANIFEST_TOOL"; then | |
6958 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
6959 | else | |
6960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6961 | for as_dir in $PATH | |
6962 | do | |
6963 | IFS=$as_save_IFS | |
6964 | test -z "$as_dir" && as_dir=. | |
6965 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6966 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6967 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
6968 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6969 | break 2 | |
6970 | fi | |
6971 | done | |
6972 | done | |
6973 | IFS=$as_save_IFS | |
6974 | ||
6975 | fi | |
6976 | fi | |
6977 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
6978 | if test -n "$MANIFEST_TOOL"; then | |
6979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
6980 | $as_echo "$MANIFEST_TOOL" >&6; } | |
6981 | else | |
6982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6983 | $as_echo "no" >&6; } | |
6984 | fi | |
6985 | ||
6986 | ||
6987 | fi | |
6988 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
6989 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
6990 | # Extract the first word of "mt", so it can be a program name with args. | |
6991 | set dummy mt; ac_word=$2 | |
6992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6993 | $as_echo_n "checking for $ac_word... " >&6; } | |
6994 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
6995 | $as_echo_n "(cached) " >&6 | |
6996 | else | |
6997 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6998 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
6999 | else | |
7000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7001 | for as_dir in $PATH | |
7002 | do | |
7003 | IFS=$as_save_IFS | |
7004 | test -z "$as_dir" && as_dir=. | |
7005 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7006 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7007 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7008 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7009 | break 2 | |
7010 | fi | |
7011 | done | |
7012 | done | |
7013 | IFS=$as_save_IFS | |
7014 | ||
7015 | fi | |
7016 | fi | |
7017 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7018 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7020 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7021 | else | |
7022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7023 | $as_echo "no" >&6; } | |
7024 | fi | |
7025 | ||
7026 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
7027 | MANIFEST_TOOL=":" | |
7028 | else | |
7029 | case $cross_compiling:$ac_tool_warned in | |
7030 | yes:) | |
7031 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7032 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7033 | ac_tool_warned=yes ;; | |
7034 | esac | |
7035 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7036 | fi | |
7037 | else | |
7038 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7039 | fi | |
7040 | ||
7041 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
7042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7043 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7044 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7045 | $as_echo_n "(cached) " >&6 | |
7046 | else | |
7047 | lt_cv_path_mainfest_tool=no | |
7048 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7049 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7050 | cat conftest.err >&5 | |
7051 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7052 | lt_cv_path_mainfest_tool=yes | |
7053 | fi | |
7054 | rm -f conftest* | |
7055 | fi | |
7056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7057 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
3258f645 | 7058 | if test yes != "$lt_cv_path_mainfest_tool"; then |
904dbe44 CIK |
7059 | MANIFEST_TOOL=: |
7060 | fi | |
7061 | ||
7062 | ||
7063 | ||
7064 | ||
7065 | ||
7066 | ||
7067 | case $host_os in | |
7068 | rhapsody* | darwin*) | |
7069 | if test -n "$ac_tool_prefix"; then | |
7070 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7071 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7073 | $as_echo_n "checking for $ac_word... " >&6; } | |
7074 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7075 | $as_echo_n "(cached) " >&6 | |
7076 | else | |
7077 | if test -n "$DSYMUTIL"; then | |
7078 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7079 | else | |
7080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7081 | for as_dir in $PATH | |
7082 | do | |
7083 | IFS=$as_save_IFS | |
7084 | test -z "$as_dir" && as_dir=. | |
7085 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7086 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7087 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7088 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7089 | break 2 | |
7090 | fi | |
7091 | done | |
7092 | done | |
7093 | IFS=$as_save_IFS | |
7094 | ||
7095 | fi | |
7096 | fi | |
7097 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7098 | if test -n "$DSYMUTIL"; then | |
7099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7100 | $as_echo "$DSYMUTIL" >&6; } | |
7101 | else | |
7102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7103 | $as_echo "no" >&6; } | |
7104 | fi | |
7105 | ||
7106 | ||
7107 | fi | |
7108 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7109 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7110 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7111 | set dummy dsymutil; ac_word=$2 | |
7112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7113 | $as_echo_n "checking for $ac_word... " >&6; } | |
7114 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
7115 | $as_echo_n "(cached) " >&6 | |
7116 | else | |
7117 | if test -n "$ac_ct_DSYMUTIL"; then | |
7118 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7119 | else | |
7120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7121 | for as_dir in $PATH | |
7122 | do | |
7123 | IFS=$as_save_IFS | |
7124 | test -z "$as_dir" && as_dir=. | |
7125 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7126 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7127 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7128 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7129 | break 2 | |
7130 | fi | |
7131 | done | |
7132 | done | |
7133 | IFS=$as_save_IFS | |
7134 | ||
7135 | fi | |
7136 | fi | |
7137 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7138 | if test -n "$ac_ct_DSYMUTIL"; then | |
7139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7140 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7141 | else | |
7142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7143 | $as_echo "no" >&6; } | |
7144 | fi | |
7145 | ||
7146 | if test "x$ac_ct_DSYMUTIL" = x; then | |
7147 | DSYMUTIL=":" | |
7148 | else | |
7149 | case $cross_compiling:$ac_tool_warned in | |
7150 | yes:) | |
7151 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7152 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7153 | ac_tool_warned=yes ;; | |
7154 | esac | |
7155 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7156 | fi | |
7157 | else | |
7158 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7159 | fi | |
7160 | ||
7161 | if test -n "$ac_tool_prefix"; then | |
7162 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7163 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7165 | $as_echo_n "checking for $ac_word... " >&6; } | |
7166 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
7167 | $as_echo_n "(cached) " >&6 | |
7168 | else | |
7169 | if test -n "$NMEDIT"; then | |
7170 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7171 | else | |
7172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7173 | for as_dir in $PATH | |
7174 | do | |
7175 | IFS=$as_save_IFS | |
7176 | test -z "$as_dir" && as_dir=. | |
7177 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7178 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7179 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7180 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7181 | break 2 | |
7182 | fi | |
7183 | done | |
7184 | done | |
7185 | IFS=$as_save_IFS | |
7186 | ||
7187 | fi | |
7188 | fi | |
7189 | NMEDIT=$ac_cv_prog_NMEDIT | |
7190 | if test -n "$NMEDIT"; then | |
7191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7192 | $as_echo "$NMEDIT" >&6; } | |
7193 | else | |
7194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7195 | $as_echo "no" >&6; } | |
7196 | fi | |
7197 | ||
7198 | ||
7199 | fi | |
7200 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7201 | ac_ct_NMEDIT=$NMEDIT | |
7202 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7203 | set dummy nmedit; ac_word=$2 | |
7204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7205 | $as_echo_n "checking for $ac_word... " >&6; } | |
7206 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
7207 | $as_echo_n "(cached) " >&6 | |
7208 | else | |
7209 | if test -n "$ac_ct_NMEDIT"; then | |
7210 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7211 | else | |
7212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7213 | for as_dir in $PATH | |
7214 | do | |
7215 | IFS=$as_save_IFS | |
7216 | test -z "$as_dir" && as_dir=. | |
7217 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7218 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7219 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7221 | break 2 | |
7222 | fi | |
7223 | done | |
7224 | done | |
7225 | IFS=$as_save_IFS | |
7226 | ||
7227 | fi | |
7228 | fi | |
7229 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7230 | if test -n "$ac_ct_NMEDIT"; then | |
7231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7232 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
7233 | else | |
7234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7235 | $as_echo "no" >&6; } | |
7236 | fi | |
7237 | ||
7238 | if test "x$ac_ct_NMEDIT" = x; then | |
7239 | NMEDIT=":" | |
7240 | else | |
7241 | case $cross_compiling:$ac_tool_warned in | |
7242 | yes:) | |
7243 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7244 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7245 | ac_tool_warned=yes ;; | |
7246 | esac | |
7247 | NMEDIT=$ac_ct_NMEDIT | |
7248 | fi | |
7249 | else | |
7250 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7251 | fi | |
7252 | ||
7253 | if test -n "$ac_tool_prefix"; then | |
7254 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7255 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7257 | $as_echo_n "checking for $ac_word... " >&6; } | |
7258 | if ${ac_cv_prog_LIPO+:} false; then : | |
7259 | $as_echo_n "(cached) " >&6 | |
7260 | else | |
7261 | if test -n "$LIPO"; then | |
7262 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7263 | else | |
7264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7265 | for as_dir in $PATH | |
7266 | do | |
7267 | IFS=$as_save_IFS | |
7268 | test -z "$as_dir" && as_dir=. | |
7269 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7270 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7271 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7272 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7273 | break 2 | |
7274 | fi | |
7275 | done | |
7276 | done | |
7277 | IFS=$as_save_IFS | |
7278 | ||
7279 | fi | |
7280 | fi | |
7281 | LIPO=$ac_cv_prog_LIPO | |
7282 | if test -n "$LIPO"; then | |
7283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7284 | $as_echo "$LIPO" >&6; } | |
7285 | else | |
7286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7287 | $as_echo "no" >&6; } | |
7288 | fi | |
7289 | ||
7290 | ||
7291 | fi | |
7292 | if test -z "$ac_cv_prog_LIPO"; then | |
7293 | ac_ct_LIPO=$LIPO | |
7294 | # Extract the first word of "lipo", so it can be a program name with args. | |
7295 | set dummy lipo; ac_word=$2 | |
7296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7297 | $as_echo_n "checking for $ac_word... " >&6; } | |
7298 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
7299 | $as_echo_n "(cached) " >&6 | |
7300 | else | |
7301 | if test -n "$ac_ct_LIPO"; then | |
7302 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7303 | else | |
7304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7305 | for as_dir in $PATH | |
7306 | do | |
7307 | IFS=$as_save_IFS | |
7308 | test -z "$as_dir" && as_dir=. | |
7309 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7310 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7311 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7312 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7313 | break 2 | |
7314 | fi | |
7315 | done | |
7316 | done | |
7317 | IFS=$as_save_IFS | |
7318 | ||
7319 | fi | |
7320 | fi | |
7321 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7322 | if test -n "$ac_ct_LIPO"; then | |
7323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7324 | $as_echo "$ac_ct_LIPO" >&6; } | |
7325 | else | |
7326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7327 | $as_echo "no" >&6; } | |
7328 | fi | |
7329 | ||
7330 | if test "x$ac_ct_LIPO" = x; then | |
7331 | LIPO=":" | |
7332 | else | |
7333 | case $cross_compiling:$ac_tool_warned in | |
7334 | yes:) | |
7335 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7336 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7337 | ac_tool_warned=yes ;; | |
7338 | esac | |
7339 | LIPO=$ac_ct_LIPO | |
7340 | fi | |
7341 | else | |
7342 | LIPO="$ac_cv_prog_LIPO" | |
7343 | fi | |
7344 | ||
7345 | if test -n "$ac_tool_prefix"; then | |
7346 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7347 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7349 | $as_echo_n "checking for $ac_word... " >&6; } | |
7350 | if ${ac_cv_prog_OTOOL+:} false; then : | |
7351 | $as_echo_n "(cached) " >&6 | |
7352 | else | |
7353 | if test -n "$OTOOL"; then | |
7354 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7355 | else | |
7356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357 | for as_dir in $PATH | |
7358 | do | |
7359 | IFS=$as_save_IFS | |
7360 | test -z "$as_dir" && as_dir=. | |
7361 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7362 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7363 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7365 | break 2 | |
7366 | fi | |
7367 | done | |
7368 | done | |
7369 | IFS=$as_save_IFS | |
7370 | ||
7371 | fi | |
7372 | fi | |
7373 | OTOOL=$ac_cv_prog_OTOOL | |
7374 | if test -n "$OTOOL"; then | |
7375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7376 | $as_echo "$OTOOL" >&6; } | |
7377 | else | |
7378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7379 | $as_echo "no" >&6; } | |
7380 | fi | |
7381 | ||
7382 | ||
7383 | fi | |
7384 | if test -z "$ac_cv_prog_OTOOL"; then | |
7385 | ac_ct_OTOOL=$OTOOL | |
7386 | # Extract the first word of "otool", so it can be a program name with args. | |
7387 | set dummy otool; ac_word=$2 | |
7388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7389 | $as_echo_n "checking for $ac_word... " >&6; } | |
7390 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
7391 | $as_echo_n "(cached) " >&6 | |
7392 | else | |
7393 | if test -n "$ac_ct_OTOOL"; then | |
7394 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7395 | else | |
7396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7397 | for as_dir in $PATH | |
7398 | do | |
7399 | IFS=$as_save_IFS | |
7400 | test -z "$as_dir" && as_dir=. | |
7401 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7402 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7403 | ac_cv_prog_ac_ct_OTOOL="otool" | |
7404 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7405 | break 2 | |
7406 | fi | |
7407 | done | |
7408 | done | |
7409 | IFS=$as_save_IFS | |
7410 | ||
7411 | fi | |
7412 | fi | |
7413 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7414 | if test -n "$ac_ct_OTOOL"; then | |
7415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7416 | $as_echo "$ac_ct_OTOOL" >&6; } | |
7417 | else | |
7418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7419 | $as_echo "no" >&6; } | |
7420 | fi | |
7421 | ||
7422 | if test "x$ac_ct_OTOOL" = x; then | |
7423 | OTOOL=":" | |
7424 | else | |
7425 | case $cross_compiling:$ac_tool_warned in | |
7426 | yes:) | |
7427 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7428 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7429 | ac_tool_warned=yes ;; | |
7430 | esac | |
7431 | OTOOL=$ac_ct_OTOOL | |
7432 | fi | |
7433 | else | |
7434 | OTOOL="$ac_cv_prog_OTOOL" | |
7435 | fi | |
7436 | ||
7437 | if test -n "$ac_tool_prefix"; then | |
7438 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7439 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7441 | $as_echo_n "checking for $ac_word... " >&6; } | |
7442 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
7443 | $as_echo_n "(cached) " >&6 | |
7444 | else | |
7445 | if test -n "$OTOOL64"; then | |
7446 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7447 | else | |
7448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7449 | for as_dir in $PATH | |
7450 | do | |
7451 | IFS=$as_save_IFS | |
7452 | test -z "$as_dir" && as_dir=. | |
7453 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7454 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7455 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7456 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7457 | break 2 | |
7458 | fi | |
7459 | done | |
7460 | done | |
7461 | IFS=$as_save_IFS | |
7462 | ||
7463 | fi | |
7464 | fi | |
7465 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7466 | if test -n "$OTOOL64"; then | |
7467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
7468 | $as_echo "$OTOOL64" >&6; } | |
7469 | else | |
7470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7471 | $as_echo "no" >&6; } | |
7472 | fi | |
7473 | ||
7474 | ||
7475 | fi | |
7476 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7477 | ac_ct_OTOOL64=$OTOOL64 | |
7478 | # Extract the first word of "otool64", so it can be a program name with args. | |
7479 | set dummy otool64; ac_word=$2 | |
7480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7481 | $as_echo_n "checking for $ac_word... " >&6; } | |
7482 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
7483 | $as_echo_n "(cached) " >&6 | |
7484 | else | |
7485 | if test -n "$ac_ct_OTOOL64"; then | |
7486 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7487 | else | |
7488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7489 | for as_dir in $PATH | |
7490 | do | |
7491 | IFS=$as_save_IFS | |
7492 | test -z "$as_dir" && as_dir=. | |
7493 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7494 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7495 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7496 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7497 | break 2 | |
7498 | fi | |
7499 | done | |
7500 | done | |
7501 | IFS=$as_save_IFS | |
7502 | ||
7503 | fi | |
7504 | fi | |
7505 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7506 | if test -n "$ac_ct_OTOOL64"; then | |
7507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
7508 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
7509 | else | |
7510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7511 | $as_echo "no" >&6; } | |
7512 | fi | |
7513 | ||
7514 | if test "x$ac_ct_OTOOL64" = x; then | |
7515 | OTOOL64=":" | |
7516 | else | |
7517 | case $cross_compiling:$ac_tool_warned in | |
7518 | yes:) | |
7519 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7520 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7521 | ac_tool_warned=yes ;; | |
7522 | esac | |
7523 | OTOOL64=$ac_ct_OTOOL64 | |
7524 | fi | |
7525 | else | |
7526 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7527 | fi | |
7528 | ||
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
7556 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7557 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
7558 | $as_echo_n "(cached) " >&6 | |
7559 | else | |
7560 | lt_cv_apple_cc_single_mod=no | |
3258f645 | 7561 | if test -z "$LT_MULTI_MODULE"; then |
904dbe44 CIK |
7562 | # By default we will add the -single_module flag. You can override |
7563 | # by either setting the environment variable LT_MULTI_MODULE | |
7564 | # non-empty at configure time, or by adding -multi_module to the | |
7565 | # link flags. | |
7566 | rm -rf libconftest.dylib* | |
7567 | echo "int foo(void){return 1;}" > conftest.c | |
7568 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7569 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7570 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7571 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7572 | _lt_result=$? | |
7573 | # If there is a non-empty error log, and "single_module" | |
7574 | # appears in it, assume the flag caused a linker warning | |
7575 | if test -s conftest.err && $GREP single_module conftest.err; then | |
7576 | cat conftest.err >&5 | |
7577 | # Otherwise, if the output was created with a 0 exit code from | |
7578 | # the compiler, it worked. | |
3258f645 | 7579 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
904dbe44 CIK |
7580 | lt_cv_apple_cc_single_mod=yes |
7581 | else | |
7582 | cat conftest.err >&5 | |
7583 | fi | |
7584 | rm -rf libconftest.dylib* | |
7585 | rm -f conftest.* | |
7586 | fi | |
7587 | fi | |
7588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
7589 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7590 | ||
7591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7592 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7593 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
7594 | $as_echo_n "(cached) " >&6 | |
7595 | else | |
7596 | lt_cv_ld_exported_symbols_list=no | |
7597 | save_LDFLAGS=$LDFLAGS | |
7598 | echo "_main" > conftest.sym | |
7599 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7601 | /* end confdefs.h. */ | |
7602 | ||
7603 | int | |
7604 | main () | |
7605 | { | |
7606 | ||
7607 | ; | |
7608 | return 0; | |
7609 | } | |
7610 | _ACEOF | |
7611 | if ac_fn_c_try_link "$LINENO"; then : | |
7612 | lt_cv_ld_exported_symbols_list=yes | |
7613 | else | |
7614 | lt_cv_ld_exported_symbols_list=no | |
7615 | fi | |
7616 | rm -f core conftest.err conftest.$ac_objext \ | |
7617 | conftest$ac_exeext conftest.$ac_ext | |
3258f645 | 7618 | LDFLAGS=$save_LDFLAGS |
904dbe44 CIK |
7619 | |
7620 | fi | |
7621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
7622 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
7623 | ||
7624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7625 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7626 | if ${lt_cv_ld_force_load+:} false; then : | |
7627 | $as_echo_n "(cached) " >&6 | |
7628 | else | |
7629 | lt_cv_ld_force_load=no | |
7630 | cat > conftest.c << _LT_EOF | |
7631 | int forced_loaded() { return 2;} | |
7632 | _LT_EOF | |
7633 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7634 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7635 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7636 | $AR cru libconftest.a conftest.o 2>&5 | |
7637 | echo "$RANLIB libconftest.a" >&5 | |
7638 | $RANLIB libconftest.a 2>&5 | |
7639 | cat > conftest.c << _LT_EOF | |
7640 | int main() { return 0;} | |
7641 | _LT_EOF | |
7642 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7643 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7644 | _lt_result=$? | |
7645 | if test -s conftest.err && $GREP force_load conftest.err; then | |
7646 | cat conftest.err >&5 | |
3258f645 | 7647 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
904dbe44 CIK |
7648 | lt_cv_ld_force_load=yes |
7649 | else | |
7650 | cat conftest.err >&5 | |
7651 | fi | |
7652 | rm -f conftest.err libconftest.a conftest conftest.c | |
7653 | rm -rf conftest.dSYM | |
7654 | ||
7655 | fi | |
7656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7657 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
7658 | case $host_os in | |
7659 | rhapsody* | darwin1.[012]) | |
3258f645 | 7660 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
904dbe44 | 7661 | darwin1.*) |
3258f645 | 7662 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
904dbe44 CIK |
7663 | darwin*) # darwin 5.x on |
7664 | # if running on 10.5 or later, the deployment target defaults | |
7665 | # to the OS version, if on x86, and 10.4, the deployment | |
7666 | # target defaults to 10.4. Don't you love it? | |
7667 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7668 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
3258f645 TG |
7669 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
7670 | 10.[012][,.]*) | |
7671 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
904dbe44 | 7672 | 10.*) |
3258f645 | 7673 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
904dbe44 CIK |
7674 | esac |
7675 | ;; | |
7676 | esac | |
3258f645 | 7677 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
904dbe44 CIK |
7678 | _lt_dar_single_mod='$single_module' |
7679 | fi | |
3258f645 TG |
7680 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
7681 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
904dbe44 | 7682 | else |
3258f645 | 7683 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
904dbe44 | 7684 | fi |
3258f645 | 7685 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
904dbe44 CIK |
7686 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7687 | else | |
7688 | _lt_dsymutil= | |
7689 | fi | |
7690 | ;; | |
7691 | esac | |
7692 | ||
3258f645 TG |
7693 | # func_munge_path_list VARIABLE PATH |
7694 | # ----------------------------------- | |
7695 | # VARIABLE is name of variable containing _space_ separated list of | |
7696 | # directories to be munged by the contents of PATH, which is string | |
7697 | # having a format: | |
7698 | # "DIR[:DIR]:" | |
7699 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
7700 | # ":DIR[:DIR]" | |
7701 | # string "DIR[ DIR]" will be appended to VARIABLE | |
7702 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
7703 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
7704 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
7705 | # "DIR[:DIR]" | |
7706 | # VARIABLE will be replaced by "DIR[ DIR]" | |
7707 | func_munge_path_list () | |
7708 | { | |
7709 | case x$2 in | |
7710 | x) | |
7711 | ;; | |
7712 | *:) | |
7713 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
7714 | ;; | |
7715 | x:*) | |
7716 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
7717 | ;; | |
7718 | *::*) | |
7719 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
7720 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
7721 | ;; | |
7722 | *) | |
7723 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
7724 | ;; | |
7725 | esac | |
7726 | } | |
7727 | ||
904dbe44 CIK |
7728 | ac_ext=c |
7729 | ac_cpp='$CPP $CPPFLAGS' | |
7730 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7731 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7732 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
7734 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7735 | # On Suns, sometimes $CPP names a directory. | |
7736 | if test -n "$CPP" && test -d "$CPP"; then | |
7737 | CPP= | |
7738 | fi | |
7739 | if test -z "$CPP"; then | |
7740 | if ${ac_cv_prog_CPP+:} false; then : | |
7741 | $as_echo_n "(cached) " >&6 | |
7742 | else | |
7743 | # Double quotes because CPP needs to be expanded | |
7744 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7745 | do | |
7746 | ac_preproc_ok=false | |
7747 | for ac_c_preproc_warn_flag in '' yes | |
7748 | do | |
7749 | # Use a header file that comes with gcc, so configuring glibc | |
7750 | # with a fresh cross-compiler works. | |
7751 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7752 | # <limits.h> exists even on freestanding compilers. | |
7753 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7754 | # not just through cpp. "Syntax error" is here to catch this case. | |
7755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7756 | /* end confdefs.h. */ | |
7757 | #ifdef __STDC__ | |
7758 | # include <limits.h> | |
7759 | #else | |
7760 | # include <assert.h> | |
7761 | #endif | |
7762 | Syntax error | |
7763 | _ACEOF | |
7764 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7765 | ||
7766 | else | |
7767 | # Broken: fails on valid input. | |
7768 | continue | |
7769 | fi | |
7770 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7771 | ||
7772 | # OK, works on sane cases. Now check whether nonexistent headers | |
7773 | # can be detected and how. | |
7774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7775 | /* end confdefs.h. */ | |
7776 | #include <ac_nonexistent.h> | |
7777 | _ACEOF | |
7778 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7779 | # Broken: success on invalid input. | |
7780 | continue | |
7781 | else | |
7782 | # Passes both tests. | |
7783 | ac_preproc_ok=: | |
7784 | break | |
7785 | fi | |
7786 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7787 | ||
7788 | done | |
7789 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7790 | rm -f conftest.i conftest.err conftest.$ac_ext | |
7791 | if $ac_preproc_ok; then : | |
7792 | break | |
7793 | fi | |
7794 | ||
7795 | done | |
7796 | ac_cv_prog_CPP=$CPP | |
7797 | ||
7798 | fi | |
7799 | CPP=$ac_cv_prog_CPP | |
7800 | else | |
7801 | ac_cv_prog_CPP=$CPP | |
7802 | fi | |
7803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
7804 | $as_echo "$CPP" >&6; } | |
7805 | ac_preproc_ok=false | |
7806 | for ac_c_preproc_warn_flag in '' yes | |
7807 | do | |
7808 | # Use a header file that comes with gcc, so configuring glibc | |
7809 | # with a fresh cross-compiler works. | |
7810 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7811 | # <limits.h> exists even on freestanding compilers. | |
7812 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7813 | # not just through cpp. "Syntax error" is here to catch this case. | |
7814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7815 | /* end confdefs.h. */ | |
7816 | #ifdef __STDC__ | |
7817 | # include <limits.h> | |
7818 | #else | |
7819 | # include <assert.h> | |
7820 | #endif | |
7821 | Syntax error | |
7822 | _ACEOF | |
7823 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7824 | ||
7825 | else | |
7826 | # Broken: fails on valid input. | |
7827 | continue | |
7828 | fi | |
7829 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7830 | ||
7831 | # OK, works on sane cases. Now check whether nonexistent headers | |
7832 | # can be detected and how. | |
7833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7834 | /* end confdefs.h. */ | |
7835 | #include <ac_nonexistent.h> | |
7836 | _ACEOF | |
7837 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7838 | # Broken: success on invalid input. | |
7839 | continue | |
7840 | else | |
7841 | # Passes both tests. | |
7842 | ac_preproc_ok=: | |
7843 | break | |
7844 | fi | |
7845 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7846 | ||
7847 | done | |
7848 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7849 | rm -f conftest.i conftest.err conftest.$ac_ext | |
7850 | if $ac_preproc_ok; then : | |
7851 | ||
7852 | else | |
7853 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7854 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7855 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
7856 | See \`config.log' for more details" "$LINENO" 5; } | |
7857 | fi | |
7858 | ||
7859 | ac_ext=c | |
7860 | ac_cpp='$CPP $CPPFLAGS' | |
7861 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7862 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7863 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7864 | ||
7865 | ||
7866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
7867 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7868 | if ${ac_cv_header_stdc+:} false; then : | |
7869 | $as_echo_n "(cached) " >&6 | |
7870 | else | |
7871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7872 | /* end confdefs.h. */ | |
7873 | #include <stdlib.h> | |
7874 | #include <stdarg.h> | |
7875 | #include <string.h> | |
7876 | #include <float.h> | |
7877 | ||
7878 | int | |
7879 | main () | |
7880 | { | |
7881 | ||
7882 | ; | |
7883 | return 0; | |
7884 | } | |
7885 | _ACEOF | |
7886 | if ac_fn_c_try_compile "$LINENO"; then : | |
7887 | ac_cv_header_stdc=yes | |
7888 | else | |
7889 | ac_cv_header_stdc=no | |
7890 | fi | |
7891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7892 | ||
7893 | if test $ac_cv_header_stdc = yes; then | |
7894 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7896 | /* end confdefs.h. */ | |
7897 | #include <string.h> | |
7898 | ||
7899 | _ACEOF | |
7900 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7901 | $EGREP "memchr" >/dev/null 2>&1; then : | |
7902 | ||
7903 | else | |
7904 | ac_cv_header_stdc=no | |
7905 | fi | |
7906 | rm -f conftest* | |
7907 | ||
7908 | fi | |
7909 | ||
7910 | if test $ac_cv_header_stdc = yes; then | |
7911 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7913 | /* end confdefs.h. */ | |
7914 | #include <stdlib.h> | |
7915 | ||
7916 | _ACEOF | |
7917 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7918 | $EGREP "free" >/dev/null 2>&1; then : | |
7919 | ||
7920 | else | |
7921 | ac_cv_header_stdc=no | |
7922 | fi | |
7923 | rm -f conftest* | |
7924 | ||
7925 | fi | |
7926 | ||
7927 | if test $ac_cv_header_stdc = yes; then | |
7928 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7929 | if test "$cross_compiling" = yes; then : | |
7930 | : | |
7931 | else | |
7932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7933 | /* end confdefs.h. */ | |
7934 | #include <ctype.h> | |
7935 | #include <stdlib.h> | |
7936 | #if ((' ' & 0x0FF) == 0x020) | |
7937 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7938 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7939 | #else | |
7940 | # define ISLOWER(c) \ | |
7941 | (('a' <= (c) && (c) <= 'i') \ | |
7942 | || ('j' <= (c) && (c) <= 'r') \ | |
7943 | || ('s' <= (c) && (c) <= 'z')) | |
7944 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7945 | #endif | |
7946 | ||
7947 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7948 | int | |
7949 | main () | |
7950 | { | |
7951 | int i; | |
7952 | for (i = 0; i < 256; i++) | |
7953 | if (XOR (islower (i), ISLOWER (i)) | |
7954 | || toupper (i) != TOUPPER (i)) | |
7955 | return 2; | |
7956 | return 0; | |
7957 | } | |
7958 | _ACEOF | |
7959 | if ac_fn_c_try_run "$LINENO"; then : | |
7960 | ||
7961 | else | |
7962 | ac_cv_header_stdc=no | |
7963 | fi | |
7964 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7965 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7966 | fi | |
7967 | ||
7968 | fi | |
7969 | fi | |
7970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
7971 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7972 | if test $ac_cv_header_stdc = yes; then | |
7973 | ||
7974 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
7975 | ||
7976 | fi | |
7977 | ||
7978 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
7979 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
7980 | inttypes.h stdint.h unistd.h | |
7981 | do : | |
7982 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7983 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7984 | " | |
7985 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
7986 | cat >>confdefs.h <<_ACEOF | |
7987 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7988 | _ACEOF | |
7989 | ||
7990 | fi | |
7991 | ||
7992 | done | |
7993 | ||
7994 | ||
7995 | for ac_header in dlfcn.h | |
7996 | do : | |
7997 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7998 | " | |
7999 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8000 | cat >>confdefs.h <<_ACEOF | |
8001 | #define HAVE_DLFCN_H 1 | |
8002 | _ACEOF | |
8003 | ||
8004 | fi | |
8005 | ||
8006 | done | |
8007 | ||
8008 | ||
8009 | ||
8010 | ||
8011 | ||
8012 | # Set options | |
8013 | ||
8014 | ||
8015 | ||
8016 | enable_dlopen=no | |
8017 | ||
8018 | ||
8019 | enable_win32_dll=no | |
8020 | ||
8021 | ||
8022 | # Check whether --enable-shared was given. | |
8023 | if test "${enable_shared+set}" = set; then : | |
8024 | enableval=$enable_shared; p=${PACKAGE-default} | |
8025 | case $enableval in | |
8026 | yes) enable_shared=yes ;; | |
8027 | no) enable_shared=no ;; | |
8028 | *) | |
8029 | enable_shared=no | |
8030 | # Look at the argument we got. We use all the common list separators. | |
3258f645 | 8031 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
904dbe44 | 8032 | for pkg in $enableval; do |
3258f645 | 8033 | IFS=$lt_save_ifs |
904dbe44 CIK |
8034 | if test "X$pkg" = "X$p"; then |
8035 | enable_shared=yes | |
8036 | fi | |
8037 | done | |
3258f645 | 8038 | IFS=$lt_save_ifs |
904dbe44 CIK |
8039 | ;; |
8040 | esac | |
8041 | else | |
8042 | enable_shared=yes | |
8043 | fi | |
8044 | ||
8045 | ||
8046 | ||
8047 | ||
8048 | ||
8049 | ||
8050 | ||
8051 | ||
8052 | ||
8053 | # Check whether --enable-static was given. | |
8054 | if test "${enable_static+set}" = set; then : | |
8055 | enableval=$enable_static; p=${PACKAGE-default} | |
8056 | case $enableval in | |
8057 | yes) enable_static=yes ;; | |
8058 | no) enable_static=no ;; | |
8059 | *) | |
8060 | enable_static=no | |
8061 | # Look at the argument we got. We use all the common list separators. | |
3258f645 | 8062 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
904dbe44 | 8063 | for pkg in $enableval; do |
3258f645 | 8064 | IFS=$lt_save_ifs |
904dbe44 CIK |
8065 | if test "X$pkg" = "X$p"; then |
8066 | enable_static=yes | |
8067 | fi | |
8068 | done | |
3258f645 | 8069 | IFS=$lt_save_ifs |
904dbe44 CIK |
8070 | ;; |
8071 | esac | |
8072 | else | |
8073 | enable_static=yes | |
8074 | fi | |
8075 | ||
8076 | ||
8077 | ||
8078 | ||
8079 | ||
8080 | ||
8081 | ||
8082 | ||
8083 | ||
8084 | ||
8085 | # Check whether --with-pic was given. | |
8086 | if test "${with_pic+set}" = set; then : | |
8087 | withval=$with_pic; lt_p=${PACKAGE-default} | |
8088 | case $withval in | |
8089 | yes|no) pic_mode=$withval ;; | |
8090 | *) | |
8091 | pic_mode=default | |
8092 | # Look at the argument we got. We use all the common list separators. | |
3258f645 | 8093 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
904dbe44 | 8094 | for lt_pkg in $withval; do |
3258f645 | 8095 | IFS=$lt_save_ifs |
904dbe44 CIK |
8096 | if test "X$lt_pkg" = "X$lt_p"; then |
8097 | pic_mode=yes | |
8098 | fi | |
8099 | done | |
3258f645 | 8100 | IFS=$lt_save_ifs |
904dbe44 CIK |
8101 | ;; |
8102 | esac | |
8103 | else | |
8104 | pic_mode=default | |
8105 | fi | |
8106 | ||
8107 | ||
904dbe44 CIK |
8108 | |
8109 | ||
8110 | ||
8111 | ||
8112 | ||
8113 | ||
8114 | # Check whether --enable-fast-install was given. | |
8115 | if test "${enable_fast_install+set}" = set; then : | |
8116 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8117 | case $enableval in | |
8118 | yes) enable_fast_install=yes ;; | |
8119 | no) enable_fast_install=no ;; | |
8120 | *) | |
8121 | enable_fast_install=no | |
8122 | # Look at the argument we got. We use all the common list separators. | |
3258f645 | 8123 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
904dbe44 | 8124 | for pkg in $enableval; do |
3258f645 | 8125 | IFS=$lt_save_ifs |
904dbe44 CIK |
8126 | if test "X$pkg" = "X$p"; then |
8127 | enable_fast_install=yes | |
8128 | fi | |
8129 | done | |
3258f645 | 8130 | IFS=$lt_save_ifs |
904dbe44 CIK |
8131 | ;; |
8132 | esac | |
8133 | else | |
8134 | enable_fast_install=yes | |
8135 | fi | |
8136 | ||
8137 | ||
8138 | ||
8139 | ||
8140 | ||
8141 | ||
8142 | ||
8143 | ||
3258f645 TG |
8144 | shared_archive_member_spec= |
8145 | case $host,$enable_shared in | |
8146 | power*-*-aix[5-9]*,yes) | |
8147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
8148 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
8149 | ||
8150 | # Check whether --with-aix-soname was given. | |
8151 | if test "${with_aix_soname+set}" = set; then : | |
8152 | withval=$with_aix_soname; case $withval in | |
8153 | aix|svr4|both) | |
8154 | ;; | |
8155 | *) | |
8156 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
8157 | ;; | |
8158 | esac | |
8159 | lt_cv_with_aix_soname=$with_aix_soname | |
8160 | else | |
8161 | if ${lt_cv_with_aix_soname+:} false; then : | |
8162 | $as_echo_n "(cached) " >&6 | |
8163 | else | |
8164 | lt_cv_with_aix_soname=aix | |
8165 | fi | |
8166 | ||
8167 | with_aix_soname=$lt_cv_with_aix_soname | |
8168 | fi | |
8169 | ||
8170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
8171 | $as_echo "$with_aix_soname" >&6; } | |
8172 | if test aix != "$with_aix_soname"; then | |
8173 | # For the AIX way of multilib, we name the shared archive member | |
8174 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
8175 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
8176 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
8177 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
8178 | if test 64 = "${OBJECT_MODE-32}"; then | |
8179 | shared_archive_member_spec=shr_64 | |
8180 | else | |
8181 | shared_archive_member_spec=shr | |
8182 | fi | |
8183 | fi | |
8184 | ;; | |
8185 | *) | |
8186 | with_aix_soname=aix | |
8187 | ;; | |
8188 | esac | |
8189 | ||
8190 | ||
8191 | ||
8192 | ||
8193 | ||
8194 | ||
8195 | ||
904dbe44 CIK |
8196 | |
8197 | ||
8198 | ||
8199 | # This can be used to rebuild libtool when needed | |
3258f645 | 8200 | LIBTOOL_DEPS=$ltmain |
904dbe44 CIK |
8201 | |
8202 | # Always use our own libtool. | |
8203 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8204 | ||
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 | test -z "$LN_S" && LN_S="ln -s" | |
8235 | ||
8236 | ||
8237 | ||
8238 | ||
8239 | ||
8240 | ||
8241 | ||
8242 | ||
8243 | ||
8244 | ||
8245 | ||
8246 | ||
8247 | ||
8248 | ||
3258f645 | 8249 | if test -n "${ZSH_VERSION+set}"; then |
904dbe44 CIK |
8250 | setopt NO_GLOB_SUBST |
8251 | fi | |
8252 | ||
8253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
8254 | $as_echo_n "checking for objdir... " >&6; } | |
8255 | if ${lt_cv_objdir+:} false; then : | |
8256 | $as_echo_n "(cached) " >&6 | |
8257 | else | |
8258 | rm -f .libs 2>/dev/null | |
8259 | mkdir .libs 2>/dev/null | |
8260 | if test -d .libs; then | |
8261 | lt_cv_objdir=.libs | |
8262 | else | |
8263 | # MS-DOS does not allow filenames that begin with a dot. | |
8264 | lt_cv_objdir=_libs | |
8265 | fi | |
8266 | rmdir .libs 2>/dev/null | |
8267 | fi | |
8268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8269 | $as_echo "$lt_cv_objdir" >&6; } | |
8270 | objdir=$lt_cv_objdir | |
8271 | ||
8272 | ||
8273 | ||
8274 | ||
8275 | ||
8276 | cat >>confdefs.h <<_ACEOF | |
8277 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8278 | _ACEOF | |
8279 | ||
8280 | ||
8281 | ||
8282 | ||
8283 | case $host_os in | |
8284 | aix3*) | |
8285 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8286 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8287 | # vanish in a puff of smoke. | |
3258f645 | 8288 | if test set != "${COLLECT_NAMES+set}"; then |
904dbe44 CIK |
8289 | COLLECT_NAMES= |
8290 | export COLLECT_NAMES | |
8291 | fi | |
8292 | ;; | |
8293 | esac | |
8294 | ||
8295 | # Global variables: | |
8296 | ofile=libtool | |
8297 | can_build_shared=yes | |
8298 | ||
3258f645 | 8299 | # All known linkers require a '.a' archive for static linking (except MSVC, |
904dbe44 CIK |
8300 | # which needs '.lib'). |
8301 | libext=a | |
8302 | ||
3258f645 | 8303 | with_gnu_ld=$lt_cv_prog_gnu_ld |
904dbe44 | 8304 | |
3258f645 TG |
8305 | old_CC=$CC |
8306 | old_CFLAGS=$CFLAGS | |
904dbe44 CIK |
8307 | |
8308 | # Set sane defaults for various variables | |
8309 | test -z "$CC" && CC=cc | |
8310 | test -z "$LTCC" && LTCC=$CC | |
8311 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8312 | test -z "$LD" && LD=ld | |
8313 | test -z "$ac_objext" && ac_objext=o | |
8314 | ||
3258f645 TG |
8315 | func_cc_basename $compiler |
8316 | cc_basename=$func_cc_basename_result | |
904dbe44 CIK |
8317 | |
8318 | ||
8319 | # Only perform the check for file, if the check method requires it | |
8320 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8321 | case $deplibs_check_method in | |
8322 | file_magic*) | |
8323 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8325 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8326 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8327 | $as_echo_n "(cached) " >&6 | |
8328 | else | |
8329 | case $MAGIC_CMD in | |
8330 | [\\/*] | ?:[\\/]*) | |
3258f645 | 8331 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
904dbe44 CIK |
8332 | ;; |
8333 | *) | |
3258f645 TG |
8334 | lt_save_MAGIC_CMD=$MAGIC_CMD |
8335 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
904dbe44 CIK |
8336 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8337 | for ac_dir in $ac_dummy; do | |
3258f645 | 8338 | IFS=$lt_save_ifs |
904dbe44 | 8339 | test -z "$ac_dir" && ac_dir=. |
3258f645 TG |
8340 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
8341 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
904dbe44 CIK |
8342 | if test -n "$file_magic_test_file"; then |
8343 | case $deplibs_check_method in | |
8344 | "file_magic "*) | |
8345 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
3258f645 | 8346 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
904dbe44 CIK |
8347 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8348 | $EGREP "$file_magic_regex" > /dev/null; then | |
8349 | : | |
8350 | else | |
8351 | cat <<_LT_EOF 1>&2 | |
8352 | ||
8353 | *** Warning: the command libtool uses to detect shared libraries, | |
8354 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8355 | *** The result is that libtool may fail to recognize shared libraries | |
8356 | *** as such. This will affect the creation of libtool libraries that | |
8357 | *** depend on shared libraries, but programs linked with such libtool | |
8358 | *** libraries will work regardless of this problem. Nevertheless, you | |
8359 | *** may want to report the problem to your system manager and/or to | |
8360 | *** bug-libtool@gnu.org | |
8361 | ||
8362 | _LT_EOF | |
8363 | fi ;; | |
8364 | esac | |
8365 | fi | |
8366 | break | |
8367 | fi | |
8368 | done | |
3258f645 TG |
8369 | IFS=$lt_save_ifs |
8370 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
904dbe44 CIK |
8371 | ;; |
8372 | esac | |
8373 | fi | |
8374 | ||
3258f645 | 8375 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
904dbe44 CIK |
8376 | if test -n "$MAGIC_CMD"; then |
8377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8378 | $as_echo "$MAGIC_CMD" >&6; } | |
8379 | else | |
8380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8381 | $as_echo "no" >&6; } | |
8382 | fi | |
8383 | ||
8384 | ||
8385 | ||
8386 | ||
8387 | ||
8388 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8389 | if test -n "$ac_tool_prefix"; then | |
8390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8391 | $as_echo_n "checking for file... " >&6; } | |
8392 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8393 | $as_echo_n "(cached) " >&6 | |
8394 | else | |
8395 | case $MAGIC_CMD in | |
8396 | [\\/*] | ?:[\\/]*) | |
3258f645 | 8397 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
904dbe44 CIK |
8398 | ;; |
8399 | *) | |
3258f645 TG |
8400 | lt_save_MAGIC_CMD=$MAGIC_CMD |
8401 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
904dbe44 CIK |
8402 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8403 | for ac_dir in $ac_dummy; do | |
3258f645 | 8404 | IFS=$lt_save_ifs |
904dbe44 | 8405 | test -z "$ac_dir" && ac_dir=. |
3258f645 TG |
8406 | if test -f "$ac_dir/file"; then |
8407 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
904dbe44 CIK |
8408 | if test -n "$file_magic_test_file"; then |
8409 | case $deplibs_check_method in | |
8410 | "file_magic "*) | |
8411 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
3258f645 | 8412 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
904dbe44 CIK |
8413 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8414 | $EGREP "$file_magic_regex" > /dev/null; then | |
8415 | : | |
8416 | else | |
8417 | cat <<_LT_EOF 1>&2 | |
8418 | ||
8419 | *** Warning: the command libtool uses to detect shared libraries, | |
8420 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8421 | *** The result is that libtool may fail to recognize shared libraries | |
8422 | *** as such. This will affect the creation of libtool libraries that | |
8423 | *** depend on shared libraries, but programs linked with such libtool | |
8424 | *** libraries will work regardless of this problem. Nevertheless, you | |
8425 | *** may want to report the problem to your system manager and/or to | |
8426 | *** bug-libtool@gnu.org | |
8427 | ||
8428 | _LT_EOF | |
8429 | fi ;; | |
8430 | esac | |
8431 | fi | |
8432 | break | |
8433 | fi | |
8434 | done | |
3258f645 TG |
8435 | IFS=$lt_save_ifs |
8436 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
904dbe44 CIK |
8437 | ;; |
8438 | esac | |
8439 | fi | |
8440 | ||
3258f645 | 8441 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
904dbe44 CIK |
8442 | if test -n "$MAGIC_CMD"; then |
8443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8444 | $as_echo "$MAGIC_CMD" >&6; } | |
8445 | else | |
8446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8447 | $as_echo "no" >&6; } | |
8448 | fi | |
8449 | ||
8450 | ||
8451 | else | |
8452 | MAGIC_CMD=: | |
8453 | fi | |
8454 | fi | |
8455 | ||
8456 | fi | |
8457 | ;; | |
8458 | esac | |
8459 | ||
8460 | # Use C for the default configuration in the libtool script | |
8461 | ||
3258f645 | 8462 | lt_save_CC=$CC |
904dbe44 CIK |
8463 | ac_ext=c |
8464 | ac_cpp='$CPP $CPPFLAGS' | |
8465 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8466 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8467 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8468 | ||
8469 | ||
8470 | # Source file extension for C test sources. | |
8471 | ac_ext=c | |
8472 | ||
8473 | # Object file extension for compiled C test sources. | |
8474 | objext=o | |
8475 | objext=$objext | |
8476 | ||
8477 | # Code to be used in simple compile tests | |
8478 | lt_simple_compile_test_code="int some_variable = 0;" | |
8479 | ||
8480 | # Code to be used in simple link tests | |
8481 | lt_simple_link_test_code='int main(){return(0);}' | |
8482 | ||
8483 | ||
8484 | ||
8485 | ||
8486 | ||
8487 | ||
8488 | ||
8489 | # If no C compiler was specified, use CC. | |
8490 | LTCC=${LTCC-"$CC"} | |
8491 | ||
8492 | # If no C compiler flags were specified, use CFLAGS. | |
8493 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8494 | ||
8495 | # Allow CC to be a program name with arguments. | |
8496 | compiler=$CC | |
8497 | ||
8498 | # Save the default compiler, since it gets overwritten when the other | |
8499 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8500 | compiler_DEFAULT=$CC | |
8501 | ||
8502 | # save warnings/boilerplate of simple test code | |
8503 | ac_outfile=conftest.$ac_objext | |
8504 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8505 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8506 | _lt_compiler_boilerplate=`cat conftest.err` | |
8507 | $RM conftest* | |
8508 | ||
8509 | ac_outfile=conftest.$ac_objext | |
8510 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8511 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8512 | _lt_linker_boilerplate=`cat conftest.err` | |
8513 | $RM -r conftest* | |
8514 | ||
8515 | ||
8516 | ## CAVEAT EMPTOR: | |
8517 | ## There is no encapsulation within the following macros, do not change | |
8518 | ## the running order or otherwise move them around unless you know exactly | |
8519 | ## what you are doing... | |
8520 | if test -n "$compiler"; then | |
8521 | ||
8522 | lt_prog_compiler_no_builtin_flag= | |
8523 | ||
3258f645 | 8524 | if test yes = "$GCC"; then |
904dbe44 CIK |
8525 | case $cc_basename in |
8526 | nvcc*) | |
8527 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8528 | *) | |
8529 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8530 | esac | |
8531 | ||
8532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8533 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8534 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
8535 | $as_echo_n "(cached) " >&6 | |
8536 | else | |
8537 | lt_cv_prog_compiler_rtti_exceptions=no | |
8538 | ac_outfile=conftest.$ac_objext | |
8539 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
3258f645 | 8540 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
904dbe44 CIK |
8541 | # Insert the option either (1) after the last *FLAGS variable, or |
8542 | # (2) before a word containing "conftest.", or (3) at the end. | |
8543 | # Note that $ac_compile itself does not contain backslashes and begins | |
8544 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8545 | # The option is referenced via a variable to avoid confusing sed. | |
8546 | lt_compile=`echo "$ac_compile" | $SED \ | |
8547 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8548 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8549 | -e 's:$: $lt_compiler_flag:'` | |
8550 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8551 | (eval "$lt_compile" 2>conftest.err) | |
8552 | ac_status=$? | |
8553 | cat conftest.err >&5 | |
8554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8555 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8556 | # The compiler can only warn and ignore the option if not recognized | |
8557 | # So say no if there are warnings other than the usual output. | |
8558 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8559 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8560 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8561 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8562 | fi | |
8563 | fi | |
8564 | $RM conftest* | |
8565 | ||
8566 | fi | |
8567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8568 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8569 | ||
3258f645 | 8570 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
904dbe44 CIK |
8571 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
8572 | else | |
8573 | : | |
8574 | fi | |
8575 | ||
8576 | fi | |
8577 | ||
8578 | ||
8579 | ||
8580 | ||
8581 | ||
8582 | ||
8583 | lt_prog_compiler_wl= | |
8584 | lt_prog_compiler_pic= | |
8585 | lt_prog_compiler_static= | |
8586 | ||
8587 | ||
3258f645 | 8588 | if test yes = "$GCC"; then |
904dbe44 CIK |
8589 | lt_prog_compiler_wl='-Wl,' |
8590 | lt_prog_compiler_static='-static' | |
8591 | ||
8592 | case $host_os in | |
8593 | aix*) | |
8594 | # All AIX code is PIC. | |
3258f645 | 8595 | if test ia64 = "$host_cpu"; then |
904dbe44 CIK |
8596 | # AIX 5 now supports IA64 processor |
8597 | lt_prog_compiler_static='-Bstatic' | |
8598 | fi | |
3258f645 | 8599 | lt_prog_compiler_pic='-fPIC' |
904dbe44 CIK |
8600 | ;; |
8601 | ||
8602 | amigaos*) | |
8603 | case $host_cpu in | |
8604 | powerpc) | |
8605 | # see comment about AmigaOS4 .so support | |
8606 | lt_prog_compiler_pic='-fPIC' | |
8607 | ;; | |
8608 | m68k) | |
8609 | # FIXME: we need at least 68020 code to build shared libraries, but | |
3258f645 TG |
8610 | # adding the '-m68020' flag to GCC prevents building anything better, |
8611 | # like '-m68040'. | |
904dbe44 CIK |
8612 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
8613 | ;; | |
8614 | esac | |
8615 | ;; | |
8616 | ||
8617 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8618 | # PIC is the default for these OSes. | |
8619 | ;; | |
8620 | ||
8621 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8622 | # This hack is so that the source file can tell whether it is being | |
8623 | # built for inclusion in a dll (and should export symbols for example). | |
8624 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8625 | # (--disable-auto-import) libraries | |
8626 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
3258f645 TG |
8627 | case $host_os in |
8628 | os2*) | |
8629 | lt_prog_compiler_static='$wl-static' | |
8630 | ;; | |
8631 | esac | |
904dbe44 CIK |
8632 | ;; |
8633 | ||
8634 | darwin* | rhapsody*) | |
8635 | # PIC is the default on this platform | |
8636 | # Common symbols not allowed in MH_DYLIB files | |
8637 | lt_prog_compiler_pic='-fno-common' | |
8638 | ;; | |
8639 | ||
8640 | haiku*) | |
8641 | # PIC is the default for Haiku. | |
8642 | # The "-static" flag exists, but is broken. | |
8643 | lt_prog_compiler_static= | |
8644 | ;; | |
8645 | ||
8646 | hpux*) | |
8647 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8648 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8649 | # sets the default TLS model and affects inlining. | |
8650 | case $host_cpu in | |
8651 | hppa*64*) | |
8652 | # +Z the default | |
8653 | ;; | |
8654 | *) | |
8655 | lt_prog_compiler_pic='-fPIC' | |
8656 | ;; | |
8657 | esac | |
8658 | ;; | |
8659 | ||
8660 | interix[3-9]*) | |
8661 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8662 | # Instead, we relocate shared libraries at runtime. | |
8663 | ;; | |
8664 | ||
8665 | msdosdjgpp*) | |
8666 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8667 | # on systems that don't support them. | |
8668 | lt_prog_compiler_can_build_shared=no | |
8669 | enable_shared=no | |
8670 | ;; | |
8671 | ||
8672 | *nto* | *qnx*) | |
8673 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8674 | # it will coredump. | |
8675 | lt_prog_compiler_pic='-fPIC -shared' | |
8676 | ;; | |
8677 | ||
8678 | sysv4*MP*) | |
8679 | if test -d /usr/nec; then | |
8680 | lt_prog_compiler_pic=-Kconform_pic | |
8681 | fi | |
8682 | ;; | |
8683 | ||
8684 | *) | |
8685 | lt_prog_compiler_pic='-fPIC' | |
8686 | ;; | |
8687 | esac | |
8688 | ||
8689 | case $cc_basename in | |
8690 | nvcc*) # Cuda Compiler Driver 2.2 | |
8691 | lt_prog_compiler_wl='-Xlinker ' | |
8692 | if test -n "$lt_prog_compiler_pic"; then | |
8693 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
8694 | fi | |
8695 | ;; | |
8696 | esac | |
8697 | else | |
8698 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8699 | case $host_os in | |
8700 | aix*) | |
8701 | lt_prog_compiler_wl='-Wl,' | |
3258f645 | 8702 | if test ia64 = "$host_cpu"; then |
904dbe44 CIK |
8703 | # AIX 5 now supports IA64 processor |
8704 | lt_prog_compiler_static='-Bstatic' | |
8705 | else | |
8706 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8707 | fi | |
8708 | ;; | |
8709 | ||
3258f645 TG |
8710 | darwin* | rhapsody*) |
8711 | # PIC is the default on this platform | |
8712 | # Common symbols not allowed in MH_DYLIB files | |
8713 | lt_prog_compiler_pic='-fno-common' | |
8714 | case $cc_basename in | |
8715 | nagfor*) | |
8716 | # NAG Fortran compiler | |
8717 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8718 | lt_prog_compiler_pic='-PIC' | |
8719 | lt_prog_compiler_static='-Bstatic' | |
8720 | ;; | |
8721 | esac | |
8722 | ;; | |
8723 | ||
904dbe44 CIK |
8724 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8725 | # This hack is so that the source file can tell whether it is being | |
8726 | # built for inclusion in a dll (and should export symbols for example). | |
8727 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
3258f645 TG |
8728 | case $host_os in |
8729 | os2*) | |
8730 | lt_prog_compiler_static='$wl-static' | |
8731 | ;; | |
8732 | esac | |
904dbe44 CIK |
8733 | ;; |
8734 | ||
8735 | hpux9* | hpux10* | hpux11*) | |
8736 | lt_prog_compiler_wl='-Wl,' | |
8737 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8738 | # not for PA HP-UX. | |
8739 | case $host_cpu in | |
8740 | hppa*64*|ia64*) | |
8741 | # +Z the default | |
8742 | ;; | |
8743 | *) | |
8744 | lt_prog_compiler_pic='+Z' | |
8745 | ;; | |
8746 | esac | |
8747 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
3258f645 | 8748 | lt_prog_compiler_static='$wl-a ${wl}archive' |
904dbe44 CIK |
8749 | ;; |
8750 | ||
8751 | irix5* | irix6* | nonstopux*) | |
8752 | lt_prog_compiler_wl='-Wl,' | |
8753 | # PIC (with -KPIC) is the default. | |
8754 | lt_prog_compiler_static='-non_shared' | |
8755 | ;; | |
8756 | ||
8757 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
8758 | case $cc_basename in | |
3258f645 | 8759 | # old Intel for x86_64, which still supported -KPIC. |
904dbe44 CIK |
8760 | ecc*) |
8761 | lt_prog_compiler_wl='-Wl,' | |
8762 | lt_prog_compiler_pic='-KPIC' | |
8763 | lt_prog_compiler_static='-static' | |
8764 | ;; | |
8765 | # icc used to be incompatible with GCC. | |
8766 | # ICC 10 doesn't accept -KPIC any more. | |
8767 | icc* | ifort*) | |
8768 | lt_prog_compiler_wl='-Wl,' | |
8769 | lt_prog_compiler_pic='-fPIC' | |
8770 | lt_prog_compiler_static='-static' | |
8771 | ;; | |
8772 | # Lahey Fortran 8.1. | |
8773 | lf95*) | |
8774 | lt_prog_compiler_wl='-Wl,' | |
8775 | lt_prog_compiler_pic='--shared' | |
8776 | lt_prog_compiler_static='--static' | |
8777 | ;; | |
8778 | nagfor*) | |
8779 | # NAG Fortran compiler | |
8780 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8781 | lt_prog_compiler_pic='-PIC' | |
8782 | lt_prog_compiler_static='-Bstatic' | |
8783 | ;; | |
3258f645 TG |
8784 | tcc*) |
8785 | # Fabrice Bellard et al's Tiny C Compiler | |
8786 | lt_prog_compiler_wl='-Wl,' | |
8787 | lt_prog_compiler_pic='-fPIC' | |
8788 | lt_prog_compiler_static='-static' | |
8789 | ;; | |
904dbe44 CIK |
8790 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
8791 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8792 | # which looks to be a dead project) | |
8793 | lt_prog_compiler_wl='-Wl,' | |
8794 | lt_prog_compiler_pic='-fpic' | |
8795 | lt_prog_compiler_static='-Bstatic' | |
8796 | ;; | |
8797 | ccc*) | |
8798 | lt_prog_compiler_wl='-Wl,' | |
8799 | # All Alpha code is PIC. | |
8800 | lt_prog_compiler_static='-non_shared' | |
8801 | ;; | |
8802 | xl* | bgxl* | bgf* | mpixl*) | |
8803 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8804 | lt_prog_compiler_wl='-Wl,' | |
8805 | lt_prog_compiler_pic='-qpic' | |
8806 | lt_prog_compiler_static='-qstaticlink' | |
8807 | ;; | |
8808 | *) | |
8809 | case `$CC -V 2>&1 | sed 5q` in | |
8810 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
8811 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8812 | lt_prog_compiler_pic='-KPIC' | |
8813 | lt_prog_compiler_static='-Bstatic' | |
8814 | lt_prog_compiler_wl='' | |
8815 | ;; | |
8816 | *Sun\ F* | *Sun*Fortran*) | |
8817 | lt_prog_compiler_pic='-KPIC' | |
8818 | lt_prog_compiler_static='-Bstatic' | |
8819 | lt_prog_compiler_wl='-Qoption ld ' | |
8820 | ;; | |
8821 | *Sun\ C*) | |
8822 | # Sun C 5.9 | |
8823 | lt_prog_compiler_pic='-KPIC' | |
8824 | lt_prog_compiler_static='-Bstatic' | |
8825 | lt_prog_compiler_wl='-Wl,' | |
8826 | ;; | |
8827 | *Intel*\ [CF]*Compiler*) | |
8828 | lt_prog_compiler_wl='-Wl,' | |
8829 | lt_prog_compiler_pic='-fPIC' | |
8830 | lt_prog_compiler_static='-static' | |
8831 | ;; | |
8832 | *Portland\ Group*) | |
8833 | lt_prog_compiler_wl='-Wl,' | |
8834 | lt_prog_compiler_pic='-fpic' | |
8835 | lt_prog_compiler_static='-Bstatic' | |
8836 | ;; | |
8837 | esac | |
8838 | ;; | |
8839 | esac | |
8840 | ;; | |
8841 | ||
8842 | newsos6) | |
8843 | lt_prog_compiler_pic='-KPIC' | |
8844 | lt_prog_compiler_static='-Bstatic' | |
8845 | ;; | |
8846 | ||
8847 | *nto* | *qnx*) | |
8848 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8849 | # it will coredump. | |
8850 | lt_prog_compiler_pic='-fPIC -shared' | |
8851 | ;; | |
8852 | ||
8853 | osf3* | osf4* | osf5*) | |
8854 | lt_prog_compiler_wl='-Wl,' | |
8855 | # All OSF/1 code is PIC. | |
8856 | lt_prog_compiler_static='-non_shared' | |
8857 | ;; | |
8858 | ||
8859 | rdos*) | |
8860 | lt_prog_compiler_static='-non_shared' | |
8861 | ;; | |
8862 | ||
8863 | solaris*) | |
8864 | lt_prog_compiler_pic='-KPIC' | |
8865 | lt_prog_compiler_static='-Bstatic' | |
8866 | case $cc_basename in | |
8867 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
8868 | lt_prog_compiler_wl='-Qoption ld ';; | |
8869 | *) | |
8870 | lt_prog_compiler_wl='-Wl,';; | |
8871 | esac | |
8872 | ;; | |
8873 | ||
8874 | sunos4*) | |
8875 | lt_prog_compiler_wl='-Qoption ld ' | |
8876 | lt_prog_compiler_pic='-PIC' | |
8877 | lt_prog_compiler_static='-Bstatic' | |
8878 | ;; | |
8879 | ||
8880 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8881 | lt_prog_compiler_wl='-Wl,' | |
8882 | lt_prog_compiler_pic='-KPIC' | |
8883 | lt_prog_compiler_static='-Bstatic' | |
8884 | ;; | |
8885 | ||
8886 | sysv4*MP*) | |
3258f645 | 8887 | if test -d /usr/nec; then |
904dbe44 CIK |
8888 | lt_prog_compiler_pic='-Kconform_pic' |
8889 | lt_prog_compiler_static='-Bstatic' | |
8890 | fi | |
8891 | ;; | |
8892 | ||
8893 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8894 | lt_prog_compiler_wl='-Wl,' | |
8895 | lt_prog_compiler_pic='-KPIC' | |
8896 | lt_prog_compiler_static='-Bstatic' | |
8897 | ;; | |
8898 | ||
8899 | unicos*) | |
8900 | lt_prog_compiler_wl='-Wl,' | |
8901 | lt_prog_compiler_can_build_shared=no | |
8902 | ;; | |
8903 | ||
8904 | uts4*) | |
8905 | lt_prog_compiler_pic='-pic' | |
8906 | lt_prog_compiler_static='-Bstatic' | |
8907 | ;; | |
8908 | ||
8909 | *) | |
8910 | lt_prog_compiler_can_build_shared=no | |
8911 | ;; | |
8912 | esac | |
8913 | fi | |
8914 | ||
8915 | case $host_os in | |
3258f645 | 8916 | # For platforms that do not support PIC, -DPIC is meaningless: |
904dbe44 CIK |
8917 | *djgpp*) |
8918 | lt_prog_compiler_pic= | |
8919 | ;; | |
8920 | *) | |
8921 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8922 | ;; | |
8923 | esac | |
8924 | ||
8925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8926 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8927 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
8928 | $as_echo_n "(cached) " >&6 | |
8929 | else | |
8930 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8931 | fi | |
8932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8933 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8934 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
8935 | ||
8936 | # | |
8937 | # Check to make sure the PIC flag actually works. | |
8938 | # | |
8939 | if test -n "$lt_prog_compiler_pic"; then | |
8940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8941 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8942 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
8943 | $as_echo_n "(cached) " >&6 | |
8944 | else | |
8945 | lt_cv_prog_compiler_pic_works=no | |
8946 | ac_outfile=conftest.$ac_objext | |
8947 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
3258f645 | 8948 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
904dbe44 CIK |
8949 | # Insert the option either (1) after the last *FLAGS variable, or |
8950 | # (2) before a word containing "conftest.", or (3) at the end. | |
8951 | # Note that $ac_compile itself does not contain backslashes and begins | |
8952 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8953 | # The option is referenced via a variable to avoid confusing sed. | |
8954 | lt_compile=`echo "$ac_compile" | $SED \ | |
8955 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8956 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8957 | -e 's:$: $lt_compiler_flag:'` | |
8958 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8959 | (eval "$lt_compile" 2>conftest.err) | |
8960 | ac_status=$? | |
8961 | cat conftest.err >&5 | |
8962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8963 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8964 | # The compiler can only warn and ignore the option if not recognized | |
8965 | # So say no if there are warnings other than the usual output. | |
8966 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8967 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8968 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8969 | lt_cv_prog_compiler_pic_works=yes | |
8970 | fi | |
8971 | fi | |
8972 | $RM conftest* | |
8973 | ||
8974 | fi | |
8975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8976 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8977 | ||
3258f645 | 8978 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
904dbe44 CIK |
8979 | case $lt_prog_compiler_pic in |
8980 | "" | " "*) ;; | |
8981 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8982 | esac | |
8983 | else | |
8984 | lt_prog_compiler_pic= | |
8985 | lt_prog_compiler_can_build_shared=no | |
8986 | fi | |
8987 | ||
8988 | fi | |
8989 | ||
8990 | ||
8991 | ||
8992 | ||
8993 | ||
8994 | ||
8995 | ||
8996 | ||
8997 | ||
8998 | ||
8999 | ||
9000 | # | |
9001 | # Check to make sure the static flag actually works. | |
9002 | # | |
9003 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9005 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9006 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9007 | $as_echo_n "(cached) " >&6 | |
9008 | else | |
9009 | lt_cv_prog_compiler_static_works=no | |
3258f645 | 9010 | save_LDFLAGS=$LDFLAGS |
904dbe44 CIK |
9011 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
9012 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9013 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9014 | # The linker can only warn and ignore the option if not recognized | |
9015 | # So say no if there are warnings | |
9016 | if test -s conftest.err; then | |
9017 | # Append any errors to the config.log. | |
9018 | cat conftest.err 1>&5 | |
9019 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9020 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9021 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9022 | lt_cv_prog_compiler_static_works=yes | |
9023 | fi | |
9024 | else | |
9025 | lt_cv_prog_compiler_static_works=yes | |
9026 | fi | |
9027 | fi | |
9028 | $RM -r conftest* | |
3258f645 | 9029 | LDFLAGS=$save_LDFLAGS |
904dbe44 CIK |
9030 | |
9031 | fi | |
9032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9033 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9034 | ||
3258f645 | 9035 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
904dbe44 CIK |
9036 | : |
9037 | else | |
9038 | lt_prog_compiler_static= | |
9039 | fi | |
9040 | ||
9041 | ||
9042 | ||
9043 | ||
9044 | ||
9045 | ||
9046 | ||
9047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9048 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9049 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9050 | $as_echo_n "(cached) " >&6 | |
9051 | else | |
9052 | lt_cv_prog_compiler_c_o=no | |
9053 | $RM -r conftest 2>/dev/null | |
9054 | mkdir conftest | |
9055 | cd conftest | |
9056 | mkdir out | |
9057 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9058 | ||
9059 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9060 | # Insert the option either (1) after the last *FLAGS variable, or | |
9061 | # (2) before a word containing "conftest.", or (3) at the end. | |
9062 | # Note that $ac_compile itself does not contain backslashes and begins | |
9063 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9064 | lt_compile=`echo "$ac_compile" | $SED \ | |
9065 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9066 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9067 | -e 's:$: $lt_compiler_flag:'` | |
9068 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9069 | (eval "$lt_compile" 2>out/conftest.err) | |
9070 | ac_status=$? | |
9071 | cat out/conftest.err >&5 | |
9072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9073 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9074 | then | |
9075 | # The compiler can only warn and ignore the option if not recognized | |
9076 | # So say no if there are warnings | |
9077 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9078 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9079 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9080 | lt_cv_prog_compiler_c_o=yes | |
9081 | fi | |
9082 | fi | |
9083 | chmod u+w . 2>&5 | |
9084 | $RM conftest* | |
9085 | # SGI C++ compiler will create directory out/ii_files/ for | |
9086 | # template instantiation | |
9087 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9088 | $RM out/* && rmdir out | |
9089 | cd .. | |
9090 | $RM -r conftest | |
9091 | $RM conftest* | |
9092 | ||
9093 | fi | |
9094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9095 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9096 | ||
9097 | ||
9098 | ||
9099 | ||
9100 | ||
9101 | ||
9102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9103 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9104 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9105 | $as_echo_n "(cached) " >&6 | |
9106 | else | |
9107 | lt_cv_prog_compiler_c_o=no | |
9108 | $RM -r conftest 2>/dev/null | |
9109 | mkdir conftest | |
9110 | cd conftest | |
9111 | mkdir out | |
9112 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9113 | ||
9114 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9115 | # Insert the option either (1) after the last *FLAGS variable, or | |
9116 | # (2) before a word containing "conftest.", or (3) at the end. | |
9117 | # Note that $ac_compile itself does not contain backslashes and begins | |
9118 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9119 | lt_compile=`echo "$ac_compile" | $SED \ | |
9120 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9121 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9122 | -e 's:$: $lt_compiler_flag:'` | |
9123 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9124 | (eval "$lt_compile" 2>out/conftest.err) | |
9125 | ac_status=$? | |
9126 | cat out/conftest.err >&5 | |
9127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9128 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9129 | then | |
9130 | # The compiler can only warn and ignore the option if not recognized | |
9131 | # So say no if there are warnings | |
9132 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9133 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9134 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9135 | lt_cv_prog_compiler_c_o=yes | |
9136 | fi | |
9137 | fi | |
9138 | chmod u+w . 2>&5 | |
9139 | $RM conftest* | |
9140 | # SGI C++ compiler will create directory out/ii_files/ for | |
9141 | # template instantiation | |
9142 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9143 | $RM out/* && rmdir out | |
9144 | cd .. | |
9145 | $RM -r conftest | |
9146 | $RM conftest* | |
9147 | ||
9148 | fi | |
9149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9150 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9151 | ||
9152 | ||
9153 | ||
9154 | ||
3258f645 TG |
9155 | hard_links=nottested |
9156 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
904dbe44 CIK |
9157 | # do not overwrite the value of need_locks provided by the user |
9158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9159 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9160 | hard_links=yes | |
9161 | $RM conftest* | |
9162 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9163 | touch conftest.a | |
9164 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9165 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9167 | $as_echo "$hard_links" >&6; } | |
3258f645 TG |
9168 | if test no = "$hard_links"; then |
9169 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
9170 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
904dbe44 CIK |
9171 | need_locks=warn |
9172 | fi | |
9173 | else | |
9174 | need_locks=no | |
9175 | fi | |
9176 | ||
9177 | ||
9178 | ||
9179 | ||
9180 | ||
9181 | ||
9182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9183 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9184 | ||
9185 | runpath_var= | |
9186 | allow_undefined_flag= | |
9187 | always_export_symbols=no | |
9188 | archive_cmds= | |
9189 | archive_expsym_cmds= | |
9190 | compiler_needs_object=no | |
9191 | enable_shared_with_static_runtimes=no | |
9192 | export_dynamic_flag_spec= | |
9193 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9194 | hardcode_automatic=no | |
9195 | hardcode_direct=no | |
9196 | hardcode_direct_absolute=no | |
9197 | hardcode_libdir_flag_spec= | |
9198 | hardcode_libdir_separator= | |
9199 | hardcode_minus_L=no | |
9200 | hardcode_shlibpath_var=unsupported | |
9201 | inherit_rpath=no | |
9202 | link_all_deplibs=unknown | |
9203 | module_cmds= | |
9204 | module_expsym_cmds= | |
9205 | old_archive_from_new_cmds= | |
9206 | old_archive_from_expsyms_cmds= | |
9207 | thread_safe_flag_spec= | |
9208 | whole_archive_flag_spec= | |
9209 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9210 | # included in the symbol list | |
9211 | include_expsyms= | |
9212 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
3258f645 TG |
9213 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
9214 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
9215 | # as well as any symbol that contains 'd'. | |
904dbe44 CIK |
9216 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
9217 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9218 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9219 | # the symbol is explicitly referenced. Since portable code cannot | |
9220 | # rely on this symbol name, it's probably fine to never include it in | |
9221 | # preloaded symbol tables. | |
9222 | # Exclude shared library initialization/finalization symbols. | |
9223 | extract_expsyms_cmds= | |
9224 | ||
9225 | case $host_os in | |
9226 | cygwin* | mingw* | pw32* | cegcc*) | |
9227 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9228 | # When not using gcc, we currently assume that we are using | |
9229 | # Microsoft Visual C++. | |
3258f645 | 9230 | if test yes != "$GCC"; then |
904dbe44 CIK |
9231 | with_gnu_ld=no |
9232 | fi | |
9233 | ;; | |
9234 | interix*) | |
9235 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9236 | with_gnu_ld=yes | |
9237 | ;; | |
3258f645 | 9238 | openbsd* | bitrig*) |
904dbe44 CIK |
9239 | with_gnu_ld=no |
9240 | ;; | |
9241 | linux* | k*bsd*-gnu | gnu*) | |
9242 | link_all_deplibs=no | |
9243 | ;; | |
9244 | esac | |
9245 | ||
9246 | ld_shlibs=yes | |
9247 | ||
9248 | # On some targets, GNU ld is compatible enough with the native linker | |
9249 | # that we're better off using the native interface for both. | |
9250 | lt_use_gnu_ld_interface=no | |
3258f645 | 9251 | if test yes = "$with_gnu_ld"; then |
904dbe44 CIK |
9252 | case $host_os in |
9253 | aix*) | |
9254 | # The AIX port of GNU ld has always aspired to compatibility | |
9255 | # with the native linker. However, as the warning in the GNU ld | |
9256 | # block says, versions before 2.19.5* couldn't really create working | |
9257 | # shared libraries, regardless of the interface used. | |
9258 | case `$LD -v 2>&1` in | |
9259 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9260 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9261 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9262 | *) | |
9263 | lt_use_gnu_ld_interface=yes | |
9264 | ;; | |
9265 | esac | |
9266 | ;; | |
9267 | *) | |
9268 | lt_use_gnu_ld_interface=yes | |
9269 | ;; | |
9270 | esac | |
9271 | fi | |
9272 | ||
3258f645 | 9273 | if test yes = "$lt_use_gnu_ld_interface"; then |
904dbe44 | 9274 | # If archive_cmds runs LD, not CC, wlarc should be empty |
3258f645 | 9275 | wlarc='$wl' |
904dbe44 CIK |
9276 | |
9277 | # Set some defaults for GNU ld with shared library support. These | |
9278 | # are reset later if shared libraries are not supported. Putting them | |
9279 | # here allows them to be overridden if necessary. | |
9280 | runpath_var=LD_RUN_PATH | |
3258f645 TG |
9281 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9282 | export_dynamic_flag_spec='$wl--export-dynamic' | |
904dbe44 CIK |
9283 | # ancient GNU ld didn't support --whole-archive et. al. |
9284 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
3258f645 | 9285 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
904dbe44 CIK |
9286 | else |
9287 | whole_archive_flag_spec= | |
9288 | fi | |
9289 | supports_anon_versioning=no | |
3258f645 | 9290 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
904dbe44 CIK |
9291 | *GNU\ gold*) supports_anon_versioning=yes ;; |
9292 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9293 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9294 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9295 | *\ 2.11.*) ;; # other 2.11 versions | |
9296 | *) supports_anon_versioning=yes ;; | |
9297 | esac | |
9298 | ||
9299 | # See if GNU ld supports shared libraries. | |
9300 | case $host_os in | |
9301 | aix[3-9]*) | |
9302 | # On AIX/PPC, the GNU linker is very broken | |
3258f645 | 9303 | if test ia64 != "$host_cpu"; then |
904dbe44 CIK |
9304 | ld_shlibs=no |
9305 | cat <<_LT_EOF 1>&2 | |
9306 | ||
9307 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
9308 | *** to be unable to reliably create shared libraries on AIX. | |
9309 | *** Therefore, libtool is disabling shared libraries support. If you | |
9310 | *** really care for shared libraries, you may want to install binutils | |
9311 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9312 | *** You will then need to restart the configuration process. | |
9313 | ||
9314 | _LT_EOF | |
9315 | fi | |
9316 | ;; | |
9317 | ||
9318 | amigaos*) | |
9319 | case $host_cpu in | |
9320 | powerpc) | |
9321 | # see comment about AmigaOS4 .so support | |
3258f645 | 9322 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
904dbe44 CIK |
9323 | archive_expsym_cmds='' |
9324 | ;; | |
9325 | m68k) | |
9326 | 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)' | |
9327 | hardcode_libdir_flag_spec='-L$libdir' | |
9328 | hardcode_minus_L=yes | |
9329 | ;; | |
9330 | esac | |
9331 | ;; | |
9332 | ||
9333 | beos*) | |
9334 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9335 | allow_undefined_flag=unsupported | |
9336 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9337 | # support --undefined. This deserves some investigation. FIXME | |
3258f645 | 9338 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
904dbe44 CIK |
9339 | else |
9340 | ld_shlibs=no | |
9341 | fi | |
9342 | ;; | |
9343 | ||
9344 | cygwin* | mingw* | pw32* | cegcc*) | |
9345 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9346 | # as there is no search path for DLLs. | |
9347 | hardcode_libdir_flag_spec='-L$libdir' | |
3258f645 | 9348 | export_dynamic_flag_spec='$wl--export-all-symbols' |
904dbe44 CIK |
9349 | allow_undefined_flag=unsupported |
9350 | always_export_symbols=no | |
9351 | enable_shared_with_static_runtimes=yes | |
9352 | 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' | |
9353 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9354 | ||
9355 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
3258f645 TG |
9356 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9357 | # If the export-symbols file already is a .def file, use it as | |
9358 | # is; otherwise, prepend EXPORTS... | |
9359 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9360 | cp $export_symbols $output_objdir/$soname.def; | |
9361 | else | |
9362 | echo EXPORTS > $output_objdir/$soname.def; | |
9363 | cat $export_symbols >> $output_objdir/$soname.def; | |
9364 | fi~ | |
9365 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
904dbe44 CIK |
9366 | else |
9367 | ld_shlibs=no | |
9368 | fi | |
9369 | ;; | |
9370 | ||
9371 | haiku*) | |
3258f645 | 9372 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
904dbe44 CIK |
9373 | link_all_deplibs=yes |
9374 | ;; | |
9375 | ||
3258f645 TG |
9376 | os2*) |
9377 | hardcode_libdir_flag_spec='-L$libdir' | |
9378 | hardcode_minus_L=yes | |
9379 | allow_undefined_flag=unsupported | |
9380 | shrext_cmds=.dll | |
9381 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9382 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9383 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9384 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9385 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9386 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9387 | emximp -o $lib $output_objdir/$libname.def' | |
9388 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9389 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9390 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9391 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9392 | prefix_cmds="$SED"~ | |
9393 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9394 | prefix_cmds="$prefix_cmds -e 1d"; | |
9395 | fi~ | |
9396 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9397 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9398 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9399 | emximp -o $lib $output_objdir/$libname.def' | |
9400 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9401 | enable_shared_with_static_runtimes=yes | |
9402 | ;; | |
9403 | ||
904dbe44 CIK |
9404 | interix[3-9]*) |
9405 | hardcode_direct=no | |
9406 | hardcode_shlibpath_var=no | |
3258f645 TG |
9407 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
9408 | export_dynamic_flag_spec='$wl-E' | |
904dbe44 CIK |
9409 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
9410 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9411 | # default) and relocated if they conflict, which is a slow very memory | |
9412 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9413 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9414 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
3258f645 TG |
9415 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9416 | 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' | |
904dbe44 CIK |
9417 | ;; |
9418 | ||
9419 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
9420 | tmp_diet=no | |
3258f645 | 9421 | if test linux-dietlibc = "$host_os"; then |
904dbe44 CIK |
9422 | case $cc_basename in |
9423 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9424 | esac | |
9425 | fi | |
9426 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
3258f645 | 9427 | && test no = "$tmp_diet" |
904dbe44 CIK |
9428 | then |
9429 | tmp_addflag=' $pic_flag' | |
9430 | tmp_sharedflag='-shared' | |
9431 | case $cc_basename,$host_cpu in | |
9432 | pgcc*) # Portland Group C compiler | |
3258f645 | 9433 | 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' |
904dbe44 CIK |
9434 | tmp_addflag=' $pic_flag' |
9435 | ;; | |
9436 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9437 | # Portland Group f77 and f90 compilers | |
3258f645 | 9438 | 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' |
904dbe44 CIK |
9439 | tmp_addflag=' $pic_flag -Mnomain' ;; |
9440 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9441 | tmp_addflag=' -i_dynamic' ;; | |
9442 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9443 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9444 | ifc* | ifort*) # Intel Fortran compiler | |
9445 | tmp_addflag=' -nofor_main' ;; | |
9446 | lf95*) # Lahey Fortran 8.1 | |
9447 | whole_archive_flag_spec= | |
9448 | tmp_sharedflag='--shared' ;; | |
3258f645 TG |
9449 | nagfor*) # NAGFOR 5.3 |
9450 | tmp_sharedflag='-Wl,-shared' ;; | |
904dbe44 CIK |
9451 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
9452 | tmp_sharedflag='-qmkshrobj' | |
9453 | tmp_addflag= ;; | |
9454 | nvcc*) # Cuda Compiler Driver 2.2 | |
3258f645 | 9455 | 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' |
904dbe44 CIK |
9456 | compiler_needs_object=yes |
9457 | ;; | |
9458 | esac | |
9459 | case `$CC -V 2>&1 | sed 5q` in | |
9460 | *Sun\ C*) # Sun C 5.9 | |
3258f645 | 9461 | 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' |
904dbe44 CIK |
9462 | compiler_needs_object=yes |
9463 | tmp_sharedflag='-G' ;; | |
9464 | *Sun\ F*) # Sun Fortran 8.3 | |
9465 | tmp_sharedflag='-G' ;; | |
9466 | esac | |
3258f645 | 9467 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
904dbe44 | 9468 | |
3258f645 | 9469 | if test yes = "$supports_anon_versioning"; then |
904dbe44 | 9470 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
3258f645 TG |
9471 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9472 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9473 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
904dbe44 CIK |
9474 | fi |
9475 | ||
9476 | case $cc_basename in | |
3258f645 TG |
9477 | tcc*) |
9478 | export_dynamic_flag_spec='-rdynamic' | |
9479 | ;; | |
904dbe44 CIK |
9480 | xlf* | bgf* | bgxlf* | mpixlf*) |
9481 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9482 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
3258f645 | 9483 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
904dbe44 | 9484 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
3258f645 | 9485 | if test yes = "$supports_anon_versioning"; then |
904dbe44 | 9486 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
3258f645 TG |
9487 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9488 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9489 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
904dbe44 CIK |
9490 | fi |
9491 | ;; | |
9492 | esac | |
9493 | else | |
9494 | ld_shlibs=no | |
9495 | fi | |
9496 | ;; | |
9497 | ||
9498 | netbsd* | netbsdelf*-gnu) | |
9499 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9500 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9501 | wlarc= | |
9502 | else | |
3258f645 TG |
9503 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9504 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
904dbe44 CIK |
9505 | fi |
9506 | ;; | |
9507 | ||
9508 | solaris*) | |
9509 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9510 | ld_shlibs=no | |
9511 | cat <<_LT_EOF 1>&2 | |
9512 | ||
9513 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9514 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9515 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9516 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9517 | *** your PATH or compiler configuration so that the native linker is | |
9518 | *** used, and then restart. | |
9519 | ||
9520 | _LT_EOF | |
9521 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
3258f645 TG |
9522 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9523 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
904dbe44 CIK |
9524 | else |
9525 | ld_shlibs=no | |
9526 | fi | |
9527 | ;; | |
9528 | ||
9529 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9530 | case `$LD -v 2>&1` in | |
9531 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9532 | ld_shlibs=no | |
9533 | cat <<_LT_EOF 1>&2 | |
9534 | ||
3258f645 | 9535 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
904dbe44 CIK |
9536 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
9537 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9538 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9539 | *** your PATH or compiler configuration so that the native linker is | |
9540 | *** used, and then restart. | |
9541 | ||
9542 | _LT_EOF | |
9543 | ;; | |
9544 | *) | |
9545 | # For security reasons, it is highly recommended that you always | |
9546 | # use absolute paths for naming shared libraries, and exclude the | |
9547 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9548 | # requires that you compile everything twice, which is a pain. | |
9549 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
3258f645 TG |
9550 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9551 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9552 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
904dbe44 CIK |
9553 | else |
9554 | ld_shlibs=no | |
9555 | fi | |
9556 | ;; | |
9557 | esac | |
9558 | ;; | |
9559 | ||
9560 | sunos4*) | |
9561 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9562 | wlarc= | |
9563 | hardcode_direct=yes | |
9564 | hardcode_shlibpath_var=no | |
9565 | ;; | |
9566 | ||
9567 | *) | |
9568 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
3258f645 TG |
9569 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9570 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
904dbe44 CIK |
9571 | else |
9572 | ld_shlibs=no | |
9573 | fi | |
9574 | ;; | |
9575 | esac | |
9576 | ||
3258f645 | 9577 | if test no = "$ld_shlibs"; then |
904dbe44 CIK |
9578 | runpath_var= |
9579 | hardcode_libdir_flag_spec= | |
9580 | export_dynamic_flag_spec= | |
9581 | whole_archive_flag_spec= | |
9582 | fi | |
9583 | else | |
9584 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9585 | case $host_os in | |
9586 | aix3*) | |
9587 | allow_undefined_flag=unsupported | |
9588 | always_export_symbols=yes | |
9589 | 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' | |
9590 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9591 | # are no directories specified by -L. | |
9592 | hardcode_minus_L=yes | |
3258f645 | 9593 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
904dbe44 CIK |
9594 | # Neither direct hardcoding nor static linking is supported with a |
9595 | # broken collect2. | |
9596 | hardcode_direct=unsupported | |
9597 | fi | |
9598 | ;; | |
9599 | ||
9600 | aix[4-9]*) | |
3258f645 | 9601 | if test ia64 = "$host_cpu"; then |
904dbe44 CIK |
9602 | # On IA64, the linker does run time linking by default, so we don't |
9603 | # have to do anything special. | |
9604 | aix_use_runtimelinking=no | |
9605 | exp_sym_flag='-Bexport' | |
3258f645 | 9606 | no_entry_flag= |
904dbe44 CIK |
9607 | else |
9608 | # If we're using GNU nm, then we don't want the "-C" option. | |
3258f645 TG |
9609 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
9610 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
9611 | # weak defined symbols like other global defined symbols, whereas | |
9612 | # GNU nm marks them as "W". | |
9613 | # While the 'weak' keyword is ignored in the Export File, we need | |
9614 | # it in the Import File for the 'aix-soname' feature, so we have | |
9615 | # to replace the "-B" option with "-P" for AIX nm. | |
904dbe44 | 9616 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
3258f645 | 9617 | 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' |
904dbe44 | 9618 | else |
3258f645 | 9619 | 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' |
904dbe44 CIK |
9620 | fi |
9621 | aix_use_runtimelinking=no | |
9622 | ||
9623 | # Test if we are trying to use run time linking or normal | |
9624 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
3258f645 TG |
9625 | # have runtime linking enabled, and use it for executables. |
9626 | # For shared libraries, we enable/disable runtime linking | |
9627 | # depending on the kind of the shared library created - | |
9628 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
9629 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
9630 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
9631 | # lib.a static archive | |
9632 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
9633 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
9634 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9635 | # lib.a(lib.so.V) shared, rtl:no | |
9636 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9637 | # lib.a static archive | |
904dbe44 CIK |
9638 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
9639 | for ld_flag in $LDFLAGS; do | |
3258f645 | 9640 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
904dbe44 CIK |
9641 | aix_use_runtimelinking=yes |
9642 | break | |
9643 | fi | |
9644 | done | |
3258f645 TG |
9645 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
9646 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
9647 | # so we don't have lib.a shared libs to link our executables. | |
9648 | # We have to force runtime linking in this case. | |
9649 | aix_use_runtimelinking=yes | |
9650 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
9651 | fi | |
904dbe44 CIK |
9652 | ;; |
9653 | esac | |
9654 | ||
9655 | exp_sym_flag='-bexport' | |
9656 | no_entry_flag='-bnoentry' | |
9657 | fi | |
9658 | ||
9659 | # When large executables or shared objects are built, AIX ld can | |
9660 | # have problems creating the table of contents. If linking a library | |
9661 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9662 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9663 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9664 | ||
9665 | archive_cmds='' | |
9666 | hardcode_direct=yes | |
9667 | hardcode_direct_absolute=yes | |
9668 | hardcode_libdir_separator=':' | |
9669 | link_all_deplibs=yes | |
3258f645 TG |
9670 | file_list_spec='$wl-f,' |
9671 | case $with_aix_soname,$aix_use_runtimelinking in | |
9672 | aix,*) ;; # traditional, no import file | |
9673 | svr4,* | *,yes) # use import file | |
9674 | # The Import File defines what to hardcode. | |
9675 | hardcode_direct=no | |
9676 | hardcode_direct_absolute=no | |
9677 | ;; | |
9678 | esac | |
904dbe44 | 9679 | |
3258f645 | 9680 | if test yes = "$GCC"; then |
904dbe44 CIK |
9681 | case $host_os in aix4.[012]|aix4.[012].*) |
9682 | # We only want to do this on AIX 4.2 and lower, the check | |
9683 | # below for broken collect2 doesn't work under 4.3+ | |
3258f645 | 9684 | collect2name=`$CC -print-prog-name=collect2` |
904dbe44 CIK |
9685 | if test -f "$collect2name" && |
9686 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9687 | then | |
9688 | # We have reworked collect2 | |
9689 | : | |
9690 | else | |
9691 | # We have old collect2 | |
9692 | hardcode_direct=unsupported | |
9693 | # It fails to find uninstalled libraries when the uninstalled | |
9694 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9695 | # to unsupported forces relinking | |
9696 | hardcode_minus_L=yes | |
9697 | hardcode_libdir_flag_spec='-L$libdir' | |
9698 | hardcode_libdir_separator= | |
9699 | fi | |
9700 | ;; | |
9701 | esac | |
9702 | shared_flag='-shared' | |
3258f645 TG |
9703 | if test yes = "$aix_use_runtimelinking"; then |
9704 | shared_flag="$shared_flag "'$wl-G' | |
904dbe44 | 9705 | fi |
3258f645 TG |
9706 | # Need to ensure runtime linking is disabled for the traditional |
9707 | # shared library, or the linker may eventually find shared libraries | |
9708 | # /with/ Import File - we do not want to mix them. | |
9709 | shared_flag_aix='-shared' | |
9710 | shared_flag_svr4='-shared $wl-G' | |
904dbe44 CIK |
9711 | else |
9712 | # not using gcc | |
3258f645 | 9713 | if test ia64 = "$host_cpu"; then |
904dbe44 CIK |
9714 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
9715 | # chokes on -Wl,-G. The following line is correct: | |
9716 | shared_flag='-G' | |
9717 | else | |
3258f645 TG |
9718 | if test yes = "$aix_use_runtimelinking"; then |
9719 | shared_flag='$wl-G' | |
904dbe44 | 9720 | else |
3258f645 | 9721 | shared_flag='$wl-bM:SRE' |
904dbe44 | 9722 | fi |
3258f645 TG |
9723 | shared_flag_aix='$wl-bM:SRE' |
9724 | shared_flag_svr4='$wl-G' | |
904dbe44 CIK |
9725 | fi |
9726 | fi | |
9727 | ||
3258f645 | 9728 | export_dynamic_flag_spec='$wl-bexpall' |
904dbe44 CIK |
9729 | # It seems that -bexpall does not export symbols beginning with |
9730 | # underscore (_), so it is better to generate a list of symbols to export. | |
9731 | always_export_symbols=yes | |
3258f645 | 9732 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
904dbe44 CIK |
9733 | # Warning - without using the other runtime loading flags (-brtl), |
9734 | # -berok will link without error, but may produce a broken library. | |
9735 | allow_undefined_flag='-berok' | |
9736 | # Determine the default libpath from the value encoded in an | |
9737 | # empty executable. | |
3258f645 | 9738 | if test set = "${lt_cv_aix_libpath+set}"; then |
904dbe44 CIK |
9739 | aix_libpath=$lt_cv_aix_libpath |
9740 | else | |
9741 | if ${lt_cv_aix_libpath_+:} false; then : | |
9742 | $as_echo_n "(cached) " >&6 | |
9743 | else | |
9744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9745 | /* end confdefs.h. */ | |
9746 | ||
9747 | int | |
9748 | main () | |
9749 | { | |
9750 | ||
9751 | ; | |
9752 | return 0; | |
9753 | } | |
9754 | _ACEOF | |
9755 | if ac_fn_c_try_link "$LINENO"; then : | |
9756 | ||
9757 | lt_aix_libpath_sed=' | |
9758 | /Import File Strings/,/^$/ { | |
9759 | /^0/ { | |
9760 | s/^0 *\([^ ]*\) *$/\1/ | |
9761 | p | |
9762 | } | |
9763 | }' | |
9764 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9765 | # Check for a 64-bit object if we didn't find anything. | |
9766 | if test -z "$lt_cv_aix_libpath_"; then | |
9767 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9768 | fi | |
9769 | fi | |
9770 | rm -f core conftest.err conftest.$ac_objext \ | |
9771 | conftest$ac_exeext conftest.$ac_ext | |
9772 | if test -z "$lt_cv_aix_libpath_"; then | |
3258f645 | 9773 | lt_cv_aix_libpath_=/usr/lib:/lib |
904dbe44 CIK |
9774 | fi |
9775 | ||
9776 | fi | |
9777 | ||
9778 | aix_libpath=$lt_cv_aix_libpath_ | |
9779 | fi | |
9780 | ||
3258f645 TG |
9781 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
9782 | 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 | |
904dbe44 | 9783 | else |
3258f645 TG |
9784 | if test ia64 = "$host_cpu"; then |
9785 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
904dbe44 | 9786 | allow_undefined_flag="-z nodefs" |
3258f645 | 9787 | 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" |
904dbe44 CIK |
9788 | else |
9789 | # Determine the default libpath from the value encoded in an | |
9790 | # empty executable. | |
3258f645 | 9791 | if test set = "${lt_cv_aix_libpath+set}"; then |
904dbe44 CIK |
9792 | aix_libpath=$lt_cv_aix_libpath |
9793 | else | |
9794 | if ${lt_cv_aix_libpath_+:} false; then : | |
9795 | $as_echo_n "(cached) " >&6 | |
9796 | else | |
9797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9798 | /* end confdefs.h. */ | |
9799 | ||
9800 | int | |
9801 | main () | |
9802 | { | |
9803 | ||
9804 | ; | |
9805 | return 0; | |
9806 | } | |
9807 | _ACEOF | |
9808 | if ac_fn_c_try_link "$LINENO"; then : | |
9809 | ||
9810 | lt_aix_libpath_sed=' | |
9811 | /Import File Strings/,/^$/ { | |
9812 | /^0/ { | |
9813 | s/^0 *\([^ ]*\) *$/\1/ | |
9814 | p | |
9815 | } | |
9816 | }' | |
9817 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9818 | # Check for a 64-bit object if we didn't find anything. | |
9819 | if test -z "$lt_cv_aix_libpath_"; then | |
9820 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9821 | fi | |
9822 | fi | |
9823 | rm -f core conftest.err conftest.$ac_objext \ | |
9824 | conftest$ac_exeext conftest.$ac_ext | |
9825 | if test -z "$lt_cv_aix_libpath_"; then | |
3258f645 | 9826 | lt_cv_aix_libpath_=/usr/lib:/lib |
904dbe44 CIK |
9827 | fi |
9828 | ||
9829 | fi | |
9830 | ||
9831 | aix_libpath=$lt_cv_aix_libpath_ | |
9832 | fi | |
9833 | ||
3258f645 | 9834 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
904dbe44 CIK |
9835 | # Warning - without using the other run time loading flags, |
9836 | # -berok will link without error, but may produce a broken library. | |
3258f645 TG |
9837 | no_undefined_flag=' $wl-bernotok' |
9838 | allow_undefined_flag=' $wl-berok' | |
9839 | if test yes = "$with_gnu_ld"; then | |
904dbe44 | 9840 | # We only use this code for GNU lds that support --whole-archive. |
3258f645 | 9841 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
904dbe44 CIK |
9842 | else |
9843 | # Exported symbols can be pulled into shared objects from archives | |
9844 | whole_archive_flag_spec='$convenience' | |
9845 | fi | |
9846 | archive_cmds_need_lc=yes | |
3258f645 TG |
9847 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
9848 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
9849 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
9850 | if test svr4 != "$with_aix_soname"; then | |
9851 | # This is similar to how AIX traditionally builds its shared libraries. | |
9852 | 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' | |
9853 | fi | |
9854 | if test aix != "$with_aix_soname"; then | |
9855 | 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' | |
9856 | else | |
9857 | # used by -dlpreopen to get the symbols | |
9858 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
9859 | fi | |
9860 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
904dbe44 CIK |
9861 | fi |
9862 | fi | |
9863 | ;; | |
9864 | ||
9865 | amigaos*) | |
9866 | case $host_cpu in | |
9867 | powerpc) | |
9868 | # see comment about AmigaOS4 .so support | |
3258f645 | 9869 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
904dbe44 CIK |
9870 | archive_expsym_cmds='' |
9871 | ;; | |
9872 | m68k) | |
9873 | 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)' | |
9874 | hardcode_libdir_flag_spec='-L$libdir' | |
9875 | hardcode_minus_L=yes | |
9876 | ;; | |
9877 | esac | |
9878 | ;; | |
9879 | ||
9880 | bsdi[45]*) | |
9881 | export_dynamic_flag_spec=-rdynamic | |
9882 | ;; | |
9883 | ||
9884 | cygwin* | mingw* | pw32* | cegcc*) | |
9885 | # When not using gcc, we currently assume that we are using | |
9886 | # Microsoft Visual C++. | |
9887 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9888 | # no search path for DLLs. | |
9889 | case $cc_basename in | |
9890 | cl*) | |
9891 | # Native MSVC | |
9892 | hardcode_libdir_flag_spec=' ' | |
9893 | allow_undefined_flag=unsupported | |
9894 | always_export_symbols=yes | |
9895 | file_list_spec='@' | |
9896 | # Tell ltmain to make .lib files, not .a files. | |
9897 | libext=lib | |
9898 | # Tell ltmain to make .dll files, not .so files. | |
3258f645 | 9899 | shrext_cmds=.dll |
904dbe44 | 9900 | # FIXME: Setting linknames here is a bad hack. |
3258f645 TG |
9901 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
9902 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9903 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
9904 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
9905 | else | |
9906 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
9907 | fi~ | |
9908 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9909 | linknames=' | |
904dbe44 CIK |
9910 | # The linker will not automatically build a static lib if we build a DLL. |
9911 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9912 | enable_shared_with_static_runtimes=yes | |
9913 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
9914 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9915 | # Don't use ranlib | |
9916 | old_postinstall_cmds='chmod 644 $oldlib' | |
9917 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
3258f645 TG |
9918 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
9919 | case $lt_outputfile in | |
9920 | *.exe|*.EXE) ;; | |
9921 | *) | |
9922 | lt_outputfile=$lt_outputfile.exe | |
9923 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
9924 | ;; | |
9925 | esac~ | |
9926 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
9927 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9928 | $RM "$lt_outputfile.manifest"; | |
9929 | fi' | |
904dbe44 CIK |
9930 | ;; |
9931 | *) | |
9932 | # Assume MSVC wrapper | |
9933 | hardcode_libdir_flag_spec=' ' | |
9934 | allow_undefined_flag=unsupported | |
9935 | # Tell ltmain to make .lib files, not .a files. | |
9936 | libext=lib | |
9937 | # Tell ltmain to make .dll files, not .so files. | |
3258f645 | 9938 | shrext_cmds=.dll |
904dbe44 CIK |
9939 | # FIXME: Setting linknames here is a bad hack. |
9940 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9941 | # The linker will automatically build a .lib file if we build a DLL. | |
9942 | old_archive_from_new_cmds='true' | |
9943 | # FIXME: Should let the user specify the lib program. | |
9944 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9945 | enable_shared_with_static_runtimes=yes | |
9946 | ;; | |
9947 | esac | |
9948 | ;; | |
9949 | ||
9950 | darwin* | rhapsody*) | |
9951 | ||
9952 | ||
9953 | archive_cmds_need_lc=no | |
9954 | hardcode_direct=no | |
9955 | hardcode_automatic=yes | |
9956 | hardcode_shlibpath_var=unsupported | |
3258f645 TG |
9957 | if test yes = "$lt_cv_ld_force_load"; then |
9958 | 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\"`' | |
904dbe44 CIK |
9959 | |
9960 | else | |
9961 | whole_archive_flag_spec='' | |
9962 | fi | |
9963 | link_all_deplibs=yes | |
3258f645 | 9964 | allow_undefined_flag=$_lt_dar_allow_undefined |
904dbe44 | 9965 | case $cc_basename in |
3258f645 | 9966 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
904dbe44 CIK |
9967 | *) _lt_dar_can_shared=$GCC ;; |
9968 | esac | |
3258f645 | 9969 | if test yes = "$_lt_dar_can_shared"; then |
904dbe44 | 9970 | output_verbose_link_cmd=func_echo_all |
3258f645 TG |
9971 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
9972 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
9973 | 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" | |
9974 | 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" | |
904dbe44 CIK |
9975 | |
9976 | else | |
9977 | ld_shlibs=no | |
9978 | fi | |
9979 | ||
9980 | ;; | |
9981 | ||
9982 | dgux*) | |
9983 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9984 | hardcode_libdir_flag_spec='-L$libdir' | |
9985 | hardcode_shlibpath_var=no | |
9986 | ;; | |
9987 | ||
9988 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9989 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9990 | # does not break anything, and helps significantly (at the cost of a little | |
9991 | # extra space). | |
9992 | freebsd2.2*) | |
9993 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9994 | hardcode_libdir_flag_spec='-R$libdir' | |
9995 | hardcode_direct=yes | |
9996 | hardcode_shlibpath_var=no | |
9997 | ;; | |
9998 | ||
9999 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10000 | freebsd2.*) | |
10001 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10002 | hardcode_direct=yes | |
10003 | hardcode_minus_L=yes | |
10004 | hardcode_shlibpath_var=no | |
10005 | ;; | |
10006 | ||
10007 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10008 | freebsd* | dragonfly*) | |
10009 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10010 | hardcode_libdir_flag_spec='-R$libdir' | |
10011 | hardcode_direct=yes | |
10012 | hardcode_shlibpath_var=no | |
10013 | ;; | |
10014 | ||
10015 | hpux9*) | |
3258f645 TG |
10016 | if test yes = "$GCC"; then |
10017 | 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' | |
904dbe44 | 10018 | else |
3258f645 | 10019 | 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' |
904dbe44 | 10020 | fi |
3258f645 | 10021 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
904dbe44 CIK |
10022 | hardcode_libdir_separator=: |
10023 | hardcode_direct=yes | |
10024 | ||
10025 | # hardcode_minus_L: Not really in the search PATH, | |
10026 | # but as the default location of the library. | |
10027 | hardcode_minus_L=yes | |
3258f645 | 10028 | export_dynamic_flag_spec='$wl-E' |
904dbe44 CIK |
10029 | ;; |
10030 | ||
10031 | hpux10*) | |
3258f645 TG |
10032 | if test yes,no = "$GCC,$with_gnu_ld"; then |
10033 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
904dbe44 CIK |
10034 | else |
10035 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10036 | fi | |
3258f645 TG |
10037 | if test no = "$with_gnu_ld"; then |
10038 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
904dbe44 CIK |
10039 | hardcode_libdir_separator=: |
10040 | hardcode_direct=yes | |
10041 | hardcode_direct_absolute=yes | |
3258f645 | 10042 | export_dynamic_flag_spec='$wl-E' |
904dbe44 CIK |
10043 | # hardcode_minus_L: Not really in the search PATH, |
10044 | # but as the default location of the library. | |
10045 | hardcode_minus_L=yes | |
10046 | fi | |
10047 | ;; | |
10048 | ||
10049 | hpux11*) | |
3258f645 | 10050 | if test yes,no = "$GCC,$with_gnu_ld"; then |
904dbe44 CIK |
10051 | case $host_cpu in |
10052 | hppa*64*) | |
3258f645 | 10053 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
904dbe44 CIK |
10054 | ;; |
10055 | ia64*) | |
3258f645 | 10056 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
904dbe44 CIK |
10057 | ;; |
10058 | *) | |
3258f645 | 10059 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
904dbe44 CIK |
10060 | ;; |
10061 | esac | |
10062 | else | |
10063 | case $host_cpu in | |
10064 | hppa*64*) | |
3258f645 | 10065 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
904dbe44 CIK |
10066 | ;; |
10067 | ia64*) | |
3258f645 | 10068 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
904dbe44 CIK |
10069 | ;; |
10070 | *) | |
10071 | ||
10072 | # Older versions of the 11.00 compiler do not understand -b yet | |
10073 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10075 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10076 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10077 | $as_echo_n "(cached) " >&6 | |
10078 | else | |
10079 | lt_cv_prog_compiler__b=no | |
3258f645 | 10080 | save_LDFLAGS=$LDFLAGS |
904dbe44 CIK |
10081 | LDFLAGS="$LDFLAGS -b" |
10082 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10083 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10084 | # The linker can only warn and ignore the option if not recognized | |
10085 | # So say no if there are warnings | |
10086 | if test -s conftest.err; then | |
10087 | # Append any errors to the config.log. | |
10088 | cat conftest.err 1>&5 | |
10089 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10090 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10091 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10092 | lt_cv_prog_compiler__b=yes | |
10093 | fi | |
10094 | else | |
10095 | lt_cv_prog_compiler__b=yes | |
10096 | fi | |
10097 | fi | |
10098 | $RM -r conftest* | |
3258f645 | 10099 | LDFLAGS=$save_LDFLAGS |
904dbe44 CIK |
10100 | |
10101 | fi | |
10102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10103 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10104 | ||
3258f645 TG |
10105 | if test yes = "$lt_cv_prog_compiler__b"; then |
10106 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
904dbe44 CIK |
10107 | else |
10108 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10109 | fi | |
10110 | ||
10111 | ;; | |
10112 | esac | |
10113 | fi | |
3258f645 TG |
10114 | if test no = "$with_gnu_ld"; then |
10115 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
904dbe44 CIK |
10116 | hardcode_libdir_separator=: |
10117 | ||
10118 | case $host_cpu in | |
10119 | hppa*64*|ia64*) | |
10120 | hardcode_direct=no | |
10121 | hardcode_shlibpath_var=no | |
10122 | ;; | |
10123 | *) | |
10124 | hardcode_direct=yes | |
10125 | hardcode_direct_absolute=yes | |
3258f645 | 10126 | export_dynamic_flag_spec='$wl-E' |
904dbe44 CIK |
10127 | |
10128 | # hardcode_minus_L: Not really in the search PATH, | |
10129 | # but as the default location of the library. | |
10130 | hardcode_minus_L=yes | |
10131 | ;; | |
10132 | esac | |
10133 | fi | |
10134 | ;; | |
10135 | ||
10136 | irix5* | irix6* | nonstopux*) | |
3258f645 TG |
10137 | if test yes = "$GCC"; then |
10138 | 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' | |
904dbe44 CIK |
10139 | # Try to use the -exported_symbol ld option, if it does not |
10140 | # work, assume that -exports_file does not work either and | |
10141 | # implicitly export all symbols. | |
10142 | # This should be the same for all languages, so no per-tag cache variable. | |
10143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10144 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10145 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10146 | $as_echo_n "(cached) " >&6 | |
10147 | else | |
3258f645 TG |
10148 | save_LDFLAGS=$LDFLAGS |
10149 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
904dbe44 CIK |
10150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10151 | /* end confdefs.h. */ | |
10152 | int foo (void) { return 0; } | |
10153 | _ACEOF | |
10154 | if ac_fn_c_try_link "$LINENO"; then : | |
10155 | lt_cv_irix_exported_symbol=yes | |
10156 | else | |
10157 | lt_cv_irix_exported_symbol=no | |
10158 | fi | |
10159 | rm -f core conftest.err conftest.$ac_objext \ | |
10160 | conftest$ac_exeext conftest.$ac_ext | |
3258f645 | 10161 | LDFLAGS=$save_LDFLAGS |
904dbe44 CIK |
10162 | fi |
10163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10164 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
3258f645 TG |
10165 | if test yes = "$lt_cv_irix_exported_symbol"; then |
10166 | 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' | |
904dbe44 | 10167 | fi |
3258f645 | 10168 | link_all_deplibs=no |
904dbe44 | 10169 | else |
3258f645 TG |
10170 | 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' |
10171 | 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' | |
904dbe44 CIK |
10172 | fi |
10173 | archive_cmds_need_lc='no' | |
3258f645 | 10174 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
904dbe44 CIK |
10175 | hardcode_libdir_separator=: |
10176 | inherit_rpath=yes | |
10177 | link_all_deplibs=yes | |
10178 | ;; | |
10179 | ||
3258f645 TG |
10180 | linux*) |
10181 | case $cc_basename in | |
10182 | tcc*) | |
10183 | # Fabrice Bellard et al's Tiny C Compiler | |
10184 | ld_shlibs=yes | |
10185 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10186 | ;; | |
10187 | esac | |
10188 | ;; | |
10189 | ||
904dbe44 CIK |
10190 | netbsd* | netbsdelf*-gnu) |
10191 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10192 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10193 | else | |
10194 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10195 | fi | |
10196 | hardcode_libdir_flag_spec='-R$libdir' | |
10197 | hardcode_direct=yes | |
10198 | hardcode_shlibpath_var=no | |
10199 | ;; | |
10200 | ||
10201 | newsos6) | |
10202 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10203 | hardcode_direct=yes | |
3258f645 | 10204 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
904dbe44 CIK |
10205 | hardcode_libdir_separator=: |
10206 | hardcode_shlibpath_var=no | |
10207 | ;; | |
10208 | ||
10209 | *nto* | *qnx*) | |
10210 | ;; | |
10211 | ||
3258f645 | 10212 | openbsd* | bitrig*) |
904dbe44 CIK |
10213 | if test -f /usr/libexec/ld.so; then |
10214 | hardcode_direct=yes | |
10215 | hardcode_shlibpath_var=no | |
10216 | hardcode_direct_absolute=yes | |
3258f645 | 10217 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
904dbe44 | 10218 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
3258f645 TG |
10219 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
10220 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
10221 | export_dynamic_flag_spec='$wl-E' | |
904dbe44 | 10222 | else |
3258f645 TG |
10223 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
10224 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
904dbe44 CIK |
10225 | fi |
10226 | else | |
10227 | ld_shlibs=no | |
10228 | fi | |
10229 | ;; | |
10230 | ||
10231 | os2*) | |
10232 | hardcode_libdir_flag_spec='-L$libdir' | |
10233 | hardcode_minus_L=yes | |
10234 | allow_undefined_flag=unsupported | |
3258f645 TG |
10235 | shrext_cmds=.dll |
10236 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10237 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10238 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10239 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10240 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
10241 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10242 | emximp -o $lib $output_objdir/$libname.def' | |
10243 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10244 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10245 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10246 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10247 | prefix_cmds="$SED"~ | |
10248 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
10249 | prefix_cmds="$prefix_cmds -e 1d"; | |
10250 | fi~ | |
10251 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
10252 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
10253 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10254 | emximp -o $lib $output_objdir/$libname.def' | |
10255 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
10256 | enable_shared_with_static_runtimes=yes | |
904dbe44 CIK |
10257 | ;; |
10258 | ||
10259 | osf3*) | |
3258f645 TG |
10260 | if test yes = "$GCC"; then |
10261 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10262 | 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' | |
904dbe44 CIK |
10263 | else |
10264 | allow_undefined_flag=' -expect_unresolved \*' | |
3258f645 | 10265 | 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' |
904dbe44 CIK |
10266 | fi |
10267 | archive_cmds_need_lc='no' | |
3258f645 | 10268 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
904dbe44 CIK |
10269 | hardcode_libdir_separator=: |
10270 | ;; | |
10271 | ||
10272 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
3258f645 TG |
10273 | if test yes = "$GCC"; then |
10274 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10275 | 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' | |
10276 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
904dbe44 CIK |
10277 | else |
10278 | allow_undefined_flag=' -expect_unresolved \*' | |
3258f645 | 10279 | 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' |
904dbe44 | 10280 | 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~ |
3258f645 | 10281 | $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' |
904dbe44 CIK |
10282 | |
10283 | # Both c and cxx compiler support -rpath directly | |
10284 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10285 | fi | |
10286 | archive_cmds_need_lc='no' | |
10287 | hardcode_libdir_separator=: | |
10288 | ;; | |
10289 | ||
10290 | solaris*) | |
10291 | no_undefined_flag=' -z defs' | |
3258f645 TG |
10292 | if test yes = "$GCC"; then |
10293 | wlarc='$wl' | |
10294 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
904dbe44 | 10295 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
3258f645 | 10296 | $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' |
904dbe44 CIK |
10297 | else |
10298 | case `$CC -V 2>&1` in | |
10299 | *"Compilers 5.0"*) | |
10300 | wlarc='' | |
3258f645 | 10301 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
904dbe44 | 10302 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
3258f645 | 10303 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
904dbe44 CIK |
10304 | ;; |
10305 | *) | |
3258f645 TG |
10306 | wlarc='$wl' |
10307 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
904dbe44 | 10308 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
3258f645 | 10309 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
904dbe44 CIK |
10310 | ;; |
10311 | esac | |
10312 | fi | |
10313 | hardcode_libdir_flag_spec='-R$libdir' | |
10314 | hardcode_shlibpath_var=no | |
10315 | case $host_os in | |
10316 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10317 | *) | |
10318 | # The compiler driver will combine and reorder linker options, | |
3258f645 | 10319 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
904dbe44 CIK |
10320 | # but is careful enough not to reorder. |
10321 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
3258f645 TG |
10322 | if test yes = "$GCC"; then |
10323 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
904dbe44 CIK |
10324 | else |
10325 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10326 | fi | |
10327 | ;; | |
10328 | esac | |
10329 | link_all_deplibs=yes | |
10330 | ;; | |
10331 | ||
10332 | sunos4*) | |
3258f645 | 10333 | if test sequent = "$host_vendor"; then |
904dbe44 CIK |
10334 | # Use $CC to link under sequent, because it throws in some extra .o |
10335 | # files that make .init and .fini sections work. | |
3258f645 | 10336 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
904dbe44 CIK |
10337 | else |
10338 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10339 | fi | |
10340 | hardcode_libdir_flag_spec='-L$libdir' | |
10341 | hardcode_direct=yes | |
10342 | hardcode_minus_L=yes | |
10343 | hardcode_shlibpath_var=no | |
10344 | ;; | |
10345 | ||
10346 | sysv4) | |
10347 | case $host_vendor in | |
10348 | sni) | |
10349 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10350 | hardcode_direct=yes # is this really true??? | |
10351 | ;; | |
10352 | siemens) | |
10353 | ## LD is ld it makes a PLAMLIB | |
10354 | ## CC just makes a GrossModule. | |
10355 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10356 | reload_cmds='$CC -r -o $output$reload_objs' | |
10357 | hardcode_direct=no | |
10358 | ;; | |
10359 | motorola) | |
10360 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10361 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10362 | ;; | |
10363 | esac | |
10364 | runpath_var='LD_RUN_PATH' | |
10365 | hardcode_shlibpath_var=no | |
10366 | ;; | |
10367 | ||
10368 | sysv4.3*) | |
10369 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10370 | hardcode_shlibpath_var=no | |
10371 | export_dynamic_flag_spec='-Bexport' | |
10372 | ;; | |
10373 | ||
10374 | sysv4*MP*) | |
10375 | if test -d /usr/nec; then | |
10376 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10377 | hardcode_shlibpath_var=no | |
10378 | runpath_var=LD_RUN_PATH | |
10379 | hardcode_runpath_var=yes | |
10380 | ld_shlibs=yes | |
10381 | fi | |
10382 | ;; | |
10383 | ||
10384 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
3258f645 | 10385 | no_undefined_flag='$wl-z,text' |
904dbe44 CIK |
10386 | archive_cmds_need_lc=no |
10387 | hardcode_shlibpath_var=no | |
10388 | runpath_var='LD_RUN_PATH' | |
10389 | ||
3258f645 TG |
10390 | if test yes = "$GCC"; then |
10391 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10392 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
904dbe44 | 10393 | else |
3258f645 TG |
10394 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10395 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
904dbe44 CIK |
10396 | fi |
10397 | ;; | |
10398 | ||
10399 | sysv5* | sco3.2v5* | sco5v6*) | |
3258f645 | 10400 | # Note: We CANNOT use -z defs as we might desire, because we do not |
904dbe44 CIK |
10401 | # link with -lc, and that would cause any symbols used from libc to |
10402 | # always be unresolved, which means just about no library would | |
10403 | # ever link correctly. If we're not using GNU ld we use -z text | |
10404 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10405 | # as -z defs. | |
3258f645 TG |
10406 | no_undefined_flag='$wl-z,text' |
10407 | allow_undefined_flag='$wl-z,nodefs' | |
904dbe44 CIK |
10408 | archive_cmds_need_lc=no |
10409 | hardcode_shlibpath_var=no | |
3258f645 | 10410 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
904dbe44 CIK |
10411 | hardcode_libdir_separator=':' |
10412 | link_all_deplibs=yes | |
3258f645 | 10413 | export_dynamic_flag_spec='$wl-Bexport' |
904dbe44 CIK |
10414 | runpath_var='LD_RUN_PATH' |
10415 | ||
3258f645 TG |
10416 | if test yes = "$GCC"; then |
10417 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10418 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
904dbe44 | 10419 | else |
3258f645 TG |
10420 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10421 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
904dbe44 CIK |
10422 | fi |
10423 | ;; | |
10424 | ||
10425 | uts4*) | |
10426 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10427 | hardcode_libdir_flag_spec='-L$libdir' | |
10428 | hardcode_shlibpath_var=no | |
10429 | ;; | |
10430 | ||
10431 | *) | |
10432 | ld_shlibs=no | |
10433 | ;; | |
10434 | esac | |
10435 | ||
3258f645 | 10436 | if test sni = "$host_vendor"; then |
904dbe44 CIK |
10437 | case $host in |
10438 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
3258f645 | 10439 | export_dynamic_flag_spec='$wl-Blargedynsym' |
904dbe44 CIK |
10440 | ;; |
10441 | esac | |
10442 | fi | |
10443 | fi | |
10444 | ||
10445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10446 | $as_echo "$ld_shlibs" >&6; } | |
3258f645 | 10447 | test no = "$ld_shlibs" && can_build_shared=no |
904dbe44 CIK |
10448 | |
10449 | with_gnu_ld=$with_gnu_ld | |
10450 | ||
10451 | ||
10452 | ||
10453 | ||
10454 | ||
10455 | ||
10456 | ||
10457 | ||
10458 | ||
10459 | ||
10460 | ||
10461 | ||
10462 | ||
10463 | ||
10464 | ||
10465 | # | |
10466 | # Do we need to explicitly link libc? | |
10467 | # | |
10468 | case "x$archive_cmds_need_lc" in | |
10469 | x|xyes) | |
10470 | # Assume -lc should be added | |
10471 | archive_cmds_need_lc=yes | |
10472 | ||
3258f645 | 10473 | if test yes,yes = "$GCC,$enable_shared"; then |
904dbe44 CIK |
10474 | case $archive_cmds in |
10475 | *'~'*) | |
10476 | # FIXME: we may have to deal with multi-command sequences. | |
10477 | ;; | |
10478 | '$CC '*) | |
10479 | # Test whether the compiler implicitly links with -lc since on some | |
10480 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10481 | # to ld, don't add -lc before -lgcc. | |
10482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10483 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10484 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
10485 | $as_echo_n "(cached) " >&6 | |
10486 | else | |
10487 | $RM conftest* | |
10488 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10489 | ||
10490 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10491 | (eval $ac_compile) 2>&5 | |
10492 | ac_status=$? | |
10493 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10494 | test $ac_status = 0; } 2>conftest.err; then | |
10495 | soname=conftest | |
10496 | lib=conftest | |
10497 | libobjs=conftest.$ac_objext | |
10498 | deplibs= | |
10499 | wl=$lt_prog_compiler_wl | |
10500 | pic_flag=$lt_prog_compiler_pic | |
10501 | compiler_flags=-v | |
10502 | linker_flags=-v | |
10503 | verstring= | |
10504 | output_objdir=. | |
10505 | libname=conftest | |
10506 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10507 | allow_undefined_flag= | |
10508 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10509 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10510 | ac_status=$? | |
10511 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10512 | test $ac_status = 0; } | |
10513 | then | |
10514 | lt_cv_archive_cmds_need_lc=no | |
10515 | else | |
10516 | lt_cv_archive_cmds_need_lc=yes | |
10517 | fi | |
10518 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10519 | else | |
10520 | cat conftest.err 1>&5 | |
10521 | fi | |
10522 | $RM conftest* | |
10523 | ||
10524 | fi | |
10525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10526 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10527 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10528 | ;; | |
10529 | esac | |
10530 | fi | |
10531 | ;; | |
10532 | esac | |
10533 | ||
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10686 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10687 | ||
3258f645 | 10688 | if test yes = "$GCC"; then |
904dbe44 | 10689 | case $host_os in |
3258f645 TG |
10690 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
10691 | *) lt_awk_arg='/^libraries:/' ;; | |
904dbe44 CIK |
10692 | esac |
10693 | case $host_os in | |
3258f645 TG |
10694 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
10695 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
904dbe44 CIK |
10696 | esac |
10697 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10698 | case $lt_search_path_spec in | |
10699 | *\;*) | |
10700 | # if the path contains ";" then we assume it to be the separator | |
10701 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10702 | # assumed that no part of a normal pathname contains ";" but that should | |
10703 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10704 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10705 | ;; | |
10706 | *) | |
10707 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10708 | ;; | |
10709 | esac | |
10710 | # Ok, now we have the path, separated by spaces, we can step through it | |
3258f645 | 10711 | # and add multilib dir if necessary... |
904dbe44 | 10712 | lt_tmp_lt_search_path_spec= |
3258f645 TG |
10713 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
10714 | # ...but if some path component already ends with the multilib dir we assume | |
10715 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
10716 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
10717 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
10718 | lt_multi_os_dir= | |
10719 | ;; | |
10720 | esac | |
904dbe44 | 10721 | for lt_sys_path in $lt_search_path_spec; do |
3258f645 TG |
10722 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
10723 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
10724 | elif test -n "$lt_multi_os_dir"; then | |
904dbe44 CIK |
10725 | test -d "$lt_sys_path" && \ |
10726 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10727 | fi | |
10728 | done | |
10729 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
3258f645 TG |
10730 | BEGIN {RS = " "; FS = "/|\n";} { |
10731 | lt_foo = ""; | |
10732 | lt_count = 0; | |
904dbe44 CIK |
10733 | for (lt_i = NF; lt_i > 0; lt_i--) { |
10734 | if ($lt_i != "" && $lt_i != ".") { | |
10735 | if ($lt_i == "..") { | |
10736 | lt_count++; | |
10737 | } else { | |
10738 | if (lt_count == 0) { | |
3258f645 | 10739 | lt_foo = "/" $lt_i lt_foo; |
904dbe44 CIK |
10740 | } else { |
10741 | lt_count--; | |
10742 | } | |
10743 | } | |
10744 | } | |
10745 | } | |
10746 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10747 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10748 | }'` | |
10749 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10750 | # for these hosts. | |
10751 | case $host_os in | |
10752 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
3258f645 | 10753 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
904dbe44 CIK |
10754 | esac |
10755 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10756 | else | |
10757 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10758 | fi | |
10759 | library_names_spec= | |
10760 | libname_spec='lib$name' | |
10761 | soname_spec= | |
3258f645 | 10762 | shrext_cmds=.so |
904dbe44 CIK |
10763 | postinstall_cmds= |
10764 | postuninstall_cmds= | |
10765 | finish_cmds= | |
10766 | finish_eval= | |
10767 | shlibpath_var= | |
10768 | shlibpath_overrides_runpath=unknown | |
10769 | version_type=none | |
10770 | dynamic_linker="$host_os ld.so" | |
10771 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10772 | need_lib_prefix=unknown | |
10773 | hardcode_into_libs=no | |
10774 | ||
10775 | # when you set need_version to no, make sure it does not cause -set_version | |
10776 | # flags to be left without arguments | |
10777 | need_version=unknown | |
10778 | ||
3258f645 TG |
10779 | |
10780 | ||
904dbe44 CIK |
10781 | case $host_os in |
10782 | aix3*) | |
10783 | version_type=linux # correct to gnu/linux during the next big refactor | |
3258f645 | 10784 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
904dbe44 CIK |
10785 | shlibpath_var=LIBPATH |
10786 | ||
10787 | # AIX 3 has no versioning support, so we append a major version to the name. | |
3258f645 | 10788 | soname_spec='$libname$release$shared_ext$major' |
904dbe44 CIK |
10789 | ;; |
10790 | ||
10791 | aix[4-9]*) | |
10792 | version_type=linux # correct to gnu/linux during the next big refactor | |
10793 | need_lib_prefix=no | |
10794 | need_version=no | |
10795 | hardcode_into_libs=yes | |
3258f645 | 10796 | if test ia64 = "$host_cpu"; then |
904dbe44 | 10797 | # AIX 5 supports IA64 |
3258f645 | 10798 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
904dbe44 CIK |
10799 | shlibpath_var=LD_LIBRARY_PATH |
10800 | else | |
10801 | # With GCC up to 2.95.x, collect2 would create an import file | |
10802 | # for dependence libraries. The import file would start with | |
3258f645 TG |
10803 | # the line '#! .'. This would cause the generated library to |
10804 | # depend on '.', always an invalid library. This was fixed in | |
904dbe44 CIK |
10805 | # development snapshots of GCC prior to 3.0. |
10806 | case $host_os in | |
10807 | aix4 | aix4.[01] | aix4.[01].*) | |
10808 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10809 | echo ' yes ' | |
3258f645 | 10810 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
904dbe44 CIK |
10811 | : |
10812 | else | |
10813 | can_build_shared=no | |
10814 | fi | |
10815 | ;; | |
10816 | esac | |
3258f645 TG |
10817 | # Using Import Files as archive members, it is possible to support |
10818 | # filename-based versioning of shared library archives on AIX. While | |
10819 | # this would work for both with and without runtime linking, it will | |
10820 | # prevent static linking of such archives. So we do filename-based | |
10821 | # shared library versioning with .so extension only, which is used | |
10822 | # when both runtime linking and shared linking is enabled. | |
10823 | # Unfortunately, runtime linking may impact performance, so we do | |
10824 | # not want this to be the default eventually. Also, we use the | |
10825 | # versioned .so libs for executables only if there is the -brtl | |
10826 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
10827 | # To allow for filename-based versioning support, we need to create | |
10828 | # libNAME.so.V as an archive file, containing: | |
10829 | # *) an Import File, referring to the versioned filename of the | |
10830 | # archive as well as the shared archive member, telling the | |
10831 | # bitwidth (32 or 64) of that shared object, and providing the | |
10832 | # list of exported symbols of that shared object, eventually | |
10833 | # decorated with the 'weak' keyword | |
10834 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
10835 | # it being seen by the linker. | |
10836 | # At run time we better use the real file rather than another symlink, | |
10837 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
10838 | ||
10839 | case $with_aix_soname,$aix_use_runtimelinking in | |
10840 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
904dbe44 CIK |
10841 | # soname into executable. Probably we can add versioning support to |
10842 | # collect2, so additional links can be useful in future. | |
3258f645 TG |
10843 | aix,yes) # traditional libtool |
10844 | dynamic_linker='AIX unversionable lib.so' | |
904dbe44 CIK |
10845 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
10846 | # instead of lib<name>.a to let people know that these are not | |
10847 | # typical AIX shared libraries. | |
3258f645 TG |
10848 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10849 | ;; | |
10850 | aix,no) # traditional AIX only | |
10851 | dynamic_linker='AIX lib.a(lib.so.V)' | |
904dbe44 CIK |
10852 | # We preserve .a as extension for shared libraries through AIX4.2 |
10853 | # and later when we are not doing run time linking. | |
3258f645 TG |
10854 | library_names_spec='$libname$release.a $libname.a' |
10855 | soname_spec='$libname$release$shared_ext$major' | |
10856 | ;; | |
10857 | svr4,*) # full svr4 only | |
10858 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
10859 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10860 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10861 | shlibpath_overrides_runpath=yes | |
10862 | ;; | |
10863 | *,yes) # both, prefer svr4 | |
10864 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
10865 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10866 | # unpreferred sharedlib libNAME.a needs extra handling | |
10867 | 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"' | |
10868 | 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"' | |
10869 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10870 | shlibpath_overrides_runpath=yes | |
10871 | ;; | |
10872 | *,no) # both, prefer aix | |
10873 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
10874 | library_names_spec='$libname$release.a $libname.a' | |
10875 | soname_spec='$libname$release$shared_ext$major' | |
10876 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
10877 | 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)' | |
10878 | 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"' | |
10879 | ;; | |
10880 | esac | |
904dbe44 CIK |
10881 | shlibpath_var=LIBPATH |
10882 | fi | |
10883 | ;; | |
10884 | ||
10885 | amigaos*) | |
10886 | case $host_cpu in | |
10887 | powerpc) | |
10888 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10889 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
3258f645 | 10890 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
904dbe44 CIK |
10891 | ;; |
10892 | m68k) | |
10893 | library_names_spec='$libname.ixlibrary $libname.a' | |
10894 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
3258f645 | 10895 | 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' |
904dbe44 CIK |
10896 | ;; |
10897 | esac | |
10898 | ;; | |
10899 | ||
10900 | beos*) | |
3258f645 | 10901 | library_names_spec='$libname$shared_ext' |
904dbe44 CIK |
10902 | dynamic_linker="$host_os ld.so" |
10903 | shlibpath_var=LIBRARY_PATH | |
10904 | ;; | |
10905 | ||
10906 | bsdi[45]*) | |
10907 | version_type=linux # correct to gnu/linux during the next big refactor | |
10908 | need_version=no | |
3258f645 TG |
10909 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10910 | soname_spec='$libname$release$shared_ext$major' | |
904dbe44 CIK |
10911 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
10912 | shlibpath_var=LD_LIBRARY_PATH | |
10913 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10914 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10915 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10916 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10917 | # libtool to hard-code these into programs | |
10918 | ;; | |
10919 | ||
10920 | cygwin* | mingw* | pw32* | cegcc*) | |
10921 | version_type=windows | |
3258f645 | 10922 | shrext_cmds=.dll |
904dbe44 CIK |
10923 | need_version=no |
10924 | need_lib_prefix=no | |
10925 | ||
10926 | case $GCC,$cc_basename in | |
10927 | yes,*) | |
10928 | # gcc | |
10929 | library_names_spec='$libname.dll.a' | |
10930 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
3258f645 TG |
10931 | postinstall_cmds='base_file=`basename \$file`~ |
10932 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
904dbe44 CIK |
10933 | dldir=$destdir/`dirname \$dlpath`~ |
10934 | test -d \$dldir || mkdir -p \$dldir~ | |
10935 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10936 | chmod a+x \$dldir/$dlname~ | |
10937 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10938 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10939 | fi' | |
10940 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10941 | dlpath=$dir/\$dldll~ | |
10942 | $RM \$dlpath' | |
10943 | shlibpath_overrides_runpath=yes | |
10944 | ||
10945 | case $host_os in | |
10946 | cygwin*) | |
10947 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
3258f645 | 10948 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
904dbe44 CIK |
10949 | |
10950 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
10951 | ;; | |
10952 | mingw* | cegcc*) | |
10953 | # MinGW DLLs use traditional 'lib' prefix | |
3258f645 | 10954 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
904dbe44 CIK |
10955 | ;; |
10956 | pw32*) | |
10957 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
3258f645 | 10958 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
904dbe44 CIK |
10959 | ;; |
10960 | esac | |
10961 | dynamic_linker='Win32 ld.exe' | |
10962 | ;; | |
10963 | ||
10964 | *,cl*) | |
10965 | # Native MSVC | |
10966 | libname_spec='$name' | |
3258f645 TG |
10967 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10968 | library_names_spec='$libname.dll.lib' | |
904dbe44 CIK |
10969 | |
10970 | case $build_os in | |
10971 | mingw*) | |
10972 | sys_lib_search_path_spec= | |
10973 | lt_save_ifs=$IFS | |
10974 | IFS=';' | |
10975 | for lt_path in $LIB | |
10976 | do | |
10977 | IFS=$lt_save_ifs | |
10978 | # Let DOS variable expansion print the short 8.3 style file name. | |
10979 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10980 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10981 | done | |
10982 | IFS=$lt_save_ifs | |
10983 | # Convert to MSYS style. | |
10984 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10985 | ;; | |
10986 | cygwin*) | |
10987 | # Convert to unix form, then to dos form, then back to unix form | |
10988 | # but this time dos style (no spaces!) so that the unix form looks | |
10989 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
10990 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10991 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10992 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10993 | ;; | |
10994 | *) | |
3258f645 | 10995 | sys_lib_search_path_spec=$LIB |
904dbe44 CIK |
10996 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
10997 | # It is most probably a Windows format PATH. | |
10998 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10999 | else | |
11000 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11001 | fi | |
11002 | # FIXME: find the short name or the path components, as spaces are | |
11003 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11004 | ;; | |
11005 | esac | |
11006 | ||
11007 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
3258f645 TG |
11008 | postinstall_cmds='base_file=`basename \$file`~ |
11009 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
904dbe44 CIK |
11010 | dldir=$destdir/`dirname \$dlpath`~ |
11011 | test -d \$dldir || mkdir -p \$dldir~ | |
11012 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11013 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11014 | dlpath=$dir/\$dldll~ | |
11015 | $RM \$dlpath' | |
11016 | shlibpath_overrides_runpath=yes | |
11017 | dynamic_linker='Win32 link.exe' | |
11018 | ;; | |
11019 | ||
11020 | *) | |
11021 | # Assume MSVC wrapper | |
3258f645 | 11022 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
904dbe44 CIK |
11023 | dynamic_linker='Win32 ld.exe' |
11024 | ;; | |
11025 | esac | |
11026 | # FIXME: first we should search . and the directory the executable is in | |
11027 | shlibpath_var=PATH | |
11028 | ;; | |
11029 | ||
11030 | darwin* | rhapsody*) | |
11031 | dynamic_linker="$host_os dyld" | |
11032 | version_type=darwin | |
11033 | need_lib_prefix=no | |
11034 | need_version=no | |
3258f645 TG |
11035 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
11036 | soname_spec='$libname$release$major$shared_ext' | |
904dbe44 CIK |
11037 | shlibpath_overrides_runpath=yes |
11038 | shlibpath_var=DYLD_LIBRARY_PATH | |
11039 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11040 | ||
11041 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11042 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11043 | ;; | |
11044 | ||
11045 | dgux*) | |
11046 | version_type=linux # correct to gnu/linux during the next big refactor | |
11047 | need_lib_prefix=no | |
11048 | need_version=no | |
3258f645 TG |
11049 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11050 | soname_spec='$libname$release$shared_ext$major' | |
904dbe44 CIK |
11051 | shlibpath_var=LD_LIBRARY_PATH |
11052 | ;; | |
11053 | ||
11054 | freebsd* | dragonfly*) | |
11055 | # DragonFly does not have aout. When/if they implement a new | |
11056 | # versioning mechanism, adjust this. | |
11057 | if test -x /usr/bin/objformat; then | |
11058 | objformat=`/usr/bin/objformat` | |
11059 | else | |
11060 | case $host_os in | |
11061 | freebsd[23].*) objformat=aout ;; | |
11062 | *) objformat=elf ;; | |
11063 | esac | |
11064 | fi | |
11065 | version_type=freebsd-$objformat | |
11066 | case $version_type in | |
11067 | freebsd-elf*) | |
3258f645 TG |
11068 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11069 | soname_spec='$libname$release$shared_ext$major' | |
904dbe44 CIK |
11070 | need_version=no |
11071 | need_lib_prefix=no | |
11072 | ;; | |
11073 | freebsd-*) | |
3258f645 | 11074 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
904dbe44 CIK |
11075 | need_version=yes |
11076 | ;; | |
11077 | esac | |
11078 | shlibpath_var=LD_LIBRARY_PATH | |
11079 | case $host_os in | |
11080 | freebsd2.*) | |
11081 | shlibpath_overrides_runpath=yes | |
11082 | ;; | |
11083 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11084 | shlibpath_overrides_runpath=yes | |
11085 | hardcode_into_libs=yes | |
11086 | ;; | |
11087 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11088 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11089 | shlibpath_overrides_runpath=no | |
11090 | hardcode_into_libs=yes | |
11091 | ;; | |
11092 | *) # from 4.6 on, and DragonFly | |
11093 | shlibpath_overrides_runpath=yes | |
11094 | hardcode_into_libs=yes | |
11095 | ;; | |
11096 | esac | |
11097 | ;; | |
11098 | ||
11099 | haiku*) | |
11100 | version_type=linux # correct to gnu/linux during the next big refactor | |
11101 | need_lib_prefix=no | |
11102 | need_version=no | |
11103 | dynamic_linker="$host_os runtime_loader" | |
3258f645 TG |
11104 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11105 | soname_spec='$libname$release$shared_ext$major' | |
904dbe44 | 11106 | shlibpath_var=LIBRARY_PATH |
3258f645 | 11107 | shlibpath_overrides_runpath=no |
904dbe44 CIK |
11108 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
11109 | hardcode_into_libs=yes | |
11110 | ;; | |
11111 | ||
11112 | hpux9* | hpux10* | hpux11*) | |
11113 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11114 | # link against other versions. | |
11115 | version_type=sunos | |
11116 | need_lib_prefix=no | |
11117 | need_version=no | |
11118 | case $host_cpu in | |
11119 | ia64*) | |
11120 | shrext_cmds='.so' | |
11121 | hardcode_into_libs=yes | |
11122 | dynamic_linker="$host_os dld.so" | |
11123 | shlibpath_var=LD_LIBRARY_PATH | |
11124 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
3258f645 TG |
11125 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11126 | soname_spec='$libname$release$shared_ext$major' | |
11127 | if test 32 = "$HPUX_IA64_MODE"; then | |
904dbe44 | 11128 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
3258f645 | 11129 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
904dbe44 CIK |
11130 | else |
11131 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
3258f645 | 11132 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
904dbe44 | 11133 | fi |
904dbe44 CIK |
11134 | ;; |
11135 | hppa*64*) | |
11136 | shrext_cmds='.sl' | |
11137 | hardcode_into_libs=yes | |
11138 | dynamic_linker="$host_os dld.sl" | |
11139 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11140 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
3258f645 TG |
11141 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11142 | soname_spec='$libname$release$shared_ext$major' | |
904dbe44 CIK |
11143 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
11144 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11145 | ;; | |
11146 | *) | |
11147 | shrext_cmds='.sl' | |
11148 | dynamic_linker="$host_os dld.sl" | |
11149 | shlibpath_var=SHLIB_PATH | |
11150 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
3258f645 TG |
11151 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11152 | soname_spec='$libname$release$shared_ext$major' | |
904dbe44 CIK |
11153 | ;; |
11154 | esac | |
11155 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11156 | postinstall_cmds='chmod 555 $lib' | |
11157 | # or fails outright, so override atomically: | |
11158 | install_override_mode=555 | |
11159 | ;; | |
11160 | ||
11161 | interix[3-9]*) | |
11162 | version_type=linux # correct to gnu/linux during the next big refactor | |
11163 | need_lib_prefix=no | |
11164 | need_version=no | |
3258f645 TG |
11165 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11166 | soname_spec='$libname$release$shared_ext$major' | |
904dbe44 CIK |
11167 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
11168 | shlibpath_var=LD_LIBRARY_PATH | |
11169 | shlibpath_overrides_runpath=no | |
11170 | hardcode_into_libs=yes | |
11171 | ;; | |
11172 | ||
11173 | irix5* | irix6* | nonstopux*) | |
11174 | case $host_os in | |
11175 | nonstopux*) version_type=nonstopux ;; | |
11176 | *) | |
3258f645 | 11177 | if test yes = "$lt_cv_prog_gnu_ld"; then |
904dbe44 CIK |
11178 | version_type=linux # correct to gnu/linux during the next big refactor |
11179 | else | |
11180 | version_type=irix | |
11181 | fi ;; | |
11182 | esac | |
11183 | need_lib_prefix=no | |
11184 | need_version=no | |
3258f645 TG |
11185 | soname_spec='$libname$release$shared_ext$major' |
11186 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
904dbe44 CIK |
11187 | case $host_os in |
11188 | irix5* | nonstopux*) | |
11189 | libsuff= shlibsuff= | |
11190 | ;; | |
11191 | *) | |
11192 | case $LD in # libtool.m4 will add one of these switches to LD | |
11193 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11194 | libsuff= shlibsuff= libmagic=32-bit;; | |
11195 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11196 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11197 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11198 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11199 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11200 | esac | |
11201 | ;; | |
11202 | esac | |
11203 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11204 | shlibpath_overrides_runpath=no | |
3258f645 TG |
11205 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
11206 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
904dbe44 CIK |
11207 | hardcode_into_libs=yes |
11208 | ;; | |
11209 | ||
11210 | # No shared lib support for Linux oldld, aout, or coff. | |
11211 | linux*oldld* | linux*aout* | linux*coff*) | |
11212 | dynamic_linker=no | |
11213 | ;; | |
11214 | ||
3258f645 TG |
11215 | linux*android*) |
11216 | version_type=none # Android doesn't support versioned libraries. | |
11217 | need_lib_prefix=no | |
11218 | need_version=no | |
11219 | library_names_spec='$libname$release$shared_ext' | |
11220 | soname_spec='$libname$release$shared_ext' | |
11221 | finish_cmds= | |
11222 | shlibpath_var=LD_LIBRARY_PATH | |
11223 | shlibpath_overrides_runpath=yes | |
11224 | ||
11225 | # This implies no fast_install, which is unacceptable. | |
11226 | # Some rework will be needed to allow for fast_install | |
11227 | # before this can be enabled. | |
11228 | hardcode_into_libs=yes | |
11229 | ||
11230 | dynamic_linker='Android linker' | |
11231 | # Don't embed -rpath directories since the linker doesn't support them. | |
11232 | hardcode_libdir_flag_spec='-L$libdir' | |
11233 | ;; | |
11234 | ||
904dbe44 CIK |
11235 | # This must be glibc/ELF. |
11236 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
11237 | version_type=linux # correct to gnu/linux during the next big refactor | |
11238 | need_lib_prefix=no | |
11239 | need_version=no | |
3258f645 TG |
11240 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11241 | soname_spec='$libname$release$shared_ext$major' | |
904dbe44 CIK |
11242 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
11243 | shlibpath_var=LD_LIBRARY_PATH | |
11244 | shlibpath_overrides_runpath=no | |
11245 | ||
11246 | # Some binutils ld are patched to set DT_RUNPATH | |
11247 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
11248 | $as_echo_n "(cached) " >&6 | |
11249 | else | |
11250 | lt_cv_shlibpath_overrides_runpath=no | |
11251 | save_LDFLAGS=$LDFLAGS | |
11252 | save_libdir=$libdir | |
11253 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11254 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11256 | /* end confdefs.h. */ | |
11257 | ||
11258 | int | |
11259 | main () | |
11260 | { | |
11261 | ||
11262 | ; | |
11263 | return 0; | |
11264 | } | |
11265 | _ACEOF | |
11266 | if ac_fn_c_try_link "$LINENO"; then : | |
11267 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11268 | lt_cv_shlibpath_overrides_runpath=yes | |
11269 | fi | |
11270 | fi | |
11271 | rm -f core conftest.err conftest.$ac_objext \ | |
11272 | conftest$ac_exeext conftest.$ac_ext | |
11273 | LDFLAGS=$save_LDFLAGS | |
11274 | libdir=$save_libdir | |
11275 | ||
11276 | fi | |
11277 | ||
11278 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
11279 | ||
11280 | # This implies no fast_install, which is unacceptable. | |
11281 | # Some rework will be needed to allow for fast_install | |
11282 | # before this can be enabled. | |
11283 | hardcode_into_libs=yes | |
11284 | ||
3258f645 TG |
11285 | # Ideally, we could use ldconfig to report *all* directores which are |
11286 | # searched for libraries, however this is still not possible. Aside from not | |
11287 | # being certain /sbin/ldconfig is available, command | |
11288 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
11289 | # even though it is searched at run-time. Try to do the best guess by | |
11290 | # appending ld.so.conf contents (and includes) to the search path. | |
904dbe44 CIK |
11291 | if test -f /etc/ld.so.conf; then |
11292 | 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' ' '` | |
11293 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11294 | fi | |
11295 | ||
11296 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11297 | # powerpc, because MkLinux only supported shared libraries with the | |
11298 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11299 | # most powerpc-linux boxes support dynamic linking these days and | |
11300 | # people can always --disable-shared, the test was removed, and we | |
11301 | # assume the GNU/Linux dynamic linker is in use. | |
11302 | dynamic_linker='GNU/Linux ld.so' | |
11303 | ;; | |
11304 | ||
11305 | netbsdelf*-gnu) | |
11306 | version_type=linux | |
11307 | need_lib_prefix=no | |
11308 | need_version=no | |
11309 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11310 | soname_spec='${libname}${release}${shared_ext}$major' | |
11311 | shlibpath_var=LD_LIBRARY_PATH | |
11312 | shlibpath_overrides_runpath=no | |
11313 | hardcode_into_libs=yes | |
11314 | dynamic_linker='NetBSD ld.elf_so' | |
11315 | ;; | |
11316 | ||
11317 | netbsd*) | |
11318 | version_type=sunos | |
11319 | need_lib_prefix=no | |
11320 | need_version=no | |
11321 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
3258f645 | 11322 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
904dbe44 CIK |
11323 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11324 | dynamic_linker='NetBSD (a.out) ld.so' | |
11325 | else | |
3258f645 TG |
11326 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11327 | soname_spec='$libname$release$shared_ext$major' | |
904dbe44 CIK |
11328 | dynamic_linker='NetBSD ld.elf_so' |
11329 | fi | |
11330 | shlibpath_var=LD_LIBRARY_PATH | |
11331 | shlibpath_overrides_runpath=yes | |
11332 | hardcode_into_libs=yes | |
11333 | ;; | |
11334 | ||
11335 | newsos6) | |
11336 | version_type=linux # correct to gnu/linux during the next big refactor | |
3258f645 | 11337 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
904dbe44 CIK |
11338 | shlibpath_var=LD_LIBRARY_PATH |
11339 | shlibpath_overrides_runpath=yes | |
11340 | ;; | |
11341 | ||
11342 | *nto* | *qnx*) | |
11343 | version_type=qnx | |
11344 | need_lib_prefix=no | |
11345 | need_version=no | |
3258f645 TG |
11346 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11347 | soname_spec='$libname$release$shared_ext$major' | |
904dbe44 CIK |
11348 | shlibpath_var=LD_LIBRARY_PATH |
11349 | shlibpath_overrides_runpath=no | |
11350 | hardcode_into_libs=yes | |
11351 | dynamic_linker='ldqnx.so' | |
11352 | ;; | |
11353 | ||
3258f645 | 11354 | openbsd* | bitrig*) |
904dbe44 | 11355 | version_type=sunos |
3258f645 | 11356 | sys_lib_dlsearch_path_spec=/usr/lib |
904dbe44 | 11357 | need_lib_prefix=no |
3258f645 TG |
11358 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
11359 | need_version=no | |
904dbe44 | 11360 | else |
3258f645 | 11361 | need_version=yes |
904dbe44 | 11362 | fi |
3258f645 TG |
11363 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11364 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11365 | shlibpath_var=LD_LIBRARY_PATH | |
11366 | shlibpath_overrides_runpath=yes | |
904dbe44 CIK |
11367 | ;; |
11368 | ||
11369 | os2*) | |
11370 | libname_spec='$name' | |
3258f645 TG |
11371 | version_type=windows |
11372 | shrext_cmds=.dll | |
11373 | need_version=no | |
904dbe44 | 11374 | need_lib_prefix=no |
3258f645 TG |
11375 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
11376 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
11377 | v=$($ECHO $release$versuffix | tr -d .-); | |
11378 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
11379 | $ECHO $n$v`$shared_ext' | |
11380 | library_names_spec='${libname}_dll.$libext' | |
904dbe44 | 11381 | dynamic_linker='OS/2 ld.exe' |
3258f645 TG |
11382 | shlibpath_var=BEGINLIBPATH |
11383 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11384 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11385 | postinstall_cmds='base_file=`basename \$file`~ | |
11386 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
11387 | dldir=$destdir/`dirname \$dlpath`~ | |
11388 | test -d \$dldir || mkdir -p \$dldir~ | |
11389 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11390 | chmod a+x \$dldir/$dlname~ | |
11391 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11392 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11393 | fi' | |
11394 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
11395 | dlpath=$dir/\$dldll~ | |
11396 | $RM \$dlpath' | |
904dbe44 CIK |
11397 | ;; |
11398 | ||
11399 | osf3* | osf4* | osf5*) | |
11400 | version_type=osf | |
11401 | need_lib_prefix=no | |
11402 | need_version=no | |
3258f645 TG |
11403 | soname_spec='$libname$release$shared_ext$major' |
11404 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
904dbe44 CIK |
11405 | shlibpath_var=LD_LIBRARY_PATH |
11406 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
3258f645 | 11407 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
904dbe44 CIK |
11408 | ;; |
11409 | ||
11410 | rdos*) | |
11411 | dynamic_linker=no | |
11412 | ;; | |
11413 | ||
11414 | solaris*) | |
11415 | version_type=linux # correct to gnu/linux during the next big refactor | |
11416 | need_lib_prefix=no | |
11417 | need_version=no | |
3258f645 TG |
11418 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11419 | soname_spec='$libname$release$shared_ext$major' | |
904dbe44 CIK |
11420 | shlibpath_var=LD_LIBRARY_PATH |
11421 | shlibpath_overrides_runpath=yes | |
11422 | hardcode_into_libs=yes | |
11423 | # ldd complains unless libraries are executable | |
11424 | postinstall_cmds='chmod +x $lib' | |
11425 | ;; | |
11426 | ||
11427 | sunos4*) | |
11428 | version_type=sunos | |
3258f645 | 11429 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
904dbe44 CIK |
11430 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
11431 | shlibpath_var=LD_LIBRARY_PATH | |
11432 | shlibpath_overrides_runpath=yes | |
3258f645 | 11433 | if test yes = "$with_gnu_ld"; then |
904dbe44 CIK |
11434 | need_lib_prefix=no |
11435 | fi | |
11436 | need_version=yes | |
11437 | ;; | |
11438 | ||
11439 | sysv4 | sysv4.3*) | |
11440 | version_type=linux # correct to gnu/linux during the next big refactor | |
3258f645 TG |
11441 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11442 | soname_spec='$libname$release$shared_ext$major' | |
904dbe44 CIK |
11443 | shlibpath_var=LD_LIBRARY_PATH |
11444 | case $host_vendor in | |
11445 | sni) | |
11446 | shlibpath_overrides_runpath=no | |
11447 | need_lib_prefix=no | |
11448 | runpath_var=LD_RUN_PATH | |
11449 | ;; | |
11450 | siemens) | |
11451 | need_lib_prefix=no | |
11452 | ;; | |
11453 | motorola) | |
11454 | need_lib_prefix=no | |
11455 | need_version=no | |
11456 | shlibpath_overrides_runpath=no | |
11457 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11458 | ;; | |
11459 | esac | |
11460 | ;; | |
11461 | ||
11462 | sysv4*MP*) | |
3258f645 | 11463 | if test -d /usr/nec; then |
904dbe44 | 11464 | version_type=linux # correct to gnu/linux during the next big refactor |
3258f645 TG |
11465 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
11466 | soname_spec='$libname$shared_ext.$major' | |
904dbe44 CIK |
11467 | shlibpath_var=LD_LIBRARY_PATH |
11468 | fi | |
11469 | ;; | |
11470 | ||
11471 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
3258f645 | 11472 | version_type=sco |
904dbe44 CIK |
11473 | need_lib_prefix=no |
11474 | need_version=no | |
3258f645 TG |
11475 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
11476 | soname_spec='$libname$release$shared_ext$major' | |
904dbe44 CIK |
11477 | shlibpath_var=LD_LIBRARY_PATH |
11478 | shlibpath_overrides_runpath=yes | |
11479 | hardcode_into_libs=yes | |
3258f645 | 11480 | if test yes = "$with_gnu_ld"; then |
904dbe44 CIK |
11481 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
11482 | else | |
11483 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11484 | case $host_os in | |
11485 | sco3.2v5*) | |
11486 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11487 | ;; | |
11488 | esac | |
11489 | fi | |
11490 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11491 | ;; | |
11492 | ||
11493 | tpf*) | |
11494 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11495 | version_type=linux # correct to gnu/linux during the next big refactor | |
11496 | need_lib_prefix=no | |
11497 | need_version=no | |
3258f645 | 11498 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
904dbe44 CIK |
11499 | shlibpath_var=LD_LIBRARY_PATH |
11500 | shlibpath_overrides_runpath=no | |
11501 | hardcode_into_libs=yes | |
11502 | ;; | |
11503 | ||
11504 | uts4*) | |
11505 | version_type=linux # correct to gnu/linux during the next big refactor | |
3258f645 TG |
11506 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11507 | soname_spec='$libname$release$shared_ext$major' | |
904dbe44 CIK |
11508 | shlibpath_var=LD_LIBRARY_PATH |
11509 | ;; | |
11510 | ||
11511 | *) | |
11512 | dynamic_linker=no | |
11513 | ;; | |
11514 | esac | |
11515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11516 | $as_echo "$dynamic_linker" >&6; } | |
3258f645 | 11517 | test no = "$dynamic_linker" && can_build_shared=no |
904dbe44 CIK |
11518 | |
11519 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
3258f645 | 11520 | if test yes = "$GCC"; then |
904dbe44 CIK |
11521 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
11522 | fi | |
11523 | ||
3258f645 TG |
11524 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
11525 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
904dbe44 | 11526 | fi |
3258f645 TG |
11527 | |
11528 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
11529 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
904dbe44 CIK |
11530 | fi |
11531 | ||
3258f645 TG |
11532 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
11533 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
11534 | ||
11535 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
11536 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
11537 | ||
11538 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
11539 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
11540 | ||
11541 | ||
11542 | ||
11543 | ||
11544 | ||
11545 | ||
904dbe44 CIK |
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11638 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11639 | hardcode_action= | |
11640 | if test -n "$hardcode_libdir_flag_spec" || | |
11641 | test -n "$runpath_var" || | |
3258f645 | 11642 | test yes = "$hardcode_automatic"; then |
904dbe44 CIK |
11643 | |
11644 | # We can hardcode non-existent directories. | |
3258f645 | 11645 | if test no != "$hardcode_direct" && |
904dbe44 CIK |
11646 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
11647 | # have to relink, otherwise we might link with an installed library | |
11648 | # when we should be linking with a yet-to-be-installed one | |
3258f645 TG |
11649 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
11650 | test no != "$hardcode_minus_L"; then | |
904dbe44 CIK |
11651 | # Linking always hardcodes the temporary library directory. |
11652 | hardcode_action=relink | |
11653 | else | |
11654 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11655 | hardcode_action=immediate | |
11656 | fi | |
11657 | else | |
11658 | # We cannot hardcode anything, or else we can only hardcode existing | |
11659 | # directories. | |
11660 | hardcode_action=unsupported | |
11661 | fi | |
11662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11663 | $as_echo "$hardcode_action" >&6; } | |
11664 | ||
3258f645 TG |
11665 | if test relink = "$hardcode_action" || |
11666 | test yes = "$inherit_rpath"; then | |
904dbe44 CIK |
11667 | # Fast installation is not supported |
11668 | enable_fast_install=no | |
3258f645 TG |
11669 | elif test yes = "$shlibpath_overrides_runpath" || |
11670 | test no = "$enable_shared"; then | |
904dbe44 CIK |
11671 | # Fast installation is not necessary |
11672 | enable_fast_install=needless | |
11673 | fi | |
11674 | ||
11675 | ||
11676 | ||
11677 | ||
11678 | ||
11679 | ||
3258f645 | 11680 | if test yes != "$enable_dlopen"; then |
904dbe44 CIK |
11681 | enable_dlopen=unknown |
11682 | enable_dlopen_self=unknown | |
11683 | enable_dlopen_self_static=unknown | |
11684 | else | |
11685 | lt_cv_dlopen=no | |
11686 | lt_cv_dlopen_libs= | |
11687 | ||
11688 | case $host_os in | |
11689 | beos*) | |
3258f645 | 11690 | lt_cv_dlopen=load_add_on |
904dbe44 CIK |
11691 | lt_cv_dlopen_libs= |
11692 | lt_cv_dlopen_self=yes | |
11693 | ;; | |
11694 | ||
11695 | mingw* | pw32* | cegcc*) | |
3258f645 | 11696 | lt_cv_dlopen=LoadLibrary |
904dbe44 CIK |
11697 | lt_cv_dlopen_libs= |
11698 | ;; | |
11699 | ||
11700 | cygwin*) | |
3258f645 | 11701 | lt_cv_dlopen=dlopen |
904dbe44 CIK |
11702 | lt_cv_dlopen_libs= |
11703 | ;; | |
11704 | ||
11705 | darwin*) | |
3258f645 | 11706 | # if libdl is installed we need to link against it |
904dbe44 CIK |
11707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11708 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11709 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11710 | $as_echo_n "(cached) " >&6 | |
11711 | else | |
11712 | ac_check_lib_save_LIBS=$LIBS | |
11713 | LIBS="-ldl $LIBS" | |
11714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11715 | /* end confdefs.h. */ | |
11716 | ||
11717 | /* Override any GCC internal prototype to avoid an error. | |
11718 | Use char because int might match the return type of a GCC | |
11719 | builtin and then its argument prototype would still apply. */ | |
11720 | #ifdef __cplusplus | |
11721 | extern "C" | |
11722 | #endif | |
11723 | char dlopen (); | |
11724 | int | |
11725 | main () | |
11726 | { | |
11727 | return dlopen (); | |
11728 | ; | |
11729 | return 0; | |
11730 | } | |
11731 | _ACEOF | |
11732 | if ac_fn_c_try_link "$LINENO"; then : | |
11733 | ac_cv_lib_dl_dlopen=yes | |
11734 | else | |
11735 | ac_cv_lib_dl_dlopen=no | |
11736 | fi | |
11737 | rm -f core conftest.err conftest.$ac_objext \ | |
11738 | conftest$ac_exeext conftest.$ac_ext | |
11739 | LIBS=$ac_check_lib_save_LIBS | |
11740 | fi | |
11741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11742 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11743 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
3258f645 | 11744 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
904dbe44 CIK |
11745 | else |
11746 | ||
3258f645 | 11747 | lt_cv_dlopen=dyld |
904dbe44 CIK |
11748 | lt_cv_dlopen_libs= |
11749 | lt_cv_dlopen_self=yes | |
11750 | ||
11751 | fi | |
11752 | ||
11753 | ;; | |
11754 | ||
3258f645 TG |
11755 | tpf*) |
11756 | # Don't try to run any link tests for TPF. We know it's impossible | |
11757 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
11758 | lt_cv_dlopen=dlopen | |
11759 | lt_cv_dlopen_libs= | |
11760 | lt_cv_dlopen_self=no | |
11761 | ;; | |
11762 | ||
904dbe44 CIK |
11763 | *) |
11764 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11765 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
3258f645 | 11766 | lt_cv_dlopen=shl_load |
904dbe44 CIK |
11767 | else |
11768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11769 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11770 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11771 | $as_echo_n "(cached) " >&6 | |
11772 | else | |
11773 | ac_check_lib_save_LIBS=$LIBS | |
11774 | LIBS="-ldld $LIBS" | |
11775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11776 | /* end confdefs.h. */ | |
11777 | ||
11778 | /* Override any GCC internal prototype to avoid an error. | |
11779 | Use char because int might match the return type of a GCC | |
11780 | builtin and then its argument prototype would still apply. */ | |
11781 | #ifdef __cplusplus | |
11782 | extern "C" | |
11783 | #endif | |
11784 | char shl_load (); | |
11785 | int | |
11786 | main () | |
11787 | { | |
11788 | return shl_load (); | |
11789 | ; | |
11790 | return 0; | |
11791 | } | |
11792 | _ACEOF | |
11793 | if ac_fn_c_try_link "$LINENO"; then : | |
11794 | ac_cv_lib_dld_shl_load=yes | |
11795 | else | |
11796 | ac_cv_lib_dld_shl_load=no | |
11797 | fi | |
11798 | rm -f core conftest.err conftest.$ac_objext \ | |
11799 | conftest$ac_exeext conftest.$ac_ext | |
11800 | LIBS=$ac_check_lib_save_LIBS | |
11801 | fi | |
11802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11803 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11804 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
3258f645 | 11805 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
904dbe44 CIK |
11806 | else |
11807 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11808 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
3258f645 | 11809 | lt_cv_dlopen=dlopen |
904dbe44 CIK |
11810 | else |
11811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11812 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11813 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11814 | $as_echo_n "(cached) " >&6 | |
11815 | else | |
11816 | ac_check_lib_save_LIBS=$LIBS | |
11817 | LIBS="-ldl $LIBS" | |
11818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11819 | /* end confdefs.h. */ | |
11820 | ||
11821 | /* Override any GCC internal prototype to avoid an error. | |
11822 | Use char because int might match the return type of a GCC | |
11823 | builtin and then its argument prototype would still apply. */ | |
11824 | #ifdef __cplusplus | |
11825 | extern "C" | |
11826 | #endif | |
11827 | char dlopen (); | |
11828 | int | |
11829 | main () | |
11830 | { | |
11831 | return dlopen (); | |
11832 | ; | |
11833 | return 0; | |
11834 | } | |
11835 | _ACEOF | |
11836 | if ac_fn_c_try_link "$LINENO"; then : | |
11837 | ac_cv_lib_dl_dlopen=yes | |
11838 | else | |
11839 | ac_cv_lib_dl_dlopen=no | |
11840 | fi | |
11841 | rm -f core conftest.err conftest.$ac_objext \ | |
11842 | conftest$ac_exeext conftest.$ac_ext | |
11843 | LIBS=$ac_check_lib_save_LIBS | |
11844 | fi | |
11845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11846 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11847 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
3258f645 | 11848 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
904dbe44 CIK |
11849 | else |
11850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11851 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11852 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
11853 | $as_echo_n "(cached) " >&6 | |
11854 | else | |
11855 | ac_check_lib_save_LIBS=$LIBS | |
11856 | LIBS="-lsvld $LIBS" | |
11857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11858 | /* end confdefs.h. */ | |
11859 | ||
11860 | /* Override any GCC internal prototype to avoid an error. | |
11861 | Use char because int might match the return type of a GCC | |
11862 | builtin and then its argument prototype would still apply. */ | |
11863 | #ifdef __cplusplus | |
11864 | extern "C" | |
11865 | #endif | |
11866 | char dlopen (); | |
11867 | int | |
11868 | main () | |
11869 | { | |
11870 | return dlopen (); | |
11871 | ; | |
11872 | return 0; | |
11873 | } | |
11874 | _ACEOF | |
11875 | if ac_fn_c_try_link "$LINENO"; then : | |
11876 | ac_cv_lib_svld_dlopen=yes | |
11877 | else | |
11878 | ac_cv_lib_svld_dlopen=no | |
11879 | fi | |
11880 | rm -f core conftest.err conftest.$ac_objext \ | |
11881 | conftest$ac_exeext conftest.$ac_ext | |
11882 | LIBS=$ac_check_lib_save_LIBS | |
11883 | fi | |
11884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11885 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11886 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
3258f645 | 11887 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
904dbe44 CIK |
11888 | else |
11889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11890 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11891 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
11892 | $as_echo_n "(cached) " >&6 | |
11893 | else | |
11894 | ac_check_lib_save_LIBS=$LIBS | |
11895 | LIBS="-ldld $LIBS" | |
11896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11897 | /* end confdefs.h. */ | |
11898 | ||
11899 | /* Override any GCC internal prototype to avoid an error. | |
11900 | Use char because int might match the return type of a GCC | |
11901 | builtin and then its argument prototype would still apply. */ | |
11902 | #ifdef __cplusplus | |
11903 | extern "C" | |
11904 | #endif | |
11905 | char dld_link (); | |
11906 | int | |
11907 | main () | |
11908 | { | |
11909 | return dld_link (); | |
11910 | ; | |
11911 | return 0; | |
11912 | } | |
11913 | _ACEOF | |
11914 | if ac_fn_c_try_link "$LINENO"; then : | |
11915 | ac_cv_lib_dld_dld_link=yes | |
11916 | else | |
11917 | ac_cv_lib_dld_dld_link=no | |
11918 | fi | |
11919 | rm -f core conftest.err conftest.$ac_objext \ | |
11920 | conftest$ac_exeext conftest.$ac_ext | |
11921 | LIBS=$ac_check_lib_save_LIBS | |
11922 | fi | |
11923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11924 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11925 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
3258f645 | 11926 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
904dbe44 CIK |
11927 | fi |
11928 | ||
11929 | ||
11930 | fi | |
11931 | ||
11932 | ||
11933 | fi | |
11934 | ||
11935 | ||
11936 | fi | |
11937 | ||
11938 | ||
11939 | fi | |
11940 | ||
11941 | ||
11942 | fi | |
11943 | ||
11944 | ;; | |
11945 | esac | |
11946 | ||
3258f645 | 11947 | if test no = "$lt_cv_dlopen"; then |
904dbe44 | 11948 | enable_dlopen=no |
3258f645 TG |
11949 | else |
11950 | enable_dlopen=yes | |
904dbe44 CIK |
11951 | fi |
11952 | ||
11953 | case $lt_cv_dlopen in | |
11954 | dlopen) | |
3258f645 TG |
11955 | save_CPPFLAGS=$CPPFLAGS |
11956 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
904dbe44 | 11957 | |
3258f645 | 11958 | save_LDFLAGS=$LDFLAGS |
904dbe44 CIK |
11959 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
11960 | ||
3258f645 | 11961 | save_LIBS=$LIBS |
904dbe44 CIK |
11962 | LIBS="$lt_cv_dlopen_libs $LIBS" |
11963 | ||
11964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
11965 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11966 | if ${lt_cv_dlopen_self+:} false; then : | |
11967 | $as_echo_n "(cached) " >&6 | |
11968 | else | |
3258f645 | 11969 | if test yes = "$cross_compiling"; then : |
904dbe44 CIK |
11970 | lt_cv_dlopen_self=cross |
11971 | else | |
11972 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11973 | lt_status=$lt_dlunknown | |
11974 | cat > conftest.$ac_ext <<_LT_EOF | |
11975 | #line $LINENO "configure" | |
11976 | #include "confdefs.h" | |
11977 | ||
11978 | #if HAVE_DLFCN_H | |
11979 | #include <dlfcn.h> | |
11980 | #endif | |
11981 | ||
11982 | #include <stdio.h> | |
11983 | ||
11984 | #ifdef RTLD_GLOBAL | |
11985 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11986 | #else | |
11987 | # ifdef DL_GLOBAL | |
11988 | # define LT_DLGLOBAL DL_GLOBAL | |
11989 | # else | |
11990 | # define LT_DLGLOBAL 0 | |
11991 | # endif | |
11992 | #endif | |
11993 | ||
11994 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11995 | find out it does not work in some platform. */ | |
11996 | #ifndef LT_DLLAZY_OR_NOW | |
11997 | # ifdef RTLD_LAZY | |
11998 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11999 | # else | |
12000 | # ifdef DL_LAZY | |
12001 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12002 | # else | |
12003 | # ifdef RTLD_NOW | |
12004 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12005 | # else | |
12006 | # ifdef DL_NOW | |
12007 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12008 | # else | |
12009 | # define LT_DLLAZY_OR_NOW 0 | |
12010 | # endif | |
12011 | # endif | |
12012 | # endif | |
12013 | # endif | |
12014 | #endif | |
12015 | ||
3258f645 | 12016 | /* When -fvisibility=hidden is used, assume the code has been annotated |
904dbe44 | 12017 | correspondingly for the symbols needed. */ |
3258f645 | 12018 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
904dbe44 CIK |
12019 | int fnord () __attribute__((visibility("default"))); |
12020 | #endif | |
12021 | ||
12022 | int fnord () { return 42; } | |
12023 | int main () | |
12024 | { | |
12025 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12026 | int status = $lt_dlunknown; | |
12027 | ||
12028 | if (self) | |
12029 | { | |
12030 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12031 | else | |
12032 | { | |
12033 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12034 | else puts (dlerror ()); | |
12035 | } | |
12036 | /* dlclose (self); */ | |
12037 | } | |
12038 | else | |
12039 | puts (dlerror ()); | |
12040 | ||
12041 | return status; | |
12042 | } | |
12043 | _LT_EOF | |
12044 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12045 | (eval $ac_link) 2>&5 | |
12046 | ac_status=$? | |
12047 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3258f645 | 12048 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
904dbe44 CIK |
12049 | (./conftest; exit; ) >&5 2>/dev/null |
12050 | lt_status=$? | |
12051 | case x$lt_status in | |
12052 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12053 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12054 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12055 | esac | |
12056 | else : | |
12057 | # compilation failed | |
12058 | lt_cv_dlopen_self=no | |
12059 | fi | |
12060 | fi | |
12061 | rm -fr conftest* | |
12062 | ||
12063 | ||
12064 | fi | |
12065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
12066 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
12067 | ||
3258f645 | 12068 | if test yes = "$lt_cv_dlopen_self"; then |
904dbe44 CIK |
12069 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
12070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12071 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12072 | if ${lt_cv_dlopen_self_static+:} false; then : | |
12073 | $as_echo_n "(cached) " >&6 | |
12074 | else | |
3258f645 | 12075 | if test yes = "$cross_compiling"; then : |
904dbe44 CIK |
12076 | lt_cv_dlopen_self_static=cross |
12077 | else | |
12078 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12079 | lt_status=$lt_dlunknown | |
12080 | cat > conftest.$ac_ext <<_LT_EOF | |
12081 | #line $LINENO "configure" | |
12082 | #include "confdefs.h" | |
12083 | ||
12084 | #if HAVE_DLFCN_H | |
12085 | #include <dlfcn.h> | |
12086 | #endif | |
12087 | ||
12088 | #include <stdio.h> | |
12089 | ||
12090 | #ifdef RTLD_GLOBAL | |
12091 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12092 | #else | |
12093 | # ifdef DL_GLOBAL | |
12094 | # define LT_DLGLOBAL DL_GLOBAL | |
12095 | # else | |
12096 | # define LT_DLGLOBAL 0 | |
12097 | # endif | |
12098 | #endif | |
12099 | ||
12100 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12101 | find out it does not work in some platform. */ | |
12102 | #ifndef LT_DLLAZY_OR_NOW | |
12103 | # ifdef RTLD_LAZY | |
12104 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12105 | # else | |
12106 | # ifdef DL_LAZY | |
12107 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12108 | # else | |
12109 | # ifdef RTLD_NOW | |
12110 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12111 | # else | |
12112 | # ifdef DL_NOW | |
12113 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12114 | # else | |
12115 | # define LT_DLLAZY_OR_NOW 0 | |
12116 | # endif | |
12117 | # endif | |
12118 | # endif | |
12119 | # endif | |
12120 | #endif | |
12121 | ||
3258f645 | 12122 | /* When -fvisibility=hidden is used, assume the code has been annotated |
904dbe44 | 12123 | correspondingly for the symbols needed. */ |
3258f645 | 12124 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
904dbe44 CIK |
12125 | int fnord () __attribute__((visibility("default"))); |
12126 | #endif | |
12127 | ||
12128 | int fnord () { return 42; } | |
12129 | int main () | |
12130 | { | |
12131 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12132 | int status = $lt_dlunknown; | |
12133 | ||
12134 | if (self) | |
12135 | { | |
12136 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12137 | else | |
12138 | { | |
12139 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12140 | else puts (dlerror ()); | |
12141 | } | |
12142 | /* dlclose (self); */ | |
12143 | } | |
12144 | else | |
12145 | puts (dlerror ()); | |
12146 | ||
12147 | return status; | |
12148 | } | |
12149 | _LT_EOF | |
12150 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12151 | (eval $ac_link) 2>&5 | |
12152 | ac_status=$? | |
12153 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3258f645 | 12154 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
904dbe44 CIK |
12155 | (./conftest; exit; ) >&5 2>/dev/null |
12156 | lt_status=$? | |
12157 | case x$lt_status in | |
12158 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12159 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12160 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12161 | esac | |
12162 | else : | |
12163 | # compilation failed | |
12164 | lt_cv_dlopen_self_static=no | |
12165 | fi | |
12166 | fi | |
12167 | rm -fr conftest* | |
12168 | ||
12169 | ||
12170 | fi | |
12171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
12172 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12173 | fi | |
12174 | ||
3258f645 TG |
12175 | CPPFLAGS=$save_CPPFLAGS |
12176 | LDFLAGS=$save_LDFLAGS | |
12177 | LIBS=$save_LIBS | |
904dbe44 CIK |
12178 | ;; |
12179 | esac | |
12180 | ||
12181 | case $lt_cv_dlopen_self in | |
12182 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12183 | *) enable_dlopen_self=unknown ;; | |
12184 | esac | |
12185 | ||
12186 | case $lt_cv_dlopen_self_static in | |
12187 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12188 | *) enable_dlopen_self_static=unknown ;; | |
12189 | esac | |
12190 | fi | |
12191 | ||
12192 | ||
12193 | ||
12194 | ||
12195 | ||
12196 | ||
12197 | ||
12198 | ||
12199 | ||
12200 | ||
12201 | ||
12202 | ||
12203 | ||
12204 | ||
12205 | ||
12206 | ||
12207 | ||
12208 | striplib= | |
12209 | old_striplib= | |
12210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12211 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12212 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12213 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12214 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12216 | $as_echo "yes" >&6; } | |
12217 | else | |
12218 | # FIXME - insert some real tests, host_os isn't really good enough | |
12219 | case $host_os in | |
12220 | darwin*) | |
3258f645 | 12221 | if test -n "$STRIP"; then |
904dbe44 CIK |
12222 | striplib="$STRIP -x" |
12223 | old_striplib="$STRIP -S" | |
12224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12225 | $as_echo "yes" >&6; } | |
12226 | else | |
12227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12228 | $as_echo "no" >&6; } | |
12229 | fi | |
12230 | ;; | |
12231 | *) | |
12232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12233 | $as_echo "no" >&6; } | |
12234 | ;; | |
12235 | esac | |
12236 | fi | |
12237 | ||
12238 | ||
12239 | ||
12240 | ||
12241 | ||
12242 | ||
12243 | ||
12244 | ||
12245 | ||
12246 | ||
12247 | ||
12248 | ||
3258f645 | 12249 | # Report what library types will actually be built |
904dbe44 CIK |
12250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
12251 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12253 | $as_echo "$can_build_shared" >&6; } | |
12254 | ||
12255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12256 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
3258f645 | 12257 | test no = "$can_build_shared" && enable_shared=no |
904dbe44 CIK |
12258 | |
12259 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12260 | # are all built from PIC. | |
12261 | case $host_os in | |
12262 | aix3*) | |
3258f645 | 12263 | test yes = "$enable_shared" && enable_static=no |
904dbe44 CIK |
12264 | if test -n "$RANLIB"; then |
12265 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12266 | postinstall_cmds='$RANLIB $lib' | |
12267 | fi | |
12268 | ;; | |
12269 | ||
12270 | aix[4-9]*) | |
3258f645 TG |
12271 | if test ia64 != "$host_cpu"; then |
12272 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
12273 | yes,aix,yes) ;; # shared object as lib.so file only | |
12274 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
12275 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
12276 | esac | |
904dbe44 CIK |
12277 | fi |
12278 | ;; | |
12279 | esac | |
12280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12281 | $as_echo "$enable_shared" >&6; } | |
12282 | ||
12283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12284 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12285 | # Make sure either enable_shared or enable_static is yes. | |
3258f645 | 12286 | test yes = "$enable_shared" || enable_static=yes |
904dbe44 CIK |
12287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
12288 | $as_echo "$enable_static" >&6; } | |
12289 | ||
12290 | ||
12291 | ||
12292 | ||
12293 | fi | |
12294 | ac_ext=c | |
12295 | ac_cpp='$CPP $CPPFLAGS' | |
12296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12299 | ||
3258f645 | 12300 | CC=$lt_save_CC |
904dbe44 CIK |
12301 | |
12302 | ||
12303 | ||
12304 | ||
12305 | ||
12306 | ||
12307 | ||
12308 | ||
12309 | ||
12310 | ||
12311 | ||
12312 | ||
12313 | ||
12314 | ||
12315 | ||
12316 | ac_config_commands="$ac_config_commands libtool" | |
12317 | ||
12318 | ||
12319 | ||
12320 | ||
12321 | # Only expand once: | |
12322 | ||
12323 | ||
12324 | # By default we simply use the C compiler to build assembly code. | |
12325 | ||
12326 | test "${CCAS+set}" = set || CCAS=$CC | |
12327 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS | |
12328 | ||
12329 | ||
12330 | ||
12331 | depcc="$CCAS" am_compiler_list= | |
12332 | ||
12333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
12334 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
12335 | if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : | |
12336 | $as_echo_n "(cached) " >&6 | |
12337 | else | |
12338 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
12339 | # We make a subdir and do the tests there. Otherwise we can end up | |
12340 | # making bogus files that we don't know about and never remove. For | |
12341 | # instance it was reported that on HP-UX the gcc test will end up | |
12342 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
12343 | # in D". | |
12344 | rm -rf conftest.dir | |
12345 | mkdir conftest.dir | |
12346 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
12347 | # using a relative directory. | |
12348 | cp "$am_depcomp" conftest.dir | |
12349 | cd conftest.dir | |
12350 | # We will build objects and dependencies in a subdirectory because | |
12351 | # it helps to detect inapplicable dependency modes. For instance | |
12352 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
12353 | # side effect of compilation, but ICC will put the dependencies in | |
12354 | # the current directory while Tru64 will put them in the object | |
12355 | # directory. | |
12356 | mkdir sub | |
12357 | ||
12358 | am_cv_CCAS_dependencies_compiler_type=none | |
12359 | if test "$am_compiler_list" = ""; then | |
12360 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
12361 | fi | |
12362 | am__universal=false | |
12363 | ||
12364 | ||
12365 | for depmode in $am_compiler_list; do | |
12366 | # Setup a source with many dependencies, because some compilers | |
12367 | # like to wrap large dependency lists on column 80 (with \), and | |
12368 | # we should not choose a depcomp mode which is confused by this. | |
12369 | # | |
12370 | # We need to recreate these files for each test, as the compiler may | |
12371 | # overwrite some of them when testing with obscure command lines. | |
12372 | # This happens at least with the AIX C compiler. | |
12373 | : > sub/conftest.c | |
12374 | for i in 1 2 3 4 5 6; do | |
12375 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
12376 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
12377 | # Solaris 10 /bin/sh. | |
12378 | echo '/* dummy */' > sub/conftst$i.h | |
12379 | done | |
12380 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
12381 | ||
12382 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
12383 | # mode. It turns out that the SunPro C++ compiler does not properly | |
12384 | # handle '-M -o', and we need to detect this. Also, some Intel | |
12385 | # versions had trouble with output in subdirs. | |
12386 | am__obj=sub/conftest.${OBJEXT-o} | |
12387 | am__minus_obj="-o $am__obj" | |
12388 | case $depmode in | |
12389 | gcc) | |
12390 | # This depmode causes a compiler race in universal mode. | |
12391 | test "$am__universal" = false || continue | |
12392 | ;; | |
12393 | nosideeffect) | |
12394 | # After this tag, mechanisms are not by side-effect, so they'll | |
12395 | # only be used when explicitly requested. | |
12396 | if test "x$enable_dependency_tracking" = xyes; then | |
12397 | continue | |
12398 | else | |
12399 | break | |
12400 | fi | |
12401 | ;; | |
12402 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
12403 | # This compiler won't grok '-c -o', but also, the minuso test has | |
12404 | # not run yet. These depmodes are late enough in the game, and | |
12405 | # so weak that their functioning should not be impacted. | |
12406 | am__obj=conftest.${OBJEXT-o} | |
12407 | am__minus_obj= | |
12408 | ;; | |
12409 | none) break ;; | |
12410 | esac | |
12411 | if depmode=$depmode \ | |
12412 | source=sub/conftest.c object=$am__obj \ | |
12413 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
12414 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
12415 | >/dev/null 2>conftest.err && | |
12416 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
12417 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
12418 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
12419 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
12420 | # icc doesn't choke on unknown options, it will just issue warnings | |
12421 | # or remarks (even with -Werror). So we grep stderr for any message | |
12422 | # that says an option was ignored or not supported. | |
12423 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
12424 | # icc: Command line warning: ignoring option '-M'; no argument required | |
12425 | # The diagnosis changed in icc 8.0: | |
12426 | # icc: Command line remark: option '-MP' not supported | |
12427 | if (grep 'ignoring option' conftest.err || | |
12428 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
12429 | am_cv_CCAS_dependencies_compiler_type=$depmode | |
12430 | break | |
12431 | fi | |
12432 | fi | |
12433 | done | |
12434 | ||
12435 | cd .. | |
12436 | rm -rf conftest.dir | |
12437 | else | |
12438 | am_cv_CCAS_dependencies_compiler_type=none | |
12439 | fi | |
12440 | ||
12441 | fi | |
12442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 | |
12443 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } | |
12444 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type | |
12445 | ||
12446 | if | |
12447 | test "x$enable_dependency_tracking" != xno \ | |
12448 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then | |
12449 | am__fastdepCCAS_TRUE= | |
12450 | am__fastdepCCAS_FALSE='#' | |
12451 | else | |
12452 | am__fastdepCCAS_TRUE='#' | |
12453 | am__fastdepCCAS_FALSE= | |
12454 | fi | |
12455 | ||
12456 | ||
12457 | ||
12458 | ||
12459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5 | |
12460 | $as_echo_n "checking zfs author... " >&6; } | |
12461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5 | |
12462 | $as_echo "$ZFS_META_AUTHOR" >&6; } | |
12463 | ||
12464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5 | |
12465 | $as_echo_n "checking zfs license... " >&6; } | |
12466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5 | |
12467 | $as_echo "$ZFS_META_LICENSE" >&6; } | |
12468 | ||
12469 | ||
12470 | ||
12471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5 | |
12472 | $as_echo_n "checking linux distribution... " >&6; } | |
12473 | if test -f /etc/toss-release ; then | |
12474 | VENDOR=toss ; | |
12475 | elif test -f /etc/fedora-release ; then | |
12476 | VENDOR=fedora ; | |
12477 | elif test -f /etc/redhat-release ; then | |
12478 | VENDOR=redhat ; | |
12479 | elif test -f /etc/gentoo-release ; then | |
12480 | VENDOR=gentoo ; | |
12481 | elif test -f /etc/arch-release ; then | |
12482 | VENDOR=arch ; | |
12483 | elif test -f /etc/SuSE-release ; then | |
12484 | VENDOR=sles ; | |
12485 | elif test -f /etc/slackware-version ; then | |
12486 | VENDOR=slackware ; | |
12487 | elif test -f /etc/lunar.release ; then | |
12488 | VENDOR=lunar ; | |
12489 | elif test -f /etc/lsb-release ; then | |
12490 | VENDOR=ubuntu ; | |
12491 | elif test -f /etc/debian_version ; then | |
12492 | VENDOR=debian ; | |
12493 | else | |
12494 | VENDOR= ; | |
12495 | fi | |
12496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5 | |
12497 | $as_echo "$VENDOR" >&6; } | |
12498 | ||
12499 | ||
12500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5 | |
12501 | $as_echo_n "checking default package type... " >&6; } | |
12502 | case "$VENDOR" in | |
12503 | toss) DEFAULT_PACKAGE=rpm ;; | |
12504 | redhat) DEFAULT_PACKAGE=rpm ;; | |
12505 | fedora) DEFAULT_PACKAGE=rpm ;; | |
12506 | gentoo) DEFAULT_PACKAGE=tgz ;; | |
12507 | arch) DEFAULT_PACKAGE=tgz ;; | |
12508 | sles) DEFAULT_PACKAGE=rpm ;; | |
12509 | slackware) DEFAULT_PACKAGE=tgz ;; | |
12510 | lunar) DEFAULT_PACKAGE=tgz ;; | |
12511 | ubuntu) DEFAULT_PACKAGE=deb ;; | |
12512 | debian) DEFAULT_PACKAGE=deb ;; | |
12513 | *) DEFAULT_PACKAGE=rpm ;; | |
12514 | esac | |
12515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5 | |
12516 | $as_echo "$DEFAULT_PACKAGE" >&6; } | |
12517 | ||
12518 | ||
12519 | DEFAULT_INIT_DIR=$sysconfdir/init.d | |
12520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5 | |
12521 | $as_echo_n "checking default init directory... " >&6; } | |
12522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5 | |
12523 | $as_echo "$DEFAULT_INIT_DIR" >&6; } | |
12524 | ||
12525 | ||
12526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5 | |
12527 | $as_echo_n "checking default init script type... " >&6; } | |
12528 | case "$VENDOR" in | |
12529 | toss) DEFAULT_INIT_SCRIPT=redhat ;; | |
12530 | redhat) DEFAULT_INIT_SCRIPT=redhat ;; | |
12531 | fedora) DEFAULT_INIT_SCRIPT=fedora ;; | |
12532 | gentoo) DEFAULT_INIT_SCRIPT=gentoo ;; | |
12533 | arch) DEFAULT_INIT_SCRIPT=lsb ;; | |
12534 | sles) DEFAULT_INIT_SCRIPT=lsb ;; | |
12535 | slackware) DEFAULT_INIT_SCRIPT=lsb ;; | |
12536 | lunar) DEFAULT_INIT_SCRIPT=lunar ;; | |
12537 | ubuntu) DEFAULT_INIT_SCRIPT=lsb ;; | |
12538 | debian) DEFAULT_INIT_SCRIPT=lsb ;; | |
12539 | *) DEFAULT_INIT_SCRIPT=lsb ;; | |
12540 | esac | |
12541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5 | |
12542 | $as_echo "$DEFAULT_INIT_SCRIPT" >&6; } | |
12543 | ||
12544 | ||
12545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5 | |
12546 | $as_echo_n "checking default init config direectory... " >&6; } | |
12547 | case "$VENDOR" in | |
12548 | gentoo) DEFAULT_INITCONF_DIR=/etc/conf.d ;; | |
12549 | toss) DEFAULT_INITCONF_DIR=/etc/sysconfig ;; | |
12550 | redhat) DEFAULT_INITCONF_DIR=/etc/sysconfig ;; | |
12551 | fedora) DEFAULT_INITCONF_DIR=/etc/sysconfig ;; | |
12552 | sles) DEFAULT_INITCONF_DIR=/etc/sysconfig ;; | |
12553 | ubuntu) DEFAULT_INITCONF_DIR=/etc/default ;; | |
12554 | debian) DEFAULT_INITCONF_DIR=/etc/default ;; | |
12555 | *) DEFAULT_INITCONF_DIR=/etc/default ;; | |
12556 | esac | |
12557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5 | |
12558 | $as_echo "$DEFAULT_INITCONF_DIR" >&6; } | |
12559 | ||
12560 | ||
12561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5 | |
12562 | $as_echo_n "checking whether initramfs-tools is available... " >&6; } | |
12563 | if test -d /usr/share/initramfs-tools ; then | |
12564 | DEFINE_INITRAMFS='--define "_initramfs 1"' | |
12565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12566 | $as_echo "yes" >&6; } | |
12567 | else | |
12568 | DEFINE_INITRAMFS='' | |
12569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12570 | $as_echo "no" >&6; } | |
12571 | fi | |
12572 | ||
12573 | ||
12574 | ||
12575 | RPM=rpm | |
12576 | RPMBUILD=rpmbuild | |
12577 | ||
12578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5 | |
12579 | $as_echo_n "checking whether $RPM is available... " >&6; } | |
12580 | if tmp=$($RPM --version 2>/dev/null); then : | |
12581 | ||
12582 | RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }') | |
12583 | HAVE_RPM=yes | |
12584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5 | |
12585 | $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; } | |
12586 | ||
12587 | else | |
12588 | ||
12589 | HAVE_RPM=no | |
12590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5 | |
12591 | $as_echo "$HAVE_RPM" >&6; } | |
12592 | ||
12593 | fi | |
12594 | ||
12595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5 | |
12596 | $as_echo_n "checking whether $RPMBUILD is available... " >&6; } | |
12597 | if tmp=$($RPMBUILD --version 2>/dev/null); then : | |
12598 | ||
12599 | RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }') | |
12600 | HAVE_RPMBUILD=yes | |
12601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5 | |
12602 | $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; } | |
12603 | ||
12604 | else | |
12605 | ||
12606 | HAVE_RPMBUILD=no | |
12607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5 | |
12608 | $as_echo "$HAVE_RPMBUILD" >&6; } | |
12609 | ||
12610 | fi | |
12611 | ||
12612 | RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"' | |
12613 | RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)' | |
12614 | RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"' | |
12615 | RPM_DEFINE_DKMS= | |
12616 | ||
12617 | SRPM_DEFINE_COMMON='--define "build_src_rpm 1"' | |
12618 | SRPM_DEFINE_UTIL= | |
12619 | SRPM_DEFINE_KMOD= | |
12620 | SRPM_DEFINE_DKMS= | |
12621 | ||
12622 | RPM_SPEC_DIR="rpm/generic" | |
12623 | ||
12624 | # Check whether --with-spec was given. | |
12625 | if test "${with_spec+set}" = set; then : | |
12626 | withval=$with_spec; RPM_SPEC_DIR="rpm/$withval" | |
12627 | fi | |
12628 | ||
12629 | ||
12630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5 | |
12631 | $as_echo_n "checking whether spec files are available... " >&6; } | |
12632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5 | |
12633 | $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; } | |
12634 | ||
12635 | ||
12636 | ||
12637 | ||
12638 | ||
12639 | ||
12640 | ||
12641 | ||
12642 | ||
12643 | ||
12644 | ||
12645 | ||
12646 | ||
12647 | ||
12648 | ||
12649 | ||
12650 | ||
12651 | ||
12652 | ||
12653 | ||
12654 | DPKG=dpkg | |
12655 | DPKGBUILD=dpkg-buildpackage | |
12656 | ||
12657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5 | |
12658 | $as_echo_n "checking whether $DPKG is available... " >&6; } | |
12659 | if tmp=$($DPKG --version 2>/dev/null); then : | |
12660 | ||
12661 | DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }') | |
12662 | HAVE_DPKG=yes | |
12663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5 | |
12664 | $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; } | |
12665 | ||
12666 | else | |
12667 | ||
12668 | HAVE_DPKG=no | |
12669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5 | |
12670 | $as_echo "$HAVE_DPKG" >&6; } | |
12671 | ||
12672 | fi | |
12673 | ||
12674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5 | |
12675 | $as_echo_n "checking whether $DPKGBUILD is available... " >&6; } | |
12676 | if tmp=$($DPKGBUILD --version 2>/dev/null); then : | |
12677 | ||
12678 | DPKGBUILD_VERSION=$(echo $tmp | \ | |
12679 | $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.') | |
12680 | HAVE_DPKGBUILD=yes | |
12681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5 | |
12682 | $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; } | |
12683 | ||
12684 | else | |
12685 | ||
12686 | HAVE_DPKGBUILD=no | |
12687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5 | |
12688 | $as_echo "$HAVE_DPKGBUILD" >&6; } | |
12689 | ||
12690 | fi | |
12691 | ||
12692 | ||
12693 | ||
12694 | ||
12695 | ||
12696 | ||
12697 | ||
12698 | ||
12699 | ||
12700 | ||
12701 | ALIEN=alien | |
12702 | ||
12703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5 | |
12704 | $as_echo_n "checking whether $ALIEN is available... " >&6; } | |
12705 | if tmp=$($ALIEN --version 2>/dev/null); then : | |
12706 | ||
12707 | ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }') | |
12708 | HAVE_ALIEN=yes | |
12709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5 | |
12710 | $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; } | |
12711 | ||
12712 | else | |
12713 | ||
12714 | HAVE_ALIEN=no | |
12715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5 | |
12716 | $as_echo "$HAVE_ALIEN" >&6; } | |
12717 | ||
12718 | fi | |
12719 | ||
12720 | ||
12721 | ||
12722 | ||
12723 | ||
12724 | ||
12725 | ||
12726 | TARGET_ASM_DIR=asm-generic | |
12727 | ||
12728 | ||
12729 | ZFS_CONFIG=all | |
12730 | ||
12731 | # Check whether --with-config was given. | |
12732 | if test "${with_config+set}" = set; then : | |
12733 | withval=$with_config; ZFS_CONFIG="$withval" | |
12734 | fi | |
12735 | ||
12736 | # Check whether --enable-linux-builtin was given. | |
12737 | if test "${enable_linux_builtin+set}" = set; then : | |
12738 | enableval=$enable_linux_builtin; | |
12739 | else | |
12740 | enable_linux_builtin=no | |
12741 | fi | |
12742 | ||
12743 | ||
12744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5 | |
12745 | $as_echo_n "checking zfs config... " >&6; } | |
12746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5 | |
12747 | $as_echo "$ZFS_CONFIG" >&6; }; | |
12748 | ||
12749 | ||
12750 | ||
12751 | ||
12752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5 | |
12753 | $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; } | |
12754 | ||
12755 | saved_flags="$CFLAGS" | |
12756 | CFLAGS="$CFLAGS -Wunused-but-set-variable" | |
12757 | ||
12758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12759 | /* end confdefs.h. */ | |
12760 | ||
12761 | int | |
12762 | main () | |
12763 | { | |
12764 | ||
12765 | ; | |
12766 | return 0; | |
12767 | } | |
12768 | _ACEOF | |
12769 | if ac_fn_c_try_compile "$LINENO"; then : | |
12770 | ||
12771 | NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable | |
12772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12773 | $as_echo "yes" >&6; } | |
12774 | ||
12775 | else | |
12776 | ||
12777 | NO_UNUSED_BUT_SET_VARIABLE= | |
12778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12779 | $as_echo "no" >&6; } | |
12780 | ||
12781 | fi | |
12782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12783 | ||
12784 | CFLAGS="$saved_flags" | |
12785 | ||
12786 | ||
12787 | ||
12788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5 | |
12789 | $as_echo_n "checking for -Wno-bool-compare support... " >&6; } | |
12790 | ||
12791 | saved_flags="$CFLAGS" | |
12792 | CFLAGS="$CFLAGS -Wbool-compare" | |
12793 | ||
12794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12795 | /* end confdefs.h. */ | |
12796 | ||
12797 | int | |
12798 | main () | |
12799 | { | |
12800 | ||
12801 | ; | |
12802 | return 0; | |
12803 | } | |
12804 | _ACEOF | |
12805 | if ac_fn_c_try_compile "$LINENO"; then : | |
12806 | ||
12807 | NO_BOOL_COMPARE=-Wno-bool-compare | |
12808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12809 | $as_echo "yes" >&6; } | |
12810 | ||
12811 | else | |
12812 | ||
12813 | NO_BOOL_COMPARE= | |
12814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12815 | $as_echo "no" >&6; } | |
12816 | ||
12817 | fi | |
12818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12819 | ||
12820 | CFLAGS="$saved_flags" | |
12821 | ||
12822 | ||
12823 | ||
12824 | ||
12825 | case "$ZFS_CONFIG" in | |
12826 | user) | |
12827 | ||
12828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5 | |
12829 | $as_echo_n "checking for dkms.conf file... " >&6; } | |
12830 | if test -e dkms.conf; then : | |
12831 | ||
12832 | as_fn_error $? " | |
12833 | *** ZFS should not be manually built in the DKMS source tree. | |
12834 | *** Remove all ZFS packages before compiling the ZoL sources. | |
12835 | *** Running \"make install\" breaks ZFS packages." "$LINENO" 5 | |
12836 | ||
12837 | else | |
12838 | ||
12839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
12840 | $as_echo "not found" >&6; } | |
12841 | ||
12842 | fi | |
12843 | ||
12844 | ||
12845 | ||
12846 | # Check whether --with-mounthelperdir was given. | |
12847 | if test "${with_mounthelperdir+set}" = set; then : | |
12848 | withval=$with_mounthelperdir; mounthelperdir=$withval | |
12849 | else | |
12850 | mounthelperdir=/sbin | |
12851 | fi | |
12852 | ||
12853 | ||
12854 | ||
12855 | ||
12856 | ||
12857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5 | |
12858 | $as_echo_n "checking for udev directories... " >&6; } | |
12859 | ||
12860 | # Check whether --with-udevdir was given. | |
12861 | if test "${with_udevdir+set}" = set; then : | |
12862 | withval=$with_udevdir; udevdir=$withval | |
12863 | else | |
12864 | udevdir=check | |
12865 | fi | |
12866 | ||
12867 | ||
12868 | if test "x$udevdir" = xcheck; then : | |
12869 | ||
12870 | path1=/lib/udev | |
12871 | path2=/usr/lib/udev | |
12872 | default=$path2 | |
12873 | ||
12874 | if test -d "$path1"; then : | |
12875 | udevdir="$path1" | |
12876 | else | |
12877 | ||
12878 | if test -d "$path2"; then : | |
12879 | udevdir="$path2" | |
12880 | else | |
12881 | udevdir="$default" | |
12882 | fi | |
12883 | ||
12884 | fi | |
12885 | ||
12886 | fi | |
12887 | ||
12888 | ||
12889 | # Check whether --with-udevruledir was given. | |
12890 | if test "${with_udevruledir+set}" = set; then : | |
12891 | withval=$with_udevruledir; udevruledir=$withval | |
12892 | else | |
12893 | udevruledir="${udevdir}/rules.d" | |
12894 | fi | |
12895 | ||
12896 | ||
12897 | ||
12898 | ||
12899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5 | |
12900 | $as_echo "$udevdir;$udevruledir" >&6; } | |
12901 | ||
12902 | ||
12903 | # Check whether --enable-systemd was given. | |
12904 | if test "${enable_systemd+set}" = set; then : | |
12905 | enableval=$enable_systemd; | |
12906 | else | |
12907 | enable_systemd=yes | |
12908 | fi | |
12909 | ||
12910 | ||
12911 | ||
12912 | # Check whether --with-systemdunitdir was given. | |
12913 | if test "${with_systemdunitdir+set}" = set; then : | |
12914 | withval=$with_systemdunitdir; systemdunitdir=$withval | |
12915 | else | |
12916 | systemdunitdir=/usr/lib/systemd/system | |
12917 | fi | |
12918 | ||
12919 | ||
12920 | ||
12921 | # Check whether --with-systemdpresetdir was given. | |
12922 | if test "${with_systemdpresetdir+set}" = set; then : | |
12923 | withval=$with_systemdpresetdir; systemdpresetdir=$withval | |
12924 | else | |
12925 | systemdpresetdir=/usr/lib/systemd/system-preset | |
12926 | fi | |
12927 | ||
12928 | ||
12929 | ||
12930 | # Check whether --with-systemdmodulesloaddir was given. | |
12931 | if test "${with_systemdmodulesloaddir+set}" = set; then : | |
12932 | withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval | |
12933 | else | |
12934 | systemdmodulesloaddir=/usr/lib/modules-load.d | |
12935 | fi | |
12936 | ||
12937 | ||
12938 | ||
12939 | if test "x$enable_systemd" = xyes; then : | |
12940 | ||
12941 | ZFS_INIT_SYSTEMD=systemd | |
12942 | ZFS_MODULE_LOAD=modules-load.d | |
12943 | modulesloaddir=$systemdmodulesloaddir | |
12944 | ||
12945 | fi | |
12946 | ||
12947 | ||
12948 | ||
12949 | ||
12950 | ||
12951 | ||
12952 | ||
12953 | ||
12954 | # Check whether --enable-sysvinit was given. | |
12955 | if test "${enable_sysvinit+set}" = set; then : | |
12956 | enableval=$enable_sysvinit; | |
12957 | else | |
12958 | enable_sysvinit=yes | |
12959 | fi | |
12960 | ||
12961 | ||
12962 | if test "x$enable_sysvinit" = xyes; then : | |
12963 | ZFS_INIT_SYSV=init.d | |
12964 | fi | |
12965 | ||
12966 | ||
12967 | ||
12968 | ||
12969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5 | |
12970 | $as_echo_n "checking for dracut directory... " >&6; } | |
12971 | ||
12972 | # Check whether --with-dracutdir was given. | |
12973 | if test "${with_dracutdir+set}" = set; then : | |
12974 | withval=$with_dracutdir; dracutdir=$withval | |
12975 | else | |
12976 | dracutdir=check | |
12977 | fi | |
12978 | ||
12979 | ||
12980 | if test "x$dracutdir" = xcheck; then : | |
12981 | ||
12982 | path1=/usr/share/dracut | |
12983 | path2=/usr/lib/dracut | |
12984 | default=$path2 | |
12985 | ||
12986 | if test -d "$path1"; then : | |
12987 | dracutdir="$path1" | |
12988 | else | |
12989 | ||
12990 | if test -d "$path2"; then : | |
12991 | dracutdir="$path2" | |
12992 | else | |
12993 | dracutdir="$default" | |
12994 | fi | |
12995 | ||
12996 | fi | |
12997 | ||
12998 | fi | |
12999 | ||
13000 | ||
13001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5 | |
13002 | $as_echo "$dracutdir" >&6; } | |
13003 | ||
13004 | ||
13005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5 | |
13006 | $as_echo_n "checking for target asm dir... " >&6; } | |
13007 | TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/` | |
13008 | ||
13009 | case $TARGET_ARCH in | |
13010 | i386|x86_64) | |
13011 | TARGET_ASM_DIR=asm-${TARGET_ARCH} | |
13012 | ;; | |
13013 | *) | |
13014 | TARGET_ASM_DIR=asm-generic | |
13015 | ;; | |
13016 | esac | |
13017 | ||
13018 | ||
13019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5 | |
13020 | $as_echo "$TARGET_ASM_DIR" >&6; } | |
13021 | ||
13022 | ||
13023 | ZLIB= | |
13024 | ||
13025 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
13026 | if test "x$ac_cv_header_zlib_h" = xyes; then : | |
13027 | ||
13028 | else | |
13029 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13030 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13031 | as_fn_error $? " | |
13032 | *** zlib.h missing, zlib-devel package required | |
13033 | See \`config.log' for more details" "$LINENO" 5; } | |
13034 | fi | |
13035 | ||
13036 | ||
13037 | ||
13038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5 | |
13039 | $as_echo_n "checking for compress2 in -lz... " >&6; } | |
13040 | if ${ac_cv_lib_z_compress2+:} false; then : | |
13041 | $as_echo_n "(cached) " >&6 | |
13042 | else | |
13043 | ac_check_lib_save_LIBS=$LIBS | |
13044 | LIBS="-lz $LIBS" | |
13045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13046 | /* end confdefs.h. */ | |
13047 | ||
13048 | /* Override any GCC internal prototype to avoid an error. | |
13049 | Use char because int might match the return type of a GCC | |
13050 | builtin and then its argument prototype would still apply. */ | |
13051 | #ifdef __cplusplus | |
13052 | extern "C" | |
13053 | #endif | |
13054 | char compress2 (); | |
13055 | int | |
13056 | main () | |
13057 | { | |
13058 | return compress2 (); | |
13059 | ; | |
13060 | return 0; | |
13061 | } | |
13062 | _ACEOF | |
13063 | if ac_fn_c_try_link "$LINENO"; then : | |
13064 | ac_cv_lib_z_compress2=yes | |
13065 | else | |
13066 | ac_cv_lib_z_compress2=no | |
13067 | fi | |
13068 | rm -f core conftest.err conftest.$ac_objext \ | |
13069 | conftest$ac_exeext conftest.$ac_ext | |
13070 | LIBS=$ac_check_lib_save_LIBS | |
13071 | fi | |
13072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5 | |
13073 | $as_echo "$ac_cv_lib_z_compress2" >&6; } | |
13074 | if test "x$ac_cv_lib_z_compress2" = xyes; then : | |
13075 | cat >>confdefs.h <<_ACEOF | |
13076 | #define HAVE_LIBZ 1 | |
13077 | _ACEOF | |
13078 | ||
13079 | LIBS="-lz $LIBS" | |
13080 | ||
13081 | else | |
13082 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13083 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13084 | as_fn_error $? " | |
13085 | *** compress2() missing, zlib-devel package required | |
13086 | See \`config.log' for more details" "$LINENO" 5; } | |
13087 | fi | |
13088 | ||
13089 | ||
13090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 | |
13091 | $as_echo_n "checking for uncompress in -lz... " >&6; } | |
13092 | if ${ac_cv_lib_z_uncompress+:} false; then : | |
13093 | $as_echo_n "(cached) " >&6 | |
13094 | else | |
13095 | ac_check_lib_save_LIBS=$LIBS | |
13096 | LIBS="-lz $LIBS" | |
13097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13098 | /* end confdefs.h. */ | |
13099 | ||
13100 | /* Override any GCC internal prototype to avoid an error. | |
13101 | Use char because int might match the return type of a GCC | |
13102 | builtin and then its argument prototype would still apply. */ | |
13103 | #ifdef __cplusplus | |
13104 | extern "C" | |
13105 | #endif | |
13106 | char uncompress (); | |
13107 | int | |
13108 | main () | |
13109 | { | |
13110 | return uncompress (); | |
13111 | ; | |
13112 | return 0; | |
13113 | } | |
13114 | _ACEOF | |
13115 | if ac_fn_c_try_link "$LINENO"; then : | |
13116 | ac_cv_lib_z_uncompress=yes | |
13117 | else | |
13118 | ac_cv_lib_z_uncompress=no | |
13119 | fi | |
13120 | rm -f core conftest.err conftest.$ac_objext \ | |
13121 | conftest$ac_exeext conftest.$ac_ext | |
13122 | LIBS=$ac_check_lib_save_LIBS | |
13123 | fi | |
13124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 | |
13125 | $as_echo "$ac_cv_lib_z_uncompress" >&6; } | |
13126 | if test "x$ac_cv_lib_z_uncompress" = xyes; then : | |
13127 | cat >>confdefs.h <<_ACEOF | |
13128 | #define HAVE_LIBZ 1 | |
13129 | _ACEOF | |
13130 | ||
13131 | LIBS="-lz $LIBS" | |
13132 | ||
13133 | else | |
13134 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13135 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13136 | as_fn_error $? " | |
13137 | *** uncompress() missing, zlib-devel package required | |
13138 | See \`config.log' for more details" "$LINENO" 5; } | |
13139 | fi | |
13140 | ||
13141 | ||
13142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5 | |
13143 | $as_echo_n "checking for crc32 in -lz... " >&6; } | |
13144 | if ${ac_cv_lib_z_crc32+:} false; then : | |
13145 | $as_echo_n "(cached) " >&6 | |
13146 | else | |
13147 | ac_check_lib_save_LIBS=$LIBS | |
13148 | LIBS="-lz $LIBS" | |
13149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13150 | /* end confdefs.h. */ | |
13151 | ||
13152 | /* Override any GCC internal prototype to avoid an error. | |
13153 | Use char because int might match the return type of a GCC | |
13154 | builtin and then its argument prototype would still apply. */ | |
13155 | #ifdef __cplusplus | |
13156 | extern "C" | |
13157 | #endif | |
13158 | char crc32 (); | |
13159 | int | |
13160 | main () | |
13161 | { | |
13162 | return crc32 (); | |
13163 | ; | |
13164 | return 0; | |
13165 | } | |
13166 | _ACEOF | |
13167 | if ac_fn_c_try_link "$LINENO"; then : | |
13168 | ac_cv_lib_z_crc32=yes | |
13169 | else | |
13170 | ac_cv_lib_z_crc32=no | |
13171 | fi | |
13172 | rm -f core conftest.err conftest.$ac_objext \ | |
13173 | conftest$ac_exeext conftest.$ac_ext | |
13174 | LIBS=$ac_check_lib_save_LIBS | |
13175 | fi | |
13176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5 | |
13177 | $as_echo "$ac_cv_lib_z_crc32" >&6; } | |
13178 | if test "x$ac_cv_lib_z_crc32" = xyes; then : | |
13179 | cat >>confdefs.h <<_ACEOF | |
13180 | #define HAVE_LIBZ 1 | |
13181 | _ACEOF | |
13182 | ||
13183 | LIBS="-lz $LIBS" | |
13184 | ||
13185 | else | |
13186 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13187 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13188 | as_fn_error $? " | |
13189 | *** crc32() missing, zlib-devel package required | |
13190 | See \`config.log' for more details" "$LINENO" 5; } | |
13191 | fi | |
13192 | ||
13193 | ||
13194 | ZLIB="-lz" | |
13195 | ||
13196 | ||
13197 | $as_echo "#define HAVE_ZLIB 1" >>confdefs.h | |
13198 | ||
13199 | ||
13200 | ||
13201 | LIBUUID= | |
13202 | ||
13203 | ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" | |
13204 | if test "x$ac_cv_header_uuid_uuid_h" = xyes; then : | |
13205 | ||
13206 | else | |
13207 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13208 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13209 | as_fn_error $? " | |
13210 | *** uuid/uuid.h missing, libuuid-devel package required | |
13211 | See \`config.log' for more details" "$LINENO" 5; } | |
13212 | fi | |
13213 | ||
13214 | ||
13215 | ||
13216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 | |
13217 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } | |
13218 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : | |
13219 | $as_echo_n "(cached) " >&6 | |
13220 | else | |
13221 | ac_check_lib_save_LIBS=$LIBS | |
13222 | LIBS="-luuid $LIBS" | |
13223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13224 | /* end confdefs.h. */ | |
13225 | ||
13226 | /* Override any GCC internal prototype to avoid an error. | |
13227 | Use char because int might match the return type of a GCC | |
13228 | builtin and then its argument prototype would still apply. */ | |
13229 | #ifdef __cplusplus | |
13230 | extern "C" | |
13231 | #endif | |
13232 | char uuid_generate (); | |
13233 | int | |
13234 | main () | |
13235 | { | |
13236 | return uuid_generate (); | |
13237 | ; | |
13238 | return 0; | |
13239 | } | |
13240 | _ACEOF | |
13241 | if ac_fn_c_try_link "$LINENO"; then : | |
13242 | ac_cv_lib_uuid_uuid_generate=yes | |
13243 | else | |
13244 | ac_cv_lib_uuid_uuid_generate=no | |
13245 | fi | |
13246 | rm -f core conftest.err conftest.$ac_objext \ | |
13247 | conftest$ac_exeext conftest.$ac_ext | |
13248 | LIBS=$ac_check_lib_save_LIBS | |
13249 | fi | |
13250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 | |
13251 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
13252 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : | |
13253 | cat >>confdefs.h <<_ACEOF | |
13254 | #define HAVE_LIBUUID 1 | |
13255 | _ACEOF | |
13256 | ||
13257 | LIBS="-luuid $LIBS" | |
13258 | ||
13259 | else | |
13260 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13261 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13262 | as_fn_error $? " | |
13263 | *** uuid_generate() missing, libuuid-devel package required | |
13264 | See \`config.log' for more details" "$LINENO" 5; } | |
13265 | fi | |
13266 | ||
13267 | ||
13268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5 | |
13269 | $as_echo_n "checking for uuid_is_null in -luuid... " >&6; } | |
13270 | if ${ac_cv_lib_uuid_uuid_is_null+:} false; then : | |
13271 | $as_echo_n "(cached) " >&6 | |
13272 | else | |
13273 | ac_check_lib_save_LIBS=$LIBS | |
13274 | LIBS="-luuid $LIBS" | |
13275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13276 | /* end confdefs.h. */ | |
13277 | ||
13278 | /* Override any GCC internal prototype to avoid an error. | |
13279 | Use char because int might match the return type of a GCC | |
13280 | builtin and then its argument prototype would still apply. */ | |
13281 | #ifdef __cplusplus | |
13282 | extern "C" | |
13283 | #endif | |
13284 | char uuid_is_null (); | |
13285 | int | |
13286 | main () | |
13287 | { | |
13288 | return uuid_is_null (); | |
13289 | ; | |
13290 | return 0; | |
13291 | } | |
13292 | _ACEOF | |
13293 | if ac_fn_c_try_link "$LINENO"; then : | |
13294 | ac_cv_lib_uuid_uuid_is_null=yes | |
13295 | else | |
13296 | ac_cv_lib_uuid_uuid_is_null=no | |
13297 | fi | |
13298 | rm -f core conftest.err conftest.$ac_objext \ | |
13299 | conftest$ac_exeext conftest.$ac_ext | |
13300 | LIBS=$ac_check_lib_save_LIBS | |
13301 | fi | |
13302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5 | |
13303 | $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; } | |
13304 | if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes; then : | |
13305 | cat >>confdefs.h <<_ACEOF | |
13306 | #define HAVE_LIBUUID 1 | |
13307 | _ACEOF | |
13308 | ||
13309 | LIBS="-luuid $LIBS" | |
13310 | ||
13311 | else | |
13312 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13313 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13314 | as_fn_error $? " | |
13315 | *** uuid_is_null() missing, libuuid-devel package required | |
13316 | See \`config.log' for more details" "$LINENO" 5; } | |
13317 | fi | |
13318 | ||
13319 | ||
13320 | LIBUUID="-luuid" | |
13321 | ||
13322 | ||
13323 | $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h | |
13324 | ||
13325 | ||
13326 | ||
13327 | ||
13328 | # Check whether --with-blkid was given. | |
13329 | if test "${with_blkid+set}" = set; then : | |
13330 | withval=$with_blkid; | |
13331 | else | |
13332 | with_blkid=check | |
13333 | fi | |
13334 | ||
13335 | ||
13336 | LIBBLKID= | |
13337 | if test "x$with_blkid" = xyes; then : | |
13338 | ||
13339 | LIBBLKID="-lblkid" | |
13340 | ||
13341 | ||
13342 | $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h | |
13343 | ||
13344 | ||
13345 | fi | |
13346 | ||
13347 | if test "x$with_blkid" = xcheck; then : | |
13348 | ||
13349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 | |
13350 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } | |
13351 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : | |
13352 | $as_echo_n "(cached) " >&6 | |
13353 | else | |
13354 | ac_check_lib_save_LIBS=$LIBS | |
13355 | LIBS="-lblkid $LIBS" | |
13356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13357 | /* end confdefs.h. */ | |
13358 | ||
13359 | /* Override any GCC internal prototype to avoid an error. | |
13360 | Use char because int might match the return type of a GCC | |
13361 | builtin and then its argument prototype would still apply. */ | |
13362 | #ifdef __cplusplus | |
13363 | extern "C" | |
13364 | #endif | |
13365 | char blkid_get_cache (); | |
13366 | int | |
13367 | main () | |
13368 | { | |
13369 | return blkid_get_cache (); | |
13370 | ; | |
13371 | return 0; | |
13372 | } | |
13373 | _ACEOF | |
13374 | if ac_fn_c_try_link "$LINENO"; then : | |
13375 | ac_cv_lib_blkid_blkid_get_cache=yes | |
13376 | else | |
13377 | ac_cv_lib_blkid_blkid_get_cache=no | |
13378 | fi | |
13379 | rm -f core conftest.err conftest.$ac_objext \ | |
13380 | conftest$ac_exeext conftest.$ac_ext | |
13381 | LIBS=$ac_check_lib_save_LIBS | |
13382 | fi | |
13383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 | |
13384 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
13385 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : | |
13386 | ||
13387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5 | |
13388 | $as_echo_n "checking for blkid zfs support... " >&6; } | |
13389 | ||
13390 | ZFS_DEV=`mktemp` | |
13391 | truncate -s 64M $ZFS_DEV | |
13392 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
13393 | dd of=$ZFS_DEV bs=1k count=8 \ | |
13394 | seek=128 conv=notrunc &>/dev/null \ | |
13395 | >/dev/null 2>/dev/null | |
13396 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
13397 | dd of=$ZFS_DEV bs=1k count=8 \ | |
13398 | seek=132 conv=notrunc &>/dev/null \ | |
13399 | >/dev/null 2>/dev/null | |
13400 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
13401 | dd of=$ZFS_DEV bs=1k count=8 \ | |
13402 | seek=136 conv=notrunc &>/dev/null \ | |
13403 | >/dev/null 2>/dev/null | |
13404 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
13405 | dd of=$ZFS_DEV bs=1k count=8 \ | |
13406 | seek=140 conv=notrunc &>/dev/null \ | |
13407 | >/dev/null 2>/dev/null | |
13408 | ||
13409 | saved_LIBS="$LIBS" | |
13410 | LIBS="-lblkid" | |
13411 | ||
13412 | if test "$cross_compiling" = yes; then : | |
13413 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13414 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13415 | as_fn_error $? "cannot run test program while cross compiling | |
13416 | See \`config.log' for more details" "$LINENO" 5; } | |
13417 | else | |
13418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13419 | /* end confdefs.h. */ | |
13420 | ||
13421 | #include <stdio.h> | |
13422 | #include <stdlib.h> | |
13423 | #include <blkid/blkid.h> | |
13424 | ||
13425 | int | |
13426 | main () | |
13427 | { | |
13428 | ||
13429 | blkid_cache cache; | |
13430 | char *value; | |
13431 | ||
13432 | if (blkid_get_cache(&cache, NULL) < 0) | |
13433 | return 1; | |
13434 | ||
13435 | value = blkid_get_tag_value(cache, "TYPE", | |
13436 | "$ZFS_DEV"); | |
13437 | if (!value) { | |
13438 | blkid_put_cache(cache); | |
13439 | return 2; | |
13440 | } | |
13441 | ||
13442 | if (strcmp(value, "zfs_member")) { | |
13443 | free(value); | |
13444 | blkid_put_cache(cache); | |
13445 | return 0; | |
13446 | } | |
13447 | ||
13448 | free(value); | |
13449 | blkid_put_cache(cache); | |
13450 | ||
13451 | ; | |
13452 | return 0; | |
13453 | } | |
13454 | _ACEOF | |
13455 | if ac_fn_c_try_run "$LINENO"; then : | |
13456 | ||
13457 | rm -f $ZFS_DEV | |
13458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13459 | $as_echo "yes" >&6; } | |
13460 | LIBBLKID="-lblkid" | |
13461 | ||
13462 | ||
13463 | $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h | |
13464 | ||
13465 | ||
13466 | else | |
13467 | ||
13468 | rm -f $ZFS_DEV | |
13469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13470 | $as_echo "no" >&6; } | |
13471 | if test "x$with_blkid" != xcheck; then : | |
13472 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13473 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13474 | as_fn_error $? "--with-blkid given but unavailable | |
13475 | See \`config.log' for more details" "$LINENO" 5; } | |
13476 | fi | |
13477 | ||
13478 | fi | |
13479 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
13480 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
13481 | fi | |
13482 | ||
13483 | ||
13484 | LIBS="$saved_LIBS" | |
13485 | ||
13486 | else | |
13487 | ||
13488 | if test "x$with_blkid" != xcheck; then : | |
13489 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13490 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13491 | as_fn_error $? "--with-blkid given but unavailable | |
13492 | See \`config.log' for more details" "$LINENO" 5; } | |
13493 | fi | |
13494 | ||
13495 | ||
13496 | fi | |
13497 | ||
13498 | ||
13499 | fi | |
13500 | ||
13501 | ||
13502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5 | |
13503 | $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; } | |
13504 | ||
13505 | saved_flags="$CFLAGS" | |
13506 | CFLAGS="$CFLAGS -Wframe-larger-than=1024" | |
13507 | ||
13508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13509 | /* end confdefs.h. */ | |
13510 | ||
13511 | int | |
13512 | main () | |
13513 | { | |
13514 | ||
13515 | ; | |
13516 | return 0; | |
13517 | } | |
13518 | _ACEOF | |
13519 | if ac_fn_c_try_compile "$LINENO"; then : | |
13520 | ||
13521 | FRAME_LARGER_THAN=-Wframe-larger-than=1024 | |
13522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13523 | $as_echo "yes" >&6; } | |
13524 | ||
13525 | else | |
13526 | ||
13527 | FRAME_LARGER_THAN= | |
13528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13529 | $as_echo "no" >&6; } | |
13530 | ||
13531 | fi | |
13532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13533 | ||
13534 | CFLAGS="$saved_flags" | |
13535 | ||
13536 | ||
13537 | ||
13538 | if test "x$runstatedir" = x; then | |
13539 | runstatedir='${localstatedir}/run' | |
13540 | ||
13541 | fi | |
13542 | ||
13543 | for ac_func in mlockall | |
13544 | do : | |
13545 | ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" | |
13546 | if test "x$ac_cv_func_mlockall" = xyes; then : | |
13547 | cat >>confdefs.h <<_ACEOF | |
13548 | #define HAVE_MLOCKALL 1 | |
13549 | _ACEOF | |
13550 | ||
13551 | fi | |
13552 | done | |
13553 | ||
13554 | ;; | |
13555 | kernel) | |
13556 | ||
13557 | ||
13558 | # Check whether --with-linux was given. | |
13559 | if test "${with_linux+set}" = set; then : | |
13560 | withval=$with_linux; kernelsrc="$withval" | |
13561 | fi | |
13562 | ||
13563 | ||
13564 | ||
13565 | # Check whether --with-linux-obj was given. | |
13566 | if test "${with_linux_obj+set}" = set; then : | |
13567 | withval=$with_linux_obj; kernelbuild="$withval" | |
13568 | fi | |
13569 | ||
13570 | ||
13571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5 | |
13572 | $as_echo_n "checking kernel source directory... " >&6; } | |
13573 | if test -z "$kernelsrc"; then : | |
13574 | ||
13575 | if test -e "/lib/modules/$(uname -r)/source"; then : | |
13576 | ||
13577 | headersdir="/lib/modules/$(uname -r)/source" | |
13578 | sourcelink=$(readlink -f "$headersdir") | |
13579 | ||
13580 | elif test -e "/lib/modules/$(uname -r)/build"; then : | |
13581 | ||
13582 | headersdir="/lib/modules/$(uname -r)/build" | |
13583 | sourcelink=$(readlink -f "$headersdir") | |
13584 | ||
13585 | else | |
13586 | ||
13587 | sourcelink=$(ls -1d /usr/src/kernels/* \ | |
13588 | /usr/src/linux-* \ | |
13589 | 2>/dev/null | grep -v obj | tail -1) | |
13590 | ||
13591 | fi | |
13592 | ||
13593 | if test -n "$sourcelink" && test -e ${sourcelink}; then : | |
13594 | ||
13595 | kernelsrc=`readlink -f ${sourcelink}` | |
13596 | ||
13597 | else | |
13598 | ||
13599 | kernelsrc="Not found" | |
13600 | ||
13601 | fi | |
13602 | ||
13603 | else | |
13604 | ||
13605 | if test "$kernelsrc" = "NONE"; then : | |
13606 | ||
13607 | kernsrcver=NONE | |
13608 | ||
13609 | fi | |
13610 | ||
13611 | fi | |
13612 | ||
13613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5 | |
13614 | $as_echo "$kernelsrc" >&6; } | |
13615 | if test ! -d "$kernelsrc"; then : | |
13616 | ||
13617 | as_fn_error $? " | |
13618 | *** Please make sure the kernel devel package for your distribution | |
13619 | *** is installed and then try again. If that fails, you can specify the | |
13620 | *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5 | |
13621 | ||
13622 | fi | |
13623 | ||
13624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5 | |
13625 | $as_echo_n "checking kernel build directory... " >&6; } | |
13626 | if test -z "$kernelbuild"; then : | |
13627 | ||
13628 | if test -e "/lib/modules/$(uname -r)/build"; then : | |
13629 | ||
13630 | kernelbuild=`readlink -f /lib/modules/$(uname -r)/build` | |
13631 | ||
13632 | elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then : | |
13633 | ||
13634 | kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu} | |
13635 | ||
13636 | elif test -d ${kernelsrc}-obj/${target_cpu}/default; then : | |
13637 | ||
13638 | kernelbuild=${kernelsrc}-obj/${target_cpu}/default | |
13639 | ||
13640 | elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then : | |
13641 | ||
13642 | kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu} | |
13643 | ||
13644 | else | |
13645 | ||
13646 | kernelbuild=${kernelsrc} | |
13647 | ||
13648 | fi | |
13649 | ||
13650 | fi | |
13651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5 | |
13652 | $as_echo "$kernelbuild" >&6; } | |
13653 | ||
13654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5 | |
13655 | $as_echo_n "checking kernel source version... " >&6; } | |
13656 | utsrelease1=$kernelbuild/include/linux/version.h | |
13657 | utsrelease2=$kernelbuild/include/linux/utsrelease.h | |
13658 | utsrelease3=$kernelbuild/include/generated/utsrelease.h | |
13659 | if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then : | |
13660 | ||
13661 | utsrelease=linux/version.h | |
13662 | ||
13663 | elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then : | |
13664 | ||
13665 | utsrelease=linux/utsrelease.h | |
13666 | ||
13667 | elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then : | |
13668 | ||
13669 | utsrelease=generated/utsrelease.h | |
13670 | ||
13671 | fi | |
13672 | ||
13673 | if test "$utsrelease"; then : | |
13674 | ||
13675 | kernsrcver=`(echo "#include <$utsrelease>"; | |
13676 | echo "kernsrcver=UTS_RELEASE") | | |
13677 | cpp -I $kernelbuild/include | | |
13678 | grep "^kernsrcver=" | cut -d \" -f 2` | |
13679 | ||
13680 | if test -z "$kernsrcver"; then : | |
13681 | ||
13682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
13683 | $as_echo "Not found" >&6; } | |
13684 | as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5 | |
13685 | ||
13686 | fi | |
13687 | ||
13688 | else | |
13689 | ||
13690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
13691 | $as_echo "Not found" >&6; } | |
13692 | if test "x$enable_linux_builtin" != xyes; then | |
13693 | as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5 | |
13694 | else | |
13695 | as_fn_error $? " | |
13696 | *** Cannot find UTS_RELEASE definition. | |
13697 | *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5 | |
13698 | fi | |
13699 | ||
13700 | fi | |
13701 | ||
13702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5 | |
13703 | $as_echo "$kernsrcver" >&6; } | |
13704 | ||
13705 | LINUX=${kernelsrc} | |
13706 | LINUX_OBJ=${kernelbuild} | |
13707 | LINUX_VERSION=${kernsrcver} | |
13708 | ||
13709 | ||
13710 | ||
13711 | ||
13712 | ||
13713 | ||
13714 | modpost=$LINUX/scripts/Makefile.modpost | |
13715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5 | |
13716 | $as_echo_n "checking kernel file name for module symbols... " >&6; } | |
13717 | if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then : | |
13718 | ||
13719 | if grep -q Modules.symvers $modpost; then : | |
13720 | ||
13721 | LINUX_SYMBOLS=Modules.symvers | |
13722 | ||
13723 | else | |
13724 | ||
13725 | LINUX_SYMBOLS=Module.symvers | |
13726 | ||
13727 | fi | |
13728 | ||
13729 | if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then : | |
13730 | ||
13731 | as_fn_error $? " | |
13732 | *** Please make sure the kernel devel package for your distribution | |
13733 | *** is installed. If you are building with a custom kernel, make sure the | |
13734 | *** kernel is configured, built, and the '--with-linux=PATH' configure | |
13735 | *** option refers to the location of the kernel source." "$LINENO" 5 | |
13736 | ||
13737 | fi | |
13738 | ||
13739 | else | |
13740 | ||
13741 | LINUX_SYMBOLS=NONE | |
13742 | ||
13743 | fi | |
13744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5 | |
13745 | $as_echo "$LINUX_SYMBOLS" >&6; } | |
13746 | ||
13747 | ||
13748 | ||
13749 | ||
13750 | ||
13751 | # Check whether --with-spl was given. | |
13752 | if test "${with_spl+set}" = set; then : | |
13753 | withval=$with_spl; splsrc="$withval" | |
13754 | fi | |
13755 | ||
13756 | ||
13757 | ||
13758 | # Check whether --with-spl-obj was given. | |
13759 | if test "${with_spl_obj+set}" = set; then : | |
13760 | withval=$with_spl_obj; splbuild="$withval" | |
13761 | fi | |
13762 | ||
13763 | ||
13764 | ||
13765 | # Check whether --with-spl-timeout was given. | |
13766 | if test "${with_spl_timeout+set}" = set; then : | |
13767 | withval=$with_spl_timeout; timeout="$withval" | |
13768 | else | |
13769 | timeout=0 | |
13770 | fi | |
13771 | ||
13772 | ||
13773 | splsrc0="/var/lib/dkms/spl/${VERSION}/build" | |
13774 | splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}" | |
13775 | splsrc2="/usr/local/src/spl-${VERSION}" | |
13776 | splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}" | |
13777 | splsrc4="/usr/src/spl-${VERSION}" | |
13778 | splsrc5="../spl/" | |
13779 | splsrc6="$LINUX" | |
13780 | ||
13781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5 | |
13782 | $as_echo_n "checking spl source directory... " >&6; } | |
13783 | if test -z "${splsrc}"; then : | |
13784 | ||
13785 | if test -e "${splsrc0}/spl.release.in"; then : | |
13786 | ||
13787 | splsrc=${splsrc0} | |
13788 | ||
13789 | elif test -e "${splsrc1}/spl.release.in"; then : | |
13790 | ||
13791 | splsrc=${splsrc1} | |
13792 | ||
13793 | elif test -e "${splsrc2}/spl.release.in"; then : | |
13794 | ||
13795 | splsrc=${splsrc2} | |
13796 | ||
13797 | elif test -e "${splsrc3}/spl.release.in"; then : | |
13798 | ||
13799 | splsrc=$(readlink -f "${splsrc3}") | |
13800 | ||
13801 | elif test -e "${splsrc4}/spl.release.in" ; then : | |
13802 | ||
13803 | splsrc=${splsrc4} | |
13804 | ||
13805 | elif test -e "${splsrc5}/spl.release.in"; then : | |
13806 | ||
13807 | splsrc=$(readlink -f "${splsrc5}") | |
13808 | ||
13809 | elif test -e "${splsrc6}/spl.release.in" ; then : | |
13810 | ||
13811 | splsrc=${splsrc6} | |
13812 | ||
13813 | else | |
13814 | ||
13815 | splsrc="Not found" | |
13816 | ||
13817 | fi | |
13818 | ||
13819 | else | |
13820 | ||
13821 | if test "$splsrc" = "NONE"; then : | |
13822 | ||
13823 | splbuild=NONE | |
13824 | splsrcver=NONE | |
13825 | ||
13826 | fi | |
13827 | ||
13828 | fi | |
13829 | ||
13830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5 | |
13831 | $as_echo "$splsrc" >&6; } | |
13832 | if test ! -e "$splsrc/spl.release.in"; then : | |
13833 | ||
13834 | as_fn_error $? " | |
13835 | *** Please make sure the kmod spl devel package for your distribution | |
13836 | *** is installed then try again. If that fails you can specify the | |
13837 | *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5 | |
13838 | ||
13839 | fi | |
13840 | ||
13841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5 | |
13842 | $as_echo_n "checking spl build directory... " >&6; } | |
13843 | while true; do | |
13844 | if test -z "$splbuild"; then : | |
13845 | ||
13846 | if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then : | |
13847 | ||
13848 | splbuild="${splsrc}/${LINUX_VERSION}" | |
13849 | ||
13850 | elif test -e "${splsrc}/spl_config.h" ; then : | |
13851 | ||
13852 | splbuild="${splsrc}" | |
13853 | ||
13854 | elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then : | |
13855 | ||
13856 | splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,') | |
13857 | ||
13858 | else | |
13859 | ||
13860 | splbuild="Not found" | |
13861 | ||
13862 | fi | |
13863 | ||
13864 | fi | |
13865 | if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then : | |
13866 | ||
13867 | break; | |
13868 | ||
13869 | else | |
13870 | ||
13871 | sleep 1 | |
13872 | timeout=$((timeout-1)) | |
13873 | ||
13874 | fi | |
13875 | done | |
13876 | ||
13877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5 | |
13878 | $as_echo "$splbuild" >&6; } | |
13879 | if ! test -e "$splbuild/spl_config.h"; then : | |
13880 | ||
13881 | as_fn_error $? " | |
13882 | *** Please make sure the kmod spl devel <kernel> package for your | |
13883 | *** distribution is installed then try again. If that fails you | |
13884 | *** can specify the location of the spl objects with the | |
13885 | *** '--with-spl-obj=PATH' option." "$LINENO" 5 | |
13886 | ||
13887 | fi | |
13888 | ||
13889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5 | |
13890 | $as_echo_n "checking spl source version... " >&6; } | |
13891 | if test -r $splbuild/spl_config.h && | |
13892 | fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then : | |
13893 | ||
13894 | ||
13895 | splsrcver=`(echo "#include <spl_config.h>"; | |
13896 | echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") | | |
13897 | cpp -I $splbuild | | |
13898 | grep "^splsrcver=" | tr -d \" | cut -d= -f2` | |
13899 | ||
13900 | fi | |
13901 | ||
13902 | if test -z "$splsrcver"; then : | |
13903 | ||
13904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
13905 | $as_echo "Not found" >&6; } | |
13906 | as_fn_error $? " | |
13907 | *** Cannot determine the version of the spl source. | |
13908 | *** Please prepare the spl source before running this script" "$LINENO" 5 | |
13909 | ||
13910 | fi | |
13911 | ||
13912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5 | |
13913 | $as_echo "$splsrcver" >&6; } | |
13914 | ||
13915 | SPL=${splsrc} | |
13916 | SPL_OBJ=${splbuild} | |
13917 | SPL_VERSION=${splsrcver} | |
13918 | ||
13919 | ||
13920 | ||
13921 | ||
13922 | ||
13923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5 | |
13924 | $as_echo_n "checking spl file name for module symbols... " >&6; } | |
13925 | SPL_SYMBOLS=NONE | |
13926 | ||
13927 | while true; do | |
13928 | if test -r $SPL_OBJ/Module.symvers; then : | |
13929 | ||
13930 | SPL_SYMBOLS=Module.symvers | |
13931 | ||
13932 | elif test -r $SPL_OBJ/Modules.symvers; then : | |
13933 | ||
13934 | SPL_SYMBOLS=Modules.symvers | |
13935 | ||
13936 | elif test -r $SPL_OBJ/module/Module.symvers; then : | |
13937 | ||
13938 | SPL_SYMBOLS=Module.symvers | |
13939 | ||
13940 | elif test -r $SPL_OBJ/module/Modules.symvers; then : | |
13941 | ||
13942 | SPL_SYMBOLS=Modules.symvers | |
13943 | ||
13944 | fi | |
13945 | ||
13946 | if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then : | |
13947 | ||
13948 | break; | |
13949 | ||
13950 | else | |
13951 | ||
13952 | sleep 1 | |
13953 | timeout=$((timeout-1)) | |
13954 | ||
13955 | fi | |
13956 | done | |
13957 | ||
13958 | if test "$SPL_SYMBOLS" = NONE; then : | |
13959 | ||
13960 | SPL_SYMBOLS=$LINUX_SYMBOLS | |
13961 | ||
13962 | fi | |
13963 | ||
13964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5 | |
13965 | $as_echo "$SPL_SYMBOLS" >&6; } | |
13966 | ||
13967 | ||
13968 | ||
13969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5 | |
13970 | $as_echo_n "checking whether modules can be built... " >&6; } | |
13971 | ||
13972 | ||
13973 | cat confdefs.h - <<_ACEOF >conftest.c | |
13974 | ||
13975 | ||
13976 | int | |
13977 | main (void) | |
13978 | { | |
13979 | ||
13980 | ; | |
13981 | return 0; | |
13982 | } | |
13983 | ||
13984 | _ACEOF | |
13985 | ||
13986 | ||
13987 | ||
13988 | cat - <<_ACEOF >conftest.h | |
13989 | ||
13990 | _ACEOF | |
13991 | ||
13992 | ||
13993 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13994 | echo "obj-m := conftest.o" >build/Makefile | |
13995 | modpost_flag='' | |
13996 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13997 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13998 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13999 | (eval $ac_try) 2>&5 | |
14000 | ac_status=$? | |
14001 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14002 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14003 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14004 | (eval $ac_try) 2>&5 | |
14005 | ac_status=$? | |
14006 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14007 | test $ac_status = 0; }; }; then : | |
14008 | ||
14009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14010 | $as_echo "yes" >&6; } | |
14011 | ||
14012 | else | |
14013 | $as_echo "$as_me: failed program was:" >&5 | |
14014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14015 | ||
14016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14017 | $as_echo "no" >&6; } | |
14018 | if test "x$enable_linux_builtin" != xyes; then | |
14019 | as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5 | |
14020 | else | |
14021 | as_fn_error $? " | |
14022 | *** Unable to build an empty module. | |
14023 | *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5 | |
14024 | fi | |
14025 | ||
14026 | ||
14027 | ||
14028 | fi | |
14029 | rm -Rf build | |
14030 | ||
14031 | ||
14032 | ||
14033 | ||
14034 | if test "x$cross_compiling" != xyes; then : | |
14035 | ||
14036 | if test "$cross_compiling" = yes; then : | |
14037 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14038 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14039 | as_fn_error $? "cannot run test program while cross compiling | |
14040 | See \`config.log' for more details" "$LINENO" 5; } | |
14041 | else | |
14042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14043 | /* end confdefs.h. */ | |
14044 | ||
14045 | ||
14046 | #include "$LINUX/include/linux/license.h" | |
14047 | ||
14048 | int | |
14049 | main () | |
14050 | { | |
14051 | ||
14052 | return !license_is_gpl_compatible("$ZFS_META_LICENSE"); | |
14053 | ||
14054 | ; | |
14055 | return 0; | |
14056 | } | |
14057 | ||
14058 | _ACEOF | |
14059 | if ac_fn_c_try_run "$LINENO"; then : | |
14060 | ||
14061 | ||
14062 | $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h | |
14063 | ||
14064 | ||
14065 | fi | |
14066 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14067 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14068 | fi | |
14069 | ||
14070 | ||
14071 | fi | |
14072 | ||
14073 | ||
14074 | ||
14075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5 | |
14076 | $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; } | |
14077 | ||
14078 | ||
14079 | cat confdefs.h - <<_ACEOF >conftest.c | |
14080 | ||
14081 | ||
14082 | #include <linux/module.h> | |
14083 | ||
14084 | int | |
14085 | main (void) | |
14086 | { | |
14087 | ||
14088 | #ifndef CONFIG_DEBUG_LOCK_ALLOC | |
14089 | #error CONFIG_DEBUG_LOCK_ALLOC not #defined | |
14090 | #endif | |
14091 | ||
14092 | ; | |
14093 | return 0; | |
14094 | } | |
14095 | ||
14096 | _ACEOF | |
14097 | ||
14098 | ||
14099 | ||
14100 | cat - <<_ACEOF >conftest.h | |
14101 | ||
14102 | _ACEOF | |
14103 | ||
14104 | ||
14105 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14106 | echo "obj-m := conftest.o" >build/Makefile | |
14107 | modpost_flag='' | |
14108 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14109 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
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; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14115 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14116 | (eval $ac_try) 2>&5 | |
14117 | ac_status=$? | |
14118 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14119 | test $ac_status = 0; }; }; then : | |
14120 | ||
14121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14122 | $as_echo "yes" >&6; } | |
14123 | ||
14124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5 | |
14125 | $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; } | |
14126 | tmp_flags="$EXTRA_KCFLAGS" | |
14127 | ||
14128 | ||
14129 | cat confdefs.h - <<_ACEOF >conftest.c | |
14130 | ||
14131 | ||
14132 | #include <linux/module.h> | |
14133 | #include <linux/mutex.h> | |
14134 | ||
14135 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
14136 | ||
14137 | int | |
14138 | main (void) | |
14139 | { | |
14140 | ||
14141 | struct mutex lock; | |
14142 | ||
14143 | mutex_init(&lock); | |
14144 | mutex_lock(&lock); | |
14145 | mutex_unlock(&lock); | |
14146 | ||
14147 | ; | |
14148 | return 0; | |
14149 | } | |
14150 | ||
14151 | _ACEOF | |
14152 | ||
14153 | ||
14154 | ||
14155 | cat - <<_ACEOF >conftest.h | |
14156 | ||
14157 | _ACEOF | |
14158 | ||
14159 | ||
14160 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14161 | echo "obj-m := conftest.o" >build/Makefile | |
14162 | modpost_flag='' | |
14163 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14164 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14165 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14166 | (eval $ac_try) 2>&5 | |
14167 | ac_status=$? | |
14168 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14169 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14170 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14171 | (eval $ac_try) 2>&5 | |
14172 | ac_status=$? | |
14173 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14174 | test $ac_status = 0; }; }; then : | |
14175 | ||
14176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14177 | $as_echo "no" >&6; } | |
14178 | ||
14179 | else | |
14180 | $as_echo "$as_me: failed program was:" >&5 | |
14181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14182 | ||
14183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14184 | $as_echo "yes" >&6; } | |
14185 | as_fn_error $? " | |
14186 | *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible | |
14187 | *** with the CDDL license and will prevent the module linking stage | |
14188 | *** from succeeding. You must rebuild your kernel without this | |
14189 | *** option enabled." "$LINENO" 5 | |
14190 | ||
14191 | ||
14192 | ||
14193 | fi | |
14194 | rm -Rf build | |
14195 | ||
14196 | ||
14197 | EXTRA_KCFLAGS="$tmp_flags" | |
14198 | ||
14199 | ||
14200 | else | |
14201 | $as_echo "$as_me: failed program was:" >&5 | |
14202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14203 | ||
14204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14205 | $as_echo "no" >&6; } | |
14206 | ||
14207 | ||
14208 | ||
14209 | ||
14210 | fi | |
14211 | rm -Rf build | |
14212 | ||
14213 | ||
14214 | ||
14215 | ||
14216 | ||
14217 | ||
14218 | tmp_flags="$EXTRA_KCFLAGS" | |
14219 | EXTRA_KCFLAGS="-I\$(src)" | |
14220 | ||
14221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5 | |
14222 | $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; } | |
14223 | ||
14224 | ||
14225 | cat confdefs.h - <<_ACEOF >conftest.c | |
14226 | ||
14227 | ||
14228 | #include <linux/module.h> | |
14229 | MODULE_LICENSE(ZFS_META_LICENSE); | |
14230 | ||
14231 | #define CREATE_TRACE_POINTS | |
14232 | #include "conftest.h" | |
14233 | ||
14234 | int | |
14235 | main (void) | |
14236 | { | |
14237 | ||
14238 | trace_zfs_autoconf_event_one(1UL); | |
14239 | trace_zfs_autoconf_event_two(2UL); | |
14240 | ||
14241 | ; | |
14242 | return 0; | |
14243 | } | |
14244 | ||
14245 | _ACEOF | |
14246 | ||
14247 | ||
14248 | ||
14249 | cat - <<_ACEOF >conftest.h | |
14250 | ||
14251 | #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ) | |
14252 | #define _CONFTEST_H | |
14253 | ||
14254 | #undef TRACE_SYSTEM | |
14255 | #define TRACE_SYSTEM zfs | |
14256 | #include <linux/tracepoint.h> | |
14257 | ||
14258 | DECLARE_EVENT_CLASS(zfs_autoconf_event_class, | |
14259 | TP_PROTO(unsigned long i), | |
14260 | TP_ARGS(i), | |
14261 | TP_STRUCT__entry( | |
14262 | __field(unsigned long, i) | |
14263 | ), | |
14264 | TP_fast_assign( | |
14265 | __entry->i = i; | |
14266 | ), | |
14267 | TP_printk("i = %lu", __entry->i) | |
14268 | ); | |
14269 | ||
14270 | #define DEFINE_AUTOCONF_EVENT(name) \ | |
14271 | DEFINE_EVENT(zfs_autoconf_event_class, name, \ | |
14272 | TP_PROTO(unsigned long i), \ | |
14273 | TP_ARGS(i)) | |
14274 | DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one); | |
14275 | DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two); | |
14276 | ||
14277 | #endif /* _CONFTEST_H */ | |
14278 | ||
14279 | #undef TRACE_INCLUDE_PATH | |
14280 | #define TRACE_INCLUDE_PATH . | |
14281 | #define TRACE_INCLUDE_FILE conftest | |
14282 | #include <trace/define_trace.h> | |
14283 | ||
14284 | _ACEOF | |
14285 | ||
14286 | ||
14287 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14288 | echo "obj-m := conftest.o" >build/Makefile | |
14289 | modpost_flag='' | |
14290 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14291 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14292 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14293 | (eval $ac_try) 2>&5 | |
14294 | ac_status=$? | |
14295 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14296 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14297 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14298 | (eval $ac_try) 2>&5 | |
14299 | ac_status=$? | |
14300 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14301 | test $ac_status = 0; }; }; then : | |
14302 | ||
14303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14304 | $as_echo "yes" >&6; } | |
14305 | ||
14306 | $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h | |
14307 | ||
14308 | ||
14309 | else | |
14310 | $as_echo "$as_me: failed program was:" >&5 | |
14311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14312 | ||
14313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14314 | $as_echo "no" >&6; } | |
14315 | ||
14316 | ||
14317 | ||
14318 | fi | |
14319 | rm -Rf build | |
14320 | ||
14321 | ||
14322 | EXTRA_KCFLAGS="$tmp_flags" | |
14323 | ||
14324 | ||
14325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5 | |
14326 | $as_echo_n "checking whether current->bio_tail exists... " >&6; } | |
14327 | ||
14328 | ||
14329 | cat confdefs.h - <<_ACEOF >conftest.c | |
14330 | ||
14331 | ||
14332 | #include <linux/sched.h> | |
14333 | ||
14334 | int | |
14335 | main (void) | |
14336 | { | |
14337 | ||
14338 | current->bio_tail = (struct bio **) NULL; | |
14339 | ||
14340 | ; | |
14341 | return 0; | |
14342 | } | |
14343 | ||
14344 | _ACEOF | |
14345 | ||
14346 | ||
14347 | ||
14348 | cat - <<_ACEOF >conftest.h | |
14349 | ||
14350 | _ACEOF | |
14351 | ||
14352 | ||
14353 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14354 | echo "obj-m := conftest.o" >build/Makefile | |
14355 | modpost_flag='' | |
14356 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14357 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14358 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14359 | (eval $ac_try) 2>&5 | |
14360 | ac_status=$? | |
14361 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14362 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14363 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14364 | (eval $ac_try) 2>&5 | |
14365 | ac_status=$? | |
14366 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14367 | test $ac_status = 0; }; }; then : | |
14368 | ||
14369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14370 | $as_echo "yes" >&6; } | |
14371 | ||
14372 | $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h | |
14373 | ||
14374 | ||
14375 | else | |
14376 | $as_echo "$as_me: failed program was:" >&5 | |
14377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14378 | ||
14379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14380 | $as_echo "no" >&6; } | |
14381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5 | |
14382 | $as_echo_n "checking whether current->bio_list exists... " >&6; } | |
14383 | ||
14384 | ||
14385 | cat confdefs.h - <<_ACEOF >conftest.c | |
14386 | ||
14387 | ||
14388 | #include <linux/sched.h> | |
14389 | ||
14390 | int | |
14391 | main (void) | |
14392 | { | |
14393 | ||
14394 | current->bio_list = (struct bio_list *) NULL; | |
14395 | ||
14396 | ; | |
14397 | return 0; | |
14398 | } | |
14399 | ||
14400 | _ACEOF | |
14401 | ||
14402 | ||
14403 | ||
14404 | cat - <<_ACEOF >conftest.h | |
14405 | ||
14406 | _ACEOF | |
14407 | ||
14408 | ||
14409 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14410 | echo "obj-m := conftest.o" >build/Makefile | |
14411 | modpost_flag='' | |
14412 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14413 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14414 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14415 | (eval $ac_try) 2>&5 | |
14416 | ac_status=$? | |
14417 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14418 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14419 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14420 | (eval $ac_try) 2>&5 | |
14421 | ac_status=$? | |
14422 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14423 | test $ac_status = 0; }; }; then : | |
14424 | ||
14425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14426 | $as_echo "yes" >&6; } | |
14427 | ||
14428 | $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h | |
14429 | ||
14430 | ||
14431 | else | |
14432 | $as_echo "$as_me: failed program was:" >&5 | |
14433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14434 | ||
14435 | as_fn_error $? "no - Please file a bug report at | |
14436 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
14437 | ||
14438 | ||
14439 | ||
14440 | fi | |
14441 | rm -Rf build | |
14442 | ||
14443 | ||
14444 | ||
14445 | ||
14446 | ||
14447 | fi | |
14448 | rm -Rf build | |
14449 | ||
14450 | ||
14451 | ||
14452 | ||
14453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5 | |
14454 | $as_echo_n "checking block device operation prototypes... " >&6; } | |
14455 | tmp_flags="$EXTRA_KCFLAGS" | |
14456 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
14457 | ||
14458 | ||
14459 | cat confdefs.h - <<_ACEOF >conftest.c | |
14460 | ||
14461 | ||
14462 | #include <linux/blkdev.h> | |
14463 | ||
14464 | int blk_open(struct block_device *bdev, fmode_t mode) | |
14465 | { return 0; } | |
14466 | int blk_ioctl(struct block_device *bdev, fmode_t mode, | |
14467 | unsigned x, unsigned long y) { return 0; } | |
14468 | int blk_compat_ioctl(struct block_device * bdev, fmode_t mode, | |
14469 | unsigned x, unsigned long y) { return 0; } | |
14470 | ||
14471 | static const struct block_device_operations | |
14472 | bops __attribute__ ((unused)) = { | |
14473 | .open = blk_open, | |
14474 | .release = NULL, | |
14475 | .ioctl = blk_ioctl, | |
14476 | .compat_ioctl = blk_compat_ioctl, | |
14477 | }; | |
14478 | ||
14479 | int | |
14480 | main (void) | |
14481 | { | |
14482 | ||
14483 | ||
14484 | ; | |
14485 | return 0; | |
14486 | } | |
14487 | ||
14488 | _ACEOF | |
14489 | ||
14490 | ||
14491 | ||
14492 | cat - <<_ACEOF >conftest.h | |
14493 | ||
14494 | _ACEOF | |
14495 | ||
14496 | ||
14497 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14498 | echo "obj-m := conftest.o" >build/Makefile | |
14499 | modpost_flag='' | |
14500 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14501 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14502 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14503 | (eval $ac_try) 2>&5 | |
14504 | ac_status=$? | |
14505 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14506 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14507 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14508 | (eval $ac_try) 2>&5 | |
14509 | ac_status=$? | |
14510 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14511 | test $ac_status = 0; }; }; then : | |
14512 | ||
14513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5 | |
14514 | $as_echo "struct block_device" >&6; } | |
14515 | ||
14516 | $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h | |
14517 | ||
14518 | ||
14519 | else | |
14520 | $as_echo "$as_me: failed program was:" >&5 | |
14521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14522 | ||
14523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5 | |
14524 | $as_echo "struct inode" >&6; } | |
14525 | ||
14526 | ||
14527 | ||
14528 | fi | |
14529 | rm -Rf build | |
14530 | ||
14531 | ||
14532 | EXTRA_KCFLAGS="$tmp_flags" | |
14533 | ||
14534 | ||
14535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5 | |
14536 | $as_echo_n "checking whether block_device_operations.release is void... " >&6; } | |
14537 | tmp_flags="$EXTRA_KCFLAGS" | |
14538 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
14539 | ||
14540 | ||
14541 | cat confdefs.h - <<_ACEOF >conftest.c | |
14542 | ||
14543 | ||
14544 | #include <linux/blkdev.h> | |
14545 | ||
14546 | void blk_release(struct gendisk *g, fmode_t mode) { return; } | |
14547 | ||
14548 | static const struct block_device_operations | |
14549 | bops __attribute__ ((unused)) = { | |
14550 | .open = NULL, | |
14551 | .release = blk_release, | |
14552 | .ioctl = NULL, | |
14553 | .compat_ioctl = NULL, | |
14554 | }; | |
14555 | ||
14556 | int | |
14557 | main (void) | |
14558 | { | |
14559 | ||
14560 | ||
14561 | ; | |
14562 | return 0; | |
14563 | } | |
14564 | ||
14565 | _ACEOF | |
14566 | ||
14567 | ||
14568 | ||
14569 | cat - <<_ACEOF >conftest.h | |
14570 | ||
14571 | _ACEOF | |
14572 | ||
14573 | ||
14574 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14575 | echo "obj-m := conftest.o" >build/Makefile | |
14576 | modpost_flag='' | |
14577 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14578 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14579 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14580 | (eval $ac_try) 2>&5 | |
14581 | ac_status=$? | |
14582 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14583 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14584 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14585 | (eval $ac_try) 2>&5 | |
14586 | ac_status=$? | |
14587 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14588 | test $ac_status = 0; }; }; then : | |
14589 | ||
14590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5 | |
14591 | $as_echo "void" >&6; } | |
14592 | ||
14593 | $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h | |
14594 | ||
14595 | ||
14596 | else | |
14597 | $as_echo "$as_me: failed program was:" >&5 | |
14598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14599 | ||
14600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 | |
14601 | $as_echo "int" >&6; } | |
14602 | ||
14603 | ||
14604 | ||
14605 | fi | |
14606 | rm -Rf build | |
14607 | ||
14608 | ||
14609 | EXTRA_KCFLAGS="$tmp_flags" | |
14610 | ||
14611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5 | |
14612 | $as_echo_n "checking whether kernel defines fmode_t... " >&6; } | |
14613 | ||
14614 | ||
14615 | cat confdefs.h - <<_ACEOF >conftest.c | |
14616 | ||
14617 | ||
14618 | #include <linux/types.h> | |
14619 | ||
14620 | int | |
14621 | main (void) | |
14622 | { | |
14623 | ||
14624 | fmode_t *ptr __attribute__ ((unused)); | |
14625 | ||
14626 | ; | |
14627 | return 0; | |
14628 | } | |
14629 | ||
14630 | _ACEOF | |
14631 | ||
14632 | ||
14633 | ||
14634 | cat - <<_ACEOF >conftest.h | |
14635 | ||
14636 | _ACEOF | |
14637 | ||
14638 | ||
14639 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14640 | echo "obj-m := conftest.o" >build/Makefile | |
14641 | modpost_flag='' | |
14642 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14643 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14644 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14645 | (eval $ac_try) 2>&5 | |
14646 | ac_status=$? | |
14647 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14648 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14649 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14650 | (eval $ac_try) 2>&5 | |
14651 | ac_status=$? | |
14652 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14653 | test $ac_status = 0; }; }; then : | |
14654 | ||
14655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14656 | $as_echo "yes" >&6; } | |
14657 | ||
14658 | $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h | |
14659 | ||
14660 | ||
14661 | else | |
14662 | $as_echo "$as_me: failed program was:" >&5 | |
14663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14664 | ||
14665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14666 | $as_echo "no" >&6; } | |
14667 | ||
14668 | ||
14669 | ||
14670 | fi | |
14671 | rm -Rf build | |
14672 | ||
14673 | ||
14674 | ||
14675 | ||
14676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5 | |
14677 | $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; } | |
14678 | ||
14679 | ||
14680 | cat confdefs.h - <<_ACEOF >conftest.c | |
14681 | ||
14682 | ||
14683 | #include <linux/kobject.h> | |
14684 | ||
14685 | int | |
14686 | main (void) | |
14687 | { | |
14688 | ||
14689 | int val __attribute__ ((unused)); | |
14690 | val = KOBJ_NAME_LEN; | |
14691 | ||
14692 | ; | |
14693 | return 0; | |
14694 | } | |
14695 | ||
14696 | _ACEOF | |
14697 | ||
14698 | ||
14699 | ||
14700 | cat - <<_ACEOF >conftest.h | |
14701 | ||
14702 | _ACEOF | |
14703 | ||
14704 | ||
14705 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14706 | echo "obj-m := conftest.o" >build/Makefile | |
14707 | modpost_flag='' | |
14708 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14709 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14710 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14711 | (eval $ac_try) 2>&5 | |
14712 | ac_status=$? | |
14713 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14714 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14715 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14716 | (eval $ac_try) 2>&5 | |
14717 | ac_status=$? | |
14718 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14719 | test $ac_status = 0; }; }; then : | |
14720 | ||
14721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14722 | $as_echo "yes" >&6; } | |
14723 | ||
14724 | $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h | |
14725 | ||
14726 | ||
14727 | else | |
14728 | $as_echo "$as_me: failed program was:" >&5 | |
14729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14730 | ||
14731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14732 | $as_echo "no" >&6; } | |
14733 | ||
14734 | ||
14735 | ||
14736 | fi | |
14737 | rm -Rf build | |
14738 | ||
14739 | ||
14740 | ||
14741 | ||
14742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5 | |
14743 | $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; } | |
14744 | ||
14745 | ||
14746 | cat confdefs.h - <<_ACEOF >conftest.c | |
14747 | ||
14748 | ||
14749 | #include <linux/fs.h> | |
14750 | ||
14751 | int | |
14752 | main (void) | |
14753 | { | |
14754 | ||
14755 | struct block_device *bdev = NULL; | |
14756 | (void) blkdev_get(bdev, 0, NULL); | |
14757 | ||
14758 | ; | |
14759 | return 0; | |
14760 | } | |
14761 | ||
14762 | _ACEOF | |
14763 | ||
14764 | ||
14765 | ||
14766 | cat - <<_ACEOF >conftest.h | |
14767 | ||
14768 | _ACEOF | |
14769 | ||
14770 | ||
14771 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14772 | echo "obj-m := conftest.o" >build/Makefile | |
14773 | modpost_flag='' | |
14774 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14775 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14776 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14777 | (eval $ac_try) 2>&5 | |
14778 | ac_status=$? | |
14779 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14780 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14781 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14782 | (eval $ac_try) 2>&5 | |
14783 | ac_status=$? | |
14784 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14785 | test $ac_status = 0; }; }; then : | |
14786 | ||
14787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14788 | $as_echo "yes" >&6; } | |
14789 | ||
14790 | $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h | |
14791 | ||
14792 | ||
14793 | else | |
14794 | $as_echo "$as_me: failed program was:" >&5 | |
14795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14796 | ||
14797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14798 | $as_echo "no" >&6; } | |
14799 | ||
14800 | ||
14801 | ||
14802 | fi | |
14803 | rm -Rf build | |
14804 | ||
14805 | ||
14806 | ||
14807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5 | |
14808 | $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; } | |
14809 | ||
14810 | ||
14811 | ||
14812 | cat confdefs.h - <<_ACEOF >conftest.c | |
14813 | ||
14814 | ||
14815 | #include <linux/fs.h> | |
14816 | ||
14817 | int | |
14818 | main (void) | |
14819 | { | |
14820 | ||
14821 | blkdev_get_by_path(NULL, 0, NULL); | |
14822 | ||
14823 | ; | |
14824 | return 0; | |
14825 | } | |
14826 | ||
14827 | _ACEOF | |
14828 | ||
14829 | ||
14830 | ||
14831 | cat - <<_ACEOF >conftest.h | |
14832 | ||
14833 | _ACEOF | |
14834 | ||
14835 | ||
14836 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14837 | echo "obj-m := conftest.o" >build/Makefile | |
14838 | modpost_flag='' | |
14839 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14840 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14841 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14842 | (eval $ac_try) 2>&5 | |
14843 | ac_status=$? | |
14844 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14845 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14846 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14847 | (eval $ac_try) 2>&5 | |
14848 | ac_status=$? | |
14849 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14850 | test $ac_status = 0; }; }; then : | |
14851 | rc=0 | |
14852 | else | |
14853 | $as_echo "$as_me: failed program was:" >&5 | |
14854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14855 | rc=1 | |
14856 | ||
14857 | ||
14858 | fi | |
14859 | rm -Rf build | |
14860 | ||
14861 | ||
14862 | if test $rc -ne 0; then : | |
14863 | ||
14864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14865 | $as_echo "no" >&6; } | |
14866 | ||
14867 | else | |
14868 | if test "x$enable_linux_builtin" != xyes; then | |
14869 | ||
14870 | grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \ | |
14871 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
14872 | rc=$? | |
14873 | if test $rc -ne 0; then | |
14874 | export=0 | |
14875 | for file in fs/block_dev.c; do | |
14876 | grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \ | |
14877 | "$LINUX/$file" 2>/dev/null | |
14878 | rc=$? | |
14879 | if test $rc -eq 0; then | |
14880 | export=1 | |
14881 | break; | |
14882 | fi | |
14883 | done | |
14884 | if test $export -eq 0; then : | |
14885 | rc=1 | |
14886 | else : | |
14887 | rc=0 | |
14888 | fi | |
14889 | else : | |
14890 | rc=0 | |
14891 | fi | |
14892 | ||
14893 | fi | |
14894 | if test $rc -ne 0; then : | |
14895 | ||
14896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14897 | $as_echo "no" >&6; } | |
14898 | ||
14899 | else : | |
14900 | ||
14901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14902 | $as_echo "yes" >&6; } | |
14903 | ||
14904 | $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h | |
14905 | ||
14906 | ||
14907 | fi | |
14908 | fi | |
14909 | ||
14910 | ||
14911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5 | |
14912 | $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; } | |
14913 | ||
14914 | ||
14915 | ||
14916 | cat confdefs.h - <<_ACEOF >conftest.c | |
14917 | ||
14918 | ||
14919 | #include <linux/fs.h> | |
14920 | ||
14921 | int | |
14922 | main (void) | |
14923 | { | |
14924 | ||
14925 | open_bdev_exclusive(NULL, 0, NULL); | |
14926 | ||
14927 | ; | |
14928 | return 0; | |
14929 | } | |
14930 | ||
14931 | _ACEOF | |
14932 | ||
14933 | ||
14934 | ||
14935 | cat - <<_ACEOF >conftest.h | |
14936 | ||
14937 | _ACEOF | |
14938 | ||
14939 | ||
14940 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14941 | echo "obj-m := conftest.o" >build/Makefile | |
14942 | modpost_flag='' | |
14943 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14944 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14945 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14946 | (eval $ac_try) 2>&5 | |
14947 | ac_status=$? | |
14948 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14949 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14950 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14951 | (eval $ac_try) 2>&5 | |
14952 | ac_status=$? | |
14953 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14954 | test $ac_status = 0; }; }; then : | |
14955 | rc=0 | |
14956 | else | |
14957 | $as_echo "$as_me: failed program was:" >&5 | |
14958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14959 | rc=1 | |
14960 | ||
14961 | ||
14962 | fi | |
14963 | rm -Rf build | |
14964 | ||
14965 | ||
14966 | if test $rc -ne 0; then : | |
14967 | ||
14968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14969 | $as_echo "no" >&6; } | |
14970 | ||
14971 | else | |
14972 | if test "x$enable_linux_builtin" != xyes; then | |
14973 | ||
14974 | grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \ | |
14975 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
14976 | rc=$? | |
14977 | if test $rc -ne 0; then | |
14978 | export=0 | |
14979 | for file in fs/block_dev.c; do | |
14980 | grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \ | |
14981 | "$LINUX/$file" 2>/dev/null | |
14982 | rc=$? | |
14983 | if test $rc -eq 0; then | |
14984 | export=1 | |
14985 | break; | |
14986 | fi | |
14987 | done | |
14988 | if test $export -eq 0; then : | |
14989 | rc=1 | |
14990 | else : | |
14991 | rc=0 | |
14992 | fi | |
14993 | else : | |
14994 | rc=0 | |
14995 | fi | |
14996 | ||
14997 | fi | |
14998 | if test $rc -ne 0; then : | |
14999 | ||
15000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15001 | $as_echo "no" >&6; } | |
15002 | ||
15003 | else : | |
15004 | ||
15005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15006 | $as_echo "yes" >&6; } | |
15007 | ||
15008 | $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h | |
15009 | ||
15010 | ||
15011 | fi | |
15012 | fi | |
15013 | ||
15014 | ||
15015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5 | |
15016 | $as_echo_n "checking whether lookup_bdev() is available... " >&6; } | |
15017 | ||
15018 | ||
15019 | ||
15020 | cat confdefs.h - <<_ACEOF >conftest.c | |
15021 | ||
15022 | ||
15023 | #include <linux/fs.h> | |
15024 | ||
15025 | int | |
15026 | main (void) | |
15027 | { | |
15028 | ||
15029 | lookup_bdev(NULL); | |
15030 | ||
15031 | ; | |
15032 | return 0; | |
15033 | } | |
15034 | ||
15035 | _ACEOF | |
15036 | ||
15037 | ||
15038 | ||
15039 | cat - <<_ACEOF >conftest.h | |
15040 | ||
15041 | _ACEOF | |
15042 | ||
15043 | ||
15044 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15045 | echo "obj-m := conftest.o" >build/Makefile | |
15046 | modpost_flag='' | |
15047 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15048 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15049 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15050 | (eval $ac_try) 2>&5 | |
15051 | ac_status=$? | |
15052 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15053 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15054 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15055 | (eval $ac_try) 2>&5 | |
15056 | ac_status=$? | |
15057 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15058 | test $ac_status = 0; }; }; then : | |
15059 | rc=0 | |
15060 | else | |
15061 | $as_echo "$as_me: failed program was:" >&5 | |
15062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15063 | rc=1 | |
15064 | ||
15065 | ||
15066 | fi | |
15067 | rm -Rf build | |
15068 | ||
15069 | ||
15070 | if test $rc -ne 0; then : | |
15071 | ||
15072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15073 | $as_echo "no" >&6; } | |
8e543f2f CIK |
15074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available and wants 2 args" >&5 |
15075 | $as_echo_n "checking whether lookup_bdev() is available and wants 2 args... " >&6; } | |
15076 | ||
15077 | ||
15078 | ||
15079 | cat confdefs.h - <<_ACEOF >conftest.c | |
15080 | ||
15081 | ||
15082 | #include <linux/fs.h> | |
15083 | ||
15084 | int | |
15085 | main (void) | |
15086 | { | |
15087 | ||
15088 | lookup_bdev(NULL, 0); | |
15089 | ||
15090 | ; | |
15091 | return 0; | |
15092 | } | |
15093 | ||
15094 | _ACEOF | |
15095 | ||
15096 | ||
15097 | ||
15098 | cat - <<_ACEOF >conftest.h | |
15099 | ||
15100 | _ACEOF | |
15101 | ||
15102 | ||
15103 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15104 | echo "obj-m := conftest.o" >build/Makefile | |
15105 | modpost_flag='' | |
15106 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15107 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15108 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15109 | (eval $ac_try) 2>&5 | |
15110 | ac_status=$? | |
15111 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15112 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15113 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15114 | (eval $ac_try) 2>&5 | |
15115 | ac_status=$? | |
15116 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15117 | test $ac_status = 0; }; }; then : | |
15118 | rc=0 | |
15119 | else | |
15120 | $as_echo "$as_me: failed program was:" >&5 | |
15121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15122 | rc=1 | |
15123 | ||
15124 | ||
15125 | fi | |
15126 | rm -Rf build | |
15127 | ||
15128 | ||
15129 | if test $rc -ne 0; then : | |
15130 | ||
15131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15132 | $as_echo "no" >&6; } | |
15133 | ||
15134 | else | |
15135 | if test "x$enable_linux_builtin" != xyes; then | |
15136 | ||
15137 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
15138 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
15139 | rc=$? | |
15140 | if test $rc -ne 0; then | |
15141 | export=0 | |
15142 | for file in fs/block_dev.c; do | |
15143 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
15144 | "$LINUX/$file" 2>/dev/null | |
15145 | rc=$? | |
15146 | if test $rc -eq 0; then | |
15147 | export=1 | |
15148 | break; | |
15149 | fi | |
15150 | done | |
15151 | if test $export -eq 0; then : | |
15152 | rc=1 | |
15153 | else : | |
15154 | rc=0 | |
15155 | fi | |
15156 | else : | |
15157 | rc=0 | |
15158 | fi | |
15159 | ||
15160 | fi | |
15161 | if test $rc -ne 0; then : | |
15162 | ||
15163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15164 | $as_echo "no" >&6; } | |
15165 | ||
15166 | else : | |
15167 | ||
15168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15169 | $as_echo "yes" >&6; } | |
15170 | ||
15171 | $as_echo "#define HAVE_LOOKUP_BDEV_2ARGS 1" >>confdefs.h | |
15172 | ||
15173 | ||
15174 | fi | |
15175 | fi | |
15176 | ||
904dbe44 CIK |
15177 | |
15178 | else | |
15179 | if test "x$enable_linux_builtin" != xyes; then | |
15180 | ||
15181 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
15182 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
15183 | rc=$? | |
15184 | if test $rc -ne 0; then | |
15185 | export=0 | |
15186 | for file in fs/block_dev.c; do | |
15187 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
15188 | "$LINUX/$file" 2>/dev/null | |
15189 | rc=$? | |
15190 | if test $rc -eq 0; then | |
15191 | export=1 | |
15192 | break; | |
15193 | fi | |
15194 | done | |
15195 | if test $export -eq 0; then : | |
15196 | rc=1 | |
15197 | else : | |
15198 | rc=0 | |
15199 | fi | |
15200 | else : | |
15201 | rc=0 | |
15202 | fi | |
15203 | ||
15204 | fi | |
15205 | if test $rc -ne 0; then : | |
15206 | ||
15207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15208 | $as_echo "no" >&6; } | |
8e543f2f CIK |
15209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available and wants 2 args" >&5 |
15210 | $as_echo_n "checking whether lookup_bdev() is available and wants 2 args... " >&6; } | |
15211 | ||
15212 | ||
15213 | ||
15214 | cat confdefs.h - <<_ACEOF >conftest.c | |
15215 | ||
15216 | ||
15217 | #include <linux/fs.h> | |
15218 | ||
15219 | int | |
15220 | main (void) | |
15221 | { | |
15222 | ||
15223 | lookup_bdev(NULL, 0); | |
15224 | ||
15225 | ; | |
15226 | return 0; | |
15227 | } | |
15228 | ||
15229 | _ACEOF | |
15230 | ||
15231 | ||
15232 | ||
15233 | cat - <<_ACEOF >conftest.h | |
15234 | ||
15235 | _ACEOF | |
15236 | ||
15237 | ||
15238 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15239 | echo "obj-m := conftest.o" >build/Makefile | |
15240 | modpost_flag='' | |
15241 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15242 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15243 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15244 | (eval $ac_try) 2>&5 | |
15245 | ac_status=$? | |
15246 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15247 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15248 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15249 | (eval $ac_try) 2>&5 | |
15250 | ac_status=$? | |
15251 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15252 | test $ac_status = 0; }; }; then : | |
15253 | rc=0 | |
15254 | else | |
15255 | $as_echo "$as_me: failed program was:" >&5 | |
15256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15257 | rc=1 | |
15258 | ||
15259 | ||
15260 | fi | |
15261 | rm -Rf build | |
15262 | ||
15263 | ||
15264 | if test $rc -ne 0; then : | |
15265 | ||
15266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15267 | $as_echo "no" >&6; } | |
15268 | ||
15269 | else | |
15270 | if test "x$enable_linux_builtin" != xyes; then | |
15271 | ||
15272 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
15273 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
15274 | rc=$? | |
15275 | if test $rc -ne 0; then | |
15276 | export=0 | |
15277 | for file in fs/block_dev.c; do | |
15278 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
15279 | "$LINUX/$file" 2>/dev/null | |
15280 | rc=$? | |
15281 | if test $rc -eq 0; then | |
15282 | export=1 | |
15283 | break; | |
15284 | fi | |
15285 | done | |
15286 | if test $export -eq 0; then : | |
15287 | rc=1 | |
15288 | else : | |
15289 | rc=0 | |
15290 | fi | |
15291 | else : | |
15292 | rc=0 | |
15293 | fi | |
15294 | ||
15295 | fi | |
15296 | if test $rc -ne 0; then : | |
15297 | ||
15298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15299 | $as_echo "no" >&6; } | |
15300 | ||
15301 | else : | |
15302 | ||
15303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15304 | $as_echo "yes" >&6; } | |
15305 | ||
15306 | $as_echo "#define HAVE_LOOKUP_BDEV_2ARGS 1" >>confdefs.h | |
15307 | ||
15308 | ||
15309 | fi | |
15310 | fi | |
15311 | ||
904dbe44 CIK |
15312 | |
15313 | else : | |
15314 | ||
15315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15316 | $as_echo "yes" >&6; } | |
15317 | ||
15318 | $as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h | |
15319 | ||
15320 | ||
15321 | fi | |
15322 | fi | |
15323 | ||
15324 | ||
15325 | ||
15326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5 | |
15327 | $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; } | |
15328 | ||
15329 | ||
15330 | cat confdefs.h - <<_ACEOF >conftest.c | |
15331 | ||
15332 | ||
15333 | #include <linux/buffer_head.h> | |
15334 | ||
15335 | int | |
15336 | main (void) | |
15337 | { | |
15338 | ||
15339 | struct block_device *bdev = NULL; | |
15340 | invalidate_bdev(bdev); | |
15341 | ||
15342 | ; | |
15343 | return 0; | |
15344 | } | |
15345 | ||
15346 | _ACEOF | |
15347 | ||
15348 | ||
15349 | ||
15350 | cat - <<_ACEOF >conftest.h | |
15351 | ||
15352 | _ACEOF | |
15353 | ||
15354 | ||
15355 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15356 | echo "obj-m := conftest.o" >build/Makefile | |
15357 | modpost_flag='' | |
15358 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15359 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15360 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15361 | (eval $ac_try) 2>&5 | |
15362 | ac_status=$? | |
15363 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15364 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15365 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15366 | (eval $ac_try) 2>&5 | |
15367 | ac_status=$? | |
15368 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15369 | test $ac_status = 0; }; }; then : | |
15370 | ||
15371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15372 | $as_echo "yes" >&6; } | |
15373 | ||
15374 | $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h | |
15375 | ||
15376 | ||
15377 | else | |
15378 | $as_echo "$as_me: failed program was:" >&5 | |
15379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15380 | ||
15381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15382 | $as_echo "no" >&6; } | |
15383 | ||
15384 | ||
15385 | ||
15386 | fi | |
15387 | rm -Rf build | |
15388 | ||
15389 | ||
15390 | ||
15391 | ||
15392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5 | |
15393 | $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; } | |
15394 | tmp_flags="$EXTRA_KCFLAGS" | |
15395 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
15396 | ||
15397 | ||
15398 | cat confdefs.h - <<_ACEOF >conftest.c | |
15399 | ||
15400 | ||
15401 | #include <linux/blkdev.h> | |
15402 | ||
15403 | int | |
15404 | main (void) | |
15405 | { | |
15406 | ||
15407 | struct block_device *bdev = NULL; | |
15408 | bdev_logical_block_size(bdev); | |
15409 | ||
15410 | ; | |
15411 | return 0; | |
15412 | } | |
15413 | ||
15414 | _ACEOF | |
15415 | ||
15416 | ||
15417 | ||
15418 | cat - <<_ACEOF >conftest.h | |
15419 | ||
15420 | _ACEOF | |
15421 | ||
15422 | ||
15423 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15424 | echo "obj-m := conftest.o" >build/Makefile | |
15425 | modpost_flag='' | |
15426 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15427 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15428 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15429 | (eval $ac_try) 2>&5 | |
15430 | ac_status=$? | |
15431 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15432 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15433 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15434 | (eval $ac_try) 2>&5 | |
15435 | ac_status=$? | |
15436 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15437 | test $ac_status = 0; }; }; then : | |
15438 | ||
15439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15440 | $as_echo "yes" >&6; } | |
15441 | ||
15442 | $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h | |
15443 | ||
15444 | ||
15445 | else | |
15446 | $as_echo "$as_me: failed program was:" >&5 | |
15447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15448 | ||
15449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15450 | $as_echo "no" >&6; } | |
15451 | ||
15452 | ||
15453 | ||
15454 | fi | |
15455 | rm -Rf build | |
15456 | ||
15457 | ||
15458 | EXTRA_KCFLAGS="$tmp_flags" | |
15459 | ||
15460 | ||
15461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5 | |
15462 | $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; } | |
15463 | tmp_flags="$EXTRA_KCFLAGS" | |
15464 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
15465 | ||
15466 | ||
15467 | cat confdefs.h - <<_ACEOF >conftest.c | |
15468 | ||
15469 | ||
15470 | #include <linux/blkdev.h> | |
15471 | ||
15472 | int | |
15473 | main (void) | |
15474 | { | |
15475 | ||
15476 | struct block_device *bdev = NULL; | |
15477 | bdev_physical_block_size(bdev); | |
15478 | ||
15479 | ; | |
15480 | return 0; | |
15481 | } | |
15482 | ||
15483 | _ACEOF | |
15484 | ||
15485 | ||
15486 | ||
15487 | cat - <<_ACEOF >conftest.h | |
15488 | ||
15489 | _ACEOF | |
15490 | ||
15491 | ||
15492 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15493 | echo "obj-m := conftest.o" >build/Makefile | |
15494 | modpost_flag='' | |
15495 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15496 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15497 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15498 | (eval $ac_try) 2>&5 | |
15499 | ac_status=$? | |
15500 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15501 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15502 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15503 | (eval $ac_try) 2>&5 | |
15504 | ac_status=$? | |
15505 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15506 | test $ac_status = 0; }; }; then : | |
15507 | ||
15508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15509 | $as_echo "yes" >&6; } | |
15510 | ||
15511 | $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h | |
15512 | ||
15513 | ||
15514 | else | |
15515 | $as_echo "$as_me: failed program was:" >&5 | |
15516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15517 | ||
15518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15519 | $as_echo "no" >&6; } | |
15520 | ||
15521 | ||
15522 | ||
15523 | fi | |
15524 | rm -Rf build | |
15525 | ||
15526 | ||
15527 | EXTRA_KCFLAGS="$tmp_flags" | |
15528 | ||
15529 | ||
15530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5 | |
15531 | $as_echo_n "checking whether bio has bi_iter... " >&6; } | |
15532 | ||
15533 | ||
15534 | cat confdefs.h - <<_ACEOF >conftest.c | |
15535 | ||
15536 | ||
15537 | #include <linux/bio.h> | |
15538 | ||
15539 | int | |
15540 | main (void) | |
15541 | { | |
15542 | ||
15543 | struct bio bio; | |
15544 | bio.bi_iter.bi_sector = 0; | |
15545 | ||
15546 | ; | |
15547 | return 0; | |
15548 | } | |
15549 | ||
15550 | _ACEOF | |
15551 | ||
15552 | ||
15553 | ||
15554 | cat - <<_ACEOF >conftest.h | |
15555 | ||
15556 | _ACEOF | |
15557 | ||
15558 | ||
15559 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15560 | echo "obj-m := conftest.o" >build/Makefile | |
15561 | modpost_flag='' | |
15562 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15563 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15564 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15565 | (eval $ac_try) 2>&5 | |
15566 | ac_status=$? | |
15567 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15568 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15569 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15570 | (eval $ac_try) 2>&5 | |
15571 | ac_status=$? | |
15572 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15573 | test $ac_status = 0; }; }; then : | |
15574 | ||
15575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15576 | $as_echo "yes" >&6; } | |
15577 | ||
15578 | $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h | |
15579 | ||
15580 | ||
15581 | else | |
15582 | $as_echo "$as_me: failed program was:" >&5 | |
15583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15584 | ||
15585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15586 | $as_echo "no" >&6; } | |
15587 | ||
15588 | ||
15589 | ||
15590 | fi | |
15591 | rm -Rf build | |
15592 | ||
15593 | ||
15594 | ||
15595 | ||
15596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5 | |
15597 | $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; } | |
15598 | ||
15599 | ||
15600 | cat confdefs.h - <<_ACEOF >conftest.c | |
15601 | ||
15602 | ||
15603 | #include <linux/bio.h> | |
15604 | ||
15605 | int | |
15606 | main (void) | |
15607 | { | |
15608 | ||
15609 | int flags __attribute__ ((unused)); | |
15610 | flags = ((1 << BIO_RW_FAILFAST_DEV) | | |
15611 | (1 << BIO_RW_FAILFAST_TRANSPORT) | | |
15612 | (1 << BIO_RW_FAILFAST_DRIVER)); | |
15613 | ||
15614 | ; | |
15615 | return 0; | |
15616 | } | |
15617 | ||
15618 | _ACEOF | |
15619 | ||
15620 | ||
15621 | ||
15622 | cat - <<_ACEOF >conftest.h | |
15623 | ||
15624 | _ACEOF | |
15625 | ||
15626 | ||
15627 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15628 | echo "obj-m := conftest.o" >build/Makefile | |
15629 | modpost_flag='' | |
15630 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15631 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15632 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15633 | (eval $ac_try) 2>&5 | |
15634 | ac_status=$? | |
15635 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15636 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15637 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15638 | (eval $ac_try) 2>&5 | |
15639 | ac_status=$? | |
15640 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15641 | test $ac_status = 0; }; }; then : | |
15642 | ||
15643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15644 | $as_echo "yes" >&6; } | |
15645 | ||
15646 | $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h | |
15647 | ||
15648 | ||
15649 | else | |
15650 | $as_echo "$as_me: failed program was:" >&5 | |
15651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15652 | ||
15653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15654 | $as_echo "no" >&6; } | |
15655 | ||
15656 | ||
15657 | ||
15658 | fi | |
15659 | rm -Rf build | |
15660 | ||
15661 | ||
15662 | ||
15663 | ||
15664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5 | |
15665 | $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; } | |
15666 | ||
15667 | ||
15668 | cat confdefs.h - <<_ACEOF >conftest.c | |
15669 | ||
15670 | ||
15671 | #include <linux/bio.h> | |
15672 | ||
15673 | int | |
15674 | main (void) | |
15675 | { | |
15676 | ||
15677 | int flags __attribute__ ((unused)); | |
15678 | flags = REQ_FAILFAST_MASK; | |
15679 | ||
15680 | ; | |
15681 | return 0; | |
15682 | } | |
15683 | ||
15684 | _ACEOF | |
15685 | ||
15686 | ||
15687 | ||
15688 | cat - <<_ACEOF >conftest.h | |
15689 | ||
15690 | _ACEOF | |
15691 | ||
15692 | ||
15693 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15694 | echo "obj-m := conftest.o" >build/Makefile | |
15695 | modpost_flag='' | |
15696 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15697 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15698 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15699 | (eval $ac_try) 2>&5 | |
15700 | ac_status=$? | |
15701 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15702 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15703 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15704 | (eval $ac_try) 2>&5 | |
15705 | ac_status=$? | |
15706 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15707 | test $ac_status = 0; }; }; then : | |
15708 | ||
15709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15710 | $as_echo "yes" >&6; } | |
15711 | ||
15712 | $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h | |
15713 | ||
15714 | ||
15715 | else | |
15716 | $as_echo "$as_me: failed program was:" >&5 | |
15717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15718 | ||
15719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15720 | $as_echo "no" >&6; } | |
15721 | ||
15722 | ||
15723 | ||
15724 | fi | |
15725 | rm -Rf build | |
15726 | ||
15727 | ||
15728 | ||
15729 | ||
15730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5 | |
15731 | $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; } | |
15732 | ||
15733 | ||
15734 | cat confdefs.h - <<_ACEOF >conftest.c | |
15735 | ||
15736 | ||
15737 | #include <linux/bio.h> | |
15738 | ||
15739 | void wanted_end_io(struct bio *bio) { return; } | |
15740 | ||
15741 | bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io; | |
15742 | ||
15743 | int | |
15744 | main (void) | |
15745 | { | |
15746 | ||
15747 | ||
15748 | ; | |
15749 | return 0; | |
15750 | } | |
15751 | ||
15752 | _ACEOF | |
15753 | ||
15754 | ||
15755 | ||
15756 | cat - <<_ACEOF >conftest.h | |
15757 | ||
15758 | _ACEOF | |
15759 | ||
15760 | ||
15761 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15762 | echo "obj-m := conftest.o" >build/Makefile | |
15763 | modpost_flag='' | |
15764 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15765 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15766 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15767 | (eval $ac_try) 2>&5 | |
15768 | ac_status=$? | |
15769 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15770 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15771 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15772 | (eval $ac_try) 2>&5 | |
15773 | ac_status=$? | |
15774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15775 | test $ac_status = 0; }; }; then : | |
15776 | ||
15777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15778 | $as_echo "yes" >&6; } | |
15779 | ||
15780 | $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h | |
15781 | ||
15782 | ||
15783 | else | |
15784 | $as_echo "$as_me: failed program was:" >&5 | |
15785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15786 | ||
15787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15788 | $as_echo "no" >&6; } | |
15789 | ||
15790 | ||
15791 | ||
15792 | fi | |
15793 | rm -Rf build | |
15794 | ||
15795 | ||
15796 | ||
15797 | ||
15798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5 | |
15799 | $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; } | |
15800 | ||
15801 | ||
15802 | cat confdefs.h - <<_ACEOF >conftest.c | |
15803 | ||
15804 | ||
15805 | #include <linux/bio.h> | |
15806 | ||
15807 | int | |
15808 | main (void) | |
15809 | { | |
15810 | ||
15811 | int flags __attribute__ ((unused)); | |
15812 | flags = BIO_RW_BARRIER; | |
15813 | ||
15814 | ; | |
15815 | return 0; | |
15816 | } | |
15817 | ||
15818 | _ACEOF | |
15819 | ||
15820 | ||
15821 | ||
15822 | cat - <<_ACEOF >conftest.h | |
15823 | ||
15824 | _ACEOF | |
15825 | ||
15826 | ||
15827 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15828 | echo "obj-m := conftest.o" >build/Makefile | |
15829 | modpost_flag='' | |
15830 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15831 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15832 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15833 | (eval $ac_try) 2>&5 | |
15834 | ac_status=$? | |
15835 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15836 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15837 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15838 | (eval $ac_try) 2>&5 | |
15839 | ac_status=$? | |
15840 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15841 | test $ac_status = 0; }; }; then : | |
15842 | ||
15843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15844 | $as_echo "yes" >&6; } | |
15845 | ||
15846 | $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h | |
15847 | ||
15848 | ||
15849 | else | |
15850 | $as_echo "$as_me: failed program was:" >&5 | |
15851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15852 | ||
15853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15854 | $as_echo "no" >&6; } | |
15855 | ||
15856 | ||
15857 | ||
15858 | fi | |
15859 | rm -Rf build | |
15860 | ||
15861 | ||
15862 | ||
15863 | ||
15864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5 | |
15865 | $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; } | |
15866 | ||
15867 | ||
15868 | cat confdefs.h - <<_ACEOF >conftest.c | |
15869 | ||
15870 | ||
15871 | #include <linux/bio.h> | |
15872 | ||
15873 | int | |
15874 | main (void) | |
15875 | { | |
15876 | ||
15877 | int flags __attribute__ ((unused)); | |
15878 | flags = BIO_RW_DISCARD; | |
15879 | ||
15880 | ; | |
15881 | return 0; | |
15882 | } | |
15883 | ||
15884 | _ACEOF | |
15885 | ||
15886 | ||
15887 | ||
15888 | cat - <<_ACEOF >conftest.h | |
15889 | ||
15890 | _ACEOF | |
15891 | ||
15892 | ||
15893 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15894 | echo "obj-m := conftest.o" >build/Makefile | |
15895 | modpost_flag='' | |
15896 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15897 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15898 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15899 | (eval $ac_try) 2>&5 | |
15900 | ac_status=$? | |
15901 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15902 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15903 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15904 | (eval $ac_try) 2>&5 | |
15905 | ac_status=$? | |
15906 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15907 | test $ac_status = 0; }; }; then : | |
15908 | ||
15909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15910 | $as_echo "yes" >&6; } | |
15911 | ||
15912 | $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h | |
15913 | ||
15914 | ||
15915 | else | |
15916 | $as_echo "$as_me: failed program was:" >&5 | |
15917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15918 | ||
15919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15920 | $as_echo "no" >&6; } | |
15921 | ||
15922 | ||
15923 | ||
15924 | fi | |
15925 | rm -Rf build | |
15926 | ||
15927 | ||
15928 | ||
15929 | ||
15930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5 | |
15931 | $as_echo_n "checking whether blk_queue_flush() is available... " >&6; } | |
15932 | tmp_flags="$EXTRA_KCFLAGS" | |
15933 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
15934 | ||
15935 | ||
15936 | cat confdefs.h - <<_ACEOF >conftest.c | |
15937 | ||
15938 | ||
15939 | #include <linux/blkdev.h> | |
15940 | ||
15941 | int | |
15942 | main (void) | |
15943 | { | |
15944 | ||
15945 | struct request_queue *q = NULL; | |
15946 | (void) blk_queue_flush(q, REQ_FLUSH); | |
15947 | ||
15948 | ; | |
15949 | return 0; | |
15950 | } | |
15951 | ||
15952 | _ACEOF | |
15953 | ||
15954 | ||
15955 | ||
15956 | cat - <<_ACEOF >conftest.h | |
15957 | ||
15958 | _ACEOF | |
15959 | ||
15960 | ||
15961 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15962 | echo "obj-m := conftest.o" >build/Makefile | |
15963 | modpost_flag='' | |
15964 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15965 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15966 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15967 | (eval $ac_try) 2>&5 | |
15968 | ac_status=$? | |
15969 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15970 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15971 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15972 | (eval $ac_try) 2>&5 | |
15973 | ac_status=$? | |
15974 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15975 | test $ac_status = 0; }; }; then : | |
15976 | ||
15977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15978 | $as_echo "yes" >&6; } | |
15979 | ||
15980 | $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h | |
15981 | ||
15982 | ||
15983 | else | |
15984 | $as_echo "$as_me: failed program was:" >&5 | |
15985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15986 | ||
15987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15988 | $as_echo "no" >&6; } | |
15989 | ||
15990 | ||
15991 | ||
15992 | fi | |
15993 | rm -Rf build | |
15994 | ||
15995 | ||
15996 | ||
15997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5 | |
15998 | $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; } | |
15999 | ||
16000 | ||
16001 | cat confdefs.h - <<_ACEOF >conftest.c | |
16002 | ||
16003 | ||
16004 | #include <linux/module.h> | |
16005 | #include <linux/blkdev.h> | |
16006 | ||
16007 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
16008 | ||
16009 | int | |
16010 | main (void) | |
16011 | { | |
16012 | ||
16013 | struct request_queue *q = NULL; | |
16014 | (void) blk_queue_flush(q, REQ_FLUSH); | |
16015 | ||
16016 | ; | |
16017 | return 0; | |
16018 | } | |
16019 | ||
16020 | _ACEOF | |
16021 | ||
16022 | ||
16023 | ||
16024 | cat - <<_ACEOF >conftest.h | |
16025 | ||
16026 | _ACEOF | |
16027 | ||
16028 | ||
16029 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16030 | echo "obj-m := conftest.o" >build/Makefile | |
16031 | modpost_flag='' | |
16032 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16033 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16034 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16035 | (eval $ac_try) 2>&5 | |
16036 | ac_status=$? | |
16037 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16038 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16039 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16040 | (eval $ac_try) 2>&5 | |
16041 | ac_status=$? | |
16042 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16043 | test $ac_status = 0; }; }; then : | |
16044 | ||
16045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16046 | $as_echo "no" >&6; } | |
16047 | ||
16048 | else | |
16049 | $as_echo "$as_me: failed program was:" >&5 | |
16050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16051 | ||
16052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16053 | $as_echo "yes" >&6; } | |
16054 | ||
16055 | $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h | |
16056 | ||
16057 | ||
16058 | ||
16059 | ||
16060 | fi | |
16061 | rm -Rf build | |
16062 | ||
16063 | ||
16064 | EXTRA_KCFLAGS="$tmp_flags" | |
16065 | ||
16066 | ||
16067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5 | |
16068 | $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; } | |
16069 | tmp_flags="$EXTRA_KCFLAGS" | |
16070 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16071 | ||
16072 | ||
16073 | cat confdefs.h - <<_ACEOF >conftest.c | |
16074 | ||
16075 | ||
16076 | #include <linux/blkdev.h> | |
16077 | ||
16078 | int | |
16079 | main (void) | |
16080 | { | |
16081 | ||
16082 | struct request_queue *q = NULL; | |
16083 | (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS); | |
16084 | ||
16085 | ; | |
16086 | return 0; | |
16087 | } | |
16088 | ||
16089 | _ACEOF | |
16090 | ||
16091 | ||
16092 | ||
16093 | cat - <<_ACEOF >conftest.h | |
16094 | ||
16095 | _ACEOF | |
16096 | ||
16097 | ||
16098 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16099 | echo "obj-m := conftest.o" >build/Makefile | |
16100 | modpost_flag='' | |
16101 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16102 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16103 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16104 | (eval $ac_try) 2>&5 | |
16105 | ac_status=$? | |
16106 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16107 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16108 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16109 | (eval $ac_try) 2>&5 | |
16110 | ac_status=$? | |
16111 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16112 | test $ac_status = 0; }; }; then : | |
16113 | ||
16114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16115 | $as_echo "yes" >&6; } | |
16116 | ||
16117 | $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h | |
16118 | ||
16119 | ||
16120 | else | |
16121 | $as_echo "$as_me: failed program was:" >&5 | |
16122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16123 | ||
16124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16125 | $as_echo "no" >&6; } | |
16126 | ||
16127 | ||
16128 | ||
16129 | fi | |
16130 | rm -Rf build | |
16131 | ||
16132 | ||
16133 | EXTRA_KCFLAGS="$tmp_flags" | |
16134 | ||
16135 | ||
16136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5 | |
16137 | $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; } | |
16138 | tmp_flags="$EXTRA_KCFLAGS" | |
16139 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16140 | ||
16141 | ||
16142 | cat confdefs.h - <<_ACEOF >conftest.c | |
16143 | ||
16144 | ||
16145 | #include <linux/blkdev.h> | |
16146 | ||
16147 | int | |
16148 | main (void) | |
16149 | { | |
16150 | ||
16151 | struct request_queue *q = NULL; | |
16152 | (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS); | |
16153 | ||
16154 | ; | |
16155 | return 0; | |
16156 | } | |
16157 | ||
16158 | _ACEOF | |
16159 | ||
16160 | ||
16161 | ||
16162 | cat - <<_ACEOF >conftest.h | |
16163 | ||
16164 | _ACEOF | |
16165 | ||
16166 | ||
16167 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16168 | echo "obj-m := conftest.o" >build/Makefile | |
16169 | modpost_flag='' | |
16170 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16171 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16172 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16173 | (eval $ac_try) 2>&5 | |
16174 | ac_status=$? | |
16175 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16176 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16177 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16178 | (eval $ac_try) 2>&5 | |
16179 | ac_status=$? | |
16180 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16181 | test $ac_status = 0; }; }; then : | |
16182 | ||
16183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16184 | $as_echo "yes" >&6; } | |
16185 | ||
16186 | $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h | |
16187 | ||
16188 | ||
16189 | else | |
16190 | $as_echo "$as_me: failed program was:" >&5 | |
16191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16192 | ||
16193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16194 | $as_echo "no" >&6; } | |
16195 | ||
16196 | ||
16197 | ||
16198 | fi | |
16199 | rm -Rf build | |
16200 | ||
16201 | ||
16202 | EXTRA_KCFLAGS="$tmp_flags" | |
16203 | ||
16204 | ||
16205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5 | |
16206 | $as_echo_n "checking whether get_disk_ro() is available... " >&6; } | |
16207 | tmp_flags="$EXTRA_KCFLAGS" | |
16208 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16209 | ||
16210 | ||
16211 | cat confdefs.h - <<_ACEOF >conftest.c | |
16212 | ||
16213 | ||
16214 | #include <linux/blkdev.h> | |
16215 | ||
16216 | int | |
16217 | main (void) | |
16218 | { | |
16219 | ||
16220 | struct gendisk *disk = NULL; | |
16221 | (void) get_disk_ro(disk); | |
16222 | ||
16223 | ; | |
16224 | return 0; | |
16225 | } | |
16226 | ||
16227 | _ACEOF | |
16228 | ||
16229 | ||
16230 | ||
16231 | cat - <<_ACEOF >conftest.h | |
16232 | ||
16233 | _ACEOF | |
16234 | ||
16235 | ||
16236 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16237 | echo "obj-m := conftest.o" >build/Makefile | |
16238 | modpost_flag='' | |
16239 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16240 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16241 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16242 | (eval $ac_try) 2>&5 | |
16243 | ac_status=$? | |
16244 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16245 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16246 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16247 | (eval $ac_try) 2>&5 | |
16248 | ac_status=$? | |
16249 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16250 | test $ac_status = 0; }; }; then : | |
16251 | ||
16252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16253 | $as_echo "yes" >&6; } | |
16254 | ||
16255 | $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h | |
16256 | ||
16257 | ||
16258 | else | |
16259 | $as_echo "$as_me: failed program was:" >&5 | |
16260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16261 | ||
16262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16263 | $as_echo "no" >&6; } | |
16264 | ||
16265 | ||
16266 | ||
16267 | fi | |
16268 | rm -Rf build | |
16269 | ||
16270 | ||
16271 | EXTRA_KCFLAGS="$tmp_flags" | |
16272 | ||
16273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5 | |
16274 | $as_echo_n "checking whether get_gendisk() is available... " >&6; } | |
16275 | ||
16276 | ||
16277 | ||
16278 | cat confdefs.h - <<_ACEOF >conftest.c | |
16279 | ||
16280 | ||
16281 | #include <linux/genhd.h> | |
16282 | ||
16283 | int | |
16284 | main (void) | |
16285 | { | |
16286 | ||
16287 | get_gendisk(0, NULL); | |
16288 | ||
16289 | ; | |
16290 | return 0; | |
16291 | } | |
16292 | ||
16293 | _ACEOF | |
16294 | ||
16295 | ||
16296 | ||
16297 | cat - <<_ACEOF >conftest.h | |
16298 | ||
16299 | _ACEOF | |
16300 | ||
16301 | ||
16302 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16303 | echo "obj-m := conftest.o" >build/Makefile | |
16304 | modpost_flag='' | |
16305 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16306 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16307 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16308 | (eval $ac_try) 2>&5 | |
16309 | ac_status=$? | |
16310 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16311 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16312 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16313 | (eval $ac_try) 2>&5 | |
16314 | ac_status=$? | |
16315 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16316 | test $ac_status = 0; }; }; then : | |
16317 | rc=0 | |
16318 | else | |
16319 | $as_echo "$as_me: failed program was:" >&5 | |
16320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16321 | rc=1 | |
16322 | ||
16323 | ||
16324 | fi | |
16325 | rm -Rf build | |
16326 | ||
16327 | ||
16328 | if test $rc -ne 0; then : | |
16329 | ||
16330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16331 | $as_echo "no" >&6; } | |
16332 | ||
16333 | else | |
16334 | if test "x$enable_linux_builtin" != xyes; then | |
16335 | ||
16336 | grep -q -E '[[:space:]]get_gendisk[[:space:]]' \ | |
16337 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
16338 | rc=$? | |
16339 | if test $rc -ne 0; then | |
16340 | export=0 | |
16341 | for file in block/genhd.c; do | |
16342 | grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \ | |
16343 | "$LINUX/$file" 2>/dev/null | |
16344 | rc=$? | |
16345 | if test $rc -eq 0; then | |
16346 | export=1 | |
16347 | break; | |
16348 | fi | |
16349 | done | |
16350 | if test $export -eq 0; then : | |
16351 | rc=1 | |
16352 | else : | |
16353 | rc=0 | |
16354 | fi | |
16355 | else : | |
16356 | rc=0 | |
16357 | fi | |
16358 | ||
16359 | fi | |
16360 | if test $rc -ne 0; then : | |
16361 | ||
16362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16363 | $as_echo "no" >&6; } | |
16364 | ||
16365 | else : | |
16366 | ||
16367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16368 | $as_echo "yes" >&6; } | |
16369 | ||
16370 | $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h | |
16371 | ||
16372 | ||
16373 | fi | |
16374 | fi | |
16375 | ||
16376 | ||
16377 | ||
16378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5 | |
16379 | $as_echo_n "checking whether ql->discard_granularity is available... " >&6; } | |
16380 | ||
16381 | ||
16382 | cat confdefs.h - <<_ACEOF >conftest.c | |
16383 | ||
16384 | ||
16385 | #include <linux/blkdev.h> | |
16386 | ||
16387 | int | |
16388 | main (void) | |
16389 | { | |
16390 | ||
16391 | struct queue_limits ql __attribute__ ((unused)); | |
16392 | ||
16393 | ql.discard_granularity = 0; | |
16394 | ||
16395 | ; | |
16396 | return 0; | |
16397 | } | |
16398 | ||
16399 | _ACEOF | |
16400 | ||
16401 | ||
16402 | ||
16403 | cat - <<_ACEOF >conftest.h | |
16404 | ||
16405 | _ACEOF | |
16406 | ||
16407 | ||
16408 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16409 | echo "obj-m := conftest.o" >build/Makefile | |
16410 | modpost_flag='' | |
16411 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16412 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16413 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16414 | (eval $ac_try) 2>&5 | |
16415 | ac_status=$? | |
16416 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16417 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16418 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16419 | (eval $ac_try) 2>&5 | |
16420 | ac_status=$? | |
16421 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16422 | test $ac_status = 0; }; }; then : | |
16423 | ||
16424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16425 | $as_echo "yes" >&6; } | |
16426 | ||
16427 | $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h | |
16428 | ||
16429 | ||
16430 | else | |
16431 | $as_echo "$as_me: failed program was:" >&5 | |
16432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16433 | ||
16434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16435 | $as_echo "no" >&6; } | |
16436 | ||
16437 | ||
16438 | ||
16439 | fi | |
16440 | rm -Rf build | |
16441 | ||
16442 | ||
16443 | ||
2078c8a7 DJL |
16444 | |
16445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5 | |
16446 | $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; } | |
904dbe44 CIK |
16447 | |
16448 | ||
16449 | cat confdefs.h - <<_ACEOF >conftest.c | |
16450 | ||
16451 | ||
16452 | #include <linux/fs.h> | |
16453 | #include <linux/xattr.h> | |
16454 | ||
16455 | const struct xattr_handler xattr_test_handler = { | |
16456 | .prefix = "test", | |
16457 | .get = NULL, | |
16458 | .set = NULL, | |
16459 | }; | |
16460 | ||
16461 | const struct xattr_handler *xattr_handlers[] = { | |
16462 | &xattr_test_handler, | |
16463 | }; | |
16464 | ||
16465 | const struct super_block sb __attribute__ ((unused)) = { | |
16466 | .s_xattr = xattr_handlers, | |
16467 | }; | |
16468 | ||
16469 | int | |
16470 | main (void) | |
16471 | { | |
16472 | ||
16473 | ||
16474 | ; | |
16475 | return 0; | |
16476 | } | |
16477 | ||
16478 | _ACEOF | |
16479 | ||
16480 | ||
16481 | ||
16482 | cat - <<_ACEOF >conftest.h | |
16483 | ||
16484 | _ACEOF | |
16485 | ||
16486 | ||
16487 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16488 | echo "obj-m := conftest.o" >build/Makefile | |
16489 | modpost_flag='' | |
16490 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16491 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16492 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16493 | (eval $ac_try) 2>&5 | |
16494 | ac_status=$? | |
16495 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16496 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16497 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16498 | (eval $ac_try) 2>&5 | |
16499 | ac_status=$? | |
16500 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16501 | test $ac_status = 0; }; }; then : | |
16502 | ||
16503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16504 | $as_echo "yes" >&6; } | |
16505 | ||
16506 | $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h | |
16507 | ||
16508 | ||
16509 | else | |
16510 | $as_echo "$as_me: failed program was:" >&5 | |
16511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16512 | ||
16513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16514 | $as_echo "no" >&6; } | |
16515 | ||
16516 | ||
16517 | ||
16518 | fi | |
16519 | rm -Rf build | |
16520 | ||
16521 | ||
16522 | ||
16523 | ||
2078c8a7 DJL |
16524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5 |
16525 | $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; } | |
904dbe44 CIK |
16526 | |
16527 | ||
16528 | cat confdefs.h - <<_ACEOF >conftest.c | |
16529 | ||
16530 | ||
16531 | #include <linux/xattr.h> | |
16532 | ||
2078c8a7 DJL |
16533 | int get(const struct xattr_handler *handler, |
16534 | struct dentry *dentry, const char *name, | |
16535 | void *buffer, size_t size) { return 0; } | |
904dbe44 CIK |
16536 | static const struct xattr_handler |
16537 | xops __attribute__ ((unused)) = { | |
16538 | .get = get, | |
16539 | }; | |
16540 | ||
16541 | int | |
16542 | main (void) | |
16543 | { | |
16544 | ||
16545 | ||
16546 | ; | |
16547 | return 0; | |
16548 | } | |
16549 | ||
16550 | _ACEOF | |
16551 | ||
16552 | ||
16553 | ||
16554 | cat - <<_ACEOF >conftest.h | |
16555 | ||
16556 | _ACEOF | |
16557 | ||
16558 | ||
16559 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16560 | echo "obj-m := conftest.o" >build/Makefile | |
16561 | modpost_flag='' | |
16562 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16563 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16564 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16565 | (eval $ac_try) 2>&5 | |
16566 | ac_status=$? | |
16567 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16568 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16569 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16570 | (eval $ac_try) 2>&5 | |
16571 | ac_status=$? | |
16572 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16573 | test $ac_status = 0; }; }; then : | |
16574 | ||
16575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16576 | $as_echo "yes" >&6; } | |
16577 | ||
2078c8a7 | 16578 | $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h |
904dbe44 CIK |
16579 | |
16580 | ||
16581 | else | |
16582 | $as_echo "$as_me: failed program was:" >&5 | |
16583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16584 | ||
2078c8a7 | 16585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 | 16586 | $as_echo "no" >&6; } |
2078c8a7 DJL |
16587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5 |
16588 | $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; } | |
904dbe44 CIK |
16589 | |
16590 | ||
16591 | cat confdefs.h - <<_ACEOF >conftest.c | |
16592 | ||
16593 | ||
16594 | #include <linux/xattr.h> | |
16595 | ||
2078c8a7 DJL |
16596 | int get(struct dentry *dentry, const char *name, |
16597 | void *buffer, size_t size, int handler_flags) | |
16598 | { return 0; } | |
904dbe44 CIK |
16599 | static const struct xattr_handler |
16600 | xops __attribute__ ((unused)) = { | |
16601 | .get = get, | |
16602 | }; | |
16603 | ||
16604 | int | |
16605 | main (void) | |
16606 | { | |
16607 | ||
16608 | ||
16609 | ; | |
16610 | return 0; | |
16611 | } | |
16612 | ||
16613 | _ACEOF | |
16614 | ||
16615 | ||
16616 | ||
16617 | cat - <<_ACEOF >conftest.h | |
16618 | ||
16619 | _ACEOF | |
16620 | ||
16621 | ||
16622 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16623 | echo "obj-m := conftest.o" >build/Makefile | |
16624 | modpost_flag='' | |
16625 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16626 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16627 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16628 | (eval $ac_try) 2>&5 | |
16629 | ac_status=$? | |
16630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16631 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16632 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16633 | (eval $ac_try) 2>&5 | |
16634 | ac_status=$? | |
16635 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16636 | test $ac_status = 0; }; }; then : | |
16637 | ||
16638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16639 | $as_echo "yes" >&6; } | |
16640 | ||
2078c8a7 | 16641 | $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h |
904dbe44 CIK |
16642 | |
16643 | ||
16644 | else | |
16645 | $as_echo "$as_me: failed program was:" >&5 | |
16646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16647 | ||
2078c8a7 | 16648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 | 16649 | $as_echo "no" >&6; } |
2078c8a7 DJL |
16650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5 |
16651 | $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; } | |
16652 | ||
16653 | ||
16654 | cat confdefs.h - <<_ACEOF >conftest.c | |
16655 | ||
16656 | ||
16657 | #include <linux/xattr.h> | |
16658 | ||
16659 | int get(struct inode *ip, const char *name, | |
16660 | void *buffer, size_t size) { return 0; } | |
16661 | static const struct xattr_handler | |
16662 | xops __attribute__ ((unused)) = { | |
16663 | .get = get, | |
16664 | }; | |
16665 | ||
16666 | int | |
16667 | main (void) | |
16668 | { | |
16669 | ||
16670 | ||
16671 | ; | |
16672 | return 0; | |
16673 | } | |
16674 | ||
16675 | _ACEOF | |
16676 | ||
16677 | ||
16678 | ||
16679 | cat - <<_ACEOF >conftest.h | |
16680 | ||
16681 | _ACEOF | |
16682 | ||
16683 | ||
16684 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16685 | echo "obj-m := conftest.o" >build/Makefile | |
16686 | modpost_flag='' | |
16687 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16688 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16689 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16690 | (eval $ac_try) 2>&5 | |
16691 | ac_status=$? | |
16692 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16693 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16694 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16695 | (eval $ac_try) 2>&5 | |
16696 | ac_status=$? | |
16697 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16698 | test $ac_status = 0; }; }; then : | |
16699 | ||
16700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16701 | $as_echo "yes" >&6; } | |
16702 | ||
16703 | $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h | |
16704 | ||
16705 | ||
16706 | else | |
16707 | $as_echo "$as_me: failed program was:" >&5 | |
16708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16709 | ||
16710 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
904dbe44 CIK |
16711 | |
16712 | ||
16713 | ||
16714 | fi | |
16715 | rm -Rf build | |
16716 | ||
16717 | ||
16718 | ||
16719 | ||
16720 | ||
16721 | fi | |
16722 | rm -Rf build | |
16723 | ||
16724 | ||
16725 | ||
16726 | ||
2078c8a7 DJL |
16727 | |
16728 | fi | |
16729 | rm -Rf build | |
16730 | ||
16731 | ||
16732 | ||
16733 | ||
16734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5 | |
16735 | $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; } | |
904dbe44 CIK |
16736 | |
16737 | ||
16738 | cat confdefs.h - <<_ACEOF >conftest.c | |
16739 | ||
16740 | ||
16741 | #include <linux/xattr.h> | |
16742 | ||
2078c8a7 DJL |
16743 | int set(const struct xattr_handler *handler, |
16744 | struct dentry *dentry, const char *name, | |
16745 | const void *buffer, size_t size, int flags) | |
16746 | { return 0; } | |
904dbe44 CIK |
16747 | static const struct xattr_handler |
16748 | xops __attribute__ ((unused)) = { | |
16749 | .set = set, | |
16750 | }; | |
16751 | ||
16752 | int | |
16753 | main (void) | |
16754 | { | |
16755 | ||
16756 | ||
16757 | ; | |
16758 | return 0; | |
16759 | } | |
16760 | ||
16761 | _ACEOF | |
16762 | ||
16763 | ||
16764 | ||
16765 | cat - <<_ACEOF >conftest.h | |
16766 | ||
16767 | _ACEOF | |
16768 | ||
16769 | ||
16770 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16771 | echo "obj-m := conftest.o" >build/Makefile | |
16772 | modpost_flag='' | |
16773 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16774 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16775 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16776 | (eval $ac_try) 2>&5 | |
16777 | ac_status=$? | |
16778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16779 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16780 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16781 | (eval $ac_try) 2>&5 | |
16782 | ac_status=$? | |
16783 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16784 | test $ac_status = 0; }; }; then : | |
16785 | ||
16786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16787 | $as_echo "yes" >&6; } | |
16788 | ||
2078c8a7 | 16789 | $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h |
904dbe44 CIK |
16790 | |
16791 | ||
16792 | else | |
16793 | $as_echo "$as_me: failed program was:" >&5 | |
16794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16795 | ||
2078c8a7 | 16796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 | 16797 | $as_echo "no" >&6; } |
2078c8a7 DJL |
16798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5 |
16799 | $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; } | |
904dbe44 CIK |
16800 | |
16801 | ||
16802 | cat confdefs.h - <<_ACEOF >conftest.c | |
16803 | ||
16804 | ||
16805 | #include <linux/xattr.h> | |
16806 | ||
2078c8a7 DJL |
16807 | int set(struct dentry *dentry, const char *name, |
16808 | const void *buffer, size_t size, int flags, | |
16809 | int handler_flags) { return 0; } | |
904dbe44 CIK |
16810 | static const struct xattr_handler |
16811 | xops __attribute__ ((unused)) = { | |
16812 | .set = set, | |
16813 | }; | |
16814 | ||
16815 | int | |
16816 | main (void) | |
16817 | { | |
16818 | ||
16819 | ||
16820 | ; | |
16821 | return 0; | |
16822 | } | |
16823 | ||
16824 | _ACEOF | |
16825 | ||
16826 | ||
16827 | ||
16828 | cat - <<_ACEOF >conftest.h | |
16829 | ||
16830 | _ACEOF | |
16831 | ||
16832 | ||
16833 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16834 | echo "obj-m := conftest.o" >build/Makefile | |
16835 | modpost_flag='' | |
16836 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16837 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16838 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16839 | (eval $ac_try) 2>&5 | |
16840 | ac_status=$? | |
16841 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16842 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16843 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16844 | (eval $ac_try) 2>&5 | |
16845 | ac_status=$? | |
16846 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16847 | test $ac_status = 0; }; }; then : | |
16848 | ||
16849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16850 | $as_echo "yes" >&6; } | |
16851 | ||
2078c8a7 | 16852 | $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h |
904dbe44 CIK |
16853 | |
16854 | ||
16855 | else | |
16856 | $as_echo "$as_me: failed program was:" >&5 | |
16857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16858 | ||
2078c8a7 | 16859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 | 16860 | $as_echo "no" >&6; } |
2078c8a7 DJL |
16861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5 |
16862 | $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; } | |
16863 | ||
16864 | ||
16865 | cat confdefs.h - <<_ACEOF >conftest.c | |
16866 | ||
16867 | ||
16868 | #include <linux/xattr.h> | |
16869 | ||
16870 | int set(struct inode *ip, const char *name, | |
16871 | const void *buffer, size_t size, int flags) | |
16872 | { return 0; } | |
16873 | static const struct xattr_handler | |
16874 | xops __attribute__ ((unused)) = { | |
16875 | .set = set, | |
16876 | }; | |
16877 | ||
16878 | int | |
16879 | main (void) | |
16880 | { | |
16881 | ||
16882 | ||
16883 | ; | |
16884 | return 0; | |
16885 | } | |
16886 | ||
16887 | _ACEOF | |
16888 | ||
16889 | ||
16890 | ||
16891 | cat - <<_ACEOF >conftest.h | |
16892 | ||
16893 | _ACEOF | |
16894 | ||
16895 | ||
16896 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16897 | echo "obj-m := conftest.o" >build/Makefile | |
16898 | modpost_flag='' | |
16899 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16900 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16901 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16902 | (eval $ac_try) 2>&5 | |
16903 | ac_status=$? | |
16904 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16905 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16906 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16907 | (eval $ac_try) 2>&5 | |
16908 | ac_status=$? | |
16909 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16910 | test $ac_status = 0; }; }; then : | |
16911 | ||
16912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16913 | $as_echo "yes" >&6; } | |
16914 | ||
16915 | $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h | |
16916 | ||
16917 | ||
16918 | else | |
16919 | $as_echo "$as_me: failed program was:" >&5 | |
16920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16921 | ||
16922 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
904dbe44 CIK |
16923 | |
16924 | ||
16925 | ||
16926 | fi | |
16927 | rm -Rf build | |
16928 | ||
16929 | ||
16930 | ||
16931 | ||
16932 | ||
16933 | fi | |
16934 | rm -Rf build | |
16935 | ||
16936 | ||
16937 | ||
16938 | ||
2078c8a7 DJL |
16939 | |
16940 | fi | |
16941 | rm -Rf build | |
16942 | ||
16943 | ||
16944 | ||
16945 | ||
16946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5 | |
16947 | $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; } | |
904dbe44 CIK |
16948 | |
16949 | ||
16950 | cat confdefs.h - <<_ACEOF >conftest.c | |
16951 | ||
16952 | ||
16953 | #include <linux/xattr.h> | |
16954 | ||
2078c8a7 | 16955 | bool list(struct dentry *dentry) { return 0; } |
904dbe44 CIK |
16956 | static const struct xattr_handler |
16957 | xops __attribute__ ((unused)) = { | |
16958 | .list = list, | |
16959 | }; | |
16960 | ||
16961 | int | |
16962 | main (void) | |
16963 | { | |
16964 | ||
16965 | ||
16966 | ; | |
16967 | return 0; | |
16968 | } | |
16969 | ||
16970 | _ACEOF | |
16971 | ||
16972 | ||
16973 | ||
16974 | cat - <<_ACEOF >conftest.h | |
16975 | ||
16976 | _ACEOF | |
16977 | ||
16978 | ||
16979 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16980 | echo "obj-m := conftest.o" >build/Makefile | |
16981 | modpost_flag='' | |
16982 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16983 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16984 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16985 | (eval $ac_try) 2>&5 | |
16986 | ac_status=$? | |
16987 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16988 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16989 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16990 | (eval $ac_try) 2>&5 | |
16991 | ac_status=$? | |
16992 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16993 | test $ac_status = 0; }; }; then : | |
16994 | ||
16995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16996 | $as_echo "yes" >&6; } | |
16997 | ||
2078c8a7 | 16998 | $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h |
904dbe44 CIK |
16999 | |
17000 | ||
17001 | else | |
17002 | $as_echo "$as_me: failed program was:" >&5 | |
17003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17004 | ||
2078c8a7 | 17005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 CIK |
17006 | $as_echo "no" >&6; } |
17007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5 | |
17008 | $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; } | |
17009 | ||
17010 | ||
17011 | cat confdefs.h - <<_ACEOF >conftest.c | |
17012 | ||
17013 | ||
17014 | #include <linux/xattr.h> | |
17015 | ||
2078c8a7 DJL |
17016 | size_t list(const struct xattr_handler *handler, |
17017 | struct dentry *dentry, char *list, size_t list_size, | |
17018 | const char *name, size_t name_len) { return 0; } | |
904dbe44 CIK |
17019 | static const struct xattr_handler |
17020 | xops __attribute__ ((unused)) = { | |
17021 | .list = list, | |
17022 | }; | |
17023 | ||
17024 | int | |
17025 | main (void) | |
17026 | { | |
17027 | ||
17028 | ||
17029 | ; | |
17030 | return 0; | |
17031 | } | |
17032 | ||
17033 | _ACEOF | |
17034 | ||
17035 | ||
17036 | ||
17037 | cat - <<_ACEOF >conftest.h | |
17038 | ||
17039 | _ACEOF | |
17040 | ||
17041 | ||
17042 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17043 | echo "obj-m := conftest.o" >build/Makefile | |
17044 | modpost_flag='' | |
17045 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17046 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17047 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17048 | (eval $ac_try) 2>&5 | |
17049 | ac_status=$? | |
17050 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17051 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17052 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17053 | (eval $ac_try) 2>&5 | |
17054 | ac_status=$? | |
17055 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17056 | test $ac_status = 0; }; }; then : | |
17057 | ||
17058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17059 | $as_echo "yes" >&6; } | |
17060 | ||
2078c8a7 | 17061 | $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h |
904dbe44 CIK |
17062 | |
17063 | ||
17064 | else | |
17065 | $as_echo "$as_me: failed program was:" >&5 | |
17066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17067 | ||
2078c8a7 DJL |
17068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17069 | $as_echo "no" >&6; } | |
17070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5 | |
17071 | $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; } | |
17072 | ||
17073 | ||
17074 | cat confdefs.h - <<_ACEOF >conftest.c | |
17075 | ||
17076 | ||
17077 | #include <linux/xattr.h> | |
17078 | ||
17079 | size_t list(struct dentry *dentry, | |
17080 | char *list, size_t list_size, | |
17081 | const char *name, size_t name_len, | |
17082 | int handler_flags) { return 0; } | |
17083 | static const struct xattr_handler | |
17084 | xops __attribute__ ((unused)) = { | |
17085 | .list = list, | |
17086 | }; | |
17087 | ||
17088 | int | |
17089 | main (void) | |
17090 | { | |
17091 | ||
17092 | ||
17093 | ; | |
17094 | return 0; | |
17095 | } | |
17096 | ||
17097 | _ACEOF | |
17098 | ||
17099 | ||
17100 | ||
17101 | cat - <<_ACEOF >conftest.h | |
17102 | ||
17103 | _ACEOF | |
17104 | ||
17105 | ||
17106 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17107 | echo "obj-m := conftest.o" >build/Makefile | |
17108 | modpost_flag='' | |
17109 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17110 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17111 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17112 | (eval $ac_try) 2>&5 | |
17113 | ac_status=$? | |
17114 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17115 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17116 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17117 | (eval $ac_try) 2>&5 | |
17118 | ac_status=$? | |
17119 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17120 | test $ac_status = 0; }; }; then : | |
17121 | ||
17122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17123 | $as_echo "yes" >&6; } | |
17124 | ||
17125 | $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h | |
17126 | ||
17127 | ||
17128 | else | |
17129 | $as_echo "$as_me: failed program was:" >&5 | |
17130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17131 | ||
17132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
904dbe44 | 17133 | $as_echo "no" >&6; } |
2078c8a7 DJL |
17134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5 |
17135 | $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; } | |
17136 | ||
17137 | ||
17138 | cat confdefs.h - <<_ACEOF >conftest.c | |
17139 | ||
17140 | ||
17141 | #include <linux/xattr.h> | |
17142 | ||
17143 | size_t list(struct inode *ip, char *lst, | |
17144 | size_t list_size, const char *name, | |
17145 | size_t name_len) { return 0; } | |
17146 | static const struct xattr_handler | |
17147 | xops __attribute__ ((unused)) = { | |
17148 | .list = list, | |
17149 | }; | |
17150 | ||
17151 | int | |
17152 | main (void) | |
17153 | { | |
17154 | ||
17155 | ||
17156 | ; | |
17157 | return 0; | |
17158 | } | |
17159 | ||
17160 | _ACEOF | |
17161 | ||
17162 | ||
17163 | ||
17164 | cat - <<_ACEOF >conftest.h | |
17165 | ||
17166 | _ACEOF | |
17167 | ||
17168 | ||
17169 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17170 | echo "obj-m := conftest.o" >build/Makefile | |
17171 | modpost_flag='' | |
17172 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17173 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17174 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17175 | (eval $ac_try) 2>&5 | |
17176 | ac_status=$? | |
17177 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17178 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17179 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17180 | (eval $ac_try) 2>&5 | |
17181 | ac_status=$? | |
17182 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17183 | test $ac_status = 0; }; }; then : | |
17184 | ||
17185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17186 | $as_echo "yes" >&6; } | |
17187 | ||
17188 | $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h | |
17189 | ||
17190 | ||
17191 | else | |
17192 | $as_echo "$as_me: failed program was:" >&5 | |
17193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17194 | ||
17195 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
17196 | ||
17197 | ||
17198 | ||
17199 | fi | |
17200 | rm -Rf build | |
17201 | ||
17202 | ||
17203 | ||
17204 | ||
17205 | ||
17206 | fi | |
17207 | rm -Rf build | |
17208 | ||
17209 | ||
904dbe44 CIK |
17210 | |
17211 | ||
17212 | ||
17213 | fi | |
17214 | rm -Rf build | |
17215 | ||
17216 | ||
17217 | ||
17218 | ||
17219 | ||
17220 | fi | |
17221 | rm -Rf build | |
17222 | ||
17223 | ||
17224 | ||
17225 | ||
17226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5 | |
17227 | $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; } | |
17228 | ||
17229 | ||
17230 | cat confdefs.h - <<_ACEOF >conftest.c | |
17231 | ||
17232 | ||
17233 | #include <linux/fs.h> | |
17234 | ||
17235 | int | |
17236 | main (void) | |
17237 | { | |
17238 | ||
17239 | struct inode *ip = NULL; | |
17240 | (void) inode_owner_or_capable(ip); | |
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_INODE_OWNER_OR_CAPABLE 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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5 | |
17284 | $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; } | |
17285 | ||
17286 | ||
17287 | cat confdefs.h - <<_ACEOF >conftest.c | |
17288 | ||
17289 | ||
17290 | #include <linux/fs.h> | |
17291 | #include <linux/sched.h> | |
17292 | ||
17293 | int | |
17294 | main (void) | |
17295 | { | |
17296 | ||
17297 | struct inode *ip = NULL; | |
17298 | (void) is_owner_or_cap(ip); | |
17299 | ||
17300 | ; | |
17301 | return 0; | |
17302 | } | |
17303 | ||
17304 | _ACEOF | |
17305 | ||
17306 | ||
17307 | ||
17308 | cat - <<_ACEOF >conftest.h | |
17309 | ||
17310 | _ACEOF | |
17311 | ||
17312 | ||
17313 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17314 | echo "obj-m := conftest.o" >build/Makefile | |
17315 | modpost_flag='' | |
17316 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17317 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17318 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17319 | (eval $ac_try) 2>&5 | |
17320 | ac_status=$? | |
17321 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17322 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17323 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17324 | (eval $ac_try) 2>&5 | |
17325 | ac_status=$? | |
17326 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17327 | test $ac_status = 0; }; }; then : | |
17328 | ||
17329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17330 | $as_echo "yes" >&6; } | |
17331 | ||
17332 | $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h | |
17333 | ||
17334 | ||
17335 | else | |
17336 | $as_echo "$as_me: failed program was:" >&5 | |
17337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17338 | ||
17339 | as_fn_error $? "no - Please file a bug report at | |
17340 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
17341 | ||
17342 | ||
17343 | ||
17344 | fi | |
17345 | rm -Rf build | |
17346 | ||
17347 | ||
17348 | ||
17349 | ||
17350 | ||
17351 | fi | |
17352 | rm -Rf build | |
17353 | ||
17354 | ||
17355 | ||
17356 | ||
17357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5 | |
17358 | $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; } | |
17359 | ||
17360 | ||
17361 | cat confdefs.h - <<_ACEOF >conftest.c | |
17362 | ||
17363 | ||
17364 | #include <linux/cred.h> | |
17365 | #include <linux/fs.h> | |
17366 | #include <linux/posix_acl_xattr.h> | |
17367 | ||
17368 | int | |
17369 | main (void) | |
17370 | { | |
17371 | ||
17372 | posix_acl_from_xattr(&init_user_ns, NULL, 0); | |
17373 | ||
17374 | ; | |
17375 | return 0; | |
17376 | } | |
17377 | ||
17378 | _ACEOF | |
17379 | ||
17380 | ||
17381 | ||
17382 | cat - <<_ACEOF >conftest.h | |
17383 | ||
17384 | _ACEOF | |
17385 | ||
17386 | ||
17387 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17388 | echo "obj-m := conftest.o" >build/Makefile | |
17389 | modpost_flag='' | |
17390 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17391 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17392 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17393 | (eval $ac_try) 2>&5 | |
17394 | ac_status=$? | |
17395 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17396 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17397 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17398 | (eval $ac_try) 2>&5 | |
17399 | ac_status=$? | |
17400 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17401 | test $ac_status = 0; }; }; then : | |
17402 | ||
17403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17404 | $as_echo "yes" >&6; } | |
17405 | ||
17406 | $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h | |
17407 | ||
17408 | ||
17409 | else | |
17410 | $as_echo "$as_me: failed program was:" >&5 | |
17411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17412 | ||
17413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17414 | $as_echo "no" >&6; } | |
17415 | ||
17416 | ||
17417 | ||
17418 | fi | |
17419 | rm -Rf build | |
17420 | ||
17421 | ||
17422 | ||
17423 | ||
17424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5 | |
17425 | $as_echo_n "checking whether posix_acl_release() is available... " >&6; } | |
17426 | ||
17427 | ||
17428 | cat confdefs.h - <<_ACEOF >conftest.c | |
17429 | ||
17430 | ||
17431 | #include <linux/cred.h> | |
17432 | #include <linux/fs.h> | |
17433 | #include <linux/posix_acl.h> | |
17434 | ||
17435 | int | |
17436 | main (void) | |
17437 | { | |
17438 | ||
17439 | struct posix_acl* tmp = posix_acl_alloc(1, 0); | |
17440 | posix_acl_release(tmp); | |
17441 | ||
17442 | ; | |
17443 | return 0; | |
17444 | } | |
17445 | ||
17446 | _ACEOF | |
17447 | ||
17448 | ||
17449 | ||
17450 | cat - <<_ACEOF >conftest.h | |
17451 | ||
17452 | _ACEOF | |
17453 | ||
17454 | ||
17455 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17456 | echo "obj-m := conftest.o" >build/Makefile | |
17457 | modpost_flag='' | |
17458 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17459 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17460 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17461 | (eval $ac_try) 2>&5 | |
17462 | ac_status=$? | |
17463 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17464 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17465 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17466 | (eval $ac_try) 2>&5 | |
17467 | ac_status=$? | |
17468 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17469 | test $ac_status = 0; }; }; then : | |
17470 | ||
17471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17472 | $as_echo "yes" >&6; } | |
17473 | ||
17474 | $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h | |
17475 | ||
17476 | ||
17477 | else | |
17478 | $as_echo "$as_me: failed program was:" >&5 | |
17479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17480 | ||
17481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17482 | $as_echo "no" >&6; } | |
17483 | ||
17484 | ||
17485 | ||
17486 | fi | |
17487 | rm -Rf build | |
17488 | ||
17489 | ||
17490 | ||
17491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5 | |
17492 | $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; } | |
17493 | ||
17494 | ||
17495 | cat confdefs.h - <<_ACEOF >conftest.c | |
17496 | ||
17497 | ||
17498 | #include <linux/cred.h> | |
17499 | #include <linux/fs.h> | |
17500 | #include <linux/posix_acl.h> | |
17501 | ||
17502 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
17503 | ||
17504 | int | |
17505 | main (void) | |
17506 | { | |
17507 | ||
17508 | struct posix_acl* tmp = posix_acl_alloc(1, 0); | |
17509 | posix_acl_release(tmp); | |
17510 | ||
17511 | ; | |
17512 | return 0; | |
17513 | } | |
17514 | ||
17515 | _ACEOF | |
17516 | ||
17517 | ||
17518 | ||
17519 | cat - <<_ACEOF >conftest.h | |
17520 | ||
17521 | _ACEOF | |
17522 | ||
17523 | ||
17524 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17525 | echo "obj-m := conftest.o" >build/Makefile | |
17526 | modpost_flag='' | |
17527 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17528 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17529 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17530 | (eval $ac_try) 2>&5 | |
17531 | ac_status=$? | |
17532 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17533 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17534 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17535 | (eval $ac_try) 2>&5 | |
17536 | ac_status=$? | |
17537 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17538 | test $ac_status = 0; }; }; then : | |
17539 | ||
17540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17541 | $as_echo "no" >&6; } | |
17542 | ||
17543 | else | |
17544 | $as_echo "$as_me: failed program was:" >&5 | |
17545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17546 | ||
17547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17548 | $as_echo "yes" >&6; } | |
17549 | ||
17550 | $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h | |
17551 | ||
17552 | ||
17553 | ||
17554 | ||
17555 | fi | |
17556 | rm -Rf build | |
17557 | ||
17558 | ||
17559 | ||
17560 | ||
17561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5 | |
17562 | $as_echo_n "checking whether posix_acl_chmod exists... " >&6; } | |
17563 | ||
17564 | ||
17565 | cat confdefs.h - <<_ACEOF >conftest.c | |
17566 | ||
17567 | ||
17568 | #include <linux/fs.h> | |
17569 | #include <linux/posix_acl.h> | |
17570 | ||
17571 | int | |
17572 | main (void) | |
17573 | { | |
17574 | ||
17575 | posix_acl_chmod(NULL, 0, 0) | |
17576 | ||
17577 | ; | |
17578 | return 0; | |
17579 | } | |
17580 | ||
17581 | _ACEOF | |
17582 | ||
17583 | ||
17584 | ||
17585 | cat - <<_ACEOF >conftest.h | |
17586 | ||
17587 | _ACEOF | |
17588 | ||
17589 | ||
17590 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17591 | echo "obj-m := conftest.o" >build/Makefile | |
17592 | modpost_flag='' | |
17593 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17594 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17595 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17596 | (eval $ac_try) 2>&5 | |
17597 | ac_status=$? | |
17598 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17599 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17600 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17601 | (eval $ac_try) 2>&5 | |
17602 | ac_status=$? | |
17603 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17604 | test $ac_status = 0; }; }; then : | |
17605 | ||
17606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17607 | $as_echo "yes" >&6; } | |
17608 | ||
17609 | $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h | |
17610 | ||
17611 | ||
17612 | else | |
17613 | $as_echo "$as_me: failed program was:" >&5 | |
17614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17615 | ||
17616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17617 | $as_echo "no" >&6; } | |
17618 | ||
17619 | ||
17620 | ||
17621 | fi | |
17622 | rm -Rf build | |
17623 | ||
17624 | ||
17625 | ||
17626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5 | |
17627 | $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; } | |
17628 | ||
17629 | ||
17630 | cat confdefs.h - <<_ACEOF >conftest.c | |
17631 | ||
17632 | ||
17633 | #include <linux/fs.h> | |
17634 | #include <linux/posix_acl.h> | |
17635 | ||
17636 | int | |
17637 | main (void) | |
17638 | { | |
17639 | ||
17640 | __posix_acl_chmod(NULL, 0, 0) | |
17641 | ||
17642 | ; | |
17643 | return 0; | |
17644 | } | |
17645 | ||
17646 | _ACEOF | |
17647 | ||
17648 | ||
17649 | ||
17650 | cat - <<_ACEOF >conftest.h | |
17651 | ||
17652 | _ACEOF | |
17653 | ||
17654 | ||
17655 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17656 | echo "obj-m := conftest.o" >build/Makefile | |
17657 | modpost_flag='' | |
17658 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17659 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17660 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17661 | (eval $ac_try) 2>&5 | |
17662 | ac_status=$? | |
17663 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17664 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17665 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17666 | (eval $ac_try) 2>&5 | |
17667 | ac_status=$? | |
17668 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17669 | test $ac_status = 0; }; }; then : | |
17670 | ||
17671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17672 | $as_echo "yes" >&6; } | |
17673 | ||
17674 | $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h | |
17675 | ||
17676 | ||
17677 | else | |
17678 | $as_echo "$as_me: failed program was:" >&5 | |
17679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17680 | ||
17681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17682 | $as_echo "no" >&6; } | |
17683 | ||
17684 | ||
17685 | ||
17686 | fi | |
17687 | rm -Rf build | |
17688 | ||
17689 | ||
17690 | ||
17691 | ||
17692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode has i_acl and i_default_acl" >&5 | |
17693 | $as_echo_n "checking whether inode has i_acl and i_default_acl... " >&6; } | |
17694 | ||
17695 | ||
17696 | cat confdefs.h - <<_ACEOF >conftest.c | |
17697 | ||
17698 | ||
17699 | #include <linux/fs.h> | |
17700 | ||
17701 | int | |
17702 | main (void) | |
17703 | { | |
17704 | ||
17705 | struct inode ino; | |
17706 | ino.i_acl = NULL; | |
17707 | ino.i_default_acl = NULL; | |
17708 | ||
17709 | ; | |
17710 | return 0; | |
17711 | } | |
17712 | ||
17713 | _ACEOF | |
17714 | ||
17715 | ||
17716 | ||
17717 | cat - <<_ACEOF >conftest.h | |
17718 | ||
17719 | _ACEOF | |
17720 | ||
17721 | ||
17722 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17723 | echo "obj-m := conftest.o" >build/Makefile | |
17724 | modpost_flag='' | |
17725 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17726 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17727 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17728 | (eval $ac_try) 2>&5 | |
17729 | ac_status=$? | |
17730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17731 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17732 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17733 | (eval $ac_try) 2>&5 | |
17734 | ac_status=$? | |
17735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17736 | test $ac_status = 0; }; }; then : | |
17737 | ||
17738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17739 | $as_echo "yes" >&6; } | |
17740 | ||
17741 | $as_echo "#define HAVE_POSIX_ACL_CACHING 1" >>confdefs.h | |
17742 | ||
17743 | ||
17744 | else | |
17745 | $as_echo "$as_me: failed program was:" >&5 | |
17746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17747 | ||
17748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17749 | $as_echo "no" >&6; } | |
17750 | ||
17751 | ||
17752 | ||
17753 | fi | |
17754 | rm -Rf build | |
17755 | ||
17756 | ||
17757 | ||
17758 | ||
17759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5 | |
17760 | $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; } | |
17761 | ||
17762 | ||
17763 | cat confdefs.h - <<_ACEOF >conftest.c | |
17764 | ||
17765 | ||
17766 | #include <linux/fs.h> | |
17767 | #include <linux/posix_acl.h> | |
17768 | ||
17769 | int | |
17770 | main (void) | |
17771 | { | |
17772 | ||
17773 | umode_t tmp; | |
17774 | posix_acl_equiv_mode(NULL,&tmp); | |
17775 | ||
17776 | ; | |
17777 | return 0; | |
17778 | } | |
17779 | ||
17780 | _ACEOF | |
17781 | ||
17782 | ||
17783 | ||
17784 | cat - <<_ACEOF >conftest.h | |
17785 | ||
17786 | _ACEOF | |
17787 | ||
17788 | ||
17789 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17790 | echo "obj-m := conftest.o" >build/Makefile | |
17791 | modpost_flag='' | |
17792 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17793 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17794 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17795 | (eval $ac_try) 2>&5 | |
17796 | ac_status=$? | |
17797 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17798 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17799 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17800 | (eval $ac_try) 2>&5 | |
17801 | ac_status=$? | |
17802 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17803 | test $ac_status = 0; }; }; then : | |
17804 | ||
17805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17806 | $as_echo "yes" >&6; } | |
17807 | ||
17808 | $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h | |
17809 | ||
17810 | ||
17811 | else | |
17812 | $as_echo "$as_me: failed program was:" >&5 | |
17813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17814 | ||
17815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17816 | $as_echo "no" >&6; } | |
17817 | ||
17818 | ||
17819 | ||
17820 | fi | |
17821 | rm -Rf build | |
17822 | ||
17823 | ||
17824 | ||
17825 | ||
bfbaa379 CIK |
17826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5 |
17827 | $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; } | |
17828 | ||
17829 | ||
17830 | cat confdefs.h - <<_ACEOF >conftest.c | |
17831 | ||
17832 | ||
17833 | #include <linux/fs.h> | |
17834 | #include <linux/posix_acl.h> | |
17835 | ||
17836 | int | |
17837 | main (void) | |
17838 | { | |
17839 | ||
17840 | struct user_namespace *user_ns = NULL; | |
17841 | const struct posix_acl *acl = NULL; | |
17842 | int error; | |
17843 | ||
17844 | error = posix_acl_valid(user_ns, acl); | |
17845 | ||
17846 | ; | |
17847 | return 0; | |
17848 | } | |
17849 | ||
17850 | _ACEOF | |
17851 | ||
17852 | ||
17853 | ||
17854 | cat - <<_ACEOF >conftest.h | |
17855 | ||
17856 | _ACEOF | |
17857 | ||
17858 | ||
17859 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17860 | echo "obj-m := conftest.o" >build/Makefile | |
17861 | modpost_flag='' | |
17862 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17863 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17864 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17865 | (eval $ac_try) 2>&5 | |
17866 | ac_status=$? | |
17867 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17868 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17869 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17870 | (eval $ac_try) 2>&5 | |
17871 | ac_status=$? | |
17872 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17873 | test $ac_status = 0; }; }; then : | |
17874 | ||
17875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17876 | $as_echo "yes" >&6; } | |
17877 | ||
17878 | $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h | |
17879 | ||
17880 | ||
17881 | else | |
17882 | $as_echo "$as_me: failed program was:" >&5 | |
17883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17884 | ||
17885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17886 | $as_echo "no" >&6; } | |
17887 | ||
17888 | ||
17889 | ||
17890 | fi | |
17891 | rm -Rf build | |
17892 | ||
17893 | ||
17894 | ||
17895 | ||
904dbe44 CIK |
17896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5 |
17897 | $as_echo_n "checking whether iops->permission() exists... " >&6; } | |
17898 | ||
17899 | ||
17900 | cat confdefs.h - <<_ACEOF >conftest.c | |
17901 | ||
17902 | ||
17903 | #include <linux/fs.h> | |
17904 | ||
17905 | int permission_fn(struct inode *inode, int mask) { return 0; } | |
17906 | ||
17907 | static const struct inode_operations | |
17908 | iops __attribute__ ((unused)) = { | |
17909 | .permission = permission_fn, | |
17910 | }; | |
17911 | ||
17912 | int | |
17913 | main (void) | |
17914 | { | |
17915 | ||
17916 | ||
17917 | ; | |
17918 | return 0; | |
17919 | } | |
17920 | ||
17921 | _ACEOF | |
17922 | ||
17923 | ||
17924 | ||
17925 | cat - <<_ACEOF >conftest.h | |
17926 | ||
17927 | _ACEOF | |
17928 | ||
17929 | ||
17930 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17931 | echo "obj-m := conftest.o" >build/Makefile | |
17932 | modpost_flag='' | |
17933 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17934 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17935 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17936 | (eval $ac_try) 2>&5 | |
17937 | ac_status=$? | |
17938 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17939 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17940 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17941 | (eval $ac_try) 2>&5 | |
17942 | ac_status=$? | |
17943 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17944 | test $ac_status = 0; }; }; then : | |
17945 | ||
17946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17947 | $as_echo "yes" >&6; } | |
17948 | ||
17949 | $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h | |
17950 | ||
17951 | ||
17952 | else | |
17953 | $as_echo "$as_me: failed program was:" >&5 | |
17954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17955 | ||
17956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17957 | $as_echo "no" >&6; } | |
17958 | ||
17959 | ||
17960 | ||
17961 | fi | |
17962 | rm -Rf build | |
17963 | ||
17964 | ||
17965 | ||
17966 | ||
17967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5 | |
17968 | $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; } | |
17969 | ||
17970 | ||
17971 | cat confdefs.h - <<_ACEOF >conftest.c | |
17972 | ||
17973 | ||
17974 | #include <linux/fs.h> | |
17975 | ||
17976 | int permission_fn(struct inode *inode, int mask, | |
17977 | struct nameidata *nd) { return 0; } | |
17978 | ||
17979 | static const struct inode_operations | |
17980 | iops __attribute__ ((unused)) = { | |
17981 | .permission = permission_fn, | |
17982 | }; | |
17983 | ||
17984 | int | |
17985 | main (void) | |
17986 | { | |
17987 | ||
17988 | ||
17989 | ; | |
17990 | return 0; | |
17991 | } | |
17992 | ||
17993 | _ACEOF | |
17994 | ||
17995 | ||
17996 | ||
17997 | cat - <<_ACEOF >conftest.h | |
17998 | ||
17999 | _ACEOF | |
18000 | ||
18001 | ||
18002 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18003 | echo "obj-m := conftest.o" >build/Makefile | |
18004 | modpost_flag='' | |
18005 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18006 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18007 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18008 | (eval $ac_try) 2>&5 | |
18009 | ac_status=$? | |
18010 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18011 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18012 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18013 | (eval $ac_try) 2>&5 | |
18014 | ac_status=$? | |
18015 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18016 | test $ac_status = 0; }; }; then : | |
18017 | ||
18018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18019 | $as_echo "yes" >&6; } | |
18020 | ||
18021 | $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h | |
18022 | ||
18023 | ||
18024 | $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h | |
18025 | ||
18026 | ||
18027 | else | |
18028 | $as_echo "$as_me: failed program was:" >&5 | |
18029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18030 | ||
18031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18032 | $as_echo "no" >&6; } | |
18033 | ||
18034 | ||
18035 | ||
18036 | fi | |
18037 | rm -Rf build | |
18038 | ||
18039 | ||
18040 | ||
18041 | ||
18042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5 | |
18043 | $as_echo_n "checking whether iops->check_acl() exists... " >&6; } | |
18044 | ||
18045 | ||
18046 | cat confdefs.h - <<_ACEOF >conftest.c | |
18047 | ||
18048 | ||
18049 | #include <linux/fs.h> | |
18050 | ||
18051 | int check_acl_fn(struct inode *inode, int mask) { return 0; } | |
18052 | ||
18053 | static const struct inode_operations | |
18054 | iops __attribute__ ((unused)) = { | |
18055 | .check_acl = check_acl_fn, | |
18056 | }; | |
18057 | ||
18058 | int | |
18059 | main (void) | |
18060 | { | |
18061 | ||
18062 | ||
18063 | ; | |
18064 | return 0; | |
18065 | } | |
18066 | ||
18067 | _ACEOF | |
18068 | ||
18069 | ||
18070 | ||
18071 | cat - <<_ACEOF >conftest.h | |
18072 | ||
18073 | _ACEOF | |
18074 | ||
18075 | ||
18076 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18077 | echo "obj-m := conftest.o" >build/Makefile | |
18078 | modpost_flag='' | |
18079 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18080 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18081 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18082 | (eval $ac_try) 2>&5 | |
18083 | ac_status=$? | |
18084 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18085 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18086 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18087 | (eval $ac_try) 2>&5 | |
18088 | ac_status=$? | |
18089 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18090 | test $ac_status = 0; }; }; then : | |
18091 | ||
18092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18093 | $as_echo "yes" >&6; } | |
18094 | ||
18095 | $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h | |
18096 | ||
18097 | ||
18098 | else | |
18099 | $as_echo "$as_me: failed program was:" >&5 | |
18100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18101 | ||
18102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18103 | $as_echo "no" >&6; } | |
18104 | ||
18105 | ||
18106 | ||
18107 | fi | |
18108 | rm -Rf build | |
18109 | ||
18110 | ||
18111 | ||
18112 | ||
18113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5 | |
18114 | $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; } | |
18115 | ||
18116 | ||
18117 | cat confdefs.h - <<_ACEOF >conftest.c | |
18118 | ||
18119 | ||
18120 | #include <linux/fs.h> | |
18121 | ||
18122 | int check_acl_fn(struct inode *inode, int mask, | |
18123 | unsigned int flags) { return 0; } | |
18124 | ||
18125 | static const struct inode_operations | |
18126 | iops __attribute__ ((unused)) = { | |
18127 | .check_acl = check_acl_fn, | |
18128 | }; | |
18129 | ||
18130 | int | |
18131 | main (void) | |
18132 | { | |
18133 | ||
18134 | ||
18135 | ; | |
18136 | return 0; | |
18137 | } | |
18138 | ||
18139 | _ACEOF | |
18140 | ||
18141 | ||
18142 | ||
18143 | cat - <<_ACEOF >conftest.h | |
18144 | ||
18145 | _ACEOF | |
18146 | ||
18147 | ||
18148 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18149 | echo "obj-m := conftest.o" >build/Makefile | |
18150 | modpost_flag='' | |
18151 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18152 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18153 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18154 | (eval $ac_try) 2>&5 | |
18155 | ac_status=$? | |
18156 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18157 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18158 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18159 | (eval $ac_try) 2>&5 | |
18160 | ac_status=$? | |
18161 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18162 | test $ac_status = 0; }; }; then : | |
18163 | ||
18164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18165 | $as_echo "yes" >&6; } | |
18166 | ||
18167 | $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h | |
18168 | ||
18169 | ||
18170 | $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h | |
18171 | ||
18172 | ||
18173 | else | |
18174 | $as_echo "$as_me: failed program was:" >&5 | |
18175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18176 | ||
18177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18178 | $as_echo "no" >&6; } | |
18179 | ||
18180 | ||
18181 | ||
18182 | fi | |
18183 | rm -Rf build | |
18184 | ||
18185 | ||
18186 | ||
18187 | ||
18188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5 | |
18189 | $as_echo_n "checking whether iops->get_acl() exists... " >&6; } | |
18190 | ||
18191 | ||
18192 | cat confdefs.h - <<_ACEOF >conftest.c | |
18193 | ||
18194 | ||
18195 | #include <linux/fs.h> | |
18196 | ||
18197 | struct posix_acl *get_acl_fn(struct inode *inode, int type) | |
18198 | { return NULL; } | |
18199 | ||
18200 | static const struct inode_operations | |
18201 | iops __attribute__ ((unused)) = { | |
18202 | .get_acl = get_acl_fn, | |
18203 | }; | |
18204 | ||
18205 | int | |
18206 | main (void) | |
18207 | { | |
18208 | ||
18209 | ||
18210 | ; | |
18211 | return 0; | |
18212 | } | |
18213 | ||
18214 | _ACEOF | |
18215 | ||
18216 | ||
18217 | ||
18218 | cat - <<_ACEOF >conftest.h | |
18219 | ||
18220 | _ACEOF | |
18221 | ||
18222 | ||
18223 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18224 | echo "obj-m := conftest.o" >build/Makefile | |
18225 | modpost_flag='' | |
18226 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18227 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18228 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18229 | (eval $ac_try) 2>&5 | |
18230 | ac_status=$? | |
18231 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18232 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18233 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18234 | (eval $ac_try) 2>&5 | |
18235 | ac_status=$? | |
18236 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18237 | test $ac_status = 0; }; }; then : | |
18238 | ||
18239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18240 | $as_echo "yes" >&6; } | |
18241 | ||
18242 | $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h | |
18243 | ||
18244 | ||
18245 | else | |
18246 | $as_echo "$as_me: failed program was:" >&5 | |
18247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18248 | ||
18249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18250 | $as_echo "no" >&6; } | |
18251 | ||
18252 | ||
18253 | ||
18254 | fi | |
18255 | rm -Rf build | |
18256 | ||
18257 | ||
18258 | ||
18259 | ||
18260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_umask exists" >&5 | |
18261 | $as_echo_n "checking whether current_umask exists... " >&6; } | |
18262 | ||
18263 | ||
18264 | cat confdefs.h - <<_ACEOF >conftest.c | |
18265 | ||
18266 | ||
18267 | #include <linux/fs.h> | |
18268 | ||
18269 | int | |
18270 | main (void) | |
18271 | { | |
18272 | ||
18273 | current_umask(); | |
18274 | ||
18275 | ; | |
18276 | return 0; | |
18277 | } | |
18278 | ||
18279 | _ACEOF | |
18280 | ||
18281 | ||
18282 | ||
18283 | cat - <<_ACEOF >conftest.h | |
18284 | ||
18285 | _ACEOF | |
18286 | ||
18287 | ||
18288 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18289 | echo "obj-m := conftest.o" >build/Makefile | |
18290 | modpost_flag='' | |
18291 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18292 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18293 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18294 | (eval $ac_try) 2>&5 | |
18295 | ac_status=$? | |
18296 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18297 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18298 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18299 | (eval $ac_try) 2>&5 | |
18300 | ac_status=$? | |
18301 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18302 | test $ac_status = 0; }; }; then : | |
18303 | ||
18304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18305 | $as_echo "yes" >&6; } | |
18306 | ||
18307 | $as_echo "#define HAVE_CURRENT_UMASK 1" >>confdefs.h | |
18308 | ||
18309 | ||
18310 | else | |
18311 | $as_echo "$as_me: failed program was:" >&5 | |
18312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18313 | ||
18314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18315 | $as_echo "no" >&6; } | |
18316 | ||
18317 | ||
18318 | ||
18319 | fi | |
18320 | rm -Rf build | |
18321 | ||
18322 | ||
18323 | ||
18324 | ||
18325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5 | |
18326 | $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; } | |
18327 | ||
18328 | ||
18329 | ||
18330 | cat confdefs.h - <<_ACEOF >conftest.c | |
18331 | ||
18332 | ||
18333 | #include <linux/fs.h> | |
18334 | ||
18335 | int show_options (struct seq_file * x, struct dentry * y) { return 0; }; | |
18336 | static struct super_operations sops __attribute__ ((unused)) = { | |
18337 | .show_options = show_options, | |
18338 | }; | |
18339 | ||
18340 | int | |
18341 | main (void) | |
18342 | { | |
18343 | ||
18344 | ||
18345 | ; | |
18346 | return 0; | |
18347 | } | |
18348 | ||
18349 | _ACEOF | |
18350 | ||
18351 | ||
18352 | ||
18353 | cat - <<_ACEOF >conftest.h | |
18354 | ||
18355 | _ACEOF | |
18356 | ||
18357 | ||
18358 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18359 | echo "obj-m := conftest.o" >build/Makefile | |
18360 | modpost_flag='' | |
18361 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18362 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18363 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18364 | (eval $ac_try) 2>&5 | |
18365 | ac_status=$? | |
18366 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18367 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18368 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18369 | (eval $ac_try) 2>&5 | |
18370 | ac_status=$? | |
18371 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18372 | test $ac_status = 0; }; }; then : | |
18373 | ||
18374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18375 | $as_echo "yes" >&6; } | |
18376 | ||
18377 | $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h | |
18378 | ||
18379 | ||
18380 | else | |
18381 | $as_echo "$as_me: failed program was:" >&5 | |
18382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18383 | ||
18384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18385 | $as_echo "no" >&6; } | |
18386 | ||
18387 | ||
18388 | ||
18389 | fi | |
18390 | rm -Rf build | |
18391 | ||
18392 | ||
18393 | ||
18394 | ||
18395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5 | |
18396 | $as_echo_n "checking whether file_inode() is available... " >&6; } | |
18397 | ||
18398 | ||
18399 | cat confdefs.h - <<_ACEOF >conftest.c | |
18400 | ||
18401 | ||
18402 | #include <linux/fs.h> | |
18403 | ||
18404 | int | |
18405 | main (void) | |
18406 | { | |
18407 | ||
18408 | struct file *f = NULL; | |
18409 | file_inode(f); | |
18410 | ||
18411 | ; | |
18412 | return 0; | |
18413 | } | |
18414 | ||
18415 | _ACEOF | |
18416 | ||
18417 | ||
18418 | ||
18419 | cat - <<_ACEOF >conftest.h | |
18420 | ||
18421 | _ACEOF | |
18422 | ||
18423 | ||
18424 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18425 | echo "obj-m := conftest.o" >build/Makefile | |
18426 | modpost_flag='' | |
18427 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18428 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18429 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18430 | (eval $ac_try) 2>&5 | |
18431 | ac_status=$? | |
18432 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18433 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18434 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18435 | (eval $ac_try) 2>&5 | |
18436 | ac_status=$? | |
18437 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18438 | test $ac_status = 0; }; }; then : | |
18439 | ||
18440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18441 | $as_echo "yes" >&6; } | |
18442 | ||
18443 | $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h | |
18444 | ||
18445 | ||
18446 | else | |
18447 | $as_echo "$as_me: failed program was:" >&5 | |
18448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18449 | ||
18450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18451 | $as_echo "no" >&6; } | |
18452 | ||
18453 | ||
18454 | ||
18455 | fi | |
18456 | rm -Rf build | |
18457 | ||
18458 | ||
18459 | ||
18460 | ||
18461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5 | |
18462 | $as_echo_n "checking whether fops->fsync() wants... " >&6; } | |
18463 | ||
18464 | ||
18465 | ||
18466 | cat confdefs.h - <<_ACEOF >conftest.c | |
18467 | ||
18468 | ||
18469 | #include <linux/fs.h> | |
18470 | ||
18471 | int test_fsync(struct file *f, struct dentry *dentry, int x) | |
18472 | { return 0; } | |
18473 | ||
18474 | static const struct file_operations | |
18475 | fops __attribute__ ((unused)) = { | |
18476 | .fsync = test_fsync, | |
18477 | }; | |
18478 | ||
18479 | int | |
18480 | main (void) | |
18481 | { | |
18482 | ||
18483 | ||
18484 | ; | |
18485 | return 0; | |
18486 | } | |
18487 | ||
18488 | _ACEOF | |
18489 | ||
18490 | ||
18491 | ||
18492 | cat - <<_ACEOF >conftest.h | |
18493 | ||
18494 | _ACEOF | |
18495 | ||
18496 | ||
18497 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18498 | echo "obj-m := conftest.o" >build/Makefile | |
18499 | modpost_flag='' | |
18500 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18501 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18502 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18503 | (eval $ac_try) 2>&5 | |
18504 | ac_status=$? | |
18505 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18506 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18507 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18508 | (eval $ac_try) 2>&5 | |
18509 | ac_status=$? | |
18510 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18511 | test $ac_status = 0; }; }; then : | |
18512 | ||
18513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5 | |
18514 | $as_echo "dentry" >&6; } | |
18515 | ||
18516 | $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h | |
18517 | ||
18518 | ||
18519 | else | |
18520 | $as_echo "$as_me: failed program was:" >&5 | |
18521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18522 | ||
18523 | ||
18524 | ||
18525 | ||
18526 | fi | |
18527 | rm -Rf build | |
18528 | ||
18529 | ||
18530 | ||
18531 | ||
18532 | ||
18533 | ||
18534 | cat confdefs.h - <<_ACEOF >conftest.c | |
18535 | ||
18536 | ||
18537 | #include <linux/fs.h> | |
18538 | ||
18539 | int test_fsync(struct file *f, int x) { return 0; } | |
18540 | ||
18541 | static const struct file_operations | |
18542 | fops __attribute__ ((unused)) = { | |
18543 | .fsync = test_fsync, | |
18544 | }; | |
18545 | ||
18546 | int | |
18547 | main (void) | |
18548 | { | |
18549 | ||
18550 | ||
18551 | ; | |
18552 | return 0; | |
18553 | } | |
18554 | ||
18555 | _ACEOF | |
18556 | ||
18557 | ||
18558 | ||
18559 | cat - <<_ACEOF >conftest.h | |
18560 | ||
18561 | _ACEOF | |
18562 | ||
18563 | ||
18564 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18565 | echo "obj-m := conftest.o" >build/Makefile | |
18566 | modpost_flag='' | |
18567 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18568 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18569 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18570 | (eval $ac_try) 2>&5 | |
18571 | ac_status=$? | |
18572 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18573 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18574 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18575 | (eval $ac_try) 2>&5 | |
18576 | ac_status=$? | |
18577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18578 | test $ac_status = 0; }; }; then : | |
18579 | ||
18580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5 | |
18581 | $as_echo "no dentry" >&6; } | |
18582 | ||
18583 | $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h | |
18584 | ||
18585 | ||
18586 | else | |
18587 | $as_echo "$as_me: failed program was:" >&5 | |
18588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18589 | ||
18590 | ||
18591 | ||
18592 | ||
18593 | fi | |
18594 | rm -Rf build | |
18595 | ||
18596 | ||
18597 | ||
18598 | ||
18599 | ||
18600 | ||
18601 | cat confdefs.h - <<_ACEOF >conftest.c | |
18602 | ||
18603 | ||
18604 | #include <linux/fs.h> | |
18605 | ||
18606 | int test_fsync(struct file *f, loff_t a, loff_t b, int c) | |
18607 | { return 0; } | |
18608 | ||
18609 | static const struct file_operations | |
18610 | fops __attribute__ ((unused)) = { | |
18611 | .fsync = test_fsync, | |
18612 | }; | |
18613 | ||
18614 | int | |
18615 | main (void) | |
18616 | { | |
18617 | ||
18618 | ||
18619 | ; | |
18620 | return 0; | |
18621 | } | |
18622 | ||
18623 | _ACEOF | |
18624 | ||
18625 | ||
18626 | ||
18627 | cat - <<_ACEOF >conftest.h | |
18628 | ||
18629 | _ACEOF | |
18630 | ||
18631 | ||
18632 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18633 | echo "obj-m := conftest.o" >build/Makefile | |
18634 | modpost_flag='' | |
18635 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18636 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18637 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18638 | (eval $ac_try) 2>&5 | |
18639 | ac_status=$? | |
18640 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18641 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18642 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18643 | (eval $ac_try) 2>&5 | |
18644 | ac_status=$? | |
18645 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18646 | test $ac_status = 0; }; }; then : | |
18647 | ||
18648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5 | |
18649 | $as_echo "range" >&6; } | |
18650 | ||
18651 | $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h | |
18652 | ||
18653 | ||
18654 | else | |
18655 | $as_echo "$as_me: failed program was:" >&5 | |
18656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18657 | ||
18658 | ||
18659 | ||
18660 | ||
18661 | fi | |
18662 | rm -Rf build | |
18663 | ||
18664 | ||
18665 | ||
18666 | ||
18667 | ||
18668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5 | |
18669 | $as_echo_n "checking whether sops->evict_inode() exists... " >&6; } | |
18670 | ||
18671 | ||
18672 | cat confdefs.h - <<_ACEOF >conftest.c | |
18673 | ||
18674 | ||
18675 | #include <linux/fs.h> | |
18676 | void evict_inode (struct inode * t) { return; } | |
18677 | static struct super_operations sops __attribute__ ((unused)) = { | |
18678 | .evict_inode = evict_inode, | |
18679 | }; | |
18680 | ||
18681 | int | |
18682 | main (void) | |
18683 | { | |
18684 | ||
18685 | ||
18686 | ; | |
18687 | return 0; | |
18688 | } | |
18689 | ||
18690 | _ACEOF | |
18691 | ||
18692 | ||
18693 | ||
18694 | cat - <<_ACEOF >conftest.h | |
18695 | ||
18696 | _ACEOF | |
18697 | ||
18698 | ||
18699 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18700 | echo "obj-m := conftest.o" >build/Makefile | |
18701 | modpost_flag='' | |
18702 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18703 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18704 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18705 | (eval $ac_try) 2>&5 | |
18706 | ac_status=$? | |
18707 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18708 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18709 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18710 | (eval $ac_try) 2>&5 | |
18711 | ac_status=$? | |
18712 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18713 | test $ac_status = 0; }; }; then : | |
18714 | ||
18715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18716 | $as_echo "yes" >&6; } | |
18717 | ||
18718 | $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h | |
18719 | ||
18720 | ||
18721 | else | |
18722 | $as_echo "$as_me: failed program was:" >&5 | |
18723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18724 | ||
18725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18726 | $as_echo "no" >&6; } | |
18727 | ||
18728 | ||
18729 | ||
18730 | fi | |
18731 | rm -Rf build | |
18732 | ||
18733 | ||
18734 | ||
18735 | ||
18736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5 | |
18737 | $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; } | |
18738 | ||
18739 | ||
18740 | cat confdefs.h - <<_ACEOF >conftest.c | |
18741 | ||
18742 | ||
18743 | #include <linux/fs.h> | |
18744 | ||
18745 | void dirty_inode(struct inode *a, int b) { return; } | |
18746 | ||
18747 | static const struct super_operations | |
18748 | sops __attribute__ ((unused)) = { | |
18749 | .dirty_inode = dirty_inode, | |
18750 | }; | |
18751 | ||
18752 | int | |
18753 | main (void) | |
18754 | { | |
18755 | ||
18756 | ||
18757 | ; | |
18758 | return 0; | |
18759 | } | |
18760 | ||
18761 | _ACEOF | |
18762 | ||
18763 | ||
18764 | ||
18765 | cat - <<_ACEOF >conftest.h | |
18766 | ||
18767 | _ACEOF | |
18768 | ||
18769 | ||
18770 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18771 | echo "obj-m := conftest.o" >build/Makefile | |
18772 | modpost_flag='' | |
18773 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18774 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18775 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18776 | (eval $ac_try) 2>&5 | |
18777 | ac_status=$? | |
18778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18779 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18780 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18781 | (eval $ac_try) 2>&5 | |
18782 | ac_status=$? | |
18783 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18784 | test $ac_status = 0; }; }; then : | |
18785 | ||
18786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18787 | $as_echo "yes" >&6; } | |
18788 | ||
18789 | $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h | |
18790 | ||
18791 | ||
18792 | else | |
18793 | $as_echo "$as_me: failed program was:" >&5 | |
18794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18795 | ||
18796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18797 | $as_echo "no" >&6; } | |
18798 | ||
18799 | ||
18800 | ||
18801 | fi | |
18802 | rm -Rf build | |
18803 | ||
18804 | ||
18805 | ||
18806 | ||
18807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5 | |
18808 | $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; } | |
18809 | ||
18810 | ||
18811 | cat confdefs.h - <<_ACEOF >conftest.c | |
18812 | ||
18813 | ||
18814 | #include <linux/fs.h> | |
18815 | ||
18816 | int nr_cached_objects(struct super_block *sb) { return 0; } | |
18817 | ||
18818 | static const struct super_operations | |
18819 | sops __attribute__ ((unused)) = { | |
18820 | .nr_cached_objects = nr_cached_objects, | |
18821 | }; | |
18822 | ||
18823 | int | |
18824 | main (void) | |
18825 | { | |
18826 | ||
18827 | ||
18828 | ; | |
18829 | return 0; | |
18830 | } | |
18831 | ||
18832 | _ACEOF | |
18833 | ||
18834 | ||
18835 | ||
18836 | cat - <<_ACEOF >conftest.h | |
18837 | ||
18838 | _ACEOF | |
18839 | ||
18840 | ||
18841 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18842 | echo "obj-m := conftest.o" >build/Makefile | |
18843 | modpost_flag='' | |
18844 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18845 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18846 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18847 | (eval $ac_try) 2>&5 | |
18848 | ac_status=$? | |
18849 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18850 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18851 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18852 | (eval $ac_try) 2>&5 | |
18853 | ac_status=$? | |
18854 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18855 | test $ac_status = 0; }; }; then : | |
18856 | ||
18857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18858 | $as_echo "yes" >&6; } | |
18859 | ||
18860 | $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h | |
18861 | ||
18862 | ||
18863 | else | |
18864 | $as_echo "$as_me: failed program was:" >&5 | |
18865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18866 | ||
18867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18868 | $as_echo "no" >&6; } | |
18869 | ||
18870 | ||
18871 | ||
18872 | fi | |
18873 | rm -Rf build | |
18874 | ||
18875 | ||
18876 | ||
18877 | ||
18878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5 | |
18879 | $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; } | |
18880 | ||
18881 | ||
18882 | cat confdefs.h - <<_ACEOF >conftest.c | |
18883 | ||
18884 | ||
18885 | #include <linux/fs.h> | |
18886 | ||
18887 | void free_cached_objects(struct super_block *sb, int x) | |
18888 | { return; } | |
18889 | ||
18890 | static const struct super_operations | |
18891 | sops __attribute__ ((unused)) = { | |
18892 | .free_cached_objects = free_cached_objects, | |
18893 | }; | |
18894 | ||
18895 | int | |
18896 | main (void) | |
18897 | { | |
18898 | ||
18899 | ||
18900 | ; | |
18901 | return 0; | |
18902 | } | |
18903 | ||
18904 | _ACEOF | |
18905 | ||
18906 | ||
18907 | ||
18908 | cat - <<_ACEOF >conftest.h | |
18909 | ||
18910 | _ACEOF | |
18911 | ||
18912 | ||
18913 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18914 | echo "obj-m := conftest.o" >build/Makefile | |
18915 | modpost_flag='' | |
18916 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18917 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18918 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18919 | (eval $ac_try) 2>&5 | |
18920 | ac_status=$? | |
18921 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18922 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18923 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18924 | (eval $ac_try) 2>&5 | |
18925 | ac_status=$? | |
18926 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18927 | test $ac_status = 0; }; }; then : | |
18928 | ||
18929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18930 | $as_echo "yes" >&6; } | |
18931 | ||
18932 | $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h | |
18933 | ||
18934 | ||
18935 | else | |
18936 | $as_echo "$as_me: failed program was:" >&5 | |
18937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18938 | ||
18939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18940 | $as_echo "no" >&6; } | |
18941 | ||
18942 | ||
18943 | ||
18944 | fi | |
18945 | rm -Rf build | |
18946 | ||
18947 | ||
18948 | ||
18949 | ||
18950 | ||
18951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5 | |
18952 | $as_echo_n "checking whether fops->fallocate() exists... " >&6; } | |
18953 | ||
18954 | ||
18955 | cat confdefs.h - <<_ACEOF >conftest.c | |
18956 | ||
18957 | ||
18958 | #include <linux/fs.h> | |
18959 | ||
18960 | long test_fallocate(struct file *file, int mode, | |
18961 | loff_t offset, loff_t len) { return 0; } | |
18962 | ||
18963 | static const struct file_operations | |
18964 | fops __attribute__ ((unused)) = { | |
18965 | .fallocate = test_fallocate, | |
18966 | }; | |
18967 | ||
18968 | int | |
18969 | main (void) | |
18970 | { | |
18971 | ||
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_FILE_FALLOCATE 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->fallocate() exists" >&5 | |
19024 | $as_echo_n "checking whether iops->fallocate() exists... " >&6; } | |
19025 | ||
19026 | ||
19027 | cat confdefs.h - <<_ACEOF >conftest.c | |
19028 | ||
19029 | ||
19030 | #include <linux/fs.h> | |
19031 | ||
19032 | long test_fallocate(struct inode *inode, int mode, | |
19033 | loff_t offset, loff_t len) { return 0; } | |
19034 | ||
19035 | static const struct inode_operations | |
19036 | fops __attribute__ ((unused)) = { | |
19037 | .fallocate = test_fallocate, | |
19038 | }; | |
19039 | ||
19040 | int | |
19041 | main (void) | |
19042 | { | |
19043 | ||
19044 | ||
19045 | ; | |
19046 | return 0; | |
19047 | } | |
19048 | ||
19049 | _ACEOF | |
19050 | ||
19051 | ||
19052 | ||
19053 | cat - <<_ACEOF >conftest.h | |
19054 | ||
19055 | _ACEOF | |
19056 | ||
19057 | ||
19058 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19059 | echo "obj-m := conftest.o" >build/Makefile | |
19060 | modpost_flag='' | |
19061 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19062 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19063 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19064 | (eval $ac_try) 2>&5 | |
19065 | ac_status=$? | |
19066 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19067 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19068 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19069 | (eval $ac_try) 2>&5 | |
19070 | ac_status=$? | |
19071 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19072 | test $ac_status = 0; }; }; then : | |
19073 | ||
19074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19075 | $as_echo "yes" >&6; } | |
19076 | ||
19077 | $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h | |
19078 | ||
19079 | ||
19080 | else | |
19081 | $as_echo "$as_me: failed program was:" >&5 | |
19082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19083 | ||
19084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19085 | $as_echo "no" >&6; } | |
19086 | ||
19087 | ||
19088 | ||
19089 | fi | |
19090 | rm -Rf build | |
19091 | ||
19092 | ||
19093 | ||
19094 | ||
19095 | ||
19096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5 | |
19097 | $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; } | |
19098 | ||
19099 | ||
19100 | cat confdefs.h - <<_ACEOF >conftest.c | |
19101 | ||
19102 | ||
19103 | #include <linux/fs.h> | |
19104 | ||
19105 | int mkdir(struct inode *inode, struct dentry *dentry, | |
19106 | umode_t umode) { return 0; } | |
19107 | ||
19108 | static const struct inode_operations | |
19109 | iops __attribute__ ((unused)) = { | |
19110 | .mkdir = mkdir, | |
19111 | }; | |
19112 | ||
19113 | int | |
19114 | main (void) | |
19115 | { | |
19116 | ||
19117 | ||
19118 | ; | |
19119 | return 0; | |
19120 | } | |
19121 | ||
19122 | _ACEOF | |
19123 | ||
19124 | ||
19125 | ||
19126 | cat - <<_ACEOF >conftest.h | |
19127 | ||
19128 | _ACEOF | |
19129 | ||
19130 | ||
19131 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19132 | echo "obj-m := conftest.o" >build/Makefile | |
19133 | modpost_flag='' | |
19134 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19135 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19136 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19137 | (eval $ac_try) 2>&5 | |
19138 | ac_status=$? | |
19139 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19140 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19141 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19142 | (eval $ac_try) 2>&5 | |
19143 | ac_status=$? | |
19144 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19145 | test $ac_status = 0; }; }; then : | |
19146 | ||
19147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19148 | $as_echo "yes" >&6; } | |
19149 | ||
19150 | $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h | |
19151 | ||
19152 | ||
19153 | else | |
19154 | $as_echo "$as_me: failed program was:" >&5 | |
19155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19156 | ||
19157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19158 | $as_echo "no" >&6; } | |
19159 | ||
19160 | ||
19161 | ||
19162 | fi | |
19163 | rm -Rf build | |
19164 | ||
19165 | ||
19166 | ||
19167 | ||
19168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5 | |
19169 | $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; } | |
19170 | ||
19171 | ||
19172 | cat confdefs.h - <<_ACEOF >conftest.c | |
19173 | ||
19174 | ||
19175 | #include <linux/fs.h> | |
19176 | ||
19177 | struct dentry *inode_lookup(struct inode *inode, | |
19178 | struct dentry *dentry, struct nameidata *nidata) | |
19179 | { return NULL; } | |
19180 | ||
19181 | static const struct inode_operations iops | |
19182 | __attribute__ ((unused)) = { | |
19183 | .lookup = inode_lookup, | |
19184 | }; | |
19185 | ||
19186 | int | |
19187 | main (void) | |
19188 | { | |
19189 | ||
19190 | ||
19191 | ; | |
19192 | return 0; | |
19193 | } | |
19194 | ||
19195 | _ACEOF | |
19196 | ||
19197 | ||
19198 | ||
19199 | cat - <<_ACEOF >conftest.h | |
19200 | ||
19201 | _ACEOF | |
19202 | ||
19203 | ||
19204 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19205 | echo "obj-m := conftest.o" >build/Makefile | |
19206 | modpost_flag='' | |
19207 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19208 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19209 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19210 | (eval $ac_try) 2>&5 | |
19211 | ac_status=$? | |
19212 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19213 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19214 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19215 | (eval $ac_try) 2>&5 | |
19216 | ac_status=$? | |
19217 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19218 | test $ac_status = 0; }; }; then : | |
19219 | ||
19220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19221 | $as_echo "yes" >&6; } | |
19222 | ||
19223 | $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h | |
19224 | ||
19225 | ||
19226 | else | |
19227 | $as_echo "$as_me: failed program was:" >&5 | |
19228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19229 | ||
19230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19231 | $as_echo "no" >&6; } | |
19232 | ||
19233 | ||
19234 | ||
19235 | fi | |
19236 | rm -Rf build | |
19237 | ||
19238 | ||
19239 | ||
19240 | ||
19241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5 | |
19242 | $as_echo_n "checking whether iops->create() passes nameidata... " >&6; } | |
19243 | ||
19244 | ||
19245 | cat confdefs.h - <<_ACEOF >conftest.c | |
19246 | ||
19247 | ||
19248 | #include <linux/fs.h> | |
19249 | ||
19250 | #ifdef HAVE_MKDIR_UMODE_T | |
19251 | int inode_create(struct inode *inode ,struct dentry *dentry, | |
19252 | umode_t umode, struct nameidata *nidata) { return 0; } | |
19253 | #else | |
19254 | int inode_create(struct inode *inode,struct dentry *dentry, | |
19255 | int umode, struct nameidata * nidata) { return 0; } | |
19256 | #endif | |
19257 | ||
19258 | static const struct inode_operations | |
19259 | iops __attribute__ ((unused)) = { | |
19260 | .create = inode_create, | |
19261 | }; | |
19262 | ||
19263 | int | |
19264 | main (void) | |
19265 | { | |
19266 | ||
19267 | ||
19268 | ; | |
19269 | return 0; | |
19270 | } | |
19271 | ||
19272 | _ACEOF | |
19273 | ||
19274 | ||
19275 | ||
19276 | cat - <<_ACEOF >conftest.h | |
19277 | ||
19278 | _ACEOF | |
19279 | ||
19280 | ||
19281 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19282 | echo "obj-m := conftest.o" >build/Makefile | |
19283 | modpost_flag='' | |
19284 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19285 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19286 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19287 | (eval $ac_try) 2>&5 | |
19288 | ac_status=$? | |
19289 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19290 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19291 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19292 | (eval $ac_try) 2>&5 | |
19293 | ac_status=$? | |
19294 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19295 | test $ac_status = 0; }; }; then : | |
19296 | ||
19297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19298 | $as_echo "yes" >&6; } | |
19299 | ||
19300 | $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h | |
19301 | ||
19302 | ||
19303 | else | |
19304 | $as_echo "$as_me: failed program was:" >&5 | |
19305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19306 | ||
19307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19308 | $as_echo "no" >&6; } | |
19309 | ||
19310 | ||
19311 | ||
19312 | fi | |
19313 | rm -Rf build | |
19314 | ||
19315 | ||
19316 | ||
19317 | ||
2078c8a7 DJL |
19318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5 |
19319 | $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; } | |
904dbe44 CIK |
19320 | |
19321 | ||
19322 | cat confdefs.h - <<_ACEOF >conftest.c | |
19323 | ||
19324 | ||
19325 | #include <linux/fs.h> | |
2078c8a7 DJL |
19326 | const char *get_link(struct dentry *de, struct inode *ip, |
19327 | struct delayed_call *done) { return "symlink"; } | |
19328 | static struct inode_operations | |
19329 | iops __attribute__ ((unused)) = { | |
19330 | .get_link = get_link, | |
904dbe44 CIK |
19331 | }; |
19332 | ||
19333 | int | |
19334 | main (void) | |
19335 | { | |
19336 | ||
19337 | ||
19338 | ; | |
19339 | return 0; | |
19340 | } | |
19341 | ||
19342 | _ACEOF | |
19343 | ||
19344 | ||
19345 | ||
19346 | cat - <<_ACEOF >conftest.h | |
19347 | ||
19348 | _ACEOF | |
19349 | ||
19350 | ||
19351 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19352 | echo "obj-m := conftest.o" >build/Makefile | |
19353 | modpost_flag='' | |
19354 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19355 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19356 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19357 | (eval $ac_try) 2>&5 | |
19358 | ac_status=$? | |
19359 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19360 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19361 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19362 | (eval $ac_try) 2>&5 | |
19363 | ac_status=$? | |
19364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19365 | test $ac_status = 0; }; }; then : | |
19366 | ||
2078c8a7 DJL |
19367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
19368 | $as_echo "yes" >&6; } | |
904dbe44 | 19369 | |
2078c8a7 | 19370 | $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h |
904dbe44 CIK |
19371 | |
19372 | ||
2078c8a7 DJL |
19373 | else |
19374 | $as_echo "$as_me: failed program was:" >&5 | |
19375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 | 19376 | |
2078c8a7 DJL |
19377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19378 | $as_echo "no" >&6; } | |
19379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5 | |
19380 | $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; } | |
904dbe44 CIK |
19381 | |
19382 | ||
19383 | cat confdefs.h - <<_ACEOF >conftest.c | |
19384 | ||
19385 | ||
2078c8a7 DJL |
19386 | #include <linux/fs.h> |
19387 | const char *get_link(struct dentry *de, struct | |
19388 | inode *ip, void **cookie) { return "symlink"; } | |
19389 | static struct inode_operations | |
19390 | iops __attribute__ ((unused)) = { | |
19391 | .get_link = get_link, | |
19392 | }; | |
904dbe44 CIK |
19393 | |
19394 | int | |
19395 | main (void) | |
19396 | { | |
19397 | ||
19398 | ||
19399 | ; | |
19400 | return 0; | |
19401 | } | |
19402 | ||
19403 | _ACEOF | |
19404 | ||
19405 | ||
19406 | ||
19407 | cat - <<_ACEOF >conftest.h | |
19408 | ||
19409 | _ACEOF | |
19410 | ||
19411 | ||
19412 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19413 | echo "obj-m := conftest.o" >build/Makefile | |
19414 | modpost_flag='' | |
19415 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19416 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19417 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19418 | (eval $ac_try) 2>&5 | |
19419 | ac_status=$? | |
19420 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19421 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19422 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19423 | (eval $ac_try) 2>&5 | |
19424 | ac_status=$? | |
19425 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19426 | test $ac_status = 0; }; }; then : | |
19427 | ||
2078c8a7 | 19428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
19429 | $as_echo "yes" >&6; } |
19430 | ||
2078c8a7 | 19431 | $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h |
904dbe44 CIK |
19432 | |
19433 | ||
2078c8a7 DJL |
19434 | else |
19435 | $as_echo "$as_me: failed program was:" >&5 | |
19436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 | 19437 | |
2078c8a7 DJL |
19438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19439 | $as_echo "no" >&6; } | |
904dbe44 | 19440 | |
2078c8a7 DJL |
19441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5 |
19442 | $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; } | |
904dbe44 CIK |
19443 | |
19444 | ||
19445 | cat confdefs.h - <<_ACEOF >conftest.c | |
19446 | ||
19447 | ||
19448 | #include <linux/fs.h> | |
2078c8a7 DJL |
19449 | const char *follow_link(struct dentry *de, |
19450 | void **cookie) { return "symlink"; } | |
19451 | static struct inode_operations | |
19452 | iops __attribute__ ((unused)) = { | |
19453 | .follow_link = follow_link, | |
904dbe44 CIK |
19454 | }; |
19455 | ||
19456 | int | |
19457 | main (void) | |
19458 | { | |
19459 | ||
19460 | ||
19461 | ; | |
19462 | return 0; | |
19463 | } | |
19464 | ||
19465 | _ACEOF | |
19466 | ||
19467 | ||
19468 | ||
19469 | cat - <<_ACEOF >conftest.h | |
19470 | ||
19471 | _ACEOF | |
19472 | ||
19473 | ||
19474 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19475 | echo "obj-m := conftest.o" >build/Makefile | |
19476 | modpost_flag='' | |
19477 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19478 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19479 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19480 | (eval $ac_try) 2>&5 | |
19481 | ac_status=$? | |
19482 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19483 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19484 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19485 | (eval $ac_try) 2>&5 | |
19486 | ac_status=$? | |
19487 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19488 | test $ac_status = 0; }; }; then : | |
19489 | ||
19490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19491 | $as_echo "yes" >&6; } | |
19492 | ||
2078c8a7 | 19493 | $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h |
904dbe44 CIK |
19494 | |
19495 | ||
19496 | else | |
19497 | $as_echo "$as_me: failed program was:" >&5 | |
19498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19499 | ||
2078c8a7 | 19500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 | 19501 | $as_echo "no" >&6; } |
2078c8a7 DJL |
19502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5 |
19503 | $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; } | |
904dbe44 CIK |
19504 | |
19505 | ||
19506 | cat confdefs.h - <<_ACEOF >conftest.c | |
19507 | ||
19508 | ||
2078c8a7 DJL |
19509 | #include <linux/fs.h> |
19510 | void *follow_link(struct dentry *de, struct | |
19511 | nameidata *nd) { return (void *)NULL; } | |
19512 | static struct inode_operations | |
19513 | iops __attribute__ ((unused)) = { | |
19514 | .follow_link = follow_link, | |
19515 | }; | |
904dbe44 CIK |
19516 | |
19517 | int | |
19518 | main (void) | |
19519 | { | |
19520 | ||
19521 | ||
19522 | ; | |
19523 | return 0; | |
19524 | } | |
19525 | ||
19526 | _ACEOF | |
19527 | ||
19528 | ||
19529 | ||
19530 | cat - <<_ACEOF >conftest.h | |
19531 | ||
19532 | _ACEOF | |
19533 | ||
19534 | ||
19535 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19536 | echo "obj-m := conftest.o" >build/Makefile | |
19537 | modpost_flag='' | |
19538 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19539 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19540 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19541 | (eval $ac_try) 2>&5 | |
19542 | ac_status=$? | |
19543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19544 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19545 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19546 | (eval $ac_try) 2>&5 | |
19547 | ac_status=$? | |
19548 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19549 | test $ac_status = 0; }; }; then : | |
19550 | ||
2078c8a7 | 19551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
19552 | $as_echo "yes" >&6; } |
19553 | ||
2078c8a7 | 19554 | $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h |
904dbe44 CIK |
19555 | |
19556 | ||
19557 | else | |
19558 | $as_echo "$as_me: failed program was:" >&5 | |
19559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19560 | ||
2078c8a7 DJL |
19561 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 |
19562 | ||
19563 | ||
19564 | ||
19565 | fi | |
19566 | rm -Rf build | |
19567 | ||
19568 | ||
19569 | ||
19570 | ||
19571 | ||
19572 | fi | |
19573 | rm -Rf build | |
19574 | ||
19575 | ||
19576 | ||
19577 | ||
19578 | ||
19579 | ||
19580 | fi | |
19581 | rm -Rf build | |
19582 | ||
19583 | ||
904dbe44 CIK |
19584 | |
19585 | ||
19586 | ||
19587 | fi | |
19588 | rm -Rf build | |
19589 | ||
19590 | ||
19591 | ||
19592 | ||
904dbe44 CIK |
19593 | |
19594 | ||
19595 | cat confdefs.h - <<_ACEOF >conftest.c | |
19596 | ||
19597 | ||
2078c8a7 DJL |
19598 | #if !defined(HAVE_GET_LINK_DELAYED) |
19599 | #error "Expecting get_link() delayed done" | |
19600 | #endif | |
904dbe44 CIK |
19601 | |
19602 | int | |
19603 | main (void) | |
19604 | { | |
19605 | ||
19606 | ||
19607 | ; | |
19608 | return 0; | |
19609 | } | |
19610 | ||
19611 | _ACEOF | |
19612 | ||
19613 | ||
19614 | ||
19615 | cat - <<_ACEOF >conftest.h | |
19616 | ||
19617 | _ACEOF | |
19618 | ||
19619 | ||
19620 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19621 | echo "obj-m := conftest.o" >build/Makefile | |
19622 | modpost_flag='' | |
19623 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19624 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19625 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19626 | (eval $ac_try) 2>&5 | |
19627 | ac_status=$? | |
19628 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19629 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19630 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19631 | (eval $ac_try) 2>&5 | |
19632 | ac_status=$? | |
19633 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19634 | test $ac_status = 0; }; }; then : | |
19635 | ||
904dbe44 | 19636 | |
2078c8a7 | 19637 | $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h |
904dbe44 CIK |
19638 | |
19639 | ||
19640 | else | |
19641 | $as_echo "$as_me: failed program was:" >&5 | |
19642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19643 | ||
2078c8a7 DJL |
19644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5 |
19645 | $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; } | |
904dbe44 CIK |
19646 | |
19647 | ||
19648 | cat confdefs.h - <<_ACEOF >conftest.c | |
19649 | ||
19650 | ||
2078c8a7 DJL |
19651 | #include <linux/fs.h> |
19652 | void put_link(struct inode *ip, void *cookie) | |
19653 | { return; } | |
19654 | static struct inode_operations | |
19655 | iops __attribute__ ((unused)) = { | |
19656 | .put_link = put_link, | |
19657 | }; | |
904dbe44 CIK |
19658 | |
19659 | int | |
19660 | main (void) | |
19661 | { | |
19662 | ||
19663 | ||
19664 | ; | |
19665 | return 0; | |
19666 | } | |
19667 | ||
19668 | _ACEOF | |
19669 | ||
19670 | ||
19671 | ||
19672 | cat - <<_ACEOF >conftest.h | |
19673 | ||
19674 | _ACEOF | |
19675 | ||
19676 | ||
19677 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19678 | echo "obj-m := conftest.o" >build/Makefile | |
19679 | modpost_flag='' | |
19680 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19681 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19682 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19683 | (eval $ac_try) 2>&5 | |
19684 | ac_status=$? | |
19685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19686 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19687 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19688 | (eval $ac_try) 2>&5 | |
19689 | ac_status=$? | |
19690 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19691 | test $ac_status = 0; }; }; then : | |
19692 | ||
2078c8a7 | 19693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
19694 | $as_echo "yes" >&6; } |
19695 | ||
2078c8a7 | 19696 | $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h |
904dbe44 CIK |
19697 | |
19698 | ||
19699 | else | |
19700 | $as_echo "$as_me: failed program was:" >&5 | |
19701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19702 | ||
2078c8a7 | 19703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 | 19704 | $as_echo "no" >&6; } |
2078c8a7 DJL |
19705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5 |
19706 | $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; } | |
904dbe44 CIK |
19707 | |
19708 | ||
19709 | cat confdefs.h - <<_ACEOF >conftest.c | |
19710 | ||
19711 | ||
2078c8a7 DJL |
19712 | #include <linux/fs.h> |
19713 | void put_link(struct dentry *de, struct | |
19714 | nameidata *nd, void *ptr) { return; } | |
19715 | static struct inode_operations | |
19716 | iops __attribute__ ((unused)) = { | |
19717 | .put_link = put_link, | |
19718 | }; | |
904dbe44 CIK |
19719 | |
19720 | int | |
19721 | main (void) | |
19722 | { | |
19723 | ||
904dbe44 CIK |
19724 | |
19725 | ; | |
19726 | return 0; | |
19727 | } | |
19728 | ||
19729 | _ACEOF | |
19730 | ||
19731 | ||
19732 | ||
19733 | cat - <<_ACEOF >conftest.h | |
19734 | ||
19735 | _ACEOF | |
19736 | ||
19737 | ||
19738 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19739 | echo "obj-m := conftest.o" >build/Makefile | |
19740 | modpost_flag='' | |
19741 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19742 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19743 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19744 | (eval $ac_try) 2>&5 | |
19745 | ac_status=$? | |
19746 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19747 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19748 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19749 | (eval $ac_try) 2>&5 | |
19750 | ac_status=$? | |
19751 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19752 | test $ac_status = 0; }; }; then : | |
2078c8a7 DJL |
19753 | |
19754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19755 | $as_echo "yes" >&6; } | |
19756 | ||
19757 | $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h | |
19758 | ||
19759 | ||
904dbe44 CIK |
19760 | else |
19761 | $as_echo "$as_me: failed program was:" >&5 | |
19762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2078c8a7 DJL |
19763 | |
19764 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
19765 | ||
904dbe44 CIK |
19766 | |
19767 | ||
19768 | fi | |
19769 | rm -Rf build | |
19770 | ||
19771 | ||
904dbe44 | 19772 | |
904dbe44 | 19773 | |
904dbe44 | 19774 | |
2078c8a7 DJL |
19775 | fi |
19776 | rm -Rf build | |
904dbe44 | 19777 | |
904dbe44 | 19778 | |
904dbe44 | 19779 | |
904dbe44 | 19780 | |
904dbe44 | 19781 | |
2078c8a7 DJL |
19782 | fi |
19783 | rm -Rf build | |
904dbe44 | 19784 | |
904dbe44 CIK |
19785 | |
19786 | ||
904dbe44 | 19787 | |
2078c8a7 DJL |
19788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5 |
19789 | $as_echo_n "checking whether iops->truncate_range() exists... " >&6; } | |
904dbe44 CIK |
19790 | |
19791 | ||
19792 | cat confdefs.h - <<_ACEOF >conftest.c | |
19793 | ||
19794 | ||
19795 | #include <linux/fs.h> | |
2078c8a7 DJL |
19796 | void truncate_range(struct inode *inode, loff_t start, |
19797 | loff_t end) { return; } | |
19798 | static struct inode_operations iops __attribute__ ((unused)) = { | |
19799 | .truncate_range = truncate_range, | |
19800 | }; | |
904dbe44 CIK |
19801 | |
19802 | int | |
19803 | main (void) | |
19804 | { | |
19805 | ||
904dbe44 CIK |
19806 | |
19807 | ; | |
19808 | return 0; | |
19809 | } | |
19810 | ||
19811 | _ACEOF | |
19812 | ||
19813 | ||
19814 | ||
19815 | cat - <<_ACEOF >conftest.h | |
19816 | ||
19817 | _ACEOF | |
19818 | ||
19819 | ||
19820 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19821 | echo "obj-m := conftest.o" >build/Makefile | |
19822 | modpost_flag='' | |
19823 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19824 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19825 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19826 | (eval $ac_try) 2>&5 | |
19827 | ac_status=$? | |
19828 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19829 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19830 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19831 | (eval $ac_try) 2>&5 | |
19832 | ac_status=$? | |
19833 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19834 | test $ac_status = 0; }; }; then : | |
2078c8a7 DJL |
19835 | |
19836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19837 | $as_echo "yes" >&6; } | |
19838 | ||
19839 | $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h | |
19840 | ||
19841 | ||
904dbe44 CIK |
19842 | else |
19843 | $as_echo "$as_me: failed program was:" >&5 | |
19844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2078c8a7 DJL |
19845 | |
19846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19847 | $as_echo "no" >&6; } | |
19848 | ||
904dbe44 CIK |
19849 | |
19850 | ||
19851 | fi | |
19852 | rm -Rf build | |
19853 | ||
19854 | ||
904dbe44 | 19855 | |
904dbe44 | 19856 | |
2078c8a7 DJL |
19857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5 |
19858 | $as_echo_n "checking whether dops->d_automount() exists... " >&6; } | |
904dbe44 | 19859 | |
904dbe44 | 19860 | |
2078c8a7 | 19861 | cat confdefs.h - <<_ACEOF >conftest.c |
904dbe44 | 19862 | |
904dbe44 | 19863 | |
2078c8a7 DJL |
19864 | #include <linux/dcache.h> |
19865 | struct vfsmount *d_automount(struct path *p) { return NULL; } | |
19866 | struct dentry_operations dops __attribute__ ((unused)) = { | |
19867 | .d_automount = d_automount, | |
19868 | }; | |
19869 | ||
19870 | int | |
19871 | main (void) | |
19872 | { | |
19873 | ||
19874 | ||
19875 | ; | |
19876 | return 0; | |
19877 | } | |
19878 | ||
19879 | _ACEOF | |
19880 | ||
19881 | ||
19882 | ||
19883 | cat - <<_ACEOF >conftest.h | |
19884 | ||
19885 | _ACEOF | |
19886 | ||
19887 | ||
19888 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19889 | echo "obj-m := conftest.o" >build/Makefile | |
19890 | modpost_flag='' | |
19891 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19892 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19893 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19894 | (eval $ac_try) 2>&5 | |
19895 | ac_status=$? | |
19896 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19897 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19898 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19899 | (eval $ac_try) 2>&5 | |
19900 | ac_status=$? | |
19901 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19902 | test $ac_status = 0; }; }; then : | |
904dbe44 CIK |
19903 | |
19904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19905 | $as_echo "yes" >&6; } | |
19906 | ||
2078c8a7 | 19907 | $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h |
904dbe44 CIK |
19908 | |
19909 | ||
2078c8a7 DJL |
19910 | else |
19911 | $as_echo "$as_me: failed program was:" >&5 | |
19912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 | 19913 | |
2078c8a7 DJL |
19914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19915 | $as_echo "no" >&6; } | |
904dbe44 | 19916 | |
904dbe44 CIK |
19917 | |
19918 | ||
2078c8a7 DJL |
19919 | fi |
19920 | rm -Rf build | |
19921 | ||
19922 | ||
19923 | ||
19924 | ||
19925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5 | |
19926 | $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; } | |
19927 | ||
904dbe44 CIK |
19928 | |
19929 | cat confdefs.h - <<_ACEOF >conftest.c | |
19930 | ||
19931 | ||
2078c8a7 DJL |
19932 | #include <linux/exportfs.h> |
19933 | int encode_fh(struct inode *inode, __u32 *fh, int *max_len, | |
19934 | struct inode *parent) { return 0; } | |
19935 | static struct export_operations eops __attribute__ ((unused))={ | |
19936 | .encode_fh = encode_fh, | |
19937 | }; | |
904dbe44 CIK |
19938 | |
19939 | int | |
19940 | main (void) | |
19941 | { | |
19942 | ||
904dbe44 CIK |
19943 | |
19944 | ; | |
19945 | return 0; | |
19946 | } | |
19947 | ||
19948 | _ACEOF | |
19949 | ||
19950 | ||
19951 | ||
19952 | cat - <<_ACEOF >conftest.h | |
19953 | ||
19954 | _ACEOF | |
19955 | ||
19956 | ||
19957 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19958 | echo "obj-m := conftest.o" >build/Makefile | |
19959 | modpost_flag='' | |
19960 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19961 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19962 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19963 | (eval $ac_try) 2>&5 | |
19964 | ac_status=$? | |
19965 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19966 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19967 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19968 | (eval $ac_try) 2>&5 | |
19969 | ac_status=$? | |
19970 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19971 | test $ac_status = 0; }; }; then : | |
2078c8a7 DJL |
19972 | |
19973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19974 | $as_echo "yes" >&6; } | |
19975 | ||
19976 | $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h | |
19977 | ||
19978 | ||
904dbe44 CIK |
19979 | else |
19980 | $as_echo "$as_me: failed program was:" >&5 | |
19981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2078c8a7 DJL |
19982 | |
19983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19984 | $as_echo "no" >&6; } | |
19985 | ||
904dbe44 CIK |
19986 | |
19987 | ||
19988 | fi | |
19989 | rm -Rf build | |
19990 | ||
19991 | ||
904dbe44 | 19992 | |
904dbe44 | 19993 | |
2078c8a7 DJL |
19994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5 |
19995 | $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; } | |
904dbe44 | 19996 | |
904dbe44 | 19997 | |
2078c8a7 | 19998 | cat confdefs.h - <<_ACEOF >conftest.c |
904dbe44 | 19999 | |
904dbe44 | 20000 | |
2078c8a7 DJL |
20001 | #include <linux/exportfs.h> |
20002 | int commit_metadata(struct inode *inode) { return 0; } | |
20003 | static struct export_operations eops __attribute__ ((unused))={ | |
20004 | .commit_metadata = commit_metadata, | |
20005 | }; | |
20006 | ||
20007 | int | |
20008 | main (void) | |
20009 | { | |
20010 | ||
20011 | ||
20012 | ; | |
20013 | return 0; | |
20014 | } | |
20015 | ||
20016 | _ACEOF | |
20017 | ||
20018 | ||
20019 | ||
20020 | cat - <<_ACEOF >conftest.h | |
20021 | ||
20022 | _ACEOF | |
20023 | ||
20024 | ||
20025 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20026 | echo "obj-m := conftest.o" >build/Makefile | |
20027 | modpost_flag='' | |
20028 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20029 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20030 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20031 | (eval $ac_try) 2>&5 | |
20032 | ac_status=$? | |
20033 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20034 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20035 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20036 | (eval $ac_try) 2>&5 | |
20037 | ac_status=$? | |
20038 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20039 | test $ac_status = 0; }; }; then : | |
904dbe44 CIK |
20040 | |
20041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20042 | $as_echo "yes" >&6; } | |
20043 | ||
2078c8a7 | 20044 | $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h |
904dbe44 CIK |
20045 | |
20046 | ||
2078c8a7 DJL |
20047 | else |
20048 | $as_echo "$as_me: failed program was:" >&5 | |
20049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20050 | ||
20051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20052 | $as_echo "no" >&6; } | |
904dbe44 CIK |
20053 | |
20054 | ||
2078c8a7 DJL |
20055 | |
20056 | fi | |
20057 | rm -Rf build | |
20058 | ||
20059 | ||
20060 | ||
20061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5 | |
20062 | $as_echo_n "checking whether clear_inode() is available... " >&6; } | |
904dbe44 CIK |
20063 | |
20064 | ||
20065 | ||
20066 | cat confdefs.h - <<_ACEOF >conftest.c | |
20067 | ||
20068 | ||
2078c8a7 | 20069 | #include <linux/fs.h> |
904dbe44 CIK |
20070 | |
20071 | int | |
20072 | main (void) | |
20073 | { | |
20074 | ||
2078c8a7 | 20075 | clear_inode(NULL); |
904dbe44 CIK |
20076 | |
20077 | ; | |
20078 | return 0; | |
20079 | } | |
20080 | ||
20081 | _ACEOF | |
20082 | ||
20083 | ||
20084 | ||
20085 | cat - <<_ACEOF >conftest.h | |
20086 | ||
20087 | _ACEOF | |
20088 | ||
20089 | ||
20090 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20091 | echo "obj-m := conftest.o" >build/Makefile | |
20092 | modpost_flag='' | |
20093 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20094 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20095 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20096 | (eval $ac_try) 2>&5 | |
20097 | ac_status=$? | |
20098 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20099 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20100 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20101 | (eval $ac_try) 2>&5 | |
20102 | ac_status=$? | |
20103 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20104 | test $ac_status = 0; }; }; then : | |
20105 | rc=0 | |
20106 | else | |
20107 | $as_echo "$as_me: failed program was:" >&5 | |
20108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20109 | rc=1 | |
20110 | ||
20111 | ||
20112 | fi | |
20113 | rm -Rf build | |
20114 | ||
20115 | ||
20116 | if test $rc -ne 0; then : | |
20117 | ||
20118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20119 | $as_echo "no" >&6; } | |
20120 | ||
20121 | else | |
20122 | if test "x$enable_linux_builtin" != xyes; then | |
20123 | ||
2078c8a7 | 20124 | grep -q -E '[[:space:]]clear_inode[[:space:]]' \ |
904dbe44 CIK |
20125 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
20126 | rc=$? | |
20127 | if test $rc -ne 0; then | |
20128 | export=0 | |
2078c8a7 DJL |
20129 | for file in fs/inode.c; do |
20130 | grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \ | |
904dbe44 CIK |
20131 | "$LINUX/$file" 2>/dev/null |
20132 | rc=$? | |
20133 | if test $rc -eq 0; then | |
20134 | export=1 | |
20135 | break; | |
20136 | fi | |
20137 | done | |
20138 | if test $export -eq 0; then : | |
20139 | rc=1 | |
20140 | else : | |
20141 | rc=0 | |
20142 | fi | |
20143 | else : | |
20144 | rc=0 | |
20145 | fi | |
20146 | ||
20147 | fi | |
20148 | if test $rc -ne 0; then : | |
20149 | ||
20150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20151 | $as_echo "no" >&6; } | |
20152 | ||
20153 | else : | |
20154 | ||
20155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20156 | $as_echo "yes" >&6; } | |
20157 | ||
2078c8a7 | 20158 | $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h |
904dbe44 CIK |
20159 | |
20160 | ||
20161 | fi | |
20162 | fi | |
20163 | ||
20164 | ||
2078c8a7 DJL |
20165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5 |
20166 | $as_echo_n "checking whether insert_inode_locked() is available... " >&6; } | |
904dbe44 CIK |
20167 | |
20168 | ||
20169 | ||
20170 | cat confdefs.h - <<_ACEOF >conftest.c | |
20171 | ||
20172 | ||
2078c8a7 | 20173 | #include <linux/fs.h> |
904dbe44 CIK |
20174 | |
20175 | int | |
20176 | main (void) | |
20177 | { | |
20178 | ||
2078c8a7 | 20179 | insert_inode_locked(NULL); |
904dbe44 CIK |
20180 | |
20181 | ; | |
20182 | return 0; | |
20183 | } | |
20184 | ||
20185 | _ACEOF | |
20186 | ||
20187 | ||
20188 | ||
20189 | cat - <<_ACEOF >conftest.h | |
20190 | ||
20191 | _ACEOF | |
20192 | ||
20193 | ||
20194 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20195 | echo "obj-m := conftest.o" >build/Makefile | |
20196 | modpost_flag='' | |
20197 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20198 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20199 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20200 | (eval $ac_try) 2>&5 | |
20201 | ac_status=$? | |
20202 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20203 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20204 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20205 | (eval $ac_try) 2>&5 | |
20206 | ac_status=$? | |
20207 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20208 | test $ac_status = 0; }; }; then : | |
20209 | rc=0 | |
20210 | else | |
20211 | $as_echo "$as_me: failed program was:" >&5 | |
20212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20213 | rc=1 | |
20214 | ||
20215 | ||
20216 | fi | |
20217 | rm -Rf build | |
20218 | ||
20219 | ||
20220 | if test $rc -ne 0; then : | |
20221 | ||
20222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20223 | $as_echo "no" >&6; } | |
20224 | ||
20225 | else | |
20226 | if test "x$enable_linux_builtin" != xyes; then | |
20227 | ||
2078c8a7 | 20228 | grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \ |
904dbe44 CIK |
20229 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
20230 | rc=$? | |
20231 | if test $rc -ne 0; then | |
20232 | export=0 | |
2078c8a7 DJL |
20233 | for file in fs/inode.c; do |
20234 | grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \ | |
904dbe44 CIK |
20235 | "$LINUX/$file" 2>/dev/null |
20236 | rc=$? | |
20237 | if test $rc -eq 0; then | |
20238 | export=1 | |
20239 | break; | |
20240 | fi | |
20241 | done | |
20242 | if test $export -eq 0; then : | |
20243 | rc=1 | |
20244 | else : | |
20245 | rc=0 | |
20246 | fi | |
20247 | else : | |
20248 | rc=0 | |
20249 | fi | |
20250 | ||
20251 | fi | |
20252 | if test $rc -ne 0; then : | |
20253 | ||
20254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20255 | $as_echo "no" >&6; } | |
20256 | ||
20257 | else : | |
20258 | ||
20259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20260 | $as_echo "yes" >&6; } | |
20261 | ||
2078c8a7 | 20262 | $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h |
904dbe44 CIK |
20263 | |
20264 | ||
20265 | fi | |
20266 | fi | |
20267 | ||
20268 | ||
2078c8a7 DJL |
20269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5 |
20270 | $as_echo_n "checking whether d_make_root() is available... " >&6; } | |
904dbe44 CIK |
20271 | |
20272 | ||
20273 | ||
20274 | cat confdefs.h - <<_ACEOF >conftest.c | |
20275 | ||
20276 | ||
20277 | #include <linux/dcache.h> | |
20278 | ||
20279 | int | |
20280 | main (void) | |
20281 | { | |
20282 | ||
2078c8a7 | 20283 | d_make_root(NULL); |
904dbe44 CIK |
20284 | |
20285 | ; | |
20286 | return 0; | |
20287 | } | |
20288 | ||
20289 | _ACEOF | |
20290 | ||
20291 | ||
20292 | ||
20293 | cat - <<_ACEOF >conftest.h | |
20294 | ||
20295 | _ACEOF | |
20296 | ||
20297 | ||
20298 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20299 | echo "obj-m := conftest.o" >build/Makefile | |
20300 | modpost_flag='' | |
20301 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20302 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20303 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20304 | (eval $ac_try) 2>&5 | |
20305 | ac_status=$? | |
20306 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20307 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20308 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20309 | (eval $ac_try) 2>&5 | |
20310 | ac_status=$? | |
20311 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20312 | test $ac_status = 0; }; }; then : | |
20313 | rc=0 | |
20314 | else | |
20315 | $as_echo "$as_me: failed program was:" >&5 | |
20316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20317 | rc=1 | |
20318 | ||
20319 | ||
20320 | fi | |
20321 | rm -Rf build | |
20322 | ||
20323 | ||
20324 | if test $rc -ne 0; then : | |
20325 | ||
20326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20327 | $as_echo "no" >&6; } | |
20328 | ||
20329 | else | |
20330 | if test "x$enable_linux_builtin" != xyes; then | |
20331 | ||
2078c8a7 | 20332 | grep -q -E '[[:space:]]d_make_root[[:space:]]' \ |
904dbe44 CIK |
20333 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
20334 | rc=$? | |
20335 | if test $rc -ne 0; then | |
20336 | export=0 | |
20337 | for file in fs/dcache.c; do | |
2078c8a7 | 20338 | grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \ |
904dbe44 CIK |
20339 | "$LINUX/$file" 2>/dev/null |
20340 | rc=$? | |
20341 | if test $rc -eq 0; then | |
20342 | export=1 | |
20343 | break; | |
20344 | fi | |
20345 | done | |
20346 | if test $export -eq 0; then : | |
20347 | rc=1 | |
20348 | else : | |
20349 | rc=0 | |
20350 | fi | |
20351 | else : | |
20352 | rc=0 | |
20353 | fi | |
20354 | ||
20355 | fi | |
20356 | if test $rc -ne 0; then : | |
20357 | ||
20358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20359 | $as_echo "no" >&6; } | |
20360 | ||
20361 | else : | |
20362 | ||
20363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20364 | $as_echo "yes" >&6; } | |
20365 | ||
2078c8a7 | 20366 | $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h |
904dbe44 CIK |
20367 | |
20368 | ||
20369 | fi | |
20370 | fi | |
20371 | ||
20372 | ||
2078c8a7 DJL |
20373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5 |
20374 | $as_echo_n "checking whether d_obtain_alias() is available... " >&6; } | |
904dbe44 | 20375 | |
904dbe44 CIK |
20376 | |
20377 | ||
20378 | cat confdefs.h - <<_ACEOF >conftest.c | |
20379 | ||
20380 | ||
20381 | #include <linux/dcache.h> | |
20382 | ||
904dbe44 CIK |
20383 | int |
20384 | main (void) | |
20385 | { | |
20386 | ||
2078c8a7 | 20387 | d_obtain_alias(NULL); |
904dbe44 CIK |
20388 | |
20389 | ; | |
20390 | return 0; | |
20391 | } | |
20392 | ||
20393 | _ACEOF | |
20394 | ||
20395 | ||
20396 | ||
20397 | cat - <<_ACEOF >conftest.h | |
20398 | ||
20399 | _ACEOF | |
20400 | ||
20401 | ||
20402 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20403 | echo "obj-m := conftest.o" >build/Makefile | |
20404 | modpost_flag='' | |
20405 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20406 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20407 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20408 | (eval $ac_try) 2>&5 | |
20409 | ac_status=$? | |
20410 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20411 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
2078c8a7 | 20417 | rc=0 |
904dbe44 CIK |
20418 | else |
20419 | $as_echo "$as_me: failed program was:" >&5 | |
20420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2078c8a7 | 20421 | rc=1 |
904dbe44 CIK |
20422 | |
20423 | ||
20424 | fi | |
20425 | rm -Rf build | |
20426 | ||
20427 | ||
2078c8a7 | 20428 | if test $rc -ne 0; then : |
904dbe44 | 20429 | |
2078c8a7 DJL |
20430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
20431 | $as_echo "no" >&6; } | |
904dbe44 | 20432 | |
2078c8a7 DJL |
20433 | else |
20434 | if test "x$enable_linux_builtin" != xyes; then | |
904dbe44 | 20435 | |
2078c8a7 DJL |
20436 | grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \ |
20437 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
20438 | rc=$? | |
20439 | if test $rc -ne 0; then | |
20440 | export=0 | |
20441 | for file in fs/dcache.c; do | |
20442 | grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \ | |
20443 | "$LINUX/$file" 2>/dev/null | |
20444 | rc=$? | |
20445 | if test $rc -eq 0; then | |
20446 | export=1 | |
20447 | break; | |
20448 | fi | |
20449 | done | |
20450 | if test $export -eq 0; then : | |
20451 | rc=1 | |
20452 | else : | |
20453 | rc=0 | |
20454 | fi | |
20455 | else : | |
20456 | rc=0 | |
20457 | fi | |
904dbe44 | 20458 | |
2078c8a7 DJL |
20459 | fi |
20460 | if test $rc -ne 0; then : | |
904dbe44 | 20461 | |
2078c8a7 DJL |
20462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
20463 | $as_echo "no" >&6; } | |
904dbe44 | 20464 | |
2078c8a7 | 20465 | else : |
904dbe44 CIK |
20466 | |
20467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20468 | $as_echo "yes" >&6; } | |
20469 | ||
2078c8a7 | 20470 | $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h |
904dbe44 | 20471 | |
904dbe44 | 20472 | |
2078c8a7 DJL |
20473 | fi |
20474 | fi | |
904dbe44 CIK |
20475 | |
20476 | ||
2078c8a7 DJL |
20477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5 |
20478 | $as_echo_n "checking whether d_prune_aliases() is available... " >&6; } | |
904dbe44 CIK |
20479 | |
20480 | ||
20481 | ||
20482 | cat confdefs.h - <<_ACEOF >conftest.c | |
20483 | ||
20484 | ||
2078c8a7 | 20485 | #include <linux/dcache.h> |
904dbe44 CIK |
20486 | |
20487 | int | |
20488 | main (void) | |
20489 | { | |
20490 | ||
2078c8a7 DJL |
20491 | struct inode *ip = NULL; |
20492 | d_prune_aliases(ip); | |
904dbe44 CIK |
20493 | |
20494 | ; | |
20495 | return 0; | |
20496 | } | |
20497 | ||
20498 | _ACEOF | |
20499 | ||
20500 | ||
20501 | ||
20502 | cat - <<_ACEOF >conftest.h | |
20503 | ||
20504 | _ACEOF | |
20505 | ||
20506 | ||
20507 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20508 | echo "obj-m := conftest.o" >build/Makefile | |
20509 | modpost_flag='' | |
20510 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20511 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20512 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20513 | (eval $ac_try) 2>&5 | |
20514 | ac_status=$? | |
20515 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20516 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20517 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20518 | (eval $ac_try) 2>&5 | |
20519 | ac_status=$? | |
20520 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20521 | test $ac_status = 0; }; }; then : | |
20522 | rc=0 | |
20523 | else | |
20524 | $as_echo "$as_me: failed program was:" >&5 | |
20525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20526 | rc=1 | |
20527 | ||
20528 | ||
20529 | fi | |
20530 | rm -Rf build | |
20531 | ||
20532 | ||
20533 | if test $rc -ne 0; then : | |
20534 | ||
20535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20536 | $as_echo "no" >&6; } | |
20537 | ||
20538 | else | |
20539 | if test "x$enable_linux_builtin" != xyes; then | |
20540 | ||
2078c8a7 | 20541 | grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \ |
904dbe44 CIK |
20542 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
20543 | rc=$? | |
20544 | if test $rc -ne 0; then | |
20545 | export=0 | |
2078c8a7 DJL |
20546 | for file in fs/dcache.c; do |
20547 | grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \ | |
904dbe44 CIK |
20548 | "$LINUX/$file" 2>/dev/null |
20549 | rc=$? | |
20550 | if test $rc -eq 0; then | |
20551 | export=1 | |
20552 | break; | |
20553 | fi | |
20554 | done | |
20555 | if test $export -eq 0; then : | |
20556 | rc=1 | |
20557 | else : | |
20558 | rc=0 | |
20559 | fi | |
20560 | else : | |
20561 | rc=0 | |
20562 | fi | |
20563 | ||
20564 | fi | |
20565 | if test $rc -ne 0; then : | |
20566 | ||
20567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20568 | $as_echo "no" >&6; } | |
20569 | ||
20570 | else : | |
20571 | ||
20572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20573 | $as_echo "yes" >&6; } | |
20574 | ||
2078c8a7 | 20575 | $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h |
904dbe44 CIK |
20576 | |
20577 | ||
20578 | fi | |
20579 | fi | |
20580 | ||
20581 | ||
2078c8a7 DJL |
20582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5 |
20583 | $as_echo_n "checking whether d_set_d_op() is available... " >&6; } | |
904dbe44 CIK |
20584 | |
20585 | ||
20586 | ||
20587 | cat confdefs.h - <<_ACEOF >conftest.c | |
20588 | ||
20589 | ||
2078c8a7 | 20590 | #include <linux/dcache.h> |
904dbe44 CIK |
20591 | |
20592 | int | |
20593 | main (void) | |
20594 | { | |
20595 | ||
2078c8a7 | 20596 | d_set_d_op(NULL, NULL); |
904dbe44 CIK |
20597 | |
20598 | ; | |
20599 | return 0; | |
20600 | } | |
20601 | ||
20602 | _ACEOF | |
20603 | ||
20604 | ||
20605 | ||
20606 | cat - <<_ACEOF >conftest.h | |
20607 | ||
20608 | _ACEOF | |
20609 | ||
20610 | ||
20611 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20612 | echo "obj-m := conftest.o" >build/Makefile | |
20613 | modpost_flag='' | |
20614 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20615 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20616 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20617 | (eval $ac_try) 2>&5 | |
20618 | ac_status=$? | |
20619 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20620 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20621 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20622 | (eval $ac_try) 2>&5 | |
20623 | ac_status=$? | |
20624 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20625 | test $ac_status = 0; }; }; then : | |
20626 | rc=0 | |
20627 | else | |
20628 | $as_echo "$as_me: failed program was:" >&5 | |
20629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20630 | rc=1 | |
20631 | ||
20632 | ||
20633 | fi | |
20634 | rm -Rf build | |
20635 | ||
20636 | ||
20637 | if test $rc -ne 0; then : | |
20638 | ||
20639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20640 | $as_echo "no" >&6; } | |
20641 | ||
20642 | else | |
20643 | if test "x$enable_linux_builtin" != xyes; then | |
20644 | ||
2078c8a7 | 20645 | grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \ |
904dbe44 CIK |
20646 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
20647 | rc=$? | |
20648 | if test $rc -ne 0; then | |
20649 | export=0 | |
2078c8a7 DJL |
20650 | for file in fs/dcache.c; do |
20651 | grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \ | |
904dbe44 CIK |
20652 | "$LINUX/$file" 2>/dev/null |
20653 | rc=$? | |
20654 | if test $rc -eq 0; then | |
20655 | export=1 | |
20656 | break; | |
20657 | fi | |
20658 | done | |
20659 | if test $export -eq 0; then : | |
20660 | rc=1 | |
20661 | else : | |
20662 | rc=0 | |
20663 | fi | |
20664 | else : | |
20665 | rc=0 | |
20666 | fi | |
20667 | ||
20668 | fi | |
20669 | if test $rc -ne 0; then : | |
20670 | ||
20671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20672 | $as_echo "no" >&6; } | |
20673 | ||
20674 | else : | |
20675 | ||
20676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20677 | $as_echo "yes" >&6; } | |
20678 | ||
2078c8a7 | 20679 | $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h |
904dbe44 CIK |
20680 | |
20681 | ||
20682 | fi | |
20683 | fi | |
20684 | ||
20685 | ||
20686 | ||
2078c8a7 DJL |
20687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5 |
20688 | $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; } | |
904dbe44 CIK |
20689 | |
20690 | ||
20691 | cat confdefs.h - <<_ACEOF >conftest.c | |
20692 | ||
20693 | ||
2078c8a7 DJL |
20694 | #include <linux/dcache.h> |
20695 | ||
20696 | int revalidate (struct dentry *dentry, | |
20697 | struct nameidata *nidata) { return 0; } | |
20698 | ||
20699 | static const struct dentry_operations | |
20700 | dops __attribute__ ((unused)) = { | |
20701 | .d_revalidate = revalidate, | |
20702 | }; | |
904dbe44 CIK |
20703 | |
20704 | int | |
20705 | main (void) | |
20706 | { | |
20707 | ||
904dbe44 CIK |
20708 | |
20709 | ; | |
20710 | return 0; | |
20711 | } | |
20712 | ||
20713 | _ACEOF | |
20714 | ||
20715 | ||
20716 | ||
20717 | cat - <<_ACEOF >conftest.h | |
20718 | ||
20719 | _ACEOF | |
20720 | ||
20721 | ||
20722 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20723 | echo "obj-m := conftest.o" >build/Makefile | |
20724 | modpost_flag='' | |
20725 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20726 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20727 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20728 | (eval $ac_try) 2>&5 | |
20729 | ac_status=$? | |
20730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20731 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20732 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20733 | (eval $ac_try) 2>&5 | |
20734 | ac_status=$? | |
20735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20736 | test $ac_status = 0; }; }; then : | |
20737 | ||
20738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20739 | $as_echo "yes" >&6; } | |
20740 | ||
2078c8a7 | 20741 | $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h |
904dbe44 CIK |
20742 | |
20743 | ||
20744 | else | |
20745 | $as_echo "$as_me: failed program was:" >&5 | |
20746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20747 | ||
20748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20749 | $as_echo "no" >&6; } | |
20750 | ||
20751 | ||
20752 | ||
20753 | fi | |
20754 | rm -Rf build | |
20755 | ||
20756 | ||
20757 | ||
20758 | ||
2078c8a7 DJL |
20759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5 |
20760 | $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; } | |
904dbe44 CIK |
20761 | |
20762 | ||
20763 | cat confdefs.h - <<_ACEOF >conftest.c | |
20764 | ||
20765 | ||
2078c8a7 DJL |
20766 | #include <linux/dcache.h> |
20767 | ||
20768 | const struct dentry_operations test_d_op = { | |
20769 | .d_revalidate = NULL, | |
20770 | }; | |
904dbe44 CIK |
20771 | |
20772 | int | |
20773 | main (void) | |
20774 | { | |
20775 | ||
2078c8a7 | 20776 | struct dentry d __attribute__ ((unused)); |
904dbe44 | 20777 | |
2078c8a7 | 20778 | d.d_op = &test_d_op; |
904dbe44 CIK |
20779 | |
20780 | ; | |
20781 | return 0; | |
20782 | } | |
20783 | ||
20784 | _ACEOF | |
20785 | ||
20786 | ||
20787 | ||
20788 | cat - <<_ACEOF >conftest.h | |
20789 | ||
20790 | _ACEOF | |
20791 | ||
20792 | ||
20793 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20794 | echo "obj-m := conftest.o" >build/Makefile | |
20795 | modpost_flag='' | |
20796 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20797 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20798 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20799 | (eval $ac_try) 2>&5 | |
20800 | ac_status=$? | |
20801 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20802 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20803 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20804 | (eval $ac_try) 2>&5 | |
20805 | ac_status=$? | |
20806 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20807 | test $ac_status = 0; }; }; then : | |
20808 | ||
20809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20810 | $as_echo "yes" >&6; } | |
20811 | ||
2078c8a7 | 20812 | $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h |
904dbe44 CIK |
20813 | |
20814 | ||
20815 | else | |
20816 | $as_echo "$as_me: failed program was:" >&5 | |
20817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20818 | ||
20819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20820 | $as_echo "no" >&6; } | |
20821 | ||
20822 | ||
20823 | ||
20824 | fi | |
20825 | rm -Rf build | |
20826 | ||
20827 | ||
20828 | ||
2078c8a7 DJL |
20829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5 |
20830 | $as_echo_n "checking whether check_disk_size_change() is available... " >&6; } | |
904dbe44 CIK |
20831 | |
20832 | ||
20833 | ||
20834 | cat confdefs.h - <<_ACEOF >conftest.c | |
20835 | ||
20836 | ||
20837 | #include <linux/fs.h> | |
20838 | ||
20839 | int | |
20840 | main (void) | |
20841 | { | |
20842 | ||
2078c8a7 | 20843 | check_disk_size_change(NULL, NULL); |
904dbe44 CIK |
20844 | |
20845 | ; | |
20846 | return 0; | |
20847 | } | |
20848 | ||
20849 | _ACEOF | |
20850 | ||
20851 | ||
20852 | ||
20853 | cat - <<_ACEOF >conftest.h | |
20854 | ||
20855 | _ACEOF | |
20856 | ||
20857 | ||
20858 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20859 | echo "obj-m := conftest.o" >build/Makefile | |
20860 | modpost_flag='' | |
20861 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20862 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20863 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20864 | (eval $ac_try) 2>&5 | |
20865 | ac_status=$? | |
20866 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20867 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20868 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20869 | (eval $ac_try) 2>&5 | |
20870 | ac_status=$? | |
20871 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20872 | test $ac_status = 0; }; }; then : | |
20873 | rc=0 | |
20874 | else | |
20875 | $as_echo "$as_me: failed program was:" >&5 | |
20876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20877 | rc=1 | |
20878 | ||
20879 | ||
20880 | fi | |
20881 | rm -Rf build | |
20882 | ||
20883 | ||
20884 | if test $rc -ne 0; then : | |
20885 | ||
20886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20887 | $as_echo "no" >&6; } | |
20888 | ||
20889 | else | |
20890 | if test "x$enable_linux_builtin" != xyes; then | |
20891 | ||
2078c8a7 | 20892 | grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \ |
904dbe44 CIK |
20893 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
20894 | rc=$? | |
20895 | if test $rc -ne 0; then | |
20896 | export=0 | |
2078c8a7 DJL |
20897 | for file in fs/block_dev.c; do |
20898 | grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \ | |
904dbe44 CIK |
20899 | "$LINUX/$file" 2>/dev/null |
20900 | rc=$? | |
20901 | if test $rc -eq 0; then | |
20902 | export=1 | |
20903 | break; | |
20904 | fi | |
20905 | done | |
20906 | if test $export -eq 0; then : | |
20907 | rc=1 | |
20908 | else : | |
20909 | rc=0 | |
20910 | fi | |
20911 | else : | |
20912 | rc=0 | |
20913 | fi | |
20914 | ||
20915 | fi | |
20916 | if test $rc -ne 0; then : | |
20917 | ||
20918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20919 | $as_echo "no" >&6; } | |
20920 | ||
20921 | else : | |
20922 | ||
20923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20924 | $as_echo "yes" >&6; } | |
20925 | ||
2078c8a7 | 20926 | $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h |
904dbe44 CIK |
20927 | |
20928 | ||
20929 | fi | |
20930 | fi | |
20931 | ||
20932 | ||
2078c8a7 DJL |
20933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5 |
20934 | $as_echo_n "checking whether truncate_setsize() is available... " >&6; } | |
904dbe44 | 20935 | |
904dbe44 CIK |
20936 | |
20937 | ||
20938 | cat confdefs.h - <<_ACEOF >conftest.c | |
20939 | ||
20940 | ||
2078c8a7 | 20941 | #include <linux/mm.h> |
904dbe44 CIK |
20942 | |
20943 | int | |
20944 | main (void) | |
20945 | { | |
20946 | ||
2078c8a7 | 20947 | truncate_setsize(NULL, 0); |
904dbe44 CIK |
20948 | |
20949 | ; | |
20950 | return 0; | |
20951 | } | |
20952 | ||
20953 | _ACEOF | |
20954 | ||
20955 | ||
20956 | ||
20957 | cat - <<_ACEOF >conftest.h | |
20958 | ||
20959 | _ACEOF | |
20960 | ||
20961 | ||
20962 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20963 | echo "obj-m := conftest.o" >build/Makefile | |
20964 | modpost_flag='' | |
20965 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20966 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20967 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20968 | (eval $ac_try) 2>&5 | |
20969 | ac_status=$? | |
20970 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20971 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20972 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20973 | (eval $ac_try) 2>&5 | |
20974 | ac_status=$? | |
20975 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20976 | test $ac_status = 0; }; }; then : | |
2078c8a7 DJL |
20977 | rc=0 |
20978 | else | |
20979 | $as_echo "$as_me: failed program was:" >&5 | |
20980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20981 | rc=1 | |
904dbe44 | 20982 | |
904dbe44 | 20983 | |
2078c8a7 DJL |
20984 | fi |
20985 | rm -Rf build | |
904dbe44 CIK |
20986 | |
20987 | ||
2078c8a7 | 20988 | if test $rc -ne 0; then : |
904dbe44 | 20989 | |
2078c8a7 DJL |
20990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
20991 | $as_echo "no" >&6; } | |
20992 | ||
20993 | else | |
20994 | if test "x$enable_linux_builtin" != xyes; then | |
20995 | ||
20996 | grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \ | |
20997 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
20998 | rc=$? | |
20999 | if test $rc -ne 0; then | |
21000 | export=0 | |
21001 | for file in mm/truncate.c; do | |
21002 | grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \ | |
21003 | "$LINUX/$file" 2>/dev/null | |
21004 | rc=$? | |
21005 | if test $rc -eq 0; then | |
21006 | export=1 | |
21007 | break; | |
21008 | fi | |
21009 | done | |
21010 | if test $export -eq 0; then : | |
21011 | rc=1 | |
21012 | else : | |
21013 | rc=0 | |
21014 | fi | |
21015 | else : | |
21016 | rc=0 | |
21017 | fi | |
21018 | ||
21019 | fi | |
21020 | if test $rc -ne 0; then : | |
904dbe44 CIK |
21021 | |
21022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21023 | $as_echo "no" >&6; } | |
21024 | ||
2078c8a7 | 21025 | else : |
904dbe44 | 21026 | |
2078c8a7 DJL |
21027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
21028 | $as_echo "yes" >&6; } | |
904dbe44 | 21029 | |
2078c8a7 | 21030 | $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h |
904dbe44 CIK |
21031 | |
21032 | ||
2078c8a7 DJL |
21033 | fi |
21034 | fi | |
21035 | ||
904dbe44 CIK |
21036 | |
21037 | ||
2078c8a7 DJL |
21038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5 |
21039 | $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; } | |
904dbe44 CIK |
21040 | |
21041 | ||
21042 | cat confdefs.h - <<_ACEOF >conftest.c | |
21043 | ||
21044 | ||
2078c8a7 | 21045 | #include <linux/security.h> |
904dbe44 CIK |
21046 | |
21047 | int | |
21048 | main (void) | |
21049 | { | |
21050 | ||
2078c8a7 DJL |
21051 | struct inode *ip __attribute__ ((unused)) = NULL; |
21052 | struct inode *dip __attribute__ ((unused)) = NULL; | |
21053 | const struct qstr *str __attribute__ ((unused)) = NULL; | |
21054 | char *name __attribute__ ((unused)) = NULL; | |
21055 | void *value __attribute__ ((unused)) = NULL; | |
21056 | size_t len __attribute__ ((unused)) = 0; | |
21057 | ||
21058 | security_inode_init_security(ip, dip, str, &name, &value, &len); | |
21059 | ||
21060 | ; | |
904dbe44 CIK |
21061 | return 0; |
21062 | } | |
21063 | ||
21064 | _ACEOF | |
21065 | ||
21066 | ||
21067 | ||
21068 | cat - <<_ACEOF >conftest.h | |
21069 | ||
21070 | _ACEOF | |
21071 | ||
21072 | ||
21073 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21074 | echo "obj-m := conftest.o" >build/Makefile | |
21075 | modpost_flag='' | |
21076 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21077 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21078 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21079 | (eval $ac_try) 2>&5 | |
21080 | ac_status=$? | |
21081 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21082 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21083 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21084 | (eval $ac_try) 2>&5 | |
21085 | ac_status=$? | |
21086 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21087 | test $ac_status = 0; }; }; then : | |
21088 | ||
21089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21090 | $as_echo "yes" >&6; } | |
21091 | ||
2078c8a7 | 21092 | $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h |
904dbe44 CIK |
21093 | |
21094 | ||
21095 | else | |
21096 | $as_echo "$as_me: failed program was:" >&5 | |
21097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21098 | ||
21099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21100 | $as_echo "no" >&6; } | |
21101 | ||
21102 | ||
21103 | ||
21104 | fi | |
21105 | rm -Rf build | |
21106 | ||
21107 | ||
21108 | ||
21109 | ||
2078c8a7 DJL |
21110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5 |
21111 | $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; } | |
904dbe44 CIK |
21112 | |
21113 | ||
21114 | cat confdefs.h - <<_ACEOF >conftest.c | |
21115 | ||
21116 | ||
2078c8a7 | 21117 | #include <linux/security.h> |
904dbe44 CIK |
21118 | |
21119 | int | |
21120 | main (void) | |
21121 | { | |
21122 | ||
2078c8a7 DJL |
21123 | struct inode *ip __attribute__ ((unused)) = NULL; |
21124 | struct inode *dip __attribute__ ((unused)) = NULL; | |
21125 | const struct qstr *str __attribute__ ((unused)) = NULL; | |
21126 | initxattrs func __attribute__ ((unused)) = NULL; | |
904dbe44 | 21127 | |
2078c8a7 | 21128 | security_inode_init_security(ip, dip, str, func, NULL); |
904dbe44 CIK |
21129 | |
21130 | ; | |
21131 | return 0; | |
21132 | } | |
21133 | ||
21134 | _ACEOF | |
21135 | ||
21136 | ||
21137 | ||
21138 | cat - <<_ACEOF >conftest.h | |
21139 | ||
21140 | _ACEOF | |
21141 | ||
21142 | ||
21143 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21144 | echo "obj-m := conftest.o" >build/Makefile | |
21145 | modpost_flag='' | |
21146 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21147 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21148 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21149 | (eval $ac_try) 2>&5 | |
21150 | ac_status=$? | |
21151 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21152 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21153 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21154 | (eval $ac_try) 2>&5 | |
21155 | ac_status=$? | |
21156 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21157 | test $ac_status = 0; }; }; then : | |
21158 | ||
21159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21160 | $as_echo "yes" >&6; } | |
21161 | ||
2078c8a7 | 21162 | $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h |
904dbe44 CIK |
21163 | |
21164 | ||
21165 | else | |
21166 | $as_echo "$as_me: failed program was:" >&5 | |
21167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21168 | ||
21169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21170 | $as_echo "no" >&6; } | |
21171 | ||
21172 | ||
21173 | ||
21174 | fi | |
21175 | rm -Rf build | |
21176 | ||
21177 | ||
21178 | ||
2078c8a7 DJL |
21179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5 |
21180 | $as_echo_n "checking whether mount_nodev() is available... " >&6; } | |
21181 | ||
904dbe44 CIK |
21182 | |
21183 | ||
21184 | cat confdefs.h - <<_ACEOF >conftest.c | |
21185 | ||
21186 | ||
21187 | #include <linux/fs.h> | |
21188 | ||
21189 | int | |
21190 | main (void) | |
21191 | { | |
21192 | ||
2078c8a7 | 21193 | mount_nodev(NULL, 0, NULL, NULL); |
904dbe44 CIK |
21194 | |
21195 | ; | |
21196 | return 0; | |
21197 | } | |
21198 | ||
21199 | _ACEOF | |
21200 | ||
21201 | ||
21202 | ||
21203 | cat - <<_ACEOF >conftest.h | |
21204 | ||
21205 | _ACEOF | |
21206 | ||
21207 | ||
21208 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21209 | echo "obj-m := conftest.o" >build/Makefile | |
21210 | modpost_flag='' | |
21211 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21212 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21213 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21214 | (eval $ac_try) 2>&5 | |
21215 | ac_status=$? | |
21216 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21217 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21218 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21219 | (eval $ac_try) 2>&5 | |
21220 | ac_status=$? | |
21221 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21222 | test $ac_status = 0; }; }; then : | |
2078c8a7 DJL |
21223 | rc=0 |
21224 | else | |
21225 | $as_echo "$as_me: failed program was:" >&5 | |
21226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21227 | rc=1 | |
904dbe44 | 21228 | |
904dbe44 | 21229 | |
2078c8a7 DJL |
21230 | fi |
21231 | rm -Rf build | |
904dbe44 CIK |
21232 | |
21233 | ||
2078c8a7 DJL |
21234 | if test $rc -ne 0; then : |
21235 | ||
21236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21237 | $as_echo "no" >&6; } | |
21238 | ||
21239 | else | |
21240 | if test "x$enable_linux_builtin" != xyes; then | |
21241 | ||
21242 | grep -q -E '[[:space:]]mount_nodev[[:space:]]' \ | |
21243 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21244 | rc=$? | |
21245 | if test $rc -ne 0; then | |
21246 | export=0 | |
21247 | for file in fs/super.c; do | |
21248 | grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \ | |
21249 | "$LINUX/$file" 2>/dev/null | |
21250 | rc=$? | |
21251 | if test $rc -eq 0; then | |
21252 | export=1 | |
21253 | break; | |
21254 | fi | |
21255 | done | |
21256 | if test $export -eq 0; then : | |
21257 | rc=1 | |
21258 | else : | |
21259 | rc=0 | |
21260 | fi | |
21261 | else : | |
21262 | rc=0 | |
21263 | fi | |
21264 | ||
21265 | fi | |
21266 | if test $rc -ne 0; then : | |
904dbe44 CIK |
21267 | |
21268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21269 | $as_echo "no" >&6; } | |
21270 | ||
2078c8a7 | 21271 | else : |
904dbe44 | 21272 | |
2078c8a7 DJL |
21273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
21274 | $as_echo "yes" >&6; } | |
904dbe44 | 21275 | |
2078c8a7 | 21276 | $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h |
904dbe44 CIK |
21277 | |
21278 | ||
2078c8a7 DJL |
21279 | fi |
21280 | fi | |
904dbe44 CIK |
21281 | |
21282 | ||
904dbe44 | 21283 | |
2078c8a7 DJL |
21284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5 |
21285 | $as_echo_n "checking whether super_block has s_shrink... " >&6; } | |
904dbe44 CIK |
21286 | |
21287 | ||
21288 | cat confdefs.h - <<_ACEOF >conftest.c | |
21289 | ||
21290 | ||
2078c8a7 DJL |
21291 | #include <linux/fs.h> |
21292 | ||
21293 | int shrink(struct shrinker *s, struct shrink_control *sc) | |
21294 | { return 0; } | |
21295 | ||
21296 | static const struct super_block | |
21297 | sb __attribute__ ((unused)) = { | |
21298 | .s_shrink.shrink = shrink, | |
21299 | .s_shrink.seeks = DEFAULT_SEEKS, | |
21300 | .s_shrink.batch = 0, | |
21301 | }; | |
904dbe44 CIK |
21302 | |
21303 | int | |
21304 | main (void) | |
21305 | { | |
21306 | ||
904dbe44 CIK |
21307 | |
21308 | ; | |
21309 | return 0; | |
21310 | } | |
21311 | ||
21312 | _ACEOF | |
21313 | ||
21314 | ||
21315 | ||
21316 | cat - <<_ACEOF >conftest.h | |
21317 | ||
21318 | _ACEOF | |
21319 | ||
21320 | ||
21321 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21322 | echo "obj-m := conftest.o" >build/Makefile | |
21323 | modpost_flag='' | |
21324 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21325 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21326 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21327 | (eval $ac_try) 2>&5 | |
21328 | ac_status=$? | |
21329 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21330 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21331 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21332 | (eval $ac_try) 2>&5 | |
21333 | ac_status=$? | |
21334 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21335 | test $ac_status = 0; }; }; then : | |
2078c8a7 DJL |
21336 | |
21337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21338 | $as_echo "yes" >&6; } | |
21339 | ||
21340 | $as_echo "#define HAVE_SHRINK 1" >>confdefs.h | |
21341 | ||
21342 | ||
21343 | ||
904dbe44 CIK |
21344 | else |
21345 | $as_echo "$as_me: failed program was:" >&5 | |
21346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2078c8a7 DJL |
21347 | |
21348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21349 | $as_echo "no" >&6; } | |
21350 | ||
904dbe44 CIK |
21351 | |
21352 | ||
21353 | fi | |
21354 | rm -Rf build | |
21355 | ||
21356 | ||
904dbe44 | 21357 | |
904dbe44 | 21358 | |
2078c8a7 DJL |
21359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5 |
21360 | $as_echo_n "checking whether shrink_control has nid... " >&6; } | |
904dbe44 CIK |
21361 | |
21362 | ||
21363 | cat confdefs.h - <<_ACEOF >conftest.c | |
21364 | ||
21365 | ||
2078c8a7 | 21366 | #include <linux/fs.h> |
904dbe44 CIK |
21367 | |
21368 | int | |
21369 | main (void) | |
21370 | { | |
21371 | ||
2078c8a7 DJL |
21372 | struct shrink_control sc __attribute__ ((unused)); |
21373 | unsigned long scnidsize __attribute__ ((unused)) = | |
21374 | sizeof(sc.nid); | |
904dbe44 CIK |
21375 | |
21376 | ; | |
21377 | return 0; | |
21378 | } | |
21379 | ||
21380 | _ACEOF | |
21381 | ||
21382 | ||
21383 | ||
21384 | cat - <<_ACEOF >conftest.h | |
21385 | ||
21386 | _ACEOF | |
21387 | ||
21388 | ||
21389 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21390 | echo "obj-m := conftest.o" >build/Makefile | |
21391 | modpost_flag='' | |
21392 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21393 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21394 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21395 | (eval $ac_try) 2>&5 | |
21396 | ac_status=$? | |
21397 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21398 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21399 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21400 | (eval $ac_try) 2>&5 | |
21401 | ac_status=$? | |
21402 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21403 | test $ac_status = 0; }; }; then : | |
904dbe44 | 21404 | |
2078c8a7 DJL |
21405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
21406 | $as_echo "yes" >&6; } | |
904dbe44 | 21407 | |
2078c8a7 | 21408 | $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h |
904dbe44 | 21409 | |
904dbe44 | 21410 | |
2078c8a7 DJL |
21411 | else |
21412 | $as_echo "$as_me: failed program was:" >&5 | |
21413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 | 21414 | |
2078c8a7 | 21415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 CIK |
21416 | $as_echo "no" >&6; } |
21417 | ||
904dbe44 CIK |
21418 | |
21419 | ||
2078c8a7 DJL |
21420 | fi |
21421 | rm -Rf build | |
904dbe44 | 21422 | |
904dbe44 | 21423 | |
904dbe44 | 21424 | |
904dbe44 | 21425 | |
2078c8a7 DJL |
21426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5 |
21427 | $as_echo_n "checking whether super_block has s_instances list_head... " >&6; } | |
904dbe44 CIK |
21428 | |
21429 | ||
21430 | cat confdefs.h - <<_ACEOF >conftest.c | |
21431 | ||
21432 | ||
2078c8a7 | 21433 | #include <linux/fs.h> |
904dbe44 CIK |
21434 | |
21435 | int | |
21436 | main (void) | |
21437 | { | |
21438 | ||
2078c8a7 DJL |
21439 | struct super_block sb __attribute__ ((unused)); |
21440 | ||
21441 | INIT_LIST_HEAD(&sb.s_instances); | |
904dbe44 CIK |
21442 | |
21443 | ; | |
21444 | return 0; | |
21445 | } | |
21446 | ||
21447 | _ACEOF | |
21448 | ||
21449 | ||
21450 | ||
21451 | cat - <<_ACEOF >conftest.h | |
21452 | ||
21453 | _ACEOF | |
21454 | ||
21455 | ||
21456 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21457 | echo "obj-m := conftest.o" >build/Makefile | |
21458 | modpost_flag='' | |
21459 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21460 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21461 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21462 | (eval $ac_try) 2>&5 | |
21463 | ac_status=$? | |
21464 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21465 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21466 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21467 | (eval $ac_try) 2>&5 | |
21468 | ac_status=$? | |
21469 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21470 | test $ac_status = 0; }; }; then : | |
2078c8a7 DJL |
21471 | |
21472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21473 | $as_echo "yes" >&6; } | |
21474 | ||
21475 | $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h | |
21476 | ||
21477 | ||
904dbe44 CIK |
21478 | else |
21479 | $as_echo "$as_me: failed program was:" >&5 | |
21480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2078c8a7 DJL |
21481 | |
21482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21483 | $as_echo "no" >&6; } | |
21484 | ||
904dbe44 CIK |
21485 | |
21486 | ||
21487 | fi | |
21488 | rm -Rf build | |
21489 | ||
21490 | ||
904dbe44 | 21491 | |
2078c8a7 DJL |
21492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5 |
21493 | $as_echo_n "checking whether super_block has s_d_op... " >&6; } | |
904dbe44 CIK |
21494 | |
21495 | ||
21496 | cat confdefs.h - <<_ACEOF >conftest.c | |
21497 | ||
21498 | ||
21499 | #include <linux/fs.h> | |
21500 | ||
21501 | int | |
21502 | main (void) | |
21503 | { | |
21504 | ||
2078c8a7 DJL |
21505 | struct super_block sb __attribute__ ((unused)); |
21506 | sb.s_d_op = NULL; | |
904dbe44 CIK |
21507 | |
21508 | ; | |
21509 | return 0; | |
21510 | } | |
21511 | ||
21512 | _ACEOF | |
21513 | ||
21514 | ||
21515 | ||
21516 | cat - <<_ACEOF >conftest.h | |
21517 | ||
21518 | _ACEOF | |
21519 | ||
21520 | ||
21521 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21522 | echo "obj-m := conftest.o" >build/Makefile | |
21523 | modpost_flag='' | |
21524 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21525 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21526 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21527 | (eval $ac_try) 2>&5 | |
21528 | ac_status=$? | |
21529 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21530 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21531 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21532 | (eval $ac_try) 2>&5 | |
21533 | ac_status=$? | |
21534 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21535 | test $ac_status = 0; }; }; then : | |
21536 | ||
21537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21538 | $as_echo "yes" >&6; } | |
21539 | ||
2078c8a7 | 21540 | $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h |
904dbe44 CIK |
21541 | |
21542 | ||
21543 | else | |
21544 | $as_echo "$as_me: failed program was:" >&5 | |
21545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21546 | ||
21547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21548 | $as_echo "no" >&6; } | |
21549 | ||
21550 | ||
21551 | ||
21552 | fi | |
21553 | rm -Rf build | |
21554 | ||
21555 | ||
21556 | ||
21557 | ||
2078c8a7 DJL |
21558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5 |
21559 | $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; } | |
21560 | ||
904dbe44 CIK |
21561 | |
21562 | ||
21563 | cat confdefs.h - <<_ACEOF >conftest.c | |
21564 | ||
21565 | ||
2078c8a7 DJL |
21566 | #include <linux/backing-dev.h> |
21567 | struct backing_dev_info bdi; | |
904dbe44 CIK |
21568 | |
21569 | int | |
21570 | main (void) | |
21571 | { | |
21572 | ||
2078c8a7 DJL |
21573 | char *name = "bdi"; |
21574 | int error __attribute__((unused)) = | |
21575 | bdi_setup_and_register(&bdi, name); | |
904dbe44 CIK |
21576 | |
21577 | ; | |
21578 | return 0; | |
21579 | } | |
21580 | ||
21581 | _ACEOF | |
21582 | ||
21583 | ||
21584 | ||
21585 | cat - <<_ACEOF >conftest.h | |
21586 | ||
21587 | _ACEOF | |
21588 | ||
21589 | ||
21590 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21591 | echo "obj-m := conftest.o" >build/Makefile | |
21592 | modpost_flag='' | |
21593 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21594 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21595 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21596 | (eval $ac_try) 2>&5 | |
21597 | ac_status=$? | |
21598 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21599 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21600 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21601 | (eval $ac_try) 2>&5 | |
21602 | ac_status=$? | |
21603 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21604 | test $ac_status = 0; }; }; then : | |
2078c8a7 | 21605 | rc=0 |
904dbe44 CIK |
21606 | else |
21607 | $as_echo "$as_me: failed program was:" >&5 | |
21608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2078c8a7 | 21609 | rc=1 |
904dbe44 CIK |
21610 | |
21611 | ||
21612 | fi | |
21613 | rm -Rf build | |
21614 | ||
21615 | ||
2078c8a7 DJL |
21616 | if test $rc -ne 0; then : |
21617 | ||
21618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21619 | $as_echo "no" >&6; } | |
21620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 | |
21621 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
904dbe44 | 21622 | |
904dbe44 CIK |
21623 | |
21624 | ||
21625 | cat confdefs.h - <<_ACEOF >conftest.c | |
21626 | ||
21627 | ||
2078c8a7 DJL |
21628 | #include <linux/backing-dev.h> |
21629 | struct backing_dev_info bdi; | |
904dbe44 CIK |
21630 | |
21631 | int | |
21632 | main (void) | |
21633 | { | |
21634 | ||
2078c8a7 DJL |
21635 | char *name = "bdi"; |
21636 | unsigned int cap = BDI_CAP_MAP_COPY; | |
21637 | int error __attribute__((unused)) = | |
21638 | bdi_setup_and_register(&bdi, name, cap); | |
904dbe44 CIK |
21639 | |
21640 | ; | |
21641 | return 0; | |
21642 | } | |
21643 | ||
21644 | _ACEOF | |
21645 | ||
21646 | ||
21647 | ||
21648 | cat - <<_ACEOF >conftest.h | |
21649 | ||
21650 | _ACEOF | |
21651 | ||
21652 | ||
21653 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21654 | echo "obj-m := conftest.o" >build/Makefile | |
21655 | modpost_flag='' | |
21656 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21657 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21658 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21659 | (eval $ac_try) 2>&5 | |
21660 | ac_status=$? | |
21661 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21662 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21663 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21664 | (eval $ac_try) 2>&5 | |
21665 | ac_status=$? | |
21666 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21667 | test $ac_status = 0; }; }; then : | |
2078c8a7 DJL |
21668 | rc=0 |
21669 | else | |
21670 | $as_echo "$as_me: failed program was:" >&5 | |
21671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21672 | rc=1 | |
904dbe44 | 21673 | |
904dbe44 | 21674 | |
2078c8a7 DJL |
21675 | fi |
21676 | rm -Rf build | |
904dbe44 CIK |
21677 | |
21678 | ||
2078c8a7 | 21679 | if test $rc -ne 0; then : |
904dbe44 | 21680 | |
2078c8a7 DJL |
21681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
21682 | $as_echo "no" >&6; } | |
21683 | ||
21684 | else | |
21685 | if test "x$enable_linux_builtin" != xyes; then | |
21686 | ||
21687 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
21688 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21689 | rc=$? | |
21690 | if test $rc -ne 0; then | |
21691 | export=0 | |
21692 | for file in mm/backing-dev.c; do | |
21693 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
21694 | "$LINUX/$file" 2>/dev/null | |
21695 | rc=$? | |
21696 | if test $rc -eq 0; then | |
21697 | export=1 | |
21698 | break; | |
21699 | fi | |
21700 | done | |
21701 | if test $export -eq 0; then : | |
21702 | rc=1 | |
21703 | else : | |
21704 | rc=0 | |
21705 | fi | |
21706 | else : | |
21707 | rc=0 | |
21708 | fi | |
21709 | ||
21710 | fi | |
21711 | if test $rc -ne 0; then : | |
21712 | ||
21713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
904dbe44 CIK |
21714 | $as_echo "no" >&6; } |
21715 | ||
2078c8a7 | 21716 | else : |
904dbe44 | 21717 | |
2078c8a7 DJL |
21718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
21719 | $as_echo "yes" >&6; } | |
904dbe44 | 21720 | |
2078c8a7 | 21721 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h |
904dbe44 CIK |
21722 | |
21723 | ||
2078c8a7 DJL |
21724 | fi |
21725 | fi | |
21726 | ||
904dbe44 | 21727 | |
2078c8a7 DJL |
21728 | else |
21729 | if test "x$enable_linux_builtin" != xyes; then | |
21730 | ||
21731 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
21732 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21733 | rc=$? | |
21734 | if test $rc -ne 0; then | |
21735 | export=0 | |
21736 | for file in mm/backing-dev.c; do | |
21737 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
21738 | "$LINUX/$file" 2>/dev/null | |
21739 | rc=$? | |
21740 | if test $rc -eq 0; then | |
21741 | export=1 | |
21742 | break; | |
21743 | fi | |
21744 | done | |
21745 | if test $export -eq 0; then : | |
21746 | rc=1 | |
21747 | else : | |
21748 | rc=0 | |
21749 | fi | |
21750 | else : | |
21751 | rc=0 | |
21752 | fi | |
21753 | ||
21754 | fi | |
21755 | if test $rc -ne 0; then : | |
21756 | ||
21757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21758 | $as_echo "no" >&6; } | |
21759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 | |
21760 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
904dbe44 CIK |
21761 | |
21762 | ||
21763 | ||
21764 | cat confdefs.h - <<_ACEOF >conftest.c | |
21765 | ||
21766 | ||
2078c8a7 DJL |
21767 | #include <linux/backing-dev.h> |
21768 | struct backing_dev_info bdi; | |
904dbe44 CIK |
21769 | |
21770 | int | |
21771 | main (void) | |
21772 | { | |
21773 | ||
2078c8a7 DJL |
21774 | char *name = "bdi"; |
21775 | unsigned int cap = BDI_CAP_MAP_COPY; | |
21776 | int error __attribute__((unused)) = | |
21777 | bdi_setup_and_register(&bdi, name, cap); | |
904dbe44 CIK |
21778 | |
21779 | ; | |
21780 | return 0; | |
21781 | } | |
21782 | ||
21783 | _ACEOF | |
21784 | ||
21785 | ||
21786 | ||
21787 | cat - <<_ACEOF >conftest.h | |
21788 | ||
21789 | _ACEOF | |
21790 | ||
21791 | ||
21792 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21793 | echo "obj-m := conftest.o" >build/Makefile | |
21794 | modpost_flag='' | |
21795 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21796 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21797 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21798 | (eval $ac_try) 2>&5 | |
21799 | ac_status=$? | |
21800 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21801 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21802 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21803 | (eval $ac_try) 2>&5 | |
21804 | ac_status=$? | |
21805 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21806 | test $ac_status = 0; }; }; then : | |
21807 | rc=0 | |
21808 | else | |
21809 | $as_echo "$as_me: failed program was:" >&5 | |
21810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21811 | rc=1 | |
21812 | ||
21813 | ||
21814 | fi | |
21815 | rm -Rf build | |
21816 | ||
21817 | ||
21818 | if test $rc -ne 0; then : | |
21819 | ||
2078c8a7 | 21820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 CIK |
21821 | $as_echo "no" >&6; } |
21822 | ||
21823 | else | |
21824 | if test "x$enable_linux_builtin" != xyes; then | |
21825 | ||
2078c8a7 | 21826 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ |
904dbe44 CIK |
21827 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
21828 | rc=$? | |
21829 | if test $rc -ne 0; then | |
21830 | export=0 | |
2078c8a7 DJL |
21831 | for file in mm/backing-dev.c; do |
21832 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
904dbe44 CIK |
21833 | "$LINUX/$file" 2>/dev/null |
21834 | rc=$? | |
21835 | if test $rc -eq 0; then | |
21836 | export=1 | |
21837 | break; | |
21838 | fi | |
21839 | done | |
21840 | if test $export -eq 0; then : | |
21841 | rc=1 | |
21842 | else : | |
21843 | rc=0 | |
21844 | fi | |
21845 | else : | |
21846 | rc=0 | |
21847 | fi | |
21848 | ||
21849 | fi | |
21850 | if test $rc -ne 0; then : | |
21851 | ||
2078c8a7 | 21852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 CIK |
21853 | $as_echo "no" >&6; } |
21854 | ||
21855 | else : | |
21856 | ||
2078c8a7 | 21857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
21858 | $as_echo "yes" >&6; } |
21859 | ||
2078c8a7 | 21860 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h |
904dbe44 CIK |
21861 | |
21862 | ||
21863 | fi | |
21864 | fi | |
21865 | ||
21866 | ||
2078c8a7 | 21867 | else : |
904dbe44 | 21868 | |
2078c8a7 DJL |
21869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
21870 | $as_echo "yes" >&6; } | |
904dbe44 | 21871 | |
2078c8a7 | 21872 | $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h |
904dbe44 | 21873 | |
904dbe44 | 21874 | |
2078c8a7 DJL |
21875 | fi |
21876 | fi | |
904dbe44 | 21877 | |
904dbe44 | 21878 | |
2078c8a7 DJL |
21879 | |
21880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5 | |
21881 | $as_echo_n "checking whether set_nlink() is available... " >&6; } | |
21882 | ||
21883 | ||
21884 | cat confdefs.h - <<_ACEOF >conftest.c | |
21885 | ||
21886 | ||
21887 | #include <linux/fs.h> | |
904dbe44 CIK |
21888 | |
21889 | int | |
21890 | main (void) | |
21891 | { | |
21892 | ||
2078c8a7 DJL |
21893 | struct inode node; |
21894 | unsigned int link = 0; | |
21895 | (void) set_nlink(&node, link); | |
904dbe44 CIK |
21896 | |
21897 | ; | |
21898 | return 0; | |
21899 | } | |
21900 | ||
21901 | _ACEOF | |
21902 | ||
21903 | ||
21904 | ||
21905 | cat - <<_ACEOF >conftest.h | |
21906 | ||
21907 | _ACEOF | |
21908 | ||
21909 | ||
21910 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21911 | echo "obj-m := conftest.o" >build/Makefile | |
21912 | modpost_flag='' | |
21913 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21914 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21915 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21916 | (eval $ac_try) 2>&5 | |
21917 | ac_status=$? | |
21918 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21919 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21920 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21921 | (eval $ac_try) 2>&5 | |
21922 | ac_status=$? | |
21923 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21924 | test $ac_status = 0; }; }; then : | |
21925 | ||
21926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21927 | $as_echo "yes" >&6; } | |
21928 | ||
2078c8a7 | 21929 | $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h |
904dbe44 CIK |
21930 | |
21931 | ||
21932 | else | |
21933 | $as_echo "$as_me: failed program was:" >&5 | |
21934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21935 | ||
21936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21937 | $as_echo "no" >&6; } | |
21938 | ||
904dbe44 CIK |
21939 | |
21940 | ||
2078c8a7 DJL |
21941 | fi |
21942 | rm -Rf build | |
904dbe44 CIK |
21943 | |
21944 | ||
904dbe44 | 21945 | |
2078c8a7 DJL |
21946 | |
21947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5 | |
21948 | $as_echo_n "checking whether elevator_change() is available... " >&6; } | |
21949 | tmp_flags="$EXTRA_KCFLAGS" | |
21950 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
21951 | ||
21952 | ||
21953 | cat confdefs.h - <<_ACEOF >conftest.c | |
21954 | ||
21955 | ||
21956 | #include <linux/blkdev.h> | |
21957 | #include <linux/elevator.h> | |
904dbe44 CIK |
21958 | |
21959 | int | |
21960 | main (void) | |
21961 | { | |
21962 | ||
2078c8a7 DJL |
21963 | int ret; |
21964 | struct request_queue *q = NULL; | |
21965 | char *elevator = NULL; | |
21966 | ret = elevator_change(q, elevator); | |
904dbe44 CIK |
21967 | |
21968 | ; | |
21969 | return 0; | |
21970 | } | |
21971 | ||
21972 | _ACEOF | |
21973 | ||
21974 | ||
21975 | ||
21976 | cat - <<_ACEOF >conftest.h | |
21977 | ||
21978 | _ACEOF | |
21979 | ||
21980 | ||
21981 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21982 | echo "obj-m := conftest.o" >build/Makefile | |
21983 | modpost_flag='' | |
21984 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21985 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21986 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21987 | (eval $ac_try) 2>&5 | |
21988 | ac_status=$? | |
21989 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21990 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21991 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21992 | (eval $ac_try) 2>&5 | |
21993 | ac_status=$? | |
21994 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21995 | test $ac_status = 0; }; }; then : | |
21996 | ||
2078c8a7 | 21997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
21998 | $as_echo "yes" >&6; } |
21999 | ||
2078c8a7 | 22000 | $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h |
904dbe44 CIK |
22001 | |
22002 | ||
22003 | else | |
22004 | $as_echo "$as_me: failed program was:" >&5 | |
22005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22006 | ||
2078c8a7 DJL |
22007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
22008 | $as_echo "no" >&6; } | |
904dbe44 CIK |
22009 | |
22010 | ||
22011 | ||
22012 | fi | |
22013 | rm -Rf build | |
22014 | ||
22015 | ||
2078c8a7 | 22016 | EXTRA_KCFLAGS="$tmp_flags" |
904dbe44 | 22017 | |
2078c8a7 DJL |
22018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5 |
22019 | $as_echo_n "checking whether sget() wants 5 args... " >&6; } | |
904dbe44 CIK |
22020 | |
22021 | ||
22022 | cat confdefs.h - <<_ACEOF >conftest.c | |
22023 | ||
22024 | ||
22025 | #include <linux/fs.h> | |
22026 | ||
904dbe44 CIK |
22027 | int |
22028 | main (void) | |
22029 | { | |
22030 | ||
2078c8a7 DJL |
22031 | struct file_system_type *type = NULL; |
22032 | int (*test)(struct super_block *,void *) = NULL; | |
22033 | int (*set)(struct super_block *,void *) = NULL; | |
22034 | int flags = 0; | |
22035 | void *data = NULL; | |
22036 | (void) sget(type, test, set, flags, data); | |
904dbe44 CIK |
22037 | |
22038 | ; | |
22039 | return 0; | |
22040 | } | |
22041 | ||
22042 | _ACEOF | |
22043 | ||
22044 | ||
22045 | ||
22046 | cat - <<_ACEOF >conftest.h | |
22047 | ||
22048 | _ACEOF | |
22049 | ||
22050 | ||
22051 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22052 | echo "obj-m := conftest.o" >build/Makefile | |
22053 | modpost_flag='' | |
22054 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22055 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22056 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22057 | (eval $ac_try) 2>&5 | |
22058 | ac_status=$? | |
22059 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22060 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22061 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22062 | (eval $ac_try) 2>&5 | |
22063 | ac_status=$? | |
22064 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22065 | test $ac_status = 0; }; }; then : | |
22066 | ||
22067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22068 | $as_echo "yes" >&6; } | |
22069 | ||
2078c8a7 | 22070 | $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h |
904dbe44 CIK |
22071 | |
22072 | ||
22073 | else | |
22074 | $as_echo "$as_me: failed program was:" >&5 | |
22075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22076 | ||
22077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22078 | $as_echo "no" >&6; } | |
22079 | ||
22080 | ||
22081 | ||
22082 | fi | |
22083 | rm -Rf build | |
22084 | ||
22085 | ||
22086 | ||
2078c8a7 DJL |
22087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5 |
22088 | $as_echo_n "checking whether lseek_execute() is available... " >&6; } | |
904dbe44 | 22089 | |
904dbe44 CIK |
22090 | |
22091 | ||
22092 | cat confdefs.h - <<_ACEOF >conftest.c | |
22093 | ||
22094 | ||
2078c8a7 | 22095 | #include <linux/fs.h> |
904dbe44 CIK |
22096 | |
22097 | int | |
22098 | main (void) | |
22099 | { | |
22100 | ||
2078c8a7 DJL |
22101 | struct file *fp __attribute__ ((unused)) = NULL; |
22102 | struct inode *ip __attribute__ ((unused)) = NULL; | |
22103 | loff_t offset __attribute__ ((unused)) = 0; | |
22104 | loff_t maxsize __attribute__ ((unused)) = 0; | |
22105 | ||
22106 | lseek_execute(fp, ip, offset, maxsize); | |
904dbe44 CIK |
22107 | |
22108 | ; | |
22109 | return 0; | |
22110 | } | |
22111 | ||
22112 | _ACEOF | |
22113 | ||
22114 | ||
22115 | ||
22116 | cat - <<_ACEOF >conftest.h | |
22117 | ||
22118 | _ACEOF | |
22119 | ||
22120 | ||
22121 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22122 | echo "obj-m := conftest.o" >build/Makefile | |
22123 | modpost_flag='' | |
22124 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22125 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22126 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22127 | (eval $ac_try) 2>&5 | |
22128 | ac_status=$? | |
22129 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22130 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22131 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22132 | (eval $ac_try) 2>&5 | |
22133 | ac_status=$? | |
22134 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22135 | test $ac_status = 0; }; }; then : | |
2078c8a7 DJL |
22136 | rc=0 |
22137 | else | |
22138 | $as_echo "$as_me: failed program was:" >&5 | |
22139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22140 | rc=1 | |
904dbe44 | 22141 | |
904dbe44 | 22142 | |
2078c8a7 DJL |
22143 | fi |
22144 | rm -Rf build | |
904dbe44 CIK |
22145 | |
22146 | ||
2078c8a7 DJL |
22147 | if test $rc -ne 0; then : |
22148 | ||
22149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22150 | $as_echo "no" >&6; } | |
22151 | ||
22152 | else | |
22153 | if test "x$enable_linux_builtin" != xyes; then | |
22154 | ||
22155 | grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \ | |
22156 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
22157 | rc=$? | |
22158 | if test $rc -ne 0; then | |
22159 | export=0 | |
22160 | for file in fs/read_write.c; do | |
22161 | grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \ | |
22162 | "$LINUX/$file" 2>/dev/null | |
22163 | rc=$? | |
22164 | if test $rc -eq 0; then | |
22165 | export=1 | |
22166 | break; | |
22167 | fi | |
22168 | done | |
22169 | if test $export -eq 0; then : | |
22170 | rc=1 | |
22171 | else : | |
22172 | rc=0 | |
22173 | fi | |
22174 | else : | |
22175 | rc=0 | |
22176 | fi | |
22177 | ||
22178 | fi | |
22179 | if test $rc -ne 0; then : | |
904dbe44 CIK |
22180 | |
22181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22182 | $as_echo "no" >&6; } | |
22183 | ||
2078c8a7 | 22184 | else : |
904dbe44 | 22185 | |
2078c8a7 DJL |
22186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
22187 | $as_echo "yes" >&6; } | |
904dbe44 | 22188 | |
2078c8a7 | 22189 | $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h |
904dbe44 CIK |
22190 | |
22191 | ||
2078c8a7 DJL |
22192 | fi |
22193 | fi | |
22194 | ||
904dbe44 CIK |
22195 | |
22196 | ||
2078c8a7 DJL |
22197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5 |
22198 | $as_echo_n "checking whether fops->iterate() is available... " >&6; } | |
904dbe44 CIK |
22199 | |
22200 | ||
22201 | cat confdefs.h - <<_ACEOF >conftest.c | |
22202 | ||
22203 | ||
2078c8a7 DJL |
22204 | #include <linux/fs.h> |
22205 | int iterate(struct file *filp, struct dir_context * context) | |
22206 | { return 0; } | |
22207 | ||
22208 | static const struct file_operations fops | |
22209 | __attribute__ ((unused)) = { | |
22210 | .iterate = iterate, | |
22211 | }; | |
904dbe44 CIK |
22212 | |
22213 | int | |
22214 | main (void) | |
22215 | { | |
22216 | ||
904dbe44 CIK |
22217 | |
22218 | ; | |
22219 | return 0; | |
22220 | } | |
22221 | ||
22222 | _ACEOF | |
22223 | ||
22224 | ||
22225 | ||
22226 | cat - <<_ACEOF >conftest.h | |
22227 | ||
22228 | _ACEOF | |
22229 | ||
22230 | ||
22231 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22232 | echo "obj-m := conftest.o" >build/Makefile | |
22233 | modpost_flag='' | |
22234 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22235 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22236 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22237 | (eval $ac_try) 2>&5 | |
22238 | ac_status=$? | |
22239 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22240 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22241 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22242 | (eval $ac_try) 2>&5 | |
22243 | ac_status=$? | |
22244 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22245 | test $ac_status = 0; }; }; then : | |
22246 | ||
22247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22248 | $as_echo "yes" >&6; } | |
22249 | ||
2078c8a7 | 22250 | $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h |
904dbe44 CIK |
22251 | |
22252 | ||
22253 | else | |
22254 | $as_echo "$as_me: failed program was:" >&5 | |
22255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22256 | ||
22257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22258 | $as_echo "no" >&6; } | |
22259 | ||
2078c8a7 DJL |
22260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5 |
22261 | $as_echo_n "checking whether fops->readdir() is available... " >&6; } | |
904dbe44 CIK |
22262 | |
22263 | ||
22264 | cat confdefs.h - <<_ACEOF >conftest.c | |
22265 | ||
22266 | ||
2078c8a7 DJL |
22267 | #include <linux/fs.h> |
22268 | int readdir(struct file *filp, void *entry, filldir_t func) | |
22269 | { return 0; } | |
904dbe44 | 22270 | |
2078c8a7 DJL |
22271 | static const struct file_operations fops |
22272 | __attribute__ ((unused)) = { | |
22273 | .readdir = readdir, | |
22274 | }; | |
904dbe44 CIK |
22275 | |
22276 | int | |
22277 | main (void) | |
22278 | { | |
22279 | ||
904dbe44 CIK |
22280 | |
22281 | ; | |
22282 | return 0; | |
22283 | } | |
22284 | ||
22285 | _ACEOF | |
22286 | ||
22287 | ||
22288 | ||
22289 | cat - <<_ACEOF >conftest.h | |
22290 | ||
22291 | _ACEOF | |
22292 | ||
22293 | ||
22294 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22295 | echo "obj-m := conftest.o" >build/Makefile | |
22296 | modpost_flag='' | |
22297 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22298 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22299 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22300 | (eval $ac_try) 2>&5 | |
22301 | ac_status=$? | |
22302 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22303 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22304 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22305 | (eval $ac_try) 2>&5 | |
22306 | ac_status=$? | |
22307 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22308 | test $ac_status = 0; }; }; then : | |
22309 | ||
2078c8a7 | 22310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
22311 | $as_echo "yes" >&6; } |
22312 | ||
2078c8a7 | 22313 | $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h |
904dbe44 CIK |
22314 | |
22315 | ||
22316 | else | |
22317 | $as_echo "$as_me: failed program was:" >&5 | |
22318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22319 | ||
2078c8a7 DJL |
22320 | as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5 |
22321 | ||
22322 | ||
22323 | ||
22324 | fi | |
22325 | rm -Rf build | |
22326 | ||
22327 | ||
22328 | ||
22329 | ||
22330 | ||
22331 | ||
22332 | fi | |
22333 | rm -Rf build | |
22334 | ||
22335 | ||
22336 | ||
22337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5 | |
22338 | $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; } | |
904dbe44 CIK |
22339 | |
22340 | ||
22341 | cat confdefs.h - <<_ACEOF >conftest.c | |
22342 | ||
22343 | ||
2078c8a7 | 22344 | #include <linux/fs.h> |
904dbe44 | 22345 | |
2078c8a7 DJL |
22346 | ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to) |
22347 | { return 0; } | |
22348 | ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from) | |
22349 | { return 0; } | |
22350 | ||
22351 | static const struct file_operations | |
22352 | fops __attribute__ ((unused)) = { | |
22353 | .read_iter = test_read, | |
22354 | .write_iter = test_write, | |
22355 | }; | |
904dbe44 CIK |
22356 | |
22357 | int | |
22358 | main (void) | |
22359 | { | |
22360 | ||
904dbe44 CIK |
22361 | |
22362 | ; | |
22363 | return 0; | |
22364 | } | |
22365 | ||
22366 | _ACEOF | |
22367 | ||
22368 | ||
22369 | ||
22370 | cat - <<_ACEOF >conftest.h | |
22371 | ||
22372 | _ACEOF | |
22373 | ||
22374 | ||
22375 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22376 | echo "obj-m := conftest.o" >build/Makefile | |
22377 | modpost_flag='' | |
22378 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22379 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22380 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22381 | (eval $ac_try) 2>&5 | |
22382 | ac_status=$? | |
22383 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22384 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22385 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22386 | (eval $ac_try) 2>&5 | |
22387 | ac_status=$? | |
22388 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22389 | test $ac_status = 0; }; }; then : | |
22390 | ||
2078c8a7 | 22391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
22392 | $as_echo "yes" >&6; } |
22393 | ||
2078c8a7 | 22394 | $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h |
904dbe44 CIK |
22395 | |
22396 | ||
22397 | else | |
22398 | $as_echo "$as_me: failed program was:" >&5 | |
22399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22400 | ||
2078c8a7 | 22401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 | 22402 | $as_echo "no" >&6; } |
904dbe44 CIK |
22403 | |
22404 | ||
904dbe44 | 22405 | |
bfbaa379 CIK |
22406 | fi |
22407 | rm -Rf build | |
22408 | ||
22409 | ||
22410 | ||
22411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5 | |
22412 | $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; } | |
22413 | ||
22414 | ||
22415 | cat confdefs.h - <<_ACEOF >conftest.c | |
22416 | ||
22417 | ||
22418 | #include <linux/fs.h> | |
22419 | ||
22420 | ||
22421 | int | |
22422 | main (void) | |
22423 | { | |
22424 | ||
22425 | struct kiocb *iocb = NULL; | |
22426 | struct iov_iter *iov = NULL; | |
22427 | generic_write_checks(iocb, iov); | |
22428 | ||
22429 | ; | |
22430 | return 0; | |
22431 | } | |
22432 | ||
22433 | _ACEOF | |
22434 | ||
22435 | ||
22436 | ||
22437 | cat - <<_ACEOF >conftest.h | |
22438 | ||
22439 | _ACEOF | |
22440 | ||
22441 | ||
22442 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22443 | echo "obj-m := conftest.o" >build/Makefile | |
22444 | modpost_flag='' | |
22445 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22446 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22447 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22448 | (eval $ac_try) 2>&5 | |
22449 | ac_status=$? | |
22450 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22451 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22452 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22453 | (eval $ac_try) 2>&5 | |
22454 | ac_status=$? | |
22455 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22456 | test $ac_status = 0; }; }; then : | |
22457 | ||
22458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22459 | $as_echo "yes" >&6; } | |
22460 | ||
22461 | $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h | |
22462 | ||
22463 | ||
22464 | else | |
22465 | $as_echo "$as_me: failed program was:" >&5 | |
22466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22467 | ||
22468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22469 | $as_echo "no" >&6; } | |
22470 | ||
22471 | ||
22472 | ||
2078c8a7 DJL |
22473 | fi |
22474 | rm -Rf build | |
904dbe44 | 22475 | |
904dbe44 | 22476 | |
2078c8a7 DJL |
22477 | |
22478 | ||
22479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5 | |
22480 | $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; } | |
22481 | ||
22482 | ||
22483 | cat confdefs.h - <<_ACEOF >conftest.c | |
22484 | ||
22485 | ||
22486 | #include <linux/pagemap.h> | |
904dbe44 CIK |
22487 | |
22488 | int | |
22489 | main (void) | |
22490 | { | |
22491 | ||
2078c8a7 DJL |
22492 | struct page page; |
22493 | kmap_atomic(&page); | |
904dbe44 CIK |
22494 | |
22495 | ; | |
22496 | return 0; | |
22497 | } | |
22498 | ||
22499 | _ACEOF | |
22500 | ||
22501 | ||
22502 | ||
22503 | cat - <<_ACEOF >conftest.h | |
22504 | ||
22505 | _ACEOF | |
22506 | ||
22507 | ||
22508 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22509 | echo "obj-m := conftest.o" >build/Makefile | |
22510 | modpost_flag='' | |
22511 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22512 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22513 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22514 | (eval $ac_try) 2>&5 | |
22515 | ac_status=$? | |
22516 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22517 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22518 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22519 | (eval $ac_try) 2>&5 | |
22520 | ac_status=$? | |
22521 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22522 | test $ac_status = 0; }; }; then : | |
22523 | ||
2078c8a7 | 22524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
22525 | $as_echo "yes" >&6; } |
22526 | ||
2078c8a7 | 22527 | $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h |
904dbe44 CIK |
22528 | |
22529 | ||
22530 | else | |
22531 | $as_echo "$as_me: failed program was:" >&5 | |
22532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22533 | ||
2078c8a7 DJL |
22534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
22535 | $as_echo "no" >&6; } | |
904dbe44 CIK |
22536 | |
22537 | ||
22538 | ||
22539 | fi | |
22540 | rm -Rf build | |
22541 | ||
22542 | ||
22543 | ||
22544 | ||
2078c8a7 DJL |
22545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5 |
22546 | $as_echo_n "checking whether follow_down_one() is available... " >&6; } | |
904dbe44 CIK |
22547 | |
22548 | ||
22549 | cat confdefs.h - <<_ACEOF >conftest.c | |
22550 | ||
22551 | ||
2078c8a7 | 22552 | #include <linux/namei.h> |
904dbe44 CIK |
22553 | |
22554 | int | |
22555 | main (void) | |
22556 | { | |
22557 | ||
2078c8a7 DJL |
22558 | struct path *p = NULL; |
22559 | follow_down_one(p); | |
904dbe44 CIK |
22560 | |
22561 | ; | |
22562 | return 0; | |
22563 | } | |
22564 | ||
22565 | _ACEOF | |
22566 | ||
22567 | ||
22568 | ||
22569 | cat - <<_ACEOF >conftest.h | |
22570 | ||
22571 | _ACEOF | |
22572 | ||
22573 | ||
22574 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22575 | echo "obj-m := conftest.o" >build/Makefile | |
22576 | modpost_flag='' | |
22577 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22578 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22579 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22580 | (eval $ac_try) 2>&5 | |
22581 | ac_status=$? | |
22582 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22583 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22584 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22585 | (eval $ac_try) 2>&5 | |
22586 | ac_status=$? | |
22587 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22588 | test $ac_status = 0; }; }; then : | |
2078c8a7 DJL |
22589 | |
22590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22591 | $as_echo "yes" >&6; } | |
22592 | ||
22593 | $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h | |
22594 | ||
22595 | ||
904dbe44 CIK |
22596 | else |
22597 | $as_echo "$as_me: failed program was:" >&5 | |
22598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2078c8a7 DJL |
22599 | |
22600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22601 | $as_echo "no" >&6; } | |
22602 | ||
904dbe44 CIK |
22603 | |
22604 | ||
22605 | fi | |
22606 | rm -Rf build | |
22607 | ||
22608 | ||
904dbe44 | 22609 | |
904dbe44 | 22610 | |
2078c8a7 DJL |
22611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5 |
22612 | $as_echo_n "checking whether make_request_fn() returns int... " >&6; } | |
904dbe44 | 22613 | |
904dbe44 | 22614 | |
2078c8a7 | 22615 | cat confdefs.h - <<_ACEOF >conftest.c |
904dbe44 | 22616 | |
904dbe44 | 22617 | |
2078c8a7 | 22618 | #include <linux/blkdev.h> |
904dbe44 | 22619 | |
2078c8a7 DJL |
22620 | int make_request(struct request_queue *q, struct bio *bio) |
22621 | { | |
22622 | return (0); | |
22623 | } | |
904dbe44 | 22624 | |
2078c8a7 DJL |
22625 | int |
22626 | main (void) | |
22627 | { | |
904dbe44 | 22628 | |
2078c8a7 | 22629 | blk_queue_make_request(NULL, &make_request); |
904dbe44 | 22630 | |
2078c8a7 DJL |
22631 | ; |
22632 | return 0; | |
22633 | } | |
904dbe44 | 22634 | |
2078c8a7 | 22635 | _ACEOF |
904dbe44 CIK |
22636 | |
22637 | ||
904dbe44 | 22638 | |
2078c8a7 | 22639 | cat - <<_ACEOF >conftest.h |
904dbe44 | 22640 | |
2078c8a7 | 22641 | _ACEOF |
904dbe44 CIK |
22642 | |
22643 | ||
2078c8a7 DJL |
22644 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
22645 | echo "obj-m := conftest.o" >build/Makefile | |
22646 | modpost_flag='' | |
22647 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22648 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22649 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22650 | (eval $ac_try) 2>&5 | |
22651 | ac_status=$? | |
22652 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22653 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22654 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22655 | (eval $ac_try) 2>&5 | |
22656 | ac_status=$? | |
22657 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22658 | test $ac_status = 0; }; }; then : | |
904dbe44 | 22659 | |
2078c8a7 DJL |
22660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
22661 | $as_echo "yes" >&6; } | |
904dbe44 | 22662 | |
2078c8a7 | 22663 | $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h |
904dbe44 | 22664 | |
904dbe44 | 22665 | |
2078c8a7 | 22666 | $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h |
904dbe44 | 22667 | |
904dbe44 CIK |
22668 | |
22669 | else | |
2078c8a7 DJL |
22670 | $as_echo "$as_me: failed program was:" >&5 |
22671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 | 22672 | |
2078c8a7 DJL |
22673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
22674 | $as_echo "no" >&6; } | |
22675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5 | |
22676 | $as_echo_n "checking whether make_request_fn() returns void... " >&6; } | |
904dbe44 | 22677 | |
904dbe44 | 22678 | |
2078c8a7 | 22679 | cat confdefs.h - <<_ACEOF >conftest.c |
904dbe44 CIK |
22680 | |
22681 | ||
2078c8a7 | 22682 | #include <linux/blkdev.h> |
904dbe44 | 22683 | |
2078c8a7 DJL |
22684 | void make_request(struct request_queue *q, struct bio *bio) |
22685 | { | |
22686 | return; | |
22687 | } | |
904dbe44 | 22688 | |
2078c8a7 DJL |
22689 | int |
22690 | main (void) | |
22691 | { | |
904dbe44 | 22692 | |
2078c8a7 | 22693 | blk_queue_make_request(NULL, &make_request); |
904dbe44 | 22694 | |
2078c8a7 DJL |
22695 | ; |
22696 | return 0; | |
22697 | } | |
904dbe44 | 22698 | |
2078c8a7 | 22699 | _ACEOF |
904dbe44 | 22700 | |
904dbe44 CIK |
22701 | |
22702 | ||
2078c8a7 | 22703 | cat - <<_ACEOF >conftest.h |
904dbe44 | 22704 | |
2078c8a7 | 22705 | _ACEOF |
904dbe44 | 22706 | |
904dbe44 | 22707 | |
2078c8a7 DJL |
22708 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
22709 | echo "obj-m := conftest.o" >build/Makefile | |
22710 | modpost_flag='' | |
22711 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22712 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22713 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22714 | (eval $ac_try) 2>&5 | |
22715 | ac_status=$? | |
22716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22717 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22718 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22719 | (eval $ac_try) 2>&5 | |
22720 | ac_status=$? | |
22721 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22722 | test $ac_status = 0; }; }; then : | |
904dbe44 | 22723 | |
2078c8a7 DJL |
22724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
22725 | $as_echo "yes" >&6; } | |
904dbe44 | 22726 | |
2078c8a7 | 22727 | $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h |
904dbe44 CIK |
22728 | |
22729 | ||
904dbe44 | 22730 | else |
2078c8a7 DJL |
22731 | $as_echo "$as_me: failed program was:" >&5 |
22732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 | 22733 | |
2078c8a7 DJL |
22734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
22735 | $as_echo "no" >&6; } | |
22736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5 | |
22737 | $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; } | |
904dbe44 CIK |
22738 | |
22739 | ||
2078c8a7 | 22740 | cat confdefs.h - <<_ACEOF >conftest.c |
904dbe44 CIK |
22741 | |
22742 | ||
2078c8a7 | 22743 | #include <linux/blkdev.h> |
904dbe44 | 22744 | |
2078c8a7 DJL |
22745 | blk_qc_t make_request(struct request_queue *q, struct bio *bio) |
22746 | { | |
22747 | return (BLK_QC_T_NONE); | |
22748 | } | |
904dbe44 | 22749 | |
2078c8a7 DJL |
22750 | int |
22751 | main (void) | |
22752 | { | |
904dbe44 | 22753 | |
2078c8a7 | 22754 | blk_queue_make_request(NULL, &make_request); |
904dbe44 | 22755 | |
2078c8a7 DJL |
22756 | ; |
22757 | return 0; | |
22758 | } | |
904dbe44 | 22759 | |
2078c8a7 | 22760 | _ACEOF |
904dbe44 CIK |
22761 | |
22762 | ||
904dbe44 | 22763 | |
2078c8a7 | 22764 | cat - <<_ACEOF >conftest.h |
904dbe44 | 22765 | |
2078c8a7 | 22766 | _ACEOF |
904dbe44 CIK |
22767 | |
22768 | ||
2078c8a7 DJL |
22769 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
22770 | echo "obj-m := conftest.o" >build/Makefile | |
22771 | modpost_flag='' | |
22772 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22773 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22774 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22775 | (eval $ac_try) 2>&5 | |
22776 | ac_status=$? | |
22777 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22778 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22779 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22780 | (eval $ac_try) 2>&5 | |
22781 | ac_status=$? | |
22782 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22783 | test $ac_status = 0; }; }; then : | |
904dbe44 | 22784 | |
2078c8a7 DJL |
22785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
22786 | $as_echo "yes" >&6; } | |
904dbe44 | 22787 | |
2078c8a7 | 22788 | $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h |
904dbe44 CIK |
22789 | |
22790 | ||
2078c8a7 | 22791 | $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h |
904dbe44 CIK |
22792 | |
22793 | ||
904dbe44 | 22794 | else |
2078c8a7 DJL |
22795 | $as_echo "$as_me: failed program was:" >&5 |
22796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 | 22797 | |
2078c8a7 DJL |
22798 | as_fn_error $? "no - Please file a bug report at |
22799 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
904dbe44 CIK |
22800 | |
22801 | ||
904dbe44 | 22802 | |
904dbe44 | 22803 | fi |
2078c8a7 | 22804 | rm -Rf build |
904dbe44 CIK |
22805 | |
22806 | ||
904dbe44 | 22807 | |
904dbe44 | 22808 | |
904dbe44 CIK |
22809 | |
22810 | fi | |
2078c8a7 | 22811 | rm -Rf build |
904dbe44 | 22812 | |
904dbe44 CIK |
22813 | |
22814 | ||
904dbe44 CIK |
22815 | |
22816 | ||
2078c8a7 DJL |
22817 | fi |
22818 | rm -Rf build | |
904dbe44 | 22819 | |
904dbe44 CIK |
22820 | |
22821 | ||
904dbe44 | 22822 | |
2078c8a7 DJL |
22823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5 |
22824 | $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; } | |
904dbe44 | 22825 | |
904dbe44 | 22826 | |
904dbe44 | 22827 | |
2078c8a7 | 22828 | cat confdefs.h - <<_ACEOF >conftest.c |
904dbe44 CIK |
22829 | |
22830 | ||
2078c8a7 | 22831 | #include <linux/bio.h> |
904dbe44 | 22832 | |
2078c8a7 DJL |
22833 | void (*generic_start_io_acct_f)(int, unsigned long, |
22834 | struct hd_struct *) = &generic_start_io_acct; | |
22835 | void (*generic_end_io_acct_f)(int, struct hd_struct *, | |
22836 | unsigned long) = &generic_end_io_acct; | |
904dbe44 | 22837 | |
904dbe44 | 22838 | int |
2078c8a7 | 22839 | main (void) |
904dbe44 | 22840 | { |
2078c8a7 DJL |
22841 | |
22842 | generic_start_io_acct(0, 0, NULL); | |
22843 | generic_end_io_acct(0, NULL, 0); | |
22844 | ||
904dbe44 CIK |
22845 | ; |
22846 | return 0; | |
22847 | } | |
904dbe44 | 22848 | |
2078c8a7 | 22849 | _ACEOF |
904dbe44 | 22850 | |
904dbe44 CIK |
22851 | |
22852 | ||
2078c8a7 | 22853 | cat - <<_ACEOF >conftest.h |
904dbe44 | 22854 | |
904dbe44 CIK |
22855 | _ACEOF |
22856 | ||
904dbe44 | 22857 | |
2078c8a7 DJL |
22858 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
22859 | echo "obj-m := conftest.o" >build/Makefile | |
22860 | modpost_flag='' | |
22861 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22862 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22863 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22864 | (eval $ac_try) 2>&5 | |
22865 | ac_status=$? | |
22866 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22867 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22868 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22869 | (eval $ac_try) 2>&5 | |
22870 | ac_status=$? | |
22871 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22872 | test $ac_status = 0; }; }; then : | |
22873 | rc=0 | |
904dbe44 | 22874 | else |
2078c8a7 DJL |
22875 | $as_echo "$as_me: failed program was:" >&5 |
22876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22877 | rc=1 | |
22878 | ||
22879 | ||
904dbe44 | 22880 | fi |
2078c8a7 | 22881 | rm -Rf build |
904dbe44 CIK |
22882 | |
22883 | ||
2078c8a7 DJL |
22884 | if test $rc -ne 0; then : |
22885 | ||
22886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22887 | $as_echo "no" >&6; } | |
22888 | ||
22889 | else | |
22890 | if test "x$enable_linux_builtin" != xyes; then | |
22891 | ||
22892 | grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \ | |
22893 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
22894 | rc=$? | |
22895 | if test $rc -ne 0; then | |
22896 | export=0 | |
22897 | for file in block/bio.c; do | |
22898 | grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \ | |
22899 | "$LINUX/$file" 2>/dev/null | |
22900 | rc=$? | |
22901 | if test $rc -eq 0; then | |
22902 | export=1 | |
22903 | break; | |
22904 | fi | |
22905 | done | |
22906 | if test $export -eq 0; then : | |
22907 | rc=1 | |
22908 | else : | |
22909 | rc=0 | |
22910 | fi | |
22911 | else : | |
22912 | rc=0 | |
22913 | fi | |
22914 | ||
22915 | fi | |
22916 | if test $rc -ne 0; then : | |
22917 | ||
22918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22919 | $as_echo "no" >&6; } | |
22920 | ||
22921 | else : | |
22922 | ||
22923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22924 | $as_echo "yes" >&6; } | |
22925 | ||
22926 | $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h | |
22927 | ||
22928 | ||
22929 | fi | |
22930 | fi | |
22931 | ||
22932 | ||
22933 | ||
22934 | if test "$LINUX_OBJ" != "$LINUX"; then : | |
22935 | ||
22936 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
22937 | ||
22938 | fi | |
22939 | ||
22940 | ||
22941 | ||
22942 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE" | |
22943 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE" | |
22944 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL" | |
22945 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\"" | |
22946 | ||
22947 | ||
22948 | ;; | |
22949 | all) | |
22950 | ||
22951 | ||
22952 | # Check whether --with-linux was given. | |
22953 | if test "${with_linux+set}" = set; then : | |
22954 | withval=$with_linux; kernelsrc="$withval" | |
22955 | fi | |
22956 | ||
22957 | ||
22958 | ||
22959 | # Check whether --with-linux-obj was given. | |
22960 | if test "${with_linux_obj+set}" = set; then : | |
22961 | withval=$with_linux_obj; kernelbuild="$withval" | |
22962 | fi | |
22963 | ||
22964 | ||
22965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5 | |
22966 | $as_echo_n "checking kernel source directory... " >&6; } | |
22967 | if test -z "$kernelsrc"; then : | |
22968 | ||
22969 | if test -e "/lib/modules/$(uname -r)/source"; then : | |
22970 | ||
22971 | headersdir="/lib/modules/$(uname -r)/source" | |
22972 | sourcelink=$(readlink -f "$headersdir") | |
22973 | ||
22974 | elif test -e "/lib/modules/$(uname -r)/build"; then : | |
22975 | ||
22976 | headersdir="/lib/modules/$(uname -r)/build" | |
22977 | sourcelink=$(readlink -f "$headersdir") | |
22978 | ||
22979 | else | |
22980 | ||
22981 | sourcelink=$(ls -1d /usr/src/kernels/* \ | |
22982 | /usr/src/linux-* \ | |
22983 | 2>/dev/null | grep -v obj | tail -1) | |
22984 | ||
22985 | fi | |
22986 | ||
22987 | if test -n "$sourcelink" && test -e ${sourcelink}; then : | |
22988 | ||
22989 | kernelsrc=`readlink -f ${sourcelink}` | |
22990 | ||
22991 | else | |
22992 | ||
22993 | kernelsrc="Not found" | |
22994 | ||
22995 | fi | |
22996 | ||
22997 | else | |
22998 | ||
22999 | if test "$kernelsrc" = "NONE"; then : | |
23000 | ||
23001 | kernsrcver=NONE | |
23002 | ||
23003 | fi | |
23004 | ||
23005 | fi | |
23006 | ||
23007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5 | |
23008 | $as_echo "$kernelsrc" >&6; } | |
23009 | if test ! -d "$kernelsrc"; then : | |
23010 | ||
23011 | as_fn_error $? " | |
23012 | *** Please make sure the kernel devel package for your distribution | |
23013 | *** is installed and then try again. If that fails, you can specify the | |
23014 | *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5 | |
23015 | ||
23016 | fi | |
23017 | ||
23018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5 | |
23019 | $as_echo_n "checking kernel build directory... " >&6; } | |
23020 | if test -z "$kernelbuild"; then : | |
23021 | ||
23022 | if test -e "/lib/modules/$(uname -r)/build"; then : | |
23023 | ||
23024 | kernelbuild=`readlink -f /lib/modules/$(uname -r)/build` | |
23025 | ||
23026 | elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then : | |
23027 | ||
23028 | kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu} | |
23029 | ||
23030 | elif test -d ${kernelsrc}-obj/${target_cpu}/default; then : | |
23031 | ||
23032 | kernelbuild=${kernelsrc}-obj/${target_cpu}/default | |
23033 | ||
23034 | elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then : | |
23035 | ||
23036 | kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu} | |
23037 | ||
23038 | else | |
23039 | ||
23040 | kernelbuild=${kernelsrc} | |
23041 | ||
23042 | fi | |
23043 | ||
23044 | fi | |
23045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5 | |
23046 | $as_echo "$kernelbuild" >&6; } | |
23047 | ||
23048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5 | |
23049 | $as_echo_n "checking kernel source version... " >&6; } | |
23050 | utsrelease1=$kernelbuild/include/linux/version.h | |
23051 | utsrelease2=$kernelbuild/include/linux/utsrelease.h | |
23052 | utsrelease3=$kernelbuild/include/generated/utsrelease.h | |
23053 | if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then : | |
23054 | ||
23055 | utsrelease=linux/version.h | |
23056 | ||
23057 | elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then : | |
23058 | ||
23059 | utsrelease=linux/utsrelease.h | |
23060 | ||
23061 | elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then : | |
23062 | ||
23063 | utsrelease=generated/utsrelease.h | |
23064 | ||
23065 | fi | |
23066 | ||
23067 | if test "$utsrelease"; then : | |
23068 | ||
23069 | kernsrcver=`(echo "#include <$utsrelease>"; | |
23070 | echo "kernsrcver=UTS_RELEASE") | | |
23071 | cpp -I $kernelbuild/include | | |
23072 | grep "^kernsrcver=" | cut -d \" -f 2` | |
23073 | ||
23074 | if test -z "$kernsrcver"; then : | |
23075 | ||
23076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
23077 | $as_echo "Not found" >&6; } | |
23078 | as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5 | |
23079 | ||
23080 | fi | |
23081 | ||
23082 | else | |
23083 | ||
23084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
23085 | $as_echo "Not found" >&6; } | |
23086 | if test "x$enable_linux_builtin" != xyes; then | |
23087 | as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5 | |
23088 | else | |
23089 | as_fn_error $? " | |
23090 | *** Cannot find UTS_RELEASE definition. | |
23091 | *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5 | |
23092 | fi | |
23093 | ||
23094 | fi | |
23095 | ||
23096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5 | |
23097 | $as_echo "$kernsrcver" >&6; } | |
23098 | ||
23099 | LINUX=${kernelsrc} | |
23100 | LINUX_OBJ=${kernelbuild} | |
23101 | LINUX_VERSION=${kernsrcver} | |
23102 | ||
23103 | ||
23104 | ||
23105 | ||
23106 | ||
23107 | ||
23108 | modpost=$LINUX/scripts/Makefile.modpost | |
23109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5 | |
23110 | $as_echo_n "checking kernel file name for module symbols... " >&6; } | |
23111 | if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then : | |
23112 | ||
23113 | if grep -q Modules.symvers $modpost; then : | |
23114 | ||
23115 | LINUX_SYMBOLS=Modules.symvers | |
23116 | ||
23117 | else | |
23118 | ||
23119 | LINUX_SYMBOLS=Module.symvers | |
23120 | ||
23121 | fi | |
23122 | ||
23123 | if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then : | |
23124 | ||
23125 | as_fn_error $? " | |
23126 | *** Please make sure the kernel devel package for your distribution | |
23127 | *** is installed. If you are building with a custom kernel, make sure the | |
23128 | *** kernel is configured, built, and the '--with-linux=PATH' configure | |
23129 | *** option refers to the location of the kernel source." "$LINENO" 5 | |
23130 | ||
23131 | fi | |
23132 | ||
23133 | else | |
23134 | ||
23135 | LINUX_SYMBOLS=NONE | |
23136 | ||
23137 | fi | |
23138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5 | |
23139 | $as_echo "$LINUX_SYMBOLS" >&6; } | |
23140 | ||
23141 | ||
23142 | ||
23143 | ||
23144 | ||
23145 | # Check whether --with-spl was given. | |
23146 | if test "${with_spl+set}" = set; then : | |
23147 | withval=$with_spl; splsrc="$withval" | |
23148 | fi | |
23149 | ||
23150 | ||
23151 | ||
23152 | # Check whether --with-spl-obj was given. | |
23153 | if test "${with_spl_obj+set}" = set; then : | |
23154 | withval=$with_spl_obj; splbuild="$withval" | |
23155 | fi | |
23156 | ||
23157 | ||
23158 | ||
23159 | # Check whether --with-spl-timeout was given. | |
23160 | if test "${with_spl_timeout+set}" = set; then : | |
23161 | withval=$with_spl_timeout; timeout="$withval" | |
23162 | else | |
23163 | timeout=0 | |
23164 | fi | |
23165 | ||
23166 | ||
23167 | splsrc0="/var/lib/dkms/spl/${VERSION}/build" | |
23168 | splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}" | |
23169 | splsrc2="/usr/local/src/spl-${VERSION}" | |
23170 | splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}" | |
23171 | splsrc4="/usr/src/spl-${VERSION}" | |
23172 | splsrc5="../spl/" | |
23173 | splsrc6="$LINUX" | |
23174 | ||
23175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5 | |
23176 | $as_echo_n "checking spl source directory... " >&6; } | |
23177 | if test -z "${splsrc}"; then : | |
23178 | ||
23179 | if test -e "${splsrc0}/spl.release.in"; then : | |
23180 | ||
23181 | splsrc=${splsrc0} | |
23182 | ||
23183 | elif test -e "${splsrc1}/spl.release.in"; then : | |
23184 | ||
23185 | splsrc=${splsrc1} | |
23186 | ||
23187 | elif test -e "${splsrc2}/spl.release.in"; then : | |
23188 | ||
23189 | splsrc=${splsrc2} | |
23190 | ||
23191 | elif test -e "${splsrc3}/spl.release.in"; then : | |
23192 | ||
23193 | splsrc=$(readlink -f "${splsrc3}") | |
23194 | ||
23195 | elif test -e "${splsrc4}/spl.release.in" ; then : | |
23196 | ||
23197 | splsrc=${splsrc4} | |
23198 | ||
23199 | elif test -e "${splsrc5}/spl.release.in"; then : | |
23200 | ||
23201 | splsrc=$(readlink -f "${splsrc5}") | |
23202 | ||
23203 | elif test -e "${splsrc6}/spl.release.in" ; then : | |
23204 | ||
23205 | splsrc=${splsrc6} | |
23206 | ||
23207 | else | |
23208 | ||
23209 | splsrc="Not found" | |
23210 | ||
23211 | fi | |
23212 | ||
23213 | else | |
23214 | ||
23215 | if test "$splsrc" = "NONE"; then : | |
23216 | ||
23217 | splbuild=NONE | |
23218 | splsrcver=NONE | |
23219 | ||
23220 | fi | |
23221 | ||
23222 | fi | |
23223 | ||
23224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5 | |
23225 | $as_echo "$splsrc" >&6; } | |
23226 | if test ! -e "$splsrc/spl.release.in"; then : | |
23227 | ||
23228 | as_fn_error $? " | |
23229 | *** Please make sure the kmod spl devel package for your distribution | |
23230 | *** is installed then try again. If that fails you can specify the | |
23231 | *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5 | |
23232 | ||
23233 | fi | |
23234 | ||
23235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5 | |
23236 | $as_echo_n "checking spl build directory... " >&6; } | |
23237 | while true; do | |
23238 | if test -z "$splbuild"; then : | |
23239 | ||
23240 | if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then : | |
23241 | ||
23242 | splbuild="${splsrc}/${LINUX_VERSION}" | |
23243 | ||
23244 | elif test -e "${splsrc}/spl_config.h" ; then : | |
23245 | ||
23246 | splbuild="${splsrc}" | |
23247 | ||
23248 | elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then : | |
23249 | ||
23250 | splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,') | |
23251 | ||
23252 | else | |
23253 | ||
23254 | splbuild="Not found" | |
23255 | ||
23256 | fi | |
23257 | ||
23258 | fi | |
23259 | if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then : | |
23260 | ||
23261 | break; | |
23262 | ||
23263 | else | |
23264 | ||
23265 | sleep 1 | |
23266 | timeout=$((timeout-1)) | |
23267 | ||
23268 | fi | |
23269 | done | |
23270 | ||
23271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5 | |
23272 | $as_echo "$splbuild" >&6; } | |
23273 | if ! test -e "$splbuild/spl_config.h"; then : | |
23274 | ||
23275 | as_fn_error $? " | |
23276 | *** Please make sure the kmod spl devel <kernel> package for your | |
23277 | *** distribution is installed then try again. If that fails you | |
23278 | *** can specify the location of the spl objects with the | |
23279 | *** '--with-spl-obj=PATH' option." "$LINENO" 5 | |
23280 | ||
23281 | fi | |
23282 | ||
23283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5 | |
23284 | $as_echo_n "checking spl source version... " >&6; } | |
23285 | if test -r $splbuild/spl_config.h && | |
23286 | fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then : | |
23287 | ||
23288 | ||
23289 | splsrcver=`(echo "#include <spl_config.h>"; | |
23290 | echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") | | |
23291 | cpp -I $splbuild | | |
23292 | grep "^splsrcver=" | tr -d \" | cut -d= -f2` | |
23293 | ||
23294 | fi | |
23295 | ||
23296 | if test -z "$splsrcver"; then : | |
23297 | ||
23298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
23299 | $as_echo "Not found" >&6; } | |
23300 | as_fn_error $? " | |
23301 | *** Cannot determine the version of the spl source. | |
23302 | *** Please prepare the spl source before running this script" "$LINENO" 5 | |
23303 | ||
23304 | fi | |
23305 | ||
23306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5 | |
23307 | $as_echo "$splsrcver" >&6; } | |
23308 | ||
23309 | SPL=${splsrc} | |
23310 | SPL_OBJ=${splbuild} | |
23311 | SPL_VERSION=${splsrcver} | |
23312 | ||
23313 | ||
23314 | ||
23315 | ||
23316 | ||
23317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5 | |
23318 | $as_echo_n "checking spl file name for module symbols... " >&6; } | |
23319 | SPL_SYMBOLS=NONE | |
23320 | ||
23321 | while true; do | |
23322 | if test -r $SPL_OBJ/Module.symvers; then : | |
23323 | ||
23324 | SPL_SYMBOLS=Module.symvers | |
23325 | ||
23326 | elif test -r $SPL_OBJ/Modules.symvers; then : | |
23327 | ||
23328 | SPL_SYMBOLS=Modules.symvers | |
23329 | ||
23330 | elif test -r $SPL_OBJ/module/Module.symvers; then : | |
23331 | ||
23332 | SPL_SYMBOLS=Module.symvers | |
23333 | ||
23334 | elif test -r $SPL_OBJ/module/Modules.symvers; then : | |
23335 | ||
23336 | SPL_SYMBOLS=Modules.symvers | |
23337 | ||
23338 | fi | |
23339 | ||
23340 | if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then : | |
23341 | ||
23342 | break; | |
23343 | ||
23344 | else | |
23345 | ||
23346 | sleep 1 | |
23347 | timeout=$((timeout-1)) | |
23348 | ||
23349 | fi | |
23350 | done | |
23351 | ||
23352 | if test "$SPL_SYMBOLS" = NONE; then : | |
23353 | ||
23354 | SPL_SYMBOLS=$LINUX_SYMBOLS | |
23355 | ||
23356 | fi | |
23357 | ||
23358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5 | |
23359 | $as_echo "$SPL_SYMBOLS" >&6; } | |
23360 | ||
23361 | ||
23362 | ||
23363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5 | |
23364 | $as_echo_n "checking whether modules can be built... " >&6; } | |
23365 | ||
23366 | ||
23367 | cat confdefs.h - <<_ACEOF >conftest.c | |
23368 | ||
23369 | ||
23370 | int | |
23371 | main (void) | |
23372 | { | |
23373 | ||
23374 | ; | |
23375 | return 0; | |
23376 | } | |
23377 | ||
23378 | _ACEOF | |
23379 | ||
23380 | ||
23381 | ||
23382 | cat - <<_ACEOF >conftest.h | |
23383 | ||
23384 | _ACEOF | |
23385 | ||
23386 | ||
23387 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23388 | echo "obj-m := conftest.o" >build/Makefile | |
23389 | modpost_flag='' | |
23390 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23391 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23392 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23393 | (eval $ac_try) 2>&5 | |
23394 | ac_status=$? | |
23395 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23396 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23397 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23398 | (eval $ac_try) 2>&5 | |
23399 | ac_status=$? | |
23400 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23401 | test $ac_status = 0; }; }; then : | |
23402 | ||
23403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23404 | $as_echo "yes" >&6; } | |
23405 | ||
23406 | else | |
23407 | $as_echo "$as_me: failed program was:" >&5 | |
23408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23409 | ||
23410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23411 | $as_echo "no" >&6; } | |
23412 | if test "x$enable_linux_builtin" != xyes; then | |
23413 | as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5 | |
23414 | else | |
23415 | as_fn_error $? " | |
23416 | *** Unable to build an empty module. | |
23417 | *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5 | |
23418 | fi | |
23419 | ||
23420 | ||
23421 | ||
23422 | fi | |
23423 | rm -Rf build | |
23424 | ||
23425 | ||
23426 | ||
23427 | ||
23428 | if test "x$cross_compiling" != xyes; then : | |
23429 | ||
23430 | if test "$cross_compiling" = yes; then : | |
23431 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
23432 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
23433 | as_fn_error $? "cannot run test program while cross compiling | |
23434 | See \`config.log' for more details" "$LINENO" 5; } | |
23435 | else | |
23436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23437 | /* end confdefs.h. */ | |
23438 | ||
23439 | ||
23440 | #include "$LINUX/include/linux/license.h" | |
23441 | ||
23442 | int | |
23443 | main () | |
23444 | { | |
23445 | ||
23446 | return !license_is_gpl_compatible("$ZFS_META_LICENSE"); | |
23447 | ||
23448 | ; | |
23449 | return 0; | |
23450 | } | |
23451 | ||
23452 | _ACEOF | |
23453 | if ac_fn_c_try_run "$LINENO"; then : | |
23454 | ||
23455 | ||
23456 | $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h | |
23457 | ||
23458 | ||
23459 | fi | |
23460 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
23461 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
23462 | fi | |
23463 | ||
23464 | ||
23465 | fi | |
23466 | ||
23467 | ||
23468 | ||
23469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5 | |
23470 | $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; } | |
23471 | ||
23472 | ||
23473 | cat confdefs.h - <<_ACEOF >conftest.c | |
23474 | ||
23475 | ||
23476 | #include <linux/module.h> | |
23477 | ||
23478 | int | |
23479 | main (void) | |
23480 | { | |
23481 | ||
23482 | #ifndef CONFIG_DEBUG_LOCK_ALLOC | |
23483 | #error CONFIG_DEBUG_LOCK_ALLOC not #defined | |
23484 | #endif | |
23485 | ||
23486 | ; | |
23487 | return 0; | |
23488 | } | |
23489 | ||
23490 | _ACEOF | |
23491 | ||
23492 | ||
23493 | ||
23494 | cat - <<_ACEOF >conftest.h | |
23495 | ||
23496 | _ACEOF | |
23497 | ||
23498 | ||
23499 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23500 | echo "obj-m := conftest.o" >build/Makefile | |
23501 | modpost_flag='' | |
23502 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23503 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23504 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23505 | (eval $ac_try) 2>&5 | |
23506 | ac_status=$? | |
23507 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23508 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23509 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23510 | (eval $ac_try) 2>&5 | |
23511 | ac_status=$? | |
23512 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23513 | test $ac_status = 0; }; }; then : | |
23514 | ||
23515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23516 | $as_echo "yes" >&6; } | |
23517 | ||
23518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5 | |
23519 | $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; } | |
23520 | tmp_flags="$EXTRA_KCFLAGS" | |
23521 | ||
23522 | ||
23523 | cat confdefs.h - <<_ACEOF >conftest.c | |
23524 | ||
23525 | ||
23526 | #include <linux/module.h> | |
23527 | #include <linux/mutex.h> | |
23528 | ||
23529 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
23530 | ||
23531 | int | |
23532 | main (void) | |
23533 | { | |
23534 | ||
23535 | struct mutex lock; | |
23536 | ||
23537 | mutex_init(&lock); | |
23538 | mutex_lock(&lock); | |
23539 | mutex_unlock(&lock); | |
23540 | ||
23541 | ; | |
23542 | return 0; | |
23543 | } | |
23544 | ||
23545 | _ACEOF | |
23546 | ||
23547 | ||
23548 | ||
23549 | cat - <<_ACEOF >conftest.h | |
23550 | ||
23551 | _ACEOF | |
23552 | ||
23553 | ||
23554 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23555 | echo "obj-m := conftest.o" >build/Makefile | |
23556 | modpost_flag='' | |
23557 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23558 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23559 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23560 | (eval $ac_try) 2>&5 | |
23561 | ac_status=$? | |
23562 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23563 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23564 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23565 | (eval $ac_try) 2>&5 | |
23566 | ac_status=$? | |
23567 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23568 | test $ac_status = 0; }; }; then : | |
23569 | ||
23570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23571 | $as_echo "no" >&6; } | |
23572 | ||
23573 | else | |
23574 | $as_echo "$as_me: failed program was:" >&5 | |
23575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23576 | ||
23577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23578 | $as_echo "yes" >&6; } | |
23579 | as_fn_error $? " | |
23580 | *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible | |
23581 | *** with the CDDL license and will prevent the module linking stage | |
23582 | *** from succeeding. You must rebuild your kernel without this | |
23583 | *** option enabled." "$LINENO" 5 | |
23584 | ||
23585 | ||
23586 | ||
23587 | fi | |
23588 | rm -Rf build | |
23589 | ||
23590 | ||
23591 | EXTRA_KCFLAGS="$tmp_flags" | |
23592 | ||
23593 | ||
23594 | else | |
23595 | $as_echo "$as_me: failed program was:" >&5 | |
23596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23597 | ||
23598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23599 | $as_echo "no" >&6; } | |
23600 | ||
23601 | ||
23602 | ||
23603 | ||
23604 | fi | |
23605 | rm -Rf build | |
23606 | ||
23607 | ||
23608 | ||
23609 | ||
23610 | ||
23611 | ||
23612 | tmp_flags="$EXTRA_KCFLAGS" | |
23613 | EXTRA_KCFLAGS="-I\$(src)" | |
23614 | ||
23615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5 | |
23616 | $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; } | |
23617 | ||
23618 | ||
23619 | cat confdefs.h - <<_ACEOF >conftest.c | |
23620 | ||
23621 | ||
23622 | #include <linux/module.h> | |
23623 | MODULE_LICENSE(ZFS_META_LICENSE); | |
23624 | ||
23625 | #define CREATE_TRACE_POINTS | |
23626 | #include "conftest.h" | |
904dbe44 | 23627 | |
904dbe44 | 23628 | int |
2078c8a7 | 23629 | main (void) |
904dbe44 | 23630 | { |
2078c8a7 DJL |
23631 | |
23632 | trace_zfs_autoconf_event_one(1UL); | |
23633 | trace_zfs_autoconf_event_two(2UL); | |
23634 | ||
904dbe44 CIK |
23635 | ; |
23636 | return 0; | |
23637 | } | |
2078c8a7 | 23638 | |
904dbe44 | 23639 | _ACEOF |
2078c8a7 DJL |
23640 | |
23641 | ||
23642 | ||
23643 | cat - <<_ACEOF >conftest.h | |
23644 | ||
23645 | #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ) | |
23646 | #define _CONFTEST_H | |
23647 | ||
23648 | #undef TRACE_SYSTEM | |
23649 | #define TRACE_SYSTEM zfs | |
23650 | #include <linux/tracepoint.h> | |
23651 | ||
23652 | DECLARE_EVENT_CLASS(zfs_autoconf_event_class, | |
23653 | TP_PROTO(unsigned long i), | |
23654 | TP_ARGS(i), | |
23655 | TP_STRUCT__entry( | |
23656 | __field(unsigned long, i) | |
23657 | ), | |
23658 | TP_fast_assign( | |
23659 | __entry->i = i; | |
23660 | ), | |
23661 | TP_printk("i = %lu", __entry->i) | |
23662 | ); | |
23663 | ||
23664 | #define DEFINE_AUTOCONF_EVENT(name) \ | |
23665 | DEFINE_EVENT(zfs_autoconf_event_class, name, \ | |
23666 | TP_PROTO(unsigned long i), \ | |
23667 | TP_ARGS(i)) | |
23668 | DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one); | |
23669 | DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two); | |
23670 | ||
23671 | #endif /* _CONFTEST_H */ | |
23672 | ||
23673 | #undef TRACE_INCLUDE_PATH | |
23674 | #define TRACE_INCLUDE_PATH . | |
23675 | #define TRACE_INCLUDE_FILE conftest | |
23676 | #include <trace/define_trace.h> | |
23677 | ||
23678 | _ACEOF | |
23679 | ||
23680 | ||
23681 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23682 | echo "obj-m := conftest.o" >build/Makefile | |
23683 | modpost_flag='' | |
23684 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23685 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23686 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23687 | (eval $ac_try) 2>&5 | |
23688 | ac_status=$? | |
23689 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23690 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23691 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23692 | (eval $ac_try) 2>&5 | |
23693 | ac_status=$? | |
23694 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23695 | test $ac_status = 0; }; }; then : | |
23696 | ||
23697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23698 | $as_echo "yes" >&6; } | |
23699 | ||
23700 | $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h | |
23701 | ||
23702 | ||
904dbe44 | 23703 | else |
2078c8a7 DJL |
23704 | $as_echo "$as_me: failed program was:" >&5 |
23705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23706 | ||
23707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23708 | $as_echo "no" >&6; } | |
23709 | ||
23710 | ||
23711 | ||
904dbe44 | 23712 | fi |
2078c8a7 DJL |
23713 | rm -Rf build |
23714 | ||
23715 | ||
23716 | EXTRA_KCFLAGS="$tmp_flags" | |
23717 | ||
23718 | ||
23719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5 | |
23720 | $as_echo_n "checking whether current->bio_tail exists... " >&6; } | |
23721 | ||
23722 | ||
23723 | cat confdefs.h - <<_ACEOF >conftest.c | |
23724 | ||
23725 | ||
23726 | #include <linux/sched.h> | |
23727 | ||
23728 | int | |
23729 | main (void) | |
23730 | { | |
23731 | ||
23732 | current->bio_tail = (struct bio **) NULL; | |
23733 | ||
23734 | ; | |
23735 | return 0; | |
23736 | } | |
23737 | ||
23738 | _ACEOF | |
23739 | ||
23740 | ||
23741 | ||
23742 | cat - <<_ACEOF >conftest.h | |
23743 | ||
23744 | _ACEOF | |
23745 | ||
23746 | ||
23747 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23748 | echo "obj-m := conftest.o" >build/Makefile | |
23749 | modpost_flag='' | |
23750 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23751 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23752 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23753 | (eval $ac_try) 2>&5 | |
23754 | ac_status=$? | |
23755 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23756 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23757 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23758 | (eval $ac_try) 2>&5 | |
23759 | ac_status=$? | |
23760 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23761 | test $ac_status = 0; }; }; then : | |
23762 | ||
23763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23764 | $as_echo "yes" >&6; } | |
23765 | ||
23766 | $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h | |
23767 | ||
23768 | ||
23769 | else | |
23770 | $as_echo "$as_me: failed program was:" >&5 | |
23771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23772 | ||
23773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23774 | $as_echo "no" >&6; } | |
23775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5 | |
23776 | $as_echo_n "checking whether current->bio_list exists... " >&6; } | |
23777 | ||
23778 | ||
23779 | cat confdefs.h - <<_ACEOF >conftest.c | |
23780 | ||
23781 | ||
23782 | #include <linux/sched.h> | |
23783 | ||
23784 | int | |
23785 | main (void) | |
23786 | { | |
23787 | ||
23788 | current->bio_list = (struct bio_list *) NULL; | |
23789 | ||
23790 | ; | |
23791 | return 0; | |
23792 | } | |
23793 | ||
904dbe44 CIK |
23794 | _ACEOF |
23795 | ||
2078c8a7 DJL |
23796 | |
23797 | ||
23798 | cat - <<_ACEOF >conftest.h | |
23799 | ||
23800 | _ACEOF | |
23801 | ||
23802 | ||
23803 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23804 | echo "obj-m := conftest.o" >build/Makefile | |
23805 | modpost_flag='' | |
23806 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23807 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23808 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23809 | (eval $ac_try) 2>&5 | |
23810 | ac_status=$? | |
23811 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23812 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23813 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23814 | (eval $ac_try) 2>&5 | |
23815 | ac_status=$? | |
23816 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23817 | test $ac_status = 0; }; }; then : | |
23818 | ||
23819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23820 | $as_echo "yes" >&6; } | |
23821 | ||
23822 | $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h | |
23823 | ||
904dbe44 CIK |
23824 | |
23825 | else | |
2078c8a7 DJL |
23826 | $as_echo "$as_me: failed program was:" >&5 |
23827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 | 23828 | |
2078c8a7 DJL |
23829 | as_fn_error $? "no - Please file a bug report at |
23830 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
904dbe44 | 23831 | |
904dbe44 CIK |
23832 | |
23833 | ||
2078c8a7 DJL |
23834 | fi |
23835 | rm -Rf build | |
904dbe44 CIK |
23836 | |
23837 | ||
23838 | ||
904dbe44 | 23839 | |
904dbe44 | 23840 | |
904dbe44 | 23841 | fi |
2078c8a7 | 23842 | rm -Rf build |
904dbe44 CIK |
23843 | |
23844 | ||
23845 | ||
904dbe44 | 23846 | |
2078c8a7 DJL |
23847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5 |
23848 | $as_echo_n "checking block device operation prototypes... " >&6; } | |
23849 | tmp_flags="$EXTRA_KCFLAGS" | |
23850 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
23851 | ||
23852 | ||
23853 | cat confdefs.h - <<_ACEOF >conftest.c | |
23854 | ||
23855 | ||
23856 | #include <linux/blkdev.h> | |
23857 | ||
23858 | int blk_open(struct block_device *bdev, fmode_t mode) | |
23859 | { return 0; } | |
23860 | int blk_ioctl(struct block_device *bdev, fmode_t mode, | |
23861 | unsigned x, unsigned long y) { return 0; } | |
23862 | int blk_compat_ioctl(struct block_device * bdev, fmode_t mode, | |
23863 | unsigned x, unsigned long y) { return 0; } | |
23864 | ||
23865 | static const struct block_device_operations | |
23866 | bops __attribute__ ((unused)) = { | |
23867 | .open = blk_open, | |
23868 | .release = NULL, | |
23869 | .ioctl = blk_ioctl, | |
23870 | .compat_ioctl = blk_compat_ioctl, | |
23871 | }; | |
23872 | ||
904dbe44 | 23873 | int |
2078c8a7 | 23874 | main (void) |
904dbe44 | 23875 | { |
2078c8a7 DJL |
23876 | |
23877 | ||
904dbe44 CIK |
23878 | ; |
23879 | return 0; | |
23880 | } | |
2078c8a7 | 23881 | |
904dbe44 | 23882 | _ACEOF |
2078c8a7 DJL |
23883 | |
23884 | ||
23885 | ||
23886 | cat - <<_ACEOF >conftest.h | |
23887 | ||
904dbe44 CIK |
23888 | _ACEOF |
23889 | ||
2078c8a7 DJL |
23890 | |
23891 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23892 | echo "obj-m := conftest.o" >build/Makefile | |
23893 | modpost_flag='' | |
23894 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23895 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23896 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23897 | (eval $ac_try) 2>&5 | |
23898 | ac_status=$? | |
23899 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23900 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23901 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23902 | (eval $ac_try) 2>&5 | |
23903 | ac_status=$? | |
23904 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23905 | test $ac_status = 0; }; }; then : | |
23906 | ||
23907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5 | |
23908 | $as_echo "struct block_device" >&6; } | |
23909 | ||
23910 | $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h | |
23911 | ||
904dbe44 CIK |
23912 | |
23913 | else | |
2078c8a7 DJL |
23914 | $as_echo "$as_me: failed program was:" >&5 |
23915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23916 | ||
23917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5 | |
23918 | $as_echo "struct inode" >&6; } | |
23919 | ||
23920 | ||
23921 | ||
904dbe44 | 23922 | fi |
2078c8a7 | 23923 | rm -Rf build |
904dbe44 CIK |
23924 | |
23925 | ||
2078c8a7 DJL |
23926 | EXTRA_KCFLAGS="$tmp_flags" |
23927 | ||
23928 | ||
23929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5 | |
23930 | $as_echo_n "checking whether block_device_operations.release is void... " >&6; } | |
23931 | tmp_flags="$EXTRA_KCFLAGS" | |
23932 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
23933 | ||
23934 | ||
23935 | cat confdefs.h - <<_ACEOF >conftest.c | |
23936 | ||
23937 | ||
23938 | #include <linux/blkdev.h> | |
23939 | ||
23940 | void blk_release(struct gendisk *g, fmode_t mode) { return; } | |
23941 | ||
23942 | static const struct block_device_operations | |
23943 | bops __attribute__ ((unused)) = { | |
23944 | .open = NULL, | |
23945 | .release = blk_release, | |
23946 | .ioctl = NULL, | |
23947 | .compat_ioctl = NULL, | |
23948 | }; | |
904dbe44 | 23949 | |
904dbe44 | 23950 | int |
2078c8a7 | 23951 | main (void) |
904dbe44 | 23952 | { |
2078c8a7 DJL |
23953 | |
23954 | ||
904dbe44 CIK |
23955 | ; |
23956 | return 0; | |
23957 | } | |
2078c8a7 | 23958 | |
904dbe44 | 23959 | _ACEOF |
2078c8a7 DJL |
23960 | |
23961 | ||
23962 | ||
23963 | cat - <<_ACEOF >conftest.h | |
23964 | ||
904dbe44 CIK |
23965 | _ACEOF |
23966 | ||
904dbe44 | 23967 | |
2078c8a7 DJL |
23968 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
23969 | echo "obj-m := conftest.o" >build/Makefile | |
23970 | modpost_flag='' | |
23971 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23972 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23973 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23974 | (eval $ac_try) 2>&5 | |
23975 | ac_status=$? | |
23976 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23977 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23978 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23979 | (eval $ac_try) 2>&5 | |
23980 | ac_status=$? | |
23981 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23982 | test $ac_status = 0; }; }; then : | |
904dbe44 | 23983 | |
2078c8a7 DJL |
23984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5 |
23985 | $as_echo "void" >&6; } | |
904dbe44 | 23986 | |
2078c8a7 | 23987 | $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h |
904dbe44 CIK |
23988 | |
23989 | ||
2078c8a7 DJL |
23990 | else |
23991 | $as_echo "$as_me: failed program was:" >&5 | |
23992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 | 23993 | |
2078c8a7 DJL |
23994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 |
23995 | $as_echo "int" >&6; } | |
904dbe44 CIK |
23996 | |
23997 | ||
23998 | ||
904dbe44 | 23999 | fi |
2078c8a7 | 24000 | rm -Rf build |
904dbe44 CIK |
24001 | |
24002 | ||
2078c8a7 | 24003 | EXTRA_KCFLAGS="$tmp_flags" |
904dbe44 | 24004 | |
2078c8a7 DJL |
24005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5 |
24006 | $as_echo_n "checking whether kernel defines fmode_t... " >&6; } | |
904dbe44 CIK |
24007 | |
24008 | ||
2078c8a7 | 24009 | cat confdefs.h - <<_ACEOF >conftest.c |
904dbe44 | 24010 | |
904dbe44 | 24011 | |
2078c8a7 | 24012 | #include <linux/types.h> |
904dbe44 | 24013 | |
904dbe44 | 24014 | int |
2078c8a7 | 24015 | main (void) |
904dbe44 | 24016 | { |
2078c8a7 DJL |
24017 | |
24018 | fmode_t *ptr __attribute__ ((unused)); | |
24019 | ||
904dbe44 CIK |
24020 | ; |
24021 | return 0; | |
24022 | } | |
2078c8a7 | 24023 | |
904dbe44 | 24024 | _ACEOF |
904dbe44 | 24025 | |
904dbe44 | 24026 | |
904dbe44 | 24027 | |
2078c8a7 DJL |
24028 | cat - <<_ACEOF >conftest.h |
24029 | ||
24030 | _ACEOF | |
24031 | ||
24032 | ||
24033 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24034 | echo "obj-m := conftest.o" >build/Makefile | |
24035 | modpost_flag='' | |
24036 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24037 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24038 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24039 | (eval $ac_try) 2>&5 | |
24040 | ac_status=$? | |
24041 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24042 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24043 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24044 | (eval $ac_try) 2>&5 | |
24045 | ac_status=$? | |
24046 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24047 | test $ac_status = 0; }; }; then : | |
24048 | ||
24049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24050 | $as_echo "yes" >&6; } | |
24051 | ||
24052 | $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h | |
24053 | ||
904dbe44 | 24054 | |
904dbe44 | 24055 | else |
2078c8a7 DJL |
24056 | $as_echo "$as_me: failed program was:" >&5 |
24057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 | 24058 | |
2078c8a7 DJL |
24059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24060 | $as_echo "no" >&6; } | |
904dbe44 | 24061 | |
904dbe44 | 24062 | |
904dbe44 | 24063 | |
2078c8a7 DJL |
24064 | fi |
24065 | rm -Rf build | |
904dbe44 | 24066 | |
904dbe44 | 24067 | |
904dbe44 | 24068 | |
2078c8a7 DJL |
24069 | |
24070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5 | |
24071 | $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; } | |
24072 | ||
24073 | ||
24074 | cat confdefs.h - <<_ACEOF >conftest.c | |
24075 | ||
24076 | ||
24077 | #include <linux/kobject.h> | |
24078 | ||
24079 | int | |
24080 | main (void) | |
24081 | { | |
24082 | ||
24083 | int val __attribute__ ((unused)); | |
24084 | val = KOBJ_NAME_LEN; | |
904dbe44 CIK |
24085 | |
24086 | ; | |
24087 | return 0; | |
24088 | } | |
2078c8a7 | 24089 | |
904dbe44 | 24090 | _ACEOF |
904dbe44 | 24091 | |
904dbe44 CIK |
24092 | |
24093 | ||
2078c8a7 | 24094 | cat - <<_ACEOF >conftest.h |
904dbe44 | 24095 | |
2078c8a7 | 24096 | _ACEOF |
904dbe44 | 24097 | |
904dbe44 | 24098 | |
2078c8a7 DJL |
24099 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
24100 | echo "obj-m := conftest.o" >build/Makefile | |
24101 | modpost_flag='' | |
24102 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24103 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24104 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24105 | (eval $ac_try) 2>&5 | |
24106 | ac_status=$? | |
24107 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24108 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24109 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24110 | (eval $ac_try) 2>&5 | |
24111 | ac_status=$? | |
24112 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24113 | test $ac_status = 0; }; }; then : | |
904dbe44 | 24114 | |
2078c8a7 DJL |
24115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
24116 | $as_echo "yes" >&6; } | |
904dbe44 | 24117 | |
2078c8a7 | 24118 | $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h |
904dbe44 | 24119 | |
904dbe44 CIK |
24120 | |
24121 | else | |
2078c8a7 DJL |
24122 | $as_echo "$as_me: failed program was:" >&5 |
24123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24124 | ||
24125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24126 | $as_echo "no" >&6; } | |
904dbe44 | 24127 | |
904dbe44 CIK |
24128 | |
24129 | ||
24130 | fi | |
2078c8a7 | 24131 | rm -Rf build |
904dbe44 CIK |
24132 | |
24133 | ||
904dbe44 CIK |
24134 | |
24135 | ||
2078c8a7 DJL |
24136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5 |
24137 | $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; } | |
904dbe44 | 24138 | |
904dbe44 | 24139 | |
2078c8a7 DJL |
24140 | cat confdefs.h - <<_ACEOF >conftest.c |
24141 | ||
24142 | ||
24143 | #include <linux/fs.h> | |
904dbe44 CIK |
24144 | |
24145 | int | |
2078c8a7 | 24146 | main (void) |
904dbe44 CIK |
24147 | { |
24148 | ||
2078c8a7 DJL |
24149 | struct block_device *bdev = NULL; |
24150 | (void) blkdev_get(bdev, 0, NULL); | |
24151 | ||
904dbe44 CIK |
24152 | ; |
24153 | return 0; | |
24154 | } | |
904dbe44 | 24155 | |
2078c8a7 | 24156 | _ACEOF |
904dbe44 | 24157 | |
904dbe44 | 24158 | |
904dbe44 | 24159 | |
2078c8a7 | 24160 | cat - <<_ACEOF >conftest.h |
904dbe44 | 24161 | |
2078c8a7 | 24162 | _ACEOF |
904dbe44 CIK |
24163 | |
24164 | ||
2078c8a7 DJL |
24165 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
24166 | echo "obj-m := conftest.o" >build/Makefile | |
24167 | modpost_flag='' | |
24168 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24169 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24170 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24171 | (eval $ac_try) 2>&5 | |
24172 | ac_status=$? | |
24173 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24174 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24175 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24176 | (eval $ac_try) 2>&5 | |
24177 | ac_status=$? | |
24178 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24179 | test $ac_status = 0; }; }; then : | |
904dbe44 | 24180 | |
2078c8a7 DJL |
24181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
24182 | $as_echo "yes" >&6; } | |
904dbe44 | 24183 | |
2078c8a7 | 24184 | $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h |
904dbe44 | 24185 | |
904dbe44 | 24186 | |
2078c8a7 DJL |
24187 | else |
24188 | $as_echo "$as_me: failed program was:" >&5 | |
24189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 | 24190 | |
2078c8a7 DJL |
24191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24192 | $as_echo "no" >&6; } | |
904dbe44 CIK |
24193 | |
24194 | ||
24195 | ||
904dbe44 | 24196 | fi |
2078c8a7 | 24197 | rm -Rf build |
904dbe44 CIK |
24198 | |
24199 | ||
24200 | ||
2078c8a7 DJL |
24201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5 |
24202 | $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; } | |
904dbe44 CIK |
24203 | |
24204 | ||
904dbe44 | 24205 | |
2078c8a7 | 24206 | cat confdefs.h - <<_ACEOF >conftest.c |
904dbe44 | 24207 | |
904dbe44 | 24208 | |
2078c8a7 | 24209 | #include <linux/fs.h> |
904dbe44 | 24210 | |
2078c8a7 DJL |
24211 | int |
24212 | main (void) | |
24213 | { | |
904dbe44 | 24214 | |
2078c8a7 | 24215 | blkdev_get_by_path(NULL, 0, NULL); |
904dbe44 | 24216 | |
2078c8a7 DJL |
24217 | ; |
24218 | return 0; | |
24219 | } | |
904dbe44 | 24220 | |
2078c8a7 | 24221 | _ACEOF |
904dbe44 | 24222 | |
904dbe44 | 24223 | |
904dbe44 | 24224 | |
2078c8a7 | 24225 | cat - <<_ACEOF >conftest.h |
904dbe44 | 24226 | |
2078c8a7 | 24227 | _ACEOF |
904dbe44 | 24228 | |
904dbe44 | 24229 | |
2078c8a7 DJL |
24230 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
24231 | echo "obj-m := conftest.o" >build/Makefile | |
24232 | modpost_flag='' | |
24233 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24234 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24235 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24236 | (eval $ac_try) 2>&5 | |
24237 | ac_status=$? | |
24238 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24239 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24240 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24241 | (eval $ac_try) 2>&5 | |
24242 | ac_status=$? | |
24243 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24244 | test $ac_status = 0; }; }; then : | |
24245 | rc=0 | |
904dbe44 | 24246 | else |
2078c8a7 DJL |
24247 | $as_echo "$as_me: failed program was:" >&5 |
24248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24249 | rc=1 | |
904dbe44 | 24250 | |
904dbe44 CIK |
24251 | |
24252 | fi | |
2078c8a7 | 24253 | rm -Rf build |
904dbe44 | 24254 | |
904dbe44 | 24255 | |
2078c8a7 | 24256 | if test $rc -ne 0; then : |
904dbe44 | 24257 | |
2078c8a7 DJL |
24258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24259 | $as_echo "no" >&6; } | |
904dbe44 | 24260 | |
2078c8a7 DJL |
24261 | else |
24262 | if test "x$enable_linux_builtin" != xyes; then | |
904dbe44 | 24263 | |
2078c8a7 DJL |
24264 | grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \ |
24265 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
24266 | rc=$? | |
24267 | if test $rc -ne 0; then | |
24268 | export=0 | |
24269 | for file in fs/block_dev.c; do | |
24270 | grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \ | |
24271 | "$LINUX/$file" 2>/dev/null | |
24272 | rc=$? | |
24273 | if test $rc -eq 0; then | |
24274 | export=1 | |
24275 | break; | |
24276 | fi | |
24277 | done | |
24278 | if test $export -eq 0; then : | |
24279 | rc=1 | |
24280 | else : | |
24281 | rc=0 | |
24282 | fi | |
24283 | else : | |
24284 | rc=0 | |
24285 | fi | |
904dbe44 | 24286 | |
2078c8a7 DJL |
24287 | fi |
24288 | if test $rc -ne 0; then : | |
904dbe44 | 24289 | |
2078c8a7 DJL |
24290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24291 | $as_echo "no" >&6; } | |
904dbe44 | 24292 | |
2078c8a7 | 24293 | else : |
904dbe44 | 24294 | |
2078c8a7 DJL |
24295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
24296 | $as_echo "yes" >&6; } | |
904dbe44 | 24297 | |
2078c8a7 | 24298 | $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h |
904dbe44 | 24299 | |
904dbe44 | 24300 | |
2078c8a7 DJL |
24301 | fi |
24302 | fi | |
904dbe44 | 24303 | |
904dbe44 | 24304 | |
2078c8a7 DJL |
24305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5 |
24306 | $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; } | |
904dbe44 | 24307 | |
904dbe44 | 24308 | |
904dbe44 | 24309 | |
2078c8a7 | 24310 | cat confdefs.h - <<_ACEOF >conftest.c |
904dbe44 | 24311 | |
904dbe44 | 24312 | |
2078c8a7 | 24313 | #include <linux/fs.h> |
904dbe44 | 24314 | |
2078c8a7 DJL |
24315 | int |
24316 | main (void) | |
24317 | { | |
904dbe44 | 24318 | |
2078c8a7 | 24319 | open_bdev_exclusive(NULL, 0, NULL); |
904dbe44 | 24320 | |
2078c8a7 DJL |
24321 | ; |
24322 | return 0; | |
24323 | } | |
904dbe44 | 24324 | |
2078c8a7 | 24325 | _ACEOF |
904dbe44 | 24326 | |
904dbe44 | 24327 | |
904dbe44 | 24328 | |
2078c8a7 | 24329 | cat - <<_ACEOF >conftest.h |
904dbe44 | 24330 | |
2078c8a7 | 24331 | _ACEOF |
904dbe44 | 24332 | |
904dbe44 | 24333 | |
2078c8a7 DJL |
24334 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
24335 | echo "obj-m := conftest.o" >build/Makefile | |
24336 | modpost_flag='' | |
24337 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24338 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24339 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24340 | (eval $ac_try) 2>&5 | |
24341 | ac_status=$? | |
24342 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24343 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24344 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24345 | (eval $ac_try) 2>&5 | |
24346 | ac_status=$? | |
24347 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24348 | test $ac_status = 0; }; }; then : | |
24349 | rc=0 | |
904dbe44 | 24350 | else |
2078c8a7 DJL |
24351 | $as_echo "$as_me: failed program was:" >&5 |
24352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24353 | rc=1 | |
904dbe44 | 24354 | |
904dbe44 CIK |
24355 | |
24356 | fi | |
2078c8a7 | 24357 | rm -Rf build |
904dbe44 | 24358 | |
904dbe44 | 24359 | |
2078c8a7 | 24360 | if test $rc -ne 0; then : |
904dbe44 | 24361 | |
2078c8a7 DJL |
24362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24363 | $as_echo "no" >&6; } | |
904dbe44 | 24364 | |
2078c8a7 DJL |
24365 | else |
24366 | if test "x$enable_linux_builtin" != xyes; then | |
904dbe44 | 24367 | |
2078c8a7 DJL |
24368 | grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \ |
24369 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
24370 | rc=$? | |
24371 | if test $rc -ne 0; then | |
24372 | export=0 | |
24373 | for file in fs/block_dev.c; do | |
24374 | grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \ | |
24375 | "$LINUX/$file" 2>/dev/null | |
24376 | rc=$? | |
24377 | if test $rc -eq 0; then | |
24378 | export=1 | |
24379 | break; | |
24380 | fi | |
24381 | done | |
24382 | if test $export -eq 0; then : | |
24383 | rc=1 | |
24384 | else : | |
24385 | rc=0 | |
24386 | fi | |
24387 | else : | |
24388 | rc=0 | |
24389 | fi | |
904dbe44 | 24390 | |
2078c8a7 DJL |
24391 | fi |
24392 | if test $rc -ne 0; then : | |
904dbe44 | 24393 | |
2078c8a7 DJL |
24394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24395 | $as_echo "no" >&6; } | |
904dbe44 | 24396 | |
2078c8a7 | 24397 | else : |
904dbe44 | 24398 | |
2078c8a7 DJL |
24399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
24400 | $as_echo "yes" >&6; } | |
904dbe44 | 24401 | |
2078c8a7 | 24402 | $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h |
904dbe44 | 24403 | |
904dbe44 | 24404 | |
2078c8a7 DJL |
24405 | fi |
24406 | fi | |
904dbe44 CIK |
24407 | |
24408 | ||
2078c8a7 DJL |
24409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5 |
24410 | $as_echo_n "checking whether lookup_bdev() is available... " >&6; } | |
904dbe44 CIK |
24411 | |
24412 | ||
24413 | ||
2078c8a7 | 24414 | cat confdefs.h - <<_ACEOF >conftest.c |
904dbe44 CIK |
24415 | |
24416 | ||
2078c8a7 | 24417 | #include <linux/fs.h> |
904dbe44 | 24418 | |
2078c8a7 DJL |
24419 | int |
24420 | main (void) | |
24421 | { | |
904dbe44 | 24422 | |
2078c8a7 | 24423 | lookup_bdev(NULL); |
904dbe44 | 24424 | |
2078c8a7 DJL |
24425 | ; |
24426 | return 0; | |
24427 | } | |
904dbe44 | 24428 | |
2078c8a7 | 24429 | _ACEOF |
904dbe44 CIK |
24430 | |
24431 | ||
904dbe44 | 24432 | |
2078c8a7 | 24433 | cat - <<_ACEOF >conftest.h |
904dbe44 | 24434 | |
2078c8a7 | 24435 | _ACEOF |
904dbe44 | 24436 | |
904dbe44 | 24437 | |
2078c8a7 DJL |
24438 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
24439 | echo "obj-m := conftest.o" >build/Makefile | |
24440 | modpost_flag='' | |
24441 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24442 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24443 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24444 | (eval $ac_try) 2>&5 | |
24445 | ac_status=$? | |
24446 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24447 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24448 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24449 | (eval $ac_try) 2>&5 | |
24450 | ac_status=$? | |
24451 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24452 | test $ac_status = 0; }; }; then : | |
24453 | rc=0 | |
24454 | else | |
24455 | $as_echo "$as_me: failed program was:" >&5 | |
24456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24457 | rc=1 | |
904dbe44 | 24458 | |
904dbe44 | 24459 | |
2078c8a7 DJL |
24460 | fi |
24461 | rm -Rf build | |
904dbe44 | 24462 | |
904dbe44 | 24463 | |
2078c8a7 | 24464 | if test $rc -ne 0; then : |
904dbe44 | 24465 | |
2078c8a7 DJL |
24466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24467 | $as_echo "no" >&6; } | |
8e543f2f CIK |
24468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available and wants 2 args" >&5 |
24469 | $as_echo_n "checking whether lookup_bdev() is available and wants 2 args... " >&6; } | |
24470 | ||
24471 | ||
24472 | ||
24473 | cat confdefs.h - <<_ACEOF >conftest.c | |
24474 | ||
24475 | ||
24476 | #include <linux/fs.h> | |
24477 | ||
24478 | int | |
24479 | main (void) | |
24480 | { | |
24481 | ||
24482 | lookup_bdev(NULL, 0); | |
24483 | ||
24484 | ; | |
24485 | return 0; | |
24486 | } | |
24487 | ||
24488 | _ACEOF | |
24489 | ||
24490 | ||
24491 | ||
24492 | cat - <<_ACEOF >conftest.h | |
24493 | ||
24494 | _ACEOF | |
24495 | ||
24496 | ||
24497 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24498 | echo "obj-m := conftest.o" >build/Makefile | |
24499 | modpost_flag='' | |
24500 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24501 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24502 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24503 | (eval $ac_try) 2>&5 | |
24504 | ac_status=$? | |
24505 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24506 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24507 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24508 | (eval $ac_try) 2>&5 | |
24509 | ac_status=$? | |
24510 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24511 | test $ac_status = 0; }; }; then : | |
24512 | rc=0 | |
24513 | else | |
24514 | $as_echo "$as_me: failed program was:" >&5 | |
24515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24516 | rc=1 | |
24517 | ||
24518 | ||
24519 | fi | |
24520 | rm -Rf build | |
24521 | ||
24522 | ||
24523 | if test $rc -ne 0; then : | |
24524 | ||
24525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24526 | $as_echo "no" >&6; } | |
24527 | ||
24528 | else | |
24529 | if test "x$enable_linux_builtin" != xyes; then | |
24530 | ||
24531 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
24532 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
24533 | rc=$? | |
24534 | if test $rc -ne 0; then | |
24535 | export=0 | |
24536 | for file in fs/block_dev.c; do | |
24537 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
24538 | "$LINUX/$file" 2>/dev/null | |
24539 | rc=$? | |
24540 | if test $rc -eq 0; then | |
24541 | export=1 | |
24542 | break; | |
24543 | fi | |
24544 | done | |
24545 | if test $export -eq 0; then : | |
24546 | rc=1 | |
24547 | else : | |
24548 | rc=0 | |
24549 | fi | |
24550 | else : | |
24551 | rc=0 | |
24552 | fi | |
24553 | ||
24554 | fi | |
24555 | if test $rc -ne 0; then : | |
24556 | ||
24557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24558 | $as_echo "no" >&6; } | |
24559 | ||
24560 | else : | |
24561 | ||
24562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24563 | $as_echo "yes" >&6; } | |
24564 | ||
24565 | $as_echo "#define HAVE_LOOKUP_BDEV_2ARGS 1" >>confdefs.h | |
24566 | ||
24567 | ||
24568 | fi | |
24569 | fi | |
24570 | ||
904dbe44 | 24571 | |
2078c8a7 DJL |
24572 | else |
24573 | if test "x$enable_linux_builtin" != xyes; then | |
904dbe44 | 24574 | |
2078c8a7 DJL |
24575 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ |
24576 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
24577 | rc=$? | |
24578 | if test $rc -ne 0; then | |
24579 | export=0 | |
24580 | for file in fs/block_dev.c; do | |
24581 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
24582 | "$LINUX/$file" 2>/dev/null | |
24583 | rc=$? | |
24584 | if test $rc -eq 0; then | |
24585 | export=1 | |
24586 | break; | |
24587 | fi | |
24588 | done | |
24589 | if test $export -eq 0; then : | |
24590 | rc=1 | |
24591 | else : | |
24592 | rc=0 | |
24593 | fi | |
24594 | else : | |
24595 | rc=0 | |
24596 | fi | |
904dbe44 | 24597 | |
2078c8a7 DJL |
24598 | fi |
24599 | if test $rc -ne 0; then : | |
904dbe44 | 24600 | |
2078c8a7 DJL |
24601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24602 | $as_echo "no" >&6; } | |
8e543f2f CIK |
24603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available and wants 2 args" >&5 |
24604 | $as_echo_n "checking whether lookup_bdev() is available and wants 2 args... " >&6; } | |
24605 | ||
24606 | ||
24607 | ||
24608 | cat confdefs.h - <<_ACEOF >conftest.c | |
24609 | ||
24610 | ||
24611 | #include <linux/fs.h> | |
24612 | ||
24613 | int | |
24614 | main (void) | |
24615 | { | |
24616 | ||
24617 | lookup_bdev(NULL, 0); | |
24618 | ||
24619 | ; | |
24620 | return 0; | |
24621 | } | |
24622 | ||
24623 | _ACEOF | |
24624 | ||
24625 | ||
24626 | ||
24627 | cat - <<_ACEOF >conftest.h | |
24628 | ||
24629 | _ACEOF | |
24630 | ||
24631 | ||
24632 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24633 | echo "obj-m := conftest.o" >build/Makefile | |
24634 | modpost_flag='' | |
24635 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24636 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24637 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24638 | (eval $ac_try) 2>&5 | |
24639 | ac_status=$? | |
24640 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24641 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24642 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24643 | (eval $ac_try) 2>&5 | |
24644 | ac_status=$? | |
24645 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24646 | test $ac_status = 0; }; }; then : | |
24647 | rc=0 | |
24648 | else | |
24649 | $as_echo "$as_me: failed program was:" >&5 | |
24650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24651 | rc=1 | |
24652 | ||
24653 | ||
24654 | fi | |
24655 | rm -Rf build | |
24656 | ||
24657 | ||
24658 | if test $rc -ne 0; then : | |
24659 | ||
24660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24661 | $as_echo "no" >&6; } | |
24662 | ||
24663 | else | |
24664 | if test "x$enable_linux_builtin" != xyes; then | |
24665 | ||
24666 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
24667 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
24668 | rc=$? | |
24669 | if test $rc -ne 0; then | |
24670 | export=0 | |
24671 | for file in fs/block_dev.c; do | |
24672 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
24673 | "$LINUX/$file" 2>/dev/null | |
24674 | rc=$? | |
24675 | if test $rc -eq 0; then | |
24676 | export=1 | |
24677 | break; | |
24678 | fi | |
24679 | done | |
24680 | if test $export -eq 0; then : | |
24681 | rc=1 | |
24682 | else : | |
24683 | rc=0 | |
24684 | fi | |
24685 | else : | |
24686 | rc=0 | |
24687 | fi | |
24688 | ||
24689 | fi | |
24690 | if test $rc -ne 0; then : | |
24691 | ||
24692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24693 | $as_echo "no" >&6; } | |
24694 | ||
24695 | else : | |
24696 | ||
24697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24698 | $as_echo "yes" >&6; } | |
24699 | ||
24700 | $as_echo "#define HAVE_LOOKUP_BDEV_2ARGS 1" >>confdefs.h | |
24701 | ||
24702 | ||
24703 | fi | |
24704 | fi | |
24705 | ||
904dbe44 | 24706 | |
2078c8a7 | 24707 | else : |
904dbe44 | 24708 | |
2078c8a7 DJL |
24709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
24710 | $as_echo "yes" >&6; } | |
904dbe44 | 24711 | |
2078c8a7 | 24712 | $as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h |
904dbe44 | 24713 | |
904dbe44 | 24714 | |
2078c8a7 DJL |
24715 | fi |
24716 | fi | |
904dbe44 | 24717 | |
904dbe44 | 24718 | |
904dbe44 | 24719 | |
2078c8a7 DJL |
24720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5 |
24721 | $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; } | |
904dbe44 | 24722 | |
904dbe44 | 24723 | |
2078c8a7 | 24724 | cat confdefs.h - <<_ACEOF >conftest.c |
904dbe44 | 24725 | |
904dbe44 | 24726 | |
2078c8a7 | 24727 | #include <linux/buffer_head.h> |
904dbe44 | 24728 | |
2078c8a7 DJL |
24729 | int |
24730 | main (void) | |
24731 | { | |
904dbe44 | 24732 | |
2078c8a7 DJL |
24733 | struct block_device *bdev = NULL; |
24734 | invalidate_bdev(bdev); | |
904dbe44 | 24735 | |
2078c8a7 DJL |
24736 | ; |
24737 | return 0; | |
24738 | } | |
904dbe44 | 24739 | |
2078c8a7 | 24740 | _ACEOF |
904dbe44 | 24741 | |
904dbe44 | 24742 | |
904dbe44 | 24743 | |
2078c8a7 | 24744 | cat - <<_ACEOF >conftest.h |
904dbe44 | 24745 | |
2078c8a7 | 24746 | _ACEOF |
904dbe44 | 24747 | |
904dbe44 | 24748 | |
2078c8a7 DJL |
24749 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
24750 | echo "obj-m := conftest.o" >build/Makefile | |
24751 | modpost_flag='' | |
24752 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24753 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24754 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24755 | (eval $ac_try) 2>&5 | |
24756 | ac_status=$? | |
24757 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24758 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24759 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24760 | (eval $ac_try) 2>&5 | |
24761 | ac_status=$? | |
24762 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24763 | test $ac_status = 0; }; }; then : | |
904dbe44 | 24764 | |
2078c8a7 DJL |
24765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
24766 | $as_echo "yes" >&6; } | |
904dbe44 | 24767 | |
2078c8a7 | 24768 | $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h |
904dbe44 | 24769 | |
904dbe44 CIK |
24770 | |
24771 | else | |
2078c8a7 DJL |
24772 | $as_echo "$as_me: failed program was:" >&5 |
24773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 | 24774 | |
2078c8a7 DJL |
24775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24776 | $as_echo "no" >&6; } | |
904dbe44 CIK |
24777 | |
24778 | ||
904dbe44 CIK |
24779 | |
24780 | fi | |
2078c8a7 | 24781 | rm -Rf build |
904dbe44 | 24782 | |
904dbe44 | 24783 | |
904dbe44 | 24784 | |
904dbe44 | 24785 | |
2078c8a7 DJL |
24786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5 |
24787 | $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; } | |
24788 | tmp_flags="$EXTRA_KCFLAGS" | |
24789 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
904dbe44 | 24790 | |
904dbe44 | 24791 | |
2078c8a7 | 24792 | cat confdefs.h - <<_ACEOF >conftest.c |
904dbe44 CIK |
24793 | |
24794 | ||
2078c8a7 | 24795 | #include <linux/blkdev.h> |
904dbe44 | 24796 | |
2078c8a7 DJL |
24797 | int |
24798 | main (void) | |
24799 | { | |
904dbe44 | 24800 | |
2078c8a7 DJL |
24801 | struct block_device *bdev = NULL; |
24802 | bdev_logical_block_size(bdev); | |
904dbe44 | 24803 | |
2078c8a7 DJL |
24804 | ; |
24805 | return 0; | |
24806 | } | |
904dbe44 | 24807 | |
2078c8a7 | 24808 | _ACEOF |
904dbe44 | 24809 | |
904dbe44 | 24810 | |
904dbe44 | 24811 | |
2078c8a7 | 24812 | cat - <<_ACEOF >conftest.h |
904dbe44 | 24813 | |
2078c8a7 | 24814 | _ACEOF |
904dbe44 | 24815 | |
904dbe44 | 24816 | |
2078c8a7 DJL |
24817 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
24818 | echo "obj-m := conftest.o" >build/Makefile | |
24819 | modpost_flag='' | |
24820 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24821 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24822 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24823 | (eval $ac_try) 2>&5 | |
24824 | ac_status=$? | |
24825 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24826 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24827 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24828 | (eval $ac_try) 2>&5 | |
24829 | ac_status=$? | |
24830 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24831 | test $ac_status = 0; }; }; then : | |
904dbe44 | 24832 | |
2078c8a7 DJL |
24833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
24834 | $as_echo "yes" >&6; } | |
904dbe44 | 24835 | |
2078c8a7 | 24836 | $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h |
904dbe44 | 24837 | |
904dbe44 CIK |
24838 | |
24839 | else | |
2078c8a7 DJL |
24840 | $as_echo "$as_me: failed program was:" >&5 |
24841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 | 24842 | |
2078c8a7 DJL |
24843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24844 | $as_echo "no" >&6; } | |
904dbe44 | 24845 | |
904dbe44 | 24846 | |
904dbe44 CIK |
24847 | |
24848 | fi | |
2078c8a7 | 24849 | rm -Rf build |
904dbe44 | 24850 | |
904dbe44 | 24851 | |
2078c8a7 | 24852 | EXTRA_KCFLAGS="$tmp_flags" |
904dbe44 CIK |
24853 | |
24854 | ||
2078c8a7 DJL |
24855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5 |
24856 | $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; } | |
24857 | tmp_flags="$EXTRA_KCFLAGS" | |
24858 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
904dbe44 CIK |
24859 | |
24860 | ||
24861 | cat confdefs.h - <<_ACEOF >conftest.c | |
24862 | ||
24863 | ||
2078c8a7 DJL |
24864 | #include <linux/blkdev.h> |
24865 | ||
904dbe44 CIK |
24866 | int |
24867 | main (void) | |
24868 | { | |
24869 | ||
2078c8a7 DJL |
24870 | struct block_device *bdev = NULL; |
24871 | bdev_physical_block_size(bdev); | |
24872 | ||
904dbe44 CIK |
24873 | ; |
24874 | return 0; | |
24875 | } | |
24876 | ||
24877 | _ACEOF | |
24878 | ||
24879 | ||
24880 | ||
24881 | cat - <<_ACEOF >conftest.h | |
24882 | ||
24883 | _ACEOF | |
24884 | ||
24885 | ||
24886 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24887 | echo "obj-m := conftest.o" >build/Makefile | |
24888 | modpost_flag='' | |
24889 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24890 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24891 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24892 | (eval $ac_try) 2>&5 | |
24893 | ac_status=$? | |
24894 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24895 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24896 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24897 | (eval $ac_try) 2>&5 | |
24898 | ac_status=$? | |
24899 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24900 | test $ac_status = 0; }; }; then : | |
24901 | ||
24902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24903 | $as_echo "yes" >&6; } | |
24904 | ||
2078c8a7 DJL |
24905 | $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h |
24906 | ||
24907 | ||
904dbe44 CIK |
24908 | else |
24909 | $as_echo "$as_me: failed program was:" >&5 | |
24910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24911 | ||
24912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24913 | $as_echo "no" >&6; } | |
904dbe44 CIK |
24914 | |
24915 | ||
24916 | ||
24917 | fi | |
24918 | rm -Rf build | |
24919 | ||
24920 | ||
2078c8a7 | 24921 | EXTRA_KCFLAGS="$tmp_flags" |
904dbe44 CIK |
24922 | |
24923 | ||
2078c8a7 DJL |
24924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5 |
24925 | $as_echo_n "checking whether bio has bi_iter... " >&6; } | |
904dbe44 | 24926 | |
904dbe44 | 24927 | |
2078c8a7 | 24928 | cat confdefs.h - <<_ACEOF >conftest.c |
904dbe44 | 24929 | |
2078c8a7 DJL |
24930 | |
24931 | #include <linux/bio.h> | |
904dbe44 CIK |
24932 | |
24933 | int | |
2078c8a7 | 24934 | main (void) |
904dbe44 CIK |
24935 | { |
24936 | ||
2078c8a7 DJL |
24937 | struct bio bio; |
24938 | bio.bi_iter.bi_sector = 0; | |
904dbe44 CIK |
24939 | |
24940 | ; | |
24941 | return 0; | |
24942 | } | |
24943 | ||
24944 | _ACEOF | |
904dbe44 CIK |
24945 | |
24946 | ||
904dbe44 | 24947 | |
2078c8a7 DJL |
24948 | cat - <<_ACEOF >conftest.h |
24949 | ||
24950 | _ACEOF | |
24951 | ||
24952 | ||
24953 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24954 | echo "obj-m := conftest.o" >build/Makefile | |
24955 | modpost_flag='' | |
24956 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24957 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24958 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24959 | (eval $ac_try) 2>&5 | |
24960 | ac_status=$? | |
24961 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24962 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24963 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24964 | (eval $ac_try) 2>&5 | |
24965 | ac_status=$? | |
24966 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24967 | test $ac_status = 0; }; }; then : | |
24968 | ||
24969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24970 | $as_echo "yes" >&6; } | |
24971 | ||
24972 | $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h | |
24973 | ||
24974 | ||
24975 | else | |
24976 | $as_echo "$as_me: failed program was:" >&5 | |
24977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24978 | ||
24979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24980 | $as_echo "no" >&6; } | |
904dbe44 | 24981 | |
904dbe44 CIK |
24982 | |
24983 | ||
24984 | fi | |
2078c8a7 | 24985 | rm -Rf build |
904dbe44 CIK |
24986 | |
24987 | ||
24988 | ||
2078c8a7 DJL |
24989 | |
24990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5 | |
24991 | $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; } | |
904dbe44 CIK |
24992 | |
24993 | ||
24994 | cat confdefs.h - <<_ACEOF >conftest.c | |
24995 | ||
24996 | ||
2078c8a7 | 24997 | #include <linux/bio.h> |
904dbe44 CIK |
24998 | |
24999 | int | |
25000 | main (void) | |
25001 | { | |
25002 | ||
2078c8a7 DJL |
25003 | int flags __attribute__ ((unused)); |
25004 | flags = ((1 << BIO_RW_FAILFAST_DEV) | | |
25005 | (1 << BIO_RW_FAILFAST_TRANSPORT) | | |
25006 | (1 << BIO_RW_FAILFAST_DRIVER)); | |
904dbe44 CIK |
25007 | |
25008 | ; | |
25009 | return 0; | |
25010 | } | |
25011 | ||
25012 | _ACEOF | |
25013 | ||
25014 | ||
25015 | ||
25016 | cat - <<_ACEOF >conftest.h | |
25017 | ||
25018 | _ACEOF | |
25019 | ||
25020 | ||
25021 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25022 | echo "obj-m := conftest.o" >build/Makefile | |
25023 | modpost_flag='' | |
25024 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25025 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25026 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25027 | (eval $ac_try) 2>&5 | |
25028 | ac_status=$? | |
25029 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25030 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25031 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25032 | (eval $ac_try) 2>&5 | |
25033 | ac_status=$? | |
25034 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25035 | test $ac_status = 0; }; }; then : | |
25036 | ||
25037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25038 | $as_echo "yes" >&6; } | |
25039 | ||
2078c8a7 | 25040 | $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h |
904dbe44 CIK |
25041 | |
25042 | ||
2078c8a7 DJL |
25043 | else |
25044 | $as_echo "$as_me: failed program was:" >&5 | |
25045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 | 25046 | |
2078c8a7 DJL |
25047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
25048 | $as_echo "no" >&6; } | |
904dbe44 | 25049 | |
904dbe44 | 25050 | |
2078c8a7 DJL |
25051 | |
25052 | fi | |
25053 | rm -Rf build | |
25054 | ||
25055 | ||
25056 | ||
25057 | ||
25058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5 | |
25059 | $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; } | |
25060 | ||
25061 | ||
25062 | cat confdefs.h - <<_ACEOF >conftest.c | |
25063 | ||
25064 | ||
25065 | #include <linux/bio.h> | |
904dbe44 CIK |
25066 | |
25067 | int | |
25068 | main (void) | |
25069 | { | |
25070 | ||
2078c8a7 DJL |
25071 | int flags __attribute__ ((unused)); |
25072 | flags = REQ_FAILFAST_MASK; | |
904dbe44 CIK |
25073 | |
25074 | ; | |
25075 | return 0; | |
25076 | } | |
25077 | ||
25078 | _ACEOF | |
25079 | ||
25080 | ||
25081 | ||
25082 | cat - <<_ACEOF >conftest.h | |
25083 | ||
25084 | _ACEOF | |
25085 | ||
25086 | ||
25087 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25088 | echo "obj-m := conftest.o" >build/Makefile | |
25089 | modpost_flag='' | |
25090 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25091 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25092 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25093 | (eval $ac_try) 2>&5 | |
25094 | ac_status=$? | |
25095 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25096 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25097 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25098 | (eval $ac_try) 2>&5 | |
25099 | ac_status=$? | |
25100 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25101 | test $ac_status = 0; }; }; then : | |
25102 | ||
2078c8a7 | 25103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 | 25104 | $as_echo "yes" >&6; } |
904dbe44 | 25105 | |
2078c8a7 | 25106 | $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h |
904dbe44 CIK |
25107 | |
25108 | ||
25109 | else | |
25110 | $as_echo "$as_me: failed program was:" >&5 | |
25111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25112 | ||
25113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25114 | $as_echo "no" >&6; } | |
25115 | ||
25116 | ||
25117 | ||
904dbe44 CIK |
25118 | fi |
25119 | rm -Rf build | |
25120 | ||
25121 | ||
25122 | ||
25123 | ||
2078c8a7 DJL |
25124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5 |
25125 | $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; } | |
904dbe44 CIK |
25126 | |
25127 | ||
25128 | cat confdefs.h - <<_ACEOF >conftest.c | |
25129 | ||
25130 | ||
2078c8a7 | 25131 | #include <linux/bio.h> |
904dbe44 | 25132 | |
2078c8a7 DJL |
25133 | void wanted_end_io(struct bio *bio) { return; } |
25134 | ||
25135 | bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io; | |
904dbe44 CIK |
25136 | |
25137 | int | |
25138 | main (void) | |
25139 | { | |
25140 | ||
904dbe44 CIK |
25141 | |
25142 | ; | |
25143 | return 0; | |
2078c8a7 | 25144 | } |
904dbe44 | 25145 | |
2078c8a7 | 25146 | _ACEOF |
904dbe44 | 25147 | |
904dbe44 | 25148 | |
2078c8a7 DJL |
25149 | |
25150 | cat - <<_ACEOF >conftest.h | |
904dbe44 CIK |
25151 | |
25152 | _ACEOF | |
25153 | ||
25154 | ||
25155 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25156 | echo "obj-m := conftest.o" >build/Makefile | |
25157 | modpost_flag='' | |
25158 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25159 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25160 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25161 | (eval $ac_try) 2>&5 | |
25162 | ac_status=$? | |
25163 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25164 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25165 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25166 | (eval $ac_try) 2>&5 | |
25167 | ac_status=$? | |
25168 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25169 | test $ac_status = 0; }; }; then : | |
25170 | ||
25171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25172 | $as_echo "yes" >&6; } | |
25173 | ||
2078c8a7 | 25174 | $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h |
904dbe44 CIK |
25175 | |
25176 | ||
25177 | else | |
25178 | $as_echo "$as_me: failed program was:" >&5 | |
25179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25180 | ||
25181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25182 | $as_echo "no" >&6; } | |
25183 | ||
25184 | ||
25185 | ||
25186 | fi | |
25187 | rm -Rf build | |
25188 | ||
25189 | ||
904dbe44 CIK |
25190 | |
25191 | ||
2078c8a7 DJL |
25192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5 |
25193 | $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; } | |
904dbe44 CIK |
25194 | |
25195 | ||
25196 | cat confdefs.h - <<_ACEOF >conftest.c | |
25197 | ||
25198 | ||
2078c8a7 | 25199 | #include <linux/bio.h> |
904dbe44 CIK |
25200 | |
25201 | int | |
25202 | main (void) | |
25203 | { | |
25204 | ||
2078c8a7 DJL |
25205 | int flags __attribute__ ((unused)); |
25206 | flags = BIO_RW_BARRIER; | |
904dbe44 CIK |
25207 | |
25208 | ; | |
25209 | return 0; | |
25210 | } | |
25211 | ||
25212 | _ACEOF | |
25213 | ||
25214 | ||
25215 | ||
25216 | cat - <<_ACEOF >conftest.h | |
25217 | ||
25218 | _ACEOF | |
25219 | ||
25220 | ||
25221 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25222 | echo "obj-m := conftest.o" >build/Makefile | |
25223 | modpost_flag='' | |
25224 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25225 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25226 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25227 | (eval $ac_try) 2>&5 | |
25228 | ac_status=$? | |
25229 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25230 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25231 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25232 | (eval $ac_try) 2>&5 | |
25233 | ac_status=$? | |
25234 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25235 | test $ac_status = 0; }; }; then : | |
25236 | ||
25237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25238 | $as_echo "yes" >&6; } | |
25239 | ||
2078c8a7 | 25240 | $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h |
904dbe44 CIK |
25241 | |
25242 | ||
25243 | else | |
25244 | $as_echo "$as_me: failed program was:" >&5 | |
25245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25246 | ||
25247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25248 | $as_echo "no" >&6; } | |
2078c8a7 DJL |
25249 | |
25250 | ||
25251 | ||
25252 | fi | |
25253 | rm -Rf build | |
25254 | ||
25255 | ||
25256 | ||
25257 | ||
25258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5 | |
25259 | $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; } | |
904dbe44 CIK |
25260 | |
25261 | ||
25262 | cat confdefs.h - <<_ACEOF >conftest.c | |
25263 | ||
25264 | ||
2078c8a7 | 25265 | #include <linux/bio.h> |
904dbe44 CIK |
25266 | |
25267 | int | |
25268 | main (void) | |
25269 | { | |
25270 | ||
2078c8a7 DJL |
25271 | int flags __attribute__ ((unused)); |
25272 | flags = BIO_RW_DISCARD; | |
904dbe44 CIK |
25273 | |
25274 | ; | |
25275 | return 0; | |
25276 | } | |
25277 | ||
25278 | _ACEOF | |
25279 | ||
25280 | ||
25281 | ||
25282 | cat - <<_ACEOF >conftest.h | |
25283 | ||
25284 | _ACEOF | |
25285 | ||
25286 | ||
25287 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25288 | echo "obj-m := conftest.o" >build/Makefile | |
25289 | modpost_flag='' | |
25290 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25291 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25292 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25293 | (eval $ac_try) 2>&5 | |
25294 | ac_status=$? | |
25295 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25296 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25297 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25298 | (eval $ac_try) 2>&5 | |
25299 | ac_status=$? | |
25300 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25301 | test $ac_status = 0; }; }; then : | |
25302 | ||
2078c8a7 | 25303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
25304 | $as_echo "yes" >&6; } |
25305 | ||
2078c8a7 | 25306 | $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h |
904dbe44 CIK |
25307 | |
25308 | ||
25309 | else | |
25310 | $as_echo "$as_me: failed program was:" >&5 | |
25311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25312 | ||
2078c8a7 DJL |
25313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
25314 | $as_echo "no" >&6; } | |
904dbe44 CIK |
25315 | |
25316 | ||
25317 | ||
25318 | fi | |
25319 | rm -Rf build | |
25320 | ||
25321 | ||
25322 | ||
25323 | ||
2078c8a7 DJL |
25324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5 |
25325 | $as_echo_n "checking whether blk_queue_flush() is available... " >&6; } | |
904dbe44 CIK |
25326 | tmp_flags="$EXTRA_KCFLAGS" |
25327 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
25328 | ||
25329 | ||
25330 | cat confdefs.h - <<_ACEOF >conftest.c | |
25331 | ||
25332 | ||
25333 | #include <linux/blkdev.h> | |
25334 | ||
904dbe44 CIK |
25335 | int |
25336 | main (void) | |
25337 | { | |
25338 | ||
2078c8a7 DJL |
25339 | struct request_queue *q = NULL; |
25340 | (void) blk_queue_flush(q, REQ_FLUSH); | |
904dbe44 CIK |
25341 | |
25342 | ; | |
25343 | return 0; | |
25344 | } | |
25345 | ||
25346 | _ACEOF | |
25347 | ||
25348 | ||
25349 | ||
25350 | cat - <<_ACEOF >conftest.h | |
25351 | ||
25352 | _ACEOF | |
25353 | ||
25354 | ||
25355 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25356 | echo "obj-m := conftest.o" >build/Makefile | |
25357 | modpost_flag='' | |
25358 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25359 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25360 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25361 | (eval $ac_try) 2>&5 | |
25362 | ac_status=$? | |
25363 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25364 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25365 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25366 | (eval $ac_try) 2>&5 | |
25367 | ac_status=$? | |
25368 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25369 | test $ac_status = 0; }; }; then : | |
25370 | ||
2078c8a7 DJL |
25371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
25372 | $as_echo "yes" >&6; } | |
904dbe44 | 25373 | |
2078c8a7 | 25374 | $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h |
904dbe44 CIK |
25375 | |
25376 | ||
25377 | else | |
25378 | $as_echo "$as_me: failed program was:" >&5 | |
25379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25380 | ||
2078c8a7 DJL |
25381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
25382 | $as_echo "no" >&6; } | |
904dbe44 CIK |
25383 | |
25384 | ||
25385 | ||
25386 | fi | |
25387 | rm -Rf build | |
25388 | ||
25389 | ||
904dbe44 | 25390 | |
2078c8a7 DJL |
25391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5 |
25392 | $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; } | |
904dbe44 CIK |
25393 | |
25394 | ||
25395 | cat confdefs.h - <<_ACEOF >conftest.c | |
25396 | ||
25397 | ||
2078c8a7 | 25398 | #include <linux/module.h> |
904dbe44 CIK |
25399 | #include <linux/blkdev.h> |
25400 | ||
2078c8a7 | 25401 | MODULE_LICENSE("$ZFS_META_LICENSE"); |
904dbe44 CIK |
25402 | |
25403 | int | |
25404 | main (void) | |
25405 | { | |
25406 | ||
2078c8a7 DJL |
25407 | struct request_queue *q = NULL; |
25408 | (void) blk_queue_flush(q, REQ_FLUSH); | |
904dbe44 CIK |
25409 | |
25410 | ; | |
25411 | return 0; | |
25412 | } | |
25413 | ||
25414 | _ACEOF | |
25415 | ||
25416 | ||
25417 | ||
25418 | cat - <<_ACEOF >conftest.h | |
25419 | ||
25420 | _ACEOF | |
25421 | ||
25422 | ||
25423 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25424 | echo "obj-m := conftest.o" >build/Makefile | |
25425 | modpost_flag='' | |
25426 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25427 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25428 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25429 | (eval $ac_try) 2>&5 | |
25430 | ac_status=$? | |
25431 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25432 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25433 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25434 | (eval $ac_try) 2>&5 | |
25435 | ac_status=$? | |
25436 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25437 | test $ac_status = 0; }; }; then : | |
25438 | ||
2078c8a7 DJL |
25439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
25440 | $as_echo "no" >&6; } | |
904dbe44 CIK |
25441 | |
25442 | else | |
25443 | $as_echo "$as_me: failed program was:" >&5 | |
25444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25445 | ||
2078c8a7 DJL |
25446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
25447 | $as_echo "yes" >&6; } | |
25448 | ||
25449 | $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h | |
25450 | ||
904dbe44 CIK |
25451 | |
25452 | ||
25453 | ||
25454 | fi | |
25455 | rm -Rf build | |
25456 | ||
25457 | ||
25458 | EXTRA_KCFLAGS="$tmp_flags" | |
25459 | ||
2078c8a7 DJL |
25460 | |
25461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5 | |
25462 | $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; } | |
25463 | tmp_flags="$EXTRA_KCFLAGS" | |
25464 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
904dbe44 CIK |
25465 | |
25466 | ||
25467 | cat confdefs.h - <<_ACEOF >conftest.c | |
25468 | ||
25469 | ||
2078c8a7 | 25470 | #include <linux/blkdev.h> |
904dbe44 CIK |
25471 | |
25472 | int | |
25473 | main (void) | |
25474 | { | |
25475 | ||
2078c8a7 DJL |
25476 | struct request_queue *q = NULL; |
25477 | (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS); | |
904dbe44 CIK |
25478 | |
25479 | ; | |
25480 | return 0; | |
25481 | } | |
25482 | ||
25483 | _ACEOF | |
25484 | ||
25485 | ||
25486 | ||
25487 | cat - <<_ACEOF >conftest.h | |
25488 | ||
25489 | _ACEOF | |
25490 | ||
25491 | ||
25492 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25493 | echo "obj-m := conftest.o" >build/Makefile | |
25494 | modpost_flag='' | |
25495 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25496 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25497 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25498 | (eval $ac_try) 2>&5 | |
25499 | ac_status=$? | |
25500 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25501 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25502 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25503 | (eval $ac_try) 2>&5 | |
25504 | ac_status=$? | |
25505 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25506 | test $ac_status = 0; }; }; then : | |
25507 | ||
25508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25509 | $as_echo "yes" >&6; } | |
25510 | ||
2078c8a7 | 25511 | $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h |
904dbe44 CIK |
25512 | |
25513 | ||
25514 | else | |
25515 | $as_echo "$as_me: failed program was:" >&5 | |
25516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25517 | ||
25518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25519 | $as_echo "no" >&6; } | |
25520 | ||
25521 | ||
25522 | ||
25523 | fi | |
25524 | rm -Rf build | |
25525 | ||
25526 | ||
2078c8a7 | 25527 | EXTRA_KCFLAGS="$tmp_flags" |
904dbe44 CIK |
25528 | |
25529 | ||
2078c8a7 DJL |
25530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5 |
25531 | $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; } | |
25532 | tmp_flags="$EXTRA_KCFLAGS" | |
25533 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
904dbe44 CIK |
25534 | |
25535 | ||
25536 | cat confdefs.h - <<_ACEOF >conftest.c | |
25537 | ||
25538 | ||
2078c8a7 | 25539 | #include <linux/blkdev.h> |
904dbe44 CIK |
25540 | |
25541 | int | |
25542 | main (void) | |
25543 | { | |
25544 | ||
2078c8a7 DJL |
25545 | struct request_queue *q = NULL; |
25546 | (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS); | |
904dbe44 CIK |
25547 | |
25548 | ; | |
25549 | return 0; | |
25550 | } | |
25551 | ||
25552 | _ACEOF | |
25553 | ||
25554 | ||
25555 | ||
25556 | cat - <<_ACEOF >conftest.h | |
25557 | ||
25558 | _ACEOF | |
25559 | ||
25560 | ||
25561 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25562 | echo "obj-m := conftest.o" >build/Makefile | |
25563 | modpost_flag='' | |
25564 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25565 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25566 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25567 | (eval $ac_try) 2>&5 | |
25568 | ac_status=$? | |
25569 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25570 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25571 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25572 | (eval $ac_try) 2>&5 | |
25573 | ac_status=$? | |
25574 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25575 | test $ac_status = 0; }; }; then : | |
25576 | ||
25577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25578 | $as_echo "yes" >&6; } | |
25579 | ||
2078c8a7 | 25580 | $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h |
904dbe44 CIK |
25581 | |
25582 | ||
25583 | else | |
25584 | $as_echo "$as_me: failed program was:" >&5 | |
25585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25586 | ||
25587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25588 | $as_echo "no" >&6; } | |
25589 | ||
25590 | ||
25591 | ||
25592 | fi | |
25593 | rm -Rf build | |
25594 | ||
25595 | ||
2078c8a7 | 25596 | EXTRA_KCFLAGS="$tmp_flags" |
904dbe44 CIK |
25597 | |
25598 | ||
2078c8a7 DJL |
25599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5 |
25600 | $as_echo_n "checking whether get_disk_ro() is available... " >&6; } | |
25601 | tmp_flags="$EXTRA_KCFLAGS" | |
25602 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
904dbe44 CIK |
25603 | |
25604 | ||
25605 | cat confdefs.h - <<_ACEOF >conftest.c | |
25606 | ||
25607 | ||
2078c8a7 | 25608 | #include <linux/blkdev.h> |
904dbe44 CIK |
25609 | |
25610 | int | |
25611 | main (void) | |
25612 | { | |
25613 | ||
2078c8a7 DJL |
25614 | struct gendisk *disk = NULL; |
25615 | (void) get_disk_ro(disk); | |
904dbe44 CIK |
25616 | |
25617 | ; | |
25618 | return 0; | |
25619 | } | |
25620 | ||
25621 | _ACEOF | |
25622 | ||
25623 | ||
25624 | ||
25625 | cat - <<_ACEOF >conftest.h | |
25626 | ||
25627 | _ACEOF | |
25628 | ||
25629 | ||
25630 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25631 | echo "obj-m := conftest.o" >build/Makefile | |
25632 | modpost_flag='' | |
25633 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25634 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25635 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25636 | (eval $ac_try) 2>&5 | |
25637 | ac_status=$? | |
25638 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25639 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25640 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25641 | (eval $ac_try) 2>&5 | |
25642 | ac_status=$? | |
25643 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25644 | test $ac_status = 0; }; }; then : | |
25645 | ||
25646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25647 | $as_echo "yes" >&6; } | |
25648 | ||
2078c8a7 | 25649 | $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h |
904dbe44 CIK |
25650 | |
25651 | ||
25652 | else | |
25653 | $as_echo "$as_me: failed program was:" >&5 | |
25654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25655 | ||
25656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25657 | $as_echo "no" >&6; } | |
25658 | ||
25659 | ||
25660 | ||
25661 | fi | |
25662 | rm -Rf build | |
25663 | ||
25664 | ||
2078c8a7 | 25665 | EXTRA_KCFLAGS="$tmp_flags" |
904dbe44 | 25666 | |
2078c8a7 DJL |
25667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5 |
25668 | $as_echo_n "checking whether get_gendisk() is available... " >&6; } | |
904dbe44 CIK |
25669 | |
25670 | ||
25671 | ||
25672 | cat confdefs.h - <<_ACEOF >conftest.c | |
25673 | ||
25674 | ||
2078c8a7 | 25675 | #include <linux/genhd.h> |
904dbe44 CIK |
25676 | |
25677 | int | |
25678 | main (void) | |
25679 | { | |
25680 | ||
2078c8a7 | 25681 | get_gendisk(0, NULL); |
904dbe44 CIK |
25682 | |
25683 | ; | |
25684 | return 0; | |
25685 | } | |
25686 | ||
25687 | _ACEOF | |
25688 | ||
25689 | ||
25690 | ||
25691 | cat - <<_ACEOF >conftest.h | |
25692 | ||
25693 | _ACEOF | |
25694 | ||
25695 | ||
25696 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25697 | echo "obj-m := conftest.o" >build/Makefile | |
25698 | modpost_flag='' | |
25699 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25700 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25701 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25702 | (eval $ac_try) 2>&5 | |
25703 | ac_status=$? | |
25704 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25705 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25706 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25707 | (eval $ac_try) 2>&5 | |
25708 | ac_status=$? | |
25709 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25710 | test $ac_status = 0; }; }; then : | |
25711 | rc=0 | |
25712 | else | |
25713 | $as_echo "$as_me: failed program was:" >&5 | |
25714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25715 | rc=1 | |
25716 | ||
25717 | ||
25718 | fi | |
25719 | rm -Rf build | |
25720 | ||
25721 | ||
25722 | if test $rc -ne 0; then : | |
25723 | ||
25724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25725 | $as_echo "no" >&6; } | |
25726 | ||
25727 | else | |
25728 | if test "x$enable_linux_builtin" != xyes; then | |
25729 | ||
2078c8a7 | 25730 | grep -q -E '[[:space:]]get_gendisk[[:space:]]' \ |
904dbe44 CIK |
25731 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
25732 | rc=$? | |
25733 | if test $rc -ne 0; then | |
25734 | export=0 | |
2078c8a7 DJL |
25735 | for file in block/genhd.c; do |
25736 | grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \ | |
904dbe44 CIK |
25737 | "$LINUX/$file" 2>/dev/null |
25738 | rc=$? | |
25739 | if test $rc -eq 0; then | |
25740 | export=1 | |
25741 | break; | |
25742 | fi | |
25743 | done | |
25744 | if test $export -eq 0; then : | |
25745 | rc=1 | |
25746 | else : | |
25747 | rc=0 | |
25748 | fi | |
25749 | else : | |
25750 | rc=0 | |
25751 | fi | |
25752 | ||
25753 | fi | |
25754 | if test $rc -ne 0; then : | |
25755 | ||
25756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25757 | $as_echo "no" >&6; } | |
25758 | ||
25759 | else : | |
25760 | ||
25761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25762 | $as_echo "yes" >&6; } | |
25763 | ||
2078c8a7 | 25764 | $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h |
904dbe44 CIK |
25765 | |
25766 | ||
25767 | fi | |
25768 | fi | |
25769 | ||
25770 | ||
904dbe44 | 25771 | |
2078c8a7 DJL |
25772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5 |
25773 | $as_echo_n "checking whether ql->discard_granularity is available... " >&6; } | |
904dbe44 CIK |
25774 | |
25775 | ||
25776 | cat confdefs.h - <<_ACEOF >conftest.c | |
25777 | ||
25778 | ||
2078c8a7 | 25779 | #include <linux/blkdev.h> |
904dbe44 CIK |
25780 | |
25781 | int | |
25782 | main (void) | |
25783 | { | |
25784 | ||
2078c8a7 DJL |
25785 | struct queue_limits ql __attribute__ ((unused)); |
25786 | ||
25787 | ql.discard_granularity = 0; | |
904dbe44 CIK |
25788 | |
25789 | ; | |
25790 | return 0; | |
25791 | } | |
25792 | ||
25793 | _ACEOF | |
25794 | ||
25795 | ||
25796 | ||
25797 | cat - <<_ACEOF >conftest.h | |
25798 | ||
25799 | _ACEOF | |
25800 | ||
25801 | ||
25802 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25803 | echo "obj-m := conftest.o" >build/Makefile | |
25804 | modpost_flag='' | |
25805 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25806 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25807 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25808 | (eval $ac_try) 2>&5 | |
25809 | ac_status=$? | |
25810 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25811 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25812 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25813 | (eval $ac_try) 2>&5 | |
25814 | ac_status=$? | |
25815 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25816 | test $ac_status = 0; }; }; then : | |
904dbe44 | 25817 | |
2078c8a7 DJL |
25818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
25819 | $as_echo "yes" >&6; } | |
904dbe44 | 25820 | |
2078c8a7 | 25821 | $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h |
904dbe44 | 25822 | |
904dbe44 | 25823 | |
2078c8a7 DJL |
25824 | else |
25825 | $as_echo "$as_me: failed program was:" >&5 | |
25826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 CIK |
25827 | |
25828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25829 | $as_echo "no" >&6; } | |
25830 | ||
904dbe44 | 25831 | |
904dbe44 | 25832 | |
2078c8a7 DJL |
25833 | fi |
25834 | rm -Rf build | |
904dbe44 | 25835 | |
904dbe44 CIK |
25836 | |
25837 | ||
904dbe44 | 25838 | |
2078c8a7 DJL |
25839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5 |
25840 | $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; } | |
904dbe44 CIK |
25841 | |
25842 | ||
25843 | cat confdefs.h - <<_ACEOF >conftest.c | |
25844 | ||
25845 | ||
25846 | #include <linux/fs.h> | |
2078c8a7 DJL |
25847 | #include <linux/xattr.h> |
25848 | ||
25849 | const struct xattr_handler xattr_test_handler = { | |
25850 | .prefix = "test", | |
25851 | .get = NULL, | |
25852 | .set = NULL, | |
25853 | }; | |
25854 | ||
25855 | const struct xattr_handler *xattr_handlers[] = { | |
25856 | &xattr_test_handler, | |
25857 | }; | |
25858 | ||
25859 | const struct super_block sb __attribute__ ((unused)) = { | |
25860 | .s_xattr = xattr_handlers, | |
25861 | }; | |
904dbe44 CIK |
25862 | |
25863 | int | |
25864 | main (void) | |
25865 | { | |
25866 | ||
904dbe44 CIK |
25867 | |
25868 | ; | |
25869 | return 0; | |
25870 | } | |
25871 | ||
25872 | _ACEOF | |
25873 | ||
25874 | ||
25875 | ||
25876 | cat - <<_ACEOF >conftest.h | |
25877 | ||
25878 | _ACEOF | |
25879 | ||
25880 | ||
25881 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25882 | echo "obj-m := conftest.o" >build/Makefile | |
25883 | modpost_flag='' | |
25884 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25885 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25886 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25887 | (eval $ac_try) 2>&5 | |
25888 | ac_status=$? | |
25889 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25890 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25891 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25892 | (eval $ac_try) 2>&5 | |
25893 | ac_status=$? | |
25894 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25895 | test $ac_status = 0; }; }; then : | |
904dbe44 | 25896 | |
2078c8a7 DJL |
25897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
25898 | $as_echo "yes" >&6; } | |
904dbe44 | 25899 | |
2078c8a7 | 25900 | $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h |
904dbe44 | 25901 | |
904dbe44 | 25902 | |
2078c8a7 DJL |
25903 | else |
25904 | $as_echo "$as_me: failed program was:" >&5 | |
25905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 CIK |
25906 | |
25907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25908 | $as_echo "no" >&6; } | |
25909 | ||
904dbe44 | 25910 | |
904dbe44 | 25911 | |
2078c8a7 DJL |
25912 | fi |
25913 | rm -Rf build | |
904dbe44 | 25914 | |
904dbe44 CIK |
25915 | |
25916 | ||
25917 | ||
2078c8a7 DJL |
25918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5 |
25919 | $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; } | |
904dbe44 CIK |
25920 | |
25921 | ||
25922 | cat confdefs.h - <<_ACEOF >conftest.c | |
25923 | ||
25924 | ||
2078c8a7 DJL |
25925 | #include <linux/xattr.h> |
25926 | ||
25927 | int get(const struct xattr_handler *handler, | |
25928 | struct dentry *dentry, const char *name, | |
25929 | void *buffer, size_t size) { return 0; } | |
25930 | static const struct xattr_handler | |
25931 | xops __attribute__ ((unused)) = { | |
25932 | .get = get, | |
25933 | }; | |
904dbe44 CIK |
25934 | |
25935 | int | |
25936 | main (void) | |
25937 | { | |
25938 | ||
904dbe44 CIK |
25939 | |
25940 | ; | |
25941 | return 0; | |
25942 | } | |
25943 | ||
25944 | _ACEOF | |
25945 | ||
25946 | ||
25947 | ||
25948 | cat - <<_ACEOF >conftest.h | |
25949 | ||
25950 | _ACEOF | |
25951 | ||
25952 | ||
25953 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25954 | echo "obj-m := conftest.o" >build/Makefile | |
25955 | modpost_flag='' | |
25956 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25957 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25958 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25959 | (eval $ac_try) 2>&5 | |
25960 | ac_status=$? | |
25961 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25962 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25963 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25964 | (eval $ac_try) 2>&5 | |
25965 | ac_status=$? | |
25966 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25967 | test $ac_status = 0; }; }; then : | |
25968 | ||
25969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25970 | $as_echo "yes" >&6; } | |
25971 | ||
2078c8a7 | 25972 | $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h |
904dbe44 CIK |
25973 | |
25974 | ||
25975 | else | |
25976 | $as_echo "$as_me: failed program was:" >&5 | |
25977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25978 | ||
2078c8a7 | 25979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 | 25980 | $as_echo "no" >&6; } |
2078c8a7 DJL |
25981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5 |
25982 | $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; } | |
904dbe44 CIK |
25983 | |
25984 | ||
25985 | cat confdefs.h - <<_ACEOF >conftest.c | |
25986 | ||
25987 | ||
2078c8a7 DJL |
25988 | #include <linux/xattr.h> |
25989 | ||
25990 | int get(struct dentry *dentry, const char *name, | |
25991 | void *buffer, size_t size, int handler_flags) | |
25992 | { return 0; } | |
25993 | static const struct xattr_handler | |
25994 | xops __attribute__ ((unused)) = { | |
25995 | .get = get, | |
25996 | }; | |
904dbe44 CIK |
25997 | |
25998 | int | |
25999 | main (void) | |
26000 | { | |
26001 | ||
904dbe44 CIK |
26002 | |
26003 | ; | |
26004 | return 0; | |
26005 | } | |
26006 | ||
26007 | _ACEOF | |
26008 | ||
26009 | ||
26010 | ||
26011 | cat - <<_ACEOF >conftest.h | |
26012 | ||
26013 | _ACEOF | |
26014 | ||
26015 | ||
26016 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26017 | echo "obj-m := conftest.o" >build/Makefile | |
26018 | modpost_flag='' | |
26019 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26020 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26021 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26022 | (eval $ac_try) 2>&5 | |
26023 | ac_status=$? | |
26024 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26025 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26026 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26027 | (eval $ac_try) 2>&5 | |
26028 | ac_status=$? | |
26029 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26030 | test $ac_status = 0; }; }; then : | |
26031 | ||
2078c8a7 | 26032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
26033 | $as_echo "yes" >&6; } |
26034 | ||
2078c8a7 | 26035 | $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h |
904dbe44 CIK |
26036 | |
26037 | ||
26038 | else | |
26039 | $as_echo "$as_me: failed program was:" >&5 | |
26040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26041 | ||
2078c8a7 | 26042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 | 26043 | $as_echo "no" >&6; } |
2078c8a7 DJL |
26044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5 |
26045 | $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; } | |
904dbe44 CIK |
26046 | |
26047 | ||
26048 | cat confdefs.h - <<_ACEOF >conftest.c | |
26049 | ||
26050 | ||
2078c8a7 DJL |
26051 | #include <linux/xattr.h> |
26052 | ||
26053 | int get(struct inode *ip, const char *name, | |
26054 | void *buffer, size_t size) { return 0; } | |
26055 | static const struct xattr_handler | |
26056 | xops __attribute__ ((unused)) = { | |
26057 | .get = get, | |
26058 | }; | |
904dbe44 CIK |
26059 | |
26060 | int | |
26061 | main (void) | |
26062 | { | |
26063 | ||
904dbe44 CIK |
26064 | |
26065 | ; | |
26066 | return 0; | |
26067 | } | |
26068 | ||
26069 | _ACEOF | |
26070 | ||
26071 | ||
26072 | ||
26073 | cat - <<_ACEOF >conftest.h | |
26074 | ||
26075 | _ACEOF | |
26076 | ||
26077 | ||
26078 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26079 | echo "obj-m := conftest.o" >build/Makefile | |
26080 | modpost_flag='' | |
26081 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26082 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26083 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26084 | (eval $ac_try) 2>&5 | |
26085 | ac_status=$? | |
26086 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26087 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
26093 | ||
2078c8a7 | 26094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
26095 | $as_echo "yes" >&6; } |
26096 | ||
2078c8a7 | 26097 | $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h |
904dbe44 CIK |
26098 | |
26099 | ||
26100 | else | |
26101 | $as_echo "$as_me: failed program was:" >&5 | |
26102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26103 | ||
2078c8a7 | 26104 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 |
904dbe44 CIK |
26105 | |
26106 | ||
26107 | ||
26108 | fi | |
26109 | rm -Rf build | |
26110 | ||
26111 | ||
904dbe44 CIK |
26112 | |
26113 | ||
2078c8a7 DJL |
26114 | |
26115 | fi | |
26116 | rm -Rf build | |
26117 | ||
26118 | ||
26119 | ||
26120 | ||
26121 | ||
26122 | fi | |
26123 | rm -Rf build | |
26124 | ||
26125 | ||
26126 | ||
26127 | ||
26128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5 | |
26129 | $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; } | |
904dbe44 CIK |
26130 | |
26131 | ||
26132 | cat confdefs.h - <<_ACEOF >conftest.c | |
26133 | ||
26134 | ||
2078c8a7 DJL |
26135 | #include <linux/xattr.h> |
26136 | ||
26137 | int set(const struct xattr_handler *handler, | |
26138 | struct dentry *dentry, const char *name, | |
26139 | const void *buffer, size_t size, int flags) | |
26140 | { return 0; } | |
26141 | static const struct xattr_handler | |
26142 | xops __attribute__ ((unused)) = { | |
26143 | .set = set, | |
26144 | }; | |
904dbe44 CIK |
26145 | |
26146 | int | |
26147 | main (void) | |
26148 | { | |
26149 | ||
904dbe44 CIK |
26150 | |
26151 | ; | |
26152 | return 0; | |
26153 | } | |
26154 | ||
26155 | _ACEOF | |
26156 | ||
26157 | ||
26158 | ||
26159 | cat - <<_ACEOF >conftest.h | |
26160 | ||
26161 | _ACEOF | |
26162 | ||
26163 | ||
26164 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26165 | echo "obj-m := conftest.o" >build/Makefile | |
26166 | modpost_flag='' | |
26167 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26168 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26169 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26170 | (eval $ac_try) 2>&5 | |
26171 | ac_status=$? | |
26172 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26173 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26174 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26175 | (eval $ac_try) 2>&5 | |
26176 | ac_status=$? | |
26177 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26178 | test $ac_status = 0; }; }; then : | |
26179 | ||
26180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26181 | $as_echo "yes" >&6; } | |
26182 | ||
2078c8a7 | 26183 | $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h |
904dbe44 CIK |
26184 | |
26185 | ||
26186 | else | |
26187 | $as_echo "$as_me: failed program was:" >&5 | |
26188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26189 | ||
2078c8a7 | 26190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 | 26191 | $as_echo "no" >&6; } |
2078c8a7 DJL |
26192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5 |
26193 | $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; } | |
904dbe44 CIK |
26194 | |
26195 | ||
26196 | cat confdefs.h - <<_ACEOF >conftest.c | |
26197 | ||
26198 | ||
2078c8a7 DJL |
26199 | #include <linux/xattr.h> |
26200 | ||
26201 | int set(struct dentry *dentry, const char *name, | |
26202 | const void *buffer, size_t size, int flags, | |
26203 | int handler_flags) { return 0; } | |
26204 | static const struct xattr_handler | |
26205 | xops __attribute__ ((unused)) = { | |
26206 | .set = set, | |
26207 | }; | |
904dbe44 CIK |
26208 | |
26209 | int | |
26210 | main (void) | |
26211 | { | |
26212 | ||
904dbe44 CIK |
26213 | |
26214 | ; | |
26215 | return 0; | |
26216 | } | |
26217 | ||
26218 | _ACEOF | |
26219 | ||
26220 | ||
26221 | ||
26222 | cat - <<_ACEOF >conftest.h | |
26223 | ||
26224 | _ACEOF | |
26225 | ||
26226 | ||
26227 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26228 | echo "obj-m := conftest.o" >build/Makefile | |
26229 | modpost_flag='' | |
26230 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26231 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26232 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26233 | (eval $ac_try) 2>&5 | |
26234 | ac_status=$? | |
26235 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26236 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26237 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26238 | (eval $ac_try) 2>&5 | |
26239 | ac_status=$? | |
26240 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26241 | test $ac_status = 0; }; }; then : | |
26242 | ||
2078c8a7 | 26243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
26244 | $as_echo "yes" >&6; } |
26245 | ||
2078c8a7 | 26246 | $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h |
904dbe44 CIK |
26247 | |
26248 | ||
26249 | else | |
26250 | $as_echo "$as_me: failed program was:" >&5 | |
26251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26252 | ||
2078c8a7 | 26253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 | 26254 | $as_echo "no" >&6; } |
2078c8a7 DJL |
26255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5 |
26256 | $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; } | |
904dbe44 CIK |
26257 | |
26258 | ||
26259 | cat confdefs.h - <<_ACEOF >conftest.c | |
26260 | ||
26261 | ||
2078c8a7 DJL |
26262 | #include <linux/xattr.h> |
26263 | ||
26264 | int set(struct inode *ip, const char *name, | |
26265 | const void *buffer, size_t size, int flags) | |
26266 | { return 0; } | |
26267 | static const struct xattr_handler | |
26268 | xops __attribute__ ((unused)) = { | |
26269 | .set = set, | |
26270 | }; | |
904dbe44 CIK |
26271 | |
26272 | int | |
26273 | main (void) | |
26274 | { | |
26275 | ||
904dbe44 CIK |
26276 | |
26277 | ; | |
26278 | return 0; | |
26279 | } | |
26280 | ||
26281 | _ACEOF | |
26282 | ||
26283 | ||
26284 | ||
26285 | cat - <<_ACEOF >conftest.h | |
26286 | ||
26287 | _ACEOF | |
26288 | ||
26289 | ||
26290 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26291 | echo "obj-m := conftest.o" >build/Makefile | |
26292 | modpost_flag='' | |
26293 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26294 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26295 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26296 | (eval $ac_try) 2>&5 | |
26297 | ac_status=$? | |
26298 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26299 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26300 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26301 | (eval $ac_try) 2>&5 | |
26302 | ac_status=$? | |
26303 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26304 | test $ac_status = 0; }; }; then : | |
26305 | ||
2078c8a7 | 26306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
26307 | $as_echo "yes" >&6; } |
26308 | ||
2078c8a7 | 26309 | $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h |
904dbe44 CIK |
26310 | |
26311 | ||
26312 | else | |
26313 | $as_echo "$as_me: failed program was:" >&5 | |
26314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26315 | ||
2078c8a7 | 26316 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 |
904dbe44 CIK |
26317 | |
26318 | ||
26319 | ||
26320 | fi | |
26321 | rm -Rf build | |
26322 | ||
26323 | ||
26324 | ||
26325 | ||
2078c8a7 DJL |
26326 | |
26327 | fi | |
26328 | rm -Rf build | |
904dbe44 CIK |
26329 | |
26330 | ||
904dbe44 CIK |
26331 | |
26332 | ||
904dbe44 | 26333 | |
2078c8a7 DJL |
26334 | fi |
26335 | rm -Rf build | |
904dbe44 | 26336 | |
2078c8a7 DJL |
26337 | |
26338 | ||
26339 | ||
26340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5 | |
26341 | $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; } | |
26342 | ||
26343 | ||
26344 | cat confdefs.h - <<_ACEOF >conftest.c | |
26345 | ||
26346 | ||
26347 | #include <linux/xattr.h> | |
26348 | ||
26349 | bool list(struct dentry *dentry) { return 0; } | |
26350 | static const struct xattr_handler | |
26351 | xops __attribute__ ((unused)) = { | |
26352 | .list = list, | |
26353 | }; | |
904dbe44 CIK |
26354 | |
26355 | int | |
26356 | main (void) | |
26357 | { | |
26358 | ||
26359 | ||
26360 | ; | |
26361 | return 0; | |
26362 | } | |
26363 | ||
26364 | _ACEOF | |
26365 | ||
26366 | ||
26367 | ||
26368 | cat - <<_ACEOF >conftest.h | |
26369 | ||
26370 | _ACEOF | |
26371 | ||
26372 | ||
26373 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26374 | echo "obj-m := conftest.o" >build/Makefile | |
26375 | modpost_flag='' | |
26376 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26377 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26378 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26379 | (eval $ac_try) 2>&5 | |
26380 | ac_status=$? | |
26381 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26382 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26383 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26384 | (eval $ac_try) 2>&5 | |
26385 | ac_status=$? | |
26386 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26387 | test $ac_status = 0; }; }; then : | |
26388 | ||
2078c8a7 DJL |
26389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
26390 | $as_echo "yes" >&6; } | |
904dbe44 | 26391 | |
2078c8a7 | 26392 | $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h |
904dbe44 CIK |
26393 | |
26394 | ||
2078c8a7 DJL |
26395 | else |
26396 | $as_echo "$as_me: failed program was:" >&5 | |
26397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26398 | ||
26399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26400 | $as_echo "no" >&6; } | |
26401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5 | |
26402 | $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; } | |
904dbe44 CIK |
26403 | |
26404 | ||
26405 | cat confdefs.h - <<_ACEOF >conftest.c | |
26406 | ||
26407 | ||
2078c8a7 DJL |
26408 | #include <linux/xattr.h> |
26409 | ||
26410 | size_t list(const struct xattr_handler *handler, | |
26411 | struct dentry *dentry, char *list, size_t list_size, | |
26412 | const char *name, size_t name_len) { return 0; } | |
26413 | static const struct xattr_handler | |
26414 | xops __attribute__ ((unused)) = { | |
26415 | .list = list, | |
26416 | }; | |
904dbe44 CIK |
26417 | |
26418 | int | |
26419 | main (void) | |
26420 | { | |
26421 | ||
904dbe44 CIK |
26422 | |
26423 | ; | |
26424 | return 0; | |
26425 | } | |
26426 | ||
26427 | _ACEOF | |
26428 | ||
26429 | ||
26430 | ||
26431 | cat - <<_ACEOF >conftest.h | |
26432 | ||
26433 | _ACEOF | |
26434 | ||
26435 | ||
26436 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26437 | echo "obj-m := conftest.o" >build/Makefile | |
26438 | modpost_flag='' | |
26439 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26440 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26441 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26442 | (eval $ac_try) 2>&5 | |
26443 | ac_status=$? | |
26444 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26445 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26446 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26447 | (eval $ac_try) 2>&5 | |
26448 | ac_status=$? | |
26449 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26450 | test $ac_status = 0; }; }; then : | |
26451 | ||
2078c8a7 | 26452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
26453 | $as_echo "yes" >&6; } |
26454 | ||
2078c8a7 | 26455 | $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h |
904dbe44 CIK |
26456 | |
26457 | ||
26458 | else | |
26459 | $as_echo "$as_me: failed program was:" >&5 | |
26460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26461 | ||
2078c8a7 | 26462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 | 26463 | $as_echo "no" >&6; } |
2078c8a7 DJL |
26464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5 |
26465 | $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; } | |
904dbe44 CIK |
26466 | |
26467 | ||
26468 | cat confdefs.h - <<_ACEOF >conftest.c | |
26469 | ||
26470 | ||
2078c8a7 DJL |
26471 | #include <linux/xattr.h> |
26472 | ||
26473 | size_t list(struct dentry *dentry, | |
26474 | char *list, size_t list_size, | |
26475 | const char *name, size_t name_len, | |
26476 | int handler_flags) { return 0; } | |
26477 | static const struct xattr_handler | |
26478 | xops __attribute__ ((unused)) = { | |
26479 | .list = list, | |
26480 | }; | |
904dbe44 CIK |
26481 | |
26482 | int | |
26483 | main (void) | |
26484 | { | |
26485 | ||
904dbe44 CIK |
26486 | |
26487 | ; | |
26488 | return 0; | |
26489 | } | |
26490 | ||
26491 | _ACEOF | |
26492 | ||
26493 | ||
26494 | ||
26495 | cat - <<_ACEOF >conftest.h | |
26496 | ||
26497 | _ACEOF | |
26498 | ||
26499 | ||
26500 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26501 | echo "obj-m := conftest.o" >build/Makefile | |
26502 | modpost_flag='' | |
26503 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26504 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26505 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26506 | (eval $ac_try) 2>&5 | |
26507 | ac_status=$? | |
26508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26509 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26510 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26511 | (eval $ac_try) 2>&5 | |
26512 | ac_status=$? | |
26513 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26514 | test $ac_status = 0; }; }; then : | |
26515 | ||
2078c8a7 | 26516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
26517 | $as_echo "yes" >&6; } |
26518 | ||
2078c8a7 | 26519 | $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h |
904dbe44 CIK |
26520 | |
26521 | ||
26522 | else | |
26523 | $as_echo "$as_me: failed program was:" >&5 | |
26524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26525 | ||
2078c8a7 | 26526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 | 26527 | $as_echo "no" >&6; } |
2078c8a7 DJL |
26528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5 |
26529 | $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; } | |
904dbe44 CIK |
26530 | |
26531 | ||
26532 | cat confdefs.h - <<_ACEOF >conftest.c | |
26533 | ||
26534 | ||
2078c8a7 DJL |
26535 | #include <linux/xattr.h> |
26536 | ||
26537 | size_t list(struct inode *ip, char *lst, | |
26538 | size_t list_size, const char *name, | |
26539 | size_t name_len) { return 0; } | |
26540 | static const struct xattr_handler | |
26541 | xops __attribute__ ((unused)) = { | |
26542 | .list = list, | |
26543 | }; | |
904dbe44 CIK |
26544 | |
26545 | int | |
26546 | main (void) | |
26547 | { | |
26548 | ||
904dbe44 CIK |
26549 | |
26550 | ; | |
26551 | return 0; | |
26552 | } | |
26553 | ||
26554 | _ACEOF | |
26555 | ||
26556 | ||
26557 | ||
26558 | cat - <<_ACEOF >conftest.h | |
26559 | ||
26560 | _ACEOF | |
26561 | ||
26562 | ||
26563 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26564 | echo "obj-m := conftest.o" >build/Makefile | |
26565 | modpost_flag='' | |
26566 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26567 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26568 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26569 | (eval $ac_try) 2>&5 | |
26570 | ac_status=$? | |
26571 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26572 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
26578 | ||
2078c8a7 | 26579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
26580 | $as_echo "yes" >&6; } |
26581 | ||
2078c8a7 | 26582 | $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h |
904dbe44 CIK |
26583 | |
26584 | ||
26585 | else | |
26586 | $as_echo "$as_me: failed program was:" >&5 | |
26587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26588 | ||
2078c8a7 | 26589 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 |
904dbe44 CIK |
26590 | |
26591 | ||
26592 | ||
26593 | fi | |
26594 | rm -Rf build | |
26595 | ||
26596 | ||
26597 | ||
904dbe44 CIK |
26598 | |
26599 | ||
2078c8a7 DJL |
26600 | fi |
26601 | rm -Rf build | |
904dbe44 CIK |
26602 | |
26603 | ||
904dbe44 | 26604 | |
2078c8a7 DJL |
26605 | |
26606 | ||
26607 | fi | |
26608 | rm -Rf build | |
26609 | ||
26610 | ||
26611 | ||
26612 | ||
26613 | ||
26614 | fi | |
26615 | rm -Rf build | |
26616 | ||
26617 | ||
26618 | ||
26619 | ||
26620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5 | |
26621 | $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; } | |
26622 | ||
26623 | ||
26624 | cat confdefs.h - <<_ACEOF >conftest.c | |
26625 | ||
26626 | ||
26627 | #include <linux/fs.h> | |
904dbe44 CIK |
26628 | |
26629 | int | |
26630 | main (void) | |
26631 | { | |
26632 | ||
2078c8a7 DJL |
26633 | struct inode *ip = NULL; |
26634 | (void) inode_owner_or_capable(ip); | |
904dbe44 CIK |
26635 | |
26636 | ; | |
26637 | return 0; | |
26638 | } | |
26639 | ||
26640 | _ACEOF | |
26641 | ||
26642 | ||
26643 | ||
26644 | cat - <<_ACEOF >conftest.h | |
26645 | ||
26646 | _ACEOF | |
26647 | ||
26648 | ||
26649 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26650 | echo "obj-m := conftest.o" >build/Makefile | |
26651 | modpost_flag='' | |
26652 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26653 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26654 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26655 | (eval $ac_try) 2>&5 | |
26656 | ac_status=$? | |
26657 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26658 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26659 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26660 | (eval $ac_try) 2>&5 | |
26661 | ac_status=$? | |
26662 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26663 | test $ac_status = 0; }; }; then : | |
26664 | ||
904dbe44 CIK |
26665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
26666 | $as_echo "yes" >&6; } | |
26667 | ||
2078c8a7 | 26668 | $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h |
904dbe44 | 26669 | |
904dbe44 | 26670 | |
2078c8a7 DJL |
26671 | else |
26672 | $as_echo "$as_me: failed program was:" >&5 | |
26673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 | 26674 | |
2078c8a7 DJL |
26675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
26676 | $as_echo "no" >&6; } | |
26677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5 | |
26678 | $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; } | |
904dbe44 CIK |
26679 | |
26680 | ||
26681 | cat confdefs.h - <<_ACEOF >conftest.c | |
26682 | ||
26683 | ||
2078c8a7 DJL |
26684 | #include <linux/fs.h> |
26685 | #include <linux/sched.h> | |
904dbe44 CIK |
26686 | |
26687 | int | |
26688 | main (void) | |
26689 | { | |
26690 | ||
2078c8a7 DJL |
26691 | struct inode *ip = NULL; |
26692 | (void) is_owner_or_cap(ip); | |
904dbe44 CIK |
26693 | |
26694 | ; | |
26695 | return 0; | |
26696 | } | |
26697 | ||
26698 | _ACEOF | |
26699 | ||
26700 | ||
26701 | ||
26702 | cat - <<_ACEOF >conftest.h | |
26703 | ||
26704 | _ACEOF | |
26705 | ||
26706 | ||
26707 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26708 | echo "obj-m := conftest.o" >build/Makefile | |
26709 | modpost_flag='' | |
26710 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26711 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26712 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26713 | (eval $ac_try) 2>&5 | |
26714 | ac_status=$? | |
26715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26716 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26717 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26718 | (eval $ac_try) 2>&5 | |
26719 | ac_status=$? | |
26720 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26721 | test $ac_status = 0; }; }; then : | |
26722 | ||
2078c8a7 | 26723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
26724 | $as_echo "yes" >&6; } |
26725 | ||
2078c8a7 | 26726 | $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h |
904dbe44 CIK |
26727 | |
26728 | ||
26729 | else | |
26730 | $as_echo "$as_me: failed program was:" >&5 | |
26731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26732 | ||
2078c8a7 DJL |
26733 | as_fn_error $? "no - Please file a bug report at |
26734 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
904dbe44 CIK |
26735 | |
26736 | ||
26737 | ||
26738 | fi | |
26739 | rm -Rf build | |
26740 | ||
26741 | ||
904dbe44 CIK |
26742 | |
26743 | ||
2078c8a7 DJL |
26744 | |
26745 | fi | |
26746 | rm -Rf build | |
26747 | ||
26748 | ||
26749 | ||
26750 | ||
26751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5 | |
26752 | $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; } | |
904dbe44 CIK |
26753 | |
26754 | ||
26755 | cat confdefs.h - <<_ACEOF >conftest.c | |
26756 | ||
26757 | ||
2078c8a7 DJL |
26758 | #include <linux/cred.h> |
26759 | #include <linux/fs.h> | |
26760 | #include <linux/posix_acl_xattr.h> | |
904dbe44 CIK |
26761 | |
26762 | int | |
26763 | main (void) | |
26764 | { | |
26765 | ||
2078c8a7 | 26766 | posix_acl_from_xattr(&init_user_ns, NULL, 0); |
904dbe44 CIK |
26767 | |
26768 | ; | |
26769 | return 0; | |
26770 | } | |
26771 | ||
26772 | _ACEOF | |
26773 | ||
26774 | ||
26775 | ||
26776 | cat - <<_ACEOF >conftest.h | |
26777 | ||
26778 | _ACEOF | |
26779 | ||
26780 | ||
26781 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26782 | echo "obj-m := conftest.o" >build/Makefile | |
26783 | modpost_flag='' | |
26784 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26785 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26786 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26787 | (eval $ac_try) 2>&5 | |
26788 | ac_status=$? | |
26789 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26790 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26791 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26792 | (eval $ac_try) 2>&5 | |
26793 | ac_status=$? | |
26794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26795 | test $ac_status = 0; }; }; then : | |
26796 | ||
26797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26798 | $as_echo "yes" >&6; } | |
26799 | ||
2078c8a7 | 26800 | $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h |
904dbe44 CIK |
26801 | |
26802 | ||
26803 | else | |
26804 | $as_echo "$as_me: failed program was:" >&5 | |
26805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26806 | ||
26807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26808 | $as_echo "no" >&6; } | |
26809 | ||
26810 | ||
26811 | ||
26812 | fi | |
26813 | rm -Rf build | |
26814 | ||
26815 | ||
904dbe44 CIK |
26816 | |
26817 | ||
2078c8a7 DJL |
26818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5 |
26819 | $as_echo_n "checking whether posix_acl_release() is available... " >&6; } | |
904dbe44 CIK |
26820 | |
26821 | ||
26822 | cat confdefs.h - <<_ACEOF >conftest.c | |
26823 | ||
26824 | ||
2078c8a7 DJL |
26825 | #include <linux/cred.h> |
26826 | #include <linux/fs.h> | |
26827 | #include <linux/posix_acl.h> | |
904dbe44 CIK |
26828 | |
26829 | int | |
26830 | main (void) | |
26831 | { | |
26832 | ||
2078c8a7 DJL |
26833 | struct posix_acl* tmp = posix_acl_alloc(1, 0); |
26834 | posix_acl_release(tmp); | |
904dbe44 CIK |
26835 | |
26836 | ; | |
26837 | return 0; | |
26838 | } | |
26839 | ||
26840 | _ACEOF | |
26841 | ||
26842 | ||
26843 | ||
26844 | cat - <<_ACEOF >conftest.h | |
26845 | ||
26846 | _ACEOF | |
26847 | ||
26848 | ||
26849 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26850 | echo "obj-m := conftest.o" >build/Makefile | |
26851 | modpost_flag='' | |
26852 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26853 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26854 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26855 | (eval $ac_try) 2>&5 | |
26856 | ac_status=$? | |
26857 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26858 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26859 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26860 | (eval $ac_try) 2>&5 | |
26861 | ac_status=$? | |
26862 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26863 | test $ac_status = 0; }; }; then : | |
26864 | ||
26865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26866 | $as_echo "yes" >&6; } | |
26867 | ||
2078c8a7 | 26868 | $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h |
904dbe44 CIK |
26869 | |
26870 | ||
26871 | else | |
26872 | $as_echo "$as_me: failed program was:" >&5 | |
26873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26874 | ||
26875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26876 | $as_echo "no" >&6; } | |
26877 | ||
26878 | ||
26879 | ||
26880 | fi | |
26881 | rm -Rf build | |
26882 | ||
26883 | ||
904dbe44 | 26884 | |
2078c8a7 DJL |
26885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5 |
26886 | $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; } | |
904dbe44 CIK |
26887 | |
26888 | ||
26889 | cat confdefs.h - <<_ACEOF >conftest.c | |
26890 | ||
26891 | ||
2078c8a7 DJL |
26892 | #include <linux/cred.h> |
26893 | #include <linux/fs.h> | |
26894 | #include <linux/posix_acl.h> | |
26895 | ||
26896 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
904dbe44 CIK |
26897 | |
26898 | int | |
26899 | main (void) | |
26900 | { | |
26901 | ||
2078c8a7 DJL |
26902 | struct posix_acl* tmp = posix_acl_alloc(1, 0); |
26903 | posix_acl_release(tmp); | |
904dbe44 CIK |
26904 | |
26905 | ; | |
26906 | return 0; | |
26907 | } | |
26908 | ||
26909 | _ACEOF | |
26910 | ||
26911 | ||
26912 | ||
26913 | cat - <<_ACEOF >conftest.h | |
26914 | ||
26915 | _ACEOF | |
26916 | ||
26917 | ||
26918 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26919 | echo "obj-m := conftest.o" >build/Makefile | |
26920 | modpost_flag='' | |
26921 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26922 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26923 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26924 | (eval $ac_try) 2>&5 | |
26925 | ac_status=$? | |
26926 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26927 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26928 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26929 | (eval $ac_try) 2>&5 | |
26930 | ac_status=$? | |
26931 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26932 | test $ac_status = 0; }; }; then : | |
904dbe44 CIK |
26933 | |
26934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26935 | $as_echo "no" >&6; } | |
26936 | ||
2078c8a7 DJL |
26937 | else |
26938 | $as_echo "$as_me: failed program was:" >&5 | |
26939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 CIK |
26940 | |
26941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26942 | $as_echo "yes" >&6; } | |
26943 | ||
2078c8a7 | 26944 | $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h |
904dbe44 CIK |
26945 | |
26946 | ||
2078c8a7 DJL |
26947 | |
26948 | ||
26949 | fi | |
26950 | rm -Rf build | |
904dbe44 CIK |
26951 | |
26952 | ||
26953 | ||
2078c8a7 DJL |
26954 | |
26955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5 | |
26956 | $as_echo_n "checking whether posix_acl_chmod exists... " >&6; } | |
904dbe44 CIK |
26957 | |
26958 | ||
26959 | cat confdefs.h - <<_ACEOF >conftest.c | |
26960 | ||
26961 | ||
2078c8a7 DJL |
26962 | #include <linux/fs.h> |
26963 | #include <linux/posix_acl.h> | |
904dbe44 CIK |
26964 | |
26965 | int | |
26966 | main (void) | |
26967 | { | |
26968 | ||
2078c8a7 | 26969 | posix_acl_chmod(NULL, 0, 0) |
904dbe44 CIK |
26970 | |
26971 | ; | |
26972 | return 0; | |
26973 | } | |
26974 | ||
26975 | _ACEOF | |
26976 | ||
26977 | ||
26978 | ||
26979 | cat - <<_ACEOF >conftest.h | |
26980 | ||
26981 | _ACEOF | |
26982 | ||
26983 | ||
26984 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26985 | echo "obj-m := conftest.o" >build/Makefile | |
26986 | modpost_flag='' | |
26987 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26988 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26989 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26990 | (eval $ac_try) 2>&5 | |
26991 | ac_status=$? | |
26992 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26993 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26994 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26995 | (eval $ac_try) 2>&5 | |
26996 | ac_status=$? | |
26997 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26998 | test $ac_status = 0; }; }; then : | |
26999 | ||
27000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27001 | $as_echo "yes" >&6; } | |
27002 | ||
2078c8a7 | 27003 | $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h |
904dbe44 CIK |
27004 | |
27005 | ||
27006 | else | |
27007 | $as_echo "$as_me: failed program was:" >&5 | |
27008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27009 | ||
27010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27011 | $as_echo "no" >&6; } | |
27012 | ||
27013 | ||
27014 | ||
27015 | fi | |
27016 | rm -Rf build | |
27017 | ||
27018 | ||
27019 | ||
2078c8a7 DJL |
27020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5 |
27021 | $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; } | |
904dbe44 CIK |
27022 | |
27023 | ||
27024 | cat confdefs.h - <<_ACEOF >conftest.c | |
27025 | ||
27026 | ||
27027 | #include <linux/fs.h> | |
2078c8a7 | 27028 | #include <linux/posix_acl.h> |
904dbe44 CIK |
27029 | |
27030 | int | |
27031 | main (void) | |
27032 | { | |
27033 | ||
2078c8a7 | 27034 | __posix_acl_chmod(NULL, 0, 0) |
904dbe44 CIK |
27035 | |
27036 | ; | |
27037 | return 0; | |
27038 | } | |
27039 | ||
27040 | _ACEOF | |
27041 | ||
27042 | ||
27043 | ||
27044 | cat - <<_ACEOF >conftest.h | |
27045 | ||
27046 | _ACEOF | |
27047 | ||
27048 | ||
27049 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27050 | echo "obj-m := conftest.o" >build/Makefile | |
27051 | modpost_flag='' | |
27052 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27053 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27054 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27055 | (eval $ac_try) 2>&5 | |
27056 | ac_status=$? | |
27057 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27058 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27059 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27060 | (eval $ac_try) 2>&5 | |
27061 | ac_status=$? | |
27062 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27063 | test $ac_status = 0; }; }; then : | |
27064 | ||
27065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27066 | $as_echo "yes" >&6; } | |
27067 | ||
2078c8a7 | 27068 | $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h |
904dbe44 CIK |
27069 | |
27070 | ||
27071 | else | |
27072 | $as_echo "$as_me: failed program was:" >&5 | |
27073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27074 | ||
27075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27076 | $as_echo "no" >&6; } | |
27077 | ||
27078 | ||
27079 | ||
27080 | fi | |
27081 | rm -Rf build | |
27082 | ||
27083 | ||
27084 | ||
27085 | ||
2078c8a7 DJL |
27086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode has i_acl and i_default_acl" >&5 |
27087 | $as_echo_n "checking whether inode has i_acl and i_default_acl... " >&6; } | |
904dbe44 CIK |
27088 | |
27089 | ||
27090 | cat confdefs.h - <<_ACEOF >conftest.c | |
27091 | ||
27092 | ||
2078c8a7 | 27093 | #include <linux/fs.h> |
904dbe44 CIK |
27094 | |
27095 | int | |
27096 | main (void) | |
27097 | { | |
27098 | ||
2078c8a7 DJL |
27099 | struct inode ino; |
27100 | ino.i_acl = NULL; | |
27101 | ino.i_default_acl = NULL; | |
904dbe44 CIK |
27102 | |
27103 | ; | |
27104 | return 0; | |
27105 | } | |
27106 | ||
27107 | _ACEOF | |
27108 | ||
27109 | ||
27110 | ||
27111 | cat - <<_ACEOF >conftest.h | |
27112 | ||
27113 | _ACEOF | |
27114 | ||
27115 | ||
27116 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27117 | echo "obj-m := conftest.o" >build/Makefile | |
27118 | modpost_flag='' | |
27119 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27120 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27121 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27122 | (eval $ac_try) 2>&5 | |
27123 | ac_status=$? | |
27124 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27125 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27126 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27127 | (eval $ac_try) 2>&5 | |
27128 | ac_status=$? | |
27129 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27130 | test $ac_status = 0; }; }; then : | |
27131 | ||
27132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27133 | $as_echo "yes" >&6; } | |
27134 | ||
2078c8a7 | 27135 | $as_echo "#define HAVE_POSIX_ACL_CACHING 1" >>confdefs.h |
904dbe44 CIK |
27136 | |
27137 | ||
27138 | else | |
27139 | $as_echo "$as_me: failed program was:" >&5 | |
27140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27141 | ||
27142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27143 | $as_echo "no" >&6; } | |
904dbe44 CIK |
27144 | |
27145 | ||
904dbe44 | 27146 | |
2078c8a7 DJL |
27147 | fi |
27148 | rm -Rf build | |
904dbe44 | 27149 | |
904dbe44 | 27150 | |
2078c8a7 DJL |
27151 | |
27152 | ||
27153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5 | |
27154 | $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; } | |
27155 | ||
27156 | ||
27157 | cat confdefs.h - <<_ACEOF >conftest.c | |
27158 | ||
27159 | ||
27160 | #include <linux/fs.h> | |
27161 | #include <linux/posix_acl.h> | |
904dbe44 CIK |
27162 | |
27163 | int | |
27164 | main (void) | |
27165 | { | |
27166 | ||
2078c8a7 DJL |
27167 | umode_t tmp; |
27168 | posix_acl_equiv_mode(NULL,&tmp); | |
904dbe44 CIK |
27169 | |
27170 | ; | |
27171 | return 0; | |
27172 | } | |
27173 | ||
27174 | _ACEOF | |
27175 | ||
27176 | ||
27177 | ||
27178 | cat - <<_ACEOF >conftest.h | |
27179 | ||
27180 | _ACEOF | |
27181 | ||
27182 | ||
27183 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27184 | echo "obj-m := conftest.o" >build/Makefile | |
27185 | modpost_flag='' | |
27186 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27187 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27188 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27189 | (eval $ac_try) 2>&5 | |
27190 | ac_status=$? | |
27191 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27192 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27193 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27194 | (eval $ac_try) 2>&5 | |
27195 | ac_status=$? | |
27196 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27197 | test $ac_status = 0; }; }; then : | |
27198 | ||
2078c8a7 | 27199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
27200 | $as_echo "yes" >&6; } |
27201 | ||
2078c8a7 | 27202 | $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h |
904dbe44 CIK |
27203 | |
27204 | ||
27205 | else | |
27206 | $as_echo "$as_me: failed program was:" >&5 | |
27207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27208 | ||
2078c8a7 | 27209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 CIK |
27210 | $as_echo "no" >&6; } |
27211 | ||
27212 | ||
27213 | ||
27214 | fi | |
27215 | rm -Rf build | |
27216 | ||
27217 | ||
27218 | ||
27219 | ||
bfbaa379 CIK |
27220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5 |
27221 | $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; } | |
27222 | ||
27223 | ||
27224 | cat confdefs.h - <<_ACEOF >conftest.c | |
27225 | ||
27226 | ||
27227 | #include <linux/fs.h> | |
27228 | #include <linux/posix_acl.h> | |
27229 | ||
27230 | int | |
27231 | main (void) | |
27232 | { | |
27233 | ||
27234 | struct user_namespace *user_ns = NULL; | |
27235 | const struct posix_acl *acl = NULL; | |
27236 | int error; | |
27237 | ||
27238 | error = posix_acl_valid(user_ns, acl); | |
27239 | ||
27240 | ; | |
27241 | return 0; | |
27242 | } | |
27243 | ||
27244 | _ACEOF | |
27245 | ||
27246 | ||
27247 | ||
27248 | cat - <<_ACEOF >conftest.h | |
27249 | ||
27250 | _ACEOF | |
27251 | ||
27252 | ||
27253 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27254 | echo "obj-m := conftest.o" >build/Makefile | |
27255 | modpost_flag='' | |
27256 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27257 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27258 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27259 | (eval $ac_try) 2>&5 | |
27260 | ac_status=$? | |
27261 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27262 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27263 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27264 | (eval $ac_try) 2>&5 | |
27265 | ac_status=$? | |
27266 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27267 | test $ac_status = 0; }; }; then : | |
27268 | ||
27269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27270 | $as_echo "yes" >&6; } | |
27271 | ||
27272 | $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h | |
27273 | ||
27274 | ||
27275 | else | |
27276 | $as_echo "$as_me: failed program was:" >&5 | |
27277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27278 | ||
27279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27280 | $as_echo "no" >&6; } | |
27281 | ||
27282 | ||
27283 | ||
27284 | fi | |
27285 | rm -Rf build | |
27286 | ||
27287 | ||
27288 | ||
27289 | ||
2078c8a7 DJL |
27290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5 |
27291 | $as_echo_n "checking whether iops->permission() exists... " >&6; } | |
904dbe44 CIK |
27292 | |
27293 | ||
27294 | cat confdefs.h - <<_ACEOF >conftest.c | |
27295 | ||
27296 | ||
2078c8a7 | 27297 | #include <linux/fs.h> |
904dbe44 | 27298 | |
2078c8a7 DJL |
27299 | int permission_fn(struct inode *inode, int mask) { return 0; } |
27300 | ||
27301 | static const struct inode_operations | |
27302 | iops __attribute__ ((unused)) = { | |
27303 | .permission = permission_fn, | |
904dbe44 CIK |
27304 | }; |
27305 | ||
27306 | int | |
27307 | main (void) | |
27308 | { | |
27309 | ||
27310 | ||
27311 | ; | |
27312 | return 0; | |
27313 | } | |
27314 | ||
27315 | _ACEOF | |
27316 | ||
27317 | ||
27318 | ||
27319 | cat - <<_ACEOF >conftest.h | |
27320 | ||
27321 | _ACEOF | |
27322 | ||
27323 | ||
27324 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27325 | echo "obj-m := conftest.o" >build/Makefile | |
27326 | modpost_flag='' | |
27327 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27328 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27329 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27330 | (eval $ac_try) 2>&5 | |
27331 | ac_status=$? | |
27332 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27333 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27334 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27335 | (eval $ac_try) 2>&5 | |
27336 | ac_status=$? | |
27337 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27338 | test $ac_status = 0; }; }; then : | |
27339 | ||
27340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27341 | $as_echo "yes" >&6; } | |
27342 | ||
2078c8a7 | 27343 | $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h |
904dbe44 CIK |
27344 | |
27345 | ||
27346 | else | |
27347 | $as_echo "$as_me: failed program was:" >&5 | |
27348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27349 | ||
27350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27351 | $as_echo "no" >&6; } | |
2078c8a7 DJL |
27352 | |
27353 | ||
27354 | ||
27355 | fi | |
27356 | rm -Rf build | |
27357 | ||
27358 | ||
27359 | ||
27360 | ||
27361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5 | |
27362 | $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; } | |
904dbe44 CIK |
27363 | |
27364 | ||
27365 | cat confdefs.h - <<_ACEOF >conftest.c | |
27366 | ||
27367 | ||
2078c8a7 | 27368 | #include <linux/fs.h> |
904dbe44 | 27369 | |
2078c8a7 DJL |
27370 | int permission_fn(struct inode *inode, int mask, |
27371 | struct nameidata *nd) { return 0; } | |
27372 | ||
27373 | static const struct inode_operations | |
27374 | iops __attribute__ ((unused)) = { | |
27375 | .permission = permission_fn, | |
27376 | }; | |
904dbe44 CIK |
27377 | |
27378 | int | |
27379 | main (void) | |
27380 | { | |
27381 | ||
27382 | ||
27383 | ; | |
27384 | return 0; | |
27385 | } | |
27386 | ||
27387 | _ACEOF | |
27388 | ||
27389 | ||
27390 | ||
27391 | cat - <<_ACEOF >conftest.h | |
27392 | ||
27393 | _ACEOF | |
27394 | ||
27395 | ||
27396 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27397 | echo "obj-m := conftest.o" >build/Makefile | |
27398 | modpost_flag='' | |
27399 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27400 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27401 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27402 | (eval $ac_try) 2>&5 | |
27403 | ac_status=$? | |
27404 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27405 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27406 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27407 | (eval $ac_try) 2>&5 | |
27408 | ac_status=$? | |
27409 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27410 | test $ac_status = 0; }; }; then : | |
27411 | ||
2078c8a7 | 27412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
27413 | $as_echo "yes" >&6; } |
27414 | ||
2078c8a7 DJL |
27415 | $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h |
27416 | ||
27417 | ||
27418 | $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h | |
904dbe44 CIK |
27419 | |
27420 | ||
27421 | else | |
27422 | $as_echo "$as_me: failed program was:" >&5 | |
27423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27424 | ||
2078c8a7 | 27425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 CIK |
27426 | $as_echo "no" >&6; } |
27427 | ||
27428 | ||
27429 | ||
27430 | fi | |
27431 | rm -Rf build | |
27432 | ||
27433 | ||
27434 | ||
27435 | ||
2078c8a7 DJL |
27436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5 |
27437 | $as_echo_n "checking whether iops->check_acl() exists... " >&6; } | |
904dbe44 CIK |
27438 | |
27439 | ||
27440 | cat confdefs.h - <<_ACEOF >conftest.c | |
27441 | ||
27442 | ||
2078c8a7 | 27443 | #include <linux/fs.h> |
904dbe44 | 27444 | |
2078c8a7 DJL |
27445 | int check_acl_fn(struct inode *inode, int mask) { return 0; } |
27446 | ||
27447 | static const struct inode_operations | |
27448 | iops __attribute__ ((unused)) = { | |
27449 | .check_acl = check_acl_fn, | |
904dbe44 CIK |
27450 | }; |
27451 | ||
27452 | int | |
27453 | main (void) | |
27454 | { | |
27455 | ||
27456 | ||
27457 | ; | |
27458 | return 0; | |
27459 | } | |
27460 | ||
27461 | _ACEOF | |
27462 | ||
27463 | ||
27464 | ||
27465 | cat - <<_ACEOF >conftest.h | |
27466 | ||
27467 | _ACEOF | |
27468 | ||
27469 | ||
27470 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27471 | echo "obj-m := conftest.o" >build/Makefile | |
27472 | modpost_flag='' | |
27473 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27474 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27475 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27476 | (eval $ac_try) 2>&5 | |
27477 | ac_status=$? | |
27478 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27479 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27480 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27481 | (eval $ac_try) 2>&5 | |
27482 | ac_status=$? | |
27483 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27484 | test $ac_status = 0; }; }; then : | |
27485 | ||
27486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27487 | $as_echo "yes" >&6; } | |
27488 | ||
2078c8a7 | 27489 | $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h |
904dbe44 CIK |
27490 | |
27491 | ||
27492 | else | |
27493 | $as_echo "$as_me: failed program was:" >&5 | |
27494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27495 | ||
27496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27497 | $as_echo "no" >&6; } | |
2078c8a7 DJL |
27498 | |
27499 | ||
27500 | ||
27501 | fi | |
27502 | rm -Rf build | |
27503 | ||
27504 | ||
27505 | ||
27506 | ||
27507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5 | |
27508 | $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; } | |
904dbe44 CIK |
27509 | |
27510 | ||
27511 | cat confdefs.h - <<_ACEOF >conftest.c | |
27512 | ||
27513 | ||
2078c8a7 | 27514 | #include <linux/fs.h> |
904dbe44 | 27515 | |
2078c8a7 DJL |
27516 | int check_acl_fn(struct inode *inode, int mask, |
27517 | unsigned int flags) { return 0; } | |
27518 | ||
27519 | static const struct inode_operations | |
27520 | iops __attribute__ ((unused)) = { | |
27521 | .check_acl = check_acl_fn, | |
27522 | }; | |
904dbe44 CIK |
27523 | |
27524 | int | |
27525 | main (void) | |
27526 | { | |
27527 | ||
27528 | ||
27529 | ; | |
27530 | return 0; | |
27531 | } | |
27532 | ||
27533 | _ACEOF | |
27534 | ||
27535 | ||
27536 | ||
27537 | cat - <<_ACEOF >conftest.h | |
27538 | ||
27539 | _ACEOF | |
27540 | ||
27541 | ||
27542 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27543 | echo "obj-m := conftest.o" >build/Makefile | |
27544 | modpost_flag='' | |
27545 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27546 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27547 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27548 | (eval $ac_try) 2>&5 | |
27549 | ac_status=$? | |
27550 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27551 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27552 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27553 | (eval $ac_try) 2>&5 | |
27554 | ac_status=$? | |
27555 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27556 | test $ac_status = 0; }; }; then : | |
27557 | ||
2078c8a7 | 27558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
27559 | $as_echo "yes" >&6; } |
27560 | ||
2078c8a7 DJL |
27561 | $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h |
27562 | ||
27563 | ||
27564 | $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h | |
904dbe44 CIK |
27565 | |
27566 | ||
27567 | else | |
27568 | $as_echo "$as_me: failed program was:" >&5 | |
27569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27570 | ||
2078c8a7 | 27571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 CIK |
27572 | $as_echo "no" >&6; } |
27573 | ||
27574 | ||
27575 | ||
27576 | fi | |
27577 | rm -Rf build | |
27578 | ||
27579 | ||
27580 | ||
27581 | ||
2078c8a7 DJL |
27582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5 |
27583 | $as_echo_n "checking whether iops->get_acl() exists... " >&6; } | |
904dbe44 CIK |
27584 | |
27585 | ||
27586 | cat confdefs.h - <<_ACEOF >conftest.c | |
27587 | ||
27588 | ||
27589 | #include <linux/fs.h> | |
27590 | ||
2078c8a7 DJL |
27591 | struct posix_acl *get_acl_fn(struct inode *inode, int type) |
27592 | { return NULL; } | |
27593 | ||
27594 | static const struct inode_operations | |
27595 | iops __attribute__ ((unused)) = { | |
27596 | .get_acl = get_acl_fn, | |
27597 | }; | |
27598 | ||
904dbe44 CIK |
27599 | int |
27600 | main (void) | |
27601 | { | |
27602 | ||
904dbe44 CIK |
27603 | |
27604 | ; | |
27605 | return 0; | |
27606 | } | |
27607 | ||
27608 | _ACEOF | |
27609 | ||
27610 | ||
27611 | ||
27612 | cat - <<_ACEOF >conftest.h | |
27613 | ||
27614 | _ACEOF | |
27615 | ||
27616 | ||
27617 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27618 | echo "obj-m := conftest.o" >build/Makefile | |
27619 | modpost_flag='' | |
27620 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27621 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27622 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27623 | (eval $ac_try) 2>&5 | |
27624 | ac_status=$? | |
27625 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27626 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27627 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27628 | (eval $ac_try) 2>&5 | |
27629 | ac_status=$? | |
27630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27631 | test $ac_status = 0; }; }; then : | |
27632 | ||
27633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27634 | $as_echo "yes" >&6; } | |
27635 | ||
2078c8a7 | 27636 | $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h |
904dbe44 CIK |
27637 | |
27638 | ||
27639 | else | |
27640 | $as_echo "$as_me: failed program was:" >&5 | |
27641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27642 | ||
27643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27644 | $as_echo "no" >&6; } | |
2078c8a7 DJL |
27645 | |
27646 | ||
27647 | ||
27648 | fi | |
27649 | rm -Rf build | |
27650 | ||
27651 | ||
27652 | ||
27653 | ||
27654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_umask exists" >&5 | |
27655 | $as_echo_n "checking whether current_umask exists... " >&6; } | |
904dbe44 CIK |
27656 | |
27657 | ||
27658 | cat confdefs.h - <<_ACEOF >conftest.c | |
27659 | ||
27660 | ||
2078c8a7 | 27661 | #include <linux/fs.h> |
904dbe44 CIK |
27662 | |
27663 | int | |
27664 | main (void) | |
27665 | { | |
27666 | ||
2078c8a7 | 27667 | current_umask(); |
904dbe44 CIK |
27668 | |
27669 | ; | |
27670 | return 0; | |
27671 | } | |
27672 | ||
27673 | _ACEOF | |
27674 | ||
27675 | ||
27676 | ||
27677 | cat - <<_ACEOF >conftest.h | |
27678 | ||
27679 | _ACEOF | |
27680 | ||
27681 | ||
27682 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27683 | echo "obj-m := conftest.o" >build/Makefile | |
27684 | modpost_flag='' | |
27685 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27686 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27687 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27688 | (eval $ac_try) 2>&5 | |
27689 | ac_status=$? | |
27690 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27691 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27692 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27693 | (eval $ac_try) 2>&5 | |
27694 | ac_status=$? | |
27695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27696 | test $ac_status = 0; }; }; then : | |
27697 | ||
2078c8a7 | 27698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
27699 | $as_echo "yes" >&6; } |
27700 | ||
2078c8a7 | 27701 | $as_echo "#define HAVE_CURRENT_UMASK 1" >>confdefs.h |
904dbe44 CIK |
27702 | |
27703 | ||
27704 | else | |
27705 | $as_echo "$as_me: failed program was:" >&5 | |
27706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27707 | ||
2078c8a7 DJL |
27708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
27709 | $as_echo "no" >&6; } | |
904dbe44 CIK |
27710 | |
27711 | ||
27712 | ||
27713 | fi | |
27714 | rm -Rf build | |
27715 | ||
27716 | ||
27717 | ||
27718 | ||
2078c8a7 DJL |
27719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5 |
27720 | $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; } | |
904dbe44 | 27721 | |
904dbe44 CIK |
27722 | |
27723 | ||
27724 | cat confdefs.h - <<_ACEOF >conftest.c | |
27725 | ||
27726 | ||
904dbe44 | 27727 | #include <linux/fs.h> |
2078c8a7 DJL |
27728 | |
27729 | int show_options (struct seq_file * x, struct dentry * y) { return 0; }; | |
27730 | static struct super_operations sops __attribute__ ((unused)) = { | |
27731 | .show_options = show_options, | |
27732 | }; | |
904dbe44 CIK |
27733 | |
27734 | int | |
27735 | main (void) | |
27736 | { | |
27737 | ||
904dbe44 CIK |
27738 | |
27739 | ; | |
27740 | return 0; | |
27741 | } | |
27742 | ||
27743 | _ACEOF | |
27744 | ||
27745 | ||
27746 | ||
27747 | cat - <<_ACEOF >conftest.h | |
27748 | ||
27749 | _ACEOF | |
27750 | ||
27751 | ||
27752 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27753 | echo "obj-m := conftest.o" >build/Makefile | |
27754 | modpost_flag='' | |
27755 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27756 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27757 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27758 | (eval $ac_try) 2>&5 | |
27759 | ac_status=$? | |
27760 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27761 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27762 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27763 | (eval $ac_try) 2>&5 | |
27764 | ac_status=$? | |
27765 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27766 | test $ac_status = 0; }; }; then : | |
27767 | ||
27768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27769 | $as_echo "yes" >&6; } | |
27770 | ||
2078c8a7 | 27771 | $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h |
904dbe44 CIK |
27772 | |
27773 | ||
27774 | else | |
27775 | $as_echo "$as_me: failed program was:" >&5 | |
27776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27777 | ||
27778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27779 | $as_echo "no" >&6; } | |
27780 | ||
27781 | ||
27782 | ||
27783 | fi | |
27784 | rm -Rf build | |
27785 | ||
27786 | ||
27787 | ||
27788 | ||
2078c8a7 DJL |
27789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5 |
27790 | $as_echo_n "checking whether file_inode() is available... " >&6; } | |
904dbe44 CIK |
27791 | |
27792 | ||
27793 | cat confdefs.h - <<_ACEOF >conftest.c | |
27794 | ||
27795 | ||
904dbe44 | 27796 | #include <linux/fs.h> |
904dbe44 CIK |
27797 | |
27798 | int | |
27799 | main (void) | |
27800 | { | |
27801 | ||
2078c8a7 DJL |
27802 | struct file *f = NULL; |
27803 | file_inode(f); | |
904dbe44 CIK |
27804 | |
27805 | ; | |
27806 | return 0; | |
27807 | } | |
27808 | ||
27809 | _ACEOF | |
27810 | ||
27811 | ||
27812 | ||
27813 | cat - <<_ACEOF >conftest.h | |
27814 | ||
27815 | _ACEOF | |
27816 | ||
27817 | ||
27818 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27819 | echo "obj-m := conftest.o" >build/Makefile | |
27820 | modpost_flag='' | |
27821 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27822 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27823 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27824 | (eval $ac_try) 2>&5 | |
27825 | ac_status=$? | |
27826 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27827 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27828 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27829 | (eval $ac_try) 2>&5 | |
27830 | ac_status=$? | |
27831 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27832 | test $ac_status = 0; }; }; then : | |
27833 | ||
27834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27835 | $as_echo "yes" >&6; } | |
27836 | ||
2078c8a7 | 27837 | $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h |
904dbe44 CIK |
27838 | |
27839 | ||
27840 | else | |
27841 | $as_echo "$as_me: failed program was:" >&5 | |
27842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27843 | ||
27844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27845 | $as_echo "no" >&6; } | |
27846 | ||
27847 | ||
27848 | ||
27849 | fi | |
27850 | rm -Rf build | |
27851 | ||
27852 | ||
27853 | ||
2078c8a7 DJL |
27854 | |
27855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5 | |
27856 | $as_echo_n "checking whether fops->fsync() wants... " >&6; } | |
27857 | ||
904dbe44 CIK |
27858 | |
27859 | ||
27860 | cat confdefs.h - <<_ACEOF >conftest.c | |
27861 | ||
27862 | ||
904dbe44 | 27863 | #include <linux/fs.h> |
904dbe44 | 27864 | |
2078c8a7 DJL |
27865 | int test_fsync(struct file *f, struct dentry *dentry, int x) |
27866 | { return 0; } | |
27867 | ||
27868 | static const struct file_operations | |
27869 | fops __attribute__ ((unused)) = { | |
27870 | .fsync = test_fsync, | |
27871 | }; | |
904dbe44 CIK |
27872 | |
27873 | int | |
27874 | main (void) | |
27875 | { | |
27876 | ||
904dbe44 CIK |
27877 | |
27878 | ; | |
27879 | return 0; | |
27880 | } | |
27881 | ||
27882 | _ACEOF | |
27883 | ||
27884 | ||
27885 | ||
27886 | cat - <<_ACEOF >conftest.h | |
27887 | ||
27888 | _ACEOF | |
27889 | ||
27890 | ||
27891 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27892 | echo "obj-m := conftest.o" >build/Makefile | |
27893 | modpost_flag='' | |
27894 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27895 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27896 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27897 | (eval $ac_try) 2>&5 | |
27898 | ac_status=$? | |
27899 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27900 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27901 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27902 | (eval $ac_try) 2>&5 | |
27903 | ac_status=$? | |
27904 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27905 | test $ac_status = 0; }; }; then : | |
27906 | ||
2078c8a7 DJL |
27907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5 |
27908 | $as_echo "dentry" >&6; } | |
27909 | ||
27910 | $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h | |
27911 | ||
904dbe44 CIK |
27912 | |
27913 | else | |
27914 | $as_echo "$as_me: failed program was:" >&5 | |
27915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27916 | ||
904dbe44 CIK |
27917 | |
27918 | ||
27919 | ||
27920 | fi | |
27921 | rm -Rf build | |
27922 | ||
27923 | ||
27924 | ||
27925 | ||
904dbe44 CIK |
27926 | |
27927 | ||
27928 | cat confdefs.h - <<_ACEOF >conftest.c | |
27929 | ||
27930 | ||
27931 | #include <linux/fs.h> | |
2078c8a7 DJL |
27932 | |
27933 | int test_fsync(struct file *f, int x) { return 0; } | |
27934 | ||
27935 | static const struct file_operations | |
27936 | fops __attribute__ ((unused)) = { | |
27937 | .fsync = test_fsync, | |
27938 | }; | |
904dbe44 CIK |
27939 | |
27940 | int | |
27941 | main (void) | |
27942 | { | |
27943 | ||
904dbe44 CIK |
27944 | |
27945 | ; | |
27946 | return 0; | |
27947 | } | |
27948 | ||
27949 | _ACEOF | |
27950 | ||
27951 | ||
27952 | ||
27953 | cat - <<_ACEOF >conftest.h | |
27954 | ||
27955 | _ACEOF | |
27956 | ||
27957 | ||
27958 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27959 | echo "obj-m := conftest.o" >build/Makefile | |
27960 | modpost_flag='' | |
27961 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27962 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27963 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27964 | (eval $ac_try) 2>&5 | |
27965 | ac_status=$? | |
27966 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27967 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27968 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27969 | (eval $ac_try) 2>&5 | |
27970 | ac_status=$? | |
27971 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27972 | test $ac_status = 0; }; }; then : | |
27973 | ||
2078c8a7 DJL |
27974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5 |
27975 | $as_echo "no dentry" >&6; } | |
904dbe44 | 27976 | |
2078c8a7 | 27977 | $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h |
904dbe44 CIK |
27978 | |
27979 | ||
27980 | else | |
27981 | $as_echo "$as_me: failed program was:" >&5 | |
27982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27983 | ||
904dbe44 CIK |
27984 | |
27985 | ||
27986 | ||
27987 | fi | |
27988 | rm -Rf build | |
27989 | ||
27990 | ||
27991 | ||
2078c8a7 | 27992 | |
904dbe44 CIK |
27993 | |
27994 | ||
27995 | cat confdefs.h - <<_ACEOF >conftest.c | |
27996 | ||
27997 | ||
27998 | #include <linux/fs.h> | |
2078c8a7 DJL |
27999 | |
28000 | int test_fsync(struct file *f, loff_t a, loff_t b, int c) | |
28001 | { return 0; } | |
28002 | ||
28003 | static const struct file_operations | |
28004 | fops __attribute__ ((unused)) = { | |
28005 | .fsync = test_fsync, | |
28006 | }; | |
904dbe44 CIK |
28007 | |
28008 | int | |
28009 | main (void) | |
28010 | { | |
28011 | ||
904dbe44 CIK |
28012 | |
28013 | ; | |
28014 | return 0; | |
28015 | } | |
28016 | ||
28017 | _ACEOF | |
28018 | ||
28019 | ||
28020 | ||
28021 | cat - <<_ACEOF >conftest.h | |
28022 | ||
28023 | _ACEOF | |
28024 | ||
28025 | ||
28026 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28027 | echo "obj-m := conftest.o" >build/Makefile | |
28028 | modpost_flag='' | |
28029 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28030 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28031 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28032 | (eval $ac_try) 2>&5 | |
28033 | ac_status=$? | |
28034 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28035 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28036 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28037 | (eval $ac_try) 2>&5 | |
28038 | ac_status=$? | |
28039 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28040 | test $ac_status = 0; }; }; then : | |
28041 | ||
2078c8a7 DJL |
28042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5 |
28043 | $as_echo "range" >&6; } | |
904dbe44 | 28044 | |
2078c8a7 | 28045 | $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h |
904dbe44 CIK |
28046 | |
28047 | ||
28048 | else | |
28049 | $as_echo "$as_me: failed program was:" >&5 | |
28050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28051 | ||
904dbe44 CIK |
28052 | |
28053 | ||
28054 | ||
28055 | fi | |
28056 | rm -Rf build | |
28057 | ||
28058 | ||
28059 | ||
28060 | ||
2078c8a7 DJL |
28061 | |
28062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5 | |
28063 | $as_echo_n "checking whether sops->evict_inode() exists... " >&6; } | |
904dbe44 CIK |
28064 | |
28065 | ||
28066 | cat confdefs.h - <<_ACEOF >conftest.c | |
28067 | ||
28068 | ||
28069 | #include <linux/fs.h> | |
2078c8a7 DJL |
28070 | void evict_inode (struct inode * t) { return; } |
28071 | static struct super_operations sops __attribute__ ((unused)) = { | |
28072 | .evict_inode = evict_inode, | |
28073 | }; | |
904dbe44 CIK |
28074 | |
28075 | int | |
28076 | main (void) | |
28077 | { | |
28078 | ||
904dbe44 CIK |
28079 | |
28080 | ; | |
28081 | return 0; | |
28082 | } | |
28083 | ||
28084 | _ACEOF | |
28085 | ||
28086 | ||
28087 | ||
28088 | cat - <<_ACEOF >conftest.h | |
28089 | ||
28090 | _ACEOF | |
28091 | ||
28092 | ||
28093 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28094 | echo "obj-m := conftest.o" >build/Makefile | |
28095 | modpost_flag='' | |
28096 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28097 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28098 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28099 | (eval $ac_try) 2>&5 | |
28100 | ac_status=$? | |
28101 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28102 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28103 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28104 | (eval $ac_try) 2>&5 | |
28105 | ac_status=$? | |
28106 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28107 | test $ac_status = 0; }; }; then : | |
28108 | ||
28109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28110 | $as_echo "yes" >&6; } | |
28111 | ||
2078c8a7 | 28112 | $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h |
904dbe44 CIK |
28113 | |
28114 | ||
28115 | else | |
28116 | $as_echo "$as_me: failed program was:" >&5 | |
28117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28118 | ||
28119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28120 | $as_echo "no" >&6; } | |
28121 | ||
28122 | ||
28123 | ||
28124 | fi | |
28125 | rm -Rf build | |
28126 | ||
28127 | ||
28128 | ||
28129 | ||
2078c8a7 DJL |
28130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5 |
28131 | $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; } | |
904dbe44 CIK |
28132 | |
28133 | ||
28134 | cat confdefs.h - <<_ACEOF >conftest.c | |
28135 | ||
28136 | ||
28137 | #include <linux/fs.h> | |
2078c8a7 DJL |
28138 | |
28139 | void dirty_inode(struct inode *a, int b) { return; } | |
28140 | ||
28141 | static const struct super_operations | |
28142 | sops __attribute__ ((unused)) = { | |
28143 | .dirty_inode = dirty_inode, | |
28144 | }; | |
904dbe44 CIK |
28145 | |
28146 | int | |
28147 | main (void) | |
28148 | { | |
28149 | ||
904dbe44 CIK |
28150 | |
28151 | ; | |
28152 | return 0; | |
28153 | } | |
28154 | ||
28155 | _ACEOF | |
28156 | ||
28157 | ||
28158 | ||
28159 | cat - <<_ACEOF >conftest.h | |
28160 | ||
28161 | _ACEOF | |
28162 | ||
28163 | ||
28164 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28165 | echo "obj-m := conftest.o" >build/Makefile | |
28166 | modpost_flag='' | |
28167 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28168 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28169 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28170 | (eval $ac_try) 2>&5 | |
28171 | ac_status=$? | |
28172 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28173 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28174 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28175 | (eval $ac_try) 2>&5 | |
28176 | ac_status=$? | |
28177 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28178 | test $ac_status = 0; }; }; then : | |
28179 | ||
28180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28181 | $as_echo "yes" >&6; } | |
28182 | ||
2078c8a7 | 28183 | $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h |
904dbe44 CIK |
28184 | |
28185 | ||
28186 | else | |
28187 | $as_echo "$as_me: failed program was:" >&5 | |
28188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28189 | ||
28190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28191 | $as_echo "no" >&6; } | |
28192 | ||
28193 | ||
28194 | ||
28195 | fi | |
28196 | rm -Rf build | |
28197 | ||
28198 | ||
28199 | ||
28200 | ||
2078c8a7 DJL |
28201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5 |
28202 | $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; } | |
904dbe44 CIK |
28203 | |
28204 | ||
28205 | cat confdefs.h - <<_ACEOF >conftest.c | |
28206 | ||
28207 | ||
28208 | #include <linux/fs.h> | |
28209 | ||
2078c8a7 | 28210 | int nr_cached_objects(struct super_block *sb) { return 0; } |
904dbe44 | 28211 | |
2078c8a7 DJL |
28212 | static const struct super_operations |
28213 | sops __attribute__ ((unused)) = { | |
28214 | .nr_cached_objects = nr_cached_objects, | |
904dbe44 CIK |
28215 | }; |
28216 | ||
28217 | int | |
28218 | main (void) | |
28219 | { | |
28220 | ||
28221 | ||
28222 | ; | |
28223 | return 0; | |
28224 | } | |
28225 | ||
28226 | _ACEOF | |
28227 | ||
28228 | ||
28229 | ||
28230 | cat - <<_ACEOF >conftest.h | |
28231 | ||
28232 | _ACEOF | |
28233 | ||
28234 | ||
28235 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28236 | echo "obj-m := conftest.o" >build/Makefile | |
28237 | modpost_flag='' | |
28238 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28239 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28240 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28241 | (eval $ac_try) 2>&5 | |
28242 | ac_status=$? | |
28243 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28244 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28245 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28246 | (eval $ac_try) 2>&5 | |
28247 | ac_status=$? | |
28248 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28249 | test $ac_status = 0; }; }; then : | |
28250 | ||
28251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28252 | $as_echo "yes" >&6; } | |
28253 | ||
2078c8a7 | 28254 | $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h |
904dbe44 CIK |
28255 | |
28256 | ||
28257 | else | |
28258 | $as_echo "$as_me: failed program was:" >&5 | |
28259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28260 | ||
28261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28262 | $as_echo "no" >&6; } | |
28263 | ||
28264 | ||
28265 | ||
28266 | fi | |
28267 | rm -Rf build | |
28268 | ||
28269 | ||
28270 | ||
28271 | ||
2078c8a7 DJL |
28272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5 |
28273 | $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; } | |
904dbe44 CIK |
28274 | |
28275 | ||
28276 | cat confdefs.h - <<_ACEOF >conftest.c | |
28277 | ||
28278 | ||
28279 | #include <linux/fs.h> | |
28280 | ||
2078c8a7 DJL |
28281 | void free_cached_objects(struct super_block *sb, int x) |
28282 | { return; } | |
904dbe44 | 28283 | |
2078c8a7 DJL |
28284 | static const struct super_operations |
28285 | sops __attribute__ ((unused)) = { | |
28286 | .free_cached_objects = free_cached_objects, | |
904dbe44 CIK |
28287 | }; |
28288 | ||
28289 | int | |
28290 | main (void) | |
28291 | { | |
28292 | ||
28293 | ||
28294 | ; | |
28295 | return 0; | |
28296 | } | |
28297 | ||
28298 | _ACEOF | |
28299 | ||
28300 | ||
28301 | ||
28302 | cat - <<_ACEOF >conftest.h | |
28303 | ||
28304 | _ACEOF | |
28305 | ||
28306 | ||
28307 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28308 | echo "obj-m := conftest.o" >build/Makefile | |
28309 | modpost_flag='' | |
28310 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28311 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28312 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28313 | (eval $ac_try) 2>&5 | |
28314 | ac_status=$? | |
28315 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28316 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28317 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28318 | (eval $ac_try) 2>&5 | |
28319 | ac_status=$? | |
28320 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28321 | test $ac_status = 0; }; }; then : | |
28322 | ||
28323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28324 | $as_echo "yes" >&6; } | |
28325 | ||
2078c8a7 | 28326 | $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h |
904dbe44 CIK |
28327 | |
28328 | ||
28329 | else | |
28330 | $as_echo "$as_me: failed program was:" >&5 | |
28331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28332 | ||
28333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28334 | $as_echo "no" >&6; } | |
28335 | ||
28336 | ||
28337 | ||
28338 | fi | |
28339 | rm -Rf build | |
28340 | ||
28341 | ||
28342 | ||
28343 | ||
2078c8a7 DJL |
28344 | |
28345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5 | |
28346 | $as_echo_n "checking whether fops->fallocate() exists... " >&6; } | |
904dbe44 CIK |
28347 | |
28348 | ||
28349 | cat confdefs.h - <<_ACEOF >conftest.c | |
28350 | ||
28351 | ||
28352 | #include <linux/fs.h> | |
28353 | ||
2078c8a7 DJL |
28354 | long test_fallocate(struct file *file, int mode, |
28355 | loff_t offset, loff_t len) { return 0; } | |
904dbe44 | 28356 | |
2078c8a7 DJL |
28357 | static const struct file_operations |
28358 | fops __attribute__ ((unused)) = { | |
28359 | .fallocate = test_fallocate, | |
904dbe44 CIK |
28360 | }; |
28361 | ||
28362 | int | |
28363 | main (void) | |
28364 | { | |
28365 | ||
28366 | ||
28367 | ; | |
28368 | return 0; | |
28369 | } | |
28370 | ||
28371 | _ACEOF | |
28372 | ||
28373 | ||
28374 | ||
28375 | cat - <<_ACEOF >conftest.h | |
28376 | ||
28377 | _ACEOF | |
28378 | ||
28379 | ||
28380 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28381 | echo "obj-m := conftest.o" >build/Makefile | |
28382 | modpost_flag='' | |
28383 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28384 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28385 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28386 | (eval $ac_try) 2>&5 | |
28387 | ac_status=$? | |
28388 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28389 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28390 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28391 | (eval $ac_try) 2>&5 | |
28392 | ac_status=$? | |
28393 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28394 | test $ac_status = 0; }; }; then : | |
28395 | ||
28396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28397 | $as_echo "yes" >&6; } | |
28398 | ||
2078c8a7 | 28399 | $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h |
904dbe44 CIK |
28400 | |
28401 | ||
28402 | else | |
28403 | $as_echo "$as_me: failed program was:" >&5 | |
28404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28405 | ||
28406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28407 | $as_echo "no" >&6; } | |
28408 | ||
28409 | ||
28410 | ||
28411 | fi | |
28412 | rm -Rf build | |
28413 | ||
28414 | ||
28415 | ||
28416 | ||
2078c8a7 DJL |
28417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5 |
28418 | $as_echo_n "checking whether iops->fallocate() exists... " >&6; } | |
904dbe44 CIK |
28419 | |
28420 | ||
28421 | cat confdefs.h - <<_ACEOF >conftest.c | |
28422 | ||
28423 | ||
28424 | #include <linux/fs.h> | |
28425 | ||
2078c8a7 DJL |
28426 | long test_fallocate(struct inode *inode, int mode, |
28427 | loff_t offset, loff_t len) { return 0; } | |
904dbe44 CIK |
28428 | |
28429 | static const struct inode_operations | |
2078c8a7 DJL |
28430 | fops __attribute__ ((unused)) = { |
28431 | .fallocate = test_fallocate, | |
904dbe44 CIK |
28432 | }; |
28433 | ||
28434 | int | |
28435 | main (void) | |
28436 | { | |
28437 | ||
28438 | ||
28439 | ; | |
28440 | return 0; | |
28441 | } | |
28442 | ||
28443 | _ACEOF | |
28444 | ||
28445 | ||
28446 | ||
28447 | cat - <<_ACEOF >conftest.h | |
28448 | ||
28449 | _ACEOF | |
28450 | ||
28451 | ||
28452 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28453 | echo "obj-m := conftest.o" >build/Makefile | |
28454 | modpost_flag='' | |
28455 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28456 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28457 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28458 | (eval $ac_try) 2>&5 | |
28459 | ac_status=$? | |
28460 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28461 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28462 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28463 | (eval $ac_try) 2>&5 | |
28464 | ac_status=$? | |
28465 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28466 | test $ac_status = 0; }; }; then : | |
28467 | ||
28468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28469 | $as_echo "yes" >&6; } | |
28470 | ||
2078c8a7 | 28471 | $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h |
904dbe44 CIK |
28472 | |
28473 | ||
28474 | else | |
28475 | $as_echo "$as_me: failed program was:" >&5 | |
28476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28477 | ||
28478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28479 | $as_echo "no" >&6; } | |
28480 | ||
28481 | ||
28482 | ||
28483 | fi | |
28484 | rm -Rf build | |
28485 | ||
28486 | ||
28487 | ||
28488 | ||
2078c8a7 DJL |
28489 | |
28490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5 | |
28491 | $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; } | |
904dbe44 CIK |
28492 | |
28493 | ||
28494 | cat confdefs.h - <<_ACEOF >conftest.c | |
28495 | ||
28496 | ||
28497 | #include <linux/fs.h> | |
28498 | ||
2078c8a7 DJL |
28499 | int mkdir(struct inode *inode, struct dentry *dentry, |
28500 | umode_t umode) { return 0; } | |
904dbe44 CIK |
28501 | |
28502 | static const struct inode_operations | |
28503 | iops __attribute__ ((unused)) = { | |
2078c8a7 | 28504 | .mkdir = mkdir, |
904dbe44 CIK |
28505 | }; |
28506 | ||
28507 | int | |
28508 | main (void) | |
28509 | { | |
28510 | ||
28511 | ||
28512 | ; | |
28513 | return 0; | |
28514 | } | |
28515 | ||
28516 | _ACEOF | |
28517 | ||
28518 | ||
28519 | ||
28520 | cat - <<_ACEOF >conftest.h | |
28521 | ||
28522 | _ACEOF | |
28523 | ||
28524 | ||
28525 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28526 | echo "obj-m := conftest.o" >build/Makefile | |
28527 | modpost_flag='' | |
28528 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28529 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28530 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28531 | (eval $ac_try) 2>&5 | |
28532 | ac_status=$? | |
28533 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28534 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28535 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28536 | (eval $ac_try) 2>&5 | |
28537 | ac_status=$? | |
28538 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28539 | test $ac_status = 0; }; }; then : | |
28540 | ||
28541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28542 | $as_echo "yes" >&6; } | |
28543 | ||
2078c8a7 | 28544 | $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h |
904dbe44 CIK |
28545 | |
28546 | ||
28547 | else | |
28548 | $as_echo "$as_me: failed program was:" >&5 | |
28549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28550 | ||
28551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28552 | $as_echo "no" >&6; } | |
28553 | ||
28554 | ||
28555 | ||
28556 | fi | |
28557 | rm -Rf build | |
28558 | ||
28559 | ||
28560 | ||
28561 | ||
2078c8a7 DJL |
28562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5 |
28563 | $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; } | |
904dbe44 CIK |
28564 | |
28565 | ||
28566 | cat confdefs.h - <<_ACEOF >conftest.c | |
28567 | ||
28568 | ||
28569 | #include <linux/fs.h> | |
28570 | ||
2078c8a7 DJL |
28571 | struct dentry *inode_lookup(struct inode *inode, |
28572 | struct dentry *dentry, struct nameidata *nidata) | |
28573 | { return NULL; } | |
28574 | ||
28575 | static const struct inode_operations iops | |
28576 | __attribute__ ((unused)) = { | |
28577 | .lookup = inode_lookup, | |
28578 | }; | |
28579 | ||
904dbe44 CIK |
28580 | int |
28581 | main (void) | |
28582 | { | |
28583 | ||
904dbe44 CIK |
28584 | |
28585 | ; | |
28586 | return 0; | |
28587 | } | |
28588 | ||
28589 | _ACEOF | |
28590 | ||
28591 | ||
28592 | ||
28593 | cat - <<_ACEOF >conftest.h | |
28594 | ||
28595 | _ACEOF | |
28596 | ||
28597 | ||
28598 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28599 | echo "obj-m := conftest.o" >build/Makefile | |
28600 | modpost_flag='' | |
28601 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28602 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28603 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28604 | (eval $ac_try) 2>&5 | |
28605 | ac_status=$? | |
28606 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28607 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28608 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28609 | (eval $ac_try) 2>&5 | |
28610 | ac_status=$? | |
28611 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28612 | test $ac_status = 0; }; }; then : | |
28613 | ||
28614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28615 | $as_echo "yes" >&6; } | |
28616 | ||
2078c8a7 | 28617 | $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h |
904dbe44 CIK |
28618 | |
28619 | ||
28620 | else | |
28621 | $as_echo "$as_me: failed program was:" >&5 | |
28622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28623 | ||
28624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28625 | $as_echo "no" >&6; } | |
28626 | ||
28627 | ||
28628 | ||
28629 | fi | |
28630 | rm -Rf build | |
28631 | ||
28632 | ||
28633 | ||
28634 | ||
2078c8a7 DJL |
28635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5 |
28636 | $as_echo_n "checking whether iops->create() passes nameidata... " >&6; } | |
904dbe44 CIK |
28637 | |
28638 | ||
28639 | cat confdefs.h - <<_ACEOF >conftest.c | |
28640 | ||
28641 | ||
28642 | #include <linux/fs.h> | |
28643 | ||
2078c8a7 DJL |
28644 | #ifdef HAVE_MKDIR_UMODE_T |
28645 | int inode_create(struct inode *inode ,struct dentry *dentry, | |
28646 | umode_t umode, struct nameidata *nidata) { return 0; } | |
28647 | #else | |
28648 | int inode_create(struct inode *inode,struct dentry *dentry, | |
28649 | int umode, struct nameidata * nidata) { return 0; } | |
28650 | #endif | |
28651 | ||
28652 | static const struct inode_operations | |
28653 | iops __attribute__ ((unused)) = { | |
28654 | .create = inode_create, | |
904dbe44 CIK |
28655 | }; |
28656 | ||
28657 | int | |
28658 | main (void) | |
28659 | { | |
28660 | ||
28661 | ||
28662 | ; | |
28663 | return 0; | |
28664 | } | |
28665 | ||
28666 | _ACEOF | |
28667 | ||
28668 | ||
28669 | ||
28670 | cat - <<_ACEOF >conftest.h | |
28671 | ||
28672 | _ACEOF | |
28673 | ||
28674 | ||
28675 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28676 | echo "obj-m := conftest.o" >build/Makefile | |
28677 | modpost_flag='' | |
28678 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28679 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28680 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28681 | (eval $ac_try) 2>&5 | |
28682 | ac_status=$? | |
28683 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28684 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28685 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28686 | (eval $ac_try) 2>&5 | |
28687 | ac_status=$? | |
28688 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28689 | test $ac_status = 0; }; }; then : | |
28690 | ||
28691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28692 | $as_echo "yes" >&6; } | |
28693 | ||
2078c8a7 | 28694 | $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h |
904dbe44 CIK |
28695 | |
28696 | ||
28697 | else | |
28698 | $as_echo "$as_me: failed program was:" >&5 | |
28699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28700 | ||
28701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28702 | $as_echo "no" >&6; } | |
28703 | ||
28704 | ||
28705 | ||
28706 | fi | |
28707 | rm -Rf build | |
28708 | ||
28709 | ||
28710 | ||
28711 | ||
2078c8a7 DJL |
28712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5 |
28713 | $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; } | |
904dbe44 CIK |
28714 | |
28715 | ||
28716 | cat confdefs.h - <<_ACEOF >conftest.c | |
28717 | ||
28718 | ||
28719 | #include <linux/fs.h> | |
2078c8a7 DJL |
28720 | const char *get_link(struct dentry *de, struct inode *ip, |
28721 | struct delayed_call *done) { return "symlink"; } | |
28722 | static struct inode_operations | |
28723 | iops __attribute__ ((unused)) = { | |
28724 | .get_link = get_link, | |
28725 | }; | |
904dbe44 CIK |
28726 | |
28727 | int | |
28728 | main (void) | |
28729 | { | |
28730 | ||
904dbe44 CIK |
28731 | |
28732 | ; | |
28733 | return 0; | |
28734 | } | |
28735 | ||
28736 | _ACEOF | |
28737 | ||
28738 | ||
28739 | ||
28740 | cat - <<_ACEOF >conftest.h | |
28741 | ||
28742 | _ACEOF | |
28743 | ||
28744 | ||
28745 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28746 | echo "obj-m := conftest.o" >build/Makefile | |
28747 | modpost_flag='' | |
28748 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28749 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28750 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28751 | (eval $ac_try) 2>&5 | |
28752 | ac_status=$? | |
28753 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28754 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28755 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28756 | (eval $ac_try) 2>&5 | |
28757 | ac_status=$? | |
28758 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28759 | test $ac_status = 0; }; }; then : | |
28760 | ||
28761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28762 | $as_echo "yes" >&6; } | |
28763 | ||
2078c8a7 | 28764 | $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h |
904dbe44 CIK |
28765 | |
28766 | ||
28767 | else | |
28768 | $as_echo "$as_me: failed program was:" >&5 | |
28769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28770 | ||
2078c8a7 | 28771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 | 28772 | $as_echo "no" >&6; } |
2078c8a7 DJL |
28773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5 |
28774 | $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; } | |
904dbe44 CIK |
28775 | |
28776 | ||
28777 | cat confdefs.h - <<_ACEOF >conftest.c | |
28778 | ||
2078c8a7 DJL |
28779 | |
28780 | #include <linux/fs.h> | |
28781 | const char *get_link(struct dentry *de, struct | |
28782 | inode *ip, void **cookie) { return "symlink"; } | |
28783 | static struct inode_operations | |
28784 | iops __attribute__ ((unused)) = { | |
28785 | .get_link = get_link, | |
28786 | }; | |
28787 | ||
904dbe44 CIK |
28788 | int |
28789 | main (void) | |
28790 | { | |
28791 | ||
28792 | ||
28793 | ; | |
28794 | return 0; | |
28795 | } | |
28796 | ||
28797 | _ACEOF | |
28798 | ||
28799 | ||
28800 | ||
28801 | cat - <<_ACEOF >conftest.h | |
28802 | ||
28803 | _ACEOF | |
28804 | ||
28805 | ||
28806 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28807 | echo "obj-m := conftest.o" >build/Makefile | |
28808 | modpost_flag='' | |
28809 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28810 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28811 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28812 | (eval $ac_try) 2>&5 | |
28813 | ac_status=$? | |
28814 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28815 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28816 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28817 | (eval $ac_try) 2>&5 | |
28818 | ac_status=$? | |
28819 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28820 | test $ac_status = 0; }; }; then : | |
28821 | ||
2078c8a7 DJL |
28822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
28823 | $as_echo "yes" >&6; } | |
904dbe44 | 28824 | |
2078c8a7 | 28825 | $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h |
904dbe44 CIK |
28826 | |
28827 | ||
28828 | else | |
28829 | $as_echo "$as_me: failed program was:" >&5 | |
28830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28831 | ||
2078c8a7 DJL |
28832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
28833 | $as_echo "no" >&6; } | |
904dbe44 | 28834 | |
2078c8a7 DJL |
28835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5 |
28836 | $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; } | |
904dbe44 CIK |
28837 | |
28838 | ||
28839 | cat confdefs.h - <<_ACEOF >conftest.c | |
28840 | ||
28841 | ||
28842 | #include <linux/fs.h> | |
2078c8a7 DJL |
28843 | const char *follow_link(struct dentry *de, |
28844 | void **cookie) { return "symlink"; } | |
28845 | static struct inode_operations | |
28846 | iops __attribute__ ((unused)) = { | |
28847 | .follow_link = follow_link, | |
904dbe44 CIK |
28848 | }; |
28849 | ||
28850 | int | |
28851 | main (void) | |
28852 | { | |
28853 | ||
28854 | ||
28855 | ; | |
28856 | return 0; | |
28857 | } | |
28858 | ||
28859 | _ACEOF | |
28860 | ||
28861 | ||
28862 | ||
28863 | cat - <<_ACEOF >conftest.h | |
28864 | ||
28865 | _ACEOF | |
28866 | ||
28867 | ||
28868 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28869 | echo "obj-m := conftest.o" >build/Makefile | |
28870 | modpost_flag='' | |
28871 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28872 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28873 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28874 | (eval $ac_try) 2>&5 | |
28875 | ac_status=$? | |
28876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28877 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28878 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28879 | (eval $ac_try) 2>&5 | |
28880 | ac_status=$? | |
28881 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28882 | test $ac_status = 0; }; }; then : | |
28883 | ||
2078c8a7 DJL |
28884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
28885 | $as_echo "yes" >&6; } | |
904dbe44 | 28886 | |
2078c8a7 | 28887 | $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h |
904dbe44 CIK |
28888 | |
28889 | ||
28890 | else | |
28891 | $as_echo "$as_me: failed program was:" >&5 | |
28892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28893 | ||
2078c8a7 DJL |
28894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
28895 | $as_echo "no" >&6; } | |
28896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5 | |
28897 | $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; } | |
904dbe44 CIK |
28898 | |
28899 | ||
28900 | cat confdefs.h - <<_ACEOF >conftest.c | |
28901 | ||
28902 | ||
28903 | #include <linux/fs.h> | |
2078c8a7 DJL |
28904 | void *follow_link(struct dentry *de, struct |
28905 | nameidata *nd) { return (void *)NULL; } | |
28906 | static struct inode_operations | |
28907 | iops __attribute__ ((unused)) = { | |
28908 | .follow_link = follow_link, | |
28909 | }; | |
904dbe44 CIK |
28910 | |
28911 | int | |
28912 | main (void) | |
28913 | { | |
28914 | ||
28915 | ||
28916 | ; | |
28917 | return 0; | |
28918 | } | |
28919 | ||
28920 | _ACEOF | |
28921 | ||
28922 | ||
28923 | ||
28924 | cat - <<_ACEOF >conftest.h | |
28925 | ||
28926 | _ACEOF | |
28927 | ||
28928 | ||
28929 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28930 | echo "obj-m := conftest.o" >build/Makefile | |
28931 | modpost_flag='' | |
28932 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28933 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28934 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28935 | (eval $ac_try) 2>&5 | |
28936 | ac_status=$? | |
28937 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28938 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28939 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28940 | (eval $ac_try) 2>&5 | |
28941 | ac_status=$? | |
28942 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28943 | test $ac_status = 0; }; }; then : | |
28944 | ||
2078c8a7 DJL |
28945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
28946 | $as_echo "yes" >&6; } | |
904dbe44 | 28947 | |
2078c8a7 | 28948 | $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h |
904dbe44 CIK |
28949 | |
28950 | ||
28951 | else | |
28952 | $as_echo "$as_me: failed program was:" >&5 | |
28953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28954 | ||
2078c8a7 | 28955 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 |
904dbe44 CIK |
28956 | |
28957 | ||
28958 | ||
28959 | fi | |
28960 | rm -Rf build | |
28961 | ||
28962 | ||
28963 | ||
28964 | ||
28965 | ||
2078c8a7 DJL |
28966 | fi |
28967 | rm -Rf build | |
28968 | ||
28969 | ||
28970 | ||
28971 | ||
28972 | ||
28973 | ||
28974 | fi | |
28975 | rm -Rf build | |
28976 | ||
28977 | ||
28978 | ||
28979 | ||
28980 | ||
28981 | fi | |
28982 | rm -Rf build | |
28983 | ||
28984 | ||
28985 | ||
28986 | ||
904dbe44 CIK |
28987 | |
28988 | ||
28989 | cat confdefs.h - <<_ACEOF >conftest.c | |
28990 | ||
28991 | ||
2078c8a7 DJL |
28992 | #if !defined(HAVE_GET_LINK_DELAYED) |
28993 | #error "Expecting get_link() delayed done" | |
28994 | #endif | |
904dbe44 CIK |
28995 | |
28996 | int | |
28997 | main (void) | |
28998 | { | |
28999 | ||
29000 | ||
29001 | ; | |
29002 | return 0; | |
29003 | } | |
29004 | ||
29005 | _ACEOF | |
29006 | ||
29007 | ||
29008 | ||
29009 | cat - <<_ACEOF >conftest.h | |
29010 | ||
29011 | _ACEOF | |
29012 | ||
29013 | ||
29014 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29015 | echo "obj-m := conftest.o" >build/Makefile | |
29016 | modpost_flag='' | |
29017 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29018 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29019 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29020 | (eval $ac_try) 2>&5 | |
29021 | ac_status=$? | |
29022 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29023 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29024 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29025 | (eval $ac_try) 2>&5 | |
29026 | ac_status=$? | |
29027 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29028 | test $ac_status = 0; }; }; then : | |
29029 | ||
904dbe44 | 29030 | |
2078c8a7 | 29031 | $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h |
904dbe44 CIK |
29032 | |
29033 | ||
29034 | else | |
29035 | $as_echo "$as_me: failed program was:" >&5 | |
29036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29037 | ||
2078c8a7 DJL |
29038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5 |
29039 | $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; } | |
904dbe44 CIK |
29040 | |
29041 | ||
29042 | cat confdefs.h - <<_ACEOF >conftest.c | |
29043 | ||
29044 | ||
2078c8a7 DJL |
29045 | #include <linux/fs.h> |
29046 | void put_link(struct inode *ip, void *cookie) | |
29047 | { return; } | |
29048 | static struct inode_operations | |
29049 | iops __attribute__ ((unused)) = { | |
29050 | .put_link = put_link, | |
29051 | }; | |
904dbe44 CIK |
29052 | |
29053 | int | |
29054 | main (void) | |
29055 | { | |
29056 | ||
29057 | ||
29058 | ; | |
29059 | return 0; | |
29060 | } | |
29061 | ||
29062 | _ACEOF | |
29063 | ||
29064 | ||
29065 | ||
29066 | cat - <<_ACEOF >conftest.h | |
29067 | ||
29068 | _ACEOF | |
29069 | ||
29070 | ||
29071 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29072 | echo "obj-m := conftest.o" >build/Makefile | |
29073 | modpost_flag='' | |
29074 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29075 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29076 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29077 | (eval $ac_try) 2>&5 | |
29078 | ac_status=$? | |
29079 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29080 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29081 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29082 | (eval $ac_try) 2>&5 | |
29083 | ac_status=$? | |
29084 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29085 | test $ac_status = 0; }; }; then : | |
29086 | ||
2078c8a7 | 29087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
29088 | $as_echo "yes" >&6; } |
29089 | ||
2078c8a7 | 29090 | $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h |
904dbe44 CIK |
29091 | |
29092 | ||
29093 | else | |
29094 | $as_echo "$as_me: failed program was:" >&5 | |
29095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29096 | ||
2078c8a7 | 29097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 | 29098 | $as_echo "no" >&6; } |
2078c8a7 DJL |
29099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5 |
29100 | $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; } | |
904dbe44 CIK |
29101 | |
29102 | ||
29103 | cat confdefs.h - <<_ACEOF >conftest.c | |
29104 | ||
29105 | ||
2078c8a7 DJL |
29106 | #include <linux/fs.h> |
29107 | void put_link(struct dentry *de, struct | |
29108 | nameidata *nd, void *ptr) { return; } | |
29109 | static struct inode_operations | |
29110 | iops __attribute__ ((unused)) = { | |
29111 | .put_link = put_link, | |
29112 | }; | |
904dbe44 CIK |
29113 | |
29114 | int | |
29115 | main (void) | |
29116 | { | |
29117 | ||
29118 | ||
29119 | ; | |
29120 | return 0; | |
29121 | } | |
29122 | ||
29123 | _ACEOF | |
29124 | ||
29125 | ||
29126 | ||
29127 | cat - <<_ACEOF >conftest.h | |
29128 | ||
29129 | _ACEOF | |
29130 | ||
29131 | ||
29132 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29133 | echo "obj-m := conftest.o" >build/Makefile | |
29134 | modpost_flag='' | |
29135 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29136 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29137 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29138 | (eval $ac_try) 2>&5 | |
29139 | ac_status=$? | |
29140 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29141 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29142 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29143 | (eval $ac_try) 2>&5 | |
29144 | ac_status=$? | |
29145 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29146 | test $ac_status = 0; }; }; then : | |
29147 | ||
2078c8a7 | 29148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
29149 | $as_echo "yes" >&6; } |
29150 | ||
2078c8a7 | 29151 | $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h |
904dbe44 CIK |
29152 | |
29153 | ||
29154 | else | |
29155 | $as_echo "$as_me: failed program was:" >&5 | |
29156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29157 | ||
2078c8a7 | 29158 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 |
904dbe44 CIK |
29159 | |
29160 | ||
29161 | ||
29162 | fi | |
29163 | rm -Rf build | |
29164 | ||
29165 | ||
29166 | ||
29167 | ||
904dbe44 | 29168 | |
2078c8a7 DJL |
29169 | fi |
29170 | rm -Rf build | |
904dbe44 | 29171 | |
904dbe44 CIK |
29172 | |
29173 | ||
904dbe44 | 29174 | |
904dbe44 | 29175 | |
2078c8a7 DJL |
29176 | fi |
29177 | rm -Rf build | |
29178 | ||
29179 | ||
29180 | ||
29181 | ||
29182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5 | |
29183 | $as_echo_n "checking whether iops->truncate_range() exists... " >&6; } | |
29184 | ||
29185 | ||
29186 | cat confdefs.h - <<_ACEOF >conftest.c | |
29187 | ||
29188 | ||
29189 | #include <linux/fs.h> | |
29190 | void truncate_range(struct inode *inode, loff_t start, | |
29191 | loff_t end) { return; } | |
29192 | static struct inode_operations iops __attribute__ ((unused)) = { | |
29193 | .truncate_range = truncate_range, | |
904dbe44 CIK |
29194 | }; |
29195 | ||
29196 | int | |
29197 | main (void) | |
29198 | { | |
29199 | ||
29200 | ||
29201 | ; | |
29202 | return 0; | |
29203 | } | |
29204 | ||
29205 | _ACEOF | |
29206 | ||
29207 | ||
29208 | ||
29209 | cat - <<_ACEOF >conftest.h | |
29210 | ||
29211 | _ACEOF | |
29212 | ||
29213 | ||
29214 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29215 | echo "obj-m := conftest.o" >build/Makefile | |
29216 | modpost_flag='' | |
29217 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29218 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29219 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29220 | (eval $ac_try) 2>&5 | |
29221 | ac_status=$? | |
29222 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29223 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29224 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29225 | (eval $ac_try) 2>&5 | |
29226 | ac_status=$? | |
29227 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29228 | test $ac_status = 0; }; }; then : | |
29229 | ||
29230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29231 | $as_echo "yes" >&6; } | |
29232 | ||
2078c8a7 | 29233 | $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h |
904dbe44 CIK |
29234 | |
29235 | ||
29236 | else | |
29237 | $as_echo "$as_me: failed program was:" >&5 | |
29238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29239 | ||
29240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29241 | $as_echo "no" >&6; } | |
29242 | ||
29243 | ||
29244 | ||
29245 | fi | |
29246 | rm -Rf build | |
29247 | ||
29248 | ||
29249 | ||
29250 | ||
2078c8a7 DJL |
29251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5 |
29252 | $as_echo_n "checking whether dops->d_automount() exists... " >&6; } | |
904dbe44 CIK |
29253 | |
29254 | ||
29255 | cat confdefs.h - <<_ACEOF >conftest.c | |
29256 | ||
29257 | ||
2078c8a7 DJL |
29258 | #include <linux/dcache.h> |
29259 | struct vfsmount *d_automount(struct path *p) { return NULL; } | |
29260 | struct dentry_operations dops __attribute__ ((unused)) = { | |
29261 | .d_automount = d_automount, | |
904dbe44 CIK |
29262 | }; |
29263 | ||
29264 | int | |
29265 | main (void) | |
29266 | { | |
29267 | ||
29268 | ||
29269 | ; | |
29270 | return 0; | |
29271 | } | |
29272 | ||
29273 | _ACEOF | |
29274 | ||
29275 | ||
29276 | ||
29277 | cat - <<_ACEOF >conftest.h | |
29278 | ||
29279 | _ACEOF | |
29280 | ||
29281 | ||
29282 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29283 | echo "obj-m := conftest.o" >build/Makefile | |
29284 | modpost_flag='' | |
29285 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29286 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29287 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29288 | (eval $ac_try) 2>&5 | |
29289 | ac_status=$? | |
29290 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29291 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29292 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29293 | (eval $ac_try) 2>&5 | |
29294 | ac_status=$? | |
29295 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29296 | test $ac_status = 0; }; }; then : | |
29297 | ||
29298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29299 | $as_echo "yes" >&6; } | |
29300 | ||
2078c8a7 | 29301 | $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h |
904dbe44 CIK |
29302 | |
29303 | ||
29304 | else | |
29305 | $as_echo "$as_me: failed program was:" >&5 | |
29306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29307 | ||
29308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29309 | $as_echo "no" >&6; } | |
29310 | ||
29311 | ||
29312 | ||
29313 | fi | |
29314 | rm -Rf build | |
29315 | ||
29316 | ||
29317 | ||
29318 | ||
2078c8a7 DJL |
29319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5 |
29320 | $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; } | |
904dbe44 CIK |
29321 | |
29322 | ||
29323 | cat confdefs.h - <<_ACEOF >conftest.c | |
29324 | ||
29325 | ||
2078c8a7 DJL |
29326 | #include <linux/exportfs.h> |
29327 | int encode_fh(struct inode *inode, __u32 *fh, int *max_len, | |
29328 | struct inode *parent) { return 0; } | |
29329 | static struct export_operations eops __attribute__ ((unused))={ | |
29330 | .encode_fh = encode_fh, | |
904dbe44 CIK |
29331 | }; |
29332 | ||
29333 | int | |
29334 | main (void) | |
29335 | { | |
29336 | ||
29337 | ||
29338 | ; | |
29339 | return 0; | |
29340 | } | |
29341 | ||
29342 | _ACEOF | |
29343 | ||
29344 | ||
29345 | ||
29346 | cat - <<_ACEOF >conftest.h | |
29347 | ||
29348 | _ACEOF | |
29349 | ||
29350 | ||
29351 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29352 | echo "obj-m := conftest.o" >build/Makefile | |
29353 | modpost_flag='' | |
29354 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29355 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29356 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29357 | (eval $ac_try) 2>&5 | |
29358 | ac_status=$? | |
29359 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29360 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29361 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29362 | (eval $ac_try) 2>&5 | |
29363 | ac_status=$? | |
29364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29365 | test $ac_status = 0; }; }; then : | |
29366 | ||
29367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29368 | $as_echo "yes" >&6; } | |
29369 | ||
2078c8a7 | 29370 | $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h |
904dbe44 CIK |
29371 | |
29372 | ||
29373 | else | |
29374 | $as_echo "$as_me: failed program was:" >&5 | |
29375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29376 | ||
29377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29378 | $as_echo "no" >&6; } | |
29379 | ||
29380 | ||
29381 | ||
29382 | fi | |
29383 | rm -Rf build | |
29384 | ||
29385 | ||
29386 | ||
29387 | ||
2078c8a7 DJL |
29388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5 |
29389 | $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; } | |
904dbe44 CIK |
29390 | |
29391 | ||
29392 | cat confdefs.h - <<_ACEOF >conftest.c | |
29393 | ||
29394 | ||
2078c8a7 DJL |
29395 | #include <linux/exportfs.h> |
29396 | int commit_metadata(struct inode *inode) { return 0; } | |
29397 | static struct export_operations eops __attribute__ ((unused))={ | |
29398 | .commit_metadata = commit_metadata, | |
904dbe44 CIK |
29399 | }; |
29400 | ||
29401 | int | |
29402 | main (void) | |
29403 | { | |
29404 | ||
29405 | ||
29406 | ; | |
29407 | return 0; | |
29408 | } | |
29409 | ||
29410 | _ACEOF | |
29411 | ||
29412 | ||
29413 | ||
29414 | cat - <<_ACEOF >conftest.h | |
29415 | ||
29416 | _ACEOF | |
29417 | ||
29418 | ||
29419 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29420 | echo "obj-m := conftest.o" >build/Makefile | |
29421 | modpost_flag='' | |
29422 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29423 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29424 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29425 | (eval $ac_try) 2>&5 | |
29426 | ac_status=$? | |
29427 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29428 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29429 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29430 | (eval $ac_try) 2>&5 | |
29431 | ac_status=$? | |
29432 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29433 | test $ac_status = 0; }; }; then : | |
29434 | ||
29435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29436 | $as_echo "yes" >&6; } | |
29437 | ||
2078c8a7 | 29438 | $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h |
904dbe44 CIK |
29439 | |
29440 | ||
29441 | else | |
29442 | $as_echo "$as_me: failed program was:" >&5 | |
29443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29444 | ||
29445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29446 | $as_echo "no" >&6; } | |
29447 | ||
29448 | ||
29449 | ||
29450 | fi | |
29451 | rm -Rf build | |
29452 | ||
29453 | ||
29454 | ||
2078c8a7 DJL |
29455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5 |
29456 | $as_echo_n "checking whether clear_inode() is available... " >&6; } | |
904dbe44 | 29457 | |
904dbe44 CIK |
29458 | |
29459 | ||
29460 | cat confdefs.h - <<_ACEOF >conftest.c | |
29461 | ||
29462 | ||
29463 | #include <linux/fs.h> | |
29464 | ||
904dbe44 CIK |
29465 | int |
29466 | main (void) | |
29467 | { | |
29468 | ||
2078c8a7 | 29469 | clear_inode(NULL); |
904dbe44 CIK |
29470 | |
29471 | ; | |
29472 | return 0; | |
29473 | } | |
29474 | ||
29475 | _ACEOF | |
29476 | ||
29477 | ||
29478 | ||
29479 | cat - <<_ACEOF >conftest.h | |
29480 | ||
29481 | _ACEOF | |
29482 | ||
29483 | ||
29484 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29485 | echo "obj-m := conftest.o" >build/Makefile | |
29486 | modpost_flag='' | |
29487 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29488 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29489 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29490 | (eval $ac_try) 2>&5 | |
29491 | ac_status=$? | |
29492 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29493 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29494 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29495 | (eval $ac_try) 2>&5 | |
29496 | ac_status=$? | |
29497 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29498 | test $ac_status = 0; }; }; then : | |
2078c8a7 DJL |
29499 | rc=0 |
29500 | else | |
29501 | $as_echo "$as_me: failed program was:" >&5 | |
29502 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29503 | rc=1 | |
29504 | ||
29505 | ||
29506 | fi | |
29507 | rm -Rf build | |
29508 | ||
29509 | ||
29510 | if test $rc -ne 0; then : | |
904dbe44 | 29511 | |
2078c8a7 DJL |
29512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
29513 | $as_echo "no" >&6; } | |
904dbe44 | 29514 | |
2078c8a7 DJL |
29515 | else |
29516 | if test "x$enable_linux_builtin" != xyes; then | |
904dbe44 | 29517 | |
2078c8a7 DJL |
29518 | grep -q -E '[[:space:]]clear_inode[[:space:]]' \ |
29519 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
29520 | rc=$? | |
29521 | if test $rc -ne 0; then | |
29522 | export=0 | |
29523 | for file in fs/inode.c; do | |
29524 | grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \ | |
29525 | "$LINUX/$file" 2>/dev/null | |
29526 | rc=$? | |
29527 | if test $rc -eq 0; then | |
29528 | export=1 | |
29529 | break; | |
29530 | fi | |
29531 | done | |
29532 | if test $export -eq 0; then : | |
29533 | rc=1 | |
29534 | else : | |
29535 | rc=0 | |
29536 | fi | |
29537 | else : | |
29538 | rc=0 | |
29539 | fi | |
904dbe44 | 29540 | |
2078c8a7 DJL |
29541 | fi |
29542 | if test $rc -ne 0; then : | |
904dbe44 CIK |
29543 | |
29544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29545 | $as_echo "no" >&6; } | |
29546 | ||
2078c8a7 | 29547 | else : |
904dbe44 | 29548 | |
2078c8a7 DJL |
29549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
29550 | $as_echo "yes" >&6; } | |
904dbe44 | 29551 | |
2078c8a7 | 29552 | $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h |
904dbe44 CIK |
29553 | |
29554 | ||
2078c8a7 DJL |
29555 | fi |
29556 | fi | |
904dbe44 CIK |
29557 | |
29558 | ||
2078c8a7 DJL |
29559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5 |
29560 | $as_echo_n "checking whether insert_inode_locked() is available... " >&6; } | |
29561 | ||
904dbe44 CIK |
29562 | |
29563 | ||
29564 | cat confdefs.h - <<_ACEOF >conftest.c | |
29565 | ||
29566 | ||
29567 | #include <linux/fs.h> | |
29568 | ||
904dbe44 CIK |
29569 | int |
29570 | main (void) | |
29571 | { | |
29572 | ||
2078c8a7 | 29573 | insert_inode_locked(NULL); |
904dbe44 CIK |
29574 | |
29575 | ; | |
29576 | return 0; | |
29577 | } | |
29578 | ||
29579 | _ACEOF | |
29580 | ||
29581 | ||
29582 | ||
29583 | cat - <<_ACEOF >conftest.h | |
29584 | ||
29585 | _ACEOF | |
29586 | ||
29587 | ||
29588 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29589 | echo "obj-m := conftest.o" >build/Makefile | |
29590 | modpost_flag='' | |
29591 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29592 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29593 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29594 | (eval $ac_try) 2>&5 | |
29595 | ac_status=$? | |
29596 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29597 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29598 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29599 | (eval $ac_try) 2>&5 | |
29600 | ac_status=$? | |
29601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29602 | test $ac_status = 0; }; }; then : | |
2078c8a7 DJL |
29603 | rc=0 |
29604 | else | |
29605 | $as_echo "$as_me: failed program was:" >&5 | |
29606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29607 | rc=1 | |
904dbe44 | 29608 | |
904dbe44 | 29609 | |
2078c8a7 DJL |
29610 | fi |
29611 | rm -Rf build | |
904dbe44 CIK |
29612 | |
29613 | ||
2078c8a7 DJL |
29614 | if test $rc -ne 0; then : |
29615 | ||
29616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29617 | $as_echo "no" >&6; } | |
29618 | ||
29619 | else | |
29620 | if test "x$enable_linux_builtin" != xyes; then | |
29621 | ||
29622 | grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \ | |
29623 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
29624 | rc=$? | |
29625 | if test $rc -ne 0; then | |
29626 | export=0 | |
29627 | for file in fs/inode.c; do | |
29628 | grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \ | |
29629 | "$LINUX/$file" 2>/dev/null | |
29630 | rc=$? | |
29631 | if test $rc -eq 0; then | |
29632 | export=1 | |
29633 | break; | |
29634 | fi | |
29635 | done | |
29636 | if test $export -eq 0; then : | |
29637 | rc=1 | |
29638 | else : | |
29639 | rc=0 | |
29640 | fi | |
29641 | else : | |
29642 | rc=0 | |
29643 | fi | |
29644 | ||
29645 | fi | |
29646 | if test $rc -ne 0; then : | |
904dbe44 CIK |
29647 | |
29648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29649 | $as_echo "no" >&6; } | |
29650 | ||
2078c8a7 | 29651 | else : |
904dbe44 | 29652 | |
2078c8a7 DJL |
29653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
29654 | $as_echo "yes" >&6; } | |
904dbe44 | 29655 | |
2078c8a7 | 29656 | $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h |
904dbe44 CIK |
29657 | |
29658 | ||
2078c8a7 DJL |
29659 | fi |
29660 | fi | |
904dbe44 CIK |
29661 | |
29662 | ||
2078c8a7 DJL |
29663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5 |
29664 | $as_echo_n "checking whether d_make_root() is available... " >&6; } | |
29665 | ||
904dbe44 CIK |
29666 | |
29667 | ||
29668 | cat confdefs.h - <<_ACEOF >conftest.c | |
29669 | ||
29670 | ||
2078c8a7 | 29671 | #include <linux/dcache.h> |
904dbe44 CIK |
29672 | |
29673 | int | |
29674 | main (void) | |
29675 | { | |
29676 | ||
2078c8a7 | 29677 | d_make_root(NULL); |
904dbe44 CIK |
29678 | |
29679 | ; | |
29680 | return 0; | |
29681 | } | |
29682 | ||
29683 | _ACEOF | |
29684 | ||
29685 | ||
29686 | ||
29687 | cat - <<_ACEOF >conftest.h | |
29688 | ||
29689 | _ACEOF | |
29690 | ||
29691 | ||
29692 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29693 | echo "obj-m := conftest.o" >build/Makefile | |
29694 | modpost_flag='' | |
29695 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29696 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29697 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29698 | (eval $ac_try) 2>&5 | |
29699 | ac_status=$? | |
29700 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29701 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29702 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29703 | (eval $ac_try) 2>&5 | |
29704 | ac_status=$? | |
29705 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29706 | test $ac_status = 0; }; }; then : | |
2078c8a7 DJL |
29707 | rc=0 |
29708 | else | |
29709 | $as_echo "$as_me: failed program was:" >&5 | |
29710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29711 | rc=1 | |
29712 | ||
29713 | ||
29714 | fi | |
29715 | rm -Rf build | |
29716 | ||
29717 | ||
29718 | if test $rc -ne 0; then : | |
904dbe44 CIK |
29719 | |
29720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29721 | $as_echo "no" >&6; } | |
29722 | ||
2078c8a7 DJL |
29723 | else |
29724 | if test "x$enable_linux_builtin" != xyes; then | |
904dbe44 | 29725 | |
2078c8a7 DJL |
29726 | grep -q -E '[[:space:]]d_make_root[[:space:]]' \ |
29727 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
29728 | rc=$? | |
29729 | if test $rc -ne 0; then | |
29730 | export=0 | |
29731 | for file in fs/dcache.c; do | |
29732 | grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \ | |
29733 | "$LINUX/$file" 2>/dev/null | |
29734 | rc=$? | |
29735 | if test $rc -eq 0; then | |
29736 | export=1 | |
29737 | break; | |
29738 | fi | |
29739 | done | |
29740 | if test $export -eq 0; then : | |
29741 | rc=1 | |
29742 | else : | |
29743 | rc=0 | |
29744 | fi | |
29745 | else : | |
29746 | rc=0 | |
29747 | fi | |
904dbe44 | 29748 | |
2078c8a7 DJL |
29749 | fi |
29750 | if test $rc -ne 0; then : | |
904dbe44 | 29751 | |
2078c8a7 DJL |
29752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
29753 | $as_echo "no" >&6; } | |
904dbe44 | 29754 | |
2078c8a7 | 29755 | else : |
904dbe44 | 29756 | |
2078c8a7 DJL |
29757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
29758 | $as_echo "yes" >&6; } | |
904dbe44 | 29759 | |
2078c8a7 | 29760 | $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h |
904dbe44 CIK |
29761 | |
29762 | ||
2078c8a7 DJL |
29763 | fi |
29764 | fi | |
904dbe44 CIK |
29765 | |
29766 | ||
2078c8a7 DJL |
29767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5 |
29768 | $as_echo_n "checking whether d_obtain_alias() is available... " >&6; } | |
29769 | ||
904dbe44 CIK |
29770 | |
29771 | ||
29772 | cat confdefs.h - <<_ACEOF >conftest.c | |
29773 | ||
29774 | ||
2078c8a7 | 29775 | #include <linux/dcache.h> |
904dbe44 CIK |
29776 | |
29777 | int | |
29778 | main (void) | |
29779 | { | |
29780 | ||
2078c8a7 | 29781 | d_obtain_alias(NULL); |
904dbe44 CIK |
29782 | |
29783 | ; | |
29784 | return 0; | |
29785 | } | |
29786 | ||
29787 | _ACEOF | |
29788 | ||
29789 | ||
29790 | ||
29791 | cat - <<_ACEOF >conftest.h | |
29792 | ||
29793 | _ACEOF | |
29794 | ||
29795 | ||
29796 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29797 | echo "obj-m := conftest.o" >build/Makefile | |
29798 | modpost_flag='' | |
29799 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29800 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29801 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29802 | (eval $ac_try) 2>&5 | |
29803 | ac_status=$? | |
29804 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29805 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29806 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29807 | (eval $ac_try) 2>&5 | |
29808 | ac_status=$? | |
29809 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29810 | test $ac_status = 0; }; }; then : | |
2078c8a7 DJL |
29811 | rc=0 |
29812 | else | |
29813 | $as_echo "$as_me: failed program was:" >&5 | |
29814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29815 | rc=1 | |
29816 | ||
29817 | ||
29818 | fi | |
29819 | rm -Rf build | |
29820 | ||
29821 | ||
29822 | if test $rc -ne 0; then : | |
904dbe44 CIK |
29823 | |
29824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29825 | $as_echo "no" >&6; } | |
29826 | ||
2078c8a7 DJL |
29827 | else |
29828 | if test "x$enable_linux_builtin" != xyes; then | |
904dbe44 | 29829 | |
2078c8a7 DJL |
29830 | grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \ |
29831 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
29832 | rc=$? | |
29833 | if test $rc -ne 0; then | |
29834 | export=0 | |
29835 | for file in fs/dcache.c; do | |
29836 | grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \ | |
29837 | "$LINUX/$file" 2>/dev/null | |
29838 | rc=$? | |
29839 | if test $rc -eq 0; then | |
29840 | export=1 | |
29841 | break; | |
29842 | fi | |
29843 | done | |
29844 | if test $export -eq 0; then : | |
29845 | rc=1 | |
29846 | else : | |
29847 | rc=0 | |
29848 | fi | |
29849 | else : | |
29850 | rc=0 | |
29851 | fi | |
904dbe44 | 29852 | |
2078c8a7 DJL |
29853 | fi |
29854 | if test $rc -ne 0; then : | |
904dbe44 | 29855 | |
2078c8a7 DJL |
29856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
29857 | $as_echo "no" >&6; } | |
904dbe44 | 29858 | |
2078c8a7 | 29859 | else : |
904dbe44 | 29860 | |
2078c8a7 DJL |
29861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
29862 | $as_echo "yes" >&6; } | |
904dbe44 | 29863 | |
2078c8a7 | 29864 | $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h |
904dbe44 CIK |
29865 | |
29866 | ||
2078c8a7 DJL |
29867 | fi |
29868 | fi | |
904dbe44 CIK |
29869 | |
29870 | ||
2078c8a7 DJL |
29871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5 |
29872 | $as_echo_n "checking whether d_prune_aliases() is available... " >&6; } | |
29873 | ||
904dbe44 CIK |
29874 | |
29875 | ||
29876 | cat confdefs.h - <<_ACEOF >conftest.c | |
29877 | ||
29878 | ||
2078c8a7 | 29879 | #include <linux/dcache.h> |
904dbe44 CIK |
29880 | |
29881 | int | |
29882 | main (void) | |
29883 | { | |
29884 | ||
2078c8a7 DJL |
29885 | struct inode *ip = NULL; |
29886 | d_prune_aliases(ip); | |
904dbe44 CIK |
29887 | |
29888 | ; | |
29889 | return 0; | |
29890 | } | |
29891 | ||
29892 | _ACEOF | |
29893 | ||
29894 | ||
29895 | ||
29896 | cat - <<_ACEOF >conftest.h | |
29897 | ||
29898 | _ACEOF | |
29899 | ||
29900 | ||
29901 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29902 | echo "obj-m := conftest.o" >build/Makefile | |
29903 | modpost_flag='' | |
29904 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29905 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29906 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29907 | (eval $ac_try) 2>&5 | |
29908 | ac_status=$? | |
29909 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29910 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29911 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29912 | (eval $ac_try) 2>&5 | |
29913 | ac_status=$? | |
29914 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29915 | test $ac_status = 0; }; }; then : | |
2078c8a7 DJL |
29916 | rc=0 |
29917 | else | |
29918 | $as_echo "$as_me: failed program was:" >&5 | |
29919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29920 | rc=1 | |
904dbe44 | 29921 | |
904dbe44 | 29922 | |
2078c8a7 DJL |
29923 | fi |
29924 | rm -Rf build | |
904dbe44 CIK |
29925 | |
29926 | ||
2078c8a7 DJL |
29927 | if test $rc -ne 0; then : |
29928 | ||
29929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29930 | $as_echo "no" >&6; } | |
29931 | ||
29932 | else | |
29933 | if test "x$enable_linux_builtin" != xyes; then | |
29934 | ||
29935 | grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \ | |
29936 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
29937 | rc=$? | |
29938 | if test $rc -ne 0; then | |
29939 | export=0 | |
29940 | for file in fs/dcache.c; do | |
29941 | grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \ | |
29942 | "$LINUX/$file" 2>/dev/null | |
29943 | rc=$? | |
29944 | if test $rc -eq 0; then | |
29945 | export=1 | |
29946 | break; | |
29947 | fi | |
29948 | done | |
29949 | if test $export -eq 0; then : | |
29950 | rc=1 | |
29951 | else : | |
29952 | rc=0 | |
29953 | fi | |
29954 | else : | |
29955 | rc=0 | |
29956 | fi | |
29957 | ||
29958 | fi | |
29959 | if test $rc -ne 0; then : | |
904dbe44 CIK |
29960 | |
29961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29962 | $as_echo "no" >&6; } | |
29963 | ||
2078c8a7 DJL |
29964 | else : |
29965 | ||
29966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29967 | $as_echo "yes" >&6; } | |
904dbe44 | 29968 | |
2078c8a7 | 29969 | $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h |
904dbe44 | 29970 | |
904dbe44 | 29971 | |
2078c8a7 DJL |
29972 | fi |
29973 | fi | |
904dbe44 CIK |
29974 | |
29975 | ||
2078c8a7 DJL |
29976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5 |
29977 | $as_echo_n "checking whether d_set_d_op() is available... " >&6; } | |
904dbe44 | 29978 | |
904dbe44 CIK |
29979 | |
29980 | ||
29981 | cat confdefs.h - <<_ACEOF >conftest.c | |
29982 | ||
29983 | ||
29984 | #include <linux/dcache.h> | |
904dbe44 CIK |
29985 | |
29986 | int | |
29987 | main (void) | |
29988 | { | |
29989 | ||
2078c8a7 | 29990 | d_set_d_op(NULL, NULL); |
904dbe44 CIK |
29991 | |
29992 | ; | |
29993 | return 0; | |
29994 | } | |
29995 | ||
29996 | _ACEOF | |
29997 | ||
29998 | ||
29999 | ||
30000 | cat - <<_ACEOF >conftest.h | |
30001 | ||
30002 | _ACEOF | |
30003 | ||
30004 | ||
30005 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30006 | echo "obj-m := conftest.o" >build/Makefile | |
30007 | modpost_flag='' | |
30008 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30009 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30010 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30011 | (eval $ac_try) 2>&5 | |
30012 | ac_status=$? | |
30013 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30014 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30015 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30016 | (eval $ac_try) 2>&5 | |
30017 | ac_status=$? | |
30018 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30019 | test $ac_status = 0; }; }; then : | |
2078c8a7 DJL |
30020 | rc=0 |
30021 | else | |
30022 | $as_echo "$as_me: failed program was:" >&5 | |
30023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30024 | rc=1 | |
904dbe44 | 30025 | |
904dbe44 | 30026 | |
2078c8a7 DJL |
30027 | fi |
30028 | rm -Rf build | |
904dbe44 CIK |
30029 | |
30030 | ||
2078c8a7 DJL |
30031 | if test $rc -ne 0; then : |
30032 | ||
30033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30034 | $as_echo "no" >&6; } | |
30035 | ||
30036 | else | |
30037 | if test "x$enable_linux_builtin" != xyes; then | |
30038 | ||
30039 | grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \ | |
30040 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
30041 | rc=$? | |
30042 | if test $rc -ne 0; then | |
30043 | export=0 | |
30044 | for file in fs/dcache.c; do | |
30045 | grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \ | |
30046 | "$LINUX/$file" 2>/dev/null | |
30047 | rc=$? | |
30048 | if test $rc -eq 0; then | |
30049 | export=1 | |
30050 | break; | |
30051 | fi | |
30052 | done | |
30053 | if test $export -eq 0; then : | |
30054 | rc=1 | |
30055 | else : | |
30056 | rc=0 | |
30057 | fi | |
30058 | else : | |
30059 | rc=0 | |
30060 | fi | |
30061 | ||
30062 | fi | |
30063 | if test $rc -ne 0; then : | |
904dbe44 CIK |
30064 | |
30065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30066 | $as_echo "no" >&6; } | |
30067 | ||
2078c8a7 DJL |
30068 | else : |
30069 | ||
30070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30071 | $as_echo "yes" >&6; } | |
904dbe44 | 30072 | |
2078c8a7 | 30073 | $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h |
904dbe44 | 30074 | |
904dbe44 | 30075 | |
2078c8a7 DJL |
30076 | fi |
30077 | fi | |
904dbe44 CIK |
30078 | |
30079 | ||
30080 | ||
2078c8a7 DJL |
30081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5 |
30082 | $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; } | |
904dbe44 CIK |
30083 | |
30084 | ||
30085 | cat confdefs.h - <<_ACEOF >conftest.c | |
30086 | ||
30087 | ||
2078c8a7 DJL |
30088 | #include <linux/dcache.h> |
30089 | ||
30090 | int revalidate (struct dentry *dentry, | |
30091 | struct nameidata *nidata) { return 0; } | |
30092 | ||
30093 | static const struct dentry_operations | |
30094 | dops __attribute__ ((unused)) = { | |
30095 | .d_revalidate = revalidate, | |
904dbe44 CIK |
30096 | }; |
30097 | ||
30098 | int | |
30099 | main (void) | |
30100 | { | |
30101 | ||
30102 | ||
30103 | ; | |
30104 | return 0; | |
30105 | } | |
30106 | ||
30107 | _ACEOF | |
30108 | ||
30109 | ||
30110 | ||
30111 | cat - <<_ACEOF >conftest.h | |
30112 | ||
30113 | _ACEOF | |
30114 | ||
30115 | ||
30116 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30117 | echo "obj-m := conftest.o" >build/Makefile | |
30118 | modpost_flag='' | |
30119 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30120 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30121 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30122 | (eval $ac_try) 2>&5 | |
30123 | ac_status=$? | |
30124 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30125 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30126 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30127 | (eval $ac_try) 2>&5 | |
30128 | ac_status=$? | |
30129 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30130 | test $ac_status = 0; }; }; then : | |
30131 | ||
30132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30133 | $as_echo "yes" >&6; } | |
30134 | ||
2078c8a7 | 30135 | $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h |
904dbe44 CIK |
30136 | |
30137 | ||
30138 | else | |
30139 | $as_echo "$as_me: failed program was:" >&5 | |
30140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30141 | ||
30142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30143 | $as_echo "no" >&6; } | |
30144 | ||
30145 | ||
30146 | ||
30147 | fi | |
30148 | rm -Rf build | |
30149 | ||
30150 | ||
30151 | ||
30152 | ||
2078c8a7 DJL |
30153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5 |
30154 | $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; } | |
904dbe44 CIK |
30155 | |
30156 | ||
30157 | cat confdefs.h - <<_ACEOF >conftest.c | |
30158 | ||
30159 | ||
2078c8a7 DJL |
30160 | #include <linux/dcache.h> |
30161 | ||
30162 | const struct dentry_operations test_d_op = { | |
30163 | .d_revalidate = NULL, | |
904dbe44 CIK |
30164 | }; |
30165 | ||
30166 | int | |
30167 | main (void) | |
30168 | { | |
30169 | ||
2078c8a7 DJL |
30170 | struct dentry d __attribute__ ((unused)); |
30171 | ||
30172 | d.d_op = &test_d_op; | |
904dbe44 CIK |
30173 | |
30174 | ; | |
30175 | return 0; | |
30176 | } | |
30177 | ||
30178 | _ACEOF | |
30179 | ||
30180 | ||
30181 | ||
30182 | cat - <<_ACEOF >conftest.h | |
30183 | ||
30184 | _ACEOF | |
30185 | ||
30186 | ||
30187 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30188 | echo "obj-m := conftest.o" >build/Makefile | |
30189 | modpost_flag='' | |
30190 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30191 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30192 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30193 | (eval $ac_try) 2>&5 | |
30194 | ac_status=$? | |
30195 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30196 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30197 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30198 | (eval $ac_try) 2>&5 | |
30199 | ac_status=$? | |
30200 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30201 | test $ac_status = 0; }; }; then : | |
30202 | ||
30203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30204 | $as_echo "yes" >&6; } | |
30205 | ||
2078c8a7 | 30206 | $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h |
904dbe44 CIK |
30207 | |
30208 | ||
30209 | else | |
30210 | $as_echo "$as_me: failed program was:" >&5 | |
30211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30212 | ||
30213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30214 | $as_echo "no" >&6; } | |
30215 | ||
30216 | ||
30217 | ||
30218 | fi | |
30219 | rm -Rf build | |
30220 | ||
30221 | ||
30222 | ||
2078c8a7 DJL |
30223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5 |
30224 | $as_echo_n "checking whether check_disk_size_change() is available... " >&6; } | |
904dbe44 CIK |
30225 | |
30226 | ||
30227 | ||
30228 | cat confdefs.h - <<_ACEOF >conftest.c | |
30229 | ||
30230 | ||
30231 | #include <linux/fs.h> | |
30232 | ||
30233 | int | |
30234 | main (void) | |
30235 | { | |
30236 | ||
2078c8a7 | 30237 | check_disk_size_change(NULL, NULL); |
904dbe44 CIK |
30238 | |
30239 | ; | |
30240 | return 0; | |
30241 | } | |
30242 | ||
30243 | _ACEOF | |
30244 | ||
30245 | ||
30246 | ||
30247 | cat - <<_ACEOF >conftest.h | |
30248 | ||
30249 | _ACEOF | |
30250 | ||
30251 | ||
30252 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30253 | echo "obj-m := conftest.o" >build/Makefile | |
30254 | modpost_flag='' | |
30255 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30256 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30257 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30258 | (eval $ac_try) 2>&5 | |
30259 | ac_status=$? | |
30260 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30261 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30262 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30263 | (eval $ac_try) 2>&5 | |
30264 | ac_status=$? | |
30265 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30266 | test $ac_status = 0; }; }; then : | |
30267 | rc=0 | |
30268 | else | |
30269 | $as_echo "$as_me: failed program was:" >&5 | |
30270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30271 | rc=1 | |
30272 | ||
30273 | ||
30274 | fi | |
30275 | rm -Rf build | |
30276 | ||
30277 | ||
30278 | if test $rc -ne 0; then : | |
30279 | ||
30280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30281 | $as_echo "no" >&6; } | |
30282 | ||
30283 | else | |
30284 | if test "x$enable_linux_builtin" != xyes; then | |
30285 | ||
2078c8a7 | 30286 | grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \ |
904dbe44 CIK |
30287 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
30288 | rc=$? | |
30289 | if test $rc -ne 0; then | |
30290 | export=0 | |
2078c8a7 DJL |
30291 | for file in fs/block_dev.c; do |
30292 | grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \ | |
904dbe44 CIK |
30293 | "$LINUX/$file" 2>/dev/null |
30294 | rc=$? | |
30295 | if test $rc -eq 0; then | |
30296 | export=1 | |
30297 | break; | |
30298 | fi | |
30299 | done | |
30300 | if test $export -eq 0; then : | |
30301 | rc=1 | |
30302 | else : | |
30303 | rc=0 | |
30304 | fi | |
30305 | else : | |
30306 | rc=0 | |
30307 | fi | |
30308 | ||
30309 | fi | |
30310 | if test $rc -ne 0; then : | |
30311 | ||
30312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30313 | $as_echo "no" >&6; } | |
30314 | ||
30315 | else : | |
30316 | ||
30317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30318 | $as_echo "yes" >&6; } | |
30319 | ||
2078c8a7 | 30320 | $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h |
904dbe44 CIK |
30321 | |
30322 | ||
30323 | fi | |
30324 | fi | |
30325 | ||
30326 | ||
2078c8a7 DJL |
30327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5 |
30328 | $as_echo_n "checking whether truncate_setsize() is available... " >&6; } | |
904dbe44 CIK |
30329 | |
30330 | ||
30331 | ||
30332 | cat confdefs.h - <<_ACEOF >conftest.c | |
30333 | ||
30334 | ||
2078c8a7 | 30335 | #include <linux/mm.h> |
904dbe44 CIK |
30336 | |
30337 | int | |
30338 | main (void) | |
30339 | { | |
30340 | ||
2078c8a7 | 30341 | truncate_setsize(NULL, 0); |
904dbe44 CIK |
30342 | |
30343 | ; | |
30344 | return 0; | |
30345 | } | |
30346 | ||
30347 | _ACEOF | |
30348 | ||
30349 | ||
30350 | ||
30351 | cat - <<_ACEOF >conftest.h | |
30352 | ||
30353 | _ACEOF | |
30354 | ||
30355 | ||
30356 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30357 | echo "obj-m := conftest.o" >build/Makefile | |
30358 | modpost_flag='' | |
30359 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30360 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30361 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30362 | (eval $ac_try) 2>&5 | |
30363 | ac_status=$? | |
30364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30365 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30366 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30367 | (eval $ac_try) 2>&5 | |
30368 | ac_status=$? | |
30369 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30370 | test $ac_status = 0; }; }; then : | |
30371 | rc=0 | |
30372 | else | |
30373 | $as_echo "$as_me: failed program was:" >&5 | |
30374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30375 | rc=1 | |
30376 | ||
30377 | ||
30378 | fi | |
30379 | rm -Rf build | |
30380 | ||
30381 | ||
30382 | if test $rc -ne 0; then : | |
30383 | ||
30384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30385 | $as_echo "no" >&6; } | |
30386 | ||
30387 | else | |
30388 | if test "x$enable_linux_builtin" != xyes; then | |
30389 | ||
2078c8a7 | 30390 | grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \ |
904dbe44 CIK |
30391 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
30392 | rc=$? | |
30393 | if test $rc -ne 0; then | |
30394 | export=0 | |
2078c8a7 DJL |
30395 | for file in mm/truncate.c; do |
30396 | grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \ | |
904dbe44 CIK |
30397 | "$LINUX/$file" 2>/dev/null |
30398 | rc=$? | |
30399 | if test $rc -eq 0; then | |
30400 | export=1 | |
30401 | break; | |
30402 | fi | |
30403 | done | |
30404 | if test $export -eq 0; then : | |
30405 | rc=1 | |
30406 | else : | |
30407 | rc=0 | |
30408 | fi | |
30409 | else : | |
30410 | rc=0 | |
30411 | fi | |
30412 | ||
30413 | fi | |
30414 | if test $rc -ne 0; then : | |
30415 | ||
30416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30417 | $as_echo "no" >&6; } | |
30418 | ||
30419 | else : | |
30420 | ||
30421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30422 | $as_echo "yes" >&6; } | |
30423 | ||
2078c8a7 | 30424 | $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h |
904dbe44 CIK |
30425 | |
30426 | ||
30427 | fi | |
30428 | fi | |
30429 | ||
30430 | ||
904dbe44 | 30431 | |
2078c8a7 DJL |
30432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5 |
30433 | $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; } | |
30434 | ||
30435 | ||
30436 | cat confdefs.h - <<_ACEOF >conftest.c | |
30437 | ||
30438 | ||
30439 | #include <linux/security.h> | |
30440 | ||
30441 | int | |
30442 | main (void) | |
30443 | { | |
30444 | ||
30445 | struct inode *ip __attribute__ ((unused)) = NULL; | |
30446 | struct inode *dip __attribute__ ((unused)) = NULL; | |
30447 | const struct qstr *str __attribute__ ((unused)) = NULL; | |
30448 | char *name __attribute__ ((unused)) = NULL; | |
30449 | void *value __attribute__ ((unused)) = NULL; | |
30450 | size_t len __attribute__ ((unused)) = 0; | |
30451 | ||
30452 | security_inode_init_security(ip, dip, str, &name, &value, &len); | |
30453 | ||
30454 | ; | |
30455 | return 0; | |
30456 | } | |
30457 | ||
30458 | _ACEOF | |
30459 | ||
30460 | ||
30461 | ||
30462 | cat - <<_ACEOF >conftest.h | |
30463 | ||
30464 | _ACEOF | |
30465 | ||
30466 | ||
30467 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30468 | echo "obj-m := conftest.o" >build/Makefile | |
30469 | modpost_flag='' | |
30470 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30471 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30472 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30473 | (eval $ac_try) 2>&5 | |
30474 | ac_status=$? | |
30475 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30476 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30477 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30478 | (eval $ac_try) 2>&5 | |
30479 | ac_status=$? | |
30480 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30481 | test $ac_status = 0; }; }; then : | |
30482 | ||
30483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30484 | $as_echo "yes" >&6; } | |
30485 | ||
30486 | $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h | |
30487 | ||
30488 | ||
30489 | else | |
30490 | $as_echo "$as_me: failed program was:" >&5 | |
30491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30492 | ||
30493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30494 | $as_echo "no" >&6; } | |
30495 | ||
30496 | ||
30497 | ||
30498 | fi | |
30499 | rm -Rf build | |
30500 | ||
30501 | ||
30502 | ||
30503 | ||
30504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5 | |
30505 | $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; } | |
904dbe44 CIK |
30506 | |
30507 | ||
30508 | cat confdefs.h - <<_ACEOF >conftest.c | |
30509 | ||
30510 | ||
2078c8a7 | 30511 | #include <linux/security.h> |
904dbe44 CIK |
30512 | |
30513 | int | |
30514 | main (void) | |
30515 | { | |
30516 | ||
2078c8a7 DJL |
30517 | struct inode *ip __attribute__ ((unused)) = NULL; |
30518 | struct inode *dip __attribute__ ((unused)) = NULL; | |
30519 | const struct qstr *str __attribute__ ((unused)) = NULL; | |
30520 | initxattrs func __attribute__ ((unused)) = NULL; | |
30521 | ||
30522 | security_inode_init_security(ip, dip, str, func, NULL); | |
904dbe44 CIK |
30523 | |
30524 | ; | |
30525 | return 0; | |
30526 | } | |
30527 | ||
30528 | _ACEOF | |
30529 | ||
30530 | ||
30531 | ||
30532 | cat - <<_ACEOF >conftest.h | |
30533 | ||
30534 | _ACEOF | |
30535 | ||
30536 | ||
30537 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30538 | echo "obj-m := conftest.o" >build/Makefile | |
30539 | modpost_flag='' | |
30540 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30541 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30542 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30543 | (eval $ac_try) 2>&5 | |
30544 | ac_status=$? | |
30545 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30546 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30547 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30548 | (eval $ac_try) 2>&5 | |
30549 | ac_status=$? | |
30550 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30551 | test $ac_status = 0; }; }; then : | |
904dbe44 | 30552 | |
2078c8a7 DJL |
30553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
30554 | $as_echo "yes" >&6; } | |
904dbe44 | 30555 | |
2078c8a7 | 30556 | $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h |
904dbe44 | 30557 | |
904dbe44 | 30558 | |
2078c8a7 DJL |
30559 | else |
30560 | $as_echo "$as_me: failed program was:" >&5 | |
30561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 CIK |
30562 | |
30563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30564 | $as_echo "no" >&6; } | |
30565 | ||
904dbe44 | 30566 | |
904dbe44 | 30567 | |
2078c8a7 DJL |
30568 | fi |
30569 | rm -Rf build | |
904dbe44 | 30570 | |
904dbe44 CIK |
30571 | |
30572 | ||
2078c8a7 DJL |
30573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5 |
30574 | $as_echo_n "checking whether mount_nodev() is available... " >&6; } | |
904dbe44 CIK |
30575 | |
30576 | ||
30577 | ||
30578 | cat confdefs.h - <<_ACEOF >conftest.c | |
30579 | ||
30580 | ||
2078c8a7 | 30581 | #include <linux/fs.h> |
904dbe44 CIK |
30582 | |
30583 | int | |
30584 | main (void) | |
30585 | { | |
30586 | ||
2078c8a7 | 30587 | mount_nodev(NULL, 0, NULL, NULL); |
904dbe44 CIK |
30588 | |
30589 | ; | |
30590 | return 0; | |
30591 | } | |
30592 | ||
30593 | _ACEOF | |
30594 | ||
30595 | ||
30596 | ||
30597 | cat - <<_ACEOF >conftest.h | |
30598 | ||
30599 | _ACEOF | |
30600 | ||
30601 | ||
30602 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30603 | echo "obj-m := conftest.o" >build/Makefile | |
30604 | modpost_flag='' | |
30605 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30606 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30607 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30608 | (eval $ac_try) 2>&5 | |
30609 | ac_status=$? | |
30610 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30611 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30612 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30613 | (eval $ac_try) 2>&5 | |
30614 | ac_status=$? | |
30615 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30616 | test $ac_status = 0; }; }; then : | |
30617 | rc=0 | |
30618 | else | |
30619 | $as_echo "$as_me: failed program was:" >&5 | |
30620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30621 | rc=1 | |
30622 | ||
30623 | ||
30624 | fi | |
30625 | rm -Rf build | |
30626 | ||
30627 | ||
30628 | if test $rc -ne 0; then : | |
30629 | ||
30630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30631 | $as_echo "no" >&6; } | |
30632 | ||
30633 | else | |
30634 | if test "x$enable_linux_builtin" != xyes; then | |
30635 | ||
2078c8a7 | 30636 | grep -q -E '[[:space:]]mount_nodev[[:space:]]' \ |
904dbe44 CIK |
30637 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
30638 | rc=$? | |
30639 | if test $rc -ne 0; then | |
30640 | export=0 | |
2078c8a7 DJL |
30641 | for file in fs/super.c; do |
30642 | grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \ | |
904dbe44 CIK |
30643 | "$LINUX/$file" 2>/dev/null |
30644 | rc=$? | |
30645 | if test $rc -eq 0; then | |
30646 | export=1 | |
30647 | break; | |
30648 | fi | |
30649 | done | |
30650 | if test $export -eq 0; then : | |
30651 | rc=1 | |
30652 | else : | |
30653 | rc=0 | |
30654 | fi | |
30655 | else : | |
30656 | rc=0 | |
30657 | fi | |
30658 | ||
30659 | fi | |
30660 | if test $rc -ne 0; then : | |
30661 | ||
30662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30663 | $as_echo "no" >&6; } | |
30664 | ||
30665 | else : | |
30666 | ||
30667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30668 | $as_echo "yes" >&6; } | |
30669 | ||
2078c8a7 | 30670 | $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h |
904dbe44 CIK |
30671 | |
30672 | ||
30673 | fi | |
30674 | fi | |
30675 | ||
30676 | ||
904dbe44 | 30677 | |
2078c8a7 DJL |
30678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5 |
30679 | $as_echo_n "checking whether super_block has s_shrink... " >&6; } | |
904dbe44 CIK |
30680 | |
30681 | ||
30682 | cat confdefs.h - <<_ACEOF >conftest.c | |
30683 | ||
30684 | ||
2078c8a7 DJL |
30685 | #include <linux/fs.h> |
30686 | ||
30687 | int shrink(struct shrinker *s, struct shrink_control *sc) | |
30688 | { return 0; } | |
30689 | ||
30690 | static const struct super_block | |
30691 | sb __attribute__ ((unused)) = { | |
30692 | .s_shrink.shrink = shrink, | |
30693 | .s_shrink.seeks = DEFAULT_SEEKS, | |
30694 | .s_shrink.batch = 0, | |
30695 | }; | |
904dbe44 CIK |
30696 | |
30697 | int | |
30698 | main (void) | |
30699 | { | |
30700 | ||
904dbe44 CIK |
30701 | |
30702 | ; | |
30703 | return 0; | |
30704 | } | |
30705 | ||
30706 | _ACEOF | |
30707 | ||
30708 | ||
30709 | ||
30710 | cat - <<_ACEOF >conftest.h | |
30711 | ||
30712 | _ACEOF | |
30713 | ||
30714 | ||
30715 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30716 | echo "obj-m := conftest.o" >build/Makefile | |
30717 | modpost_flag='' | |
30718 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30719 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30720 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30721 | (eval $ac_try) 2>&5 | |
30722 | ac_status=$? | |
30723 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30724 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30725 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30726 | (eval $ac_try) 2>&5 | |
30727 | ac_status=$? | |
30728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30729 | test $ac_status = 0; }; }; then : | |
904dbe44 | 30730 | |
2078c8a7 DJL |
30731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
30732 | $as_echo "yes" >&6; } | |
904dbe44 | 30733 | |
2078c8a7 | 30734 | $as_echo "#define HAVE_SHRINK 1" >>confdefs.h |
904dbe44 | 30735 | |
904dbe44 | 30736 | |
904dbe44 | 30737 | |
2078c8a7 DJL |
30738 | else |
30739 | $as_echo "$as_me: failed program was:" >&5 | |
30740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 CIK |
30741 | |
30742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30743 | $as_echo "no" >&6; } | |
30744 | ||
904dbe44 | 30745 | |
904dbe44 | 30746 | |
2078c8a7 DJL |
30747 | fi |
30748 | rm -Rf build | |
904dbe44 | 30749 | |
904dbe44 CIK |
30750 | |
30751 | ||
904dbe44 | 30752 | |
2078c8a7 DJL |
30753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5 |
30754 | $as_echo_n "checking whether shrink_control has nid... " >&6; } | |
904dbe44 CIK |
30755 | |
30756 | ||
30757 | cat confdefs.h - <<_ACEOF >conftest.c | |
30758 | ||
30759 | ||
2078c8a7 | 30760 | #include <linux/fs.h> |
904dbe44 CIK |
30761 | |
30762 | int | |
30763 | main (void) | |
30764 | { | |
30765 | ||
2078c8a7 DJL |
30766 | struct shrink_control sc __attribute__ ((unused)); |
30767 | unsigned long scnidsize __attribute__ ((unused)) = | |
30768 | sizeof(sc.nid); | |
904dbe44 CIK |
30769 | |
30770 | ; | |
30771 | return 0; | |
30772 | } | |
30773 | ||
30774 | _ACEOF | |
30775 | ||
30776 | ||
30777 | ||
30778 | cat - <<_ACEOF >conftest.h | |
30779 | ||
30780 | _ACEOF | |
30781 | ||
30782 | ||
30783 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30784 | echo "obj-m := conftest.o" >build/Makefile | |
30785 | modpost_flag='' | |
30786 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30787 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30788 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30789 | (eval $ac_try) 2>&5 | |
30790 | ac_status=$? | |
30791 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30792 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30793 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30794 | (eval $ac_try) 2>&5 | |
30795 | ac_status=$? | |
30796 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30797 | test $ac_status = 0; }; }; then : | |
904dbe44 | 30798 | |
2078c8a7 DJL |
30799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
30800 | $as_echo "yes" >&6; } | |
904dbe44 | 30801 | |
2078c8a7 | 30802 | $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h |
904dbe44 | 30803 | |
904dbe44 | 30804 | |
2078c8a7 DJL |
30805 | else |
30806 | $as_echo "$as_me: failed program was:" >&5 | |
30807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 CIK |
30808 | |
30809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30810 | $as_echo "no" >&6; } | |
30811 | ||
904dbe44 | 30812 | |
904dbe44 | 30813 | |
2078c8a7 DJL |
30814 | fi |
30815 | rm -Rf build | |
904dbe44 | 30816 | |
904dbe44 CIK |
30817 | |
30818 | ||
30819 | ||
2078c8a7 DJL |
30820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5 |
30821 | $as_echo_n "checking whether super_block has s_instances list_head... " >&6; } | |
904dbe44 CIK |
30822 | |
30823 | ||
30824 | cat confdefs.h - <<_ACEOF >conftest.c | |
30825 | ||
30826 | ||
2078c8a7 | 30827 | #include <linux/fs.h> |
904dbe44 CIK |
30828 | |
30829 | int | |
30830 | main (void) | |
30831 | { | |
30832 | ||
2078c8a7 DJL |
30833 | struct super_block sb __attribute__ ((unused)); |
30834 | ||
30835 | INIT_LIST_HEAD(&sb.s_instances); | |
904dbe44 CIK |
30836 | |
30837 | ; | |
30838 | return 0; | |
30839 | } | |
30840 | ||
30841 | _ACEOF | |
30842 | ||
30843 | ||
30844 | ||
30845 | cat - <<_ACEOF >conftest.h | |
30846 | ||
30847 | _ACEOF | |
30848 | ||
30849 | ||
30850 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30851 | echo "obj-m := conftest.o" >build/Makefile | |
30852 | modpost_flag='' | |
30853 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30854 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30855 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30856 | (eval $ac_try) 2>&5 | |
30857 | ac_status=$? | |
30858 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30859 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30860 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30861 | (eval $ac_try) 2>&5 | |
30862 | ac_status=$? | |
30863 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30864 | test $ac_status = 0; }; }; then : | |
30865 | ||
30866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30867 | $as_echo "yes" >&6; } | |
30868 | ||
2078c8a7 | 30869 | $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h |
904dbe44 CIK |
30870 | |
30871 | ||
30872 | else | |
30873 | $as_echo "$as_me: failed program was:" >&5 | |
30874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30875 | ||
30876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30877 | $as_echo "no" >&6; } | |
30878 | ||
30879 | ||
30880 | ||
30881 | fi | |
30882 | rm -Rf build | |
30883 | ||
30884 | ||
30885 | ||
2078c8a7 DJL |
30886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5 |
30887 | $as_echo_n "checking whether super_block has s_d_op... " >&6; } | |
904dbe44 CIK |
30888 | |
30889 | ||
30890 | cat confdefs.h - <<_ACEOF >conftest.c | |
30891 | ||
30892 | ||
2078c8a7 | 30893 | #include <linux/fs.h> |
904dbe44 CIK |
30894 | |
30895 | int | |
30896 | main (void) | |
30897 | { | |
30898 | ||
2078c8a7 DJL |
30899 | struct super_block sb __attribute__ ((unused)); |
30900 | sb.s_d_op = NULL; | |
904dbe44 CIK |
30901 | |
30902 | ; | |
30903 | return 0; | |
30904 | } | |
30905 | ||
30906 | _ACEOF | |
30907 | ||
30908 | ||
30909 | ||
30910 | cat - <<_ACEOF >conftest.h | |
30911 | ||
30912 | _ACEOF | |
30913 | ||
30914 | ||
30915 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30916 | echo "obj-m := conftest.o" >build/Makefile | |
30917 | modpost_flag='' | |
30918 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30919 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30920 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30921 | (eval $ac_try) 2>&5 | |
30922 | ac_status=$? | |
30923 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30924 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30925 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30926 | (eval $ac_try) 2>&5 | |
30927 | ac_status=$? | |
30928 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30929 | test $ac_status = 0; }; }; then : | |
30930 | ||
30931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30932 | $as_echo "yes" >&6; } | |
30933 | ||
2078c8a7 | 30934 | $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h |
904dbe44 CIK |
30935 | |
30936 | ||
30937 | else | |
30938 | $as_echo "$as_me: failed program was:" >&5 | |
30939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30940 | ||
30941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30942 | $as_echo "no" >&6; } | |
30943 | ||
30944 | ||
30945 | ||
30946 | fi | |
30947 | rm -Rf build | |
30948 | ||
30949 | ||
30950 | ||
2078c8a7 DJL |
30951 | |
30952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5 | |
30953 | $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; } | |
904dbe44 CIK |
30954 | |
30955 | ||
30956 | ||
30957 | cat confdefs.h - <<_ACEOF >conftest.c | |
30958 | ||
30959 | ||
2078c8a7 DJL |
30960 | #include <linux/backing-dev.h> |
30961 | struct backing_dev_info bdi; | |
904dbe44 CIK |
30962 | |
30963 | int | |
30964 | main (void) | |
30965 | { | |
30966 | ||
2078c8a7 DJL |
30967 | char *name = "bdi"; |
30968 | int error __attribute__((unused)) = | |
30969 | bdi_setup_and_register(&bdi, name); | |
904dbe44 CIK |
30970 | |
30971 | ; | |
30972 | return 0; | |
30973 | } | |
30974 | ||
30975 | _ACEOF | |
30976 | ||
30977 | ||
30978 | ||
30979 | cat - <<_ACEOF >conftest.h | |
30980 | ||
30981 | _ACEOF | |
30982 | ||
30983 | ||
30984 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30985 | echo "obj-m := conftest.o" >build/Makefile | |
30986 | modpost_flag='' | |
30987 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30988 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30989 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30990 | (eval $ac_try) 2>&5 | |
30991 | ac_status=$? | |
30992 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30993 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30994 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30995 | (eval $ac_try) 2>&5 | |
30996 | ac_status=$? | |
30997 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30998 | test $ac_status = 0; }; }; then : | |
30999 | rc=0 | |
31000 | else | |
31001 | $as_echo "$as_me: failed program was:" >&5 | |
31002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31003 | rc=1 | |
31004 | ||
31005 | ||
31006 | fi | |
31007 | rm -Rf build | |
31008 | ||
31009 | ||
31010 | if test $rc -ne 0; then : | |
31011 | ||
31012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31013 | $as_echo "no" >&6; } | |
2078c8a7 DJL |
31014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 |
31015 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
904dbe44 CIK |
31016 | |
31017 | ||
31018 | ||
31019 | cat confdefs.h - <<_ACEOF >conftest.c | |
31020 | ||
31021 | ||
2078c8a7 DJL |
31022 | #include <linux/backing-dev.h> |
31023 | struct backing_dev_info bdi; | |
904dbe44 CIK |
31024 | |
31025 | int | |
31026 | main (void) | |
31027 | { | |
31028 | ||
2078c8a7 DJL |
31029 | char *name = "bdi"; |
31030 | unsigned int cap = BDI_CAP_MAP_COPY; | |
31031 | int error __attribute__((unused)) = | |
31032 | bdi_setup_and_register(&bdi, name, cap); | |
904dbe44 CIK |
31033 | |
31034 | ; | |
31035 | return 0; | |
31036 | } | |
31037 | ||
31038 | _ACEOF | |
31039 | ||
31040 | ||
31041 | ||
31042 | cat - <<_ACEOF >conftest.h | |
31043 | ||
31044 | _ACEOF | |
31045 | ||
31046 | ||
31047 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31048 | echo "obj-m := conftest.o" >build/Makefile | |
31049 | modpost_flag='' | |
31050 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31051 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31052 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31053 | (eval $ac_try) 2>&5 | |
31054 | ac_status=$? | |
31055 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31056 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31057 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31058 | (eval $ac_try) 2>&5 | |
31059 | ac_status=$? | |
31060 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31061 | test $ac_status = 0; }; }; then : | |
31062 | rc=0 | |
31063 | else | |
31064 | $as_echo "$as_me: failed program was:" >&5 | |
31065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31066 | rc=1 | |
31067 | ||
31068 | ||
31069 | fi | |
31070 | rm -Rf build | |
31071 | ||
31072 | ||
31073 | if test $rc -ne 0; then : | |
31074 | ||
2078c8a7 | 31075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 CIK |
31076 | $as_echo "no" >&6; } |
31077 | ||
31078 | else | |
31079 | if test "x$enable_linux_builtin" != xyes; then | |
31080 | ||
2078c8a7 | 31081 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ |
904dbe44 CIK |
31082 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
31083 | rc=$? | |
31084 | if test $rc -ne 0; then | |
31085 | export=0 | |
2078c8a7 DJL |
31086 | for file in mm/backing-dev.c; do |
31087 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
904dbe44 CIK |
31088 | "$LINUX/$file" 2>/dev/null |
31089 | rc=$? | |
31090 | if test $rc -eq 0; then | |
31091 | export=1 | |
31092 | break; | |
31093 | fi | |
31094 | done | |
31095 | if test $export -eq 0; then : | |
31096 | rc=1 | |
31097 | else : | |
31098 | rc=0 | |
31099 | fi | |
31100 | else : | |
31101 | rc=0 | |
31102 | fi | |
31103 | ||
31104 | fi | |
31105 | if test $rc -ne 0; then : | |
31106 | ||
2078c8a7 | 31107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 CIK |
31108 | $as_echo "no" >&6; } |
31109 | ||
31110 | else : | |
31111 | ||
2078c8a7 | 31112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
31113 | $as_echo "yes" >&6; } |
31114 | ||
2078c8a7 | 31115 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h |
904dbe44 CIK |
31116 | |
31117 | ||
31118 | fi | |
31119 | fi | |
31120 | ||
31121 | ||
2078c8a7 DJL |
31122 | else |
31123 | if test "x$enable_linux_builtin" != xyes; then | |
904dbe44 | 31124 | |
2078c8a7 DJL |
31125 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ |
31126 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
31127 | rc=$? | |
31128 | if test $rc -ne 0; then | |
31129 | export=0 | |
31130 | for file in mm/backing-dev.c; do | |
31131 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
31132 | "$LINUX/$file" 2>/dev/null | |
31133 | rc=$? | |
31134 | if test $rc -eq 0; then | |
31135 | export=1 | |
31136 | break; | |
31137 | fi | |
31138 | done | |
31139 | if test $export -eq 0; then : | |
31140 | rc=1 | |
31141 | else : | |
31142 | rc=0 | |
31143 | fi | |
31144 | else : | |
31145 | rc=0 | |
31146 | fi | |
904dbe44 | 31147 | |
2078c8a7 DJL |
31148 | fi |
31149 | if test $rc -ne 0; then : | |
904dbe44 CIK |
31150 | |
31151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31152 | $as_echo "no" >&6; } | |
2078c8a7 DJL |
31153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 |
31154 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
904dbe44 CIK |
31155 | |
31156 | ||
31157 | ||
31158 | cat confdefs.h - <<_ACEOF >conftest.c | |
31159 | ||
31160 | ||
2078c8a7 DJL |
31161 | #include <linux/backing-dev.h> |
31162 | struct backing_dev_info bdi; | |
904dbe44 CIK |
31163 | |
31164 | int | |
31165 | main (void) | |
31166 | { | |
31167 | ||
2078c8a7 DJL |
31168 | char *name = "bdi"; |
31169 | unsigned int cap = BDI_CAP_MAP_COPY; | |
31170 | int error __attribute__((unused)) = | |
31171 | bdi_setup_and_register(&bdi, name, cap); | |
904dbe44 CIK |
31172 | |
31173 | ; | |
31174 | return 0; | |
31175 | } | |
31176 | ||
31177 | _ACEOF | |
31178 | ||
31179 | ||
31180 | ||
31181 | cat - <<_ACEOF >conftest.h | |
31182 | ||
31183 | _ACEOF | |
31184 | ||
31185 | ||
31186 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31187 | echo "obj-m := conftest.o" >build/Makefile | |
31188 | modpost_flag='' | |
31189 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31190 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31191 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31192 | (eval $ac_try) 2>&5 | |
31193 | ac_status=$? | |
31194 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31195 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31196 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31197 | (eval $ac_try) 2>&5 | |
31198 | ac_status=$? | |
31199 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31200 | test $ac_status = 0; }; }; then : | |
31201 | rc=0 | |
31202 | else | |
31203 | $as_echo "$as_me: failed program was:" >&5 | |
31204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31205 | rc=1 | |
31206 | ||
31207 | ||
31208 | fi | |
31209 | rm -Rf build | |
31210 | ||
31211 | ||
31212 | if test $rc -ne 0; then : | |
31213 | ||
2078c8a7 | 31214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 CIK |
31215 | $as_echo "no" >&6; } |
31216 | ||
31217 | else | |
31218 | if test "x$enable_linux_builtin" != xyes; then | |
31219 | ||
2078c8a7 | 31220 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ |
904dbe44 CIK |
31221 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
31222 | rc=$? | |
31223 | if test $rc -ne 0; then | |
31224 | export=0 | |
2078c8a7 DJL |
31225 | for file in mm/backing-dev.c; do |
31226 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
904dbe44 CIK |
31227 | "$LINUX/$file" 2>/dev/null |
31228 | rc=$? | |
31229 | if test $rc -eq 0; then | |
31230 | export=1 | |
31231 | break; | |
31232 | fi | |
31233 | done | |
31234 | if test $export -eq 0; then : | |
31235 | rc=1 | |
31236 | else : | |
31237 | rc=0 | |
31238 | fi | |
31239 | else : | |
31240 | rc=0 | |
31241 | fi | |
31242 | ||
31243 | fi | |
31244 | if test $rc -ne 0; then : | |
31245 | ||
2078c8a7 | 31246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 CIK |
31247 | $as_echo "no" >&6; } |
31248 | ||
31249 | else : | |
31250 | ||
2078c8a7 | 31251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
31252 | $as_echo "yes" >&6; } |
31253 | ||
2078c8a7 | 31254 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h |
904dbe44 CIK |
31255 | |
31256 | ||
31257 | fi | |
31258 | fi | |
31259 | ||
31260 | ||
2078c8a7 | 31261 | else : |
904dbe44 CIK |
31262 | |
31263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31264 | $as_echo "yes" >&6; } | |
31265 | ||
2078c8a7 | 31266 | $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h |
904dbe44 | 31267 | |
904dbe44 | 31268 | |
2078c8a7 DJL |
31269 | fi |
31270 | fi | |
904dbe44 CIK |
31271 | |
31272 | ||
31273 | ||
2078c8a7 DJL |
31274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5 |
31275 | $as_echo_n "checking whether set_nlink() is available... " >&6; } | |
904dbe44 CIK |
31276 | |
31277 | ||
31278 | cat confdefs.h - <<_ACEOF >conftest.c | |
31279 | ||
31280 | ||
31281 | #include <linux/fs.h> | |
31282 | ||
31283 | int | |
31284 | main (void) | |
31285 | { | |
31286 | ||
2078c8a7 DJL |
31287 | struct inode node; |
31288 | unsigned int link = 0; | |
31289 | (void) set_nlink(&node, link); | |
904dbe44 CIK |
31290 | |
31291 | ; | |
31292 | return 0; | |
31293 | } | |
31294 | ||
31295 | _ACEOF | |
31296 | ||
31297 | ||
31298 | ||
31299 | cat - <<_ACEOF >conftest.h | |
31300 | ||
31301 | _ACEOF | |
31302 | ||
31303 | ||
31304 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31305 | echo "obj-m := conftest.o" >build/Makefile | |
31306 | modpost_flag='' | |
31307 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31308 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31309 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31310 | (eval $ac_try) 2>&5 | |
31311 | ac_status=$? | |
31312 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31313 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31314 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31315 | (eval $ac_try) 2>&5 | |
31316 | ac_status=$? | |
31317 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31318 | test $ac_status = 0; }; }; then : | |
31319 | ||
31320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31321 | $as_echo "yes" >&6; } | |
31322 | ||
2078c8a7 | 31323 | $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h |
904dbe44 CIK |
31324 | |
31325 | ||
31326 | else | |
31327 | $as_echo "$as_me: failed program was:" >&5 | |
31328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31329 | ||
31330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31331 | $as_echo "no" >&6; } | |
31332 | ||
31333 | ||
31334 | ||
31335 | fi | |
31336 | rm -Rf build | |
31337 | ||
31338 | ||
31339 | ||
31340 | ||
2078c8a7 DJL |
31341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5 |
31342 | $as_echo_n "checking whether elevator_change() is available... " >&6; } | |
31343 | tmp_flags="$EXTRA_KCFLAGS" | |
31344 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
904dbe44 CIK |
31345 | |
31346 | ||
31347 | cat confdefs.h - <<_ACEOF >conftest.c | |
31348 | ||
31349 | ||
2078c8a7 DJL |
31350 | #include <linux/blkdev.h> |
31351 | #include <linux/elevator.h> | |
904dbe44 CIK |
31352 | |
31353 | int | |
31354 | main (void) | |
31355 | { | |
31356 | ||
2078c8a7 DJL |
31357 | int ret; |
31358 | struct request_queue *q = NULL; | |
31359 | char *elevator = NULL; | |
31360 | ret = elevator_change(q, elevator); | |
904dbe44 CIK |
31361 | |
31362 | ; | |
31363 | return 0; | |
31364 | } | |
31365 | ||
31366 | _ACEOF | |
31367 | ||
31368 | ||
31369 | ||
31370 | cat - <<_ACEOF >conftest.h | |
31371 | ||
31372 | _ACEOF | |
31373 | ||
31374 | ||
31375 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31376 | echo "obj-m := conftest.o" >build/Makefile | |
31377 | modpost_flag='' | |
31378 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31379 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31380 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31381 | (eval $ac_try) 2>&5 | |
31382 | ac_status=$? | |
31383 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31384 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31385 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31386 | (eval $ac_try) 2>&5 | |
31387 | ac_status=$? | |
31388 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31389 | test $ac_status = 0; }; }; then : | |
31390 | ||
31391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31392 | $as_echo "yes" >&6; } | |
31393 | ||
2078c8a7 | 31394 | $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h |
904dbe44 CIK |
31395 | |
31396 | ||
31397 | else | |
31398 | $as_echo "$as_me: failed program was:" >&5 | |
31399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31400 | ||
31401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31402 | $as_echo "no" >&6; } | |
31403 | ||
31404 | ||
31405 | ||
31406 | fi | |
31407 | rm -Rf build | |
31408 | ||
31409 | ||
2078c8a7 | 31410 | EXTRA_KCFLAGS="$tmp_flags" |
904dbe44 | 31411 | |
2078c8a7 DJL |
31412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5 |
31413 | $as_echo_n "checking whether sget() wants 5 args... " >&6; } | |
904dbe44 CIK |
31414 | |
31415 | ||
31416 | cat confdefs.h - <<_ACEOF >conftest.c | |
31417 | ||
31418 | ||
31419 | #include <linux/fs.h> | |
31420 | ||
31421 | int | |
31422 | main (void) | |
31423 | { | |
31424 | ||
2078c8a7 DJL |
31425 | struct file_system_type *type = NULL; |
31426 | int (*test)(struct super_block *,void *) = NULL; | |
31427 | int (*set)(struct super_block *,void *) = NULL; | |
31428 | int flags = 0; | |
31429 | void *data = NULL; | |
31430 | (void) sget(type, test, set, flags, data); | |
904dbe44 CIK |
31431 | |
31432 | ; | |
31433 | return 0; | |
31434 | } | |
31435 | ||
31436 | _ACEOF | |
31437 | ||
31438 | ||
31439 | ||
31440 | cat - <<_ACEOF >conftest.h | |
31441 | ||
31442 | _ACEOF | |
31443 | ||
31444 | ||
31445 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31446 | echo "obj-m := conftest.o" >build/Makefile | |
31447 | modpost_flag='' | |
31448 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31449 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31450 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31451 | (eval $ac_try) 2>&5 | |
31452 | ac_status=$? | |
31453 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31454 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31455 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31456 | (eval $ac_try) 2>&5 | |
31457 | ac_status=$? | |
31458 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31459 | test $ac_status = 0; }; }; then : | |
31460 | ||
31461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31462 | $as_echo "yes" >&6; } | |
31463 | ||
2078c8a7 | 31464 | $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h |
904dbe44 CIK |
31465 | |
31466 | ||
31467 | else | |
31468 | $as_echo "$as_me: failed program was:" >&5 | |
31469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31470 | ||
31471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31472 | $as_echo "no" >&6; } | |
31473 | ||
31474 | ||
31475 | ||
31476 | fi | |
31477 | rm -Rf build | |
31478 | ||
31479 | ||
31480 | ||
2078c8a7 DJL |
31481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5 |
31482 | $as_echo_n "checking whether lseek_execute() is available... " >&6; } | |
904dbe44 CIK |
31483 | |
31484 | ||
31485 | ||
31486 | cat confdefs.h - <<_ACEOF >conftest.c | |
31487 | ||
31488 | ||
2078c8a7 | 31489 | #include <linux/fs.h> |
904dbe44 CIK |
31490 | |
31491 | int | |
31492 | main (void) | |
31493 | { | |
31494 | ||
2078c8a7 DJL |
31495 | struct file *fp __attribute__ ((unused)) = NULL; |
31496 | struct inode *ip __attribute__ ((unused)) = NULL; | |
31497 | loff_t offset __attribute__ ((unused)) = 0; | |
31498 | loff_t maxsize __attribute__ ((unused)) = 0; | |
904dbe44 | 31499 | |
2078c8a7 | 31500 | lseek_execute(fp, ip, offset, maxsize); |
904dbe44 CIK |
31501 | |
31502 | ; | |
31503 | return 0; | |
31504 | } | |
31505 | ||
31506 | _ACEOF | |
31507 | ||
31508 | ||
31509 | ||
31510 | cat - <<_ACEOF >conftest.h | |
31511 | ||
31512 | _ACEOF | |
31513 | ||
31514 | ||
31515 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31516 | echo "obj-m := conftest.o" >build/Makefile | |
31517 | modpost_flag='' | |
31518 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31519 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31520 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31521 | (eval $ac_try) 2>&5 | |
31522 | ac_status=$? | |
31523 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31524 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31525 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31526 | (eval $ac_try) 2>&5 | |
31527 | ac_status=$? | |
31528 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31529 | test $ac_status = 0; }; }; then : | |
31530 | rc=0 | |
31531 | else | |
31532 | $as_echo "$as_me: failed program was:" >&5 | |
31533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31534 | rc=1 | |
31535 | ||
31536 | ||
31537 | fi | |
31538 | rm -Rf build | |
31539 | ||
31540 | ||
31541 | if test $rc -ne 0; then : | |
31542 | ||
2078c8a7 | 31543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 CIK |
31544 | $as_echo "no" >&6; } |
31545 | ||
31546 | else | |
31547 | if test "x$enable_linux_builtin" != xyes; then | |
31548 | ||
2078c8a7 | 31549 | grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \ |
904dbe44 CIK |
31550 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
31551 | rc=$? | |
31552 | if test $rc -ne 0; then | |
31553 | export=0 | |
2078c8a7 DJL |
31554 | for file in fs/read_write.c; do |
31555 | grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \ | |
904dbe44 CIK |
31556 | "$LINUX/$file" 2>/dev/null |
31557 | rc=$? | |
31558 | if test $rc -eq 0; then | |
31559 | export=1 | |
31560 | break; | |
31561 | fi | |
31562 | done | |
31563 | if test $export -eq 0; then : | |
31564 | rc=1 | |
31565 | else : | |
31566 | rc=0 | |
31567 | fi | |
31568 | else : | |
31569 | rc=0 | |
31570 | fi | |
31571 | ||
31572 | fi | |
31573 | if test $rc -ne 0; then : | |
31574 | ||
2078c8a7 | 31575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 CIK |
31576 | $as_echo "no" >&6; } |
31577 | ||
31578 | else : | |
31579 | ||
2078c8a7 | 31580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
31581 | $as_echo "yes" >&6; } |
31582 | ||
2078c8a7 | 31583 | $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h |
904dbe44 | 31584 | |
904dbe44 | 31585 | |
904dbe44 | 31586 | fi |
904dbe44 CIK |
31587 | fi |
31588 | ||
904dbe44 | 31589 | |
904dbe44 | 31590 | |
2078c8a7 DJL |
31591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5 |
31592 | $as_echo_n "checking whether fops->iterate() is available... " >&6; } | |
904dbe44 CIK |
31593 | |
31594 | ||
31595 | cat confdefs.h - <<_ACEOF >conftest.c | |
31596 | ||
31597 | ||
2078c8a7 DJL |
31598 | #include <linux/fs.h> |
31599 | int iterate(struct file *filp, struct dir_context * context) | |
31600 | { return 0; } | |
31601 | ||
31602 | static const struct file_operations fops | |
31603 | __attribute__ ((unused)) = { | |
31604 | .iterate = iterate, | |
31605 | }; | |
904dbe44 CIK |
31606 | |
31607 | int | |
31608 | main (void) | |
31609 | { | |
31610 | ||
904dbe44 CIK |
31611 | |
31612 | ; | |
31613 | return 0; | |
31614 | } | |
31615 | ||
31616 | _ACEOF | |
31617 | ||
31618 | ||
31619 | ||
31620 | cat - <<_ACEOF >conftest.h | |
31621 | ||
31622 | _ACEOF | |
31623 | ||
31624 | ||
31625 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31626 | echo "obj-m := conftest.o" >build/Makefile | |
31627 | modpost_flag='' | |
31628 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31629 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31630 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31631 | (eval $ac_try) 2>&5 | |
31632 | ac_status=$? | |
31633 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31634 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31635 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31636 | (eval $ac_try) 2>&5 | |
31637 | ac_status=$? | |
31638 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31639 | test $ac_status = 0; }; }; then : | |
2078c8a7 DJL |
31640 | |
31641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31642 | $as_echo "yes" >&6; } | |
31643 | ||
31644 | $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h | |
31645 | ||
31646 | ||
904dbe44 CIK |
31647 | else |
31648 | $as_echo "$as_me: failed program was:" >&5 | |
31649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 | 31650 | |
2078c8a7 DJL |
31651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
31652 | $as_echo "no" >&6; } | |
904dbe44 | 31653 | |
2078c8a7 DJL |
31654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5 |
31655 | $as_echo_n "checking whether fops->readdir() is available... " >&6; } | |
904dbe44 CIK |
31656 | |
31657 | ||
2078c8a7 | 31658 | cat confdefs.h - <<_ACEOF >conftest.c |
904dbe44 | 31659 | |
904dbe44 | 31660 | |
2078c8a7 DJL |
31661 | #include <linux/fs.h> |
31662 | int readdir(struct file *filp, void *entry, filldir_t func) | |
31663 | { return 0; } | |
904dbe44 | 31664 | |
2078c8a7 DJL |
31665 | static const struct file_operations fops |
31666 | __attribute__ ((unused)) = { | |
31667 | .readdir = readdir, | |
31668 | }; | |
904dbe44 | 31669 | |
2078c8a7 DJL |
31670 | int |
31671 | main (void) | |
31672 | { | |
904dbe44 | 31673 | |
904dbe44 | 31674 | |
2078c8a7 DJL |
31675 | ; |
31676 | return 0; | |
31677 | } | |
31678 | ||
31679 | _ACEOF | |
31680 | ||
31681 | ||
31682 | ||
31683 | cat - <<_ACEOF >conftest.h | |
31684 | ||
31685 | _ACEOF | |
31686 | ||
31687 | ||
31688 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31689 | echo "obj-m := conftest.o" >build/Makefile | |
31690 | modpost_flag='' | |
31691 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31692 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31693 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31694 | (eval $ac_try) 2>&5 | |
31695 | ac_status=$? | |
31696 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31697 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31698 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31699 | (eval $ac_try) 2>&5 | |
31700 | ac_status=$? | |
31701 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31702 | test $ac_status = 0; }; }; then : | |
904dbe44 CIK |
31703 | |
31704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31705 | $as_echo "yes" >&6; } | |
31706 | ||
2078c8a7 | 31707 | $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h |
904dbe44 CIK |
31708 | |
31709 | ||
2078c8a7 DJL |
31710 | else |
31711 | $as_echo "$as_me: failed program was:" >&5 | |
31712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 | 31713 | |
2078c8a7 | 31714 | as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5 |
904dbe44 | 31715 | |
904dbe44 | 31716 | |
904dbe44 | 31717 | |
2078c8a7 DJL |
31718 | fi |
31719 | rm -Rf build | |
904dbe44 CIK |
31720 | |
31721 | ||
904dbe44 CIK |
31722 | |
31723 | ||
31724 | ||
2078c8a7 DJL |
31725 | |
31726 | fi | |
31727 | rm -Rf build | |
31728 | ||
31729 | ||
31730 | ||
31731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5 | |
31732 | $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; } | |
904dbe44 CIK |
31733 | |
31734 | ||
31735 | cat confdefs.h - <<_ACEOF >conftest.c | |
31736 | ||
31737 | ||
31738 | #include <linux/fs.h> | |
31739 | ||
2078c8a7 DJL |
31740 | ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to) |
31741 | { return 0; } | |
31742 | ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from) | |
31743 | { return 0; } | |
31744 | ||
31745 | static const struct file_operations | |
31746 | fops __attribute__ ((unused)) = { | |
31747 | .read_iter = test_read, | |
31748 | .write_iter = test_write, | |
31749 | }; | |
31750 | ||
904dbe44 CIK |
31751 | int |
31752 | main (void) | |
31753 | { | |
31754 | ||
904dbe44 CIK |
31755 | |
31756 | ; | |
31757 | return 0; | |
31758 | } | |
31759 | ||
31760 | _ACEOF | |
31761 | ||
31762 | ||
31763 | ||
31764 | cat - <<_ACEOF >conftest.h | |
31765 | ||
31766 | _ACEOF | |
31767 | ||
31768 | ||
31769 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31770 | echo "obj-m := conftest.o" >build/Makefile | |
31771 | modpost_flag='' | |
31772 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31773 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31774 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31775 | (eval $ac_try) 2>&5 | |
31776 | ac_status=$? | |
31777 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31778 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31779 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31780 | (eval $ac_try) 2>&5 | |
31781 | ac_status=$? | |
31782 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31783 | test $ac_status = 0; }; }; then : | |
31784 | ||
31785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31786 | $as_echo "yes" >&6; } | |
31787 | ||
2078c8a7 | 31788 | $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h |
904dbe44 CIK |
31789 | |
31790 | ||
31791 | else | |
31792 | $as_echo "$as_me: failed program was:" >&5 | |
31793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31794 | ||
31795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31796 | $as_echo "no" >&6; } | |
31797 | ||
31798 | ||
31799 | ||
bfbaa379 CIK |
31800 | fi |
31801 | rm -Rf build | |
31802 | ||
31803 | ||
31804 | ||
31805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5 | |
31806 | $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; } | |
31807 | ||
31808 | ||
31809 | cat confdefs.h - <<_ACEOF >conftest.c | |
31810 | ||
31811 | ||
31812 | #include <linux/fs.h> | |
31813 | ||
31814 | ||
31815 | int | |
31816 | main (void) | |
31817 | { | |
31818 | ||
31819 | struct kiocb *iocb = NULL; | |
31820 | struct iov_iter *iov = NULL; | |
31821 | generic_write_checks(iocb, iov); | |
31822 | ||
31823 | ; | |
31824 | return 0; | |
31825 | } | |
31826 | ||
31827 | _ACEOF | |
31828 | ||
31829 | ||
31830 | ||
31831 | cat - <<_ACEOF >conftest.h | |
31832 | ||
31833 | _ACEOF | |
31834 | ||
31835 | ||
31836 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31837 | echo "obj-m := conftest.o" >build/Makefile | |
31838 | modpost_flag='' | |
31839 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31840 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31841 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31842 | (eval $ac_try) 2>&5 | |
31843 | ac_status=$? | |
31844 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31845 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31846 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31847 | (eval $ac_try) 2>&5 | |
31848 | ac_status=$? | |
31849 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31850 | test $ac_status = 0; }; }; then : | |
31851 | ||
31852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31853 | $as_echo "yes" >&6; } | |
31854 | ||
31855 | $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h | |
31856 | ||
31857 | ||
31858 | else | |
31859 | $as_echo "$as_me: failed program was:" >&5 | |
31860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31861 | ||
31862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31863 | $as_echo "no" >&6; } | |
31864 | ||
31865 | ||
31866 | ||
904dbe44 CIK |
31867 | fi |
31868 | rm -Rf build | |
31869 | ||
31870 | ||
31871 | ||
31872 | ||
2078c8a7 DJL |
31873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5 |
31874 | $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; } | |
904dbe44 CIK |
31875 | |
31876 | ||
31877 | cat confdefs.h - <<_ACEOF >conftest.c | |
31878 | ||
31879 | ||
2078c8a7 | 31880 | #include <linux/pagemap.h> |
904dbe44 CIK |
31881 | |
31882 | int | |
31883 | main (void) | |
31884 | { | |
31885 | ||
2078c8a7 DJL |
31886 | struct page page; |
31887 | kmap_atomic(&page); | |
904dbe44 CIK |
31888 | |
31889 | ; | |
31890 | return 0; | |
31891 | } | |
31892 | ||
31893 | _ACEOF | |
31894 | ||
31895 | ||
31896 | ||
31897 | cat - <<_ACEOF >conftest.h | |
31898 | ||
31899 | _ACEOF | |
31900 | ||
31901 | ||
31902 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31903 | echo "obj-m := conftest.o" >build/Makefile | |
31904 | modpost_flag='' | |
31905 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31906 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31907 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31908 | (eval $ac_try) 2>&5 | |
31909 | ac_status=$? | |
31910 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31911 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31912 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31913 | (eval $ac_try) 2>&5 | |
31914 | ac_status=$? | |
31915 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31916 | test $ac_status = 0; }; }; then : | |
31917 | ||
31918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31919 | $as_echo "yes" >&6; } | |
31920 | ||
2078c8a7 | 31921 | $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h |
904dbe44 CIK |
31922 | |
31923 | ||
31924 | else | |
31925 | $as_echo "$as_me: failed program was:" >&5 | |
31926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31927 | ||
31928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31929 | $as_echo "no" >&6; } | |
31930 | ||
31931 | ||
31932 | ||
31933 | fi | |
31934 | rm -Rf build | |
31935 | ||
31936 | ||
904dbe44 | 31937 | |
2078c8a7 DJL |
31938 | |
31939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5 | |
31940 | $as_echo_n "checking whether follow_down_one() is available... " >&6; } | |
904dbe44 CIK |
31941 | |
31942 | ||
31943 | cat confdefs.h - <<_ACEOF >conftest.c | |
31944 | ||
31945 | ||
2078c8a7 | 31946 | #include <linux/namei.h> |
904dbe44 CIK |
31947 | |
31948 | int | |
31949 | main (void) | |
31950 | { | |
31951 | ||
2078c8a7 DJL |
31952 | struct path *p = NULL; |
31953 | follow_down_one(p); | |
904dbe44 CIK |
31954 | |
31955 | ; | |
31956 | return 0; | |
31957 | } | |
31958 | ||
31959 | _ACEOF | |
31960 | ||
31961 | ||
31962 | ||
31963 | cat - <<_ACEOF >conftest.h | |
31964 | ||
31965 | _ACEOF | |
31966 | ||
31967 | ||
31968 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31969 | echo "obj-m := conftest.o" >build/Makefile | |
31970 | modpost_flag='' | |
31971 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31972 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31973 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31974 | (eval $ac_try) 2>&5 | |
31975 | ac_status=$? | |
31976 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31977 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31978 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31979 | (eval $ac_try) 2>&5 | |
31980 | ac_status=$? | |
31981 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31982 | test $ac_status = 0; }; }; then : | |
31983 | ||
31984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31985 | $as_echo "yes" >&6; } | |
31986 | ||
2078c8a7 | 31987 | $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h |
904dbe44 CIK |
31988 | |
31989 | ||
31990 | else | |
31991 | $as_echo "$as_me: failed program was:" >&5 | |
31992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31993 | ||
31994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31995 | $as_echo "no" >&6; } | |
31996 | ||
31997 | ||
31998 | ||
31999 | fi | |
32000 | rm -Rf build | |
32001 | ||
32002 | ||
32003 | ||
904dbe44 | 32004 | |
2078c8a7 DJL |
32005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5 |
32006 | $as_echo_n "checking whether make_request_fn() returns int... " >&6; } | |
904dbe44 CIK |
32007 | |
32008 | ||
32009 | cat confdefs.h - <<_ACEOF >conftest.c | |
32010 | ||
32011 | ||
2078c8a7 DJL |
32012 | #include <linux/blkdev.h> |
32013 | ||
32014 | int make_request(struct request_queue *q, struct bio *bio) | |
32015 | { | |
32016 | return (0); | |
32017 | } | |
904dbe44 CIK |
32018 | |
32019 | int | |
32020 | main (void) | |
32021 | { | |
32022 | ||
2078c8a7 | 32023 | blk_queue_make_request(NULL, &make_request); |
904dbe44 CIK |
32024 | |
32025 | ; | |
32026 | return 0; | |
32027 | } | |
32028 | ||
32029 | _ACEOF | |
32030 | ||
32031 | ||
32032 | ||
32033 | cat - <<_ACEOF >conftest.h | |
32034 | ||
32035 | _ACEOF | |
32036 | ||
32037 | ||
32038 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32039 | echo "obj-m := conftest.o" >build/Makefile | |
32040 | modpost_flag='' | |
32041 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32042 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32043 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32044 | (eval $ac_try) 2>&5 | |
32045 | ac_status=$? | |
32046 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32047 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32048 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32049 | (eval $ac_try) 2>&5 | |
32050 | ac_status=$? | |
32051 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32052 | test $ac_status = 0; }; }; then : | |
904dbe44 CIK |
32053 | |
32054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32055 | $as_echo "yes" >&6; } | |
32056 | ||
2078c8a7 | 32057 | $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h |
904dbe44 CIK |
32058 | |
32059 | ||
2078c8a7 | 32060 | $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h |
904dbe44 CIK |
32061 | |
32062 | ||
2078c8a7 DJL |
32063 | else |
32064 | $as_echo "$as_me: failed program was:" >&5 | |
32065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
904dbe44 | 32066 | |
2078c8a7 DJL |
32067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
32068 | $as_echo "no" >&6; } | |
32069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5 | |
32070 | $as_echo_n "checking whether make_request_fn() returns void... " >&6; } | |
904dbe44 CIK |
32071 | |
32072 | ||
32073 | cat confdefs.h - <<_ACEOF >conftest.c | |
32074 | ||
32075 | ||
2078c8a7 | 32076 | #include <linux/blkdev.h> |
904dbe44 | 32077 | |
2078c8a7 DJL |
32078 | void make_request(struct request_queue *q, struct bio *bio) |
32079 | { | |
32080 | return; | |
32081 | } | |
904dbe44 CIK |
32082 | |
32083 | int | |
32084 | main (void) | |
32085 | { | |
32086 | ||
2078c8a7 | 32087 | blk_queue_make_request(NULL, &make_request); |
904dbe44 CIK |
32088 | |
32089 | ; | |
32090 | return 0; | |
32091 | } | |
32092 | ||
32093 | _ACEOF | |
32094 | ||
32095 | ||
32096 | ||
32097 | cat - <<_ACEOF >conftest.h | |
32098 | ||
32099 | _ACEOF | |
32100 | ||
32101 | ||
32102 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32103 | echo "obj-m := conftest.o" >build/Makefile | |
32104 | modpost_flag='' | |
32105 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32106 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32107 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32108 | (eval $ac_try) 2>&5 | |
32109 | ac_status=$? | |
32110 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32111 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32112 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32113 | (eval $ac_try) 2>&5 | |
32114 | ac_status=$? | |
32115 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32116 | test $ac_status = 0; }; }; then : | |
32117 | ||
2078c8a7 | 32118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
32119 | $as_echo "yes" >&6; } |
32120 | ||
2078c8a7 | 32121 | $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h |
904dbe44 CIK |
32122 | |
32123 | ||
32124 | else | |
32125 | $as_echo "$as_me: failed program was:" >&5 | |
32126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32127 | ||
2078c8a7 | 32128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
904dbe44 | 32129 | $as_echo "no" >&6; } |
2078c8a7 DJL |
32130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5 |
32131 | $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; } | |
904dbe44 CIK |
32132 | |
32133 | ||
32134 | cat confdefs.h - <<_ACEOF >conftest.c | |
32135 | ||
32136 | ||
2078c8a7 | 32137 | #include <linux/blkdev.h> |
904dbe44 | 32138 | |
2078c8a7 DJL |
32139 | blk_qc_t make_request(struct request_queue *q, struct bio *bio) |
32140 | { | |
32141 | return (BLK_QC_T_NONE); | |
32142 | } | |
904dbe44 CIK |
32143 | |
32144 | int | |
32145 | main (void) | |
32146 | { | |
32147 | ||
2078c8a7 | 32148 | blk_queue_make_request(NULL, &make_request); |
904dbe44 CIK |
32149 | |
32150 | ; | |
32151 | return 0; | |
32152 | } | |
32153 | ||
32154 | _ACEOF | |
32155 | ||
32156 | ||
32157 | ||
32158 | cat - <<_ACEOF >conftest.h | |
32159 | ||
32160 | _ACEOF | |
32161 | ||
32162 | ||
32163 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32164 | echo "obj-m := conftest.o" >build/Makefile | |
32165 | modpost_flag='' | |
32166 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32167 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32168 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32169 | (eval $ac_try) 2>&5 | |
32170 | ac_status=$? | |
32171 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32172 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32173 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32174 | (eval $ac_try) 2>&5 | |
32175 | ac_status=$? | |
32176 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32177 | test $ac_status = 0; }; }; then : | |
32178 | ||
2078c8a7 | 32179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
904dbe44 CIK |
32180 | $as_echo "yes" >&6; } |
32181 | ||
2078c8a7 DJL |
32182 | $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h |
32183 | ||
32184 | ||
32185 | $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h | |
904dbe44 CIK |
32186 | |
32187 | ||
32188 | else | |
32189 | $as_echo "$as_me: failed program was:" >&5 | |
32190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32191 | ||
2078c8a7 DJL |
32192 | as_fn_error $? "no - Please file a bug report at |
32193 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
904dbe44 CIK |
32194 | |
32195 | ||
32196 | ||
32197 | fi | |
32198 | rm -Rf build | |
32199 | ||
32200 | ||
32201 | ||
32202 | ||
32203 | ||
2078c8a7 DJL |
32204 | fi |
32205 | rm -Rf build | |
32206 | ||
32207 | ||
32208 | ||
32209 | ||
904dbe44 CIK |
32210 | |
32211 | fi | |
32212 | rm -Rf build | |
32213 | ||
32214 | ||
32215 | ||
2078c8a7 DJL |
32216 | |
32217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5 | |
32218 | $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; } | |
904dbe44 CIK |
32219 | |
32220 | ||
904dbe44 | 32221 | |
2078c8a7 | 32222 | cat confdefs.h - <<_ACEOF >conftest.c |
904dbe44 | 32223 | |
904dbe44 | 32224 | |
2078c8a7 | 32225 | #include <linux/bio.h> |
904dbe44 | 32226 | |
2078c8a7 DJL |
32227 | void (*generic_start_io_acct_f)(int, unsigned long, |
32228 | struct hd_struct *) = &generic_start_io_acct; | |
32229 | void (*generic_end_io_acct_f)(int, struct hd_struct *, | |
32230 | unsigned long) = &generic_end_io_acct; | |
904dbe44 CIK |
32231 | |
32232 | int | |
32233 | main (void) | |
32234 | { | |
32235 | ||
2078c8a7 DJL |
32236 | generic_start_io_acct(0, 0, NULL); |
32237 | generic_end_io_acct(0, NULL, 0); | |
904dbe44 CIK |
32238 | |
32239 | ; | |
32240 | return 0; | |
32241 | } | |
32242 | ||
32243 | _ACEOF | |
32244 | ||
32245 | ||
32246 | ||
32247 | cat - <<_ACEOF >conftest.h | |
32248 | ||
32249 | _ACEOF | |
32250 | ||
32251 | ||
32252 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32253 | echo "obj-m := conftest.o" >build/Makefile | |
32254 | modpost_flag='' | |
32255 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32256 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32257 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32258 | (eval $ac_try) 2>&5 | |
32259 | ac_status=$? | |
32260 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32261 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32262 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32263 | (eval $ac_try) 2>&5 | |
32264 | ac_status=$? | |
32265 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32266 | test $ac_status = 0; }; }; then : | |
2078c8a7 DJL |
32267 | rc=0 |
32268 | else | |
32269 | $as_echo "$as_me: failed program was:" >&5 | |
32270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32271 | rc=1 | |
32272 | ||
32273 | ||
32274 | fi | |
32275 | rm -Rf build | |
32276 | ||
32277 | ||
32278 | if test $rc -ne 0; then : | |
32279 | ||
32280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32281 | $as_echo "no" >&6; } | |
32282 | ||
32283 | else | |
32284 | if test "x$enable_linux_builtin" != xyes; then | |
32285 | ||
32286 | grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \ | |
32287 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
32288 | rc=$? | |
32289 | if test $rc -ne 0; then | |
32290 | export=0 | |
32291 | for file in block/bio.c; do | |
32292 | grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \ | |
32293 | "$LINUX/$file" 2>/dev/null | |
32294 | rc=$? | |
32295 | if test $rc -eq 0; then | |
32296 | export=1 | |
32297 | break; | |
32298 | fi | |
32299 | done | |
32300 | if test $export -eq 0; then : | |
32301 | rc=1 | |
32302 | else : | |
32303 | rc=0 | |
32304 | fi | |
32305 | else : | |
32306 | rc=0 | |
32307 | fi | |
32308 | ||
32309 | fi | |
32310 | if test $rc -ne 0; then : | |
32311 | ||
32312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32313 | $as_echo "no" >&6; } | |
32314 | ||
32315 | else : | |
904dbe44 CIK |
32316 | |
32317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32318 | $as_echo "yes" >&6; } | |
32319 | ||
2078c8a7 DJL |
32320 | $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h |
32321 | ||
32322 | ||
32323 | fi | |
32324 | fi | |
32325 | ||
32326 | ||
32327 | ||
32328 | if test "$LINUX_OBJ" != "$LINUX"; then : | |
32329 | ||
32330 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
32331 | ||
32332 | fi | |
32333 | ||
32334 | ||
32335 | ||
32336 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE" | |
32337 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE" | |
32338 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL" | |
32339 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\"" | |
32340 | ||
32341 | ||
32342 | ||
32343 | ||
32344 | ||
32345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5 | |
32346 | $as_echo_n "checking for dkms.conf file... " >&6; } | |
32347 | if test -e dkms.conf; then : | |
32348 | ||
32349 | as_fn_error $? " | |
32350 | *** ZFS should not be manually built in the DKMS source tree. | |
32351 | *** Remove all ZFS packages before compiling the ZoL sources. | |
32352 | *** Running \"make install\" breaks ZFS packages." "$LINENO" 5 | |
32353 | ||
32354 | else | |
32355 | ||
32356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
32357 | $as_echo "not found" >&6; } | |
32358 | ||
32359 | fi | |
32360 | ||
32361 | ||
32362 | ||
32363 | # Check whether --with-mounthelperdir was given. | |
32364 | if test "${with_mounthelperdir+set}" = set; then : | |
32365 | withval=$with_mounthelperdir; mounthelperdir=$withval | |
32366 | else | |
32367 | mounthelperdir=/sbin | |
32368 | fi | |
32369 | ||
32370 | ||
32371 | ||
32372 | ||
32373 | ||
32374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5 | |
32375 | $as_echo_n "checking for udev directories... " >&6; } | |
32376 | ||
32377 | # Check whether --with-udevdir was given. | |
32378 | if test "${with_udevdir+set}" = set; then : | |
32379 | withval=$with_udevdir; udevdir=$withval | |
32380 | else | |
32381 | udevdir=check | |
32382 | fi | |
32383 | ||
32384 | ||
32385 | if test "x$udevdir" = xcheck; then : | |
32386 | ||
32387 | path1=/lib/udev | |
32388 | path2=/usr/lib/udev | |
32389 | default=$path2 | |
32390 | ||
32391 | if test -d "$path1"; then : | |
32392 | udevdir="$path1" | |
32393 | else | |
32394 | ||
32395 | if test -d "$path2"; then : | |
32396 | udevdir="$path2" | |
32397 | else | |
32398 | udevdir="$default" | |
32399 | fi | |
32400 | ||
32401 | fi | |
32402 | ||
32403 | fi | |
32404 | ||
32405 | ||
32406 | # Check whether --with-udevruledir was given. | |
32407 | if test "${with_udevruledir+set}" = set; then : | |
32408 | withval=$with_udevruledir; udevruledir=$withval | |
32409 | else | |
32410 | udevruledir="${udevdir}/rules.d" | |
32411 | fi | |
32412 | ||
32413 | ||
32414 | ||
32415 | ||
32416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5 | |
32417 | $as_echo "$udevdir;$udevruledir" >&6; } | |
32418 | ||
32419 | ||
32420 | # Check whether --enable-systemd was given. | |
32421 | if test "${enable_systemd+set}" = set; then : | |
32422 | enableval=$enable_systemd; | |
32423 | else | |
32424 | enable_systemd=yes | |
32425 | fi | |
32426 | ||
32427 | ||
32428 | ||
32429 | # Check whether --with-systemdunitdir was given. | |
32430 | if test "${with_systemdunitdir+set}" = set; then : | |
32431 | withval=$with_systemdunitdir; systemdunitdir=$withval | |
32432 | else | |
32433 | systemdunitdir=/usr/lib/systemd/system | |
32434 | fi | |
32435 | ||
32436 | ||
32437 | ||
32438 | # Check whether --with-systemdpresetdir was given. | |
32439 | if test "${with_systemdpresetdir+set}" = set; then : | |
32440 | withval=$with_systemdpresetdir; systemdpresetdir=$withval | |
32441 | else | |
32442 | systemdpresetdir=/usr/lib/systemd/system-preset | |
32443 | fi | |
32444 | ||
904dbe44 CIK |
32445 | |
32446 | ||
2078c8a7 DJL |
32447 | # Check whether --with-systemdmodulesloaddir was given. |
32448 | if test "${with_systemdmodulesloaddir+set}" = set; then : | |
32449 | withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval | |
904dbe44 | 32450 | else |
2078c8a7 DJL |
32451 | systemdmodulesloaddir=/usr/lib/modules-load.d |
32452 | fi | |
32453 | ||
904dbe44 | 32454 | |
904dbe44 | 32455 | |
2078c8a7 | 32456 | if test "x$enable_systemd" = xyes; then : |
904dbe44 | 32457 | |
2078c8a7 DJL |
32458 | ZFS_INIT_SYSTEMD=systemd |
32459 | ZFS_MODULE_LOAD=modules-load.d | |
32460 | modulesloaddir=$systemdmodulesloaddir | |
904dbe44 CIK |
32461 | |
32462 | fi | |
904dbe44 CIK |
32463 | |
32464 | ||
32465 | ||
32466 | ||
904dbe44 CIK |
32467 | |
32468 | ||
904dbe44 CIK |
32469 | |
32470 | ||
2078c8a7 DJL |
32471 | # Check whether --enable-sysvinit was given. |
32472 | if test "${enable_sysvinit+set}" = set; then : | |
32473 | enableval=$enable_sysvinit; | |
32474 | else | |
32475 | enable_sysvinit=yes | |
32476 | fi | |
904dbe44 | 32477 | |
904dbe44 | 32478 | |
2078c8a7 DJL |
32479 | if test "x$enable_sysvinit" = xyes; then : |
32480 | ZFS_INIT_SYSV=init.d | |
32481 | fi | |
904dbe44 | 32482 | |
904dbe44 | 32483 | |
904dbe44 CIK |
32484 | |
32485 | ||
2078c8a7 DJL |
32486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5 |
32487 | $as_echo_n "checking for dracut directory... " >&6; } | |
904dbe44 | 32488 | |
2078c8a7 DJL |
32489 | # Check whether --with-dracutdir was given. |
32490 | if test "${with_dracutdir+set}" = set; then : | |
32491 | withval=$with_dracutdir; dracutdir=$withval | |
32492 | else | |
32493 | dracutdir=check | |
32494 | fi | |
904dbe44 | 32495 | |
904dbe44 | 32496 | |
2078c8a7 | 32497 | if test "x$dracutdir" = xcheck; then : |
904dbe44 | 32498 | |
2078c8a7 DJL |
32499 | path1=/usr/share/dracut |
32500 | path2=/usr/lib/dracut | |
32501 | default=$path2 | |
904dbe44 | 32502 | |
2078c8a7 DJL |
32503 | if test -d "$path1"; then : |
32504 | dracutdir="$path1" | |
32505 | else | |
904dbe44 | 32506 | |
2078c8a7 DJL |
32507 | if test -d "$path2"; then : |
32508 | dracutdir="$path2" | |
32509 | else | |
32510 | dracutdir="$default" | |
32511 | fi | |
904dbe44 | 32512 | |
2078c8a7 | 32513 | fi |
904dbe44 | 32514 | |
2078c8a7 | 32515 | fi |
904dbe44 | 32516 | |
904dbe44 | 32517 | |
2078c8a7 DJL |
32518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5 |
32519 | $as_echo "$dracutdir" >&6; } | |
904dbe44 CIK |
32520 | |
32521 | ||
2078c8a7 DJL |
32522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5 |
32523 | $as_echo_n "checking for target asm dir... " >&6; } | |
32524 | TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/` | |
32525 | ||
32526 | case $TARGET_ARCH in | |
32527 | i386|x86_64) | |
32528 | TARGET_ASM_DIR=asm-${TARGET_ARCH} | |
32529 | ;; | |
32530 | *) | |
32531 | TARGET_ASM_DIR=asm-generic | |
32532 | ;; | |
32533 | esac | |
904dbe44 CIK |
32534 | |
32535 | ||
2078c8a7 DJL |
32536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5 |
32537 | $as_echo "$TARGET_ASM_DIR" >&6; } | |
904dbe44 CIK |
32538 | |
32539 | ||
2078c8a7 | 32540 | ZLIB= |
904dbe44 | 32541 | |
2078c8a7 DJL |
32542 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
32543 | if test "x$ac_cv_header_zlib_h" = xyes; then : | |
904dbe44 | 32544 | |
2078c8a7 DJL |
32545 | else |
32546 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
32547 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
32548 | as_fn_error $? " | |
32549 | *** zlib.h missing, zlib-devel package required | |
32550 | See \`config.log' for more details" "$LINENO" 5; } | |
32551 | fi | |
904dbe44 CIK |
32552 | |
32553 | ||
904dbe44 | 32554 | |
2078c8a7 DJL |
32555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5 |
32556 | $as_echo_n "checking for compress2 in -lz... " >&6; } | |
32557 | if ${ac_cv_lib_z_compress2+:} false; then : | |
32558 | $as_echo_n "(cached) " >&6 | |
32559 | else | |
32560 | ac_check_lib_save_LIBS=$LIBS | |
32561 | LIBS="-lz $LIBS" | |
32562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
32563 | /* end confdefs.h. */ | |
32564 | ||
32565 | /* Override any GCC internal prototype to avoid an error. | |
32566 | Use char because int might match the return type of a GCC | |
32567 | builtin and then its argument prototype would still apply. */ | |
32568 | #ifdef __cplusplus | |
32569 | extern "C" | |
32570 | #endif | |
32571 | char compress2 (); | |
904dbe44 | 32572 | int |
2078c8a7 | 32573 | main () |
904dbe44 | 32574 | { |
2078c8a7 DJL |
32575 | return compress2 (); |
32576 | ; | |
32577 | return 0; | |
32578 | } | |
32579 | _ACEOF | |
32580 | if ac_fn_c_try_link "$LINENO"; then : | |
32581 | ac_cv_lib_z_compress2=yes | |
32582 | else | |
32583 | ac_cv_lib_z_compress2=no | |
32584 | fi | |
32585 | rm -f core conftest.err conftest.$ac_objext \ | |
32586 | conftest$ac_exeext conftest.$ac_ext | |
32587 | LIBS=$ac_check_lib_save_LIBS | |
32588 | fi | |
32589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5 | |
32590 | $as_echo "$ac_cv_lib_z_compress2" >&6; } | |
32591 | if test "x$ac_cv_lib_z_compress2" = xyes; then : | |
32592 | cat >>confdefs.h <<_ACEOF | |
32593 | #define HAVE_LIBZ 1 | |
32594 | _ACEOF | |
904dbe44 | 32595 | |
2078c8a7 DJL |
32596 | LIBS="-lz $LIBS" |
32597 | ||
32598 | else | |
32599 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
32600 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
32601 | as_fn_error $? " | |
32602 | *** compress2() missing, zlib-devel package required | |
32603 | See \`config.log' for more details" "$LINENO" 5; } | |
32604 | fi | |
32605 | ||
32606 | ||
32607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 | |
32608 | $as_echo_n "checking for uncompress in -lz... " >&6; } | |
32609 | if ${ac_cv_lib_z_uncompress+:} false; then : | |
32610 | $as_echo_n "(cached) " >&6 | |
32611 | else | |
32612 | ac_check_lib_save_LIBS=$LIBS | |
32613 | LIBS="-lz $LIBS" | |
32614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
32615 | /* end confdefs.h. */ | |
904dbe44 | 32616 | |
2078c8a7 DJL |
32617 | /* Override any GCC internal prototype to avoid an error. |
32618 | Use char because int might match the return type of a GCC | |
32619 | builtin and then its argument prototype would still apply. */ | |
32620 | #ifdef __cplusplus | |
32621 | extern "C" | |
32622 | #endif | |
32623 | char uncompress (); | |
32624 | int | |
32625 | main () | |
32626 | { | |
32627 | return uncompress (); | |
904dbe44 CIK |
32628 | ; |
32629 | return 0; | |
32630 | } | |
2078c8a7 DJL |
32631 | _ACEOF |
32632 | if ac_fn_c_try_link "$LINENO"; then : | |
32633 | ac_cv_lib_z_uncompress=yes | |
32634 | else | |
32635 | ac_cv_lib_z_uncompress=no | |
32636 | fi | |
32637 | rm -f core conftest.err conftest.$ac_objext \ | |
32638 | conftest$ac_exeext conftest.$ac_ext | |
32639 | LIBS=$ac_check_lib_save_LIBS | |
32640 | fi | |
32641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 | |
32642 | $as_echo "$ac_cv_lib_z_uncompress" >&6; } | |
32643 | if test "x$ac_cv_lib_z_uncompress" = xyes; then : | |
32644 | cat >>confdefs.h <<_ACEOF | |
32645 | #define HAVE_LIBZ 1 | |
904dbe44 CIK |
32646 | _ACEOF |
32647 | ||
2078c8a7 DJL |
32648 | LIBS="-lz $LIBS" |
32649 | ||
32650 | else | |
32651 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
32652 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
32653 | as_fn_error $? " | |
32654 | *** uncompress() missing, zlib-devel package required | |
32655 | See \`config.log' for more details" "$LINENO" 5; } | |
32656 | fi | |
904dbe44 CIK |
32657 | |
32658 | ||
2078c8a7 DJL |
32659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5 |
32660 | $as_echo_n "checking for crc32 in -lz... " >&6; } | |
32661 | if ${ac_cv_lib_z_crc32+:} false; then : | |
32662 | $as_echo_n "(cached) " >&6 | |
32663 | else | |
32664 | ac_check_lib_save_LIBS=$LIBS | |
32665 | LIBS="-lz $LIBS" | |
32666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
32667 | /* end confdefs.h. */ | |
904dbe44 | 32668 | |
2078c8a7 DJL |
32669 | /* Override any GCC internal prototype to avoid an error. |
32670 | Use char because int might match the return type of a GCC | |
32671 | builtin and then its argument prototype would still apply. */ | |
32672 | #ifdef __cplusplus | |
32673 | extern "C" | |
32674 | #endif | |
32675 | char crc32 (); | |
32676 | int | |
32677 | main () | |
32678 | { | |
32679 | return crc32 (); | |
32680 | ; | |
32681 | return 0; | |
32682 | } | |
32683 | _ACEOF | |
32684 | if ac_fn_c_try_link "$LINENO"; then : | |
32685 | ac_cv_lib_z_crc32=yes | |
32686 | else | |
32687 | ac_cv_lib_z_crc32=no | |
32688 | fi | |
32689 | rm -f core conftest.err conftest.$ac_objext \ | |
32690 | conftest$ac_exeext conftest.$ac_ext | |
32691 | LIBS=$ac_check_lib_save_LIBS | |
32692 | fi | |
32693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5 | |
32694 | $as_echo "$ac_cv_lib_z_crc32" >&6; } | |
32695 | if test "x$ac_cv_lib_z_crc32" = xyes; then : | |
32696 | cat >>confdefs.h <<_ACEOF | |
32697 | #define HAVE_LIBZ 1 | |
904dbe44 CIK |
32698 | _ACEOF |
32699 | ||
2078c8a7 | 32700 | LIBS="-lz $LIBS" |
904dbe44 | 32701 | |
2078c8a7 DJL |
32702 | else |
32703 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
32704 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
32705 | as_fn_error $? " | |
32706 | *** crc32() missing, zlib-devel package required | |
32707 | See \`config.log' for more details" "$LINENO" 5; } | |
32708 | fi | |
904dbe44 | 32709 | |
904dbe44 | 32710 | |
2078c8a7 | 32711 | ZLIB="-lz" |
904dbe44 CIK |
32712 | |
32713 | ||
2078c8a7 | 32714 | $as_echo "#define HAVE_ZLIB 1" >>confdefs.h |
904dbe44 | 32715 | |
904dbe44 CIK |
32716 | |
32717 | ||
2078c8a7 | 32718 | LIBUUID= |
904dbe44 | 32719 | |
2078c8a7 DJL |
32720 | ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" |
32721 | if test "x$ac_cv_header_uuid_uuid_h" = xyes; then : | |
904dbe44 | 32722 | |
2078c8a7 DJL |
32723 | else |
32724 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
32725 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
32726 | as_fn_error $? " | |
32727 | *** uuid/uuid.h missing, libuuid-devel package required | |
32728 | See \`config.log' for more details" "$LINENO" 5; } | |
32729 | fi | |
904dbe44 CIK |
32730 | |
32731 | ||
32732 | ||
2078c8a7 DJL |
32733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
32734 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } | |
32735 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : | |
32736 | $as_echo_n "(cached) " >&6 | |
32737 | else | |
32738 | ac_check_lib_save_LIBS=$LIBS | |
32739 | LIBS="-luuid $LIBS" | |
32740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
32741 | /* end confdefs.h. */ | |
904dbe44 | 32742 | |
2078c8a7 DJL |
32743 | /* Override any GCC internal prototype to avoid an error. |
32744 | Use char because int might match the return type of a GCC | |
32745 | builtin and then its argument prototype would still apply. */ | |
32746 | #ifdef __cplusplus | |
32747 | extern "C" | |
32748 | #endif | |
32749 | char uuid_generate (); | |
32750 | int | |
32751 | main () | |
32752 | { | |
32753 | return uuid_generate (); | |
32754 | ; | |
32755 | return 0; | |
32756 | } | |
32757 | _ACEOF | |
32758 | if ac_fn_c_try_link "$LINENO"; then : | |
32759 | ac_cv_lib_uuid_uuid_generate=yes | |
32760 | else | |
32761 | ac_cv_lib_uuid_uuid_generate=no | |
32762 | fi | |
32763 | rm -f core conftest.err conftest.$ac_objext \ | |
32764 | conftest$ac_exeext conftest.$ac_ext | |
32765 | LIBS=$ac_check_lib_save_LIBS | |
32766 | fi | |
32767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 | |
32768 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
32769 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : | |
32770 | cat >>confdefs.h <<_ACEOF | |
32771 | #define HAVE_LIBUUID 1 | |
32772 | _ACEOF | |
904dbe44 | 32773 | |
2078c8a7 | 32774 | LIBS="-luuid $LIBS" |
904dbe44 | 32775 | |
2078c8a7 DJL |
32776 | else |
32777 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
32778 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
32779 | as_fn_error $? " | |
32780 | *** uuid_generate() missing, libuuid-devel package required | |
32781 | See \`config.log' for more details" "$LINENO" 5; } | |
32782 | fi | |
904dbe44 | 32783 | |
904dbe44 | 32784 | |
2078c8a7 DJL |
32785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5 |
32786 | $as_echo_n "checking for uuid_is_null in -luuid... " >&6; } | |
32787 | if ${ac_cv_lib_uuid_uuid_is_null+:} false; then : | |
32788 | $as_echo_n "(cached) " >&6 | |
32789 | else | |
32790 | ac_check_lib_save_LIBS=$LIBS | |
32791 | LIBS="-luuid $LIBS" | |
32792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
32793 | /* end confdefs.h. */ | |
904dbe44 | 32794 | |
2078c8a7 DJL |
32795 | /* Override any GCC internal prototype to avoid an error. |
32796 | Use char because int might match the return type of a GCC | |
32797 | builtin and then its argument prototype would still apply. */ | |
32798 | #ifdef __cplusplus | |
32799 | extern "C" | |
32800 | #endif | |
32801 | char uuid_is_null (); | |
904dbe44 | 32802 | int |
2078c8a7 | 32803 | main () |
904dbe44 | 32804 | { |
2078c8a7 | 32805 | return uuid_is_null (); |
904dbe44 CIK |
32806 | ; |
32807 | return 0; | |
32808 | } | |
2078c8a7 DJL |
32809 | _ACEOF |
32810 | if ac_fn_c_try_link "$LINENO"; then : | |
32811 | ac_cv_lib_uuid_uuid_is_null=yes | |
32812 | else | |
32813 | ac_cv_lib_uuid_uuid_is_null=no | |
32814 | fi | |
32815 | rm -f core conftest.err conftest.$ac_objext \ | |
32816 | conftest$ac_exeext conftest.$ac_ext | |
32817 | LIBS=$ac_check_lib_save_LIBS | |
32818 | fi | |
32819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5 | |
32820 | $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; } | |
32821 | if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes; then : | |
32822 | cat >>confdefs.h <<_ACEOF | |
32823 | #define HAVE_LIBUUID 1 | |
904dbe44 CIK |
32824 | _ACEOF |
32825 | ||
2078c8a7 | 32826 | LIBS="-luuid $LIBS" |
904dbe44 | 32827 | |
2078c8a7 DJL |
32828 | else |
32829 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
32830 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
32831 | as_fn_error $? " | |
32832 | *** uuid_is_null() missing, libuuid-devel package required | |
32833 | See \`config.log' for more details" "$LINENO" 5; } | |
32834 | fi | |
904dbe44 | 32835 | |
904dbe44 | 32836 | |
2078c8a7 | 32837 | LIBUUID="-luuid" |
904dbe44 CIK |
32838 | |
32839 | ||
2078c8a7 | 32840 | $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h |
904dbe44 | 32841 | |
904dbe44 | 32842 | |
904dbe44 CIK |
32843 | |
32844 | ||
2078c8a7 DJL |
32845 | # Check whether --with-blkid was given. |
32846 | if test "${with_blkid+set}" = set; then : | |
32847 | withval=$with_blkid; | |
32848 | else | |
32849 | with_blkid=check | |
32850 | fi | |
904dbe44 CIK |
32851 | |
32852 | ||
2078c8a7 DJL |
32853 | LIBBLKID= |
32854 | if test "x$with_blkid" = xyes; then : | |
904dbe44 | 32855 | |
2078c8a7 | 32856 | LIBBLKID="-lblkid" |
904dbe44 CIK |
32857 | |
32858 | ||
2078c8a7 | 32859 | $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h |
904dbe44 CIK |
32860 | |
32861 | ||
2078c8a7 | 32862 | fi |
904dbe44 | 32863 | |
2078c8a7 DJL |
32864 | if test "x$with_blkid" = xcheck; then : |
32865 | ||
32866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 | |
32867 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } | |
32868 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : | |
32869 | $as_echo_n "(cached) " >&6 | |
32870 | else | |
32871 | ac_check_lib_save_LIBS=$LIBS | |
32872 | LIBS="-lblkid $LIBS" | |
32873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
32874 | /* end confdefs.h. */ | |
904dbe44 | 32875 | |
2078c8a7 DJL |
32876 | /* Override any GCC internal prototype to avoid an error. |
32877 | Use char because int might match the return type of a GCC | |
32878 | builtin and then its argument prototype would still apply. */ | |
32879 | #ifdef __cplusplus | |
32880 | extern "C" | |
32881 | #endif | |
32882 | char blkid_get_cache (); | |
904dbe44 | 32883 | int |
2078c8a7 | 32884 | main () |
904dbe44 | 32885 | { |
2078c8a7 | 32886 | return blkid_get_cache (); |
904dbe44 CIK |
32887 | ; |
32888 | return 0; | |
32889 | } | |
904dbe44 | 32890 | _ACEOF |
2078c8a7 DJL |
32891 | if ac_fn_c_try_link "$LINENO"; then : |
32892 | ac_cv_lib_blkid_blkid_get_cache=yes | |
32893 | else | |
32894 | ac_cv_lib_blkid_blkid_get_cache=no | |
32895 | fi | |
32896 | rm -f core conftest.err conftest.$ac_objext \ | |
32897 | conftest$ac_exeext conftest.$ac_ext | |
32898 | LIBS=$ac_check_lib_save_LIBS | |
32899 | fi | |
32900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 | |
32901 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
32902 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : | |
904dbe44 | 32903 | |
2078c8a7 DJL |
32904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5 |
32905 | $as_echo_n "checking for blkid zfs support... " >&6; } | |
904dbe44 | 32906 | |
2078c8a7 DJL |
32907 | ZFS_DEV=`mktemp` |
32908 | truncate -s 64M $ZFS_DEV | |
32909 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
32910 | dd of=$ZFS_DEV bs=1k count=8 \ | |
32911 | seek=128 conv=notrunc &>/dev/null \ | |
32912 | >/dev/null 2>/dev/null | |
32913 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
32914 | dd of=$ZFS_DEV bs=1k count=8 \ | |
32915 | seek=132 conv=notrunc &>/dev/null \ | |
32916 | >/dev/null 2>/dev/null | |
32917 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
32918 | dd of=$ZFS_DEV bs=1k count=8 \ | |
32919 | seek=136 conv=notrunc &>/dev/null \ | |
32920 | >/dev/null 2>/dev/null | |
32921 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
32922 | dd of=$ZFS_DEV bs=1k count=8 \ | |
32923 | seek=140 conv=notrunc &>/dev/null \ | |
32924 | >/dev/null 2>/dev/null | |
904dbe44 | 32925 | |
2078c8a7 DJL |
32926 | saved_LIBS="$LIBS" |
32927 | LIBS="-lblkid" | |
904dbe44 | 32928 | |
2078c8a7 DJL |
32929 | if test "$cross_compiling" = yes; then : |
32930 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
32931 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
32932 | as_fn_error $? "cannot run test program while cross compiling | |
32933 | See \`config.log' for more details" "$LINENO" 5; } | |
904dbe44 | 32934 | else |
2078c8a7 DJL |
32935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
32936 | /* end confdefs.h. */ | |
904dbe44 | 32937 | |
2078c8a7 DJL |
32938 | #include <stdio.h> |
32939 | #include <stdlib.h> | |
32940 | #include <blkid/blkid.h> | |
904dbe44 | 32941 | |
2078c8a7 DJL |
32942 | int |
32943 | main () | |
32944 | { | |
904dbe44 | 32945 | |
2078c8a7 DJL |
32946 | blkid_cache cache; |
32947 | char *value; | |
904dbe44 | 32948 | |
2078c8a7 DJL |
32949 | if (blkid_get_cache(&cache, NULL) < 0) |
32950 | return 1; | |
904dbe44 | 32951 | |
2078c8a7 DJL |
32952 | value = blkid_get_tag_value(cache, "TYPE", |
32953 | "$ZFS_DEV"); | |
32954 | if (!value) { | |
32955 | blkid_put_cache(cache); | |
32956 | return 2; | |
904dbe44 CIK |
32957 | } |
32958 | ||
2078c8a7 DJL |
32959 | if (strcmp(value, "zfs_member")) { |
32960 | free(value); | |
32961 | blkid_put_cache(cache); | |
32962 | return 0; | |
32963 | } | |
904dbe44 | 32964 | |
2078c8a7 DJL |
32965 | free(value); |
32966 | blkid_put_cache(cache); | |
904dbe44 CIK |
32967 | |
32968 | ; | |
32969 | return 0; | |
32970 | } | |
904dbe44 | 32971 | _ACEOF |
2078c8a7 | 32972 | if ac_fn_c_try_run "$LINENO"; then : |
904dbe44 | 32973 | |
2078c8a7 | 32974 | rm -f $ZFS_DEV |
904dbe44 CIK |
32975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
32976 | $as_echo "yes" >&6; } | |
2078c8a7 | 32977 | LIBBLKID="-lblkid" |
904dbe44 CIK |
32978 | |
32979 | ||
2078c8a7 | 32980 | $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h |
904dbe44 CIK |
32981 | |
32982 | ||
32983 | else | |
904dbe44 | 32984 | |
2078c8a7 DJL |
32985 | rm -f $ZFS_DEV |
32986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32987 | $as_echo "no" >&6; } | |
32988 | if test "x$with_blkid" != xcheck; then : | |
32989 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
32990 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
32991 | as_fn_error $? "--with-blkid given but unavailable | |
32992 | See \`config.log' for more details" "$LINENO" 5; } | |
904dbe44 | 32993 | fi |
904dbe44 CIK |
32994 | |
32995 | fi | |
2078c8a7 DJL |
32996 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
32997 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
32998 | fi | |
904dbe44 CIK |
32999 | |
33000 | ||
2078c8a7 | 33001 | LIBS="$saved_LIBS" |
904dbe44 | 33002 | |
2078c8a7 | 33003 | else |
904dbe44 | 33004 | |
2078c8a7 DJL |
33005 | if test "x$with_blkid" != xcheck; then : |
33006 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
33007 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
33008 | as_fn_error $? "--with-blkid given but unavailable | |
33009 | See \`config.log' for more details" "$LINENO" 5; } | |
904dbe44 | 33010 | fi |
904dbe44 CIK |
33011 | |
33012 | ||
2078c8a7 | 33013 | fi |
904dbe44 CIK |
33014 | |
33015 | ||
2078c8a7 | 33016 | fi |
904dbe44 | 33017 | |
904dbe44 | 33018 | |
2078c8a7 DJL |
33019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5 |
33020 | $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; } | |
904dbe44 | 33021 | |
2078c8a7 DJL |
33022 | saved_flags="$CFLAGS" |
33023 | CFLAGS="$CFLAGS -Wframe-larger-than=1024" | |
904dbe44 | 33024 | |
2078c8a7 DJL |
33025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
33026 | /* end confdefs.h. */ | |
904dbe44 CIK |
33027 | |
33028 | int | |
2078c8a7 | 33029 | main () |
904dbe44 CIK |
33030 | { |
33031 | ||
904dbe44 CIK |
33032 | ; |
33033 | return 0; | |
33034 | } | |
904dbe44 | 33035 | _ACEOF |
2078c8a7 | 33036 | if ac_fn_c_try_compile "$LINENO"; then : |
904dbe44 | 33037 | |
2078c8a7 DJL |
33038 | FRAME_LARGER_THAN=-Wframe-larger-than=1024 |
33039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33040 | $as_echo "yes" >&6; } | |
904dbe44 | 33041 | |
904dbe44 | 33042 | else |
904dbe44 | 33043 | |
2078c8a7 | 33044 | FRAME_LARGER_THAN= |
904dbe44 CIK |
33045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33046 | $as_echo "no" >&6; } | |
33047 | ||
2078c8a7 DJL |
33048 | fi |
33049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
904dbe44 | 33050 | |
2078c8a7 | 33051 | CFLAGS="$saved_flags" |
904dbe44 | 33052 | |
904dbe44 | 33053 | |
904dbe44 | 33054 | |
2078c8a7 DJL |
33055 | if test "x$runstatedir" = x; then |
33056 | runstatedir='${localstatedir}/run' | |
904dbe44 | 33057 | |
904dbe44 CIK |
33058 | fi |
33059 | ||
2078c8a7 DJL |
33060 | for ac_func in mlockall |
33061 | do : | |
33062 | ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" | |
33063 | if test "x$ac_cv_func_mlockall" = xyes; then : | |
33064 | cat >>confdefs.h <<_ACEOF | |
33065 | #define HAVE_MLOCKALL 1 | |
33066 | _ACEOF | |
904dbe44 CIK |
33067 | |
33068 | fi | |
2078c8a7 | 33069 | done |
904dbe44 | 33070 | |
2078c8a7 | 33071 | ;; |
904dbe44 CIK |
33072 | srpm) ;; |
33073 | *) | |
33074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 | |
33075 | $as_echo "Error!" >&6; } | |
33076 | as_fn_error $? "Bad value \"$ZFS_CONFIG\" for --with-config, | |
33077 | user kernel|user|all|srpm" "$LINENO" 5 ;; | |
33078 | esac | |
33079 | ||
33080 | if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then | |
33081 | CONFIG_USER_TRUE= | |
33082 | CONFIG_USER_FALSE='#' | |
33083 | else | |
33084 | CONFIG_USER_TRUE='#' | |
33085 | CONFIG_USER_FALSE= | |
33086 | fi | |
33087 | ||
33088 | if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all && | |
33089 | test "x$enable_linux_builtin" != xyes ; then | |
33090 | CONFIG_KERNEL_TRUE= | |
33091 | CONFIG_KERNEL_FALSE='#' | |
33092 | else | |
33093 | CONFIG_KERNEL_TRUE='#' | |
33094 | CONFIG_KERNEL_FALSE= | |
33095 | fi | |
33096 | ||
33097 | ||
33098 | ||
33099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5 | |
33100 | $as_echo_n "checking whether debugging is enabled... " >&6; } | |
33101 | # Check whether --enable-debug was given. | |
33102 | if test "${enable_debug+set}" = set; then : | |
33103 | enableval=$enable_debug; | |
33104 | else | |
33105 | enable_debug=no | |
33106 | fi | |
33107 | ||
33108 | ||
33109 | if test "x$enable_debug" = xyes; then : | |
33110 | ||
33111 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror" | |
33112 | HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror" | |
33113 | DEBUG_CFLAGS="-DDEBUG -Werror" | |
33114 | DEBUG_STACKFLAGS="-fstack-check" | |
33115 | DEBUG_ZFS="_with_debug" | |
33116 | ||
33117 | $as_echo "#define ZFS_DEBUG 1" >>confdefs.h | |
33118 | ||
33119 | ||
33120 | else | |
33121 | ||
33122 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG " | |
33123 | HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG " | |
33124 | DEBUG_CFLAGS="-DNDEBUG" | |
33125 | DEBUG_STACKFLAGS="" | |
33126 | DEBUG_ZFS="_without_debug" | |
33127 | ||
33128 | fi | |
33129 | ||
33130 | ||
33131 | ||
33132 | ||
33133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 | |
33134 | $as_echo "$enable_debug" >&6; } | |
33135 | ||
33136 | ||
33137 | # Check whether --enable-debug-dmu-tx was given. | |
33138 | if test "${enable_debug_dmu_tx+set}" = set; then : | |
33139 | enableval=$enable_debug_dmu_tx; | |
33140 | else | |
33141 | enable_debug_dmu_tx=no | |
33142 | fi | |
33143 | ||
33144 | ||
33145 | if test "x$enable_debug_dmu_tx" = xyes; then : | |
33146 | ||
33147 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_DMU_TX" | |
33148 | DEBUG_DMU_TX="_with_debug_dmu_tx" | |
33149 | ||
33150 | $as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h | |
33151 | ||
33152 | ||
33153 | else | |
33154 | ||
33155 | DEBUG_DMU_TX="_without_debug_dmu_tx" | |
33156 | ||
33157 | fi | |
33158 | ||
33159 | ||
33160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5 | |
33161 | $as_echo_n "checking whether dmu tx validation is enabled... " >&6; } | |
33162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5 | |
33163 | $as_echo "$enable_debug_dmu_tx" >&6; } | |
33164 | ||
33165 | ||
33166 | ac_config_files="$ac_config_files Makefile udev/Makefile udev/rules.d/Makefile etc/Makefile etc/init.d/Makefile etc/zfs/Makefile etc/systemd/Makefile etc/systemd/system/Makefile etc/modules-load.d/Makefile man/Makefile man/man1/Makefile man/man5/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/libzfs.pc lib/libzfs/libzfs_core.pc lib/libzfs/Makefile lib/libzfs_core/Makefile lib/libshare/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zhack/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/zstreamdump/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/fsck_zfs/Makefile cmd/zvol_id/Makefile cmd/vdev_id/Makefile cmd/arcstat/Makefile cmd/dbufstat/Makefile cmd/arc_summary/Makefile cmd/zed/Makefile contrib/Makefile contrib/bash_completion.d/Makefile contrib/dracut/Makefile contrib/dracut/90zfs/Makefile contrib/initramfs/Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/common.sh rpm/Makefile rpm/redhat/Makefile rpm/redhat/zfs.spec rpm/redhat/zfs-kmod.spec rpm/redhat/zfs-dkms.spec rpm/generic/Makefile rpm/generic/zfs.spec rpm/generic/zfs-kmod.spec rpm/generic/zfs-dkms.spec zfs-script-config.sh zfs.release" | |
33167 | ||
33168 | ||
33169 | cat >confcache <<\_ACEOF | |
33170 | # This file is a shell script that caches the results of configure | |
33171 | # tests run on this system so they can be shared between configure | |
33172 | # scripts and configure runs, see configure's option --config-cache. | |
33173 | # It is not useful on other systems. If it contains results you don't | |
33174 | # want to keep, you may remove or edit it. | |
33175 | # | |
33176 | # config.status only pays attention to the cache file if you give it | |
33177 | # the --recheck option to rerun configure. | |
33178 | # | |
33179 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
33180 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
33181 | # following values. | |
33182 | ||
33183 | _ACEOF | |
33184 | ||
33185 | # The following way of writing the cache mishandles newlines in values, | |
33186 | # but we know of no workaround that is simple, portable, and efficient. | |
33187 | # So, we kill variables containing newlines. | |
33188 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
33189 | # and sets the high bit in the cache file unless we assign to the vars. | |
33190 | ( | |
33191 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
33192 | eval ac_val=\$$ac_var | |
33193 | case $ac_val in #( | |
33194 | *${as_nl}*) | |
33195 | case $ac_var in #( | |
33196 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
33197 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
33198 | esac | |
33199 | case $ac_var in #( | |
33200 | _ | IFS | as_nl) ;; #( | |
33201 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
33202 | *) { eval $ac_var=; unset $ac_var;} ;; | |
33203 | esac ;; | |
33204 | esac | |
33205 | done | |
33206 | ||
33207 | (set) 2>&1 | | |
33208 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
33209 | *${as_nl}ac_space=\ *) | |
33210 | # `set' does not quote correctly, so add quotes: double-quote | |
33211 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
33212 | sed -n \ | |
33213 | "s/'/'\\\\''/g; | |
33214 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
33215 | ;; #( | |
33216 | *) | |
33217 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
33218 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
33219 | ;; | |
33220 | esac | | |
33221 | sort | |
33222 | ) | | |
33223 | sed ' | |
33224 | /^ac_cv_env_/b end | |
33225 | t clear | |
33226 | :clear | |
33227 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
33228 | t end | |
33229 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
33230 | :end' >>confcache | |
33231 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
33232 | if test -w "$cache_file"; then | |
33233 | if test "x$cache_file" != "x/dev/null"; then | |
33234 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
33235 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
33236 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
33237 | cat confcache >"$cache_file" | |
33238 | else | |
33239 | case $cache_file in #( | |
33240 | */* | ?:*) | |
33241 | mv -f confcache "$cache_file"$$ && | |
33242 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
33243 | *) | |
33244 | mv -f confcache "$cache_file" ;; | |
33245 | esac | |
33246 | fi | |
33247 | fi | |
33248 | else | |
33249 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
33250 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
33251 | fi | |
33252 | fi | |
33253 | rm -f confcache | |
33254 | ||
33255 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
33256 | # Let make expand exec_prefix. | |
33257 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
33258 | ||
33259 | DEFS=-DHAVE_CONFIG_H | |
33260 | ||
33261 | ac_libobjs= | |
33262 | ac_ltlibobjs= | |
33263 | U= | |
33264 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
33265 | # 1. Remove the extension, and $U if already installed. | |
33266 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
33267 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
33268 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
33269 | # will be set to the directory where LIBOBJS objects are built. | |
33270 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
33271 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
33272 | done | |
33273 | LIBOBJS=$ac_libobjs | |
33274 | ||
33275 | LTLIBOBJS=$ac_ltlibobjs | |
33276 | ||
33277 | ||
33278 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
33279 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
33280 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
33281 | fi | |
33282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
33283 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
33284 | if test -n "$am_sleep_pid"; then | |
33285 | # Hide warnings about reused PIDs. | |
33286 | wait $am_sleep_pid 2>/dev/null | |
33287 | fi | |
33288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
33289 | $as_echo "done" >&6; } | |
33290 | if test -n "$EXEEXT"; then | |
33291 | am__EXEEXT_TRUE= | |
33292 | am__EXEEXT_FALSE='#' | |
33293 | else | |
33294 | am__EXEEXT_TRUE='#' | |
33295 | am__EXEEXT_FALSE= | |
33296 | fi | |
33297 | ||
33298 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
33299 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
33300 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
33301 | fi | |
33302 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
33303 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
33304 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
33305 | fi | |
33306 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then | |
33307 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. | |
33308 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
33309 | fi | |
33310 | if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then | |
33311 | as_fn_error $? "conditional \"CONFIG_USER\" was never defined. | |
33312 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
33313 | fi | |
33314 | if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then | |
33315 | as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined. | |
33316 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
33317 | fi | |
33318 | ||
33319 | : "${CONFIG_STATUS=./config.status}" | |
33320 | ac_write_fail=0 | |
33321 | ac_clean_files_save=$ac_clean_files | |
33322 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
33323 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
33324 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
33325 | as_write_fail=0 | |
33326 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
33327 | #! $SHELL | |
33328 | # Generated by $as_me. | |
33329 | # Run this file to recreate the current configuration. | |
33330 | # Compiler output produced by configure, useful for debugging | |
33331 | # configure, is in config.log if it exists. | |
33332 | ||
33333 | debug=false | |
33334 | ac_cs_recheck=false | |
33335 | ac_cs_silent=false | |
33336 | ||
33337 | SHELL=\${CONFIG_SHELL-$SHELL} | |
33338 | export SHELL | |
33339 | _ASEOF | |
33340 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
33341 | ## -------------------- ## | |
33342 | ## M4sh Initialization. ## | |
33343 | ## -------------------- ## | |
33344 | ||
33345 | # Be more Bourne compatible | |
33346 | DUALCASE=1; export DUALCASE # for MKS sh | |
33347 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
33348 | emulate sh | |
33349 | NULLCMD=: | |
33350 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
33351 | # is contrary to our usage. Disable this feature. | |
33352 | alias -g '${1+"$@"}'='"$@"' | |
33353 | setopt NO_GLOB_SUBST | |
33354 | else | |
33355 | case `(set -o) 2>/dev/null` in #( | |
33356 | *posix*) : | |
33357 | set -o posix ;; #( | |
33358 | *) : | |
33359 | ;; | |
33360 | esac | |
33361 | fi | |
33362 | ||
33363 | ||
33364 | as_nl=' | |
33365 | ' | |
33366 | export as_nl | |
33367 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
33368 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
33369 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
33370 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
33371 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
33372 | # but without wasting forks for bash or zsh. | |
33373 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
33374 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
33375 | as_echo='print -r --' | |
33376 | as_echo_n='print -rn --' | |
33377 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
33378 | as_echo='printf %s\n' | |
33379 | as_echo_n='printf %s' | |
33380 | else | |
33381 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
33382 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
33383 | as_echo_n='/usr/ucb/echo -n' | |
33384 | else | |
33385 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
33386 | as_echo_n_body='eval | |
33387 | arg=$1; | |
33388 | case $arg in #( | |
33389 | *"$as_nl"*) | |
33390 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
33391 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
33392 | esac; | |
33393 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
33394 | ' | |
33395 | export as_echo_n_body | |
33396 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
33397 | fi | |
33398 | export as_echo_body | |
33399 | as_echo='sh -c $as_echo_body as_echo' | |
33400 | fi | |
33401 | ||
33402 | # The user is always right. | |
33403 | if test "${PATH_SEPARATOR+set}" != set; then | |
33404 | PATH_SEPARATOR=: | |
33405 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
33406 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
33407 | PATH_SEPARATOR=';' | |
33408 | } | |
33409 | fi | |
33410 | ||
33411 | ||
33412 | # IFS | |
33413 | # We need space, tab and new line, in precisely that order. Quoting is | |
33414 | # there to prevent editors from complaining about space-tab. | |
33415 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
33416 | # splitting by setting IFS to empty value.) | |
33417 | IFS=" "" $as_nl" | |
33418 | ||
33419 | # Find who we are. Look in the path if we contain no directory separator. | |
33420 | as_myself= | |
33421 | case $0 in #(( | |
33422 | *[\\/]* ) as_myself=$0 ;; | |
33423 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33424 | for as_dir in $PATH | |
33425 | do | |
33426 | IFS=$as_save_IFS | |
33427 | test -z "$as_dir" && as_dir=. | |
33428 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
33429 | done | |
33430 | IFS=$as_save_IFS | |
33431 | ||
33432 | ;; | |
33433 | esac | |
33434 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
33435 | # in which case we are not to be found in the path. | |
33436 | if test "x$as_myself" = x; then | |
33437 | as_myself=$0 | |
33438 | fi | |
33439 | if test ! -f "$as_myself"; then | |
33440 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
33441 | exit 1 | |
33442 | fi | |
33443 | ||
33444 | # Unset variables that we do not need and which cause bugs (e.g. in | |
33445 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
33446 | # suppresses any "Segmentation fault" message there. '((' could | |
33447 | # trigger a bug in pdksh 5.2.14. | |
33448 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
33449 | do eval test x\${$as_var+set} = xset \ | |
33450 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
33451 | done | |
33452 | PS1='$ ' | |
33453 | PS2='> ' | |
33454 | PS4='+ ' | |
33455 | ||
33456 | # NLS nuisances. | |
33457 | LC_ALL=C | |
33458 | export LC_ALL | |
33459 | LANGUAGE=C | |
33460 | export LANGUAGE | |
33461 | ||
33462 | # CDPATH. | |
33463 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
33464 | ||
33465 | ||
33466 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
33467 | # ---------------------------------------- | |
33468 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
33469 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
33470 | # script with STATUS, using 1 if that was 0. | |
33471 | as_fn_error () | |
33472 | { | |
33473 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
33474 | if test "$4"; then | |
33475 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
33476 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
33477 | fi | |
33478 | $as_echo "$as_me: error: $2" >&2 | |
33479 | as_fn_exit $as_status | |
33480 | } # as_fn_error | |
33481 | ||
33482 | ||
33483 | # as_fn_set_status STATUS | |
33484 | # ----------------------- | |
33485 | # Set $? to STATUS, without forking. | |
33486 | as_fn_set_status () | |
33487 | { | |
33488 | return $1 | |
33489 | } # as_fn_set_status | |
33490 | ||
33491 | # as_fn_exit STATUS | |
33492 | # ----------------- | |
33493 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
33494 | as_fn_exit () | |
33495 | { | |
33496 | set +e | |
33497 | as_fn_set_status $1 | |
33498 | exit $1 | |
33499 | } # as_fn_exit | |
33500 | ||
33501 | # as_fn_unset VAR | |
33502 | # --------------- | |
33503 | # Portably unset VAR. | |
33504 | as_fn_unset () | |
33505 | { | |
33506 | { eval $1=; unset $1;} | |
33507 | } | |
33508 | as_unset=as_fn_unset | |
33509 | # as_fn_append VAR VALUE | |
33510 | # ---------------------- | |
33511 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
33512 | # advantage of any shell optimizations that allow amortized linear growth over | |
33513 | # repeated appends, instead of the typical quadratic growth present in naive | |
33514 | # implementations. | |
33515 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
33516 | eval 'as_fn_append () | |
33517 | { | |
33518 | eval $1+=\$2 | |
33519 | }' | |
33520 | else | |
33521 | as_fn_append () | |
33522 | { | |
33523 | eval $1=\$$1\$2 | |
33524 | } | |
33525 | fi # as_fn_append | |
33526 | ||
33527 | # as_fn_arith ARG... | |
33528 | # ------------------ | |
33529 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
33530 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
33531 | # must be portable across $(()) and expr. | |
33532 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
33533 | eval 'as_fn_arith () | |
33534 | { | |
33535 | as_val=$(( $* )) | |
33536 | }' | |
33537 | else | |
33538 | as_fn_arith () | |
33539 | { | |
33540 | as_val=`expr "$@" || test $? -eq 1` | |
33541 | } | |
33542 | fi # as_fn_arith | |
33543 | ||
33544 | ||
33545 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
33546 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
33547 | as_expr=expr | |
33548 | else | |
33549 | as_expr=false | |
33550 | fi | |
33551 | ||
33552 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
33553 | as_basename=basename | |
33554 | else | |
33555 | as_basename=false | |
33556 | fi | |
33557 | ||
33558 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
33559 | as_dirname=dirname | |
33560 | else | |
33561 | as_dirname=false | |
33562 | fi | |
33563 | ||
33564 | as_me=`$as_basename -- "$0" || | |
33565 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
33566 | X"$0" : 'X\(//\)$' \| \ | |
33567 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
33568 | $as_echo X/"$0" | | |
33569 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
33570 | s//\1/ | |
33571 | q | |
33572 | } | |
33573 | /^X\/\(\/\/\)$/{ | |
33574 | s//\1/ | |
33575 | q | |
33576 | } | |
33577 | /^X\/\(\/\).*/{ | |
33578 | s//\1/ | |
33579 | q | |
33580 | } | |
33581 | s/.*/./; q'` | |
33582 | ||
33583 | # Avoid depending upon Character Ranges. | |
33584 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
33585 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
33586 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
33587 | as_cr_digits='0123456789' | |
33588 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
33589 | ||
33590 | ECHO_C= ECHO_N= ECHO_T= | |
33591 | case `echo -n x` in #((((( | |
33592 | -n*) | |
33593 | case `echo 'xy\c'` in | |
33594 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
33595 | xy) ECHO_C='\c';; | |
33596 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
33597 | ECHO_T=' ';; | |
33598 | esac;; | |
33599 | *) | |
33600 | ECHO_N='-n';; | |
33601 | esac | |
33602 | ||
33603 | rm -f conf$$ conf$$.exe conf$$.file | |
33604 | if test -d conf$$.dir; then | |
33605 | rm -f conf$$.dir/conf$$.file | |
33606 | else | |
33607 | rm -f conf$$.dir | |
33608 | mkdir conf$$.dir 2>/dev/null | |
33609 | fi | |
33610 | if (echo >conf$$.file) 2>/dev/null; then | |
33611 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
33612 | as_ln_s='ln -s' | |
33613 | # ... but there are two gotchas: | |
33614 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
33615 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
33616 | # In both cases, we have to default to `cp -pR'. | |
33617 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
33618 | as_ln_s='cp -pR' | |
33619 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
33620 | as_ln_s=ln | |
33621 | else | |
33622 | as_ln_s='cp -pR' | |
33623 | fi | |
33624 | else | |
33625 | as_ln_s='cp -pR' | |
33626 | fi | |
33627 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
33628 | rmdir conf$$.dir 2>/dev/null | |
33629 | ||
33630 | ||
33631 | # as_fn_mkdir_p | |
33632 | # ------------- | |
33633 | # Create "$as_dir" as a directory, including parents if necessary. | |
33634 | as_fn_mkdir_p () | |
33635 | { | |
33636 | ||
33637 | case $as_dir in #( | |
33638 | -*) as_dir=./$as_dir;; | |
33639 | esac | |
33640 | test -d "$as_dir" || eval $as_mkdir_p || { | |
33641 | as_dirs= | |
33642 | while :; do | |
33643 | case $as_dir in #( | |
33644 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
33645 | *) as_qdir=$as_dir;; | |
33646 | esac | |
33647 | as_dirs="'$as_qdir' $as_dirs" | |
33648 | as_dir=`$as_dirname -- "$as_dir" || | |
33649 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
33650 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
33651 | X"$as_dir" : 'X\(//\)$' \| \ | |
33652 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
33653 | $as_echo X"$as_dir" | | |
33654 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
33655 | s//\1/ | |
33656 | q | |
33657 | } | |
33658 | /^X\(\/\/\)[^/].*/{ | |
33659 | s//\1/ | |
33660 | q | |
33661 | } | |
33662 | /^X\(\/\/\)$/{ | |
33663 | s//\1/ | |
33664 | q | |
33665 | } | |
33666 | /^X\(\/\).*/{ | |
33667 | s//\1/ | |
33668 | q | |
33669 | } | |
33670 | s/.*/./; q'` | |
33671 | test -d "$as_dir" && break | |
33672 | done | |
33673 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
33674 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
33675 | ||
33676 | ||
33677 | } # as_fn_mkdir_p | |
33678 | if mkdir -p . 2>/dev/null; then | |
33679 | as_mkdir_p='mkdir -p "$as_dir"' | |
33680 | else | |
33681 | test -d ./-p && rmdir ./-p | |
33682 | as_mkdir_p=false | |
33683 | fi | |
33684 | ||
33685 | ||
33686 | # as_fn_executable_p FILE | |
33687 | # ----------------------- | |
33688 | # Test if FILE is an executable regular file. | |
33689 | as_fn_executable_p () | |
33690 | { | |
33691 | test -f "$1" && test -x "$1" | |
33692 | } # as_fn_executable_p | |
33693 | as_test_x='test -x' | |
33694 | as_executable_p=as_fn_executable_p | |
33695 | ||
33696 | # Sed expression to map a string onto a valid CPP name. | |
33697 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
33698 | ||
33699 | # Sed expression to map a string onto a valid variable name. | |
33700 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
33701 | ||
33702 | ||
33703 | exec 6>&1 | |
33704 | ## ----------------------------------- ## | |
33705 | ## Main body of $CONFIG_STATUS script. ## | |
33706 | ## ----------------------------------- ## | |
33707 | _ASEOF | |
33708 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
33709 | ||
33710 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
33711 | # Save the log message, to keep $0 and so on meaningful, and to | |
33712 | # report actual input values of CONFIG_FILES etc. instead of their | |
33713 | # values after options handling. | |
33714 | ac_log=" | |
2078c8a7 | 33715 | This file was extended by zfs $as_me 0.6.5.6, which was |
904dbe44 CIK |
33716 | generated by GNU Autoconf 2.69. Invocation command line was |
33717 | ||
33718 | CONFIG_FILES = $CONFIG_FILES | |
33719 | CONFIG_HEADERS = $CONFIG_HEADERS | |
33720 | CONFIG_LINKS = $CONFIG_LINKS | |
33721 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
33722 | $ $0 $@ | |
33723 | ||
33724 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
33725 | " | |
33726 | ||
33727 | _ACEOF | |
33728 | ||
33729 | case $ac_config_files in *" | |
33730 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
33731 | esac | |
33732 | ||
33733 | case $ac_config_headers in *" | |
33734 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
33735 | esac | |
33736 | ||
33737 | ||
33738 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
33739 | # Files that config.status was made for. | |
33740 | config_files="$ac_config_files" | |
33741 | config_headers="$ac_config_headers" | |
33742 | config_commands="$ac_config_commands" | |
33743 | ||
33744 | _ACEOF | |
33745 | ||
33746 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
33747 | ac_cs_usage="\ | |
33748 | \`$as_me' instantiates files and other configuration actions | |
33749 | from templates according to the current configuration. Unless the files | |
33750 | and actions are specified as TAGs, all are instantiated by default. | |
33751 | ||
33752 | Usage: $0 [OPTION]... [TAG]... | |
33753 | ||
33754 | -h, --help print this help, then exit | |
33755 | -V, --version print version number and configuration settings, then exit | |
33756 | --config print configuration, then exit | |
33757 | -q, --quiet, --silent | |
33758 | do not print progress messages | |
33759 | -d, --debug don't remove temporary files | |
33760 | --recheck update $as_me by reconfiguring in the same conditions | |
33761 | --file=FILE[:TEMPLATE] | |
33762 | instantiate the configuration file FILE | |
33763 | --header=FILE[:TEMPLATE] | |
33764 | instantiate the configuration header FILE | |
33765 | ||
33766 | Configuration files: | |
33767 | $config_files | |
33768 | ||
33769 | Configuration headers: | |
33770 | $config_headers | |
33771 | ||
33772 | Configuration commands: | |
33773 | $config_commands | |
33774 | ||
33775 | Report bugs to the package provider." | |
33776 | ||
33777 | _ACEOF | |
33778 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
33779 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
33780 | ac_cs_version="\\ | |
2078c8a7 | 33781 | zfs config.status 0.6.5.6 |
904dbe44 CIK |
33782 | configured by $0, generated by GNU Autoconf 2.69, |
33783 | with options \\"\$ac_cs_config\\" | |
33784 | ||
33785 | Copyright (C) 2012 Free Software Foundation, Inc. | |
33786 | This config.status script is free software; the Free Software Foundation | |
33787 | gives unlimited permission to copy, distribute and modify it." | |
33788 | ||
33789 | ac_pwd='$ac_pwd' | |
33790 | srcdir='$srcdir' | |
33791 | INSTALL='$INSTALL' | |
33792 | MKDIR_P='$MKDIR_P' | |
33793 | AWK='$AWK' | |
33794 | test -n "\$AWK" || AWK=awk | |
33795 | _ACEOF | |
33796 | ||
33797 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
33798 | # The default lists apply if the user does not specify any file. | |
33799 | ac_need_defaults=: | |
33800 | while test $# != 0 | |
33801 | do | |
33802 | case $1 in | |
33803 | --*=?*) | |
33804 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
33805 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
33806 | ac_shift=: | |
33807 | ;; | |
33808 | --*=) | |
33809 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
33810 | ac_optarg= | |
33811 | ac_shift=: | |
33812 | ;; | |
33813 | *) | |
33814 | ac_option=$1 | |
33815 | ac_optarg=$2 | |
33816 | ac_shift=shift | |
33817 | ;; | |
33818 | esac | |
33819 | ||
33820 | case $ac_option in | |
33821 | # Handling of the options. | |
33822 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
33823 | ac_cs_recheck=: ;; | |
33824 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
33825 | $as_echo "$ac_cs_version"; exit ;; | |
33826 | --config | --confi | --conf | --con | --co | --c ) | |
33827 | $as_echo "$ac_cs_config"; exit ;; | |
33828 | --debug | --debu | --deb | --de | --d | -d ) | |
33829 | debug=: ;; | |
33830 | --file | --fil | --fi | --f ) | |
33831 | $ac_shift | |
33832 | case $ac_optarg in | |
33833 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
33834 | '') as_fn_error $? "missing file argument" ;; | |
33835 | esac | |
33836 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
33837 | ac_need_defaults=false;; | |
33838 | --header | --heade | --head | --hea ) | |
33839 | $ac_shift | |
33840 | case $ac_optarg in | |
33841 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
33842 | esac | |
33843 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
33844 | ac_need_defaults=false;; | |
33845 | --he | --h) | |
33846 | # Conflict between --help and --header | |
33847 | as_fn_error $? "ambiguous option: \`$1' | |
33848 | Try \`$0 --help' for more information.";; | |
33849 | --help | --hel | -h ) | |
33850 | $as_echo "$ac_cs_usage"; exit ;; | |
33851 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
33852 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
33853 | ac_cs_silent=: ;; | |
33854 | ||
33855 | # This is an error. | |
33856 | -*) as_fn_error $? "unrecognized option: \`$1' | |
33857 | Try \`$0 --help' for more information." ;; | |
33858 | ||
33859 | *) as_fn_append ac_config_targets " $1" | |
33860 | ac_need_defaults=false ;; | |
33861 | ||
33862 | esac | |
33863 | shift | |
33864 | done | |
33865 | ||
33866 | ac_configure_extra_args= | |
33867 | ||
33868 | if $ac_cs_silent; then | |
33869 | exec 6>/dev/null | |
33870 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
33871 | fi | |
33872 | ||
33873 | _ACEOF | |
33874 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
33875 | if \$ac_cs_recheck; then | |
33876 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
33877 | shift | |
33878 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
33879 | CONFIG_SHELL='$SHELL' | |
33880 | export CONFIG_SHELL | |
33881 | exec "\$@" | |
33882 | fi | |
33883 | ||
33884 | _ACEOF | |
33885 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
33886 | exec 5>>config.log | |
33887 | { | |
33888 | echo | |
33889 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
33890 | ## Running $as_me. ## | |
33891 | _ASBOX | |
33892 | $as_echo "$ac_log" | |
33893 | } >&5 | |
33894 | ||
33895 | _ACEOF | |
33896 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
33897 | # | |
33898 | # INIT-COMMANDS | |
33899 | # | |
33900 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
33901 | ||
33902 | ||
33903 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
33904 | # if CDPATH is set. | |
33905 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
33906 | ||
33907 | sed_quote_subst='$sed_quote_subst' | |
33908 | double_quote_subst='$double_quote_subst' | |
33909 | delay_variable_subst='$delay_variable_subst' | |
33910 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
33911 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
33912 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
33913 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
33914 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
33915 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
3258f645 | 33916 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
904dbe44 CIK |
33917 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
33918 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
33919 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
33920 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
33921 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
33922 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
33923 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
33924 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
33925 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
33926 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
33927 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
33928 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
33929 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
33930 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
33931 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
33932 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
33933 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
33934 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
33935 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
33936 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
33937 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
33938 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
33939 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
33940 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
33941 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
33942 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
33943 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
33944 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
33945 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
33946 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
33947 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
33948 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
33949 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
33950 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
33951 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
33952 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
33953 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
33954 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
33955 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
33956 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
33957 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
33958 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
33959 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
33960 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
33961 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
33962 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
33963 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
33964 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
33965 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
3258f645 | 33966 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
904dbe44 CIK |
33967 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
33968 | 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"`' | |
3258f645 | 33969 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
904dbe44 CIK |
33970 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
33971 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
3258f645 | 33972 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
904dbe44 CIK |
33973 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
33974 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
33975 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
33976 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
33977 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
33978 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
33979 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
33980 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
33981 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
33982 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
33983 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
33984 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
33985 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
33986 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
33987 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
33988 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
33989 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
33990 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
33991 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
33992 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
33993 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
33994 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
33995 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
33996 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
33997 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
33998 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
33999 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
34000 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
34001 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
34002 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
34003 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
34004 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
34005 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
34006 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
34007 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
34008 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
34009 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
34010 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
34011 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
34012 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
34013 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
34014 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
34015 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
34016 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
34017 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
34018 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
34019 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
34020 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
34021 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
34022 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
34023 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
34024 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
34025 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
34026 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
34027 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
34028 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
34029 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
34030 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
34031 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
34032 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
34033 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
34034 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
34035 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
34036 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
3258f645 TG |
34037 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
34038 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
904dbe44 CIK |
34039 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
34040 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
34041 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
34042 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
34043 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
34044 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
34045 | ||
34046 | LTCC='$LTCC' | |
34047 | LTCFLAGS='$LTCFLAGS' | |
34048 | compiler='$compiler_DEFAULT' | |
34049 | ||
34050 | # A function that is used when there is no print builtin or printf. | |
34051 | func_fallback_echo () | |
34052 | { | |
34053 | eval 'cat <<_LTECHO_EOF | |
34054 | \$1 | |
34055 | _LTECHO_EOF' | |
34056 | } | |
34057 | ||
34058 | # Quote evaled strings. | |
34059 | for var in SHELL \ | |
34060 | ECHO \ | |
34061 | PATH_SEPARATOR \ | |
34062 | SED \ | |
34063 | GREP \ | |
34064 | EGREP \ | |
34065 | FGREP \ | |
34066 | LD \ | |
34067 | NM \ | |
34068 | LN_S \ | |
34069 | lt_SP2NL \ | |
34070 | lt_NL2SP \ | |
34071 | reload_flag \ | |
34072 | OBJDUMP \ | |
34073 | deplibs_check_method \ | |
34074 | file_magic_cmd \ | |
34075 | file_magic_glob \ | |
34076 | want_nocaseglob \ | |
34077 | DLLTOOL \ | |
34078 | sharedlib_from_linklib_cmd \ | |
34079 | AR \ | |
34080 | AR_FLAGS \ | |
34081 | archiver_list_spec \ | |
34082 | STRIP \ | |
34083 | RANLIB \ | |
34084 | CC \ | |
34085 | CFLAGS \ | |
34086 | compiler \ | |
34087 | lt_cv_sys_global_symbol_pipe \ | |
34088 | lt_cv_sys_global_symbol_to_cdecl \ | |
3258f645 | 34089 | lt_cv_sys_global_symbol_to_import \ |
904dbe44 CIK |
34090 | lt_cv_sys_global_symbol_to_c_name_address \ |
34091 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
3258f645 | 34092 | lt_cv_nm_interface \ |
904dbe44 | 34093 | nm_file_list_spec \ |
3258f645 | 34094 | lt_cv_truncate_bin \ |
904dbe44 CIK |
34095 | lt_prog_compiler_no_builtin_flag \ |
34096 | lt_prog_compiler_pic \ | |
34097 | lt_prog_compiler_wl \ | |
34098 | lt_prog_compiler_static \ | |
34099 | lt_cv_prog_compiler_c_o \ | |
34100 | need_locks \ | |
34101 | MANIFEST_TOOL \ | |
34102 | DSYMUTIL \ | |
34103 | NMEDIT \ | |
34104 | LIPO \ | |
34105 | OTOOL \ | |
34106 | OTOOL64 \ | |
34107 | shrext_cmds \ | |
34108 | export_dynamic_flag_spec \ | |
34109 | whole_archive_flag_spec \ | |
34110 | compiler_needs_object \ | |
34111 | with_gnu_ld \ | |
34112 | allow_undefined_flag \ | |
34113 | no_undefined_flag \ | |
34114 | hardcode_libdir_flag_spec \ | |
34115 | hardcode_libdir_separator \ | |
34116 | exclude_expsyms \ | |
34117 | include_expsyms \ | |
34118 | file_list_spec \ | |
34119 | variables_saved_for_relink \ | |
34120 | libname_spec \ | |
34121 | library_names_spec \ | |
34122 | soname_spec \ | |
34123 | install_override_mode \ | |
34124 | finish_eval \ | |
34125 | old_striplib \ | |
34126 | striplib; do | |
34127 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
34128 | *[\\\\\\\`\\"\\\$]*) | |
3258f645 | 34129 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
904dbe44 CIK |
34130 | ;; |
34131 | *) | |
34132 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
34133 | ;; | |
34134 | esac | |
34135 | done | |
34136 | ||
34137 | # Double-quote double-evaled strings. | |
34138 | for var in reload_cmds \ | |
34139 | old_postinstall_cmds \ | |
34140 | old_postuninstall_cmds \ | |
34141 | old_archive_cmds \ | |
34142 | extract_expsyms_cmds \ | |
34143 | old_archive_from_new_cmds \ | |
34144 | old_archive_from_expsyms_cmds \ | |
34145 | archive_cmds \ | |
34146 | archive_expsym_cmds \ | |
34147 | module_cmds \ | |
34148 | module_expsym_cmds \ | |
34149 | export_symbols_cmds \ | |
34150 | prelink_cmds \ | |
34151 | postlink_cmds \ | |
34152 | postinstall_cmds \ | |
34153 | postuninstall_cmds \ | |
34154 | finish_cmds \ | |
34155 | sys_lib_search_path_spec \ | |
3258f645 TG |
34156 | configure_time_dlsearch_path \ |
34157 | configure_time_lt_sys_library_path; do | |
904dbe44 CIK |
34158 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
34159 | *[\\\\\\\`\\"\\\$]*) | |
3258f645 | 34160 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
904dbe44 CIK |
34161 | ;; |
34162 | *) | |
34163 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
34164 | ;; | |
34165 | esac | |
34166 | done | |
34167 | ||
34168 | ac_aux_dir='$ac_aux_dir' | |
904dbe44 | 34169 | |
3258f645 | 34170 | # See if we are running on zsh, and set the options that allow our |
904dbe44 | 34171 | # commands through without removal of \ escapes INIT. |
3258f645 | 34172 | if test -n "\${ZSH_VERSION+set}"; then |
904dbe44 CIK |
34173 | setopt NO_GLOB_SUBST |
34174 | fi | |
34175 | ||
34176 | ||
34177 | PACKAGE='$PACKAGE' | |
34178 | VERSION='$VERSION' | |
904dbe44 CIK |
34179 | RM='$RM' |
34180 | ofile='$ofile' | |
34181 | ||
34182 | ||
34183 | ||
34184 | ||
34185 | _ACEOF | |
34186 | ||
34187 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
34188 | ||
34189 | # Handling of arguments. | |
34190 | for ac_config_target in $ac_config_targets | |
34191 | do | |
34192 | case $ac_config_target in | |
34193 | "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;; | |
34194 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
34195 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
34196 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
34197 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; | |
34198 | "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;; | |
34199 | "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; | |
34200 | "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;; | |
34201 | "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;; | |
34202 | "etc/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/Makefile" ;; | |
34203 | "etc/systemd/system/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/system/Makefile" ;; | |
34204 | "etc/modules-load.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/modules-load.d/Makefile" ;; | |
34205 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
34206 | "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;; | |
34207 | "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;; | |
34208 | "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;; | |
34209 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
34210 | "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;; | |
34211 | "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;; | |
34212 | "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;; | |
34213 | "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;; | |
34214 | "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;; | |
34215 | "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;; | |
34216 | "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;; | |
34217 | "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;; | |
34218 | "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;; | |
34219 | "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;; | |
34220 | "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;; | |
34221 | "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;; | |
34222 | "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;; | |
34223 | "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;; | |
34224 | "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;; | |
34225 | "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;; | |
34226 | "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;; | |
34227 | "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;; | |
34228 | "lib/libzfs/libzfs.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs.pc" ;; | |
34229 | "lib/libzfs/libzfs_core.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs_core.pc" ;; | |
34230 | "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;; | |
34231 | "lib/libzfs_core/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs_core/Makefile" ;; | |
34232 | "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;; | |
34233 | "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;; | |
34234 | "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;; | |
34235 | "cmd/zhack/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zhack/Makefile" ;; | |
34236 | "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;; | |
34237 | "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;; | |
34238 | "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;; | |
34239 | "cmd/zstreamdump/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zstreamdump/Makefile" ;; | |
34240 | "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;; | |
34241 | "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;; | |
34242 | "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;; | |
34243 | "cmd/fsck_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;; | |
34244 | "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;; | |
34245 | "cmd/vdev_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/vdev_id/Makefile" ;; | |
34246 | "cmd/arcstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arcstat/Makefile" ;; | |
34247 | "cmd/dbufstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/dbufstat/Makefile" ;; | |
34248 | "cmd/arc_summary/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arc_summary/Makefile" ;; | |
34249 | "cmd/zed/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zed/Makefile" ;; | |
34250 | "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; | |
34251 | "contrib/bash_completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/bash_completion.d/Makefile" ;; | |
34252 | "contrib/dracut/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/Makefile" ;; | |
34253 | "contrib/dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/90zfs/Makefile" ;; | |
34254 | "contrib/initramfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/initramfs/Makefile" ;; | |
34255 | "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;; | |
34256 | "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;; | |
34257 | "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;; | |
34258 | "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;; | |
34259 | "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;; | |
34260 | "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;; | |
34261 | "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;; | |
34262 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
34263 | "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;; | |
34264 | "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;; | |
34265 | "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;; | |
34266 | "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;; | |
34267 | "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;; | |
34268 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; | |
34269 | "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;; | |
34270 | "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;; | |
34271 | "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;; | |
34272 | "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;; | |
34273 | "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;; | |
34274 | "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;; | |
34275 | "rpm/redhat/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs.spec" ;; | |
34276 | "rpm/redhat/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-kmod.spec" ;; | |
34277 | "rpm/redhat/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-dkms.spec" ;; | |
34278 | "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;; | |
34279 | "rpm/generic/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs.spec" ;; | |
34280 | "rpm/generic/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;; | |
34281 | "rpm/generic/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;; | |
34282 | "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;; | |
34283 | "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;; | |
34284 | ||
34285 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
34286 | esac | |
34287 | done | |
34288 | ||
34289 | ||
34290 | # If the user did not use the arguments to specify the items to instantiate, | |
34291 | # then the envvar interface is used. Set only those that are not. | |
34292 | # We use the long form for the default assignment because of an extremely | |
34293 | # bizarre bug on SunOS 4.1.3. | |
34294 | if $ac_need_defaults; then | |
34295 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
34296 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
34297 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
34298 | fi | |
34299 | ||
34300 | # Have a temporary directory for convenience. Make it in the build tree | |
34301 | # simply because there is no reason against having it here, and in addition, | |
34302 | # creating and moving files from /tmp can sometimes cause problems. | |
34303 | # Hook for its removal unless debugging. | |
34304 | # Note that there is a small window in which the directory will not be cleaned: | |
34305 | # after its creation but before its name has been assigned to `$tmp'. | |
34306 | $debug || | |
34307 | { | |
34308 | tmp= ac_tmp= | |
34309 | trap 'exit_status=$? | |
34310 | : "${ac_tmp:=$tmp}" | |
34311 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
34312 | ' 0 | |
34313 | trap 'as_fn_exit 1' 1 2 13 15 | |
34314 | } | |
34315 | # Create a (secure) tmp directory for tmp files. | |
34316 | ||
34317 | { | |
34318 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
34319 | test -d "$tmp" | |
34320 | } || | |
34321 | { | |
34322 | tmp=./conf$$-$RANDOM | |
34323 | (umask 077 && mkdir "$tmp") | |
34324 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
34325 | ac_tmp=$tmp | |
34326 | ||
34327 | # Set up the scripts for CONFIG_FILES section. | |
34328 | # No need to generate them if there are no CONFIG_FILES. | |
34329 | # This happens for instance with `./config.status config.h'. | |
34330 | if test -n "$CONFIG_FILES"; then | |
34331 | ||
34332 | ||
34333 | ac_cr=`echo X | tr X '\015'` | |
34334 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
34335 | # But we know of no other shell where ac_cr would be empty at this | |
34336 | # point, so we can use a bashism as a fallback. | |
34337 | if test "x$ac_cr" = x; then | |
34338 | eval ac_cr=\$\'\\r\' | |
34339 | fi | |
34340 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
34341 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
34342 | ac_cs_awk_cr='\\r' | |
34343 | else | |
34344 | ac_cs_awk_cr=$ac_cr | |
34345 | fi | |
34346 | ||
34347 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
34348 | _ACEOF | |
34349 | ||
34350 | ||
34351 | { | |
34352 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
34353 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
34354 | echo "_ACEOF" | |
34355 | } >conf$$subs.sh || | |
34356 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
34357 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
34358 | ac_delim='%!_!# ' | |
34359 | for ac_last_try in false false false false false :; do | |
34360 | . ./conf$$subs.sh || | |
34361 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
34362 | ||
34363 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
34364 | if test $ac_delim_n = $ac_delim_num; then | |
34365 | break | |
34366 | elif $ac_last_try; then | |
34367 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
34368 | else | |
34369 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
34370 | fi | |
34371 | done | |
34372 | rm -f conf$$subs.sh | |
34373 | ||
34374 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
34375 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
34376 | _ACEOF | |
34377 | sed -n ' | |
34378 | h | |
34379 | s/^/S["/; s/!.*/"]=/ | |
34380 | p | |
34381 | g | |
34382 | s/^[^!]*!// | |
34383 | :repl | |
34384 | t repl | |
34385 | s/'"$ac_delim"'$// | |
34386 | t delim | |
34387 | :nl | |
34388 | h | |
34389 | s/\(.\{148\}\)..*/\1/ | |
34390 | t more1 | |
34391 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
34392 | p | |
34393 | n | |
34394 | b repl | |
34395 | :more1 | |
34396 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
34397 | p | |
34398 | g | |
34399 | s/.\{148\}// | |
34400 | t nl | |
34401 | :delim | |
34402 | h | |
34403 | s/\(.\{148\}\)..*/\1/ | |
34404 | t more2 | |
34405 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
34406 | p | |
34407 | b | |
34408 | :more2 | |
34409 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
34410 | p | |
34411 | g | |
34412 | s/.\{148\}// | |
34413 | t delim | |
34414 | ' <conf$$subs.awk | sed ' | |
34415 | /^[^""]/{ | |
34416 | N | |
34417 | s/\n// | |
34418 | } | |
34419 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
34420 | rm -f conf$$subs.awk | |
34421 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
34422 | _ACAWK | |
34423 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
34424 | for (key in S) S_is_set[key] = 1 | |
34425 | FS = "\a" | |
34426 | ||
34427 | } | |
34428 | { | |
34429 | line = $ 0 | |
34430 | nfields = split(line, field, "@") | |
34431 | substed = 0 | |
34432 | len = length(field[1]) | |
34433 | for (i = 2; i < nfields; i++) { | |
34434 | key = field[i] | |
34435 | keylen = length(key) | |
34436 | if (S_is_set[key]) { | |
34437 | value = S[key] | |
34438 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
34439 | len += length(value) + length(field[++i]) | |
34440 | substed = 1 | |
34441 | } else | |
34442 | len += 1 + keylen | |
34443 | } | |
34444 | ||
34445 | print line | |
34446 | } | |
34447 | ||
34448 | _ACAWK | |
34449 | _ACEOF | |
34450 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
34451 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
34452 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
34453 | else | |
34454 | cat | |
34455 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
34456 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
34457 | _ACEOF | |
34458 | ||
34459 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
34460 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
34461 | # trailing colons and then remove the whole line if VPATH becomes empty | |
34462 | # (actually we leave an empty line to preserve line numbers). | |
34463 | if test "x$srcdir" = x.; then | |
34464 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
34465 | h | |
34466 | s/// | |
34467 | s/^/:/ | |
34468 | s/[ ]*$/:/ | |
34469 | s/:\$(srcdir):/:/g | |
34470 | s/:\${srcdir}:/:/g | |
34471 | s/:@srcdir@:/:/g | |
34472 | s/^:*// | |
34473 | s/:*$// | |
34474 | x | |
34475 | s/\(=[ ]*\).*/\1/ | |
34476 | G | |
34477 | s/\n// | |
34478 | s/^[^=]*=[ ]*$// | |
34479 | }' | |
34480 | fi | |
34481 | ||
34482 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
34483 | fi # test -n "$CONFIG_FILES" | |
34484 | ||
34485 | # Set up the scripts for CONFIG_HEADERS section. | |
34486 | # No need to generate them if there are no CONFIG_HEADERS. | |
34487 | # This happens for instance with `./config.status Makefile'. | |
34488 | if test -n "$CONFIG_HEADERS"; then | |
34489 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
34490 | BEGIN { | |
34491 | _ACEOF | |
34492 | ||
34493 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
34494 | # here-document in config.status, that substitutes the proper values into | |
34495 | # config.h.in to produce config.h. | |
34496 | ||
34497 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
34498 | # handling of long lines. | |
34499 | ac_delim='%!_!# ' | |
34500 | for ac_last_try in false false :; do | |
34501 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
34502 | if test -z "$ac_tt"; then | |
34503 | break | |
34504 | elif $ac_last_try; then | |
34505 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
34506 | else | |
34507 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
34508 | fi | |
34509 | done | |
34510 | ||
34511 | # For the awk script, D is an array of macro values keyed by name, | |
34512 | # likewise P contains macro parameters if any. Preserve backslash | |
34513 | # newline sequences. | |
34514 | ||
34515 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
34516 | sed -n ' | |
34517 | s/.\{148\}/&'"$ac_delim"'/g | |
34518 | t rset | |
34519 | :rset | |
34520 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
34521 | t def | |
34522 | d | |
34523 | :def | |
34524 | s/\\$// | |
34525 | t bsnl | |
34526 | s/["\\]/\\&/g | |
34527 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
34528 | D["\1"]=" \3"/p | |
34529 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
34530 | d | |
34531 | :bsnl | |
34532 | s/["\\]/\\&/g | |
34533 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
34534 | D["\1"]=" \3\\\\\\n"\\/p | |
34535 | t cont | |
34536 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
34537 | t cont | |
34538 | d | |
34539 | :cont | |
34540 | n | |
34541 | s/.\{148\}/&'"$ac_delim"'/g | |
34542 | t clear | |
34543 | :clear | |
34544 | s/\\$// | |
34545 | t bsnlc | |
34546 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
34547 | d | |
34548 | :bsnlc | |
34549 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
34550 | b cont | |
34551 | ' <confdefs.h | sed ' | |
34552 | s/'"$ac_delim"'/"\\\ | |
34553 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
34554 | ||
34555 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
34556 | for (key in D) D_is_set[key] = 1 | |
34557 | FS = "\a" | |
34558 | } | |
34559 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
34560 | line = \$ 0 | |
34561 | split(line, arg, " ") | |
34562 | if (arg[1] == "#") { | |
34563 | defundef = arg[2] | |
34564 | mac1 = arg[3] | |
34565 | } else { | |
34566 | defundef = substr(arg[1], 2) | |
34567 | mac1 = arg[2] | |
34568 | } | |
34569 | split(mac1, mac2, "(") #) | |
34570 | macro = mac2[1] | |
34571 | prefix = substr(line, 1, index(line, defundef) - 1) | |
34572 | if (D_is_set[macro]) { | |
34573 | # Preserve the white space surrounding the "#". | |
34574 | print prefix "define", macro P[macro] D[macro] | |
34575 | next | |
34576 | } else { | |
34577 | # Replace #undef with comments. This is necessary, for example, | |
34578 | # in the case of _POSIX_SOURCE, which is predefined and required | |
34579 | # on some systems where configure will not decide to define it. | |
34580 | if (defundef == "undef") { | |
34581 | print "/*", prefix defundef, macro, "*/" | |
34582 | next | |
34583 | } | |
34584 | } | |
34585 | } | |
34586 | { print } | |
34587 | _ACAWK | |
34588 | _ACEOF | |
34589 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
34590 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
34591 | fi # test -n "$CONFIG_HEADERS" | |
34592 | ||
34593 | ||
34594 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
34595 | shift | |
34596 | for ac_tag | |
34597 | do | |
34598 | case $ac_tag in | |
34599 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
34600 | esac | |
34601 | case $ac_mode$ac_tag in | |
34602 | :[FHL]*:*);; | |
34603 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
34604 | :[FH]-) ac_tag=-:-;; | |
34605 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
34606 | esac | |
34607 | ac_save_IFS=$IFS | |
34608 | IFS=: | |
34609 | set x $ac_tag | |
34610 | IFS=$ac_save_IFS | |
34611 | shift | |
34612 | ac_file=$1 | |
34613 | shift | |
34614 | ||
34615 | case $ac_mode in | |
34616 | :L) ac_source=$1;; | |
34617 | :[FH]) | |
34618 | ac_file_inputs= | |
34619 | for ac_f | |
34620 | do | |
34621 | case $ac_f in | |
34622 | -) ac_f="$ac_tmp/stdin";; | |
34623 | *) # Look for the file first in the build tree, then in the source tree | |
34624 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
34625 | # because $ac_f cannot contain `:'. | |
34626 | test -f "$ac_f" || | |
34627 | case $ac_f in | |
34628 | [\\/$]*) false;; | |
34629 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
34630 | esac || | |
34631 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
34632 | esac | |
34633 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
34634 | as_fn_append ac_file_inputs " '$ac_f'" | |
34635 | done | |
34636 | ||
34637 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
34638 | # use $as_me), people would be surprised to read: | |
34639 | # /* config.h. Generated by config.status. */ | |
34640 | configure_input='Generated from '` | |
34641 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
34642 | `' by configure.' | |
34643 | if test x"$ac_file" != x-; then | |
34644 | configure_input="$ac_file. $configure_input" | |
34645 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
34646 | $as_echo "$as_me: creating $ac_file" >&6;} | |
34647 | fi | |
34648 | # Neutralize special characters interpreted by sed in replacement strings. | |
34649 | case $configure_input in #( | |
34650 | *\&* | *\|* | *\\* ) | |
34651 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
34652 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
34653 | *) ac_sed_conf_input=$configure_input;; | |
34654 | esac | |
34655 | ||
34656 | case $ac_tag in | |
34657 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
34658 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
34659 | esac | |
34660 | ;; | |
34661 | esac | |
34662 | ||
34663 | ac_dir=`$as_dirname -- "$ac_file" || | |
34664 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
34665 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
34666 | X"$ac_file" : 'X\(//\)$' \| \ | |
34667 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
34668 | $as_echo X"$ac_file" | | |
34669 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
34670 | s//\1/ | |
34671 | q | |
34672 | } | |
34673 | /^X\(\/\/\)[^/].*/{ | |
34674 | s//\1/ | |
34675 | q | |
34676 | } | |
34677 | /^X\(\/\/\)$/{ | |
34678 | s//\1/ | |
34679 | q | |
34680 | } | |
34681 | /^X\(\/\).*/{ | |
34682 | s//\1/ | |
34683 | q | |
34684 | } | |
34685 | s/.*/./; q'` | |
34686 | as_dir="$ac_dir"; as_fn_mkdir_p | |
34687 | ac_builddir=. | |
34688 | ||
34689 | case "$ac_dir" in | |
34690 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
34691 | *) | |
34692 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
34693 | # A ".." for each directory in $ac_dir_suffix. | |
34694 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
34695 | case $ac_top_builddir_sub in | |
34696 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
34697 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
34698 | esac ;; | |
34699 | esac | |
34700 | ac_abs_top_builddir=$ac_pwd | |
34701 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
34702 | # for backward compatibility: | |
34703 | ac_top_builddir=$ac_top_build_prefix | |
34704 | ||
34705 | case $srcdir in | |
34706 | .) # We are building in place. | |
34707 | ac_srcdir=. | |
34708 | ac_top_srcdir=$ac_top_builddir_sub | |
34709 | ac_abs_top_srcdir=$ac_pwd ;; | |
34710 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
34711 | ac_srcdir=$srcdir$ac_dir_suffix; | |
34712 | ac_top_srcdir=$srcdir | |
34713 | ac_abs_top_srcdir=$srcdir ;; | |
34714 | *) # Relative name. | |
34715 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
34716 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
34717 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
34718 | esac | |
34719 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
34720 | ||
34721 | ||
34722 | case $ac_mode in | |
34723 | :F) | |
34724 | # | |
34725 | # CONFIG_FILE | |
34726 | # | |
34727 | ||
34728 | case $INSTALL in | |
34729 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
34730 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
34731 | esac | |
34732 | ac_MKDIR_P=$MKDIR_P | |
34733 | case $MKDIR_P in | |
34734 | [\\/$]* | ?:[\\/]* ) ;; | |
34735 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
34736 | esac | |
34737 | _ACEOF | |
34738 | ||
34739 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
34740 | # If the template does not know about datarootdir, expand it. | |
34741 | # FIXME: This hack should be removed a few years after 2.60. | |
34742 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
34743 | ac_sed_dataroot=' | |
34744 | /datarootdir/ { | |
34745 | p | |
34746 | q | |
34747 | } | |
34748 | /@datadir@/p | |
34749 | /@docdir@/p | |
34750 | /@infodir@/p | |
34751 | /@localedir@/p | |
34752 | /@mandir@/p' | |
34753 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
34754 | *datarootdir*) ac_datarootdir_seen=yes;; | |
34755 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
34756 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
34757 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
34758 | _ACEOF | |
34759 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
34760 | ac_datarootdir_hack=' | |
34761 | s&@datadir@&$datadir&g | |
34762 | s&@docdir@&$docdir&g | |
34763 | s&@infodir@&$infodir&g | |
34764 | s&@localedir@&$localedir&g | |
34765 | s&@mandir@&$mandir&g | |
34766 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
34767 | esac | |
34768 | _ACEOF | |
34769 | ||
34770 | # Neutralize VPATH when `$srcdir' = `.'. | |
34771 | # Shell code in configure.ac might set extrasub. | |
34772 | # FIXME: do we really want to maintain this feature? | |
34773 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
34774 | ac_sed_extra="$ac_vpsub | |
34775 | $extrasub | |
34776 | _ACEOF | |
34777 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
34778 | :t | |
34779 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
34780 | s|@configure_input@|$ac_sed_conf_input|;t t | |
34781 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
34782 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
34783 | s&@srcdir@&$ac_srcdir&;t t | |
34784 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
34785 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
34786 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
34787 | s&@builddir@&$ac_builddir&;t t | |
34788 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
34789 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
34790 | s&@INSTALL@&$ac_INSTALL&;t t | |
34791 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
34792 | $ac_datarootdir_hack | |
34793 | " | |
34794 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
34795 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
34796 | ||
34797 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
34798 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
34799 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
34800 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
34801 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
34802 | which seems to be undefined. Please make sure it is defined" >&5 | |
34803 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
34804 | which seems to be undefined. Please make sure it is defined" >&2;} | |
34805 | ||
34806 | rm -f "$ac_tmp/stdin" | |
34807 | case $ac_file in | |
34808 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
34809 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
34810 | esac \ | |
34811 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
34812 | ;; | |
34813 | :H) | |
34814 | # | |
34815 | # CONFIG_HEADER | |
34816 | # | |
34817 | if test x"$ac_file" != x-; then | |
34818 | { | |
34819 | $as_echo "/* $configure_input */" \ | |
34820 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
34821 | } >"$ac_tmp/config.h" \ | |
34822 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
34823 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
34824 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
34825 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
34826 | else | |
34827 | rm -f "$ac_file" | |
34828 | mv "$ac_tmp/config.h" "$ac_file" \ | |
34829 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
34830 | fi | |
34831 | else | |
34832 | $as_echo "/* $configure_input */" \ | |
34833 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
34834 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
34835 | fi | |
34836 | # Compute "$ac_file"'s index in $config_headers. | |
34837 | _am_arg="$ac_file" | |
34838 | _am_stamp_count=1 | |
34839 | for _am_header in $config_headers :; do | |
34840 | case $_am_header in | |
34841 | $_am_arg | $_am_arg:* ) | |
34842 | break ;; | |
34843 | * ) | |
34844 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
34845 | esac | |
34846 | done | |
34847 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
34848 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
34849 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
34850 | X"$_am_arg" : 'X\(//\)$' \| \ | |
34851 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
34852 | $as_echo X"$_am_arg" | | |
34853 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
34854 | s//\1/ | |
34855 | q | |
34856 | } | |
34857 | /^X\(\/\/\)[^/].*/{ | |
34858 | s//\1/ | |
34859 | q | |
34860 | } | |
34861 | /^X\(\/\/\)$/{ | |
34862 | s//\1/ | |
34863 | q | |
34864 | } | |
34865 | /^X\(\/\).*/{ | |
34866 | s//\1/ | |
34867 | q | |
34868 | } | |
34869 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
34870 | ;; | |
34871 | ||
34872 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
34873 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
34874 | ;; | |
34875 | esac | |
34876 | ||
34877 | ||
34878 | case $ac_file$ac_mode in | |
34879 | "zfs_config.h":H) | |
34880 | (mv zfs_config.h zfs_config.h.tmp && | |
34881 | awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h && | |
34882 | rm zfs_config.h.tmp) || exit 1 ;; | |
34883 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
34884 | # Older Autoconf quotes --file arguments for eval, but not when files | |
34885 | # are listed without --file. Let's play safe and only enable the eval | |
34886 | # if we detect the quoting. | |
34887 | case $CONFIG_FILES in | |
34888 | *\'*) eval set x "$CONFIG_FILES" ;; | |
34889 | *) set x $CONFIG_FILES ;; | |
34890 | esac | |
34891 | shift | |
34892 | for mf | |
34893 | do | |
34894 | # Strip MF so we end up with the name of the file. | |
34895 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
34896 | # Check whether this is an Automake generated Makefile or not. | |
34897 | # We used to match only the files named 'Makefile.in', but | |
34898 | # some people rename them; so instead we look at the file content. | |
34899 | # Grep'ing the first line is not enough: some people post-process | |
34900 | # each Makefile.in and add a new line on top of each file to say so. | |
34901 | # Grep'ing the whole file is not good either: AIX grep has a line | |
34902 | # limit of 2048, but all sed's we know have understand at least 4000. | |
34903 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
34904 | dirpart=`$as_dirname -- "$mf" || | |
34905 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
34906 | X"$mf" : 'X\(//\)[^/]' \| \ | |
34907 | X"$mf" : 'X\(//\)$' \| \ | |
34908 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
34909 | $as_echo X"$mf" | | |
34910 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
34911 | s//\1/ | |
34912 | q | |
34913 | } | |
34914 | /^X\(\/\/\)[^/].*/{ | |
34915 | s//\1/ | |
34916 | q | |
34917 | } | |
34918 | /^X\(\/\/\)$/{ | |
34919 | s//\1/ | |
34920 | q | |
34921 | } | |
34922 | /^X\(\/\).*/{ | |
34923 | s//\1/ | |
34924 | q | |
34925 | } | |
34926 | s/.*/./; q'` | |
34927 | else | |
34928 | continue | |
34929 | fi | |
34930 | # Extract the definition of DEPDIR, am__include, and am__quote | |
34931 | # from the Makefile without running 'make'. | |
34932 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
34933 | test -z "$DEPDIR" && continue | |
34934 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
34935 | test -z "$am__include" && continue | |
34936 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
34937 | # Find all dependency output files, they are included files with | |
34938 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
34939 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
34940 | # expansion. | |
34941 | for file in `sed -n " | |
34942 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
34943 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
34944 | # Make sure the directory exists. | |
34945 | test -f "$dirpart/$file" && continue | |
34946 | fdir=`$as_dirname -- "$file" || | |
34947 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
34948 | X"$file" : 'X\(//\)[^/]' \| \ | |
34949 | X"$file" : 'X\(//\)$' \| \ | |
34950 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
34951 | $as_echo X"$file" | | |
34952 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
34953 | s//\1/ | |
34954 | q | |
34955 | } | |
34956 | /^X\(\/\/\)[^/].*/{ | |
34957 | s//\1/ | |
34958 | q | |
34959 | } | |
34960 | /^X\(\/\/\)$/{ | |
34961 | s//\1/ | |
34962 | q | |
34963 | } | |
34964 | /^X\(\/\).*/{ | |
34965 | s//\1/ | |
34966 | q | |
34967 | } | |
34968 | s/.*/./; q'` | |
34969 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
34970 | # echo "creating $dirpart/$file" | |
34971 | echo '# dummy' > "$dirpart/$file" | |
34972 | done | |
34973 | done | |
34974 | } | |
34975 | ;; | |
34976 | "libtool":C) | |
34977 | ||
3258f645 | 34978 | # See if we are running on zsh, and set the options that allow our |
904dbe44 | 34979 | # commands through without removal of \ escapes. |
3258f645 | 34980 | if test -n "${ZSH_VERSION+set}"; then |
904dbe44 CIK |
34981 | setopt NO_GLOB_SUBST |
34982 | fi | |
34983 | ||
3258f645 | 34984 | cfgfile=${ofile}T |
904dbe44 CIK |
34985 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
34986 | $RM "$cfgfile" | |
34987 | ||
34988 | cat <<_LT_EOF >> "$cfgfile" | |
34989 | #! $SHELL | |
3258f645 | 34990 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
904dbe44 CIK |
34991 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
34992 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
3258f645 TG |
34993 | |
34994 | # Provide generalized library-building support services. | |
34995 | # Written by Gordon Matzigkeit, 1996 | |
34996 | ||
34997 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
34998 | # This is free software; see the source for copying conditions. There is NO | |
34999 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
35000 | ||
35001 | # GNU Libtool is free software; you can redistribute it and/or modify | |
35002 | # it under the terms of the GNU General Public License as published by | |
35003 | # the Free Software Foundation; either version 2 of of the License, or | |
35004 | # (at your option) any later version. | |
904dbe44 | 35005 | # |
3258f645 TG |
35006 | # As a special exception to the GNU General Public License, if you |
35007 | # distribute this file as part of a program or library that is built | |
35008 | # using GNU Libtool, you may include this file under the same | |
35009 | # distribution terms that you use for the rest of that program. | |
904dbe44 | 35010 | # |
3258f645 TG |
35011 | # GNU Libtool is distributed in the hope that it will be useful, but |
35012 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
904dbe44 CIK |
35013 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
35014 | # GNU General Public License for more details. | |
35015 | # | |
35016 | # You should have received a copy of the GNU General Public License | |
3258f645 | 35017 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
904dbe44 CIK |
35018 | |
35019 | ||
35020 | # The names of the tagged configurations supported by this script. | |
3258f645 TG |
35021 | available_tags='' |
35022 | ||
35023 | # Configured defaults for sys_lib_dlsearch_path munging. | |
35024 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
904dbe44 CIK |
35025 | |
35026 | # ### BEGIN LIBTOOL CONFIG | |
35027 | ||
35028 | # Which release of libtool.m4 was used? | |
35029 | macro_version=$macro_version | |
35030 | macro_revision=$macro_revision | |
35031 | ||
35032 | # Whether or not to build shared libraries. | |
35033 | build_libtool_libs=$enable_shared | |
35034 | ||
35035 | # Whether or not to build static libraries. | |
35036 | build_old_libs=$enable_static | |
35037 | ||
35038 | # What type of objects to build. | |
35039 | pic_mode=$pic_mode | |
35040 | ||
35041 | # Whether or not to optimize for fast installation. | |
35042 | fast_install=$enable_fast_install | |
35043 | ||
3258f645 TG |
35044 | # Shared archive member basename,for filename based shared library versioning on AIX. |
35045 | shared_archive_member_spec=$shared_archive_member_spec | |
35046 | ||
904dbe44 CIK |
35047 | # Shell to use when invoking shell scripts. |
35048 | SHELL=$lt_SHELL | |
35049 | ||
35050 | # An echo program that protects backslashes. | |
35051 | ECHO=$lt_ECHO | |
35052 | ||
35053 | # The PATH separator for the build system. | |
35054 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
35055 | ||
35056 | # The host system. | |
35057 | host_alias=$host_alias | |
35058 | host=$host | |
35059 | host_os=$host_os | |
35060 | ||
35061 | # The build system. | |
35062 | build_alias=$build_alias | |
35063 | build=$build | |
35064 | build_os=$build_os | |
35065 | ||
35066 | # A sed program that does not truncate output. | |
35067 | SED=$lt_SED | |
35068 | ||
35069 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
35070 | Xsed="\$SED -e 1s/^X//" | |
35071 | ||
35072 | # A grep program that handles long lines. | |
35073 | GREP=$lt_GREP | |
35074 | ||
35075 | # An ERE matcher. | |
35076 | EGREP=$lt_EGREP | |
35077 | ||
35078 | # A literal string matcher. | |
35079 | FGREP=$lt_FGREP | |
35080 | ||
35081 | # A BSD- or MS-compatible name lister. | |
35082 | NM=$lt_NM | |
35083 | ||
35084 | # Whether we need soft or hard links. | |
35085 | LN_S=$lt_LN_S | |
35086 | ||
35087 | # What is the maximum length of a command? | |
35088 | max_cmd_len=$max_cmd_len | |
35089 | ||
35090 | # Object file suffix (normally "o"). | |
35091 | objext=$ac_objext | |
35092 | ||
35093 | # Executable file suffix (normally ""). | |
35094 | exeext=$exeext | |
35095 | ||
35096 | # whether the shell understands "unset". | |
35097 | lt_unset=$lt_unset | |
35098 | ||
35099 | # turn spaces into newlines. | |
35100 | SP2NL=$lt_lt_SP2NL | |
35101 | ||
35102 | # turn newlines into spaces. | |
35103 | NL2SP=$lt_lt_NL2SP | |
35104 | ||
35105 | # convert \$build file names to \$host format. | |
35106 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
35107 | ||
35108 | # convert \$build files to toolchain format. | |
35109 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
35110 | ||
35111 | # An object symbol dumper. | |
35112 | OBJDUMP=$lt_OBJDUMP | |
35113 | ||
35114 | # Method to check whether dependent libraries are shared objects. | |
35115 | deplibs_check_method=$lt_deplibs_check_method | |
35116 | ||
35117 | # Command to use when deplibs_check_method = "file_magic". | |
35118 | file_magic_cmd=$lt_file_magic_cmd | |
35119 | ||
35120 | # How to find potential files when deplibs_check_method = "file_magic". | |
35121 | file_magic_glob=$lt_file_magic_glob | |
35122 | ||
35123 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
35124 | want_nocaseglob=$lt_want_nocaseglob | |
35125 | ||
35126 | # DLL creation program. | |
35127 | DLLTOOL=$lt_DLLTOOL | |
35128 | ||
35129 | # Command to associate shared and link libraries. | |
35130 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
35131 | ||
35132 | # The archiver. | |
35133 | AR=$lt_AR | |
35134 | ||
35135 | # Flags to create an archive. | |
35136 | AR_FLAGS=$lt_AR_FLAGS | |
35137 | ||
35138 | # How to feed a file listing to the archiver. | |
35139 | archiver_list_spec=$lt_archiver_list_spec | |
35140 | ||
35141 | # A symbol stripping program. | |
35142 | STRIP=$lt_STRIP | |
35143 | ||
35144 | # Commands used to install an old-style archive. | |
35145 | RANLIB=$lt_RANLIB | |
35146 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
35147 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
35148 | ||
35149 | # Whether to use a lock for old archive extraction. | |
35150 | lock_old_archive_extraction=$lock_old_archive_extraction | |
35151 | ||
35152 | # A C compiler. | |
35153 | LTCC=$lt_CC | |
35154 | ||
35155 | # LTCC compiler flags. | |
35156 | LTCFLAGS=$lt_CFLAGS | |
35157 | ||
35158 | # Take the output of nm and produce a listing of raw symbols and C names. | |
35159 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
35160 | ||
35161 | # Transform the output of nm in a proper C declaration. | |
35162 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
35163 | ||
3258f645 TG |
35164 | # Transform the output of nm into a list of symbols to manually relocate. |
35165 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
35166 | ||
904dbe44 CIK |
35167 | # Transform the output of nm in a C name address pair. |
35168 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
35169 | ||
35170 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
35171 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
35172 | ||
3258f645 TG |
35173 | # The name lister interface. |
35174 | nm_interface=$lt_lt_cv_nm_interface | |
35175 | ||
904dbe44 CIK |
35176 | # Specify filename containing input files for \$NM. |
35177 | nm_file_list_spec=$lt_nm_file_list_spec | |
35178 | ||
3258f645 | 35179 | # The root where to search for dependent libraries,and where our libraries should be installed. |
904dbe44 CIK |
35180 | lt_sysroot=$lt_sysroot |
35181 | ||
3258f645 TG |
35182 | # Command to truncate a binary pipe. |
35183 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
35184 | ||
904dbe44 CIK |
35185 | # The name of the directory that contains temporary libtool files. |
35186 | objdir=$objdir | |
35187 | ||
35188 | # Used to examine libraries when file_magic_cmd begins with "file". | |
35189 | MAGIC_CMD=$MAGIC_CMD | |
35190 | ||
35191 | # Must we lock files when doing compilation? | |
35192 | need_locks=$lt_need_locks | |
35193 | ||
35194 | # Manifest tool. | |
35195 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
35196 | ||
35197 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
35198 | DSYMUTIL=$lt_DSYMUTIL | |
35199 | ||
35200 | # Tool to change global to local symbols on Mac OS X. | |
35201 | NMEDIT=$lt_NMEDIT | |
35202 | ||
35203 | # Tool to manipulate fat objects and archives on Mac OS X. | |
35204 | LIPO=$lt_LIPO | |
35205 | ||
35206 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
35207 | OTOOL=$lt_OTOOL | |
35208 | ||
35209 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
35210 | OTOOL64=$lt_OTOOL64 | |
35211 | ||
35212 | # Old archive suffix (normally "a"). | |
35213 | libext=$libext | |
35214 | ||
35215 | # Shared library suffix (normally ".so"). | |
35216 | shrext_cmds=$lt_shrext_cmds | |
35217 | ||
35218 | # The commands to extract the exported symbol list from a shared archive. | |
35219 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
35220 | ||
35221 | # Variables whose values should be saved in libtool wrapper scripts and | |
35222 | # restored at link time. | |
35223 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
35224 | ||
35225 | # Do we need the "lib" prefix for modules? | |
35226 | need_lib_prefix=$need_lib_prefix | |
35227 | ||
35228 | # Do we need a version for libraries? | |
35229 | need_version=$need_version | |
35230 | ||
35231 | # Library versioning type. | |
35232 | version_type=$version_type | |
35233 | ||
35234 | # Shared library runtime path variable. | |
35235 | runpath_var=$runpath_var | |
35236 | ||
35237 | # Shared library path variable. | |
35238 | shlibpath_var=$shlibpath_var | |
35239 | ||
35240 | # Is shlibpath searched before the hard-coded library search path? | |
35241 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
35242 | ||
35243 | # Format of library name prefix. | |
35244 | libname_spec=$lt_libname_spec | |
35245 | ||
35246 | # List of archive names. First name is the real one, the rest are links. | |
35247 | # The last name is the one that the linker finds with -lNAME | |
35248 | library_names_spec=$lt_library_names_spec | |
35249 | ||
35250 | # The coded name of the library, if different from the real name. | |
35251 | soname_spec=$lt_soname_spec | |
35252 | ||
35253 | # Permission mode override for installation of shared libraries. | |
35254 | install_override_mode=$lt_install_override_mode | |
35255 | ||
35256 | # Command to use after installation of a shared archive. | |
35257 | postinstall_cmds=$lt_postinstall_cmds | |
35258 | ||
35259 | # Command to use after uninstallation of a shared archive. | |
35260 | postuninstall_cmds=$lt_postuninstall_cmds | |
35261 | ||
35262 | # Commands used to finish a libtool library installation in a directory. | |
35263 | finish_cmds=$lt_finish_cmds | |
35264 | ||
35265 | # As "finish_cmds", except a single script fragment to be evaled but | |
35266 | # not shown. | |
35267 | finish_eval=$lt_finish_eval | |
35268 | ||
35269 | # Whether we should hardcode library paths into libraries. | |
35270 | hardcode_into_libs=$hardcode_into_libs | |
35271 | ||
35272 | # Compile-time system search path for libraries. | |
35273 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
35274 | ||
3258f645 TG |
35275 | # Detected run-time system search path for libraries. |
35276 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
35277 | ||
35278 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
35279 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
904dbe44 CIK |
35280 | |
35281 | # Whether dlopen is supported. | |
35282 | dlopen_support=$enable_dlopen | |
35283 | ||
35284 | # Whether dlopen of programs is supported. | |
35285 | dlopen_self=$enable_dlopen_self | |
35286 | ||
35287 | # Whether dlopen of statically linked programs is supported. | |
35288 | dlopen_self_static=$enable_dlopen_self_static | |
35289 | ||
35290 | # Commands to strip libraries. | |
35291 | old_striplib=$lt_old_striplib | |
35292 | striplib=$lt_striplib | |
35293 | ||
35294 | ||
35295 | # The linker used to build libraries. | |
35296 | LD=$lt_LD | |
35297 | ||
35298 | # How to create reloadable object files. | |
35299 | reload_flag=$lt_reload_flag | |
35300 | reload_cmds=$lt_reload_cmds | |
35301 | ||
35302 | # Commands used to build an old-style archive. | |
35303 | old_archive_cmds=$lt_old_archive_cmds | |
35304 | ||
35305 | # A language specific compiler. | |
35306 | CC=$lt_compiler | |
35307 | ||
35308 | # Is the compiler the GNU compiler? | |
35309 | with_gcc=$GCC | |
35310 | ||
35311 | # Compiler flag to turn off builtin functions. | |
35312 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
35313 | ||
35314 | # Additional compiler flags for building library objects. | |
35315 | pic_flag=$lt_lt_prog_compiler_pic | |
35316 | ||
35317 | # How to pass a linker flag through the compiler. | |
35318 | wl=$lt_lt_prog_compiler_wl | |
35319 | ||
35320 | # Compiler flag to prevent dynamic linking. | |
35321 | link_static_flag=$lt_lt_prog_compiler_static | |
35322 | ||
35323 | # Does compiler simultaneously support -c and -o options? | |
35324 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
35325 | ||
35326 | # Whether or not to add -lc for building shared libraries. | |
35327 | build_libtool_need_lc=$archive_cmds_need_lc | |
35328 | ||
35329 | # Whether or not to disallow shared libs when runtime libs are static. | |
35330 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
35331 | ||
35332 | # Compiler flag to allow reflexive dlopens. | |
35333 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
35334 | ||
35335 | # Compiler flag to generate shared objects directly from archives. | |
35336 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
35337 | ||
35338 | # Whether the compiler copes with passing no objects directly. | |
35339 | compiler_needs_object=$lt_compiler_needs_object | |
35340 | ||
35341 | # Create an old-style archive from a shared archive. | |
35342 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
35343 | ||
35344 | # Create a temporary old-style archive to link instead of a shared archive. | |
35345 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
35346 | ||
35347 | # Commands used to build a shared archive. | |
35348 | archive_cmds=$lt_archive_cmds | |
35349 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
35350 | ||
35351 | # Commands used to build a loadable module if different from building | |
35352 | # a shared archive. | |
35353 | module_cmds=$lt_module_cmds | |
35354 | module_expsym_cmds=$lt_module_expsym_cmds | |
35355 | ||
35356 | # Whether we are building with GNU ld or not. | |
35357 | with_gnu_ld=$lt_with_gnu_ld | |
35358 | ||
35359 | # Flag that allows shared libraries with undefined symbols to be built. | |
35360 | allow_undefined_flag=$lt_allow_undefined_flag | |
35361 | ||
35362 | # Flag that enforces no undefined symbols. | |
35363 | no_undefined_flag=$lt_no_undefined_flag | |
35364 | ||
35365 | # Flag to hardcode \$libdir into a binary during linking. | |
35366 | # This must work even if \$libdir does not exist | |
35367 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
35368 | ||
35369 | # Whether we need a single "-rpath" flag with a separated argument. | |
35370 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
35371 | ||
3258f645 | 35372 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
904dbe44 CIK |
35373 | # DIR into the resulting binary. |
35374 | hardcode_direct=$hardcode_direct | |
35375 | ||
3258f645 | 35376 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
904dbe44 | 35377 | # DIR into the resulting binary and the resulting library dependency is |
3258f645 | 35378 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
904dbe44 CIK |
35379 | # library is relocated. |
35380 | hardcode_direct_absolute=$hardcode_direct_absolute | |
35381 | ||
35382 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
35383 | # into the resulting binary. | |
35384 | hardcode_minus_L=$hardcode_minus_L | |
35385 | ||
35386 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
35387 | # into the resulting binary. | |
35388 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
35389 | ||
35390 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
35391 | # into the library and all subsequent libraries and executables linked | |
35392 | # against it. | |
35393 | hardcode_automatic=$hardcode_automatic | |
35394 | ||
35395 | # Set to yes if linker adds runtime paths of dependent libraries | |
35396 | # to runtime path list. | |
35397 | inherit_rpath=$inherit_rpath | |
35398 | ||
35399 | # Whether libtool must link a program against all its dependency libraries. | |
35400 | link_all_deplibs=$link_all_deplibs | |
35401 | ||
35402 | # Set to "yes" if exported symbols are required. | |
35403 | always_export_symbols=$always_export_symbols | |
35404 | ||
35405 | # The commands to list exported symbols. | |
35406 | export_symbols_cmds=$lt_export_symbols_cmds | |
35407 | ||
35408 | # Symbols that should not be listed in the preloaded symbols. | |
35409 | exclude_expsyms=$lt_exclude_expsyms | |
35410 | ||
35411 | # Symbols that must always be exported. | |
35412 | include_expsyms=$lt_include_expsyms | |
35413 | ||
35414 | # Commands necessary for linking programs (against libraries) with templates. | |
35415 | prelink_cmds=$lt_prelink_cmds | |
35416 | ||
35417 | # Commands necessary for finishing linking programs. | |
35418 | postlink_cmds=$lt_postlink_cmds | |
35419 | ||
35420 | # Specify filename containing input files. | |
35421 | file_list_spec=$lt_file_list_spec | |
35422 | ||
35423 | # How to hardcode a shared library path into an executable. | |
35424 | hardcode_action=$hardcode_action | |
35425 | ||
35426 | # ### END LIBTOOL CONFIG | |
35427 | ||
3258f645 TG |
35428 | _LT_EOF |
35429 | ||
35430 | cat <<'_LT_EOF' >> "$cfgfile" | |
35431 | ||
35432 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
35433 | ||
35434 | # func_munge_path_list VARIABLE PATH | |
35435 | # ----------------------------------- | |
35436 | # VARIABLE is name of variable containing _space_ separated list of | |
35437 | # directories to be munged by the contents of PATH, which is string | |
35438 | # having a format: | |
35439 | # "DIR[:DIR]:" | |
35440 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
35441 | # ":DIR[:DIR]" | |
35442 | # string "DIR[ DIR]" will be appended to VARIABLE | |
35443 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
35444 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
35445 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
35446 | # "DIR[:DIR]" | |
35447 | # VARIABLE will be replaced by "DIR[ DIR]" | |
35448 | func_munge_path_list () | |
35449 | { | |
35450 | case x$2 in | |
35451 | x) | |
35452 | ;; | |
35453 | *:) | |
35454 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
35455 | ;; | |
35456 | x:*) | |
35457 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
35458 | ;; | |
35459 | *::*) | |
35460 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
35461 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
35462 | ;; | |
35463 | *) | |
35464 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
35465 | ;; | |
35466 | esac | |
35467 | } | |
35468 | ||
35469 | ||
35470 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
35471 | func_cc_basename () | |
35472 | { | |
35473 | for cc_temp in $*""; do | |
35474 | case $cc_temp in | |
35475 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
35476 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
35477 | \-*) ;; | |
35478 | *) break;; | |
35479 | esac | |
35480 | done | |
35481 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
35482 | } | |
35483 | ||
35484 | ||
35485 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
35486 | ||
904dbe44 CIK |
35487 | _LT_EOF |
35488 | ||
35489 | case $host_os in | |
35490 | aix3*) | |
35491 | cat <<\_LT_EOF >> "$cfgfile" | |
35492 | # AIX sometimes has problems with the GCC collect2 program. For some | |
35493 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
35494 | # vanish in a puff of smoke. | |
3258f645 | 35495 | if test set != "${COLLECT_NAMES+set}"; then |
904dbe44 CIK |
35496 | COLLECT_NAMES= |
35497 | export COLLECT_NAMES | |
35498 | fi | |
35499 | _LT_EOF | |
35500 | ;; | |
35501 | esac | |
35502 | ||
35503 | ||
3258f645 | 35504 | ltmain=$ac_aux_dir/ltmain.sh |
904dbe44 CIK |
35505 | |
35506 | ||
35507 | # We use sed instead of cat because bash on DJGPP gets confused if | |
35508 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
35509 | # text mode, it properly converts lines to CR/LF. This bash problem | |
35510 | # is reportedly fixed, but why not run on old versions too? | |
35511 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
35512 | || (rm -f "$cfgfile"; exit 1) | |
35513 | ||
904dbe44 CIK |
35514 | mv -f "$cfgfile" "$ofile" || |
35515 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
35516 | chmod +x "$ofile" | |
35517 | ||
35518 | ;; | |
35519 | ||
35520 | esac | |
35521 | done # for ac_tag | |
35522 | ||
35523 | ||
35524 | as_fn_exit 0 | |
35525 | _ACEOF | |
35526 | ac_clean_files=$ac_clean_files_save | |
35527 | ||
35528 | test $ac_write_fail = 0 || | |
35529 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
35530 | ||
35531 | ||
35532 | # configure is writing to config.log, and then calls config.status. | |
35533 | # config.status does its own redirection, appending to config.log. | |
35534 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
35535 | # by configure, so config.status won't be able to write to it; its | |
35536 | # output is simply discarded. So we exec the FD to /dev/null, | |
35537 | # effectively closing config.log, so it can be properly (re)opened and | |
35538 | # appended to by config.status. When coming back to configure, we | |
35539 | # need to make the FD available again. | |
35540 | if test "$no_create" != yes; then | |
35541 | ac_cs_success=: | |
35542 | ac_config_status_args= | |
35543 | test "$silent" = yes && | |
35544 | ac_config_status_args="$ac_config_status_args --quiet" | |
35545 | exec 5>/dev/null | |
35546 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
35547 | exec 5>>config.log | |
35548 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
35549 | # would make configure fail if this is the last instruction. | |
35550 | $ac_cs_success || as_fn_exit 1 | |
35551 | fi | |
35552 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
35553 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
35554 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
35555 | fi | |
35556 |